{"version":3,"sources":["../../src/evm/gen/template-inline.ts","../../src/evm/gen/template.ts","../../src/svm/gen/template-inline.ts","../../src/svm/gen/template.ts","../../src/ton/gen/template-inline.ts","../../src/ton/gen/template.ts","../../src/tron/gen/template-inline.ts","../../src/tron/gen/template.ts","../../src/stacks/gen/template-inline.ts","../../src/stacks/gen/template.ts","../../src/cosmos/gen/template-inline.ts","../../src/cosmos/gen/template.ts","../../src/near/gen/template-inline.ts","../../src/near/gen/template.ts","../../src/builder.ts","../../src/evm/template-loader.ts","../../src/themeUtils.ts","../../src/evm/paywall.ts","../../src/evm/index.ts","../../src/svm/template-loader.ts","../../src/svm/paywall.ts","../../src/svm/index.ts","../../src/ton/template-loader.ts","../../src/ton/wallets.ts","../../src/ton/paywall.ts","../../src/ton/index.ts","../../src/tron/template-loader.ts","../../src/tron/paywall.ts","../../src/tron/index.ts","../../src/stacks/template-loader.ts","../../src/stacks/paywall.ts","../../src/stacks/index.ts","../../src/cosmos/template-loader.ts","../../src/cosmos/paywall.ts","../../src/cosmos/index.ts","../../src/near/template-loader.ts","../../src/near/paywall.ts","../../src/near/index.ts","../../src/gasless/paywall.ts","../../src/gasless/index.ts","../../src/components/TransactionStatus.tsx"],"names":["template_inline_exports","init_template_inline","template_exports","init_template","EVM_PAYWALL_TEMPLATE","cachedCdnTemplate","cachedInlineTemplate","escapeString","SVM_PAYWALL_TEMPLATE","TON_PAYWALL_TEMPLATE","TRON_PAYWALL_TEMPLATE","STACKS_PAYWALL_TEMPLATE","COSMOS_PAYWALL_TEMPLATE","NEAR_PAYWALL_TEMPLATE","jsxs","jsx","useState","useCallback","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,uBAAA,GAAA,EAAA;AAAA,QAAA,CAAA,uBAAA,EAAA;AAAA,EAAA,2BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,2BAAA;AALb,IAAA,oBAAA,GAAA,KAAA,CAAA;AAAA,EAAA,gCAAA,GAAA;AAKO,IAAM,2BAAA,GAA8B,28pqFAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL3C,IAAA,gBAAA,GAAA,EAAA;AAAA,QAAA,CAAA,gBAAA,EAAA;AAAA,EAAA,oBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,oBAAA;AALb,IAAA,aAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yBAAA,GAAA;AAKO,IAAM,oBAAA,GAAuB,0cAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLpC,IAAAA,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,2BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,2BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,gCAAA,GAAA;AAKO,IAAM,2BAAA,GAA8B,m85YAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL3C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,oBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,oBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yBAAA,GAAA;AAKO,IAAM,oBAAA,GAAuB,0cAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLpC,IAAAH,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,2BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,2BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,gCAAA,GAAA;AAKO,IAAM,2BAAA,GAA8B,2u1qCAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL3C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,oBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,oBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yBAAA,GAAA;AAKO,IAAM,oBAAA,GAAuB,0cAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLpC,IAAAH,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,4BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,4BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,iCAAA,GAAA;AAKO,IAAM,4BAAA,GAA+B,grmTAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL5C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,qBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,qBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,0BAAA,GAAA;AAKO,IAAM,qBAAA,GAAwB,4cAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLrC,IAAAH,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,8BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,8BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,mCAAA,GAAA;AAKO,IAAM,8BAAA,GAAiC,2rqPAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL9C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,uBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,uBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,4BAAA,GAAA;AAKO,IAAM,uBAAA,GAA0B,gdAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLvC,IAAAH,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,8BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,8BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,mCAAA,GAAA;AAKO,IAAM,8BAAA,GAAiC,2woPAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL9C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,uBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,uBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,4BAAA,GAAA;AAKO,IAAM,uBAAA,GAA0B,gdAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLvC,IAAAH,wBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,wBAAAA,EAAA;AAAA,EAAA,4BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,4BAAA;AALb,IAAAC,qBAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,iCAAA,GAAA;AAKO,IAAM,4BAAA,GAA+B,4tlPAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACL5C,IAAAC,iBAAAA,GAAA,EAAA;AAAA,QAAA,CAAAA,iBAAAA,EAAA;AAAA,EAAA,qBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAKa,qBAAA;AALb,IAAAC,cAAAA,GAAA,KAAA,CAAA;AAAA,EAAA,0BAAA,GAAA;AAKO,IAAM,qBAAA,GAAwB,4cAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACK9B,IAAM,iBAAN,MAAqB;AAAA,EAClB,SAAwB,EAAC;AAAA,EACzB,WAAoC,EAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ7C,YAAY,OAAA,EAAsC;AAChD,IAAA,IAAA,CAAK,QAAA,CAAS,KAAK,OAAO,CAAA;AAC1B,IAAA,OAAO,IAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAW,MAAA,EAA6B;AACtC,IAAA,IAAA,CAAK,SAAS,EAAE,GAAG,IAAA,CAAK,MAAA,EAAQ,GAAG,MAAA,EAAO;AAC1C,IAAA,OAAO,IAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,KAAA,GAAyB;AACvB,IAAA,MAAM,gBAAgB,IAAA,CAAK,MAAA;AAC3B,IAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AAEtB,IAAA,OAAO;AAAA,MACL,YAAA,EAAc,CAAC,eAAA,EAAkC,aAAA,KAA0C;AAEzF,QAAA,MAAM,WAAA,GAAc,EAAE,GAAG,aAAA,EAAe,GAAG,aAAA,EAAc;AAEzD,QAAA,IAAI,QAAA,CAAS,WAAW,CAAA,EAAG;AACzB,UAAA,MAAM,IAAI,KAAA;AAAA,YACR;AAAA,WACF;AAAA,QACF;AAEA,QAAA,KAAA,MAAW,WAAA,IAAe,gBAAgB,OAAA,EAAS;AACjD,UAAA,MAAM,UAAU,QAAA,CAAS,IAAA,CAAK,OAAK,CAAA,CAAE,QAAA,CAAS,WAAW,CAAC,CAAA;AAC1D,UAAA,IAAI,OAAA,EAAS;AACX,YAAA,OAAO,OAAA,CAAQ,YAAA,CAAa,WAAA,EAAa,eAAA,EAAiB,WAAW,CAAA;AAAA,UACvE;AAAA,QACF;AAEA,QAAA,MAAM,QAAA,GAAW,gBAAgB,OAAA,CAAQ,GAAA,CAAI,OAAK,CAAA,CAAE,OAAO,CAAA,CAAE,IAAA,CAAK,IAAI,CAAA;AACtE,QAAA,MAAM,IAAI,KAAA;AAAA,UACR,yCAAyC,QAAQ,CAAA,mDAAA;AAAA,SACnD;AAAA,MACF;AAAA,KACF;AAAA,EACF;AACF;AAOO,SAAS,aAAA,GAAgC;AAC9C,EAAA,OAAO,IAAI,cAAA,EAAe;AAC5B;;;AC/EA,IAAI,iBAAA,GAAmC,IAAA;AACvC,IAAI,oBAAA,GAAsC,IAAA;AAQnC,SAAS,cAAA,CAAe,OAAyB,KAAA,EAAsB;AAC5E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAI,yBAAyB,IAAA,EAAM;AACjC,MAAA,OAAO,oBAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,oBAAA,EAAA,EAAA,YAAA,CAAA,uBAAA,CAAA,CAAA;AACjB,MAAA,oBAAA,GAAuB,QAAA,CAAS,2BAAA;AAChC,MAAA,OAAO,oBAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAI,sBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAO,iBAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,aAAA,EAAA,EAAA,YAAA,CAAA,gBAAA,CAAA,CAAA;AACjB,IAAA,iBAAA,GAAoB,QAAA,CAAS,oBAAA;AAC7B,IAAA,OAAO,iBAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;AC1BO,SAAS,oBAAoB,KAAA,EAA8B;AAChE,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,OAAO,EAAA;AAAA,EACT;AAEA,EAAA,MAAM,WAAA,GAAc,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA;AAExC,EAAA,OAAO;AAAA;AAAA;AAAA,kBAAA,EAGW,WAAW,CAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAA,CAAA;AAsD/B;;;AC/DA,SAAS,aAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AAOA,SAAS,cAAA,GAAiB;AACxB,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,WAAA,EAAa,4CAAA;AAAA,MACb,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,WAAA,EAAa,4CAAA;AAAA,MACb,QAAA,EAAU;AAAA;AACZ,GACF;AACF;AA2BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMC,qBAAAA,GAAuB,eAAe,IAAI,CAAA;AAEhD,EAAA,IAAI,CAACA,qBAAAA,EAAsB;AACzB,IAAA,OAAO,CAAA,gHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM;AAAA,IACJ,MAAA;AAAA,IACA,OAAA;AAAA,IACA,eAAA;AAAA,IACA,UAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AAEJ,EAAA,MAAM,YAAA,GAAe,UACjB,gEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,SAAS,cAAA,EAAe;AAC9B,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAG7C,EAAA,MAAM,oBAAoB,sBAAA,GACtB,CAAA,yBAAA,EAA4B,YAAA,CAAa,sBAAsB,CAAC,CAAA,EAAA,CAAA,GAChE,EAAA;AAEJ,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACH,YAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA,qBAAA,EAEtB,IAAA,CAAK,SAAA,CAAU,MAAM,CAAC,CAAA;AAAA;AAAA,gBAAA,EAE3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,MAAA,EACrC,iBAAiB;AAAA;AAAA,IAAA,EAEnB,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOA,sBAAqB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AACzF;;;ACrGO,IAAM,UAAA,GAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/C,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA;AAAA,EACjD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AACR,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,iBAAA,CAAkB;AAAA,MACvB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO,KAAA;AAAA,MACd,wBAAwB,MAAA,CAAO;AAAA,KAChC,CAAA;AAAA,EACH;AACF;;;ACpDA,IAAIC,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,cAAA,CAAe,OAAyB,KAAA,EAAsB;AAC5E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,2BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,oBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACzBA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AA0BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMC,qBAAAA,GAAuB,eAAe,IAAI,CAAA;AAEhD,EAAA,IAAI,CAACA,qBAAAA,EAAsB;AACzB,IAAA,OAAO,CAAA,gHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAElF,EAAA,MAAM,YAAA,GAAe,UACjB,gEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHD,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA,IAAA,EAEvC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOC,sBAAqB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AACzF;;;AClEO,IAAM,UAAA,GAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/C,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA;AAAA,EACjD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AACR,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,iBAAA,CAAkB;AAAA,MACvB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;ACnDA,IAAIH,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,cAAA,CAAe,OAAyB,KAAA,EAAsB;AAC5E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,2BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,oBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACoBA,IAAM,eAAA,GAAmC;AAAA,EACvC;AAAA,IACE,IAAA,EAAM,WAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU,kDAAA;AAAA,IACV,QAAA,EAAU,uBAAA;AAAA,IACV,SAAA,EAAW,CAAC,KAAA,EAAO,SAAA,EAAW,UAAU,SAAA,EAAW,OAAA,EAAS,WAAW,OAAO,CAAA;AAAA,IAC9E,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,iCAAA,EAAkC;AAAA,MACtD,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,WAAA;AAAY,KACjC;AAAA,IACA,YAAA,EAAc,uCAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,aAAA;AAAA,IACN,OAAA,EAAS,aAAA;AAAA,IACT,QAAA,EAAU,4CAAA;AAAA,IACV,QAAA,EAAU,wBAAA;AAAA,IACV,SAAA,EAAW,CAAC,QAAA,EAAU,SAAA,EAAW,SAAS,OAAA,EAAS,KAAA,EAAO,WAAW,SAAS,CAAA;AAAA,IAC9E,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,aAAA,EAAc;AAAA,MACjC,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,kDAAA;AAAmD,KACzE;AAAA,IACA,YAAA,EAAc,iCAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,QAAA;AAAA,IACN,OAAA,EAAS,iBAAA;AAAA,IACT,QAAA,EAAU,uCAAA;AAAA,IACV,QAAA,EAAU,oBAAA;AAAA,IACV,WAAW,CAAC,KAAA,EAAO,SAAA,EAAW,OAAA,EAAS,WAAW,OAAO,CAAA;AAAA,IACzD,SAAS,CAAC,EAAE,MAAM,KAAA,EAAO,GAAA,EAAK,iDAAiD,CAAA;AAAA,IAC/E,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,QAAA;AAAA,IACN,OAAA,EAAS,QAAA;AAAA,IACT,QAAA,EAAU,wCAAA;AAAA,IACV,QAAA,EAAU,oBAAA;AAAA,IACV,SAAA,EAAW,CAAC,KAAA,EAAO,SAAS,CAAA;AAAA,IAC5B,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,QAAA,EAAS;AAAA,MAC5B,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,0CAAA;AAA2C,KACjE;AAAA,IACA,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,eAAA;AAAA,IACN,OAAA,EAAS,iBAAA;AAAA,IACT,QAAA,EACE,kHAAA;AAAA,IACF,QAAA,EAAU,yBAAA;AAAA,IACV,SAAA,EAAW,CAAC,KAAA,EAAO,SAAA,EAAW,QAAQ,CAAA;AAAA,IACtC,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,iBAAA,EAAkB;AAAA,MACrC,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,6CAAA;AAA8C,KACpE;AAAA,IACA,YAAA,EAAc,gCAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,YAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EACE,sFAAA;AAAA,IACF,QAAA,EAAU,sBAAA;AAAA,IACV,WAAW,CAAC,QAAA,EAAU,QAAA,EAAU,SAAA,EAAW,OAAO,SAAS,CAAA;AAAA,IAC3D,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,cAAA,EAAe;AAAA,MAClC,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,oDAAA;AAAqD,KAC3E;AAAA,IACA,YAAA,EACE;AAAA,GACJ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,gBAAA;AAAA,IACN,OAAA,EAAS,sBAAA;AAAA,IACT,QAAA,EAAU,6EAAA;AAAA,IACV,QAAA,EAAU,uCAAA;AAAA,IACV,WAAW,CAAC,KAAA,EAAO,WAAW,OAAA,EAAS,SAAA,EAAW,SAAS,QAAQ,CAAA;AAAA,IACnE,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,YAAA,EAAa;AAAA,MAChC,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,6CAAA;AAA8C,KACpE;AAAA,IACA,YAAA,EAAc,4CAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,QAAA,EAAU,+DAAA;AAAA,IACV,QAAA,EAAU,uBAAA;AAAA,IACV,WAAW,CAAC,KAAA,EAAO,SAAA,EAAW,OAAA,EAAS,WAAW,OAAO,CAAA;AAAA,IACzD,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,iCAAA,EAAkC;AAAA,MACtD,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,WAAA;AAAY,KACjC;AAAA,IACA,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,cAAA;AAAA,IACN,OAAA,EAAS,gBAAA;AAAA,IACT,QAAA,EACE,mGAAA;AAAA,IACF,QAAA,EAAU,4BAAA;AAAA,IACV,SAAA,EAAW,CAAC,KAAA,EAAO,SAAA,EAAW,QAAQ,CAAA;AAAA,IACtC,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,gBAAA,EAAiB;AAAA,MACpC,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,4DAAA;AAA6D,KACnF;AAAA,IACA,YAAA,EAAc,mCAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,UAAA;AAAA,IACN,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,qFAAA;AAAA,IACV,QAAA,EAAU,yBAAA;AAAA,IACV,WAAW,CAAC,KAAA,EAAO,SAAA,EAAW,OAAA,EAAS,WAAW,OAAO,CAAA;AAAA,IACzD,SAAS,CAAC,EAAE,MAAM,KAAA,EAAO,GAAA,EAAK,sCAAsC,CAAA;AAAA,IACpE,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,SAAA;AAAA,IACN,OAAA,EAAS,eAAA;AAAA,IACT,QAAA,EAAU,2DAAA;AAAA,IACV,QAAA,EAAU,yBAAA;AAAA,IACV,SAAA,EAAW,CAAC,KAAA,EAAO,SAAA,EAAW,UAAU,SAAS,CAAA;AAAA,IACjD,OAAA,EAAS;AAAA,MACP,EAAE,IAAA,EAAM,KAAA,EAAO,GAAA,EAAK,oDAAA,EAAqD;AAAA,MACzE,EAAE,IAAA,EAAM,IAAA,EAAM,GAAA,EAAK,eAAA;AAAgB,KACrC;AAAA,IACA,YAAA,EAAc,qCAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA;AAAA,IACE,IAAA,EAAM,UAAA;AAAA,IACN,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EACE,oGAAA;AAAA,IACF,QAAA,EAAU,2BAAA;AAAA,IACV,SAAA,EAAW,CAAC,QAAQ,CAAA;AAAA,IACpB,SAAS,CAAC,EAAE,MAAM,IAAA,EAAM,GAAA,EAAK,YAAY;AAAA;AAE7C,CAAA;AA2CO,SAAS,iBAAA,GAAqC;AACnD,EAAA,OAAO,eAAA;AACT;;;AC3OA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AAmCO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAME,qBAAAA,GAAuB,eAAe,IAAI,CAAA;AAEhD,EAAA,IAAI,CAACA,qBAAAA,EAAsB;AACzB,IAAA,OAAO,CAAA,gHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM;AAAA,IACJ,MAAA;AAAA,IACA,OAAA;AAAA,IACA,eAAA;AAAA,IACA,UAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAA;AAAA,IACA,qBAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AAEJ,EAAA,MAAM,YAAA,GAAe,UACjB,gEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,cAAc,qBAAA,IAAyB,0CAAA;AAC7C,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAG7C,EAAA,MAAM,UAAA,GAAa,cAAc,iBAAA,EAAkB;AAEnD,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHF,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,8BAAA,EACbA,aAAAA,CAAa,WAAW,CAAC,CAAA;AAAA,kBAAA,EACrC,IAAA,CAAK,SAAA,CAAU,UAAU,CAAC,CAAA;AAAA;AAAA,IAAA,EAExC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOE,sBAAqB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AACzF;;;AClFO,IAAM,UAAA,GAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/C,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,MAAM,CAAA;AAAA,EAC9C,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AAER,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,iBAAA,CAAkB;AAAA,MACvB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;AC9DA,IAAIJ,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,eAAA,CAAgB,OAAyB,KAAA,EAAsB;AAC7E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,4BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,qBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACzBA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AA0BO,SAAS,mBAAmB,OAAA,EAAqC;AACtE,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMG,sBAAAA,GAAwB,gBAAgB,IAAI,CAAA;AAElD,EAAA,IAAI,CAACA,sBAAAA,EAAuB;AAC1B,IAAA,OAAO,CAAA,iHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAElF,EAAA,MAAM,YAAA,GAAe,UACjB,iEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHH,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA,IAAA,EAEvC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOG,uBAAsB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC1F;;;AClEO,IAAM,WAAA,GAAqC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOhD,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,OAAO,CAAA;AAAA,EAC/C,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AAER,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,kBAAA,CAAmB;AAAA,MACxB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;ACpDA,IAAIL,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,iBAAA,CAAkB,OAAyB,KAAA,EAAsB;AAC/E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,8BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,uBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACzBA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AA0BO,SAAS,qBAAqB,OAAA,EAAuC;AAC1E,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMI,wBAAAA,GAA0B,kBAAkB,IAAI,CAAA;AAEtD,EAAA,IAAI,CAACA,wBAAAA,EAAyB;AAC5B,IAAA,OAAO,CAAA,mHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAElF,EAAA,MAAM,YAAA,GAAe,UACjB,mEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHJ,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA,IAAA,EAEvC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOI,yBAAwB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC5F;;;AClEO,IAAM,aAAA,GAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA;AAAA,EACjD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AAER,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,oBAAA,CAAqB;AAAA,MAC1B,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;ACpDA,IAAIN,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,iBAAA,CAAkB,OAAyB,KAAA,EAAsB;AAC/E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,8BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,uBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACzBA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AA0BO,SAAS,qBAAqB,OAAA,EAAuC;AAC1E,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMK,wBAAAA,GAA0B,kBAAkB,IAAI,CAAA;AAEtD,EAAA,IAAI,CAACA,wBAAAA,EAAyB;AAC5B,IAAA,OAAO,CAAA,mHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAElF,EAAA,MAAM,YAAA,GAAe,UACjB,mEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHL,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA,IAAA,EAEvC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOK,yBAAwB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC5F;;;ACjEO,IAAM,aAAA,GAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA;AAAA,EACjD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AAER,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,oBAAA,CAAqB;AAAA,MAC1B,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;ACrDA,IAAIP,kBAAAA,GAAmC,IAAA;AACvC,IAAIC,qBAAAA,GAAsC,IAAA;AAQnC,SAAS,eAAA,CAAgB,OAAyB,KAAA,EAAsB;AAC7E,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,IAAIA,0BAAyB,IAAA,EAAM;AACjC,MAAA,OAAOA,qBAAAA;AAAA,IACT;AACA,IAAA,IAAI;AAEF,MAAA,MAAM,QAAA,IAAW,qBAAA,EAAA,EAAA,YAAA,CAAA,wBAAA,CAAA,CAAA;AACjB,MAAAA,wBAAuB,QAAA,CAAS,4BAAA;AAChC,MAAA,OAAOA,qBAAAA;AAAA,IACT,CAAA,CAAA,MAAQ;AACN,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AAEA,EAAA,IAAID,uBAAsB,IAAA,EAAM;AAC9B,IAAA,OAAOA,kBAAAA;AAAA,EACT;AACA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,cAAA,EAAA,EAAA,YAAA,CAAA,iBAAA,CAAA,CAAA;AACjB,IAAAA,qBAAoB,QAAA,CAAS,qBAAA;AAC7B,IAAA,OAAOA,kBAAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACzBA,SAASE,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AA0BO,SAAS,mBAAmB,OAAA,EAAqC;AACtE,EAAA,MAAM,IAAA,GAAO,QAAQ,YAAA,IAAgB,KAAA;AACrC,EAAA,MAAMM,sBAAAA,GAAwB,gBAAgB,IAAI,CAAA;AAElD,EAAA,IAAI,CAACA,sBAAAA,EAAuB;AAC1B,IAAA,OAAO,CAAA,iHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAElF,EAAA,MAAM,YAAA,GAAe,UACjB,iEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHN,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,gBAAA,EAI3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA,IAAA,EAEvC,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOM,uBAAsB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,WAAW,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC1F;;;AClEO,IAAM,WAAA,GAAqC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOhD,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,OAAO,CAAA;AAAA,EAC/C,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AAER,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,kBAAA,CAAmB;AAAA,MACxB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;;;ACjDA,SAASN,cAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AAkBO,SAAS,sBAAsB,OAAA,EAAwC;AAC5E,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,OAAM,GAAI,OAAA;AAClF,EAAA,MAAM,WAAA,GAAc,oBAAoB,KAAK,CAAA;AAE7C,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACHA,aAAAA,CAAa,UAAU,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3BA,aAAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA;AAAA;AAAA,WAAA,CAAA;AAK3C,EAAA,OAAO,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAA,EAKqBA,aAAAA,CAAa,OAAA,IAAW,MAAM,CAAC,CAAA;AAAA,EAAA,EACzD,WAAW;AAAA,EAAA,EACX,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA,EAwGV,UAAU,CAAA,uBAAA,EAA0BA,aAAAA,CAAa,OAAO,CAAC,gBAAgB,EAAE;AAAA;AAAA,yBAAA,EAEtD,MAAA,CAAO,OAAA,CAAQ,CAAC,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAA,EAwB/B,MAAA,CAAO,OAAA,CAAQ,CAAC,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA,8BAAA,EAIE,OAAA,GAAU,eAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAA,CAAA;AAgC3D;;;AC/LO,IAAM,cAAA,GAAwC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKnD,SAAS,WAAA,EAA2C;AAClD,IAAA,IAAI,CAAC,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA,EAAG;AAC9C,MAAA,OAAO,KAAA;AAAA,IACT;AAGA,IAAA,IAAI,WAAA,CAAY,KAAA,EAAO,OAAA,KAAY,IAAA,EAAM;AACvC,MAAA,OAAO,IAAA;AAAA,IACT;AAGA,IAAA,IAAI,WAAA,CAAY,MAAA,KAAW,SAAA,IAAa,WAAA,CAAY,WAAW,SAAA,EAAW;AACxE,MAAA,OAAO,IAAA;AAAA,IACT;AAEA,IAAA,OAAO,KAAA;AAAA,EACT,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AACR,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,GACvB,UAAA,CAAW,YAAY,MAAM,CAAA,GAAI,GAAA,GACjC,WAAA,CAAY,iBAAA,GACV,UAAA,CAAW,WAAA,CAAY,iBAAiB,IAAI,GAAA,GAC5C,CAAA;AAEN,IAAA,OAAO,qBAAA,CAAsB;AAAA,MAC3B,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,OAAO,MAAA,CAAO;AAAA,KACf,CAAA;AAAA,EACH;AACF;AC1CA,SAAS,cAAA,CAAe,QAAgB,OAAA,EAAgC;AAEtE,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA,EAAG;AACjC,IAAA,MAAM,UAAU,QAAA,CAAS,OAAA,CAAQ,MAAM,GAAG,CAAA,CAAE,CAAC,CAAC,CAAA;AAC9C,IAAA,MAAM,SAAA,GAAoC;AAAA,MACxC,CAAA,EAAG,0BAAA;AAAA,MACH,IAAA,EAAM,0BAAA;AAAA,MACN,KAAA,EAAO,kCAAA;AAAA,MACP,KAAA,EAAO,yBAAA;AAAA,MACP,MAAA,EAAQ,iCAAA;AAAA,MACR,EAAA,EAAI,qCAAA;AAAA,MACJ,QAAA,EAAU,2CAAA;AAAA,MACV,GAAA,EAAK;AAAA,KACP;AACA,IAAA,MAAM,OAAA,GAAU,UAAU,OAAO,CAAA;AACjC,IAAA,OAAO,OAAA,GAAU,CAAA,EAAG,OAAO,CAAA,EAAG,MAAM,CAAA,CAAA,GAAK,IAAA;AAAA,EAC3C;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA,EAAG;AACjC,IAAA,MAAM,GAAA,GAAM,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AAChC,IAAA,MAAM,WAAW,GAAA,KAAQ,kCAAA;AACzB,IAAA,MAAM,OAAA,GAAU,WAAW,iBAAA,GAAoB,EAAA;AAC/C,IAAA,OAAO,CAAA,sBAAA,EAAyB,MAAM,CAAA,EAAG,OAAO,CAAA,CAAA;AAAA,EAClD;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,MAAM,CAAA,EAAG;AAC9B,IAAA,MAAM,GAAA,GAAM,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AAChC,IAAA,MAAM,YAAY,GAAA,KAAQ,SAAA;AAC1B,IAAA,OAAO,SAAA,GACH,CAAA,+BAAA,EAAkC,MAAM,CAAA,CAAA,GACxC,0BAA0B,MAAM,CAAA,CAAA;AAAA,EACtC;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,OAAO,CAAA,EAAG;AAC/B,IAAA,MAAM,GAAA,GAAM,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AAChC,IAAA,IAAI,GAAA,KAAQ,MAAA,EAAQ,OAAO,CAAA,wCAAA,EAA2C,MAAM,CAAA,CAAA;AAC5E,IAAA,IAAI,GAAA,KAAQ,QAAA,EAAU,OAAO,CAAA,0CAAA,EAA6C,MAAM,CAAA,CAAA;AAChF,IAAA,OAAO,sCAAsC,MAAM,CAAA,CAAA;AAAA,EACrD;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA,EAAG;AACjC,IAAA,MAAM,OAAA,GAAU,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AACpC,IAAA,MAAM,YAAY,OAAA,KAAY,YAAA;AAC9B,IAAA,OAAO,SAAA,GACH,CAAA,8BAAA,EAAiC,MAAM,CAAA,cAAA,CAAA,GACvC,iCAAiC,MAAM,CAAA,CAAA;AAAA,EAC7C;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA,EAAG;AACjC,IAAA,MAAM,OAAA,GAAU,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AACpC,IAAA,IAAI,OAAA,KAAY,SAAA,EAAW,OAAO,CAAA,iCAAA,EAAoC,MAAM,CAAA,CAAA;AAC5E,IAAA,IAAI,OAAA,KAAY,SAAA,EAAW,OAAO,CAAA,6CAAA,EAAgD,MAAM,CAAA,CAAA;AACxF,IAAA,OAAO,IAAA;AAAA,EACT;AAGA,EAAA,IAAI,OAAA,CAAQ,UAAA,CAAW,OAAO,CAAA,EAAG;AAC/B,IAAA,MAAM,GAAA,GAAM,OAAA,CAAQ,KAAA,CAAM,GAAG,EAAE,CAAC,CAAA;AAChC,IAAA,MAAM,YAAY,GAAA,KAAQ,SAAA;AAC1B,IAAA,OAAO,SAAA,GACH,CAAA,mCAAA,EAAsC,MAAM,CAAA,CAAA,GAC5C,8BAA8B,MAAM,CAAA,CAAA;AAAA,EAC1C;AAEA,EAAA,OAAO,IAAA;AACT;AAKA,SAAS,aAAa,IAAA,EAAsB;AAC1C,EAAA,IAAI,IAAA,CAAK,MAAA,IAAU,EAAA,EAAI,OAAO,IAAA;AAC9B,EAAA,OAAO,CAAA,EAAG,IAAA,CAAK,KAAA,CAAM,CAAA,EAAG,CAAC,CAAC,CAAA,GAAA,EAAM,IAAA,CAAK,KAAA,CAAM,EAAE,CAAC,CAAA,CAAA;AAChD;AAKA,SAAS,QAAA,GAAW;AAClB,EAAA,uBACEO,eAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,IAAA,EAAK,MAAA,EAAO,IAAA,EAAK,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,aAAA,EAAY,MAAA,EACtE,QAAA,EAAA;AAAA,oBAAAC,cAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,GAAA,EAAI,CAAA,EAAE,KAAI,KAAA,EAAM,GAAA,EAAI,MAAA,EAAO,GAAA,EAAI,EAAA,EAAG,GAAA,EAAI,MAAA,EAAO,cAAA,EAAe,aAAY,KAAA,EAAM,CAAA;AAAA,oBACtFA,cAAA;AAAA,MAAC,MAAA;AAAA,MAAA;AAAA,QACC,CAAA,EAAE,uBAAA;AAAA,QACF,MAAA,EAAO,cAAA;AAAA,QACP,WAAA,EAAY,KAAA;AAAA,QACZ,aAAA,EAAc;AAAA;AAAA;AAChB,GAAA,EACF,CAAA;AAEJ;AAKA,SAAS,SAAA,GAAY;AACnB,EAAA,uBACEA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,IAAA,EAAK,MAAA,EAAO,IAAA,EAAK,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,aAAA,EAAY,MAAA,EACtE,QAAA,kBAAAA,cAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,CAAA,EAAE,sBAAA;AAAA,MACF,MAAA,EAAO,cAAA;AAAA,MACP,WAAA,EAAY,GAAA;AAAA,MACZ,aAAA,EAAc,OAAA;AAAA,MACd,cAAA,EAAe;AAAA;AAAA,GACjB,EACF,CAAA;AAEJ;AAKA,SAAS,gBAAA,GAAmB;AAC1B,EAAA,uBACEA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,IAAA,EAAK,MAAA,EAAO,IAAA,EAAK,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,aAAA,EAAY,MAAA,EACtE,QAAA,kBAAAA,cAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,CAAA,EAAE,kFAAA;AAAA,MACF,MAAA,EAAO,cAAA;AAAA,MACP,WAAA,EAAY,KAAA;AAAA,MACZ,aAAA,EAAc,OAAA;AAAA,MACd,cAAA,EAAe;AAAA;AAAA,GACjB,EACF,CAAA;AAEJ;AAKA,SAAS,aAAA,GAAgB;AACvB,EAAA,uBACEA,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mBAAA;AAAA,MACV,aAAA,EAAY,MAAA;AAAA,MAEZ,QAAA,kBAAAA,cAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACC,EAAA,EAAG,GAAA;AAAA,UACH,EAAA,EAAG,GAAA;AAAA,UACH,CAAA,EAAE,GAAA;AAAA,UACF,MAAA,EAAO,cAAA;AAAA,UACP,WAAA,EAAY,GAAA;AAAA,UACZ,aAAA,EAAc,OAAA;AAAA,UACd,eAAA,EAAgB,IAAA;AAAA,UAChB,gBAAA,EAAiB;AAAA;AAAA;AACnB;AAAA,GACF;AAEJ;AAMO,SAAS,iBAAA,CAAkB;AAAA,EAChC,MAAA;AAAA,EACA,OAAA;AAAA,EACA,qBAAA,GAAwB,CAAA;AAAA,EACxB,WAAA;AAAA,EACA;AACF,CAAA,EAA2B;AACzB,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAIC,eAAmB,SAAS,CAAA;AACxD,EAAA,MAAM,CAAC,aAAA,EAAe,gBAAgB,CAAA,GAAIA,eAAS,CAAC,CAAA;AACpD,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAIA,eAAS,KAAK,CAAA;AAE1C,EAAA,MAAM,WAAA,GAAc,cAAA,CAAe,MAAA,EAAQ,OAAO,CAAA;AAElD,EAAA,MAAM,eAAA,GAAkBC,kBAAY,YAAY;AAC9C,IAAA,IAAI;AACF,MAAA,MAAM,SAAA,CAAU,SAAA,CAAU,SAAA,CAAU,MAAM,CAAA;AAC1C,MAAA,SAAA,CAAU,IAAI,CAAA;AACd,MAAA,UAAA,CAAW,MAAM,SAAA,CAAU,KAAK,CAAA,EAAG,GAAI,CAAA;AAAA,IACzC,CAAA,CAAA,MAAQ;AAEN,MAAA,MAAM,QAAA,GAAW,QAAA,CAAS,aAAA,CAAc,UAAU,CAAA;AAClD,MAAA,QAAA,CAAS,KAAA,GAAQ,MAAA;AACjB,MAAA,QAAA,CAAS,IAAA,CAAK,YAAY,QAAQ,CAAA;AAClC,MAAA,QAAA,CAAS,MAAA,EAAO;AAChB,MAAA,QAAA,CAAS,YAAY,MAAM,CAAA;AAC3B,MAAA,QAAA,CAAS,IAAA,CAAK,YAAY,QAAQ,CAAA;AAClC,MAAA,SAAA,CAAU,IAAI,CAAA;AACd,MAAA,UAAA,CAAW,MAAM,SAAA,CAAU,KAAK,CAAA,EAAG,GAAI,CAAA;AAAA,IACzC;AAAA,EACF,CAAA,EAAG,CAAC,MAAM,CAAC,CAAA;AAGX,EAAAC,eAAA,CAAU,MAAM;AACd,IAAA,IAAI,MAAA,KAAW,WAAA,IAAe,MAAA,KAAW,QAAA,EAAU;AAInD,IAAA,MAAM,KAAA,GAAQ,WAAW,MAAM;AAC7B,MAAA,IAAI,gBAAgB,qBAAA,EAAuB;AACzC,QAAA,gBAAA,CAAiB,CAAA,IAAA,KAAQ,OAAO,CAAC,CAAA;AACjC,QAAA,SAAA,CAAU,YAAY,CAAA;AAAA,MACxB;AAAA,IACF,GAAG,GAAI,CAAA;AAEP,IAAA,OAAO,MAAM,aAAa,KAAK,CAAA;AAAA,EACjC,CAAA,EAAG,CAAC,aAAA,EAAe,qBAAA,EAAuB,MAAM,CAAC,CAAA;AAGjD,EAAAA,eAAA,CAAU,MAAM;AACd,IAAA,IAAI,aAAA,IAAiB,qBAAA,IAAyB,MAAA,KAAW,WAAA,EAAa;AACpE,MAAA,SAAA,CAAU,WAAW,CAAA;AACrB,MAAA,WAAA,IAAc;AAAA,IAChB;AACA,IAAA,IAAI,WAAW,QAAA,EAAU;AACvB,MAAA,QAAA,GAAW,oBAAoB,CAAA;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,aAAA,EAAe,uBAAuB,MAAA,EAAQ,WAAA,EAAa,QAAQ,CAAC,CAAA;AAExE,EAAA,MAAM,gBAAgB,MAAM;AAC1B,IAAA,QAAQ,MAAA;AAAQ,MACd,KAAK,SAAA;AACH,QAAA,OAAO,6BAAA;AAAA,MACT,KAAK,YAAA;AACH,QAAA,OAAO,CAAA,EAAG,aAAa,CAAA,CAAA,EAAI,qBAAqB,gBAAgB,aAAA,KAAkB,CAAA,GAAI,MAAM,EAAE,CAAA,CAAA;AAAA,MAChG,KAAK,WAAA;AACH,QAAA,OAAO,uBAAA;AAAA,MACT,KAAK,QAAA;AACH,QAAA,OAAO,oBAAA;AAAA,MACT;AACE,QAAA,OAAO,EAAA;AAAA;AACX,EACF,CAAA;AAEA,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAA,QAAQ,MAAA;AAAQ,MACd,KAAK,WAAA;AACH,QAAA,OAAO,mBAAA;AAAA,MACT,KAAK,QAAA;AACH,QAAA,OAAO,iBAAA;AAAA,MACT;AACE,QAAA,OAAO,mBAAA;AAAA;AACX,EACF,CAAA;AAEA,EAAA,uCACG,KAAA,EAAA,EAAI,SAAA,EAAU,uBAAsB,IAAA,EAAK,QAAA,EAAS,aAAU,QAAA,EAC3D,QAAA,EAAA;AAAA,oBAAAJ,eAAA,CAAC,KAAA,EAAA,EAAI,WAAU,kBAAA,EACb,QAAA,EAAA;AAAA,sBAAAC,cAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,iBAAA,EAAkB,QAAA,EAAA,aAAA,EAAW,CAAA;AAAA,sCAC5C,KAAA,EAAA,EAAI,SAAA,EAAW,CAAA,gBAAA,EAAmB,cAAA,EAAgB,CAAA,CAAA,EAChD,QAAA,EAAA;AAAA,QAAA,MAAA,KAAW,SAAA,IAAa,MAAA,KAAW,YAAA,mBAClCA,cAAA,CAAC,aAAA,EAAA,EAAc,IACb,MAAA,KAAW,WAAA,mBACbA,cAAA,CAAC,SAAA,EAAA,EAAU,CAAA,GACT,IAAA;AAAA,wBACJA,cAAA,CAAC,MAAA,EAAA,EAAM,QAAA,EAAA,aAAA,EAAc,EAAE;AAAA,OAAA,EACzB;AAAA,KAAA,EACF,CAAA;AAAA,oBAEAD,eAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,aAAA,EACb,QAAA,EAAA;AAAA,sBAAAC,cAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAW,QAAA,EAAA,YAAA,CAAa,MAAM,CAAA,EAAE,CAAA;AAAA,sBAChDD,eAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,iBAAA,EACb,QAAA,EAAA;AAAA,wBAAAC,cAAA;AAAA,UAAC,QAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAU,kBAAA;AAAA,YACV,OAAA,EAAS,eAAA;AAAA,YACT,KAAA,EAAO,SAAS,SAAA,GAAY,uBAAA;AAAA,YAC5B,YAAA,EAAY,SAAS,qBAAA,GAAwB,uBAAA;AAAA,YAE5C,QAAA,EAAA,MAAA,mBAASA,cAAA,CAAC,SAAA,EAAA,EAAU,CAAA,kCAAM,QAAA,EAAA,EAAS;AAAA;AAAA,SACtC;AAAA,QACC,WAAA,oBACCA,cAAA;AAAA,UAAC,GAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAM,WAAA;AAAA,YACN,MAAA,EAAO,QAAA;AAAA,YACP,GAAA,EAAI,qBAAA;AAAA,YACJ,SAAA,EAAU,kBAAA;AAAA,YACV,KAAA,EAAM,kBAAA;AAAA,YACN,YAAA,EAAW,oCAAA;AAAA,YAEX,yCAAC,gBAAA,EAAA,EAAiB;AAAA;AAAA;AACpB,OAAA,EAEJ;AAAA,KAAA,EACF,CAAA;AAAA,IAEC,WAAW,YAAA,oBACVA,cAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAU,sBAAA;AAAA,QACV,IAAA,EAAK,aAAA;AAAA,QACL,eAAA,EAAe,aAAA;AAAA,QACf,eAAA,EAAe,qBAAA;AAAA,QAEf,QAAA,kBAAAA,cAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAU,2BAAA;AAAA,YACV,OAAO,EAAE,KAAA,EAAO,GAAI,aAAA,GAAgB,qBAAA,GAAyB,GAAG,CAAA,CAAA,CAAA;AAAI;AAAA;AACtE;AAAA;AACF,GAAA,EAEJ,CAAA;AAEJ;AAKO,SAAS,oBAAA,GAAuB;AACrC,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAIC,eAAwB,IAAI,CAAA;AACxD,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAIA,eAAwB,IAAI,CAAA;AAE9D,EAAA,MAAM,cAAA,GAAiBC,iBAAA,CAAY,CAAC,IAAA,EAAc,OAAA,KAAoB;AACpE,IAAA,SAAA,CAAU,IAAI,CAAA;AACd,IAAA,YAAA,CAAa,OAAO,CAAA;AAAA,EACtB,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,MAAM,gBAAA,GAAmBA,kBAAY,MAAM;AACzC,IAAA,SAAA,CAAU,IAAI,CAAA;AACd,IAAA,YAAA,CAAa,IAAI,CAAA;AAAA,EACnB,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,OAAO;AAAA,IACL,MAAA;AAAA,IACA,SAAA;AAAA,IACA,cAAA;AAAA,IACA,gBAAA;AAAA,IACA,gBAAgB,MAAA,KAAW;AAAA,GAC7B;AACF","file":"index.cjs","sourcesContent":["// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline EVM paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const EVM_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var aot=Object.create;var VR=Object.defineProperty;var cot=Object.getOwnPropertyDescriptor;var lot=Object.getOwnPropertyNames;var uot=Object.getPrototypeOf,dot=Object.prototype.hasOwnProperty;var qhe=t=>{throw TypeError(t)};var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ue=(t,e)=>{for(var r in e)VR(t,r,{get:e[r],enumerable:!0})},$R=(t,e,r,n)=>{if(e&&typeof e==\\\"object\\\"||typeof e==\\\"function\\\")for(let i of lot(e))!dot.call(t,i)&&i!==r&&VR(t,i,{get:()=>e[i],enumerable:!(n=cot(e,i))||n.enumerable});return t},So=(t,e,r)=>($R(t,e,\\\"default\\\"),r&&$R(r,e,\\\"default\\\")),Me=(t,e,r)=>(r=t!=null?aot(uot(t)):{},$R(e||!t||!t.__esModule?VR(r,\\\"default\\\",{value:t,enumerable:!0}):r,t)),mt=t=>$R(VR({},\\\"__esModule\\\",{value:!0}),t);var rW=(t,e,r)=>e.has(t)||qhe(\\\"Cannot \\\"+r);var V=(t,e,r)=>(rW(t,e,\\\"read from private field\\\"),r?r.call(t):e.get(t)),Fe=(t,e,r)=>e.has(t)?qhe(\\\"Cannot add the same private member more than once\\\"):e instanceof WeakSet?e.add(t):e.set(t,r),Ae=(t,e,r,n)=>(rW(t,e,\\\"write to private field\\\"),n?n.call(t,r):e.set(t,r),r),gt=(t,e,r)=>(rW(t,e,\\\"access private method\\\"),r);var T8=(t,e,r,n)=>({set _(i){Ae(t,e,i,r)},get _(){return V(t,e,n)}});var Vhe=q(WR=>{\\\"use strict\\\";u();WR.byteLength=pot;WR.toByteArray=mot;WR.fromByteArray=bot;var Hf=[],iu=[],fot=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,nW=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(Cb=0,zhe=nW.length;Cb<zhe;++Cb)Hf[Cb]=nW[Cb],iu[nW.charCodeAt(Cb)]=Cb;var Cb,zhe;iu[45]=62;iu[95]=63;function $he(t){var e=t.length;if(e%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var r=t.indexOf(\\\"=\\\");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function pot(t){var e=$he(t),r=e[0],n=e[1];return(r+n)*3/4-n}function hot(t,e,r){return(e+r)*3/4-r}function mot(t){var e,r=$he(t),n=r[0],i=r[1],s=new fot(hot(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)e=iu[t.charCodeAt(c)]<<18|iu[t.charCodeAt(c+1)]<<12|iu[t.charCodeAt(c+2)]<<6|iu[t.charCodeAt(c+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=iu[t.charCodeAt(c)]<<2|iu[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=iu[t.charCodeAt(c)]<<10|iu[t.charCodeAt(c+1)]<<4|iu[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function got(t){return Hf[t>>18&63]+Hf[t>>12&63]+Hf[t>>6&63]+Hf[t&63]}function yot(t,e,r){for(var n,i=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),i.push(got(n));return i.join(\\\"\\\")}function bot(t){for(var e,r=t.length,n=r%3,i=[],s=16383,o=0,a=r-n;o<a;o+=s)i.push(yot(t,o,o+s>a?a:o+s));return n===1?(e=t[r-1],i.push(Hf[e>>2]+Hf[e<<4&63]+\\\"==\\\")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Hf[e>>10]+Hf[e>>4&63]+Hf[e<<2&63]+\\\"=\\\")),i.join(\\\"\\\")}});var Whe=q(iW=>{u();iW.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<<a)-1,l=c>>1,d=-7,f=r?i-1:0,p=r?-1:1,h=t[e+f];for(f+=p,s=h&(1<<-d)-1,h>>=-d,d+=a;d>0;s=s*256+t[e+f],f+=p,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+t[e+f],f+=p,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(h?-1:1)*o*Math.pow(2,s-n)};iW.write=function(t,e,r,n,i,s){var o,a,c,l=s*8-i-1,d=(1<<l)-1,f=d>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,m=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?e+=p/c:e+=p*Math.pow(2,1-f),e*c>=2&&(o++,c/=2),o+f>=d?(a=0,o=d):o+f>=1?(a=(e*c-1)*Math.pow(2,i),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=a&255,h+=m,a/=256,i-=8);for(o=o<<i|a,l+=i;l>0;t[r+h]=o&255,h+=m,o/=256,l-=8);t[r+h-m]|=g*128}});var Qx=q(Zx=>{\\\"use strict\\\";u();var sW=Vhe(),Gx=Whe(),Ghe=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Zx.Buffer=ne;Zx.SlowBuffer=Cot;Zx.INSPECT_MAX_BYTES=50;var GR=2147483647;Zx.kMaxLength=GR;ne.TYPED_ARRAY_SUPPORT=wot();!ne.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function wot(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(ne.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(ne.isBuffer(this))return this.buffer}});Object.defineProperty(ne.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(ne.isBuffer(this))return this.byteOffset}});function Nh(t){if(t>GR)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,ne.prototype),e}function ne(t,e,r){if(typeof t==\\\"number\\\"){if(typeof e==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return lW(t)}return Jhe(t,e,r)}ne.poolSize=8192;function Jhe(t,e,r){if(typeof t==\\\"string\\\")return xot(t,e);if(ArrayBuffer.isView(t))return Eot(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(qf(t,ArrayBuffer)||t&&qf(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(qf(t,SharedArrayBuffer)||t&&qf(t.buffer,SharedArrayBuffer)))return aW(t,e,r);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return ne.from(n,e,r);let i=_ot(t);if(i)return i;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return ne.from(t[Symbol.toPrimitive](\\\"string\\\"),e,r);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}ne.from=function(t,e,r){return Jhe(t,e,r)};Object.setPrototypeOf(ne.prototype,Uint8Array.prototype);Object.setPrototypeOf(ne,Uint8Array);function Yhe(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function vot(t,e,r){return Yhe(t),t<=0?Nh(t):e!==void 0?typeof r==\\\"string\\\"?Nh(t).fill(e,r):Nh(t).fill(e):Nh(t)}ne.alloc=function(t,e,r){return vot(t,e,r)};function lW(t){return Yhe(t),Nh(t<0?0:uW(t)|0)}ne.allocUnsafe=function(t){return lW(t)};ne.allocUnsafeSlow=function(t){return lW(t)};function xot(t,e){if((typeof e!=\\\"string\\\"||e===\\\"\\\")&&(e=\\\"utf8\\\"),!ne.isEncoding(e))throw new TypeError(\\\"Unknown encoding: \\\"+e);let r=Xhe(t,e)|0,n=Nh(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function oW(t){let e=t.length<0?0:uW(t.length)|0,r=Nh(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Eot(t){if(qf(t,Uint8Array)){let e=new Uint8Array(t);return aW(e.buffer,e.byteOffset,e.byteLength)}return oW(t)}function aW(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,ne.prototype),n}function _ot(t){if(ne.isBuffer(t)){let e=uW(t.length)|0,r=Nh(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||fW(t.length)?Nh(0):oW(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return oW(t.data)}function uW(t){if(t>=GR)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+GR.toString(16)+\\\" bytes\\\");return t|0}function Cot(t){return+t!=t&&(t=0),ne.alloc(+t)}ne.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ne.prototype};ne.compare=function(e,r){if(qf(e,Uint8Array)&&(e=ne.from(e,e.offset,e.byteLength)),qf(r,Uint8Array)&&(r=ne.from(r,r.offset,r.byteLength)),!ne.isBuffer(e)||!ne.isBuffer(r))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let s=0,o=Math.min(n,i);s<o;++s)if(e[s]!==r[s]){n=e[s],i=r[s];break}return n<i?-1:i<n?1:0};ne.isEncoding=function(e){switch(String(e).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};ne.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(e.length===0)return ne.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=ne.allocUnsafe(r),s=0;for(n=0;n<e.length;++n){let o=e[n];if(qf(o,Uint8Array))s+o.length>i.length?(ne.isBuffer(o)||(o=ne.from(o)),o.copy(i,s)):Uint8Array.prototype.set.call(i,o,s);else if(ne.isBuffer(o))o.copy(i,s);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');s+=o.length}return i};function Xhe(t,e){if(ne.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||qf(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return r;case\\\"utf8\\\":case\\\"utf-8\\\":return cW(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return r*2;case\\\"hex\\\":return r>>>1;case\\\"base64\\\":return cme(t).length;default:if(i)return n?-1:cW(t).length;e=(\\\"\\\"+e).toLowerCase(),i=!0}}ne.byteLength=Xhe;function Sot(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return Mot(this,e,r);case\\\"utf8\\\":case\\\"utf-8\\\":return tme(this,e,r);case\\\"ascii\\\":return kot(this,e,r);case\\\"latin1\\\":case\\\"binary\\\":return Bot(this,e,r);case\\\"base64\\\":return Oot(this,e,r);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Dot(this,e,r);default:if(n)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),n=!0}}ne.prototype._isBuffer=!0;function Sb(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}ne.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let r=0;r<e;r+=2)Sb(this,r,r+1);return this};ne.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let r=0;r<e;r+=4)Sb(this,r,r+3),Sb(this,r+1,r+2);return this};ne.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let r=0;r<e;r+=8)Sb(this,r,r+7),Sb(this,r+1,r+6),Sb(this,r+2,r+5),Sb(this,r+3,r+4);return this};ne.prototype.toString=function(){let e=this.length;return e===0?\\\"\\\":arguments.length===0?tme(this,0,e):Sot.apply(this,arguments)};ne.prototype.toLocaleString=ne.prototype.toString;ne.prototype.equals=function(e){if(!ne.isBuffer(e))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===e?!0:ne.compare(this,e)===0};ne.prototype.inspect=function(){let e=\\\"\\\",r=Zx.INSPECT_MAX_BYTES;return e=this.toString(\\\"hex\\\",0,r).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>r&&(e+=\\\" ... \\\"),\\\"<Buffer \\\"+e+\\\">\\\"};Ghe&&(ne.prototype[Ghe]=ne.prototype.inspect);ne.prototype.compare=function(e,r,n,i,s){if(qf(e,Uint8Array)&&(e=ne.from(e,e.offset,e.byteLength)),!ne.isBuffer(e))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>e.length||i<0||s>this.length)throw new RangeError(\\\"out of range index\\\");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;let o=s-i,a=n-r,c=Math.min(o,a),l=this.slice(i,s),d=e.slice(r,n);for(let f=0;f<c;++f)if(l[f]!==d[f]){o=l[f],a=d[f];break}return o<a?-1:a<o?1:0};function eme(t,e,r,n,i){if(t.length===0)return-1;if(typeof r==\\\"string\\\"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,fW(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e==\\\"string\\\"&&(e=ne.from(e,n)),ne.isBuffer(e))return e.length===0?-1:Khe(t,e,r,n,i);if(typeof e==\\\"number\\\")return e=e&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Khe(t,[e],r,n,i);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function Khe(t,e,r,n,i){let s=1,o=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n===\\\"ucs2\\\"||n===\\\"ucs-2\\\"||n===\\\"utf16le\\\"||n===\\\"utf-16le\\\")){if(t.length<2||e.length<2)return-1;s=2,o/=2,a/=2,r/=2}function c(d,f){return s===1?d[f]:d.readUInt16BE(f*s)}let l;if(i){let d=-1;for(l=r;l<o;l++)if(c(t,l)===c(e,d===-1?0:l-d)){if(d===-1&&(d=l),l-d+1===a)return d*s}else d!==-1&&(l-=l-d),d=-1}else for(r+a>o&&(r=o-a),l=r;l>=0;l--){let d=!0;for(let f=0;f<a;f++)if(c(t,l+f)!==c(e,f)){d=!1;break}if(d)return l}return-1}ne.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};ne.prototype.indexOf=function(e,r,n){return eme(this,e,r,n,!0)};ne.prototype.lastIndexOf=function(e,r,n){return eme(this,e,r,n,!1)};function Aot(t,e,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let s=e.length;n>s/2&&(n=s/2);let o;for(o=0;o<n;++o){let a=parseInt(e.substr(o*2,2),16);if(fW(a))return o;t[r+o]=a}return o}function Tot(t,e,r,n){return KR(cW(e,t.length-r),t,r,n)}function Iot(t,e,r,n){return KR(jot(e),t,r,n)}function Rot(t,e,r,n){return KR(cme(e),t,r,n)}function Pot(t,e,r,n){return KR(Hot(e,t.length-r),t,r,n)}ne.prototype.write=function(e,r,n,i){if(r===void 0)i=\\\"utf8\\\",n=this.length,r=0;else if(n===void 0&&typeof r==\\\"string\\\")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i=\\\"utf8\\\")):(i=n,n=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let s=this.length-r;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");i||(i=\\\"utf8\\\");let o=!1;for(;;)switch(i){case\\\"hex\\\":return Aot(this,e,r,n);case\\\"utf8\\\":case\\\"utf-8\\\":return Tot(this,e,r,n);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return Iot(this,e,r,n);case\\\"base64\\\":return Rot(this,e,r,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Pot(this,e,r,n);default:if(o)throw new TypeError(\\\"Unknown encoding: \\\"+i);i=(\\\"\\\"+i).toLowerCase(),o=!0}};ne.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function Oot(t,e,r){return e===0&&r===t.length?sW.fromByteArray(t):sW.fromByteArray(t.slice(e,r))}function tme(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let s=t[i],o=null,a=s>239?4:s>223?3:s>191?2:1;if(i+a<=r){let c,l,d,f;switch(a){case 1:s<128&&(o=s);break;case 2:c=t[i+1],(c&192)===128&&(f=(s&31)<<6|c&63,f>127&&(o=f));break;case 3:c=t[i+1],l=t[i+2],(c&192)===128&&(l&192)===128&&(f=(s&15)<<12|(c&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:c=t[i+1],l=t[i+2],d=t[i+3],(c&192)===128&&(l&192)===128&&(d&192)===128&&(f=(s&15)<<18|(c&63)<<12|(l&63)<<6|d&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=a}return Not(n)}var Zhe=4096;function Not(t){let e=t.length;if(e<=Zhe)return String.fromCharCode.apply(String,t);let r=\\\"\\\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Zhe));return r}function kot(t,e,r){let n=\\\"\\\";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Bot(t,e,r){let n=\\\"\\\";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Mot(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i=\\\"\\\";for(let s=e;s<r;++s)i+=qot[t[s]];return i}function Dot(t,e,r){let n=t.slice(e,r),i=\\\"\\\";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}ne.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let i=this.subarray(e,r);return Object.setPrototypeOf(i,ne.prototype),i};function Xs(t,e,r){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+e>r)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}ne.prototype.readUintLE=ne.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Xs(e,r,this.length);let i=this[e],s=1,o=0;for(;++o<r&&(s*=256);)i+=this[e+o]*s;return i};ne.prototype.readUintBE=ne.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Xs(e,r,this.length);let i=this[e+--r],s=1;for(;r>0&&(s*=256);)i+=this[e+--r]*s;return i};ne.prototype.readUint8=ne.prototype.readUInt8=function(e,r){return e=e>>>0,r||Xs(e,1,this.length),this[e]};ne.prototype.readUint16LE=ne.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Xs(e,2,this.length),this[e]|this[e+1]<<8};ne.prototype.readUint16BE=ne.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Xs(e,2,this.length),this[e]<<8|this[e+1]};ne.prototype.readUint32LE=ne.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};ne.prototype.readUint32BE=ne.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};ne.prototype.readBigUInt64LE=eg(function(e){e=e>>>0,Kx(e,\\\"offset\\\");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&I8(e,this.length-8);let i=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});ne.prototype.readBigUInt64BE=eg(function(e){e=e>>>0,Kx(e,\\\"offset\\\");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&I8(e,this.length-8);let i=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});ne.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Xs(e,r,this.length);let i=this[e],s=1,o=0;for(;++o<r&&(s*=256);)i+=this[e+o]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*r)),i};ne.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Xs(e,r,this.length);let i=r,s=1,o=this[e+--i];for(;i>0&&(s*=256);)o+=this[e+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};ne.prototype.readInt8=function(e,r){return e=e>>>0,r||Xs(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};ne.prototype.readInt16LE=function(e,r){e=e>>>0,r||Xs(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};ne.prototype.readInt16BE=function(e,r){e=e>>>0,r||Xs(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};ne.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};ne.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};ne.prototype.readBigInt64LE=eg(function(e){e=e>>>0,Kx(e,\\\"offset\\\");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&I8(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});ne.prototype.readBigInt64BE=eg(function(e){e=e>>>0,Kx(e,\\\"offset\\\");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&I8(e,this.length-8);let i=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});ne.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),Gx.read(this,e,!0,23,4)};ne.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Xs(e,4,this.length),Gx.read(this,e,!1,23,4)};ne.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Xs(e,8,this.length),Gx.read(this,e,!0,52,8)};ne.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Xs(e,8,this.length),Gx.read(this,e,!1,52,8)};function pc(t,e,r,n,i,s){if(!ne.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('\\\"value\\\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\\\"Index out of range\\\")}ne.prototype.writeUintLE=ne.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;pc(this,e,r,n,a,0)}let s=1,o=0;for(this[r]=e&255;++o<n&&(s*=256);)this[r+o]=e/s&255;return r+n};ne.prototype.writeUintBE=ne.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;pc(this,e,r,n,a,0)}let s=n-1,o=1;for(this[r+s]=e&255;--s>=0&&(o*=256);)this[r+s]=e/o&255;return r+n};ne.prototype.writeUint8=ne.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,1,255,0),this[r]=e&255,r+1};ne.prototype.writeUint16LE=ne.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};ne.prototype.writeUint16BE=ne.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};ne.prototype.writeUint32LE=ne.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};ne.prototype.writeUint32BE=ne.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function rme(t,e,r,n,i){ame(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,r}function nme(t,e,r,n,i){ame(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o=o>>8,t[r+2]=o,o=o>>8,t[r+1]=o,o=o>>8,t[r]=o,r+8}ne.prototype.writeBigUInt64LE=eg(function(e,r=0){return rme(this,e,r,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});ne.prototype.writeBigUInt64BE=eg(function(e,r=0){return nme(this,e,r,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});ne.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);pc(this,e,r,n,c-1,-c)}let s=0,o=1,a=0;for(this[r]=e&255;++s<n&&(o*=256);)e<0&&a===0&&this[r+s-1]!==0&&(a=1),this[r+s]=(e/o>>0)-a&255;return r+n};ne.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);pc(this,e,r,n,c-1,-c)}let s=n-1,o=1,a=0;for(this[r+s]=e&255;--s>=0&&(o*=256);)e<0&&a===0&&this[r+s+1]!==0&&(a=1),this[r+s]=(e/o>>0)-a&255;return r+n};ne.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};ne.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};ne.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};ne.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};ne.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||pc(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};ne.prototype.writeBigInt64LE=eg(function(e,r=0){return rme(this,e,r,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});ne.prototype.writeBigInt64BE=eg(function(e,r=0){return nme(this,e,r,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function ime(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError(\\\"Index out of range\\\");if(r<0)throw new RangeError(\\\"Index out of range\\\")}function sme(t,e,r,n,i){return e=+e,r=r>>>0,i||ime(t,e,r,4,34028234663852886e22,-34028234663852886e22),Gx.write(t,e,r,n,23,4),r+4}ne.prototype.writeFloatLE=function(e,r,n){return sme(this,e,r,!0,n)};ne.prototype.writeFloatBE=function(e,r,n){return sme(this,e,r,!1,n)};function ome(t,e,r,n,i){return e=+e,r=r>>>0,i||ime(t,e,r,8,17976931348623157e292,-17976931348623157e292),Gx.write(t,e,r,n,52,8),r+8}ne.prototype.writeDoubleLE=function(e,r,n){return ome(this,e,r,!0,n)};ne.prototype.writeDoubleBE=function(e,r,n){return ome(this,e,r,!1,n)};ne.prototype.copy=function(e,r,n,i){if(!ne.isBuffer(e))throw new TypeError(\\\"argument should be a Buffer\\\");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(n<0||n>=this.length)throw new RangeError(\\\"Index out of range\\\");if(i<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);let s=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),s};ne.prototype.fill=function(e,r,n,i){if(typeof e==\\\"string\\\"){if(typeof r==\\\"string\\\"?(i=r,r=0,n=this.length):typeof n==\\\"string\\\"&&(i=n,n=this.length),i!==void 0&&typeof i!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof i==\\\"string\\\"&&!ne.isEncoding(i))throw new TypeError(\\\"Unknown encoding: \\\"+i);if(e.length===1){let o=e.charCodeAt(0);(i===\\\"utf8\\\"&&o<128||i===\\\"latin1\\\")&&(e=o)}}else typeof e==\\\"number\\\"?e=e&255:typeof e==\\\"boolean\\\"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError(\\\"Out of range index\\\");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e==\\\"number\\\")for(s=r;s<n;++s)this[s]=e;else{let o=ne.isBuffer(e)?e:ne.from(e,i),a=o.length;if(a===0)throw new TypeError('The value \\\"'+e+'\\\" is invalid for argument \\\"value\\\"');for(s=0;s<n-r;++s)this[s+r]=o[s%a]}return this};var Wx={};function dW(t,e,r){Wx[t]=class extends r{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}dW(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);dW(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,e){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof e}`},TypeError);dW(\\\"ERR_OUT_OF_RANGE\\\",function(t,e,r){let n=`The value of \\\"${t}\\\" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Qhe(String(r)):typeof r==\\\"bigint\\\"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Qhe(i)),i+=\\\"n\\\"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function Qhe(t){let e=\\\"\\\",r=t.length,n=t[0]===\\\"-\\\"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Lot(t,e,r){Kx(e,\\\"offset\\\"),(t[e]===void 0||t[e+r]===void 0)&&I8(e,t.length-(r+1))}function ame(t,e,r,n,i,s){if(t>r||t<e){let o=typeof e==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",a;throw s>3?e===0||e===BigInt(0)?a=`>= 0${o} and < 2${o} ** ${(s+1)*8}${o}`:a=`>= -(2${o} ** ${(s+1)*8-1}${o}) and < 2 ** ${(s+1)*8-1}${o}`:a=`>= ${e}${o} and <= ${r}${o}`,new Wx.ERR_OUT_OF_RANGE(\\\"value\\\",a,t)}Lot(n,i,s)}function Kx(t,e){if(typeof t!=\\\"number\\\")throw new Wx.ERR_INVALID_ARG_TYPE(e,\\\"number\\\",t)}function I8(t,e,r){throw Math.floor(t)!==t?(Kx(t,r),new Wx.ERR_OUT_OF_RANGE(r||\\\"offset\\\",\\\"an integer\\\",t)):e<0?new Wx.ERR_BUFFER_OUT_OF_BOUNDS:new Wx.ERR_OUT_OF_RANGE(r||\\\"offset\\\",`>= ${r?1:0} and <= ${e}`,t)}var Uot=/[^+/0-9A-Za-z-_]/g;function Fot(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace(Uot,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function cW(t,e){e=e||1/0;let r,n=t.length,i=null,s=[];for(let o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error(\\\"Invalid code point\\\")}return s}function jot(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Hot(t,e){let r,n,i,s=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,s.push(i),s.push(n);return s}function cme(t){return sW.toByteArray(Fot(t))}function KR(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function qf(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function fW(t){return t!==t}var qot=(function(){let t=\\\"0123456789abcdef\\\",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e})();function eg(t){return typeof BigInt>\\\"u\\\"?zot:t}function zot(){throw new Error(\\\"BigInt not supported\\\")}});var lme,u=x(()=>{\\\"use strict\\\";lme=Me(Qx(),1);globalThis.Buffer=lme.Buffer});var wme=q(wi=>{\\\"use strict\\\";u();function gW(t,e){var r=t.length;t.push(e);e:for(;0<r;){var n=r-1>>>1,i=t[n];if(0<ZR(i,e))t[n]=e,t[r]=i,r=n;else break e}}function zf(t){return t.length===0?null:t[0]}function JR(t){if(t.length===0)return null;var e=t[0],r=t.pop();if(r!==e){t[0]=r;e:for(var n=0,i=t.length,s=i>>>1;n<s;){var o=2*(n+1)-1,a=t[o],c=o+1,l=t[c];if(0>ZR(a,r))c<i&&0>ZR(l,a)?(t[n]=l,t[c]=r,n=c):(t[n]=a,t[o]=r,n=o);else if(c<i&&0>ZR(l,r))t[n]=l,t[c]=r,n=c;else break e}}return e}function ZR(t,e){var r=t.sortIndex-e.sortIndex;return r!==0?r:t.id-e.id}wi.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(ume=performance,wi.unstable_now=function(){return ume.now()}):(pW=Date,dme=pW.now(),wi.unstable_now=function(){return pW.now()-dme});var ume,pW,dme,kh=[],tg=[],$ot=1,su=null,ca=3,yW=!1,R8=!1,P8=!1,bW=!1,hme=typeof setTimeout==\\\"function\\\"?setTimeout:null,mme=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,fme=typeof setImmediate<\\\"u\\\"?setImmediate:null;function QR(t){for(var e=zf(tg);e!==null;){if(e.callback===null)JR(tg);else if(e.startTime<=t)JR(tg),e.sortIndex=e.expirationTime,gW(kh,e);else break;e=zf(tg)}}function wW(t){if(P8=!1,QR(t),!R8)if(zf(kh)!==null)R8=!0,Yx||(Yx=!0,Jx());else{var e=zf(tg);e!==null&&vW(wW,e.startTime-t)}}var Yx=!1,O8=-1,gme=5,yme=-1;function bme(){return bW?!0:!(wi.unstable_now()-yme<gme)}function hW(){if(bW=!1,Yx){var t=wi.unstable_now();yme=t;var e=!0;try{e:{R8=!1,P8&&(P8=!1,mme(O8),O8=-1),yW=!0;var r=ca;try{t:{for(QR(t),su=zf(kh);su!==null&&!(su.expirationTime>t&&bme());){var n=su.callback;if(typeof n==\\\"function\\\"){su.callback=null,ca=su.priorityLevel;var i=n(su.expirationTime<=t);if(t=wi.unstable_now(),typeof i==\\\"function\\\"){su.callback=i,QR(t),e=!0;break t}su===zf(kh)&&JR(kh),QR(t)}else JR(kh);su=zf(kh)}if(su!==null)e=!0;else{var s=zf(tg);s!==null&&vW(wW,s.startTime-t),e=!1}}break e}finally{su=null,ca=r,yW=!1}e=void 0}}finally{e?Jx():Yx=!1}}}var Jx;typeof fme==\\\"function\\\"?Jx=function(){fme(hW)}:typeof MessageChannel<\\\"u\\\"?(mW=new MessageChannel,pme=mW.port2,mW.port1.onmessage=hW,Jx=function(){pme.postMessage(null)}):Jx=function(){hme(hW,0)};var mW,pme;function vW(t,e){O8=hme(function(){t(wi.unstable_now())},e)}wi.unstable_IdlePriority=5;wi.unstable_ImmediatePriority=1;wi.unstable_LowPriority=4;wi.unstable_NormalPriority=3;wi.unstable_Profiling=null;wi.unstable_UserBlockingPriority=2;wi.unstable_cancelCallback=function(t){t.callback=null};wi.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):gme=0<t?Math.floor(1e3/t):5};wi.unstable_getCurrentPriorityLevel=function(){return ca};wi.unstable_next=function(t){switch(ca){case 1:case 2:case 3:var e=3;break;default:e=ca}var r=ca;ca=e;try{return t()}finally{ca=r}};wi.unstable_requestPaint=function(){bW=!0};wi.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=ca;ca=t;try{return e()}finally{ca=r}};wi.unstable_scheduleCallback=function(t,e,r){var n=wi.unstable_now();switch(typeof r==\\\"object\\\"&&r!==null?(r=r.delay,r=typeof r==\\\"number\\\"&&0<r?n+r:n):r=n,t){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,t={id:$ot++,callback:e,priorityLevel:t,startTime:r,expirationTime:i,sortIndex:-1},r>n?(t.sortIndex=r,gW(tg,t),zf(kh)===null&&t===zf(tg)&&(P8?(mme(O8),O8=-1):P8=!0,vW(wW,r-n))):(t.sortIndex=i,gW(kh,t),R8||yW||(R8=!0,Yx||(Yx=!0,Jx()))),t};wi.unstable_shouldYield=bme;wi.unstable_wrapCallback=function(t){var e=ca;return function(){var r=ca;ca=e;try{return t.apply(this,arguments)}finally{ca=r}}}});var xme=q((JZt,vme)=>{\\\"use strict\\\";u();vme.exports=wme()});var Nme=q(Et=>{\\\"use strict\\\";u();var _W=Symbol.for(\\\"react.transitional.element\\\"),Vot=Symbol.for(\\\"react.portal\\\"),Wot=Symbol.for(\\\"react.fragment\\\"),Got=Symbol.for(\\\"react.strict_mode\\\"),Kot=Symbol.for(\\\"react.profiler\\\"),Zot=Symbol.for(\\\"react.consumer\\\"),Qot=Symbol.for(\\\"react.context\\\"),Jot=Symbol.for(\\\"react.forward_ref\\\"),Yot=Symbol.for(\\\"react.suspense\\\"),Xot=Symbol.for(\\\"react.memo\\\"),Ame=Symbol.for(\\\"react.lazy\\\"),eat=Symbol.for(\\\"react.activity\\\"),Eme=Symbol.iterator;function tat(t){return t===null||typeof t!=\\\"object\\\"?null:(t=Eme&&t[Eme]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var Tme={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ime=Object.assign,Rme={};function eE(t,e,r){this.props=t,this.context=e,this.refs=Rme,this.updater=r||Tme}eE.prototype.isReactComponent={};eE.prototype.setState=function(t,e){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,e,\\\"setState\\\")};eE.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function Pme(){}Pme.prototype=eE.prototype;function CW(t,e,r){this.props=t,this.context=e,this.refs=Rme,this.updater=r||Tme}var SW=CW.prototype=new Pme;SW.constructor=CW;Ime(SW,eE.prototype);SW.isPureReactComponent=!0;var _me=Array.isArray;function EW(){}var Hn={H:null,A:null,T:null,S:null},Ome=Object.prototype.hasOwnProperty;function AW(t,e,r){var n=r.ref;return{$$typeof:_W,type:t,key:e,ref:n!==void 0?n:null,props:r}}function rat(t,e){return AW(t.type,e,t.props)}function TW(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===_W}function nat(t){var e={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(r){return e[r]})}var Cme=/\\\\/+/g;function xW(t,e){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?nat(\\\"\\\"+t.key):e.toString(36)}function iat(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(EW,EW):(t.status=\\\"pending\\\",t.then(function(e){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=e)},function(e){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=e)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function Xx(t,e,r,n,i){var s=typeof t;(s===\\\"undefined\\\"||s===\\\"boolean\\\")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":o=!0;break;case\\\"object\\\":switch(t.$$typeof){case _W:case Vot:o=!0;break;case Ame:return o=t._init,Xx(o(t._payload),e,r,n,i)}}if(o)return i=i(t),o=n===\\\"\\\"?\\\".\\\"+xW(t,0):n,_me(i)?(r=\\\"\\\",o!=null&&(r=o.replace(Cme,\\\"$&/\\\")+\\\"/\\\"),Xx(i,e,r,\\\"\\\",function(l){return l})):i!=null&&(TW(i)&&(i=rat(i,r+(i.key==null||t&&t.key===i.key?\\\"\\\":(\\\"\\\"+i.key).replace(Cme,\\\"$&/\\\")+\\\"/\\\")+o)),e.push(i)),1;o=0;var a=n===\\\"\\\"?\\\".\\\":n+\\\":\\\";if(_me(t))for(var c=0;c<t.length;c++)n=t[c],s=a+xW(n,c),o+=Xx(n,e,r,s,i);else if(c=tat(t),typeof c==\\\"function\\\")for(t=c.call(t),c=0;!(n=t.next()).done;)n=n.value,s=a+xW(n,c++),o+=Xx(n,e,r,s,i);else if(s===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Xx(iat(t),e,r,n,i);throw e=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(e===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":e)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return o}function YR(t,e,r){if(t==null)return t;var n=[],i=0;return Xx(t,n,\\\"\\\",\\\"\\\",function(s){return e.call(r,s,i++)}),n}function sat(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Sme=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},oat={map:YR,forEach:function(t,e,r){YR(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return YR(t,function(){e++}),e},toArray:function(t){return YR(t,function(e){return e})||[]},only:function(t){if(!TW(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};Et.Activity=eat;Et.Children=oat;Et.Component=eE;Et.Fragment=Wot;Et.Profiler=Kot;Et.PureComponent=CW;Et.StrictMode=Got;Et.Suspense=Yot;Et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Hn;Et.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Hn.H.useMemoCache(t)}};Et.cache=function(t){return function(){return t.apply(null,arguments)}};Et.cacheSignal=function(){return null};Et.cloneElement=function(t,e,r){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var n=Ime({},t.props),i=t.key;if(e!=null)for(s in e.key!==void 0&&(i=\\\"\\\"+e.key),e)!Ome.call(e,s)||s===\\\"key\\\"||s===\\\"__self\\\"||s===\\\"__source\\\"||s===\\\"ref\\\"&&e.ref===void 0||(n[s]=e[s]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var o=Array(s),a=0;a<s;a++)o[a]=arguments[a+2];n.children=o}return AW(t.type,i,n)};Et.createContext=function(t){return t={$$typeof:Qot,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Zot,_context:t},t};Et.createElement=function(t,e,r){var n,i={},s=null;if(e!=null)for(n in e.key!==void 0&&(s=\\\"\\\"+e.key),e)Ome.call(e,n)&&n!==\\\"key\\\"&&n!==\\\"__self\\\"&&n!==\\\"__source\\\"&&(i[n]=e[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1<o){for(var a=Array(o),c=0;c<o;c++)a[c]=arguments[c+2];i.children=a}if(t&&t.defaultProps)for(n in o=t.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return AW(t,s,i)};Et.createRef=function(){return{current:null}};Et.forwardRef=function(t){return{$$typeof:Jot,render:t}};Et.isValidElement=TW;Et.lazy=function(t){return{$$typeof:Ame,_payload:{_status:-1,_result:t},_init:sat}};Et.memo=function(t,e){return{$$typeof:Xot,type:t,compare:e===void 0?null:e}};Et.startTransition=function(t){var e=Hn.T,r={};Hn.T=r;try{var n=t(),i=Hn.S;i!==null&&i(r,n),typeof n==\\\"object\\\"&&n!==null&&typeof n.then==\\\"function\\\"&&n.then(EW,Sme)}catch(s){Sme(s)}finally{e!==null&&r.types!==null&&(e.types=r.types),Hn.T=e}};Et.unstable_useCacheRefresh=function(){return Hn.H.useCacheRefresh()};Et.use=function(t){return Hn.H.use(t)};Et.useActionState=function(t,e,r){return Hn.H.useActionState(t,e,r)};Et.useCallback=function(t,e){return Hn.H.useCallback(t,e)};Et.useContext=function(t){return Hn.H.useContext(t)};Et.useDebugValue=function(){};Et.useDeferredValue=function(t,e){return Hn.H.useDeferredValue(t,e)};Et.useEffect=function(t,e){return Hn.H.useEffect(t,e)};Et.useEffectEvent=function(t){return Hn.H.useEffectEvent(t)};Et.useId=function(){return Hn.H.useId()};Et.useImperativeHandle=function(t,e,r){return Hn.H.useImperativeHandle(t,e,r)};Et.useInsertionEffect=function(t,e){return Hn.H.useInsertionEffect(t,e)};Et.useLayoutEffect=function(t,e){return Hn.H.useLayoutEffect(t,e)};Et.useMemo=function(t,e){return Hn.H.useMemo(t,e)};Et.useOptimistic=function(t,e){return Hn.H.useOptimistic(t,e)};Et.useReducer=function(t,e,r){return Hn.H.useReducer(t,e,r)};Et.useRef=function(t){return Hn.H.useRef(t)};Et.useState=function(t){return Hn.H.useState(t)};Et.useSyncExternalStore=function(t,e,r){return Hn.H.useSyncExternalStore(t,e,r)};Et.useTransition=function(){return Hn.H.useTransition()};Et.version=\\\"19.2.4\\\"});var Vi=q((tQt,kme)=>{\\\"use strict\\\";u();kme.exports=Nme()});var Mme=q(Ba=>{\\\"use strict\\\";u();var aat=Vi();function Bme(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[r])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function rg(){}var ka={d:{f:rg,r:function(){throw Error(Bme(522))},D:rg,C:rg,L:rg,m:rg,X:rg,S:rg,M:rg},p:0,findDOMNode:null},cat=Symbol.for(\\\"react.portal\\\");function lat(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cat,key:n==null?null:\\\"\\\"+n,children:t,containerInfo:e,implementation:r}}var N8=aat.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function XR(t,e){if(t===\\\"font\\\")return\\\"\\\";if(typeof e==\\\"string\\\")return e===\\\"use-credentials\\\"?e:\\\"\\\"}Ba.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ka;Ba.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Bme(299));return lat(t,e,null,r)};Ba.flushSync=function(t){var e=N8.T,r=ka.p;try{if(N8.T=null,ka.p=2,t)return t()}finally{N8.T=e,ka.p=r,ka.d.f()}};Ba.preconnect=function(t,e){typeof t==\\\"string\\\"&&(e?(e=e.crossOrigin,e=typeof e==\\\"string\\\"?e===\\\"use-credentials\\\"?e:\\\"\\\":void 0):e=null,ka.d.C(t,e))};Ba.prefetchDNS=function(t){typeof t==\\\"string\\\"&&ka.d.D(t)};Ba.preinit=function(t,e){if(typeof t==\\\"string\\\"&&e&&typeof e.as==\\\"string\\\"){var r=e.as,n=XR(r,e.crossOrigin),i=typeof e.integrity==\\\"string\\\"?e.integrity:void 0,s=typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0;r===\\\"style\\\"?ka.d.S(t,typeof e.precedence==\\\"string\\\"?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:s}):r===\\\"script\\\"&&ka.d.X(t,{crossOrigin:n,integrity:i,fetchPriority:s,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}};Ba.preinitModule=function(t,e){if(typeof t==\\\"string\\\")if(typeof e==\\\"object\\\"&&e!==null){if(e.as==null||e.as===\\\"script\\\"){var r=XR(e.as,e.crossOrigin);ka.d.M(t,{crossOrigin:r,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}}else e==null&&ka.d.M(t)};Ba.preload=function(t,e){if(typeof t==\\\"string\\\"&&typeof e==\\\"object\\\"&&e!==null&&typeof e.as==\\\"string\\\"){var r=e.as,n=XR(r,e.crossOrigin);ka.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0,type:typeof e.type==\\\"string\\\"?e.type:void 0,fetchPriority:typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy==\\\"string\\\"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet==\\\"string\\\"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes==\\\"string\\\"?e.imageSizes:void 0,media:typeof e.media==\\\"string\\\"?e.media:void 0})}};Ba.preloadModule=function(t,e){if(typeof t==\\\"string\\\")if(e){var r=XR(e.as,e.crossOrigin);ka.d.m(t,{as:typeof e.as==\\\"string\\\"&&e.as!==\\\"script\\\"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0})}else ka.d.m(t)};Ba.requestFormReset=function(t){ka.d.r(t)};Ba.unstable_batchedUpdates=function(t,e){return t(e)};Ba.useFormState=function(t,e,r){return N8.H.useFormState(t,e,r)};Ba.useFormStatus=function(){return N8.H.useHostTransitionStatus()};Ba.version=\\\"19.2.4\\\"});var Ume=q((sQt,Lme)=>{\\\"use strict\\\";u();function Dme(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dme)}catch(t){console.error(t)}}Dme(),Lme.exports=Mme()});var Q1e=q(CO=>{\\\"use strict\\\";u();var Fs=xme(),uge=Vi(),uat=Ume();function le(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[r])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function dge(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function bS(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function fge(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pge(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Fme(t){if(bS(t)!==t)throw Error(le(188))}function dat(t){var e=t.alternate;if(!e){if(e=bS(t),e===null)throw Error(le(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Fme(i),t;if(s===n)return Fme(i),e;s=s.sibling}throw Error(le(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(le(189))}}if(r.alternate!==n)throw Error(le(190))}if(r.tag!==3)throw Error(le(188));return r.stateNode.current===r?t:e}function hge(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=hge(t),e!==null)return e;t=t.sibling}return null}var $n=Object.assign,fat=Symbol.for(\\\"react.element\\\"),eP=Symbol.for(\\\"react.transitional.element\\\"),j8=Symbol.for(\\\"react.portal\\\"),oE=Symbol.for(\\\"react.fragment\\\"),mge=Symbol.for(\\\"react.strict_mode\\\"),aG=Symbol.for(\\\"react.profiler\\\"),gge=Symbol.for(\\\"react.consumer\\\"),Hh=Symbol.for(\\\"react.context\\\"),rK=Symbol.for(\\\"react.forward_ref\\\"),cG=Symbol.for(\\\"react.suspense\\\"),lG=Symbol.for(\\\"react.suspense_list\\\"),nK=Symbol.for(\\\"react.memo\\\"),ng=Symbol.for(\\\"react.lazy\\\"),uG=Symbol.for(\\\"react.activity\\\"),pat=Symbol.for(\\\"react.memo_cache_sentinel\\\"),jme=Symbol.iterator;function k8(t){return t===null||typeof t!=\\\"object\\\"?null:(t=jme&&t[jme]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var hat=Symbol.for(\\\"react.client.reference\\\");function dG(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===hat?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case oE:return\\\"Fragment\\\";case aG:return\\\"Profiler\\\";case mge:return\\\"StrictMode\\\";case cG:return\\\"Suspense\\\";case lG:return\\\"SuspenseList\\\";case uG:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case j8:return\\\"Portal\\\";case Hh:return t.displayName||\\\"Context\\\";case gge:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case rK:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case nK:return e=t.displayName||null,e!==null?e:dG(t.type)||\\\"Memo\\\";case ng:e=t._payload,t=t._init;try{return dG(t(e))}catch{}}return null}var H8=Array.isArray,ct=uge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dr=uat.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ob={pending:!1,data:null,method:null,action:null},fG=[],aE=-1;function Kf(t){return{current:t}}function ro(t){0>aE||(t.current=fG[aE],fG[aE]=null,aE--)}function Sn(t,e){aE++,fG[aE]=t.current,t.current=e}var Gf=Kf(null),iS=Kf(null),hg=Kf(null),kP=Kf(null);function BP(t,e){switch(Sn(hg,e),Sn(iS,t),Sn(Gf,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?G0e(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=G0e(e),t=D1e(e,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}ro(Gf),Sn(Gf,t)}function SE(){ro(Gf),ro(iS),ro(hg)}function pG(t){t.memoizedState!==null&&Sn(kP,t);var e=Gf.current,r=D1e(e,t.type);e!==r&&(Sn(iS,t),Sn(Gf,r))}function MP(t){iS.current===t&&(ro(Gf),ro(iS)),kP.current===t&&(ro(kP),mS._currentValue=Ob)}var IW,Hme;function Tb(t){if(IW===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\\\\n( *(at )?)/);IW=e&&e[1]||\\\"\\\",Hme=-1<r.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<r.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+IW+t+Hme}var RW=!1;function PW(t,e){if(!t||RW)return\\\"\\\";RW=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(f,[])}catch(h){var p=h}Reflect.construct(t,[],f)}else{try{f.call()}catch(h){p=h}t.call(f.prototype)}}else{try{throw Error()}catch(h){p=h}(f=t())&&typeof f.catch==\\\"function\\\"&&f.catch(function(){})}}catch(h){if(h&&p&&typeof h.stack==\\\"string\\\")return[h.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,\\\"name\\\");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var s=n.DetermineComponentFrameRoot(),o=s[0],a=s[1];if(o&&a){var c=o.split(`\\n`),l=a.split(`\\n`);for(i=n=0;n<c.length&&!c[n].includes(\\\"DetermineComponentFrameRoot\\\");)n++;for(;i<l.length&&!l[i].includes(\\\"DetermineComponentFrameRoot\\\");)i++;if(n===c.length||i===l.length)for(n=c.length-1,i=l.length-1;1<=n&&0<=i&&c[n]!==l[i];)i--;for(;1<=n&&0<=i;n--,i--)if(c[n]!==l[i]){if(n!==1||i!==1)do if(n--,i--,0>i||c[n]!==l[i]){var d=`\\n`+c[n].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&d.includes(\\\"<anonymous>\\\")&&(d=d.replace(\\\"<anonymous>\\\",t.displayName)),d}while(1<=n&&0<=i);break}}}finally{RW=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:\\\"\\\")?Tb(r):\\\"\\\"}function mat(t,e){switch(t.tag){case 26:case 27:case 5:return Tb(t.type);case 16:return Tb(\\\"Lazy\\\");case 13:return t.child!==e&&e!==null?Tb(\\\"Suspense Fallback\\\"):Tb(\\\"Suspense\\\");case 19:return Tb(\\\"SuspenseList\\\");case 0:case 15:return PW(t.type,!1);case 11:return PW(t.type.render,!1);case 1:return PW(t.type,!0);case 31:return Tb(\\\"Activity\\\");default:return\\\"\\\"}}function qme(t){try{var e=\\\"\\\",r=null;do e+=mat(t,r),r=t,t=t.return;while(t);return e}catch(n){return`\\nError generating stack: `+n.message+`\\n`+n.stack}}var hG=Object.prototype.hasOwnProperty,iK=Fs.unstable_scheduleCallback,OW=Fs.unstable_cancelCallback,gat=Fs.unstable_shouldYield,yat=Fs.unstable_requestPaint,ul=Fs.unstable_now,bat=Fs.unstable_getCurrentPriorityLevel,yge=Fs.unstable_ImmediatePriority,bge=Fs.unstable_UserBlockingPriority,DP=Fs.unstable_NormalPriority,wat=Fs.unstable_LowPriority,wge=Fs.unstable_IdlePriority,vat=Fs.log,xat=Fs.unstable_setDisableYieldValue,wS=null,dl=null;function lg(t){if(typeof vat==\\\"function\\\"&&xat(t),dl&&typeof dl.setStrictMode==\\\"function\\\")try{dl.setStrictMode(wS,t)}catch{}}var fl=Math.clz32?Math.clz32:Cat,Eat=Math.log,_at=Math.LN2;function Cat(t){return t>>>=0,t===0?32:31-(Eat(t)/_at|0)|0}var tP=256,rP=262144,nP=4194304;function Ib(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function cO(t,e,r){var n=t.pendingLanes;if(n===0)return 0;var i=0,s=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var a=n&134217727;return a!==0?(n=a&~s,n!==0?i=Ib(n):(o&=a,o!==0?i=Ib(o):r||(r=a&~t,r!==0&&(i=Ib(r))))):(a=n&~s,a!==0?i=Ib(a):o!==0?i=Ib(o):r||(r=n&~t,r!==0&&(i=Ib(r)))),i===0?0:e!==0&&e!==i&&(e&s)===0&&(s=i&-i,r=e&-e,s>=r||s===32&&(r&4194048)!==0)?e:i}function vS(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Sat(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vge(){var t=nP;return nP<<=1,(nP&62914560)===0&&(nP=4194304),t}function NW(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function xS(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Aat(t,e,r,n,i,s){var o=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var a=t.entanglements,c=t.expirationTimes,l=t.hiddenUpdates;for(r=o&~r;0<r;){var d=31-fl(r),f=1<<d;a[d]=0,c[d]=-1;var p=l[d];if(p!==null)for(l[d]=null,d=0;d<p.length;d++){var h=p[d];h!==null&&(h.lane&=-536870913)}r&=~f}n!==0&&xge(t,n,0),s!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=s&~(o&~e))}function xge(t,e,r){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-fl(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|r&261930}function Ege(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-fl(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}function _ge(t,e){var r=e&-e;return r=(r&42)!==0?1:sK(r),(r&(t.suspendedLanes|e))!==0?0:r}function sK(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function oK(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Cge(){var t=Dr.p;return t!==0?t:(t=window.event,t===void 0?32:G1e(t.type))}function zme(t,e){var r=Dr.p;try{return Dr.p=t,e()}finally{Dr.p=r}}var Tg=Math.random().toString(36).slice(2),To=\\\"__reactFiber$\\\"+Tg,wc=\\\"__reactProps$\\\"+Tg,DE=\\\"__reactContainer$\\\"+Tg,mG=\\\"__reactEvents$\\\"+Tg,Tat=\\\"__reactListeners$\\\"+Tg,Iat=\\\"__reactHandles$\\\"+Tg,$me=\\\"__reactResources$\\\"+Tg,ES=\\\"__reactMarker$\\\"+Tg;function aK(t){delete t[To],delete t[wc],delete t[mG],delete t[Tat],delete t[Iat]}function cE(t){var e=t[To];if(e)return e;for(var r=t.parentNode;r;){if(e=r[DE]||r[To]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Y0e(t);t!==null;){if(r=t[To])return r;t=Y0e(t)}return e}t=r,r=t.parentNode}return null}function LE(t){if(t=t[To]||t[DE]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function q8(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(le(33))}function bE(t){var e=t[$me];return e||(e=t[$me]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function to(t){t[ES]=!0}var Sge=new Set,Age={};function Hb(t,e){AE(t,e),AE(t+\\\"Capture\\\",e)}function AE(t,e){for(Age[t]=e,t=0;t<e.length;t++)Sge.add(e[t])}var Rat=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),Vme={},Wme={};function Pat(t){return hG.call(Wme,t)?!0:hG.call(Vme,t)?!1:Rat.test(t)?Wme[t]=!0:(Vme[t]=!0,!1)}function bP(t,e,r){if(Pat(e))if(r===null)t.removeAttribute(e);else{switch(typeof r){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(e);return;case\\\"boolean\\\":var n=e.toLowerCase().slice(0,5);if(n!==\\\"data-\\\"&&n!==\\\"aria-\\\"){t.removeAttribute(e);return}}t.setAttribute(e,\\\"\\\"+r)}}function iP(t,e,r){if(r===null)t.removeAttribute(e);else{switch(typeof r){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(e);return}t.setAttribute(e,\\\"\\\"+r)}}function Bh(t,e,r,n){if(n===null)t.removeAttribute(r);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(r);return}t.setAttributeNS(e,r,\\\"\\\"+n)}}function au(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function Tge(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(e===\\\"checkbox\\\"||e===\\\"radio\\\")}function Oat(t,e,r){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<\\\"u\\\"&&typeof n.get==\\\"function\\\"&&typeof n.set==\\\"function\\\"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=\\\"\\\"+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=\\\"\\\"+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function gG(t){if(!t._valueTracker){var e=Tge(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=Oat(t,e,\\\"\\\"+t[e])}}function Ige(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n=\\\"\\\";return t&&(n=Tge(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function LP(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var Nat=/[\\\\n\\\"\\\\\\\\]/g;function uu(t){return t.replace(Nat,function(e){return\\\"\\\\\\\\\\\"+e.charCodeAt(0).toString(16)+\\\" \\\"})}function yG(t,e,r,n,i,s,o,a){t.name=\\\"\\\",o!=null&&typeof o!=\\\"function\\\"&&typeof o!=\\\"symbol\\\"&&typeof o!=\\\"boolean\\\"?t.type=o:t.removeAttribute(\\\"type\\\"),e!=null?o===\\\"number\\\"?(e===0&&t.value===\\\"\\\"||t.value!=e)&&(t.value=\\\"\\\"+au(e)):t.value!==\\\"\\\"+au(e)&&(t.value=\\\"\\\"+au(e)):o!==\\\"submit\\\"&&o!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),e!=null?bG(t,o,au(e)):r!=null?bG(t,o,au(r)):n!=null&&t.removeAttribute(\\\"value\\\"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"),a!=null&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"&&typeof a!=\\\"boolean\\\"?t.name=\\\"\\\"+au(a):t.removeAttribute(\\\"name\\\")}function Rge(t,e,r,n,i,s,o,a){if(s!=null&&typeof s!=\\\"function\\\"&&typeof s!=\\\"symbol\\\"&&typeof s!=\\\"boolean\\\"&&(t.type=s),e!=null||r!=null){if(!(s!==\\\"submit\\\"&&s!==\\\"reset\\\"||e!=null)){gG(t);return}r=r!=null?\\\"\\\"+au(r):\\\"\\\",e=e!=null?\\\"\\\"+au(e):r,a||e===t.value||(t.value=e),t.defaultValue=e}n=n??i,n=typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!!n,t.checked=a?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!=\\\"function\\\"&&typeof o!=\\\"symbol\\\"&&typeof o!=\\\"boolean\\\"&&(t.name=o),gG(t)}function bG(t,e,r){e===\\\"number\\\"&&LP(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+r||(t.defaultValue=\\\"\\\"+r)}function wE(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e[\\\"$\\\"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty(\\\"$\\\"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=\\\"\\\"+au(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Pge(t,e,r){if(e!=null&&(e=\\\"\\\"+au(e),e!==t.value&&(t.value=e),r==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=r!=null?\\\"\\\"+au(r):\\\"\\\"}function Oge(t,e,r,n){if(e==null){if(n!=null){if(r!=null)throw Error(le(92));if(H8(n)){if(1<n.length)throw Error(le(93));n=n[0]}r=n}r==null&&(r=\\\"\\\"),e=r}r=au(e),t.defaultValue=r,n=t.textContent,n===r&&n!==\\\"\\\"&&n!==null&&(t.value=n),gG(t)}function TE(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var kat=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function Gme(t,e,r){var n=e.indexOf(\\\"--\\\")===0;r==null||typeof r==\\\"boolean\\\"||r===\\\"\\\"?n?t.setProperty(e,\\\"\\\"):e===\\\"float\\\"?t.cssFloat=\\\"\\\":t[e]=\\\"\\\":n?t.setProperty(e,r):typeof r!=\\\"number\\\"||r===0||kat.has(e)?e===\\\"float\\\"?t.cssFloat=r:t[e]=(\\\"\\\"+r).trim():t[e]=r+\\\"px\\\"}function Nge(t,e,r){if(e!=null&&typeof e!=\\\"object\\\")throw Error(le(62));if(t=t.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf(\\\"--\\\")===0?t.setProperty(n,\\\"\\\"):n===\\\"float\\\"?t.cssFloat=\\\"\\\":t[n]=\\\"\\\");for(var i in e)n=e[i],e.hasOwnProperty(i)&&r[i]!==n&&Gme(t,i,n)}else for(var s in e)e.hasOwnProperty(s)&&Gme(t,s,e[s])}function cK(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var Bat=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),Mat=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function wP(t){return Mat.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function qh(){}var wG=null;function lK(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var lE=null,vE=null;function Kme(t){var e=LE(t);if(e&&(t=e.stateNode)){var r=t[wc]||null;e:switch(t=e.stateNode,e.type){case\\\"input\\\":if(yG(t,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),e=r.name,r.type===\\\"radio\\\"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name=\\\"'+uu(\\\"\\\"+e)+'\\\"][type=\\\"radio\\\"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=n[wc]||null;if(!i)throw Error(le(90));yG(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<r.length;e++)n=r[e],n.form===t.form&&Ige(n)}break e;case\\\"textarea\\\":Pge(t,r.value,r.defaultValue);break e;case\\\"select\\\":e=r.value,e!=null&&wE(t,!!r.multiple,e,!1)}}}var kW=!1;function kge(t,e,r){if(kW)return t(e,r);kW=!0;try{var n=t(e);return n}finally{if(kW=!1,(lE!==null||vE!==null)&&(vO(),lE&&(e=lE,t=vE,vE=lE=null,Kme(e),t)))for(e=0;e<t.length;e++)Kme(t[e])}}function sS(t,e){var r=t.stateNode;if(r===null)return null;var n=r[wc]||null;if(n===null)return null;r=n[e];e:switch(e){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(n=!n.disabled)||(t=t.type,n=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!=\\\"function\\\")throw Error(le(231,e,typeof r));return r}var Gh=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),vG=!1;if(Gh)try{tE={},Object.defineProperty(tE,\\\"passive\\\",{get:function(){vG=!0}}),window.addEventListener(\\\"test\\\",tE,tE),window.removeEventListener(\\\"test\\\",tE,tE)}catch{vG=!1}var tE,ug=null,uK=null,vP=null;function Bge(){if(vP)return vP;var t,e=uK,r=e.length,n,i=\\\"value\\\"in ug?ug.value:ug.textContent,s=i.length;for(t=0;t<r&&e[t]===i[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===i[s-n];n++);return vP=i.slice(t,1<n?1-n:void 0)}function xP(t){var e=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function sP(){return!0}function Zme(){return!1}function vc(t){function e(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?sP:Zme,this.isPropagationStopped=Zme,this}return $n(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!=\\\"unknown\\\"&&(r.returnValue=!1),this.isDefaultPrevented=sP)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!=\\\"unknown\\\"&&(r.cancelBubble=!0),this.isPropagationStopped=sP)},persist:function(){},isPersistent:sP}),e}var qb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lO=vc(qb),_S=$n({},qb,{view:0,detail:0}),Dat=vc(_S),BW,MW,B8,uO=$n({},_S,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dK,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==B8&&(B8&&t.type===\\\"mousemove\\\"?(BW=t.screenX-B8.screenX,MW=t.screenY-B8.screenY):MW=BW=0,B8=t),BW)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:MW}}),Qme=vc(uO),Lat=$n({},uO,{dataTransfer:0}),Uat=vc(Lat),Fat=$n({},_S,{relatedTarget:0}),DW=vc(Fat),jat=$n({},qb,{animationName:0,elapsedTime:0,pseudoElement:0}),Hat=vc(jat),qat=$n({},qb,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),zat=vc(qat),$at=$n({},qb,{data:0}),Jme=vc($at),Vat={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},Wat={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},Gat={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function Kat(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Gat[t])?!!e[t]:!1}function dK(){return Kat}var Zat=$n({},_S,{key:function(t){if(t.key){var e=Vat[t.key]||t.key;if(e!==\\\"Unidentified\\\")return e}return t.type===\\\"keypress\\\"?(t=xP(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?Wat[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dK,charCode:function(t){return t.type===\\\"keypress\\\"?xP(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?xP(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),Qat=vc(Zat),Jat=$n({},uO,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yme=vc(Jat),Yat=$n({},_S,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dK}),Xat=vc(Yat),ect=$n({},qb,{propertyName:0,elapsedTime:0,pseudoElement:0}),tct=vc(ect),rct=$n({},uO,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),nct=vc(rct),ict=$n({},qb,{newState:0,oldState:0}),sct=vc(ict),oct=[9,13,27,32],fK=Gh&&\\\"CompositionEvent\\\"in window,V8=null;Gh&&\\\"documentMode\\\"in document&&(V8=document.documentMode);var act=Gh&&\\\"TextEvent\\\"in window&&!V8,Mge=Gh&&(!fK||V8&&8<V8&&11>=V8),Xme=\\\" \\\",e0e=!1;function Dge(t,e){switch(t){case\\\"keyup\\\":return oct.indexOf(e.keyCode)!==-1;case\\\"keydown\\\":return e.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function Lge(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var uE=!1;function cct(t,e){switch(t){case\\\"compositionend\\\":return Lge(e);case\\\"keypress\\\":return e.which!==32?null:(e0e=!0,Xme);case\\\"textInput\\\":return t=e.data,t===Xme&&e0e?null:t;default:return null}}function lct(t,e){if(uE)return t===\\\"compositionend\\\"||!fK&&Dge(t,e)?(t=Bge(),vP=uK=ug=null,uE=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case\\\"compositionend\\\":return Mge&&e.locale!==\\\"ko\\\"?null:e.data;default:return null}}var uct={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function t0e(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e===\\\"input\\\"?!!uct[t.type]:e===\\\"textarea\\\"}function Uge(t,e,r,n){lE?vE?vE.push(n):vE=[n]:lE=n,e=tO(e,\\\"onChange\\\"),0<e.length&&(r=new lO(\\\"onChange\\\",\\\"change\\\",null,r,n),t.push({event:r,listeners:e}))}var W8=null,oS=null;function dct(t){k1e(t,0)}function dO(t){var e=q8(t);if(Ige(e))return t}function r0e(t,e){if(t===\\\"change\\\")return e}var Fge=!1;Gh&&(Gh?(aP=\\\"oninput\\\"in document,aP||(LW=document.createElement(\\\"div\\\"),LW.setAttribute(\\\"oninput\\\",\\\"return;\\\"),aP=typeof LW.oninput==\\\"function\\\"),oP=aP):oP=!1,Fge=oP&&(!document.documentMode||9<document.documentMode));var oP,aP,LW;function n0e(){W8&&(W8.detachEvent(\\\"onpropertychange\\\",jge),oS=W8=null)}function jge(t){if(t.propertyName===\\\"value\\\"&&dO(oS)){var e=[];Uge(e,oS,t,lK(t)),kge(dct,e)}}function fct(t,e,r){t===\\\"focusin\\\"?(n0e(),W8=e,oS=r,W8.attachEvent(\\\"onpropertychange\\\",jge)):t===\\\"focusout\\\"&&n0e()}function pct(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return dO(oS)}function hct(t,e){if(t===\\\"click\\\")return dO(e)}function mct(t,e){if(t===\\\"input\\\"||t===\\\"change\\\")return dO(e)}function gct(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var hl=typeof Object.is==\\\"function\\\"?Object.is:gct;function aS(t,e){if(hl(t,e))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof e!=\\\"object\\\"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!hG.call(e,i)||!hl(t[i],e[i]))return!1}return!0}function i0e(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function s0e(t,e){var r=i0e(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=i0e(r)}}function Hge(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hge(t,e.parentNode):\\\"contains\\\"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qge(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=LP(t.document);e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href==\\\"string\\\"}catch{r=!1}if(r)t=e.contentWindow;else break;e=LP(t.document)}return e}function pK(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||e===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var yct=Gh&&\\\"documentMode\\\"in document&&11>=document.documentMode,dE=null,xG=null,G8=null,EG=!1;function o0e(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;EG||dE==null||dE!==LP(n)||(n=dE,\\\"selectionStart\\\"in n&&pK(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),G8&&aS(G8,n)||(G8=n,n=tO(xG,\\\"onSelect\\\"),0<n.length&&(e=new lO(\\\"onSelect\\\",\\\"select\\\",null,e,r),t.push({event:e,listeners:n}),e.target=dE)))}function Ab(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r[\\\"Webkit\\\"+t]=\\\"webkit\\\"+e,r[\\\"Moz\\\"+t]=\\\"moz\\\"+e,r}var fE={animationend:Ab(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:Ab(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:Ab(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:Ab(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:Ab(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:Ab(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:Ab(\\\"Transition\\\",\\\"TransitionEnd\\\")},UW={},zge={};Gh&&(zge=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete fE.animationend.animation,delete fE.animationiteration.animation,delete fE.animationstart.animation),\\\"TransitionEvent\\\"in window||delete fE.transitionend.transition);function zb(t){if(UW[t])return UW[t];if(!fE[t])return t;var e=fE[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in zge)return UW[t]=e[r];return t}var $ge=zb(\\\"animationend\\\"),Vge=zb(\\\"animationiteration\\\"),Wge=zb(\\\"animationstart\\\"),bct=zb(\\\"transitionrun\\\"),wct=zb(\\\"transitionstart\\\"),vct=zb(\\\"transitioncancel\\\"),Gge=zb(\\\"transitionend\\\"),Kge=new Map,_G=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");_G.push(\\\"scrollEnd\\\");function Rd(t,e){Kge.set(t,e),Hb(e,[t])}var UP=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},ou=[],pE=0,hK=0;function fO(){for(var t=pE,e=hK=pE=0;e<t;){var r=ou[e];ou[e++]=null;var n=ou[e];ou[e++]=null;var i=ou[e];ou[e++]=null;var s=ou[e];if(ou[e++]=null,n!==null&&i!==null){var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}s!==0&&Zge(r,i,s)}}function pO(t,e,r,n){ou[pE++]=t,ou[pE++]=e,ou[pE++]=r,ou[pE++]=n,hK|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function mK(t,e,r,n){return pO(t,e,r,n),FP(t)}function $b(t,e){return pO(t,null,null,e),FP(t)}function Zge(t,e,r){t.lanes|=r;var n=t.alternate;n!==null&&(n.lanes|=r);for(var i=!1,s=t.return;s!==null;)s.childLanes|=r,n=s.alternate,n!==null&&(n.childLanes|=r),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(i=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,i&&e!==null&&(i=31-fl(r),t=s.hiddenUpdates,n=t[i],n===null?t[i]=[e]:n.push(e),e.lane=r|536870912),s):null}function FP(t){if(50<rS)throw rS=0,$G=null,Error(le(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var hE={};function xct(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cl(t,e,r,n){return new xct(t,e,r,n)}function gK(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $h(t,e){var r=t.alternate;return r===null?(r=cl(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&65011712,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r.refCleanup=t.refCleanup,r}function Qge(t,e){t.flags&=65011714;var r=t.alternate;return r===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,t.type=r.type,e=r.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function EP(t,e,r,n,i,s){var o=0;if(n=t,typeof t==\\\"function\\\")gK(t)&&(o=1);else if(typeof t==\\\"string\\\")o=Clt(t,r,Gf.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else e:switch(t){case uG:return t=cl(31,r,e,i),t.elementType=uG,t.lanes=s,t;case oE:return Nb(r.children,i,s,e);case mge:o=8,i|=24;break;case aG:return t=cl(12,r,e,i|2),t.elementType=aG,t.lanes=s,t;case cG:return t=cl(13,r,e,i),t.elementType=cG,t.lanes=s,t;case lG:return t=cl(19,r,e,i),t.elementType=lG,t.lanes=s,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case Hh:o=10;break e;case gge:o=9;break e;case rK:o=11;break e;case nK:o=14;break e;case ng:o=16,n=null;break e}o=29,r=Error(le(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),n=null}return e=cl(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Nb(t,e,r,n){return t=cl(7,t,n,e),t.lanes=r,t}function FW(t,e,r){return t=cl(6,t,null,e),t.lanes=r,t}function Jge(t){var e=cl(18,null,null,0);return e.stateNode=t,e}function jW(t,e,r){return e=cl(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var a0e=new WeakMap;function du(t,e){if(typeof t==\\\"object\\\"&&t!==null){var r=a0e.get(t);return r!==void 0?r:(e={value:t,source:e,stack:qme(e)},a0e.set(t,e),e)}return{value:t,source:e,stack:qme(e)}}var mE=[],gE=0,jP=null,cS=0,cu=[],lu=0,_g=null,$f=1,Vf=\\\"\\\";function Fh(t,e){mE[gE++]=cS,mE[gE++]=jP,jP=t,cS=e}function Yge(t,e,r){cu[lu++]=$f,cu[lu++]=Vf,cu[lu++]=_g,_g=t;var n=$f;t=Vf;var i=32-fl(n)-1;n&=~(1<<i),r+=1;var s=32-fl(e)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,$f=1<<32-fl(e)+i|r<<i|n,Vf=s+t}else $f=1<<s|r<<i|n,Vf=t}function yK(t){t.return!==null&&(Fh(t,1),Yge(t,1,0))}function bK(t){for(;t===jP;)jP=mE[--gE],mE[gE]=null,cS=mE[--gE],mE[gE]=null;for(;t===_g;)_g=cu[--lu],cu[lu]=null,Vf=cu[--lu],cu[lu]=null,$f=cu[--lu],cu[lu]=null}function Xge(t,e){cu[lu++]=$f,cu[lu++]=Vf,cu[lu++]=_g,$f=e.id,Vf=e.overflow,_g=t}var Io=null,zn=null,Xt=!1,mg=null,fu=!1,CG=Error(le(519));function Cg(t){var e=Error(le(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw lS(du(e,t)),CG}function c0e(t){var e=t.stateNode,r=t.type,n=t.memoizedProps;switch(e[To]=t,e[wc]=n,r){case\\\"dialog\\\":Wt(\\\"cancel\\\",e),Wt(\\\"close\\\",e);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":Wt(\\\"load\\\",e);break;case\\\"video\\\":case\\\"audio\\\":for(r=0;r<pS.length;r++)Wt(pS[r],e);break;case\\\"source\\\":Wt(\\\"error\\\",e);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":Wt(\\\"error\\\",e),Wt(\\\"load\\\",e);break;case\\\"details\\\":Wt(\\\"toggle\\\",e);break;case\\\"input\\\":Wt(\\\"invalid\\\",e),Rge(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case\\\"select\\\":Wt(\\\"invalid\\\",e);break;case\\\"textarea\\\":Wt(\\\"invalid\\\",e),Oge(e,n.value,n.defaultValue,n.children)}r=n.children,typeof r!=\\\"string\\\"&&typeof r!=\\\"number\\\"&&typeof r!=\\\"bigint\\\"||e.textContent===\\\"\\\"+r||n.suppressHydrationWarning===!0||M1e(e.textContent,r)?(n.popover!=null&&(Wt(\\\"beforetoggle\\\",e),Wt(\\\"toggle\\\",e)),n.onScroll!=null&&Wt(\\\"scroll\\\",e),n.onScrollEnd!=null&&Wt(\\\"scrollend\\\",e),n.onClick!=null&&(e.onclick=qh),e=!0):e=!1,e||Cg(t,!0)}function l0e(t){for(Io=t.return;Io;)switch(Io.tag){case 5:case 31:case 13:fu=!1;return;case 27:case 3:fu=!0;return;default:Io=Io.return}}function rE(t){if(t!==Io)return!1;if(!Xt)return l0e(t),Xt=!0,!1;var e=t.tag,r;if((r=e!==3&&e!==27)&&((r=e===5)&&(r=t.type,r=!(r!==\\\"form\\\"&&r!==\\\"button\\\")||ZG(t.type,t.memoizedProps)),r=!r),r&&zn&&Cg(t),l0e(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(le(317));zn=J0e(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(le(317));zn=J0e(t)}else e===27?(e=zn,Ig(t.type)?(t=XG,XG=null,zn=t):zn=e):zn=Io?hu(t.stateNode.nextSibling):null;return!0}function Db(){zn=Io=null,Xt=!1}function HW(){var t=mg;return t!==null&&(yc===null?yc=t:yc.push.apply(yc,t),mg=null),t}function lS(t){mg===null?mg=[t]:mg.push(t)}var SG=Kf(null),Vb=null,zh=null;function sg(t,e,r){Sn(SG,e._currentValue),e._currentValue=r}function Vh(t){t._currentValue=SG.current,ro(SG)}function AG(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function TG(t,e,r,n){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var a=s;s=i;for(var c=0;c<e.length;c++)if(a.context===e[c]){s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),AG(s.return,r,t),n||(o=null);break e}s=a.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(le(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),AG(o,r,t),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function UE(t,e,r,n){t=null;for(var i=e,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(le(387));if(o=o.memoizedProps,o!==null){var a=i.type;hl(i.pendingProps.value,o.value)||(t!==null?t.push(a):t=[a])}}else if(i===kP.current){if(o=i.alternate,o===null)throw Error(le(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(mS):t=[mS])}i=i.return}t!==null&&TG(e,t,r,n),e.flags|=262144}function HP(t){for(t=t.firstContext;t!==null;){if(!hl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Lb(t){Vb=t,zh=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ro(t){return eye(Vb,t)}function cP(t,e){return Vb===null&&Lb(t),eye(t,e)}function eye(t,e){var r=e._currentValue;if(e={context:e,memoizedValue:r,next:null},zh===null){if(t===null)throw Error(le(308));zh=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else zh=zh.next=e;return r}var Ect=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(r,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(r){return r()})}},_ct=Fs.unstable_scheduleCallback,Cct=Fs.unstable_NormalPriority,bs={$$typeof:Hh,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wK(){return{controller:new Ect,data:new Map,refCount:0}}function CS(t){t.refCount--,t.refCount===0&&_ct(Cct,function(){t.controller.abort()})}var K8=null,IG=0,IE=0,xE=null;function Sct(t,e){if(K8===null){var r=K8=[];IG=0,IE=$K(),xE={status:\\\"pending\\\",value:void 0,then:function(n){r.push(n)}}}return IG++,e.then(u0e,u0e),e}function u0e(){if(--IG===0&&K8!==null){xE!==null&&(xE.status=\\\"fulfilled\\\");var t=K8;K8=null,IE=0,xE=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Act(t,e){var r=[],n={status:\\\"pending\\\",value:null,reason:null,then:function(i){r.push(i)}};return t.then(function(){n.status=\\\"fulfilled\\\",n.value=e;for(var i=0;i<r.length;i++)(0,r[i])(e)},function(i){for(n.status=\\\"rejected\\\",n.reason=i,i=0;i<r.length;i++)(0,r[i])(void 0)}),n}var d0e=ct.S;ct.S=function(t,e){h1e=ul(),typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\"&&Sct(t,e),d0e!==null&&d0e(t,e)};var kb=Kf(null);function vK(){var t=kb.current;return t!==null?t:cn.pooledCache}function _P(t,e){e===null?Sn(kb,kb.current):Sn(kb,e.pool)}function tye(){var t=vK();return t===null?null:{parent:bs._currentValue,pool:t}}var FE=Error(le(460)),xK=Error(le(474)),hO=Error(le(542)),qP={then:function(){}};function f0e(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function rye(t,e,r){switch(r=t[r],r===void 0?t.push(e):r!==e&&(e.then(qh,qh),e=r),e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,h0e(t),t;default:if(typeof e.status==\\\"string\\\")e.then(qh,qh);else{if(t=cn,t!==null&&100<t.shellSuspendCounter)throw Error(le(482));t=e,t.status=\\\"pending\\\",t.then(function(n){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"fulfilled\\\",i.value=n}},function(n){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"rejected\\\",i.reason=n}})}switch(e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,h0e(t),t}throw Bb=e,FE}}function Rb(t){try{var e=t._init;return e(t._payload)}catch(r){throw r!==null&&typeof r==\\\"object\\\"&&typeof r.then==\\\"function\\\"?(Bb=r,FE):r}}var Bb=null;function p0e(){if(Bb===null)throw Error(le(459));var t=Bb;return Bb=null,t}function h0e(t){if(t===FE||t===hO)throw Error(le(483))}var EE=null,uS=0;function lP(t){var e=uS;return uS+=1,EE===null&&(EE=[]),rye(EE,t,e)}function M8(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function uP(t,e){throw e.$$typeof===fat?Error(le(525)):(t=Object.prototype.toString.call(e),Error(le(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(e).join(\\\", \\\")+\\\"}\\\":t)))}function nye(t){function e(v,b){if(t){var _=v.deletions;_===null?(v.deletions=[b],v.flags|=16):_.push(b)}}function r(v,b){if(!t)return null;for(;b!==null;)e(v,b),b=b.sibling;return null}function n(v){for(var b=new Map;v!==null;)v.key!==null?b.set(v.key,v):b.set(v.index,v),v=v.sibling;return b}function i(v,b){return v=$h(v,b),v.index=0,v.sibling=null,v}function s(v,b,_){return v.index=_,t?(_=v.alternate,_!==null?(_=_.index,_<b?(v.flags|=67108866,b):_):(v.flags|=67108866,b)):(v.flags|=1048576,b)}function o(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function a(v,b,_,S){return b===null||b.tag!==6?(b=FW(_,v.mode,S),b.return=v,b):(b=i(b,_),b.return=v,b)}function c(v,b,_,S){var T=_.type;return T===oE?d(v,b,_.props.children,S,_.key):b!==null&&(b.elementType===T||typeof T==\\\"object\\\"&&T!==null&&T.$$typeof===ng&&Rb(T)===b.type)?(b=i(b,_.props),M8(b,_),b.return=v,b):(b=EP(_.type,_.key,_.props,null,v.mode,S),M8(b,_),b.return=v,b)}function l(v,b,_,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=jW(_,v.mode,S),b.return=v,b):(b=i(b,_.children||[]),b.return=v,b)}function d(v,b,_,S,T){return b===null||b.tag!==7?(b=Nb(_,v.mode,S,T),b.return=v,b):(b=i(b,_),b.return=v,b)}function f(v,b,_){if(typeof b==\\\"string\\\"&&b!==\\\"\\\"||typeof b==\\\"number\\\"||typeof b==\\\"bigint\\\")return b=FW(\\\"\\\"+b,v.mode,_),b.return=v,b;if(typeof b==\\\"object\\\"&&b!==null){switch(b.$$typeof){case eP:return _=EP(b.type,b.key,b.props,null,v.mode,_),M8(_,b),_.return=v,_;case j8:return b=jW(b,v.mode,_),b.return=v,b;case ng:return b=Rb(b),f(v,b,_)}if(H8(b)||k8(b))return b=Nb(b,v.mode,_,null),b.return=v,b;if(typeof b.then==\\\"function\\\")return f(v,lP(b),_);if(b.$$typeof===Hh)return f(v,cP(v,b),_);uP(v,b)}return null}function p(v,b,_,S){var T=b!==null?b.key:null;if(typeof _==\\\"string\\\"&&_!==\\\"\\\"||typeof _==\\\"number\\\"||typeof _==\\\"bigint\\\")return T!==null?null:a(v,b,\\\"\\\"+_,S);if(typeof _==\\\"object\\\"&&_!==null){switch(_.$$typeof){case eP:return _.key===T?c(v,b,_,S):null;case j8:return _.key===T?l(v,b,_,S):null;case ng:return _=Rb(_),p(v,b,_,S)}if(H8(_)||k8(_))return T!==null?null:d(v,b,_,S,null);if(typeof _.then==\\\"function\\\")return p(v,b,lP(_),S);if(_.$$typeof===Hh)return p(v,b,cP(v,_),S);uP(v,_)}return null}function h(v,b,_,S,T){if(typeof S==\\\"string\\\"&&S!==\\\"\\\"||typeof S==\\\"number\\\"||typeof S==\\\"bigint\\\")return v=v.get(_)||null,a(b,v,\\\"\\\"+S,T);if(typeof S==\\\"object\\\"&&S!==null){switch(S.$$typeof){case eP:return v=v.get(S.key===null?_:S.key)||null,c(b,v,S,T);case j8:return v=v.get(S.key===null?_:S.key)||null,l(b,v,S,T);case ng:return S=Rb(S),h(v,b,_,S,T)}if(H8(S)||k8(S))return v=v.get(_)||null,d(b,v,S,T,null);if(typeof S.then==\\\"function\\\")return h(v,b,_,lP(S),T);if(S.$$typeof===Hh)return h(v,b,_,cP(b,S),T);uP(b,S)}return null}function m(v,b,_,S){for(var T=null,N=null,O=b,L=b=0,B=null;O!==null&&L<_.length;L++){O.index>L?(B=O,O=null):B=O.sibling;var H=p(v,O,_[L],S);if(H===null){O===null&&(O=B);break}t&&O&&H.alternate===null&&e(v,O),b=s(H,b,L),N===null?T=H:N.sibling=H,N=H,O=B}if(L===_.length)return r(v,O),Xt&&Fh(v,L),T;if(O===null){for(;L<_.length;L++)O=f(v,_[L],S),O!==null&&(b=s(O,b,L),N===null?T=O:N.sibling=O,N=O);return Xt&&Fh(v,L),T}for(O=n(O);L<_.length;L++)B=h(O,v,L,_[L],S),B!==null&&(t&&B.alternate!==null&&O.delete(B.key===null?L:B.key),b=s(B,b,L),N===null?T=B:N.sibling=B,N=B);return t&&O.forEach(function(M){return e(v,M)}),Xt&&Fh(v,L),T}function g(v,b,_,S){if(_==null)throw Error(le(151));for(var T=null,N=null,O=b,L=b=0,B=null,H=_.next();O!==null&&!H.done;L++,H=_.next()){O.index>L?(B=O,O=null):B=O.sibling;var M=p(v,O,H.value,S);if(M===null){O===null&&(O=B);break}t&&O&&M.alternate===null&&e(v,O),b=s(M,b,L),N===null?T=M:N.sibling=M,N=M,O=B}if(H.done)return r(v,O),Xt&&Fh(v,L),T;if(O===null){for(;!H.done;L++,H=_.next())H=f(v,H.value,S),H!==null&&(b=s(H,b,L),N===null?T=H:N.sibling=H,N=H);return Xt&&Fh(v,L),T}for(O=n(O);!H.done;L++,H=_.next())H=h(O,v,L,H.value,S),H!==null&&(t&&H.alternate!==null&&O.delete(H.key===null?L:H.key),b=s(H,b,L),N===null?T=H:N.sibling=H,N=H);return t&&O.forEach(function(F){return e(v,F)}),Xt&&Fh(v,L),T}function w(v,b,_,S){if(typeof _==\\\"object\\\"&&_!==null&&_.type===oE&&_.key===null&&(_=_.props.children),typeof _==\\\"object\\\"&&_!==null){switch(_.$$typeof){case eP:e:{for(var T=_.key;b!==null;){if(b.key===T){if(T=_.type,T===oE){if(b.tag===7){r(v,b.sibling),S=i(b,_.props.children),S.return=v,v=S;break e}}else if(b.elementType===T||typeof T==\\\"object\\\"&&T!==null&&T.$$typeof===ng&&Rb(T)===b.type){r(v,b.sibling),S=i(b,_.props),M8(S,_),S.return=v,v=S;break e}r(v,b);break}else e(v,b);b=b.sibling}_.type===oE?(S=Nb(_.props.children,v.mode,S,_.key),S.return=v,v=S):(S=EP(_.type,_.key,_.props,null,v.mode,S),M8(S,_),S.return=v,v=S)}return o(v);case j8:e:{for(T=_.key;b!==null;){if(b.key===T)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){r(v,b.sibling),S=i(b,_.children||[]),S.return=v,v=S;break e}else{r(v,b);break}else e(v,b);b=b.sibling}S=jW(_,v.mode,S),S.return=v,v=S}return o(v);case ng:return _=Rb(_),w(v,b,_,S)}if(H8(_))return m(v,b,_,S);if(k8(_)){if(T=k8(_),typeof T!=\\\"function\\\")throw Error(le(150));return _=T.call(_),g(v,b,_,S)}if(typeof _.then==\\\"function\\\")return w(v,b,lP(_),S);if(_.$$typeof===Hh)return w(v,b,cP(v,_),S);uP(v,_)}return typeof _==\\\"string\\\"&&_!==\\\"\\\"||typeof _==\\\"number\\\"||typeof _==\\\"bigint\\\"?(_=\\\"\\\"+_,b!==null&&b.tag===6?(r(v,b.sibling),S=i(b,_),S.return=v,v=S):(r(v,b),S=FW(_,v.mode,S),S.return=v,v=S),o(v)):r(v,b)}return function(v,b,_,S){try{uS=0;var T=w(v,b,_,S);return EE=null,T}catch(O){if(O===FE||O===hO)throw O;var N=cl(29,O,null,v.mode);return N.lanes=S,N.return=v,N}}}var Ub=nye(!0),iye=nye(!1),ig=!1;function EK(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function RG(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function gg(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function yg(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Mr&2)!==0){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,e=FP(t),Zge(t,null,r),e}return pO(t,n,e,r),FP(t)}function Z8(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Ege(t,r)}}function qW(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}var PG=!1;function Q8(){if(PG){var t=xE;if(t!==null)throw t}}function J8(t,e,r,n){PG=!1;var i=t.updateQueue;ig=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?s=l:o.next=l,o=c;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=c))}if(s!==null){var f=i.baseState;o=0,d=l=c=null,a=s;do{var p=a.lane&-536870913,h=p!==a.lane;if(h?(Qt&p)===p:(n&p)===p){p!==0&&p===IE&&(PG=!0),d!==null&&(d=d.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var m=t,g=a;p=e;var w=r;switch(g.tag){case 1:if(m=g.payload,typeof m==\\\"function\\\"){f=m.call(w,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m==\\\"function\\\"?m.call(w,f,p):m,p==null)break e;f=$n({},f,p);break e;case 2:ig=!0}}p=a.callback,p!==null&&(t.flags|=64,h&&(t.flags|=8192),h=i.callbacks,h===null?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(l=d=h,c=f):d=d.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=d,s===null&&(i.shared.lanes=0),Ag|=o,t.lanes=o,t.memoizedState=f}}function sye(t,e){if(typeof t!=\\\"function\\\")throw Error(le(191,t));t.call(e)}function oye(t,e){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)sye(r[t],e)}var RE=Kf(null),zP=Kf(0);function m0e(t,e){t=Jh,Sn(zP,t),Sn(RE,e),Jh=t|e.baseLanes}function OG(){Sn(zP,Jh),Sn(RE,RE.current)}function _K(){Jh=zP.current,ro(RE),ro(zP)}var ml=Kf(null),pu=null;function og(t){var e=t.alternate;Sn(ss,ss.current&1),Sn(ml,t),pu===null&&(e===null||RE.current!==null||e.memoizedState!==null)&&(pu=t)}function NG(t){Sn(ss,ss.current),Sn(ml,t),pu===null&&(pu=t)}function aye(t){t.tag===22?(Sn(ss,ss.current),Sn(ml,t),pu===null&&(pu=t)):ag(t)}function ag(){Sn(ss,ss.current),Sn(ml,ml.current)}function al(t){ro(ml),pu===t&&(pu=null),ro(ss)}var ss=Kf(0);function $P(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||JG(r)||YG(r)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder===\\\"forwards\\\"||e.memoizedProps.revealOrder===\\\"backwards\\\"||e.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||e.memoizedProps.revealOrder===\\\"together\\\")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Kh=0,St=null,Xr=null,gs=null,VP=!1,_E=!1,Fb=!1,WP=0,dS=0,CE=null,Tct=0;function Wi(){throw Error(le(321))}function CK(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!hl(t[r],e[r]))return!1;return!0}function SK(t,e,r,n,i,s){return Kh=s,St=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ct.H=t===null||t.memoizedState===null?Uye:DK,Fb=!1,s=r(n,i),Fb=!1,_E&&(s=lye(e,r,n,i)),cye(t),s}function cye(t){ct.H=fS;var e=Xr!==null&&Xr.next!==null;if(Kh=0,gs=Xr=St=null,VP=!1,dS=0,CE=null,e)throw Error(le(300));t===null||ws||(t=t.dependencies,t!==null&&HP(t)&&(ws=!0))}function lye(t,e,r,n){St=t;var i=0;do{if(_E&&(CE=null),dS=0,_E=!1,25<=i)throw Error(le(301));if(i+=1,gs=Xr=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}ct.H=Fye,s=e(r,n)}while(_E);return s}function Ict(){var t=ct.H,e=t.useState()[0];return e=typeof e.then==\\\"function\\\"?SS(e):e,t=t.useState()[0],(Xr!==null?Xr.memoizedState:null)!==t&&(St.flags|=1024),e}function AK(){var t=WP!==0;return WP=0,t}function TK(t,e,r){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r}function IK(t){if(VP){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}VP=!1}Kh=0,gs=Xr=St=null,_E=!1,dS=WP=0,CE=null}function Ma(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gs===null?St.memoizedState=gs=t:gs=gs.next=t,gs}function os(){if(Xr===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Xr.next;var e=gs===null?St.memoizedState:gs.next;if(e!==null)gs=e,Xr=t;else{if(t===null)throw St.alternate===null?Error(le(467)):Error(le(310));Xr=t,t={memoizedState:Xr.memoizedState,baseState:Xr.baseState,baseQueue:Xr.baseQueue,queue:Xr.queue,next:null},gs===null?St.memoizedState=gs=t:gs=gs.next=t}return gs}function mO(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function SS(t){var e=dS;return dS+=1,CE===null&&(CE=[]),t=rye(CE,t,e),e=St,(gs===null?e.memoizedState:gs.next)===null&&(e=e.alternate,ct.H=e===null||e.memoizedState===null?Uye:DK),t}function gO(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return SS(t);if(t.$$typeof===Hh)return Ro(t)}throw Error(le(438,String(t)))}function RK(t){var e=null,r=St.updateQueue;if(r!==null&&(e=r.memoCache),e==null){var n=St.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),r===null&&(r=mO(),St.updateQueue=r),r.memoCache=e,r=e.data[e.index],r===void 0)for(r=e.data[e.index]=Array(t),n=0;n<t;n++)r[n]=pat;return e.index++,r}function Zh(t,e){return typeof e==\\\"function\\\"?e(t):e}function CP(t){var e=os();return PK(e,Xr,t)}function PK(t,e,r){var n=t.queue;if(n===null)throw Error(le(311));n.lastRenderedReducer=r;var i=t.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}e.baseQueue=i=s,n.pending=null}if(s=t.baseState,i===null)t.memoizedState=s;else{e=i.next;var a=o=null,c=null,l=e,d=!1;do{var f=l.lane&-536870913;if(f!==l.lane?(Qt&f)===f:(Kh&f)===f){var p=l.revertLane;if(p===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),f===IE&&(d=!0);else if((Kh&p)===p){l=l.next,p===IE&&(d=!0);continue}else f={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(a=c=f,o=s):c=c.next=f,St.lanes|=p,Ag|=p;f=l.action,Fb&&r(s,f),s=l.hasEagerState?l.eagerState:r(s,f)}else p={lane:f,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(a=c=p,o=s):c=c.next=p,St.lanes|=f,Ag|=f;l=l.next}while(l!==null&&l!==e);if(c===null?o=s:c.next=a,!hl(s,t.memoizedState)&&(ws=!0,d&&(r=xE,r!==null)))throw r;t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}return i===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function zW(t){var e=os(),r=e.queue;if(r===null)throw Error(le(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,s=e.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);hl(s,e.memoizedState)||(ws=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),r.lastRenderedState=s}return[s,n]}function uye(t,e,r){var n=St,i=os(),s=Xt;if(s){if(r===void 0)throw Error(le(407));r=r()}else r=e();var o=!hl((Xr||i).memoizedState,r);if(o&&(i.memoizedState=r,ws=!0),i=i.queue,OK(pye.bind(null,n,i,t),[t]),i.getSnapshot!==e||o||gs!==null&&gs.memoizedState.tag&1){if(n.flags|=2048,PE(9,{destroy:void 0},fye.bind(null,n,i,r,e),null),cn===null)throw Error(le(349));s||(Kh&127)!==0||dye(n,e,r)}return r}function dye(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=St.updateQueue,e===null?(e=mO(),St.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function fye(t,e,r,n){e.value=r,e.getSnapshot=n,hye(e)&&mye(t)}function pye(t,e,r){return r(function(){hye(e)&&mye(t)})}function hye(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!hl(t,r)}catch{return!0}}function mye(t){var e=$b(t,2);e!==null&&bc(e,t,2)}function kG(t){var e=Ma();if(typeof t==\\\"function\\\"){var r=t;if(t=r(),Fb){lg(!0);try{r()}finally{lg(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zh,lastRenderedState:t},e}function gye(t,e,r,n){return t.baseState=r,PK(t,Xr,typeof n==\\\"function\\\"?n:Zh)}function Rct(t,e,r,n,i){if(bO(t))throw Error(le(485));if(t=e.action,t!==null){var s={payload:i,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};ct.T!==null?r(!0):s.isTransition=!1,n(s),r=e.pending,r===null?(s.next=e.pending=s,yye(e,s)):(s.next=r.next,e.pending=r.next=s)}}function yye(t,e){var r=e.action,n=e.payload,i=t.state;if(e.isTransition){var s=ct.T,o={};ct.T=o;try{var a=r(i,n),c=ct.S;c!==null&&c(o,a),g0e(t,e,a)}catch(l){BG(t,e,l)}finally{s!==null&&o.types!==null&&(s.types=o.types),ct.T=s}}else try{s=r(i,n),g0e(t,e,s)}catch(l){BG(t,e,l)}}function g0e(t,e,r){r!==null&&typeof r==\\\"object\\\"&&typeof r.then==\\\"function\\\"?r.then(function(n){y0e(t,e,n)},function(n){return BG(t,e,n)}):y0e(t,e,r)}function y0e(t,e,r){e.status=\\\"fulfilled\\\",e.value=r,bye(e),t.state=r,e=t.pending,e!==null&&(r=e.next,r===e?t.pending=null:(r=r.next,e.next=r,yye(t,r)))}function BG(t,e,r){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status=\\\"rejected\\\",e.reason=r,bye(e),e=e.next;while(e!==n)}t.action=null}function bye(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function wye(t,e){return e}function b0e(t,e){if(Xt){var r=cn.formState;if(r!==null){e:{var n=St;if(Xt){if(zn){t:{for(var i=zn,s=fu;i.nodeType!==8;){if(!s){i=null;break t}if(i=hu(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s===\\\"F!\\\"||s===\\\"F\\\"?i:null}if(i){zn=hu(i.nextSibling),n=i.data===\\\"F!\\\";break e}}Cg(n)}n=!1}n&&(e=r[0])}}return r=Ma(),r.memoizedState=r.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wye,lastRenderedState:e},r.queue=n,r=Mye.bind(null,St,n),n.dispatch=r,n=kG(!1),s=MK.bind(null,St,!1,n.queue),n=Ma(),i={state:e,dispatch:null,action:t,pending:null},n.queue=i,r=Rct.bind(null,St,i,s,r),i.dispatch=r,n.memoizedState=t,[e,r,!1]}function w0e(t){var e=os();return vye(e,Xr,t)}function vye(t,e,r){if(e=PK(t,e,wye)[0],t=CP(Zh)[0],typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\")try{var n=SS(e)}catch(o){throw o===FE?hO:o}else n=e;e=os();var i=e.queue,s=i.dispatch;return r!==e.memoizedState&&(St.flags|=2048,PE(9,{destroy:void 0},Pct.bind(null,i,r),null)),[n,s,t]}function Pct(t,e){t.action=e}function v0e(t){var e=os(),r=Xr;if(r!==null)return vye(e,r,t);os(),e=e.memoizedState,r=os();var n=r.queue.dispatch;return r.memoizedState=t,[e,n,!1]}function PE(t,e,r,n){return t={tag:t,create:r,deps:n,inst:e,next:null},e=St.updateQueue,e===null&&(e=mO(),St.updateQueue=e),r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t),t}function xye(){return os().memoizedState}function SP(t,e,r,n){var i=Ma();St.flags|=t,i.memoizedState=PE(1|e,{destroy:void 0},r,n===void 0?null:n)}function yO(t,e,r,n){var i=os();n=n===void 0?null:n;var s=i.memoizedState.inst;Xr!==null&&n!==null&&CK(n,Xr.memoizedState.deps)?i.memoizedState=PE(e,s,r,n):(St.flags|=t,i.memoizedState=PE(1|e,s,r,n))}function x0e(t,e){SP(8390656,8,t,e)}function OK(t,e){yO(2048,8,t,e)}function Oct(t){St.flags|=4;var e=St.updateQueue;if(e===null)e=mO(),St.updateQueue=e,e.events=[t];else{var r=e.events;r===null?e.events=[t]:r.push(t)}}function Eye(t){var e=os().memoizedState;return Oct({ref:e,nextImpl:t}),function(){if((Mr&2)!==0)throw Error(le(440));return e.impl.apply(void 0,arguments)}}function _ye(t,e){return yO(4,2,t,e)}function Cye(t,e){return yO(4,4,t,e)}function Sye(t,e){if(typeof e==\\\"function\\\"){t=t();var r=e(t);return function(){typeof r==\\\"function\\\"?r():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Aye(t,e,r){r=r!=null?r.concat([t]):null,yO(4,4,Sye.bind(null,e,t),r)}function NK(){}function Tye(t,e){var r=os();e=e===void 0?null:e;var n=r.memoizedState;return e!==null&&CK(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Iye(t,e){var r=os();e=e===void 0?null:e;var n=r.memoizedState;if(e!==null&&CK(e,n[1]))return n[0];if(n=t(),Fb){lg(!0);try{t()}finally{lg(!1)}}return r.memoizedState=[n,e],n}function kK(t,e,r){return r===void 0||(Kh&1073741824)!==0&&(Qt&261930)===0?t.memoizedState=e:(t.memoizedState=r,t=g1e(),St.lanes|=t,Ag|=t,r)}function Rye(t,e,r,n){return hl(r,e)?r:RE.current!==null?(t=kK(t,r,n),hl(t,e)||(ws=!0),t):(Kh&42)===0||(Kh&1073741824)!==0&&(Qt&261930)===0?(ws=!0,t.memoizedState=r):(t=g1e(),St.lanes|=t,Ag|=t,e)}function Pye(t,e,r,n,i){var s=Dr.p;Dr.p=s!==0&&8>s?s:8;var o=ct.T,a={};ct.T=a,MK(t,!1,e,r);try{var c=i(),l=ct.S;if(l!==null&&l(a,c),c!==null&&typeof c==\\\"object\\\"&&typeof c.then==\\\"function\\\"){var d=Act(c,n);Y8(t,e,d,pl(t))}else Y8(t,e,n,pl(t))}catch(f){Y8(t,e,{then:function(){},status:\\\"rejected\\\",reason:f},pl())}finally{Dr.p=s,o!==null&&a.types!==null&&(o.types=a.types),ct.T=o}}function Nct(){}function MG(t,e,r,n){if(t.tag!==5)throw Error(le(476));var i=Oye(t).queue;Pye(t,i,e,Ob,r===null?Nct:function(){return Nye(t),r(n)})}function Oye(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Ob,baseState:Ob,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zh,lastRenderedState:Ob},next:null};var r={};return e.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zh,lastRenderedState:r},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Nye(t){var e=Oye(t);e.next===null&&(e=t.alternate.memoizedState),Y8(t,e.next.queue,{},pl())}function BK(){return Ro(mS)}function kye(){return os().memoizedState}function Bye(){return os().memoizedState}function kct(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var r=pl();t=gg(r);var n=yg(e,t,r);n!==null&&(bc(n,e,r),Z8(n,e,r)),e={cache:wK()},t.payload=e;return}e=e.return}}function Bct(t,e,r){var n=pl();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},bO(t)?Dye(e,r):(r=mK(t,e,r,n),r!==null&&(bc(r,t,n),Lye(r,e,n)))}function Mye(t,e,r){var n=pl();Y8(t,e,r,n)}function Y8(t,e,r,n){var i={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(bO(t))Dye(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,hl(a,o))return pO(t,e,i,0),cn===null&&fO(),!1}catch{}if(r=mK(t,e,i,n),r!==null)return bc(r,t,n),Lye(r,e,n),!0}return!1}function MK(t,e,r,n){if(n={lane:2,revertLane:$K(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bO(t)){if(e)throw Error(le(479))}else e=mK(t,r,n,2),e!==null&&bc(e,t,2)}function bO(t){var e=t.alternate;return t===St||e!==null&&e===St}function Dye(t,e){_E=VP=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Lye(t,e,r){if((r&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Ege(t,r)}}var fS={readContext:Ro,use:gO,useCallback:Wi,useContext:Wi,useEffect:Wi,useImperativeHandle:Wi,useLayoutEffect:Wi,useInsertionEffect:Wi,useMemo:Wi,useReducer:Wi,useRef:Wi,useState:Wi,useDebugValue:Wi,useDeferredValue:Wi,useTransition:Wi,useSyncExternalStore:Wi,useId:Wi,useHostTransitionStatus:Wi,useFormState:Wi,useActionState:Wi,useOptimistic:Wi,useMemoCache:Wi,useCacheRefresh:Wi};fS.useEffectEvent=Wi;var Uye={readContext:Ro,use:gO,useCallback:function(t,e){return Ma().memoizedState=[t,e===void 0?null:e],t},useContext:Ro,useEffect:x0e,useImperativeHandle:function(t,e,r){r=r!=null?r.concat([t]):null,SP(4194308,4,Sye.bind(null,e,t),r)},useLayoutEffect:function(t,e){return SP(4194308,4,t,e)},useInsertionEffect:function(t,e){SP(4,2,t,e)},useMemo:function(t,e){var r=Ma();e=e===void 0?null:e;var n=t();if(Fb){lg(!0);try{t()}finally{lg(!1)}}return r.memoizedState=[n,e],n},useReducer:function(t,e,r){var n=Ma();if(r!==void 0){var i=r(e);if(Fb){lg(!0);try{r(e)}finally{lg(!1)}}}else i=e;return n.memoizedState=n.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},n.queue=t,t=t.dispatch=Bct.bind(null,St,t),[n.memoizedState,t]},useRef:function(t){var e=Ma();return t={current:t},e.memoizedState=t},useState:function(t){t=kG(t);var e=t.queue,r=Mye.bind(null,St,e);return e.dispatch=r,[t.memoizedState,r]},useDebugValue:NK,useDeferredValue:function(t,e){var r=Ma();return kK(r,t,e)},useTransition:function(){var t=kG(!1);return t=Pye.bind(null,St,t.queue,!0,!1),Ma().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,r){var n=St,i=Ma();if(Xt){if(r===void 0)throw Error(le(407));r=r()}else{if(r=e(),cn===null)throw Error(le(349));(Qt&127)!==0||dye(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,x0e(pye.bind(null,n,s,t),[t]),n.flags|=2048,PE(9,{destroy:void 0},fye.bind(null,n,s,r,e),null),r},useId:function(){var t=Ma(),e=cn.identifierPrefix;if(Xt){var r=Vf,n=$f;r=(n&~(1<<32-fl(n)-1)).toString(32)+r,e=\\\"_\\\"+e+\\\"R_\\\"+r,r=WP++,0<r&&(e+=\\\"H\\\"+r.toString(32)),e+=\\\"_\\\"}else r=Tct++,e=\\\"_\\\"+e+\\\"r_\\\"+r.toString(32)+\\\"_\\\";return t.memoizedState=e},useHostTransitionStatus:BK,useFormState:b0e,useActionState:b0e,useOptimistic:function(t){var e=Ma();e.memoizedState=e.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=r,e=MK.bind(null,St,!0,r),r.dispatch=e,[t,e]},useMemoCache:RK,useCacheRefresh:function(){return Ma().memoizedState=kct.bind(null,St)},useEffectEvent:function(t){var e=Ma(),r={impl:t};return e.memoizedState=r,function(){if((Mr&2)!==0)throw Error(le(440));return r.impl.apply(void 0,arguments)}}},DK={readContext:Ro,use:gO,useCallback:Tye,useContext:Ro,useEffect:OK,useImperativeHandle:Aye,useInsertionEffect:_ye,useLayoutEffect:Cye,useMemo:Iye,useReducer:CP,useRef:xye,useState:function(){return CP(Zh)},useDebugValue:NK,useDeferredValue:function(t,e){var r=os();return Rye(r,Xr.memoizedState,t,e)},useTransition:function(){var t=CP(Zh)[0],e=os().memoizedState;return[typeof t==\\\"boolean\\\"?t:SS(t),e]},useSyncExternalStore:uye,useId:kye,useHostTransitionStatus:BK,useFormState:w0e,useActionState:w0e,useOptimistic:function(t,e){var r=os();return gye(r,Xr,t,e)},useMemoCache:RK,useCacheRefresh:Bye};DK.useEffectEvent=Eye;var Fye={readContext:Ro,use:gO,useCallback:Tye,useContext:Ro,useEffect:OK,useImperativeHandle:Aye,useInsertionEffect:_ye,useLayoutEffect:Cye,useMemo:Iye,useReducer:zW,useRef:xye,useState:function(){return zW(Zh)},useDebugValue:NK,useDeferredValue:function(t,e){var r=os();return Xr===null?kK(r,t,e):Rye(r,Xr.memoizedState,t,e)},useTransition:function(){var t=zW(Zh)[0],e=os().memoizedState;return[typeof t==\\\"boolean\\\"?t:SS(t),e]},useSyncExternalStore:uye,useId:kye,useHostTransitionStatus:BK,useFormState:v0e,useActionState:v0e,useOptimistic:function(t,e){var r=os();return Xr!==null?gye(r,Xr,t,e):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:RK,useCacheRefresh:Bye};Fye.useEffectEvent=Eye;function $W(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:$n({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var DG={enqueueSetState:function(t,e,r){t=t._reactInternals;var n=pl(),i=gg(n);i.payload=e,r!=null&&(i.callback=r),e=yg(t,i,n),e!==null&&(bc(e,t,n),Z8(e,t,n))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=pl(),i=gg(n);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=yg(t,i,n),e!==null&&(bc(e,t,n),Z8(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=pl(),n=gg(r);n.tag=2,e!=null&&(n.callback=e),e=yg(t,n,r),e!==null&&(bc(e,t,r),Z8(e,t,r))}};function E0e(t,e,r,n,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(n,s,o):e.prototype&&e.prototype.isPureReactComponent?!aS(r,n)||!aS(i,s):!0}function _0e(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps==\\\"function\\\"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&DG.enqueueReplaceState(e,e.state,null)}function jb(t,e){var r=e;if(\\\"ref\\\"in e){r={};for(var n in e)n!==\\\"ref\\\"&&(r[n]=e[n])}if(t=t.defaultProps){r===e&&(r=$n({},r));for(var i in t)r[i]===void 0&&(r[i]=t[i])}return r}function jye(t){UP(t)}function Hye(t){console.error(t)}function qye(t){UP(t)}function GP(t,e){try{var r=t.onUncaughtError;r(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function C0e(t,e,r){try{var n=t.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function LG(t,e,r){return r=gg(r),r.tag=3,r.payload={element:null},r.callback=function(){GP(t,e)},r}function zye(t){return t=gg(t),t.tag=3,t}function $ye(t,e,r,n){var i=r.type.getDerivedStateFromError;if(typeof i==\\\"function\\\"){var s=n.value;t.payload=function(){return i(s)},t.callback=function(){C0e(e,r,n)}}var o=r.stateNode;o!==null&&typeof o.componentDidCatch==\\\"function\\\"&&(t.callback=function(){C0e(e,r,n),typeof i!=\\\"function\\\"&&(bg===null?bg=new Set([this]):bg.add(this));var a=n.stack;this.componentDidCatch(n.value,{componentStack:a!==null?a:\\\"\\\"})})}function Mct(t,e,r,n,i){if(r.flags|=32768,n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"){if(e=r.alternate,e!==null&&UE(e,r,i,!0),r=ml.current,r!==null){switch(r.tag){case 31:case 13:return pu===null?YP():r.alternate===null&&Gi===0&&(Gi=3),r.flags&=-257,r.flags|=65536,r.lanes=i,n===qP?r.flags|=16384:(e=r.updateQueue,e===null?r.updateQueue=new Set([n]):e.add(n),tG(t,n,i)),!1;case 22:return r.flags|=65536,n===qP?r.flags|=16384:(e=r.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=e):(r=e.retryQueue,r===null?e.retryQueue=new Set([n]):r.add(n)),tG(t,n,i)),!1}throw Error(le(435,r.tag))}return tG(t,n,i),YP(),!1}if(Xt)return e=ml.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,n!==CG&&(t=Error(le(422),{cause:n}),lS(du(t,r)))):(n!==CG&&(e=Error(le(423),{cause:n}),lS(du(e,r))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,n=du(n,r),i=LG(t.stateNode,n,i),qW(t,i),Gi!==4&&(Gi=2)),!1;var s=Error(le(520),{cause:n});if(s=du(s,r),tS===null?tS=[s]:tS.push(s),Gi!==4&&(Gi=2),e===null)return!0;n=du(n,r),r=e;do{switch(r.tag){case 3:return r.flags|=65536,t=i&-i,r.lanes|=t,t=LG(r.stateNode,n,t),qW(r,t),!1;case 1:if(e=r.type,s=r.stateNode,(r.flags&128)===0&&(typeof e.getDerivedStateFromError==\\\"function\\\"||s!==null&&typeof s.componentDidCatch==\\\"function\\\"&&(bg===null||!bg.has(s))))return r.flags|=65536,i&=-i,r.lanes|=i,i=zye(i),$ye(i,t,r,n),qW(r,i),!1}r=r.return}while(r!==null);return!1}var LK=Error(le(461)),ws=!1;function Ao(t,e,r,n){e.child=t===null?iye(e,null,r,n):Ub(e,t.child,r,n)}function S0e(t,e,r,n,i){r=r.render;var s=e.ref;if(\\\"ref\\\"in n){var o={};for(var a in n)a!==\\\"ref\\\"&&(o[a]=n[a])}else o=n;return Lb(e),n=SK(t,e,r,o,s,i),a=AK(),t!==null&&!ws?(TK(t,e,i),Qh(t,e,i)):(Xt&&a&&yK(e),e.flags|=1,Ao(t,e,n,i),e.child)}function A0e(t,e,r,n,i){if(t===null){var s=r.type;return typeof s==\\\"function\\\"&&!gK(s)&&s.defaultProps===void 0&&r.compare===null?(e.tag=15,e.type=s,Vye(t,e,s,n,i)):(t=EP(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!UK(t,i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:aS,r(o,n)&&t.ref===e.ref)return Qh(t,e,i)}return e.flags|=1,t=$h(s,n),t.ref=e.ref,t.return=e,e.child=t}function Vye(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(aS(s,n)&&t.ref===e.ref)if(ws=!1,e.pendingProps=n=s,UK(t,i))(t.flags&131072)!==0&&(ws=!0);else return e.lanes=t.lanes,Qh(t,e,i)}return UG(t,e,r,n,i)}function Wye(t,e,r,n){var i=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode===\\\"hidden\\\"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|r:r,t!==null){for(n=e.child=t.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~s}else n=0,e.child=null;return T0e(t,e,s,r,n)}if((r&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_P(e,s!==null?s.cachePool:null),s!==null?m0e(e,s):OG(),aye(e);else return n=e.lanes=536870912,T0e(t,e,s!==null?s.baseLanes|r:r,r,n)}else s!==null?(_P(e,s.cachePool),m0e(e,s),ag(e),e.memoizedState=null):(t!==null&&_P(e,null),OG(),ag(e));return Ao(t,e,i,r),e.child}function z8(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function T0e(t,e,r,n,i){var s=vK();return s=s===null?null:{parent:bs._currentValue,pool:s},e.memoizedState={baseLanes:r,cachePool:s},t!==null&&_P(e,null),OG(),aye(e),t!==null&&UE(t,e,n,!0),e.childLanes=i,null}function AP(t,e){return e=KP({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function I0e(t,e,r){return Ub(e,t.child,null,r),t=AP(e,e.pendingProps),t.flags|=2,al(e),e.memoizedState=null,t}function Dct(t,e,r){var n=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Xt){if(n.mode===\\\"hidden\\\")return t=AP(e,n),e.lanes=536870912,z8(null,t);if(NG(e),(t=zn)?(t=U1e(t,fu),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_g!==null?{id:$f,overflow:Vf}:null,retryLane:536870912,hydrationErrors:null},r=Jge(t),r.return=e,e.child=r,Io=e,zn=null)):t=null,t===null)throw Cg(e);return e.lanes=536870912,null}return AP(e,n)}var s=t.memoizedState;if(s!==null){var o=s.dehydrated;if(NG(e),i)if(e.flags&256)e.flags&=-257,e=I0e(t,e,r);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(le(558));else if(ws||UE(t,e,r,!1),i=(r&t.childLanes)!==0,ws||i){if(n=cn,n!==null&&(o=_ge(n,r),o!==0&&o!==s.retryLane))throw s.retryLane=o,$b(t,o),bc(n,t,o),LK;YP(),e=I0e(t,e,r)}else t=s.treeContext,zn=hu(o.nextSibling),Io=e,Xt=!0,mg=null,fu=!1,t!==null&&Xge(e,t),e=AP(e,n),e.flags|=4096;return e}return t=$h(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function TP(t,e){var r=e.ref;if(r===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof r!=\\\"function\\\"&&typeof r!=\\\"object\\\")throw Error(le(284));(t===null||t.ref!==r)&&(e.flags|=4194816)}}function UG(t,e,r,n,i){return Lb(e),r=SK(t,e,r,n,void 0,i),n=AK(),t!==null&&!ws?(TK(t,e,i),Qh(t,e,i)):(Xt&&n&&yK(e),e.flags|=1,Ao(t,e,r,i),e.child)}function R0e(t,e,r,n,i,s){return Lb(e),e.updateQueue=null,r=lye(e,n,r,i),cye(t),n=AK(),t!==null&&!ws?(TK(t,e,s),Qh(t,e,s)):(Xt&&n&&yK(e),e.flags|=1,Ao(t,e,r,s),e.child)}function P0e(t,e,r,n,i){if(Lb(e),e.stateNode===null){var s=hE,o=r.contextType;typeof o==\\\"object\\\"&&o!==null&&(s=Ro(o)),s=new r(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=DG,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},EK(e),o=r.contextType,s.context=typeof o==\\\"object\\\"&&o!==null?Ro(o):hE,s.state=e.memoizedState,o=r.getDerivedStateFromProps,typeof o==\\\"function\\\"&&($W(e,r,o,n),s.state=e.memoizedState),typeof r.getDerivedStateFromProps==\\\"function\\\"||typeof s.getSnapshotBeforeUpdate==\\\"function\\\"||typeof s.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof s.componentWillMount!=\\\"function\\\"||(o=s.state,typeof s.componentWillMount==\\\"function\\\"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==\\\"function\\\"&&s.UNSAFE_componentWillMount(),o!==s.state&&DG.enqueueReplaceState(s,s.state,null),J8(e,n,s,i),Q8(),s.state=e.memoizedState),typeof s.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var a=e.memoizedProps,c=jb(r,a);s.props=c;var l=s.context,d=r.contextType;o=hE,typeof d==\\\"object\\\"&&d!==null&&(o=Ro(d));var f=r.getDerivedStateFromProps;d=typeof f==\\\"function\\\"||typeof s.getSnapshotBeforeUpdate==\\\"function\\\",a=e.pendingProps!==a,d||typeof s.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof s.componentWillReceiveProps!=\\\"function\\\"||(a||l!==o)&&_0e(e,s,n,o),ig=!1;var p=e.memoizedState;s.state=p,J8(e,n,s,i),Q8(),l=e.memoizedState,a||p!==l||ig?(typeof f==\\\"function\\\"&&($W(e,r,f,n),l=e.memoizedState),(c=ig||E0e(e,r,c,n,p,l,o))?(d||typeof s.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof s.componentWillMount!=\\\"function\\\"||(typeof s.componentWillMount==\\\"function\\\"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==\\\"function\\\"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==\\\"function\\\"&&(e.flags|=4194308)):(typeof s.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),s.props=n,s.state=l,s.context=o,n=c):(typeof s.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,RG(t,e),o=e.memoizedProps,d=jb(r,o),s.props=d,f=e.pendingProps,p=s.context,l=r.contextType,c=hE,typeof l==\\\"object\\\"&&l!==null&&(c=Ro(l)),a=r.getDerivedStateFromProps,(l=typeof a==\\\"function\\\"||typeof s.getSnapshotBeforeUpdate==\\\"function\\\")||typeof s.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof s.componentWillReceiveProps!=\\\"function\\\"||(o!==f||p!==c)&&_0e(e,s,n,c),ig=!1,p=e.memoizedState,s.state=p,J8(e,n,s,i),Q8();var h=e.memoizedState;o!==f||p!==h||ig||t!==null&&t.dependencies!==null&&HP(t.dependencies)?(typeof a==\\\"function\\\"&&($W(e,r,a,n),h=e.memoizedState),(d=ig||E0e(e,r,d,n,p,h,c)||t!==null&&t.dependencies!==null&&HP(t.dependencies))?(l||typeof s.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof s.componentWillUpdate!=\\\"function\\\"||(typeof s.componentWillUpdate==\\\"function\\\"&&s.componentWillUpdate(n,h,c),typeof s.UNSAFE_componentWillUpdate==\\\"function\\\"&&s.UNSAFE_componentWillUpdate(n,h,c)),typeof s.componentDidUpdate==\\\"function\\\"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate==\\\"function\\\"&&(e.flags|=1024)):(typeof s.componentDidUpdate!=\\\"function\\\"||o===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!=\\\"function\\\"||o===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=h),s.props=n,s.state=h,s.context=c,n=d):(typeof s.componentDidUpdate!=\\\"function\\\"||o===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!=\\\"function\\\"||o===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,TP(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,r=n&&typeof r.getDerivedStateFromError!=\\\"function\\\"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=Ub(e,t.child,null,i),e.child=Ub(e,null,r,i)):Ao(t,e,r,i),e.memoizedState=s.state,t=e.child):t=Qh(t,e,i),t}function O0e(t,e,r,n){return Db(),e.flags|=256,Ao(t,e,r,n),e.child}var VW={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function WW(t){return{baseLanes:t,cachePool:tye()}}function GW(t,e,r){return t=t!==null?t.childLanes&~r:0,e&&(t|=ll),t}function Gye(t,e,r){var n=e.pendingProps,i=!1,s=(e.flags&128)!==0,o;if((o=s)||(o=t!==null&&t.memoizedState===null?!1:(ss.current&2)!==0),o&&(i=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(Xt){if(i?og(e):ag(e),(t=zn)?(t=U1e(t,fu),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_g!==null?{id:$f,overflow:Vf}:null,retryLane:536870912,hydrationErrors:null},r=Jge(t),r.return=e,e.child=r,Io=e,zn=null)):t=null,t===null)throw Cg(e);return YG(t)?e.lanes=32:e.lanes=536870912,null}var a=n.children;return n=n.fallback,i?(ag(e),i=e.mode,a=KP({mode:\\\"hidden\\\",children:a},i),n=Nb(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n=e.child,n.memoizedState=WW(r),n.childLanes=GW(t,o,r),e.memoizedState=VW,z8(null,n)):(og(e),FG(e,a))}var c=t.memoizedState;if(c!==null&&(a=c.dehydrated,a!==null)){if(s)e.flags&256?(og(e),e.flags&=-257,e=KW(t,e,r)):e.memoizedState!==null?(ag(e),e.child=t.child,e.flags|=128,e=null):(ag(e),a=n.fallback,i=e.mode,n=KP({mode:\\\"visible\\\",children:n.children},i),a=Nb(a,i,r,null),a.flags|=2,n.return=e,a.return=e,n.sibling=a,e.child=n,Ub(e,t.child,null,r),n=e.child,n.memoizedState=WW(r),n.childLanes=GW(t,o,r),e.memoizedState=VW,e=z8(null,n));else if(og(e),YG(a)){if(o=a.nextSibling&&a.nextSibling.dataset,o)var l=o.dgst;o=l,n=Error(le(419)),n.stack=\\\"\\\",n.digest=o,lS({value:n,source:null,stack:null}),e=KW(t,e,r)}else if(ws||UE(t,e,r,!1),o=(r&t.childLanes)!==0,ws||o){if(o=cn,o!==null&&(n=_ge(o,r),n!==0&&n!==c.retryLane))throw c.retryLane=n,$b(t,n),bc(o,t,n),LK;JG(a)||YP(),e=KW(t,e,r)}else JG(a)?(e.flags|=192,e.child=t.child,e=null):(t=c.treeContext,zn=hu(a.nextSibling),Io=e,Xt=!0,mg=null,fu=!1,t!==null&&Xge(e,t),e=FG(e,n.children),e.flags|=4096);return e}return i?(ag(e),a=n.fallback,i=e.mode,c=t.child,l=c.sibling,n=$h(c,{mode:\\\"hidden\\\",children:n.children}),n.subtreeFlags=c.subtreeFlags&65011712,l!==null?a=$h(l,a):(a=Nb(a,i,r,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,z8(null,n),n=e.child,a=t.child.memoizedState,a===null?a=WW(r):(i=a.cachePool,i!==null?(c=bs._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=tye(),a={baseLanes:a.baseLanes|r,cachePool:i}),n.memoizedState=a,n.childLanes=GW(t,o,r),e.memoizedState=VW,z8(t.child,n)):(og(e),r=t.child,t=r.sibling,r=$h(r,{mode:\\\"visible\\\",children:n.children}),r.return=e,r.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=r,e.memoizedState=null,r)}function FG(t,e){return e=KP({mode:\\\"visible\\\",children:e},t.mode),e.return=t,t.child=e}function KP(t,e){return t=cl(22,t,null,e),t.lanes=0,t}function KW(t,e,r){return Ub(e,t.child,null,r),t=FG(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function N0e(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),AG(t.return,e,r)}function ZW(t,e,r,n,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,treeForkCount:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.treeForkCount=s)}function Kye(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;n=n.children;var o=ss.current,a=(o&2)!==0;if(a?(o=o&1|2,e.flags|=128):o&=1,Sn(ss,o),Ao(t,e,n,r),n=Xt?cS:0,!a&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&N0e(t,r,e);else if(t.tag===19)N0e(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case\\\"forwards\\\":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&$P(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),ZW(e,!1,i,r,s,n);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&$P(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}ZW(e,!0,r,null,s,n);break;case\\\"together\\\":ZW(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Qh(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Ag|=e.lanes,(r&e.childLanes)===0)if(t!==null){if(UE(t,e,r,!1),(r&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(le(153));if(e.child!==null){for(t=e.child,r=$h(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=$h(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function UK(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&HP(t)))}function Lct(t,e,r){switch(e.tag){case 3:BP(e,e.stateNode.containerInfo),sg(e,bs,t.memoizedState.cache),Db();break;case 27:case 5:pG(e);break;case 4:BP(e,e.stateNode.containerInfo);break;case 10:sg(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,NG(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(og(e),e.flags|=128,null):(r&e.child.childLanes)!==0?Gye(t,e,r):(og(e),t=Qh(t,e,r),t!==null?t.sibling:null);og(e);break;case 19:var i=(t.flags&128)!==0;if(n=(r&e.childLanes)!==0,n||(UE(t,e,r,!1),n=(r&e.childLanes)!==0),i){if(n)return Kye(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Sn(ss,ss.current),n)break;return null;case 22:return e.lanes=0,Wye(t,e,r,e.pendingProps);case 24:sg(e,bs,t.memoizedState.cache)}return Qh(t,e,r)}function Zye(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps)ws=!0;else{if(!UK(t,r)&&(e.flags&128)===0)return ws=!1,Lct(t,e,r);ws=(t.flags&131072)!==0}else ws=!1,Xt&&(e.flags&1048576)!==0&&Yge(e,cS,e.index);switch(e.lanes=0,e.tag){case 16:e:{var n=e.pendingProps;if(t=Rb(e.elementType),e.type=t,typeof t==\\\"function\\\")gK(t)?(n=jb(t,n),e.tag=1,e=P0e(null,e,t,n,r)):(e.tag=0,e=UG(null,e,t,n,r));else{if(t!=null){var i=t.$$typeof;if(i===rK){e.tag=11,e=S0e(null,e,t,n,r);break e}else if(i===nK){e.tag=14,e=A0e(null,e,t,n,r);break e}}throw e=dG(t)||t,Error(le(306,e,\\\"\\\"))}}return e;case 0:return UG(t,e,e.type,e.pendingProps,r);case 1:return n=e.type,i=jb(n,e.pendingProps),P0e(t,e,n,i,r);case 3:e:{if(BP(e,e.stateNode.containerInfo),t===null)throw Error(le(387));n=e.pendingProps;var s=e.memoizedState;i=s.element,RG(t,e),J8(e,n,null,r);var o=e.memoizedState;if(n=o.cache,sg(e,bs,n),n!==s.cache&&TG(e,[bs],r,!0),Q8(),n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=O0e(t,e,n,r);break e}else if(n!==i){i=du(Error(le(424)),e),lS(i),e=O0e(t,e,n,r);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,zn=hu(t.firstChild),Io=e,Xt=!0,mg=null,fu=!0,r=iye(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Db(),n===i){e=Qh(t,e,r);break e}Ao(t,e,n,r)}e=e.child}return e;case 26:return TP(t,e),t===null?(r=ege(e.type,null,e.pendingProps,null))?e.memoizedState=r:Xt||(r=e.type,t=e.pendingProps,n=rO(hg.current).createElement(r),n[To]=e,n[wc]=t,Po(n,r,t),to(n),e.stateNode=n):e.memoizedState=ege(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pG(e),t===null&&Xt&&(n=e.stateNode=F1e(e.type,e.pendingProps,hg.current),Io=e,fu=!0,i=zn,Ig(e.type)?(XG=i,zn=hu(n.firstChild)):zn=i),Ao(t,e,e.pendingProps.children,r),TP(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Xt&&((i=n=zn)&&(n=dlt(n,e.type,e.pendingProps,fu),n!==null?(e.stateNode=n,Io=e,zn=hu(n.firstChild),fu=!1,i=!0):i=!1),i||Cg(e)),pG(e),i=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,n=s.children,ZG(i,s)?n=null:o!==null&&ZG(i,o)&&(e.flags|=32),e.memoizedState!==null&&(i=SK(t,e,Ict,null,null,r),mS._currentValue=i),TP(t,e),Ao(t,e,n,r),e.child;case 6:return t===null&&Xt&&((t=r=zn)&&(r=flt(r,e.pendingProps,fu),r!==null?(e.stateNode=r,Io=e,zn=null,t=!0):t=!1),t||Cg(e)),null;case 13:return Gye(t,e,r);case 4:return BP(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ub(e,null,n,r):Ao(t,e,n,r),e.child;case 11:return S0e(t,e,e.type,e.pendingProps,r);case 7:return Ao(t,e,e.pendingProps,r),e.child;case 8:return Ao(t,e,e.pendingProps.children,r),e.child;case 12:return Ao(t,e,e.pendingProps.children,r),e.child;case 10:return n=e.pendingProps,sg(e,e.type,n.value),Ao(t,e,n.children,r),e.child;case 9:return i=e.type._context,n=e.pendingProps.children,Lb(e),i=Ro(i),n=n(i),e.flags|=1,Ao(t,e,n,r),e.child;case 14:return A0e(t,e,e.type,e.pendingProps,r);case 15:return Vye(t,e,e.type,e.pendingProps,r);case 19:return Kye(t,e,r);case 31:return Dct(t,e,r);case 22:return Wye(t,e,r,e.pendingProps);case 24:return Lb(e),n=Ro(bs),t===null?(i=vK(),i===null&&(i=cn,s=wK(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=r),i=s),e.memoizedState={parent:n,cache:i},EK(e),sg(e,bs,i)):((t.lanes&r)!==0&&(RG(t,e),J8(e,null,null,r),Q8()),i=t.memoizedState,s=e.memoizedState,i.parent!==n?(i={parent:n,cache:n},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),sg(e,bs,n)):(n=s.cache,sg(e,bs,n),n!==i.cache&&TG(e,[bs],r,!0))),Ao(t,e,e.pendingProps.children,r),e.child;case 29:throw e.pendingProps}throw Error(le(156,e.tag))}function Mh(t){t.flags|=4}function QW(t,e,r,n,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(w1e())t.flags|=8192;else throw Bb=qP,xK}else t.flags&=-16777217}function k0e(t,e){if(e.type!==\\\"stylesheet\\\"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!q1e(e))if(w1e())t.flags|=8192;else throw Bb=qP,xK}function dP(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?vge():536870912,t.lanes|=e,OE|=e)}function D8(t,e){if(!Xt)switch(t.tailMode){case\\\"hidden\\\":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case\\\"collapsed\\\":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function qn(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Uct(t,e,r){var n=e.pendingProps;switch(bK(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qn(e),null;case 1:return qn(e),null;case 3:return r=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Vh(bs),SE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(rE(e)?Mh(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,HW())),qn(e),null;case 26:var i=e.type,s=e.memoizedState;return t===null?(Mh(e),s!==null?(qn(e),k0e(e,s)):(qn(e),QW(e,i,null,n,r))):s?s!==t.memoizedState?(Mh(e),qn(e),k0e(e,s)):(qn(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Mh(e),qn(e),QW(e,i,t,n,r)),null;case 27:if(MP(e),r=hg.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Mh(e);else{if(!n){if(e.stateNode===null)throw Error(le(166));return qn(e),null}t=Gf.current,rE(e)?c0e(e,t):(t=F1e(i,n,r),e.stateNode=t,Mh(e))}return qn(e),null;case 5:if(MP(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Mh(e);else{if(!n){if(e.stateNode===null)throw Error(le(166));return qn(e),null}if(s=Gf.current,rE(e))c0e(e,s);else{var o=rO(hg.current);switch(s){case 1:s=o.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case 2:s=o.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;default:switch(i){case\\\"svg\\\":s=o.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case\\\"math\\\":s=o.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;case\\\"script\\\":s=o.createElement(\\\"div\\\"),s.innerHTML=\\\"<script><\\\\/script>\\\",s=s.removeChild(s.firstChild);break;case\\\"select\\\":s=typeof n.is==\\\"string\\\"?o.createElement(\\\"select\\\",{is:n.is}):o.createElement(\\\"select\\\"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is==\\\"string\\\"?o.createElement(i,{is:n.is}):o.createElement(i)}}s[To]=e,s[wc]=n;e:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break e;for(;o.sibling===null;){if(o.return===null||o.return===e)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=s;e:switch(Po(s,i,n),i){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n=!!n.autoFocus;break e;case\\\"img\\\":n=!0;break e;default:n=!1}n&&Mh(e)}}return qn(e),QW(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,r),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Mh(e);else{if(typeof n!=\\\"string\\\"&&e.stateNode===null)throw Error(le(166));if(t=hg.current,rE(e)){if(t=e.stateNode,r=e.memoizedProps,n=null,i=Io,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}t[To]=e,t=!!(t.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||M1e(t.nodeValue,r)),t||Cg(e,!0)}else t=rO(t).createTextNode(n),t[To]=e,e.stateNode=t}return qn(e),null;case 31:if(r=e.memoizedState,t===null||t.memoizedState!==null){if(n=rE(e),r!==null){if(t===null){if(!n)throw Error(le(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(le(557));t[To]=e}else Db(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qn(e),t=!1}else r=HW(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),t=!0;if(!t)return e.flags&256?(al(e),e):(al(e),null);if((e.flags&128)!==0)throw Error(le(558))}return qn(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=rE(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(le(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(le(317));i[To]=e}else Db(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qn(e),i=!1}else i=HW(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(al(e),e):(al(e),null)}return al(e),(e.flags&128)!==0?(e.lanes=r,e):(r=n!==null,t=t!==null&&t.memoizedState!==null,r&&(n=e.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048)),r!==t&&r&&(e.child.flags|=8192),dP(e,e.updateQueue),qn(e),null);case 4:return SE(),t===null&&VK(e.stateNode.containerInfo),qn(e),null;case 10:return Vh(e.type),qn(e),null;case 19:if(ro(ss),n=e.memoizedState,n===null)return qn(e),null;if(i=(e.flags&128)!==0,s=n.rendering,s===null)if(i)D8(n,!1);else{if(Gi!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=$P(t),s!==null){for(e.flags|=128,D8(n,!1),t=s.updateQueue,e.updateQueue=t,dP(e,t),e.subtreeFlags=0,t=r,r=e.child;r!==null;)Qge(r,t),r=r.sibling;return Sn(ss,ss.current&1|2),Xt&&Fh(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&ul()>QP&&(e.flags|=128,i=!0,D8(n,!1),e.lanes=4194304)}else{if(!i)if(t=$P(s),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,dP(e,t),D8(n,!0),n.tail===null&&n.tailMode===\\\"hidden\\\"&&!s.alternate&&!Xt)return qn(e),null}else 2*ul()-n.renderingStartTime>QP&&r!==536870912&&(e.flags|=128,i=!0,D8(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=ul(),t.sibling=null,r=ss.current,Sn(ss,i?r&1|2:r&1),Xt&&Fh(e,n.treeForkCount),t):(qn(e),null);case 22:case 23:return al(e),_K(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(r&536870912)!==0&&(e.flags&128)===0&&(qn(e),e.subtreeFlags&6&&(e.flags|=8192)):qn(e),r=e.updateQueue,r!==null&&dP(e,r.retryQueue),r=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==r&&(e.flags|=2048),t!==null&&ro(kb),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),Vh(bs),qn(e),null;case 25:return null;case 30:return null}throw Error(le(156,e.tag))}function Fct(t,e){switch(bK(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Vh(bs),SE(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return MP(e),null;case 31:if(e.memoizedState!==null){if(al(e),e.alternate===null)throw Error(le(340));Db()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(al(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(le(340));Db()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ro(ss),null;case 4:return SE(),null;case 10:return Vh(e.type),null;case 22:case 23:return al(e),_K(),t!==null&&ro(kb),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Vh(bs),null;case 25:return null;default:return null}}function Qye(t,e){switch(bK(e),e.tag){case 3:Vh(bs),SE();break;case 26:case 27:case 5:MP(e);break;case 4:SE();break;case 31:e.memoizedState!==null&&al(e);break;case 13:al(e);break;case 19:ro(ss);break;case 10:Vh(e.type);break;case 22:case 23:al(e),_K(),t!==null&&ro(kb);break;case 24:Vh(bs)}}function AS(t,e){try{var r=e.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var i=n.next;r=i;do{if((r.tag&t)===t){n=void 0;var s=r.create,o=r.inst;n=s(),o.destroy=n}r=r.next}while(r!==i)}}catch(a){Wr(e,e.return,a)}}function Sg(t,e,r){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){var o=n.inst,a=o.destroy;if(a!==void 0){o.destroy=void 0,i=e;var c=r,l=a;try{l()}catch(d){Wr(i,c,d)}}}n=n.next}while(n!==s)}}catch(d){Wr(e,e.return,d)}}function Jye(t){var e=t.updateQueue;if(e!==null){var r=t.stateNode;try{oye(e,r)}catch(n){Wr(t,t.return,n)}}}function Yye(t,e,r){r.props=jb(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(n){Wr(t,e,n)}}function X8(t,e){try{var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof r==\\\"function\\\"?t.refCleanup=r(n):r.current=n}}catch(i){Wr(t,e,i)}}function Wf(t,e){var r=t.ref,n=t.refCleanup;if(r!==null)if(typeof n==\\\"function\\\")try{n()}catch(i){Wr(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof r==\\\"function\\\")try{r(null)}catch(i){Wr(t,e,i)}else r.current=null}function Xye(t){var e=t.type,r=t.memoizedProps,n=t.stateNode;try{e:switch(e){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":r.autoFocus&&n.focus();break e;case\\\"img\\\":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(i){Wr(t,t.return,i)}}function JW(t,e,r){try{var n=t.stateNode;slt(n,t.type,r,e),n[wc]=e}catch(i){Wr(t,t.return,i)}}function e1e(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ig(t.type)||t.tag===4}function YW(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||e1e(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ig(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jG(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(r.nodeType===9?r.body:r.nodeName===\\\"HTML\\\"?r.ownerDocument.body:r).insertBefore(t,e):(e=r.nodeType===9?r.body:r.nodeName===\\\"HTML\\\"?r.ownerDocument.body:r,e.appendChild(t),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=qh));else if(n!==4&&(n===27&&Ig(t.type)&&(r=t.stateNode,e=null),t=t.child,t!==null))for(jG(t,e,r),t=t.sibling;t!==null;)jG(t,e,r),t=t.sibling}function ZP(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(n===27&&Ig(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(ZP(t,e,r),t=t.sibling;t!==null;)ZP(t,e,r),t=t.sibling}function t1e(t){var e=t.stateNode,r=t.memoizedProps;try{for(var n=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Po(e,n,r),e[To]=t,e[wc]=r}catch(s){Wr(t,t.return,s)}}var jh=!1,ys=!1,XW=!1,B0e=typeof WeakSet==\\\"function\\\"?WeakSet:Set,eo=null;function jct(t,e){if(t=t.containerInfo,GG=oO,t=qge(t),pK(t)){if(\\\"selectionStart\\\"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,d=0,f=t,p=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===t)break t;if(p===r&&++l===i&&(a=o),p===s&&++d===n&&(c=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(KG={focusedElem:t,selectionRange:r},oO=!1,eo=e;eo!==null;)if(e=eo,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,eo=t;else for(;eo!==null;){switch(e=eo,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(r=0;r<t.length;r++)i=t[r],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,r=e,i=s.memoizedProps,s=s.memoizedState,n=r.stateNode;try{var m=jb(r.type,i);t=n.getSnapshotBeforeUpdate(m,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(g){Wr(r,r.return,g)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,r=t.nodeType,r===9)QG(t);else if(r===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":QG(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(le(163))}if(t=e.sibling,t!==null){t.return=e.return,eo=t;break}eo=e.return}}function r1e(t,e,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Lh(t,r),n&4&&AS(5,r);break;case 1:if(Lh(t,r),n&4)if(t=r.stateNode,e===null)try{t.componentDidMount()}catch(o){Wr(r,r.return,o)}else{var i=jb(r.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Wr(r,r.return,o)}}n&64&&Jye(r),n&512&&X8(r,r.return);break;case 3:if(Lh(t,r),n&64&&(t=r.updateQueue,t!==null)){if(e=null,r.child!==null)switch(r.child.tag){case 27:case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}try{oye(t,e)}catch(o){Wr(r,r.return,o)}}break;case 27:e===null&&n&4&&t1e(r);case 26:case 5:Lh(t,r),e===null&&n&4&&Xye(r),n&512&&X8(r,r.return);break;case 12:Lh(t,r);break;case 31:Lh(t,r),n&4&&s1e(t,r);break;case 13:Lh(t,r),n&4&&o1e(t,r),n&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=Zct.bind(null,r),plt(t,r))));break;case 22:if(n=r.memoizedState!==null||jh,!n){e=e!==null&&e.memoizedState!==null||ys,i=jh;var s=ys;jh=n,(ys=e)&&!s?Uh(t,r,(r.subtreeFlags&8772)!==0):Lh(t,r),jh=i,ys=s}break;case 30:break;default:Lh(t,r)}}function n1e(t){var e=t.alternate;e!==null&&(t.alternate=null,n1e(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&aK(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var vi=null,gc=!1;function Dh(t,e,r){for(r=r.child;r!==null;)i1e(t,e,r),r=r.sibling}function i1e(t,e,r){if(dl&&typeof dl.onCommitFiberUnmount==\\\"function\\\")try{dl.onCommitFiberUnmount(wS,r)}catch{}switch(r.tag){case 26:ys||Wf(r,e),Dh(t,e,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ys||Wf(r,e);var n=vi,i=gc;Ig(r.type)&&(vi=r.stateNode,gc=!1),Dh(t,e,r),nS(r.stateNode),vi=n,gc=i;break;case 5:ys||Wf(r,e);case 6:if(n=vi,i=gc,vi=null,Dh(t,e,r),vi=n,gc=i,vi!==null)if(gc)try{(vi.nodeType===9?vi.body:vi.nodeName===\\\"HTML\\\"?vi.ownerDocument.body:vi).removeChild(r.stateNode)}catch(s){Wr(r,e,s)}else try{vi.removeChild(r.stateNode)}catch(s){Wr(r,e,s)}break;case 18:vi!==null&&(gc?(t=vi,Z0e(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,r.stateNode),ME(t)):Z0e(vi,r.stateNode));break;case 4:n=vi,i=gc,vi=r.stateNode.containerInfo,gc=!0,Dh(t,e,r),vi=n,gc=i;break;case 0:case 11:case 14:case 15:Sg(2,r,e),ys||Sg(4,r,e),Dh(t,e,r);break;case 1:ys||(Wf(r,e),n=r.stateNode,typeof n.componentWillUnmount==\\\"function\\\"&&Yye(r,e,n)),Dh(t,e,r);break;case 21:Dh(t,e,r);break;case 22:ys=(n=ys)||r.memoizedState!==null,Dh(t,e,r),ys=n;break;default:Dh(t,e,r)}}function s1e(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ME(t)}catch(r){Wr(e,e.return,r)}}}function o1e(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ME(t)}catch(r){Wr(e,e.return,r)}}function Hct(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new B0e),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new B0e),e;default:throw Error(le(435,t.tag))}}function fP(t,e){var r=Hct(t);e.forEach(function(n){if(!r.has(n)){r.add(n);var i=Qct.bind(null,t,n);n.then(i,i)}})}function hc(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n],s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 27:if(Ig(a.type)){vi=a.stateNode,gc=!1;break e}break;case 5:vi=a.stateNode,gc=!1;break e;case 3:case 4:vi=a.stateNode.containerInfo,gc=!0;break e}a=a.return}if(vi===null)throw Error(le(160));i1e(s,o,i),vi=null,gc=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)a1e(e,t),e=e.sibling}var Id=null;function a1e(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:hc(e,t),mc(t),n&4&&(Sg(3,t,t.return),AS(3,t),Sg(5,t,t.return));break;case 1:hc(e,t),mc(t),n&512&&(ys||r===null||Wf(r,r.return)),n&64&&jh&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(r=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var i=Id;if(hc(e,t),mc(t),n&512&&(ys||r===null||Wf(r,r.return)),n&4){var s=r!==null?r.memoizedState:null;if(n=t.memoizedState,r===null)if(n===null)if(t.stateNode===null){e:{n=t.type,r=t.memoizedProps,i=i.ownerDocument||i;t:switch(n){case\\\"title\\\":s=i.getElementsByTagName(\\\"title\\\")[0],(!s||s[ES]||s[To]||s.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||s.hasAttribute(\\\"itemprop\\\"))&&(s=i.createElement(n),i.head.insertBefore(s,i.querySelector(\\\"head > title\\\"))),Po(s,n,r),s[To]=t,to(s),n=s;break e;case\\\"link\\\":var o=rge(\\\"link\\\",\\\"href\\\",i).get(n+(r.href||\\\"\\\"));if(o){for(var a=0;a<o.length;a++)if(s=o[a],s.getAttribute(\\\"href\\\")===(r.href==null||r.href===\\\"\\\"?null:r.href)&&s.getAttribute(\\\"rel\\\")===(r.rel==null?null:r.rel)&&s.getAttribute(\\\"title\\\")===(r.title==null?null:r.title)&&s.getAttribute(\\\"crossorigin\\\")===(r.crossOrigin==null?null:r.crossOrigin)){o.splice(a,1);break t}}s=i.createElement(n),Po(s,n,r),i.head.appendChild(s);break;case\\\"meta\\\":if(o=rge(\\\"meta\\\",\\\"content\\\",i).get(n+(r.content||\\\"\\\"))){for(a=0;a<o.length;a++)if(s=o[a],s.getAttribute(\\\"content\\\")===(r.content==null?null:\\\"\\\"+r.content)&&s.getAttribute(\\\"name\\\")===(r.name==null?null:r.name)&&s.getAttribute(\\\"property\\\")===(r.property==null?null:r.property)&&s.getAttribute(\\\"http-equiv\\\")===(r.httpEquiv==null?null:r.httpEquiv)&&s.getAttribute(\\\"charset\\\")===(r.charSet==null?null:r.charSet)){o.splice(a,1);break t}}s=i.createElement(n),Po(s,n,r),i.head.appendChild(s);break;default:throw Error(le(468,n))}s[To]=t,to(s),n=s}t.stateNode=n}else nge(i,t.type,t.stateNode);else t.stateNode=tge(i,n,t.memoizedProps);else s!==n?(s===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):s.count--,n===null?nge(i,t.type,t.stateNode):tge(i,n,t.memoizedProps)):n===null&&t.stateNode!==null&&JW(t,t.memoizedProps,r.memoizedProps)}break;case 27:hc(e,t),mc(t),n&512&&(ys||r===null||Wf(r,r.return)),r!==null&&n&4&&JW(t,t.memoizedProps,r.memoizedProps);break;case 5:if(hc(e,t),mc(t),n&512&&(ys||r===null||Wf(r,r.return)),t.flags&32){i=t.stateNode;try{TE(i,\\\"\\\")}catch(m){Wr(t,t.return,m)}}n&4&&t.stateNode!=null&&(i=t.memoizedProps,JW(t,i,r!==null?r.memoizedProps:i)),n&1024&&(XW=!0);break;case 6:if(hc(e,t),mc(t),n&4){if(t.stateNode===null)throw Error(le(162));n=t.memoizedProps,r=t.stateNode;try{r.nodeValue=n}catch(m){Wr(t,t.return,m)}}break;case 3:if(PP=null,i=Id,Id=nO(e.containerInfo),hc(e,t),Id=i,mc(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ME(e.containerInfo)}catch(m){Wr(t,t.return,m)}XW&&(XW=!1,c1e(t));break;case 4:n=Id,Id=nO(t.stateNode.containerInfo),hc(e,t),mc(t),Id=n;break;case 12:hc(e,t),mc(t);break;case 31:hc(e,t),mc(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fP(t,n)));break;case 13:hc(e,t),mc(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(wO=ul()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fP(t,n)));break;case 22:i=t.memoizedState!==null;var c=r!==null&&r.memoizedState!==null,l=jh,d=ys;if(jh=l||i,ys=d||c,hc(e,t),ys=d,jh=l,mc(t),n&8192)e:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(r===null||c||jh||ys||Pb(t)),r=null,e=t;;){if(e.tag===5||e.tag===26){if(r===null){c=r=e;try{if(s=c.stateNode,i)o=s.style,typeof o.setProperty==\\\"function\\\"?o.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):o.display=\\\"none\\\";else{a=c.stateNode;var f=c.memoizedProps.style,p=f!=null&&f.hasOwnProperty(\\\"display\\\")?f.display:null;a.style.display=p==null||typeof p==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+p).trim()}}catch(m){Wr(c,c.return,m)}}}else if(e.tag===6){if(r===null){c=e;try{c.stateNode.nodeValue=i?\\\"\\\":c.memoizedProps}catch(m){Wr(c,c.return,m)}}}else if(e.tag===18){if(r===null){c=e;try{var h=c.stateNode;i?Q0e(h,!0):Q0e(c.stateNode,!1)}catch(m){Wr(c,c.return,m)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;r===e&&(r=null),e=e.return}r===e&&(r=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,fP(t,r))));break;case 19:hc(e,t),mc(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fP(t,n)));break;case 30:break;case 21:break;default:hc(e,t),mc(t)}}function mc(t){var e=t.flags;if(e&2){try{for(var r,n=t.return;n!==null;){if(e1e(n)){r=n;break}n=n.return}if(r==null)throw Error(le(160));switch(r.tag){case 27:var i=r.stateNode,s=YW(t);ZP(t,s,i);break;case 5:var o=r.stateNode;r.flags&32&&(TE(o,\\\"\\\"),r.flags&=-33);var a=YW(t);ZP(t,a,o);break;case 3:case 4:var c=r.stateNode.containerInfo,l=YW(t);jG(t,l,c);break;default:throw Error(le(161))}}catch(d){Wr(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function c1e(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;c1e(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Lh(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)r1e(t,e.alternate,e),e=e.sibling}function Pb(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Sg(4,e,e.return),Pb(e);break;case 1:Wf(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount==\\\"function\\\"&&Yye(e,e.return,r),Pb(e);break;case 27:nS(e.stateNode);case 26:case 5:Wf(e,e.return),Pb(e);break;case 22:e.memoizedState===null&&Pb(e);break;case 30:Pb(e);break;default:Pb(e)}t=t.sibling}}function Uh(t,e,r){for(r=r&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,i=t,s=e,o=s.flags;switch(s.tag){case 0:case 11:case 15:Uh(i,s,r),AS(4,s);break;case 1:if(Uh(i,s,r),n=s,i=n.stateNode,typeof i.componentDidMount==\\\"function\\\")try{i.componentDidMount()}catch(l){Wr(n,n.return,l)}if(n=s,i=n.updateQueue,i!==null){var a=n.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)sye(c[i],a)}catch(l){Wr(n,n.return,l)}}r&&o&64&&Jye(s),X8(s,s.return);break;case 27:t1e(s);case 26:case 5:Uh(i,s,r),r&&n===null&&o&4&&Xye(s),X8(s,s.return);break;case 12:Uh(i,s,r);break;case 31:Uh(i,s,r),r&&o&4&&s1e(i,s);break;case 13:Uh(i,s,r),r&&o&4&&o1e(i,s);break;case 22:s.memoizedState===null&&Uh(i,s,r),X8(s,s.return);break;case 30:break;default:Uh(i,s,r)}e=e.sibling}}function FK(t,e){var r=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==r&&(t!=null&&t.refCount++,r!=null&&CS(r))}function jK(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&CS(t))}function Td(t,e,r,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)l1e(t,e,r,n),e=e.sibling}function l1e(t,e,r,n){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Td(t,e,r,n),i&2048&&AS(9,e);break;case 1:Td(t,e,r,n);break;case 3:Td(t,e,r,n),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&CS(t)));break;case 12:if(i&2048){Td(t,e,r,n),t=e.stateNode;try{var s=e.memoizedProps,o=s.id,a=s.onPostCommit;typeof a==\\\"function\\\"&&a(o,e.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(c){Wr(e,e.return,c)}}else Td(t,e,r,n);break;case 31:Td(t,e,r,n);break;case 13:Td(t,e,r,n);break;case 23:break;case 22:s=e.stateNode,o=e.alternate,e.memoizedState!==null?s._visibility&2?Td(t,e,r,n):eS(t,e):s._visibility&2?Td(t,e,r,n):(s._visibility|=2,iE(t,e,r,n,(e.subtreeFlags&10256)!==0||!1)),i&2048&&FK(o,e);break;case 24:Td(t,e,r,n),i&2048&&jK(e.alternate,e);break;default:Td(t,e,r,n)}}function iE(t,e,r,n,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,o=e,a=r,c=n,l=o.flags;switch(o.tag){case 0:case 11:case 15:iE(s,o,a,c,i),AS(8,o);break;case 23:break;case 22:var d=o.stateNode;o.memoizedState!==null?d._visibility&2?iE(s,o,a,c,i):eS(s,o):(d._visibility|=2,iE(s,o,a,c,i)),i&&l&2048&&FK(o.alternate,o);break;case 24:iE(s,o,a,c,i),i&&l&2048&&jK(o.alternate,o);break;default:iE(s,o,a,c,i)}e=e.sibling}}function eS(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var r=t,n=e,i=n.flags;switch(n.tag){case 22:eS(r,n),i&2048&&FK(n.alternate,n);break;case 24:eS(r,n),i&2048&&jK(n.alternate,n);break;default:eS(r,n)}e=e.sibling}}var $8=8192;function nE(t,e,r){if(t.subtreeFlags&$8)for(t=t.child;t!==null;)u1e(t,e,r),t=t.sibling}function u1e(t,e,r){switch(t.tag){case 26:nE(t,e,r),t.flags&$8&&t.memoizedState!==null&&Slt(r,Id,t.memoizedState,t.memoizedProps);break;case 5:nE(t,e,r);break;case 3:case 4:var n=Id;Id=nO(t.stateNode.containerInfo),nE(t,e,r),Id=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=$8,$8=16777216,nE(t,e,r),$8=n):nE(t,e,r));break;default:nE(t,e,r)}}function d1e(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function L8(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var r=0;r<e.length;r++){var n=e[r];eo=n,p1e(n,t)}d1e(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)f1e(t),t=t.sibling}function f1e(t){switch(t.tag){case 0:case 11:case 15:L8(t),t.flags&2048&&Sg(9,t,t.return);break;case 3:L8(t);break;case 12:L8(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,IP(t)):L8(t);break;default:L8(t)}}function IP(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var r=0;r<e.length;r++){var n=e[r];eo=n,p1e(n,t)}d1e(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Sg(8,e,e.return),IP(e);break;case 22:r=e.stateNode,r._visibility&2&&(r._visibility&=-3,IP(e));break;default:IP(e)}t=t.sibling}}function p1e(t,e){for(;eo!==null;){var r=eo;switch(r.tag){case 0:case 11:case 15:Sg(8,r,e);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:CS(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,eo=n;else e:for(r=t;eo!==null;){n=eo;var i=n.sibling,s=n.return;if(n1e(n),n===r){eo=null;break e}if(i!==null){i.return=s,eo=i;break e}eo=s}}}var qct={getCacheForType:function(t){var e=Ro(bs),r=e.data.get(t);return r===void 0&&(r=t(),e.data.set(t,r)),r},cacheSignal:function(){return Ro(bs).controller.signal}},zct=typeof WeakMap==\\\"function\\\"?WeakMap:Map,Mr=0,cn=null,Gt=null,Qt=0,Vr=0,ol=null,dg=!1,jE=!1,HK=!1,Jh=0,Gi=0,Ag=0,Mb=0,qK=0,ll=0,OE=0,tS=null,yc=null,HG=!1,wO=0,h1e=0,QP=1/0,JP=null,bg=null,Us=0,wg=null,NE=null,Wh=0,qG=0,zG=null,m1e=null,rS=0,$G=null;function pl(){return(Mr&2)!==0&&Qt!==0?Qt&-Qt:ct.T!==null?$K():Cge()}function g1e(){if(ll===0)if((Qt&536870912)===0||Xt){var t=rP;rP<<=1,(rP&3932160)===0&&(rP=262144),ll=t}else ll=536870912;return t=ml.current,t!==null&&(t.flags|=32),ll}function bc(t,e,r){(t===cn&&(Vr===2||Vr===9)||t.cancelPendingCommit!==null)&&(kE(t,0),fg(t,Qt,ll,!1)),xS(t,r),((Mr&2)===0||t!==cn)&&(t===cn&&((Mr&2)===0&&(Mb|=r),Gi===4&&fg(t,Qt,ll,!1)),Zf(t))}function y1e(t,e,r){if((Mr&6)!==0)throw Error(le(327));var n=!r&&(e&127)===0&&(e&t.expiredLanes)===0||vS(t,e),i=n?Wct(t,e):eG(t,e,!0),s=n;do{if(i===0){jE&&!n&&fg(t,e,0,!1);break}else{if(r=t.current.alternate,s&&!$ct(r)){i=eG(t,e,!1),s=!1;continue}if(i===2){if(s=e,t.errorRecoveryDisabledLanes&s)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;e:{var a=t;i=tS;var c=a.current.memoizedState.isDehydrated;if(c&&(kE(a,o).flags|=256),o=eG(a,o,!1),o!==2){if(HK&&!c){a.errorRecoveryDisabledLanes|=s,Mb|=s,i=4;break e}s=yc,yc=i,s!==null&&(yc===null?yc=s:yc.push.apply(yc,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){kE(t,0),fg(t,e,0,!0);break}e:{switch(n=t,s=i,s){case 0:case 1:throw Error(le(345));case 4:if((e&4194048)!==e)break;case 6:fg(n,e,ll,!dg);break e;case 2:yc=null;break;case 3:case 5:break;default:throw Error(le(329))}if((e&62914560)===e&&(i=wO+300-ul(),10<i)){if(fg(n,e,ll,!dg),cO(n,0,!0)!==0)break e;Wh=e,n.timeoutHandle=L1e(M0e.bind(null,n,r,yc,JP,HG,e,ll,Mb,OE,dg,s,\\\"Throttled\\\",-0,0),i);break e}M0e(n,r,yc,JP,HG,e,ll,Mb,OE,dg,s,null,-0,0)}}break}while(!0);Zf(t)}function M0e(t,e,r,n,i,s,o,a,c,l,d,f,p,h){if(t.timeoutHandle=-1,f=e.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qh},u1e(e,s,f);var m=(s&62914560)===s?wO-ul():(s&4194048)===s?h1e-ul():0;if(m=Alt(f,m),m!==null){Wh=s,t.cancelPendingCommit=m(L0e.bind(null,t,e,s,r,n,i,o,a,c,d,f,null,p,h)),fg(t,s,o,!l);return}}L0e(t,e,s,r,n,i,o,a,c)}function $ct(t){for(var e=t;;){var r=e.tag;if((r===0||r===11||r===15)&&e.flags&16384&&(r=e.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!hl(s(),i))return!1}catch{return!1}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function fg(t,e,r,n){e&=~qK,e&=~Mb,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var i=e;0<i;){var s=31-fl(i),o=1<<s;n[s]=-1,i&=~o}r!==0&&xge(t,r,e)}function vO(){return(Mr&6)===0?(TS(0,!1),!1):!0}function zK(){if(Gt!==null){if(Vr===0)var t=Gt.return;else t=Gt,zh=Vb=null,IK(t),EE=null,uS=0,t=Gt;for(;t!==null;)Qye(t.alternate,t),t=t.return;Gt=null}}function kE(t,e){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,clt(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),Wh=0,zK(),cn=t,Gt=r=$h(t.current,null),Qt=e,Vr=0,ol=null,dg=!1,jE=vS(t,e),HK=!1,OE=ll=qK=Mb=Ag=Gi=0,yc=tS=null,HG=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-fl(n),s=1<<i;e|=t[i],n&=~s}return Jh=e,fO(),r}function b1e(t,e){St=null,ct.H=fS,e===FE||e===hO?(e=p0e(),Vr=3):e===xK?(e=p0e(),Vr=4):Vr=e===LK?8:e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?6:1,ol=e,Gt===null&&(Gi=1,GP(t,du(e,t.current)))}function w1e(){var t=ml.current;return t===null?!0:(Qt&4194048)===Qt?pu===null:(Qt&62914560)===Qt||(Qt&536870912)!==0?t===pu:!1}function v1e(){var t=ct.H;return ct.H=fS,t===null?fS:t}function x1e(){var t=ct.A;return ct.A=qct,t}function YP(){Gi=4,dg||(Qt&4194048)!==Qt&&ml.current!==null||(jE=!0),(Ag&134217727)===0&&(Mb&134217727)===0||cn===null||fg(cn,Qt,ll,!1)}function eG(t,e,r){var n=Mr;Mr|=2;var i=v1e(),s=x1e();(cn!==t||Qt!==e)&&(JP=null,kE(t,e)),e=!1;var o=Gi;e:do try{if(Vr!==0&&Gt!==null){var a=Gt,c=ol;switch(Vr){case 8:zK(),o=6;break e;case 3:case 2:case 9:case 6:ml.current===null&&(e=!0);var l=Vr;if(Vr=0,ol=null,yE(t,a,c,l),r&&jE){o=0;break e}break;default:l=Vr,Vr=0,ol=null,yE(t,a,c,l)}}Vct(),o=Gi;break}catch(d){b1e(t,d)}while(!0);return e&&t.shellSuspendCounter++,zh=Vb=null,Mr=n,ct.H=i,ct.A=s,Gt===null&&(cn=null,Qt=0,fO()),o}function Vct(){for(;Gt!==null;)E1e(Gt)}function Wct(t,e){var r=Mr;Mr|=2;var n=v1e(),i=x1e();cn!==t||Qt!==e?(JP=null,QP=ul()+500,kE(t,e)):jE=vS(t,e);e:do try{if(Vr!==0&&Gt!==null){e=Gt;var s=ol;t:switch(Vr){case 1:Vr=0,ol=null,yE(t,e,s,1);break;case 2:case 9:if(f0e(s)){Vr=0,ol=null,D0e(e);break}e=function(){Vr!==2&&Vr!==9||cn!==t||(Vr=7),Zf(t)},s.then(e,e);break e;case 3:Vr=7;break e;case 4:Vr=5;break e;case 7:f0e(s)?(Vr=0,ol=null,D0e(e)):(Vr=0,ol=null,yE(t,e,s,7));break;case 5:var o=null;switch(Gt.tag){case 26:o=Gt.memoizedState;case 5:case 27:var a=Gt;if(o?q1e(o):a.stateNode.complete){Vr=0,ol=null;var c=a.sibling;if(c!==null)Gt=c;else{var l=a.return;l!==null?(Gt=l,xO(l)):Gt=null}break t}}Vr=0,ol=null,yE(t,e,s,5);break;case 6:Vr=0,ol=null,yE(t,e,s,6);break;case 8:zK(),Gi=6;break e;default:throw Error(le(462))}}Gct();break}catch(d){b1e(t,d)}while(!0);return zh=Vb=null,ct.H=n,ct.A=i,Mr=r,Gt!==null?0:(cn=null,Qt=0,fO(),Gi)}function Gct(){for(;Gt!==null&&!gat();)E1e(Gt)}function E1e(t){var e=Zye(t.alternate,t,Jh);t.memoizedProps=t.pendingProps,e===null?xO(t):Gt=e}function D0e(t){var e=t,r=e.alternate;switch(e.tag){case 15:case 0:e=R0e(r,e,e.pendingProps,e.type,void 0,Qt);break;case 11:e=R0e(r,e,e.pendingProps,e.type.render,e.ref,Qt);break;case 5:IK(e);default:Qye(r,e),e=Gt=Qge(e,Jh),e=Zye(r,e,Jh)}t.memoizedProps=t.pendingProps,e===null?xO(t):Gt=e}function yE(t,e,r,n){zh=Vb=null,IK(e),EE=null,uS=0;var i=e.return;try{if(Mct(t,i,e,r,Qt)){Gi=1,GP(t,du(r,t.current)),Gt=null;return}}catch(s){if(i!==null)throw Gt=i,s;Gi=1,GP(t,du(r,t.current)),Gt=null;return}e.flags&32768?(Xt||n===1?t=!0:jE||(Qt&536870912)!==0?t=!1:(dg=t=!0,(n===2||n===9||n===3||n===6)&&(n=ml.current,n!==null&&n.tag===13&&(n.flags|=16384))),_1e(e,t)):xO(e)}function xO(t){var e=t;do{if((e.flags&32768)!==0){_1e(e,dg);return}t=e.return;var r=Uct(e.alternate,e,Jh);if(r!==null){Gt=r;return}if(e=e.sibling,e!==null){Gt=e;return}Gt=e=t}while(e!==null);Gi===0&&(Gi=5)}function _1e(t,e){do{var r=Fct(t.alternate,t);if(r!==null){r.flags&=32767,Gt=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!e&&(t=t.sibling,t!==null)){Gt=t;return}Gt=t=r}while(t!==null);Gi=6,Gt=null}function L0e(t,e,r,n,i,s,o,a,c){t.cancelPendingCommit=null;do EO();while(Us!==0);if((Mr&6)!==0)throw Error(le(327));if(e!==null){if(e===t.current)throw Error(le(177));if(s=e.lanes|e.childLanes,s|=hK,Aat(t,r,s,o,a,c),t===cn&&(Gt=cn=null,Qt=0),NE=e,wg=t,Wh=r,qG=s,zG=i,m1e=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Jct(DP,function(){return I1e(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=ct.T,ct.T=null,i=Dr.p,Dr.p=2,o=Mr,Mr|=4;try{jct(t,e,r)}finally{Mr=o,Dr.p=i,ct.T=n}}Us=1,C1e(),S1e(),A1e()}}function C1e(){if(Us===1){Us=0;var t=wg,e=NE,r=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||r){r=ct.T,ct.T=null;var n=Dr.p;Dr.p=2;var i=Mr;Mr|=4;try{a1e(e,t);var s=KG,o=qge(t.containerInfo),a=s.focusedElem,c=s.selectionRange;if(o!==a&&a&&a.ownerDocument&&Hge(a.ownerDocument.documentElement,a)){if(c!==null&&pK(a)){var l=c.start,d=c.end;if(d===void 0&&(d=l),\\\"selectionStart\\\"in a)a.selectionStart=l,a.selectionEnd=Math.min(d,a.value.length);else{var f=a.ownerDocument||document,p=f&&f.defaultView||window;if(p.getSelection){var h=p.getSelection(),m=a.textContent.length,g=Math.min(c.start,m),w=c.end===void 0?g:Math.min(c.end,m);!h.extend&&g>w&&(o=w,w=g,g=o);var v=s0e(a,g),b=s0e(a,w);if(v&&b&&(h.rangeCount!==1||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var _=f.createRange();_.setStart(v.node,v.offset),h.removeAllRanges(),g>w?(h.addRange(_),h.extend(b.node,b.offset)):(_.setEnd(b.node,b.offset),h.addRange(_))}}}}for(f=[],h=a;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof a.focus==\\\"function\\\"&&a.focus(),a=0;a<f.length;a++){var S=f[a];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}oO=!!GG,KG=GG=null}finally{Mr=i,Dr.p=n,ct.T=r}}t.current=e,Us=2}}function S1e(){if(Us===2){Us=0;var t=wg,e=NE,r=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||r){r=ct.T,ct.T=null;var n=Dr.p;Dr.p=2;var i=Mr;Mr|=4;try{r1e(t,e.alternate,e)}finally{Mr=i,Dr.p=n,ct.T=r}}Us=3}}function A1e(){if(Us===4||Us===3){Us=0,yat();var t=wg,e=NE,r=Wh,n=m1e;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Us=5:(Us=0,NE=wg=null,T1e(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(bg=null),oK(r),e=e.stateNode,dl&&typeof dl.onCommitFiberRoot==\\\"function\\\")try{dl.onCommitFiberRoot(wS,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=ct.T,i=Dr.p,Dr.p=2,ct.T=null;try{for(var s=t.onRecoverableError,o=0;o<n.length;o++){var a=n[o];s(a.value,{componentStack:a.stack})}}finally{ct.T=e,Dr.p=i}}(Wh&3)!==0&&EO(),Zf(t),i=t.pendingLanes,(r&261930)!==0&&(i&42)!==0?t===$G?rS++:(rS=0,$G=t):rS=0,TS(0,!1)}}function T1e(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,CS(e)))}function EO(){return C1e(),S1e(),A1e(),I1e()}function I1e(){if(Us!==5)return!1;var t=wg,e=qG;qG=0;var r=oK(Wh),n=ct.T,i=Dr.p;try{Dr.p=32>r?32:r,ct.T=null,r=zG,zG=null;var s=wg,o=Wh;if(Us=0,NE=wg=null,Wh=0,(Mr&6)!==0)throw Error(le(331));var a=Mr;if(Mr|=4,f1e(s.current),l1e(s,s.current,o,r),Mr=a,TS(0,!1),dl&&typeof dl.onPostCommitFiberRoot==\\\"function\\\")try{dl.onPostCommitFiberRoot(wS,s)}catch{}return!0}finally{Dr.p=i,ct.T=n,T1e(t,e)}}function U0e(t,e,r){e=du(r,e),e=LG(t.stateNode,e,2),t=yg(t,e,2),t!==null&&(xS(t,2),Zf(t))}function Wr(t,e,r){if(t.tag===3)U0e(t,t,r);else for(;e!==null;){if(e.tag===3){U0e(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError==\\\"function\\\"||typeof n.componentDidCatch==\\\"function\\\"&&(bg===null||!bg.has(n))){t=du(r,t),r=zye(2),n=yg(e,r,2),n!==null&&($ye(r,n,e,t),xS(n,2),Zf(n));break}}e=e.return}}function tG(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new zct;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(HK=!0,i.add(r),t=Kct.bind(null,t,e,r),e.then(t,t))}function Kct(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,cn===t&&(Qt&r)===r&&(Gi===4||Gi===3&&(Qt&62914560)===Qt&&300>ul()-wO?(Mr&2)===0&&kE(t,0):qK|=r,OE===Qt&&(OE=0)),Zf(t)}function R1e(t,e){e===0&&(e=vge()),t=$b(t,e),t!==null&&(xS(t,e),Zf(t))}function Zct(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),R1e(t,r)}function Qct(t,e){var r=0;switch(t.tag){case 31:case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(le(314))}n!==null&&n.delete(e),R1e(t,r)}function Jct(t,e){return iK(t,e)}var XP=null,sE=null,VG=!1,eO=!1,rG=!1,pg=0;function Zf(t){t!==sE&&t.next===null&&(sE===null?XP=sE=t:sE=sE.next=t),eO=!0,VG||(VG=!0,Xct())}function TS(t,e){if(!rG&&eO){rG=!0;do for(var r=!1,n=XP;n!==null;){if(!e)if(t!==0){var i=n.pendingLanes;if(i===0)var s=0;else{var o=n.suspendedLanes,a=n.pingedLanes;s=(1<<31-fl(42|t)+1)-1,s&=i&~(o&~a),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(r=!0,F0e(n,s))}else s=Qt,s=cO(n,n===cn?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||vS(n,s)||(r=!0,F0e(n,s));n=n.next}while(r);rG=!1}}function Yct(){P1e()}function P1e(){eO=VG=!1;var t=0;pg!==0&&alt()&&(t=pg);for(var e=ul(),r=null,n=XP;n!==null;){var i=n.next,s=O1e(n,e);s===0?(n.next=null,r===null?XP=i:r.next=i,i===null&&(sE=r)):(r=n,(t!==0||(s&3)!==0)&&(eO=!0)),n=i}Us!==0&&Us!==5||TS(t,!1),pg!==0&&(pg=0)}function O1e(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var o=31-fl(s),a=1<<o,c=i[o];c===-1?((a&r)===0||(a&n)!==0)&&(i[o]=Sat(a,e)):c<=e&&(t.expiredLanes|=a),s&=~a}if(e=cn,r=Qt,r=cO(t,t===e?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,r===0||t===e&&(Vr===2||Vr===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&OW(n),t.callbackNode=null,t.callbackPriority=0;if((r&3)===0||vS(t,r)){if(e=r&-r,e===t.callbackPriority)return e;switch(n!==null&&OW(n),oK(r)){case 2:case 8:r=bge;break;case 32:r=DP;break;case 268435456:r=wge;break;default:r=DP}return n=N1e.bind(null,t),r=iK(r,n),t.callbackPriority=e,t.callbackNode=r,e}return n!==null&&n!==null&&OW(n),t.callbackPriority=2,t.callbackNode=null,2}function N1e(t,e){if(Us!==0&&Us!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(EO()&&t.callbackNode!==r)return null;var n=Qt;return n=cO(t,t===cn?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(y1e(t,n,e),O1e(t,ul()),t.callbackNode!=null&&t.callbackNode===r?N1e.bind(null,t):null)}function F0e(t,e){if(EO())return null;y1e(t,e,!0)}function Xct(){llt(function(){(Mr&6)!==0?iK(yge,Yct):P1e()})}function $K(){if(pg===0){var t=IE;t===0&&(t=tP,tP<<=1,(tP&261888)===0&&(tP=256)),pg=t}return pg}function j0e(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:wP(\\\"\\\"+t)}function H0e(t,e){var r=e.ownerDocument.createElement(\\\"input\\\");return r.name=e.name,r.value=e.value,t.id&&r.setAttribute(\\\"form\\\",t.id),e.parentNode.insertBefore(r,e),t=new FormData(t),r.parentNode.removeChild(r),t}function elt(t,e,r,n,i){if(e===\\\"submit\\\"&&r&&r.stateNode===i){var s=j0e((i[wc]||null).action),o=n.submitter;o&&(e=(e=o[wc]||null)?j0e(e.formAction):o.getAttribute(\\\"formAction\\\"),e!==null&&(s=e,o=null));var a=new lO(\\\"action\\\",\\\"action\\\",null,n,i);t.push({event:a,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(pg!==0){var c=o?H0e(i,o):new FormData(i);MG(r,{pending:!0,data:c,method:i.method,action:s},null,c)}}else typeof s==\\\"function\\\"&&(a.preventDefault(),c=o?H0e(i,o):new FormData(i),MG(r,{pending:!0,data:c,method:i.method,action:s},s,c))},currentTarget:i}]})}}for(pP=0;pP<_G.length;pP++)hP=_G[pP],q0e=hP.toLowerCase(),z0e=hP[0].toUpperCase()+hP.slice(1),Rd(q0e,\\\"on\\\"+z0e);var hP,q0e,z0e,pP;Rd($ge,\\\"onAnimationEnd\\\");Rd(Vge,\\\"onAnimationIteration\\\");Rd(Wge,\\\"onAnimationStart\\\");Rd(\\\"dblclick\\\",\\\"onDoubleClick\\\");Rd(\\\"focusin\\\",\\\"onFocus\\\");Rd(\\\"focusout\\\",\\\"onBlur\\\");Rd(bct,\\\"onTransitionRun\\\");Rd(wct,\\\"onTransitionStart\\\");Rd(vct,\\\"onTransitionCancel\\\");Rd(Gge,\\\"onTransitionEnd\\\");AE(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);AE(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);AE(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);AE(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);Hb(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));Hb(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));Hb(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);Hb(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));Hb(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));Hb(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var pS=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),tlt=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(pS));function k1e(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;e:{var s=void 0;if(e)for(var o=n.length-1;0<=o;o--){var a=n[o],c=a.instance,l=a.currentTarget;if(a=a.listener,c!==s&&i.isPropagationStopped())break e;s=a,i.currentTarget=l;try{s(i)}catch(d){UP(d)}i.currentTarget=null,s=c}else for(o=0;o<n.length;o++){if(a=n[o],c=a.instance,l=a.currentTarget,a=a.listener,c!==s&&i.isPropagationStopped())break e;s=a,i.currentTarget=l;try{s(i)}catch(d){UP(d)}i.currentTarget=null,s=c}}}}function Wt(t,e){var r=e[mG];r===void 0&&(r=e[mG]=new Set);var n=t+\\\"__bubble\\\";r.has(n)||(B1e(e,t,2,!1),r.add(n))}function nG(t,e,r){var n=0;e&&(n|=4),B1e(r,t,n,e)}var mP=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function VK(t){if(!t[mP]){t[mP]=!0,Sge.forEach(function(r){r!==\\\"selectionchange\\\"&&(tlt.has(r)||nG(r,!1,t),nG(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mP]||(e[mP]=!0,nG(\\\"selectionchange\\\",!1,e))}}function B1e(t,e,r,n){switch(G1e(e)){case 2:var i=Rlt;break;case 8:i=Plt;break;default:i=ZK}r=i.bind(null,e,r,t),i=void 0,!vG||e!==\\\"touchstart\\\"&&e!==\\\"touchmove\\\"&&e!==\\\"wheel\\\"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function iG(t,e,r,n,i){var s=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;a!==null;){if(o=cE(a),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){n=s=o;continue e}a=a.parentNode}}n=n.return}kge(function(){var l=s,d=lK(r),f=[];e:{var p=Kge.get(t);if(p!==void 0){var h=lO,m=t;switch(t){case\\\"keypress\\\":if(xP(r)===0)break e;case\\\"keydown\\\":case\\\"keyup\\\":h=Qat;break;case\\\"focusin\\\":m=\\\"focus\\\",h=DW;break;case\\\"focusout\\\":m=\\\"blur\\\",h=DW;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":h=DW;break;case\\\"click\\\":if(r.button===2)break e;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":h=Qme;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":h=Uat;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":h=Xat;break;case $ge:case Vge:case Wge:h=Hat;break;case Gge:h=tct;break;case\\\"scroll\\\":case\\\"scrollend\\\":h=Dat;break;case\\\"wheel\\\":h=nct;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":h=zat;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":h=Yme;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":h=sct}var g=(e&4)!==0,w=!g&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),v=g?p!==null?p+\\\"Capture\\\":null:p;g=[];for(var b=l,_;b!==null;){var S=b;if(_=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||_===null||v===null||(S=sS(b,v),S!=null&&g.push(hS(b,S,_))),w)break;b=b.return}0<g.length&&(p=new h(p,m,null,r,d),f.push({event:p,listeners:g}))}}if((e&7)===0){e:{if(p=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",h=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",p&&r!==wG&&(m=r.relatedTarget||r.fromElement)&&(cE(m)||m[DE]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=l,m=m?cE(m):null,m!==null&&(w=bS(m),g=m.tag,m!==w||g!==5&&g!==27&&g!==6)&&(m=null)):(h=null,m=l),h!==m)){if(g=Qme,S=\\\"onMouseLeave\\\",v=\\\"onMouseEnter\\\",b=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(g=Yme,S=\\\"onPointerLeave\\\",v=\\\"onPointerEnter\\\",b=\\\"pointer\\\"),w=h==null?p:q8(h),_=m==null?p:q8(m),p=new g(S,b+\\\"leave\\\",h,r,d),p.target=w,p.relatedTarget=_,S=null,cE(d)===l&&(g=new g(v,b+\\\"enter\\\",m,r,d),g.target=_,g.relatedTarget=w,S=g),w=S,h&&m)t:{for(g=rlt,v=h,b=m,_=0,S=v;S;S=g(S))_++;S=0;for(var T=b;T;T=g(T))S++;for(;0<_-S;)v=g(v),_--;for(;0<S-_;)b=g(b),S--;for(;_--;){if(v===b||b!==null&&v===b.alternate){g=v;break t}v=g(v),b=g(b)}g=null}else g=null;h!==null&&$0e(f,p,h,g,!1),m!==null&&w!==null&&$0e(f,w,m,g,!0)}}e:{if(p=l?q8(l):window,h=p.nodeName&&p.nodeName.toLowerCase(),h===\\\"select\\\"||h===\\\"input\\\"&&p.type===\\\"file\\\")var N=r0e;else if(t0e(p))if(Fge)N=mct;else{N=pct;var O=fct}else h=p.nodeName,!h||h.toLowerCase()!==\\\"input\\\"||p.type!==\\\"checkbox\\\"&&p.type!==\\\"radio\\\"?l&&cK(l.elementType)&&(N=r0e):N=hct;if(N&&(N=N(t,l))){Uge(f,N,r,d);break e}O&&O(t,p,l),t===\\\"focusout\\\"&&l&&p.type===\\\"number\\\"&&l.memoizedProps.value!=null&&bG(p,\\\"number\\\",p.value)}switch(O=l?q8(l):window,t){case\\\"focusin\\\":(t0e(O)||O.contentEditable===\\\"true\\\")&&(dE=O,xG=l,G8=null);break;case\\\"focusout\\\":G8=xG=dE=null;break;case\\\"mousedown\\\":EG=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":EG=!1,o0e(f,r,d);break;case\\\"selectionchange\\\":if(yct)break;case\\\"keydown\\\":case\\\"keyup\\\":o0e(f,r,d)}var L;if(fK)e:{switch(t){case\\\"compositionstart\\\":var B=\\\"onCompositionStart\\\";break e;case\\\"compositionend\\\":B=\\\"onCompositionEnd\\\";break e;case\\\"compositionupdate\\\":B=\\\"onCompositionUpdate\\\";break e}B=void 0}else uE?Dge(t,r)&&(B=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&r.keyCode===229&&(B=\\\"onCompositionStart\\\");B&&(Mge&&r.locale!==\\\"ko\\\"&&(uE||B!==\\\"onCompositionStart\\\"?B===\\\"onCompositionEnd\\\"&&uE&&(L=Bge()):(ug=d,uK=\\\"value\\\"in ug?ug.value:ug.textContent,uE=!0)),O=tO(l,B),0<O.length&&(B=new Jme(B,t,null,r,d),f.push({event:B,listeners:O}),L?B.data=L:(L=Lge(r),L!==null&&(B.data=L)))),(L=act?cct(t,r):lct(t,r))&&(B=tO(l,\\\"onBeforeInput\\\"),0<B.length&&(O=new Jme(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,r,d),f.push({event:O,listeners:B}),O.data=L)),elt(f,t,l,r,d)}k1e(f,e)})}function hS(t,e,r){return{instance:t,listener:e,currentTarget:r}}function tO(t,e){for(var r=e+\\\"Capture\\\",n=[];t!==null;){var i=t,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=sS(t,r),i!=null&&n.unshift(hS(t,i,s)),i=sS(t,e),i!=null&&n.push(hS(t,i,s))),t.tag===3)return n;t=t.return}return[]}function rlt(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $0e(t,e,r,n,i){for(var s=e._reactName,o=[];r!==null&&r!==n;){var a=r,c=a.alternate,l=a.stateNode;if(a=a.tag,c!==null&&c===n)break;a!==5&&a!==26&&a!==27||l===null||(c=l,i?(l=sS(r,s),l!=null&&o.unshift(hS(r,l,c))):i||(l=sS(r,s),l!=null&&o.push(hS(r,l,c)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var nlt=/\\\\r\\\\n?/g,ilt=/\\\\u0000|\\\\uFFFD/g;function V0e(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(nlt,`\\n`).replace(ilt,\\\"\\\")}function M1e(t,e){return e=V0e(e),V0e(t)===e}function Yr(t,e,r,n,i,s){switch(r){case\\\"children\\\":typeof n==\\\"string\\\"?e===\\\"body\\\"||e===\\\"textarea\\\"&&n===\\\"\\\"||TE(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&e!==\\\"body\\\"&&TE(t,\\\"\\\"+n);break;case\\\"className\\\":iP(t,\\\"class\\\",n);break;case\\\"tabIndex\\\":iP(t,\\\"tabindex\\\",n);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":iP(t,r,n);break;case\\\"style\\\":Nge(t,n,s);break;case\\\"data\\\":if(e!==\\\"object\\\"){iP(t,\\\"data\\\",n);break}case\\\"src\\\":case\\\"href\\\":if(n===\\\"\\\"&&(e!==\\\"a\\\"||r!==\\\"href\\\")){t.removeAttribute(r);break}if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(r);break}n=wP(\\\"\\\"+n),t.setAttribute(r,n);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof n==\\\"function\\\"){t.setAttribute(r,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof s==\\\"function\\\"&&(r===\\\"formAction\\\"?(e!==\\\"input\\\"&&Yr(t,e,\\\"name\\\",i.name,i,null),Yr(t,e,\\\"formEncType\\\",i.formEncType,i,null),Yr(t,e,\\\"formMethod\\\",i.formMethod,i,null),Yr(t,e,\\\"formTarget\\\",i.formTarget,i,null)):(Yr(t,e,\\\"encType\\\",i.encType,i,null),Yr(t,e,\\\"method\\\",i.method,i,null),Yr(t,e,\\\"target\\\",i.target,i,null)));if(n==null||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(r);break}n=wP(\\\"\\\"+n),t.setAttribute(r,n);break;case\\\"onClick\\\":n!=null&&(t.onclick=qh);break;case\\\"onScroll\\\":n!=null&&Wt(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&Wt(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(le(61));if(r=n.__html,r!=null){if(i.children!=null)throw Error(le(60));t.innerHTML=r}}break;case\\\"multiple\\\":t.multiple=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"boolean\\\"||typeof n==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}r=wP(\\\"\\\"+n),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",r);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(r,\\\"\\\"+n):t.removeAttribute(r);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(r,\\\"\\\"):t.removeAttribute(r);break;case\\\"capture\\\":case\\\"download\\\":n===!0?t.setAttribute(r,\\\"\\\"):n!==!1&&n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(r,n):t.removeAttribute(r);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!isNaN(n)&&1<=n?t.setAttribute(r,n):t.removeAttribute(r);break;case\\\"rowSpan\\\":case\\\"start\\\":n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||isNaN(n)?t.removeAttribute(r):t.setAttribute(r,n);break;case\\\"popover\\\":Wt(\\\"beforetoggle\\\",t),Wt(\\\"toggle\\\",t),bP(t,\\\"popover\\\",n);break;case\\\"xlinkActuate\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",n);break;case\\\"xlinkArcrole\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",n);break;case\\\"xlinkRole\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",n);break;case\\\"xlinkShow\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",n);break;case\\\"xlinkTitle\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",n);break;case\\\"xlinkType\\\":Bh(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",n);break;case\\\"xmlBase\\\":Bh(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",n);break;case\\\"xmlLang\\\":Bh(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",n);break;case\\\"xmlSpace\\\":Bh(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",n);break;case\\\"is\\\":bP(t,\\\"is\\\",n);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<r.length)||r[0]!==\\\"o\\\"&&r[0]!==\\\"O\\\"||r[1]!==\\\"n\\\"&&r[1]!==\\\"N\\\")&&(r=Bat.get(r)||r,bP(t,r,n))}}function WG(t,e,r,n,i,s){switch(r){case\\\"style\\\":Nge(t,n,s);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(le(61));if(r=n.__html,r!=null){if(i.children!=null)throw Error(le(60));t.innerHTML=r}}break;case\\\"children\\\":typeof n==\\\"string\\\"?TE(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&TE(t,\\\"\\\"+n);break;case\\\"onScroll\\\":n!=null&&Wt(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&Wt(\\\"scrollend\\\",t);break;case\\\"onClick\\\":n!=null&&(t.onclick=qh);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!Age.hasOwnProperty(r))e:{if(r[0]===\\\"o\\\"&&r[1]===\\\"n\\\"&&(i=r.endsWith(\\\"Capture\\\"),e=r.slice(2,i?r.length-7:void 0),s=t[wc]||null,s=s!=null?s[r]:null,typeof s==\\\"function\\\"&&t.removeEventListener(e,s,i),typeof n==\\\"function\\\")){typeof s!=\\\"function\\\"&&s!==null&&(r in t?t[r]=null:t.hasAttribute(r)&&t.removeAttribute(r)),t.addEventListener(e,n,i);break e}r in t?t[r]=n:n===!0?t.setAttribute(r,\\\"\\\"):bP(t,r,n)}}}function Po(t,e,r){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);var n=!1,i=!1,s;for(s in r)if(r.hasOwnProperty(s)){var o=r[s];if(o!=null)switch(s){case\\\"src\\\":n=!0;break;case\\\"srcSet\\\":i=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(le(137,e));default:Yr(t,e,s,o,r,null)}}i&&Yr(t,e,\\\"srcSet\\\",r.srcSet,r,null),n&&Yr(t,e,\\\"src\\\",r.src,r,null);return;case\\\"input\\\":Wt(\\\"invalid\\\",t);var a=s=o=i=null,c=null,l=null;for(n in r)if(r.hasOwnProperty(n)){var d=r[n];if(d!=null)switch(n){case\\\"name\\\":i=d;break;case\\\"type\\\":o=d;break;case\\\"checked\\\":c=d;break;case\\\"defaultChecked\\\":l=d;break;case\\\"value\\\":s=d;break;case\\\"defaultValue\\\":a=d;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(d!=null)throw Error(le(137,e));break;default:Yr(t,e,n,d,r,null)}}Rge(t,s,a,c,l,o,i,!1);return;case\\\"select\\\":Wt(\\\"invalid\\\",t),n=o=s=null;for(i in r)if(r.hasOwnProperty(i)&&(a=r[i],a!=null))switch(i){case\\\"value\\\":s=a;break;case\\\"defaultValue\\\":o=a;break;case\\\"multiple\\\":n=a;default:Yr(t,e,i,a,r,null)}e=s,r=o,t.multiple=!!n,e!=null?wE(t,!!n,e,!1):r!=null&&wE(t,!!n,r,!0);return;case\\\"textarea\\\":Wt(\\\"invalid\\\",t),s=i=n=null;for(o in r)if(r.hasOwnProperty(o)&&(a=r[o],a!=null))switch(o){case\\\"value\\\":n=a;break;case\\\"defaultValue\\\":i=a;break;case\\\"children\\\":s=a;break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null)throw Error(le(91));break;default:Yr(t,e,o,a,r,null)}Oge(t,n,i,s);return;case\\\"option\\\":for(c in r)r.hasOwnProperty(c)&&(n=r[c],n!=null)&&(c===\\\"selected\\\"?t.selected=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\":Yr(t,e,c,n,r,null));return;case\\\"dialog\\\":Wt(\\\"beforetoggle\\\",t),Wt(\\\"toggle\\\",t),Wt(\\\"cancel\\\",t),Wt(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":Wt(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<pS.length;n++)Wt(pS[n],t);break;case\\\"image\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);break;case\\\"details\\\":Wt(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(l in r)if(r.hasOwnProperty(l)&&(n=r[l],n!=null))switch(l){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(le(137,e));default:Yr(t,e,l,n,r,null)}return;default:if(cK(e)){for(d in r)r.hasOwnProperty(d)&&(n=r[d],n!==void 0&&WG(t,e,d,n,r,void 0));return}}for(a in r)r.hasOwnProperty(a)&&(n=r[a],n!=null&&Yr(t,e,a,n,r,null))}function slt(t,e,r,n){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var i=null,s=null,o=null,a=null,c=null,l=null,d=null;for(h in r){var f=r[h];if(r.hasOwnProperty(h)&&f!=null)switch(h){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":c=f;default:n.hasOwnProperty(h)||Yr(t,e,h,null,n,f)}}for(var p in n){var h=n[p];if(f=r[p],n.hasOwnProperty(p)&&(h!=null||f!=null))switch(p){case\\\"type\\\":s=h;break;case\\\"name\\\":i=h;break;case\\\"checked\\\":l=h;break;case\\\"defaultChecked\\\":d=h;break;case\\\"value\\\":o=h;break;case\\\"defaultValue\\\":a=h;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(h!=null)throw Error(le(137,e));break;default:h!==f&&Yr(t,e,p,h,n,f)}}yG(t,o,a,c,l,d,s,i);return;case\\\"select\\\":h=o=a=p=null;for(s in r)if(c=r[s],r.hasOwnProperty(s)&&c!=null)switch(s){case\\\"value\\\":break;case\\\"multiple\\\":h=c;default:n.hasOwnProperty(s)||Yr(t,e,s,null,n,c)}for(i in n)if(s=n[i],c=r[i],n.hasOwnProperty(i)&&(s!=null||c!=null))switch(i){case\\\"value\\\":p=s;break;case\\\"defaultValue\\\":a=s;break;case\\\"multiple\\\":o=s;default:s!==c&&Yr(t,e,i,s,n,c)}e=a,r=o,n=h,p!=null?wE(t,!!r,p,!1):!!n!=!!r&&(e!=null?wE(t,!!r,e,!0):wE(t,!!r,r?[]:\\\"\\\",!1));return;case\\\"textarea\\\":h=p=null;for(a in r)if(i=r[a],r.hasOwnProperty(a)&&i!=null&&!n.hasOwnProperty(a))switch(a){case\\\"value\\\":break;case\\\"children\\\":break;default:Yr(t,e,a,null,n,i)}for(o in n)if(i=n[o],s=r[o],n.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case\\\"value\\\":p=i;break;case\\\"defaultValue\\\":h=i;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(i!=null)throw Error(le(91));break;default:i!==s&&Yr(t,e,o,i,n,s)}Pge(t,p,h);return;case\\\"option\\\":for(var m in r)p=r[m],r.hasOwnProperty(m)&&p!=null&&!n.hasOwnProperty(m)&&(m===\\\"selected\\\"?t.selected=!1:Yr(t,e,m,null,n,p));for(c in n)p=n[c],h=r[c],n.hasOwnProperty(c)&&p!==h&&(p!=null||h!=null)&&(c===\\\"selected\\\"?t.selected=p&&typeof p!=\\\"function\\\"&&typeof p!=\\\"symbol\\\":Yr(t,e,c,p,n,h));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var g in r)p=r[g],r.hasOwnProperty(g)&&p!=null&&!n.hasOwnProperty(g)&&Yr(t,e,g,null,n,p);for(l in n)if(p=n[l],h=r[l],n.hasOwnProperty(l)&&p!==h&&(p!=null||h!=null))switch(l){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(p!=null)throw Error(le(137,e));break;default:Yr(t,e,l,p,n,h)}return;default:if(cK(e)){for(var w in r)p=r[w],r.hasOwnProperty(w)&&p!==void 0&&!n.hasOwnProperty(w)&&WG(t,e,w,void 0,n,p);for(d in n)p=n[d],h=r[d],!n.hasOwnProperty(d)||p===h||p===void 0&&h===void 0||WG(t,e,d,p,n,h);return}}for(var v in r)p=r[v],r.hasOwnProperty(v)&&p!=null&&!n.hasOwnProperty(v)&&Yr(t,e,v,null,n,p);for(f in n)p=n[f],h=r[f],!n.hasOwnProperty(f)||p===h||p==null&&h==null||Yr(t,e,f,p,n,h)}function W0e(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function olt(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,e=0,r=performance.getEntriesByType(\\\"resource\\\"),n=0;n<r.length;n++){var i=r[n],s=i.transferSize,o=i.initiatorType,a=i.duration;if(s&&a&&W0e(o)){for(o=0,a=i.responseEnd,n+=1;n<r.length;n++){var c=r[n],l=c.startTime;if(l>a)break;var d=c.transferSize,f=c.initiatorType;d&&W0e(f)&&(c=c.responseEnd,o+=d*(c<a?1:(a-l)/(c-l)))}if(--n,e+=8*(s+o)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var GG=null,KG=null;function rO(t){return t.nodeType===9?t:t.ownerDocument}function G0e(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function D1e(t,e){if(t===0)switch(e){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&e===\\\"foreignObject\\\"?0:t}function ZG(t,e){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof e.children==\\\"string\\\"||typeof e.children==\\\"number\\\"||typeof e.children==\\\"bigint\\\"||typeof e.dangerouslySetInnerHTML==\\\"object\\\"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var sG=null;function alt(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===sG?!1:(sG=t,!0):(sG=null,!1)}var L1e=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,clt=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,K0e=typeof Promise==\\\"function\\\"?Promise:void 0,llt=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof K0e<\\\"u\\\"?function(t){return K0e.resolve(null).then(t).catch(ult)}:L1e;function ult(t){setTimeout(function(){throw t})}function Ig(t){return t===\\\"head\\\"}function Z0e(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r===\\\"/$\\\"||r===\\\"/&\\\"){if(n===0){t.removeChild(i),ME(e);return}n--}else if(r===\\\"$\\\"||r===\\\"$?\\\"||r===\\\"$~\\\"||r===\\\"$!\\\"||r===\\\"&\\\")n++;else if(r===\\\"html\\\")nS(t.ownerDocument.documentElement);else if(r===\\\"head\\\"){r=t.ownerDocument.head,nS(r);for(var s=r.firstChild;s;){var o=s.nextSibling,a=s.nodeName;s[ES]||a===\\\"SCRIPT\\\"||a===\\\"STYLE\\\"||a===\\\"LINK\\\"&&s.rel.toLowerCase()===\\\"stylesheet\\\"||r.removeChild(s),s=o}}else r===\\\"body\\\"&&nS(t.ownerDocument.body);r=i}while(r);ME(e)}function Q0e(t,e){var r=t;t=0;do{var n=r.nextSibling;if(r.nodeType===1?e?(r._stashedDisplay=r.style.display,r.style.display=\\\"none\\\"):(r.style.display=r._stashedDisplay||\\\"\\\",r.getAttribute(\\\"style\\\")===\\\"\\\"&&r.removeAttribute(\\\"style\\\")):r.nodeType===3&&(e?(r._stashedText=r.nodeValue,r.nodeValue=\\\"\\\"):r.nodeValue=r._stashedText||\\\"\\\"),n&&n.nodeType===8)if(r=n.data,r===\\\"/$\\\"){if(t===0)break;t--}else r!==\\\"$\\\"&&r!==\\\"$?\\\"&&r!==\\\"$~\\\"&&r!==\\\"$!\\\"||t++;r=n}while(r)}function QG(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var r=e;switch(e=e.nextSibling,r.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":QG(r),aK(r);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(r.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(r)}}function dlt(t,e,r,n){for(;t.nodeType===1;){var i=r;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(n){if(!t[ES])switch(e){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(s=t.getAttribute(\\\"rel\\\"),s===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(s!==i.rel||t.getAttribute(\\\"href\\\")!==(i.href==null||i.href===\\\"\\\"?null:i.href)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute(\\\"title\\\")!==(i.title==null?null:i.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(s=t.getAttribute(\\\"src\\\"),(s!==(i.src==null?null:i.src)||t.getAttribute(\\\"type\\\")!==(i.type==null?null:i.type)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(e===\\\"input\\\"&&t.type===\\\"hidden\\\"){var s=i.name==null?null:\\\"\\\"+i.name;if(i.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===s)return t}else return t;if(t=hu(t.nextSibling),t===null)break}return null}function flt(t,e,r){if(e===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!r||(t=hu(t.nextSibling),t===null))return null;return t}function U1e(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!e||(t=hu(t.nextSibling),t===null))return null;return t}function JG(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function YG(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function plt(t,e){var r=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=e;else if(t.data!==\\\"$?\\\"||r.readyState!==\\\"loading\\\")e();else{var n=function(){e(),r.removeEventListener(\\\"DOMContentLoaded\\\",n)};r.addEventListener(\\\"DOMContentLoaded\\\",n),t._reactRetry=n}}function hu(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e===\\\"$\\\"||e===\\\"$!\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"&\\\"||e===\\\"F!\\\"||e===\\\"F\\\")break;if(e===\\\"/$\\\"||e===\\\"/&\\\")return null}}return t}var XG=null;function J0e(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r===\\\"/$\\\"||r===\\\"/&\\\"){if(e===0)return hu(t.nextSibling);e--}else r!==\\\"$\\\"&&r!==\\\"$!\\\"&&r!==\\\"$?\\\"&&r!==\\\"$~\\\"&&r!==\\\"&\\\"||e++}t=t.nextSibling}return null}function Y0e(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r===\\\"$\\\"||r===\\\"$!\\\"||r===\\\"$?\\\"||r===\\\"$~\\\"||r===\\\"&\\\"){if(e===0)return t;e--}else r!==\\\"/$\\\"&&r!==\\\"/&\\\"||e++}t=t.previousSibling}return null}function F1e(t,e,r){switch(e=rO(r),t){case\\\"html\\\":if(t=e.documentElement,!t)throw Error(le(452));return t;case\\\"head\\\":if(t=e.head,!t)throw Error(le(453));return t;case\\\"body\\\":if(t=e.body,!t)throw Error(le(454));return t;default:throw Error(le(451))}}function nS(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);aK(t)}var mu=new Map,X0e=new Set;function nO(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Yh=Dr.d;Dr.d={f:hlt,r:mlt,D:glt,C:ylt,L:blt,m:wlt,X:xlt,S:vlt,M:Elt};function hlt(){var t=Yh.f(),e=vO();return t||e}function mlt(t){var e=LE(t);e!==null&&e.tag===5&&e.type===\\\"form\\\"?Nye(e):Yh.r(t)}var HE=typeof document>\\\"u\\\"?null:document;function j1e(t,e,r){var n=HE;if(n&&typeof e==\\\"string\\\"&&e){var i=uu(e);i='link[rel=\\\"'+t+'\\\"][href=\\\"'+i+'\\\"]',typeof r==\\\"string\\\"&&(i+='[crossorigin=\\\"'+r+'\\\"]'),X0e.has(i)||(X0e.add(i),t={rel:t,crossOrigin:r,href:e},n.querySelector(i)===null&&(e=n.createElement(\\\"link\\\"),Po(e,\\\"link\\\",t),to(e),n.head.appendChild(e)))}}function glt(t){Yh.D(t),j1e(\\\"dns-prefetch\\\",t,null)}function ylt(t,e){Yh.C(t,e),j1e(\\\"preconnect\\\",t,e)}function blt(t,e,r){Yh.L(t,e,r);var n=HE;if(n&&t&&e){var i='link[rel=\\\"preload\\\"][as=\\\"'+uu(e)+'\\\"]';e===\\\"image\\\"&&r&&r.imageSrcSet?(i+='[imagesrcset=\\\"'+uu(r.imageSrcSet)+'\\\"]',typeof r.imageSizes==\\\"string\\\"&&(i+='[imagesizes=\\\"'+uu(r.imageSizes)+'\\\"]')):i+='[href=\\\"'+uu(t)+'\\\"]';var s=i;switch(e){case\\\"style\\\":s=BE(t);break;case\\\"script\\\":s=qE(t)}mu.has(s)||(t=$n({rel:\\\"preload\\\",href:e===\\\"image\\\"&&r&&r.imageSrcSet?void 0:t,as:e},r),mu.set(s,t),n.querySelector(i)!==null||e===\\\"style\\\"&&n.querySelector(IS(s))||e===\\\"script\\\"&&n.querySelector(RS(s))||(e=n.createElement(\\\"link\\\"),Po(e,\\\"link\\\",t),to(e),n.head.appendChild(e)))}}function wlt(t,e){Yh.m(t,e);var r=HE;if(r&&t){var n=e&&typeof e.as==\\\"string\\\"?e.as:\\\"script\\\",i='link[rel=\\\"modulepreload\\\"][as=\\\"'+uu(n)+'\\\"][href=\\\"'+uu(t)+'\\\"]',s=i;switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":s=qE(t)}if(!mu.has(s)&&(t=$n({rel:\\\"modulepreload\\\",href:t},e),mu.set(s,t),r.querySelector(i)===null)){switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(r.querySelector(RS(s)))return}n=r.createElement(\\\"link\\\"),Po(n,\\\"link\\\",t),to(n),r.head.appendChild(n)}}}function vlt(t,e,r){Yh.S(t,e,r);var n=HE;if(n&&t){var i=bE(n).hoistableStyles,s=BE(t);e=e||\\\"default\\\";var o=i.get(s);if(!o){var a={loading:0,preload:null};if(o=n.querySelector(IS(s)))a.loading=5;else{t=$n({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":e},r),(r=mu.get(s))&&WK(t,r);var c=o=n.createElement(\\\"link\\\");to(c),Po(c,\\\"link\\\",t),c._p=new Promise(function(l,d){c.onload=l,c.onerror=d}),c.addEventListener(\\\"load\\\",function(){a.loading|=1}),c.addEventListener(\\\"error\\\",function(){a.loading|=2}),a.loading|=4,RP(o,e,n)}o={type:\\\"stylesheet\\\",instance:o,count:1,state:a},i.set(s,o)}}}function xlt(t,e){Yh.X(t,e);var r=HE;if(r&&t){var n=bE(r).hoistableScripts,i=qE(t),s=n.get(i);s||(s=r.querySelector(RS(i)),s||(t=$n({src:t,async:!0},e),(e=mu.get(i))&&GK(t,e),s=r.createElement(\\\"script\\\"),to(s),Po(s,\\\"link\\\",t),r.head.appendChild(s)),s={type:\\\"script\\\",instance:s,count:1,state:null},n.set(i,s))}}function Elt(t,e){Yh.M(t,e);var r=HE;if(r&&t){var n=bE(r).hoistableScripts,i=qE(t),s=n.get(i);s||(s=r.querySelector(RS(i)),s||(t=$n({src:t,async:!0,type:\\\"module\\\"},e),(e=mu.get(i))&&GK(t,e),s=r.createElement(\\\"script\\\"),to(s),Po(s,\\\"link\\\",t),r.head.appendChild(s)),s={type:\\\"script\\\",instance:s,count:1,state:null},n.set(i,s))}}function ege(t,e,r,n){var i=(i=hg.current)?nO(i):null;if(!i)throw Error(le(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof r.precedence==\\\"string\\\"&&typeof r.href==\\\"string\\\"?(e=BE(r.href),r=bE(i).hoistableStyles,n=r.get(e),n||(n={type:\\\"style\\\",instance:null,count:0,state:null},r.set(e,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(r.rel===\\\"stylesheet\\\"&&typeof r.href==\\\"string\\\"&&typeof r.precedence==\\\"string\\\"){t=BE(r.href);var s=bE(i).hoistableStyles,o=s.get(t);if(o||(i=i.ownerDocument||i,o={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,o),(s=i.querySelector(IS(t)))&&!s._p&&(o.instance=s,o.state.loading=5),mu.has(t)||(r={rel:\\\"preload\\\",as:\\\"style\\\",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},mu.set(t,r),s||_lt(i,t,r,o.state))),e&&n===null)throw Error(le(528,\\\"\\\"));return o}if(e&&n!==null)throw Error(le(529,\\\"\\\"));return null;case\\\"script\\\":return e=r.async,r=r.src,typeof r==\\\"string\\\"&&e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?(e=qE(r),r=bE(i).hoistableScripts,n=r.get(e),n||(n={type:\\\"script\\\",instance:null,count:0,state:null},r.set(e,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(le(444,t))}}function BE(t){return'href=\\\"'+uu(t)+'\\\"'}function IS(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function H1e(t){return $n({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function _lt(t,e,r,n){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+e+\\\"]\\\")?n.loading=1:(e=t.createElement(\\\"link\\\"),n.preload=e,e.addEventListener(\\\"load\\\",function(){return n.loading|=1}),e.addEventListener(\\\"error\\\",function(){return n.loading|=2}),Po(e,\\\"link\\\",r),to(e),t.head.appendChild(e))}function qE(t){return'[src=\\\"'+uu(t)+'\\\"]'}function RS(t){return\\\"script[async]\\\"+t}function tge(t,e,r){if(e.count++,e.instance===null)switch(e.type){case\\\"style\\\":var n=t.querySelector('style[data-href~=\\\"'+uu(r.href)+'\\\"]');if(n)return e.instance=n,to(n),n;var i=$n({},r,{\\\"data-href\\\":r.href,\\\"data-precedence\\\":r.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement(\\\"style\\\"),to(n),Po(n,\\\"style\\\",i),RP(n,r.precedence,t),e.instance=n;case\\\"stylesheet\\\":i=BE(r.href);var s=t.querySelector(IS(i));if(s)return e.state.loading|=4,e.instance=s,to(s),s;n=H1e(r),(i=mu.get(i))&&WK(n,i),s=(t.ownerDocument||t).createElement(\\\"link\\\"),to(s);var o=s;return o._p=new Promise(function(a,c){o.onload=a,o.onerror=c}),Po(s,\\\"link\\\",n),e.state.loading|=4,RP(s,r.precedence,t),e.instance=s;case\\\"script\\\":return s=qE(r.src),(i=t.querySelector(RS(s)))?(e.instance=i,to(i),i):(n=r,(i=mu.get(s))&&(n=$n({},r),GK(n,i)),t=t.ownerDocument||t,i=t.createElement(\\\"script\\\"),to(i),Po(i,\\\"link\\\",n),t.head.appendChild(i),e.instance=i);case\\\"void\\\":return null;default:throw Error(le(443,e.type))}else e.type===\\\"stylesheet\\\"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,RP(n,r.precedence,t));return e.instance}function RP(t,e,r){for(var n=r.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,s=i,o=0;o<n.length;o++){var a=n[o];if(a.dataset.precedence===e)s=a;else if(s!==i)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=r.nodeType===9?r.head:r,e.insertBefore(t,e.firstChild))}function WK(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function GK(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var PP=null;function rge(t,e,r){if(PP===null){var n=new Map,i=PP=new Map;i.set(r,n)}else i=PP,n=i.get(r),n||(n=new Map,i.set(r,n));if(n.has(t))return n;for(n.set(t,null),r=r.getElementsByTagName(t),i=0;i<r.length;i++){var s=r[i];if(!(s[ES]||s[To]||t===\\\"link\\\"&&s.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&s.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var o=s.getAttribute(e)||\\\"\\\";o=t+o;var a=n.get(o);a?a.push(s):n.set(o,[s])}}return n}function nge(t,e,r){t=t.ownerDocument||t,t.head.insertBefore(r,e===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function Clt(t,e,r){if(r===1||e.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof e.precedence!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof e.rel!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\"||e.onLoad||e.onError)break;return e.rel===\\\"stylesheet\\\"?(t=e.disabled,typeof e.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(e.async&&typeof e.async!=\\\"function\\\"&&typeof e.async!=\\\"symbol\\\"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src==\\\"string\\\")return!0}return!1}function q1e(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function Slt(t,e,r,n){if(r.type===\\\"stylesheet\\\"&&(typeof n.media!=\\\"string\\\"||matchMedia(n.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var i=BE(n.href),s=e.querySelector(IS(i));if(s){e=s._p,e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"&&(t.count++,t=iO.bind(t),e.then(t,t)),r.state.loading|=4,r.instance=s,to(s);return}s=e.ownerDocument||e,n=H1e(n),(i=mu.get(i))&&WK(n,i),s=s.createElement(\\\"link\\\"),to(s);var o=s;o._p=new Promise(function(a,c){o.onload=a,o.onerror=c}),Po(s,\\\"link\\\",n),r.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(r,e),(e=r.state.preload)&&(r.state.loading&3)===0&&(t.count++,r=iO.bind(t),e.addEventListener(\\\"load\\\",r),e.addEventListener(\\\"error\\\",r))}}var oG=0;function Alt(t,e){return t.stylesheets&&t.count===0&&OP(t,t.stylesheets),0<t.count||0<t.imgCount?function(r){var n=setTimeout(function(){if(t.stylesheets&&OP(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&oG===0&&(oG=62500*olt());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&OP(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>oG?50:800)+e);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function iO(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)OP(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var sO=null;function OP(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,sO=new Map,e.forEach(Tlt,t),sO=null,iO.call(t))}function Tlt(t,e){if(!(e.state.loading&4)){var r=sO.get(t);if(r)var n=r.get(null);else{r=new Map,sO.set(t,r);for(var i=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),s=0;s<i.length;s++){var o=i[s];(o.nodeName===\\\"LINK\\\"||o.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}i=e.instance,o=i.getAttribute(\\\"data-precedence\\\"),s=r.get(o)||n,s===n&&r.set(null,i),r.set(o,i),this.count++,n=iO.bind(this),i.addEventListener(\\\"load\\\",n),i.addEventListener(\\\"error\\\",n),s?s.parentNode.insertBefore(i,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var mS={$$typeof:Hh,Provider:null,Consumer:null,_currentValue:Ob,_currentValue2:Ob,_threadCount:0};function Ilt(t,e,r,n,i,s,o,a,c){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=NW(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=NW(0),this.hiddenUpdates=NW(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function z1e(t,e,r,n,i,s,o,a,c,l,d,f){return t=new Ilt(t,e,r,o,c,l,d,f,a),e=1,s===!0&&(e|=24),s=cl(3,null,null,e),t.current=s,s.stateNode=t,e=wK(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:r,cache:e},EK(s),t}function $1e(t){return t?(t=hE,t):hE}function V1e(t,e,r,n,i,s){i=$1e(i),n.context===null?n.context=i:n.pendingContext=i,n=gg(e),n.payload={element:r},s=s===void 0?null:s,s!==null&&(n.callback=s),r=yg(t,n,e),r!==null&&(bc(r,t,e),Z8(r,t,e))}function ige(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function KK(t,e){ige(t,e),(t=t.alternate)&&ige(t,e)}function W1e(t){if(t.tag===13||t.tag===31){var e=$b(t,67108864);e!==null&&bc(e,t,67108864),KK(t,67108864)}}function sge(t){if(t.tag===13||t.tag===31){var e=pl();e=sK(e);var r=$b(t,e);r!==null&&bc(r,t,e),KK(t,e)}}var oO=!0;function Rlt(t,e,r,n){var i=ct.T;ct.T=null;var s=Dr.p;try{Dr.p=2,ZK(t,e,r,n)}finally{Dr.p=s,ct.T=i}}function Plt(t,e,r,n){var i=ct.T;ct.T=null;var s=Dr.p;try{Dr.p=8,ZK(t,e,r,n)}finally{Dr.p=s,ct.T=i}}function ZK(t,e,r,n){if(oO){var i=eK(n);if(i===null)iG(t,e,n,aO,r),oge(t,n);else if(Nlt(i,t,e,r,n))n.stopPropagation();else if(oge(t,n),e&4&&-1<Olt.indexOf(t)){for(;i!==null;){var s=LE(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=Ib(s.pendingLanes);if(o!==0){var a=s;for(a.pendingLanes|=2,a.entangledLanes|=2;o;){var c=1<<31-fl(o);a.entanglements[1]|=c,o&=~c}Zf(s),(Mr&6)===0&&(QP=ul()+500,TS(0,!1))}}break;case 31:case 13:a=$b(s,2),a!==null&&bc(a,s,2),vO(),KK(s,2)}if(s=eK(n),s===null&&iG(t,e,n,aO,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else iG(t,e,n,null,r)}}function eK(t){return t=lK(t),QK(t)}var aO=null;function QK(t){if(aO=null,t=cE(t),t!==null){var e=bS(t);if(e===null)t=null;else{var r=e.tag;if(r===13){if(t=fge(e),t!==null)return t;t=null}else if(r===31){if(t=pge(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return aO=t,null}function G1e(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(bat()){case yge:return 2;case bge:return 8;case DP:case wat:return 32;case wge:return 268435456;default:return 32}default:return 32}}var tK=!1,vg=null,xg=null,Eg=null,gS=new Map,yS=new Map,cg=[],Olt=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function oge(t,e){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":vg=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":xg=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":Eg=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":gS.delete(e.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":yS.delete(e.pointerId)}}function U8(t,e,r,n,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=LE(e),e!==null&&W1e(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Nlt(t,e,r,n,i){switch(e){case\\\"focusin\\\":return vg=U8(vg,t,e,r,n,i),!0;case\\\"dragenter\\\":return xg=U8(xg,t,e,r,n,i),!0;case\\\"mouseover\\\":return Eg=U8(Eg,t,e,r,n,i),!0;case\\\"pointerover\\\":var s=i.pointerId;return gS.set(s,U8(gS.get(s)||null,t,e,r,n,i)),!0;case\\\"gotpointercapture\\\":return s=i.pointerId,yS.set(s,U8(yS.get(s)||null,t,e,r,n,i)),!0}return!1}function K1e(t){var e=cE(t.target);if(e!==null){var r=bS(e);if(r!==null){if(e=r.tag,e===13){if(e=fge(r),e!==null){t.blockedOn=e,zme(t.priority,function(){sge(r)});return}}else if(e===31){if(e=pge(r),e!==null){t.blockedOn=e,zme(t.priority,function(){sge(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function NP(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=eK(t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);wG=n,r.target.dispatchEvent(n),wG=null}else return e=LE(r),e!==null&&W1e(e),t.blockedOn=r,!1;e.shift()}return!0}function age(t,e,r){NP(t)&&r.delete(e)}function klt(){tK=!1,vg!==null&&NP(vg)&&(vg=null),xg!==null&&NP(xg)&&(xg=null),Eg!==null&&NP(Eg)&&(Eg=null),gS.forEach(age),yS.forEach(age)}function gP(t,e){t.blockedOn===e&&(t.blockedOn=null,tK||(tK=!0,Fs.unstable_scheduleCallback(Fs.unstable_NormalPriority,klt)))}var yP=null;function cge(t){yP!==t&&(yP=t,Fs.unstable_scheduleCallback(Fs.unstable_NormalPriority,function(){yP===t&&(yP=null);for(var e=0;e<t.length;e+=3){var r=t[e],n=t[e+1],i=t[e+2];if(typeof n!=\\\"function\\\"){if(QK(n||r)===null)continue;break}var s=LE(r);s!==null&&(t.splice(e,3),e-=3,MG(s,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function ME(t){function e(c){return gP(c,t)}vg!==null&&gP(vg,t),xg!==null&&gP(xg,t),Eg!==null&&gP(Eg,t),gS.forEach(e),yS.forEach(e);for(var r=0;r<cg.length;r++){var n=cg[r];n.blockedOn===t&&(n.blockedOn=null)}for(;0<cg.length&&(r=cg[0],r.blockedOn===null);)K1e(r),r.blockedOn===null&&cg.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var i=r[n],s=r[n+1],o=i[wc]||null;if(typeof s==\\\"function\\\")o||cge(r);else if(o){var a=null;if(s&&s.hasAttribute(\\\"formAction\\\")){if(i=s,o=s[wc]||null)a=o.formAction;else if(QK(i)!==null)continue}else a=o.action;typeof a==\\\"function\\\"?r[n+1]=a:(r.splice(n,3),n-=3),cge(r)}}}function Z1e(){function t(s){s.canIntercept&&s.info===\\\"react-transition\\\"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function e(){i!==null&&(i(),i=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var n=!1,i=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",e),navigation.addEventListener(\\\"navigateerror\\\",e),setTimeout(r,100),function(){n=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",e),navigation.removeEventListener(\\\"navigateerror\\\",e),i!==null&&(i(),i=null)}}}function JK(t){this._internalRoot=t}_O.prototype.render=JK.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(le(409));var r=e.current,n=pl();V1e(r,n,t,e,null,null)};_O.prototype.unmount=JK.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;V1e(t.current,2,null,t,null,null),vO(),e[DE]=null}};function _O(t){this._internalRoot=t}_O.prototype.unstable_scheduleHydration=function(t){if(t){var e=Cge();t={blockedOn:null,target:t,priority:e};for(var r=0;r<cg.length&&e!==0&&e<cg[r].priority;r++);cg.splice(r,0,t),r===0&&K1e(t)}};var lge=uge.version;if(lge!==\\\"19.2.4\\\")throw Error(le(527,lge,\\\"19.2.4\\\"));Dr.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render==\\\"function\\\"?Error(le(188)):(t=Object.keys(t).join(\\\",\\\"),Error(le(268,t)));return t=dat(e),t=t!==null?hge(t):null,t=t===null?null:t.stateNode,t};var Blt={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:ct,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(F8=__REACT_DEVTOOLS_GLOBAL_HOOK__,!F8.isDisabled&&F8.supportsFiber))try{wS=F8.inject(Blt),dl=F8}catch{}var F8;CO.createRoot=function(t,e){if(!dge(t))throw Error(le(299));var r=!1,n=\\\"\\\",i=jye,s=Hye,o=qye;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=z1e(t,1,!1,null,null,r,n,null,i,s,o,Z1e),t[DE]=e.current,VK(t),new JK(e)};CO.hydrateRoot=function(t,e,r){if(!dge(t))throw Error(le(299));var n=!1,i=\\\"\\\",s=jye,o=Hye,a=qye,c=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(s=r.onUncaughtError),r.onCaughtError!==void 0&&(o=r.onCaughtError),r.onRecoverableError!==void 0&&(a=r.onRecoverableError),r.formState!==void 0&&(c=r.formState)),e=z1e(t,1,!0,e,r??null,n,i,c,s,o,a,Z1e),e.context=$1e(null),r=e.current,n=pl(),n=sK(n),i=gg(n),i.callback=null,yg(r,i,n),r=n,e.current.lanes=r,xS(e,r),Zf(e),t[DE]=e.current,VK(t),new _O(e)};CO.version=\\\"19.2.4\\\"});var X1e=q((lQt,Y1e)=>{\\\"use strict\\\";u();function J1e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J1e)}catch(t){console.error(t)}}J1e(),Y1e.exports=Q1e()});var ebe,tbe=x(()=>{u();ebe=\\\"1.2.3\\\"});var as,zE=x(()=>{u();tbe();as=class t extends Error{constructor(e,r={}){let n=r.cause instanceof t?r.cause.details:r.cause?.message?r.cause.message:r.details,i=r.cause instanceof t&&r.cause.docsPath||r.docsPath,s=[e||\\\"An error occurred.\\\",\\\"\\\",...r.metaMessages?[...r.metaMessages,\\\"\\\"]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${ebe}`].join(`\\n`);super(s),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"metaMessages\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiTypeError\\\"}),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=i,this.metaMessages=r.metaMessages,this.shortMessage=e}}});function gl(t,e){return t.exec(e)?.groups}var YK,XK,SO,PS=x(()=>{u();YK=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,XK=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,SO=/^\\\\(.+?\\\\).*?$/});function AO(t){let e=t.type;if(rbe.test(t.type)&&\\\"components\\\"in t){e=\\\"(\\\";let r=t.components.length;for(let i=0;i<r;i++){let s=t.components[i];e+=AO(s),i<r-1&&(e+=\\\", \\\")}let n=gl(rbe,t.type);return e+=`)${n?.array||\\\"\\\"}`,AO({...t,type:e})}return\\\"indexed\\\"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}var rbe,nbe=x(()=>{u();PS();rbe=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function Xh(t){let e=\\\"\\\",r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=AO(i),n!==r-1&&(e+=\\\", \\\")}return e}var eZ=x(()=>{u();nbe()});function Wb(t){return t.type===\\\"function\\\"?`function ${t.name}(${Xh(t.inputs)})${t.stateMutability&&t.stateMutability!==\\\"nonpayable\\\"?` ${t.stateMutability}`:\\\"\\\"}${t.outputs?.length?` returns (${Xh(t.outputs)})`:\\\"\\\"}`:t.type===\\\"event\\\"?`event ${t.name}(${Xh(t.inputs)})`:t.type===\\\"error\\\"?`error ${t.name}(${Xh(t.inputs)})`:t.type===\\\"constructor\\\"?`constructor(${Xh(t.inputs)})${t.stateMutability===\\\"payable\\\"?\\\" payable\\\":\\\"\\\"}`:t.type===\\\"fallback\\\"?`fallback() external${t.stateMutability===\\\"payable\\\"?\\\" payable\\\":\\\"\\\"}`:\\\"receive() external payable\\\"}var ibe=x(()=>{u();eZ()});function obe(t){return sbe.test(t)}function abe(t){return gl(sbe,t)}function lbe(t){return cbe.test(t)}function ube(t){return gl(cbe,t)}function fbe(t){return dbe.test(t)}function pbe(t){return gl(dbe,t)}function Rg(t){return hbe.test(t)}function mbe(t){return gl(hbe,t)}function ybe(t){return gbe.test(t)}function bbe(t){return gl(gbe,t)}function vbe(t){return wbe.test(t)}function xbe(t){return gl(wbe,t)}function Ebe(t){return Mlt.test(t)}var sbe,cbe,dbe,hbe,gbe,wbe,Mlt,tZ,_be,TO,$E=x(()=>{u();PS();sbe=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;cbe=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;dbe=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;hbe=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;gbe=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;wbe=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;Mlt=/^receive\\\\(\\\\) external payable$/;tZ=new Set([\\\"memory\\\",\\\"indexed\\\",\\\"storage\\\",\\\"calldata\\\"]),_be=new Set([\\\"indexed\\\"]),TO=new Set([\\\"calldata\\\",\\\"memory\\\",\\\"storage\\\"])});var IO,RO,PO,OO=x(()=>{u();zE();IO=class extends as{constructor({signature:e}){super(\\\"Failed to parse ABI item.\\\",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:\\\"/api/human#parseabiitem-1\\\"}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidAbiItemError\\\"})}},RO=class extends as{constructor({type:e}){super(\\\"Unknown type.\\\",{metaMessages:[`Type \\\"${e}\\\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"UnknownTypeError\\\"})}},PO=class extends as{constructor({type:e}){super(\\\"Unknown type.\\\",{metaMessages:[`Type \\\"${e}\\\" is not a valid ABI type.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"UnknownSolidityTypeError\\\"})}}});var NO,kO,BO,MO,DO,LO,UO=x(()=>{u();zE();NO=class extends as{constructor({params:e}){super(\\\"Failed to parse ABI parameters.\\\",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:\\\"/api/human#parseabiparameters-1\\\"}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidAbiParametersError\\\"})}},kO=class extends as{constructor({param:e}){super(\\\"Invalid ABI parameter.\\\",{details:e}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidParameterError\\\"})}},BO=class extends as{constructor({param:e,name:r}){super(\\\"Invalid ABI parameter.\\\",{details:e,metaMessages:[`\\\"${r}\\\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"SolidityProtectedKeywordError\\\"})}},MO=class extends as{constructor({param:e,type:r,modifier:n}){super(\\\"Invalid ABI parameter.\\\",{details:e,metaMessages:[`Modifier \\\"${n}\\\" not allowed${r?` in \\\"${r}\\\" type`:\\\"\\\"}.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidModifierError\\\"})}},DO=class extends as{constructor({param:e,type:r,modifier:n}){super(\\\"Invalid ABI parameter.\\\",{details:e,metaMessages:[`Modifier \\\"${n}\\\" not allowed${r?` in \\\"${r}\\\" type`:\\\"\\\"}.`,`Data location can only be specified for array, struct, or mapping types, but \\\"${n}\\\" was given.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidFunctionModifierError\\\"})}},LO=class extends as{constructor({abiParameter:e}){super(\\\"Invalid ABI parameter.\\\",{details:JSON.stringify(e,null,2),metaMessages:[\\\"ABI parameter type is invalid.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidAbiTypeParameterError\\\"})}}});var Qf,FO,jO,rZ=x(()=>{u();zE();Qf=class extends as{constructor({signature:e,type:r}){super(`Invalid ${r} signature.`,{details:e}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidSignatureError\\\"})}},FO=class extends as{constructor({signature:e}){super(\\\"Unknown signature.\\\",{details:e}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"UnknownSignatureError\\\"})}},jO=class extends as{constructor({signature:e}){super(\\\"Invalid struct signature.\\\",{details:e,metaMessages:[\\\"No properties exist.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidStructSignatureError\\\"})}}});var HO,Cbe=x(()=>{u();zE();HO=class extends as{constructor({type:e}){super(\\\"Circular reference detected.\\\",{metaMessages:[`Struct \\\"${e}\\\" is a circular reference.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"CircularReferenceError\\\"})}}});var qO,Sbe=x(()=>{u();zE();qO=class extends as{constructor({current:e,depth:r}){super(\\\"Unbalanced parentheses.\\\",{metaMessages:[`\\\"${e.trim()}\\\" has too many ${r>0?\\\"opening\\\":\\\"closing\\\"} parentheses.`],details:`Depth \\\"${r}\\\"`}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"InvalidParenthesisError\\\"})}}});function Abe(t,e,r){let n=\\\"\\\";if(r)for(let i of Object.entries(r)){if(!i)continue;let s=\\\"\\\";for(let o of i[1])s+=`[${o.type}${o.name?`:${o.name}`:\\\"\\\"}]`;n+=`(${i[0]}{${s}})`}return e?`${e}:${t}${n}`:`${t}${n}`}var zO,Tbe=x(()=>{u();zO=new Map([[\\\"address\\\",{type:\\\"address\\\"}],[\\\"bool\\\",{type:\\\"bool\\\"}],[\\\"bytes\\\",{type:\\\"bytes\\\"}],[\\\"bytes32\\\",{type:\\\"bytes32\\\"}],[\\\"int\\\",{type:\\\"int256\\\"}],[\\\"int256\\\",{type:\\\"int256\\\"}],[\\\"string\\\",{type:\\\"string\\\"}],[\\\"uint\\\",{type:\\\"uint256\\\"}],[\\\"uint8\\\",{type:\\\"uint8\\\"}],[\\\"uint16\\\",{type:\\\"uint16\\\"}],[\\\"uint24\\\",{type:\\\"uint24\\\"}],[\\\"uint32\\\",{type:\\\"uint32\\\"}],[\\\"uint64\\\",{type:\\\"uint64\\\"}],[\\\"uint96\\\",{type:\\\"uint96\\\"}],[\\\"uint112\\\",{type:\\\"uint112\\\"}],[\\\"uint160\\\",{type:\\\"uint160\\\"}],[\\\"uint192\\\",{type:\\\"uint192\\\"}],[\\\"uint256\\\",{type:\\\"uint256\\\"}],[\\\"address owner\\\",{type:\\\"address\\\",name:\\\"owner\\\"}],[\\\"address to\\\",{type:\\\"address\\\",name:\\\"to\\\"}],[\\\"bool approved\\\",{type:\\\"bool\\\",name:\\\"approved\\\"}],[\\\"bytes _data\\\",{type:\\\"bytes\\\",name:\\\"_data\\\"}],[\\\"bytes data\\\",{type:\\\"bytes\\\",name:\\\"data\\\"}],[\\\"bytes signature\\\",{type:\\\"bytes\\\",name:\\\"signature\\\"}],[\\\"bytes32 hash\\\",{type:\\\"bytes32\\\",name:\\\"hash\\\"}],[\\\"bytes32 r\\\",{type:\\\"bytes32\\\",name:\\\"r\\\"}],[\\\"bytes32 root\\\",{type:\\\"bytes32\\\",name:\\\"root\\\"}],[\\\"bytes32 s\\\",{type:\\\"bytes32\\\",name:\\\"s\\\"}],[\\\"string name\\\",{type:\\\"string\\\",name:\\\"name\\\"}],[\\\"string symbol\\\",{type:\\\"string\\\",name:\\\"symbol\\\"}],[\\\"string tokenURI\\\",{type:\\\"string\\\",name:\\\"tokenURI\\\"}],[\\\"uint tokenId\\\",{type:\\\"uint256\\\",name:\\\"tokenId\\\"}],[\\\"uint8 v\\\",{type:\\\"uint8\\\",name:\\\"v\\\"}],[\\\"uint256 balance\\\",{type:\\\"uint256\\\",name:\\\"balance\\\"}],[\\\"uint256 tokenId\\\",{type:\\\"uint256\\\",name:\\\"tokenId\\\"}],[\\\"uint256 value\\\",{type:\\\"uint256\\\",name:\\\"value\\\"}],[\\\"event:address indexed from\\\",{type:\\\"address\\\",name:\\\"from\\\",indexed:!0}],[\\\"event:address indexed to\\\",{type:\\\"address\\\",name:\\\"to\\\",indexed:!0}],[\\\"event:uint indexed tokenId\\\",{type:\\\"uint256\\\",name:\\\"tokenId\\\",indexed:!0}],[\\\"event:uint256 indexed tokenId\\\",{type:\\\"uint256\\\",name:\\\"tokenId\\\",indexed:!0}]])});function OS(t,e={}){if(fbe(t))return Dlt(t,e);if(lbe(t))return Llt(t,e);if(obe(t))return Ult(t,e);if(ybe(t))return Flt(t,e);if(vbe(t))return jlt(t);if(Ebe(t))return{type:\\\"receive\\\",stateMutability:\\\"payable\\\"};throw new FO({signature:t})}function Dlt(t,e={}){let r=pbe(t);if(!r)throw new Qf({signature:t,type:\\\"function\\\"});let n=xc(r.parameters),i=[],s=n.length;for(let a=0;a<s;a++)i.push(Pd(n[a],{modifiers:TO,structs:e,type:\\\"function\\\"}));let o=[];if(r.returns){let a=xc(r.returns),c=a.length;for(let l=0;l<c;l++)o.push(Pd(a[l],{modifiers:TO,structs:e,type:\\\"function\\\"}))}return{name:r.name,type:\\\"function\\\",stateMutability:r.stateMutability??\\\"nonpayable\\\",inputs:i,outputs:o}}function Llt(t,e={}){let r=ube(t);if(!r)throw new Qf({signature:t,type:\\\"event\\\"});let n=xc(r.parameters),i=[],s=n.length;for(let o=0;o<s;o++)i.push(Pd(n[o],{modifiers:_be,structs:e,type:\\\"event\\\"}));return{name:r.name,type:\\\"event\\\",inputs:i}}function Ult(t,e={}){let r=abe(t);if(!r)throw new Qf({signature:t,type:\\\"error\\\"});let n=xc(r.parameters),i=[],s=n.length;for(let o=0;o<s;o++)i.push(Pd(n[o],{structs:e,type:\\\"error\\\"}));return{name:r.name,type:\\\"error\\\",inputs:i}}function Flt(t,e={}){let r=bbe(t);if(!r)throw new Qf({signature:t,type:\\\"constructor\\\"});let n=xc(r.parameters),i=[],s=n.length;for(let o=0;o<s;o++)i.push(Pd(n[o],{structs:e,type:\\\"constructor\\\"}));return{type:\\\"constructor\\\",stateMutability:r.stateMutability??\\\"nonpayable\\\",inputs:i}}function jlt(t){let e=xbe(t);if(!e)throw new Qf({signature:t,type:\\\"fallback\\\"});return{type:\\\"fallback\\\",stateMutability:e.stateMutability??\\\"nonpayable\\\"}}function Pd(t,e){let r=Abe(t,e?.type,e?.structs);if(zO.has(r))return zO.get(r);let n=SO.test(t),i=gl(n?qlt:Hlt,t);if(!i)throw new kO({param:t});if(i.name&&Vlt(i.name))throw new BO({param:t,name:i.name});let s=i.name?{name:i.name}:{},o=i.modifier===\\\"indexed\\\"?{indexed:!0}:{},a=e?.structs??{},c,l={};if(n){c=\\\"tuple\\\";let f=xc(i.type),p=[],h=f.length;for(let m=0;m<h;m++)p.push(Pd(f[m],{structs:a}));l={components:p}}else if(i.type in a)c=\\\"tuple\\\",l={components:a[i.type]};else if(zlt.test(i.type))c=`${i.type}256`;else if(i.type===\\\"address payable\\\")c=\\\"address\\\";else if(c=i.type,e?.type!==\\\"struct\\\"&&!nZ(c))throw new PO({type:c});if(i.modifier){if(!e?.modifiers?.has?.(i.modifier))throw new MO({param:t,type:e?.type,modifier:i.modifier});if(TO.has(i.modifier)&&!Wlt(c,!!i.array))throw new DO({param:t,type:e?.type,modifier:i.modifier})}let d={type:`${c}${i.array??\\\"\\\"}`,...s,...o,...l};return zO.set(r,d),d}function xc(t,e=[],r=\\\"\\\",n=0){let i=t.trim().length;for(let s=0;s<i;s++){let o=t[s],a=t.slice(s+1);switch(o){case\\\",\\\":return n===0?xc(a,[...e,r.trim()]):xc(a,e,`${r}${o}`,n);case\\\"(\\\":return xc(a,e,`${r}${o}`,n+1);case\\\")\\\":return xc(a,e,`${r}${o}`,n-1);default:return xc(a,e,`${r}${o}`,n)}}if(r===\\\"\\\")return e;if(n!==0)throw new qO({current:r,depth:n});return e.push(r.trim()),e}function nZ(t){return t===\\\"address\\\"||t===\\\"bool\\\"||t===\\\"function\\\"||t===\\\"string\\\"||YK.test(t)||XK.test(t)}function Vlt(t){return t===\\\"address\\\"||t===\\\"bool\\\"||t===\\\"function\\\"||t===\\\"string\\\"||t===\\\"tuple\\\"||YK.test(t)||XK.test(t)||$lt.test(t)}function Wlt(t,e){return e||t===\\\"bytes\\\"||t===\\\"string\\\"||t===\\\"tuple\\\"}var Hlt,qlt,zlt,$lt,VE=x(()=>{u();PS();OO();UO();rZ();Sbe();Tbe();$E();Hlt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,qlt=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,zlt=/^u?int$/;$lt=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function WE(t){let e={},r=t.length;for(let o=0;o<r;o++){let a=t[o];if(!Rg(a))continue;let c=mbe(a);if(!c)throw new Qf({signature:a,type:\\\"struct\\\"});let l=c.properties.split(\\\";\\\"),d=[],f=l.length;for(let p=0;p<f;p++){let m=l[p].trim();if(!m)continue;let g=Pd(m,{type:\\\"struct\\\"});d.push(g)}if(!d.length)throw new jO({signature:a});e[c.name]=d}let n={},i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){let[a,c]=i[o];n[a]=Ibe(c,e)}return n}function Ibe(t=[],e={},r=new Set){let n=[],i=t.length;for(let s=0;s<i;s++){let o=t[s];if(SO.test(o.type))n.push(o);else{let c=gl(Glt,o.type);if(!c?.type)throw new LO({abiParameter:o});let{array:l,type:d}=c;if(d in e){if(r.has(d))throw new HO({type:d});n.push({...o,type:`tuple${l??\\\"\\\"}`,components:Ibe(e[d],e,new Set([...r,d]))})}else if(nZ(d))n.push(o);else throw new RO({type:d})}}return n}var Glt,$O=x(()=>{u();PS();OO();UO();rZ();Cbe();$E();VE();Glt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function GE(t){let e=WE(t),r=[],n=t.length;for(let i=0;i<n;i++){let s=t[i];Rg(s)||r.push(OS(s,e))}return r}var Rbe=x(()=>{u();$E();$O();VE()});function VO(t){let e;if(typeof t==\\\"string\\\")e=OS(t);else{let r=WE(t),n=t.length;for(let i=0;i<n;i++){let s=t[i];if(!Rg(s)){e=OS(s,r);break}}}if(!e)throw new IO({signature:t});return e}var Pbe=x(()=>{u();OO();$E();$O();VE()});function WO(t){let e=[];if(typeof t==\\\"string\\\"){let r=xc(t),n=r.length;for(let i=0;i<n;i++)e.push(Pd(r[i],{modifiers:tZ}))}else{let r=WE(t),n=t.length;for(let i=0;i<n;i++){let s=t[i];if(Rg(s))continue;let o=xc(s),a=o.length;for(let c=0;c<a;c++)e.push(Pd(o[c],{modifiers:tZ,structs:r}))}}if(e.length===0)throw new NO({params:t});return e}var Obe=x(()=>{u();UO();$E();$O();VE();VE()});var KE=x(()=>{u();ibe();eZ();Rbe();Pbe();Obe()});function ae(t,e,r){let n=t[e.name];if(typeof n==\\\"function\\\")return n;let i=t[r];return typeof i==\\\"function\\\"?i:s=>e(t,s)}var Ut=x(()=>{u()});function js(t,{includeName:e=!1}={}){if(t.type!==\\\"function\\\"&&t.type!==\\\"event\\\"&&t.type!==\\\"error\\\")throw new GO(t.type);return`${t.name}(${NS(t.inputs,{includeName:e})})`}function NS(t,{includeName:e=!1}={}){return t?t.map(r=>Klt(r,{includeName:e})).join(e?\\\", \\\":\\\",\\\"):\\\"\\\"}function Klt(t,{includeName:e}){return t.type.startsWith(\\\"tuple\\\")?`(${NS(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:\\\"\\\")}var em=x(()=>{u();Ki()});function Ur(t,{strict:e=!0}={}){return!t||typeof t!=\\\"string\\\"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith(\\\"0x\\\")}var gu=x(()=>{u()});function Ot(t){return Ur(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}var Da=x(()=>{u();gu()});var iZ,kbe=x(()=>{u();iZ=\\\"2.47.6\\\"});function Bbe(t,e){return e?.(t)?t:t&&typeof t==\\\"object\\\"&&\\\"cause\\\"in t&&t.cause!==void 0?Bbe(t.cause,e):e?null:t}var sZ,W,st=x(()=>{u();kbe();sZ={getDocsUrl:({docsBaseUrl:t,docsPath:e=\\\"\\\",docsSlug:r})=>e?`${t??\\\"https://viem.sh\\\"}${e}${r?`#${r}`:\\\"\\\"}`:void 0,version:`viem@${iZ}`},W=class t extends Error{constructor(e,r={}){let n=r.cause instanceof t?r.cause.details:r.cause?.message?r.cause.message:r.details,i=r.cause instanceof t&&r.cause.docsPath||r.docsPath,s=sZ.getDocsUrl?.({...r,docsPath:i}),o=[e||\\\"An error occurred.\\\",\\\"\\\",...r.metaMessages?[...r.metaMessages,\\\"\\\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...sZ.version?[`Version: ${sZ.version}`]:[]].join(`\\n`);super(o,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"metaMessages\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"version\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"BaseError\\\"}),this.details=n,this.docsPath=i,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=e,this.version=iZ}walk(e){return Bbe(this,e)}}});var KO,kS,ZE,yu,ZO,QO,QE,JO,BS,JE,YO,XO,MS,Od,YE,eN,tN,XE,tm,Pg,rN,nN,e5,GO,iN,Ki=x(()=>{u();em();Da();st();KO=class extends W{constructor({docsPath:e}){super([\\\"A constructor was not found on the ABI.\\\",\\\"Make sure you are using the correct ABI and that the constructor exists on it.\\\"].join(`\\n`),{docsPath:e,name:\\\"AbiConstructorNotFoundError\\\"})}},kS=class extends W{constructor({docsPath:e}){super([\\\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\\\",\\\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\\\"].join(`\\n`),{docsPath:e,name:\\\"AbiConstructorParamsNotFoundError\\\"})}},ZE=class extends W{constructor({data:e,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${NS(r,{includeName:!0})})`,`Data:   ${e} (${n} bytes)`],name:\\\"AbiDecodingDataSizeTooSmallError\\\"}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"params\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"size\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=r,this.size=n}},yu=class extends W{constructor({cause:e}={}){super('Cannot decode zero data (\\\"0x\\\") with ABI parameters.',{name:\\\"AbiDecodingZeroDataError\\\",cause:e})}},ZO=class extends W{constructor({expectedLength:e,givenLength:r,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${r}`].join(`\\n`),{name:\\\"AbiEncodingArrayLengthMismatchError\\\"})}},QO=class extends W{constructor({expectedSize:e,value:r}){super(`Size of bytes \\\"${r}\\\" (bytes${Ot(r)}) does not match expected size (bytes${e}).`,{name:\\\"AbiEncodingBytesSizeMismatchError\\\"})}},QE=class extends W{constructor({expectedLength:e,givenLength:r}){super([\\\"ABI encoding params/values length mismatch.\\\",`Expected length (params): ${e}`,`Given length (values): ${r}`].join(`\\n`),{name:\\\"AbiEncodingLengthMismatchError\\\"})}},JO=class extends W{constructor(e,{docsPath:r}){super([`Arguments (\\\\`args\\\\`) were provided to \\\"${e}\\\", but \\\"${e}\\\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\\\"Cannot encode error result without knowing what the parameter types are.\\\",\\\"Make sure you are using the correct ABI and that the inputs exist on it.\\\"].join(`\\n`),{docsPath:r,name:\\\"AbiErrorInputsNotFoundError\\\"})}},BS=class extends W{constructor(e,{docsPath:r}={}){super([`Error ${e?`\\\"${e}\\\" `:\\\"\\\"}not found on ABI.`,\\\"Make sure you are using the correct ABI and that the error exists on it.\\\"].join(`\\n`),{docsPath:r,name:\\\"AbiErrorNotFoundError\\\"})}},JE=class extends W{constructor(e,{docsPath:r,cause:n}){super([`Encoded error signature \\\"${e}\\\" not found on ABI.`,\\\"Make sure you are using the correct ABI and that the error exists on it.\\\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:r,name:\\\"AbiErrorSignatureNotFoundError\\\",cause:n}),Object.defineProperty(this,\\\"signature\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}},YO=class extends W{constructor({docsPath:e}){super(\\\"Cannot extract event signature from empty topics.\\\",{docsPath:e,name:\\\"AbiEventSignatureEmptyTopicsError\\\"})}},XO=class extends W{constructor(e,{docsPath:r}){super([`Encoded event signature \\\"${e}\\\" not found on ABI.`,\\\"Make sure you are using the correct ABI and that the event exists on it.\\\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:r,name:\\\"AbiEventSignatureNotFoundError\\\"})}},MS=class extends W{constructor(e,{docsPath:r}={}){super([`Event ${e?`\\\"${e}\\\" `:\\\"\\\"}not found on ABI.`,\\\"Make sure you are using the correct ABI and that the event exists on it.\\\"].join(`\\n`),{docsPath:r,name:\\\"AbiEventNotFoundError\\\"})}},Od=class extends W{constructor(e,{docsPath:r}={}){super([`Function ${e?`\\\"${e}\\\" `:\\\"\\\"}not found on ABI.`,\\\"Make sure you are using the correct ABI and that the function exists on it.\\\"].join(`\\n`),{docsPath:r,name:\\\"AbiFunctionNotFoundError\\\"})}},YE=class extends W{constructor(e,{docsPath:r}){super([`Function \\\"${e}\\\" does not contain any \\\\`outputs\\\\` on ABI.`,\\\"Cannot decode function result without knowing what the parameter types are.\\\",\\\"Make sure you are using the correct ABI and that the function exists on it.\\\"].join(`\\n`),{docsPath:r,name:\\\"AbiFunctionOutputsNotFoundError\\\"})}},eN=class extends W{constructor(e,{docsPath:r}){super([`Encoded function signature \\\"${e}\\\" not found on ABI.`,\\\"Make sure you are using the correct ABI and that the function exists on it.\\\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(`\\n`),{docsPath:r,name:\\\"AbiFunctionSignatureNotFoundError\\\"})}},tN=class extends W{constructor(e,r){super(\\\"Found ambiguous types in overloaded ABI items.\\\",{metaMessages:[`\\\\`${e.type}\\\\` in \\\\`${js(e.abiItem)}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${js(r.abiItem)}\\\\``,\\\"\\\",\\\"These types encode differently and cannot be distinguished at runtime.\\\",\\\"Remove one of the ambiguous items in the ABI.\\\"],name:\\\"AbiItemAmbiguityError\\\"})}},XE=class extends W{constructor({expectedSize:e,givenSize:r}){super(`Expected bytes${e}, got bytes${r}.`,{name:\\\"BytesSizeMismatchError\\\"})}},tm=class extends W{constructor({abiItem:e,data:r,params:n,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${NS(n,{includeName:!0})})`,`Data:   ${r} (${i} bytes)`],name:\\\"DecodeLogDataMismatch\\\"}),Object.defineProperty(this,\\\"abiItem\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"params\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"size\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=r,this.params=n,this.size=i}},Pg=class extends W{constructor({abiItem:e,param:r}){super([`Expected a topic for indexed event parameter${r.name?` \\\"${r.name}\\\"`:\\\"\\\"} on event \\\"${js(e,{includeName:!0})}\\\".`].join(`\\n`),{name:\\\"DecodeLogTopicsMismatch\\\"}),Object.defineProperty(this,\\\"abiItem\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}},rN=class extends W{constructor(e,{docsPath:r}){super([`Type \\\"${e}\\\" is not a valid encoding type.`,\\\"Please provide a valid ABI type.\\\"].join(`\\n`),{docsPath:r,name:\\\"InvalidAbiEncodingType\\\"})}},nN=class extends W{constructor(e,{docsPath:r}){super([`Type \\\"${e}\\\" is not a valid decoding type.`,\\\"Please provide a valid ABI type.\\\"].join(`\\n`),{docsPath:r,name:\\\"InvalidAbiDecodingType\\\"})}},e5=class extends W{constructor(e){super([`Value \\\"${e}\\\" is not a valid array.`].join(`\\n`),{name:\\\"InvalidArrayError\\\"})}},GO=class extends W{constructor(e){super([`\\\"${e}\\\" is not a valid definition type.`,'Valid types: \\\"function\\\", \\\"event\\\", \\\"error\\\"'].join(`\\n`),{name:\\\"InvalidDefinitionTypeError\\\"})}},iN=class extends W{constructor(e){super(`Type \\\"${e}\\\" is not supported for packed encoding.`,{name:\\\"UnsupportedPackedAbiType\\\"})}}});var sN,Mbe=x(()=>{u();st();sN=class extends W{constructor(e){super(`Filter type \\\"${e}\\\" is not supported.`,{name:\\\"FilterTypeNotSupportedError\\\"})}}});var DS,LS,US,oN=x(()=>{u();st();DS=class extends W{constructor({offset:e,position:r,size:n}){super(`Slice ${r===\\\"start\\\"?\\\"starting\\\":\\\"ending\\\"} at offset \\\"${e}\\\" is out-of-bounds (size: ${n}).`,{name:\\\"SliceOffsetOutOfBoundsError\\\"})}},LS=class extends W{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${r}).`,{name:\\\"SizeExceedsPaddingSizeError\\\"})}},US=class extends W{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${e} ${n} long.`,{name:\\\"InvalidBytesLengthError\\\"})}}});function Fr(t,{dir:e,size:r=32}={}){return typeof t==\\\"string\\\"?Nd(t,{dir:e,size:r}):oZ(t,{dir:e,size:r})}function Nd(t,{dir:e,size:r=32}={}){if(r===null)return t;let n=t.replace(\\\"0x\\\",\\\"\\\");if(n.length>r*2)throw new LS({size:Math.ceil(n.length/2),targetSize:r,type:\\\"hex\\\"});return`0x${n[e===\\\"right\\\"?\\\"padEnd\\\":\\\"padStart\\\"](r*2,\\\"0\\\")}`}function oZ(t,{dir:e,size:r=32}={}){if(r===null)return t;if(t.length>r)throw new LS({size:t.length,targetSize:r,type:\\\"bytes\\\"});let n=new Uint8Array(r);for(let i=0;i<r;i++){let s=e===\\\"right\\\";n[s?i:r-i-1]=t[s?i:t.length-i-1]}return n}var rm=x(()=>{u();oN()});var Og,aN,cN,lN,FS=x(()=>{u();st();Og=class extends W{constructor({max:e,min:r,signed:n,size:i,value:s}){super(`Number \\\"${s}\\\" is not in safe ${i?`${i*8}-bit ${n?\\\"signed\\\":\\\"unsigned\\\"} `:\\\"\\\"}integer range ${e?`(${r} to ${e})`:`(above ${r})`}`,{name:\\\"IntegerOutOfRangeError\\\"})}},aN=class extends W{constructor(e){super(`Bytes value \\\"${e}\\\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\\\"InvalidBytesBooleanError\\\"})}},cN=class extends W{constructor(e){super(`Hex value \\\"${e}\\\" is not a valid boolean. The hex value must be \\\"0x0\\\" (false) or \\\"0x1\\\" (true).`,{name:\\\"InvalidHexBooleanError\\\"})}},lN=class extends W{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`,{name:\\\"SizeOverflowError\\\"})}}});function An(t,{dir:e=\\\"left\\\"}={}){let r=typeof t==\\\"string\\\"?t.replace(\\\"0x\\\",\\\"\\\"):t,n=0;for(let i=0;i<r.length-1&&r[e===\\\"left\\\"?i:r.length-i-1].toString()===\\\"0\\\";i++)n++;return r=e===\\\"left\\\"?r.slice(n):r.slice(0,r.length-n),typeof t==\\\"string\\\"?(r.length===1&&e===\\\"right\\\"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}var nm=x(()=>{u()});function La(t,{size:e}){if(Ot(t)>e)throw new lN({givenSize:Ot(t),maxSize:e})}function Ge(t,e={}){let{signed:r}=e;e.size&&La(t,{size:e.size});let n=BigInt(t);if(!r)return n;let i=(t.length-2)/2,s=(1n<<BigInt(i)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${\\\"f\\\".padStart(i*2,\\\"f\\\")}`)-1n}function uN(t,e={}){let r=t;if(e.size&&(La(r,{size:e.size}),r=An(r)),An(r)===\\\"0x00\\\")return!1;if(An(r)===\\\"0x01\\\")return!0;throw new cN(r)}function jr(t,e={}){let r=Ge(t,e),n=Number(r);if(!Number.isSafeInteger(n))throw new Og({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${r}n`});return n}function jS(t,e={}){let r=Hr(t);return e.size&&(La(r,{size:e.size}),r=An(r,{dir:\\\"right\\\"})),new TextDecoder().decode(r)}var xi=x(()=>{u();FS();Da();nm();Zi()});function He(t,e={}){return typeof t==\\\"number\\\"||typeof t==\\\"bigint\\\"?Z(t,e):typeof t==\\\"string\\\"?la(t,e):typeof t==\\\"boolean\\\"?Gb(t,e):er(t,e)}function Gb(t,e={}){let r=`0x${Number(t)}`;return typeof e.size==\\\"number\\\"?(La(r,{size:e.size}),Fr(r,{size:e.size})):r}function er(t,e={}){let r=\\\"\\\";for(let i=0;i<t.length;i++)r+=Zlt[t[i]];let n=`0x${r}`;return typeof e.size==\\\"number\\\"?(La(n,{size:e.size}),Fr(n,{dir:\\\"right\\\",size:e.size})):n}function Z(t,e={}){let{signed:r,size:n}=e,i=BigInt(t),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof t==\\\"number\\\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let o=typeof s==\\\"bigint\\\"&&r?-s-1n:0;if(s&&i>s||i<o){let c=typeof t==\\\"bigint\\\"?\\\"n\\\":\\\"\\\";throw new Og({max:s?`${s}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${t}${c}`})}let a=`0x${(r&&i<0?(1n<<BigInt(n*8))+BigInt(i):i).toString(16)}`;return n?Fr(a,{size:n}):a}function la(t,e={}){let r=Qlt.encode(t);return er(r,e)}var Zlt,Qlt,qe=x(()=>{u();FS();rm();xi();Zlt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));Qlt=new TextEncoder});function Oo(t,e={}){return typeof t==\\\"number\\\"||typeof t==\\\"bigint\\\"?Ube(t,e):typeof t==\\\"boolean\\\"?Lbe(t,e):Ur(t)?Hr(t,e):Ua(t,e)}function Lbe(t,e={}){let r=new Uint8Array(1);return r[0]=Number(t),typeof e.size==\\\"number\\\"?(La(r,{size:e.size}),Fr(r,{size:e.size})):r}function Dbe(t){if(t>=im.zero&&t<=im.nine)return t-im.zero;if(t>=im.A&&t<=im.F)return t-(im.A-10);if(t>=im.a&&t<=im.f)return t-(im.a-10)}function Hr(t,e={}){let r=t;e.size&&(La(r,{size:e.size}),r=Fr(r,{dir:\\\"right\\\",size:e.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);let i=n.length/2,s=new Uint8Array(i);for(let o=0,a=0;o<i;o++){let c=Dbe(n.charCodeAt(a++)),l=Dbe(n.charCodeAt(a++));if(c===void 0||l===void 0)throw new W(`Invalid byte sequence (\\\"${n[a-2]}${n[a-1]}\\\" in \\\"${n}\\\").`);s[o]=c*16+l}return s}function Ube(t,e){let r=Z(t,e);return Hr(r)}function Ua(t,e={}){let r=Jlt.encode(t);return typeof e.size==\\\"number\\\"?(La(r,{size:e.size}),Fr(r,{dir:\\\"right\\\",size:e.size})):r}var Jlt,im,Zi=x(()=>{u();st();gu();rm();xi();qe();Jlt=new TextEncoder;im={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Ylt(t,e=!1){return e?{h:Number(t&dN),l:Number(t>>Fbe&dN)}:{h:Number(t>>Fbe&dN)|0,l:Number(t&dN)|0}}function fN(t,e=!1){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let s=0;s<r;s++){let{h:o,l:a}=Ylt(t[s],e);[n[s],i[s]]=[o,a]}return[n,i]}function Jf(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}var dN,Fbe,aZ,cZ,Kb,Zb,HS,qS,jbe,Hbe,qbe,zbe,$be,Vbe,Wbe,Gbe,Kbe,Zbe,lZ=x(()=>{u();dN=BigInt(4294967295),Fbe=BigInt(32);aZ=(t,e,r)=>t>>>r,cZ=(t,e,r)=>t<<32-r|e>>>r,Kb=(t,e,r)=>t>>>r|e<<32-r,Zb=(t,e,r)=>t<<32-r|e>>>r,HS=(t,e,r)=>t<<64-r|e>>>r-32,qS=(t,e,r)=>t>>>r-32|e<<64-r,jbe=(t,e,r)=>t<<r|e>>>32-r,Hbe=(t,e,r)=>e<<r|t>>>32-r,qbe=(t,e,r)=>e<<r-32|t>>>64-r,zbe=(t,e,r)=>t<<r-32|e>>>64-r;$be=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Vbe=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Wbe=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Gbe=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,Kbe=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Zbe=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0});var Qb,Qbe=x(()=>{u();Qb=typeof globalThis==\\\"object\\\"&&\\\"crypto\\\"in globalThis?globalThis.crypto:void 0});function kg(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function kd(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\\\"positive integer expected, got \\\"+t)}function Fa(t,...e){if(!kg(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function pN(t){if(typeof t!=\\\"function\\\"||typeof t.create!=\\\"function\\\")throw new Error(\\\"Hash should be wrapped by utils.createHasher\\\");kd(t.outputLen),kd(t.blockLen)}function om(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function hN(t,e){Fa(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function Ybe(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function bu(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function mN(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Bd(t,e){return t<<32-e|t>>>e}function tut(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function rut(t){for(let e=0;e<t.length;e++)t[e]=tut(t[e]);return t}function Yf(t){if(Fa(t),Xbe)return t.toHex();let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=nut[t[r]];return e}function Jbe(t){if(t>=sm._0&&t<=sm._9)return t-sm._0;if(t>=sm.A&&t<=sm.F)return t-(sm.A-10);if(t>=sm.a&&t<=sm.f)return t-(sm.a-10)}function Bg(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);if(Xbe)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=Jbe(t.charCodeAt(s)),a=Jbe(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}function dZ(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function Jb(t){return typeof t==\\\"string\\\"&&(t=dZ(t)),Fa(t),t}function Ec(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];Fa(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function t5(t){let e=n=>t().update(Jb(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function am(t=32){if(Qb&&typeof Qb.getRandomValues==\\\"function\\\")return Qb.getRandomValues(new Uint8Array(t));if(Qb&&typeof Qb.randomBytes==\\\"function\\\")return Uint8Array.from(Qb.randomBytes(t));throw new Error(\\\"crypto.getRandomValues must be defined\\\")}var eut,uZ,Xbe,nut,sm,Ng,Md=x(()=>{u();Qbe();eut=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;uZ=eut?t=>t:rut,Xbe=typeof Uint8Array.from([]).toHex==\\\"function\\\"&&typeof Uint8Array.fromHex==\\\"function\\\",nut=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));sm={_0:48,_9:57,A:65,F:70,a:97,f:102};Ng=class{}});function dut(t,e=24){let r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){let a=(o+8)%10,c=(o+2)%10,l=r[c],d=r[c+1],f=ewe(l,d,1)^r[a],p=twe(l,d,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=p}let i=t[2],s=t[3];for(let o=0;o<24;o++){let a=nwe[o],c=ewe(i,s,a),l=twe(i,s,a),d=rwe[o];i=t[d],s=t[d+1],t[d]=c,t[d+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=lut[n],t[1]^=uut[n]}bu(r)}var iut,zS,sut,out,aut,cut,rwe,nwe,iwe,swe,lut,uut,ewe,twe,fZ,fut,Mg,$S=x(()=>{u();lZ();Md();iut=BigInt(0),zS=BigInt(1),sut=BigInt(2),out=BigInt(7),aut=BigInt(256),cut=BigInt(113),rwe=[],nwe=[],iwe=[];for(let t=0,e=zS,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],rwe.push(2*(5*n+r)),nwe.push((t+1)*(t+2)/2%64);let i=iut;for(let s=0;s<7;s++)e=(e<<zS^(e>>out)*cut)%aut,e&sut&&(i^=zS<<(zS<<BigInt(s))-zS);iwe.push(i)}swe=fN(iwe,!0),lut=swe[0],uut=swe[1],ewe=(t,e,r)=>r>32?qbe(t,e,r):jbe(t,e,r),twe=(t,e,r)=>r>32?zbe(t,e,r):Hbe(t,e,r);fZ=class t extends Ng{constructor(e,r,n,i=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=s,kd(n),!(0<e&&e<200))throw new Error(\\\"only keccak-f1600 function is supported\\\");this.state=new Uint8Array(200),this.state32=Ybe(this.state)}clone(){return this._cloneInto()}keccak(){uZ(this.state32),dut(this.state32,this.rounds),uZ(this.state32),this.posOut=0,this.pos=0}update(e){om(this),e=Jb(e),Fa(e);let{blockLen:r,state:n}=this,i=e.length;for(let s=0;s<i;){let o=Math.min(r-this.pos,i-s);for(let a=0;a<o;a++)n[this.pos++]^=e[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:r,pos:n,blockLen:i}=this;e[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){om(this,!1),Fa(e),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,s=e.length;i<s;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,s-i);e.set(r.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error(\\\"XOF is not possible for this instance\\\");return this.writeInto(e)}xof(e){return kd(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(hN(e,this),this.finished)throw new Error(\\\"digest() was already called\\\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,bu(this.state)}_cloneInto(e){let{blockLen:r,suffix:n,outputLen:i,rounds:s,enableXOF:o}=this;return e||(e=new t(r,n,i,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}},fut=(t,e,r)=>t5(()=>new fZ(e,t,r)),Mg=fut(1,136,256/8)});function Ft(t,e){let r=e||\\\"hex\\\",n=Mg(Ur(t,{strict:!1})?Oo(t):t);return r===\\\"bytes\\\"?n:He(n)}var yl=x(()=>{u();$S();gu();Zi();qe()});function owe(t){return put(t)}var put,awe=x(()=>{u();Zi();yl();put=t=>Ft(Oo(t))});function cwe(t){let e=!0,r=\\\"\\\",n=0,i=\\\"\\\",s=!1;for(let o=0;o<t.length;o++){let a=t[o];if([\\\"(\\\",\\\")\\\",\\\",\\\"].includes(a)&&(e=!0),a===\\\"(\\\"&&n++,a===\\\")\\\"&&n--,!!e){if(n===0){if(a===\\\" \\\"&&[\\\"event\\\",\\\"function\\\",\\\"\\\"].includes(i))i=\\\"\\\";else if(i+=a,a===\\\")\\\"){s=!0;break}continue}if(a===\\\" \\\"){t[o-1]!==\\\",\\\"&&r!==\\\",\\\"&&r!==\\\",(\\\"&&(r=\\\"\\\",e=!1);continue}i+=a,r+=a}}if(!s)throw new W(\\\"Unable to normalize signature.\\\");return i}var lwe=x(()=>{u();st()});var uwe,dwe=x(()=>{u();KE();lwe();uwe=t=>{let e=typeof t==\\\"string\\\"?t:Wb(t);return cwe(e)}});function gN(t){return owe(uwe(t))}var pZ=x(()=>{u();awe();dwe()});var Dg,VS=x(()=>{u();pZ();Dg=gN});var cr,bl=x(()=>{u();st();cr=class extends W{constructor({address:e}){super(`Address \\\"${e}\\\" is invalid.`,{metaMessages:[\\\"- Address must be a hex value of 20 bytes (40 hex characters).\\\",\\\"- Address must match its checksum counterpart.\\\"],name:\\\"InvalidAddressError\\\"})}}});var ua,Lg=x(()=>{u();ua=class extends Map{constructor(e){super(),Object.defineProperty(this,\\\"maxSize\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let r=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,r)),r}set(e,r){if(super.has(e)&&super.delete(e),super.set(e,r),this.maxSize&&this.size>this.maxSize){let n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}});function Xf(t,e){if(hZ.has(`${t}.${e}`))return hZ.get(`${t}.${e}`);let r=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),n=Ft(Ua(r),\\\"bytes\\\"),i=(e?r.substring(`${e}0x`.length):r).split(\\\"\\\");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&i[o]&&(i[o]=i[o].toUpperCase()),(n[o>>1]&15)>=8&&i[o+1]&&(i[o+1]=i[o+1].toUpperCase());let s=`0x${i.join(\\\"\\\")}`;return hZ.set(`${t}.${e}`,s),s}function _r(t,e){if(!lt(t,{strict:!1}))throw new cr({address:t});return Xf(t,e)}var hZ,Dd=x(()=>{u();bl();Zi();yl();Lg();da();hZ=new ua(8192)});function lt(t,e){let{strict:r=!0}=e??{},n=`${t}.${r}`;if(mZ.has(n))return mZ.get(n);let i=hut.test(t)?t.toLowerCase()===t?!0:r?Xf(t)===t:!0:!1;return mZ.set(n,i),i}var hut,mZ,da=x(()=>{u();Lg();Dd();hut=/^0x[a-fA-F0-9]{40}$/,mZ=new ua(8192)});function Jt(t){return typeof t[0]==\\\"string\\\"?ln(t):mut(t)}function mut(t){let e=0;for(let i of t)e+=i.length;let r=new Uint8Array(e),n=0;for(let i of t)r.set(i,n),n+=i.length;return r}function ln(t){return`0x${t.reduce((e,r)=>e+r.replace(\\\"0x\\\",\\\"\\\"),\\\"\\\")}`}var Ei=x(()=>{u()});function No(t,e,r,{strict:n}={}){return Ur(t,{strict:!1})?WS(t,e,r,{strict:n}):yN(t,e,r,{strict:n})}function fwe(t,e){if(typeof e==\\\"number\\\"&&e>0&&e>Ot(t)-1)throw new DS({offset:e,position:\\\"start\\\",size:Ot(t)})}function pwe(t,e,r){if(typeof e==\\\"number\\\"&&typeof r==\\\"number\\\"&&Ot(t)!==r-e)throw new DS({offset:r,position:\\\"end\\\",size:Ot(t)})}function yN(t,e,r,{strict:n}={}){fwe(t,e);let i=t.slice(e,r);return n&&pwe(i,e,r),i}function WS(t,e,r,{strict:n}={}){fwe(t,e);let i=`0x${t.replace(\\\"0x\\\",\\\"\\\").slice((e??0)*2,(r??t.length)*2)}`;return n&&pwe(i,e,r),i}var ep=x(()=>{u();oN();gu();Da()});var hwe,bN,r5,wN=x(()=>{u();hwe=/^(.*)\\\\[([0-9]*)\\\\]$/,bN=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,r5=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function Vn(t,e){if(t.length!==e.length)throw new QE({expectedLength:t.length,givenLength:e.length});let r=gut({params:t,values:e}),n=yZ(r);return n.length===0?\\\"0x\\\":n}function gut({params:t,values:e}){let r=[];for(let n=0;n<t.length;n++)r.push(gZ({param:t[n],value:e[n]}));return r}function gZ({param:t,value:e}){let r=vN(t.type);if(r){let[n,i]=r;return but(e,{length:n,param:{...t,type:i}})}if(t.type===\\\"tuple\\\")return _ut(e,{param:t});if(t.type===\\\"address\\\")return yut(e);if(t.type===\\\"bool\\\")return vut(e);if(t.type.startsWith(\\\"uint\\\")||t.type.startsWith(\\\"int\\\")){let n=t.type.startsWith(\\\"int\\\"),[,,i=\\\"256\\\"]=r5.exec(t.type)??[];return xut(e,{signed:n,size:Number(i)})}if(t.type.startsWith(\\\"bytes\\\"))return wut(e,{param:t});if(t.type===\\\"string\\\")return Eut(e);throw new rN(t.type,{docsPath:\\\"/docs/contract/encodeAbiParameters\\\"})}function yZ(t){let e=0;for(let s=0;s<t.length;s++){let{dynamic:o,encoded:a}=t[s];o?e+=32:e+=Ot(a)}let r=[],n=[],i=0;for(let s=0;s<t.length;s++){let{dynamic:o,encoded:a}=t[s];o?(r.push(Z(e+i,{size:32})),n.push(a),i+=Ot(a)):r.push(a)}return Jt([...r,...n])}function yut(t){if(!lt(t))throw new cr({address:t});return{dynamic:!1,encoded:Nd(t.toLowerCase())}}function but(t,{length:e,param:r}){let n=e===null;if(!Array.isArray(t))throw new e5(t);if(!n&&t.length!==e)throw new ZO({expectedLength:e,givenLength:t.length,type:`${r.type}[${e}]`});let i=!1,s=[];for(let o=0;o<t.length;o++){let a=gZ({param:r,value:t[o]});a.dynamic&&(i=!0),s.push(a)}if(n||i){let o=yZ(s);if(n){let a=Z(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?Jt([a,o]):a}}if(i)return{dynamic:!0,encoded:o}}return{dynamic:!1,encoded:Jt(s.map(({encoded:o})=>o))}}function wut(t,{param:e}){let[,r]=e.type.split(\\\"bytes\\\"),n=Ot(t);if(!r){let i=t;return n%32!==0&&(i=Nd(i,{dir:\\\"right\\\",size:Math.ceil((t.length-2)/2/32)*32})),{dynamic:!0,encoded:Jt([Nd(Z(n,{size:32})),i])}}if(n!==Number.parseInt(r,10))throw new QO({expectedSize:Number.parseInt(r,10),value:t});return{dynamic:!1,encoded:Nd(t,{dir:\\\"right\\\"})}}function vut(t){if(typeof t!=\\\"boolean\\\")throw new W(`Invalid boolean value: \\\"${t}\\\" (type: ${typeof t}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Nd(Gb(t))}}function xut(t,{signed:e,size:r=256}){if(typeof r==\\\"number\\\"){let n=2n**(BigInt(r)-(e?1n:0n))-1n,i=e?-n-1n:0n;if(t>n||t<i)throw new Og({max:n.toString(),min:i.toString(),signed:e,size:r/8,value:t.toString()})}return{dynamic:!1,encoded:Z(t,{size:32,signed:e})}}function Eut(t){let e=la(t),r=Math.ceil(Ot(e)/32),n=[];for(let i=0;i<r;i++)n.push(Nd(No(e,i*32,(i+1)*32),{dir:\\\"right\\\"}));return{dynamic:!0,encoded:Jt([Nd(Z(Ot(e),{size:32})),...n])}}function _ut(t,{param:e}){let r=!1,n=[];for(let i=0;i<e.components.length;i++){let s=e.components[i],o=Array.isArray(t)?i:s.name,a=gZ({param:s,value:t[o]});n.push(a),a.dynamic&&(r=!0)}return{dynamic:r,encoded:r?yZ(n):Jt(n.map(({encoded:i})=>i))}}function vN(t){let e=t.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}var wu=x(()=>{u();Ki();bl();st();FS();da();Ei();rm();Da();ep();qe();wN()});var tp,n5=x(()=>{u();ep();pZ();tp=t=>No(gN(t),0,4)});function _c(t){let{abi:e,args:r=[],name:n}=t,i=Ur(n,{strict:!1}),s=e.filter(a=>i?a.type===\\\"function\\\"?tp(a)===n:a.type===\\\"event\\\"?Dg(a)===n:!1:\\\"name\\\"in a&&a.name===n);if(s.length===0)return;if(s.length===1)return s[0];let o;for(let a of s){if(!(\\\"inputs\\\"in a))continue;if(!r||r.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==r.length)continue;if(r.every((l,d)=>{let f=\\\"inputs\\\"in a&&a.inputs[d];return f?bZ(l,f):!1})){if(o&&\\\"inputs\\\"in o&&o.inputs){let l=mwe(a.inputs,o.inputs,r);if(l)throw new tN({abiItem:a,type:l[0]},{abiItem:o,type:l[1]})}o=a}}return o||s[0]}function bZ(t,e){let r=typeof t,n=e.type;switch(n){case\\\"address\\\":return lt(t,{strict:!1});case\\\"bool\\\":return r===\\\"boolean\\\";case\\\"function\\\":return r===\\\"string\\\";case\\\"string\\\":return r===\\\"string\\\";default:return n===\\\"tuple\\\"&&\\\"components\\\"in e?Object.values(e.components).every((i,s)=>r===\\\"object\\\"&&bZ(Object.values(t)[s],i)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\\\"number\\\"||r===\\\"bigint\\\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\\\"string\\\"||t instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(t)&&t.every(i=>bZ(i,{...e,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\\\"\\\")})):!1}}function mwe(t,e,r){for(let n in t){let i=t[n],s=e[n];if(i.type===\\\"tuple\\\"&&s.type===\\\"tuple\\\"&&\\\"components\\\"in i&&\\\"components\\\"in s)return mwe(i.components,s.components,r[n]);let o=[i.type,s.type];if(o.includes(\\\"address\\\")&&o.includes(\\\"bytes20\\\")?!0:o.includes(\\\"address\\\")&&o.includes(\\\"string\\\")?lt(r[n],{strict:!1}):o.includes(\\\"address\\\")&&o.includes(\\\"bytes\\\")?lt(r[n],{strict:!1}):!1)return o}}var Ug=x(()=>{u();Ki();gu();da();VS();n5()});function rp(t){let{abi:e,eventName:r,args:n}=t,i=e[0];if(r){let c=_c({abi:e,name:r});if(!c)throw new MS(r,{docsPath:gwe});i=c}if(i.type!==\\\"event\\\")throw new MS(void 0,{docsPath:gwe});let s=js(i),o=Dg(s),a=[];if(n&&\\\"inputs\\\"in i){let c=i.inputs?.filter(d=>\\\"indexed\\\"in d&&d.indexed),l=Array.isArray(n)?n:Object.values(n).length>0?c?.map(d=>n[d.name])??[]:[];l.length>0&&(a=c?.map((d,f)=>Array.isArray(l[f])?l[f].map((p,h)=>ywe({param:d,value:l[f][h]})):typeof l[f]<\\\"u\\\"&&l[f]!==null?ywe({param:d,value:l[f]}):null)??[])}return[o,...a]}function ywe({param:t,value:e}){if(t.type===\\\"string\\\"||t.type===\\\"bytes\\\")return Ft(Oo(e));if(t.type===\\\"tuple\\\"||t.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/))throw new sN(t.type);return Vn([t],[e])}var gwe,i5=x(()=>{u();Ki();Mbe();Zi();yl();VS();wu();em();Ug();gwe=\\\"/docs/contract/encodeEventTopics\\\"});function Fg(t,{method:e}){let r={};return t.transport.type===\\\"fallback\\\"&&t.transport.onResponse?.(({method:n,response:i,status:s,transport:o})=>{s===\\\"success\\\"&&e===n&&(r[i]=o.request)}),(n=>r[n]||t.request)}var GS=x(()=>{u()});async function xN(t,e){let{address:r,abi:n,args:i,eventName:s,fromBlock:o,strict:a,toBlock:c}=e,l=Fg(t,{method:\\\"eth_newFilter\\\"}),d=s?rp({abi:n,args:i,eventName:s}):void 0,f=await t.request({method:\\\"eth_newFilter\\\",params:[{address:r,fromBlock:typeof o==\\\"bigint\\\"?Z(o):o,toBlock:typeof c==\\\"bigint\\\"?Z(c):c,topics:d}]});return{abi:n,args:i,eventName:s,id:f,request:l(f),strict:!!a,type:\\\"event\\\"}}var wZ=x(()=>{u();i5();qe();GS()});function Ze(t){return typeof t==\\\"string\\\"?{address:t,type:\\\"json-rpc\\\"}:t}var en=x(()=>{u()});function wwe(t){let{abi:e,args:r,functionName:n}=t,i=e[0];if(n){let s=_c({abi:e,args:r,name:n});if(!s)throw new Od(n,{docsPath:bwe});i=s}if(i.type!==\\\"function\\\")throw new Od(void 0,{docsPath:bwe});return{abi:[i],functionName:tp(js(i))}}var bwe,vwe=x(()=>{u();Ki();n5();em();Ug();bwe=\\\"/docs/contract/encodeFunctionData\\\"});function At(t){let{args:e}=t,{abi:r,functionName:n}=t.abi.length===1&&t.functionName?.startsWith(\\\"0x\\\")?t:wwe(t),i=r[0],s=n,o=\\\"inputs\\\"in i&&i.inputs?Vn(i.inputs,e??[]):void 0;return ln([s,o??\\\"0x\\\"])}var fa=x(()=>{u();Ei();wu();vwe()});var xwe,EN,Ewe,_N=x(()=>{u();xwe={1:\\\"An `assert` condition failed.\\\",17:\\\"Arithmetic operation resulted in underflow or overflow.\\\",18:\\\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\\\",33:\\\"Attempted to convert to an invalid type.\\\",34:\\\"Attempted to access a storage byte array that is incorrectly encoded.\\\",49:\\\"Performed `.pop()` on an empty array\\\",50:\\\"Array index is out of bounds.\\\",65:\\\"Allocated too much memory or created an array which is too large.\\\",81:\\\"Attempted to call a zero-initialized variable of internal function type.\\\"},EN={inputs:[{name:\\\"message\\\",type:\\\"string\\\"}],name:\\\"Error\\\",type:\\\"error\\\"},Ewe={inputs:[{name:\\\"reason\\\",type:\\\"uint256\\\"}],name:\\\"Panic\\\",type:\\\"error\\\"}});var KS,s5,CN,vZ=x(()=>{u();st();KS=class extends W{constructor({offset:e}){super(`Offset \\\\`${e}\\\\` cannot be negative.`,{name:\\\"NegativeOffsetError\\\"})}},s5=class extends W{constructor({length:e,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${e}\\\\`).`,{name:\\\"PositionOutOfBoundsError\\\"})}},CN=class extends W{constructor({count:e,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${e}\\\\`).`,{name:\\\"RecursiveReadLimitExceededError\\\"})}}});function o5(t,{recursiveReadLimit:e=8192}={}){let r=Object.create(Cut);return r.bytes=t,r.dataView=new DataView(t.buffer??t,t.byteOffset,t.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=e,r}var Cut,SN=x(()=>{u();vZ();Cut={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new CN({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new s5({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new KS({offset:t});let e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new KS({offset:t});let e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){let r=e??this.position;return this.assertPosition(r+t-1),this.bytes.subarray(r,r+t)},inspectUint8(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){let e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){let e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){let e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();let r=this.inspectBytes(t);return this.position+=e??t,r},readUint8(){this.assertReadLimit(),this._touch();let t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();let t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();let t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();let t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){let e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}}});function _we(t,e={}){typeof e.size<\\\"u\\\"&&La(t,{size:e.size});let r=er(t,e);return Ge(r,e)}function Cwe(t,e={}){let r=t;if(typeof e.size<\\\"u\\\"&&(La(r,{size:e.size}),r=An(r)),r.length>1||r[0]>1)throw new aN(r);return!!r[0]}function np(t,e={}){typeof e.size<\\\"u\\\"&&La(t,{size:e.size});let r=er(t,e);return jr(r,e)}function Swe(t,e={}){let r=t;return typeof e.size<\\\"u\\\"&&(La(r,{size:e.size}),r=An(r,{dir:\\\"right\\\"})),new TextDecoder().decode(r)}var Awe=x(()=>{u();FS();nm();xi();qe()});function Cc(t,e){let r=typeof e==\\\"string\\\"?Hr(e):e,n=o5(r);if(Ot(r)===0&&t.length>0)throw new yu;if(Ot(e)&&Ot(e)<32)throw new ZE({data:typeof e==\\\"string\\\"?e:er(e),params:t,size:Ot(e)});let i=0,s=[];for(let o=0;o<t.length;++o){let a=t[o];n.setPosition(i);let[c,l]=a5(n,a,{staticPosition:0});i+=l,s.push(c)}return s}function a5(t,e,{staticPosition:r}){let n=vN(e.type);if(n){let[i,s]=n;return Aut(t,{...e,type:s},{length:i,staticPosition:r})}if(e.type===\\\"tuple\\\")return Put(t,e,{staticPosition:r});if(e.type===\\\"address\\\")return Sut(t);if(e.type===\\\"bool\\\")return Tut(t);if(e.type.startsWith(\\\"bytes\\\"))return Iut(t,e,{staticPosition:r});if(e.type.startsWith(\\\"uint\\\")||e.type.startsWith(\\\"int\\\"))return Rut(t,e);if(e.type===\\\"string\\\")return Out(t,{staticPosition:r});throw new nN(e.type,{docsPath:\\\"/docs/contract/decodeAbiParameters\\\"})}function Sut(t){let e=t.readBytes(32);return[Xf(er(yN(e,-20))),32]}function Aut(t,e,{length:r,staticPosition:n}){if(!r){let o=np(t.readBytes(xZ)),a=n+o,c=a+Twe;t.setPosition(a);let l=np(t.readBytes(Twe)),d=ZS(e),f=0,p=[];for(let h=0;h<l;++h){t.setPosition(c+(d?h*32:f));let[m,g]=a5(t,e,{staticPosition:c});f+=g,p.push(m)}return t.setPosition(n+32),[p,32]}if(ZS(e)){let o=np(t.readBytes(xZ)),a=n+o,c=[];for(let l=0;l<r;++l){t.setPosition(a+l*32);let[d]=a5(t,e,{staticPosition:a});c.push(d)}return t.setPosition(n+32),[c,32]}let i=0,s=[];for(let o=0;o<r;++o){let[a,c]=a5(t,e,{staticPosition:n+i});i+=c,s.push(a)}return[s,i]}function Tut(t){return[Cwe(t.readBytes(32),{size:32}),32]}function Iut(t,e,{staticPosition:r}){let[n,i]=e.type.split(\\\"bytes\\\");if(!i){let o=np(t.readBytes(32));t.setPosition(r+o);let a=np(t.readBytes(32));if(a===0)return t.setPosition(r+32),[\\\"0x\\\",32];let c=t.readBytes(a);return t.setPosition(r+32),[er(c),32]}return[er(t.readBytes(Number.parseInt(i,10),32)),32]}function Rut(t,e){let r=e.type.startsWith(\\\"int\\\"),n=Number.parseInt(e.type.split(\\\"int\\\")[1]||\\\"256\\\",10),i=t.readBytes(32);return[n>48?_we(i,{signed:r}):np(i,{signed:r}),32]}function Put(t,e,{staticPosition:r}){let n=e.components.length===0||e.components.some(({name:o})=>!o),i=n?[]:{},s=0;if(ZS(e)){let o=np(t.readBytes(xZ)),a=r+o;for(let c=0;c<e.components.length;++c){let l=e.components[c];t.setPosition(a+s);let[d,f]=a5(t,l,{staticPosition:a});s+=f,i[n?c:l?.name]=d}return t.setPosition(r+32),[i,32]}for(let o=0;o<e.components.length;++o){let a=e.components[o],[c,l]=a5(t,a,{staticPosition:r});i[n?o:a?.name]=c,s+=l}return[i,s]}function Out(t,{staticPosition:e}){let r=np(t.readBytes(32)),n=e+r;t.setPosition(n);let i=np(t.readBytes(32));if(i===0)return t.setPosition(e+32),[\\\"\\\",32];let s=t.readBytes(i,32),o=Swe(An(s));return t.setPosition(e+32),[o,32]}function ZS(t){let{type:e}=t;if(e===\\\"string\\\"||e===\\\"bytes\\\"||e.endsWith(\\\"[]\\\"))return!0;if(e===\\\"tuple\\\")return t.components?.some(ZS);let r=vN(t.type);return!!(r&&ZS({...t,type:r[1]}))}var Twe,xZ,c5=x(()=>{u();Ki();Dd();SN();Da();ep();nm();Awe();Zi();qe();wu();Twe=32,xZ=32});function l5(t){let{abi:e,data:r,cause:n}=t,i=No(r,0,4);if(i===\\\"0x\\\")throw new yu({cause:n});let o=[...e||[],EN,Ewe].find(a=>a.type===\\\"error\\\"&&i===tp(js(a)));if(!o)throw new JE(i,{docsPath:\\\"/docs/contract/decodeErrorResult\\\",cause:n});return{abiItem:o,args:\\\"inputs\\\"in o&&o.inputs&&o.inputs.length>0?Cc(o.inputs,No(r,4)):void 0,errorName:o.name}}var AN=x(()=>{u();_N();Ki();ep();n5();c5();em()});var qt,ko=x(()=>{u();qt=(t,e,r)=>JSON.stringify(t,(n,i)=>{let s=typeof i==\\\"bigint\\\"?i.toString():i;return typeof e==\\\"function\\\"?e(n,s):s},r)});function EZ({abiItem:t,args:e,includeFunctionName:r=!0,includeName:n=!1}){if(\\\"name\\\"in t&&\\\"inputs\\\"in t&&t.inputs)return`${r?t.name:\\\"\\\"}(${t.inputs.map((i,s)=>`${n&&i.name?`${i.name}: `:\\\"\\\"}${typeof e[s]==\\\"object\\\"?qt(e[s]):e[s]}`).join(\\\", \\\")})`}var Iwe=x(()=>{u();ko()});var Rwe,Pwe,_Z=x(()=>{u();Rwe={gwei:9,wei:18},Pwe={ether:-9,wei:9}});function cm(t,e){let r=t.toString(),n=r.startsWith(\\\"-\\\");n&&(r=r.slice(1)),r=r.padStart(e,\\\"0\\\");let[i,s]=[r.slice(0,r.length-e),r.slice(r.length-e)];return s=s.replace(/(0+)$/,\\\"\\\"),`${n?\\\"-\\\":\\\"\\\"}${i||\\\"0\\\"}${s?`.${s}`:\\\"\\\"}`}var TN=x(()=>{u()});function u5(t,e=\\\"wei\\\"){return cm(t,Rwe[e])}var IN=x(()=>{u();_Z();TN()});function Oi(t,e=\\\"wei\\\"){return cm(t,Pwe[e])}var Yb=x(()=>{u();_Z();TN()});function Owe(t){return t.reduce((e,{slot:r,value:n})=>`${e}        ${r}: ${n}\\n`,\\\"\\\")}function Nwe(t){return t.reduce((e,{address:r,...n})=>{let i=`${e}    ${r}:\\n`;return n.nonce&&(i+=`      nonce: ${n.nonce}\\n`),n.balance&&(i+=`      balance: ${n.balance}\\n`),n.code&&(i+=`      code: ${n.code}\\n`),n.state&&(i+=`      state:\\n`,i+=Owe(n.state)),n.stateDiff&&(i+=`      stateDiff:\\n`,i+=Owe(n.stateDiff)),i},`  State Override:\\n`).slice(0,-1)}var RN,PN,CZ=x(()=>{u();st();RN=class extends W{constructor({address:e}){super(`State for account \\\"${e}\\\" is set multiple times.`,{name:\\\"AccountStateConflictError\\\"})}},PN=class extends W{constructor(){super(\\\"state and stateDiff are set on the same account.\\\",{name:\\\"StateAssignmentConflictError\\\"})}}});function lm(t){let e=Object.entries(t).map(([n,i])=>i===void 0||i===!1?null:[n,i]).filter(Boolean),r=e.reduce((n,[i])=>Math.max(n,i.length),0);return e.map(([n,i])=>`  ${`${n}:`.padEnd(r+1)}  ${i}`).join(`\\n`)}var ON,NN,kN,BN,d5,f5,p5,MN,wl=x(()=>{u();IN();Yb();st();ON=class extends W{constructor({v:e}){super(`Invalid \\\\`v\\\\` value \\\"${e}\\\". Expected 27 or 28.`,{name:\\\"InvalidLegacyVError\\\"})}},NN=class extends W{constructor({transaction:e}){super(\\\"Cannot infer a transaction type from provided transaction.\\\",{metaMessages:[\\\"Provided Transaction:\\\",\\\"{\\\",lm(e),\\\"}\\\",\\\"\\\",\\\"To infer the type, either provide:\\\",\\\"- a `type` to the Transaction, or\\\",\\\"- an EIP-1559 Transaction with `maxFeePerGas`, or\\\",\\\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\\\",\\\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\\\",\\\"- an EIP-7702 Transaction with `authorizationList`, or\\\",\\\"- a Legacy Transaction with `gasPrice`\\\"],name:\\\"InvalidSerializableTransactionError\\\"})}},kN=class extends W{constructor({storageKey:e}){super(`Size for storage key \\\"${e}\\\" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:\\\"InvalidStorageKeySizeError\\\"})}},BN=class extends W{constructor(e,{account:r,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:p}){let h=lm({chain:i&&`${i?.name} (id: ${i?.id})`,from:r?.address,to:f,value:typeof p<\\\"u\\\"&&`${u5(p)} ${i?.nativeCurrency?.symbol||\\\"ETH\\\"}`,data:s,gas:o,gasPrice:typeof a<\\\"u\\\"&&`${Oi(a)} gwei`,maxFeePerGas:typeof c<\\\"u\\\"&&`${Oi(c)} gwei`,maxPriorityFeePerGas:typeof l<\\\"u\\\"&&`${Oi(l)} gwei`,nonce:d});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\\\" \\\"]:[],\\\"Request Arguments:\\\",h].filter(Boolean),name:\\\"TransactionExecutionError\\\"}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}},d5=class extends W{constructor({blockHash:e,blockNumber:r,blockTag:n,hash:i,index:s}){let o=\\\"Transaction\\\";n&&s!==void 0&&(o=`Transaction at block time \\\"${n}\\\" at index \\\"${s}\\\"`),e&&s!==void 0&&(o=`Transaction at block hash \\\"${e}\\\" at index \\\"${s}\\\"`),r&&s!==void 0&&(o=`Transaction at block number \\\"${r}\\\" at index \\\"${s}\\\"`),i&&(o=`Transaction with hash \\\"${i}\\\"`),super(`${o} could not be found.`,{name:\\\"TransactionNotFoundError\\\"})}},f5=class extends W{constructor({hash:e}){super(`Transaction receipt with hash \\\"${e}\\\" could not be found. The Transaction may not be processed on a block yet.`,{name:\\\"TransactionReceiptNotFoundError\\\"})}},p5=class extends W{constructor({receipt:e}){super(`Transaction with hash \\\"${e.transactionHash}\\\" reverted.`,{metaMessages:['The receipt marked the transaction as \\\"reverted\\\". This could mean that the function on the contract you are trying to call threw an error.',\\\" \\\",\\\"You can attempt to extract the revert reason by:\\\",\\\"- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract\\\",\\\"- using the `call` Action with raw `data`\\\"],name:\\\"TransactionReceiptRevertedError\\\"}),Object.defineProperty(this,\\\"receipt\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}},MN=class extends W{constructor({hash:e}){super(`Timed out while waiting for transaction with hash \\\"${e}\\\" to be confirmed.`,{name:\\\"WaitForTransactionReceiptTimeoutError\\\"})}}});var kwe,Xb,DN=x(()=>{u();kwe=t=>t,Xb=t=>t});var h5,jg,um,m5,LN,ip,dm=x(()=>{u();en();_N();AN();em();Iwe();Ug();IN();Yb();Ki();st();CZ();wl();DN();h5=class extends W{constructor(e,{account:r,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:p,stateOverride:h}){let m=r?Ze(r):void 0,g=lm({from:m?.address,to:f,value:typeof p<\\\"u\\\"&&`${u5(p)} ${i?.nativeCurrency?.symbol||\\\"ETH\\\"}`,data:s,gas:o,gasPrice:typeof a<\\\"u\\\"&&`${Oi(a)} gwei`,maxFeePerGas:typeof c<\\\"u\\\"&&`${Oi(c)} gwei`,maxPriorityFeePerGas:typeof l<\\\"u\\\"&&`${Oi(l)} gwei`,nonce:d});h&&(g+=`\\n${Nwe(h)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\\\" \\\"]:[],\\\"Raw Call Arguments:\\\",g].filter(Boolean),name:\\\"CallExecutionError\\\"}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}},jg=class extends W{constructor(e,{abi:r,args:n,contractAddress:i,docsPath:s,functionName:o,sender:a}){let c=_c({abi:r,args:n,name:o}),l=c?EZ({abiItem:c,args:n,includeFunctionName:!1,includeName:!1}):void 0,d=c?js(c,{includeName:!0}):void 0,f=lm({address:i&&kwe(i),function:d,args:l&&l!==\\\"()\\\"&&`${[...Array(o?.length??0).keys()].map(()=>\\\" \\\").join(\\\"\\\")}${l}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function \\\"${o}\\\".`,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages,\\\" \\\"]:[],f&&\\\"Contract Call:\\\",f].filter(Boolean),name:\\\"ContractFunctionExecutionError\\\"}),Object.defineProperty(this,\\\"abi\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"args\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"contractAddress\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"formattedArgs\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"functionName\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"sender\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=n,this.cause=e,this.contractAddress=i,this.functionName=o,this.sender=a}},um=class extends W{constructor({abi:e,data:r,functionName:n,message:i,cause:s}){let o,a,c,l;if(r&&r!==\\\"0x\\\")try{a=l5({abi:e,data:r,cause:s});let{abiItem:f,errorName:p,args:h}=a;if(p===\\\"Error\\\")l=h[0];else if(p===\\\"Panic\\\"){let[m]=h;l=xwe[m]}else{let m=f?js(f,{includeName:!0}):void 0,g=f&&h?EZ({abiItem:f,args:h,includeFunctionName:!1,includeName:!1}):void 0;c=[m?`Error: ${m}`:\\\"\\\",g&&g!==\\\"()\\\"?`       ${[...Array(p?.length??0).keys()].map(()=>\\\" \\\").join(\\\"\\\")}${g}`:\\\"\\\"]}}catch(f){o=f}else i&&(l=i);let d;o instanceof JE&&(d=o.signature,c=[`Unable to decode signature \\\"${d}\\\" as it was not found on the provided ABI.`,\\\"Make sure you are using the correct ABI and that the error exists on it.\\\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${d}.`]),super(l&&l!==\\\"execution reverted\\\"||d?[`The contract function \\\"${n}\\\" reverted with the following ${d?\\\"signature\\\":\\\"reason\\\"}:`,l||d].join(`\\n`):`The contract function \\\"${n}\\\" reverted.`,{cause:o??s,metaMessages:c,name:\\\"ContractFunctionRevertedError\\\"}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"raw\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"reason\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"signature\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=r,this.reason=l,this.signature=d}},m5=class extends W{constructor({functionName:e,cause:r}){super(`The contract function \\\"${e}\\\" returned no data (\\\"0x\\\").`,{metaMessages:[\\\"This could be due to any of the following:\\\",`  - The contract does not have the function \\\"${e}\\\",`,\\\"  - The parameters passed to the contract function may be invalid, or\\\",\\\"  - The address is not a contract.\\\"],name:\\\"ContractFunctionZeroDataError\\\",cause:r})}},LN=class extends W{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory \\\"${e}\\\".`:\\\"\\\"}`,{metaMessages:[\\\"Please ensure:\\\",\\\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\\\",\\\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\\\"],name:\\\"CounterfactualDeploymentFailedError\\\"})}},ip=class extends W{constructor({data:e,message:r}){super(r||\\\"\\\",{name:\\\"RawContractError\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}});var vu,Hg,QS,ew=x(()=>{u();ko();st();DN();vu=class extends W{constructor({body:e,cause:r,details:n,headers:i,status:s,url:o}){super(\\\"HTTP request failed.\\\",{cause:r,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${Xb(o)}`,e&&`Request body: ${qt(e)}`].filter(Boolean),name:\\\"HttpRequestError\\\"}),Object.defineProperty(this,\\\"body\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"headers\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"status\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"url\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=s,this.url=o}},Hg=class extends W{constructor({body:e,error:r,url:n}){super(\\\"RPC Request failed.\\\",{cause:r,details:r.message,metaMessages:[`URL: ${Xb(n)}`,`Request body: ${qt(e)}`],name:\\\"RpcRequestError\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"url\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}},QS=class extends W{constructor({body:e,url:r}){super(\\\"The request took too long to respond.\\\",{details:\\\"The request timed out.\\\",metaMessages:[`URL: ${Xb(r)}`,`Request body: ${qt(e)}`],name:\\\"TimeoutError\\\"}),Object.defineProperty(this,\\\"url\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}});var Nut,Bo,Mo,tw,rw,nw,iw,sp,vl,sw,Ld,fm,pm,qg,ow,Cr,aw,cw,lw,uw,Do,hm,dw,fw,pw,hw,mw,mm,zg,JS,$g=x(()=>{u();st();ew();Nut=-1,Bo=class extends W{constructor(e,{code:r,docsPath:n,metaMessages:i,name:s,shortMessage:o}){super(o,{cause:e,docsPath:n,metaMessages:i||e?.metaMessages,name:s||\\\"RpcError\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof Hg?e.code:r??Nut}},Mo=class extends Bo{constructor(e,r){super(e,r),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},tw=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"ParseRpcError\\\",shortMessage:\\\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\\\"})}};Object.defineProperty(tw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});rw=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"InvalidRequestRpcError\\\",shortMessage:\\\"JSON is not a valid request object.\\\"})}};Object.defineProperty(rw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});nw=class t extends Bo{constructor(e,{method:r}={}){super(e,{code:t.code,name:\\\"MethodNotFoundRpcError\\\",shortMessage:`The method${r?` \\\"${r}\\\"`:\\\"\\\"} does not exist / is not available.`})}};Object.defineProperty(nw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});iw=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"InvalidParamsRpcError\\\",shortMessage:[\\\"Invalid parameters were provided to the RPC method.\\\",\\\"Double check you have provided the correct parameters.\\\"].join(`\\n`)})}};Object.defineProperty(iw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});sp=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"InternalRpcError\\\",shortMessage:\\\"An internal error was received.\\\"})}};Object.defineProperty(sp,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});vl=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"InvalidInputRpcError\\\",shortMessage:[\\\"Missing or invalid parameters.\\\",\\\"Double check you have provided the correct parameters.\\\"].join(`\\n`)})}};Object.defineProperty(vl,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});sw=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"ResourceNotFoundRpcError\\\",shortMessage:\\\"Requested resource not found.\\\"}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ResourceNotFoundRpcError\\\"})}};Object.defineProperty(sw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Ld=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"ResourceUnavailableRpcError\\\",shortMessage:\\\"Requested resource not available.\\\"})}};Object.defineProperty(Ld,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});fm=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"TransactionRejectedRpcError\\\",shortMessage:\\\"Transaction creation failed.\\\"})}};Object.defineProperty(fm,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});pm=class t extends Bo{constructor(e,{method:r}={}){super(e,{code:t.code,name:\\\"MethodNotSupportedRpcError\\\",shortMessage:`Method${r?` \\\"${r}\\\"`:\\\"\\\"} is not supported.`})}};Object.defineProperty(pm,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});qg=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"LimitExceededRpcError\\\",shortMessage:\\\"Request exceeds defined limit.\\\"})}};Object.defineProperty(qg,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});ow=class t extends Bo{constructor(e){super(e,{code:t.code,name:\\\"JsonRpcVersionUnsupportedError\\\",shortMessage:\\\"Version of JSON-RPC protocol is not supported.\\\"})}};Object.defineProperty(ow,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});Cr=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"UserRejectedRequestError\\\",shortMessage:\\\"User rejected the request.\\\"})}};Object.defineProperty(Cr,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4001});aw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"UnauthorizedProviderError\\\",shortMessage:\\\"The requested method and/or account has not been authorized by the user.\\\"})}};Object.defineProperty(aw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4100});cw=class t extends Mo{constructor(e,{method:r}={}){super(e,{code:t.code,name:\\\"UnsupportedProviderMethodError\\\",shortMessage:`The Provider does not support the requested method${r?` \\\" ${r}\\\"`:\\\"\\\"}.`})}};Object.defineProperty(cw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4200});lw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"ProviderDisconnectedError\\\",shortMessage:\\\"The Provider is disconnected from all chains.\\\"})}};Object.defineProperty(lw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4900});uw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"ChainDisconnectedError\\\",shortMessage:\\\"The Provider is not connected to the requested chain.\\\"})}};Object.defineProperty(uw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4901});Do=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"SwitchChainError\\\",shortMessage:\\\"An error occurred when attempting to switch chain.\\\"})}};Object.defineProperty(Do,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4902});hm=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"UnsupportedNonOptionalCapabilityError\\\",shortMessage:\\\"This Wallet does not support a capability that was not marked as optional.\\\"})}};Object.defineProperty(hm,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5700});dw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"UnsupportedChainIdError\\\",shortMessage:\\\"This Wallet does not support the requested chain ID.\\\"})}};Object.defineProperty(dw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5710});fw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"DuplicateIdError\\\",shortMessage:\\\"There is already a bundle submitted with this ID.\\\"})}};Object.defineProperty(fw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5720});pw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"UnknownBundleIdError\\\",shortMessage:\\\"This bundle id is unknown / has not been submitted\\\"})}};Object.defineProperty(pw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5730});hw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"BundleTooLargeError\\\",shortMessage:\\\"The call bundle is too large for the Wallet to process.\\\"})}};Object.defineProperty(hw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5740});mw=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"AtomicReadyWalletRejectedUpgradeError\\\",shortMessage:\\\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\\\"})}};Object.defineProperty(mw,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5750});mm=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"AtomicityNotSupportedError\\\",shortMessage:\\\"The wallet does not support atomic execution but the request requires it.\\\"})}};Object.defineProperty(mm,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:5760});zg=class t extends Mo{constructor(e){super(e,{code:t.code,name:\\\"WalletConnectSessionSettlementError\\\",shortMessage:\\\"WalletConnect session settlement failed.\\\"})}};Object.defineProperty(zg,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});JS=class extends Bo{constructor(e){super(e,{name:\\\"UnknownRpcError\\\",shortMessage:\\\"An unknown RPC error occurred.\\\"})}}});function xl(t,{abi:e,address:r,args:n,docsPath:i,functionName:s,sender:o}){let a=t instanceof ip?t:t instanceof W?t.walk(m=>\\\"data\\\"in m)||t.walk():{},{code:c,data:l,details:d,message:f,shortMessage:p}=a,h=t instanceof yu?new m5({functionName:s,cause:t}):[kut,sp.code].includes(c)&&(l||d||f||p)||c===vl.code&&d===\\\"execution reverted\\\"&&l?new um({abi:e,data:typeof l==\\\"object\\\"?l.data:l,functionName:s,message:a instanceof Hg?d:p??f,cause:t}):t;return new jg(h,{abi:e,args:n,contractAddress:r,docsPath:i,functionName:s,sender:o})}var kut,gw=x(()=>{u();Ki();st();dm();ew();$g();kut=3});function Bwe(t){let e=Ft(`0x${t.substring(4)}`).substring(26);return Xf(`0x${e}`)}var Mwe=x(()=>{u();Dd();yl()});function But(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function Dwe(t,e,r){return t&e^~t&r}function Lwe(t,e,r){return t&e^t&r^e&r}var YS,gm,Lo,Uo,Uwe=x(()=>{u();Md();YS=class extends Ng{constructor(e,r,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=mN(this.buffer)}update(e){om(this),e=Jb(e),Fa(e);let{view:r,buffer:n,blockLen:i}=this,s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let c=mN(e);for(;i<=s-o;o+=i)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){om(this),hN(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:s}=this,{pos:o}=this;r[o++]=128,bu(this.buffer.subarray(o)),this.padOffset>i-o&&(this.process(n,0),o=0);for(let f=o;f<i;f++)r[f]=0;But(n,i-8,BigInt(this.length*8),s),this.process(n,0);let a=mN(e),c=this.outputLen;if(c%4)throw new Error(\\\"_sha2: outputLen should be aligned to 32bit\\\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\\\"_sha2: outputLen bigger than state\\\");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],s)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.destroyed=o,e.finished=s,e.length=i,e.pos=a,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},gm=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Lo=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Uo=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var Mut,Vg,UN,Fwe,Dut,Lut,Wg,Gg,FN,SZ,Ud,jwe,Hwe,XS=x(()=>{u();Uwe();lZ();Md();Mut=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Vg=new Uint32Array(64),UN=class extends YS{constructor(e=32){super(64,e,8,!1),this.A=gm[0]|0,this.B=gm[1]|0,this.C=gm[2]|0,this.D=gm[3]|0,this.E=gm[4]|0,this.F=gm[5]|0,this.G=gm[6]|0,this.H=gm[7]|0}get(){let{A:e,B:r,C:n,D:i,E:s,F:o,G:a,H:c}=this;return[e,r,n,i,s,o,a,c]}set(e,r,n,i,s,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=s|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Vg[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let p=Vg[f-15],h=Vg[f-2],m=Bd(p,7)^Bd(p,18)^p>>>3,g=Bd(h,17)^Bd(h,19)^h>>>10;Vg[f]=g+Vg[f-7]+m+Vg[f-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:c,G:l,H:d}=this;for(let f=0;f<64;f++){let p=Bd(a,6)^Bd(a,11)^Bd(a,25),h=d+p+Dwe(a,c,l)+Mut[f]+Vg[f]|0,g=(Bd(n,2)^Bd(n,13)^Bd(n,22))+Lwe(n,i,s)|0;d=l,l=c,c=a,a=o+h|0,o=s,s=i,i=n,n=h+g|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,i,s,o,a,c,l,d)}roundClean(){bu(Vg)}destroy(){this.set(0,0,0,0,0,0,0,0),bu(this.buffer)}},Fwe=fN([\\\"0x428a2f98d728ae22\\\",\\\"0x7137449123ef65cd\\\",\\\"0xb5c0fbcfec4d3b2f\\\",\\\"0xe9b5dba58189dbbc\\\",\\\"0x3956c25bf348b538\\\",\\\"0x59f111f1b605d019\\\",\\\"0x923f82a4af194f9b\\\",\\\"0xab1c5ed5da6d8118\\\",\\\"0xd807aa98a3030242\\\",\\\"0x12835b0145706fbe\\\",\\\"0x243185be4ee4b28c\\\",\\\"0x550c7dc3d5ffb4e2\\\",\\\"0x72be5d74f27b896f\\\",\\\"0x80deb1fe3b1696b1\\\",\\\"0x9bdc06a725c71235\\\",\\\"0xc19bf174cf692694\\\",\\\"0xe49b69c19ef14ad2\\\",\\\"0xefbe4786384f25e3\\\",\\\"0x0fc19dc68b8cd5b5\\\",\\\"0x240ca1cc77ac9c65\\\",\\\"0x2de92c6f592b0275\\\",\\\"0x4a7484aa6ea6e483\\\",\\\"0x5cb0a9dcbd41fbd4\\\",\\\"0x76f988da831153b5\\\",\\\"0x983e5152ee66dfab\\\",\\\"0xa831c66d2db43210\\\",\\\"0xb00327c898fb213f\\\",\\\"0xbf597fc7beef0ee4\\\",\\\"0xc6e00bf33da88fc2\\\",\\\"0xd5a79147930aa725\\\",\\\"0x06ca6351e003826f\\\",\\\"0x142929670a0e6e70\\\",\\\"0x27b70a8546d22ffc\\\",\\\"0x2e1b21385c26c926\\\",\\\"0x4d2c6dfc5ac42aed\\\",\\\"0x53380d139d95b3df\\\",\\\"0x650a73548baf63de\\\",\\\"0x766a0abb3c77b2a8\\\",\\\"0x81c2c92e47edaee6\\\",\\\"0x92722c851482353b\\\",\\\"0xa2bfe8a14cf10364\\\",\\\"0xa81a664bbc423001\\\",\\\"0xc24b8b70d0f89791\\\",\\\"0xc76c51a30654be30\\\",\\\"0xd192e819d6ef5218\\\",\\\"0xd69906245565a910\\\",\\\"0xf40e35855771202a\\\",\\\"0x106aa07032bbd1b8\\\",\\\"0x19a4c116b8d2d0c8\\\",\\\"0x1e376c085141ab53\\\",\\\"0x2748774cdf8eeb99\\\",\\\"0x34b0bcb5e19b48a8\\\",\\\"0x391c0cb3c5c95a63\\\",\\\"0x4ed8aa4ae3418acb\\\",\\\"0x5b9cca4f7763e373\\\",\\\"0x682e6ff3d6b2b8a3\\\",\\\"0x748f82ee5defb2fc\\\",\\\"0x78a5636f43172f60\\\",\\\"0x84c87814a1f0ab72\\\",\\\"0x8cc702081a6439ec\\\",\\\"0x90befffa23631e28\\\",\\\"0xa4506cebde82bde9\\\",\\\"0xbef9a3f7b2c67915\\\",\\\"0xc67178f2e372532b\\\",\\\"0xca273eceea26619c\\\",\\\"0xd186b8c721c0c207\\\",\\\"0xeada7dd6cde0eb1e\\\",\\\"0xf57d4f7fee6ed178\\\",\\\"0x06f067aa72176fba\\\",\\\"0x0a637dc5a2c898a6\\\",\\\"0x113f9804bef90dae\\\",\\\"0x1b710b35131c471b\\\",\\\"0x28db77f523047d84\\\",\\\"0x32caab7b40c72493\\\",\\\"0x3c9ebe0a15c9bebc\\\",\\\"0x431d67c49c100d4c\\\",\\\"0x4cc5d4becb3e42b6\\\",\\\"0x597f299cfc657e2a\\\",\\\"0x5fcb6fab3ad6faec\\\",\\\"0x6c44198c4a475817\\\"].map(t=>BigInt(t))),Dut=Fwe[0],Lut=Fwe[1],Wg=new Uint32Array(80),Gg=new Uint32Array(80),FN=class extends YS{constructor(e=64){super(128,e,16,!1),this.Ah=Uo[0]|0,this.Al=Uo[1]|0,this.Bh=Uo[2]|0,this.Bl=Uo[3]|0,this.Ch=Uo[4]|0,this.Cl=Uo[5]|0,this.Dh=Uo[6]|0,this.Dl=Uo[7]|0,this.Eh=Uo[8]|0,this.El=Uo[9]|0,this.Fh=Uo[10]|0,this.Fl=Uo[11]|0,this.Gh=Uo[12]|0,this.Gl=Uo[13]|0,this.Hh=Uo[14]|0,this.Hl=Uo[15]|0}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:s,Cl:o,Dh:a,Dl:c,Eh:l,El:d,Fh:f,Fl:p,Gh:h,Gl:m,Hh:g,Hl:w}=this;return[e,r,n,i,s,o,a,c,l,d,f,p,h,m,g,w]}set(e,r,n,i,s,o,a,c,l,d,f,p,h,m,g,w){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=s|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=f|0,this.Fl=p|0,this.Gh=h|0,this.Gl=m|0,this.Hh=g|0,this.Hl=w|0}process(e,r){for(let _=0;_<16;_++,r+=4)Wg[_]=e.getUint32(r),Gg[_]=e.getUint32(r+=4);for(let _=16;_<80;_++){let S=Wg[_-15]|0,T=Gg[_-15]|0,N=Kb(S,T,1)^Kb(S,T,8)^aZ(S,T,7),O=Zb(S,T,1)^Zb(S,T,8)^cZ(S,T,7),L=Wg[_-2]|0,B=Gg[_-2]|0,H=Kb(L,B,19)^HS(L,B,61)^aZ(L,B,6),M=Zb(L,B,19)^qS(L,B,61)^cZ(L,B,6),F=Wbe(O,M,Gg[_-7],Gg[_-16]),R=Gbe(F,N,H,Wg[_-7],Wg[_-16]);Wg[_]=R|0,Gg[_]=F|0}let{Ah:n,Al:i,Bh:s,Bl:o,Ch:a,Cl:c,Dh:l,Dl:d,Eh:f,El:p,Fh:h,Fl:m,Gh:g,Gl:w,Hh:v,Hl:b}=this;for(let _=0;_<80;_++){let S=Kb(f,p,14)^Kb(f,p,18)^HS(f,p,41),T=Zb(f,p,14)^Zb(f,p,18)^qS(f,p,41),N=f&h^~f&g,O=p&m^~p&w,L=Kbe(b,T,O,Lut[_],Gg[_]),B=Zbe(L,v,S,N,Dut[_],Wg[_]),H=L|0,M=Kb(n,i,28)^HS(n,i,34)^HS(n,i,39),F=Zb(n,i,28)^qS(n,i,34)^qS(n,i,39),R=n&s^n&a^s&a,y=i&o^i&c^o&c;v=g|0,b=w|0,g=h|0,w=m|0,h=f|0,m=p|0,{h:f,l:p}=Jf(l|0,d|0,B|0,H|0),l=a|0,d=c|0,a=s|0,c=o|0,s=n|0,o=i|0;let E=$be(H,F,y);n=Vbe(E,B,M,R),i=E|0}({h:n,l:i}=Jf(this.Ah|0,this.Al|0,n|0,i|0)),{h:s,l:o}=Jf(this.Bh|0,this.Bl|0,s|0,o|0),{h:a,l:c}=Jf(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:d}=Jf(this.Dh|0,this.Dl|0,l|0,d|0),{h:f,l:p}=Jf(this.Eh|0,this.El|0,f|0,p|0),{h,l:m}=Jf(this.Fh|0,this.Fl|0,h|0,m|0),{h:g,l:w}=Jf(this.Gh|0,this.Gl|0,g|0,w|0),{h:v,l:b}=Jf(this.Hh|0,this.Hl|0,v|0,b|0),this.set(n,i,s,o,a,c,l,d,f,p,h,m,g,w,v,b)}roundClean(){bu(Wg,Gg)}destroy(){bu(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},SZ=class extends FN{constructor(){super(48),this.Ah=Lo[0]|0,this.Al=Lo[1]|0,this.Bh=Lo[2]|0,this.Bl=Lo[3]|0,this.Ch=Lo[4]|0,this.Cl=Lo[5]|0,this.Dh=Lo[6]|0,this.Dl=Lo[7]|0,this.Eh=Lo[8]|0,this.El=Lo[9]|0,this.Fh=Lo[10]|0,this.Fl=Lo[11]|0,this.Gh=Lo[12]|0,this.Gl=Lo[13]|0,this.Hh=Lo[14]|0,this.Hl=Lo[15]|0}},Ud=t5(()=>new UN),jwe=t5(()=>new FN),Hwe=t5(()=>new SZ)});var jN,eA,AZ=x(()=>{u();Md();jN=class extends Ng{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,pN(e);let n=Jb(r);if(this.iHash=e.create(),typeof this.iHash.update!=\\\"function\\\")throw new Error(\\\"Expected instance of class which extends utils.Hash\\\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(n.length>i?e.create().update(n).digest():n);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),bu(s)}update(e){return om(this),this.iHash.update(e),this}digestInto(e){om(this),Fa(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:n,finished:i,destroyed:s,blockLen:o,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=s,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},eA=(t,e,r)=>new jN(t,e).update(r).digest();eA.create=(t,e)=>new jN(t,e)});function g5(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function bm(t){if(!g5(t))throw new Error(\\\"Uint8Array expected\\\")}function y5(t,e){if(typeof e!=\\\"boolean\\\")throw new Error(t+\\\" boolean expected, got \\\"+e)}function tA(t){let e=t.toString(16);return e.length&1?\\\"0\\\"+e:e}function $we(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);return t===\\\"\\\"?PZ:BigInt(\\\"0x\\\"+t)}function b5(t){if(bm(t),Vwe)return t.toHex();let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=Uut[t[r]];return e}function qwe(t){if(t>=ym._0&&t<=ym._9)return t-ym._0;if(t>=ym.A&&t<=ym.F)return t-(ym.A-10);if(t>=ym.a&&t<=ym.f)return t-(ym.a-10)}function rA(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);if(Vwe)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=qwe(t.charCodeAt(s)),a=qwe(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}function Sc(t){return $we(b5(t))}function OZ(t){return bm(t),$we(b5(Uint8Array.from(t).reverse()))}function op(t,e){return rA(t.toString(16).padStart(e*2,\\\"0\\\"))}function NZ(t,e){return op(t,e).reverse()}function vs(t,e,r){let n;if(typeof e==\\\"string\\\")try{n=rA(e)}catch(s){throw new Error(t+\\\" must be hex string or Uint8Array, cause: \\\"+s)}else if(g5(e))n=Uint8Array.from(e);else throw new Error(t+\\\" must be hex string or Uint8Array\\\");let i=n.length;if(typeof r==\\\"number\\\"&&i!==r)throw new Error(t+\\\" of length \\\"+r+\\\" expected, got \\\"+i);return n}function ja(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];bm(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function HN(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function yw(t,e,r){return TZ(t)&&TZ(e)&&TZ(r)&&e<=t&&t<r}function wm(t,e,r,n){if(!yw(e,r,n))throw new Error(\\\"expected valid \\\"+t+\\\": \\\"+r+\\\" <= n < \\\"+n+\\\", got \\\"+e)}function Wwe(t){let e;for(e=0;t>PZ;t>>=RZ,e+=1);return e}function Gwe(t,e,r){if(typeof t!=\\\"number\\\"||t<2)throw new Error(\\\"hashLen must be a number\\\");if(typeof e!=\\\"number\\\"||e<2)throw new Error(\\\"qByteLen must be a number\\\");if(typeof r!=\\\"function\\\")throw new Error(\\\"hmacFn must be a function\\\");let n=IZ(t),i=IZ(t),s=0,o=()=>{n.fill(1),i.fill(0),s=0},a=(...f)=>r(i,n,...f),c=(f=IZ(0))=>{i=a(zwe([0]),f),n=a(),f.length!==0&&(i=a(zwe([1]),f),n=a())},l=()=>{if(s++>=1e3)throw new Error(\\\"drbg: tried 1000 values\\\");let f=0,p=[];for(;f<e;){n=a();let h=n.slice();p.push(h),f+=n.length}return ja(...p)};return(f,p)=>{o(),c(f);let h;for(;!(h=p(l()));)c();return o(),h}}function vm(t,e,r={}){let n=(i,s,o)=>{let a=Fut[s];if(typeof a!=\\\"function\\\")throw new Error(\\\"invalid validator function\\\");let c=t[i];if(!(o&&c===void 0)&&!a(c,t))throw new Error(\\\"param \\\"+String(i)+\\\" is invalid. Expected \\\"+s+\\\", got \\\"+c)};for(let[i,s]of Object.entries(e))n(i,s,!1);for(let[i,s]of Object.entries(r))n(i,s,!0);return t}function kZ(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(i!==void 0)return i;let s=t(r,...n);return e.set(r,s),s}}var PZ,RZ,Vwe,Uut,ym,TZ,bw,IZ,zwe,Fut,w5=x(()=>{u();PZ=BigInt(0),RZ=BigInt(1);Vwe=typeof Uint8Array.from([]).toHex==\\\"function\\\"&&typeof Uint8Array.fromHex==\\\"function\\\",Uut=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));ym={_0:48,_9:57,A:65,F:70,a:97,f:102};TZ=t=>typeof t==\\\"bigint\\\"&&PZ<=t;bw=t=>(RZ<<BigInt(t))-RZ,IZ=t=>new Uint8Array(t),zwe=t=>Uint8Array.from(t);Fut={bigint:t=>typeof t==\\\"bigint\\\",function:t=>typeof t==\\\"function\\\",boolean:t=>typeof t==\\\"boolean\\\",string:t=>typeof t==\\\"string\\\",stringOrUint8Array:t=>typeof t==\\\"string\\\"||g5(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t==\\\"function\\\"&&Number.isSafeInteger(t.outputLen)}});function cs(t,e){let r=t%e;return r>=Ha?r:e+r}function El(t,e,r){let n=t;for(;e-- >Ha;)n*=n,n%=r;return n}function qN(t,e){if(t===Ha)throw new Error(\\\"invert: expected non-zero number\\\");if(e<=Ha)throw new Error(\\\"invert: expected positive modulus, got \\\"+e);let r=cs(t,e),n=e,i=Ha,s=pa,o=pa,a=Ha;for(;r!==Ha;){let l=n/r,d=n%r,f=i-o*l,p=s-a*l;n=r,r=d,i=o,s=a,o=f,a=p}if(n!==pa)throw new Error(\\\"invert: does not exist\\\");return cs(i,e)}function Ywe(t,e){let r=(t.ORDER+pa)/Zwe,n=t.pow(e,r);if(!t.eql(t.sqr(n),e))throw new Error(\\\"Cannot find square root\\\");return n}function Hut(t,e){let r=(t.ORDER-Qwe)/Jwe,n=t.mul(e,ww),i=t.pow(n,r),s=t.mul(e,i),o=t.mul(t.mul(s,ww),i),a=t.mul(s,t.sub(o,t.ONE));if(!t.eql(t.sqr(a),e))throw new Error(\\\"Cannot find square root\\\");return a}function qut(t){if(t<BigInt(3))throw new Error(\\\"sqrt is not defined for small field\\\");let e=t-pa,r=0;for(;e%ww===Ha;)e/=ww,r++;let n=ww,i=nA(t);for(;Kwe(i,n)===1;)if(n++>1e3)throw new Error(\\\"Cannot find square root: probably non-prime P\\\");if(r===1)return Ywe;let s=i.pow(n,e),o=(e+pa)/ww;return function(c,l){if(c.is0(l))return l;if(Kwe(c,l)!==1)throw new Error(\\\"Cannot find square root\\\");let d=r,f=c.mul(c.ONE,s),p=c.pow(l,e),h=c.pow(l,o);for(;!c.eql(p,c.ONE);){if(c.is0(p))return c.ZERO;let m=1,g=c.sqr(p);for(;!c.eql(g,c.ONE);)if(m++,g=c.sqr(g),m===d)throw new Error(\\\"Cannot find square root\\\");let w=pa<<BigInt(d-m-1),v=c.pow(f,w);d=m,f=c.sqr(v),p=c.mul(p,f),h=c.mul(h,v)}return h}}function zut(t){return t%Zwe===jut?Ywe:t%Jwe===Qwe?Hut:qut(t)}function zN(t){let e={ORDER:\\\"bigint\\\",MASK:\\\"bigint\\\",BYTES:\\\"isSafeInteger\\\",BITS:\\\"isSafeInteger\\\"},r=$ut.reduce((n,i)=>(n[i]=\\\"function\\\",n),e);return vm(t,r)}function Vut(t,e,r){if(r<Ha)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r===Ha)return t.ONE;if(r===pa)return e;let n=t.ONE,i=e;for(;r>Ha;)r&pa&&(n=t.mul(n,i)),i=t.sqr(i),r>>=pa;return n}function v5(t,e,r=!1){let n=new Array(e.length).fill(r?t.ZERO:void 0),i=e.reduce((o,a,c)=>t.is0(a)?o:(n[c]=o,t.mul(o,a)),t.ONE),s=t.inv(i);return e.reduceRight((o,a,c)=>t.is0(a)?o:(n[c]=t.mul(o,n[c]),t.mul(o,a)),s),n}function Kwe(t,e){let r=(t.ORDER-pa)/ww,n=t.pow(e,r),i=t.eql(n,t.ONE),s=t.eql(n,t.ZERO),o=t.eql(n,t.neg(t.ONE));if(!i&&!s&&!o)throw new Error(\\\"invalid Legendre symbol result\\\");return i?1:s?0:-1}function BZ(t,e){e!==void 0&&kd(e);let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function nA(t,e,r=!1,n={}){if(t<=Ha)throw new Error(\\\"invalid field: expected ORDER > 0, got \\\"+t);let{nBitLength:i,nByteLength:s}=BZ(t,e);if(s>2048)throw new Error(\\\"invalid field: expected ORDER of <= 2048 bytes\\\");let o,a=Object.freeze({ORDER:t,isLE:r,BITS:i,BYTES:s,MASK:bw(i),ZERO:Ha,ONE:pa,create:c=>cs(c,t),isValid:c=>{if(typeof c!=\\\"bigint\\\")throw new Error(\\\"invalid field element: expected bigint, got \\\"+typeof c);return Ha<=c&&c<t},is0:c=>c===Ha,isOdd:c=>(c&pa)===pa,neg:c=>cs(-c,t),eql:(c,l)=>c===l,sqr:c=>cs(c*c,t),add:(c,l)=>cs(c+l,t),sub:(c,l)=>cs(c-l,t),mul:(c,l)=>cs(c*l,t),pow:(c,l)=>Vut(a,c,l),div:(c,l)=>cs(c*qN(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>qN(c,t),sqrt:n.sqrt||(c=>(o||(o=zut(t)),o(a,c))),toBytes:c=>r?NZ(c,s):op(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(\\\"Field.fromBytes: expected \\\"+s+\\\" bytes, got \\\"+c.length);return r?OZ(c):Sc(c)},invertBatch:c=>v5(a,c),cmov:(c,l,d)=>d?l:c});return Object.freeze(a)}function Xwe(t){if(typeof t!=\\\"bigint\\\")throw new Error(\\\"field order must be bigint\\\");let e=t.toString(2).length;return Math.ceil(e/8)}function MZ(t){let e=Xwe(t);return e+Math.ceil(e/2)}function eve(t,e,r=!1){let n=t.length,i=Xwe(e),s=MZ(e);if(n<16||n<s||n>1024)throw new Error(\\\"expected \\\"+s+\\\"-1024 bytes of input, got \\\"+n);let o=r?OZ(t):Sc(t),a=cs(o,e-pa)+pa;return r?NZ(a,i):op(a,i)}var Ha,pa,ww,jut,Zwe,Qwe,Jwe,$ut,iA=x(()=>{u();Md();w5();Ha=BigInt(0),pa=BigInt(1),ww=BigInt(2),jut=BigInt(3),Zwe=BigInt(4),Qwe=BigInt(5),Jwe=BigInt(8);$ut=[\\\"create\\\",\\\"isValid\\\",\\\"is0\\\",\\\"neg\\\",\\\"inv\\\",\\\"sqrt\\\",\\\"sqr\\\",\\\"eql\\\",\\\"add\\\",\\\"sub\\\",\\\"mul\\\",\\\"pow\\\",\\\"div\\\",\\\"addN\\\",\\\"subN\\\",\\\"mulN\\\",\\\"sqrN\\\"]});function DZ(t,e){let r=e.negate();return t?r:e}function nve(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\\\"invalid window size, expected [1..\\\"+e+\\\"], got W=\\\"+t)}function LZ(t,e){nve(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1),i=2**t,s=bw(t),o=BigInt(t);return{windows:r,windowSize:n,mask:s,maxNumber:i,shiftBy:o}}function rve(t,e,r){let{windowSize:n,mask:i,maxNumber:s,shiftBy:o}=r,a=Number(t&i),c=t>>o;a>n&&(a-=s,c+=jZ);let l=e*n,d=l+Math.abs(a)-1,f=a===0,p=a<0,h=e%2!==0;return{nextN:c,offset:d,isZero:f,isNeg:p,isNegF:h,offsetF:l}}function Wut(t,e){if(!Array.isArray(t))throw new Error(\\\"array expected\\\");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error(\\\"invalid point at index \\\"+n)})}function Gut(t,e){if(!Array.isArray(t))throw new Error(\\\"array of scalars expected\\\");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error(\\\"invalid scalar at index \\\"+n)})}function FZ(t){return ive.get(t)||1}function sve(t,e){return{constTimeNegate:DZ,hasPrecomputes(r){return FZ(r)!==1},unsafeLadder(r,n,i=t.ZERO){let s=r;for(;n>tve;)n&jZ&&(i=i.add(s)),s=s.double(),n>>=jZ;return i},precomputeWindow(r,n){let{windows:i,windowSize:s}=LZ(n,e),o=[],a=r,c=a;for(let l=0;l<i;l++){c=a,o.push(c);for(let d=1;d<s;d++)c=c.add(a),o.push(c);a=c.double()}return o},wNAF(r,n,i){let s=t.ZERO,o=t.BASE,a=LZ(r,e);for(let c=0;c<a.windows;c++){let{nextN:l,offset:d,isZero:f,isNeg:p,isNegF:h,offsetF:m}=rve(i,c,a);i=l,f?o=o.add(DZ(h,n[m])):s=s.add(DZ(p,n[d]))}return{p:s,f:o}},wNAFUnsafe(r,n,i,s=t.ZERO){let o=LZ(r,e);for(let a=0;a<o.windows&&i!==tve;a++){let{nextN:c,offset:l,isZero:d,isNeg:f}=rve(i,a,o);if(i=c,!d){let p=n[l];s=s.add(f?p.negate():p)}}return s},getPrecomputes(r,n,i){let s=UZ.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&UZ.set(n,i(s))),s},wNAFCached(r,n,i){let s=FZ(r);return this.wNAF(s,this.getPrecomputes(s,r,i),n)},wNAFCachedUnsafe(r,n,i,s){let o=FZ(r);return o===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(o,this.getPrecomputes(o,r,i),n,s)},setWindowSize(r,n){nve(n,e),ive.set(r,n),UZ.delete(r)}}}function ove(t,e,r,n){Wut(r,t),Gut(n,e);let i=r.length,s=n.length;if(i!==s)throw new Error(\\\"arrays of points and scalars must have equal length\\\");let o=t.ZERO,a=Wwe(BigInt(i)),c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);let l=bw(c),d=new Array(Number(l)+1).fill(o),f=Math.floor((e.BITS-1)/c)*c,p=o;for(let h=f;h>=0;h-=c){d.fill(o);for(let g=0;g<s;g++){let w=n[g],v=Number(w>>BigInt(h)&l);d[v]=d[v].add(r[g])}let m=o;for(let g=d.length-1,w=o;g>0;g--)w=w.add(d[g]),m=m.add(w);if(p=p.add(m),h!==0)for(let g=0;g<c;g++)p=p.double()}return p}function HZ(t){return zN(t.Fp),vm(t,{n:\\\"bigint\\\",h:\\\"bigint\\\",Gx:\\\"field\\\",Gy:\\\"field\\\"},{nBitLength:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\"}),Object.freeze({...BZ(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}var tve,jZ,UZ,ive,ave=x(()=>{u();iA();w5();tve=BigInt(0),jZ=BigInt(1);UZ=new WeakMap,ive=new WeakMap});function cve(t){t.lowS!==void 0&&y5(\\\"lowS\\\",t.lowS),t.prehash!==void 0&&y5(\\\"prehash\\\",t.prehash)}function Kut(t){let e=HZ(t);vm(e,{a:\\\"field\\\",b:\\\"field\\\"},{allowInfinityPoint:\\\"boolean\\\",allowedPrivateKeyLengths:\\\"array\\\",clearCofactor:\\\"function\\\",fromBytes:\\\"function\\\",isTorsionFree:\\\"function\\\",toBytes:\\\"function\\\",wrapPrivateKey:\\\"boolean\\\"});let{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw new Error(\\\"invalid endo: CURVE.a must be 0\\\");if(typeof r!=\\\"object\\\"||typeof r.beta!=\\\"bigint\\\"||typeof r.splitScalar!=\\\"function\\\")throw new Error('invalid endo: expected \\\"beta\\\": bigint and \\\"splitScalar\\\": function')}return Object.freeze({...e})}function qZ(t,e){return b5(op(t,e))}function Zut(t){let e=Kut(t),{Fp:r}=e,n=nA(e.n,e.nBitLength),i=e.toBytes||((_,S,T)=>{let N=S.toAffine();return ja(Uint8Array.from([4]),r.toBytes(N.x),r.toBytes(N.y))}),s=e.fromBytes||(_=>{let S=_.subarray(1),T=r.fromBytes(S.subarray(0,r.BYTES)),N=r.fromBytes(S.subarray(r.BYTES,2*r.BYTES));return{x:T,y:N}});function o(_){let{a:S,b:T}=e,N=r.sqr(_),O=r.mul(N,_);return r.add(r.add(O,r.mul(_,S)),T)}function a(_,S){let T=r.sqr(S),N=o(_);return r.eql(T,N)}if(!a(e.Gx,e.Gy))throw new Error(\\\"bad curve params: generator point\\\");let c=r.mul(r.pow(e.a,sA),$Z),l=r.mul(r.sqr(e.b),BigInt(27));if(r.is0(r.add(c,l)))throw new Error(\\\"bad curve params: a or b\\\");function d(_){return yw(_,tn,e.n)}function f(_){let{allowedPrivateKeyLengths:S,nByteLength:T,wrapPrivateKey:N,n:O}=e;if(S&&typeof _!=\\\"bigint\\\"){if(g5(_)&&(_=b5(_)),typeof _!=\\\"string\\\"||!S.includes(_.length))throw new Error(\\\"invalid private key\\\");_=_.padStart(T*2,\\\"0\\\")}let L;try{L=typeof _==\\\"bigint\\\"?_:Sc(vs(\\\"private key\\\",_,T))}catch{throw new Error(\\\"invalid private key, expected hex or \\\"+T+\\\" bytes, got \\\"+typeof _)}return N&&(L=cs(L,O)),wm(\\\"private key\\\",L,tn,O),L}function p(_){if(!(_ instanceof g))throw new Error(\\\"ProjectivePoint expected\\\")}let h=kZ((_,S)=>{let{px:T,py:N,pz:O}=_;if(r.eql(O,r.ONE))return{x:T,y:N};let L=_.is0();S==null&&(S=L?r.ONE:r.inv(O));let B=r.mul(T,S),H=r.mul(N,S),M=r.mul(O,S);if(L)return{x:r.ZERO,y:r.ZERO};if(!r.eql(M,r.ONE))throw new Error(\\\"invZ was invalid\\\");return{x:B,y:H}}),m=kZ(_=>{if(_.is0()){if(e.allowInfinityPoint&&!r.is0(_.py))return;throw new Error(\\\"bad point: ZERO\\\")}let{x:S,y:T}=_.toAffine();if(!r.isValid(S)||!r.isValid(T))throw new Error(\\\"bad point: x or y not FE\\\");if(!a(S,T))throw new Error(\\\"bad point: equation left != right\\\");if(!_.isTorsionFree())throw new Error(\\\"bad point: not in prime-order subgroup\\\");return!0});class g{constructor(S,T,N){if(S==null||!r.isValid(S))throw new Error(\\\"x required\\\");if(T==null||!r.isValid(T)||r.is0(T))throw new Error(\\\"y required\\\");if(N==null||!r.isValid(N))throw new Error(\\\"z required\\\");this.px=S,this.py=T,this.pz=N,Object.freeze(this)}static fromAffine(S){let{x:T,y:N}=S||{};if(!S||!r.isValid(T)||!r.isValid(N))throw new Error(\\\"invalid affine point\\\");if(S instanceof g)throw new Error(\\\"projective point not allowed\\\");let O=L=>r.eql(L,r.ZERO);return O(T)&&O(N)?g.ZERO:new g(T,N,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(S){let T=v5(r,S.map(N=>N.pz));return S.map((N,O)=>N.toAffine(T[O])).map(g.fromAffine)}static fromHex(S){let T=g.fromAffine(s(vs(\\\"pointHex\\\",S)));return T.assertValidity(),T}static fromPrivateKey(S){return g.BASE.multiply(f(S))}static msm(S,T){return ove(g,n,S,T)}_setWindowSize(S){b.setWindowSize(this,S)}assertValidity(){m(this)}hasEvenY(){let{y:S}=this.toAffine();if(r.isOdd)return!r.isOdd(S);throw new Error(\\\"Field doesn't support isOdd\\\")}equals(S){p(S);let{px:T,py:N,pz:O}=this,{px:L,py:B,pz:H}=S,M=r.eql(r.mul(T,H),r.mul(L,O)),F=r.eql(r.mul(N,H),r.mul(B,O));return M&&F}negate(){return new g(this.px,r.neg(this.py),this.pz)}double(){let{a:S,b:T}=e,N=r.mul(T,sA),{px:O,py:L,pz:B}=this,H=r.ZERO,M=r.ZERO,F=r.ZERO,R=r.mul(O,O),y=r.mul(L,L),E=r.mul(B,B),C=r.mul(O,L);return C=r.add(C,C),F=r.mul(O,B),F=r.add(F,F),H=r.mul(S,F),M=r.mul(N,E),M=r.add(H,M),H=r.sub(y,M),M=r.add(y,M),M=r.mul(H,M),H=r.mul(C,H),F=r.mul(N,F),E=r.mul(S,E),C=r.sub(R,E),C=r.mul(S,C),C=r.add(C,F),F=r.add(R,R),R=r.add(F,R),R=r.add(R,E),R=r.mul(R,C),M=r.add(M,R),E=r.mul(L,B),E=r.add(E,E),R=r.mul(E,C),H=r.sub(H,R),F=r.mul(E,y),F=r.add(F,F),F=r.add(F,F),new g(H,M,F)}add(S){p(S);let{px:T,py:N,pz:O}=this,{px:L,py:B,pz:H}=S,M=r.ZERO,F=r.ZERO,R=r.ZERO,y=e.a,E=r.mul(e.b,sA),C=r.mul(T,L),I=r.mul(N,B),P=r.mul(O,H),k=r.add(T,N),U=r.add(L,B);k=r.mul(k,U),U=r.add(C,I),k=r.sub(k,U),U=r.add(T,O);let D=r.add(L,H);return U=r.mul(U,D),D=r.add(C,P),U=r.sub(U,D),D=r.add(N,O),M=r.add(B,H),D=r.mul(D,M),M=r.add(I,P),D=r.sub(D,M),R=r.mul(y,U),M=r.mul(E,P),R=r.add(M,R),M=r.sub(I,R),R=r.add(I,R),F=r.mul(M,R),I=r.add(C,C),I=r.add(I,C),P=r.mul(y,P),U=r.mul(E,U),I=r.add(I,P),P=r.sub(C,P),P=r.mul(y,P),U=r.add(U,P),C=r.mul(I,U),F=r.add(F,C),C=r.mul(D,U),M=r.mul(k,M),M=r.sub(M,C),C=r.mul(k,I),R=r.mul(D,R),R=r.add(R,C),new g(M,F,R)}subtract(S){return this.add(S.negate())}is0(){return this.equals(g.ZERO)}wNAF(S){return b.wNAFCached(this,S,g.normalizeZ)}multiplyUnsafe(S){let{endo:T,n:N}=e;wm(\\\"scalar\\\",S,Fd,N);let O=g.ZERO;if(S===Fd)return O;if(this.is0()||S===tn)return this;if(!T||b.hasPrecomputes(this))return b.wNAFCachedUnsafe(this,S,g.normalizeZ);let{k1neg:L,k1:B,k2neg:H,k2:M}=T.splitScalar(S),F=O,R=O,y=this;for(;B>Fd||M>Fd;)B&tn&&(F=F.add(y)),M&tn&&(R=R.add(y)),y=y.double(),B>>=tn,M>>=tn;return L&&(F=F.negate()),H&&(R=R.negate()),R=new g(r.mul(R.px,T.beta),R.py,R.pz),F.add(R)}multiply(S){let{endo:T,n:N}=e;wm(\\\"scalar\\\",S,tn,N);let O,L;if(T){let{k1neg:B,k1:H,k2neg:M,k2:F}=T.splitScalar(S),{p:R,f:y}=this.wNAF(H),{p:E,f:C}=this.wNAF(F);R=b.constTimeNegate(B,R),E=b.constTimeNegate(M,E),E=new g(r.mul(E.px,T.beta),E.py,E.pz),O=R.add(E),L=y.add(C)}else{let{p:B,f:H}=this.wNAF(S);O=B,L=H}return g.normalizeZ([O,L])[0]}multiplyAndAddUnsafe(S,T,N){let O=g.BASE,L=(H,M)=>M===Fd||M===tn||!H.equals(O)?H.multiplyUnsafe(M):H.multiply(M),B=L(this,T).add(L(S,N));return B.is0()?void 0:B}toAffine(S){return h(this,S)}isTorsionFree(){let{h:S,isTorsionFree:T}=e;if(S===tn)return!0;if(T)return T(g,this);throw new Error(\\\"isTorsionFree() has not been declared for the elliptic curve\\\")}clearCofactor(){let{h:S,clearCofactor:T}=e;return S===tn?this:T?T(g,this):this.multiplyUnsafe(e.h)}toRawBytes(S=!0){return y5(\\\"isCompressed\\\",S),this.assertValidity(),i(g,this,S)}toHex(S=!0){return y5(\\\"isCompressed\\\",S),b5(this.toRawBytes(S))}}g.BASE=new g(e.Gx,e.Gy,r.ONE),g.ZERO=new g(r.ZERO,r.ONE,r.ZERO);let{endo:w,nBitLength:v}=e,b=sve(g,w?Math.ceil(v/2):v);return{CURVE:e,ProjectivePoint:g,normPrivateKeyToScalar:f,weierstrassEquation:o,isWithinCurveOrder:d}}function Qut(t){let e=HZ(t);return vm(e,{hash:\\\"hash\\\",hmac:\\\"function\\\",randomBytes:\\\"function\\\"},{bits2int:\\\"function\\\",bits2int_modN:\\\"function\\\",lowS:\\\"boolean\\\"}),Object.freeze({lowS:!0,...e})}function lve(t){let e=Qut(t),{Fp:r,n,nByteLength:i,nBitLength:s}=e,o=r.BYTES+1,a=2*r.BYTES+1;function c(E){return cs(E,n)}function l(E){return qN(E,n)}let{ProjectivePoint:d,normPrivateKeyToScalar:f,weierstrassEquation:p,isWithinCurveOrder:h}=Zut({...e,toBytes(E,C,I){let P=C.toAffine(),k=r.toBytes(P.x),U=ja;return y5(\\\"isCompressed\\\",I),I?U(Uint8Array.from([C.hasEvenY()?2:3]),k):U(Uint8Array.from([4]),k,r.toBytes(P.y))},fromBytes(E){let C=E.length,I=E[0],P=E.subarray(1);if(C===o&&(I===2||I===3)){let k=Sc(P);if(!yw(k,tn,r.ORDER))throw new Error(\\\"Point is not on curve\\\");let U=p(k),D;try{D=r.sqrt(U)}catch(K){let J=K instanceof Error?\\\": \\\"+K.message:\\\"\\\";throw new Error(\\\"Point is not on curve\\\"+J)}let A=(D&tn)===tn;return(I&1)===1!==A&&(D=r.neg(D)),{x:k,y:D}}else if(C===a&&I===4){let k=r.fromBytes(P.subarray(0,r.BYTES)),U=r.fromBytes(P.subarray(r.BYTES,2*r.BYTES));return{x:k,y:U}}else{let k=o,U=a;throw new Error(\\\"invalid Point, expected length of \\\"+k+\\\", or uncompressed \\\"+U+\\\", got \\\"+C)}}});function m(E){let C=n>>tn;return E>C}function g(E){return m(E)?c(-E):E}let w=(E,C,I)=>Sc(E.slice(C,I));class v{constructor(C,I,P){wm(\\\"r\\\",C,tn,n),wm(\\\"s\\\",I,tn,n),this.r=C,this.s=I,P!=null&&(this.recovery=P),Object.freeze(this)}static fromCompact(C){let I=i;return C=vs(\\\"compactSignature\\\",C,I*2),new v(w(C,0,I),w(C,I,2*I))}static fromDER(C){let{r:I,s:P}=xm.toSig(vs(\\\"DER\\\",C));return new v(I,P)}assertValidity(){}addRecoveryBit(C){return new v(this.r,this.s,C)}recoverPublicKey(C){let{r:I,s:P,recovery:k}=this,U=O(vs(\\\"msgHash\\\",C));if(k==null||![0,1,2,3].includes(k))throw new Error(\\\"recovery id invalid\\\");let D=k===2||k===3?I+e.n:I;if(D>=r.ORDER)throw new Error(\\\"recovery id 2 or 3 invalid\\\");let A=(k&1)===0?\\\"02\\\":\\\"03\\\",j=d.fromHex(A+qZ(D,r.BYTES)),K=l(D),J=c(-U*K),X=c(P*K),re=d.BASE.multiplyAndAddUnsafe(j,J,X);if(!re)throw new Error(\\\"point at infinify\\\");return re.assertValidity(),re}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return rA(this.toDERHex())}toDERHex(){return xm.hexFromSig(this)}toCompactRawBytes(){return rA(this.toCompactHex())}toCompactHex(){let C=i;return qZ(this.r,C)+qZ(this.s,C)}}let b={isValidPrivateKey(E){try{return f(E),!0}catch{return!1}},normPrivateKeyToScalar:f,randomPrivateKey:()=>{let E=MZ(e.n);return eve(e.randomBytes(E),e.n)},precompute(E=8,C=d.BASE){return C._setWindowSize(E),C.multiply(BigInt(3)),C}};function _(E,C=!0){return d.fromPrivateKey(E).toRawBytes(C)}function S(E){if(typeof E==\\\"bigint\\\")return!1;if(E instanceof d)return!0;let I=vs(\\\"key\\\",E).length,P=r.BYTES,k=P+1,U=2*P+1;if(!(e.allowedPrivateKeyLengths||i===k))return I===k||I===U}function T(E,C,I=!0){if(S(E)===!0)throw new Error(\\\"first arg must be private key\\\");if(S(C)===!1)throw new Error(\\\"second arg must be public key\\\");return d.fromHex(C).multiply(f(E)).toRawBytes(I)}let N=e.bits2int||function(E){if(E.length>8192)throw new Error(\\\"input is too large\\\");let C=Sc(E),I=E.length*8-s;return I>0?C>>BigInt(I):C},O=e.bits2int_modN||function(E){return c(N(E))},L=bw(s);function B(E){return wm(\\\"num < 2^\\\"+s,E,Fd,L),op(E,i)}function H(E,C,I=M){if([\\\"recovered\\\",\\\"canonical\\\"].some(ce=>ce in I))throw new Error(\\\"sign() legacy options not supported\\\");let{hash:P,randomBytes:k}=e,{lowS:U,prehash:D,extraEntropy:A}=I;U==null&&(U=!0),E=vs(\\\"msgHash\\\",E),cve(I),D&&(E=vs(\\\"prehashed msgHash\\\",P(E)));let j=O(E),K=f(C),J=[B(K),B(j)];if(A!=null&&A!==!1){let ce=A===!0?k(r.BYTES):A;J.push(vs(\\\"extraEntropy\\\",ce))}let X=ja(...J),re=j;function fe(ce){let We=N(ce);if(!h(We))return;let Ue=l(We),je=d.BASE.multiply(We).toAffine(),Lt=c(je.x);if(Lt===Fd)return;let pt=c(Ue*c(re+Lt*K));if(pt===Fd)return;let Ct=(je.x===Lt?0:2)|Number(je.y&tn),jf=pt;return U&&m(pt)&&(jf=g(pt),Ct^=1),new v(Lt,jf,Ct)}return{seed:X,k2sig:fe}}let M={lowS:e.lowS,prehash:!1},F={lowS:e.lowS,prehash:!1};function R(E,C,I=M){let{seed:P,k2sig:k}=H(E,C,I),U=e;return Gwe(U.hash.outputLen,U.nByteLength,U.hmac)(P,k)}d.BASE._setWindowSize(8);function y(E,C,I,P=F){let k=E;C=vs(\\\"msgHash\\\",C),I=vs(\\\"publicKey\\\",I);let{lowS:U,prehash:D,format:A}=P;if(cve(P),\\\"strict\\\"in P)throw new Error(\\\"options.strict was renamed to lowS\\\");if(A!==void 0&&A!==\\\"compact\\\"&&A!==\\\"der\\\")throw new Error(\\\"format must be compact or der\\\");let j=typeof k==\\\"string\\\"||g5(k),K=!j&&!A&&typeof k==\\\"object\\\"&&k!==null&&typeof k.r==\\\"bigint\\\"&&typeof k.s==\\\"bigint\\\";if(!j&&!K)throw new Error(\\\"invalid signature, expected Uint8Array, hex string or Signature instance\\\");let J,X;try{if(K&&(J=new v(k.r,k.s)),j){try{A!==\\\"compact\\\"&&(J=v.fromDER(k))}catch(Ct){if(!(Ct instanceof xm.Err))throw Ct}!J&&A!==\\\"der\\\"&&(J=v.fromCompact(k))}X=d.fromHex(I)}catch{return!1}if(!J||U&&J.hasHighS())return!1;D&&(C=e.hash(C));let{r:re,s:fe}=J,ce=O(C),We=l(fe),Ue=c(ce*We),je=c(re*We),Lt=d.BASE.multiplyAndAddUnsafe(X,Ue,je)?.toAffine();return Lt?c(Lt.x)===re:!1}return{CURVE:e,getPublicKey:_,getSharedSecret:T,sign:R,verify:y,ProjectivePoint:d,Signature:v,utils:b}}function Jut(t,e){let r=t.ORDER,n=Fd;for(let m=r-tn;m%Kg===Fd;m/=Kg)n+=tn;let i=n,s=Kg<<i-tn-tn,o=s*Kg,a=(r-tn)/o,c=(a-tn)/Kg,l=o-tn,d=s,f=t.pow(e,a),p=t.pow(e,(a+tn)/Kg),h=(m,g)=>{let w=f,v=t.pow(g,l),b=t.sqr(v);b=t.mul(b,g);let _=t.mul(m,b);_=t.pow(_,c),_=t.mul(_,v),v=t.mul(_,g),b=t.mul(_,m);let S=t.mul(b,v);_=t.pow(S,d);let T=t.eql(_,t.ONE);v=t.mul(b,p),_=t.mul(S,w),b=t.cmov(v,b,T),S=t.cmov(_,S,T);for(let N=i;N>tn;N--){let O=N-Kg;O=Kg<<O-tn;let L=t.pow(S,O),B=t.eql(L,t.ONE);v=t.mul(b,w),w=t.mul(w,w),L=t.mul(S,w),b=t.cmov(v,b,B),S=t.cmov(L,S,B)}return{isValid:T,value:b}};if(t.ORDER%$Z===sA){let m=(t.ORDER-sA)/$Z,g=t.sqrt(t.neg(e));h=(w,v)=>{let b=t.sqr(v),_=t.mul(w,v);b=t.mul(b,_);let S=t.pow(b,m);S=t.mul(S,_);let T=t.mul(S,g),N=t.mul(t.sqr(S),v),O=t.eql(N,w),L=t.cmov(T,S,O);return{isValid:O,value:L}}}return h}function uve(t,e){if(zN(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error(\\\"mapToCurveSimpleSWU: invalid opts\\\");let r=Jut(t,e.Z);if(!t.isOdd)throw new Error(\\\"Fp.isOdd is not implemented!\\\");return n=>{let i,s,o,a,c,l,d,f;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),d=t.mul(i,o);let{isValid:p,value:h}=r(s,l);f=t.mul(i,n),f=t.mul(f,h),d=t.cmov(d,o,p),f=t.cmov(f,h,p);let m=t.isOdd(n)===t.isOdd(f);f=t.cmov(t.neg(f),f,m);let g=v5(t,[a],!0)[0];return d=t.mul(d,g),{x:d,y:f}}}var zZ,xm,Fd,tn,Kg,sA,$Z,VZ=x(()=>{u();ave();iA();w5();zZ=class extends Error{constructor(e=\\\"\\\"){super(e)}},xm={Err:zZ,_tlv:{encode:(t,e)=>{let{Err:r}=xm;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length&1)throw new r(\\\"tlv.encode: unpadded data\\\");let n=e.length/2,i=tA(n);if(i.length/2&128)throw new r(\\\"tlv.encode: long form length too big\\\");let s=n>127?tA(i.length/2|128):\\\"\\\";return tA(t)+s+i+e},decode(t,e){let{Err:r}=xm,n=0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length<2||e[n++]!==t)throw new r(\\\"tlv.decode: wrong tlv\\\");let i=e[n++],s=!!(i&128),o=0;if(!s)o=i;else{let c=i&127;if(!c)throw new r(\\\"tlv.decode(long): indefinite length not supported\\\");if(c>4)throw new r(\\\"tlv.decode(long): byte length is too big\\\");let l=e.subarray(n,n+c);if(l.length!==c)throw new r(\\\"tlv.decode: length bytes not complete\\\");if(l[0]===0)throw new r(\\\"tlv.decode(long): zero leftmost byte\\\");for(let d of l)o=o<<8|d;if(n+=c,o<128)throw new r(\\\"tlv.decode(long): not minimal encoding\\\")}let a=e.subarray(n,n+o);if(a.length!==o)throw new r(\\\"tlv.decode: wrong value length\\\");return{v:a,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=xm;if(t<Fd)throw new e(\\\"integer: negative integers are not allowed\\\");let r=tA(t);if(Number.parseInt(r[0],16)&8&&(r=\\\"00\\\"+r),r.length&1)throw new e(\\\"unexpected DER parsing assertion: unpadded hex\\\");return r},decode(t){let{Err:e}=xm;if(t[0]&128)throw new e(\\\"invalid signature integer: negative\\\");if(t[0]===0&&!(t[1]&128))throw new e(\\\"invalid signature integer: unnecessary leading zero\\\");return Sc(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=xm,i=vs(\\\"signature\\\",t),{v:s,l:o}=n.decode(48,i);if(o.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");let{v:a,l:c}=n.decode(2,s),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(t){let{_tlv:e,_int:r}=xm,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s)),s=n+i;return e.encode(48,s)}};Fd=BigInt(0),tn=BigInt(1),Kg=BigInt(2),sA=BigInt(3),$Z=BigInt(4)});function Yut(t){return{hash:t,hmac:(e,...r)=>eA(t,e,Ec(...r)),randomBytes:am}}function dve(t,e){let r=n=>lve({...t,...Yut(n)});return{...r(e),create:r}}var fve=x(()=>{u();AZ();Md();VZ();});function Zg(t,e){if(oA(t),oA(e),t<0||t>=1<<8*e)throw new Error(\\\"invalid I2OSP input: \\\"+t);let r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=t&255,t>>>=8;return new Uint8Array(r)}function edt(t,e){let r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function oA(t){if(!Number.isSafeInteger(t))throw new Error(\\\"number expected\\\")}function tdt(t,e,r,n){bm(t),bm(e),oA(r),e.length>255&&(e=n(ja(HN(\\\"H2C-OVERSIZE-DST-\\\"),e)));let{outputLen:i,blockLen:s}=n,o=Math.ceil(r/i);if(r>65535||o>255)throw new Error(\\\"expand_message_xmd: invalid lenInBytes\\\");let a=ja(e,Zg(e.length,1)),c=Zg(0,s),l=Zg(r,2),d=new Array(o),f=n(ja(c,t,l,Zg(0,1),a));d[0]=n(ja(f,Zg(1,1),a));for(let h=1;h<=o;h++){let m=[edt(f,d[h-1]),Zg(h+1,1),a];d[h]=n(ja(...m))}return ja(...d).slice(0,r)}function rdt(t,e,r,n,i){if(bm(t),bm(e),oA(r),e.length>255){let s=Math.ceil(2*n/8);e=i.create({dkLen:s}).update(HN(\\\"H2C-OVERSIZE-DST-\\\")).update(e).digest()}if(r>65535||e.length>255)throw new Error(\\\"expand_message_xof: invalid lenInBytes\\\");return i.create({dkLen:r}).update(t).update(Zg(r,2)).update(e).update(Zg(e.length,1)).digest()}function pve(t,e,r){vm(r,{DST:\\\"stringOrUint8Array\\\",p:\\\"bigint\\\",m:\\\"isSafeInteger\\\",k:\\\"isSafeInteger\\\",hash:\\\"hash\\\"});let{p:n,k:i,m:s,hash:o,expand:a,DST:c}=r;bm(t),oA(e);let l=typeof c==\\\"string\\\"?HN(c):c,d=n.toString(2).length,f=Math.ceil((d+i)/8),p=e*s*f,h;if(a===\\\"xmd\\\")h=tdt(t,l,p,o);else if(a===\\\"xof\\\")h=rdt(t,l,p,i,o);else if(a===\\\"_internal_pass\\\")h=t;else throw new Error('expand must be \\\"xmd\\\" or \\\"xof\\\"');let m=new Array(e);for(let g=0;g<e;g++){let w=new Array(s);for(let v=0;v<s;v++){let b=f*(v+g*s),_=h.subarray(b,b+f);w[v]=cs(Xut(_),n)}m[g]=w}return m}function hve(t,e){let r=e.map(n=>Array.from(n).reverse());return(n,i)=>{let[s,o,a,c]=r.map(f=>f.reduce((p,h)=>t.add(t.mul(p,n),h))),[l,d]=v5(t,[o,c],!0);return n=t.mul(s,l),i=t.mul(i,t.mul(a,d)),{x:n,y:i}}}function mve(t,e,r){if(typeof e!=\\\"function\\\")throw new Error(\\\"mapToCurve() must be defined\\\");function n(s){return t.fromAffine(e(s))}function i(s){let o=s.clearCofactor();return o.equals(t.ZERO)?t.ZERO:(o.assertValidity(),o)}return{defaults:r,hashToCurve(s,o){let a=pve(s,2,{...r,DST:r.DST,...o}),c=n(a[0]),l=n(a[1]);return i(c.add(l))},encodeToCurve(s,o){let a=pve(s,1,{...r,DST:r.encodeDST,...o});return i(n(a[0]))},mapToCurve(s){if(!Array.isArray(s))throw new Error(\\\"expected array of bigints\\\");for(let o of s)if(typeof o!=\\\"bigint\\\")throw new Error(\\\"expected array of bigints\\\");return i(n(s))}}}var Xut,gve=x(()=>{u();iA();w5();Xut=Sc});var _ve={};ue(_ve,{encodeToCurve:()=>udt,hashToCurve:()=>ldt,schnorr:()=>odt,secp256k1:()=>jd,secp256k1_hasher:()=>YZ});function wve(t){let e=lA,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,d=l*l*t%e,f=El(d,r,e)*d%e,p=El(f,r,e)*d%e,h=El(p,VN,e)*l%e,m=El(h,i,e)*h%e,g=El(m,s,e)*m%e,w=El(g,a,e)*g%e,v=El(w,c,e)*w%e,b=El(v,a,e)*g%e,_=El(b,r,e)*d%e,S=El(_,o,e)*m%e,T=El(S,n,e)*l%e,N=El(T,VN,e);if(!Qg.eql(Qg.sqr(N),t))throw new Error(\\\"Cannot find square root\\\");return N}function WN(t,...e){let r=bve[t];if(r===void 0){let n=Ud(Uint8Array.from(t,i=>i.charCodeAt(0)));r=ja(n,n),bve[t]=r}return Ud(ja(r,...e))}function KZ(t){let e=jd.utils.normPrivateKeyToScalar(t),r=JZ.fromPrivateKey(e);return{scalar:r.hasEvenY()?e:cA(-e),bytes:QZ(r)}}function vve(t){wm(\\\"x\\\",t,aA,lA);let e=WZ(t*t),r=WZ(e*t+BigInt(7)),n=wve(r);n%VN!==ZZ&&(n=WZ(-n));let i=new JZ(t,n,aA);return i.assertValidity(),i}function xve(...t){return cA(x5(WN(\\\"BIP0340/challenge\\\",...t)))}function idt(t){return KZ(t).bytes}function sdt(t,e,r=am(32)){let n=vs(\\\"message\\\",t),{bytes:i,scalar:s}=KZ(e),o=vs(\\\"auxRand\\\",r,32),a=GZ(s^x5(WN(\\\"BIP0340/aux\\\",o))),c=WN(\\\"BIP0340/nonce\\\",a,i,n),l=cA(x5(c));if(l===ZZ)throw new Error(\\\"sign failed: k is zero\\\");let{bytes:d,scalar:f}=KZ(l),p=xve(d,i,n),h=new Uint8Array(64);if(h.set(d,0),h.set(GZ(cA(f+p*s)),32),!Eve(h,n,i))throw new Error(\\\"sign: Invalid signature produced\\\");return h}function Eve(t,e,r){let n=vs(\\\"signature\\\",t,64),i=vs(\\\"message\\\",e),s=vs(\\\"publicKey\\\",r,32);try{let o=vve(x5(s)),a=x5(n.subarray(0,32));if(!yw(a,aA,lA))return!1;let c=x5(n.subarray(32,64));if(!yw(c,aA,$N))return!1;let l=xve(GZ(a),QZ(o),i),d=ndt(o,c,cA(-l));return!(!d||!d.hasEvenY()||d.toAffine().x!==a)}catch{return!1}}var lA,$N,ZZ,aA,VN,yve,Qg,jd,bve,QZ,GZ,WZ,cA,JZ,ndt,x5,odt,adt,cdt,YZ,ldt,udt,uA=x(()=>{u();XS();Md();fve();gve();iA();w5();VZ();lA=BigInt(\\\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\\\"),$N=BigInt(\\\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\\\"),ZZ=BigInt(0),aA=BigInt(1),VN=BigInt(2),yve=(t,e)=>(t+e/VN)/e;Qg=nA(lA,void 0,void 0,{sqrt:wve}),jd=dve({a:ZZ,b:BigInt(7),Fp:Qg,n:$N,Gx:BigInt(\\\"55066263022277343669578718895168534326250603453777594175500187360389116729240\\\"),Gy:BigInt(\\\"32670510020758816978083085130507043184471273380659243275938904335757337482424\\\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\\\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\\\"),splitScalar:t=>{let e=$N,r=BigInt(\\\"0x3086d221a7d46bcde86c90e49284eb15\\\"),n=-aA*BigInt(\\\"0xe4437ed6010e88286f547fa90abfe4c3\\\"),i=BigInt(\\\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\\\"),s=r,o=BigInt(\\\"0x100000000000000000000000000000000\\\"),a=yve(s*t,e),c=yve(-n*t,e),l=cs(t-a*r-c*i,e),d=cs(-a*n-c*s,e),f=l>o,p=d>o;if(f&&(l=e-l),p&&(d=e-d),l>o||d>o)throw new Error(\\\"splitScalar: Endomorphism failed, k=\\\"+t);return{k1neg:f,k1:l,k2neg:p,k2:d}}}},Ud),bve={};QZ=t=>t.toRawBytes(!0).slice(1),GZ=t=>op(t,32),WZ=t=>cs(t,lA),cA=t=>cs(t,$N),JZ=jd.ProjectivePoint,ndt=(t,e,r)=>JZ.BASE.multiplyAndAddUnsafe(t,e,r);x5=Sc;odt={getPublicKey:idt,sign:sdt,verify:Eve,utils:{randomPrivateKey:jd.utils.randomPrivateKey,lift_x:vve,pointToBytes:QZ,numberToBytesBE:op,bytesToNumberBE:Sc,taggedHash:WN,mod:cs}},adt=hve(Qg,[[\\\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\\\",\\\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\\\",\\\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\\\",\\\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\\\"],[\\\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\\\",\\\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\\\",\\\"0x0000000000000000000000000000000000000000000000000000000000000001\\\"],[\\\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\\\",\\\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\\\",\\\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\\\",\\\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\\\"],[\\\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\\\",\\\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\\\",\\\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\\\",\\\"0x0000000000000000000000000000000000000000000000000000000000000001\\\"]].map(t=>t.map(e=>BigInt(e)))),cdt=uve(Qg,{A:BigInt(\\\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\\\"),B:BigInt(\\\"1771\\\"),Z:Qg.create(BigInt(\\\"-11\\\"))}),YZ=mve(jd.ProjectivePoint,t=>{let{x:e,y:r}=cdt(Qg.create(t[0]));return adt(e,r)},{DST:\\\"secp256k1_XMD:SHA-256_SSWU_RO_\\\",encodeDST:\\\"secp256k1_XMD:SHA-256_SSWU_NU_\\\",p:Qg.ORDER,m:1,k:128,expand:\\\"xmd\\\",hash:Ud}),ldt=YZ.hashToCurve,udt=YZ.encodeToCurve});async function Sve({hash:t,signature:e}){let r=Ur(t)?t:He(t),{secp256k1:n}=await Promise.resolve().then(()=>(uA(),_ve));return`0x${(()=>{if(typeof e==\\\"object\\\"&&\\\"r\\\"in e&&\\\"s\\\"in e){let{r:l,s:d,v:f,yParity:p}=e,h=Number(p??f),m=Cve(h);return new n.Signature(Ge(l),Ge(d)).addRecoveryBit(m)}let o=Ur(e)?e:He(e);if(Ot(o)!==65)throw new Error(\\\"invalid signature length\\\");let a=jr(`0x${o.slice(130)}`),c=Cve(a);return n.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function Cve(t){if(t===0||t===1)return t;if(t===27)return 0;if(t===28)return 1;throw new Error(\\\"Invalid yParityOrV value\\\")}var Ave=x(()=>{u();gu();Da();xi();qe()});async function ap({hash:t,signature:e}){return Bwe(await Sve({hash:t,signature:e}))}var GN=x(()=>{u();Mwe();Ave()});function qa(t,e=\\\"hex\\\"){let r=Tve(t),n=o5(new Uint8Array(r.length));return r.encode(n),e===\\\"hex\\\"?er(n.bytes):n.bytes}function Tve(t){return Array.isArray(t)?ddt(t.map(e=>Tve(e))):fdt(t)}function ddt(t){let e=t.reduce((i,s)=>i+s.length,0),r=Ive(e);return{length:e<=55?1+e:1+r+e,encode(i){e<=55?i.pushByte(192+e):(i.pushByte(247+r),r===1?i.pushUint8(e):r===2?i.pushUint16(e):r===3?i.pushUint24(e):i.pushUint32(e));for(let{encode:s}of t)s(i)}}}function fdt(t){let e=typeof t==\\\"string\\\"?Hr(t):t,r=Ive(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+r+e.length,encode(i){e.length===1&&e[0]<128?i.pushBytes(e):e.length<=55?(i.pushByte(128+e.length),i.pushBytes(e)):(i.pushByte(183+r),r===1?i.pushUint8(e.length):r===2?i.pushUint16(e.length):r===3?i.pushUint24(e.length):i.pushUint32(e.length),i.pushBytes(e))}}}function Ive(t){if(t<2**8)return 1;if(t<2**16)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new W(\\\"Length is too large.\\\")}var E5=x(()=>{u();st();SN();Zi();qe()});function Rve(t){let{chainId:e,nonce:r,to:n}=t,i=t.contractAddress??t.address,s=Ft(ln([\\\"0x05\\\",qa([e?Z(e):\\\"0x\\\",i,r?Z(r):\\\"0x\\\"])]));return n===\\\"bytes\\\"?Hr(s):s}var Pve=x(()=>{u();Ei();Zi();qe();E5();yl()});async function Jg(t){let{authorization:e,signature:r}=t;return ap({hash:Rve(e),signature:r??e})}var dA=x(()=>{u();GN();Pve()});var KN,Ove=x(()=>{u();IN();Yb();st();wl();KN=class extends W{constructor(e,{account:r,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:p}){let h=lm({from:r?.address,to:f,value:typeof p<\\\"u\\\"&&`${u5(p)} ${i?.nativeCurrency?.symbol||\\\"ETH\\\"}`,data:s,gas:o,gasPrice:typeof a<\\\"u\\\"&&`${Oi(a)} gwei`,maxFeePerGas:typeof c<\\\"u\\\"&&`${Oi(c)} gwei`,maxPriorityFeePerGas:typeof l<\\\"u\\\"&&`${Oi(l)} gwei`,nonce:d});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\\\" \\\"]:[],\\\"Estimate Gas Arguments:\\\",h].filter(Boolean),name:\\\"EstimateGasExecutionError\\\"}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}});var Hd,Ac,_5,C5,S5,A5,T5,I5,R5,P5,xu,Eu,cp=x(()=>{u();Yb();st();Hd=class extends W{constructor({cause:e,message:r}={}){let n=r?.replace(\\\"execution reverted: \\\",\\\"\\\")?.replace(\\\"execution reverted\\\",\\\"\\\");super(`Execution reverted ${n?`with reason: ${n}`:\\\"for an unknown reason\\\"}.`,{cause:e,name:\\\"ExecutionRevertedError\\\"})}};Object.defineProperty(Hd,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Hd,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});Ac=class extends W{constructor({cause:e,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${Oi(r)} gwei`:\\\"\\\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:\\\"FeeCapTooHighError\\\"})}};Object.defineProperty(Ac,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});_5=class extends W{constructor({cause:e,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${Oi(r)}`:\\\"\\\"} gwei) cannot be lower than the block base fee.`,{cause:e,name:\\\"FeeCapTooLowError\\\"})}};Object.defineProperty(_5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});C5=class extends W{constructor({cause:e,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\\\"\\\"}is higher than the next one expected.`,{cause:e,name:\\\"NonceTooHighError\\\"})}};Object.defineProperty(C5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});S5=class extends W{constructor({cause:e,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:\\\"\\\"}is lower than the current nonce of the account.`,\\\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\\\"].join(`\\n`),{cause:e,name:\\\"NonceTooLowError\\\"})}};Object.defineProperty(S5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});A5=class extends W{constructor({cause:e,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\\\"\\\"}exceeds the maximum allowed nonce.`,{cause:e,name:\\\"NonceMaxValueError\\\"})}};Object.defineProperty(A5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});T5=class extends W{constructor({cause:e}={}){super([\\\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\\\"].join(`\\n`),{cause:e,metaMessages:[\\\"This error could arise when the account does not have enough funds to:\\\",\\\" - pay for the total gas fee,\\\",\\\" - pay for the value to send.\\\",\\\" \\\",\\\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\\\",\\\" - `gas` is the amount of gas needed for transaction to execute,\\\",\\\" - `gas fee` is the gas fee,\\\",\\\" - `value` is the amount of ether to send to the recipient.\\\"],name:\\\"InsufficientFundsError\\\"})}};Object.defineProperty(T5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});I5=class extends W{constructor({cause:e,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\\\"\\\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:\\\"IntrinsicGasTooHighError\\\"})}};Object.defineProperty(I5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});R5=class extends W{constructor({cause:e,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\\\"\\\"}provided for the transaction is too low.`,{cause:e,name:\\\"IntrinsicGasTooLowError\\\"})}};Object.defineProperty(R5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});P5=class extends W{constructor({cause:e}){super(\\\"The transaction type is not supported for this chain.\\\",{cause:e,name:\\\"TransactionTypeNotSupportedError\\\"})}};Object.defineProperty(P5,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});xu=class extends W{constructor({cause:e,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${r?` = ${Oi(r)} gwei`:\\\"\\\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${Oi(n)} gwei`:\\\"\\\"}).`].join(`\\n`),{cause:e,name:\\\"TipAboveFeeCapError\\\"})}};Object.defineProperty(xu,\\\"nodeMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});Eu=class extends W{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:\\\"UnknownNodeError\\\"})}}});function Yg(t,e){let r=(t.details||\\\"\\\").toLowerCase(),n=t instanceof W?t.walk(i=>i?.code===Hd.code):t;return n instanceof W?new Hd({cause:t,message:n.details}):Hd.nodeMessage.test(r)?new Hd({cause:t,message:t.details}):Ac.nodeMessage.test(r)?new Ac({cause:t,maxFeePerGas:e?.maxFeePerGas}):_5.nodeMessage.test(r)?new _5({cause:t,maxFeePerGas:e?.maxFeePerGas}):C5.nodeMessage.test(r)?new C5({cause:t,nonce:e?.nonce}):S5.nodeMessage.test(r)?new S5({cause:t,nonce:e?.nonce}):A5.nodeMessage.test(r)?new A5({cause:t,nonce:e?.nonce}):T5.nodeMessage.test(r)?new T5({cause:t}):I5.nodeMessage.test(r)?new I5({cause:t,gas:e?.gas}):R5.nodeMessage.test(r)?new R5({cause:t,gas:e?.gas}):P5.nodeMessage.test(r)?new P5({cause:t}):xu.nodeMessage.test(r)?new xu({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new Eu({cause:t})}var fA=x(()=>{u();st();cp()});function Nve(t,{docsPath:e,...r}){let n=(()=>{let i=Yg(t,r);return i instanceof Eu?t:i})();return new KN(n,{docsPath:e,...r})}var kve=x(()=>{u();Ove();cp();fA()});function Tc(t,{format:e}){if(!e)return{};let r={};function n(s){let o=Object.keys(s);for(let a of o)a in t&&(r[a]=t[a]),s[a]&&typeof s[a]==\\\"object\\\"&&!Array.isArray(s[a])&&n(s[a])}let i=e(t||{});return n(i),r}var Xg=x(()=>{u()});function ey(t,e){return({exclude:r,format:n})=>({exclude:r,format:(i,s)=>{let o=e(i,s);if(r)for(let a of r)delete o[a];return{...o,...n(i,s)}},type:t})}var pA=x(()=>{u()});function Hs(t,e){let r={};return typeof t.authorizationList<\\\"u\\\"&&(r.authorizationList=hdt(t.authorizationList)),typeof t.accessList<\\\"u\\\"&&(r.accessList=t.accessList),typeof t.blobVersionedHashes<\\\"u\\\"&&(r.blobVersionedHashes=t.blobVersionedHashes),typeof t.blobs<\\\"u\\\"&&(typeof t.blobs[0]!=\\\"string\\\"?r.blobs=t.blobs.map(n=>er(n)):r.blobs=t.blobs),typeof t.data<\\\"u\\\"&&(r.data=t.data),t.account&&(r.from=t.account.address),typeof t.from<\\\"u\\\"&&(r.from=t.from),typeof t.gas<\\\"u\\\"&&(r.gas=Z(t.gas)),typeof t.gasPrice<\\\"u\\\"&&(r.gasPrice=Z(t.gasPrice)),typeof t.maxFeePerBlobGas<\\\"u\\\"&&(r.maxFeePerBlobGas=Z(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<\\\"u\\\"&&(r.maxFeePerGas=Z(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<\\\"u\\\"&&(r.maxPriorityFeePerGas=Z(t.maxPriorityFeePerGas)),typeof t.nonce<\\\"u\\\"&&(r.nonce=Z(t.nonce)),typeof t.to<\\\"u\\\"&&(r.to=t.to),typeof t.type<\\\"u\\\"&&(r.type=pdt[t.type]),typeof t.value<\\\"u\\\"&&(r.value=Z(t.value)),r}function hdt(t){return t.map(e=>({address:e.address,r:e.r?Z(BigInt(e.r)):e.r,s:e.s?Z(BigInt(e.s)):e.s,chainId:Z(e.chainId),nonce:Z(e.nonce),...typeof e.yParity<\\\"u\\\"?{yParity:Z(e.yParity)}:{},...typeof e.v<\\\"u\\\"&&typeof e.yParity>\\\"u\\\"?{v:Z(e.v)}:{}}))}var pdt,ZN,_u=x(()=>{u();qe();pA();pdt={legacy:\\\"0x0\\\",eip2930:\\\"0x1\\\",eip1559:\\\"0x2\\\",eip4844:\\\"0x3\\\",eip7702:\\\"0x4\\\"};ZN=ey(\\\"transactionRequest\\\",Hs)});function Bve(t){if(!(!t||t.length===0))return t.reduce((e,{slot:r,value:n})=>{if(r.length!==66)throw new US({size:r.length,targetSize:66,type:\\\"hex\\\"});if(n.length!==66)throw new US({size:n.length,targetSize:66,type:\\\"hex\\\"});return e[r]=n,e},{})}function mdt(t){let{balance:e,nonce:r,state:n,stateDiff:i,code:s}=t,o={};if(s!==void 0&&(o.code=s),e!==void 0&&(o.balance=Z(e)),r!==void 0&&(o.nonce=Z(r)),n!==void 0&&(o.state=Bve(n)),i!==void 0){if(o.state)throw new PN;o.stateDiff=Bve(i)}return o}function ty(t){if(!t)return;let e={};for(let{address:r,...n}of t){if(!lt(r,{strict:!1}))throw new cr({address:r});if(e[r])throw new RN({address:r});e[r]=mdt(n)}return e}var hA=x(()=>{u();bl();oN();CZ();da();qe()});var _ir,Cir,Sir,Air,Tir,Iir,Rir,Pir,Oir,Nir,kir,Bir,Mir,Dir,Lir,Uir,Fir,jir,Hir,qir,zir,$ir,Vir,Wir,Gir,Kir,Zir,Qir,Jir,Yir,Xir,esr,tsr,rsr,nsr,isr,ssr,osr,asr,csr,lsr,usr,dsr,fsr,psr,hsr,msr,gsr,ysr,bsr,wsr,vsr,xsr,Esr,_sr,Csr,Ssr,Asr,Tsr,Isr,Rsr,Psr,Osr,Nsr,ksr,Mve,Bsr,Msr,Dsr,Lsr,Usr,Fsr,jsr,Hsr,qsr,zsr,$sr,Vsr,Wsr,Gsr,Ksr,Zsr,Qsr,Jsr,Ysr,Xsr,eor,tor,ror,nor,ior,sor,oor,aor,cor,ry,mA=x(()=>{u();_ir=2n**(8n-1n)-1n,Cir=2n**(16n-1n)-1n,Sir=2n**(24n-1n)-1n,Air=2n**(32n-1n)-1n,Tir=2n**(40n-1n)-1n,Iir=2n**(48n-1n)-1n,Rir=2n**(56n-1n)-1n,Pir=2n**(64n-1n)-1n,Oir=2n**(72n-1n)-1n,Nir=2n**(80n-1n)-1n,kir=2n**(88n-1n)-1n,Bir=2n**(96n-1n)-1n,Mir=2n**(104n-1n)-1n,Dir=2n**(112n-1n)-1n,Lir=2n**(120n-1n)-1n,Uir=2n**(128n-1n)-1n,Fir=2n**(136n-1n)-1n,jir=2n**(144n-1n)-1n,Hir=2n**(152n-1n)-1n,qir=2n**(160n-1n)-1n,zir=2n**(168n-1n)-1n,$ir=2n**(176n-1n)-1n,Vir=2n**(184n-1n)-1n,Wir=2n**(192n-1n)-1n,Gir=2n**(200n-1n)-1n,Kir=2n**(208n-1n)-1n,Zir=2n**(216n-1n)-1n,Qir=2n**(224n-1n)-1n,Jir=2n**(232n-1n)-1n,Yir=2n**(240n-1n)-1n,Xir=2n**(248n-1n)-1n,esr=2n**(256n-1n)-1n,tsr=-(2n**(8n-1n)),rsr=-(2n**(16n-1n)),nsr=-(2n**(24n-1n)),isr=-(2n**(32n-1n)),ssr=-(2n**(40n-1n)),osr=-(2n**(48n-1n)),asr=-(2n**(56n-1n)),csr=-(2n**(64n-1n)),lsr=-(2n**(72n-1n)),usr=-(2n**(80n-1n)),dsr=-(2n**(88n-1n)),fsr=-(2n**(96n-1n)),psr=-(2n**(104n-1n)),hsr=-(2n**(112n-1n)),msr=-(2n**(120n-1n)),gsr=-(2n**(128n-1n)),ysr=-(2n**(136n-1n)),bsr=-(2n**(144n-1n)),wsr=-(2n**(152n-1n)),vsr=-(2n**(160n-1n)),xsr=-(2n**(168n-1n)),Esr=-(2n**(176n-1n)),_sr=-(2n**(184n-1n)),Csr=-(2n**(192n-1n)),Ssr=-(2n**(200n-1n)),Asr=-(2n**(208n-1n)),Tsr=-(2n**(216n-1n)),Isr=-(2n**(224n-1n)),Rsr=-(2n**(232n-1n)),Psr=-(2n**(240n-1n)),Osr=-(2n**(248n-1n)),Nsr=-(2n**(256n-1n)),ksr=2n**8n-1n,Mve=2n**16n-1n,Bsr=2n**24n-1n,Msr=2n**32n-1n,Dsr=2n**40n-1n,Lsr=2n**48n-1n,Usr=2n**56n-1n,Fsr=2n**64n-1n,jsr=2n**72n-1n,Hsr=2n**80n-1n,qsr=2n**88n-1n,zsr=2n**96n-1n,$sr=2n**104n-1n,Vsr=2n**112n-1n,Wsr=2n**120n-1n,Gsr=2n**128n-1n,Ksr=2n**136n-1n,Zsr=2n**144n-1n,Qsr=2n**152n-1n,Jsr=2n**160n-1n,Ysr=2n**168n-1n,Xsr=2n**176n-1n,eor=2n**184n-1n,tor=2n**192n-1n,ror=2n**200n-1n,nor=2n**208n-1n,ior=2n**216n-1n,sor=2n**224n-1n,oor=2n**232n-1n,aor=2n**240n-1n,cor=2n**248n-1n,ry=2n**256n-1n});function xs(t){let{account:e,maxFeePerGas:r,maxPriorityFeePerGas:n,to:i}=t,s=e?Ze(e):void 0;if(s&&!lt(s.address))throw new cr({address:s.address});if(i&&!lt(i))throw new cr({address:i});if(r&&r>ry)throw new Ac({maxFeePerGas:r});if(n&&r&&n>r)throw new xu({maxFeePerGas:r,maxPriorityFeePerGas:n})}var qd=x(()=>{u();en();mA();bl();cp();da()});var O5,ny,QN,gA=x(()=>{u();Yb();st();O5=class extends W{constructor(){super(\\\"`baseFeeMultiplier` must be greater than 1.\\\",{name:\\\"BaseFeeScalarError\\\"})}},ny=class extends W{constructor(){super(\\\"Chain does not support EIP-1559 fees.\\\",{name:\\\"Eip1559FeesNotSupportedError\\\"})}},QN=class extends W{constructor({maxPriorityFeePerGas:e}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${Oi(e)} gwei).`,{name:\\\"MaxFeePerGasTooLowError\\\"})}}});var N5,XZ=x(()=>{u();st();N5=class extends W{constructor({blockHash:e,blockNumber:r}){let n=\\\"Block\\\";e&&(n=`Block at hash \\\"${e}\\\"`),r&&(n=`Block at number \\\"${r}\\\"`),super(`${n} could not be found.`,{name:\\\"BlockNotFoundError\\\"})}}});function zd(t,e){let r={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?jr(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?jr(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?eQ[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(r.authorizationList=gdt(t.authorizationList)),r.yParity=(()=>{if(t.yParity)return Number(t.yParity);if(typeof r.v==\\\"bigint\\\"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type===\\\"legacy\\\"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type===\\\"eip2930\\\"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type===\\\"eip1559\\\"&&delete r.maxFeePerBlobGas,r}function gdt(t){return t.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))}var eQ,k5,iy=x(()=>{u();xi();pA();eQ={\\\"0x0\\\":\\\"legacy\\\",\\\"0x1\\\":\\\"eip2930\\\",\\\"0x2\\\":\\\"eip1559\\\",\\\"0x3\\\":\\\"eip4844\\\",\\\"0x4\\\":\\\"eip7702\\\"};k5=ey(\\\"transaction\\\",zd)});function yA(t,e){let r=(t.transactions??[]).map(n=>typeof n==\\\"string\\\"?n:zd(n));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:r,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}var B5,M5=x(()=>{u();pA();iy();B5=ey(\\\"block\\\",yA)});async function no(t,{blockHash:e,blockNumber:r,blockTag:n=t.experimental_blockTag??\\\"latest\\\",includeTransactions:i}={}){let s=i??!1,o=r!==void 0?Z(r):void 0,a=null;if(e?a=await t.request({method:\\\"eth_getBlockByHash\\\",params:[e,s]},{dedupe:!0}):a=await t.request({method:\\\"eth_getBlockByNumber\\\",params:[o||n,s]},{dedupe:!!o}),!a)throw new N5({blockHash:e,blockNumber:r});return(t.chain?.formatters?.block?.format||yA)(a,\\\"getBlock\\\")}var sy=x(()=>{u();XZ();qe();M5()});async function D5(t){let e=await t.request({method:\\\"eth_gasPrice\\\"});return BigInt(e)}var JN=x(()=>{u()});async function Dve(t,e){return tQ(t,e)}async function tQ(t,e){let{block:r,chain:n=t.chain,request:i}=e||{};try{let s=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if(typeof s==\\\"function\\\"){let a=r||await ae(t,no,\\\"getBlock\\\")({}),c=await s({block:a,client:t,request:i});if(c===null)throw new Error;return c}if(typeof s<\\\"u\\\")return s;let o=await t.request({method:\\\"eth_maxPriorityFeePerGas\\\"});return Ge(o)}catch{let[s,o]=await Promise.all([r?Promise.resolve(r):ae(t,no,\\\"getBlock\\\")({}),ae(t,D5,\\\"getGasPrice\\\")({})]);if(typeof s.baseFeePerGas!=\\\"bigint\\\")throw new ny;let a=o-s.baseFeePerGas;return a<0n?0n:a}}var rQ=x(()=>{u();gA();xi();Ut();sy();JN()});async function YN(t,e){return XN(t,e)}async function XN(t,e){let{block:r,chain:n=t.chain,request:i,type:s=\\\"eip1559\\\"}=e||{},o=await(async()=>typeof n?.fees?.baseFeeMultiplier==\\\"function\\\"?n.fees.baseFeeMultiplier({block:r,client:t,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new O5;let c=10**(o.toString().split(\\\".\\\")[1]?.length??0),l=p=>p*BigInt(Math.ceil(o*c))/BigInt(c),d=r||await ae(t,no,\\\"getBlock\\\")({});if(typeof n?.fees?.estimateFeesPerGas==\\\"function\\\"){let p=await n.fees.estimateFeesPerGas({block:r,client:t,multiply:l,request:i,type:s});if(p!==null)return p}if(s===\\\"eip1559\\\"){if(typeof d.baseFeePerGas!=\\\"bigint\\\")throw new ny;let p=typeof i?.maxPriorityFeePerGas==\\\"bigint\\\"?i.maxPriorityFeePerGas:await tQ(t,{block:d,chain:n,request:i}),h=l(d.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??h+p,maxPriorityFeePerGas:p}}return{gasPrice:i?.gasPrice??l(await ae(t,D5,\\\"getGasPrice\\\")({}))}}var ek=x(()=>{u();gA();Ut();rQ();sy();JN()});async function oy(t,{address:e,blockTag:r=\\\"latest\\\",blockNumber:n}){let i=await t.request({method:\\\"eth_getTransactionCount\\\",params:[e,typeof n==\\\"bigint\\\"?Z(n):r]},{dedupe:!!n});return jr(i)}var bA=x(()=>{u();xi();qe()});function L5(t){let{kzg:e}=t,r=t.to??(typeof t.blobs[0]==\\\"string\\\"?\\\"hex\\\":\\\"bytes\\\"),n=typeof t.blobs[0]==\\\"string\\\"?t.blobs.map(s=>Hr(s)):t.blobs,i=[];for(let s of n)i.push(Uint8Array.from(e.blobToKzgCommitment(s)));return r===\\\"bytes\\\"?i:i.map(s=>er(s))}var tk=x(()=>{u();Zi();qe()});function U5(t){let{kzg:e}=t,r=t.to??(typeof t.blobs[0]==\\\"string\\\"?\\\"hex\\\":\\\"bytes\\\"),n=typeof t.blobs[0]==\\\"string\\\"?t.blobs.map(o=>Hr(o)):t.blobs,i=typeof t.commitments[0]==\\\"string\\\"?t.commitments.map(o=>Hr(o)):t.commitments,s=[];for(let o=0;o<n.length;o++){let a=n[o],c=i[o];s.push(Uint8Array.from(e.computeBlobKzgProof(a,c)))}return r===\\\"bytes\\\"?s:s.map(o=>er(o))}var rk=x(()=>{u();Zi();qe()});var nk,nQ=x(()=>{u();XS();nk=Ud});function ik(t,e){let r=e||\\\"hex\\\",n=nk(Ur(t,{strict:!1})?Oo(t):t);return r===\\\"bytes\\\"?n:He(n)}var iQ=x(()=>{u();nQ();gu();Zi();qe()});function Lve(t){let{commitment:e,version:r=1}=t,n=t.to??(typeof e==\\\"string\\\"?\\\"hex\\\":\\\"bytes\\\"),i=ik(e,\\\"bytes\\\");return i.set([r],0),n===\\\"bytes\\\"?i:er(i)}var Uve=x(()=>{u();qe();iQ()});function sk(t){let{commitments:e,version:r}=t,n=t.to??(typeof e[0]==\\\"string\\\"?\\\"hex\\\":\\\"bytes\\\"),i=[];for(let s of e)i.push(Lve({commitment:s,to:n,version:r}));return i}var sQ=x(()=>{u();Uve()});var ok,F5,ak,ck,oQ=x(()=>{u();st();ok=class extends W{constructor({maxSize:e,size:r}){super(\\\"Blob size is too large.\\\",{metaMessages:[`Max: ${e} bytes`,`Given: ${r} bytes`],name:\\\"BlobSizeTooLargeError\\\"})}},F5=class extends W{constructor(){super(\\\"Blob data must not be empty.\\\",{name:\\\"EmptyBlobError\\\"})}},ak=class extends W{constructor({hash:e,size:r}){super(`Versioned hash \\\"${e}\\\" size is invalid.`,{metaMessages:[\\\"Expected: 32\\\",`Received: ${r}`],name:\\\"InvalidVersionedHashSizeError\\\"})}},ck=class extends W{constructor({hash:e,version:r}){super(`Versioned hash \\\"${e}\\\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${r}`],name:\\\"InvalidVersionedHashVersionError\\\"})}}});function Fve(t){let e=t.to??(typeof t.data==\\\"string\\\"?\\\"hex\\\":\\\"bytes\\\"),r=typeof t.data==\\\"string\\\"?Hr(t.data):t.data,n=Ot(r);if(!n)throw new F5;if(n>761855)throw new ok({maxSize:761855,size:n});let i=[],s=!0,o=0;for(;s;){let a=o5(new Uint8Array(131072)),c=0;for(;c<4096;){let l=r.slice(o,o+31);if(a.pushByte(0),a.pushBytes(l),l.length<31){a.pushByte(128),s=!1;break}c++,o+=31}i.push(a)}return e===\\\"bytes\\\"?i.map(a=>a.bytes):i.map(a=>er(a.bytes))}var jve=x(()=>{u();oQ();SN();Da();Zi();qe()});function lk(t){let{data:e,kzg:r,to:n}=t,i=t.blobs??Fve({data:e,to:n}),s=t.commitments??L5({blobs:i,kzg:r,to:n}),o=t.proofs??U5({blobs:i,commitments:s,kzg:r,to:n}),a=[];for(let c=0;c<i.length;c++)a.push({blob:i[c],commitment:s[c],proof:o[c]});return a}var aQ=x(()=>{u();tk();rk();jve()});function uk(t){if(t.type)return t.type;if(typeof t.authorizationList<\\\"u\\\")return\\\"eip7702\\\";if(typeof t.blobs<\\\"u\\\"||typeof t.blobVersionedHashes<\\\"u\\\"||typeof t.maxFeePerBlobGas<\\\"u\\\"||typeof t.sidecars<\\\"u\\\")return\\\"eip4844\\\";if(typeof t.maxFeePerGas<\\\"u\\\"||typeof t.maxPriorityFeePerGas<\\\"u\\\")return\\\"eip1559\\\";if(typeof t.gasPrice<\\\"u\\\")return typeof t.accessList<\\\"u\\\"?\\\"eip2930\\\":\\\"legacy\\\";throw new NN({transaction:t})}var cQ=x(()=>{u();wl()});function ay(t,{docsPath:e,...r}){let n=(()=>{let i=Yg(t,r);return i instanceof Eu?t:i})();return new BN(n,{docsPath:e,...r})}var wA=x(()=>{u();cp();wl();fA()});async function Es(t){let e=await t.request({method:\\\"eth_chainId\\\"},{dedupe:!0});return jr(e)}var $d=x(()=>{u();xi()});async function j5(t,e){let{account:r=t.account,accessList:n,authorizationList:i,chain:s=t.chain,blobVersionedHashes:o,blobs:a,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:m,nonceManager:g,to:w,type:v,value:b,..._}=e,S=await(async()=>{if(!r||!g||typeof m<\\\"u\\\")return m;let L=Ze(r),B=s?s.id:await ae(t,Es,\\\"getChainId\\\")({});return await g.consume({address:L.address,chainId:B,client:t})})();xs(e);let T=s?.formatters?.transactionRequest?.format,O=(T||Hs)({...Tc(_,{format:T}),account:r?Ze(r):void 0,accessList:n,authorizationList:i,blobs:a,blobVersionedHashes:o,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:S,to:w,type:v,value:b},\\\"fillTransaction\\\");try{let L=await t.request({method:\\\"eth_fillTransaction\\\",params:[O]}),H=(s?.formatters?.transaction?.format||zd)(L.tx);delete H.blockHash,delete H.blockNumber,delete H.r,delete H.s,delete H.transactionIndex,delete H.v,delete H.yParity,H.data=H.input,H.gas&&(H.gas=e.gas??H.gas),H.gasPrice&&(H.gasPrice=e.gasPrice??H.gasPrice),H.maxFeePerBlobGas&&(H.maxFeePerBlobGas=e.maxFeePerBlobGas??H.maxFeePerBlobGas),H.maxFeePerGas&&(H.maxFeePerGas=e.maxFeePerGas??H.maxFeePerGas),H.maxPriorityFeePerGas&&(H.maxPriorityFeePerGas=e.maxPriorityFeePerGas??H.maxPriorityFeePerGas),H.nonce&&(H.nonce=e.nonce??H.nonce);let M=await(async()=>{if(typeof s?.fees?.baseFeeMultiplier==\\\"function\\\"){let E=await ae(t,no,\\\"getBlock\\\")({});return s.fees.baseFeeMultiplier({block:E,client:t,request:e})}return s?.fees?.baseFeeMultiplier??1.2})();if(M<1)throw new O5;let R=10**(M.toString().split(\\\".\\\")[1]?.length??0),y=E=>E*BigInt(Math.ceil(M*R))/BigInt(R);return H.maxFeePerGas&&!e.maxFeePerGas&&(H.maxFeePerGas=y(H.maxFeePerGas)),H.gasPrice&&!e.gasPrice&&(H.gasPrice=y(H.gasPrice)),{raw:L.raw,transaction:{from:O.from,...H}}}catch(L){throw ay(L,{...e,chain:t.chain})}}var dk=x(()=>{u();en();gA();wA();Xg();iy();_u();Ut();qd();sy();$d()});async function lp(t,e){let r=e;r.account??(r.account=t.account),r.parameters??(r.parameters=vA);let{account:n,chain:i=t.chain,nonceManager:s,parameters:o}=r,a=(()=>{if(typeof i?.prepareTransactionRequest==\\\"function\\\")return{fn:i.prepareTransactionRequest,runAt:[\\\"beforeFillTransaction\\\"]};if(Array.isArray(i?.prepareTransactionRequest))return{fn:i.prepareTransactionRequest[0],runAt:i.prepareTransactionRequest[1].runAt}})(),c;async function l(){return c||(typeof r.chainId<\\\"u\\\"?r.chainId:i?i.id:(c=await ae(t,Es,\\\"getChainId\\\")({}),c))}let d=n&&Ze(n),f=r.nonce;if(o.includes(\\\"nonce\\\")&&typeof f>\\\"u\\\"&&d&&s){let S=await l();f=await s.consume({address:d.address,chainId:S,client:t})}a?.fn&&a.runAt?.includes(\\\"beforeFillTransaction\\\")&&(r=await a.fn({...r,chain:i},{phase:\\\"beforeFillTransaction\\\"}),f??(f=r.nonce));let h=((o.includes(\\\"blobVersionedHashes\\\")||o.includes(\\\"sidecars\\\"))&&r.kzg&&r.blobs||lQ.get(t.uid)===!1||![\\\"fees\\\",\\\"gas\\\"].some(T=>o.includes(T))?!1:!!(o.includes(\\\"chainId\\\")&&typeof r.chainId!=\\\"number\\\"||o.includes(\\\"nonce\\\")&&typeof f!=\\\"number\\\"||o.includes(\\\"fees\\\")&&typeof r.gasPrice!=\\\"bigint\\\"&&(typeof r.maxFeePerGas!=\\\"bigint\\\"||typeof r.maxPriorityFeePerGas!=\\\"bigint\\\")||o.includes(\\\"gas\\\")&&typeof r.gas!=\\\"bigint\\\"))?await ae(t,j5,\\\"fillTransaction\\\")({...r,nonce:f}).then(S=>{let{chainId:T,from:N,gas:O,gasPrice:L,nonce:B,maxFeePerBlobGas:H,maxFeePerGas:M,maxPriorityFeePerGas:F,type:R,...y}=S.transaction;return lQ.set(t.uid,!0),{...r,...N?{from:N}:{},...R&&!r.type?{type:R}:{},...typeof T<\\\"u\\\"?{chainId:T}:{},...typeof O<\\\"u\\\"?{gas:O}:{},...typeof L<\\\"u\\\"?{gasPrice:L}:{},...typeof B<\\\"u\\\"?{nonce:B}:{},...typeof H<\\\"u\\\"&&r.type!==\\\"legacy\\\"&&r.type!==\\\"eip2930\\\"?{maxFeePerBlobGas:H}:{},...typeof M<\\\"u\\\"&&r.type!==\\\"legacy\\\"&&r.type!==\\\"eip2930\\\"?{maxFeePerGas:M}:{},...typeof F<\\\"u\\\"&&r.type!==\\\"legacy\\\"&&r.type!==\\\"eip2930\\\"?{maxPriorityFeePerGas:F}:{},...\\\"nonceKey\\\"in y&&typeof y.nonceKey<\\\"u\\\"?{nonceKey:y.nonceKey}:{}}}).catch(S=>{let T=S;return T.name!==\\\"TransactionExecutionError\\\"||T.walk?.(O=>{let L=O;return L.name===\\\"MethodNotFoundRpcError\\\"||L.name===\\\"MethodNotSupportedRpcError\\\"||L.message?.includes(\\\"eth_fillTransaction is not available\\\")})&&lQ.set(t.uid,!1),r}):r;f??(f=h.nonce),r={...h,...d?{from:d?.address}:{},...f?{nonce:f}:{}};let{blobs:m,gas:g,kzg:w,type:v}=r;a?.fn&&a.runAt?.includes(\\\"beforeFillParameters\\\")&&(r=await a.fn({...r,chain:i},{phase:\\\"beforeFillParameters\\\"}));let b;async function _(){return b||(b=await ae(t,no,\\\"getBlock\\\")({blockTag:\\\"latest\\\"}),b)}if(o.includes(\\\"nonce\\\")&&typeof f>\\\"u\\\"&&d&&!s&&(r.nonce=await ae(t,oy,\\\"getTransactionCount\\\")({address:d.address,blockTag:\\\"pending\\\"})),(o.includes(\\\"blobVersionedHashes\\\")||o.includes(\\\"sidecars\\\"))&&m&&w){let S=L5({blobs:m,kzg:w});if(o.includes(\\\"blobVersionedHashes\\\")){let T=sk({commitments:S,to:\\\"hex\\\"});r.blobVersionedHashes=T}if(o.includes(\\\"sidecars\\\")){let T=U5({blobs:m,commitments:S,kzg:w}),N=lk({blobs:m,commitments:S,proofs:T,to:\\\"hex\\\"});r.sidecars=N}}if(o.includes(\\\"chainId\\\")&&(r.chainId=await l()),(o.includes(\\\"fees\\\")||o.includes(\\\"type\\\"))&&typeof v>\\\"u\\\")try{r.type=uk(r)}catch{let S=Hve.get(t.uid);typeof S>\\\"u\\\"&&(S=typeof(await _())?.baseFeePerGas==\\\"bigint\\\",Hve.set(t.uid,S)),r.type=S?\\\"eip1559\\\":\\\"legacy\\\"}if(o.includes(\\\"fees\\\"))if(r.type!==\\\"legacy\\\"&&r.type!==\\\"eip2930\\\"){if(typeof r.maxFeePerGas>\\\"u\\\"||typeof r.maxPriorityFeePerGas>\\\"u\\\"){let S=await _(),{maxFeePerGas:T,maxPriorityFeePerGas:N}=await XN(t,{block:S,chain:i,request:r});if(typeof r.maxPriorityFeePerGas>\\\"u\\\"&&r.maxFeePerGas&&r.maxFeePerGas<N)throw new QN({maxPriorityFeePerGas:N});r.maxPriorityFeePerGas=N,r.maxFeePerGas=T}}else{if(typeof r.maxFeePerGas<\\\"u\\\"||typeof r.maxPriorityFeePerGas<\\\"u\\\")throw new ny;if(typeof r.gasPrice>\\\"u\\\"){let S=await _(),{gasPrice:T}=await XN(t,{block:S,chain:i,request:r,type:\\\"legacy\\\"});r.gasPrice=T}}return o.includes(\\\"gas\\\")&&typeof g>\\\"u\\\"&&(r.gas=await ae(t,q5,\\\"estimateGas\\\")({...r,account:d,prepare:d?.type===\\\"local\\\"?[]:[\\\"blobVersionedHashes\\\"]})),a?.fn&&a.runAt?.includes(\\\"afterFillParameters\\\")&&(r=await a.fn({...r,chain:i},{phase:\\\"afterFillParameters\\\"})),xs(r),delete r.parameters,r}var vA,Hve,lQ,H5=x(()=>{u();en();ek();fk();sy();bA();gA();tk();rk();sQ();aQ();Ut();Lg();qd();cQ();dk();$d();vA=[\\\"blobVersionedHashes\\\",\\\"chainId\\\",\\\"fees\\\",\\\"gas\\\",\\\"nonce\\\",\\\"type\\\"],Hve=new Map,lQ=new ua(128)});async function q5(t,e){let{account:r=t.account,prepare:n=!0}=e,i=r?Ze(r):void 0,s=(()=>{if(Array.isArray(n))return n;if(i?.type!==\\\"local\\\")return[\\\"blobVersionedHashes\\\"]})();try{let o=await(async()=>{if(e.to)return e.to;if(e.authorizationList&&e.authorizationList.length>0)return await Jg({authorization:e.authorizationList[0]}).catch(()=>{throw new W(\\\"`to` is required. Could not infer from `authorizationList`\\\")})})(),{accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:d,blockNumber:f,blockTag:p,data:h,gas:m,gasPrice:g,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:b,nonce:_,value:S,stateOverride:T,...N}=n?await lp(t,{...e,parameters:s,to:o}):e;if(m&&e.gas!==m)return m;let L=(typeof f==\\\"bigint\\\"?Z(f):void 0)||p,B=ty(T);xs(e);let H=t.chain?.formatters?.transactionRequest?.format,F=(H||Hs)({...Tc(N,{format:H}),account:i,accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:d,data:h,gasPrice:g,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:b,nonce:_,to:o,value:S},\\\"estimateGas\\\");return BigInt(await t.request({method:\\\"eth_estimateGas\\\",params:B?[F,L??t.experimental_blockTag??\\\"latest\\\",B]:L?[F,L]:[F]}))}catch(o){throw Nve(o,{...e,account:i,chain:t.chain})}}var fk=x(()=>{u();en();st();dA();qe();kve();Xg();_u();hA();qd();H5()});async function qve(t,e){let{abi:r,address:n,args:i,functionName:s,dataSuffix:o=typeof t.dataSuffix==\\\"string\\\"?t.dataSuffix:t.dataSuffix?.value,...a}=e,c=At({abi:r,args:i,functionName:s});try{return await ae(t,q5,\\\"estimateGas\\\")({data:`${c}${o?o.replace(\\\"0x\\\",\\\"\\\"):\\\"\\\"}`,to:n,...a})}catch(l){let d=a.account?Ze(a.account):void 0;throw xl(l,{abi:r,address:n,args:i,docsPath:\\\"/docs/contract/estimateContractGas\\\",functionName:s,sender:d?.address})}}var zve=x(()=>{u();en();fa();gw();Ut();fk()});function ha(t,e){if(!lt(t,{strict:!1}))throw new cr({address:t});if(!lt(e,{strict:!1}))throw new cr({address:e});return t.toLowerCase()===e.toLowerCase()}var cy=x(()=>{u();bl();da()});function Qi(t,{args:e,eventName:r}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,blockTimestamp:t.blockTimestamp?BigInt(t.blockTimestamp):t.blockTimestamp===null?null:void 0,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...r?{args:e,eventName:r}:{}}}var Vd=x(()=>{u()});function vw(t){let{abi:e,data:r,strict:n,topics:i}=t,s=n??!0,[o,...a]=i;if(!o)throw new YO({docsPath:$ve});let c=e.find(v=>v.type===\\\"event\\\"&&o===Dg(js(v)));if(!(c&&\\\"name\\\"in c)||c.type!==\\\"event\\\")throw new XO(o,{docsPath:$ve});let{name:l,inputs:d}=c,f=d?.some(v=>!(\\\"name\\\"in v&&v.name)),p=f?[]:{},h=d.map((v,b)=>[v,b]).filter(([v])=>\\\"indexed\\\"in v&&v.indexed),m=[];for(let v=0;v<h.length;v++){let[b,_]=h[v],S=a[v];if(!S){if(s)throw new Pg({abiItem:c,param:b});m.push([b,_]);continue}p[f?_:b.name||_]=wdt({param:b,value:S})}let g=d.filter(v=>!(\\\"indexed\\\"in v&&v.indexed)),w=s?g:[...m.map(([v])=>v),...g];if(w.length>0){if(r&&r!==\\\"0x\\\")try{let v=Cc(w,r);if(v){let b=0;if(!s)for(let[_,S]of m)p[f?S:_.name||S]=v[b++];if(f)for(let _=0;_<d.length;_++)p[_]===void 0&&b<v.length&&(p[_]=v[b++]);else for(let _=0;_<g.length;_++)p[g[_].name]=v[b++]}}catch(v){if(s)throw v instanceof ZE||v instanceof s5?new tm({abiItem:c,data:r,params:w,size:Ot(r)}):v}else if(s)throw new tm({abiItem:c,data:\\\"0x\\\",params:w,size:0})}return{eventName:l,args:Object.values(p).length>0?p:void 0}}function wdt({param:t,value:e}){return t.type===\\\"string\\\"||t.type===\\\"bytes\\\"||t.type===\\\"tuple\\\"||t.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?e:(Cc([t],e)||[])[0]}var $ve,pk=x(()=>{u();Ki();vZ();Da();VS();c5();em();$ve=\\\"/docs/contract/decodeEventLog\\\"});function z5(t){let{abi:e,args:r,logs:n,strict:i=!0}=t,s=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})(),o=e.filter(a=>a.type===\\\"event\\\").map(a=>({abi:a,selector:Dg(a)}));return n.map(a=>{let c=typeof a.blockNumber==\\\"string\\\"?Qi(a):a,l=o.filter(p=>c.topics[0]===p.selector);if(l.length===0)return null;let d,f;for(let p of l)try{d=vw({...c,abi:[p.abi],strict:!0}),f=p;break}catch{}if(!d&&!i){f=l[0];try{d=vw({data:c.data,topics:c.topics,abi:[f.abi],strict:!1})}catch{let p=f.abi.inputs?.some(h=>!(\\\"name\\\"in h&&h.name));return{...c,args:p?[]:{},eventName:f.abi.name}}}return!d||!f||s&&!s.includes(d.eventName)||!vdt({args:d.args,inputs:f.abi.inputs,matchArgs:r})?null:{...d,...c}}).filter(Boolean)}function vdt(t){let{args:e,inputs:r,matchArgs:n}=t;if(!n)return!0;if(!e)return!1;function i(s,o,a){try{return s.type===\\\"address\\\"?ha(o,a):s.type===\\\"string\\\"||s.type===\\\"bytes\\\"?Ft(Oo(o))===a:o===a}catch{return!1}}return Array.isArray(e)&&Array.isArray(n)?n.every((s,o)=>{if(s==null)return!0;let a=r[o];return a?(Array.isArray(s)?s:[s]).some(l=>i(a,l,e[o])):!1}):typeof e==\\\"object\\\"&&!Array.isArray(e)&&typeof n==\\\"object\\\"&&!Array.isArray(n)?Object.entries(n).every(([s,o])=>{if(o==null)return!0;let a=r.find(l=>l.name===s);return a?(Array.isArray(o)?o:[o]).some(l=>i(a,l,e[s])):!1}):!1}var hk=x(()=>{u();cy();Zi();Vd();yl();VS();pk()});async function $5(t,{address:e,blockHash:r,fromBlock:n,toBlock:i,event:s,events:o,args:a,strict:c}={}){let l=c??!1,d=o??(s?[s]:void 0),f=[];d&&(f=[d.flatMap(g=>rp({abi:[g],eventName:g.name,args:o?void 0:a}))],s&&(f=f[0]));let p;r?p=await t.request({method:\\\"eth_getLogs\\\",params:[{address:e,topics:f,blockHash:r}]}):p=await t.request({method:\\\"eth_getLogs\\\",params:[{address:e,topics:f,fromBlock:typeof n==\\\"bigint\\\"?Z(n):n,toBlock:typeof i==\\\"bigint\\\"?Z(i):i}]});let h=p.map(m=>Qi(m));return d?z5({abi:d,args:a,logs:h,strict:l}):h}var mk=x(()=>{u();i5();hk();qe();Vd()});async function gk(t,e){let{abi:r,address:n,args:i,blockHash:s,eventName:o,fromBlock:a,toBlock:c,strict:l}=e,d=o?_c({abi:r,name:o}):void 0,f=d?void 0:r.filter(p=>p.type===\\\"event\\\");return ae(t,$5,\\\"getLogs\\\")({address:n,args:i,blockHash:s,event:d,events:f,fromBlock:a,toBlock:c,strict:l})}var uQ=x(()=>{u();Ug();Ut();mk()});function ma(t){let{abi:e,args:r,functionName:n,data:i}=t,s=e[0];if(n){let a=_c({abi:e,args:r,name:n});if(!a)throw new Od(n,{docsPath:dQ});s=a}if(s.type!==\\\"function\\\")throw new Od(void 0,{docsPath:dQ});if(!s.outputs)throw new YE(s.name,{docsPath:dQ});let o=Cc(s.outputs,i);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}var dQ,Em=x(()=>{u();Ki();c5();Ug();dQ=\\\"/docs/contract/decodeFunctionResult\\\"});var Vve,Wve=x(()=>{u();Vve=\\\"0.1.1\\\"});function Gve(){return Vve}var Kve=x(()=>{u();Wve()});function Zve(t,e){return e?.(t)?t:t&&typeof t==\\\"object\\\"&&\\\"cause\\\"in t&&t.cause?Zve(t.cause,e):e?null:t}var $e,Ic=x(()=>{u();Kve();$e=class t extends Error{static setStaticOptions(e){t.prototype.docsOrigin=e.docsOrigin,t.prototype.showVersion=e.showVersion,t.prototype.version=e.version}constructor(e,r={}){let n=(()=>{if(r.cause instanceof t){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&\\\"details\\\"in r.cause&&typeof r.cause.details==\\\"string\\\"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),i=r.cause instanceof t&&r.cause.docsPath||r.docsPath,s=r.docsOrigin??t.prototype.docsOrigin,o=`${s}${i??\\\"\\\"}`,a=!!(r.version??t.prototype.showVersion),c=r.version??t.prototype.version,l=[e||\\\"An error occurred.\\\",...r.metaMessages?[\\\"\\\",...r.metaMessages]:[],...n||i||a?[\\\"\\\",n?`Details: ${n}`:void 0,i?`See: ${o}`:void 0,a?`Version: ${c}`:void 0]:[]].filter(d=>typeof d==\\\"string\\\").join(`\\n`);super(l,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docs\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsOrigin\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"showVersion\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"version\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"BaseError\\\"}),this.cause=r.cause,this.details=n,this.docs=o,this.docsOrigin=s,this.docsPath=i,this.shortMessage=e,this.showVersion=a,this.version=c}walk(e){return Zve(this,e)}};Object.defineProperty($e,\\\"defaultStaticOptions\\\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\\\"https://oxlib.sh\\\",showVersion:!1,version:`ox@${Gve()}`}});$e.setStaticOptions($e.defaultStaticOptions)});function V5(t,e){if(Cu(t)>e)throw new yk({givenSize:Cu(t),maxSize:e})}function Qve(t,e){if(typeof e==\\\"number\\\"&&e>0&&e>Cu(t)-1)throw new xA({offset:e,position:\\\"start\\\",size:Cu(t)})}function Jve(t,e,r){if(typeof e==\\\"number\\\"&&typeof r==\\\"number\\\"&&Cu(t)!==r-e)throw new xA({offset:r,position:\\\"end\\\",size:Cu(t)})}function fQ(t){if(t>=_m.zero&&t<=_m.nine)return t-_m.zero;if(t>=_m.A&&t<=_m.F)return t-(_m.A-10);if(t>=_m.a&&t<=_m.f)return t-(_m.a-10)}function Yve(t,e={}){let{dir:r,size:n=32}=e;if(n===0)return t;if(t.length>n)throw new bk({size:t.length,targetSize:n,type:\\\"Bytes\\\"});let i=new Uint8Array(n);for(let s=0;s<n;s++){let o=r===\\\"right\\\";i[o?s:n-s-1]=t[o?s:t.length-s-1]}return i}function pQ(t,e={}){let{dir:r=\\\"left\\\"}=e,n=t,i=0;for(let s=0;s<n.length-1&&n[r===\\\"left\\\"?s:n.length-s-1].toString()===\\\"0\\\";s++)i++;return n=r===\\\"left\\\"?n.slice(i):n.slice(0,n.length-i),n}var _m,Xve=x(()=>{u();ly();_m={zero:48,nine:57,A:65,F:70,a:97,f:102}});function W5(t,e){if(_i(t)>e)throw new wk({givenSize:_i(t),maxSize:e})}function e2e(t,e){if(typeof e==\\\"number\\\"&&e>0&&e>_i(t)-1)throw new EA({offset:e,position:\\\"start\\\",size:_i(t)})}function t2e(t,e,r){if(typeof e==\\\"number\\\"&&typeof r==\\\"number\\\"&&_i(t)!==r-e)throw new EA({offset:r,position:\\\"end\\\",size:_i(t)})}function hQ(t,e={}){let{dir:r,size:n=32}=e;if(n===0)return t;let i=t.replace(\\\"0x\\\",\\\"\\\");if(i.length>n*2)throw new vk({size:Math.ceil(i.length/2),targetSize:n,type:\\\"Hex\\\"});return`0x${i[r===\\\"right\\\"?\\\"padEnd\\\":\\\"padStart\\\"](n*2,\\\"0\\\")}`}function r2e(t,e={}){let{dir:r=\\\"left\\\"}=e,n=t.replace(\\\"0x\\\",\\\"\\\"),i=0;for(let s=0;s<n.length-1&&n[r===\\\"left\\\"?s:n.length-s-1].toString()===\\\"0\\\";s++)i++;return n=r===\\\"left\\\"?n.slice(i):n.slice(0,n.length-i),n===\\\"0\\\"?\\\"0x\\\":r===\\\"right\\\"&&n.length%2===1?`0x${n}0`:`0x${n}`}var mQ=x(()=>{u();io()});function uy(t,e,r){return JSON.stringify(t,(n,i)=>typeof e==\\\"function\\\"?e(n,i):typeof i==\\\"bigint\\\"?i.toString()+Edt:i,r)}var Edt,_A=x(()=>{u();Edt=\\\"#__bigint\\\"});function Sdt(t){if(!(t instanceof Uint8Array)){if(!t)throw new G5(t);if(typeof t!=\\\"object\\\")throw new G5(t);if(!(\\\"BYTES_PER_ELEMENT\\\"in t))throw new G5(t);if(t.BYTES_PER_ELEMENT!==1||t.constructor.name!==\\\"Uint8Array\\\")throw new G5(t)}}function i2e(t){return t instanceof Uint8Array?t:typeof t==\\\"string\\\"?K5(t):Adt(t)}function Adt(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function K5(t,e={}){let{size:r}=e,n=t;r&&(W5(t,r),n=dp(t,r));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,o=new Uint8Array(s);for(let a=0,c=0;a<s;a++){let l=fQ(i.charCodeAt(c++)),d=fQ(i.charCodeAt(c++));if(l===void 0||d===void 0)throw new $e(`Invalid byte sequence (\\\"${i[c-2]}${i[c-1]}\\\" in \\\"${i}\\\").`);o[a]=l<<4|d}return o}function s2e(t,e={}){let{size:r}=e,n=Cdt.encode(t);return typeof r==\\\"number\\\"?(V5(n,r),Tdt(n,r)):n}function Tdt(t,e){return Yve(t,{dir:\\\"right\\\",size:e})}function Cu(t){return t.length}function o2e(t,e,r,n={}){let{strict:i}=n;Qve(t,e);let s=t.slice(e,r);return i&&Jve(s,e,r),s}function a2e(t,e={}){let{size:r}=e;typeof r<\\\"u\\\"&&V5(t,r);let n=ls(t,e);return bQ(n,e)}function c2e(t,e={}){let{size:r}=e,n=t;if(typeof r<\\\"u\\\"&&(V5(n,r),n=yQ(n)),n.length>1||n[0]>1)throw new gQ(n);return!!n[0]}function up(t,e={}){let{size:r}=e;typeof r<\\\"u\\\"&&V5(t,r);let n=ls(t,e);return Ek(n,e)}function l2e(t,e={}){let{size:r}=e,n=t;return typeof r<\\\"u\\\"&&(V5(n,r),n=Idt(n)),_dt.decode(n)}function yQ(t){return pQ(t,{dir:\\\"left\\\"})}function Idt(t){return pQ(t,{dir:\\\"right\\\"})}function u2e(t){try{return Sdt(t),!0}catch{return!1}}var _dt,Cdt,gQ,G5,yk,xA,bk,ly=x(()=>{u();Ic();io();Xve();mQ();_A();_dt=new TextDecoder,Cdt=new TextEncoder;gQ=class extends $e{constructor(e){super(`Bytes value \\\\`${e}\\\\` is not a valid boolean.`,{metaMessages:[\\\"The bytes array must contain a single byte of either a `0` or `1` value.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.InvalidBytesBooleanError\\\"})}},G5=class extends $e{constructor(e){super(`Value \\\\`${typeof e==\\\"object\\\"?uy(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid Bytes value.`,{metaMessages:[\\\"Bytes values must be of type `Bytes`.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.InvalidBytesTypeError\\\"})}},yk=class extends $e{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SizeOverflowError\\\"})}},xA=class extends $e{constructor({offset:e,position:r,size:n}){super(`Slice ${r===\\\"start\\\"?\\\"starting\\\":\\\"ending\\\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SliceOffsetOutOfBoundsError\\\"})}},bk=class extends $e{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SizeExceedsPaddingSizeError\\\"})}}});function Odt(t,e={}){let{strict:r=!1}=e;if(!t)throw new _k(t);if(typeof t!=\\\"string\\\")throw new _k(t);if(r&&!/^0x[0-9a-fA-F]*$/.test(t))throw new Ck(t);if(!t.startsWith(\\\"0x\\\"))throw new Ck(t)}function Ni(...t){return`0x${t.reduce((e,r)=>e+r.replace(\\\"0x\\\",\\\"\\\"),\\\"\\\")}`}function Z5(t){return t instanceof Uint8Array?ls(t):Array.isArray(t)?ls(new Uint8Array(t)):t}function Sk(t,e={}){let r=`0x${Number(t)}`;return typeof e.size==\\\"number\\\"?(W5(r,e.size),Cm(r,e.size)):r}function ls(t,e={}){let r=\\\"\\\";for(let i=0;i<t.length;i++)r+=Pdt[t[i]];let n=`0x${r}`;return typeof e.size==\\\"number\\\"?(W5(n,e.size),dp(n,e.size)):n}function Sr(t,e={}){let{signed:r,size:n}=e,i=BigInt(t),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof t==\\\"number\\\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let o=typeof s==\\\"bigint\\\"&&r?-s-1n:0;if(s&&i>s||i<o){let l=typeof t==\\\"bigint\\\"?\\\"n\\\":\\\"\\\";throw new CA({max:s?`${s}${l}`:void 0,min:`${o}${l}`,signed:r,size:n,value:`${t}${l}`})}let c=`0x${(r&&i<0?BigInt.asUintN(n*8,BigInt(i)):i).toString(16)}`;return n?Cm(c,n):c}function Q5(t,e={}){return ls(Rdt.encode(t),e)}function Cm(t,e){return hQ(t,{dir:\\\"left\\\",size:e})}function dp(t,e){return hQ(t,{dir:\\\"right\\\",size:e})}function Ci(t,e,r,n={}){let{strict:i}=n;e2e(t,e);let s=`0x${t.replace(\\\"0x\\\",\\\"\\\").slice((e??0)*2,(r??t.length)*2)}`;return i&&t2e(s,e,r),s}function _i(t){return Math.ceil((t.length-2)/2)}function wQ(t){return r2e(t,{dir:\\\"left\\\"})}function bQ(t,e={}){let{signed:r}=e;e.size&&W5(t,e.size);let n=BigInt(t);if(!r)return n;let i=(t.length-2)/2,s=(1n<<BigInt(i)*8n)-1n,o=s>>1n;return n<=o?n:n-s-1n}function Ek(t,e={}){let{signed:r,size:n}=e;return Number(!r&&!n?t:bQ(t,e))}function SA(t,e={}){let{strict:r=!1}=e;try{return Odt(t,{strict:r}),!0}catch{return!1}}var Rdt,Pdt,CA,_k,Ck,wk,EA,vk,io=x(()=>{u();Ic();mQ();_A();Rdt=new TextEncoder,Pdt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));CA=class extends $e{constructor({max:e,min:r,signed:n,size:i,value:s}){super(`Number \\\\`${s}\\\\` is not in safe${i?` ${i*8}-bit`:\\\"\\\"}${n?\\\" signed\\\":\\\" unsigned\\\"} integer range ${e?`(\\\\`${r}\\\\` to \\\\`${e}\\\\`)`:`(above \\\\`${r}\\\\`)`}`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.IntegerOutOfRangeError\\\"})}},_k=class extends $e{constructor(e){super(`Value \\\\`${typeof e==\\\"object\\\"?uy(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `\\\"0x${string}\\\"`.']}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidHexTypeError\\\"})}},Ck=class extends $e{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid hex value.`,{metaMessages:['Hex values must start with `\\\"0x\\\"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidHexValueError\\\"})}},wk=class extends $e{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SizeOverflowError\\\"})}},EA=class extends $e{constructor({offset:e,position:r,size:n}){super(`Slice ${r===\\\"start\\\"?\\\"starting\\\":\\\"ending\\\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SliceOffsetOutOfBoundsError\\\"})}},vk=class extends $e{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SizeExceedsPaddingSizeError\\\"})}}});function d2e(t){return{address:t.address,amount:Sr(t.amount),index:Sr(t.index),validatorIndex:Sr(t.validatorIndex)}}var f2e=x(()=>{u();io()});function Ak(t){return{...typeof t.baseFeePerGas==\\\"bigint\\\"&&{baseFeePerGas:Sr(t.baseFeePerGas)},...typeof t.blobBaseFee==\\\"bigint\\\"&&{blobBaseFee:Sr(t.blobBaseFee)},...typeof t.feeRecipient==\\\"string\\\"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit==\\\"bigint\\\"&&{gasLimit:Sr(t.gasLimit)},...typeof t.number==\\\"bigint\\\"&&{number:Sr(t.number)},...typeof t.prevRandao==\\\"bigint\\\"&&{prevRandao:Sr(t.prevRandao)},...typeof t.time==\\\"bigint\\\"&&{time:Sr(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(d2e)}}}var vQ=x(()=>{u();io();f2e()});var Wd,Tk,h2e,Ik,m2e,xQ,EQ,_Q,AA,CQ,fp=x(()=>{u();Wd=[{inputs:[{components:[{name:\\\"target\\\",type:\\\"address\\\"},{name:\\\"allowFailure\\\",type:\\\"bool\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"}],name:\\\"calls\\\",type:\\\"tuple[]\\\"}],name:\\\"aggregate3\\\",outputs:[{components:[{name:\\\"success\\\",type:\\\"bool\\\"},{name:\\\"returnData\\\",type:\\\"bytes\\\"}],name:\\\"returnData\\\",type:\\\"tuple[]\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"addr\\\",type:\\\"address\\\"}],name:\\\"getEthBalance\\\",outputs:[{name:\\\"balance\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"getCurrentBlockTimestamp\\\",outputs:[{internalType:\\\"uint256\\\",name:\\\"timestamp\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"}],Tk=[{name:\\\"query\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{type:\\\"tuple[]\\\",name:\\\"queries\\\",components:[{type:\\\"address\\\",name:\\\"sender\\\"},{type:\\\"string[]\\\",name:\\\"urls\\\"},{type:\\\"bytes\\\",name:\\\"data\\\"}]}],outputs:[{type:\\\"bool[]\\\",name:\\\"failures\\\"},{type:\\\"bytes[]\\\",name:\\\"responses\\\"}]},{name:\\\"HttpError\\\",type:\\\"error\\\",inputs:[{type:\\\"uint16\\\",name:\\\"status\\\"},{type:\\\"string\\\",name:\\\"message\\\"}]}],h2e=[{inputs:[{name:\\\"dns\\\",type:\\\"bytes\\\"}],name:\\\"DNSDecodingFailed\\\",type:\\\"error\\\"},{inputs:[{name:\\\"ens\\\",type:\\\"string\\\"}],name:\\\"DNSEncodingFailed\\\",type:\\\"error\\\"},{inputs:[],name:\\\"EmptyAddress\\\",type:\\\"error\\\"},{inputs:[{name:\\\"status\\\",type:\\\"uint16\\\"},{name:\\\"message\\\",type:\\\"string\\\"}],name:\\\"HttpError\\\",type:\\\"error\\\"},{inputs:[],name:\\\"InvalidBatchGatewayResponse\\\",type:\\\"error\\\"},{inputs:[{name:\\\"errorData\\\",type:\\\"bytes\\\"}],name:\\\"ResolverError\\\",type:\\\"error\\\"},{inputs:[{name:\\\"name\\\",type:\\\"bytes\\\"},{name:\\\"resolver\\\",type:\\\"address\\\"}],name:\\\"ResolverNotContract\\\",type:\\\"error\\\"},{inputs:[{name:\\\"name\\\",type:\\\"bytes\\\"}],name:\\\"ResolverNotFound\\\",type:\\\"error\\\"},{inputs:[{name:\\\"primary\\\",type:\\\"string\\\"},{name:\\\"primaryAddress\\\",type:\\\"bytes\\\"}],name:\\\"ReverseAddressMismatch\\\",type:\\\"error\\\"},{inputs:[{internalType:\\\"bytes4\\\",name:\\\"selector\\\",type:\\\"bytes4\\\"}],name:\\\"UnsupportedResolverProfile\\\",type:\\\"error\\\"}],Ik=[...h2e,{name:\\\"resolveWithGateways\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"name\\\",type:\\\"bytes\\\"},{name:\\\"data\\\",type:\\\"bytes\\\"},{name:\\\"gateways\\\",type:\\\"string[]\\\"}],outputs:[{name:\\\"\\\",type:\\\"bytes\\\"},{name:\\\"address\\\",type:\\\"address\\\"}]}],m2e=[...h2e,{name:\\\"reverseWithGateways\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{type:\\\"bytes\\\",name:\\\"reverseName\\\"},{type:\\\"uint256\\\",name:\\\"coinType\\\"},{type:\\\"string[]\\\",name:\\\"gateways\\\"}],outputs:[{type:\\\"string\\\",name:\\\"resolvedName\\\"},{type:\\\"address\\\",name:\\\"resolver\\\"},{type:\\\"address\\\",name:\\\"reverseResolver\\\"}]}],xQ=[{name:\\\"text\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"name\\\",type:\\\"bytes32\\\"},{name:\\\"key\\\",type:\\\"string\\\"}],outputs:[{name:\\\"\\\",type:\\\"string\\\"}]}],EQ=[{name:\\\"addr\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"name\\\",type:\\\"bytes32\\\"}],outputs:[{name:\\\"\\\",type:\\\"address\\\"}]},{name:\\\"addr\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"name\\\",type:\\\"bytes32\\\"},{name:\\\"coinType\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"bytes\\\"}]}],_Q=[{name:\\\"isValidSignature\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"hash\\\",type:\\\"bytes32\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],outputs:[{name:\\\"\\\",type:\\\"bytes4\\\"}]}],AA=[{inputs:[{name:\\\"_signer\\\",type:\\\"address\\\"},{name:\\\"_hash\\\",type:\\\"bytes32\\\"},{name:\\\"_signature\\\",type:\\\"bytes\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"constructor\\\"},{inputs:[{name:\\\"_signer\\\",type:\\\"address\\\"},{name:\\\"_hash\\\",type:\\\"bytes32\\\"},{name:\\\"_signature\\\",type:\\\"bytes\\\"}],outputs:[{type:\\\"bool\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\",name:\\\"isValidSig\\\"}],CQ=[{type:\\\"event\\\",name:\\\"Approval\\\",inputs:[{indexed:!0,name:\\\"owner\\\",type:\\\"address\\\"},{indexed:!0,name:\\\"spender\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"value\\\",type:\\\"uint256\\\"}]},{type:\\\"event\\\",name:\\\"Transfer\\\",inputs:[{indexed:!0,name:\\\"from\\\",type:\\\"address\\\"},{indexed:!0,name:\\\"to\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"value\\\",type:\\\"uint256\\\"}]},{type:\\\"function\\\",name:\\\"allowance\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"owner\\\",type:\\\"address\\\"},{name:\\\"spender\\\",type:\\\"address\\\"}],outputs:[{type:\\\"uint256\\\"}]},{type:\\\"function\\\",name:\\\"approve\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"spender\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[{type:\\\"bool\\\"}]},{type:\\\"function\\\",name:\\\"balanceOf\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],outputs:[{type:\\\"uint256\\\"}]},{type:\\\"function\\\",name:\\\"decimals\\\",stateMutability:\\\"view\\\",inputs:[],outputs:[{type:\\\"uint8\\\"}]},{type:\\\"function\\\",name:\\\"name\\\",stateMutability:\\\"view\\\",inputs:[],outputs:[{type:\\\"string\\\"}]},{type:\\\"function\\\",name:\\\"symbol\\\",stateMutability:\\\"view\\\",inputs:[],outputs:[{type:\\\"string\\\"}]},{type:\\\"function\\\",name:\\\"totalSupply\\\",stateMutability:\\\"view\\\",inputs:[],outputs:[{type:\\\"uint256\\\"}]},{type:\\\"function\\\",name:\\\"transfer\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"recipient\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[{type:\\\"bool\\\"}]},{type:\\\"function\\\",name:\\\"transferFrom\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"recipient\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[{type:\\\"bool\\\"}]}]});var g2e,y2e=x(()=>{u();g2e=\\\"0x82ad56cb\\\"});var Rk,b2e,w2e,J5,TA=x(()=>{u();Rk=\\\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\\\",b2e=\\\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\\\",w2e=\\\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\\\",J5=\\\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\\\"});var Ew,Pk,Ok,IA,Gd,_w=x(()=>{u();st();Ew=class extends W{constructor({blockNumber:e,chain:r,contract:n}){super(`Chain \\\"${r.name}\\\" does not support contract \\\"${n.name}\\\".`,{metaMessages:[\\\"This could be due to any of the following:\\\",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract \\\"${n.name}\\\" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract \\\"${n.name}\\\" configured.`]],name:\\\"ChainDoesNotSupportContract\\\"})}},Pk=class extends W{constructor({chain:e,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${e.id} \\\\u2013 ${e.name}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${e.id} \\\\u2013 ${e.name}`],name:\\\"ChainMismatchError\\\"})}},Ok=class extends W{constructor(){super([\\\"No chain was provided to the request.\\\",\\\"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.\\\"].join(`\\n`),{name:\\\"ChainNotFoundError\\\"})}},IA=class extends W{constructor(){super(\\\"No chain was provided to the Client.\\\",{name:\\\"ClientChainNotConfiguredError\\\"})}},Gd=class extends W{constructor({chainId:e}){super(typeof e==\\\"number\\\"?`Chain ID \\\"${e}\\\" is invalid.`:\\\"Chain ID is invalid.\\\",{name:\\\"InvalidChainIdError\\\"})}}});function Cw(t){let{abi:e,args:r,bytecode:n}=t;if(!r||r.length===0)return n;let i=e.find(o=>\\\"type\\\"in o&&o.type===\\\"constructor\\\");if(!i)throw new KO({docsPath:SQ});if(!(\\\"inputs\\\"in i))throw new kS({docsPath:SQ});if(!i.inputs||i.inputs.length===0)throw new kS({docsPath:SQ});let s=Vn(i.inputs,r);return ln([n,s])}var SQ,Nk=x(()=>{u();Ki();Ei();wu();SQ=\\\"/docs/contract/encodeDeployData\\\"});function Su({blockNumber:t,chain:e,contract:r}){let n=e?.contracts?.[r];if(!n)throw new Ew({chain:e,contract:{name:r}});if(t&&n.blockCreated&&n.blockCreated>t)throw new Ew({blockNumber:t,chain:e,contract:{name:r,blockCreated:n.blockCreated}});return n.address}var Sw=x(()=>{u();_w()});function Y5(t,{docsPath:e,...r}){let n=(()=>{let i=Yg(t,r);return i instanceof Eu?t:i})();return new h5(n,{docsPath:e,...r})}var kk=x(()=>{u();dm();cp();fA()});function X5(){let t=()=>{},e=()=>{};return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}}var Bk=x(()=>{u()});function Mk({fn:t,id:e,shouldSplitBatch:r,wait:n=0,sort:i}){let s=async()=>{let d=c();o();let f=d.map(({args:p})=>p);f.length!==0&&t(f).then(p=>{i&&Array.isArray(p)&&p.sort(i);for(let h=0;h<d.length;h++){let{resolve:m}=d[h];m?.([p[h],p])}}).catch(p=>{for(let h=0;h<d.length;h++){let{reject:m}=d[h];m?.(p)}})},o=()=>AQ.delete(e),a=()=>c().map(({args:d})=>d),c=()=>AQ.get(e)||[],l=d=>AQ.set(e,[...c(),d]);return{flush:o,async schedule(d){let{promise:f,resolve:p,reject:h}=X5();return r?.([...a(),d])&&s(),c().length>0?(l({args:d,resolve:p,reject:h}),f):(l({args:d,resolve:p,reject:h}),setTimeout(s,n),f)}}}var AQ,TQ=x(()=>{u();Bk();AQ=new Map});var Dk,Lk,Uk,v2e=x(()=>{u();ko();st();DN();Dk=class extends W{constructor({callbackSelector:e,cause:r,data:n,extraData:i,sender:s,urls:o}){super(r.shortMessage||\\\"An error occurred while fetching for an offchain result.\\\",{cause:r,metaMessages:[...r.metaMessages||[],r.metaMessages?.length?\\\"\\\":[],\\\"Offchain Gateway Call:\\\",o&&[\\\"  Gateway URL(s):\\\",...o.map(a=>`    ${Xb(a)}`)],`  Sender: ${s}`,`  Data: ${n}`,`  Callback selector: ${e}`,`  Extra data: ${i}`].flat(),name:\\\"OffchainLookupError\\\"})}},Lk=class extends W{constructor({result:e,url:r}){super(\\\"Offchain gateway response is malformed. Response data must be a hex value.\\\",{metaMessages:[`Gateway URL: ${Xb(r)}`,`Response: ${qt(e)}`],name:\\\"OffchainLookupResponseMalformedError\\\"})}},Uk=class extends W{constructor({sender:e,to:r}){super(\\\"Reverted sender address does not match target contract address (`to`).\\\",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${e}`],name:\\\"OffchainLookupSenderMismatchError\\\"})}}});function Aw(t){let{abi:e,data:r}=t,n=No(r,0,4),i=e.find(s=>s.type===\\\"function\\\"&&n===tp(js(s)));if(!i)throw new eN(n,{docsPath:\\\"/docs/contract/decodeFunctionData\\\"});return{functionName:i.name,args:\\\"inputs\\\"in i&&i.inputs&&i.inputs.length>0?Cc(i.inputs,No(r,4)):void 0}}var IQ=x(()=>{u();Ki();ep();n5();c5();em()});function PQ(t){let{abi:e,errorName:r,args:n}=t,i=e[0];if(r){let c=_c({abi:e,args:n,name:r});if(!c)throw new BS(r,{docsPath:RQ});i=c}if(i.type!==\\\"error\\\")throw new BS(void 0,{docsPath:RQ});let s=js(i),o=tp(s),a=\\\"0x\\\";if(n&&n.length>0){if(!i.inputs)throw new JO(i.name,{docsPath:RQ});a=Vn(i.inputs,n)}return ln([o,a])}var RQ,x2e=x(()=>{u();Ki();Ei();n5();wu();em();Ug();RQ=\\\"/docs/contract/encodeErrorResult\\\"});function E2e(t){let{abi:e,functionName:r,result:n}=t,i=e[0];if(r){let o=_c({abi:e,name:r});if(!o)throw new Od(r,{docsPath:OQ});i=o}if(i.type!==\\\"function\\\")throw new Od(void 0,{docsPath:OQ});if(!i.outputs)throw new YE(i.name,{docsPath:OQ});let s=(()=>{if(i.outputs.length===0)return[];if(i.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new e5(n)})();return Vn(i.outputs,s)}var OQ,_2e=x(()=>{u();Ki();wu();Ug();OQ=\\\"/docs/contract/encodeFunctionResult\\\"});async function NQ(t){let{data:e,ccipRequest:r}=t,{args:[n]}=Aw({abi:Tk,data:e}),i=[],s=[];return await Promise.all(n.map(async(o,a)=>{try{s[a]=o.urls.includes(Sm)?await NQ({data:o.data,ccipRequest:r}):await r(o),i[a]=!1}catch(c){i[a]=!0,s[a]=kdt(c)}})),E2e({abi:Tk,functionName:\\\"query\\\",result:[i,s]})}function kdt(t){return t.name===\\\"HttpRequestError\\\"&&t.status?PQ({abi:Tk,errorName:\\\"HttpError\\\",args:[t.status,t.shortMessage]}):PQ({abi:[EN],errorName:\\\"Error\\\",args:[\\\"shortMessage\\\"in t?t.shortMessage:t.message]})}var Sm,RA=x(()=>{u();fp();_N();IQ();x2e();_2e();Sm=\\\"x-batch-gateway:true\\\"});var A2e={};ue(A2e,{ccipRequest:()=>S2e,offchainLookup:()=>Mdt,offchainLookupAbiItem:()=>C2e,offchainLookupSignature:()=>Bdt});async function Mdt(t,{blockNumber:e,blockTag:r,data:n,to:i}){let{args:s}=l5({data:n,abi:[C2e]}),[o,a,c,l,d]=s,{ccipRead:f}=t,p=f&&typeof f?.request==\\\"function\\\"?f.request:S2e;try{if(!ha(i,o))throw new Uk({sender:o,to:i});let h=a.includes(Sm)?await NQ({data:c,ccipRequest:p}):await p({data:c,sender:o,urls:a}),{data:m}=await Au(t,{blockNumber:e,blockTag:r,data:Jt([l,Vn([{type:\\\"bytes\\\"},{type:\\\"bytes\\\"}],[h,d])]),to:i});return m}catch(h){throw new Dk({callbackSelector:l,cause:h,data:n,extraData:d,sender:o,urls:a})}}async function S2e({data:t,sender:e,urls:r}){let n=new Error(\\\"An unknown error occurred.\\\");for(let i=0;i<r.length;i++){let s=r[i],o=s.includes(\\\"{data}\\\")?\\\"GET\\\":\\\"POST\\\",a=o===\\\"POST\\\"?{data:t,sender:e}:void 0,c=o===\\\"POST\\\"?{\\\"Content-Type\\\":\\\"application/json\\\"}:{};try{let l=await fetch(s.replace(\\\"{sender}\\\",e.toLowerCase()).replace(\\\"{data}\\\",t),{body:JSON.stringify(a),headers:c,method:o}),d;if(l.headers.get(\\\"Content-Type\\\")?.startsWith(\\\"application/json\\\")?d=(await l.json()).data:d=await l.text(),!l.ok){n=new vu({body:a,details:d?.error?qt(d.error):l.statusText,headers:l.headers,status:l.status,url:s});continue}if(!Ur(d)){n=new Lk({result:d,url:s});continue}return d}catch(l){n=new vu({body:a,details:l.message,url:s})}}throw n}var Bdt,C2e,T2e=x(()=>{u();Tw();v2e();ew();AN();wu();cy();Ei();gu();RA();ko();Bdt=\\\"0x556f1830\\\",C2e={name:\\\"OffchainLookup\\\",type:\\\"error\\\",inputs:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"urls\\\",type:\\\"string[]\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callbackFunction\\\",type:\\\"bytes4\\\"},{name:\\\"extraData\\\",type:\\\"bytes\\\"}]}});async function Au(t,e){let{account:r=t.account,authorizationList:n,batch:i=!!t.batch?.multicall,blockNumber:s,blockTag:o=t.experimental_blockTag??\\\"latest\\\",accessList:a,blobs:c,blockOverrides:l,code:d,data:f,factory:p,factoryData:h,gas:m,gasPrice:g,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:b,nonce:_,to:S,value:T,stateOverride:N,...O}=e,L=r?Ze(r):void 0;if(d&&(p||h))throw new W(\\\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\\\");if(d&&S)throw new W(\\\"Cannot provide both `code` & `to` as parameters.\\\");let B=d&&f,H=p&&h&&S&&f,M=B||H,F=B?I2e({code:d,data:f}):H?Udt({data:f,factory:p,factoryData:h,to:S}):f;try{xs(e);let y=(typeof s==\\\"bigint\\\"?Z(s):void 0)||o,E=l?Ak(l):void 0,C=ty(N),I=t.chain?.formatters?.transactionRequest?.format,k=(I||Hs)({...Tc(O,{format:I}),accessList:a,account:L,authorizationList:n,blobs:c,data:F,gas:m,gasPrice:g,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:b,nonce:_,to:M?void 0:S,value:T},\\\"call\\\");if(i&&Ddt({request:k})&&!C&&!E)try{return await Ldt(t,{...k,blockNumber:s,blockTag:o})}catch(A){if(!(A instanceof IA)&&!(A instanceof Ew))throw A}let U=(()=>{let A=[k,y];return C&&E?[...A,C,E]:C?[...A,C]:E?[...A,{},E]:A})(),D=await t.request({method:\\\"eth_call\\\",params:U});return D===\\\"0x\\\"?{data:void 0}:{data:D}}catch(R){let y=Fdt(R),{offchainLookup:E,offchainLookupSignature:C}=await Promise.resolve().then(()=>(T2e(),A2e));if(t.ccipRead!==!1&&y?.slice(0,10)===C&&S)return{data:await E(t,{data:y,to:S})};throw M&&y?.slice(0,10)===\\\"0x101bb98d\\\"?new LN({factory:p}):Y5(R,{...e,account:L,chain:t.chain})}}function Ddt({request:t}){let{data:e,to:r,...n}=t;return!(!e||e.startsWith(g2e)||!r||Object.values(n).filter(i=>typeof i<\\\"u\\\").length>0)}async function Ldt(t,e){let{batchSize:r=1024,deployless:n=!1,wait:i=0}=typeof t.batch?.multicall==\\\"object\\\"?t.batch.multicall:{},{blockNumber:s,blockTag:o=t.experimental_blockTag??\\\"latest\\\",data:a,to:c}=e,l=(()=>{if(n)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return Su({blockNumber:s,chain:t.chain,contract:\\\"multicall3\\\"});throw new IA})(),f=(typeof s==\\\"bigint\\\"?Z(s):void 0)||o,{schedule:p}=Mk({id:`${t.uid}.${f}`,wait:i,shouldSplitBatch(g){return g.reduce((v,{data:b})=>v+(b.length-2),0)>r*2},fn:async g=>{let w=g.map(_=>({allowFailure:!0,callData:_.data,target:_.to})),v=At({abi:Wd,args:[w],functionName:\\\"aggregate3\\\"}),b=await t.request({method:\\\"eth_call\\\",params:[{...l===null?{data:I2e({code:J5,data:v})}:{to:l,data:v}},f]});return ma({abi:Wd,args:[w],functionName:\\\"aggregate3\\\",data:b||\\\"0x\\\"})}}),[{returnData:h,success:m}]=await p({data:a,to:c});if(!m)throw new ip({data:h});return h===\\\"0x\\\"?{data:void 0}:{data:h}}function I2e(t){let{code:e,data:r}=t;return Cw({abi:GE([\\\"constructor(bytes, bytes)\\\"]),bytecode:Rk,args:[e,r]})}function Udt(t){let{data:e,factory:r,factoryData:n,to:i}=t;return Cw({abi:GE([\\\"constructor(address, bytes, address, bytes)\\\"]),bytecode:b2e,args:[i,e,r,n]})}function Fdt(t){if(!(t instanceof W))return;let e=t.walk();return typeof e?.data==\\\"object\\\"?e.data?.data:e.data}var Tw=x(()=>{u();KE();vQ();en();fp();y2e();TA();st();_w();dm();Em();Nk();fa();Sw();qe();kk();Xg();_u();TQ();hA();qd()});async function Tn(t,e){let{abi:r,address:n,args:i,functionName:s,...o}=e,a=At({abi:r,args:i,functionName:s});try{let{data:c}=await ae(t,Au,\\\"call\\\")({...o,data:a,to:n});return ma({abi:r,args:i,functionName:s,data:c||\\\"0x\\\"})}catch(c){throw xl(c,{abi:r,address:n,args:i,docsPath:\\\"/docs/contract/readContract\\\",functionName:s})}}var Tu=x(()=>{u();Em();fa();gw();Ut();Tw()});async function R2e(t,e){let{abi:r,address:n,args:i,functionName:s,dataSuffix:o=typeof t.dataSuffix==\\\"string\\\"?t.dataSuffix:t.dataSuffix?.value,...a}=e,c=a.account?Ze(a.account):t.account,l=At({abi:r,args:i,functionName:s});try{let{data:d}=await ae(t,Au,\\\"call\\\")({batch:!1,data:`${l}${o?o.replace(\\\"0x\\\",\\\"\\\"):\\\"\\\"}`,to:n,...a,account:c}),f=ma({abi:r,args:i,functionName:s,data:d||\\\"0x\\\"}),p=r.filter(h=>\\\"name\\\"in h&&h.name===e.functionName);return{result:f,request:{abi:p,address:n,args:i,dataSuffix:o,functionName:s,...a,account:c}}}catch(d){throw xl(d,{abi:r,address:n,args:i,docsPath:\\\"/docs/contract/simulateContract\\\",functionName:s,sender:c?.address})}}var P2e=x(()=>{u();en();Em();fa();gw();Ut();Tw()});function so(t,e,r){let n=++jdt,i=()=>kQ.get(t)||[],s=()=>{let d=i();kQ.set(t,d.filter(f=>f.id!==n))},o=()=>{let d=i();if(!d.some(p=>p.id===n))return;let f=O2e.get(t);if(d.length===1&&f){let p=f();p instanceof Promise&&p.catch(()=>{})}s()},a=i();if(kQ.set(t,[...a,{id:n,fns:e}]),a&&a.length>0)return o;let c={};for(let d in e)c[d]=((...f)=>{let p=i();if(p.length!==0)for(let h of p)h.fns[d]?.(...f)});let l=r(c);return typeof l==\\\"function\\\"&&O2e.set(t,l),o}var kQ,O2e,jdt,Am=x(()=>{u();kQ=new Map,O2e=new Map,jdt=0});async function Iw(t){return new Promise(e=>setTimeout(e,t))}var Fk=x(()=>{u()});function Rc(t,{emitOnBegin:e,initialWaitTime:r,interval:n}){let i=!0,s=()=>i=!1;return(async()=>{let a;e&&(a=await t({unpoll:s}));let c=await r?.(a)??n;await Iw(c);let l=async()=>{i&&(await t({unpoll:s}),await Iw(n),l())};l()})(),s}var dy=x(()=>{u();Fk()});function N2e(t){let e=(i,s)=>({clear:()=>s.delete(i),get:()=>s.get(i),set:o=>s.set(i,o)}),r=e(t,Hdt),n=e(t,qdt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function k2e(t,{cacheKey:e,cacheTime:r=Number.POSITIVE_INFINITY}){let n=N2e(e),i=n.response.get();if(i&&r>0&&Date.now()-i.created.getTime()<r)return i.data;let s=n.promise.get();s||(s=t(),n.promise.set(s));try{let o=await s;return n.response.set({created:new Date,data:o}),o}finally{n.promise.clear()}}var Hdt,qdt,B2e=x(()=>{u();Hdt=new Map,qdt=new Map});async function pp(t,{cacheTime:e=t.cacheTime}={}){let r=await k2e(()=>t.request({method:\\\"eth_blockNumber\\\"}),{cacheKey:zdt(t.uid),cacheTime:e});return BigInt(r)}var zdt,e6=x(()=>{u();B2e();zdt=t=>`blockNumber.${t}`});async function fy(t,{filter:e}){let r=\\\"strict\\\"in e&&e.strict,n=await e.request({method:\\\"eth_getFilterChanges\\\",params:[e.id]});if(typeof n[0]==\\\"string\\\")return n;let i=n.map(s=>Qi(s));return!(\\\"abi\\\"in e)||!e.abi?i:z5({abi:e.abi,logs:i,strict:r})}var PA=x(()=>{u();hk();Vd()});async function py(t,{filter:e}){return e.request({method:\\\"eth_uninstallFilter\\\",params:[e.id]})}var OA=x(()=>{u()});function M2e(t,e){let{abi:r,address:n,args:i,batch:s=!0,eventName:o,fromBlock:a,onError:c,onLogs:l,poll:d,pollingInterval:f=t.pollingInterval,strict:p}=e;return(typeof d<\\\"u\\\"?d:typeof a==\\\"bigint\\\"?!0:!(t.transport.type===\\\"webSocket\\\"||t.transport.type===\\\"ipc\\\"||t.transport.type===\\\"fallback\\\"&&(t.transport.transports[0].config.type===\\\"webSocket\\\"||t.transport.transports[0].config.type===\\\"ipc\\\")))?(()=>{let w=p??!1,v=qt([\\\"watchContractEvent\\\",n,i,s,t.uid,o,f,w,a]);return so(v,{onLogs:l,onError:c},b=>{let _;a!==void 0&&(_=a-1n);let S,T=!1,N=Rc(async()=>{if(!T){try{S=await ae(t,xN,\\\"createContractEventFilter\\\")({abi:r,address:n,args:i,eventName:o,strict:w,fromBlock:a})}catch{}T=!0;return}try{let O;if(S)O=await ae(t,fy,\\\"getFilterChanges\\\")({filter:S});else{let L=await ae(t,pp,\\\"getBlockNumber\\\")({});_&&_<L?O=await ae(t,gk,\\\"getContractEvents\\\")({abi:r,address:n,args:i,eventName:o,fromBlock:_+1n,toBlock:L,strict:w}):O=[],_=L}if(O.length===0)return;if(s)b.onLogs(O);else for(let L of O)b.onLogs([L])}catch(O){S&&O instanceof vl&&(T=!1),b.onError?.(O)}},{emitOnBegin:!0,interval:f});return async()=>{S&&await ae(t,py,\\\"uninstallFilter\\\")({filter:S}),N()}})})():(()=>{let w=p??!1,v=qt([\\\"watchContractEvent\\\",n,i,s,t.uid,o,f,w]),b=!0,_=()=>b=!1;return so(v,{onLogs:l,onError:c},S=>((async()=>{try{let T=(()=>{if(t.transport.type===\\\"fallback\\\"){let L=t.transport.transports.find(B=>B.config.type===\\\"webSocket\\\"||B.config.type===\\\"ipc\\\");return L?L.value:t.transport}return t.transport})(),N=o?rp({abi:r,eventName:o,args:i}):[],{unsubscribe:O}=await T.subscribe({params:[\\\"logs\\\",{address:n,topics:N}],onData(L){if(!b)return;let B=L.result;try{let{eventName:H,args:M}=vw({abi:r,data:B.data,topics:B.topics,strict:p}),F=Qi(B,{args:M,eventName:H});S.onLogs([F])}catch(H){let M,F;if(H instanceof tm||H instanceof Pg){if(p)return;M=H.abiItem.name,F=H.abiItem.inputs?.some(y=>!(\\\"name\\\"in y&&y.name))}let R=Qi(B,{args:F?[]:{},eventName:M});S.onLogs([R])}},onError(L){S.onError?.(L)}});_=O,b||_()}catch(T){c?.(T)}})(),()=>_()))})()}var D2e=x(()=>{u();Ki();$g();pk();i5();Vd();Ut();Am();dy();ko();wZ();e6();uQ();PA();OA()});var In,Iu,Cl=x(()=>{u();st();In=class extends W{constructor({docsPath:e}={}){super([\\\"Could not find an Account to execute with this Action.\\\",\\\"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.\\\"].join(`\\n`),{docsPath:e,docsSlug:\\\"account\\\",name:\\\"AccountNotFoundError\\\"})}},Iu=class extends W{constructor({docsPath:e,metaMessages:r,type:n}){super(`Account type \\\"${n}\\\" is not supported.`,{docsPath:e,metaMessages:r,name:\\\"AccountTypeNotSupportedError\\\"})}}});function t6({chain:t,currentChainId:e}){if(!t)throw new Ok;if(e!==t.id)throw new Pk({chain:t,currentChainId:e})}var jk=x(()=>{u();_w()});async function r6(t,{serializedTransaction:e}){return t.request({method:\\\"eth_sendRawTransaction\\\",params:[e]},{retryCount:0})}var Hk=x(()=>{u()});async function hy(t,e){let{account:r=t.account,assertChainId:n=!0,chain:i=t.chain,accessList:s,authorizationList:o,blobs:a,data:c,dataSuffix:l=typeof t.dataSuffix==\\\"string\\\"?t.dataSuffix:t.dataSuffix?.value,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,type:w,value:v,...b}=e;if(typeof r>\\\"u\\\")throw new In({docsPath:\\\"/docs/actions/wallet/sendTransaction\\\"});let _=r?Ze(r):null;try{xs(e);let S=await(async()=>{if(e.to)return e.to;if(e.to!==null&&o&&o.length>0)return await Jg({authorization:o[0]}).catch(()=>{throw new W(\\\"`to` is required. Could not infer from `authorizationList`.\\\")})})();if(_?.type===\\\"json-rpc\\\"||_===null){let T;i!==null&&(T=await ae(t,Es,\\\"getChainId\\\")({}),n&&t6({currentChainId:T,chain:i}));let N=t.chain?.formatters?.transactionRequest?.format,L=(N||Hs)({...Tc(b,{format:N}),accessList:s,account:_,authorizationList:o,blobs:a,chainId:T,data:l?Jt([c??\\\"0x\\\",l]):c,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,to:S,type:w,value:v},\\\"sendTransaction\\\"),B=BQ.get(t.uid),H=B?\\\"wallet_sendTransaction\\\":\\\"eth_sendTransaction\\\";try{return await t.request({method:H,params:[L]},{retryCount:0})}catch(M){if(B===!1)throw M;let F=M;if(F.name===\\\"InvalidInputRpcError\\\"||F.name===\\\"InvalidParamsRpcError\\\"||F.name===\\\"MethodNotFoundRpcError\\\"||F.name===\\\"MethodNotSupportedRpcError\\\")return await t.request({method:\\\"wallet_sendTransaction\\\",params:[L]},{retryCount:0}).then(R=>(BQ.set(t.uid,!0),R)).catch(R=>{let y=R;throw y.name===\\\"MethodNotFoundRpcError\\\"||y.name===\\\"MethodNotSupportedRpcError\\\"?(BQ.set(t.uid,!1),F):y});throw F}}if(_?.type===\\\"local\\\"){let T=await ae(t,lp,\\\"prepareTransactionRequest\\\")({account:_,accessList:s,authorizationList:o,blobs:a,chain:i,data:l?Jt([c??\\\"0x\\\",l]):c,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,nonceManager:_.nonceManager,parameters:[...vA,\\\"sidecars\\\"],type:w,value:v,...b,to:S}),N=i?.serializers?.transaction,O=await _.signTransaction(T,{serializer:N});return await ae(t,r6,\\\"sendRawTransaction\\\")({serializedTransaction:O})}throw _?.type===\\\"smart\\\"?new Iu({metaMessages:[\\\"Consider using the `sendUserOperation` Action instead.\\\"],docsPath:\\\"/docs/actions/bundler/sendUserOperation\\\",type:\\\"smart\\\"}):new Iu({docsPath:\\\"/docs/actions/wallet/sendTransaction\\\",type:_?.type})}catch(S){throw S instanceof Iu?S:ay(S,{...e,account:_,chain:e.chain||void 0})}}var BQ,NA=x(()=>{u();en();Cl();st();dA();jk();Ei();wA();Xg();_u();Ut();Lg();qd();$d();H5();Hk();BQ=new ua(128)});async function Rw(t,e){return Rw.internal(t,hy,\\\"sendTransaction\\\",e)}var MQ=x(()=>{u();en();Cl();fa();gw();Ut();NA();(function(t){async function e(r,n,i,s){let{abi:o,account:a=r.account,address:c,args:l,functionName:d,...f}=s;if(typeof a>\\\"u\\\")throw new In({docsPath:\\\"/docs/contract/writeContract\\\"});let p=a?Ze(a):null,h=At({abi:o,args:l,functionName:d});try{return await ae(r,n,i)({data:h,to:c,account:p,...f})}catch(m){throw xl(m,{abi:o,address:c,args:l,docsPath:\\\"/docs/contract/writeContract\\\",functionName:d,sender:p?.address})}}t.internal=e})(Rw||(Rw={}))});var qk,L2e=x(()=>{u();st();qk=class extends W{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:\\\"BundleFailedError\\\"}),Object.defineProperty(this,\\\"result\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}});function hp(t,{delay:e=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((i,s)=>{let o=async({count:a=0}={})=>{let c=async({error:l})=>{let d=typeof e==\\\"function\\\"?e({count:a,error:l}):e;d&&await Iw(d),o({count:a+1})};try{let l=await t();i(l)}catch(l){if(a<r&&await n({count:a,error:l}))return c({error:l});s(l)}};o()})}var kA=x(()=>{u();Fk()});function Pw(t,e){let r={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(n=>Qi(n)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?jr(t.transactionIndex):null,status:t.status?DQ[t.status]:null,type:t.type?eQ[t.type]||t.type:null};return t.blobGasPrice&&(r.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(r.blobGasUsed=BigInt(t.blobGasUsed)),r}var DQ,zk,Ow=x(()=>{u();xi();pA();Vd();iy();DQ={\\\"0x0\\\":\\\"reverted\\\",\\\"0x1\\\":\\\"success\\\"};zk=ey(\\\"transactionReceipt\\\",Pw)});async function $k(t,e){let{account:r=t.account,chain:n=t.chain,experimental_fallback:i,experimental_fallbackDelay:s=32,forceAtomic:o=!1,id:a,version:c=\\\"2.0.0\\\"}=e,l=r?Ze(r):null,d=e.capabilities;t.dataSuffix&&!e.capabilities?.dataSuffix&&(typeof t.dataSuffix==\\\"string\\\"?d={...e.capabilities,dataSuffix:{value:t.dataSuffix,optional:!0}}:d={...e.capabilities,dataSuffix:{value:t.dataSuffix.value,...t.dataSuffix.required?{}:{optional:!0}}});let f=e.calls.map(p=>{let h=p,m=h.abi?At({abi:h.abi,functionName:h.functionName,args:h.args}):h.data;return{data:h.dataSuffix&&m?Jt([m,h.dataSuffix]):m,to:h.to,value:h.value?Z(h.value):void 0}});try{let p=await t.request({method:\\\"wallet_sendCalls\\\",params:[{atomicRequired:o,calls:f,capabilities:d,chainId:Z(n.id),from:l?.address,id:a,version:c}]},{retryCount:0});return typeof p==\\\"string\\\"?{id:p}:p}catch(p){let h=p;if(i&&(h.name===\\\"MethodNotFoundRpcError\\\"||h.name===\\\"MethodNotSupportedRpcError\\\"||h.name===\\\"UnknownRpcError\\\"||h.details.toLowerCase().includes(\\\"does not exist / is not available\\\")||h.details.toLowerCase().includes(\\\"missing or invalid. request()\\\")||h.details.toLowerCase().includes(\\\"did not match any variant of untagged enum\\\")||h.details.toLowerCase().includes(\\\"account upgraded to unsupported contract\\\")||h.details.toLowerCase().includes(\\\"eip-7702 not supported\\\")||h.details.toLowerCase().includes(\\\"unsupported wc_ method\\\")||h.details.toLowerCase().includes(\\\"feature toggled misconfigured\\\")||h.details.toLowerCase().includes(\\\"jsonrpcengine: response has no error or result for request\\\"))){if(d&&Object.values(d).some(b=>!b.optional)){let b=\\\"non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.\\\";throw new hm(new W(b,{details:b}))}if(o&&f.length>1){let v=\\\"`forceAtomic` is not supported on fallback to `eth_sendTransaction`.\\\";throw new mm(new W(v,{details:v}))}let m=[];for(let v of f){let b=hy(t,{account:l,chain:n,data:v.data,to:v.to,value:v.value?Ge(v.value):void 0});m.push(b),s>0&&await new Promise(_=>setTimeout(_,s))}let g=await Promise.allSettled(m);if(g.every(v=>v.status===\\\"rejected\\\"))throw g[0].reason;let w=g.map(v=>v.status===\\\"fulfilled\\\"?v.value:UQ);return{id:Jt([...w,Z(n.id,{size:32}),LQ])}}throw ay(p,{...e,account:l,chain:e.chain})}}var LQ,UQ,Vk=x(()=>{u();en();st();$g();fa();Ei();xi();qe();wA();NA();LQ=\\\"0x5792579257925792579257925792579257925792579257925792579257925792\\\",UQ=Z(0,{size:32})});async function Wk(t,e){async function r(d){if(d.endsWith(LQ.slice(2))){let p=An(WS(d,-64,-32)),h=WS(d,0,-64).slice(2).match(/.{1,64}/g),m=await Promise.all(h.map(w=>UQ.slice(2)!==w?t.request({method:\\\"eth_getTransactionReceipt\\\",params:[`0x${w}`]},{dedupe:!0}):void 0)),g=m.some(w=>w===null)?100:m.every(w=>w?.status===\\\"0x1\\\")?200:m.every(w=>w?.status===\\\"0x0\\\")?500:600;return{atomic:!1,chainId:jr(p),receipts:m.filter(Boolean),status:g,version:\\\"2.0.0\\\"}}return t.request({method:\\\"wallet_getCallsStatus\\\",params:[d]})}let{atomic:n=!1,chainId:i,receipts:s,version:o=\\\"2.0.0\\\",...a}=await r(e.id),[c,l]=(()=>{let d=a.status;return d>=100&&d<200?[\\\"pending\\\",d]:d>=200&&d<300?[\\\"success\\\",d]:d>=300&&d<700?[\\\"failure\\\",d]:d===\\\"CONFIRMED\\\"?[\\\"success\\\",200]:d===\\\"PENDING\\\"?[\\\"pending\\\",100]:[void 0,d]})();return{...a,atomic:n,chainId:i?jr(i):void 0,receipts:s?.map(d=>({...d,blockNumber:Ge(d.blockNumber),gasUsed:Ge(d.gasUsed),status:DQ[d.status]}))??[],statusCode:l,status:c,version:o}}var FQ=x(()=>{u();ep();nm();xi();Ow();Vk()});async function Tm(t,e){let{id:r,pollingInterval:n=t.pollingInterval,status:i=({statusCode:g})=>g===200||g>=300,retryCount:s=4,retryDelay:o=({count:g})=>~~(1<<g)*200,timeout:a=6e4,throwOnFailure:c=!1}=e,l=qt([\\\"waitForCallsStatus\\\",t.uid,r]),{promise:d,resolve:f,reject:p}=X5(),h,m=so(l,{resolve:f,reject:p},g=>{let w=Rc(async()=>{let v=b=>{clearTimeout(h),w(),b(),m()};try{let b=await hp(async()=>{let _=await ae(t,Wk,\\\"getCallsStatus\\\")({id:r});if(c&&_.status===\\\"failure\\\")throw new qk(_);return _},{retryCount:s,delay:o});if(!i(b))return;v(()=>g.resolve(b))}catch(b){v(()=>g.reject(b))}},{interval:n,emitOnBegin:!0});return w});return h=a?setTimeout(()=>{m(),clearTimeout(h),p(new jQ({id:r}))},a):void 0,await d}var jQ,Gk=x(()=>{u();st();L2e();Ut();Am();dy();Bk();kA();ko();FQ();jQ=class extends W{constructor({id:e}){super(`Timed out while waiting for call bundle with id \\\"${e}\\\" to be confirmed.`,{name:\\\"WaitForCallsStatusTimeoutError\\\"})}}});function Qk(t=11){if(!Zk||Kk+t>256*2){Zk=\\\"\\\",Kk=0;for(let e=0;e<256;e++)Zk+=(256+Math.random()*256|0).toString(16).substring(1)}return Zk.substring(Kk,Kk+++t)}var Kk,Zk,HQ=x(()=>{u();Kk=256});function Im(t){let{batch:e,chain:r,ccipRead:n,dataSuffix:i,key:s=\\\"base\\\",name:o=\\\"Base Client\\\",type:a=\\\"base\\\"}=t,c=t.experimental_blockTag??(typeof r?.experimental_preconfirmationTime==\\\"number\\\"?\\\"pending\\\":void 0),l=r?.blockTime??12e3,d=Math.min(Math.max(Math.floor(l/2),500),4e3),f=t.pollingInterval??d,p=t.cacheTime??f,h=t.account?Ze(t.account):void 0,{config:m,request:g,value:w}=t.transport({account:h,chain:r,pollingInterval:f}),v={...m,...w},b={account:h,batch:e,cacheTime:p,ccipRead:n,chain:r,dataSuffix:i,key:s,name:o,pollingInterval:f,request:g,transport:v,type:a,uid:Qk(),...c?{experimental_blockTag:c}:{}};function _(S){return T=>{let N=T(S);for(let L in b)delete N[L];let O={...S,...N};return Object.assign(O,{extend:_(O)})}}return Object.assign(b,{extend:_(b)})}var Jk=x(()=>{u();en();HQ()});function n6(t){if(!(t instanceof W))return!1;let e=t.walk(r=>r instanceof um);return e instanceof um?e.data?.errorName===\\\"HttpError\\\"||e.data?.errorName===\\\"ResolverError\\\"||e.data?.errorName===\\\"ResolverNotContract\\\"||e.data?.errorName===\\\"ResolverNotFound\\\"||e.data?.errorName===\\\"ReverseAddressMismatch\\\"||e.data?.errorName===\\\"UnsupportedResolverProfile\\\":!1}var Yk=x(()=>{u();st();dm()});function Xk(t){if(t.length!==66||t.indexOf(\\\"[\\\")!==0||t.indexOf(\\\"]\\\")!==65)return null;let e=`0x${t.slice(1,65)}`;return Ur(e)?e:null}var qQ=x(()=>{u();gu()});function BA(t){let e=new Uint8Array(32).fill(0);if(!t)return er(e);let r=t.split(\\\".\\\");for(let n=r.length-1;n>=0;n-=1){let i=Xk(r[n]),s=i?Oo(i):Ft(Ua(r[n]),\\\"bytes\\\");e=Ft(Jt([e,s]),\\\"bytes\\\")}return er(e)}var zQ=x(()=>{u();Ei();Zi();qe();yl();qQ()});function U2e(t){return`[${t.slice(2)}]`}var F2e=x(()=>{u()});function j2e(t){let e=new Uint8Array(32).fill(0);return t?Xk(t)||Ft(Ua(t)):er(e)}var H2e=x(()=>{u();Zi();qe();yl();qQ()});function i6(t){let e=t.replace(/^\\\\.|\\\\.$/gm,\\\"\\\");if(e.length===0)return new Uint8Array(1);let r=new Uint8Array(Ua(e).byteLength+2),n=0,i=e.split(\\\".\\\");for(let s=0;s<i.length;s++){let o=Ua(i[s]);o.byteLength>255&&(o=Ua(U2e(j2e(i[s])))),r[n]=o.length,r.set(o,n+1),n+=o.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var eB=x(()=>{u();Zi();F2e();H2e()});async function q2e(t,e){let{blockNumber:r,blockTag:n,coinType:i,name:s,gatewayUrls:o,strict:a}=e,{chain:c}=t,l=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error(\\\"client chain not configured. universalResolverAddress is required.\\\");return Su({blockNumber:r,chain:c,contract:\\\"ensUniversalResolver\\\"})})(),d=c?.ensTlds;if(d&&!d.some(p=>s.endsWith(p)))return null;let f=i!=null?[BA(s),BigInt(i)]:[BA(s)];try{let p=At({abi:EQ,functionName:\\\"addr\\\",args:f}),h={address:l,abi:Ik,functionName:\\\"resolveWithGateways\\\",args:[He(i6(s)),p,o??[Sm]],blockNumber:r,blockTag:n},g=await ae(t,Tn,\\\"readContract\\\")(h);if(g[0]===\\\"0x\\\")return null;let w=ma({abi:EQ,args:f,functionName:\\\"addr\\\",data:g[0]});return w===\\\"0x\\\"||An(w)===\\\"0x00\\\"?null:w}catch(p){if(a)throw p;if(n6(p))return null;throw p}}var z2e=x(()=>{u();fp();Em();fa();Sw();nm();qe();Yk();RA();zQ();eB();Ut();Tu()});var tB,my,s6,rB,$2e=x(()=>{u();st();tB=class extends W{constructor({data:e}){super(\\\"Unable to extract image from metadata. The metadata may be malformed or invalid.\\\",{metaMessages:[\\\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\\\",\\\"\\\",`Provided data: ${JSON.stringify(e)}`],name:\\\"EnsAvatarInvalidMetadataError\\\"})}},my=class extends W{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:\\\"EnsAvatarInvalidNftUriError\\\"})}},s6=class extends W{constructor({uri:e}){super(`Unable to resolve ENS avatar URI \\\"${e}\\\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\\\"EnsAvatarUriResolutionError\\\"})}},rB=class extends W{constructor({namespace:e}){super(`ENS NFT avatar namespace \\\"${e}\\\" is not supported. Must be \\\"erc721\\\" or \\\"erc1155\\\".`,{name:\\\"EnsAvatarUnsupportedNamespaceError\\\"})}}});async function Kdt(t){try{let e=await fetch(t,{method:\\\"HEAD\\\"});return e.status===200?e.headers.get(\\\"content-type\\\")?.startsWith(\\\"image/\\\"):!1}catch(e){return typeof e==\\\"object\\\"&&typeof e.response<\\\"u\\\"||!Object.hasOwn(globalThis,\\\"Image\\\")?!1:new Promise(r=>{let n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=t})}}function V2e(t,e){return t?t.endsWith(\\\"/\\\")?t.slice(0,-1):t:e}function $Q({uri:t,gatewayUrls:e}){let r=Wdt.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};let n=V2e(e?.ipfs,\\\"https://ipfs.io\\\"),i=V2e(e?.arweave,\\\"https://arweave.net\\\"),s=t.match($dt),{protocol:o,subpath:a,target:c,subtarget:l=\\\"\\\"}=s?.groups||{},d=o===\\\"ipns:/\\\"||a===\\\"ipns/\\\",f=o===\\\"ipfs:/\\\"||a===\\\"ipfs/\\\"||Vdt.test(t);if(t.startsWith(\\\"http\\\")&&!d&&!f){let h=t;return e?.arweave&&(h=t.replace(/https:\\\\/\\\\/arweave.net/g,e?.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((d||f)&&c)return{uri:`${n}/${d?\\\"ipns\\\":\\\"ipfs\\\"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(o===\\\"ar:/\\\"&&c)return{uri:`${i}/${c}${l||\\\"\\\"}`,isOnChain:!1,isEncoded:!1};let p=t.replace(Gdt,\\\"\\\");if(p.startsWith(\\\"<svg\\\")&&(p=`data:image/svg+xml;base64,${btoa(p)}`),p.startsWith(\\\"data:\\\")||p.startsWith(\\\"{\\\"))return{uri:p,isOnChain:!0,isEncoded:!1};throw new s6({uri:t})}function VQ(t){if(typeof t!=\\\"object\\\"||!(\\\"image\\\"in t)&&!(\\\"image_url\\\"in t)&&!(\\\"image_data\\\"in t))throw new tB({data:t});return t.image||t.image_url||t.image_data}async function W2e({gatewayUrls:t,uri:e}){try{let r=await fetch(e).then(i=>i.json());return await nB({gatewayUrls:t,uri:VQ(r)})}catch{throw new s6({uri:e})}}async function nB({gatewayUrls:t,uri:e}){let{uri:r,isOnChain:n}=$Q({uri:e,gatewayUrls:t});if(n||await Kdt(r))return r;throw new s6({uri:e})}function G2e(t){let e=t;e.startsWith(\\\"did:nft:\\\")&&(e=e.replace(\\\"did:nft:\\\",\\\"\\\").replace(/_/g,\\\"/\\\"));let[r,n,i]=e.split(\\\"/\\\"),[s,o]=r.split(\\\":\\\"),[a,c]=n.split(\\\":\\\");if(!s||s.toLowerCase()!==\\\"eip155\\\")throw new my({reason:\\\"Only EIP-155 supported\\\"});if(!o)throw new my({reason:\\\"Chain ID not found\\\"});if(!c)throw new my({reason:\\\"Contract address not found\\\"});if(!i)throw new my({reason:\\\"Token ID not found\\\"});if(!a)throw new my({reason:\\\"ERC namespace not found\\\"});return{chainID:Number.parseInt(o,10),namespace:a.toLowerCase(),contractAddress:c,tokenID:i}}async function K2e(t,{nft:e}){if(e.namespace===\\\"erc721\\\")return Tn(t,{address:e.contractAddress,abi:[{name:\\\"tokenURI\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"tokenId\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"string\\\"}]}],functionName:\\\"tokenURI\\\",args:[BigInt(e.tokenID)]});if(e.namespace===\\\"erc1155\\\")return Tn(t,{address:e.contractAddress,abi:[{name:\\\"uri\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"_id\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"string\\\"}]}],functionName:\\\"uri\\\",args:[BigInt(e.tokenID)]});throw new rB({namespace:e.namespace})}var $dt,Vdt,Wdt,Gdt,Z2e=x(()=>{u();Tu();$2e();$dt=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,Vdt=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\\\/(?<target>[\\\\w\\\\-.]+))?(?<subtarget>\\\\/.*)?$/,Wdt=/^data:([a-zA-Z\\\\-/+]*);base64,([^\\\"].*)/,Gdt=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/});async function Q2e(t,{gatewayUrls:e,record:r}){return/eip155:/i.test(r)?Zdt(t,{gatewayUrls:e,record:r}):nB({uri:r,gatewayUrls:e})}async function Zdt(t,{gatewayUrls:e,record:r}){let n=G2e(r),i=await K2e(t,{nft:n}),{uri:s,isOnChain:o,isEncoded:a}=$Q({uri:i,gatewayUrls:e});if(o&&(s.includes(\\\"data:application/json;base64,\\\")||s.startsWith(\\\"{\\\"))){let l=a?atob(s.replace(\\\"data:application/json;base64,\\\",\\\"\\\")):s,d=JSON.parse(l);return nB({uri:VQ(d),gatewayUrls:e})}let c=n.tokenID;return n.namespace===\\\"erc1155\\\"&&(c=c.replace(\\\"0x\\\",\\\"\\\").padStart(64,\\\"0\\\")),W2e({gatewayUrls:e,uri:s.replace(/(?:0x)?{id}/,c)})}var J2e=x(()=>{u();Z2e()});async function iB(t,e){let{blockNumber:r,blockTag:n,key:i,name:s,gatewayUrls:o,strict:a}=e,{chain:c}=t,l=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error(\\\"client chain not configured. universalResolverAddress is required.\\\");return Su({blockNumber:r,chain:c,contract:\\\"ensUniversalResolver\\\"})})(),d=c?.ensTlds;if(d&&!d.some(f=>s.endsWith(f)))return null;try{let f={address:l,abi:Ik,args:[He(i6(s)),At({abi:xQ,functionName:\\\"text\\\",args:[BA(s),i]}),o??[Sm]],functionName:\\\"resolveWithGateways\\\",blockNumber:r,blockTag:n},h=await ae(t,Tn,\\\"readContract\\\")(f);if(h[0]===\\\"0x\\\")return null;let m=ma({abi:xQ,functionName:\\\"text\\\",data:h[0]});return m===\\\"\\\"?null:m}catch(f){if(a)throw f;if(n6(f))return null;throw f}}var WQ=x(()=>{u();fp();Em();fa();Sw();qe();Yk();RA();zQ();eB();Ut();Tu()});async function Y2e(t,{blockNumber:e,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:s,strict:o,universalResolverAddress:a}){let c=await ae(t,iB,\\\"getEnsText\\\")({blockNumber:e,blockTag:r,key:\\\"avatar\\\",name:i,universalResolverAddress:a,gatewayUrls:s,strict:o});if(!c)return null;try{return await Q2e(t,{record:c,gatewayUrls:n})}catch{return null}}var X2e=x(()=>{u();J2e();Ut();WQ()});async function exe(t,e){let{address:r,blockNumber:n,blockTag:i,coinType:s=60n,gatewayUrls:o,strict:a}=e,{chain:c}=t,l=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error(\\\"client chain not configured. universalResolverAddress is required.\\\");return Su({blockNumber:n,chain:c,contract:\\\"ensUniversalResolver\\\"})})();try{let d={address:l,abi:m2e,args:[r,s,o??[Sm]],functionName:\\\"reverseWithGateways\\\",blockNumber:n,blockTag:i},f=ae(t,Tn,\\\"readContract\\\"),[p]=await f(d);return p||null}catch(d){if(a)throw d;if(n6(d))return null;throw d}}var txe=x(()=>{u();fp();Sw();Yk();RA();Ut();Tu()});async function rxe(t,e){let{blockNumber:r,blockTag:n,name:i}=e,{chain:s}=t,o=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!s)throw new Error(\\\"client chain not configured. universalResolverAddress is required.\\\");return Su({blockNumber:r,chain:s,contract:\\\"ensUniversalResolver\\\"})})(),a=s?.ensTlds;if(a&&!a.some(l=>i.endsWith(l)))throw new Error(`${i} is not a valid ENS TLD (${a?.join(\\\", \\\")}) for chain \\\"${s.name}\\\" (id: ${s.id}).`);let[c]=await ae(t,Tn,\\\"readContract\\\")({address:o,abi:[{inputs:[{type:\\\"bytes\\\"}],name:\\\"findResolver\\\",outputs:[{type:\\\"address\\\"},{type:\\\"bytes32\\\"},{type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"}],functionName:\\\"findResolver\\\",args:[He(i6(i))],blockNumber:r,blockTag:n});return c}var nxe=x(()=>{u();Sw();qe();eB();Ut();Tu()});async function sB(t,e){let{account:r=t.account,blockNumber:n,blockTag:i=\\\"latest\\\",blobs:s,data:o,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h,...m}=e,g=r?Ze(r):void 0;try{xs(e);let v=(typeof n==\\\"bigint\\\"?Z(n):void 0)||i,b=t.chain?.formatters?.transactionRequest?.format,S=(b||Hs)({...Tc(m,{format:b}),account:g,blobs:s,data:o,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h},\\\"createAccessList\\\"),T=await t.request({method:\\\"eth_createAccessList\\\",params:[S,v]});return{accessList:T.accessList,gasUsed:BigInt(T.gasUsed)}}catch(w){throw Y5(w,{...e,account:g,chain:t.chain})}}var GQ=x(()=>{u();en();qe();kk();Xg();_u();qd()});async function ixe(t){let e=Fg(t,{method:\\\"eth_newBlockFilter\\\"}),r=await t.request({method:\\\"eth_newBlockFilter\\\"});return{id:r,request:e(r),type:\\\"block\\\"}}var sxe=x(()=>{u();GS()});async function oB(t,{address:e,args:r,event:n,events:i,fromBlock:s,strict:o,toBlock:a}={}){let c=i??(n?[n]:void 0),l=Fg(t,{method:\\\"eth_newFilter\\\"}),d=[];c&&(d=[c.flatMap(h=>rp({abi:[h],eventName:h.name,args:r}))],n&&(d=d[0]));let f=await t.request({method:\\\"eth_newFilter\\\",params:[{address:e,fromBlock:typeof s==\\\"bigint\\\"?Z(s):s,toBlock:typeof a==\\\"bigint\\\"?Z(a):a,...d.length?{topics:d}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:s,id:f,request:l(f),strict:!!o,toBlock:a,type:\\\"event\\\"}}var KQ=x(()=>{u();i5();qe();GS()});async function aB(t){let e=Fg(t,{method:\\\"eth_newPendingTransactionFilter\\\"}),r=await t.request({method:\\\"eth_newPendingTransactionFilter\\\"});return{id:r,request:e(r),type:\\\"transaction\\\"}}var ZQ=x(()=>{u();GS()});async function oxe(t,{address:e,blockNumber:r,blockTag:n=t.experimental_blockTag??\\\"latest\\\"}){if(t.batch?.multicall&&t.chain?.contracts?.multicall3){let o=t.chain.contracts.multicall3.address,a=At({abi:Wd,functionName:\\\"getEthBalance\\\",args:[e]}),{data:c}=await ae(t,Au,\\\"call\\\")({to:o,data:a,blockNumber:r,blockTag:n});return ma({abi:Wd,functionName:\\\"getEthBalance\\\",args:[e],data:c||\\\"0x\\\"})}let i=typeof r==\\\"bigint\\\"?Z(r):void 0,s=await t.request({method:\\\"eth_getBalance\\\",params:[e,i||n]});return BigInt(s)}var axe=x(()=>{u();fp();Em();fa();qe();Ut();Tw()});async function cxe(t){let e=await t.request({method:\\\"eth_blobBaseFee\\\"});return BigInt(e)}var lxe=x(()=>{u()});async function uxe(t,{blockHash:e,blockNumber:r,blockTag:n=\\\"latest\\\"}={}){let i=r!==void 0?Z(r):void 0,s;return e?s=await t.request({method:\\\"eth_getBlockTransactionCountByHash\\\",params:[e]},{dedupe:!0}):s=await t.request({method:\\\"eth_getBlockTransactionCountByNumber\\\",params:[i||n]},{dedupe:!!i}),jr(s)}var dxe=x(()=>{u();xi();qe()});async function Sl(t,{address:e,blockNumber:r,blockTag:n=\\\"latest\\\"}){let i=r!==void 0?Z(r):void 0,s=await t.request({method:\\\"eth_getCode\\\",params:[e,i||n]},{dedupe:!!i});if(s!==\\\"0x\\\")return s}var o6=x(()=>{u();qe()});async function fxe(t,{address:e,blockNumber:r,blockTag:n=\\\"latest\\\"}){let i=await Sl(t,{address:e,...r!==void 0?{blockNumber:r}:{blockTag:n}});if(i&&Ot(i)===23&&i.startsWith(\\\"0xef0100\\\"))return _r(No(i,3,23))}var pxe=x(()=>{u();Dd();Da();ep();o6()});var cB,hxe=x(()=>{u();st();cB=class extends W{constructor({address:e}){super(`No EIP-712 domain found on contract \\\"${e}\\\".`,{metaMessages:[\\\"Ensure that:\\\",`- The contract is deployed at the address \\\"${e}\\\".`,\\\"- `eip712Domain()` function exists on the contract.\\\",\\\"- `eip712Domain()` function matches signature to ERC-5267 specification.\\\"],name:\\\"Eip712DomainNotFoundError\\\"})}}});async function mxe(t,e){let{address:r,factory:n,factoryData:i}=e;try{let[s,o,a,c,l,d,f]=await ae(t,Tn,\\\"readContract\\\")({abi:Qdt,address:r,functionName:\\\"eip712Domain\\\",factory:n,factoryData:i});return{domain:{name:o,version:a,chainId:Number(c),verifyingContract:l,salt:d},extensions:f,fields:s}}catch(s){let o=s;throw o.name===\\\"ContractFunctionExecutionError\\\"&&o.cause.name===\\\"ContractFunctionZeroDataError\\\"?new cB({address:r}):o}}var Qdt,gxe=x(()=>{u();hxe();Ut();Tu();Qdt=[{inputs:[],name:\\\"eip712Domain\\\",outputs:[{name:\\\"fields\\\",type:\\\"bytes1\\\"},{name:\\\"name\\\",type:\\\"string\\\"},{name:\\\"version\\\",type:\\\"string\\\"},{name:\\\"chainId\\\",type:\\\"uint256\\\"},{name:\\\"verifyingContract\\\",type:\\\"address\\\"},{name:\\\"salt\\\",type:\\\"bytes32\\\"},{name:\\\"extensions\\\",type:\\\"uint256[]\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"}]});function yxe(t){return{baseFeePerGas:t.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:t.gasUsedRatio,oldestBlock:BigInt(t.oldestBlock),reward:t.reward?.map(e=>e.map(r=>BigInt(r)))}}var bxe=x(()=>{u()});async function wxe(t,{blockCount:e,blockNumber:r,blockTag:n=\\\"latest\\\",rewardPercentiles:i}){let s=typeof r==\\\"bigint\\\"?Z(r):void 0,o=await t.request({method:\\\"eth_feeHistory\\\",params:[Z(e),s||n,i]},{dedupe:!!s});return yxe(o)}var vxe=x(()=>{u();qe();bxe()});async function xxe(t,{filter:e}){let r=e.strict??!1,i=(await e.request({method:\\\"eth_getFilterLogs\\\",params:[e.id]})).map(s=>Qi(s));return e.abi?z5({abi:e.abi,logs:i,strict:r}):i}var Exe=x(()=>{u();hk();Vd()});function QQ(t,e){if(t.length!==e.length)throw new QE({expectedLength:t.length,givenLength:e.length});let r=[];for(let n=0;n<t.length;n++){let i=t[n],s=e[n];r.push(_xe(i,s))}return ln(r)}function _xe(t,e,r=!1){if(t===\\\"address\\\"){let o=e;if(!lt(o))throw new cr({address:o});return Fr(o.toLowerCase(),{size:r?32:null})}if(t===\\\"string\\\")return la(e);if(t===\\\"bytes\\\")return e;if(t===\\\"bool\\\")return Fr(Gb(e),{size:r?32:1});let n=t.match(r5);if(n){let[o,a,c=\\\"256\\\"]=n,l=Number.parseInt(c,10)/8;return Z(e,{size:r?32:l,signed:a===\\\"int\\\"})}let i=t.match(bN);if(i){let[o,a]=i;if(Number.parseInt(a,10)!==(e.length-2)/2)throw new XE({expectedSize:Number.parseInt(a,10),givenSize:(e.length-2)/2});return Fr(e,{dir:\\\"right\\\",size:r?32:null})}let s=t.match(hwe);if(s&&Array.isArray(e)){let[o,a]=s,c=[];for(let l=0;l<e.length;l++)c.push(_xe(a,e[l],!0));return c.length===0?\\\"0x\\\":ln(c)}throw new iN(t)}var Cxe=x(()=>{u();Ki();bl();da();Ei();rm();qe();wN()});function Sxe(t){let{authorizationList:e}=t;if(e)for(let r of e){let{chainId:n}=r,i=r.address;if(!lt(i))throw new cr({address:i});if(n<0)throw new Gd({chainId:n})}lB(t)}function Axe(t){let{blobVersionedHashes:e}=t;if(e){if(e.length===0)throw new F5;for(let r of e){let n=Ot(r),i=jr(No(r,0,1));if(n!==32)throw new ak({hash:r,size:n});if(i!==1)throw new ck({hash:r,version:i})}}lB(t)}function lB(t){let{chainId:e,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=t;if(e<=0)throw new Gd({chainId:e});if(i&&!lt(i))throw new cr({address:i});if(n&&n>ry)throw new Ac({maxFeePerGas:n});if(r&&n&&r>n)throw new xu({maxFeePerGas:n,maxPriorityFeePerGas:r})}function Txe(t){let{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s}=t;if(e<=0)throw new Gd({chainId:e});if(s&&!lt(s))throw new cr({address:s});if(r||i)throw new W(\\\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\\\");if(n&&n>ry)throw new Ac({maxFeePerGas:n})}function Ixe(t){let{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s}=t;if(s&&!lt(s))throw new cr({address:s});if(typeof e<\\\"u\\\"&&e<=0)throw new Gd({chainId:e});if(r||i)throw new W(\\\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\\\");if(n&&n>ry)throw new Ac({maxFeePerGas:n})}var Rxe=x(()=>{u();mA();bl();st();oQ();_w();cp();da();Da();ep();xi()});function Nw(t){if(!t||t.length===0)return[];let e=[];for(let r=0;r<t.length;r++){let{address:n,storageKeys:i}=t[r];for(let s=0;s<i.length;s++)if(i[s].length-2!==64)throw new kN({storageKey:i[s]});if(!lt(n,{strict:!1}))throw new cr({address:n});e.push([n,i])}return e}var JQ=x(()=>{u();bl();wl();da()});function uB(t,e){let r=uk(t);return r===\\\"eip1559\\\"?Xdt(t,e):r===\\\"eip2930\\\"?eft(t,e):r===\\\"eip4844\\\"?Ydt(t,e):r===\\\"eip7702\\\"?Jdt(t,e):tft(t,e)}function Jdt(t,e){let{authorizationList:r,chainId:n,gas:i,nonce:s,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:d,data:f}=t;Sxe(t);let p=Nw(d),h=Pxe(r);return ln([\\\"0x04\\\",qa([Z(n),s?Z(s):\\\"0x\\\",l?Z(l):\\\"0x\\\",c?Z(c):\\\"0x\\\",i?Z(i):\\\"0x\\\",o??\\\"0x\\\",a?Z(a):\\\"0x\\\",f??\\\"0x\\\",p,h,...gy(t,e)])])}function Ydt(t,e){let{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:d,data:f}=t;Axe(t);let p=t.blobVersionedHashes,h=t.sidecars;if(t.blobs&&(typeof p>\\\"u\\\"||typeof h>\\\"u\\\")){let _=typeof t.blobs[0]==\\\"string\\\"?t.blobs:t.blobs.map(N=>er(N)),S=t.kzg,T=L5({blobs:_,kzg:S});if(typeof p>\\\"u\\\"&&(p=sk({commitments:T})),typeof h>\\\"u\\\"){let N=U5({blobs:_,commitments:T,kzg:S});h=lk({blobs:_,commitments:T,proofs:N})}}let m=Nw(d),g=[Z(r),i?Z(i):\\\"0x\\\",l?Z(l):\\\"0x\\\",c?Z(c):\\\"0x\\\",n?Z(n):\\\"0x\\\",s??\\\"0x\\\",o?Z(o):\\\"0x\\\",f??\\\"0x\\\",m,a?Z(a):\\\"0x\\\",p??[],...gy(t,e)],w=[],v=[],b=[];if(h)for(let _=0;_<h.length;_++){let{blob:S,commitment:T,proof:N}=h[_];w.push(S),v.push(T),b.push(N)}return ln([\\\"0x03\\\",h?qa([g,w,v,b]):qa(g)])}function Xdt(t,e){let{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,data:d}=t;lB(t);let f=Nw(l),p=[Z(r),i?Z(i):\\\"0x\\\",c?Z(c):\\\"0x\\\",a?Z(a):\\\"0x\\\",n?Z(n):\\\"0x\\\",s??\\\"0x\\\",o?Z(o):\\\"0x\\\",d??\\\"0x\\\",f,...gy(t,e)];return ln([\\\"0x02\\\",qa(p)])}function eft(t,e){let{chainId:r,gas:n,data:i,nonce:s,to:o,value:a,accessList:c,gasPrice:l}=t;Txe(t);let d=Nw(c),f=[Z(r),s?Z(s):\\\"0x\\\",l?Z(l):\\\"0x\\\",n?Z(n):\\\"0x\\\",o??\\\"0x\\\",a?Z(a):\\\"0x\\\",i??\\\"0x\\\",d,...gy(t,e)];return ln([\\\"0x01\\\",qa(f)])}function tft(t,e){let{chainId:r=0,gas:n,data:i,nonce:s,to:o,value:a,gasPrice:c}=t;Ixe(t);let l=[s?Z(s):\\\"0x\\\",c?Z(c):\\\"0x\\\",n?Z(n):\\\"0x\\\",o??\\\"0x\\\",a?Z(a):\\\"0x\\\",i??\\\"0x\\\"];if(e){let d=(()=>{if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+e.v-27n);let h=27n+(e.v===27n?0n:1n);if(e.v!==h)throw new ON({v:e.v});return h})(),f=An(e.r),p=An(e.s);l=[...l,Z(d),f===\\\"0x00\\\"?\\\"0x\\\":f,p===\\\"0x00\\\"?\\\"0x\\\":p]}else r>0&&(l=[...l,Z(r),\\\"0x\\\",\\\"0x\\\"]);return qa(l)}function gy(t,e){let r=e??t,{v:n,yParity:i}=r;if(typeof r.r>\\\"u\\\")return[];if(typeof r.s>\\\"u\\\")return[];if(typeof n>\\\"u\\\"&&typeof i>\\\"u\\\")return[];let s=An(r.r),o=An(r.s);return[typeof i==\\\"number\\\"?i?Z(1):\\\"0x\\\":n===0n?\\\"0x\\\":n===1n?Z(1):n===27n?\\\"0x\\\":Z(1),s===\\\"0x00\\\"?\\\"0x\\\":s,o===\\\"0x00\\\"?\\\"0x\\\":o]}var MA=x(()=>{u();wl();Oxe();tk();rk();sQ();aQ();Ei();nm();qe();E5();Rxe();cQ();JQ()});function Pxe(t){if(!t||t.length===0)return[];let e=[];for(let r of t){let{chainId:n,nonce:i,...s}=r,o=r.address;e.push([n?He(n):\\\"0x\\\",o,i?He(i):\\\"0x\\\",...gy({},s)])}return e}var Oxe=x(()=>{u();qe();MA()});async function Nxe({address:t,authorization:e,signature:r}){return ha(_r(t),await Jg({authorization:e,signature:r}))}var kxe=x(()=>{u();Dd();cy();dA()});function Bxe(t,{enabled:e=!0,id:r}){if(!e||!r)return t();if(dB.get(r))return dB.get(r);let n=t().finally(()=>dB.delete(r));return dB.set(r,n),n}var dB,Mxe=x(()=>{u();Lg();dB=new ua(8192)});function Dxe(t,e={}){return async(r,n={})=>{let{dedupe:i=!1,methods:s,retryDelay:o=150,retryCount:a=3,uid:c}={...e,...n},{method:l}=r;if(s?.exclude?.includes(l))throw new pm(new Error(\\\"method not supported\\\"),{method:l});if(s?.include&&!s.include.includes(l))throw new pm(new Error(\\\"method not supported\\\"),{method:l});let d=i?la(`${c}.${qt(r)}`):void 0;return Bxe(()=>hp(async()=>{try{return await t(r)}catch(f){let p=f;switch(p.code){case tw.code:throw new tw(p);case rw.code:throw new rw(p);case nw.code:throw new nw(p,{method:r.method});case iw.code:throw new iw(p);case sp.code:throw new sp(p);case vl.code:throw new vl(p);case sw.code:throw new sw(p);case Ld.code:throw new Ld(p);case fm.code:throw new fm(p);case pm.code:throw new pm(p,{method:r.method});case qg.code:throw new qg(p);case ow.code:throw new ow(p);case Cr.code:throw new Cr(p);case aw.code:throw new aw(p);case cw.code:throw new cw(p);case lw.code:throw new lw(p);case uw.code:throw new uw(p);case Do.code:throw new Do(p);case hm.code:throw new hm(p);case dw.code:throw new dw(p);case fw.code:throw new fw(p);case pw.code:throw new pw(p);case hw.code:throw new hw(p);case mw.code:throw new mw(p);case mm.code:throw new mm(p);case 5e3:throw new Cr(p);case zg.code:throw new zg(p);default:throw f instanceof W?f:new JS(p)}}},{delay:({count:f,error:p})=>{if(p&&p instanceof vu){let h=p?.headers?.get(\\\"Retry-After\\\");if(h?.match(/\\\\d/))return Number.parseInt(h,10)*1e3}return~~(1<<f)*o},retryCount:a,shouldRetry:({error:f})=>rft(f)}),{enabled:i,id:d})}}function rft(t){return\\\"code\\\"in t&&typeof t.code==\\\"number\\\"?t.code===-1||t.code===qg.code||t.code===sp.code:t instanceof vu&&t.status?t.status===403||t.status===408||t.status===413||t.status===429||t.status===500||t.status===502||t.status===503||t.status===504:!0}var Lxe=x(()=>{u();st();ew();$g();qe();Mxe();kA();ko()});function Oe(t){let e={formatters:void 0,fees:void 0,serializers:void 0,...t};function r(n){return i=>{let s=typeof i==\\\"function\\\"?i(n):i,o={...n,...s};return Object.assign(o,{extend:r(o)})}}return Object.assign(e,{extend:r(e)})}var Yt=x(()=>{u()});function YQ(t){let{source:e}=t,r=new Map,n=new ua(8192),i=new Map,s=({address:o,chainId:a})=>`${o}.${a}`;return{async consume({address:o,chainId:a,client:c}){let l=s({address:o,chainId:a}),d=this.get({address:o,chainId:a,client:c});this.increment({address:o,chainId:a});let f=await d;return await e.set({address:o,chainId:a},f),n.set(l,f),f},async increment({address:o,chainId:a}){let c=s({address:o,chainId:a}),l=r.get(c)??0;r.set(c,l+1)},async get({address:o,chainId:a,client:c}){let l=s({address:o,chainId:a}),d=i.get(l);return d||(d=(async()=>{try{let p=await e.get({address:o,chainId:a,client:c}),h=n.get(l)??0;return h>0&&p<=h?h+1:(n.delete(l),p)}finally{this.reset({address:o,chainId:a})}})(),i.set(l,d)),(r.get(l)??0)+await d},reset({address:o,chainId:a}){let c=s({address:o,chainId:a});r.delete(c),i.delete(c)}}}function nft(){return{async get(t){let{address:e,client:r}=t;return oy(r,{address:e,blockTag:\\\"pending\\\"})},set(){}}}var Xgr,Uxe=x(()=>{u();bA();Lg();Xgr=YQ({source:nft()})});function DA(t,{errorInstance:e=new Error(\\\"timed out\\\"),timeout:r,signal:n}){return new Promise((i,s)=>{(async()=>{let o;try{let a=new AbortController;r>0&&(o=setTimeout(()=>{n?a.abort():s(e)},r)),i(await t({signal:a?.signal||null}))}catch(a){a?.name===\\\"AbortError\\\"&&s(e),s(a)}finally{clearTimeout(o)}})()})}var XQ=x(()=>{u()});function ift(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var eJ,Fxe=x(()=>{u();eJ=ift()});function jxe(t,e={}){let{url:r,headers:n}=sft(t);return{async request(i){let{body:s,fetchFn:o=e.fetchFn??fetch,onRequest:a=e.onRequest,onResponse:c=e.onResponse,timeout:l=e.timeout??1e4}=i,d={...e.fetchOptions??{},...i.fetchOptions??{}},{headers:f,method:p,signal:h}=d;try{let m=await DA(async({signal:w})=>{let v={...d,body:Array.isArray(s)?qt(s.map(T=>({jsonrpc:\\\"2.0\\\",id:T.id??eJ.take(),...T}))):qt({jsonrpc:\\\"2.0\\\",id:s.id??eJ.take(),...s}),headers:{...n,\\\"Content-Type\\\":\\\"application/json\\\",...f},method:p||\\\"POST\\\",signal:h||(l>0?w:null)},b=new Request(r,v),_=await a?.(b,v)??{...v,url:r};return await o(_.url??r,_)},{errorInstance:new QS({body:s,url:r}),timeout:l,signal:!0});c&&await c(m);let g;if(m.headers.get(\\\"Content-Type\\\")?.startsWith(\\\"application/json\\\"))g=await m.json();else{g=await m.text();try{g=JSON.parse(g||\\\"{}\\\")}catch(w){if(m.ok)throw w;g={error:g}}}if(!m.ok){if(typeof g.error?.code==\\\"number\\\"&&typeof g.error?.message==\\\"string\\\")return g;throw new vu({body:s,details:qt(g.error)||m.statusText,headers:m.headers,status:m.status,url:r})}return g}catch(m){throw m instanceof vu||m instanceof QS?m:new vu({body:s,cause:m,url:r})}}}}function sft(t){try{let e=new URL(t),r=(()=>{if(e.username){let n=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`;return e.username=\\\"\\\",e.password=\\\"\\\",{url:e.toString(),headers:{Authorization:`Basic ${btoa(n)}`}}}})();return{url:e.toString(),...r}}catch{return{url:t}}}var Hxe=x(()=>{u();ew();XQ();ko();Fxe()});var qxe,zxe=x(()=>{u();qxe=`\\u0019Ethereum Signed Message:\\n`});function $xe(t){let e=typeof t==\\\"string\\\"?la(t):typeof t.raw==\\\"string\\\"?t.raw:er(t.raw),r=la(`${qxe}${Ot(e)}`);return Jt([r,e])}var Vxe=x(()=>{u();zxe();Ei();Da();qe()});function Rm(t,e){return Ft($xe(t),e)}var fB=x(()=>{u();yl();Vxe()});var pB,hB,mB,Wxe=x(()=>{u();ko();st();pB=class extends W{constructor({domain:e}){super(`Invalid domain \\\"${qt(e)}\\\".`,{metaMessages:[\\\"Must be a valid EIP-712 domain.\\\"]})}},hB=class extends W{constructor({primaryType:e,types:r}){super(`Invalid primary type \\\\`${e}\\\\` must be one of \\\\`${JSON.stringify(Object.keys(r))}\\\\`.`,{docsPath:\\\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\\\",metaMessages:[\\\"Check that the primary type is a key in `types`.\\\"]})}},mB=class extends W{constructor({type:e}){super(`Struct type \\\"${e}\\\" is invalid.`,{metaMessages:[\\\"Struct type must not be a Solidity type.\\\"],name:\\\"InvalidStructTypeError\\\"})}}});function Gxe(t){let{domain:e,message:r,primaryType:n,types:i}=t,s=(c,l)=>{let d={...l};for(let f of c){let{name:p,type:h}=f;h===\\\"address\\\"&&(d[p]=d[p].toLowerCase())}return d},o=i.EIP712Domain?e?s(i.EIP712Domain,e):{}:{},a=(()=>{if(n!==\\\"EIP712Domain\\\")return s(i[n],r)})();return qt({domain:o,message:a,primaryType:n,types:i})}function gB(t){let{domain:e,message:r,primaryType:n,types:i}=t,s=(o,a)=>{for(let c of o){let{name:l,type:d}=c,f=a[l],p=d.match(r5);if(p&&(typeof f==\\\"number\\\"||typeof f==\\\"bigint\\\")){let[g,w,v]=p;Z(f,{signed:w===\\\"int\\\",size:Number.parseInt(v,10)/8})}if(d===\\\"address\\\"&&typeof f==\\\"string\\\"&&!lt(f))throw new cr({address:f});let h=d.match(bN);if(h){let[g,w]=h;if(w&&Ot(f)!==Number.parseInt(w,10))throw new XE({expectedSize:Number.parseInt(w,10),givenSize:Ot(f)})}let m=i[d];m&&(oft(d),s(m,f))}};if(i.EIP712Domain&&e){if(typeof e!=\\\"object\\\")throw new pB({domain:e});s(i.EIP712Domain,e)}if(n!==\\\"EIP712Domain\\\")if(i[n])s(i[n],r);else throw new hB({primaryType:n,types:i})}function yB({domain:t}){return[typeof t?.name==\\\"string\\\"&&{name:\\\"name\\\",type:\\\"string\\\"},t?.version&&{name:\\\"version\\\",type:\\\"string\\\"},(typeof t?.chainId==\\\"number\\\"||typeof t?.chainId==\\\"bigint\\\")&&{name:\\\"chainId\\\",type:\\\"uint256\\\"},t?.verifyingContract&&{name:\\\"verifyingContract\\\",type:\\\"address\\\"},t?.salt&&{name:\\\"salt\\\",type:\\\"bytes32\\\"}].filter(Boolean)}function oft(t){if(t===\\\"address\\\"||t===\\\"bool\\\"||t===\\\"string\\\"||t.startsWith(\\\"bytes\\\")||t.startsWith(\\\"uint\\\")||t.startsWith(\\\"int\\\"))throw new mB({type:t})}var tJ=x(()=>{u();Ki();bl();Wxe();da();Da();qe();wN();ko()});function mp(t){let{domain:e={},message:r,primaryType:n}=t,i={EIP712Domain:yB({domain:e}),...t.types};gB({domain:e,message:r,primaryType:n,types:i});let s=[\\\"0x1901\\\"];return e&&s.push(Kxe({domain:e,types:i})),n!==\\\"EIP712Domain\\\"&&s.push(rJ({data:r,primaryType:n,types:i})),Ft(Jt(s))}function Kxe({domain:t,types:e}){return rJ({data:t,primaryType:\\\"EIP712Domain\\\",types:e})}function rJ({data:t,primaryType:e,types:r}){let n=Zxe({data:t,primaryType:e,types:r});return Ft(n)}function Zxe({data:t,primaryType:e,types:r}){let n=[{type:\\\"bytes32\\\"}],i=[aft({primaryType:e,types:r})];for(let s of r[e]){let[o,a]=Jxe({types:r,name:s.name,type:s.type,value:t[s.name]});n.push(o),i.push(a)}return Vn(n,i)}function aft({primaryType:t,types:e}){let r=He(cft({primaryType:t,types:e}));return Ft(r)}function cft({primaryType:t,types:e}){let r=\\\"\\\",n=Qxe({primaryType:t,types:e});n.delete(t);let i=[t,...Array.from(n).sort()];for(let s of i)r+=`${s}(${e[s].map(({name:o,type:a})=>`${a} ${o}`).join(\\\",\\\")})`;return r}function Qxe({primaryType:t,types:e},r=new Set){let i=t.match(/^\\\\w*/u)?.[0];if(r.has(i)||e[i]===void 0)return r;r.add(i);for(let s of e[i])Qxe({primaryType:s.type,types:e},r);return r}function Jxe({types:t,name:e,type:r,value:n}){if(t[r]!==void 0)return[{type:\\\"bytes32\\\"},Ft(Zxe({data:n,primaryType:r,types:t}))];if(r===\\\"bytes\\\")return[{type:\\\"bytes32\\\"},Ft(n)];if(r===\\\"string\\\")return[{type:\\\"bytes32\\\"},Ft(He(n))];if(r.lastIndexOf(\\\"]\\\")===r.length-1){let i=r.slice(0,r.lastIndexOf(\\\"[\\\")),s=n.map(o=>Jxe({name:e,type:i,types:t,value:o}));return[{type:\\\"bytes32\\\"},Ft(Vn(s.map(([o])=>o),s.map(([,o])=>o)))]}return[{type:r},n]}var bB=x(()=>{u();wu();Ei();qe();yl();tJ()});var Yxe,Xxe=x(()=>{u();Yxe=\\\"0x6492649264926492649264926492649264926492649264926492649264926492\\\"});var wB,eEe=x(()=>{u();wB=class extends Map{constructor(e){super(),Object.defineProperty(this,\\\"maxSize\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let r=super.get(e);return super.has(e)&&r!==void 0&&(this.delete(e),super.set(e,r)),r}set(e,r){if(super.set(e,r),this.maxSize&&this.size>this.maxSize){let n=this.keys().next().value;n&&this.delete(n)}return this}}});var lft,vB,tEe=x(()=>{u();eEe();lft={checksum:new wB(8192)},vB=lft.checksum});function kw(t,e={}){let{as:r=typeof t==\\\"string\\\"?\\\"Hex\\\":\\\"Bytes\\\"}=e,n=Mg(i2e(t));return r===\\\"Bytes\\\"?n:ls(n)}var xB=x(()=>{u();$S();ly();io()});function rEe(t,e={}){let{compressed:r}=e,{prefix:n,x:i,y:s}=t;if(r===!1||typeof i==\\\"bigint\\\"&&typeof s==\\\"bigint\\\"){if(n!==4)throw new EB({prefix:n,cause:new oJ});return}if(r===!0||typeof i==\\\"bigint\\\"&&typeof s>\\\"u\\\"){if(n!==3&&n!==2)throw new EB({prefix:n,cause:new sJ});return}throw new iJ({publicKey:t})}function nEe(t){let e=(()=>{if(SA(t))return iEe(t);if(u2e(t))return dft(t);let{prefix:r,x:n,y:i}=t;return typeof n==\\\"bigint\\\"&&typeof i==\\\"bigint\\\"?{prefix:r??4,x:n,y:i}:{prefix:r,x:n}})();return rEe(e),e}function dft(t){return iEe(ls(t))}function iEe(t){if(t.length!==132&&t.length!==130&&t.length!==68)throw new aJ({publicKey:t});if(t.length===130){let n=BigInt(Ci(t,0,32)),i=BigInt(Ci(t,32,64));return{prefix:4,x:n,y:i}}if(t.length===132){let n=Number(Ci(t,0,1)),i=BigInt(Ci(t,1,33)),s=BigInt(Ci(t,33,65));return{prefix:n,x:i,y:s}}let e=Number(Ci(t,0,1)),r=BigInt(Ci(t,1,33));return{prefix:e,x:r}}function cJ(t,e={}){rEe(t);let{prefix:r,x:n,y:i}=t,{includePrefix:s=!0}=e;return Ni(s?Sr(r,{size:1}):\\\"0x\\\",Sr(n,{size:32}),typeof i==\\\"bigint\\\"?Sr(i,{size:32}):\\\"0x\\\")}var iJ,EB,sJ,oJ,aJ,lJ=x(()=>{u();ly();Ic();io();_A();iJ=class extends $e{constructor({publicKey:e}){super(`Value \\\\`${uy(e)}\\\\` is not a valid public key.`,{metaMessages:[\\\"Public key must contain:\\\",\\\"- an `x` and `prefix` value (compressed)\\\",\\\"- an `x`, `y`, and `prefix` value (uncompressed)\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidError\\\"})}},EB=class extends $e{constructor({prefix:e,cause:r}){super(`Prefix \\\"${e}\\\" is invalid.`,{cause:r}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidPrefixError\\\"})}},sJ=class extends $e{constructor(){super(\\\"Prefix must be 2 or 3 for compressed public keys.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidCompressedPrefixError\\\"})}},oJ=class extends $e{constructor(){super(\\\"Prefix must be 4 for uncompressed public keys.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidUncompressedPrefixError\\\"})}},aJ=class extends $e{constructor({publicKey:e}){super(`Value \\\\`${e}\\\\` is an invalid public key size.`,{metaMessages:[\\\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\\\",`Received ${_i(Z5(e))} bytes.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidSerializedSizeError\\\"})}}});function Bw(t,e={}){let{strict:r=!0}=e;if(!fft.test(t))throw new _B({address:t,cause:new uJ});if(r){if(t.toLowerCase()===t)return;if(CB(t)!==t)throw new _B({address:t,cause:new dJ})}}function CB(t){if(vB.has(t))return vB.get(t);Bw(t,{strict:!1});let e=t.substring(2).toLowerCase(),r=kw(s2e(e),{as:\\\"Bytes\\\"}),n=e.split(\\\"\\\");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&n[s]&&(n[s]=n[s].toUpperCase()),(r[s>>1]&15)>=8&&n[s+1]&&(n[s+1]=n[s+1].toUpperCase());let i=`0x${n.join(\\\"\\\")}`;return vB.set(t,i),i}function pft(t,e={}){let{checksum:r=!1}=e;return Bw(t),r?CB(t):t}function oEe(t,e={}){let r=kw(`0x${cJ(t).slice(4)}`).substring(26);return pft(`0x${r}`,e)}function SB(t,e={}){let{strict:r=!0}=e??{};try{return Bw(t,{strict:r}),!0}catch{return!1}}var fft,_B,uJ,dJ,LA=x(()=>{u();ly();tEe();Ic();xB();lJ();fft=/^0x[a-fA-F0-9]{40}$/;_B=class extends $e{constructor({address:e,cause:r}){super(`Address \\\"${e}\\\" is invalid.`,{cause:r}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidAddressError\\\"})}},uJ=class extends $e{constructor(){super(\\\"Address is not a 20 byte (40 hexadecimal character) value.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidInputError\\\"})}},dJ=class extends $e{constructor(){super(\\\"Address does not match its checksum counterpart.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidChecksumError\\\"})}}});var aEe,cEe,TB,t1r,r1r,n1r,i1r,s1r,o1r,a1r,c1r,l1r,u1r,d1r,f1r,p1r,h1r,m1r,g1r,y1r,b1r,w1r,v1r,x1r,E1r,_1r,C1r,S1r,A1r,T1r,I1r,R1r,P1r,O1r,N1r,k1r,B1r,M1r,D1r,L1r,U1r,F1r,j1r,H1r,q1r,z1r,$1r,V1r,W1r,G1r,K1r,Z1r,Q1r,J1r,Y1r,X1r,ebr,tbr,rbr,nbr,ibr,sbr,obr,abr,cbr,lbr,ubr,dbr,fbr,pbr,hbr,mbr,gbr,ybr,bbr,wbr,vbr,xbr,Ebr,_br,Cbr,Sbr,Abr,Tbr,Ibr,Rbr,Pbr,Obr,Nbr,kbr,Bbr,Mbr,Dbr,Lbr,Ubr,Fbr,jbr,Hbr,fJ,IB=x(()=>{u();aEe=/^(.*)\\\\[([0-9]*)\\\\]$/,cEe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,TB=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t1r=2n**(8n-1n)-1n,r1r=2n**(16n-1n)-1n,n1r=2n**(24n-1n)-1n,i1r=2n**(32n-1n)-1n,s1r=2n**(40n-1n)-1n,o1r=2n**(48n-1n)-1n,a1r=2n**(56n-1n)-1n,c1r=2n**(64n-1n)-1n,l1r=2n**(72n-1n)-1n,u1r=2n**(80n-1n)-1n,d1r=2n**(88n-1n)-1n,f1r=2n**(96n-1n)-1n,p1r=2n**(104n-1n)-1n,h1r=2n**(112n-1n)-1n,m1r=2n**(120n-1n)-1n,g1r=2n**(128n-1n)-1n,y1r=2n**(136n-1n)-1n,b1r=2n**(144n-1n)-1n,w1r=2n**(152n-1n)-1n,v1r=2n**(160n-1n)-1n,x1r=2n**(168n-1n)-1n,E1r=2n**(176n-1n)-1n,_1r=2n**(184n-1n)-1n,C1r=2n**(192n-1n)-1n,S1r=2n**(200n-1n)-1n,A1r=2n**(208n-1n)-1n,T1r=2n**(216n-1n)-1n,I1r=2n**(224n-1n)-1n,R1r=2n**(232n-1n)-1n,P1r=2n**(240n-1n)-1n,O1r=2n**(248n-1n)-1n,N1r=2n**(256n-1n)-1n,k1r=-(2n**(8n-1n)),B1r=-(2n**(16n-1n)),M1r=-(2n**(24n-1n)),D1r=-(2n**(32n-1n)),L1r=-(2n**(40n-1n)),U1r=-(2n**(48n-1n)),F1r=-(2n**(56n-1n)),j1r=-(2n**(64n-1n)),H1r=-(2n**(72n-1n)),q1r=-(2n**(80n-1n)),z1r=-(2n**(88n-1n)),$1r=-(2n**(96n-1n)),V1r=-(2n**(104n-1n)),W1r=-(2n**(112n-1n)),G1r=-(2n**(120n-1n)),K1r=-(2n**(128n-1n)),Z1r=-(2n**(136n-1n)),Q1r=-(2n**(144n-1n)),J1r=-(2n**(152n-1n)),Y1r=-(2n**(160n-1n)),X1r=-(2n**(168n-1n)),ebr=-(2n**(176n-1n)),tbr=-(2n**(184n-1n)),rbr=-(2n**(192n-1n)),nbr=-(2n**(200n-1n)),ibr=-(2n**(208n-1n)),sbr=-(2n**(216n-1n)),obr=-(2n**(224n-1n)),abr=-(2n**(232n-1n)),cbr=-(2n**(240n-1n)),lbr=-(2n**(248n-1n)),ubr=-(2n**(256n-1n)),dbr=2n**8n-1n,fbr=2n**16n-1n,pbr=2n**24n-1n,hbr=2n**32n-1n,mbr=2n**40n-1n,gbr=2n**48n-1n,ybr=2n**56n-1n,bbr=2n**64n-1n,wbr=2n**72n-1n,vbr=2n**80n-1n,xbr=2n**88n-1n,Ebr=2n**96n-1n,_br=2n**104n-1n,Cbr=2n**112n-1n,Sbr=2n**120n-1n,Abr=2n**128n-1n,Tbr=2n**136n-1n,Ibr=2n**144n-1n,Rbr=2n**152n-1n,Pbr=2n**160n-1n,Obr=2n**168n-1n,Nbr=2n**176n-1n,kbr=2n**184n-1n,Bbr=2n**192n-1n,Mbr=2n**200n-1n,Dbr=2n**208n-1n,Lbr=2n**216n-1n,Ubr=2n**224n-1n,Fbr=2n**232n-1n,jbr=2n**240n-1n,Hbr=2n**248n-1n,fJ=2n**256n-1n});function Mw(t,e,r){let{checksumAddress:n,staticPosition:i}=r,s=mJ(e.type);if(s){let[o,a]=s;return mft(t,{...e,type:a},{checksumAddress:n,length:o,staticPosition:i})}if(e.type===\\\"tuple\\\")return wft(t,e,{checksumAddress:n,staticPosition:i});if(e.type===\\\"address\\\")return hft(t,{checksum:n});if(e.type===\\\"bool\\\")return gft(t);if(e.type.startsWith(\\\"bytes\\\"))return yft(t,e,{staticPosition:i});if(e.type.startsWith(\\\"uint\\\")||e.type.startsWith(\\\"int\\\"))return bft(t,e);if(e.type===\\\"string\\\")return vft(t,{staticPosition:i});throw new a6(e.type)}function hft(t,e={}){let{checksum:r=!1}=e,n=t.readBytes(32);return[(s=>r?CB(s):s)(ls(o2e(n,-20))),32]}function mft(t,e,r){let{checksumAddress:n,length:i,staticPosition:s}=r;if(!i){let c=up(t.readBytes(pJ)),l=s+c,d=l+uEe;t.setPosition(l);let f=up(t.readBytes(uEe)),p=UA(e),h=0,m=[];for(let g=0;g<f;++g){t.setPosition(d+(p?g*32:h));let[w,v]=Mw(t,e,{checksumAddress:n,staticPosition:d});h+=v,m.push(w)}return t.setPosition(s+32),[m,32]}if(UA(e)){let c=up(t.readBytes(pJ)),l=s+c,d=[];for(let f=0;f<i;++f){t.setPosition(l+f*32);let[p]=Mw(t,e,{checksumAddress:n,staticPosition:l});d.push(p)}return t.setPosition(s+32),[d,32]}let o=0,a=[];for(let c=0;c<i;++c){let[l,d]=Mw(t,e,{checksumAddress:n,staticPosition:s+o});o+=d,a.push(l)}return[a,o]}function gft(t){return[c2e(t.readBytes(32),{size:32}),32]}function yft(t,e,{staticPosition:r}){let[n,i]=e.type.split(\\\"bytes\\\");if(!i){let o=up(t.readBytes(32));t.setPosition(r+o);let a=up(t.readBytes(32));if(a===0)return t.setPosition(r+32),[\\\"0x\\\",32];let c=t.readBytes(a);return t.setPosition(r+32),[ls(c),32]}return[ls(t.readBytes(Number.parseInt(i,10),32)),32]}function bft(t,e){let r=e.type.startsWith(\\\"int\\\"),n=Number.parseInt(e.type.split(\\\"int\\\")[1]||\\\"256\\\",10),i=t.readBytes(32);return[n>48?a2e(i,{signed:r}):up(i,{signed:r}),32]}function wft(t,e,r){let{checksumAddress:n,staticPosition:i}=r,s=e.components.length===0||e.components.some(({name:c})=>!c),o=s?[]:{},a=0;if(UA(e)){let c=up(t.readBytes(pJ)),l=i+c;for(let d=0;d<e.components.length;++d){let f=e.components[d];t.setPosition(l+a);let[p,h]=Mw(t,f,{checksumAddress:n,staticPosition:l});a+=h,o[s?d:f?.name]=p}return t.setPosition(i+32),[o,32]}for(let c=0;c<e.components.length;++c){let l=e.components[c],[d,f]=Mw(t,l,{checksumAddress:n,staticPosition:i});o[s?c:l?.name]=d,a+=f}return[o,a]}function vft(t,{staticPosition:e}){let r=up(t.readBytes(32)),n=e+r;t.setPosition(n);let i=up(t.readBytes(32));if(i===0)return t.setPosition(e+32),[\\\"\\\",32];let s=t.readBytes(i,32),o=l2e(yQ(s));return t.setPosition(e+32),[o,32]}function dEe({checksumAddress:t,parameters:e,values:r}){let n=[];for(let i=0;i<e.length;i++)n.push(hJ({checksumAddress:t,parameter:e[i],value:r[i]}));return n}function hJ({checksumAddress:t=!1,parameter:e,value:r}){let n=e,i=mJ(n.type);if(i){let[s,o]=i;return Eft(r,{checksumAddress:t,length:s,parameter:{...n,type:o}})}if(n.type===\\\"tuple\\\")return Tft(r,{checksumAddress:t,parameter:n});if(n.type===\\\"address\\\")return xft(r,{checksum:t});if(n.type===\\\"bool\\\")return Cft(r);if(n.type.startsWith(\\\"uint\\\")||n.type.startsWith(\\\"int\\\")){let s=n.type.startsWith(\\\"int\\\"),[,,o=\\\"256\\\"]=TB.exec(n.type)??[];return Sft(r,{signed:s,size:Number(o)})}if(n.type.startsWith(\\\"bytes\\\"))return _ft(r,{type:n.type});if(n.type===\\\"string\\\")return Aft(r);throw new a6(n.type)}function RB(t){let e=0;for(let s=0;s<t.length;s++){let{dynamic:o,encoded:a}=t[s];o?e+=32:e+=_i(a)}let r=[],n=[],i=0;for(let s=0;s<t.length;s++){let{dynamic:o,encoded:a}=t[s];o?(r.push(Sr(e+i,{size:32})),n.push(a),i+=_i(a)):r.push(a)}return Ni(...r,...n)}function xft(t,e){let{checksum:r=!1}=e;return Bw(t,{strict:r}),{dynamic:!1,encoded:Cm(t.toLowerCase())}}function Eft(t,e){let{checksumAddress:r,length:n,parameter:i}=e,s=n===null;if(!Array.isArray(t))throw new OB(t);if(!s&&t.length!==n)throw new PB({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,a=[];for(let c=0;c<t.length;c++){let l=hJ({checksumAddress:r,parameter:i,value:t[c]});l.dynamic&&(o=!0),a.push(l)}if(s||o){let c=RB(a);if(s){let l=Sr(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?Ni(l,c):l}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:Ni(...a.map(({encoded:c})=>c))}}function _ft(t,{type:e}){let[,r]=e.split(\\\"bytes\\\"),n=_i(t);if(!r){let i=t;return n%32!==0&&(i=dp(i,Math.ceil((t.length-2)/2/32)*32)),{dynamic:!0,encoded:Ni(Cm(Sr(n,{size:32})),i)}}if(n!==Number.parseInt(r,10))throw new FA({expectedSize:Number.parseInt(r,10),value:t});return{dynamic:!1,encoded:dp(t)}}function Cft(t){if(typeof t!=\\\"boolean\\\")throw new $e(`Invalid boolean value: \\\"${t}\\\" (type: ${typeof t}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Cm(Sk(t))}}function Sft(t,{signed:e,size:r}){if(typeof r==\\\"number\\\"){let n=2n**(BigInt(r)-(e?1n:0n))-1n,i=e?-n-1n:0n;if(t>n||t<i)throw new CA({max:n.toString(),min:i.toString(),signed:e,size:r/8,value:t.toString()})}return{dynamic:!1,encoded:Sr(t,{size:32,signed:e})}}function Aft(t){let e=Q5(t),r=Math.ceil(_i(e)/32),n=[];for(let i=0;i<r;i++)n.push(dp(Ci(e,i*32,(i+1)*32)));return{dynamic:!0,encoded:Ni(dp(Sr(_i(e),{size:32})),...n)}}function Tft(t,e){let{checksumAddress:r,parameter:n}=e,i=!1,s=[];for(let o=0;o<n.components.length;o++){let a=n.components[o],c=Array.isArray(t)?o:a.name,l=hJ({checksumAddress:r,parameter:a,value:t[c]});s.push(l),l.dynamic&&(i=!0)}return{dynamic:i,encoded:i?RB(s):Ni(...s.map(({encoded:o})=>o))}}function mJ(t){let e=t.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function UA(t){let{type:e}=t;if(e===\\\"string\\\"||e===\\\"bytes\\\"||e.endsWith(\\\"[]\\\"))return!0;if(e===\\\"tuple\\\")return t.components?.some(UA);let r=mJ(t.type);return!!(r&&UA({...t,type:r[1]}))}var uEe,pJ,fEe=x(()=>{u();c6();LA();ly();Ic();io();IB();uEe=32,pJ=32});function kB(t,{recursiveReadLimit:e=8192}={}){let r=Object.create(Rft);return r.bytes=t,r.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=e,r}var Rft,NB,gJ,yJ,bJ=x(()=>{u();Ic();Rft={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new yJ({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new gJ({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new NB({offset:t});let e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new NB({offset:t});let e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){let r=e??this.position;return this.assertPosition(r+t-1),this.bytes.subarray(r,r+t)},inspectUint8(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){let e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){let e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){let e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();let r=this.inspectBytes(t);return this.position+=e??t,r},readUint8(){this.assertReadLimit(),this._touch();let t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();let t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();let t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();let t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){let e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};NB=class extends $e{constructor({offset:e}){super(`Offset \\\\`${e}\\\\` cannot be negative.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Cursor.NegativeOffsetError\\\"})}},gJ=class extends $e{constructor({length:e,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${e}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Cursor.PositionOutOfBoundsError\\\"})}},yJ=class extends $e{constructor({count:e,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${e}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Cursor.RecursiveReadLimitExceededError\\\"})}}});function l6(t,e,r={}){let{as:n=\\\"Array\\\",checksumAddress:i=!1}=r,s=typeof e==\\\"string\\\"?K5(e):e,o=kB(s);if(Cu(s)===0&&t.length>0)throw new xJ;if(Cu(s)&&Cu(s)<32)throw new vJ({data:typeof e==\\\"string\\\"?e:ls(e),parameters:t,size:Cu(s)});let a=0,c=n===\\\"Array\\\"?[]:{};for(let l=0;l<t.length;++l){let d=t[l];o.setPosition(a);let[f,p]=Mw(o,d,{checksumAddress:i,staticPosition:0});a+=p,n===\\\"Array\\\"?c.push(f):c[d.name??l]=f}return c}function yy(t,e,r){let{checksumAddress:n=!1}=r??{};if(t.length!==e.length)throw new BB({expectedLength:t.length,givenLength:e.length});let i=dEe({checksumAddress:n,parameters:t,values:e}),s=RB(i);return s.length===0?\\\"0x\\\":s}function wJ(t,e){if(t.length!==e.length)throw new BB({expectedLength:t.length,givenLength:e.length});let r=[];for(let n=0;n<t.length;n++){let i=t[n],s=e[n];r.push(wJ.encode(i,s))}return Ni(...r)}function HA(t){return Array.isArray(t)&&typeof t[0]==\\\"string\\\"?WO(t):typeof t==\\\"string\\\"?WO(t):t}var vJ,xJ,PB,FA,BB,OB,a6,c6=x(()=>{u();KE();LA();ly();Ic();io();fEe();bJ();IB();(function(t){function e(r,n,i=!1){if(r===\\\"address\\\"){let c=n;return Bw(c),Cm(c.toLowerCase(),i?32:0)}if(r===\\\"string\\\")return Q5(n);if(r===\\\"bytes\\\")return n;if(r===\\\"bool\\\")return Cm(Sk(n),i?32:1);let s=r.match(TB);if(s){let[c,l,d=\\\"256\\\"]=s,f=Number.parseInt(d,10)/8;return Sr(n,{size:i?32:f,signed:l===\\\"int\\\"})}let o=r.match(cEe);if(o){let[c,l]=o;if(Number.parseInt(l,10)!==(n.length-2)/2)throw new FA({expectedSize:Number.parseInt(l,10),value:n});return dp(n,i?32:0)}let a=r.match(aEe);if(a&&Array.isArray(n)){let[c,l]=a,d=[];for(let f=0;f<n.length;f++)d.push(e(l,n[f],!0));return d.length===0?\\\"0x\\\":Ni(...d)}throw new a6(r)}t.encode=e})(wJ||(wJ={}));vJ=class extends $e{constructor({data:e,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Xh(r)})`,`Data:   ${e} (${n} bytes)`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.DataSizeTooSmallError\\\"})}},xJ=class extends $e{constructor(){super('Cannot decode zero data (\\\"0x\\\") with ABI parameters.'),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.ZeroDataError\\\"})}},PB=class extends $e{constructor({expectedLength:e,givenLength:r,type:n}){super(`Array length mismatch for type \\\\`${n}\\\\`. Expected: \\\\`${e}\\\\`. Given: \\\\`${r}\\\\`.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.ArrayLengthMismatchError\\\"})}},FA=class extends $e{constructor({expectedSize:e,value:r}){super(`Size of bytes \\\"${r}\\\" (bytes${_i(r)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.BytesSizeMismatchError\\\"})}},BB=class extends $e{constructor({expectedLength:e,givenLength:r}){super([\\\"ABI encoding parameters/values length mismatch.\\\",`Expected length (parameters): ${e}`,`Given length (values): ${r}`].join(`\\n`)),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.LengthMismatchError\\\"})}},OB=class extends $e{constructor(e){super(`Value \\\\`${e}\\\\` is not a valid array.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.InvalidArrayError\\\"})}},a6=class extends $e{constructor(e){super(`Type \\\\`${e}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.InvalidTypeError\\\"})}}});function Pft(t,e){let{as:r}=e,n=mEe(t),i=kB(new Uint8Array(n.length));return n.encode(i),r===\\\"Hex\\\"?ls(i.bytes):i.bytes}function hEe(t,e={}){let{as:r=\\\"Hex\\\"}=e;return Pft(t,{as:r})}function mEe(t){return Array.isArray(t)?Oft(t.map(e=>mEe(e))):Nft(t)}function Oft(t){let e=t.reduce((i,s)=>i+s.length,0),r=gEe(e);return{length:e<=55?1+e:1+r+e,encode(i){e<=55?i.pushByte(192+e):(i.pushByte(247+r),r===1?i.pushUint8(e):r===2?i.pushUint16(e):r===3?i.pushUint24(e):i.pushUint32(e));for(let{encode:s}of t)s(i)}}}function Nft(t){let e=typeof t==\\\"string\\\"?K5(t):t,r=gEe(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+r+e.length,encode(i){e.length===1&&e[0]<128?i.pushBytes(e):e.length<=55?(i.pushByte(128+e.length),i.pushBytes(e)):(i.pushByte(183+r),r===1?i.pushUint8(e.length):r===2?i.pushUint16(e.length):r===3?i.pushUint24(e.length):i.pushUint32(e.length),i.pushBytes(e))}}}function gEe(t){if(t<=255)return 1;if(t<=65535)return 2;if(t<=16777215)return 3;if(t<=4294967295)return 4;throw new $e(\\\"Length is too large.\\\")}var yEe=x(()=>{u();ly();Ic();io();bJ()});function AJ(t,e={}){let{recovered:r}=e;if(typeof t.r>\\\"u\\\")throw new qA({signature:t});if(typeof t.s>\\\"u\\\")throw new qA({signature:t});if(r&&typeof t.yParity>\\\"u\\\")throw new qA({signature:t});if(t.r<0n||t.r>fJ)throw new _J({value:t.r});if(t.s<0n||t.s>fJ)throw new CJ({value:t.s});if(typeof t.yParity==\\\"number\\\"&&t.yParity!==0&&t.yParity!==1)throw new zA({value:t.yParity})}function Bft(t){return bEe(ls(t))}function bEe(t){if(t.length!==130&&t.length!==132)throw new EJ({signature:t});let e=BigInt(Ci(t,0,32)),r=BigInt(Ci(t,32,64)),n=(()=>{let i=+`0x${t.slice(130)}`;if(!Number.isNaN(i))try{return RJ(i)}catch{throw new zA({value:i})}})();return typeof n>\\\"u\\\"?{r:e,s:r}:{r:e,s:r,yParity:n}}function TJ(t){if(!(typeof t.r>\\\"u\\\")&&!(typeof t.s>\\\"u\\\"))return IJ(t)}function IJ(t){let e=typeof t==\\\"string\\\"?bEe(t):t instanceof Uint8Array?Bft(t):typeof t.r==\\\"string\\\"?Dft(t):t.v?Mft(t):{r:t.r,s:t.s,...typeof t.yParity<\\\"u\\\"?{yParity:t.yParity}:{}};return AJ(e),e}function Mft(t){return{r:t.r,s:t.s,yParity:RJ(t.v)}}function Dft(t){let e=(()=>{let r=t.v?Number(t.v):void 0,n=t.yParity?Number(t.yParity):void 0;if(typeof r==\\\"number\\\"&&typeof n!=\\\"number\\\"&&(n=RJ(r)),typeof n!=\\\"number\\\")throw new zA({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}function wEe(t){let{r:e,s:r,yParity:n}=t;return[n?\\\"0x01\\\":\\\"0x\\\",e===0n?\\\"0x\\\":wQ(Sr(e)),r===0n?\\\"0x\\\":wQ(Sr(r))]}function RJ(t){if(t===0||t===27)return 0;if(t===1||t===28)return 1;if(t>=35)return t%2===0?1:0;throw new SJ({value:t})}var EJ,qA,_J,CJ,zA,SJ,PJ=x(()=>{u();Ic();io();_A();IB();EJ=class extends $e{constructor({signature:e}){super(`Value \\\\`${e}\\\\` is an invalid signature size.`,{metaMessages:[\\\"Expected: 64 bytes or 65 bytes.\\\",`Received ${_i(Z5(e))} bytes.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidSerializedSizeError\\\"})}},qA=class extends $e{constructor({signature:e}){super(`Signature \\\\`${uy(e)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.MissingPropertiesError\\\"})}},_J=class extends $e{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidRError\\\"})}},CJ=class extends $e{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidSError\\\"})}},zA=class extends $e{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidYParityError\\\"})}},SJ=class extends $e{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidVError\\\"})}}});function xEe(t,e={}){return typeof t.chainId==\\\"string\\\"?Lft(t):{...t,...e.signature}}function Lft(t){let{address:e,chainId:r,nonce:n}=t,i=TJ(t);return{address:e,chainId:Number(r),nonce:BigInt(n),...i}}function EEe(t){return Uft(t,{presign:!0})}function Uft(t,e={}){let{presign:r}=e;return kw(Ni(\\\"0x05\\\",hEe(Fft(r?{address:t.address,chainId:t.chainId,nonce:t.nonce}:t))))}function Fft(t){let{address:e,chainId:r,nonce:n}=t,i=TJ(t);return[r?Sr(r):\\\"0x\\\",e,n?Sr(n):\\\"0x\\\",...i?wEe(i):[]]}var _Ee=x(()=>{u();xB();io();yEe();PJ()});function CEe(t){return oEe(Hft(t))}function Hft(t){let{payload:e,signature:r}=t,{r:n,s:i,yParity:s}=r,a=new jd.Signature(BigInt(n),BigInt(i)).addRecoveryBit(s).recoverPublicKey(Z5(e).substring(2));return nEe(a)}var SEe=x(()=>{u();uA();LA();io();lJ()});var $A={};ue($A,{InvalidWrappedSignatureError:()=>MB,assert:()=>DB,from:()=>zft,magicBytes:()=>OJ,suffixParameters:()=>NJ,unwrap:()=>AEe,validate:()=>Vft,wrap:()=>$ft});function DB(t){if(typeof t==\\\"string\\\"){if(Ci(t,-32)!==OJ)throw new MB(t)}else AJ(t.authorization)}function zft(t){return typeof t==\\\"string\\\"?AEe(t):t}function AEe(t){DB(t);let e=Ek(Ci(t,-64,-32)),r=Ci(t,-e-64,-64),n=Ci(t,0,-e-64),[i,s,o]=l6(NJ,r);return{authorization:xEe({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:n,...o&&o!==\\\"0x\\\"?{data:o,to:s}:{}}}function $ft(t){let{data:e,signature:r}=t;DB(t);let n=CEe({payload:EEe(t.authorization),signature:IJ(t.authorization)}),i=yy(NJ,[{...t.authorization,delegation:t.authorization.address,chainId:BigInt(t.authorization.chainId)},t.to??n,e??\\\"0x\\\"]),s=Sr(_i(i),{size:32});return Ni(r,i,s,OJ)}function Vft(t){try{return DB(t),!0}catch{return!1}}var OJ,NJ,MB,TEe=x(()=>{u();c6();_Ee();Ic();io();SEe();PJ();OJ=\\\"0x8010801080108010801080108010801080108010801080108010801080108010\\\",NJ=HA(\\\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\\\");MB=class extends $e{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"SignatureErc8010.InvalidWrappedSignatureError\\\"})}}});var IEe=x(()=>{u();TEe()});function LB(t){let{address:e,data:r,signature:n,to:i=\\\"hex\\\"}=t,s=ln([Vn([{type:\\\"address\\\"},{type:\\\"bytes\\\"},{type:\\\"bytes\\\"}],[e,r,n]),Yxe]);return i===\\\"hex\\\"?s:Hr(s)}var REe=x(()=>{u();Xxe();wu();Ei();Zi()});var Dw=x(()=>{u();en();Dd();rm();xi();qe();Yb()});function Gft(t){return t.map(e=>({...e,value:BigInt(e.value)}))}function PEe(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?jr(t.nonce):void 0,storageProof:t.storageProof?Gft(t.storageProof):void 0}}var OEe=x(()=>{u();Dw()});async function NEe(t,{address:e,blockNumber:r,blockTag:n,storageKeys:i}){let s=n??\\\"latest\\\",o=r!==void 0?Z(r):void 0,a=await t.request({method:\\\"eth_getProof\\\",params:[e,i,o||s]});return PEe(a)}var kEe=x(()=>{u();qe();OEe()});async function BEe(t,{address:e,blockNumber:r,blockTag:n=\\\"latest\\\",slot:i}){let s=r!==void 0?Z(r):void 0;return await t.request({method:\\\"eth_getStorageAt\\\",params:[e,i,s||n]})}var MEe=x(()=>{u();qe()});async function u6(t,{blockHash:e,blockNumber:r,blockTag:n,hash:i,index:s,sender:o,nonce:a}){let c=n||\\\"latest\\\",l=r!==void 0?Z(r):void 0,d=null;if(i?d=await t.request({method:\\\"eth_getTransactionByHash\\\",params:[i]},{dedupe:!0}):e?d=await t.request({method:\\\"eth_getTransactionByBlockHashAndIndex\\\",params:[e,Z(s)]},{dedupe:!0}):(l||c)&&typeof s==\\\"number\\\"?d=await t.request({method:\\\"eth_getTransactionByBlockNumberAndIndex\\\",params:[l||c,Z(s)]},{dedupe:!!l}):o&&typeof a==\\\"number\\\"&&(d=await t.request({method:\\\"eth_getTransactionBySenderAndNonce\\\",params:[o,Z(a)]},{dedupe:!0})),!d)throw new d5({blockHash:e,blockNumber:r,blockTag:c,hash:i,index:s});return(t.chain?.formatters?.transaction?.format||zd)(d,\\\"getTransaction\\\")}var UB=x(()=>{u();wl();qe();iy()});async function DEe(t,{hash:e,transactionReceipt:r}){let[n,i]=await Promise.all([ae(t,pp,\\\"getBlockNumber\\\")({}),e?ae(t,u6,\\\"getTransaction\\\")({hash:e}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}var LEe=x(()=>{u();Ut();e6();UB()});async function d6(t,{hash:e}){let r=await t.request({method:\\\"eth_getTransactionReceipt\\\",params:[e]},{dedupe:!0});if(!r)throw new f5({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Pw)(r,\\\"getTransactionReceipt\\\")}var kJ=x(()=>{u();wl();Ow()});async function UEe(t,e){let{account:r,authorizationList:n,allowFailure:i=!0,blockNumber:s,blockOverrides:o,blockTag:a,stateOverride:c}=e,l=e.contracts,{batchSize:d=e.batchSize??1024,deployless:f=e.deployless??!1}=typeof t.batch?.multicall==\\\"object\\\"?t.batch.multicall:{},p=(()=>{if(e.multicallAddress)return e.multicallAddress;if(f)return null;if(t.chain)return Su({blockNumber:s,chain:t.chain,contract:\\\"multicall3\\\"});throw new Error(\\\"client chain not configured. multicallAddress is required.\\\")})(),h=[[]],m=0,g=0;for(let b=0;b<l.length;b++){let{abi:_,address:S,args:T,functionName:N}=l[b];try{let O=At({abi:_,args:T,functionName:N});g+=(O.length-2)/2,d>0&&g>d&&h[m].length>0&&(m++,g=(O.length-2)/2,h[m]=[]),h[m]=[...h[m],{allowFailure:!0,callData:O,target:S}]}catch(O){let L=xl(O,{abi:_,address:S,args:T,docsPath:\\\"/docs/contract/multicall\\\",functionName:N,sender:r});if(!i)throw L;h[m]=[...h[m],{allowFailure:!0,callData:\\\"0x\\\",target:S}]}}let w=await Promise.allSettled(h.map(b=>ae(t,Tn,\\\"readContract\\\")({...p===null?{code:J5}:{address:p},abi:Wd,account:r,args:[b],authorizationList:n,blockNumber:s,blockOverrides:o,blockTag:a,functionName:\\\"aggregate3\\\",stateOverride:c}))),v=[];for(let b=0;b<w.length;b++){let _=w[b];if(_.status===\\\"rejected\\\"){if(!i)throw _.reason;for(let T=0;T<h[b].length;T++)v.push({status:\\\"failure\\\",error:_.reason,result:void 0});continue}let S=_.value;for(let T=0;T<S.length;T++){let{returnData:N,success:O}=S[T],{callData:L}=h[b][T],{abi:B,address:H,functionName:M,args:F}=l[v.length];try{if(L===\\\"0x\\\")throw new yu;if(!O)throw new ip({data:N});let R=ma({abi:B,args:F,data:N,functionName:M});v.push(i?{result:R,status:\\\"success\\\"}:R)}catch(R){let y=xl(R,{abi:B,address:H,args:F,docsPath:\\\"/docs/contract/multicall\\\",functionName:M});if(!i)throw y;v.push({error:y,result:void 0,status:\\\"failure\\\"})}}}if(v.length!==l.length)throw new W(\\\"multicall results mismatch\\\");return v}var FEe=x(()=>{u();fp();TA();Ki();st();dm();Em();fa();Sw();gw();Ut();Tu()});async function VA(t,e){let{blockNumber:r,blockTag:n=t.experimental_blockTag??\\\"latest\\\",blocks:i,returnFullTransactions:s,traceTransfers:o,validation:a}=e;try{let c=[];for(let p of i){let h=p.blockOverrides?Ak(p.blockOverrides):void 0,m=p.calls.map(w=>{let v=w,b=v.account?Ze(v.account):void 0,_=v.abi?At(v):v.data,S={...v,account:b,data:v.dataSuffix?Jt([_||\\\"0x\\\",v.dataSuffix]):_,from:v.from??b?.address};return xs(S),Hs(S)}),g=p.stateOverrides?ty(p.stateOverrides):void 0;c.push({blockOverrides:h,calls:m,stateOverrides:g})}let d=(typeof r==\\\"bigint\\\"?Z(r):void 0)||n;return(await t.request({method:\\\"eth_simulateV1\\\",params:[{blockStateCalls:c,returnFullTransactions:s,traceTransfers:o,validation:a},d]})).map((p,h)=>({...yA(p),calls:p.calls.map((m,g)=>{let{abi:w,args:v,functionName:b,to:_}=i[h].calls[g],S=m.error?.data??m.returnData,T=BigInt(m.gasUsed),N=m.logs?.map(H=>Qi(H)),O=m.status===\\\"0x1\\\"?\\\"success\\\":\\\"failure\\\",L=w&&O===\\\"success\\\"&&S!==\\\"0x\\\"?ma({abi:w,data:S,functionName:b}):null,B=(()=>{if(O===\\\"success\\\")return;let H;if(S===\\\"0x\\\"?H=new yu:S&&(H=new ip({data:S})),!!H)return xl(H,{abi:w??[],address:_??\\\"0x\\\",args:v,functionName:b??\\\"<unknown>\\\"})})();return{data:S,gasUsed:T,logs:N,status:O,...O===\\\"success\\\"?{result:L}:{error:B}}})}))}catch(c){let l=c,d=Yg(l,{});throw d instanceof Eu?l:d}}var BJ=x(()=>{u();vQ();en();Ki();dm();cp();Em();fa();Ei();qe();gw();fA();M5();Vd();_u();hA();qd()});function jB(t){let e=!0,r=\\\"\\\",n=0,i=\\\"\\\",s=!1;for(let o=0;o<t.length;o++){let a=t[o];if([\\\"(\\\",\\\")\\\",\\\",\\\"].includes(a)&&(e=!0),a===\\\"(\\\"&&n++,a===\\\")\\\"&&n--,!!e){if(n===0){if(a===\\\" \\\"&&[\\\"event\\\",\\\"function\\\",\\\"error\\\",\\\"\\\"].includes(i))i=\\\"\\\";else if(i+=a,a===\\\")\\\"){s=!0;break}continue}if(a===\\\" \\\"){t[o-1]!==\\\",\\\"&&r!==\\\",\\\"&&r!==\\\",(\\\"&&(r=\\\"\\\",e=!1);continue}i+=a,r+=a}}if(!s)throw new $e(\\\"Unable to normalize signature.\\\");return i}function FB(t,e){let r=typeof t,n=e.type;switch(n){case\\\"address\\\":return SB(t,{strict:!1});case\\\"bool\\\":return r===\\\"boolean\\\";case\\\"function\\\":return r===\\\"string\\\";case\\\"string\\\":return r===\\\"string\\\";default:return n===\\\"tuple\\\"&&\\\"components\\\"in e?Object.values(e.components).every((i,s)=>FB(Object.values(t)[s],i)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\\\"number\\\"||r===\\\"bigint\\\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\\\"string\\\"||t instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(t)&&t.every(i=>FB(i,{...e,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\\\"\\\")})):!1}}function MJ(t,e,r){for(let n in t){let i=t[n],s=e[n];if(i.type===\\\"tuple\\\"&&s.type===\\\"tuple\\\"&&\\\"components\\\"in i&&\\\"components\\\"in s)return MJ(i.components,s.components,r[n]);let o=[i.type,s.type];if(o.includes(\\\"address\\\")&&o.includes(\\\"bytes20\\\")?!0:o.includes(\\\"address\\\")&&o.includes(\\\"string\\\")?SB(r[n],{strict:!1}):o.includes(\\\"address\\\")&&o.includes(\\\"bytes\\\")?SB(r[n],{strict:!1}):!1)return o}}var jEe=x(()=>{u();LA();Ic()});function HB(t,e={}){let{prepare:r=!0}=e,n=Array.isArray(t)?VO(t):typeof t==\\\"string\\\"?VO(t):t;return{...n,...r?{hash:f6(n)}:{}}}function WA(t,e,r){let{args:n=[],prepare:i=!0}=r??{},s=SA(e,{strict:!1}),o=t.filter(l=>s?l.type===\\\"function\\\"||l.type===\\\"error\\\"?LJ(l)===Ci(e,0,4):l.type===\\\"event\\\"?f6(l)===e:!1:\\\"name\\\"in l&&l.name===e);if(o.length===0)throw new by({name:e});if(o.length===1)return{...o[0],...i?{hash:f6(o[0])}:{}};let a;for(let l of o){if(!(\\\"inputs\\\"in l))continue;if(!n||n.length===0){if(!l.inputs||l.inputs.length===0)return{...l,...i?{hash:f6(l)}:{}};continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==n.length)continue;if(n.every((f,p)=>{let h=\\\"inputs\\\"in l&&l.inputs[p];return h?FB(f,h):!1})){if(a&&\\\"inputs\\\"in a&&a.inputs){let f=MJ(l.inputs,a.inputs,n);if(f)throw new DJ({abiItem:l,type:f[0]},{abiItem:a,type:f[1]})}a=l}}let c=(()=>{if(a)return a;let[l,...d]=o;return{...l,overloads:d}})();if(!c)throw new by({name:e});return{...c,...i?{hash:f6(c)}:{}}}function LJ(...t){let e=(()=>{if(Array.isArray(t[0])){let[r,n]=t;return WA(r,n)}return t[0]})();return Ci(f6(e),0,4)}function Zft(...t){let e=(()=>{if(Array.isArray(t[0])){let[n,i]=t;return WA(n,i)}return t[0]})(),r=typeof e==\\\"string\\\"?e:Wb(e);return jB(r)}function f6(...t){let e=(()=>{if(Array.isArray(t[0])){let[r,n]=t;return WA(r,n)}return t[0]})();return typeof e!=\\\"string\\\"&&\\\"hash\\\"in e&&e.hash?e.hash:kw(Q5(Zft(e)))}var DJ,by,UJ=x(()=>{u();KE();Ic();xB();io();jEe();DJ=class extends $e{constructor(e,r){super(\\\"Found ambiguous types in overloaded ABI Items.\\\",{metaMessages:[`\\\\`${e.type}\\\\` in \\\\`${jB(Wb(e.abiItem))}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${jB(Wb(r.abiItem))}\\\\``,\\\"\\\",\\\"These types encode differently and cannot be distinguished at runtime.\\\",\\\"Remove one of the ambiguous items in the ABI.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiItem.AmbiguityError\\\"})}},by=class extends $e{constructor({name:e,data:r,type:n=\\\"item\\\"}){let i=e?` with name \\\"${e}\\\"`:r?` with data \\\"${r}\\\"`:\\\"\\\";super(`ABI ${n}${i} not found.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiItem.NotFoundError\\\"})}}});function qEe(...t){let[e,r]=(()=>{if(Array.isArray(t[0])){let[s,o]=t;return[Qft(s),o]}return t})(),{bytecode:n,args:i}=r;return Ni(n,e.inputs?.length&&i?.length?yy(e.inputs,i):\\\"0x\\\")}function zEe(t){return HB(t)}function Qft(t){let e=t.find(r=>r.type===\\\"constructor\\\");if(!e)throw new by({name:\\\"constructor\\\"});return e}var $Ee=x(()=>{u();UJ();c6();io()});function WEe(...t){let[e,r=[]]=(()=>{if(Array.isArray(t[0])){let[l,d,f]=t;return[VEe(l,d,{args:f}),f]}let[a,c]=t;return[a,c]})(),{overloads:n}=e,i=n?VEe([e,...n],e.name,{args:r}):e,s=Yft(i),o=r.length>0?yy(i.inputs,r):void 0;return o?Ni(s,o):s}function Lw(t,e={}){return HB(t,e)}function VEe(t,e,r){let n=WA(t,e,r);if(n.type!==\\\"function\\\")throw new by({name:e,type:\\\"function\\\"});return n}function Yft(t){return LJ(t)}var GEe=x(()=>{u();UJ();c6();io()});var KEe,Ru,ZEe=x(()=>{u();KEe=\\\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\\\",Ru=\\\"0x0000000000000000000000000000000000000000\\\"});async function QEe(t,e){let{blockNumber:r,blockTag:n,calls:i,stateOverrides:s,traceAssetChanges:o,traceTransfers:a,validation:c}=e,l=e.account?Ze(e.account):void 0;if(o&&!l)throw new W(\\\"`account` is required when `traceAssetChanges` is true\\\");let d=l?qEe(zEe(\\\"constructor(bytes, bytes)\\\"),{bytecode:Rk,args:[ept,WEe(Lw(\\\"function getBalance(address)\\\"),[l.address])]}):void 0,f=o?await Promise.all(e.calls.map(async P=>{if(!P.data&&!P.abi)return;let{accessList:k}=await sB(t,{account:l.address,...P,data:P.abi?At(P):P.data});return k.map(({address:U,storageKeys:D})=>D.length>0?U:null)})).then(P=>P.flat().filter(Boolean)):[],p=await VA(t,{blockNumber:r,blockTag:n,blocks:[...o?[{calls:[{data:d}],stateOverrides:s},{calls:f.map((P,k)=>({abi:[Lw(\\\"function balanceOf(address) returns (uint256)\\\")],functionName:\\\"balanceOf\\\",args:[l.address],to:P,from:Ru,nonce:k})),stateOverrides:[{address:Ru,nonce:0}]}]:[],{calls:[...i,{to:Ru}].map(P=>({...P,from:l?.address})),stateOverrides:s},...o?[{calls:[{data:d}]},{calls:f.map((P,k)=>({abi:[Lw(\\\"function balanceOf(address) returns (uint256)\\\")],functionName:\\\"balanceOf\\\",args:[l.address],to:P,from:Ru,nonce:k})),stateOverrides:[{address:Ru,nonce:0}]},{calls:f.map((P,k)=>({to:P,abi:[Lw(\\\"function decimals() returns (uint256)\\\")],functionName:\\\"decimals\\\",from:Ru,nonce:k})),stateOverrides:[{address:Ru,nonce:0}]},{calls:f.map((P,k)=>({to:P,abi:[Lw(\\\"function tokenURI(uint256) returns (string)\\\")],functionName:\\\"tokenURI\\\",args:[0n],from:Ru,nonce:k})),stateOverrides:[{address:Ru,nonce:0}]},{calls:f.map((P,k)=>({to:P,abi:[Lw(\\\"function symbol() returns (string)\\\")],functionName:\\\"symbol\\\",from:Ru,nonce:k})),stateOverrides:[{address:Ru,nonce:0}]}]:[]],traceTransfers:a,validation:c}),h=o?p[2]:p[0],[m,g,,w,v,b,_,S]=o?p:[],{calls:T,...N}=h,O=T.slice(0,-1)??[],L=m?.calls??[],B=g?.calls??[],H=[...L,...B].map(P=>P.status===\\\"success\\\"?Ge(P.data):null),M=w?.calls??[],F=v?.calls??[],R=[...M,...F].map(P=>P.status===\\\"success\\\"?Ge(P.data):null),y=(b?.calls??[]).map(P=>P.status===\\\"success\\\"?P.result:null),E=(S?.calls??[]).map(P=>P.status===\\\"success\\\"?P.result:null),C=(_?.calls??[]).map(P=>P.status===\\\"success\\\"?P.result:null),I=[];for(let[P,k]of R.entries()){let U=H[P];if(typeof k!=\\\"bigint\\\"||typeof U!=\\\"bigint\\\")continue;let D=y[P-1],A=E[P-1],j=C[P-1],K=P===0?{address:KEe,decimals:18,symbol:\\\"ETH\\\"}:{address:f[P-1],decimals:j||D?Number(D??1):void 0,symbol:A??void 0};I.some(J=>J.token.address===K.address)||I.push({token:K,value:{pre:U,post:k,diff:k-U}})}return{assetChanges:I,block:N,results:O}}var ept,JEe=x(()=>{u();$Ee();GEe();en();ZEe();TA();st();fa();Dw();GQ();BJ();ept=\\\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\\\"});var GA={};ue(GA,{InvalidWrappedSignatureError:()=>qB,assert:()=>jJ,from:()=>npt,magicBytes:()=>FJ,universalSignatureValidatorAbi:()=>rpt,universalSignatureValidatorBytecode:()=>tpt,unwrap:()=>YEe,validate:()=>spt,wrap:()=>ipt});function jJ(t){if(Ci(t,-32)!==FJ)throw new qB(t)}function npt(t){return typeof t==\\\"string\\\"?YEe(t):t}function YEe(t){jJ(t);let[e,r,n]=l6(HA(\\\"address, bytes, bytes\\\"),t);return{data:r,signature:n,to:e}}function ipt(t){let{data:e,signature:r,to:n}=t;return Ni(yy(HA(\\\"address, bytes, bytes\\\"),[n,e,r]),FJ)}function spt(t){try{return jJ(t),!0}catch{return!1}}var FJ,tpt,rpt,qB,XEe=x(()=>{u();c6();Ic();io();FJ=\\\"0x6492649264926492649264926492649264926492649264926492649264926492\\\",tpt=\\\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\\\",rpt=[{inputs:[{name:\\\"_signer\\\",type:\\\"address\\\"},{name:\\\"_hash\\\",type:\\\"bytes32\\\"},{name:\\\"_signature\\\",type:\\\"bytes\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"constructor\\\"},{inputs:[{name:\\\"_signer\\\",type:\\\"address\\\"},{name:\\\"_hash\\\",type:\\\"bytes32\\\"},{name:\\\"_signature\\\",type:\\\"bytes\\\"}],outputs:[{type:\\\"bool\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\",name:\\\"isValidSig\\\"}];qB=class extends $e{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"SignatureErc6492.InvalidWrappedSignatureError\\\"})}}});var e5e=x(()=>{u();XEe()});function t5e({r:t,s:e,to:r=\\\"hex\\\",v:n,yParity:i}){let s=(()=>{if(i===0||i===1)return i;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error(\\\"Invalid `v` or `yParity` value\\\")})(),o=`0x${new jd.Signature(Ge(t),Ge(e)).toCompactHex()}${s===0?\\\"1b\\\":\\\"1c\\\"}`;return r===\\\"hex\\\"?o:Hr(o)}var r5e=x(()=>{u();uA();xi();Zi()});async function wy(t,e){let{address:r,chain:n=t.chain,hash:i,erc6492VerifierAddress:s=e.universalSignatureVerifierAddress??n?.contracts?.erc6492Verifier?.address,multicallAddress:o=e.multicallAddress??n?.contracts?.multicall3?.address,mode:a=\\\"auto\\\"}=e;if(n?.verifyHash)return await n.verifyHash(t,e);let c=(()=>{let l=e.signature;return Ur(l)?l:typeof l==\\\"object\\\"&&\\\"r\\\"in l&&\\\"s\\\"in l?t5e(l):er(l)})();try{if(a===\\\"eoa\\\")try{if(ha(_r(r),await ap({hash:i,signature:c})))return!0}catch{}return $A.validate(c)?await opt(t,{...e,multicallAddress:o,signature:c}):await apt(t,{...e,verifierAddress:s,signature:c})}catch(l){if(a!==\\\"eoa\\\")try{if(ha(_r(r),await ap({hash:i,signature:c})))return!0}catch{}if(l instanceof Pm)return!1;throw l}}async function opt(t,e){let{address:r,blockNumber:n,blockTag:i,hash:s,multicallAddress:o}=e,{authorization:a,data:c,signature:l,to:d}=$A.unwrap(e.signature);if(await Sl(t,{address:r,blockNumber:n,blockTag:i})===ln([\\\"0xef0100\\\",a.address]))return await cpt(t,{address:r,blockNumber:n,blockTag:i,hash:s,signature:l});let p={address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:Z(a.r,{size:32}),s:Z(a.s,{size:32}),yParity:a.yParity};if(!await Nxe({address:r,authorization:p}))throw new Pm;let m=await ae(t,Tn,\\\"readContract\\\")({...o?{address:o}:{code:J5},authorizationList:[p],abi:Wd,blockNumber:n,blockTag:\\\"pending\\\",functionName:\\\"aggregate3\\\",args:[[...c?[{allowFailure:!0,target:d??r,callData:c}]:[],{allowFailure:!0,target:r,callData:At({abi:_Q,functionName:\\\"isValidSignature\\\",args:[s,l]})}]]});if(m[m.length-1]?.returnData?.startsWith(\\\"0x1626ba7e\\\"))return!0;throw new Pm}async function apt(t,e){let{address:r,factory:n,factoryData:i,hash:s,signature:o,verifierAddress:a,...c}=e,l=await(async()=>!n&&!i||GA.validate(o)?o:GA.wrap({data:i,signature:o,to:n}))(),d=a?{to:a,data:At({abi:AA,functionName:\\\"isValidSig\\\",args:[r,s,l]}),...c}:{data:Cw({abi:AA,args:[r,s,l],bytecode:w2e}),...c},{data:f}=await ae(t,Au,\\\"call\\\")(d).catch(p=>{throw p instanceof h5?new Pm:p});if(uN(f??\\\"0x0\\\"))return!0;throw new Pm}async function cpt(t,e){let{address:r,blockNumber:n,blockTag:i,hash:s,signature:o}=e;if((await ae(t,Tn,\\\"readContract\\\")({address:r,abi:_Q,args:[s,o],blockNumber:n,blockTag:i,functionName:\\\"isValidSignature\\\"}).catch(c=>{throw c instanceof jg?new Pm:c})).startsWith(\\\"0x1626ba7e\\\"))return!0;throw new Pm}var Pm,KA=x(()=>{u();e5e();IEe();fp();TA();dm();Nk();fa();Dd();cy();kxe();Ei();gu();xi();qe();Ut();GN();r5e();Tw();o6();Tu();Pm=class extends Error{}});async function n5e(t,{address:e,message:r,factory:n,factoryData:i,signature:s,...o}){let a=Rm(r);return ae(t,wy,\\\"verifyHash\\\")({address:e,factory:n,factoryData:i,hash:a,signature:s,...o})}var i5e=x(()=>{u();Ut();fB();KA()});async function s5e(t,e){let{address:r,factory:n,factoryData:i,signature:s,message:o,primaryType:a,types:c,domain:l,...d}=e,f=mp({message:o,primaryType:a,types:c,domain:l});return ae(t,wy,\\\"verifyHash\\\")({address:r,factory:n,factoryData:i,hash:f,signature:s,...d})}var o5e=x(()=>{u();Ut();bB();KA()});function zB(t,{emitOnBegin:e=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:s,pollingInterval:o=t.pollingInterval}){let a=typeof s<\\\"u\\\"?s:!(t.transport.type===\\\"webSocket\\\"||t.transport.type===\\\"ipc\\\"||t.transport.type===\\\"fallback\\\"&&(t.transport.transports[0].config.type===\\\"webSocket\\\"||t.transport.transports[0].config.type===\\\"ipc\\\")),c;return a?(()=>{let f=qt([\\\"watchBlockNumber\\\",t.uid,e,r,o]);return so(f,{onBlockNumber:n,onError:i},p=>Rc(async()=>{try{let h=await ae(t,pp,\\\"getBlockNumber\\\")({cacheTime:0});if(c!==void 0){if(h===c)return;if(h-c>1&&r)for(let m=c+1n;m<h;m++)p.onBlockNumber(m,c),c=m}(c===void 0||h>c)&&(p.onBlockNumber(h,c),c=h)}catch(h){p.onError?.(h)}},{emitOnBegin:e,interval:o}))})():(()=>{let f=qt([\\\"watchBlockNumber\\\",t.uid,e,r]);return so(f,{onBlockNumber:n,onError:i},p=>{let h=!0,m=()=>h=!1;return(async()=>{try{let g=(()=>{if(t.transport.type===\\\"fallback\\\"){let v=t.transport.transports.find(b=>b.config.type===\\\"webSocket\\\"||b.config.type===\\\"ipc\\\");return v?v.value:t.transport}return t.transport})(),{unsubscribe:w}=await g.subscribe({params:[\\\"newHeads\\\"],onData(v){if(!h)return;let b=Ge(v.result?.number);p.onBlockNumber(b,c),c=b},onError(v){p.onError?.(v)}});m=w,h||m()}catch(g){i?.(g)}})(),()=>m()})})()}var HJ=x(()=>{u();xi();Ut();Am();dy();ko();e6()});async function $B(t,e){let{checkReplacement:r=!0,confirmations:n=1,hash:i,onReplaced:s,retryCount:o=6,retryDelay:a=({count:T})=>~~(1<<T)*200,timeout:c=18e4}=e,l=qt([\\\"waitForTransactionReceipt\\\",t.uid,i]),d=e.pollingInterval?e.pollingInterval:t.chain?.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval,f,p,h,m=!1,g,w,{promise:v,resolve:b,reject:_}=X5(),S=c?setTimeout(()=>{w?.(),g?.(),_(new MN({hash:i}))},c):void 0;return g=so(l,{onReplaced:s,resolve:b,reject:_},async T=>{if(h=await ae(t,d6,\\\"getTransactionReceipt\\\")({hash:i}).catch(()=>{}),h&&n<=1){clearTimeout(S),T.resolve(h),g?.();return}w=ae(t,zB,\\\"watchBlockNumber\\\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(N){let O=B=>{clearTimeout(S),w?.(),B(),g?.()},L=N;if(!m)try{if(h){if(n>1&&(!h.blockNumber||L-h.blockNumber+1n<n))return;O(()=>T.resolve(h));return}if(r&&!f&&(m=!0,await hp(async()=>{f=await ae(t,u6,\\\"getTransaction\\\")({hash:i}),f.blockNumber&&(L=f.blockNumber)},{delay:a,retryCount:o}),m=!1),h=await ae(t,d6,\\\"getTransactionReceipt\\\")({hash:i}),n>1&&(!h.blockNumber||L-h.blockNumber+1n<n))return;O(()=>T.resolve(h))}catch(B){if(B instanceof d5||B instanceof f5){if(!f){m=!1;return}try{p=f,m=!0;let H=await hp(()=>ae(t,no,\\\"getBlock\\\")({blockNumber:L,includeTransactions:!0}),{delay:a,retryCount:o,shouldRetry:({error:R})=>R instanceof N5});m=!1;let M=H.transactions.find(({from:R,nonce:y})=>R===p.from&&y===p.nonce);if(!M||(h=await ae(t,d6,\\\"getTransactionReceipt\\\")({hash:M.hash}),n>1&&(!h.blockNumber||L-h.blockNumber+1n<n)))return;let F=\\\"replaced\\\";M.to===p.to&&M.value===p.value&&M.input===p.input?F=\\\"repriced\\\":M.from===M.to&&M.value===0n&&(F=\\\"cancelled\\\"),O(()=>{T.onReplaced?.({reason:F,replacedTransaction:p,transaction:M,transactionReceipt:h}),T.resolve(h)})}catch(H){O(()=>T.reject(H))}}else O(()=>T.reject(B))}}})}),v}var qJ=x(()=>{u();XZ();wl();Ut();Am();Bk();kA();ko();sy();UB();kJ();HJ()});function a5e(t,{blockTag:e=t.experimental_blockTag??\\\"latest\\\",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:o,poll:a,pollingInterval:c=t.pollingInterval}){let l=typeof a<\\\"u\\\"?a:!(t.transport.type===\\\"webSocket\\\"||t.transport.type===\\\"ipc\\\"||t.transport.type===\\\"fallback\\\"&&(t.transport.transports[0].config.type===\\\"webSocket\\\"||t.transport.transports[0].config.type===\\\"ipc\\\")),d=o??!1,f;return l?(()=>{let m=qt([\\\"watchBlocks\\\",t.uid,e,r,n,d,c]);return so(m,{onBlock:i,onError:s},g=>Rc(async()=>{try{let w=await ae(t,no,\\\"getBlock\\\")({blockTag:e,includeTransactions:d});if(w.number!==null&&f?.number!=null){if(w.number===f.number)return;if(w.number-f.number>1&&r)for(let v=f?.number+1n;v<w.number;v++){let b=await ae(t,no,\\\"getBlock\\\")({blockNumber:v,includeTransactions:d});g.onBlock(b,f),f=b}}(f?.number==null||e===\\\"pending\\\"&&w?.number==null||w.number!==null&&w.number>f.number)&&(g.onBlock(w,f),f=w)}catch(w){g.onError?.(w)}},{emitOnBegin:n,interval:c}))})():(()=>{let m=!0,g=!0,w=()=>m=!1;return(async()=>{try{n&&ae(t,no,\\\"getBlock\\\")({blockTag:e,includeTransactions:d}).then(_=>{m&&g&&(i(_,void 0),g=!1)}).catch(s);let v=(()=>{if(t.transport.type===\\\"fallback\\\"){let _=t.transport.transports.find(S=>S.config.type===\\\"webSocket\\\"||S.config.type===\\\"ipc\\\");return _?_.value:t.transport}return t.transport})(),{unsubscribe:b}=await v.subscribe({params:[\\\"newHeads\\\"],async onData(_){if(!m)return;let S=await ae(t,no,\\\"getBlock\\\")({blockNumber:_.result?.number,includeTransactions:d}).catch(()=>{});m&&(i(S,f),g=!1,f=S)},onError(_){s?.(_)}});w=b,m||w()}catch(v){s?.(v)}})(),()=>w()})()}var c5e=x(()=>{u();Ut();Am();dy();ko();sy()});function l5e(t,{address:e,args:r,batch:n=!0,event:i,events:s,fromBlock:o,onError:a,onLogs:c,poll:l,pollingInterval:d=t.pollingInterval,strict:f}){let p=typeof l<\\\"u\\\"?l:typeof o==\\\"bigint\\\"?!0:!(t.transport.type===\\\"webSocket\\\"||t.transport.type===\\\"ipc\\\"||t.transport.type===\\\"fallback\\\"&&(t.transport.transports[0].config.type===\\\"webSocket\\\"||t.transport.transports[0].config.type===\\\"ipc\\\")),h=f??!1;return p?(()=>{let w=qt([\\\"watchEvent\\\",e,r,n,t.uid,i,d,o]);return so(w,{onLogs:c,onError:a},v=>{let b;o!==void 0&&(b=o-1n);let _,S=!1,T=Rc(async()=>{if(!S){try{_=await ae(t,oB,\\\"createEventFilter\\\")({address:e,args:r,event:i,events:s,strict:h,fromBlock:o})}catch{}S=!0;return}try{let N;if(_)N=await ae(t,fy,\\\"getFilterChanges\\\")({filter:_});else{let O=await ae(t,pp,\\\"getBlockNumber\\\")({});b&&b!==O?N=await ae(t,$5,\\\"getLogs\\\")({address:e,args:r,event:i,events:s,fromBlock:b+1n,toBlock:O}):N=[],b=O}if(N.length===0)return;if(n)v.onLogs(N);else for(let O of N)v.onLogs([O])}catch(N){_&&N instanceof vl&&(S=!1),v.onError?.(N)}},{emitOnBegin:!0,interval:d});return async()=>{_&&await ae(t,py,\\\"uninstallFilter\\\")({filter:_}),T()}})})():(()=>{let w=!0,v=()=>w=!1;return(async()=>{try{let b=(()=>{if(t.transport.type===\\\"fallback\\\"){let N=t.transport.transports.find(O=>O.config.type===\\\"webSocket\\\"||O.config.type===\\\"ipc\\\");return N?N.value:t.transport}return t.transport})(),_=s??(i?[i]:void 0),S=[];_&&(S=[_.flatMap(O=>rp({abi:[O],eventName:O.name,args:r}))],i&&(S=S[0]));let{unsubscribe:T}=await b.subscribe({params:[\\\"logs\\\",{address:e,topics:S}],onData(N){if(!w)return;let O=N.result;try{let{eventName:L,args:B}=vw({abi:_??[],data:O.data,topics:O.topics,strict:h}),H=Qi(O,{args:B,eventName:L});c([H])}catch(L){let B,H;if(L instanceof tm||L instanceof Pg){if(f)return;B=L.abiItem.name,H=L.abiItem.inputs?.some(F=>!(\\\"name\\\"in F&&F.name))}let M=Qi(O,{args:H?[]:{},eventName:B});c([M])}},onError(N){a?.(N)}});v=T,w||v()}catch(b){a?.(b)}})(),()=>v()})()}var u5e=x(()=>{u();Ki();$g();pk();i5();Vd();Ut();Am();dy();ko();KQ();e6();PA();mk();OA()});function d5e(t,{batch:e=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=t.pollingInterval}){return(typeof i<\\\"u\\\"?i:t.transport.type!==\\\"webSocket\\\"&&t.transport.type!==\\\"ipc\\\")?(()=>{let l=qt([\\\"watchPendingTransactions\\\",t.uid,e,s]);return so(l,{onTransactions:n,onError:r},d=>{let f,p=Rc(async()=>{try{if(!f)try{f=await ae(t,aB,\\\"createPendingTransactionFilter\\\")({});return}catch(m){throw p(),m}let h=await ae(t,fy,\\\"getFilterChanges\\\")({filter:f});if(h.length===0)return;if(e)d.onTransactions(h);else for(let m of h)d.onTransactions([m])}catch(h){d.onError?.(h)}},{emitOnBegin:!0,interval:s});return async()=>{f&&await ae(t,py,\\\"uninstallFilter\\\")({filter:f}),p()}})})():(()=>{let l=!0,d=()=>l=!1;return(async()=>{try{let{unsubscribe:f}=await t.transport.subscribe({params:[\\\"newPendingTransactions\\\"],onData(p){if(!l)return;let h=p.result;n([h])},onError(p){r?.(p)}});d=f,l||d()}catch(f){r?.(f)}})(),()=>d()})()}var f5e=x(()=>{u();Ut();Am();dy();ko();ZQ();PA();OA()});function p5e(t){let{scheme:e,statement:r,...n}=t.match(lpt)?.groups??{},{chainId:i,expirationTime:s,issuedAt:o,notBefore:a,requestId:c,...l}=t.match(upt)?.groups??{},d=t.split(\\\"Resources:\\\")[1]?.split(`\\n- `).slice(1);return{...n,...l,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...o?{issuedAt:new Date(o)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...r?{statement:r}:{}}}var lpt,upt,h5e=x(()=>{u();lpt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,upt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/});function m5e(t){let{address:e,domain:r,message:n,nonce:i,scheme:s,time:o=new Date}=t;if(r&&n.domain!==r||i&&n.nonce!==i||s&&n.scheme!==s||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||!lt(n.address,{strict:!1})||e&&!ha(n.address,e))return!1}catch{return!1}return!0}var g5e=x(()=>{u();da();cy()});async function y5e(t,e){let{address:r,domain:n,message:i,nonce:s,scheme:o,signature:a,time:c=new Date,...l}=e,d=p5e(i);if(!d.address||!m5e({address:r,domain:n,message:d,nonce:s,scheme:o,time:c}))return!1;let p=Rm(i);return wy(t,{address:d.address,hash:p,signature:a,...l})}var b5e=x(()=>{u();fB();h5e();g5e();KA()});async function p6(t,{serializedTransaction:e,throwOnReceiptRevert:r,timeout:n}){let i=await t.request({method:\\\"eth_sendRawTransactionSync\\\",params:n?[e,n]:[e]},{retryCount:0}),o=(t.chain?.formatters?.transactionReceipt?.format||Pw)(i);if(o.status===\\\"reverted\\\"&&r)throw new p5({receipt:o});return o}var VB=x(()=>{u();wl();Ow()});function h6(t){return{call:e=>Au(t,e),createAccessList:e=>sB(t,e),createBlockFilter:()=>ixe(t),createContractEventFilter:e=>xN(t,e),createEventFilter:e=>oB(t,e),createPendingTransactionFilter:()=>aB(t),estimateContractGas:e=>qve(t,e),estimateGas:e=>q5(t,e),getBalance:e=>oxe(t,e),getBlobBaseFee:()=>cxe(t),getBlock:e=>no(t,e),getBlockNumber:e=>pp(t,e),getBlockTransactionCount:e=>uxe(t,e),getBytecode:e=>Sl(t,e),getChainId:()=>Es(t),getCode:e=>Sl(t,e),getContractEvents:e=>gk(t,e),getDelegation:e=>fxe(t,e),getEip712Domain:e=>mxe(t,e),getEnsAddress:e=>q2e(t,e),getEnsAvatar:e=>Y2e(t,e),getEnsName:e=>exe(t,e),getEnsResolver:e=>rxe(t,e),getEnsText:e=>iB(t,e),getFeeHistory:e=>wxe(t,e),estimateFeesPerGas:e=>YN(t,e),getFilterChanges:e=>fy(t,e),getFilterLogs:e=>xxe(t,e),getGasPrice:()=>D5(t),getLogs:e=>$5(t,e),getProof:e=>NEe(t,e),estimateMaxPriorityFeePerGas:e=>Dve(t,e),fillTransaction:e=>j5(t,e),getStorageAt:e=>BEe(t,e),getTransaction:e=>u6(t,e),getTransactionConfirmations:e=>DEe(t,e),getTransactionCount:e=>oy(t,e),getTransactionReceipt:e=>d6(t,e),multicall:e=>UEe(t,e),prepareTransactionRequest:e=>lp(t,e),readContract:e=>Tn(t,e),sendRawTransaction:e=>r6(t,e),sendRawTransactionSync:e=>p6(t,e),simulate:e=>VA(t,e),simulateBlocks:e=>VA(t,e),simulateCalls:e=>QEe(t,e),simulateContract:e=>R2e(t,e),verifyHash:e=>wy(t,e),verifyMessage:e=>n5e(t,e),verifySiweMessage:e=>y5e(t,e),verifyTypedData:e=>s5e(t,e),uninstallFilter:e=>py(t,e),waitForTransactionReceipt:e=>$B(t,e),watchBlocks:e=>a5e(t,e),watchBlockNumber:e=>zB(t,e),watchContractEvent:e=>M2e(t,e),watchEvent:e=>l5e(t,e),watchPendingTransactions:e=>d5e(t,e)}}var zJ=x(()=>{u();z2e();X2e();txe();nxe();WQ();Tw();GQ();sxe();wZ();KQ();ZQ();zve();ek();fk();rQ();dk();axe();lxe();sy();e6();dxe();$d();o6();uQ();pxe();gxe();vxe();PA();Exe();JN();mk();kEe();MEe();UB();LEe();bA();kJ();FEe();Tu();BJ();JEe();P2e();OA();KA();i5e();o5e();qJ();HJ();c5e();D2e();u5e();f5e();b5e();H5();Hk();VB()});function ZA(t){let{key:e=\\\"public\\\",name:r=\\\"Public Client\\\"}=t;return Im({...t,key:e,name:r,type:\\\"publicClient\\\"}).extend(h6)}var w5e=x(()=>{u();Jk();zJ()});async function v5e(t,{chain:e}){let{id:r,name:n,nativeCurrency:i,rpcUrls:s,blockExplorers:o}=e;await t.request({method:\\\"wallet_addEthereumChain\\\",params:[{chainId:Z(r),chainName:n,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:a})=>a):void 0}]},{dedupe:!0,retryCount:0})}var x5e=x(()=>{u();qe()});function E5e(t,e){let{abi:r,args:n,bytecode:i,...s}=e,o=Cw({abi:r,args:n,bytecode:i});return hy(t,{...s,...s.authorizationList?{to:null}:{},data:o})}var _5e=x(()=>{u();Nk();NA()});async function C5e(t){return t.account?.type===\\\"local\\\"?[t.account.address]:(await t.request({method:\\\"eth_accounts\\\"},{dedupe:!0})).map(r=>Xf(r))}var S5e=x(()=>{u();Dd()});async function A5e(t,e={}){let{account:r=t.account,chainId:n}=e,i=r?Ze(r):void 0,s=n?[i?.address,[Z(n)]]:[i?.address],o=await t.request({method:\\\"wallet_getCapabilities\\\",params:s}),a={};for(let[c,l]of Object.entries(o)){a[Number(c)]={};for(let[d,f]of Object.entries(l))d===\\\"addSubAccount\\\"&&(d=\\\"unstable_addSubAccount\\\"),a[Number(c)][d]=f}return typeof n==\\\"number\\\"?a[n]:a}var T5e=x(()=>{u();en();qe()});async function I5e(t){return await t.request({method:\\\"wallet_getPermissions\\\"},{dedupe:!0})}var R5e=x(()=>{u()});async function Uw(t,e){let{account:r=t.account,chainId:n,nonce:i}=e;if(!r)throw new In({docsPath:\\\"/docs/eip7702/prepareAuthorization\\\"});let s=Ze(r),o=(()=>{if(e.executor)return e.executor===\\\"self\\\"?e.executor:Ze(e.executor)})(),a={address:e.contractAddress??e.address,chainId:n,nonce:i};return typeof a.chainId>\\\"u\\\"&&(a.chainId=t.chain?.id??await ae(t,Es,\\\"getChainId\\\")({})),typeof a.nonce>\\\"u\\\"&&(a.nonce=await ae(t,oy,\\\"getTransactionCount\\\")({address:s.address,blockTag:\\\"pending\\\"}),(o===\\\"self\\\"||o?.address&&ha(o.address,s.address))&&(a.nonce+=1)),a}var WB=x(()=>{u();en();Cl();cy();Ut();$d();bA()});async function P5e(t){return(await t.request({method:\\\"eth_requestAccounts\\\"},{dedupe:!0,retryCount:0})).map(r=>_r(r))}var O5e=x(()=>{u();Dd()});async function N5e(t,e){return t.request({method:\\\"wallet_requestPermissions\\\",params:[e]},{retryCount:0})}var k5e=x(()=>{u()});async function B5e(t,e){let{chain:r=t.chain}=e,n=e.timeout??Math.max((r?.blockTime??0)*3,5e3),i=await ae(t,$k,\\\"sendCalls\\\")(e);return await ae(t,Tm,\\\"waitForCallsStatus\\\")({...e,id:i.id,timeout:n})}var M5e=x(()=>{u();Ut();Vk();Gk()});async function GB(t,e){let{account:r=t.account,assertChainId:n=!0,chain:i=t.chain,accessList:s,authorizationList:o,blobs:a,data:c,dataSuffix:l=typeof t.dataSuffix==\\\"string\\\"?t.dataSuffix:t.dataSuffix?.value,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,pollingInterval:w,throwOnReceiptRevert:v,type:b,value:_,...S}=e,T=e.timeout??Math.max((i?.blockTime??0)*3,5e3);if(typeof r>\\\"u\\\")throw new In({docsPath:\\\"/docs/actions/wallet/sendTransactionSync\\\"});let N=r?Ze(r):null;try{xs(e);let O=await(async()=>{if(e.to)return e.to;if(e.to!==null&&o&&o.length>0)return await Jg({authorization:o[0]}).catch(()=>{throw new W(\\\"`to` is required. Could not infer from `authorizationList`.\\\")})})();if(N?.type===\\\"json-rpc\\\"||N===null){let L;i!==null&&(L=await ae(t,Es,\\\"getChainId\\\")({}),n&&t6({currentChainId:L,chain:i}));let B=t.chain?.formatters?.transactionRequest?.format,M=(B||Hs)({...Tc(S,{format:B}),accessList:s,account:N,authorizationList:o,blobs:a,chainId:L,data:c&&Jt([c,l??\\\"0x\\\"]),gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,to:O,type:b,value:_},\\\"sendTransaction\\\"),F=$J.get(t.uid),R=F?\\\"wallet_sendTransaction\\\":\\\"eth_sendTransaction\\\",y=await(async()=>{try{return await t.request({method:R,params:[M]},{retryCount:0})}catch(C){if(F===!1)throw C;let I=C;if(I.name===\\\"InvalidInputRpcError\\\"||I.name===\\\"InvalidParamsRpcError\\\"||I.name===\\\"MethodNotFoundRpcError\\\"||I.name===\\\"MethodNotSupportedRpcError\\\")return await t.request({method:\\\"wallet_sendTransaction\\\",params:[M]},{retryCount:0}).then(P=>($J.set(t.uid,!0),P)).catch(P=>{let k=P;throw k.name===\\\"MethodNotFoundRpcError\\\"||k.name===\\\"MethodNotSupportedRpcError\\\"?($J.set(t.uid,!1),I):k});throw I}})(),E=await ae(t,$B,\\\"waitForTransactionReceipt\\\")({checkReplacement:!1,hash:y,pollingInterval:w,timeout:T});if(v&&E.status===\\\"reverted\\\")throw new p5({receipt:E});return E}if(N?.type===\\\"local\\\"){let L=await ae(t,lp,\\\"prepareTransactionRequest\\\")({account:N,accessList:s,authorizationList:o,blobs:a,chain:i,data:c&&Jt([c,l??\\\"0x\\\"]),gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:g,nonceManager:N.nonceManager,parameters:[...vA,\\\"sidecars\\\"],type:b,value:_,...S,to:O}),B=i?.serializers?.transaction,H=await N.signTransaction(L,{serializer:B});return await ae(t,p6,\\\"sendRawTransactionSync\\\")({serializedTransaction:H,throwOnReceiptRevert:v,timeout:e.timeout})}throw N?.type===\\\"smart\\\"?new Iu({metaMessages:[\\\"Consider using the `sendUserOperation` Action instead.\\\"],docsPath:\\\"/docs/actions/bundler/sendUserOperation\\\",type:\\\"smart\\\"}):new Iu({docsPath:\\\"/docs/actions/wallet/sendTransactionSync\\\",type:N?.type})}catch(O){throw O instanceof Iu?O:ay(O,{...e,account:N,chain:e.chain||void 0})}}var $J,VJ=x(()=>{u();en();Cl();st();wl();dA();jk();Ei();wA();Xg();_u();Ut();Lg();qd();$d();qJ();H5();VB();$J=new ua(128)});async function D5e(t,e){let{id:r}=e;await t.request({method:\\\"wallet_showCallsStatus\\\",params:[r]})}var L5e=x(()=>{u()});async function U5e(t,e){let{account:r=t.account}=e;if(!r)throw new In({docsPath:\\\"/docs/eip7702/signAuthorization\\\"});let n=Ze(r);if(!n.signAuthorization)throw new Iu({docsPath:\\\"/docs/eip7702/signAuthorization\\\",metaMessages:[\\\"The `signAuthorization` Action does not support JSON-RPC Accounts.\\\"],type:n.type});let i=await Uw(t,e);return n.signAuthorization(i)}var F5e=x(()=>{u();en();Cl();WB()});async function j5e(t,{account:e=t.account,message:r}){if(!e)throw new In({docsPath:\\\"/docs/actions/wallet/signMessage\\\"});let n=Ze(e);if(n.signMessage)return n.signMessage({message:r});let i=typeof r==\\\"string\\\"?la(r):r.raw instanceof Uint8Array?He(r.raw):r.raw;return t.request({method:\\\"personal_sign\\\",params:[i,n.address]},{retryCount:0})}var H5e=x(()=>{u();en();Cl();qe()});async function q5e(t,e){let{account:r=t.account,chain:n=t.chain,...i}=e;if(!r)throw new In({docsPath:\\\"/docs/actions/wallet/signTransaction\\\"});let s=Ze(r);xs({account:s,...e});let o=await ae(t,Es,\\\"getChainId\\\")({});n!==null&&t6({currentChainId:o,chain:n});let c=(n?.formatters||t.chain?.formatters)?.transactionRequest?.format||Hs;return s.signTransaction?s.signTransaction({...i,chainId:o},{serializer:t.chain?.serializers?.transaction}):await t.request({method:\\\"eth_signTransaction\\\",params:[{...c({...i,account:s},\\\"signTransaction\\\"),chainId:Z(o),from:s.address}]},{retryCount:0})}var z5e=x(()=>{u();en();Cl();jk();qe();_u();Ut();qd();$d()});async function $5e(t,e){let{account:r=t.account,domain:n,message:i,primaryType:s}=e;if(!r)throw new In({docsPath:\\\"/docs/actions/wallet/signTypedData\\\"});let o=Ze(r),a={EIP712Domain:yB({domain:n}),...e.types};if(gB({domain:n,message:i,primaryType:s,types:a}),o.signTypedData)return o.signTypedData({domain:n,message:i,primaryType:s,types:a});let c=Gxe({domain:n,message:i,primaryType:s,types:a});return t.request({method:\\\"eth_signTypedData_v4\\\",params:[o.address,c]},{retryCount:0})}var V5e=x(()=>{u();en();Cl();tJ()});async function W5e(t,{id:e}){await t.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:Z(e)}]},{retryCount:0})}var G5e=x(()=>{u();qe()});async function K5e(t,e){return await t.request({method:\\\"wallet_watchAsset\\\",params:e},{retryCount:0})}var Z5e=x(()=>{u()});async function Q5e(t,e){return Rw.internal(t,GB,\\\"sendTransactionSync\\\",e)}var J5e=x(()=>{u();VJ();MQ()});function WJ(t){return{addChain:e=>v5e(t,e),deployContract:e=>E5e(t,e),fillTransaction:e=>j5(t,e),getAddresses:()=>C5e(t),getCallsStatus:e=>Wk(t,e),getCapabilities:e=>A5e(t,e),getChainId:()=>Es(t),getPermissions:()=>I5e(t),prepareAuthorization:e=>Uw(t,e),prepareTransactionRequest:e=>lp(t,e),requestAddresses:()=>P5e(t),requestPermissions:e=>N5e(t,e),sendCalls:e=>$k(t,e),sendCallsSync:e=>B5e(t,e),sendRawTransaction:e=>r6(t,e),sendRawTransactionSync:e=>p6(t,e),sendTransaction:e=>hy(t,e),sendTransactionSync:e=>GB(t,e),showCallsStatus:e=>D5e(t,e),signAuthorization:e=>U5e(t,e),signMessage:e=>j5e(t,e),signTransaction:e=>q5e(t,e),signTypedData:e=>$5e(t,e),switchChain:e=>W5e(t,e),waitForCallsStatus:e=>Tm(t,e),watchAsset:e=>K5e(t,e),writeContract:e=>Rw(t,e),writeContractSync:e=>Q5e(t,e)}}var Y5e=x(()=>{u();dk();$d();x5e();_5e();S5e();FQ();T5e();R5e();WB();H5();O5e();k5e();Vk();M5e();Hk();VB();NA();VJ();L5e();F5e();H5e();z5e();V5e();G5e();Gk();Z5e();MQ();J5e()});function m6({key:t,methods:e,name:r,request:n,retryCount:i=3,retryDelay:s=150,timeout:o,type:a},c){let l=Qk();return{config:{key:t,methods:e,name:r,request:n,retryCount:i,retryDelay:s,timeout:o,type:a},request:Dxe(n,{methods:e,retryCount:i,retryDelay:s,uid:l}),value:c}}var KB=x(()=>{u();Lxe();HQ()});function QA(t,e={}){let{key:r=\\\"custom\\\",methods:n,name:i=\\\"Custom Provider\\\",retryDelay:s}=e;return({retryCount:o})=>m6({key:r,methods:n,name:i,request:t.request.bind(t),retryCount:e.retryCount??o,retryDelay:s,type:\\\"custom\\\"})}var X5e=x(()=>{u();KB()});function ZB(t,e={}){let{key:r=\\\"fallback\\\",name:n=\\\"Fallback\\\",rank:i=!1,shouldThrow:s=e6e,retryCount:o,retryDelay:a}=e;return(({chain:c,pollingInterval:l=4e3,timeout:d,...f})=>{let p=t,h=()=>{},m=m6({key:r,name:n,async request({method:g,params:w}){let v,b=async(_=0)=>{let S=p[_]({...f,chain:c,retryCount:0,timeout:d});try{let T=await S.request({method:g,params:w});return h({method:g,params:w,response:T,transport:S,status:\\\"success\\\"}),T}catch(T){if(h({error:T,method:g,params:w,transport:S,status:\\\"error\\\"}),s(T)||_===p.length-1||(v??(v=p.slice(_+1).some(N=>{let{include:O,exclude:L}=N({chain:c}).config.methods||{};return O?O.includes(g):L?!L.includes(g):!0})),!v))throw T;return b(_+1)}};return b()},retryCount:o,retryDelay:a,type:\\\"fallback\\\"},{onResponse:g=>h=g,transports:p.map(g=>g({chain:c,retryCount:0}))});if(i){let g=typeof i==\\\"object\\\"?i:{};dpt({chain:c,interval:g.interval??l,onTransports:w=>p=w,ping:g.ping,sampleCount:g.sampleCount,timeout:g.timeout,transports:p,weights:g.weights})}return m})}function e6e(t){return!!(\\\"code\\\"in t&&typeof t.code==\\\"number\\\"&&(t.code===fm.code||t.code===Cr.code||t.code===zg.code||Hd.nodeMessage.test(t.message)||t.code===5e3))}function dpt({chain:t,interval:e=4e3,onTransports:r,ping:n,sampleCount:i=10,timeout:s=1e3,transports:o,weights:a={}}){let{stability:c=.7,latency:l=.3}=a,d=[],f=async()=>{let p=await Promise.all(o.map(async g=>{let w=g({chain:t,retryCount:0,timeout:s}),v=Date.now(),b,_;try{await(n?n({transport:w}):w.request({method:\\\"net_listening\\\"})),_=1}catch{_=0}finally{b=Date.now()}return{latency:b-v,success:_}}));d.push(p),d.length>i&&d.shift();let h=Math.max(...d.map(g=>Math.max(...g.map(({latency:w})=>w)))),m=o.map((g,w)=>{let v=d.map(N=>N[w].latency),_=1-v.reduce((N,O)=>N+O,0)/v.length/h,S=d.map(N=>N[w].success),T=S.reduce((N,O)=>N+O,0)/S.length;return T===0?[0,w]:[l*_+c*T,w]}).sort((g,w)=>w[0]-g[0]);r(m.map(([,g])=>o[g])),await Iw(e),f()};f()}var t6e=x(()=>{u();cp();$g();Fk();KB()});var QB,r6e=x(()=>{u();st();QB=class extends W{constructor(){super(\\\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\\\",{docsPath:\\\"/docs/clients/intro\\\",name:\\\"UrlRequiredError\\\"})}}});function za(t,e={}){let{batch:r,fetchFn:n,fetchOptions:i,key:s=\\\"http\\\",methods:o,name:a=\\\"HTTP JSON-RPC\\\",onFetchRequest:c,onFetchResponse:l,retryDelay:d,raw:f}=e;return({chain:p,retryCount:h,timeout:m})=>{let{batchSize:g=1e3,wait:w=0}=typeof r==\\\"object\\\"?r:{},v=e.retryCount??h,b=m??e.timeout??1e4,_=t||p?.rpcUrls.default.http[0];if(!_)throw new QB;let S=jxe(_,{fetchFn:n,fetchOptions:i,onRequest:c,onResponse:l,timeout:b});return m6({key:s,methods:o,name:a,async request({method:T,params:N}){let O={method:T,params:N},{schedule:L}=Mk({id:_,wait:w,shouldSplitBatch(F){return F.length>g},fn:F=>S.request({body:F}),sort:(F,R)=>F.id-R.id}),B=async F=>r?L(F):[await S.request({body:F})],[{error:H,result:M}]=await B(O);if(f)return{error:H,result:M};if(H)throw new Hg({body:O,error:H,url:_});return M},retryCount:v,retryDelay:d,timeout:b,type:\\\"http\\\"},{fetchOptions:i,url:_})}}var n6e=x(()=>{u();ew();r6e();TQ();Hxe();KB()});function JB(t){let{r:e,s:r}=jd.Signature.fromCompact(t.slice(2,130)),n=+`0x${t.slice(130)}`,[i,s]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error(\\\"Invalid yParityOrV value\\\")})();return typeof i<\\\"u\\\"?{r:Z(e,{size:32}),s:Z(r,{size:32}),v:i,yParity:s}:{r:Z(e,{size:32}),s:Z(r,{size:32}),yParity:s}}var i6e=x(()=>{u();uA();qe()});var un=x(()=>{u();Jk();w5e();zJ();Y5e();X5e();t6e();n6e();fp();st();$g();c5();IQ();wu();fa();Cxe();Dd();da();cy();Yt();gu();rm();Da();ep();nm();xi();Zi();qe();yl();kA();XQ();fB();bB();i6e();GN();TN()});var GJ=x(()=>{u();o6();Tu();WB()});function h6e(t){if(typeof window>\\\"u\\\")return;let e=r=>t(r.detail);return window.addEventListener(\\\"eip6963:announceProvider\\\",e),window.dispatchEvent(new CustomEvent(\\\"eip6963:requestProvider\\\")),()=>window.removeEventListener(\\\"eip6963:announceProvider\\\",e)}var m6e=x(()=>{u()});function eY(){let t=new Set,e=[],r=()=>h6e(i=>{e.some(({info:s})=>s.uuid===i.info.uuid)||(e=[...e,i],t.forEach(s=>s(e,{added:[i]})))}),n=r();return{_listeners(){return t},clear(){t.forEach(i=>i([],{removed:[...e]})),e=[]},destroy(){this.clear(),t.clear(),n?.()},findProvider({rdns:i}){return e.find(s=>s.info.rdns===i)},getProviders(){return e},reset(){this.clear(),n?.(),n=r()},subscribe(i,{emitImmediately:s}={}){return t.add(i),s&&i(e,{added:e}),()=>t.delete(i)}}}var g6e=x(()=>{u();m6e()});var y6e=x(()=>{u();g6e()});var E6e=q((KCr,rY)=>{\\\"use strict\\\";u();var gpt=Object.prototype.hasOwnProperty,Va=\\\"~\\\";function XA(){}Object.create&&(XA.prototype=Object.create(null),new XA().__proto__||(Va=!1));function ypt(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function x6e(t,e,r,n,i){if(typeof r!=\\\"function\\\")throw new TypeError(\\\"The listener must be a function\\\");var s=new ypt(r,n||t,i),o=Va?Va+e:e;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],s]:t._events[o].push(s):(t._events[o]=s,t._eventsCount++),t}function oM(t,e){--t._eventsCount===0?t._events=new XA:delete t._events[e]}function ya(){this._events=new XA,this._eventsCount=0}ya.prototype.eventNames=function(){var e=[],r,n;if(this._eventsCount===0)return e;for(n in r=this._events)gpt.call(r,n)&&e.push(Va?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};ya.prototype.listeners=function(e){var r=Va?Va+e:e,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i<s;i++)o[i]=n[i].fn;return o};ya.prototype.listenerCount=function(e){var r=Va?Va+e:e,n=this._events[r];return n?n.fn?1:n.length:0};ya.prototype.emit=function(e,r,n,i,s,o){var a=Va?Va+e:e;if(!this._events[a])return!1;var c=this._events[a],l=arguments.length,d,f;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,s),!0;case 6:return c.fn.call(c.context,r,n,i,s,o),!0}for(f=1,d=new Array(l-1);f<l;f++)d[f-1]=arguments[f];c.fn.apply(c.context,d)}else{var p=c.length,h;for(f=0;f<p;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),l){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,r);break;case 3:c[f].fn.call(c[f].context,r,n);break;case 4:c[f].fn.call(c[f].context,r,n,i);break;default:if(!d)for(h=1,d=new Array(l-1);h<l;h++)d[h-1]=arguments[h];c[f].fn.apply(c[f].context,d)}}return!0};ya.prototype.on=function(e,r,n){return x6e(this,e,r,n,!1)};ya.prototype.once=function(e,r,n){return x6e(this,e,r,n,!0)};ya.prototype.removeListener=function(e,r,n,i){var s=Va?Va+e:e;if(!this._events[s])return this;if(!r)return oM(this,s),this;var o=this._events[s];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&oM(this,s);else{for(var a=0,c=[],l=o.length;a<l;a++)(o[a].fn!==r||i&&!o[a].once||n&&o[a].context!==n)&&c.push(o[a]);c.length?this._events[s]=c.length===1?c[0]:c:oM(this,s)}return this};ya.prototype.removeAllListeners=function(e){var r;return e?(r=Va?Va+e:e,this._events[r]&&oM(this,r)):(this._events=new XA,this._eventsCount=0),this};ya.prototype.off=ya.prototype.removeListener;ya.prototype.addListener=ya.prototype.on;ya.prefixed=Va;ya.EventEmitter=ya;typeof rY<\\\"u\\\"&&(rY.exports=ya)});var _6,aM=x(()=>{u();_6=Me(E6e(),1)});var k6e=q(N6e=>{\\\"use strict\\\";u();var C6=Vi();function xpt(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ept=typeof Object.is==\\\"function\\\"?Object.is:xpt,_pt=C6.useState,Cpt=C6.useEffect,Spt=C6.useLayoutEffect,Apt=C6.useDebugValue;function Tpt(t,e){var r=e(),n=_pt({inst:{value:r,getSnapshot:e}}),i=n[0].inst,s=n[1];return Spt(function(){i.value=r,i.getSnapshot=e,dY(i)&&s({inst:i})},[t,r,e]),Cpt(function(){return dY(i)&&s({inst:i}),t(function(){dY(i)&&s({inst:i})})},[t]),Apt(r),r}function dY(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Ept(t,r)}catch{return!0}}function Ipt(t,e){return e()}var Rpt=typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"?Ipt:Tpt;N6e.useSyncExternalStore=C6.useSyncExternalStore!==void 0?C6.useSyncExternalStore:Rpt});var M6e=q((_8r,B6e)=>{\\\"use strict\\\";u();B6e.exports=k6e()});var L6e=q(D6e=>{\\\"use strict\\\";u();var mM=Vi(),Ppt=M6e();function Opt(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Npt=typeof Object.is==\\\"function\\\"?Object.is:Opt,kpt=Ppt.useSyncExternalStore,Bpt=mM.useRef,Mpt=mM.useEffect,Dpt=mM.useMemo,Lpt=mM.useDebugValue;D6e.useSyncExternalStoreWithSelector=function(t,e,r,n,i){var s=Bpt(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Dpt(function(){function c(h){if(!l){if(l=!0,d=h,h=n(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return f=m}return f=h}if(m=f,Npt(d,h))return m;var g=n(h);return i!==void 0&&i(m,g)?(d=h,m):(d=h,f=g)}var l=!1,d,f,p=r===void 0?null:r;return[function(){return c(e())},p===null?void 0:function(){return c(p())}]},[e,r,n,i]);var a=kpt(t,s[0],s[1]);return Mpt(function(){o.hasValue=!0,o.value=a},[a]),Lpt(a),a}});var F6e=q((T8r,U6e)=>{\\\"use strict\\\";u();U6e.exports=L6e()});var _3e=q(AM=>{\\\"use strict\\\";u();var Zpt=Symbol.for(\\\"react.transitional.element\\\"),Qpt=Symbol.for(\\\"react.fragment\\\");function E3e(t,e,r){var n=null;if(r!==void 0&&(n=\\\"\\\"+r),e.key!==void 0&&(n=\\\"\\\"+e.key),\\\"key\\\"in e){r={};for(var i in e)i!==\\\"key\\\"&&(r[i]=e[i])}else r=e;return e=r.ref,{$$typeof:Zpt,type:t,key:n,ref:e!==void 0?e:null,props:r}}AM.Fragment=Qpt;AM.jsx=E3e;AM.jsxs=E3e});var Tl=q((bTr,C3e)=>{\\\"use strict\\\";u();C3e.exports=_3e()});var z6,GY,hT=x(()=>{u();mA();z6=50000n,GY=Mve*32n});var KY,K3e=x(()=>{u();xi();Zi();qe();M5();Vd();iy();Ow();_u();hT();KY={block:B5({format(t){let e=t.transactions?.map(r=>{if(typeof r==\\\"string\\\")return r;let n=KY.transaction?.format(r);return n.typeHex===\\\"0x71\\\"?n.type=\\\"eip712\\\":n.typeHex===\\\"0xff\\\"&&(n.type=\\\"priority\\\"),n});return{l1BatchNumber:t.l1BatchNumber?Ge(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?Ge(t.l1BatchTimestamp):null,transactions:e}}}),transaction:k5({format(t){let e={};return t.type===\\\"0x71\\\"?e.type=\\\"eip712\\\":t.type===\\\"0xff\\\"&&(e.type=\\\"priority\\\"),{...e,l1BatchNumber:t.l1BatchNumber?Ge(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Ge(t.l1BatchTxIndex):null}}}),transactionReceipt:zk({format(t){return{l1BatchNumber:t.l1BatchNumber?Ge(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Ge(t.l1BatchTxIndex):null,logs:t.logs.map(e=>({...Qi(e),l1BatchNumber:e.l1BatchNumber?Ge(e.l1BatchNumber):null,transactionLogIndex:jr(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:t.l2ToL1Logs.map(e=>({blockNumber:Ge(e.blockHash),blockHash:e.blockHash,l1BatchNumber:e.l1BatchNumber?Ge(e.l1BatchNumber):null,transactionIndex:Ge(e.transactionIndex),shardId:Ge(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:Ge(e.logIndex)}))}}}),transactionRequest:ZN({exclude:[\\\"customSignature\\\",\\\"factoryDeps\\\",\\\"gasPerPubdata\\\",\\\"paymaster\\\",\\\"paymasterInput\\\"],format(t){return t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:He(t.gasPerPubdata)}:{gasPerPubdata:He(z6)},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from(Hr(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps.map(e=>Array.from(Hr(e)))}:{},...t.customSignature?{customSignature:Array.from(Hr(t.customSignature))}:{}},type:\\\"0x71\\\"}:{}}})}});var RM,Z3e=x(()=>{u();st();RM=class extends W{constructor(){super([\\\"Transaction is not an EIP712 transaction.\\\",\\\"\\\",\\\"Transaction must:\\\",'  - include `type: \\\"eip712\\\"`',\\\"  - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`\\\"].join(`\\n`),{name:\\\"InvalidEip712TransactionError\\\"})}}});function PM(t){return!!(t.type===\\\"eip712\\\"||\\\"customSignature\\\"in t&&t.customSignature||\\\"paymaster\\\"in t&&t.paymaster||\\\"paymasterInput\\\"in t&&t.paymasterInput||\\\"gasPerPubdata\\\"in t&&typeof t.gasPerPubdata==\\\"bigint\\\"||\\\"factoryDeps\\\"in t&&t.factoryDeps)}var ZY=x(()=>{u()});function OM(t){let{chainId:e,to:r,from:n,paymaster:i,paymasterInput:s}=t;if(!PM(t))throw new RM;if(!e||e<=0)throw new Gd({chainId:e});if(r&&!lt(r))throw new cr({address:r});if(n&&!lt(n))throw new cr({address:n});if(i&&!lt(i))throw new cr({address:i});if(i&&!s)throw new W(\\\"`paymasterInput` must be provided when `paymaster` is defined\\\");if(!i&&s)throw new W(\\\"`paymaster` must be provided when `paymasterInput` is defined\\\")}var QY=x(()=>{u();bl();st();_w();da();Z3e();ZY()});function tht(t,e){return PM(t)?rht(t):uB(t,e)}function rht(t){let{chainId:e,gas:r,nonce:n,to:i,from:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:d,paymaster:f,paymasterInput:p,gasPerPubdata:h,data:m}=t;OM(t);let g=[n?He(n):\\\"0x\\\",c?He(c):\\\"0x\\\",a?He(a):\\\"0x\\\",r?He(r):\\\"0x\\\",i??\\\"0x\\\",o?He(o):\\\"0x\\\",m??\\\"0x\\\",He(e),He(\\\"\\\"),He(\\\"\\\"),He(e),s??\\\"0x\\\",h?He(h):He(z6),d??[],l??\\\"0x\\\",f&&p?[f,p]:[]];return ln([\\\"0x71\\\",qa(g)])}var Q3e,J3e=x(()=>{u();Ei();qe();E5();MA();hT();QY();ZY();Q3e={transaction:tht}});var NM,kM,BM,Y3e=x(()=>{u();st();NM=class extends W{constructor({givenLength:e,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${e}`,{name:\\\"BytecodeLengthExceedsMaxSizeError\\\"})}},kM=class extends W{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`,{name:\\\"BytecodeLengthInWordsMustBeOddError\\\"})}},BM=class extends W{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`,{name:\\\"BytecodeLengthMustBeDivisibleBy32Error\\\"})}}});function X3e(t){let e=Oo(t);if(e.length%32!==0)throw new BM({givenLength:e.length});if(e.length>GY)throw new NM({givenLength:e.length,maxBytecodeSize:GY});let r=ik(e),n=Oo(r),i=e.length/32;if(i%2===0)throw new kM({givenLengthInWords:i});let s=Oo(i),o=Fr(s,{size:2}),a=new Uint8Array([1,0]);return n.set(a,0),n.set(o,2),n}var e_e=x(()=>{u();rm();Zi();iQ();hT();Y3e()});function nht(t){let{gas:e,nonce:r,to:n,from:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:a,factoryDeps:c,paymaster:l,paymasterInput:d,gasPerPubdata:f,data:p}=t;return{txType:113n,from:BigInt(i),to:n?BigInt(n):0n,gasLimit:e??0n,gasPerPubdataByteLimit:f??z6,maxFeePerGas:o??0n,maxPriorityFeePerGas:a??0n,paymaster:l?BigInt(l):0n,nonce:r?BigInt(r):0n,value:s??0n,data:p??\\\"0x\\\",factoryDeps:c?.map(h=>He(X3e(h)))??[],paymasterInput:d||\\\"0x\\\"}}var t_e,r_e=x(()=>{u();qe();hT();QY();e_e();t_e=t=>{OM(t);let e=nht(t);return{domain:{name:\\\"zkSync\\\",version:\\\"2\\\",chainId:t.chainId},types:{Transaction:[{name:\\\"txType\\\",type:\\\"uint256\\\"},{name:\\\"from\\\",type:\\\"uint256\\\"},{name:\\\"to\\\",type:\\\"uint256\\\"},{name:\\\"gasLimit\\\",type:\\\"uint256\\\"},{name:\\\"gasPerPubdataByteLimit\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymaster\\\",type:\\\"uint256\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"value\\\",type:\\\"uint256\\\"},{name:\\\"data\\\",type:\\\"bytes\\\"},{name:\\\"factoryDeps\\\",type:\\\"bytes32[]\\\"},{name:\\\"paymasterInput\\\",type:\\\"bytes\\\"}]},primaryType:\\\"Transaction\\\",message:e}}});var MM,JY=x(()=>{u();K3e();J3e();r_e();MM={blockTime:1e3,formatters:KY,serializers:Q3e,custom:{getEip712Domain:t_e}}});var DM,YY=x(()=>{u();DM={gasPriceOracle:{address:\\\"0x420000000000000000000000000000000000000F\\\"},l1Block:{address:\\\"0x4200000000000000000000000000000000000015\\\"},l2CrossDomainMessenger:{address:\\\"0x4200000000000000000000000000000000000007\\\"},l2Erc721Bridge:{address:\\\"0x4200000000000000000000000000000000000014\\\"},l2StandardBridge:{address:\\\"0x4200000000000000000000000000000000000010\\\"},l2ToL1MessagePasser:{address:\\\"0x4200000000000000000000000000000000000016\\\"}}});var n_e,i_e=x(()=>{u();xi();M5();iy();Ow();n_e={block:B5({format(t){return{transactions:t.transactions?.map(r=>{if(typeof r==\\\"string\\\")return r;let n=zd(r);return n.typeHex===\\\"0x7e\\\"&&(n.isSystemTx=r.isSystemTx,n.mint=r.mint?Ge(r.mint):void 0,n.sourceHash=r.sourceHash,n.type=\\\"deposit\\\"),n}),stateRoot:t.stateRoot}}}),transaction:k5({format(t){let e={};return t.type===\\\"0x7e\\\"&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Ge(t.mint):void 0,e.sourceHash=t.sourceHash,e.type=\\\"deposit\\\"),e}}),transactionReceipt:zk({format(t){return{l1GasPrice:t.l1GasPrice?Ge(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?Ge(t.l1GasUsed):null,l1Fee:t.l1Fee?Ge(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null}}})}});function XY(t,e){return sht(t)?iht(t):uB(t,e)}function iht(t){oht(t);let{sourceHash:e,data:r,from:n,gas:i,isSystemTx:s,mint:o,to:a,value:c}=t,l=[e,n,a??\\\"0x\\\",o?He(o):\\\"0x\\\",c?He(c):\\\"0x\\\",i?He(i):\\\"0x\\\",s?\\\"0x1\\\":\\\"0x\\\",r??\\\"0x\\\"];return ln([\\\"0x7e\\\",qa(l)])}function sht(t){return t.type===\\\"deposit\\\"||typeof t.sourceHash<\\\"u\\\"}function oht(t){let{from:e,to:r}=t;if(e&&!lt(e))throw new cr({address:e});if(r&&!lt(r))throw new cr({address:r})}var s_e,eX=x(()=>{u();bl();da();Ei();qe();E5();MA();s_e={transaction:XY}});var Si,Fm=x(()=>{u();YY();i_e();eX();Si={blockTime:2e3,contracts:DM,formatters:n_e,serializers:s_e}});var LM,o_e=x(()=>{u();Yt();LM=Oe({id:42161,name:\\\"Arbitrum One\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},blockTime:250,rpcUrls:{default:{http:[\\\"https://arb1.arbitrum.io/rpc\\\"]}},blockExplorers:{default:{name:\\\"Arbiscan\\\",url:\\\"https://arbiscan.io\\\",apiUrl:\\\"https://api.arbiscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:7654707}}})});var UM,a_e=x(()=>{u();Yt();UM=Oe({id:421614,name:\\\"Arbitrum Sepolia\\\",blockTime:250,nativeCurrency:{name:\\\"Arbitrum Sepolia Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia-rollup.arbitrum.io/rpc\\\"]}},blockExplorers:{default:{name:\\\"Arbiscan\\\",url:\\\"https://sepolia.arbiscan.io\\\",apiUrl:\\\"https://api-sepolia.arbiscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:81930}},testnet:!0})});var FM,c_e=x(()=>{u();Yt();FM=Oe({id:43114,name:\\\"Avalanche\\\",blockTime:1700,nativeCurrency:{decimals:18,name:\\\"Avalanche\\\",symbol:\\\"AVAX\\\"},rpcUrls:{default:{http:[\\\"https://api.avax.network/ext/bc/C/rpc\\\"]}},blockExplorers:{default:{name:\\\"SnowTrace\\\",url:\\\"https://snowtrace.io\\\",apiUrl:\\\"https://api.snowtrace.io\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:11907934}}})});var jM,l_e=x(()=>{u();Yt();jM=Oe({id:43113,name:\\\"Avalanche Fuji\\\",nativeCurrency:{decimals:18,name:\\\"Avalanche Fuji\\\",symbol:\\\"AVAX\\\"},rpcUrls:{default:{http:[\\\"https://api.avax-test.network/ext/bc/C/rpc\\\"]}},blockExplorers:{default:{name:\\\"SnowTrace\\\",url:\\\"https://testnet.snowtrace.io\\\",apiUrl:\\\"https://api-testnet.snowtrace.io\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:7096959}},testnet:!0})});var mT,Qw,aht,u_e=x(()=>{u();Fm();Yt();mT=1,Qw=Oe({...Si,id:8453,name:\\\"Base\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://mainnet.base.org\\\"]}},blockExplorers:{default:{name:\\\"Basescan\\\",url:\\\"https://basescan.org\\\",apiUrl:\\\"https://api.basescan.org/api\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[mT]:{address:\\\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\\\"}},l2OutputOracle:{[mT]:{address:\\\"0x56315b90c40730925ec5485cf004d835058518A0\\\"}},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:5022},portal:{[mT]:{address:\\\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\\\",blockCreated:17482143}},l1StandardBridge:{[mT]:{address:\\\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\\\",blockCreated:17482143}}},sourceId:mT}),aht=Oe({...Qw,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\\\"https://mainnet-preconf.base.org\\\"]}}})});var gT,yT,cht,d_e=x(()=>{u();Fm();Yt();gT=11155111,yT=Oe({...Si,id:84532,network:\\\"base-sepolia\\\",name:\\\"Base Sepolia\\\",nativeCurrency:{name:\\\"Sepolia Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia.base.org\\\"]}},blockExplorers:{default:{name:\\\"Basescan\\\",url:\\\"https://sepolia.basescan.org\\\",apiUrl:\\\"https://api-sepolia.basescan.org/api\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[gT]:{address:\\\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\\\"}},l2OutputOracle:{[gT]:{address:\\\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\\\"}},portal:{[gT]:{address:\\\"0x49f53e41452c74589e85ca1677426ba426459e85\\\",blockCreated:4446677}},l1StandardBridge:{[gT]:{address:\\\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\\\",blockCreated:4446677}},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:1059647}},testnet:!0,sourceId:gT}),cht=Oe({...yT,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\\\"https://sepolia-preconf.base.org\\\"]}}})});var HM,qM,f_e=x(()=>{u();Fm();Yt();HM=1,qM=Oe({...Si,id:81457,name:\\\"Blast\\\",nativeCurrency:{decimals:18,name:\\\"Ether\\\",symbol:\\\"ETH\\\"},rpcUrls:{default:{http:[\\\"https://rpc.blast.io\\\"]}},blockExplorers:{default:{name:\\\"Blastscan\\\",url:\\\"https://blastscan.io\\\",apiUrl:\\\"https://api.blastscan.io/api\\\"}},contracts:{...Si.contracts,multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:212929},l2OutputOracle:{[HM]:{address:\\\"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76\\\",blockCreated:19300358}},portal:{[HM]:{address:\\\"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb\\\",blockCreated:19300357}},l1StandardBridge:{[HM]:{address:\\\"0x697402166Fbf2F22E970df8a6486Ef171dbfc524\\\",blockCreated:19300360}}},sourceId:HM})});var lht,zM,p_e=x(()=>{u();Yt();lht=11155111,zM=Oe({id:168587773,name:\\\"Blast Sepolia\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia.blast.io\\\"]}},blockExplorers:{default:{name:\\\"Blastscan\\\",url:\\\"https://sepolia.blastscan.io\\\",apiUrl:\\\"https://api-sepolia.blastscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:756690}},testnet:!0,sourceId:lht})});var $M,h_e=x(()=>{u();Yt();$M=Oe({id:56,name:\\\"BNB Smart Chain\\\",blockTime:750,nativeCurrency:{decimals:18,name:\\\"BNB\\\",symbol:\\\"BNB\\\"},rpcUrls:{default:{http:[\\\"https://56.rpc.thirdweb.com\\\"]}},blockExplorers:{default:{name:\\\"BscScan\\\",url:\\\"https://bscscan.com\\\",apiUrl:\\\"https://api.bscscan.com/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:15921452}}})});var VM,m_e=x(()=>{u();Yt();VM=Oe({id:97,name:\\\"BNB Smart Chain Testnet\\\",nativeCurrency:{decimals:18,name:\\\"BNB\\\",symbol:\\\"tBNB\\\"},rpcUrls:{default:{http:[\\\"https://data-seed-prebsc-1-s1.bnbchain.org:8545\\\"]}},blockExplorers:{default:{name:\\\"BscScan\\\",url:\\\"https://testnet.bscscan.com\\\",apiUrl:\\\"https://api-testnet.bscscan.com/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:17422483}},testnet:!0})});async function uht(t,e){let r=await t.request({method:\\\"eth_gasPrice\\\",params:[e]});return BigInt(r)}async function dht(t,e){let r=await t.request({method:\\\"eth_maxPriorityFeePerGas\\\",params:[e]});return BigInt(r)}var g_e,y_e=x(()=>{u();g_e={estimateFeesPerGas:async t=>{if(!t.request?.feeCurrency)return null;let[e,r]=await Promise.all([uht(t.client,t.request.feeCurrency),dht(t.client,t.request.feeCurrency)]);return{maxFeePerGas:t.multiply(e-r)+r,maxPriorityFeePerGas:r}}}});function tX(t){return t===0||t===0n||t===void 0||t===null||t===\\\"0\\\"||t===\\\"\\\"||typeof t==\\\"string\\\"&&(An(t).toLowerCase()===\\\"0x\\\"||An(t).toLowerCase()===\\\"0x00\\\")}function $6(t){return!tX(t)}function fht(t){return typeof t.maxFeePerGas<\\\"u\\\"&&typeof t.maxPriorityFeePerGas<\\\"u\\\"}function WM(t){return t.type===\\\"cip64\\\"?!0:fht(t)&&$6(t.feeCurrency)}var rX=x(()=>{u();nm()});var b_e,w_e=x(()=>{u();xi();M5();iy();_u();rX();b_e={block:B5({format(t){return{transactions:t.transactions?.map(r=>typeof r==\\\"string\\\"?r:{...zd(r),...r.gatewayFee?{gatewayFee:Ge(r.gatewayFee),gatewayFeeRecipient:r.gatewayFeeRecipient}:{},feeCurrency:r.feeCurrency})}}}),transaction:k5({format(t){if(t.type===\\\"0x7e\\\")return{isSystemTx:t.isSystemTx,mint:t.mint?Ge(t.mint):void 0,sourceHash:t.sourceHash,type:\\\"deposit\\\"};let e={feeCurrency:t.feeCurrency};return t.type===\\\"0x7b\\\"?e.type=\\\"cip64\\\":(t.type===\\\"0x7c\\\"&&(e.type=\\\"cip42\\\"),e.gatewayFee=t.gatewayFee?Ge(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:ZN({format(t){let e={};return t.feeCurrency&&(e.feeCurrency=t.feeCurrency),WM(t)&&(e.type=\\\"0x7b\\\"),e}})}});function pht(t,e){return WM(t)?hht(t,e):XY(t,e)}function hht(t,e){ght(t);let{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:d,data:f}=t,p=[He(r),i?He(i):\\\"0x\\\",c?He(c):\\\"0x\\\",a?He(a):\\\"0x\\\",n?He(n):\\\"0x\\\",s??\\\"0x\\\",o?He(o):\\\"0x\\\",f??\\\"0x\\\",Nw(l),d,...gy(t,e)];return ln([\\\"0x7b\\\",qa(p)])}function ght(t){let{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,feeCurrency:o}=t;if(e<=0)throw new Gd({chainId:e});if(s&&!lt(s))throw new cr({address:s});if(n)throw new W(\\\"`gasPrice` is not a valid CIP-64 Transaction attribute.\\\");if($6(i)&&i>mht)throw new Ac({maxFeePerGas:i});if($6(r)&&$6(i)&&r>i)throw new xu({maxFeePerGas:i,maxPriorityFeePerGas:r});if($6(o)&&!lt(o))throw new W(\\\"`feeCurrency` MUST be a token address for CIP-64 transactions.\\\");if(tX(o))throw new W(\\\"`feeCurrency` must be provided for CIP-64 transactions.\\\")}var v_e,mht,x_e=x(()=>{u();mA();bl();st();_w();cp();eX();da();Ei();qe();E5();JQ();MA();rX();v_e={transaction:pht};mht=ry});var E_e,__e=x(()=>{u();YY();y_e();w_e();x_e();E_e={blockTime:1e3,contracts:DM,formatters:b_e,serializers:v_e,fees:g_e}});var GM,C_e=x(()=>{u();__e();Yt();GM=Oe({...E_e,id:42220,name:\\\"Celo\\\",nativeCurrency:{decimals:18,name:\\\"CELO\\\",symbol:\\\"CELO\\\"},rpcUrls:{default:{http:[\\\"https://forno.celo.org\\\"]}},blockExplorers:{default:{name:\\\"Celo Explorer\\\",url:\\\"https://celoscan.io\\\",apiUrl:\\\"https://api.celoscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:13112599}},testnet:!1})});var KM,S_e=x(()=>{u();Yt();KM=Oe({id:1030,name:\\\"Conflux eSpace\\\",nativeCurrency:{name:\\\"Conflux\\\",symbol:\\\"CFX\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://evm.confluxrpc.com\\\"],webSocket:[\\\"wss://evm.confluxrpc.com/ws\\\"]}},blockExplorers:{default:{name:\\\"ConfluxScan\\\",url:\\\"https://evm.confluxscan.org\\\"}},contracts:{multicall3:{address:\\\"0xEFf0078910f638cd81996cc117bccD3eDf2B072F\\\",blockCreated:68602935}}})});var ZM,A_e=x(()=>{u();Yt();ZM=Oe({id:250,name:\\\"Fantom\\\",nativeCurrency:{decimals:18,name:\\\"Fantom\\\",symbol:\\\"FTM\\\"},rpcUrls:{default:{http:[\\\"https://250.rpc.thirdweb.com\\\"]}},blockExplorers:{default:{name:\\\"FTMScan\\\",url:\\\"https://ftmscan.com\\\",apiUrl:\\\"https://api.ftmscan.com/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:33001987}}})});var QM,T_e=x(()=>{u();Yt();QM=Oe({id:14,name:\\\"Flare Mainnet\\\",nativeCurrency:{decimals:18,name:\\\"Flare\\\",symbol:\\\"FLR\\\"},rpcUrls:{default:{http:[\\\"https://flare-api.flare.network/ext/C/rpc\\\"]}},blockExplorers:{default:{name:\\\"Flare Explorer\\\",url:\\\"https://flare-explorer.flare.network\\\",apiUrl:\\\"https://flare-explorer.flare.network/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:3002461}}})});var JM,I_e=x(()=>{u();Yt();JM=Oe({id:100,name:\\\"Gnosis\\\",nativeCurrency:{decimals:18,name:\\\"xDAI\\\",symbol:\\\"XDAI\\\"},blockTime:5e3,rpcUrls:{default:{http:[\\\"https://rpc.gnosischain.com\\\"],webSocket:[\\\"wss://rpc.gnosischain.com/wss\\\"]}},blockExplorers:{default:{name:\\\"Gnosisscan\\\",url:\\\"https://gnosisscan.io\\\",apiUrl:\\\"https://api.gnosisscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:21022491}}})});async function R_e(t,e){let{account:r=t.account}=e;if(!r)throw new In;let n=Ze(r);try{let{accessList:i,blockNumber:s,blockTag:o,data:a,gas:c,gasPrice:l,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:h,value:m,...g}=e,v=(typeof s==\\\"bigint\\\"?Z(s):void 0)||o;xs(e);let b=t.chain?.formatters?.transactionRequest?.format,S=(b||Hs)({...Tc(g,{format:b}),account:n,accessList:i,data:a,gas:c,gasPrice:l,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:h,value:m},\\\"estimateGas\\\"),{baseFeePerGas:T,gasLimit:N,priorityFeePerGas:O}=await t.request({method:\\\"linea_estimateGas\\\",params:v?[S,v]:[S]});return{baseFeePerGas:BigInt(T),gasLimit:BigInt(N),priorityFeePerGas:BigInt(O)}}catch(i){throw Y5(i,{...e,account:n,chain:t.chain})}}var P_e=x(()=>{u();en();Cl();qe();kk();Xg();_u();qd()});async function O_e({client:t,multiply:e,request:r,type:n}){try{let i=await R_e(t,{...r,account:r?.account}),{priorityFeePerGas:s}=i,a=e(BigInt(i.baseFeePerGas))+s;return n===\\\"legacy\\\"?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:s}}catch{return null}}var YM,nX=x(()=>{u();P_e();YM={fees:{estimateFeesPerGas:O_e,async maxPriorityFeePerGas({block:t,client:e,request:r}){let n=await O_e({block:t,client:e,multiply:i=>i,request:r,type:\\\"eip1559\\\"});return n?.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}}});var XM,N_e=x(()=>{u();nX();Yt();XM=Oe({...YM,id:59144,name:\\\"Linea Mainnet\\\",blockTime:2e3,nativeCurrency:{name:\\\"Linea Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.linea.build\\\"],webSocket:[\\\"wss://rpc.linea.build\\\"]}},blockExplorers:{default:{name:\\\"Etherscan\\\",url:\\\"https://lineascan.build\\\",apiUrl:\\\"https://api.lineascan.build/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:42},ensRegistry:{address:\\\"0x50130b669B28C339991d8676FA73CF122a121267\\\",blockCreated:6682888},ensUniversalResolver:{address:\\\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\\\",blockCreated:22222151}},ensTlds:[\\\".linea.eth\\\"],testnet:!1})});var eD,k_e=x(()=>{u();nX();Yt();eD=Oe({...YM,id:59141,name:\\\"Linea Sepolia Testnet\\\",nativeCurrency:{name:\\\"Linea Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.sepolia.linea.build\\\"],webSocket:[\\\"wss://rpc.sepolia.linea.build\\\"]}},blockExplorers:{default:{name:\\\"Etherscan\\\",url:\\\"https://sepolia.lineascan.build\\\",apiUrl:\\\"https://api-sepolia.lineascan.build/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:227427},ensRegistry:{address:\\\"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7\\\",blockCreated:2395094},ensUniversalResolver:{address:\\\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\\\",blockCreated:17168484}},ensTlds:[\\\".linea.eth\\\"],testnet:!0})});var tD,B_e=x(()=>{u();Yt();tD=Oe({id:1,name:\\\"Ethereum\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\\\"https://eth.merkle.io\\\"]}},blockExplorers:{default:{name:\\\"Etherscan\\\",url:\\\"https://etherscan.io\\\",apiUrl:\\\"https://api.etherscan.io/api\\\"}},contracts:{ensUniversalResolver:{address:\\\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\\\",blockCreated:23085558},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:14353601}}})});var rD,M_e=x(()=>{u();Yt();rD=Oe({id:5e3,name:\\\"Mantle\\\",nativeCurrency:{decimals:18,name:\\\"MNT\\\",symbol:\\\"MNT\\\"},rpcUrls:{default:{http:[\\\"https://rpc.mantle.xyz\\\"]}},blockExplorers:{default:{name:\\\"Mantle Explorer\\\",url:\\\"https://mantlescan.xyz/\\\",apiUrl:\\\"https://api.mantlescan.xyz/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:304717}}})});var nD,D_e=x(()=>{u();Yt();nD=Oe({id:5003,name:\\\"Mantle Sepolia Testnet\\\",nativeCurrency:{decimals:18,name:\\\"MNT\\\",symbol:\\\"MNT\\\"},rpcUrls:{default:{http:[\\\"https://rpc.sepolia.mantle.xyz\\\"]}},blockExplorers:{default:{name:\\\"Mantle Testnet Explorer\\\",url:\\\"https://explorer.sepolia.mantle.xyz/\\\",apiUrl:\\\"https://explorer.sepolia.mantle.xyz/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:4584012}},testnet:!0})});var bT,iD,L_e=x(()=>{u();Fm();Yt();bT=1,iD=Oe({...Si,id:34443,name:\\\"Mode Mainnet\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://mainnet.mode.network\\\"]}},blockExplorers:{default:{name:\\\"Modescan\\\",url:\\\"https://modescan.io\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[bT]:{address:\\\"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E\\\"}},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:2465882},l2OutputOracle:{[bT]:{address:\\\"0x4317ba146D4933D889518a3e5E11Fe7a53199b04\\\"}},portal:{[bT]:{address:\\\"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07\\\"}},l1StandardBridge:{[bT]:{address:\\\"0x735aDBbE72226BD52e818E7181953f42E3b0FF21\\\"}}},sourceId:bT})});var wT,sD,U_e=x(()=>{u();Fm();Yt();wT=1,sD=Oe({...Si,id:10,name:\\\"OP Mainnet\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://mainnet.optimism.io\\\"]}},blockExplorers:{default:{name:\\\"Optimism Explorer\\\",url:\\\"https://optimistic.etherscan.io\\\",apiUrl:\\\"https://api-optimistic.etherscan.io/api\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[wT]:{address:\\\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\\\"}},l2OutputOracle:{[wT]:{address:\\\"0xdfe97868233d1aa22e815a266982f2cf17685a27\\\"}},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:4286263},portal:{[wT]:{address:\\\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\\\"}},l1StandardBridge:{[wT]:{address:\\\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\\\"}}},sourceId:wT})});var vT,oD,F_e=x(()=>{u();Fm();Yt();vT=11155111,oD=Oe({...Si,id:11155420,name:\\\"OP Sepolia\\\",nativeCurrency:{name:\\\"Sepolia Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia.optimism.io\\\"]}},blockExplorers:{default:{name:\\\"Blockscout\\\",url:\\\"https://optimism-sepolia.blockscout.com\\\",apiUrl:\\\"https://optimism-sepolia.blockscout.com/api\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[vT]:{address:\\\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\\\"}},l2OutputOracle:{[vT]:{address:\\\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\\\"}},multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:1620204},portal:{[vT]:{address:\\\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\\\"}},l1StandardBridge:{[vT]:{address:\\\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\\\"}}},testnet:!0,sourceId:vT})});var aD,j_e=x(()=>{u();Yt();aD=Oe({id:137,name:\\\"Polygon\\\",blockTime:2e3,nativeCurrency:{name:\\\"POL\\\",symbol:\\\"POL\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://polygon.drpc.org\\\"]}},blockExplorers:{default:{name:\\\"PolygonScan\\\",url:\\\"https://polygonscan.com\\\",apiUrl:\\\"https://api.etherscan.io/v2/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:25770160}}})});var cD,H_e=x(()=>{u();Yt();cD=Oe({id:80002,name:\\\"Polygon Amoy\\\",nativeCurrency:{name:\\\"POL\\\",symbol:\\\"POL\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc-amoy.polygon.technology\\\"]}},blockExplorers:{default:{name:\\\"PolygonScan\\\",url:\\\"https://amoy.polygonscan.com\\\",apiUrl:\\\"https://api.etherscan.io/v2/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:3127388}},testnet:!0})});var lD,q_e=x(()=>{u();Yt();lD=Oe({id:30,name:\\\"Rootstock Mainnet\\\",network:\\\"rootstock\\\",nativeCurrency:{decimals:18,name:\\\"Rootstock Bitcoin\\\",symbol:\\\"RBTC\\\"},rpcUrls:{default:{http:[\\\"https://public-node.rsk.co\\\"]}},blockExplorers:{default:{name:\\\"RSK Explorer\\\",url:\\\"https://explorer.rsk.co\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:4249540}}})});var uD,z_e=x(()=>{u();Yt();uD=Oe({id:534352,name:\\\"Scroll\\\",blockTime:3e3,nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.scroll.io\\\"],webSocket:[\\\"wss://wss-rpc.scroll.io/ws\\\"]}},blockExplorers:{default:{name:\\\"Scrollscan\\\",url:\\\"https://scrollscan.com\\\",apiUrl:\\\"https://api.scrollscan.com/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:14}},testnet:!1})});var dD,$_e=x(()=>{u();Yt();dD=Oe({id:534351,name:\\\"Scroll Sepolia\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia-rpc.scroll.io\\\"]}},blockExplorers:{default:{name:\\\"Scrollscan\\\",url:\\\"https://sepolia.scrollscan.com\\\",apiUrl:\\\"https://api-sepolia.scrollscan.com/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:9473}},testnet:!0})});var fD,V_e=x(()=>{u();Yt();fD=Oe({id:1329,name:\\\"Sei Network\\\",nativeCurrency:{name:\\\"Sei\\\",symbol:\\\"SEI\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://evm-rpc.sei-apis.com/\\\"],webSocket:[\\\"wss://evm-ws.sei-apis.com/\\\"]}},blockExplorers:{default:{name:\\\"Seiscan\\\",url:\\\"https://seiscan.io\\\",apiUrl:\\\"https://api.etherscan.io/v2/api\\\"}},contracts:{multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\"}}})});var pD,W_e=x(()=>{u();Yt();pD=Oe({id:11155111,name:\\\"Sepolia\\\",nativeCurrency:{name:\\\"Sepolia Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://11155111.rpc.thirdweb.com\\\"]}},blockExplorers:{default:{name:\\\"Etherscan\\\",url:\\\"https://sepolia.etherscan.io\\\",apiUrl:\\\"https://api-sepolia.etherscan.io/api\\\"}},contracts:{multicall3:{address:\\\"0xca11bde05977b3631167028862be2a173976ca11\\\",blockCreated:751532},ensUniversalResolver:{address:\\\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\\\",blockCreated:8928790}},testnet:!0})});var xT,G_e=x(()=>{u();Yt();JY();xT=Oe({...MM,blockTime:200,id:324,name:\\\"ZKsync Era\\\",network:\\\"zksync-era\\\",nativeCurrency:{decimals:18,name:\\\"Ether\\\",symbol:\\\"ETH\\\"},rpcUrls:{default:{http:[\\\"https://mainnet.era.zksync.io\\\"],webSocket:[\\\"wss://mainnet.era.zksync.io/ws\\\"]}},blockExplorers:{default:{name:\\\"ZKsync Explorer\\\",url:\\\"https://explorer.zksync.io/\\\",apiUrl:\\\"https://block-explorer-api.mainnet.zksync.io/api\\\"}},contracts:{multicall3:{address:\\\"0xF9cda624FBC7e059355ce98a31693d299FACd963\\\",blockCreated:3908235},erc6492Verifier:{address:\\\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\\\",blockCreated:45659388}}})});var ET,K_e=x(()=>{u();Yt();JY();ET=Oe({...MM,blockTime:200,id:300,name:\\\"ZKsync Sepolia Testnet\\\",network:\\\"zksync-sepolia-testnet\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://sepolia.era.zksync.dev\\\"],webSocket:[\\\"wss://sepolia.era.zksync.dev/ws\\\"]}},blockExplorers:{default:{name:\\\"ZKsync Explorer\\\",url:\\\"https://sepolia.explorer.zksync.io/\\\",blockExplorerApi:\\\"https://block-explorer-api.sepolia.zksync.dev/api\\\"}},contracts:{multicall3:{address:\\\"0xF9cda624FBC7e059355ce98a31693d299FACd963\\\"},erc6492Verifier:{address:\\\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\\\",blockCreated:3855712}},testnet:!0})});var _T,hD,Z_e=x(()=>{u();Fm();Yt();_T=1,hD=Oe({...Si,id:7777777,name:\\\"Zora\\\",nativeCurrency:{decimals:18,name:\\\"Ether\\\",symbol:\\\"ETH\\\"},rpcUrls:{default:{http:[\\\"https://rpc.zora.energy\\\"],webSocket:[\\\"wss://rpc.zora.energy\\\"]}},blockExplorers:{default:{name:\\\"Explorer\\\",url:\\\"https://explorer.zora.energy\\\",apiUrl:\\\"https://explorer.zora.energy/api\\\"}},contracts:{...Si.contracts,disputeGameFactory:{[_T]:{address:\\\"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e\\\"}},l2OutputOracle:{[_T]:{address:\\\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\\\"}},multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:5882},portal:{[_T]:{address:\\\"0x1a0ad011913A150f69f6A19DF447A0CfD9551054\\\"}},l1StandardBridge:{[_T]:{address:\\\"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631\\\"}}},sourceId:_T})});var mD,gD,Q_e=x(()=>{u();Fm();Yt();mD=11155111,gD=Oe({...Si,id:999999999,name:\\\"Zora Sepolia\\\",network:\\\"zora-sepolia\\\",nativeCurrency:{decimals:18,name:\\\"Zora Sepolia\\\",symbol:\\\"ETH\\\"},rpcUrls:{default:{http:[\\\"https://sepolia.rpc.zora.energy\\\"],webSocket:[\\\"wss://sepolia.rpc.zora.energy\\\"]}},blockExplorers:{default:{name:\\\"Zora Sepolia Explorer\\\",url:\\\"https://sepolia.explorer.zora.energy/\\\",apiUrl:\\\"https://sepolia.explorer.zora.energy/api\\\"}},contracts:{...Si.contracts,l2OutputOracle:{[mD]:{address:\\\"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9\\\"}},multicall3:{address:\\\"0xcA11bde05977b3631167028862bE2a173976CA11\\\",blockCreated:83160},portal:{[mD]:{address:\\\"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f\\\"}},l1StandardBridge:{[mD]:{address:\\\"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB\\\"}}},sourceId:mD,testnet:!0})});var iX=x(()=>{u();o_e();a_e();c_e();l_e();u_e();d_e();f_e();p_e();h_e();m_e();C_e();S_e();A_e();T_e();I_e();N_e();k_e();B_e();M_e();D_e();L_e();U_e();F_e();j_e();H_e();q_e();z_e();$_e();V_e();W_e();G_e();K_e();Z_e();Q_e()});function V6(t,{strict:e=!0}={}){return!t||typeof t!=\\\"string\\\"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith(\\\"0x\\\")}var yD=x(()=>{u()});function sX(t){return V6(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}var dCe=x(()=>{u();yD()});var oX,fCe=x(()=>{u();oX=\\\"2.47.6\\\"});function pCe(t,e){return e?.(t)?t:t&&typeof t==\\\"object\\\"&&\\\"cause\\\"in t&&t.cause!==void 0?pCe(t.cause,e):e?null:t}var aX,Qd,ST=x(()=>{u();fCe();aX={getDocsUrl:({docsBaseUrl:t,docsPath:e=\\\"\\\",docsSlug:r})=>e?`${t??\\\"https://viem.sh\\\"}${e}${r?`#${r}`:\\\"\\\"}`:void 0,version:`viem@${oX}`},Qd=class t extends Error{constructor(e,r={}){let n=r.cause instanceof t?r.cause.details:r.cause?.message?r.cause.message:r.details,i=r.cause instanceof t&&r.cause.docsPath||r.docsPath,s=aX.getDocsUrl?.({...r,docsPath:i}),o=[e||\\\"An error occurred.\\\",\\\"\\\",...r.metaMessages?[...r.metaMessages,\\\"\\\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...aX.version?[`Version: ${aX.version}`]:[]].join(`\\n`);super(o,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"metaMessages\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"version\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"BaseError\\\"}),this.details=n,this.docsPath=i,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=e,this.version=oX}walk(e){return pCe(this,e)}}});var AT,hCe=x(()=>{u();ST();AT=class extends Qd{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${r}).`,{name:\\\"SizeExceedsPaddingSizeError\\\"})}}});function Ny(t,{dir:e,size:r=32}={}){return typeof t==\\\"string\\\"?bht(t,{dir:e,size:r}):wht(t,{dir:e,size:r})}function bht(t,{dir:e,size:r=32}={}){if(r===null)return t;let n=t.replace(\\\"0x\\\",\\\"\\\");if(n.length>r*2)throw new AT({size:Math.ceil(n.length/2),targetSize:r,type:\\\"hex\\\"});return`0x${n[e===\\\"right\\\"?\\\"padEnd\\\":\\\"padStart\\\"](r*2,\\\"0\\\")}`}function wht(t,{dir:e,size:r=32}={}){if(r===null)return t;if(t.length>r)throw new AT({size:t.length,targetSize:r,type:\\\"bytes\\\"});let n=new Uint8Array(r);for(let i=0;i<r;i++){let s=e===\\\"right\\\";n[s?i:r-i-1]=t[s?i:t.length-i-1]}return n}var cX=x(()=>{u();hCe()});var TT,bD,lX=x(()=>{u();ST();TT=class extends Qd{constructor({max:e,min:r,signed:n,size:i,value:s}){super(`Number \\\"${s}\\\" is not in safe ${i?`${i*8}-bit ${n?\\\"signed\\\":\\\"unsigned\\\"} `:\\\"\\\"}integer range ${e?`(${r} to ${e})`:`(above ${r})`}`,{name:\\\"IntegerOutOfRangeError\\\"})}},bD=class extends Qd{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`,{name:\\\"SizeOverflowError\\\"})}}});function Jw(t,{size:e}){if(sX(t)>e)throw new bD({givenSize:sX(t),maxSize:e})}var uX=x(()=>{u();lX();dCe()});function IT(t,e={}){return typeof t==\\\"number\\\"||typeof t==\\\"bigint\\\"?wD(t,e):typeof t==\\\"string\\\"?gCe(t,e):typeof t==\\\"boolean\\\"?mCe(t,e):dX(t,e)}function mCe(t,e={}){let r=`0x${Number(t)}`;return typeof e.size==\\\"number\\\"?(Jw(r,{size:e.size}),Ny(r,{size:e.size})):r}function dX(t,e={}){let r=\\\"\\\";for(let i=0;i<t.length;i++)r+=vht[t[i]];let n=`0x${r}`;return typeof e.size==\\\"number\\\"?(Jw(n,{size:e.size}),Ny(n,{dir:\\\"right\\\",size:e.size})):n}function wD(t,e={}){let{signed:r,size:n}=e,i=BigInt(t),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof t==\\\"number\\\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let o=typeof s==\\\"bigint\\\"&&r?-s-1n:0;if(s&&i>s||i<o){let c=typeof t==\\\"bigint\\\"?\\\"n\\\":\\\"\\\";throw new TT({max:s?`${s}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${t}${c}`})}let a=`0x${(r&&i<0?(1n<<BigInt(n*8))+BigInt(i):i).toString(16)}`;return n?Ny(a,{size:n}):a}function gCe(t,e={}){let r=xht.encode(t);return dX(r,e)}var vht,xht,vD=x(()=>{u();lX();cX();uX();vht=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));xht=new TextEncoder});function bCe(t,e={}){return typeof t==\\\"number\\\"||typeof t==\\\"bigint\\\"?Cht(t,e):typeof t==\\\"boolean\\\"?_ht(t,e):V6(t)?wCe(t,e):fX(t,e)}function _ht(t,e={}){let r=new Uint8Array(1);return r[0]=Number(t),typeof e.size==\\\"number\\\"?(Jw(r,{size:e.size}),Ny(r,{size:e.size})):r}function yCe(t){if(t>=jm.zero&&t<=jm.nine)return t-jm.zero;if(t>=jm.A&&t<=jm.F)return t-(jm.A-10);if(t>=jm.a&&t<=jm.f)return t-(jm.a-10)}function wCe(t,e={}){let r=t;e.size&&(Jw(r,{size:e.size}),r=Ny(r,{dir:\\\"right\\\",size:e.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);let i=n.length/2,s=new Uint8Array(i);for(let o=0,a=0;o<i;o++){let c=yCe(n.charCodeAt(a++)),l=yCe(n.charCodeAt(a++));if(c===void 0||l===void 0)throw new Qd(`Invalid byte sequence (\\\"${n[a-2]}${n[a-1]}\\\" in \\\"${n}\\\").`);s[o]=c*16+l}return s}function Cht(t,e){let r=wD(t,e);return wCe(r)}function fX(t,e={}){let r=Eht.encode(t);return typeof e.size==\\\"number\\\"?(Jw(r,{size:e.size}),Ny(r,{dir:\\\"right\\\",size:e.size})):r}var Eht,jm,pX=x(()=>{u();ST();yD();cX();uX();vD();Eht=new TextEncoder;jm={zero:48,nine:57,A:65,F:70,a:97,f:102}});function vCe(t,e){let r=e||\\\"hex\\\",n=Mg(V6(t,{strict:!1})?bCe(t):t);return r===\\\"bytes\\\"?n:IT(n)}var xCe=x(()=>{u();$S();yD();pX();vD()});var xD,ECe=x(()=>{u();ST();xD=class extends Qd{constructor({address:e}){super(`Address \\\"${e}\\\" is invalid.`,{metaMessages:[\\\"- Address must be a hex value of 20 bytes (40 hex characters).\\\",\\\"- Address must match its checksum counterpart.\\\"],name:\\\"InvalidAddressError\\\"})}}});var W6,hX=x(()=>{u();W6=class extends Map{constructor(e){super(),Object.defineProperty(this,\\\"maxSize\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let r=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,r)),r}set(e,r){if(super.has(e)&&super.delete(e),super.set(e,r),this.maxSize&&this.size>this.maxSize){let n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}});function ED(t,e){if(mX.has(`${t}.${e}`))return mX.get(`${t}.${e}`);let r=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),n=vCe(fX(r),\\\"bytes\\\"),i=(e?r.substring(`${e}0x`.length):r).split(\\\"\\\");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&i[o]&&(i[o]=i[o].toUpperCase()),(n[o>>1]&15)>=8&&i[o+1]&&(i[o+1]=i[o+1].toUpperCase());let s=`0x${i.join(\\\"\\\")}`;return mX.set(`${t}.${e}`,s),s}function Jd(t,e){if(!_Ce(t,{strict:!1}))throw new xD({address:t});return ED(t,e)}var mX,gX=x(()=>{u();ECe();pX();xCe();hX();CCe();mX=new W6(8192)});function _Ce(t,e){let{strict:r=!0}=e??{},n=`${t}.${r}`;if(yX.has(n))return yX.get(n);let i=Sht.test(t)?t.toLowerCase()===t?!0:r?ED(t)===t:!0:!1;return yX.set(n,i),i}var Sht,yX,CCe=x(()=>{u();hX();gX();Sht=/^0x[a-fA-F0-9]{40}$/,yX=new W6(8192)});function RX(t,e){let r;try{r=t()}catch{return}return{getItem:i=>{var s;let o=c=>c===null?null:JSON.parse(c,e?.reviver),a=(s=r.getItem(i))!=null?s:null;return a instanceof Promise?a.then(o):o(a)},setItem:(i,s)=>r.setItem(i,JSON.stringify(s,e?.replacer)),removeItem:i=>r.removeItem(i)}}var IX,Jmt,r4e,n4e=x(()=>{u();IX=t=>e=>{try{let r=t(e);return r instanceof Promise?r:{then(n){return IX(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return IX(n)(r)}}}},Jmt=(t,e)=>(r,n,i)=>{let s={storage:RX(()=>localStorage),partialize:g=>g,version:0,merge:(g,w)=>({...w,...g}),...e},o=!1,a=new Set,c=new Set,l=s.storage;if(!l)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...g)},n,i);let d=()=>{let g=s.partialize({...n()});return l.setItem(s.name,{state:g,version:s.version})},f=i.setState;i.setState=(g,w)=>{f(g,w),d()};let p=t((...g)=>{r(...g),d()},n,i);i.getInitialState=()=>p;let h,m=()=>{var g,w;if(!l)return;o=!1,a.forEach(b=>{var _;return b((_=n())!=null?_:p)});let v=((w=s.onRehydrateStorage)==null?void 0:w.call(s,(g=n())!=null?g:p))||void 0;return IX(l.getItem.bind(l))(s.name).then(b=>{if(b)if(typeof b.version==\\\"number\\\"&&b.version!==s.version){if(s.migrate){let _=s.migrate(b.state,b.version);return _ instanceof Promise?_.then(S=>[!0,S]):[!0,_]}console.error(\\\"State loaded from storage couldn't be migrated since no migrate function was provided\\\")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var _;let[S,T]=b;if(h=s.merge(T,(_=n())!=null?_:p),r(h,!0),S)return d()}).then(()=>{v?.(h,void 0),h=n(),o=!0,c.forEach(b=>b(h))}).catch(b=>{v?.(void 0,b)})};return i.persist={setOptions:g=>{s={...s,...g},g.storage&&(l=g.storage)},clearStorage:()=>{l?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(c.add(g),()=>{c.delete(g)})},s.skipHydration||m(),h||p},r4e=Jmt});var i4e,t3,PD=x(()=>{u();i4e=t=>{let e,r=new Set,n=(l,d)=>{let f=typeof l==\\\"function\\\"?l(e):l;if(!Object.is(f,e)){let p=e;e=d??(typeof f!=\\\"object\\\"||f===null)?f:Object.assign({},e,f),r.forEach(h=>h(e,p))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=e=t(n,i,a);return a},t3=t=>t?i4e(t):i4e});var Mu,OD,hv=x(()=>{u();Mu=\\\"4.3.6\\\",OD=\\\"@coinbase/wallet-sdk\\\"});var Ymt,Xmt,e0t,t0t,r0t,n0t,i0t,us,s0t,o0t,a0t,c0t,l0t,u0t,PX,d0t,Ee,Du=x(()=>{u();n4e();PD();hv();Ymt=()=>({chains:[]}),Xmt=()=>({keys:{}}),e0t=()=>({account:{}}),t0t=()=>({subAccount:void 0}),r0t=()=>({subAccountConfig:{}}),n0t=()=>({spendPermissions:[]}),i0t=()=>({config:{version:Mu}}),us=t3(r4e((...t)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ymt(...t)),Xmt(...t)),e0t(...t)),t0t(...t)),n0t(...t)),i0t(...t)),r0t(...t)),{name:\\\"cbwsdk.store\\\",storage:RX(()=>localStorage),partialize:t=>({chains:t.chains,keys:t.keys,account:t.account,subAccount:t.subAccount,spendPermissions:t.spendPermissions,config:t.config})})),s0t={get:()=>us.getState().subAccountConfig,set:t=>{us.setState(e=>({subAccountConfig:Object.assign(Object.assign({},e.subAccountConfig),t)}))},clear:()=>{us.setState({subAccountConfig:{}})}},o0t={get:()=>us.getState().subAccount,set:t=>{us.setState(e=>({subAccount:e.subAccount?Object.assign(Object.assign({},e.subAccount),t):Object.assign({address:t.address},t)}))},clear:()=>{us.setState({subAccount:void 0})}},a0t={get:()=>us.getState().spendPermissions,set:t=>{us.setState({spendPermissions:t})},clear:()=>{us.setState({spendPermissions:[]})}},c0t={get:()=>us.getState().account,set:t=>{us.setState(e=>({account:Object.assign(Object.assign({},e.account),t)}))},clear:()=>{us.setState({account:{}})}},l0t={get:()=>us.getState().chains,set:t=>{us.setState({chains:t})},clear:()=>{us.setState({chains:[]})}},u0t={get:t=>us.getState().keys[t],set:(t,e)=>{us.setState(r=>({keys:Object.assign(Object.assign({},r.keys),{[t]:e})}))},clear:()=>{us.setState({keys:{}})}},PX={get:()=>us.getState().config,set:t=>{us.setState(e=>({config:Object.assign(Object.assign({},e.config),t)}))}},d0t={subAccounts:o0t,subAccountsConfig:s0t,spendPermissions:a0t,account:c0t,chains:l0t,keys:u0t,config:PX},Ee=Object.assign(Object.assign({},us),d0t)});var s4e,o4e=x(()=>{u();s4e='!function(e,t){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?module.exports=t():\\\"function\\\"==typeof define&&define.amd?define([],t):\\\"object\\\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\\\"\\\")}}};e.exports=t},562:e=>{var t,n;t=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\\\"\\\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\\\"=\\\");return n.join(\\\"\\\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\\\"\\\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\\\"function\\\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\\\"function\\\"==typeof e.readFloatLE&&\\\"function\\\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\\\"binary\\\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\\\"Illegal argument \\\"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\\\"use strict\\\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\\\"mark.\\\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\\\"4g\\\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\\\"Perfume.js:\\\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\\\"slow-2g\\\":case\\\"2g\\\":case\\\"3g\\\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\\\"number\\\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\\\"CLS\\\",\\\"INP\\\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\\\"serviceWorker\\\"in c?c.serviceWorker.controller?\\\"controlled\\\":\\\"supported\\\":\\\"unsupported\\\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\\\"CLS\\\",\\\"INP\\\"].includes(e)?u():(s=u,\\\"requestIdleCallback\\\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\\\"self\\\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\\\"instant\\\",e.quick=\\\"quick\\\",e.moderate=\\\"moderate\\\",e.slow=\\\"slow\\\",e.unavoidable=\\\"unavoidable\\\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\\\"good\\\":t<=L[e][1]?\\\"needsImprovement\\\":\\\"poor\\\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\\\"number\\\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\\\"FCP\\\"===n&&(b.value=i),[\\\"FCP\\\",\\\"LCP\\\"].includes(n)&&!T[0]&&(T[0]=S(\\\"longtask\\\",I)),\\\"FID\\\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\\\"TBT\\\",rating:U(\\\"TBT\\\",w.value),value:w.value,navigationType:o}),R(\\\"dataConsumption\\\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\\\"navigation\\\")[0]},z=function(e){if(\\\"loading\\\"===document.readyState)return\\\"loading\\\";var t=F();if(t){if(e<t.domInteractive)return\\\"loading\\\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\\\"dom-interactive\\\";if(0===t.domComplete||e<t.domComplete)return\\\"dom-content-loaded\\\"}return\\\"complete\\\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\\\"\\\")},$=function(e,t){var n=\\\"\\\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\\\"#\\\"+r.id:K(r)+(r.className&&r.className.length?\\\".\\\"+r.className.replace(/\\\\\\\\s+/g,\\\".\\\"):\\\"\\\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\\\">\\\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\\\"pageshow\\\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\\\"navigate\\\";return W()>=0?r=\\\"back-forward-cache\\\":n&&(r=document.prerendering||V()>0?\\\"prerender\\\":document.wasDiscarded?\\\"restore\\\":n.type.replace(/_/g,\\\"-\\\")),{name:e,value:void 0===t?-1:t,rating:\\\"good\\\",delta:0,entries:[],id:\\\"v3-\\\".concat(Date.now(),\\\"-\\\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\\\"pagehide\\\"!==r.type&&\\\"hidden\\\"!==document.visibilityState||(e(r),t&&(removeEventListener(\\\"visibilitychange\\\",n,!0),removeEventListener(\\\"pagehide\\\",n,!0)))};addEventListener(\\\"visibilitychange\\\",n,!0),addEventListener(\\\"pagehide\\\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\\\"poor\\\":e>t[0]?\\\"needs-improvement\\\":\\\"good\\\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\\\"prerenderingchange\\\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\\\"hidden\\\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\\\"hidden\\\"===document.visibilityState&&te>-1&&(te=\\\"visibilitychange\\\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\\\"visibilitychange\\\",re,!0),addEventListener(\\\"prerenderingchange\\\",re,!0)},ae=function(){removeEventListener(\\\"visibilitychange\\\",re,!0),removeEventListener(\\\"prerenderingchange\\\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\\\"FCP\\\"),o=X(\\\"paint\\\",(function(e){e.forEach((function(e){\\\"first-contentful-paint\\\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\\\"FCP\\\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\\\"first-input\\\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\\\"pointerdown\\\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\\\"pointerup\\\",n,ce),removeEventListener(\\\"pointercancel\\\",r,ce)};addEventListener(\\\"pointerup\\\",n,ce),addEventListener(\\\"pointercancel\\\",r,ce)}(t,e):le(t,e)}},me=function(e){[\\\"mousedown\\\",\\\"keydown\\\",\\\"touchstart\\\",\\\"pointerdown\\\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\\\"complete\\\"!==document.readyState?addEventListener(\\\"load\\\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\\\"TTFB\\\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\\\"TTFB\\\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\\\"ET\\\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\\\"resourceTiming\\\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\\\"CLS\\\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\\\"layout-shift\\\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\\\"CLS\\\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\\\"FID\\\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\\\"first-input\\\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\\\"FID\\\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\\\"LCP\\\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\\\"largest-contentful-paint\\\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\\\"keydown\\\",\\\"click\\\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\\\"LCP\\\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\\\"resource\\\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\\\"interactionCount\\\"in performance||D||(D=X(\\\"event\\\",be,{type:\\\"event\\\",buffered:!0,durationThreshold:0}));var r,i=J(\\\"INP\\\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\\\"first-input\\\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\\\"event\\\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\\\"first-input\\\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\\\"INP\\\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\\\"resource\\\",je),a.isElementTiming&&S(\\\"element\\\",Oe)},Ie=function(e){var t=\\\"usageDetails\\\"in e?e.usageDetails:{};R(\\\"storageEstimate\\\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\\\"step.\\\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\\\"good\\\":e<=t[1]?\\\"needsImprovement\\\":\\\"poor\\\"}(d,c);d>=0&&(N(\\\"userJourneyStep\\\",d,m,{stepName:e},void 0),u.measure(\\\"step.\\\".concat(e,\\\"_vitals_\\\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\\\"stepVital\\\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\\\"\\\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\\\"function\\\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\\\"Generator is already executing.\\\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\\\"9.0.0-rc.3\\\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\\\"PerformanceObserver\\\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\\\"visibilitychange\\\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\\\"navigation\\\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\\\"navigationTiming\\\",t),t.redirectTime&&q({attribution:{},name:\\\"RT\\\",rating:U(\\\"RT\\\",t.redirectTime),value:t.redirectTime}),R(\\\"networkInformation\\\",function(){if(\\\"connection\\\"in c){var e=c.connection;return\\\"object\\\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\\\"function\\\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\\\"mark_\\\".concat(e,\\\"_start\\\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\\\"mark_\\\".concat(e,\\\"_end\\\")),delete g[e];var r=function(e){u.measure(e,\\\"mark_\\\".concat(e,\\\"_start\\\"),\\\"mark_\\\".concat(e,\\\"_end\\\"));var t=u.getEntriesByName(e).pop();return t&&\\\"measure\\\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\\\"mark_\\\".concat(e,\\\"_start\\\")),u.clearMarks(\\\"mark_\\\".concat(e,\\\"_end\\\")))},e.prototype.markNTBT=function(){var e=this;this.start(\\\"ntbt\\\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\\\"ntbt\\\",{},!1),q({attribution:{},name:\\\"NTBT\\\",rating:U(\\\"NTBT\\\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\\\"use strict\\\";Symbol.for(\\\"react.element\\\"),Symbol.for(\\\"react.portal\\\"),Symbol.for(\\\"react.fragment\\\"),Symbol.for(\\\"react.strict_mode\\\"),Symbol.for(\\\"react.profiler\\\"),Symbol.for(\\\"react.provider\\\"),Symbol.for(\\\"react.context\\\"),Symbol.for(\\\"react.forward_ref\\\"),Symbol.for(\\\"react.suspense\\\"),Symbol.for(\\\"react.memo\\\"),Symbol.for(\\\"react.lazy\\\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\\\"object\\\"!=typeof e&&\\\"function\\\"!=typeof e&&null!=e)throw Error(\\\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,e,t,\\\"setState\\\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\\\"forceUpdate\\\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\\\"use strict\\\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\\\"use strict\\\";var o=\\\"function\\\",s=\\\"undefined\\\",c=\\\"object\\\",u=\\\"string\\\",l=\\\"major\\\",d=\\\"model\\\",p=\\\"name\\\",m=\\\"type\\\",f=\\\"vendor\\\",v=\\\"version\\\",g=\\\"architecture\\\",b=\\\"console\\\",h=\\\"mobile\\\",w=\\\"tablet\\\",y=\\\"smarttv\\\",T=\\\"wearable\\\",k=\\\"embedded\\\",_=\\\"Amazon\\\",S=\\\"Apple\\\",E=\\\"ASUS\\\",x=\\\"BlackBerry\\\",O=\\\"Browser\\\",j=\\\"Chrome\\\",N=\\\"Firefox\\\",I=\\\"Google\\\",P=\\\"Huawei\\\",M=\\\"LG\\\",B=\\\"Microsoft\\\",C=\\\"Motorola\\\",D=\\\"Opera\\\",A=\\\"Samsung\\\",L=\\\"Sharp\\\",U=\\\"Sony\\\",R=\\\"Xiaomi\\\",q=\\\"Zebra\\\",F=\\\"Facebook\\\",z=\\\"Chromium OS\\\",K=\\\"Mac OS\\\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\\\"\\\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\\\"?\\\"===n?a:n}else if(Q(t[n],e))return\\\"?\\\"===n?a:n;return e},X={ME:\\\"4.90\\\",\\\"NT 3.11\\\":\\\"NT3.51\\\",\\\"NT 4.0\\\":\\\"NT4.0\\\",2e3:\\\"NT 5.0\\\",XP:[\\\"NT 5.1\\\",\\\"NT 5.2\\\"],Vista:\\\"NT 6.0\\\",7:\\\"NT 6.1\\\",8:\\\"NT 6.2\\\",8.1:\\\"NT 6.3\\\",10:[\\\"NT 6.4\\\",\\\"NT 10.0\\\"],RT:\\\"ARM\\\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Chrome\\\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Edge\\\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\\\" Mini\\\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"UC\\\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\\\"WeChat(Win) Desktop\\\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"WeChat\\\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Konqueror\\\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\\\"IE\\\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Yandex\\\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\\\"$1 Secure \\\"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\\\" Focus\\\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\\\" Touch\\\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Coc Coc\\\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Dolphin\\\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\\\" Coast\\\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"MIUI \\\"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\\\"360 \\\"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\\\"$1 \\\"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\\\" \\\"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\\\"GSA\\\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"TikTok\\\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\\\" Headless\\\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\\\" WebView\\\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\\\"Android \\\"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\\\"Mobile Safari\\\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\\\"1.0\\\":\\\"/8\\\",1.2:\\\"/1\\\",1.3:\\\"/3\\\",\\\"2.0\\\":\\\"/412\\\",\\\"2.0.2\\\":\\\"/416\\\",\\\"2.0.3\\\":\\\"/417\\\",\\\"2.0.4\\\":\\\"/419\\\",\\\"?\\\":\\\"/\\\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\\\"Netscape\\\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\\\" Reality\\\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\\\"\\\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\\\"amd64\\\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\\\"ia32\\\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\\\"arm64\\\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\\\"armhf\\\"]],[/windows (ce|mobile); ppc;/i],[[g,\\\"arm\\\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\\\"\\\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\\\"sparc\\\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\\\" \\\"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\\\" \\\"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\\\"OPPO\\\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\\\"Vivo\\\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\\\"Realme\\\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\\\"Lenovo\\\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\\\" \\\"],[f,\\\"Nokia\\\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\\\"Xperia Tablet\\\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\\\"OnePlus\\\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\\\"Fire Phone $1\\\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\\\"HTC\\\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\\\" \\\"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\\\"Acer\\\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\\\"Meizu\\\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\\\"Fairphone\\\"],[m,h]],[/(u304aa)/i],[d,[f,\\\"AT&T\\\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\\\"Siemens\\\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\\\"RCA\\\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\\\"Dell\\\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\\\"Verizon\\\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\\\"Barnes & Noble\\\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\\\"NuVision\\\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\\\"ZTE\\\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\\\"ZTE\\\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\\\"Swiss\\\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\\\"Swiss\\\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\\\"Zeki\\\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\\\"Dragon Touch\\\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\\\"Insignia\\\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\\\"NextBook\\\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\\\"Voice\\\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\\\"LvTel\\\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\\\"Essential\\\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\\\"Envizen\\\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\\\"MachSpeed\\\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\\\"Rotor\\\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\\\"Nvidia\\\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\\\" \\\"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\\\"SmartTV\\\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\\\" TV\\\"],[m,y]],[/crkey/i],[[d,j+\\\"cast\\\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\\\"Nvidia\\\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\\\"Generic\\\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"EdgeHTML\\\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"Blink\\\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\\\"Windows\\\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\\\".\\\"],[p,\\\"iOS\\\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\\\".\\\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\\\"Symbian\\\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\\\" OS\\\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\\\"webOS\\\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\\\"watchOS\\\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\\\"cast\\\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\\\"Solaris\\\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\\\"\\\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\\\"\\\").split(\\\".\\\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\\\"Brave\\\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\\\"Macintosh\\\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\\\"iPad\\\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\\\"Unknown\\\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\\\"1.0.35\\\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\\\"object\\\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\\\"undefined\\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\\"Module\\\"}),Object.defineProperty(e,\\\"__esModule\\\",{value:!0})};var r={};return(()=>{\\\"use strict\\\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\\\"fbclid\\\",e.gclid=\\\"gclid\\\",e.msclkid=\\\"msclkid\\\",e.ptclid=\\\"ptclid\\\",e.ttclid=\\\"ttclid\\\",e.utm_source=\\\"utm_source\\\",e.utm_medium=\\\"utm_medium\\\",e.utm_campaign=\\\"utm_campaign\\\",e.utm_term=\\\"utm_term\\\",e.utm_content=\\\"utm_content\\\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\\\"low\\\",e.high=\\\"high\\\",e}({}),d=function(e){return e.count=\\\"count\\\",e.rate=\\\"rate\\\",e.gauge=\\\"gauge\\\",e.distribution=\\\"distribution\\\",e.histogram=\\\"histogram\\\",e}({}),p=function(e){return e.commerce_merchant=\\\"commerce_merchant\\\",e.device=\\\"device\\\",e.edp_fingerprint_id=\\\"edp_fingerprint_id\\\",e.nft_user=\\\"nft_user\\\",e.user=\\\"user\\\",e.wallet_user=\\\"wallet_user\\\",e.uuid=\\\"user_uuid\\\",e}({}),m=function(e){return e.unknown=\\\"unknown\\\",e.banner=\\\"banner\\\",e.button=\\\"button\\\",e.card=\\\"card\\\",e.chart=\\\"chart\\\",e.content_script=\\\"content_script\\\",e.dropdown=\\\"dropdown\\\",e.link=\\\"link\\\",e.page=\\\"page\\\",e.modal=\\\"modal\\\",e.table=\\\"table\\\",e.search_bar=\\\"search_bar\\\",e.service_worker=\\\"service_worker\\\",e.text=\\\"text\\\",e.text_input=\\\"text_input\\\",e.tray=\\\"tray\\\",e.checkbox=\\\"checkbox\\\",e.icon=\\\"icon\\\",e}({}),f=function(e){return e.unknown=\\\"unknown\\\",e.blur=\\\"blur\\\",e.click=\\\"click\\\",e.change=\\\"change\\\",e.dismiss=\\\"dismiss\\\",e.focus=\\\"focus\\\",e.hover=\\\"hover\\\",e.select=\\\"select\\\",e.measurement=\\\"measurement\\\",e.move=\\\"move\\\",e.process=\\\"process\\\",e.render=\\\"render\\\",e.scroll=\\\"scroll\\\",e.view=\\\"view\\\",e.search=\\\"search\\\",e.keyPress=\\\"keyPress\\\",e}({}),v=function(e){return e.unknown=\\\"unknown\\\",e.web=\\\"web\\\",e.android=\\\"android\\\",e.ios=\\\"ios\\\",e.mobile_web=\\\"mobile_web\\\",e.tablet_web=\\\"tablet_web\\\",e.server=\\\"server\\\",e.windows=\\\"windows\\\",e.macos=\\\"macos\\\",e.extension=\\\"extension\\\",e}({}),g=function(e){return e.web=\\\"Web\\\",e.ios=\\\"iOS\\\",e.android=\\\"Android\\\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\\\"notLoggedIn\\\",e[e.loggedIn=1]=\\\"loggedIn\\\",e}({}),h=function(e){return e.ac=\\\"ac\\\",e.af=\\\"af\\\",e.ah=\\\"ah\\\",e.al=\\\"al\\\",e.am=\\\"am\\\",e.ar=\\\"ar\\\",e.as=\\\"as\\\",e}({}),w=function(e){return e.pv=\\\"pv\\\",e}({}),y=function(e){return e.xs=\\\"xs\\\",e.s=\\\"s\\\",e.m=\\\"m\\\",e.l=\\\"l\\\",e.xl=\\\"xl\\\",e.xxl=\\\"xxl\\\",e}({});const T=\\\"https://analytics-service-dev.cbhq.net\\\",k=3e5,_=5e3,S=\\\"analytics-db\\\",E=\\\"experiment-exposure-db\\\",x=\\\"Analytics SDK:\\\",O=Object.values(e),j=\\\"pageview\\\",N=\\\"session_duration\\\",I={navigationTiming:{eventName:\\\"perf_navigation_timing\\\"},redirectTime:{eventName:\\\"perf_redirect_time\\\"},RT:{eventName:\\\"perf_redirect_time\\\"},TTFB:{eventName:\\\"perf_time_to_first_byte\\\"},networkInformation:{eventName:\\\"perf_network_information\\\"},storageEstimate:{eventName:\\\"perf_storage_estimate\\\"},FCP:{eventName:\\\"perf_first_contentful_paint\\\"},FID:{eventName:\\\"perf_first_input_delay\\\"},LCP:{eventName:\\\"perf_largest_contentful_paint\\\"},CLS:{eventName:\\\"perf_cumulative_layout_shift\\\"},TBT:{eventName:\\\"perf_total_blocking_time\\\"},NTBT:{eventName:\\\"perf_navigation_total_blocking_time\\\"},INP:{eventName:\\\"perf_interact_to_next_paint\\\"},ET:{eventName:\\\"perf_element_timing\\\"},userJourneyStep:{eventName:\\\"perf_user_journey_step\\\"}},P=\\\"1\\\",M=\\\"web\\\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\\\"/amp\\\",metricsEndPoint:e+\\\"/metrics\\\",exposureEndpoint:e+\\\"/track-exposures\\\",tracesEndpoint:e+\\\"/traces\\\"}}const A=B({authCookie:\\\"logged_in\\\",amplitudeApiKey:\\\"\\\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\\\"\\\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\\\"https://analytics-service-internal-dev.cbhq.net\\\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\\\"https://analytics-service-internal.cbhq.net\\\":\\\"https://as.coinbase.com\\\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\\\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\\\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\\\"android\\\"===A.platform}function F(){return\\\"ios\\\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\\\"serviceWorker\\\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\\\"10000000-1000-4000-8000-100000000000\\\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\\\"(max-width: 560px)\\\").matches:return v.mobile_web;case window.matchMedia(\\\"(max-width: 1024px, min-width: 561px)\\\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\\\"requestIdleCallback\\\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\\\"ua_parser_start\\\");const t=new(Q())(null!=(e=W.userAgent)?e:\\\"\\\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\\\"ua_parser_end\\\"),performance.measure(\\\"ua_parser\\\",\\\"ua_parser_start\\\",\\\"ua_parser_end\\\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\\\"\\\",pageKeyRegex:{},pagePath:\\\"\\\",prevPageKey:\\\"\\\",prevPagePath:\\\"\\\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\\\"\\\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\\\"\\\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\\\"\\\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\\\"\\\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\\\"\\\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\\\"action\\\",\\\"component_type\\\",\\\"component_name\\\",\\\"context\\\",\\\"logging_id\\\"],ke=[\\\"num_non_hardware_accounts\\\",\\\"ujs\\\"],_e=\\\"ujs_\\\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\\\"IdentityFlow property names must have snake case format\\\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\\\"SDK platform not initialized\\\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\\\"done\\\"===t)return Ke.get(e);if(\\\"objectStoreNames\\\"===t)return e.objectStoreNames||$e.get(e);if(\\\"store\\\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\\\"done\\\"===t||\\\"store\\\"===t)||t in e};function Ve(e){return\\\"function\\\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\\\"objectStoreNames\\\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\\\"complete\\\",i),e.removeEventListener(\\\"error\\\",a),e.removeEventListener(\\\"abort\\\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\\\"AbortError\\\",\\\"AbortError\\\")),r()};e.addEventListener(\\\"complete\\\",i),e.addEventListener(\\\"error\\\",a),e.addEventListener(\\\"abort\\\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\\\"success\\\",i),e.removeEventListener(\\\"error\\\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\\\"success\\\",i),e.addEventListener(\\\"error\\\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\\\"get\\\",\\\"getKey\\\",\\\"getAll\\\",\\\"getAllKeys\\\",\\\"count\\\"],Ze=[\\\"put\\\",\\\"add\\\",\\\"delete\\\",\\\"clear\\\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\\\"string\\\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\\\"\\\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\\\"readwrite\\\":\\\"readonly\\\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\\\"IndexedDB:Get:InternalError\\\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\\\"IndexedDB:Set:InternalError\\\"))}},st=()=>{\\\"server\\\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\\\"rgb(5,177,105)\\\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\\\"Started new session:\\\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\\\"@cbhq/client-analytics\\\",version:\\\"10.6.0\\\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\\\"true\\\":\\\"false\\\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\\\"application/x-www-form-urlencoded; charset=UTF-8\\\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\\\"application/json\\\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\\\"POST\\\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\\\"Content-Type\\\",kt),H.jwt&&e.setRequestHeader(\\\"authorization\\\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\\\"sendBeacon\\\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\\\"Content-Type\\\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\\\"POST\\\",mode:\\\"no-cors\\\",headers:e,body:c}).catch((e=>{i(e,{context:\\\"AnalyticsSDKApiError\\\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\\\"\\\";return Et()(\\\"2\\\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\\\"CircularJsonReference\\\",this.message=e,\\\"function\\\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\\\"DomReferenceInAnalyticsEvent\\\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\\\"userId not set in Logged-in\\\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\\\", \\\"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\\\"string\\\",\\\"number\\\",\\\"boolean\\\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\\\"\\\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\\\"unknown\\\"),{listEventType:r});n=a,A.onError(new Nt(\\\"Found DOM element reference\\\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\\\"2\\\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\\\"Batch Events\\\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\\\"number\\\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\\\"missing logData\\\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\\\"Batch Metrics\\\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\\\"instant\\\",e.quick=\\\"quick\\\",e.moderate=\\\"moderate\\\",e.slow=\\\"slow\\\",e.unavoidable=\\\"unavoidable\\\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\\\"unknown\\\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\\\"hidden\\\",n=!1)=>{cn||(addEventListener(\\\"pagehide\\\",un),addEventListener(\\\"beforeunload\\\",(()=>{})),cn=!0),addEventListener(\\\"visibilitychange\\\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\\\"\\\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\\\"upgradeneeded\\\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\\\"blocked\\\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\\\"close\\\",(()=>a())),i&&e.addEventListener(\\\"versionchange\\\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\\\"keyval-store\\\",1,{upgrade(e){e.createObjectStore(\\\"keyval\\\")}});rt({idbKeyval:{get:async t=>(await e).get(\\\"keyval\\\",t),set:async(t,n)=>(await e).put(\\\"keyval\\\",n,t),delete:async t=>(await e).delete(\\\"keyval\\\",t),keys:async()=>(await e).getAllKeys(\\\"keyval\\\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\\\"Initialized Analytics:\\\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\\\"Initialized Analytics IndexedDB:\\\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\\\"hidden\\\"),ln((()=>{pn()}),\\\"visible\\\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\\\"resize\\\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\\\"unsupported\\\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\\\"\\\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\\\"navigationTiming\\\"===r)t&&\\\"number\\\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\\\"TTFB\\\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\\\"networkInformation\\\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\\\"storageEstimate\\\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\\\"perf_storage_estimate_caches\\\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\\\"perf_storage_estimate_indexed_db\\\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\\\"CLS\\\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\\\"FID\\\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\\\"\\\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\\\"userJourneyStep\\\"===r?($t(\\\"perf_user_journey_step\\\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\\\"\\\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\\\"\\\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\\\"\\\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\\\"LCP\\\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\\\"Identify:\\\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\\\"routeChangeComplete\\\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\\\"cb_button\\\",uuid:\\\"e921a074-40e6-4371-8700-134d5cd633e6\\\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\\\"Batch Traces\\\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\\\"x-datadog-origin\\\":\\\"rum\\\",\\\"x-datadog-parent-id\\\":t,\\\"x-datadog-sampling-priority\\\":\\\"1\\\",\\\"x-datadog-trace-id\\\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\\\"object\\\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\\\"string\\\");if(\\\"object\\\"!=typeof r)return r;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return String(e)}(e);return\\\"symbol\\\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\\\"performance\\\"in window&&\\\"mark\\\"in performance&&\\\"getEntriesByName\\\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\\\"\\\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\\\"end\\\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\\\"start\\\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\\\"start\\\",t);Qn[n]||(Wn(e,\\\"start\\\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\\\"start\\\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\\\"start\\\",t);Qn[n]&&(Wn(e,\\\"end\\\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\\\"\\\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\\\"X-CB-Device-ID\\\":H.deviceId||\\\"unknown\\\",\\\"X-CB-Is-Logged-In\\\":H.userId?\\\"true\\\":\\\"false\\\",\\\"X-CB-Pagekey\\\":re.pageKey||\\\"unknown\\\",\\\"X-CB-UJS\\\":(e=Se.ujs,void 0===e||0===e.length?\\\"\\\":e.join(\\\",\\\")),\\\"X-CB-Platform\\\":A.platform||\\\"unknown\\\",\\\"X-CB-Project-Name\\\":A.projectName||\\\"unknown\\\",\\\"X-CB-Session-UUID\\\":oe.sessionUUID||\\\"unknown\\\",\\\"X-CB-Version-Name\\\":A.version?String(A.version):\\\"unknown\\\"};var e}})(),r})()}));'});var ND,f0t,OX=x(()=>{u();Du();o4e();ND=()=>new Promise((t,e)=>{if(window.ClientAnalytics)return t();try{let r=document.createElement(\\\"script\\\");r.textContent=s4e,r.type=\\\"text/javascript\\\",document.head.appendChild(r),f0t(),document.head.removeChild(r),t()}catch{console.error(\\\"Failed to execute inlined telemetry script\\\"),e()}}),f0t=()=>{var t,e,r;if(typeof window<\\\"u\\\"){let n=(r=(t=Ee.config.get().deviceId)!==null&&t!==void 0?t:(e=window.crypto)===null||e===void 0?void 0:e.randomUUID())!==null&&r!==void 0?r:\\\"\\\";if(window.ClientAnalytics){let{init:i,identify:s,PlatformName:o}=window.ClientAnalytics;i({isProd:!0,amplitudeApiKey:\\\"c66737ad47ec354ced777935b0af822e\\\",platform:o.web,projectName:\\\"base_account_sdk\\\",showDebugLogging:!1,version:\\\"1.0.0\\\",apiEndpoint:\\\"https://cca-lite.coinbase.com\\\"}),s({deviceId:n}),Ee.config.set({deviceId:n})}}}});var Wn,kD,BT=x(()=>{u();Wn={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},kD={\\\"-32700\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\\\"},\\\"-32600\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The JSON sent is not a valid Request object.\\\"},\\\"-32601\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The method does not exist / is not available.\\\"},\\\"-32602\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid method parameter(s).\\\"},\\\"-32603\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Internal JSON-RPC error.\\\"},\\\"-32000\\\":{standard:\\\"EIP-1474\\\",message:\\\"Invalid input.\\\"},\\\"-32001\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource not found.\\\"},\\\"-32002\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource unavailable.\\\"},\\\"-32003\\\":{standard:\\\"EIP-1474\\\",message:\\\"Transaction rejected.\\\"},\\\"-32004\\\":{standard:\\\"EIP-1474\\\",message:\\\"Method not supported.\\\"},\\\"-32005\\\":{standard:\\\"EIP-1474\\\",message:\\\"Request limit exceeded.\\\"},4001:{standard:\\\"EIP-1193\\\",message:\\\"User rejected the request.\\\"},4100:{standard:\\\"EIP-1193\\\",message:\\\"The requested account and/or method has not been authorized by the user.\\\"},4200:{standard:\\\"EIP-1193\\\",message:\\\"The requested method is not supported by this Ethereum provider.\\\"},4900:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from all chains.\\\"},4901:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from the specified chain.\\\"},4902:{standard:\\\"EIP-3085\\\",message:\\\"Unrecognized chain ID.\\\"}}});function BD(t,e=l4e){if(t&&Number.isInteger(t)){let r=t.toString();if(NX(kD,r))return kD[r].message;if(d4e(t))return p0t}return e}function h0t(t){if(!Number.isInteger(t))return!1;let e=t.toString();return!!(kD[e]||d4e(t))}function u4e(t,{shouldIncludeStack:e=!1}={}){let r={};if(t&&typeof t==\\\"object\\\"&&!Array.isArray(t)&&NX(t,\\\"code\\\")&&h0t(t.code)){let n=t;r.code=n.code,n.message&&typeof n.message==\\\"string\\\"?(r.message=n.message,NX(n,\\\"data\\\")&&(r.data=n.data)):(r.message=BD(r.code),r.data={originalError:a4e(t)})}else r.code=Wn.rpc.internal,r.message=c4e(t,\\\"message\\\")?t.message:l4e,r.data={originalError:a4e(t)};return e&&(r.stack=c4e(t,\\\"stack\\\")?t.stack:void 0),r}function d4e(t){return t>=-32099&&t<=-32e3}function a4e(t){return t&&typeof t==\\\"object\\\"&&!Array.isArray(t)?Object.assign({},t):t}function NX(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c4e(t,e){return typeof t==\\\"object\\\"&&t!==null&&e in t&&typeof t[e]==\\\"string\\\"}var l4e,p0t,kX=x(()=>{u();BT();l4e=\\\"Unspecified error message.\\\",p0t=\\\"Unspecified server error.\\\"});function Lu(t,e){let[r,n]=f4e(e);return new MT(t,r||BD(t),n)}function r3(t,e){let[r,n]=f4e(e);return new MD(t,r||BD(t),n)}function f4e(t){if(t){if(typeof t==\\\"string\\\")return[t];if(typeof t==\\\"object\\\"&&!Array.isArray(t)){let{message:e,data:r}=t;if(e&&typeof e!=\\\"string\\\")throw new Error(\\\"Must specify string message.\\\");return[e||void 0,r]}}return[]}function m0t(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function BX(t){return typeof t==\\\"object\\\"&&t!==null&&\\\"code\\\"in t&&\\\"data\\\"in t&&t.code===-32090&&typeof t.data==\\\"object\\\"&&t.data!==null&&\\\"type\\\"in t.data&&t.data.type===\\\"INSUFFICIENT_FUNDS\\\"}function DD(t){return typeof t==\\\"object\\\"&&t!==null&&\\\"details\\\"in t}function p4e(t){try{let e=JSON.parse(t.details);return new MT(e.code,e.message,e.data)}catch{return null}}var pe,MT,MD,va=x(()=>{u();BT();kX();pe={rpc:{parse:t=>Lu(Wn.rpc.parse,t),invalidRequest:t=>Lu(Wn.rpc.invalidRequest,t),invalidParams:t=>Lu(Wn.rpc.invalidParams,t),methodNotFound:t=>Lu(Wn.rpc.methodNotFound,t),internal:t=>Lu(Wn.rpc.internal,t),server:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum RPC Server errors must provide single object argument.\\\");let{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('\\\"code\\\" must be an integer such that: -32099 <= code <= -32005');return Lu(e,t)},invalidInput:t=>Lu(Wn.rpc.invalidInput,t),resourceNotFound:t=>Lu(Wn.rpc.resourceNotFound,t),resourceUnavailable:t=>Lu(Wn.rpc.resourceUnavailable,t),transactionRejected:t=>Lu(Wn.rpc.transactionRejected,t),methodNotSupported:t=>Lu(Wn.rpc.methodNotSupported,t),limitExceeded:t=>Lu(Wn.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>r3(Wn.provider.userRejectedRequest,t),unauthorized:t=>r3(Wn.provider.unauthorized,t),unsupportedMethod:t=>r3(Wn.provider.unsupportedMethod,t),disconnected:t=>r3(Wn.provider.disconnected,t),chainDisconnected:t=>r3(Wn.provider.chainDisconnected,t),unsupportedChain:t=>r3(Wn.provider.unsupportedChain,t),custom:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum Provider custom errors must provide single object argument.\\\");let{code:e,message:r,data:n}=t;if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string');return new MD(e,r,n)}}};MT=class extends Error{constructor(e,r,n){if(!Number.isInteger(e))throw new Error('\\\"code\\\" must be an integer.');if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string.');super(r),this.code=e,n!==void 0&&(this.data=n)}},MD=class extends MT{constructor(e,r,n){if(!m0t(e))throw new Error('\\\"code\\\" must be an integer such that: 1000 <= code <= 4999');super(e,r,n)}}});function MX(){return t=>t}function Xd(t){return Math.floor(t)}var n3,h4e,g0t,DX=x(()=>{u();n3=MX(),h4e=MX();g0t=MX()});function Wm(t){return DT(crypto.getRandomValues(new Uint8Array(t)))}function DT(t){return[...t].map(e=>e.toString(16).padStart(2,\\\"0\\\")).join(\\\"\\\")}function i3(t){return new Uint8Array(t.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function mv(t,e=!1){let r=t.toString(\\\"hex\\\");return n3(e?`0x${r}`:r)}function LD(t){return mv(jD(t),!0)}function ef(t){return h4e(t.toString(10))}function Gm(t){return n3(`0x${BigInt(t).toString(16)}`)}function y4e(t){return t.startsWith(\\\"0x\\\")||t.startsWith(\\\"0X\\\")}function LX(t){return y4e(t)?t.slice(2):t}function UX(t){return y4e(t)?`0x${t.slice(2)}`:`0x${t}`}function UD(t){if(typeof t!=\\\"string\\\")return!1;let e=LX(t).toLowerCase();return g4e.test(e)}function FD(t,e=!1){if(typeof t==\\\"string\\\"){let r=LX(t).toLowerCase();if(g4e.test(r))return n3(e?`0x${r}`:r)}throw pe.rpc.invalidParams(`\\\"${String(t)}\\\" is not a hexadecimal string`)}function FX(t,e=!1){let r=FD(t,!1);return r.length%2===1&&(r=n3(`0${r}`)),e?n3(`0x${r}`):r}function Km(t){if(typeof t==\\\"string\\\"){let e=LX(t).toLowerCase();if(UD(e)&&e.length===40)return UX(e)}throw pe.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)}function jD(t){if(globalThis.Buffer.isBuffer(t))return t;if(typeof t==\\\"string\\\"){if(UD(t)){let e=FX(t,!1);return globalThis.Buffer.from(e,\\\"hex\\\")}return globalThis.Buffer.from(t,\\\"utf8\\\")}throw pe.rpc.invalidParams(`Not binary data: ${String(t)}`)}function gv(t){if(typeof t==\\\"number\\\"&&Number.isInteger(t))return Xd(t);if(typeof t==\\\"string\\\"){if(m4e.test(t))return Xd(Number(t));if(UD(t))return Xd(Number(BigInt(FX(t,!0))))}throw pe.rpc.invalidParams(`Not an integer: ${String(t)}`)}function s3(t){if(t!==null&&(typeof t==\\\"bigint\\\"||y0t(t)))return BigInt(t.toString(10));if(typeof t==\\\"number\\\")return BigInt(gv(t));if(typeof t==\\\"string\\\"){if(m4e.test(t))return BigInt(t);if(UD(t))return BigInt(FX(t,!0))}throw pe.rpc.invalidParams(`Not an integer: ${String(t)}`)}function b4e(t){if(typeof t==\\\"string\\\")return JSON.parse(t);if(typeof t==\\\"object\\\")return t;throw pe.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}function y0t(t){if(t==null||typeof t.constructor!=\\\"function\\\")return!1;let{constructor:e}=t;return typeof e.config==\\\"function\\\"&&typeof e.EUCLID==\\\"number\\\"}function w4e(){let t=document.querySelector('link[sizes=\\\"192x192\\\"]')||document.querySelector('link[sizes=\\\"180x180\\\"]')||document.querySelector('link[rel=\\\"icon\\\"]')||document.querySelector('link[rel=\\\"shortcut icon\\\"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute(\\\"href\\\"):null;return!n||n.startsWith(\\\"javascript:\\\")||n.startsWith(\\\"vbscript:\\\")?`${e}//${r}/favicon.ico`:n.startsWith(\\\"http://\\\")||n.startsWith(\\\"https://\\\")||n.startsWith(\\\"data:\\\")?n:n.startsWith(\\\"//\\\")?e+n:`${e}//${r}${n}`}var m4e,g4e,tf=x(()=>{u();va();DX();m4e=/^[0-9]*$/,g4e=/^[a-f0-9]*$/});var b0t,w0t,HD,v4e,qD=x(()=>{u();b0t=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.\\n\\nPlease see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,w0t=()=>{let t;return{getCrossOriginOpenerPolicy:()=>t===void 0?\\\"undefined\\\":t,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\\\"u\\\"){t=\\\"non-browser-env\\\";return}try{let e=`${window.location.origin}${window.location.pathname}`,r=await fetch(e,{method:\\\"HEAD\\\"});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);let n=r.headers.get(\\\"Cross-Origin-Opener-Policy\\\");t=n??\\\"null\\\",t===\\\"same-origin\\\"&&console.error(b0t)}catch(e){console.error(\\\"Error checking Cross-Origin-Opener-Policy:\\\",e.message),t=\\\"error\\\"}}}},{checkCrossOriginOpenerPolicy:HD,getCrossOriginOpenerPolicy:v4e}=w0t()});async function Ly(t,e){let r=Object.assign(Object.assign({},t),{jsonrpc:\\\"2.0\\\",id:crypto.randomUUID()}),n=await window.fetch(e,{method:\\\"POST\\\",body:JSON.stringify(r),mode:\\\"cors\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\",\\\"X-Cbw-Sdk-Version\\\":Mu,\\\"X-Cbw-Sdk-Platform\\\":OD}}),{result:i,error:s}=await n.json();if(s)throw s;return i}function v0t(){return globalThis.coinbaseWalletExtension}function x0t(){var t,e;try{let r=globalThis;return(t=r.ethereum)!==null&&t!==void 0?t:(e=r.top)===null||e===void 0?void 0:e.ethereum}catch{return}}function zD({metadata:t,preference:e}){var r,n;let{appName:i,appLogoUrl:s,appChainIds:o}=t;if(e.options!==\\\"smartWalletOnly\\\"){let c=v0t();if(c)return(r=c.setAppInfo)===null||r===void 0||r.call(c,i,s,o,e),c}let a=x0t();if(a?.isCoinbaseBrowser)return(n=a.setAppInfo)===null||n===void 0||n.call(a,i,s,o,e),a}function x4e(t){if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw pe.rpc.invalidParams({message:\\\"Expected a single, non-array, object argument.\\\",data:t});let{method:e,params:r}=t;if(typeof e!=\\\"string\\\"||e.length===0)throw pe.rpc.invalidParams({message:\\\"'args.method' must be a non-empty string.\\\",data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\\\"object\\\"||r===null))throw pe.rpc.invalidParams({message:\\\"'args.params' must be an object or array if provided.\\\",data:t});switch(e){case\\\"eth_sign\\\":case\\\"eth_signTypedData_v2\\\":case\\\"eth_subscribe\\\":case\\\"eth_unsubscribe\\\":throw pe.provider.unsupportedMethod()}}var o3=x(()=>{u();hv();va()});function $D(t){if(t){if(![\\\"all\\\",\\\"smartWalletOnly\\\",\\\"eoaOnly\\\"].includes(t.options))throw new Error(`Invalid options: ${t.options}`);if(t.attribution&&t.attribution.auto!==void 0&&t.attribution.dataSuffix!==void 0)throw new Error(\\\"Attribution cannot contain both auto and dataSuffix properties\\\");if(t.telemetry&&typeof t.telemetry!=\\\"boolean\\\")throw new Error(\\\"Telemetry must be a boolean\\\")}}function jX(t){if(typeof t!=\\\"function\\\")throw new Error(\\\"toAccount is not a function\\\")}var HX=x(()=>{u()});var E4e,VD,qX,_4e,a3=x(()=>{u();E4e=\\\"https://keys.coinbase.com/connect\\\",VD=\\\"https://rpc.wallet.coinbase.com\\\",qX=\\\"https://www.walletlink.org\\\",_4e=\\\"https://go.cb-w.com/walletlink\\\"});function It(t,e,r){var n,i,s,o;window.ClientAnalytics&&((n=window.ClientAnalytics)===null||n===void 0||n.logEvent(t,Object.assign(Object.assign({},e),{sdkVersion:Mu,appName:(s=(i=Ee.config.get().metadata)===null||i===void 0?void 0:i.appName)!==null&&s!==void 0?s:\\\"\\\",appOrigin:window.location.origin,appPreferredSigner:(o=Ee.config.get().preference)===null||o===void 0?void 0:o.options}),r))}var yt,bt,wt,Uy=x(()=>{u();Du();hv();(function(t){t.unknown=\\\"unknown\\\",t.banner=\\\"banner\\\",t.button=\\\"button\\\",t.card=\\\"card\\\",t.chart=\\\"chart\\\",t.content_script=\\\"content_script\\\",t.dropdown=\\\"dropdown\\\",t.link=\\\"link\\\",t.page=\\\"page\\\",t.modal=\\\"modal\\\",t.table=\\\"table\\\",t.search_bar=\\\"search_bar\\\",t.service_worker=\\\"service_worker\\\",t.text=\\\"text\\\",t.text_input=\\\"text_input\\\",t.tray=\\\"tray\\\",t.checkbox=\\\"checkbox\\\",t.icon=\\\"icon\\\"})(yt||(yt={}));(function(t){t.unknown=\\\"unknown\\\",t.blur=\\\"blur\\\",t.click=\\\"click\\\",t.change=\\\"change\\\",t.dismiss=\\\"dismiss\\\",t.focus=\\\"focus\\\",t.hover=\\\"hover\\\",t.select=\\\"select\\\",t.measurement=\\\"measurement\\\",t.move=\\\"move\\\",t.process=\\\"process\\\",t.render=\\\"render\\\",t.scroll=\\\"scroll\\\",t.view=\\\"view\\\",t.search=\\\"search\\\",t.keyPress=\\\"keyPress\\\",t.error=\\\"error\\\"})(bt||(bt={}));(function(t){t.low=\\\"low\\\",t.high=\\\"high\\\"})(wt||(wt={}))});var C4e,S4e,A4e,T4e=x(()=>{u();Uy();C4e=()=>{It(\\\"communicator.popup_setup.started\\\",{action:bt.unknown,componentType:yt.unknown},wt.high)},S4e=()=>{It(\\\"communicator.popup_setup.completed\\\",{action:bt.unknown,componentType:yt.unknown},wt.high)},A4e=()=>{It(\\\"communicator.popup_unload.received\\\",{action:bt.unknown,componentType:yt.unknown},wt.high)}});var c3,Zm,WD=x(()=>{u();Uy();c3=({snackbarContext:t})=>{It(`snackbar.${t}.shown`,{action:bt.render,componentType:yt.modal,snackbarContext:t},wt.high)},Zm=({snackbarContext:t,snackbarAction:e})=>{It(`snackbar.${t}.action_clicked`,{action:bt.click,componentType:yt.button,snackbarContext:t,snackbarAction:e},wt.high)}});var I4e,R4e=x(()=>{u();I4e='@namespace svg \\\"http://www.w3.org/2000/svg\\\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",\\\"Helvetica Neue\\\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\\\"\\\\\\\\201C\\\" \\\"\\\\\\\\201D\\\" \\\"\\\\\\\\2018\\\" \\\"\\\\\\\\2019\\\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",\\\"Helvetica Neue\\\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});function GD(){let t=document.createElement(\\\"style\\\");t.type=\\\"text/css\\\",t.appendChild(document.createTextNode(I4e)),document.documentElement.appendChild(t)}var zX=x(()=>{u();R4e()});var l3={};ue(l3,{clsx:()=>Qm,default:()=>E0t});function P4e(t){var e,r,n=\\\"\\\";if(typeof t==\\\"string\\\"||typeof t==\\\"number\\\")n+=t;else if(typeof t==\\\"object\\\")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=P4e(t[e]))&&(n&&(n+=\\\" \\\"),n+=r);else for(e in t)t[e]&&(n&&(n+=\\\" \\\"),n+=e);return n}function Qm(){for(var t,e,r=0,n=\\\"\\\";r<arguments.length;)(t=arguments[r++])&&(e=P4e(t))&&(n&&(n+=\\\" \\\"),n+=e);return n}var E0t,Fy=x(()=>{u();E0t=Qm});function jy(t,e){for(var r in e)t[r]=e[r];return t}function U4e(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function zr(t,e,r){var n,i,s,o={};for(s in e)s==\\\"key\\\"?n=e[s]:s==\\\"ref\\\"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?YD.call(arguments,2):r),typeof t==\\\"function\\\"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return ZD(t,o,n,i,null)}function ZD(t,e,r,n,i){var s={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++M4e,__i:-1,__u:0};return i==null&&Rn.vnode!=null&&Rn.vnode(s),s}function XD(t){return t.children}function QD(t,e){this.props=t,this.context=e}function u3(t,e){if(e==null)return t.__?u3(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type==\\\"function\\\"?u3(t):null}function F4e(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return F4e(t)}}function N4e(t){(!t.__d&&(t.__d=!0)&&yv.push(t)&&!JD.__r++||O4e!==Rn.debounceRendering)&&((O4e=Rn.debounceRendering)||D4e)(JD)}function JD(){var t,e,r,n,i,s,o,a;for(yv.sort($X);t=yv.shift();)t.__d&&(e=yv.length,n=void 0,s=(i=(r=t).__v).__e,o=[],a=[],r.__P&&((n=jy({},i)).__v=i.__v+1,Rn.vnode&&Rn.vnode(n),ZX(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[s]:null,o,s??u3(i),!!(32&i.__u),a),n.__v=i.__v,n.__.__k[n.__i]=n,q4e(o,n,a),n.__e!=s&&F4e(n)),yv.length>e&&yv.sort($X));JD.__r=0}function j4e(t,e,r,n,i,s,o,a,c,l,d){var f,p,h,m,g,w=n&&n.__k||L4e,v=e.length;for(r.__d=c,A0t(r,e,w),c=r.__d,f=0;f<v;f++)(h=r.__k[f])!=null&&(p=h.__i===-1?LT:w[h.__i]||LT,h.__i=f,ZX(t,h,p,i,s,o,a,c,l,d),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&QX(p.ref,null,h),d.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),65536&h.__u||p.__k===h.__k?c=H4e(h,c,t):typeof h.type==\\\"function\\\"&&h.__d!==void 0?c=h.__d:m&&(c=m.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=c,r.__e=g}function A0t(t,e,r){var n,i,s,o,a,c=e.length,l=r.length,d=l,f=0;for(t.__k=[],n=0;n<c;n++)(i=e[n])!=null&&typeof i!=\\\"boolean\\\"&&typeof i!=\\\"function\\\"?(o=n+f,(i=t.__k[n]=typeof i==\\\"string\\\"||typeof i==\\\"number\\\"||typeof i==\\\"bigint\\\"||i.constructor==String?ZD(null,i,null,null,null):KX(i)?ZD(XD,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?ZD(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=t,i.__b=t.__b+1,s=null,(a=i.__i=T0t(i,r,o,d))!==-1&&(d--,(s=r[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&f--,typeof i.type!=\\\"function\\\"&&(i.__u|=65536)):a!==o&&(a==o-1?f--:a==o+1?f++:(a>o?f--:f++,i.__u|=65536))):i=t.__k[n]=null;if(d)for(n=0;n<l;n++)(s=r[n])!=null&&(131072&s.__u)==0&&(s.__e==t.__d&&(t.__d=u3(s)),z4e(s,s))}function H4e(t,e,r){var n,i;if(typeof t.type==\\\"function\\\"){for(n=t.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=t,e=H4e(n[i],e,r));return e}t.__e!=e&&(e&&t.type&&!r.contains(e)&&(e=u3(t)),r.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function T0t(t,e,r,n){var i=t.key,s=t.type,o=r-1,a=r+1,c=e[r];if(c===null||c&&i==c.key&&s===c.type&&(131072&c.__u)==0)return r;if(n>(c!=null&&(131072&c.__u)==0?1:0))for(;o>=0||a<e.length;){if(o>=0){if((c=e[o])&&(131072&c.__u)==0&&i==c.key&&s===c.type)return o;o--}if(a<e.length){if((c=e[a])&&(131072&c.__u)==0&&i==c.key&&s===c.type)return a;a++}}return-1}function k4e(t,e,r){e[0]===\\\"-\\\"?t.setProperty(e,r??\\\"\\\"):t[e]=r==null?\\\"\\\":typeof r!=\\\"number\\\"||S0t.test(e)?r:r+\\\"px\\\"}function KD(t,e,r,n,i){var s;e:if(e===\\\"style\\\")if(typeof r==\\\"string\\\")t.style.cssText=r;else{if(typeof n==\\\"string\\\"&&(t.style.cssText=n=\\\"\\\"),n)for(e in n)r&&e in r||k4e(t.style,e,\\\"\\\");if(r)for(e in r)n&&r[e]===n[e]||k4e(t.style,e,r[e])}else if(e[0]===\\\"o\\\"&&e[1]===\\\"n\\\")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,\\\"$1\\\")),e=e.toLowerCase()in t||e===\\\"onFocusOut\\\"||e===\\\"onFocusIn\\\"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r.u=n.u:(r.u=GX,t.addEventListener(e,s?WX:VX,s)):t.removeEventListener(e,s?WX:VX,s);else{if(i==\\\"http://www.w3.org/2000/svg\\\")e=e.replace(/xlink(H|:h)/,\\\"h\\\").replace(/sName$/,\\\"s\\\");else if(e!=\\\"width\\\"&&e!=\\\"height\\\"&&e!=\\\"href\\\"&&e!=\\\"list\\\"&&e!=\\\"form\\\"&&e!=\\\"tabIndex\\\"&&e!=\\\"download\\\"&&e!=\\\"rowSpan\\\"&&e!=\\\"colSpan\\\"&&e!=\\\"role\\\"&&e!=\\\"popover\\\"&&e in t)try{t[e]=r??\\\"\\\";break e}catch{}typeof r==\\\"function\\\"||(r==null||r===!1&&e[4]!==\\\"-\\\"?t.removeAttribute(e):t.setAttribute(e,e==\\\"popover\\\"&&r==1?\\\"\\\":r))}}function B4e(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=GX++;else if(e.t<r.u)return;return r(Rn.event?Rn.event(e):e)}}}function ZX(t,e,r,n,i,s,o,a,c,l){var d,f,p,h,m,g,w,v,b,_,S,T,N,O,L,B,H=e.type;if(e.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),s=[a=e.__e=r.__e]),(d=Rn.__b)&&d(e);e:if(typeof H==\\\"function\\\")try{if(v=e.props,b=\\\"prototype\\\"in H&&H.prototype.render,_=(d=H.contextType)&&n[d.__c],S=d?_?_.props.value:d.__:n,r.__c?w=(f=e.__c=r.__c).__=f.__E:(b?e.__c=f=new H(v,S):(e.__c=f=new QD(v,S),f.constructor=H,f.render=R0t),_&&_.sub(f),f.props=v,f.state||(f.state={}),f.context=S,f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&H.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=jy({},f.__s)),jy(f.__s,H.getDerivedStateFromProps(v,f.__s))),h=f.props,m=f.state,f.__v=e,p)b&&H.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&H.getDerivedStateFromProps==null&&v!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,S),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(v,f.__s,S)===!1||e.__v===r.__v)){for(e.__v!==r.__v&&(f.props=v,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(M){M&&(M.__=e)}),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,S),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,m,g)})}if(f.context=S,f.props=v,f.__P=t,f.__e=!1,N=Rn.__r,O=0,b){for(f.state=f.__s,f.__d=!1,N&&N(e),d=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do f.__d=!1,N&&N(e),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++O<25);f.state=f.__s,f.getChildContext!=null&&(n=jy(jy({},n),f.getChildContext())),b&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(h,m)),j4e(t,KX(B=d!=null&&d.type===XD&&d.key==null?d.props.children:d)?B:[B],e,r,n,i,s,o,a,c,l),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),w&&(f.__E=f.__=null)}catch(M){if(e.__v=null,c||s!=null){for(e.__u|=c?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else e.__e=r.__e,e.__k=r.__k;Rn.__e(M,e,r)}else s==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=I0t(r.__e,e,r,n,i,s,o,c,l);(d=Rn.diffed)&&d(e)}function q4e(t,e,r){e.__d=void 0;for(var n=0;n<r.length;n++)QX(r[n],r[++n],r[++n]);Rn.__c&&Rn.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){Rn.__e(s,i.__v)}})}function I0t(t,e,r,n,i,s,o,a,c){var l,d,f,p,h,m,g,w=r.props,v=e.props,b=e.type;if(b===\\\"svg\\\"?i=\\\"http://www.w3.org/2000/svg\\\":b===\\\"math\\\"?i=\\\"http://www.w3.org/1998/Math/MathML\\\":i||(i=\\\"http://www.w3.org/1999/xhtml\\\"),s!=null){for(l=0;l<s.length;l++)if((h=s[l])&&\\\"setAttribute\\\"in h==!!b&&(b?h.localName===b:h.nodeType===3)){t=h,s[l]=null;break}}if(t==null){if(b===null)return document.createTextNode(v);t=document.createElementNS(i,b,v.is&&v),a&&(Rn.__m&&Rn.__m(e,s),a=!1),s=null}if(b===null)w===v||a&&t.data===v||(t.data=v);else{if(s=s&&YD.call(t.childNodes),w=r.props||LT,!a&&s!=null)for(w={},l=0;l<t.attributes.length;l++)w[(h=t.attributes[l]).name]=h.value;for(l in w)if(h=w[l],l!=\\\"children\\\"){if(l==\\\"dangerouslySetInnerHTML\\\")f=h;else if(!(l in v)){if(l==\\\"value\\\"&&\\\"defaultValue\\\"in v||l==\\\"checked\\\"&&\\\"defaultChecked\\\"in v)continue;KD(t,l,null,h,i)}}for(l in v)h=v[l],l==\\\"children\\\"?p=h:l==\\\"dangerouslySetInnerHTML\\\"?d=h:l==\\\"value\\\"?m=h:l==\\\"checked\\\"?g=h:a&&typeof h!=\\\"function\\\"||w[l]===h||KD(t,l,h,w[l],i);if(d)a||f&&(d.__html===f.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(f&&(t.innerHTML=\\\"\\\"),j4e(t,KX(p)?p:[p],e,r,n,b===\\\"foreignObject\\\"?\\\"http://www.w3.org/1999/xhtml\\\":i,s,o,s?s[0]:r.__k&&u3(r,0),a,c),s!=null)for(l=s.length;l--;)U4e(s[l]);a||(l=\\\"value\\\",b===\\\"progress\\\"&&m==null?t.removeAttribute(\\\"value\\\"):m!==void 0&&(m!==t[l]||b===\\\"progress\\\"&&!m||b===\\\"option\\\"&&m!==w[l])&&KD(t,l,m,w[l],i),l=\\\"checked\\\",g!==void 0&&g!==t[l]&&KD(t,l,g,w[l],i))}return t}function QX(t,e,r){try{if(typeof t==\\\"function\\\"){var n=typeof t.__u==\\\"function\\\";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Rn.__e(i,r)}}function z4e(t,e,r){var n,i;if(Rn.unmount&&Rn.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||QX(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){Rn.__e(s,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&z4e(n[i],e,r||typeof t.type!=\\\"function\\\");r||U4e(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function R0t(t,e,r){return this.constructor(t,r)}function UT(t,e,r){var n,i,s,o;Rn.__&&Rn.__(t,e),i=(n=typeof r==\\\"function\\\")?null:r&&r.__k||e.__k,s=[],o=[],ZX(e,t=(!n&&r||e).__k=zr(XD,null,[t]),i||LT,LT,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?YD.call(e.childNodes):null,s,!n&&r?r:i?i.__e:e.firstChild,n,o),q4e(s,t,o)}var YD,Rn,M4e,_0t,yv,O4e,D4e,$X,GX,VX,WX,C0t,LT,L4e,S0t,KX,d3=x(()=>{u();LT={},L4e=[],S0t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,KX=Array.isArray;YD=L4e.slice,Rn={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},M4e=0,_0t=function(t){return t!=null&&t.constructor==null},QD.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jy({},this.state),typeof t==\\\"function\\\"&&(t=t(jy({},r),this.props)),t&&jy(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),N4e(this))},QD.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N4e(this))},QD.prototype.render=XD,yv=[],D4e=typeof Promise==\\\"function\\\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$X=function(t,e){return t.__v.__b-e.__v.__b},JD.__r=0,GX=0,VX=B4e(!1),WX=B4e(!0),C0t=0});function X4e(t,e){Cs.__h&&Cs.__h(ds,t,YX||e),YX=0;var r=ds.__H||(ds.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function eee(t){return YX=1,P0t(t8e,t)}function P0t(t,e,r){var n=X4e(tL++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):t8e(void 0,e),function(a){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,a);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ds,!ds.u)){var i=function(a,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!s||s.call(this,a,c,l);var f=!1;return d.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),!(!f&&n.__c.props===a)&&(!s||s.call(this,a,c,l))};ds.u=!0;var s=ds.shouldComponentUpdate,o=ds.componentWillUpdate;ds.componentWillUpdate=function(a,c,l){if(this.__e){var d=s;s=void 0,i(a,c,l),s=d}o&&o.call(this,a,c,l)},ds.shouldComponentUpdate=i}return n.__N||n.__}function e8e(t,e){var r=X4e(tL++,3);!Cs.__s&&k0t(r.__H,e)&&(r.__=t,r.i=e,ds.__H.__h.push(r))}function O0t(){for(var t;t=Y4e.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(eL),t.__H.__h.forEach(XX),t.__H.__h=[]}catch(e){t.__H.__h=[],Cs.__e(e,t.__v)}}function N0t(t){var e,r=function(){clearTimeout(n),J4e&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);J4e&&(e=requestAnimationFrame(r))}function eL(t){var e=ds,r=t.__c;typeof r==\\\"function\\\"&&(t.__c=void 0,r()),ds=e}function XX(t){var e=ds;t.__c=t.__(),ds=e}function k0t(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function t8e(t,e){return typeof e==\\\"function\\\"?e(t):e}var tL,ds,JX,$4e,YX,Y4e,Cs,V4e,W4e,G4e,K4e,Z4e,Q4e,J4e,r8e=x(()=>{u();d3();YX=0,Y4e=[],Cs=Rn,V4e=Cs.__b,W4e=Cs.__r,G4e=Cs.diffed,K4e=Cs.__c,Z4e=Cs.unmount,Q4e=Cs.__;Cs.__b=function(t){ds=null,V4e&&V4e(t)},Cs.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Q4e&&Q4e(t,e)},Cs.__r=function(t){W4e&&W4e(t),tL=0;var e=(ds=t.__c).__H;e&&(JX===ds?(e.__h=[],ds.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(e.__h.forEach(eL),e.__h.forEach(XX),e.__h=[],tL=0)),JX=ds},Cs.diffed=function(t){G4e&&G4e(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Y4e.push(e)!==1&&$4e===Cs.requestAnimationFrame||(($4e=Cs.requestAnimationFrame)||N0t)(O0t)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),JX=ds=null},Cs.__c=function(t,e){e.some(function(r){try{r.__h.forEach(eL),r.__h=r.__h.filter(function(n){return!n.__||XX(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Cs.__e(n,r.__v)}}),K4e&&K4e(t,e)},Cs.unmount=function(t){Z4e&&Z4e(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{eL(n)}catch(i){e=i}}),r.__H=void 0,e&&Cs.__e(e,r.__v))};J4e=typeof requestAnimationFrame==\\\"function\\\"});function B0t(){try{return window.frameElement!==null}catch{return!1}}function n8e(){try{return B0t()&&window.top?window.top.location:window.location}catch{return window.location}}function i8e(){var t;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((t=window?.navigator)===null||t===void 0?void 0:t.userAgent)}function rL(){var t,e;return(e=(t=window?.matchMedia)===null||t===void 0?void 0:t.call(window,\\\"(prefers-color-scheme: dark)\\\").matches)!==null&&e!==void 0?e:!1}var FT=x(()=>{u()});var s8e,o8e=x(()=>{u();s8e=\\\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\\\"});var M0t,D0t,f3,tee,L0t,nL=x(()=>{u();Fy();d3();d3();r8e();FT();o8e();M0t=\\\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\\\",D0t=\\\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\\\",f3=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=rL()}attach(e){this.root=document.createElement(\\\"div\\\"),this.root.className=\\\"-cbwsdk-snackbar-root\\\",e.appendChild(this.root),this.render()}presentItem(e){let r=this.nextItemKey++;return this.items.set(r,e),this.render(),()=>{this.items.delete(r),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&UT(zr(\\\"div\\\",null,zr(tee,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,r])=>zr(L0t,Object.assign({},r,{key:e}))))),this.root)}},tee=t=>zr(\\\"div\\\",{class:Qm(\\\"-cbwsdk-snackbar-container\\\")},zr(\\\"style\\\",null,s8e),zr(\\\"div\\\",{class:\\\"-cbwsdk-snackbar\\\"},t.children)),L0t=({autoExpand:t,message:e,menuItems:r})=>{let[n,i]=eee(!0),[s,o]=eee(t??!1);e8e(()=>{let c=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{c.forEach(window.clearTimeout)}});let a=()=>{o(!s)};return zr(\\\"div\\\",{class:Qm(\\\"-cbwsdk-snackbar-instance\\\",n&&\\\"-cbwsdk-snackbar-instance-hidden\\\",s&&\\\"-cbwsdk-snackbar-instance-expanded\\\")},zr(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-header\\\",onClick:a},zr(\\\"img\\\",{src:M0t,class:\\\"-cbwsdk-snackbar-instance-header-cblogo\\\"}),\\\" \\\",zr(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-header-message\\\"},e),zr(\\\"div\\\",{class:\\\"-gear-container\\\"},!s&&zr(\\\"svg\\\",{width:\\\"24\\\",height:\\\"24\\\",viewBox:\\\"0 0 24 24\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},zr(\\\"circle\\\",{cx:\\\"12\\\",cy:\\\"12\\\",r:\\\"12\\\",fill:\\\"#F5F7F8\\\"})),zr(\\\"img\\\",{src:D0t,class:\\\"-gear-icon\\\",title:\\\"Expand\\\"}))),r&&r.length>0&&zr(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-menu\\\"},r.map((c,l)=>zr(\\\"div\\\",{class:Qm(\\\"-cbwsdk-snackbar-instance-menu-item\\\",c.isRed&&\\\"-cbwsdk-snackbar-instance-menu-item-is-red\\\"),onClick:c.onClick,key:l},zr(\\\"svg\\\",{width:c.svgWidth,height:c.svgHeight,viewBox:\\\"0 0 10 11\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},zr(\\\"path\\\",{\\\"fill-rule\\\":c.defaultFillRule,\\\"clip-rule\\\":c.defaultClipRule,d:c.path,fill:\\\"#AAAAAA\\\"})),zr(\\\"span\\\",{class:Qm(\\\"-cbwsdk-snackbar-instance-menu-item-info\\\",c.isRed&&\\\"-cbwsdk-snackbar-instance-menu-item-info-is-red\\\")},c.info)))))}});var ree,iL,nee=x(()=>{u();zX();nL();ree=\\\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\\\",iL=class{constructor(){this.attached=!1,this.snackbar=new f3}attach(){if(this.attached)throw new Error(\\\"Coinbase Wallet SDK UI is already attached\\\");let e=document.documentElement,r=document.createElement(\\\"div\\\");r.className=\\\"-cbwsdk-css-reset\\\",e.appendChild(r),this.snackbar.attach(r),this.attached=!0,GD()}showConnecting(e){let r;return e.isUnlinkedErrorState?r={autoExpand:!0,message:\\\"Connection lost\\\",menuItems:[{isRed:!1,info:\\\"Reset connection\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:e.onResetConnection}]}:r={message:\\\"Confirm on phone\\\",menuItems:[{isRed:!0,info:\\\"Cancel transaction\\\",svgWidth:\\\"11\\\",svgHeight:\\\"11\\\",path:\\\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\\\",defaultFillRule:\\\"inherit\\\",defaultClipRule:\\\"inherit\\\",onClick:e.onCancel},{isRed:!1,info:\\\"Reset connection\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:ree,defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:e.onResetConnection}]},this.snackbar.presentItem(r)}}});function l8e(t){let e=(window.innerWidth-a8e)/2+window.screenX,r=(window.innerHeight-c8e)/2+window.screenY;j0t(t);function n(){let s=`wallet_${crypto.randomUUID()}`,o=window.open(t,s,`width=${a8e}, height=${c8e}, left=${e}, top=${r}`);return o?.focus(),o||null}let i=n();if(!i){let s=jT();return new Promise((o,a)=>{c3({snackbarContext:\\\"popup_blocked\\\"}),s.presentItem({autoExpand:!0,message:F0t,menuItems:[Object.assign(Object.assign({},U0t),{onClick:()=>{Zm({snackbarContext:\\\"popup_blocked\\\",snackbarAction:\\\"confirm\\\"}),i=n(),i?o(i):a(pe.rpc.internal(\\\"Popup window was blocked\\\")),s.clear()}})]})})}return Promise.resolve(i)}function u8e(t){t&&!t.closed&&t.close()}function j0t(t){let e={sdkName:OD,sdkVersion:Mu,origin:window.location.origin,coop:v4e()};for(let[r,n]of Object.entries(e))t.searchParams.has(r)||t.searchParams.append(r,n.toString())}function jT(){if(!sL){let t=document.createElement(\\\"div\\\");t.className=\\\"-cbwsdk-css-reset\\\",document.body.appendChild(t),sL=new f3,sL.attach(t)}return sL}var a8e,c8e,U0t,F0t,sL,oL=x(()=>{u();va();WD();nee();nL();hv();qD();a8e=420,c8e=700,U0t={isRed:!1,info:\\\"Retry\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:ree,defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\"},F0t=\\\"Popup was blocked. Try again.\\\",sL=null});var aL,d8e=x(()=>{u();a3();va();T4e();oL();hv();aL=class{constructor({url:e=E4e,metadata:r,preference:n}){this.popup=null,this.listeners=new Map,this.postMessage=async i=>{(await this.waitForPopupLoaded()).postMessage(i,this.url.origin)},this.postRequestAndWaitForResponse=async i=>{let s=this.onMessage(({requestId:o})=>o===i.id);return this.postMessage(i),await s},this.onMessage=async i=>new Promise((s,o)=>{let a=c=>{if(c.origin!==this.url.origin)return;let l=c.data;i(l)&&(s(l),window.removeEventListener(\\\"message\\\",a),this.listeners.delete(a))};window.addEventListener(\\\"message\\\",a),this.listeners.set(a,{reject:o})}),this.disconnect=()=>{u8e(this.popup),this.popup=null,this.listeners.forEach(({reject:i},s)=>{i(pe.provider.userRejectedRequest(\\\"Request rejected\\\")),window.removeEventListener(\\\"message\\\",s)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(C4e(),this.popup=await l8e(this.url),this.onMessage(({event:i})=>i===\\\"PopupUnload\\\").then(()=>{this.disconnect(),A4e()}).catch(()=>{}),this.onMessage(({event:i})=>i===\\\"PopupLoaded\\\").then(i=>{this.postMessage({requestId:i.id,data:{version:Mu,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw pe.rpc.internal();return S4e(),this.popup})),this.url=new URL(e),this.metadata=r,this.preference=n}}});function Ss(t){return t.errorMessage!==void 0}var cL=x(()=>{u()});function f8e(t){let e=u4e(H0t(t),{shouldIncludeStack:!0}),r=new URL(\\\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\\\");return r.searchParams.set(\\\"version\\\",Mu),r.searchParams.set(\\\"code\\\",e.code.toString()),r.searchParams.set(\\\"message\\\",e.message),Object.assign(Object.assign({},e),{docUrl:r.href})}function H0t(t){var e;if(typeof t==\\\"string\\\")return{message:t,code:Wn.rpc.internal};if(Ss(t)){let r=t.errorMessage,n=(e=t.errorCode)!==null&&e!==void 0?e:r.match(/(denied|rejected)/i)?Wn.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:r,code:n,data:{method:t.method}})}return t}var p8e=x(()=>{u();hv();cL();BT();kX()});var lL,h8e=x(()=>{u();aM();lL=class extends _6.default{}});var Sp,HT=x(()=>{u();Sp=class t{constructor(e,r){this.scope=e,this.module=r}storeObject(e,r){this.setItem(e,JSON.stringify(r))}loadObject(e){let r=this.getItem(e);return r?JSON.parse(r):void 0}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(\\\"\\\"),r=[];for(let n=0;n<localStorage.length;n++){let i=localStorage.key(n);typeof i==\\\"string\\\"&&i.startsWith(e)&&r.push(i)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:\\\"\\\"}:${e}`}static clearAll(){new t(\\\"CBWSDK\\\").clear(),new t(\\\"walletlink\\\").clear()}}});var m8e,g8e,y8e,b8e,w8e,v8e=x(()=>{u();Uy();m8e=({signerType:t})=>{It(\\\"provider.signer.loaded_from_storage\\\",{action:bt.measurement,componentType:yt.unknown,signerType:t},wt.low)},g8e=({method:t,correlationId:e})=>{It(\\\"provider.request.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e},wt.high)},y8e=({method:t,correlationId:e,signerType:r,errorMessage:n})=>{It(\\\"provider.request.error\\\",{action:bt.error,componentType:yt.unknown,method:t,signerType:r,correlationId:e,errorMessage:n},wt.high)},b8e=({method:t,signerType:e,correlationId:r})=>{It(\\\"provider.request.responded\\\",{action:bt.unknown,componentType:yt.unknown,method:t,signerType:e,correlationId:r},wt.high)},w8e=()=>{It(\\\"provider.enable_function.called\\\",{action:bt.measurement,componentType:yt.unknown},wt.high)}});var x8e,E8e,_8e=x(()=>{u();Uy();x8e=()=>{It(\\\"signer.selection.requested\\\",{action:bt.unknown,componentType:yt.unknown},wt.high)},E8e=t=>{It(\\\"signer.selection.responded\\\",{action:bt.unknown,componentType:yt.unknown,signerType:t},wt.high)}});var uL,Uc,dL=x(()=>{u();PD();uL=t3(()=>({correlationIds:new Map})),Uc={get:t=>uL.getState().correlationIds.get(t),set:(t,e)=>{uL.setState(r=>{let n=new Map(r.correlationIds);return n.set(t,e),{correlationIds:n}})},delete:t=>{uL.setState(e=>{let r=new Map(e.correlationIds);return r.delete(t),{correlationIds:r}})},clear:()=>{uL.setState({correlationIds:new Map})}}});var C8e,S8e,A8e,T8e,I8e,R8e,P8e=x(()=>{u();Du();Uy();C8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_signer.handshake.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},S8e=({method:t,correlationId:e,errorMessage:r})=>{var n;It(\\\"scw_signer.handshake.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r,enableAutoSubAccounts:(n=Ee.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},wt.high)},A8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_signer.handshake.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},T8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_signer.request.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},I8e=({method:t,correlationId:e,errorMessage:r})=>{var n;It(\\\"scw_signer.request.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r,enableAutoSubAccounts:(n=Ee.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},wt.high)},R8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_signer.request.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)}});var O8e,N8e,k8e,B8e,M8e,D8e,L8e,U8e,F8e,j8e=x(()=>{u();Du();Uy();O8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.request.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},N8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.request.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},k8e=({method:t,correlationId:e,errorMessage:r})=>{var n;It(\\\"scw_sub_account.request.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r,enableAutoSubAccounts:(n=Ee.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},wt.high)},B8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.add_owner.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},M8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.add_owner.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},D8e=({method:t,correlationId:e,errorMessage:r})=>{var n;It(\\\"scw_sub_account.add_owner.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r,enableAutoSubAccounts:(n=Ee.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},wt.high)},L8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.insufficient_balance.error_handling.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},U8e=({method:t,correlationId:e})=>{var r;It(\\\"scw_sub_account.insufficient_balance.error_handling.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e,enableAutoSubAccounts:(r=Ee.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},wt.high)},F8e=({method:t,correlationId:e,errorMessage:r})=>{var n;It(\\\"scw_sub_account.insufficient_balance.error_handling.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r,enableAutoSubAccounts:(n=Ee.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},wt.high)}});var Jm,iee=x(()=>{u();Jm=t=>\\\"message\\\"in t&&typeof t.message==\\\"string\\\"?t.message:\\\"\\\"});var see,H8e=x(()=>{u();see=[{inputs:[{name:\\\"preOpGas\\\",type:\\\"uint256\\\"},{name:\\\"paid\\\",type:\\\"uint256\\\"},{name:\\\"validAfter\\\",type:\\\"uint48\\\"},{name:\\\"validUntil\\\",type:\\\"uint48\\\"},{name:\\\"targetSuccess\\\",type:\\\"bool\\\"},{name:\\\"targetResult\\\",type:\\\"bytes\\\"}],name:\\\"ExecutionResult\\\",type:\\\"error\\\"},{inputs:[{name:\\\"opIndex\\\",type:\\\"uint256\\\"},{name:\\\"reason\\\",type:\\\"string\\\"}],name:\\\"FailedOp\\\",type:\\\"error\\\"},{inputs:[{name:\\\"sender\\\",type:\\\"address\\\"}],name:\\\"SenderAddressResult\\\",type:\\\"error\\\"},{inputs:[{name:\\\"aggregator\\\",type:\\\"address\\\"}],name:\\\"SignatureValidationFailed\\\",type:\\\"error\\\"},{inputs:[{components:[{name:\\\"preOpGas\\\",type:\\\"uint256\\\"},{name:\\\"prefund\\\",type:\\\"uint256\\\"},{name:\\\"sigFailed\\\",type:\\\"bool\\\"},{name:\\\"validAfter\\\",type:\\\"uint48\\\"},{name:\\\"validUntil\\\",type:\\\"uint48\\\"},{name:\\\"paymasterContext\\\",type:\\\"bytes\\\"}],name:\\\"returnInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"senderInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"factoryInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"paymasterInfo\\\",type:\\\"tuple\\\"}],name:\\\"ValidationResult\\\",type:\\\"error\\\"},{inputs:[{components:[{name:\\\"preOpGas\\\",type:\\\"uint256\\\"},{name:\\\"prefund\\\",type:\\\"uint256\\\"},{name:\\\"sigFailed\\\",type:\\\"bool\\\"},{name:\\\"validAfter\\\",type:\\\"uint48\\\"},{name:\\\"validUntil\\\",type:\\\"uint48\\\"},{name:\\\"paymasterContext\\\",type:\\\"bytes\\\"}],name:\\\"returnInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"senderInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"factoryInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"paymasterInfo\\\",type:\\\"tuple\\\"},{components:[{name:\\\"aggregator\\\",type:\\\"address\\\"},{components:[{name:\\\"stake\\\",type:\\\"uint256\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"stakeInfo\\\",type:\\\"tuple\\\"}],name:\\\"aggregatorInfo\\\",type:\\\"tuple\\\"}],name:\\\"ValidationResultWithAggregation\\\",type:\\\"error\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"userOpHash\\\",type:\\\"bytes32\\\"},{indexed:!0,name:\\\"sender\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"factory\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"paymaster\\\",type:\\\"address\\\"}],name:\\\"AccountDeployed\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[],name:\\\"BeforeExecution\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"account\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"totalDeposit\\\",type:\\\"uint256\\\"}],name:\\\"Deposited\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"aggregator\\\",type:\\\"address\\\"}],name:\\\"SignatureAggregatorChanged\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"account\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"totalStaked\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"unstakeDelaySec\\\",type:\\\"uint256\\\"}],name:\\\"StakeLocked\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"account\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"withdrawTime\\\",type:\\\"uint256\\\"}],name:\\\"StakeUnlocked\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"account\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"withdrawAddress\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"amount\\\",type:\\\"uint256\\\"}],name:\\\"StakeWithdrawn\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"userOpHash\\\",type:\\\"bytes32\\\"},{indexed:!0,name:\\\"sender\\\",type:\\\"address\\\"},{indexed:!0,name:\\\"paymaster\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"nonce\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"success\\\",type:\\\"bool\\\"},{indexed:!1,name:\\\"actualGasCost\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"actualGasUsed\\\",type:\\\"uint256\\\"}],name:\\\"UserOperationEvent\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"userOpHash\\\",type:\\\"bytes32\\\"},{indexed:!0,name:\\\"sender\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"nonce\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"revertReason\\\",type:\\\"bytes\\\"}],name:\\\"UserOperationRevertReason\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"account\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"withdrawAddress\\\",type:\\\"address\\\"},{indexed:!1,name:\\\"amount\\\",type:\\\"uint256\\\"}],name:\\\"Withdrawn\\\",type:\\\"event\\\"},{inputs:[],name:\\\"SIG_VALIDATION_FAILED\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"}],name:\\\"_validateSenderAndPaymaster\\\",outputs:[],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"unstakeDelaySec\\\",type:\\\"uint32\\\"}],name:\\\"addStake\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],name:\\\"balanceOf\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],name:\\\"depositTo\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"\\\",type:\\\"address\\\"}],name:\\\"deposits\\\",outputs:[{name:\\\"deposit\\\",type:\\\"uint112\\\"},{name:\\\"staked\\\",type:\\\"bool\\\"},{name:\\\"stake\\\",type:\\\"uint112\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint32\\\"},{name:\\\"withdrawTime\\\",type:\\\"uint48\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],name:\\\"getDepositInfo\\\",outputs:[{components:[{name:\\\"deposit\\\",type:\\\"uint112\\\"},{name:\\\"staked\\\",type:\\\"bool\\\"},{name:\\\"stake\\\",type:\\\"uint112\\\"},{name:\\\"unstakeDelaySec\\\",type:\\\"uint32\\\"},{name:\\\"withdrawTime\\\",type:\\\"uint48\\\"}],name:\\\"info\\\",type:\\\"tuple\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"key\\\",type:\\\"uint192\\\"}],name:\\\"getNonce\\\",outputs:[{name:\\\"nonce\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"initCode\\\",type:\\\"bytes\\\"}],name:\\\"getSenderAddress\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"userOp\\\",type:\\\"tuple\\\"}],name:\\\"getUserOpHash\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{components:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"userOps\\\",type:\\\"tuple[]\\\"},{name:\\\"aggregator\\\",type:\\\"address\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"opsPerAggregator\\\",type:\\\"tuple[]\\\"},{name:\\\"beneficiary\\\",type:\\\"address\\\"}],name:\\\"handleAggregatedOps\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"ops\\\",type:\\\"tuple[]\\\"},{name:\\\"beneficiary\\\",type:\\\"address\\\"}],name:\\\"handleOps\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"key\\\",type:\\\"uint192\\\"}],name:\\\"incrementNonce\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"callData\\\",type:\\\"bytes\\\"},{components:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"paymaster\\\",type:\\\"address\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"}],name:\\\"mUserOp\\\",type:\\\"tuple\\\"},{name:\\\"userOpHash\\\",type:\\\"bytes32\\\"},{name:\\\"prefund\\\",type:\\\"uint256\\\"},{name:\\\"contextOffset\\\",type:\\\"uint256\\\"},{name:\\\"preOpGas\\\",type:\\\"uint256\\\"}],name:\\\"opInfo\\\",type:\\\"tuple\\\"},{name:\\\"context\\\",type:\\\"bytes\\\"}],name:\\\"innerHandleOp\\\",outputs:[{name:\\\"actualGasCost\\\",type:\\\"uint256\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"\\\",type:\\\"address\\\"},{name:\\\"\\\",type:\\\"uint192\\\"}],name:\\\"nonceSequenceNumber\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"op\\\",type:\\\"tuple\\\"},{name:\\\"target\\\",type:\\\"address\\\"},{name:\\\"targetCallData\\\",type:\\\"bytes\\\"}],name:\\\"simulateHandleOp\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"userOp\\\",type:\\\"tuple\\\"}],name:\\\"simulateValidation\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[],name:\\\"unlockStake\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"withdrawAddress\\\",type:\\\"address\\\"}],name:\\\"withdrawStake\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"withdrawAddress\\\",type:\\\"address\\\"},{name:\\\"withdrawAmount\\\",type:\\\"uint256\\\"}],name:\\\"withdrawTo\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{stateMutability:\\\"payable\\\",type:\\\"receive\\\"}]});var oee,q8e=x(()=>{u();oee=\\\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\\\"});function fL(t,e={}){let{forHash:r}=e,{authorization:n,factory:i,factoryData:s}=t;return r&&(i===\\\"0x7702\\\"||i===\\\"0x7702000000000000000000000000000000000000\\\")?n?Jt([n.address,s??\\\"0x\\\"]):\\\"0x7702000000000000000000000000000000000000\\\":i?Jt([i,s??\\\"0x\\\"]):\\\"0x\\\"}var aee=x(()=>{u();Ei()});function pL(t,e={}){let{callGasLimit:r,callData:n,maxPriorityFeePerGas:i,maxFeePerGas:s,paymaster:o,paymasterData:a,paymasterPostOpGasLimit:c,paymasterSignature:l,paymasterVerificationGasLimit:d,sender:f,signature:p=\\\"0x\\\",verificationGasLimit:h}=t,m=Jt([Fr(Z(h||0n),{size:16}),Fr(Z(r||0n),{size:16})]),g=fL(t,e),w=Jt([Fr(Z(i||0n),{size:16}),Fr(Z(s||0n),{size:16})]),v=t.nonce??0n,b=o?Jt([o,Fr(Z(d||0n),{size:16}),Fr(Z(c||0n),{size:16}),a||\\\"0x\\\",...l?e.forHash?[z8e]:[l,Fr(Z(Ot(l)),{size:2}),z8e]:[]]):\\\"0x\\\",_=t.preVerificationGas??0n;return{accountGasLimits:m,callData:n,initCode:g,gasFees:w,nonce:v,paymasterAndData:b,preVerificationGas:_,sender:f,signature:p}}var z8e,cee=x(()=>{u();Ei();rm();Da();Dw();aee();z8e=\\\"0x22e325a297439656\\\"});function $8e(t){let{chainId:e,entryPointAddress:r,userOperation:n}=t,i=pL(n,{forHash:!0});return{types:q0t,primaryType:\\\"PackedUserOperation\\\",domain:{name:\\\"ERC4337\\\",version:\\\"1\\\",chainId:e,verifyingContract:r},message:i}}var q0t,V8e=x(()=>{u();cee();q0t={PackedUserOperation:[{type:\\\"address\\\",name:\\\"sender\\\"},{type:\\\"uint256\\\",name:\\\"nonce\\\"},{type:\\\"bytes\\\",name:\\\"initCode\\\"},{type:\\\"bytes\\\",name:\\\"callData\\\"},{type:\\\"bytes32\\\",name:\\\"accountGasLimits\\\"},{type:\\\"uint256\\\",name:\\\"preVerificationGas\\\"},{type:\\\"bytes32\\\",name:\\\"gasFees\\\"},{type:\\\"bytes\\\",name:\\\"paymasterAndData\\\"}]}});function lee(t){let{chainId:e,entryPointAddress:r,entryPointVersion:n}=t,i=t.userOperation,{authorization:s,callData:o=\\\"0x\\\",callGasLimit:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,paymasterAndData:f=\\\"0x\\\",preVerificationGas:p,sender:h,verificationGasLimit:m}=i;if(n===\\\"0.8\\\"||n===\\\"0.9\\\")return mp($8e({chainId:e,entryPointAddress:r,userOperation:i}));let g=(()=>{if(n===\\\"0.6\\\"){let w=i.initCode?.slice(0,42),v=i.initCode?.slice(42),b=fL({authorization:s,factory:w,factoryData:v},{forHash:!0});return Vn([{type:\\\"address\\\"},{type:\\\"uint256\\\"},{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"},{type:\\\"uint256\\\"},{type:\\\"uint256\\\"},{type:\\\"uint256\\\"},{type:\\\"uint256\\\"},{type:\\\"uint256\\\"},{type:\\\"bytes32\\\"}],[h,d,Ft(b),Ft(o),a,m,p,c,l,Ft(f)])}if(n===\\\"0.7\\\"){let w=pL(i,{forHash:!0});return Vn([{type:\\\"address\\\"},{type:\\\"uint256\\\"},{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"},{type:\\\"uint256\\\"},{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"}],[w.sender,w.nonce,Ft(w.initCode),Ft(w.callData),w.accountGasLimits,w.preVerificationGas,w.gasFees,Ft(w.paymasterAndData)])}throw new Error(`entryPointVersion \\\"${n}\\\" not supported.`)})();return Ft(Vn([{type:\\\"bytes32\\\"},{type:\\\"address\\\"},{type:\\\"uint256\\\"}],[Ft(g),r,BigInt(e)]))}var W8e=x(()=>{u();wu();yl();bB();aee();V8e();cee()});async function uee(t){let{extend:e,nonceKeyManager:r=YQ({source:{get(){return Date.now()},set(){}}}),...n}=t,i=!1,s=await t.getAddress();return{...e,...n,address:s,async getFactoryArgs(){return\\\"isDeployed\\\"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:t.getFactoryArgs()},async getNonce(o){let a=o?.key??BigInt(await r.consume({address:s,chainId:t.client.chain.id,client:t.client}));return t.getNonce?await t.getNonce({...o,key:a}):await Tn(t.client,{abi:GE([\\\"function getNonce(address, uint192) pure returns (uint256)\\\"]),address:t.entryPoint.address,functionName:\\\"getNonce\\\",args:[s,a]})},async isDeployed(){return i?!0:(i=!!await ae(t.client,Sl,\\\"getCode\\\")({address:s}),i)},...t.sign?{async sign(o){let[{factory:a,factoryData:c},l]=await Promise.all([this.getFactoryArgs(),t.sign(o)]);return a&&c?LB({address:a,data:c,signature:l}):l}}:{},async signMessage(o){let[{factory:a,factoryData:c},l]=await Promise.all([this.getFactoryArgs(),t.signMessage(o)]);return a&&c&&a!==\\\"0x7702\\\"?LB({address:a,data:c,signature:l}):l},async signTypedData(o){let[{factory:a,factoryData:c},l]=await Promise.all([this.getFactoryArgs(),t.signTypedData(o)]);return a&&c&&a!==\\\"0x7702\\\"?LB({address:a,data:c,signature:l}):l},type:\\\"smart\\\"}}var G8e=x(()=>{u();KE();o6();Tu();Ut();Uxe();REe()});var K8e=x(()=>{u();});var p3,Ap,h3,m3,g3,y3,b3,w3,v3,x3,E3,_3,C3,bv,S3,Tp,A3,T3,wv,vv,I3,R3,xv,P3,Ev,O3,N3,k3,B3,_v,Cv,Sv,Av,hL,M3,D3,dee=x(()=>{u();st();p3=class extends W{constructor({cause:e}){super(\\\"Smart Account is not deployed.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.\\\",\\\"- An incorrect `sender` address is provided.\\\"],name:\\\"AccountNotDeployedError\\\"})}};Object.defineProperty(p3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});Ap=class extends W{constructor({cause:e,data:r,message:n}={}){let i=n?.replace(\\\"execution reverted: \\\",\\\"\\\")?.replace(\\\"execution reverted\\\",\\\"\\\");super(`Execution reverted ${i?`with reason: ${i}`:\\\"for an unknown reason\\\"}.`,{cause:e,name:\\\"ExecutionRevertedError\\\"}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r}};Object.defineProperty(Ap,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(Ap,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});h3=class extends W{constructor({cause:e}){super(\\\"Failed to send funds to beneficiary.\\\",{cause:e,name:\\\"FailedToSendToBeneficiaryError\\\"})}};Object.defineProperty(h3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});m3=class extends W{constructor({cause:e}){super(\\\"Gas value overflowed.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- one of the gas values exceeded 2**120 (uint120)\\\"].filter(Boolean),name:\\\"GasValuesOverflowError\\\"})}};Object.defineProperty(m3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});g3=class extends W{constructor({cause:e}){super(\\\"The `handleOps` function was called by the Bundler with a gas limit too low.\\\",{cause:e,name:\\\"HandleOpsOutOfGasError\\\"})}};Object.defineProperty(g3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});y3=class extends W{constructor({cause:e,factory:r,factoryData:n,initCode:i}){super(\\\"Failed to simulate deployment for Smart Account.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- Invalid `factory`/`factoryData` or `initCode` properties are present\\\",\\\"- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)\\\",`- Smart Account deployment execution reverted with an error\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,i&&`initCode: ${i}`].filter(Boolean),name:\\\"InitCodeFailedError\\\"})}};Object.defineProperty(y3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});b3=class extends W{constructor({cause:e,factory:r,factoryData:n,initCode:i}){super(\\\"Smart Account initialization implementation did not create an account.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- `factory`/`factoryData` or `initCode` properties are invalid\\\",`- Smart Account initialization implementation is incorrect\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,i&&`initCode: ${i}`].filter(Boolean),name:\\\"InitCodeMustCreateSenderError\\\"})}};Object.defineProperty(b3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});w3=class extends W{constructor({cause:e,factory:r,factoryData:n,initCode:i,sender:s}){super(\\\"Smart Account initialization implementation does not return the expected sender.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",`Smart Account initialization implementation does not return a sender address\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,i&&`initCode: ${i}`,s&&`sender: ${s}`].filter(Boolean),name:\\\"InitCodeMustReturnSenderError\\\"})}};Object.defineProperty(w3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});v3=class extends W{constructor({cause:e}){super(\\\"Smart Account does not have sufficient funds to execute the User Operation.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the Smart Account does not have sufficient funds to cover the required prefund, or\\\",\\\"- a Paymaster was not provided\\\"].filter(Boolean),name:\\\"InsufficientPrefundError\\\"})}};Object.defineProperty(v3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});x3=class extends W{constructor({cause:e}){super(\\\"Bundler attempted to call an invalid function on the EntryPoint.\\\",{cause:e,name:\\\"InternalCallOnlyError\\\"})}};Object.defineProperty(x3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});E3=class extends W{constructor({cause:e}){super(\\\"Bundler used an invalid aggregator for handling aggregated User Operations.\\\",{cause:e,name:\\\"InvalidAggregatorError\\\"})}};Object.defineProperty(E3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});_3=class extends W{constructor({cause:e,nonce:r}){super(\\\"Invalid Smart Account nonce used for User Operation.\\\",{cause:e,metaMessages:[r&&`nonce: ${r}`].filter(Boolean),name:\\\"InvalidAccountNonceError\\\"})}};Object.defineProperty(_3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});C3=class extends W{constructor({cause:e}){super(\\\"Bundler has not set a beneficiary address.\\\",{cause:e,name:\\\"InvalidBeneficiaryError\\\"})}};Object.defineProperty(C3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});bv=class extends W{constructor({cause:e}){super(\\\"Invalid fields set on User Operation.\\\",{cause:e,name:\\\"InvalidFieldsError\\\"})}};Object.defineProperty(bv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});S3=class extends W{constructor({cause:e,paymasterAndData:r}){super(\\\"Paymaster properties provided are invalid.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `paymasterAndData` property is of an incorrect length\\\\n\\\",r&&`paymasterAndData: ${r}`].filter(Boolean),name:\\\"InvalidPaymasterAndDataError\\\"})}};Object.defineProperty(S3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});Tp=class extends W{constructor({cause:e}){super(\\\"Paymaster deposit for the User Operation is too low.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the Paymaster has deposited less than the expected amount via the `deposit` function\\\"].filter(Boolean),name:\\\"PaymasterDepositTooLowError\\\"})}};Object.defineProperty(Tp,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32508});Object.defineProperty(Tp,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});A3=class extends W{constructor({cause:e}){super(\\\"The `validatePaymasterUserOp` function on the Paymaster reverted.\\\",{cause:e,name:\\\"PaymasterFunctionRevertedError\\\"})}};Object.defineProperty(A3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});T3=class extends W{constructor({cause:e}){super(\\\"The Paymaster contract has not been deployed.\\\",{cause:e,name:\\\"PaymasterNotDeployedError\\\"})}};Object.defineProperty(T3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});wv=class extends W{constructor({cause:e}){super(\\\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\\\",{cause:e,name:\\\"PaymasterRateLimitError\\\"})}};Object.defineProperty(wv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32504});vv=class extends W{constructor({cause:e}){super(\\\"UserOperation rejected because paymaster (or signature aggregator) stake or unstake-delay is too low.\\\",{cause:e,name:\\\"PaymasterStakeTooLowError\\\"})}};Object.defineProperty(vv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32505});I3=class extends W{constructor({cause:e}){super(\\\"Paymaster `postOp` function reverted.\\\",{cause:e,name:\\\"PaymasterPostOpFunctionRevertedError\\\"})}};Object.defineProperty(I3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});R3=class extends W{constructor({cause:e,factory:r,factoryData:n,initCode:i}){super(\\\"Smart Account has already been deployed.\\\",{cause:e,metaMessages:[\\\"Remove the following properties and try again:\\\",r&&\\\"`factory`\\\",n&&\\\"`factoryData`\\\",i&&\\\"`initCode`\\\"].filter(Boolean),name:\\\"SenderAlreadyConstructedError\\\"})}};Object.defineProperty(R3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});xv=class extends W{constructor({cause:e}){super(\\\"UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).\\\",{cause:e,name:\\\"SignatureCheckFailedError\\\"})}};Object.defineProperty(xv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32507});P3=class extends W{constructor({cause:e}){super(\\\"The `validateUserOp` function on the Smart Account reverted.\\\",{cause:e,name:\\\"SmartAccountFunctionRevertedError\\\"})}};Object.defineProperty(P3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});Ev=class extends W{constructor({cause:e}){super(\\\"UserOperation rejected because account specified unsupported signature aggregator.\\\",{cause:e,name:\\\"UnsupportedSignatureAggregatorError\\\"})}};Object.defineProperty(Ev,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32506});O3=class extends W{constructor({cause:e}){super(\\\"User Operation expired.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied\\\"].filter(Boolean),name:\\\"UserOperationExpiredError\\\"})}};Object.defineProperty(O3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});N3=class extends W{constructor({cause:e}){super(\\\"Paymaster for User Operation expired.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied\\\"].filter(Boolean),name:\\\"UserOperationPaymasterExpiredError\\\"})}};Object.defineProperty(N3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});k3=class extends W{constructor({cause:e}){super(\\\"Signature provided for the User Operation is invalid.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account\\\"].filter(Boolean),name:\\\"UserOperationSignatureError\\\"})}};Object.defineProperty(k3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});B3=class extends W{constructor({cause:e}){super(\\\"Signature provided for the User Operation is invalid.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster\\\"].filter(Boolean),name:\\\"UserOperationPaymasterSignatureError\\\"})}};Object.defineProperty(B3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});_v=class extends W{constructor({cause:e}){super(\\\"User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.\\\",{cause:e,name:\\\"UserOperationRejectedByEntryPointError\\\"})}};Object.defineProperty(_v,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32500});Cv=class extends W{constructor({cause:e}){super(\\\"User Operation rejected by Paymaster's `validatePaymasterUserOp`.\\\",{cause:e,name:\\\"UserOperationRejectedByPaymasterError\\\"})}};Object.defineProperty(Cv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32501});Sv=class extends W{constructor({cause:e}){super(\\\"User Operation rejected with op code validation error.\\\",{cause:e,name:\\\"UserOperationRejectedByOpCodeError\\\"})}};Object.defineProperty(Sv,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32502});Av=class extends W{constructor({cause:e}){super(\\\"UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).\\\",{cause:e,name:\\\"UserOperationOutOfTimeRangeError\\\"})}};Object.defineProperty(Av,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32503});hL=class extends W{constructor({cause:e}){super(`An error occurred while executing user operation: ${e?.shortMessage}`,{cause:e,name:\\\"UnknownBundlerError\\\"})}},M3=class extends W{constructor({cause:e}){super(\\\"User Operation verification gas limit exceeded.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the gas used for verification exceeded the `verificationGasLimit`\\\"].filter(Boolean),name:\\\"VerificationGasLimitExceededError\\\"})}};Object.defineProperty(M3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});D3=class extends W{constructor({cause:e}){super(\\\"User Operation verification gas limit is too low.\\\",{cause:e,metaMessages:[\\\"This could arise when:\\\",\\\"- the `verificationGasLimit` is too low to verify the User Operation\\\"].filter(Boolean),name:\\\"VerificationGasLimitTooLowError\\\"})}};Object.defineProperty(D3,\\\"message\\\",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/})});var mL,gL,yL,qT,zT=x(()=>{u();st();wl();Dw();mL=class extends W{constructor(e,{callData:r,callGasLimit:n,docsPath:i,factory:s,factoryData:o,initCode:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,paymaster:f,paymasterAndData:p,paymasterData:h,paymasterPostOpGasLimit:m,paymasterVerificationGasLimit:g,preVerificationGas:w,sender:v,signature:b,verificationGasLimit:_}){let S=lm({callData:r,callGasLimit:n,factory:s,factoryData:o,initCode:a,maxFeePerGas:typeof c<\\\"u\\\"&&`${Oi(c)} gwei`,maxPriorityFeePerGas:typeof l<\\\"u\\\"&&`${Oi(l)} gwei`,nonce:d,paymaster:f,paymasterAndData:p,paymasterData:h,paymasterPostOpGasLimit:m,paymasterVerificationGasLimit:g,preVerificationGas:w,sender:v,signature:b,verificationGasLimit:_});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages,\\\" \\\"]:[],\\\"Request Arguments:\\\",S].filter(Boolean),name:\\\"UserOperationExecutionError\\\"}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}},gL=class extends W{constructor({hash:e}){super(`User Operation receipt with hash \\\"${e}\\\" could not be found. The User Operation may not have been processed yet.`,{name:\\\"UserOperationReceiptNotFoundError\\\"})}},yL=class extends W{constructor({hash:e}){super(`User Operation with hash \\\"${e}\\\" could not be found.`,{name:\\\"UserOperationNotFoundError\\\"})}},qT=class extends W{constructor({hash:e}){super(`Timed out while waiting for User Operation with hash \\\"${e}\\\" to be confirmed.`,{name:\\\"WaitForUserOperationReceiptTimeoutError\\\"})}}});function Z8e(t,e){let r=(t.details||\\\"\\\").toLowerCase();if(p3.message.test(r))return new p3({cause:t});if(h3.message.test(r))return new h3({cause:t});if(m3.message.test(r))return new m3({cause:t});if(g3.message.test(r))return new g3({cause:t});if(y3.message.test(r))return new y3({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(b3.message.test(r))return new b3({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(w3.message.test(r))return new w3({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode,sender:e.sender});if(v3.message.test(r))return new v3({cause:t});if(x3.message.test(r))return new x3({cause:t});if(_3.message.test(r))return new _3({cause:t,nonce:e.nonce});if(E3.message.test(r))return new E3({cause:t});if(C3.message.test(r))return new C3({cause:t});if(S3.message.test(r))return new S3({cause:t});if(Tp.message.test(r))return new Tp({cause:t});if(A3.message.test(r))return new A3({cause:t});if(T3.message.test(r))return new T3({cause:t});if(I3.message.test(r))return new I3({cause:t});if(P3.message.test(r))return new P3({cause:t});if(R3.message.test(r))return new R3({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(O3.message.test(r))return new O3({cause:t});if(N3.message.test(r))return new N3({cause:t});if(B3.message.test(r))return new B3({cause:t});if(k3.message.test(r))return new k3({cause:t});if(M3.message.test(r))return new M3({cause:t});if(D3.message.test(r))return new D3({cause:t});let n=t.walk(i=>z0t.some(s=>s.code===i.code));if(n){if(n.code===Ap.code)return new Ap({cause:t,data:n.data,message:n.details});if(n.code===bv.code)return new bv({cause:t});if(n.code===Tp.code)return new Tp({cause:t});if(n.code===wv.code)return new wv({cause:t});if(n.code===vv.code)return new vv({cause:t});if(n.code===xv.code)return new xv({cause:t});if(n.code===Ev.code)return new Ev({cause:t});if(n.code===Av.code)return new Av({cause:t});if(n.code===_v.code)return new _v({cause:t});if(n.code===Cv.code)return new Cv({cause:t});if(n.code===Sv.code)return new Sv({cause:t})}return new hL({cause:t})}var z0t,Q8e=x(()=>{u();dee();z0t=[Ap,bv,Tp,wv,vv,xv,Ev,Av,_v,Cv,Sv]});function bL(t,{calls:e,docsPath:r,...n}){let i=(()=>{let s=Z8e(t,n);if(e&&s instanceof Ap){let o=$0t(s),a=e?.filter(c=>c.abi);if(o&&a.length>0)return V0t({calls:a,revertData:o})}return s})();return new mL(i,{docsPath:r,...n})}function $0t(t){let e;return t.walk(r=>{let n=r;if(typeof n.data==\\\"string\\\"||typeof n.data?.revertData==\\\"string\\\"||!(n instanceof W)&&typeof n.message==\\\"string\\\"){let i=(n.data?.revertData||n.data||n.message).match?.(/(0x[A-Za-z0-9]*)/);if(i)return e=i[1],!0}return!1}),e}function V0t(t){let{calls:e,revertData:r}=t,{abi:n,functionName:i,args:s,to:o}=(()=>{let c=e?.filter(d=>!!d.abi);if(c.length===1)return c[0];let l=c.filter(d=>{try{return!!l5({abi:d.abi,data:r})}catch{return!1}});return l.length===1?l[0]:{abi:[],functionName:c.reduce((d,f)=>`${d?`${d} | `:\\\"\\\"}${f.functionName}`,\\\"\\\"),args:void 0,to:void 0}})(),a=r===\\\"0x\\\"?new m5({functionName:i}):new um({abi:n,data:r,functionName:i});return new jg(a,{abi:n,args:s,contractAddress:o,functionName:i})}var fee=x(()=>{u();st();dm();AN();dee();zT();Q8e()});function J8e(t){let e={};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),e}var Y8e=x(()=>{u()});function Hy(t){let e={};return typeof t.callData<\\\"u\\\"&&(e.callData=t.callData),typeof t.callGasLimit<\\\"u\\\"&&(e.callGasLimit=Z(t.callGasLimit)),typeof t.factory<\\\"u\\\"&&(e.factory=t.factory),typeof t.factoryData<\\\"u\\\"&&(e.factoryData=t.factoryData),typeof t.initCode<\\\"u\\\"&&(e.initCode=t.initCode),typeof t.maxFeePerGas<\\\"u\\\"&&(e.maxFeePerGas=Z(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<\\\"u\\\"&&(e.maxPriorityFeePerGas=Z(t.maxPriorityFeePerGas)),typeof t.nonce<\\\"u\\\"&&(e.nonce=Z(t.nonce)),typeof t.paymaster<\\\"u\\\"&&(e.paymaster=t.paymaster),typeof t.paymasterAndData<\\\"u\\\"&&(e.paymasterAndData=t.paymasterAndData||\\\"0x\\\"),typeof t.paymasterData<\\\"u\\\"&&(e.paymasterData=t.paymasterData),typeof t.paymasterPostOpGasLimit<\\\"u\\\"&&(e.paymasterPostOpGasLimit=Z(t.paymasterPostOpGasLimit)),typeof t.paymasterSignature<\\\"u\\\"&&(e.paymasterSignature=t.paymasterSignature),typeof t.paymasterVerificationGasLimit<\\\"u\\\"&&(e.paymasterVerificationGasLimit=Z(t.paymasterVerificationGasLimit)),typeof t.preVerificationGas<\\\"u\\\"&&(e.preVerificationGas=Z(t.preVerificationGas)),typeof t.sender<\\\"u\\\"&&(e.sender=t.sender),typeof t.signature<\\\"u\\\"&&(e.signature=t.signature),typeof t.verificationGasLimit<\\\"u\\\"&&(e.verificationGasLimit=Z(t.verificationGasLimit)),typeof t.authorization<\\\"u\\\"&&(e.eip7702Auth=W0t(t.authorization)),e}function W0t(t){return{address:t.address,chainId:Z(t.chainId),nonce:Z(t.nonce),r:t.r?Z(BigInt(t.r),{size:32}):Fr(\\\"0x\\\",{size:32}),s:t.s?Z(BigInt(t.s),{size:32}):Fr(\\\"0x\\\",{size:32}),yParity:t.yParity?Z(t.yParity,{size:1}):Fr(\\\"0x\\\",{size:32})}}var $T=x(()=>{u();qe();Dw()});async function X8e(t,e){let{chainId:r,entryPointAddress:n,context:i,...s}=e,o=Hy(s),{paymasterPostOpGasLimit:a,paymasterVerificationGasLimit:c,...l}=await t.request({method:\\\"pm_getPaymasterData\\\",params:[{...o,callGasLimit:o.callGasLimit??\\\"0x0\\\",verificationGasLimit:o.verificationGasLimit??\\\"0x0\\\",preVerificationGas:o.preVerificationGas??\\\"0x0\\\"},n,Z(r),i]});return{...l,...a&&{paymasterPostOpGasLimit:Ge(a)},...c&&{paymasterVerificationGasLimit:Ge(c)}}}var eSe=x(()=>{u();xi();qe();$T()});async function tSe(t,e){let{chainId:r,entryPointAddress:n,context:i,...s}=e,o=Hy(s),{paymasterPostOpGasLimit:a,paymasterVerificationGasLimit:c,...l}=await t.request({method:\\\"pm_getPaymasterStubData\\\",params:[{...o,callGasLimit:o.callGasLimit??\\\"0x0\\\",verificationGasLimit:o.verificationGasLimit??\\\"0x0\\\",preVerificationGas:o.preVerificationGas??\\\"0x0\\\"},n,Z(r),i]});return{...l,...a&&{paymasterPostOpGasLimit:Ge(a)},...c&&{paymasterVerificationGasLimit:Ge(c)}}}var rSe=x(()=>{u();xi();qe();$T()});async function L3(t,e){let r=e,{account:n=t.account,dataSuffix:i=typeof t.dataSuffix==\\\"string\\\"?t.dataSuffix:t.dataSuffix?.value,parameters:s=G0t,stateOverride:o}=r;if(!n)throw new In;let a=Ze(n),c=t,l=r.paymaster??c?.paymaster,d=typeof l==\\\"string\\\"?l:void 0,{getPaymasterStubData:f,getPaymasterData:p}=(()=>{if(l===!0)return{getPaymasterStubData:O=>ae(c,tSe,\\\"getPaymasterStubData\\\")(O),getPaymasterData:O=>ae(c,X8e,\\\"getPaymasterData\\\")(O)};if(typeof l==\\\"object\\\"){let{getPaymasterStubData:O,getPaymasterData:L}=l;return{getPaymasterStubData:L&&O?O:L,getPaymasterData:L&&O?L:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),h=r.paymasterContext?r.paymasterContext:c?.paymasterContext,m={...r,paymaster:d,sender:a.address},[g,w,v,b,_]=await Promise.all([(async()=>r.calls?a.encodeCalls(r.calls.map(O=>{let L=O;return L.abi?{data:At(L),to:L.to,value:L.value}:L})):r.callData)(),(async()=>{if(!s.includes(\\\"factory\\\"))return;if(r.initCode)return{initCode:r.initCode};if(r.factory&&r.factoryData)return{factory:r.factory,factoryData:r.factoryData};let{factory:O,factoryData:L}=await a.getFactoryArgs();return a.entryPoint.version===\\\"0.6\\\"?{initCode:O&&L?Jt([O,L]):void 0}:{factory:O,factoryData:L}})(),(async()=>{if(s.includes(\\\"fees\\\")){if(typeof r.maxFeePerGas==\\\"bigint\\\"&&typeof r.maxPriorityFeePerGas==\\\"bigint\\\")return m;if(c?.userOperation?.estimateFeesPerGas){let O=await c.userOperation.estimateFeesPerGas({account:a,bundlerClient:c,userOperation:m});return{...m,...O}}try{let O=c.client??t,L=await ae(O,YN,\\\"estimateFeesPerGas\\\")({chain:O.chain,type:\\\"eip1559\\\"});return{maxFeePerGas:typeof r.maxFeePerGas==\\\"bigint\\\"?r.maxFeePerGas:BigInt(2n*L.maxFeePerGas),maxPriorityFeePerGas:typeof r.maxPriorityFeePerGas==\\\"bigint\\\"?r.maxPriorityFeePerGas:BigInt(2n*L.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(s.includes(\\\"nonce\\\"))return typeof r.nonce==\\\"bigint\\\"?r.nonce:a.getNonce()})(),(async()=>{if(s.includes(\\\"authorization\\\")){if(typeof r.authorization==\\\"object\\\")return r.authorization;if(a.authorization&&!await a.isDeployed())return{...await Uw(a.client,a.authorization),r:\\\"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000\\\",s:\\\"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\",yParity:1}}})()]);typeof g<\\\"u\\\"&&(m.callData=i?Jt([g,i]):g),typeof w<\\\"u\\\"&&(m={...m,...w}),typeof v<\\\"u\\\"&&(m={...m,...v}),typeof b<\\\"u\\\"&&(m.nonce=b),typeof _<\\\"u\\\"&&(m.authorization=_),s.includes(\\\"signature\\\")&&(typeof r.signature<\\\"u\\\"?m.signature=r.signature:m.signature=await a.getStubSignature(m)),a.entryPoint.version===\\\"0.6\\\"&&!m.initCode&&(m.initCode=\\\"0x\\\");let S;async function T(){return S||(t.chain?t.chain.id:(S=await ae(t,Es,\\\"getChainId\\\")({}),S))}let N=!1;if(s.includes(\\\"paymaster\\\")&&f&&!d&&!r.paymasterAndData){let{isFinal:O=!1,sponsor:L,...B}=await f({chainId:await T(),entryPointAddress:a.entryPoint.address,context:h,...m});N=O,m={...m,...B}}if(a.entryPoint.version===\\\"0.6\\\"&&!m.paymasterAndData&&(m.paymasterAndData=\\\"0x\\\"),s.includes(\\\"gas\\\")){if(a.userOperation?.estimateGas){let O=await a.userOperation.estimateGas(m);m={...m,...O}}if(typeof m.callGasLimit>\\\"u\\\"||typeof m.preVerificationGas>\\\"u\\\"||typeof m.verificationGasLimit>\\\"u\\\"||m.paymaster&&typeof m.paymasterPostOpGasLimit>\\\"u\\\"||m.paymaster&&typeof m.paymasterVerificationGasLimit>\\\"u\\\"){let O=await ae(c,vL,\\\"estimateUserOperationGas\\\")({account:a,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:o,...m.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...m});m={...m,callGasLimit:m.callGasLimit??O.callGasLimit,preVerificationGas:m.preVerificationGas??O.preVerificationGas,verificationGasLimit:m.verificationGasLimit??O.verificationGasLimit,paymasterPostOpGasLimit:m.paymasterPostOpGasLimit??O.paymasterPostOpGasLimit,paymasterVerificationGasLimit:m.paymasterVerificationGasLimit??O.paymasterVerificationGasLimit}}}if(s.includes(\\\"paymaster\\\")&&p&&!d&&!r.paymasterAndData&&!N){let O=await p({chainId:await T(),entryPointAddress:a.entryPoint.address,context:h,...m});m={...m,...O}}return delete m.calls,delete m.parameters,delete m.paymasterContext,typeof m.paymaster!=\\\"string\\\"&&delete m.paymaster,m}var G0t,wL=x(()=>{u();en();GJ();ek();$d();Cl();fa();Ei();Ut();eSe();rSe();pee();G0t=[\\\"factory\\\",\\\"fees\\\",\\\"gas\\\",\\\"paymaster\\\",\\\"nonce\\\",\\\"signature\\\",\\\"authorization\\\"]});async function vL(t,e){let{account:r=t.account,entryPointAddress:n,stateOverride:i}=e;if(!r&&!e.sender)throw new In;let s=r?Ze(r):void 0,o=ty(i),a=s?await ae(t,L3,\\\"prepareUserOperation\\\")({...e,parameters:[\\\"authorization\\\",\\\"factory\\\",\\\"nonce\\\",\\\"paymaster\\\",\\\"signature\\\"]}):e;try{let c=[Hy(a),n??s?.entryPoint?.address],l=await t.request({method:\\\"eth_estimateUserOperationGas\\\",params:o?[...c,o]:[...c]});return J8e(l)}catch(c){let l=e.calls;throw bL(c,{...a,...l?{calls:l}:{}})}}var pee=x(()=>{u();en();Cl();Ut();hA();fee();Y8e();$T();wL()});function nSe(t){return t.request({method:\\\"eth_supportedEntryPoints\\\"})}var iSe=x(()=>{u()});function sSe(t){let e={...t};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.maxFeePerGas&&(e.maxFeePerGas=BigInt(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=BigInt(t.maxPriorityFeePerGas)),t.nonce&&(e.nonce=BigInt(t.nonce)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),e}var oSe=x(()=>{u()});async function aSe(t,{hash:e}){let r=await t.request({method:\\\"eth_getUserOperationByHash\\\",params:[e]},{dedupe:!0});if(!r)throw new yL({hash:e});let{blockHash:n,blockNumber:i,entryPoint:s,transactionHash:o,userOperation:a}=r;return{blockHash:n,blockNumber:BigInt(i),entryPoint:s,transactionHash:o,userOperation:sSe(a)}}var cSe=x(()=>{u();zT();oSe()});function lSe(t){let e={...t};return t.actualGasCost&&(e.actualGasCost=BigInt(t.actualGasCost)),t.actualGasUsed&&(e.actualGasUsed=BigInt(t.actualGasUsed)),t.logs&&(e.logs=t.logs.map(r=>Qi(r))),t.receipt&&(e.receipt=Pw(e.receipt)),e}var uSe=x(()=>{u();Vd();Ow()});async function xL(t,{hash:e}){let r=await t.request({method:\\\"eth_getUserOperationReceipt\\\",params:[e]},{dedupe:!0});if(!r)throw new gL({hash:e});return lSe(r)}var hee=x(()=>{u();zT();uSe()});async function dSe(t,e){let{account:r=t.account,entryPointAddress:n}=e;if(!r&&!e.sender)throw new In;let i=r?Ze(r):void 0,s=i?await ae(t,L3,\\\"prepareUserOperation\\\")(e):e,o=e.signature||await i?.signUserOperation?.(s),a=Hy({...s,signature:o});try{return await t.request({method:\\\"eth_sendUserOperation\\\",params:[a,n??i?.entryPoint?.address]},{retryCount:0})}catch(c){let l=e.calls;throw bL(c,{...s,...l?{calls:l}:{},signature:o})}}var fSe=x(()=>{u();en();Cl();Ut();fee();$T();wL()});function pSe(t,e){let{hash:r,pollingInterval:n=t.pollingInterval,retryCount:i,timeout:s=12e4}=e,o=0,a=qt([\\\"waitForUserOperationReceipt\\\",t.uid,r]);return new Promise((c,l)=>{let d=so(a,{resolve:c,reject:l},f=>{let p=g=>{m(),g(),d()},h=s?setTimeout(()=>p(()=>f.reject(new qT({hash:r}))),s):void 0,m=Rc(async()=>{i&&o>=i&&(clearTimeout(h),p(()=>f.reject(new qT({hash:r}))));try{let g=await ae(t,xL,\\\"getUserOperationReceipt\\\")({hash:r});clearTimeout(h),p(()=>f.resolve(g))}catch(g){let w=g;w.name!==\\\"UserOperationReceiptNotFoundError\\\"&&(clearTimeout(h),p(()=>f.reject(w)))}o++},{emitOnBegin:!0,interval:n});return m})})}var hSe=x(()=>{u();Ut();Am();dy();ko();zT();hee()});function mSe(t){return{estimateUserOperationGas:e=>vL(t,e),getChainId:()=>Es(t),getSupportedEntryPoints:()=>nSe(t),getUserOperation:e=>aSe(t,e),getUserOperationReceipt:e=>xL(t,e),prepareUserOperation:e=>L3(t,e),sendUserOperation:e=>dSe(t,e),waitForUserOperationReceipt:e=>pSe(t,e)}}var gSe=x(()=>{u();$d();pee();iSe();cSe();hee();wL();fSe();hSe()});function mee(t){let{client:e,dataSuffix:r,key:n=\\\"bundler\\\",name:i=\\\"Bundler Client\\\",paymaster:s,paymasterContext:o,transport:a,userOperation:c}=t;return Object.assign(Im({...t,chain:t.chain??e?.chain,key:n,name:i,transport:a,type:\\\"bundlerClient\\\"}),{client:e,dataSuffix:r??e?.dataSuffix,paymaster:s,paymasterContext:o,userOperation:c}).extend(mSe)}var ySe=x(()=>{u();Jk();gSe()});var gee=x(()=>{u();G8e();ySe();H8e();q8e();W8e()});var yee,bSe=x(()=>{u();PD();yee=t3(()=>({}))});function bee(t){t.forEach(e=>{var r,n,i,s,o,a,c,l;if(!e.rpcUrl)return;let d=Oe({id:e.id,rpcUrls:{default:{http:[e.rpcUrl]}},name:(n=(r=e.nativeCurrency)===null||r===void 0?void 0:r.name)!==null&&n!==void 0?n:\\\"\\\",nativeCurrency:{name:(s=(i=e.nativeCurrency)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:\\\"\\\",symbol:(a=(o=e.nativeCurrency)===null||o===void 0?void 0:o.symbol)!==null&&a!==void 0?a:\\\"\\\",decimals:(l=(c=e.nativeCurrency)===null||c===void 0?void 0:c.decimal)!==null&&l!==void 0?l:18}}),f=ZA({chain:d,transport:za(e.rpcUrl)}),p=mee({client:f,transport:za(e.rpcUrl)});yee.setState({[e.id]:{client:f,bundlerClient:p}})})}function EL(t){var e;return(e=yee.getState()[t])===null||e===void 0?void 0:e.client}var wee=x(()=>{u();un();gee();bSe()});function co(t,e,r){if(t==null)throw e??pe.rpc.invalidParams({message:r??\\\"value must be present\\\",data:t})}function Ip(t,e){if(!Array.isArray(t))throw pe.rpc.invalidParams({message:e??\\\"value must be an array\\\",data:t})}var U3=x(()=>{u();va()});function VT(t){if(typeof t!=\\\"object\\\"||t===null)throw pe.rpc.internal(\\\"sub account info is not an object\\\");if(!(\\\"address\\\"in t))throw pe.rpc.internal(\\\"sub account is invalid\\\");if(\\\"address\\\"in t&&typeof t.address==\\\"string\\\"&&!lt(t.address))throw pe.rpc.internal(\\\"sub account address is invalid\\\");if(\\\"factory\\\"in t&&typeof t.factory==\\\"string\\\"&&!lt(t.factory))throw pe.rpc.internal(\\\"sub account factory address is invalid\\\");if(\\\"factoryData\\\"in t&&typeof t.factoryData==\\\"string\\\"&&!Ur(t.factoryData))throw pe.rpc.internal(\\\"sub account factory data is invalid\\\")}var wSe=x(()=>{u();un();va()});async function vSe(){return crypto.subtle.generateKey({name:\\\"ECDH\\\",namedCurve:\\\"P-256\\\"},!0,[\\\"deriveKey\\\"])}async function xSe(t,e){return crypto.subtle.deriveKey({name:\\\"ECDH\\\",public:e},t,{name:\\\"AES-GCM\\\",length:256},!1,[\\\"encrypt\\\",\\\"decrypt\\\"])}async function K0t(t,e){let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:\\\"AES-GCM\\\",iv:r},t,new TextEncoder().encode(e));return{iv:r,cipherText:n}}async function Z0t(t,{iv:e,cipherText:r}){let n=await crypto.subtle.decrypt({name:\\\"AES-GCM\\\",iv:e},t,r);return new TextDecoder().decode(n)}function ESe(t){switch(t){case\\\"public\\\":return\\\"spki\\\";case\\\"private\\\":return\\\"pkcs8\\\"}}async function _L(t,e){let r=ESe(t),n=await crypto.subtle.exportKey(r,e);return DT(new Uint8Array(n))}async function CL(t,e){let r=ESe(t),n=i3(e).buffer;return await crypto.subtle.importKey(r,new Uint8Array(n),{name:\\\"ECDH\\\",namedCurve:\\\"P-256\\\"},!0,t===\\\"private\\\"?[\\\"deriveKey\\\"]:[])}async function _Se(t,e){let r=JSON.stringify(t,(n,i)=>{if(!(i instanceof Error))return i;let s=i;return Object.assign(Object.assign({},s.code?{code:s.code}:{}),{message:s.message})});return K0t(e,r)}async function CSe(t,e){return JSON.parse(await Z0t(e,t))}var vee=x(()=>{u();tf()});var SSe=x(()=>{u()});var ASe,TSe=x(()=>{u();ASe=\\\"0.1.1\\\"});function ISe(){return ASe}var RSe=x(()=>{u();TSe()});function PSe(t,e){return e?.(t)?t:t&&typeof t==\\\"object\\\"&&\\\"cause\\\"in t&&t.cause?PSe(t.cause,e):e?null:t}var Nt,Ym=x(()=>{u();RSe();Nt=class t extends Error{constructor(e,r={}){let n=(()=>{if(r.cause instanceof t){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause?.message?r.cause.message:r.details})(),i=r.cause instanceof t&&r.cause.docsPath||r.docsPath,o=`https://oxlib.sh${i??\\\"\\\"}`,a=[e||\\\"An error occurred.\\\",...r.metaMessages?[\\\"\\\",...r.metaMessages]:[],...n||i?[\\\"\\\",n?`Details: ${n}`:void 0,i?`See: ${o}`:void 0]:[]].filter(c=>typeof c==\\\"string\\\").join(`\\n`);super(a,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docs\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"cause\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"BaseError\\\"}),Object.defineProperty(this,\\\"version\\\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${ISe()}`}),this.cause=r.cause,this.details=n,this.docs=o,this.docsPath=i,this.shortMessage=e}walk(e){return PSe(this,e)}}});function WT(t,e=\\\"\\\"){if(typeof t!=\\\"boolean\\\"){let r=e&&`\\\"${e}\\\"`;throw new Error(r+\\\"expected boolean, got type=\\\"+typeof t)}return t}function zy(t,e,r=\\\"\\\"){let n=kg(t),i=t?.length,s=e!==void 0;if(!n||s&&i!==e){let o=r&&`\\\"${r}\\\" `,a=s?` of length ${e}`:\\\"\\\",c=n?`length=${i}`:`type=${typeof t}`;throw new Error(o+\\\"expected Uint8Array\\\"+a+\\\", got \\\"+c)}return t}function F3(t){let e=t.toString(16);return e.length&1?\\\"0\\\"+e:e}function Cee(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);return t===\\\"\\\"?_ee:BigInt(\\\"0x\\\"+t)}function Tv(t){return Cee(Yf(t))}function SL(t){return Fa(t),Cee(Yf(Uint8Array.from(t).reverse()))}function GT(t,e){return Bg(t.toString(16).padStart(e*2,\\\"0\\\"))}function AL(t,e){return GT(t,e).reverse()}function Ho(t,e,r){let n;if(typeof e==\\\"string\\\")try{n=Bg(e)}catch(s){throw new Error(t+\\\" must be hex string or Uint8Array, cause: \\\"+s)}else if(kg(e))n=Uint8Array.from(e);else throw new Error(t+\\\" must be hex string or Uint8Array\\\");let i=n.length;if(typeof r==\\\"number\\\"&&i!==r)throw new Error(t+\\\" of length \\\"+r+\\\" expected, got \\\"+i);return n}function OSe(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function See(t,e,r){return xee(t)&&xee(e)&&xee(r)&&e<=t&&t<r}function Aee(t,e,r,n){if(!See(e,r,n))throw new Error(\\\"expected valid \\\"+t+\\\": \\\"+r+\\\" <= n < \\\"+n+\\\", got \\\"+e)}function KT(t){let e;for(e=0;t>_ee;t>>=Eee,e+=1);return e}function Tee(t,e,r){if(typeof t!=\\\"number\\\"||t<2)throw new Error(\\\"hashLen must be a number\\\");if(typeof e!=\\\"number\\\"||e<2)throw new Error(\\\"qByteLen must be a number\\\");if(typeof r!=\\\"function\\\")throw new Error(\\\"hmacFn must be a function\\\");let n=h=>new Uint8Array(h),i=h=>Uint8Array.of(h),s=n(t),o=n(t),a=0,c=()=>{s.fill(1),o.fill(0),a=0},l=(...h)=>r(o,s,...h),d=(h=n(0))=>{o=l(i(0),h),s=l(),h.length!==0&&(o=l(i(1),h),s=l())},f=()=>{if(a++>=1e3)throw new Error(\\\"drbg: tried 1000 values\\\");let h=0,m=[];for(;h<e;){s=l();let g=s.slice();m.push(g),h+=s.length}return Ec(...m)};return(h,m)=>{c(),d(h);let g;for(;!(g=m(f()));)d();return c(),g}}function ZT(t,e,r={}){if(!t||typeof t!=\\\"object\\\")throw new Error(\\\"expected valid options object\\\");function n(i,s,o){let a=t[i];if(o&&a===void 0)return;let c=typeof a;if(c!==s||a===null)throw new Error(`param \\\"${i}\\\" is invalid: expected ${s}, got ${c}`)}Object.entries(e).forEach(([i,s])=>n(i,s,!1)),Object.entries(r).forEach(([i,s])=>n(i,s,!0))}function TL(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(i!==void 0)return i;let s=t(r,...n);return e.set(r,s),s}}var _ee,Eee,xee,Xm,QT=x(()=>{u();Md();Md();_ee=BigInt(0),Eee=BigInt(1);xee=t=>typeof t==\\\"bigint\\\"&&_ee<=t;Xm=t=>(Eee<<BigInt(t))-Eee});var NSe,kSe=x(()=>{u();QT();NSe=OSe});function $y(t,e,r){return JSON.stringify(t,(n,i)=>typeof e==\\\"function\\\"?e(n,i):typeof i==\\\"bigint\\\"?i.toString()+egt:i,r)}var egt,j3=x(()=>{u();egt=\\\"#__bigint\\\"});function YT(t,e){if(Iv(t)>e)throw new IL({givenSize:Iv(t),maxSize:e})}function BSe(t,e){if(typeof e==\\\"number\\\"&&e>0&&e>Iv(t)-1)throw new XT({offset:e,position:\\\"start\\\",size:Iv(t)})}function MSe(t,e,r){if(typeof e==\\\"number\\\"&&typeof r==\\\"number\\\"&&Iv(t)!==r-e)throw new XT({offset:r,position:\\\"end\\\",size:Iv(t)})}function Iee(t){if(t>=e0.zero&&t<=e0.nine)return t-e0.zero;if(t>=e0.A&&t<=e0.F)return t-(e0.A-10);if(t>=e0.a&&t<=e0.f)return t-(e0.a-10)}function DSe(t,e={}){let{dir:r,size:n=32}=e;if(n===0)return t;if(t.length>n)throw new RL({size:t.length,targetSize:n,type:\\\"Bytes\\\"});let i=new Uint8Array(n);for(let s=0;s<n;s++){let o=r===\\\"right\\\";i[o?s:n-s-1]=t[o?s:t.length-s-1]}return i}function LSe(t,e={}){let{dir:r=\\\"left\\\"}=e,n=t,i=0;for(let s=0;s<n.length-1&&n[r===\\\"left\\\"?s:n.length-s-1].toString()===\\\"0\\\";s++)i++;return n=r===\\\"left\\\"?n.slice(i):n.slice(0,n.length-i),n}var e0,Ree=x(()=>{u();Uu();e0={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Rv(t,e){if(Ga(t)>e)throw new eI({givenSize:Ga(t),maxSize:e})}function FSe(t,e){if(typeof e==\\\"number\\\"&&e>0&&e>Ga(t)-1)throw new H3({offset:e,position:\\\"start\\\",size:Ga(t)})}function jSe(t,e,r){if(typeof e==\\\"number\\\"&&typeof r==\\\"number\\\"&&Ga(t)!==r-e)throw new H3({offset:r,position:\\\"end\\\",size:Ga(t)})}function Pee(t,e={}){let{dir:r,size:n=32}=e;if(n===0)return t;let i=t.replace(\\\"0x\\\",\\\"\\\");if(i.length>n*2)throw new tI({size:Math.ceil(i.length/2),targetSize:n,type:\\\"Hex\\\"});return`0x${i[r===\\\"right\\\"?\\\"padEnd\\\":\\\"padStart\\\"](n*2,\\\"0\\\")}`}function Oee(t,e={}){let{dir:r=\\\"left\\\"}=e,n=t.replace(\\\"0x\\\",\\\"\\\"),i=0;for(let s=0;s<n.length-1&&n[r===\\\"left\\\"?s:n.length-s-1].toString()===\\\"0\\\";s++)i++;return n=r===\\\"left\\\"?n.slice(i):n.slice(0,n.length-i),n===\\\"0\\\"?\\\"0x\\\":r===\\\"right\\\"&&n.length%2===1?`0x${n}0`:`0x${n}`}var Nee=x(()=>{u();Rp()});var Ka={};ue(Ka,{IntegerOutOfRangeError:()=>PL,InvalidHexBooleanError:()=>OL,InvalidHexTypeError:()=>rI,InvalidHexValueError:()=>nI,InvalidLengthError:()=>kee,SizeExceedsPaddingSizeError:()=>tI,SizeOverflowError:()=>eI,SliceOffsetOutOfBoundsError:()=>H3,assert:()=>qSe,concat:()=>nf,from:()=>q3,fromBoolean:()=>Bee,fromBytes:()=>Xi,fromNumber:()=>As,fromString:()=>z3,isEqual:()=>ngt,padLeft:()=>$3,padRight:()=>V3,random:()=>igt,size:()=>Ga,slice:()=>Fu,toBigInt:()=>NL,toBoolean:()=>ogt,toBytes:()=>agt,toNumber:()=>zSe,toString:()=>cgt,trimLeft:()=>iI,trimRight:()=>sgt,validate:()=>kL});function qSe(t,e={}){let{strict:r=!1}=e;if(!t)throw new rI(t);if(typeof t!=\\\"string\\\")throw new rI(t);if(r&&!/^0x[0-9a-fA-F]*$/.test(t))throw new nI(t);if(!t.startsWith(\\\"0x\\\"))throw new nI(t)}function nf(...t){return`0x${t.reduce((e,r)=>e+r.replace(\\\"0x\\\",\\\"\\\"),\\\"\\\")}`}function q3(t){return t instanceof Uint8Array?Xi(t):Array.isArray(t)?Xi(new Uint8Array(t)):t}function Bee(t,e={}){let r=`0x${Number(t)}`;return typeof e.size==\\\"number\\\"?(Rv(r,e.size),$3(r,e.size)):r}function Xi(t,e={}){let r=\\\"\\\";for(let i=0;i<t.length;i++)r+=rgt[t[i]];let n=`0x${r}`;return typeof e.size==\\\"number\\\"?(Rv(n,e.size),V3(n,e.size)):n}function As(t,e={}){let{signed:r,size:n}=e,i=BigInt(t),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof t==\\\"number\\\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let o=typeof s==\\\"bigint\\\"&&r?-s-1n:0;if(s&&i>s||i<o){let l=typeof t==\\\"bigint\\\"?\\\"n\\\":\\\"\\\";throw new PL({max:s?`${s}${l}`:void 0,min:`${o}${l}`,signed:r,size:n,value:`${t}${l}`})}let c=`0x${(r&&i<0?(1n<<BigInt(n*8))+BigInt(i):i).toString(16)}`;return n?$3(c,n):c}function z3(t,e={}){return Xi(tgt.encode(t),e)}function ngt(t,e){return NSe(lo(t),lo(e))}function $3(t,e){return Pee(t,{dir:\\\"left\\\",size:e})}function V3(t,e){return Pee(t,{dir:\\\"right\\\",size:e})}function igt(t){return Xi($Se(t))}function Fu(t,e,r,n={}){let{strict:i}=n;FSe(t,e);let s=`0x${t.replace(\\\"0x\\\",\\\"\\\").slice((e??0)*2,(r??t.length)*2)}`;return i&&jSe(s,e,r),s}function Ga(t){return Math.ceil((t.length-2)/2)}function iI(t){return Oee(t,{dir:\\\"left\\\"})}function sgt(t){return Oee(t,{dir:\\\"right\\\"})}function NL(t,e={}){let{signed:r}=e;e.size&&Rv(t,e.size);let n=BigInt(t);if(!r)return n;let i=(t.length-2)/2,s=(1n<<BigInt(i)*8n)-1n,o=s>>1n;return n<=o?n:n-s-1n}function ogt(t,e={}){e.size&&Rv(t,e.size);let r=iI(t);if(r===\\\"0x\\\")return!1;if(r===\\\"0x1\\\")return!0;throw new OL(t)}function agt(t,e={}){return lo(t,e)}function zSe(t,e={}){let{signed:r,size:n}=e;return Number(!r&&!n?t:NL(t,e))}function cgt(t,e={}){let{size:r}=e,n=lo(t);return r&&(YT(n,r),n=VSe(n)),new TextDecoder().decode(n)}function kL(t,e={}){let{strict:r=!1}=e;try{return qSe(t,{strict:r}),!0}catch{return!1}}var tgt,rgt,PL,OL,rI,nI,kee,eI,H3,tI,Rp=x(()=>{u();kSe();Uu();Ym();j3();Ree();Nee();tgt=new TextEncoder,rgt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));PL=class extends Nt{constructor({max:e,min:r,signed:n,size:i,value:s}){super(`Number \\\\`${s}\\\\` is not in safe${i?` ${i*8}-bit`:\\\"\\\"}${n?\\\" signed\\\":\\\" unsigned\\\"} integer range ${e?`(\\\\`${r}\\\\` to \\\\`${e}\\\\`)`:`(above \\\\`${r}\\\\`)`}`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.IntegerOutOfRangeError\\\"})}},OL=class extends Nt{constructor(e){super(`Hex value \\\\`\\\"${e}\\\"\\\\` is not a valid boolean.`,{metaMessages:['The hex value must be `\\\"0x0\\\"` (false) or `\\\"0x1\\\"` (true).']}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidHexBooleanError\\\"})}},rI=class extends Nt{constructor(e){super(`Value \\\\`${typeof e==\\\"object\\\"?$y(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `\\\"0x${string}\\\"`.']}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidHexTypeError\\\"})}},nI=class extends Nt{constructor(e){super(`Value \\\\`${e}\\\\` is an invalid hex value.`,{metaMessages:['Hex values must start with `\\\"0x\\\"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidHexValueError\\\"})}},kee=class extends Nt{constructor(e){super(`Hex value \\\\`\\\"${e}\\\"\\\\` is an odd length (${e.length-2} nibbles).`,{metaMessages:[\\\"It must be an even length.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.InvalidLengthError\\\"})}},eI=class extends Nt{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SizeOverflowError\\\"})}},H3=class extends Nt{constructor({offset:e,position:r,size:n}){super(`Slice ${r===\\\"start\\\"?\\\"starting\\\":\\\"ending\\\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SliceOffsetOutOfBoundsError\\\"})}},tI=class extends Nt{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Hex.SizeExceedsPaddingSizeError\\\"})}}});function ugt(t){if(!(t instanceof Uint8Array)){if(!t)throw new W3(t);if(typeof t!=\\\"object\\\")throw new W3(t);if(!(\\\"BYTES_PER_ELEMENT\\\"in t))throw new W3(t);if(t.BYTES_PER_ELEMENT!==1||t.constructor.name!==\\\"Uint8Array\\\")throw new W3(t)}}function BL(...t){let e=0;for(let n of t)e+=n.length;let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function G3(t){return t instanceof Uint8Array?t:typeof t==\\\"string\\\"?lo(t):Mee(t)}function Mee(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function lo(t,e={}){let{size:r}=e,n=t;r&&(Rv(t,r),n=V3(t,r));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,o=new Uint8Array(s);for(let a=0,c=0;a<s;a++){let l=Iee(i.charCodeAt(c++)),d=Iee(i.charCodeAt(c++));if(l===void 0||d===void 0)throw new Nt(`Invalid byte sequence (\\\"${i[c-2]}${i[c-1]}\\\" in \\\"${i}\\\").`);o[a]=l*16+d}return o}function Dee(t,e){let r=As(t,e);return lo(r)}function K3(t,e={}){let{size:r}=e,n=lgt.encode(t);return typeof r==\\\"number\\\"?(YT(n,r),dgt(n,r)):n}function dgt(t,e){return DSe(t,{dir:\\\"right\\\",size:e})}function $Se(t){return crypto.getRandomValues(new Uint8Array(t))}function Iv(t){return t.length}function Lee(t,e,r,n={}){let{strict:i}=n;BSe(t,e);let s=t.slice(e,r);return i&&MSe(s,e,r),s}function Uee(t,e={}){let{size:r}=e;typeof r<\\\"u\\\"&&YT(t,r);let n=Xi(t,e);return NL(n,e)}function VSe(t){return LSe(t,{dir:\\\"right\\\"})}function WSe(t){try{return ugt(t),!0}catch{return!1}}var lgt,W3,IL,XT,RL,Uu=x(()=>{u();Ym();Rp();j3();Ree();Nee();lgt=new TextEncoder;W3=class extends Nt{constructor(e){super(`Value \\\\`${typeof e==\\\"object\\\"?$y(e):e}\\\\` of type \\\\`${typeof e}\\\\` is an invalid Bytes value.`,{metaMessages:[\\\"Bytes values must be of type `Bytes`.\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.InvalidBytesTypeError\\\"})}},IL=class extends Nt{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${e}\\\\` bytes.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SizeOverflowError\\\"})}},XT=class extends Nt{constructor({offset:e,position:r,size:n}){super(`Slice ${r===\\\"start\\\"?\\\"starting\\\":\\\"ending\\\"} at offset \\\\`${e}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SliceOffsetOutOfBoundsError\\\"})}},RL=class extends Nt{constructor({size:e,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${e}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Bytes.SizeExceedsPaddingSizeError\\\"})}}});function ML(t,e={}){let{as:r=typeof t==\\\"string\\\"?\\\"Hex\\\":\\\"Bytes\\\"}=e,n=Mg(G3(t));return r===\\\"Bytes\\\"?n:Xi(n)}function DL(t,e={}){let{as:r=typeof t==\\\"string\\\"?\\\"Hex\\\":\\\"Bytes\\\"}=e,n=nk(G3(t));return r===\\\"Bytes\\\"?n:Xi(n)}var LL=x(()=>{u();$S();nQ();Uu();Rp()});var UL,GSe=x(()=>{u();UL=class extends Map{constructor(e){super(),Object.defineProperty(this,\\\"maxSize\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let r=super.get(e);return super.has(e)&&r!==void 0&&(this.delete(e),super.set(e,r)),r}set(e,r){if(super.set(e,r),this.maxSize&&this.size>this.maxSize){let n=this.keys().next().value;n&&this.delete(n)}return this}}});var fgt,FL,jee=x(()=>{u();GSe();fgt={checksum:new UL(8192)},FL=fgt.checksum});var Pp={};ue(Pp,{InvalidCompressedPrefixError:()=>HL,InvalidError:()=>jL,InvalidPrefixError:()=>sI,InvalidSerializedSizeError:()=>zL,InvalidUncompressedPrefixError:()=>qL,assert:()=>$L,compress:()=>pgt,from:()=>Pv,fromBytes:()=>ZSe,fromHex:()=>Hee,toBytes:()=>qee,toHex:()=>VL,validate:()=>hgt});function $L(t,e={}){let{compressed:r}=e,{prefix:n,x:i,y:s}=t;if(r===!1||typeof i==\\\"bigint\\\"&&typeof s==\\\"bigint\\\"){if(n!==4)throw new sI({prefix:n,cause:new qL});return}if(r===!0||typeof i==\\\"bigint\\\"&&typeof s>\\\"u\\\"){if(n!==3&&n!==2)throw new sI({prefix:n,cause:new HL});return}throw new jL({publicKey:t})}function pgt(t){let{x:e,y:r}=t;return{prefix:r%2n===0n?2:3,x:e}}function Pv(t){let e=(()=>{if(kL(t))return Hee(t);if(WSe(t))return ZSe(t);let{prefix:r,x:n,y:i}=t;return typeof n==\\\"bigint\\\"&&typeof i==\\\"bigint\\\"?{prefix:r??4,x:n,y:i}:{prefix:r,x:n}})();return $L(e),e}function ZSe(t){return Hee(Xi(t))}function Hee(t){if(t.length!==132&&t.length!==130&&t.length!==68)throw new zL({publicKey:t});if(t.length===130){let n=BigInt(Fu(t,0,32)),i=BigInt(Fu(t,32,64));return{prefix:4,x:n,y:i}}if(t.length===132){let n=Number(Fu(t,0,1)),i=BigInt(Fu(t,1,33)),s=BigInt(Fu(t,33,65));return{prefix:n,x:i,y:s}}let e=Number(Fu(t,0,1)),r=BigInt(Fu(t,1,33));return{prefix:e,x:r}}function qee(t,e={}){return lo(VL(t,e))}function VL(t,e={}){$L(t);let{prefix:r,x:n,y:i}=t,{includePrefix:s=!0}=e;return nf(s?As(r,{size:1}):\\\"0x\\\",As(n,{size:32}),typeof i==\\\"bigint\\\"?As(i,{size:32}):\\\"0x\\\")}function hgt(t,e={}){try{return $L(t,e),!0}catch{return!1}}var jL,sI,HL,qL,zL,oI=x(()=>{u();Uu();Ym();Rp();j3();jL=class extends Nt{constructor({publicKey:e}){super(`Value \\\\`${$y(e)}\\\\` is not a valid public key.`,{metaMessages:[\\\"Public key must contain:\\\",\\\"- an `x` and `prefix` value (compressed)\\\",\\\"- an `x`, `y`, and `prefix` value (uncompressed)\\\"]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidError\\\"})}},sI=class extends Nt{constructor({prefix:e,cause:r}){super(`Prefix \\\"${e}\\\" is invalid.`,{cause:r}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidPrefixError\\\"})}},HL=class extends Nt{constructor(){super(\\\"Prefix must be 2 or 3 for compressed public keys.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidCompressedPrefixError\\\"})}},qL=class extends Nt{constructor(){super(\\\"Prefix must be 4 for uncompressed public keys.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidUncompressedPrefixError\\\"})}},zL=class extends Nt{constructor({publicKey:e}){super(`Value \\\\`${e}\\\\` is an invalid public key size.`,{metaMessages:[\\\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\\\",`Received ${Ga(q3(e))} bytes.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"PublicKey.InvalidSerializedSizeError\\\"})}}});function Vee(t,e={}){let{strict:r=!0}=e;if(!mgt.test(t))throw new WL({address:t,cause:new zee});if(r){if(t.toLowerCase()===t)return;if(ggt(t)!==t)throw new WL({address:t,cause:new $ee})}}function ggt(t){if(FL.has(t))return FL.get(t);Vee(t,{strict:!1});let e=t.substring(2).toLowerCase(),r=ML(K3(e),{as:\\\"Bytes\\\"}),n=e.split(\\\"\\\");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&n[s]&&(n[s]=n[s].toUpperCase()),(r[s>>1]&15)>=8&&n[s+1]&&(n[s+1]=n[s+1].toUpperCase());let i=`0x${n.join(\\\"\\\")}`;return FL.set(t,i),i}var mgt,WL,zee,$ee,Wee=x(()=>{u();Uu();jee();Ym();LL();mgt=/^0x[a-fA-F0-9]{40}$/;WL=class extends Nt{constructor({address:e,cause:r}){super(`Address \\\"${e}\\\" is invalid.`,{cause:r}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidAddressError\\\"})}},zee=class extends Nt{constructor(){super(\\\"Address is not a 20 byte (40 hexadecimal character) value.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidInputError\\\"})}},$ee=class extends Nt{constructor(){super(\\\"Address does not match its checksum counterpart.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Address.InvalidChecksumError\\\"})}}});var JSe=x(()=>{u()});var YSe,XSe,eAe,eqr,tqr,rqr,nqr,iqr,sqr,oqr,aqr,cqr,lqr,uqr,dqr,fqr,pqr,hqr,mqr,gqr,yqr,bqr,wqr,vqr,xqr,Eqr,_qr,Cqr,Sqr,Aqr,Tqr,Iqr,Rqr,Pqr,Oqr,Nqr,kqr,Bqr,Mqr,Dqr,Lqr,Uqr,Fqr,jqr,Hqr,qqr,zqr,$qr,Vqr,Wqr,Gqr,Kqr,Zqr,Qqr,Jqr,Yqr,Xqr,ezr,tzr,rzr,nzr,izr,szr,ozr,azr,czr,lzr,uzr,dzr,fzr,pzr,hzr,mzr,gzr,yzr,bzr,wzr,vzr,xzr,Ezr,_zr,Czr,Szr,Azr,Tzr,Izr,Rzr,Pzr,Ozr,Nzr,kzr,Bzr,Mzr,Dzr,Lzr,Uzr,Fzr,jzr,Gee,GL=x(()=>{u();YSe=/^(.*)\\\\[([0-9]*)\\\\]$/,XSe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,eAe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,eqr=2n**(8n-1n)-1n,tqr=2n**(16n-1n)-1n,rqr=2n**(24n-1n)-1n,nqr=2n**(32n-1n)-1n,iqr=2n**(40n-1n)-1n,sqr=2n**(48n-1n)-1n,oqr=2n**(56n-1n)-1n,aqr=2n**(64n-1n)-1n,cqr=2n**(72n-1n)-1n,lqr=2n**(80n-1n)-1n,uqr=2n**(88n-1n)-1n,dqr=2n**(96n-1n)-1n,fqr=2n**(104n-1n)-1n,pqr=2n**(112n-1n)-1n,hqr=2n**(120n-1n)-1n,mqr=2n**(128n-1n)-1n,gqr=2n**(136n-1n)-1n,yqr=2n**(144n-1n)-1n,bqr=2n**(152n-1n)-1n,wqr=2n**(160n-1n)-1n,vqr=2n**(168n-1n)-1n,xqr=2n**(176n-1n)-1n,Eqr=2n**(184n-1n)-1n,_qr=2n**(192n-1n)-1n,Cqr=2n**(200n-1n)-1n,Sqr=2n**(208n-1n)-1n,Aqr=2n**(216n-1n)-1n,Tqr=2n**(224n-1n)-1n,Iqr=2n**(232n-1n)-1n,Rqr=2n**(240n-1n)-1n,Pqr=2n**(248n-1n)-1n,Oqr=2n**(256n-1n)-1n,Nqr=-(2n**(8n-1n)),kqr=-(2n**(16n-1n)),Bqr=-(2n**(24n-1n)),Mqr=-(2n**(32n-1n)),Dqr=-(2n**(40n-1n)),Lqr=-(2n**(48n-1n)),Uqr=-(2n**(56n-1n)),Fqr=-(2n**(64n-1n)),jqr=-(2n**(72n-1n)),Hqr=-(2n**(80n-1n)),qqr=-(2n**(88n-1n)),zqr=-(2n**(96n-1n)),$qr=-(2n**(104n-1n)),Vqr=-(2n**(112n-1n)),Wqr=-(2n**(120n-1n)),Gqr=-(2n**(128n-1n)),Kqr=-(2n**(136n-1n)),Zqr=-(2n**(144n-1n)),Qqr=-(2n**(152n-1n)),Jqr=-(2n**(160n-1n)),Yqr=-(2n**(168n-1n)),Xqr=-(2n**(176n-1n)),ezr=-(2n**(184n-1n)),tzr=-(2n**(192n-1n)),rzr=-(2n**(200n-1n)),nzr=-(2n**(208n-1n)),izr=-(2n**(216n-1n)),szr=-(2n**(224n-1n)),ozr=-(2n**(232n-1n)),azr=-(2n**(240n-1n)),czr=-(2n**(248n-1n)),lzr=-(2n**(256n-1n)),uzr=2n**8n-1n,dzr=2n**16n-1n,fzr=2n**24n-1n,pzr=2n**32n-1n,hzr=2n**40n-1n,mzr=2n**48n-1n,gzr=2n**56n-1n,yzr=2n**64n-1n,bzr=2n**72n-1n,wzr=2n**80n-1n,vzr=2n**88n-1n,xzr=2n**96n-1n,Ezr=2n**104n-1n,_zr=2n**112n-1n,Czr=2n**120n-1n,Szr=2n**128n-1n,Azr=2n**136n-1n,Tzr=2n**144n-1n,Izr=2n**152n-1n,Rzr=2n**160n-1n,Pzr=2n**168n-1n,Ozr=2n**176n-1n,Nzr=2n**184n-1n,kzr=2n**192n-1n,Bzr=2n**200n-1n,Mzr=2n**208n-1n,Dzr=2n**216n-1n,Lzr=2n**224n-1n,Uzr=2n**232n-1n,Fzr=2n**240n-1n,jzr=2n**248n-1n,Gee=2n**256n-1n});function Zee(t,e){if(t.length!==e.length)throw new Jee({expectedLength:t.length,givenLength:e.length});let r=[];for(let n=0;n<t.length;n++){let i=t[n],s=e[n];r.push(Zee.encode(i,s))}return nf(...r)}var Qee,Jee,Yee,tAe=x(()=>{u();Wee();Ym();Rp();GL();(function(t){function e(r,n,i=!1){if(r===\\\"address\\\"){let c=n;return Vee(c),$3(c.toLowerCase(),i?32:0)}if(r===\\\"string\\\")return z3(n);if(r===\\\"bytes\\\")return n;if(r===\\\"bool\\\")return $3(Bee(n),i?32:1);let s=r.match(eAe);if(s){let[c,l,d=\\\"256\\\"]=s,f=Number.parseInt(d)/8;return As(n,{size:i?32:f,signed:l===\\\"int\\\"})}let o=r.match(XSe);if(o){let[c,l]=o;if(Number.parseInt(l)!==(n.length-2)/2)throw new Qee({expectedSize:Number.parseInt(l),value:n});return V3(n,i?32:0)}let a=r.match(YSe);if(a&&Array.isArray(n)){let[c,l]=a,d=[];for(let f=0;f<n.length;f++)d.push(e(l,n[f],!0));return d.length===0?\\\"0x\\\":nf(...d)}throw new Yee(r)}t.encode=e})(Zee||(Zee={}));Qee=class extends Nt{constructor({expectedSize:e,value:r}){super(`Size of bytes \\\"${r}\\\" (bytes${Ga(r)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.BytesSizeMismatchError\\\"})}},Jee=class extends Nt{constructor({expectedLength:e,givenLength:r}){super([\\\"ABI encoding parameters/values length mismatch.\\\",`Expected length (parameters): ${e}`,`Given length (values): ${r}`].join(`\\n`)),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.LengthMismatchError\\\"})}},Yee=class extends Nt{constructor(e){super(`Type \\\\`${e}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"AbiParameters.InvalidTypeError\\\"})}}});var rAe=x(()=>{u()});var nAe=x(()=>{u()});var iAe=x(()=>{u()});var sAe=x(()=>{u()});var oAe=x(()=>{u()});var aAe=x(()=>{u()});var cAe=x(()=>{u()});var lAe=x(()=>{u()});function ju(t,e){let r=t%e;return r>=Za?r:e+r}function Il(t,e,r){let n=t;for(;e-- >Za;)n*=n,n%=r;return n}function uAe(t,e){if(t===Za)throw new Error(\\\"invert: expected non-zero number\\\");if(e<=Za)throw new Error(\\\"invert: expected positive modulus, got \\\"+e);let r=ju(t,e),n=e,i=Za,s=xa,o=xa,a=Za;for(;r!==Za;){let l=n/r,d=n%r,f=i-o*l,p=s-a*l;n=r,r=d,i=o,s=a,o=f,a=p}if(n!==xa)throw new Error(\\\"invert: does not exist\\\");return ju(i,e)}function Xee(t,e,r){if(!t.eql(t.sqr(e),r))throw new Error(\\\"Cannot find square root\\\")}function yAe(t,e){let r=(t.ORDER+xa)/pAe,n=t.pow(e,r);return Xee(t,n,e),n}function Igt(t,e){let r=(t.ORDER-hAe)/mAe,n=t.mul(e,Ov),i=t.pow(n,r),s=t.mul(e,i),o=t.mul(t.mul(s,Ov),i),a=t.mul(s,t.sub(o,t.ONE));return Xee(t,a,e),a}function Rgt(t){let e=Hu(t),r=bAe(t),n=r(e,e.neg(e.ONE)),i=r(e,n),s=r(e,e.neg(n)),o=(t+Agt)/gAe;return(a,c)=>{let l=a.pow(c,o),d=a.mul(l,n),f=a.mul(l,i),p=a.mul(l,s),h=a.eql(a.sqr(d),c),m=a.eql(a.sqr(f),c);l=a.cmov(l,d,h),d=a.cmov(p,f,m);let g=a.eql(a.sqr(d),c),w=a.cmov(l,d,g);return Xee(a,w,c),w}}function bAe(t){if(t<fAe)throw new Error(\\\"sqrt is not defined for small field\\\");let e=t-xa,r=0;for(;e%Ov===Za;)e/=Ov,r++;let n=Ov,i=Hu(t);for(;dAe(i,n)===1;)if(n++>1e3)throw new Error(\\\"Cannot find square root: probably non-prime P\\\");if(r===1)return yAe;let s=i.pow(n,e),o=(e+xa)/Ov;return function(c,l){if(c.is0(l))return l;if(dAe(c,l)!==1)throw new Error(\\\"Cannot find square root\\\");let d=r,f=c.mul(c.ONE,s),p=c.pow(l,e),h=c.pow(l,o);for(;!c.eql(p,c.ONE);){if(c.is0(p))return c.ZERO;let m=1,g=c.sqr(p);for(;!c.eql(g,c.ONE);)if(m++,g=c.sqr(g),m===d)throw new Error(\\\"Cannot find square root\\\");let w=xa<<BigInt(d-m-1),v=c.pow(f,w);d=m,f=c.sqr(v),p=c.mul(p,f),h=c.mul(h,v)}return h}}function Pgt(t){return t%pAe===fAe?yAe:t%mAe===hAe?Igt:t%gAe===Tgt?Rgt(t):bAe(t)}function ete(t){let e={ORDER:\\\"bigint\\\",MASK:\\\"bigint\\\",BYTES:\\\"number\\\",BITS:\\\"number\\\"},r=Ogt.reduce((n,i)=>(n[i]=\\\"function\\\",n),e);return ZT(t,r),t}function Ngt(t,e,r){if(r<Za)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r===Za)return t.ONE;if(r===xa)return e;let n=t.ONE,i=e;for(;r>Za;)r&xa&&(n=t.mul(n,i)),i=t.sqr(i),r>>=xa;return n}function KL(t,e,r=!1){let n=new Array(e.length).fill(r?t.ZERO:void 0),i=e.reduce((o,a,c)=>t.is0(a)?o:(n[c]=o,t.mul(o,a)),t.ONE),s=t.inv(i);return e.reduceRight((o,a,c)=>t.is0(a)?o:(n[c]=t.mul(o,n[c]),t.mul(o,a)),s),n}function dAe(t,e){let r=(t.ORDER-xa)/Ov,n=t.pow(e,r),i=t.eql(n,t.ONE),s=t.eql(n,t.ZERO),o=t.eql(n,t.neg(t.ONE));if(!i&&!s&&!o)throw new Error(\\\"invalid Legendre symbol result\\\");return i?1:s?0:-1}function ZL(t,e){e!==void 0&&kd(e);let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Hu(t,e,r=!1,n={}){if(t<=Za)throw new Error(\\\"invalid field: expected ORDER > 0, got \\\"+t);let i,s,o=!1,a;if(typeof e==\\\"object\\\"&&e!=null){if(n.sqrt||r)throw new Error(\\\"cannot specify opts in two arguments\\\");let p=e;p.BITS&&(i=p.BITS),p.sqrt&&(s=p.sqrt),typeof p.isLE==\\\"boolean\\\"&&(r=p.isLE),typeof p.modFromBytes==\\\"boolean\\\"&&(o=p.modFromBytes),a=p.allowedLengths}else typeof e==\\\"number\\\"&&(i=e),n.sqrt&&(s=n.sqrt);let{nBitLength:c,nByteLength:l}=ZL(t,i);if(l>2048)throw new Error(\\\"invalid field: expected ORDER of <= 2048 bytes\\\");let d,f=Object.freeze({ORDER:t,isLE:r,BITS:c,BYTES:l,MASK:Xm(c),ZERO:Za,ONE:xa,allowedLengths:a,create:p=>ju(p,t),isValid:p=>{if(typeof p!=\\\"bigint\\\")throw new Error(\\\"invalid field element: expected bigint, got \\\"+typeof p);return Za<=p&&p<t},is0:p=>p===Za,isValidNot0:p=>!f.is0(p)&&f.isValid(p),isOdd:p=>(p&xa)===xa,neg:p=>ju(-p,t),eql:(p,h)=>p===h,sqr:p=>ju(p*p,t),add:(p,h)=>ju(p+h,t),sub:(p,h)=>ju(p-h,t),mul:(p,h)=>ju(p*h,t),pow:(p,h)=>Ngt(f,p,h),div:(p,h)=>ju(p*uAe(h,t),t),sqrN:p=>p*p,addN:(p,h)=>p+h,subN:(p,h)=>p-h,mulN:(p,h)=>p*h,inv:p=>uAe(p,t),sqrt:s||(p=>(d||(d=Pgt(t)),d(f,p))),toBytes:p=>r?AL(p,l):GT(p,l),fromBytes:(p,h=!0)=>{if(a){if(!a.includes(p.length)||p.length>l)throw new Error(\\\"Field.fromBytes: expected \\\"+a+\\\" bytes, got \\\"+p.length);let g=new Uint8Array(l);g.set(p,r?0:g.length-p.length),p=g}if(p.length!==l)throw new Error(\\\"Field.fromBytes: expected \\\"+l+\\\" bytes, got \\\"+p.length);let m=r?SL(p):Tv(p);if(o&&(m=ju(m,t)),!h&&!f.isValid(m))throw new Error(\\\"invalid field element: outside of range 0..ORDER\\\");return m},invertBatch:p=>KL(f,p),cmov:(p,h,m)=>m?h:p});return Object.freeze(f)}function wAe(t){if(typeof t!=\\\"bigint\\\")throw new Error(\\\"field order must be bigint\\\");let e=t.toString(2).length;return Math.ceil(e/8)}function tte(t){let e=wAe(t);return e+Math.ceil(e/2)}function rte(t,e,r=!1){let n=t.length,i=wAe(e),s=tte(e);if(n<16||n<s||n>1024)throw new Error(\\\"expected \\\"+s+\\\"-1024 bytes of input, got \\\"+n);let o=r?SL(t):Tv(t),a=ju(o,e-xa)+xa;return r?AL(a,i):GT(a,i)}var Za,xa,Ov,fAe,pAe,hAe,Agt,mAe,Tgt,gAe,Ogt,aI=x(()=>{u();QT();Za=BigInt(0),xa=BigInt(1),Ov=BigInt(2),fAe=BigInt(3),pAe=BigInt(4),hAe=BigInt(5),Agt=BigInt(7),mAe=BigInt(8),Tgt=BigInt(9),gAe=BigInt(16);Ogt=[\\\"create\\\",\\\"isValid\\\",\\\"is0\\\",\\\"neg\\\",\\\"inv\\\",\\\"sqrt\\\",\\\"sqr\\\",\\\"eql\\\",\\\"add\\\",\\\"sub\\\",\\\"mul\\\",\\\"pow\\\",\\\"div\\\",\\\"addN\\\",\\\"subN\\\",\\\"mulN\\\",\\\"sqrN\\\"]});function cI(t,e){let r=e.negate();return t?r:e}function JL(t,e){let r=KL(t.Fp,e.map(n=>n.Z));return e.map((n,i)=>t.fromAffine(n.toAffine(r[i])))}function _Ae(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\\\"invalid window size, expected [1..\\\"+e+\\\"], got W=\\\"+t)}function nte(t,e){_Ae(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1),i=2**t,s=Xm(t),o=BigInt(t);return{windows:r,windowSize:n,mask:s,maxNumber:i,shiftBy:o}}function vAe(t,e,r){let{windowSize:n,mask:i,maxNumber:s,shiftBy:o}=r,a=Number(t&i),c=t>>o;a>n&&(a-=s,c+=Nv);let l=e*n,d=l+Math.abs(a)-1,f=a===0,p=a<0,h=e%2!==0;return{nextN:c,offset:d,isZero:f,isNeg:p,isNegF:h,offsetF:l}}function kgt(t,e){if(!Array.isArray(t))throw new Error(\\\"array expected\\\");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error(\\\"invalid point at index \\\"+n)})}function Bgt(t,e){if(!Array.isArray(t))throw new Error(\\\"array of scalars expected\\\");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error(\\\"invalid scalar at index \\\"+n)})}function ste(t){return CAe.get(t)||1}function xAe(t){if(t!==Z3)throw new Error(\\\"invalid wNAF\\\")}function SAe(t,e,r,n){let i=e,s=t.ZERO,o=t.ZERO;for(;r>Z3||n>Z3;)r&Nv&&(s=s.add(i)),n&Nv&&(o=o.add(i)),i=i.double(),r>>=Nv,n>>=Nv;return{p1:s,p2:o}}function AAe(t,e,r,n){kgt(r,t),Bgt(n,e);let i=r.length,s=n.length;if(i!==s)throw new Error(\\\"arrays of points and scalars must have equal length\\\");let o=t.ZERO,a=KT(BigInt(i)),c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);let l=Xm(c),d=new Array(Number(l)+1).fill(o),f=Math.floor((e.BITS-1)/c)*c,p=o;for(let h=f;h>=0;h-=c){d.fill(o);for(let g=0;g<s;g++){let w=n[g],v=Number(w>>BigInt(h)&l);d[v]=d[v].add(r[g])}let m=o;for(let g=d.length-1,w=o;g>0;g--)w=w.add(d[g]),m=m.add(w);if(p=p.add(m),h!==0)for(let g=0;g<c;g++)p=p.double()}return p}function EAe(t,e,r){if(e){if(e.ORDER!==t)throw new Error(\\\"Field.ORDER must match order: Fp == p, Fn == n\\\");return ete(e),e}else return Hu(t,{isLE:r})}function TAe(t,e,r={},n){if(n===void 0&&(n=t===\\\"edwards\\\"),!e||typeof e!=\\\"object\\\")throw new Error(`expected valid ${t} CURVE object`);for(let c of[\\\"p\\\",\\\"n\\\",\\\"h\\\"]){let l=e[c];if(!(typeof l==\\\"bigint\\\"&&l>Z3))throw new Error(`CURVE.${c} must be positive bigint`)}let i=EAe(e.p,r.Fp,n),s=EAe(e.n,r.Fn,n),a=[\\\"Gx\\\",\\\"Gy\\\",\\\"a\\\",t===\\\"weierstrass\\\"?\\\"b\\\":\\\"d\\\"];for(let c of a)if(!i.isValid(e[c]))throw new Error(`CURVE.${c} must be valid field element of CURVE.Fp`);return e=Object.freeze(Object.assign({},e)),{CURVE:e,Fp:i,Fn:s}}var Z3,Nv,ite,CAe,QL,IAe=x(()=>{u();QT();aI();Z3=BigInt(0),Nv=BigInt(1);ite=new WeakMap,CAe=new WeakMap;QL=class{constructor(e,r){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=r}_unsafeLadder(e,r,n=this.ZERO){let i=e;for(;r>Z3;)r&Nv&&(n=n.add(i)),i=i.double(),r>>=Nv;return n}precomputeWindow(e,r){let{windows:n,windowSize:i}=nte(r,this.bits),s=[],o=e,a=o;for(let c=0;c<n;c++){a=o,s.push(a);for(let l=1;l<i;l++)a=a.add(o),s.push(a);o=a.double()}return s}wNAF(e,r,n){if(!this.Fn.isValid(n))throw new Error(\\\"invalid scalar\\\");let i=this.ZERO,s=this.BASE,o=nte(e,this.bits);for(let a=0;a<o.windows;a++){let{nextN:c,offset:l,isZero:d,isNeg:f,isNegF:p,offsetF:h}=vAe(n,a,o);n=c,d?s=s.add(cI(p,r[h])):i=i.add(cI(f,r[l]))}return xAe(n),{p:i,f:s}}wNAFUnsafe(e,r,n,i=this.ZERO){let s=nte(e,this.bits);for(let o=0;o<s.windows&&n!==Z3;o++){let{nextN:a,offset:c,isZero:l,isNeg:d}=vAe(n,o,s);if(n=a,!l){let f=r[c];i=i.add(d?f.negate():f)}}return xAe(n),i}getPrecomputes(e,r,n){let i=ite.get(r);return i||(i=this.precomputeWindow(r,e),e!==1&&(typeof n==\\\"function\\\"&&(i=n(i)),ite.set(r,i))),i}cached(e,r,n){let i=ste(e);return this.wNAF(i,this.getPrecomputes(i,e,n),r)}unsafe(e,r,n,i){let s=ste(e);return s===1?this._unsafeLadder(e,r,i):this.wNAFUnsafe(s,this.getPrecomputes(s,e,n),r,i)}createCache(e,r){_Ae(r,this.bits),CAe.set(e,r),ite.delete(e)}hasCache(e){return ste(e)!==1}}});function Mgt(t,e,r){let[[n,i],[s,o]]=e,a=RAe(o*t,r),c=RAe(-i*t,r),l=t-a*n-c*s,d=-a*i-c*o,f=l<r0,p=d<r0;f&&(l=-l),p&&(d=-d);let h=Xm(Math.ceil(KT(r)/2))+J3;if(l<r0||l>=h||d<r0||d>=h)throw new Error(\\\"splitScalar (endomorphism): failed, k=\\\"+t);return{k1neg:f,k1:l,k2neg:p,k2:d}}function ate(t){if(![\\\"compact\\\",\\\"recovered\\\",\\\"der\\\"].includes(t))throw new Error('Signature format must be \\\"compact\\\", \\\"recovered\\\", or \\\"der\\\"');return t}function ote(t,e){let r={};for(let n of Object.keys(e))r[n]=t[n]===void 0?e[n]:t[n];return WT(r.lowS,\\\"lowS\\\"),WT(r.prehash,\\\"prehash\\\"),r.format!==void 0&&ate(r.format),r}function Q3(t,e){let{BYTES:r}=t,n;if(typeof e==\\\"bigint\\\")n=e;else{let i=Ho(\\\"private key\\\",e);try{n=t.fromBytes(i)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof e}`)}}if(!t.isValidNot0(n))throw new Error(\\\"invalid private key: out of range [1..N-1]\\\");return n}function Lgt(t,e={}){let r=TAe(\\\"weierstrass\\\",t,e),{Fp:n,Fn:i}=r,s=r.CURVE,{h:o,n:a}=s;ZT(e,{},{allowInfinityPoint:\\\"boolean\\\",clearCofactor:\\\"function\\\",isTorsionFree:\\\"function\\\",fromBytes:\\\"function\\\",toBytes:\\\"function\\\",endo:\\\"object\\\",wrapPrivateKey:\\\"boolean\\\"});let{endo:c}=e;if(c&&(!n.is0(s.a)||typeof c.beta!=\\\"bigint\\\"||!Array.isArray(c.basises)))throw new Error('invalid endo: expected \\\"beta\\\": bigint and \\\"basises\\\": array');let l=NAe(n,i);function d(){if(!n.isOdd)throw new Error(\\\"compression is not supported: Field does not have .isOdd()\\\")}function f(F,R,y){let{x:E,y:C}=R.toAffine(),I=n.toBytes(E);if(WT(y,\\\"isCompressed\\\"),y){d();let P=!n.isOdd(C);return Ec(OAe(P),I)}else return Ec(Uint8Array.of(4),I,n.toBytes(C))}function p(F){zy(F,void 0,\\\"Point\\\");let{publicKey:R,publicKeyUncompressed:y}=l,E=F.length,C=F[0],I=F.subarray(1);if(E===R&&(C===2||C===3)){let P=n.fromBytes(I);if(!n.isValid(P))throw new Error(\\\"bad point: is not on curve, wrong x\\\");let k=g(P),U;try{U=n.sqrt(k)}catch(j){let K=j instanceof Error?\\\": \\\"+j.message:\\\"\\\";throw new Error(\\\"bad point: is not on curve, sqrt error\\\"+K)}d();let D=n.isOdd(U);return(C&1)===1!==D&&(U=n.neg(U)),{x:P,y:U}}else if(E===y&&C===4){let P=n.BYTES,k=n.fromBytes(I.subarray(0,P)),U=n.fromBytes(I.subarray(P,P*2));if(!w(k,U))throw new Error(\\\"bad point: is not on curve\\\");return{x:k,y:U}}else throw new Error(`bad point: got length ${E}, expected compressed=${R} or uncompressed=${y}`)}let h=e.toBytes||f,m=e.fromBytes||p;function g(F){let R=n.sqr(F),y=n.mul(R,F);return n.add(n.add(y,n.mul(F,s.a)),s.b)}function w(F,R){let y=n.sqr(R),E=g(F);return n.eql(y,E)}if(!w(s.Gx,s.Gy))throw new Error(\\\"bad curve params: generator point\\\");let v=n.mul(n.pow(s.a,YL),Dgt),b=n.mul(n.sqr(s.b),BigInt(27));if(n.is0(n.add(v,b)))throw new Error(\\\"bad curve params: a or b\\\");function _(F,R,y=!1){if(!n.isValid(R)||y&&n.is0(R))throw new Error(`bad point coordinate ${F}`);return R}function S(F){if(!(F instanceof B))throw new Error(\\\"ProjectivePoint expected\\\")}function T(F){if(!c||!c.basises)throw new Error(\\\"no endo\\\");return Mgt(F,c.basises,i.ORDER)}let N=TL((F,R)=>{let{X:y,Y:E,Z:C}=F;if(n.eql(C,n.ONE))return{x:y,y:E};let I=F.is0();R==null&&(R=I?n.ONE:n.inv(C));let P=n.mul(y,R),k=n.mul(E,R),U=n.mul(C,R);if(I)return{x:n.ZERO,y:n.ZERO};if(!n.eql(U,n.ONE))throw new Error(\\\"invZ was invalid\\\");return{x:P,y:k}}),O=TL(F=>{if(F.is0()){if(e.allowInfinityPoint&&!n.is0(F.Y))return;throw new Error(\\\"bad point: ZERO\\\")}let{x:R,y}=F.toAffine();if(!n.isValid(R)||!n.isValid(y))throw new Error(\\\"bad point: x or y not field elements\\\");if(!w(R,y))throw new Error(\\\"bad point: equation left != right\\\");if(!F.isTorsionFree())throw new Error(\\\"bad point: not in prime-order subgroup\\\");return!0});function L(F,R,y,E,C){return y=new B(n.mul(y.X,F),y.Y,y.Z),R=cI(E,R),y=cI(C,y),R.add(y)}class B{constructor(R,y,E){this.X=_(\\\"x\\\",R),this.Y=_(\\\"y\\\",y,!0),this.Z=_(\\\"z\\\",E),Object.freeze(this)}static CURVE(){return s}static fromAffine(R){let{x:y,y:E}=R||{};if(!R||!n.isValid(y)||!n.isValid(E))throw new Error(\\\"invalid affine point\\\");if(R instanceof B)throw new Error(\\\"projective point not allowed\\\");return n.is0(y)&&n.is0(E)?B.ZERO:new B(y,E,n.ONE)}static fromBytes(R){let y=B.fromAffine(m(zy(R,void 0,\\\"point\\\")));return y.assertValidity(),y}static fromHex(R){return B.fromBytes(Ho(\\\"pointHex\\\",R))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(R=8,y=!0){return M.createCache(this,R),y||this.multiply(YL),this}assertValidity(){O(this)}hasEvenY(){let{y:R}=this.toAffine();if(!n.isOdd)throw new Error(\\\"Field doesn't support isOdd\\\");return!n.isOdd(R)}equals(R){S(R);let{X:y,Y:E,Z:C}=this,{X:I,Y:P,Z:k}=R,U=n.eql(n.mul(y,k),n.mul(I,C)),D=n.eql(n.mul(E,k),n.mul(P,C));return U&&D}negate(){return new B(this.X,n.neg(this.Y),this.Z)}double(){let{a:R,b:y}=s,E=n.mul(y,YL),{X:C,Y:I,Z:P}=this,k=n.ZERO,U=n.ZERO,D=n.ZERO,A=n.mul(C,C),j=n.mul(I,I),K=n.mul(P,P),J=n.mul(C,I);return J=n.add(J,J),D=n.mul(C,P),D=n.add(D,D),k=n.mul(R,D),U=n.mul(E,K),U=n.add(k,U),k=n.sub(j,U),U=n.add(j,U),U=n.mul(k,U),k=n.mul(J,k),D=n.mul(E,D),K=n.mul(R,K),J=n.sub(A,K),J=n.mul(R,J),J=n.add(J,D),D=n.add(A,A),A=n.add(D,A),A=n.add(A,K),A=n.mul(A,J),U=n.add(U,A),K=n.mul(I,P),K=n.add(K,K),A=n.mul(K,J),k=n.sub(k,A),D=n.mul(K,j),D=n.add(D,D),D=n.add(D,D),new B(k,U,D)}add(R){S(R);let{X:y,Y:E,Z:C}=this,{X:I,Y:P,Z:k}=R,U=n.ZERO,D=n.ZERO,A=n.ZERO,j=s.a,K=n.mul(s.b,YL),J=n.mul(y,I),X=n.mul(E,P),re=n.mul(C,k),fe=n.add(y,E),ce=n.add(I,P);fe=n.mul(fe,ce),ce=n.add(J,X),fe=n.sub(fe,ce),ce=n.add(y,C);let We=n.add(I,k);return ce=n.mul(ce,We),We=n.add(J,re),ce=n.sub(ce,We),We=n.add(E,C),U=n.add(P,k),We=n.mul(We,U),U=n.add(X,re),We=n.sub(We,U),A=n.mul(j,ce),U=n.mul(K,re),A=n.add(U,A),U=n.sub(X,A),A=n.add(X,A),D=n.mul(U,A),X=n.add(J,J),X=n.add(X,J),re=n.mul(j,re),ce=n.mul(K,ce),X=n.add(X,re),re=n.sub(J,re),re=n.mul(j,re),ce=n.add(ce,re),J=n.mul(X,ce),D=n.add(D,J),J=n.mul(We,ce),U=n.mul(fe,U),U=n.sub(U,J),J=n.mul(fe,X),A=n.mul(We,A),A=n.add(A,J),new B(U,D,A)}subtract(R){return this.add(R.negate())}is0(){return this.equals(B.ZERO)}multiply(R){let{endo:y}=e;if(!i.isValidNot0(R))throw new Error(\\\"invalid scalar: out of range\\\");let E,C,I=P=>M.cached(this,P,k=>JL(B,k));if(y){let{k1neg:P,k1:k,k2neg:U,k2:D}=T(R),{p:A,f:j}=I(k),{p:K,f:J}=I(D);C=j.add(J),E=L(y.beta,A,K,P,U)}else{let{p:P,f:k}=I(R);E=P,C=k}return JL(B,[E,C])[0]}multiplyUnsafe(R){let{endo:y}=e,E=this;if(!i.isValid(R))throw new Error(\\\"invalid scalar: out of range\\\");if(R===r0||E.is0())return B.ZERO;if(R===J3)return E;if(M.hasCache(this))return this.multiply(R);if(y){let{k1neg:C,k1:I,k2neg:P,k2:k}=T(R),{p1:U,p2:D}=SAe(B,E,I,k);return L(y.beta,U,D,C,P)}else return M.unsafe(E,R)}multiplyAndAddUnsafe(R,y,E){let C=this.multiplyUnsafe(y).add(R.multiplyUnsafe(E));return C.is0()?void 0:C}toAffine(R){return N(this,R)}isTorsionFree(){let{isTorsionFree:R}=e;return o===J3?!0:R?R(B,this):M.unsafe(this,a).is0()}clearCofactor(){let{clearCofactor:R}=e;return o===J3?this:R?R(B,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(R=!0){return WT(R,\\\"isCompressed\\\"),this.assertValidity(),h(B,this,R)}toHex(R=!0){return Yf(this.toBytes(R))}toString(){return`<Point ${this.is0()?\\\"ZERO\\\":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(R=!0){return this.toBytes(R)}_setWindowSize(R){this.precompute(R)}static normalizeZ(R){return JL(B,R)}static msm(R,y){return AAe(B,i,R,y)}static fromPrivateKey(R){return B.BASE.multiply(Q3(i,R))}}B.BASE=new B(s.Gx,s.Gy,n.ONE),B.ZERO=new B(n.ZERO,n.ONE,n.ZERO),B.Fp=n,B.Fn=i;let H=i.BITS,M=new QL(B,e.endo?Math.ceil(H/2):H);return B.BASE.precompute(8),B}function OAe(t){return Uint8Array.of(t?2:3)}function NAe(t,e){return{secretKey:e.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*e.BYTES}}function Ugt(t,e={}){let{Fn:r}=t,n=e.randomBytes||am,i=Object.assign(NAe(t.Fp,r),{seed:tte(r.ORDER)});function s(h){try{return!!Q3(r,h)}catch{return!1}}function o(h,m){let{publicKey:g,publicKeyUncompressed:w}=i;try{let v=h.length;return m===!0&&v!==g||m===!1&&v!==w?!1:!!t.fromBytes(h)}catch{return!1}}function a(h=n(i.seed)){return rte(zy(h,i.seed,\\\"seed\\\"),r.ORDER)}function c(h,m=!0){return t.BASE.multiply(Q3(r,h)).toBytes(m)}function l(h){let m=a(h);return{secretKey:m,publicKey:c(m)}}function d(h){if(typeof h==\\\"bigint\\\")return!1;if(h instanceof t)return!0;let{secretKey:m,publicKey:g,publicKeyUncompressed:w}=i;if(r.allowedLengths||m===g)return;let v=Ho(\\\"key\\\",h).length;return v===g||v===w}function f(h,m,g=!0){if(d(h)===!0)throw new Error(\\\"first arg must be private key\\\");if(d(m)===!1)throw new Error(\\\"second arg must be public key\\\");let w=Q3(r,h);return t.fromHex(m).multiply(w).toBytes(g)}return Object.freeze({getPublicKey:c,getSharedSecret:f,keygen:l,Point:t,utils:{isValidSecretKey:s,isValidPublicKey:o,randomSecretKey:a,isValidPrivateKey:s,randomPrivateKey:a,normPrivateKeyToScalar:h=>Q3(r,h),precompute(h=8,m=t.BASE){return m.precompute(h,!1)}},lengths:i})}function Fgt(t,e,r={}){pN(e),ZT(r,{},{hmac:\\\"function\\\",lowS:\\\"boolean\\\",randomBytes:\\\"function\\\",bits2int:\\\"function\\\",bits2int_modN:\\\"function\\\"});let n=r.randomBytes||am,i=r.hmac||((y,...E)=>eA(e,y,Ec(...E))),{Fp:s,Fn:o}=t,{ORDER:a,BITS:c}=o,{keygen:l,getPublicKey:d,getSharedSecret:f,utils:p,lengths:h}=Ugt(t,r),m={prehash:!1,lowS:typeof r.lowS==\\\"boolean\\\"?r.lowS:!1,format:void 0,extraEntropy:!1},g=\\\"compact\\\";function w(y){let E=a>>J3;return y>E}function v(y,E){if(!o.isValidNot0(E))throw new Error(`invalid signature ${y}: out of range 1..Point.Fn.ORDER`);return E}function b(y,E){ate(E);let C=h.signature,I=E===\\\"compact\\\"?C:E===\\\"recovered\\\"?C+1:void 0;return zy(y,I,`${E} signature`)}class _{constructor(E,C,I){this.r=v(\\\"r\\\",E),this.s=v(\\\"s\\\",C),I!=null&&(this.recovery=I),Object.freeze(this)}static fromBytes(E,C=g){b(E,C);let I;if(C===\\\"der\\\"){let{r:D,s:A}=t0.toSig(zy(E));return new _(D,A)}C===\\\"recovered\\\"&&(I=E[0],C=\\\"compact\\\",E=E.subarray(1));let P=o.BYTES,k=E.subarray(0,P),U=E.subarray(P,P*2);return new _(o.fromBytes(k),o.fromBytes(U),I)}static fromHex(E,C){return this.fromBytes(Bg(E),C)}addRecoveryBit(E){return new _(this.r,this.s,E)}recoverPublicKey(E){let C=s.ORDER,{r:I,s:P,recovery:k}=this;if(k==null||![0,1,2,3].includes(k))throw new Error(\\\"recovery id invalid\\\");if(a*PAe<C&&k>1)throw new Error(\\\"recovery id is ambiguous for h>1 curve\\\");let D=k===2||k===3?I+a:I;if(!s.isValid(D))throw new Error(\\\"recovery id 2 or 3 invalid\\\");let A=s.toBytes(D),j=t.fromBytes(Ec(OAe((k&1)===0),A)),K=o.inv(D),J=T(Ho(\\\"msgHash\\\",E)),X=o.create(-J*K),re=o.create(P*K),fe=t.BASE.multiplyUnsafe(X).add(j.multiplyUnsafe(re));if(fe.is0())throw new Error(\\\"point at infinify\\\");return fe.assertValidity(),fe}hasHighS(){return w(this.s)}toBytes(E=g){if(ate(E),E===\\\"der\\\")return Bg(t0.hexFromSig(this));let C=o.toBytes(this.r),I=o.toBytes(this.s);if(E===\\\"recovered\\\"){if(this.recovery==null)throw new Error(\\\"recovery bit must be present\\\");return Ec(Uint8Array.of(this.recovery),C,I)}return Ec(C,I)}toHex(E){return Yf(this.toBytes(E))}assertValidity(){}static fromCompact(E){return _.fromBytes(Ho(\\\"sig\\\",E),\\\"compact\\\")}static fromDER(E){return _.fromBytes(Ho(\\\"sig\\\",E),\\\"der\\\")}normalizeS(){return this.hasHighS()?new _(this.r,o.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes(\\\"der\\\")}toDERHex(){return Yf(this.toBytes(\\\"der\\\"))}toCompactRawBytes(){return this.toBytes(\\\"compact\\\")}toCompactHex(){return Yf(this.toBytes(\\\"compact\\\"))}}let S=r.bits2int||function(E){if(E.length>8192)throw new Error(\\\"input is too large\\\");let C=Tv(E),I=E.length*8-c;return I>0?C>>BigInt(I):C},T=r.bits2int_modN||function(E){return o.create(S(E))},N=Xm(c);function O(y){return Aee(\\\"num < 2^\\\"+c,y,r0,N),o.toBytes(y)}function L(y,E){return zy(y,void 0,\\\"message\\\"),E?zy(e(y),void 0,\\\"prehashed message\\\"):y}function B(y,E,C){if([\\\"recovered\\\",\\\"canonical\\\"].some(X=>X in C))throw new Error(\\\"sign() legacy options not supported\\\");let{lowS:I,prehash:P,extraEntropy:k}=ote(C,m);y=L(y,P);let U=T(y),D=Q3(o,E),A=[O(D),O(U)];if(k!=null&&k!==!1){let X=k===!0?n(h.secretKey):k;A.push(Ho(\\\"extraEntropy\\\",X))}let j=Ec(...A),K=U;function J(X){let re=S(X);if(!o.isValidNot0(re))return;let fe=o.inv(re),ce=t.BASE.multiply(re).toAffine(),We=o.create(ce.x);if(We===r0)return;let Ue=o.create(fe*o.create(K+We*D));if(Ue===r0)return;let je=(ce.x===We?0:2)|Number(ce.y&J3),Lt=Ue;return I&&w(Ue)&&(Lt=o.neg(Ue),je^=1),new _(We,Lt,je)}return{seed:j,k2sig:J}}function H(y,E,C={}){y=Ho(\\\"message\\\",y);let{seed:I,k2sig:P}=B(y,E,C);return Tee(e.outputLen,o.BYTES,i)(I,P)}function M(y){let E,C=typeof y==\\\"string\\\"||kg(y),I=!C&&y!==null&&typeof y==\\\"object\\\"&&typeof y.r==\\\"bigint\\\"&&typeof y.s==\\\"bigint\\\";if(!C&&!I)throw new Error(\\\"invalid signature, expected Uint8Array, hex string or Signature instance\\\");if(I)E=new _(y.r,y.s);else if(C){try{E=_.fromBytes(Ho(\\\"sig\\\",y),\\\"der\\\")}catch(P){if(!(P instanceof t0.Err))throw P}if(!E)try{E=_.fromBytes(Ho(\\\"sig\\\",y),\\\"compact\\\")}catch{return!1}}return E||!1}function F(y,E,C,I={}){let{lowS:P,prehash:k,format:U}=ote(I,m);if(C=Ho(\\\"publicKey\\\",C),E=L(Ho(\\\"message\\\",E),k),\\\"strict\\\"in I)throw new Error(\\\"options.strict was renamed to lowS\\\");let D=U===void 0?M(y):_.fromBytes(Ho(\\\"sig\\\",y),U);if(D===!1)return!1;try{let A=t.fromBytes(C);if(P&&D.hasHighS())return!1;let{r:j,s:K}=D,J=T(E),X=o.inv(K),re=o.create(J*X),fe=o.create(j*X),ce=t.BASE.multiplyUnsafe(re).add(A.multiplyUnsafe(fe));return ce.is0()?!1:o.create(ce.x)===j}catch{return!1}}function R(y,E,C={}){let{prehash:I}=ote(C,m);return E=L(E,I),_.fromBytes(y,\\\"recovered\\\").recoverPublicKey(E).toBytes()}return Object.freeze({keygen:l,getPublicKey:d,getSharedSecret:f,utils:p,lengths:h,Point:t,sign:H,verify:F,recoverPublicKey:R,Signature:_,hash:e})}function jgt(t){let e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,n=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(o=>Math.ceil(o/2)))):void 0,i=Hu(e.n,{BITS:t.nBitLength,allowedLengths:n,modFromBytes:t.wrapPrivateKey}),s={Fp:r,Fn:i,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:e,curveOpts:s}}function Hgt(t){let{CURVE:e,curveOpts:r}=jgt(t),n={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:r,hash:t.hash,ecdsaOpts:n}}function qgt(t,e){let r=e.Point;return Object.assign({},e,{ProjectivePoint:r,CURVE:Object.assign({},t,ZL(r.Fn.ORDER,r.Fn.BITS))})}function kAe(t){let{CURVE:e,curveOpts:r,hash:n,ecdsaOpts:i}=Hgt(t),s=Lgt(e,r),o=Fgt(s,n,i);return qgt(t,o)}var RAe,cte,t0,r0,J3,PAe,YL,Dgt,BAe=x(()=>{u();AZ();Md();QT();IAe();aI();RAe=(t,e)=>(t+(t>=0?e:-e)/PAe)/e;cte=class extends Error{constructor(e=\\\"\\\"){super(e)}},t0={Err:cte,_tlv:{encode:(t,e)=>{let{Err:r}=t0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length&1)throw new r(\\\"tlv.encode: unpadded data\\\");let n=e.length/2,i=F3(n);if(i.length/2&128)throw new r(\\\"tlv.encode: long form length too big\\\");let s=n>127?F3(i.length/2|128):\\\"\\\";return F3(t)+s+i+e},decode(t,e){let{Err:r}=t0,n=0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length<2||e[n++]!==t)throw new r(\\\"tlv.decode: wrong tlv\\\");let i=e[n++],s=!!(i&128),o=0;if(!s)o=i;else{let c=i&127;if(!c)throw new r(\\\"tlv.decode(long): indefinite length not supported\\\");if(c>4)throw new r(\\\"tlv.decode(long): byte length is too big\\\");let l=e.subarray(n,n+c);if(l.length!==c)throw new r(\\\"tlv.decode: length bytes not complete\\\");if(l[0]===0)throw new r(\\\"tlv.decode(long): zero leftmost byte\\\");for(let d of l)o=o<<8|d;if(n+=c,o<128)throw new r(\\\"tlv.decode(long): not minimal encoding\\\")}let a=e.subarray(n,n+o);if(a.length!==o)throw new r(\\\"tlv.decode: wrong value length\\\");return{v:a,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=t0;if(t<r0)throw new e(\\\"integer: negative integers are not allowed\\\");let r=F3(t);if(Number.parseInt(r[0],16)&8&&(r=\\\"00\\\"+r),r.length&1)throw new e(\\\"unexpected DER parsing assertion: unpadded hex\\\");return r},decode(t){let{Err:e}=t0;if(t[0]&128)throw new e(\\\"invalid signature integer: negative\\\");if(t[0]===0&&!(t[1]&128))throw new e(\\\"invalid signature integer: unnecessary leading zero\\\");return Tv(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=t0,i=Ho(\\\"signature\\\",t),{v:s,l:o}=n.decode(48,i);if(o.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");let{v:a,l:c}=n.decode(2,s),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(t){let{_tlv:e,_int:r}=t0,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s)),s=n+i;return e.encode(48,s)}},r0=BigInt(0),J3=BigInt(1),PAe=BigInt(2),YL=BigInt(3),Dgt=BigInt(4)});function Y3(t,e){let r=n=>kAe({...t,hash:n});return{...r(e),create:r}}var lte=x(()=>{u();BAe();});function $gt(t){let e=dte.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,d=l*l*t%e,f=Il(d,r,e)*d%e,p=Il(f,r,e)*d%e,h=Il(p,MAe,e)*l%e,m=Il(h,i,e)*h%e,g=Il(m,s,e)*m%e,w=Il(g,a,e)*g%e,v=Il(w,c,e)*w%e,b=Il(v,a,e)*g%e,_=Il(b,r,e)*d%e,S=Il(_,o,e)*m%e,T=Il(S,n,e)*l%e,N=Il(T,MAe,e);if(!ute.eql(ute.sqr(N),t))throw new Error(\\\"Cannot find square root\\\");return N}var dte,zgt,MAe,ute,XL,DAe=x(()=>{u();XS();lte();aI();dte={p:BigInt(\\\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\\\"),n:BigInt(\\\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\\\"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(\\\"0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\\\"),Gy:BigInt(\\\"0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\\\")},zgt={beta:BigInt(\\\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\\\"),basises:[[BigInt(\\\"0x3086d221a7d46bcde86c90e49284eb15\\\"),-BigInt(\\\"0xe4437ed6010e88286f547fa90abfe4c3\\\")],[BigInt(\\\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\\\"),BigInt(\\\"0x3086d221a7d46bcde86c90e49284eb15\\\")]]},MAe=BigInt(2);ute=Hu(dte.p,{sqrt:$gt}),XL=Y3({...dte,Fp:ute,lowS:!0,endo:zgt},Ud)});var Bv={};ue(Bv,{InvalidRError:()=>tU,InvalidSError:()=>rU,InvalidSerializedSizeError:()=>eU,InvalidVError:()=>nU,InvalidYParityError:()=>kv,MissingPropertiesError:()=>X3,assert:()=>iU,extract:()=>Vgt,from:()=>fte,fromBytes:()=>LAe,fromDerBytes:()=>Wgt,fromDerHex:()=>UAe,fromHex:()=>lI,fromLegacy:()=>FAe,fromRpc:()=>jAe,fromTuple:()=>Ggt,toBytes:()=>Kgt,toDerBytes:()=>Zgt,toDerHex:()=>Qgt,toHex:()=>HAe,toLegacy:()=>Jgt,toRpc:()=>Ygt,toTuple:()=>Xgt,vToYParity:()=>sU,validate:()=>eyt,yParityToV:()=>pte});function iU(t,e={}){let{recovered:r}=e;if(typeof t.r>\\\"u\\\")throw new X3({signature:t});if(typeof t.s>\\\"u\\\")throw new X3({signature:t});if(r&&typeof t.yParity>\\\"u\\\")throw new X3({signature:t});if(t.r<0n||t.r>Gee)throw new tU({value:t.r});if(t.s<0n||t.s>Gee)throw new rU({value:t.s});if(typeof t.yParity==\\\"number\\\"&&t.yParity!==0&&t.yParity!==1)throw new kv({value:t.yParity})}function LAe(t){return lI(Xi(t))}function lI(t){if(t.length!==130&&t.length!==132)throw new eU({signature:t});let e=BigInt(Fu(t,0,32)),r=BigInt(Fu(t,32,64)),n=(()=>{let i=+`0x${t.slice(130)}`;if(!Number.isNaN(i))try{return sU(i)}catch{throw new kv({value:i})}})();return typeof n>\\\"u\\\"?{r:e,s:r}:{r:e,s:r,yParity:n}}function Vgt(t){if(!(typeof t.r>\\\"u\\\")&&!(typeof t.s>\\\"u\\\"))return fte(t)}function fte(t){let e=typeof t==\\\"string\\\"?lI(t):t instanceof Uint8Array?LAe(t):typeof t.r==\\\"string\\\"?jAe(t):t.v?FAe(t):{r:t.r,s:t.s,...typeof t.yParity<\\\"u\\\"?{yParity:t.yParity}:{}};return iU(e),e}function Wgt(t){return UAe(Xi(t))}function UAe(t){let{r:e,s:r}=XL.Signature.fromDER(q3(t).slice(2));return{r:e,s:r}}function FAe(t){return{r:t.r,s:t.s,yParity:sU(t.v)}}function jAe(t){let e=(()=>{let r=t.v?Number(t.v):void 0,n=t.yParity?Number(t.yParity):void 0;if(typeof r==\\\"number\\\"&&typeof n!=\\\"number\\\"&&(n=sU(r)),typeof n!=\\\"number\\\")throw new kv({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}function Ggt(t){let[e,r,n]=t;return fte({r:r===\\\"0x\\\"?0n:BigInt(r),s:n===\\\"0x\\\"?0n:BigInt(n),yParity:e===\\\"0x\\\"?0:Number(e)})}function Kgt(t){return lo(HAe(t))}function HAe(t){iU(t);let e=t.r,r=t.s;return nf(As(e,{size:32}),As(r,{size:32}),typeof t.yParity==\\\"number\\\"?As(pte(t.yParity),{size:1}):\\\"0x\\\")}function Zgt(t){return new XL.Signature(t.r,t.s).toDERRawBytes()}function Qgt(t){return`0x${new XL.Signature(t.r,t.s).toDERHex()}`}function Jgt(t){return{r:t.r,s:t.s,v:pte(t.yParity)}}function Ygt(t){let{r:e,s:r,yParity:n}=t;return{r:As(e,{size:32}),s:As(r,{size:32}),yParity:n===0?\\\"0x0\\\":\\\"0x1\\\"}}function Xgt(t){let{r:e,s:r,yParity:n}=t;return[n?\\\"0x01\\\":\\\"0x\\\",e===0n?\\\"0x\\\":iI(As(e)),r===0n?\\\"0x\\\":iI(As(r))]}function eyt(t,e={}){try{return iU(t,e),!0}catch{return!1}}function sU(t){if(t===0||t===27)return 0;if(t===1||t===28)return 1;if(t>=35)return t%2===0?1:0;throw new nU({value:t})}function pte(t){if(t===0)return 27;if(t===1)return 28;throw new kv({value:t})}var eU,X3,tU,rU,kv,nU,hte=x(()=>{u();DAe();Uu();Ym();Rp();j3();GL();eU=class extends Nt{constructor({signature:e}){super(`Value \\\\`${e}\\\\` is an invalid signature size.`,{metaMessages:[\\\"Expected: 64 bytes or 65 bytes.\\\",`Received ${Ga(q3(e))} bytes.`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidSerializedSizeError\\\"})}},X3=class extends Nt{constructor({signature:e}){super(`Signature \\\\`${$y(e)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.MissingPropertiesError\\\"})}},tU=class extends Nt{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidRError\\\"})}},rU=class extends Nt{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidSError\\\"})}},kv=class extends Nt{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidYParityError\\\"})}},nU=class extends Nt{constructor({value:e}){super(`Value \\\\`${e}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Signature.InvalidVError\\\"})}}});var qAe=x(()=>{u()});var zAe=x(()=>{u()});function syt(t,e={}){let{pad:r=!0,url:n=!1}=e,i=new Uint8Array(Math.ceil(t.length/3)*4);for(let c=0,l=0;l<t.length;c+=4,l+=3){let d=(t[l]<<16)+(t[l+1]<<8)+(t[l+2]|0);i[c]=oU[d>>18],i[c+1]=oU[d>>12&63],i[c+2]=oU[d>>6&63],i[c+3]=oU[d&63]}let s=t.length%3,o=Math.floor(t.length/3)*4+(s&&s+1),a=iyt.decode(new Uint8Array(i.buffer,0,o));return r&&s===1&&(a+=\\\"==\\\"),r&&s===2&&(a+=\\\"=\\\"),n&&(a=a.replaceAll(\\\"+\\\",\\\"-\\\").replaceAll(\\\"/\\\",\\\"_\\\")),a}function $Ae(t,e={}){return syt(lo(t),e)}function cU(t){let e=t.replace(/=+$/,\\\"\\\"),r=e.length,n=new Uint8Array(r+3);nyt.encodeInto(e+\\\"===\\\",n);for(let s=0,o=0;s<e.length;s+=4,o+=3){let a=(aU[n[s]]<<18)+(aU[n[s+1]]<<12)+(aU[n[s+2]]<<6)+aU[n[s+3]];n[o]=a>>16,n[o+1]=a>>8&255,n[o+2]=a&255}let i=(r>>2)*3+(r%4&&r%4-1);return new Uint8Array(n.buffer,0,i)}var nyt,iyt,oU,aU,mte=x(()=>{u();Uu();nyt=new TextEncoder,iyt=new TextDecoder,oU=Object.fromEntries(Array.from(\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\").map((t,e)=>[e,t.charCodeAt(0)])),aU={...Object.fromEntries(Array.from(\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\").map((t,e)=>[t.charCodeAt(0),e])),61:0,45:62,95:63}});var WAe=x(()=>{u()});var GAe=x(()=>{u()});var KAe,cyt,ZAe,lyt,T$r,QAe=x(()=>{u();KAe=6,cyt=32,ZAe=4096,lyt=cyt*ZAe,T$r=lyt*KAe-1-1*ZAe*KAe});var JAe=x(()=>{u()});var YAe=x(()=>{u()});var XAe=x(()=>{u()});var eTe=x(()=>{u()});var tTe=x(()=>{u()});var rTe=x(()=>{u()});var nTe=x(()=>{u()});var iTe=x(()=>{u()});var wyt,vyt,xyt,Eyt,sTe,oTe,aTe,_yt,Cyt,L$r,U$r,F$r,j$r,cTe=x(()=>{u();wyt=44032,vyt=4352,xyt=4449,Eyt=4519,sTe=19,oTe=21,aTe=28,_yt=oTe*aTe,Cyt=sTe*_yt,L$r=wyt+Cyt,U$r=vyt+sTe,F$r=xyt+oTe,j$r=Eyt+aTe});var lTe=x(()=>{u();cTe()});var uTe=x(()=>{u()});var dTe=x(()=>{u()});var fTe=x(()=>{u()});var pTe=x(()=>{u()});var hTe=x(()=>{u()});var mTe=x(()=>{u();K8e()});var gTe=x(()=>{u()});var Fc,gte,yte,bte,wte,vte,xte,Ete,_te,Cte,Ste,Ate,Tte,yTe=x(()=>{u();Fc=class extends Error{constructor(e){let{code:r,message:n,data:i}=e;super(n),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.BaseError\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"data\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r,this.data=i}},gte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Missing or invalid parameters.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.InvalidInputError\\\"})}};Object.defineProperty(gte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});yte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Requested resource not found.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.ResourceNotFoundError\\\"})}};Object.defineProperty(yte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});bte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Requested resource not available.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.ResourceUnavailableError\\\"})}};Object.defineProperty(bte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});wte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Transaction creation failed.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.TransactionRejectedError\\\"})}};Object.defineProperty(wte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});vte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Method is not implemented.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.MethodNotSupportedError\\\"})}};Object.defineProperty(vte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});xte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Rate limit exceeded.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.LimitExceededError\\\"})}};Object.defineProperty(xte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});Ete=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"JSON-RPC version not supported.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.VersionNotSupportedError\\\"})}};Object.defineProperty(Ete,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});_te=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Input is not a valid JSON-RPC request.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.InvalidRequestError\\\"})}};Object.defineProperty(_te,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});Cte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Method does not exist.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.MethodNotFoundError\\\"})}};Object.defineProperty(Cte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});Ste=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Invalid method parameters.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.InvalidParamsError\\\"})}};Object.defineProperty(Ste,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});Ate=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Internal JSON-RPC error.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.InternalError\\\"})}};Object.defineProperty(Ate,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});Tte=class t extends Fc{constructor(e={}){super({code:t.code,data:e.data,message:e.message??\\\"Failed to parse JSON-RPC response.\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"RpcResponse.ParseError\\\"})}};Object.defineProperty(Tte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:-32700})});var Mv,Ite,Rte,Pte,Ote,Nte,bTe=x(()=>{u();aM();Mv=class extends Error{constructor(e,r){super(r),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ProviderRpcError\\\"}),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=r}},Ite=class extends Mv{constructor({message:e=\\\"The user rejected the request.\\\"}={}){super(4001,e),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Provider.UserRejectedRequestError\\\"})}};Object.defineProperty(Ite,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4001});Rte=class extends Mv{constructor({message:e=\\\"The requested method and/or account has not been authorized by the user.\\\"}={}){super(4100,e),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Provider.UnauthorizedError\\\"})}};Object.defineProperty(Rte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4100});Pte=class extends Mv{constructor({message:e=\\\"The provider does not support the requested method.\\\"}={}){super(4200,e),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Provider.UnsupportedMethodError\\\"})}};Object.defineProperty(Pte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4200});Ote=class extends Mv{constructor({message:e=\\\"The provider is disconnected from all chains.\\\"}={}){super(4900,e),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Provider.DisconnectedError\\\"})}};Object.defineProperty(Ote,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4900});Nte=class extends Mv{constructor({message:e=\\\"The provider is not connected to the requested chain.\\\"}={}){super(4901,e),Object.defineProperty(this,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"Provider.ChainDisconnectedError\\\"})}};Object.defineProperty(Nte,\\\"code\\\",{enumerable:!0,configurable:!0,writable:!0,value:4901})});var wTe=x(()=>{u()});var vTe=x(()=>{u()});var xTe=x(()=>{u()});var ETe,_Te,CTe,Lyt,Uyt,Fyt,kte,fVr,pVr,STe=x(()=>{u();XS();lte();aI();ETe={p:BigInt(\\\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\\\"),n:BigInt(\\\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\\\"),h:BigInt(1),a:BigInt(\\\"0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc\\\"),b:BigInt(\\\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\\\"),Gx:BigInt(\\\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\\\"),Gy:BigInt(\\\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\\\")},_Te={p:BigInt(\\\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\\\"),n:BigInt(\\\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\\\"),h:BigInt(1),a:BigInt(\\\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc\\\"),b:BigInt(\\\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\\\"),Gx:BigInt(\\\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\\\"),Gy:BigInt(\\\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\\\")},CTe={p:BigInt(\\\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\"),n:BigInt(\\\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\\\"),h:BigInt(1),a:BigInt(\\\"0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc\\\"),b:BigInt(\\\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\\\"),Gx:BigInt(\\\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\\\"),Gy:BigInt(\\\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\\\")},Lyt=Hu(ETe.p),Uyt=Hu(_Te.p),Fyt=Hu(CTe.p),kte=Y3({...ETe,Fp:Lyt,lowS:!1},Ud),fVr=Y3({..._Te,Fp:Uyt,lowS:!1},Hwe),pVr=Y3({...CTe,Fp:Fyt,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},jwe)});var e_,ATe,lU=x(()=>{u();STe();e_=kte,ATe=kte});function TTe(t){let{hash:e,payload:r,publicKey:n,signature:i}=t;return ATe.verify(i,r instanceof Uint8Array?r:lo(r),VL(n).substring(2),...e?[{prehash:!0,lowS:!0}]:[])}var Bte=x(()=>{u();lU();Uu();oI()});var RTe=x(()=>{u()});var PTe=x(()=>{u()});var OTe=x(()=>{u()});var NTe=x(()=>{u()});var kTe=x(()=>{u()});var BTe=x(()=>{u()});var MTe=x(()=>{u()});var DTe=x(()=>{u()});var LTe=x(()=>{u()});var UTe=x(()=>{u()});var FTe=x(()=>{u()});var jTe=x(()=>{u()});var HTe=x(()=>{u()});function qTe(t){let e=t[4]===0?5:4,r=e+32,n=t[r+2]===0?r+3:r+2,i=BigInt(Xi(t.slice(e,r))),s=BigInt(Xi(t.slice(n)));return{r:i,s:s>e_.CURVE.n/2n?e_.CURVE.n-s:s}}async function zTe(t){try{let e=t.getPublicKey();if(!e)throw new Vy;let r=new Uint8Array(e),n=await crypto.subtle.importKey(\\\"spki\\\",new Uint8Array(r),{name:\\\"ECDSA\\\",namedCurve:\\\"P-256\\\",hash:\\\"SHA-256\\\"},!0,[\\\"verify\\\"]),i=new Uint8Array(await crypto.subtle.exportKey(\\\"raw\\\",n));return Pv(i)}catch(e){if(e.message!==\\\"Permission denied to access object\\\")throw e;let r=new Uint8Array(t.attestationObject),n=32,i=88,s=c=>{let l=new Uint8Array([c,i,n]);for(let d=0;d<r.length-l.length;d++)if(l.every((f,p)=>r[d+p]===f))return d+l.length;throw new Vy},o=s(33),a=s(34);return Pv(new Uint8Array([4,...r.slice(o,o+n),...r.slice(a,a+n)]))}}var $Te=x(()=>{u();lU();Rp();oI();Mte()});var uU={};ue(uU,{CredentialCreationFailedError:()=>Vy,CredentialRequestFailedError:()=>uI,createChallenge:()=>VTe,createCredential:()=>e1t,getAuthenticatorData:()=>WTe,getClientDataJSON:()=>GTe,getCredentialCreationOptions:()=>KTe,getCredentialRequestOptions:()=>ZTe,getSignPayload:()=>t1t,sign:()=>r1t,verify:()=>n1t});async function e1t(t){let{createFn:e=window.navigator.credentials.create.bind(window.navigator.credentials),...r}=t,n=KTe(r);try{let i=await e(n);if(!i)throw new Vy;let s=i.response,o=await zTe(s);return{id:i.id,publicKey:o,raw:i}}catch(i){throw new Vy({cause:i})}}function WTe(t={}){let{flag:e=5,rpId:r=window.location.hostname,signCount:n=0}=t,i=DL(z3(r)),s=As(e,{size:1}),o=As(n,{size:4});return nf(i,s,o)}function GTe(t){let{challenge:e,crossOrigin:r=!1,extraClientData:n,origin:i=window.location.origin}=t;return JSON.stringify({type:\\\"webauthn.get\\\",challenge:$Ae(e,{url:!0,pad:!1}),origin:i,crossOrigin:r,...n})}function KTe(t){let{attestation:e=\\\"none\\\",authenticatorSelection:r={residentKey:\\\"preferred\\\",requireResidentKey:!1,userVerification:\\\"required\\\"},challenge:n=VTe,excludeCredentialIds:i,name:s,rp:o={id:window.location.hostname,name:window.document.title},user:a,extensions:c}=t,l=a?.name??s;return{publicKey:{attestation:e,authenticatorSelection:r,challenge:n,...i?{excludeCredentials:i?.map(d=>({id:cU(d),type:\\\"public-key\\\"}))}:{},pubKeyCredParams:[{type:\\\"public-key\\\",alg:-7}],rp:o,user:{id:a?.id??ML(K3(l),{as:\\\"Bytes\\\"}),name:l,displayName:a?.displayName??l},extensions:c}}}function ZTe(t){let{credentialId:e,challenge:r,rpId:n=window.location.hostname,userVerification:i=\\\"required\\\"}=t;return{publicKey:{...e?{allowCredentials:[{id:cU(e),type:\\\"public-key\\\"}]}:{},challenge:lo(r),rpId:n,userVerification:i}}}function t1t(t){let{challenge:e,crossOrigin:r,extraClientData:n,flag:i,origin:s,rpId:o,signCount:a,userVerification:c=\\\"required\\\"}=t,l=WTe({flag:i,rpId:o,signCount:a}),d=GTe({challenge:e,crossOrigin:r,extraClientData:n,origin:s}),f=DL(z3(d)),p=d.indexOf('\\\"challenge\\\"'),h=d.indexOf('\\\"type\\\"'),m={authenticatorData:l,clientDataJSON:d,challengeIndex:p,typeIndex:h,userVerificationRequired:c===\\\"required\\\"},g=nf(l,f);return{metadata:m,payload:g}}async function r1t(t){let{getFn:e=window.navigator.credentials.get.bind(window.navigator.credentials),...r}=t,n=ZTe(r);try{let i=await e(n);if(!i)throw new uI;let s=i.response,o=String.fromCharCode(...new Uint8Array(s.clientDataJSON)),a=o.indexOf('\\\"challenge\\\"'),c=o.indexOf('\\\"type\\\"'),l=qTe(new Uint8Array(s.signature));return{metadata:{authenticatorData:Xi(new Uint8Array(s.authenticatorData)),clientDataJSON:o,challengeIndex:a,typeIndex:c,userVerificationRequired:n.publicKey.userVerification===\\\"required\\\"},signature:l,raw:i}}catch(i){throw new uI({cause:i})}}function n1t(t){let{challenge:e,hash:r=!0,metadata:n,publicKey:i,signature:s}=t,{authenticatorData:o,challengeIndex:a,clientDataJSON:c,typeIndex:l,userVerificationRequired:d}=n,f=lo(o);if(f.length<37)return!1;let p=f[32];if((p&1)!==1||d&&(p&4)!==4||(p&8)!==8&&(p&16)===16)return!1;let h='\\\"type\\\":\\\"webauthn.get\\\"';if(h!==c.slice(Number(l),h.length+1))return!1;let m=c.slice(Number(a)).match(/^\\\"challenge\\\":\\\"(.*?)\\\"/);if(!m)return!1;let[g,w]=m;if(Xi(cU(w))!==e)return!1;let v=DL(K3(c),{as:\\\"Bytes\\\"}),b=BL(f,v);return TTe({hash:r,payload:b,publicKey:i,signature:s})}var VTe,Vy,uI,Mte=x(()=>{u();mte();Uu();Ym();LL();Rp();Bte();$Te();VTe=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);Vy=class extends Nt{constructor({cause:e}={}){super(\\\"Failed to create credential.\\\",{cause:e}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"WebAuthnP256.CredentialCreationFailedError\\\"})}},uI=class extends Nt{constructor({cause:e}={}){super(\\\"Failed to request credential.\\\",{cause:e}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"WebAuthnP256.CredentialRequestFailedError\\\"})}}});var dI={};ue(dI,{createKeyPair:()=>i1t,sign:()=>s1t,verify:()=>o1t});async function i1t(t={}){let{extractable:e=!1}=t,r=await globalThis.crypto.subtle.generateKey({name:\\\"ECDSA\\\",namedCurve:\\\"P-256\\\"},e,[\\\"sign\\\",\\\"verify\\\"]),n=await globalThis.crypto.subtle.exportKey(\\\"raw\\\",r.publicKey),i=Pv(new Uint8Array(n));return{privateKey:r.privateKey,publicKey:i}}async function s1t(t){let{payload:e,privateKey:r}=t,n=await globalThis.crypto.subtle.sign({name:\\\"ECDSA\\\",hash:\\\"SHA-256\\\"},r,G3(e)),i=Mee(new Uint8Array(n)),s=Uee(Lee(i,0,32)),o=Uee(Lee(i,32,64));return o>e_.CURVE.n/2n&&(o=e_.CURVE.n-o),{r:s,s:o}}async function o1t(t){let{payload:e,signature:r}=t,n=await globalThis.crypto.subtle.importKey(\\\"raw\\\",qee(t.publicKey),{name:\\\"ECDSA\\\",namedCurve:\\\"P-256\\\"},!0,[\\\"verify\\\"]);return await globalThis.crypto.subtle.verify({name:\\\"ECDSA\\\",hash:\\\"SHA-256\\\"},n,BL(Dee(r.r),Dee(r.s)),G3(e))}var QTe=x(()=>{u();lU();Uu();oI()});var Dte=x(()=>{u();SSe();rAe();nAe();iAe();sAe();JSe();tAe();oAe();aAe();Wee();cAe();qAe();zAe();mte();WAe();QAe();XAe();eTe();tTe();rTe();nTe();Uu();jee();iTe();lTe();Ym();uTe();LL();fTe();Rp();pTe();j3();GAe();hTe();mTe();gTe();bTe();oI();lAe();wTe();vTe();yTe();xTe();dTe();Bte();hte();RTe();GL();PTe();JAe();NTe();kTe();BTe();MTe();DTe();LTe();UTe();FTe();jTe();HTe();OTe();Mte();QTe();YAe()});function dU(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function Ute(t,e){let r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);let n=dU(r);return(i,s)=>n.then(o=>s(o.transaction(e,i).objectStore(e)))}function Fte(){return Lte||(Lte=Ute(\\\"keyval-store\\\",\\\"keyval\\\")),Lte}function JTe(t,e=Fte()){return e(\\\"readonly\\\",r=>dU(r.get(t)))}function YTe(t,e,r=Fte()){return r(\\\"readwrite\\\",n=>(n.put(e,t),dU(n.transaction)))}function XTe(t,e=Fte()){return e(\\\"readwrite\\\",r=>(r.delete(t),dU(r.transaction)))}var Lte,eIe=x(()=>{u()});function tIe(t,e){let r=typeof indexedDB<\\\"u\\\"?Ute(t,e):void 0;return{getItem:async n=>{let i=await JTe(n,r);return i||null},removeItem:async n=>XTe(n,r),setItem:async(n,i)=>YTe(n,i,r)}}var rIe=x(()=>{u();eIe()});async function l1t(){let t=await dI.createKeyPair({extractable:!1}),e=Ka.slice(Pp.toHex(t.publicKey),1);return await Wy.setItem(e,t),await Wy.setItem(fU,e),t}async function nIe(){let t=await Wy.getItem(fU);if(!t)return null;let e=await Wy.getItem(t);return e||null}async function u1t(){let t=await nIe();if(!t){let e=await l1t(),r=Ka.slice(Pp.toHex(e.publicKey),1);return await Wy.setItem(r,e),await Wy.setItem(fU,r),e}return t}async function d1t(){let t=await u1t(),e=Ka.slice(Pp.toHex(t.publicKey),1),r=async n=>{let{payload:i,metadata:s}=uU.getSignPayload({challenge:n,origin:\\\"https://keys.coinbase.com\\\",userVerification:\\\"preferred\\\"}),o=await dI.sign({payload:i,privateKey:t.privateKey});return{signature:Bv.toHex(o),raw:{},webauthn:s}};return{id:e,publicKey:e,async sign({hash:n}){return r(n)},async signMessage({message:n}){return r(Rm(n))},async signTypedData(n){return r(mp(n))},type:\\\"webAuthn\\\"}}async function Dv(){return{account:await d1t()}}async function iIe(){let t=await nIe();t&&(await Wy.removeItem(Ka.slice(Pp.toHex(t.publicKey),1)),await Wy.removeItem(fU))}var a1t,c1t,fU,Wy,pU=x(()=>{u();Dte();un();rIe();a1t=\\\"cbwsdk\\\",c1t=\\\"keys\\\",fU=\\\"activeId\\\",Wy=tIe(a1t,c1t)});var sIe,oIe,aIe,hU,cIe=x(()=>{u();Du();vee();sIe={storageKey:\\\"ownPrivateKey\\\",keyType:\\\"private\\\"},oIe={storageKey:\\\"ownPublicKey\\\",keyType:\\\"public\\\"},aIe={storageKey:\\\"peerPublicKey\\\",keyType:\\\"public\\\"},hU=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(aIe,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Ee.keys.clear()}async generateKeyPair(){let e=await vSe();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(sIe,e.privateKey),await this.storeKey(oIe,e.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(sIe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(oIe)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(aIe)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await xSe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(e){let r=Ee.keys.get(e.storageKey);return r?CL(e.keyType,r):null}async storeKey(e,r){let n=await _L(e.keyType,r);Ee.keys.set(e.storageKey,n)}}});function Lv(t,e){if(!(typeof t!=\\\"object\\\"||t===null))return e.split(/[.[\\\\]]+/).filter(Boolean).reduce((r,n)=>{if(typeof r==\\\"object\\\"&&r!==null)return r[n]},t)}var jte=x(()=>{u()});var Hte=x(()=>{u();Gk()});var mU,qte,Ea,gU,Uv=x(()=>{u();mU=\\\"0x0ba5ed0c6aa8c49038f819e587e2633c4a9f428a\\\",qte=\\\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\\\",Ea=[{inputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"constructor\\\"},{inputs:[{name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"AlreadyOwner\\\",type:\\\"error\\\"},{inputs:[],name:\\\"Initialized\\\",type:\\\"error\\\"},{inputs:[{name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"InvalidEthereumAddressOwner\\\",type:\\\"error\\\"},{inputs:[{name:\\\"key\\\",type:\\\"uint256\\\"}],name:\\\"InvalidNonceKey\\\",type:\\\"error\\\"},{inputs:[{name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"InvalidOwnerBytesLength\\\",type:\\\"error\\\"},{inputs:[],name:\\\"LastOwner\\\",type:\\\"error\\\"},{inputs:[{name:\\\"index\\\",type:\\\"uint256\\\"}],name:\\\"NoOwnerAtIndex\\\",type:\\\"error\\\"},{inputs:[{name:\\\"ownersRemaining\\\",type:\\\"uint256\\\"}],name:\\\"NotLastOwner\\\",type:\\\"error\\\"},{inputs:[{name:\\\"selector\\\",type:\\\"bytes4\\\"}],name:\\\"SelectorNotAllowed\\\",type:\\\"error\\\"},{inputs:[],name:\\\"Unauthorized\\\",type:\\\"error\\\"},{inputs:[],name:\\\"UnauthorizedCallContext\\\",type:\\\"error\\\"},{inputs:[],name:\\\"UpgradeFailed\\\",type:\\\"error\\\"},{inputs:[{name:\\\"index\\\",type:\\\"uint256\\\"},{name:\\\"expectedOwner\\\",type:\\\"bytes\\\"},{name:\\\"actualOwner\\\",type:\\\"bytes\\\"}],name:\\\"WrongOwnerAtIndex\\\",type:\\\"error\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"index\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"AddOwner\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"index\\\",type:\\\"uint256\\\"},{indexed:!1,name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"RemoveOwner\\\",type:\\\"event\\\"},{anonymous:!1,inputs:[{indexed:!0,name:\\\"implementation\\\",type:\\\"address\\\"}],name:\\\"Upgraded\\\",type:\\\"event\\\"},{stateMutability:\\\"payable\\\",type:\\\"fallback\\\"},{inputs:[],name:\\\"REPLAYABLE_NONCE_KEY\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"owner\\\",type:\\\"address\\\"}],name:\\\"addOwnerAddress\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"x\\\",type:\\\"bytes32\\\"},{name:\\\"y\\\",type:\\\"bytes32\\\"}],name:\\\"addOwnerPublicKey\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"functionSelector\\\",type:\\\"bytes4\\\"}],name:\\\"canSkipChainIdValidation\\\",outputs:[{name:\\\"\\\",type:\\\"bool\\\"}],stateMutability:\\\"pure\\\",type:\\\"function\\\"},{inputs:[],name:\\\"domainSeparator\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"eip712Domain\\\",outputs:[{name:\\\"fields\\\",type:\\\"bytes1\\\"},{name:\\\"name\\\",type:\\\"string\\\"},{name:\\\"version\\\",type:\\\"string\\\"},{name:\\\"chainId\\\",type:\\\"uint256\\\"},{name:\\\"verifyingContract\\\",type:\\\"address\\\"},{name:\\\"salt\\\",type:\\\"bytes32\\\"},{name:\\\"extensions\\\",type:\\\"uint256[]\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"entryPoint\\\",outputs:[{name:\\\"\\\",type:\\\"address\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"target\\\",type:\\\"address\\\"},{name:\\\"value\\\",type:\\\"uint256\\\"},{name:\\\"data\\\",type:\\\"bytes\\\"}],name:\\\"execute\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"target\\\",type:\\\"address\\\"},{name:\\\"value\\\",type:\\\"uint256\\\"},{name:\\\"data\\\",type:\\\"bytes\\\"}],name:\\\"calls\\\",type:\\\"tuple[]\\\"}],name:\\\"executeBatch\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"calls\\\",type:\\\"bytes[]\\\"}],name:\\\"executeWithoutChainIdValidation\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"userOp\\\",type:\\\"tuple\\\"}],name:\\\"getUserOpHashWithoutChainId\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"implementation\\\",outputs:[{name:\\\"$\\\",type:\\\"address\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"owners\\\",type:\\\"bytes[]\\\"}],name:\\\"initialize\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],name:\\\"isOwnerAddress\\\",outputs:[{name:\\\"\\\",type:\\\"bool\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"account\\\",type:\\\"bytes\\\"}],name:\\\"isOwnerBytes\\\",outputs:[{name:\\\"\\\",type:\\\"bool\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"x\\\",type:\\\"bytes32\\\"},{name:\\\"y\\\",type:\\\"bytes32\\\"}],name:\\\"isOwnerPublicKey\\\",outputs:[{name:\\\"\\\",type:\\\"bool\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"hash\\\",type:\\\"bytes32\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"isValidSignature\\\",outputs:[{name:\\\"result\\\",type:\\\"bytes4\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"nextOwnerIndex\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"index\\\",type:\\\"uint256\\\"}],name:\\\"ownerAtIndex\\\",outputs:[{name:\\\"\\\",type:\\\"bytes\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"ownerCount\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"proxiableUUID\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"index\\\",type:\\\"uint256\\\"},{name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"removeLastOwner\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"index\\\",type:\\\"uint256\\\"},{name:\\\"owner\\\",type:\\\"bytes\\\"}],name:\\\"removeOwnerAtIndex\\\",outputs:[],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{inputs:[],name:\\\"removedOwnersCount\\\",outputs:[{name:\\\"\\\",type:\\\"uint256\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"hash\\\",type:\\\"bytes32\\\"}],name:\\\"replaySafeHash\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[{name:\\\"newImplementation\\\",type:\\\"address\\\"},{name:\\\"data\\\",type:\\\"bytes\\\"}],name:\\\"upgradeToAndCall\\\",outputs:[],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{components:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"},{name:\\\"initCode\\\",type:\\\"bytes\\\"},{name:\\\"callData\\\",type:\\\"bytes\\\"},{name:\\\"callGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"verificationGasLimit\\\",type:\\\"uint256\\\"},{name:\\\"preVerificationGas\\\",type:\\\"uint256\\\"},{name:\\\"maxFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"maxPriorityFeePerGas\\\",type:\\\"uint256\\\"},{name:\\\"paymasterAndData\\\",type:\\\"bytes\\\"},{name:\\\"signature\\\",type:\\\"bytes\\\"}],name:\\\"userOp\\\",type:\\\"tuple\\\"},{name:\\\"userOpHash\\\",type:\\\"bytes32\\\"},{name:\\\"missingAccountFunds\\\",type:\\\"uint256\\\"}],name:\\\"validateUserOp\\\",outputs:[{name:\\\"validationData\\\",type:\\\"uint256\\\"}],stateMutability:\\\"nonpayable\\\",type:\\\"function\\\"},{stateMutability:\\\"payable\\\",type:\\\"receive\\\"}],gU=[{inputs:[{name:\\\"implementation_\\\",type:\\\"address\\\"}],stateMutability:\\\"payable\\\",type:\\\"constructor\\\"},{inputs:[],name:\\\"OwnerRequired\\\",type:\\\"error\\\"},{inputs:[{name:\\\"owners\\\",type:\\\"bytes[]\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"}],name:\\\"createAccount\\\",outputs:[{name:\\\"account\\\",type:\\\"address\\\"}],stateMutability:\\\"payable\\\",type:\\\"function\\\"},{inputs:[{name:\\\"owners\\\",type:\\\"bytes[]\\\"},{name:\\\"nonce\\\",type:\\\"uint256\\\"}],name:\\\"getAddress\\\",outputs:[{name:\\\"\\\",type:\\\"address\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"implementation\\\",outputs:[{name:\\\"\\\",type:\\\"address\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"},{inputs:[],name:\\\"initCodeHash\\\",outputs:[{name:\\\"\\\",type:\\\"bytes32\\\"}],stateMutability:\\\"view\\\",type:\\\"function\\\"}]});function zte(t){var e;if(!Array.isArray(t.params))return null;switch(t.method){case\\\"personal_sign\\\":return t.params[1];case\\\"eth_signTypedData_v4\\\":return t.params[0];case\\\"eth_signTransaction\\\":case\\\"eth_sendTransaction\\\":case\\\"wallet_sendCalls\\\":return(e=t.params[0])===null||e===void 0?void 0:e.from;default:return null}}function lIe(t,e){if(!Array.isArray(t.params))throw pe.rpc.invalidParams();let r=[...t.params];switch(t.method){case\\\"eth_signTransaction\\\":case\\\"eth_sendTransaction\\\":case\\\"wallet_sendCalls\\\":r[0].from=e;break;case\\\"eth_signTypedData_v4\\\":r[0]=e;break;case\\\"personal_sign\\\":r[1]=e;break;default:break}return Object.assign(Object.assign({},t),{params:r})}function $te(t){var e;if(!t||!Array.isArray(t)||!(!((e=t[0])===null||e===void 0)&&e.chainId))throw pe.rpc.invalidParams();if(typeof t[0].chainId!=\\\"string\\\"&&typeof t[0].chainId!=\\\"number\\\")throw pe.rpc.invalidParams()}function uIe(t){if(!t||!Array.isArray(t)||t.length!==1&&t.length!==2)throw pe.rpc.invalidParams();if(typeof t[0]!=\\\"string\\\"||!lt(t[0]))throw pe.rpc.invalidParams();if(t.length===2){if(!Array.isArray(t[1]))throw pe.rpc.invalidParams();for(let e of t[1])if(typeof e!=\\\"string\\\"||!e.startsWith(\\\"0x\\\"))throw pe.rpc.invalidParams()}}function t_(t,e){let r=Object.assign({},t);if(e&&t.method.startsWith(\\\"wallet_\\\")){let n=Lv(r,\\\"params.0.capabilities\\\");if(typeof n>\\\"u\\\"&&(n={}),typeof n!=\\\"object\\\")throw pe.rpc.invalidParams();n=Object.assign(Object.assign({},e),n),r.params&&Array.isArray(r.params)&&(r.params[0]=Object.assign(Object.assign({},r.params[0]),{capabilities:n}))}return r}async function yU(){var t;let e=(t=Ee.subAccountsConfig.get())!==null&&t!==void 0?t:{},r={};if(e.enableAutoSubAccounts){let{account:n}=e.toOwnerAccount?await e.toOwnerAccount():await Dv();if(!n)throw pe.provider.unauthorized(\\\"No owner account found\\\");r.addSubAccount={account:{type:\\\"create\\\",keys:[{type:n.address?\\\"address\\\":\\\"webauthn-p256\\\",publicKey:n.address||n.publicKey}]}}}Ee.subAccountsConfig.set({capabilities:r})}function dIe(t){if(!(t.method===\\\"coinbase_fetchPermissions\\\"&&t.params===void 0)){if(t.method===\\\"coinbase_fetchPermissions\\\"&&Array.isArray(t.params)&&t.params.length===1&&typeof t.params[0]==\\\"object\\\"){if(typeof t.params[0].account!=\\\"string\\\"||!t.params[0].chainId.startsWith(\\\"0x\\\"))throw pe.rpc.invalidParams(\\\"FetchPermissions - Invalid params: params[0].account must be a hex string\\\");if(typeof t.params[0].chainId!=\\\"string\\\"||!t.params[0].chainId.startsWith(\\\"0x\\\"))throw pe.rpc.invalidParams(\\\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\\\");if(typeof t.params[0].spender!=\\\"string\\\"||!t.params[0].spender.startsWith(\\\"0x\\\"))throw pe.rpc.invalidParams(\\\"FetchPermissions - Invalid params: params[0].spender must be a hex string\\\");return}throw pe.rpc.invalidParams()}}function fIe(t){var e,r,n;if(t.params!==void 0)return t;let i=(e=Ee.getState().account.accounts)===null||e===void 0?void 0:e[0],s=(r=Ee.getState().account.chain)===null||r===void 0?void 0:r.id,o=(n=Ee.getState().subAccount)===null||n===void 0?void 0:n.address;if(!i||!o||!s)throw pe.rpc.invalidParams(\\\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\\\");return{method:\\\"coinbase_fetchPermissions\\\",params:[{account:i,chainId:Z(s),spender:o}]}}function pIe({spendPermission:t,chainId:e}){return{domain:{name:\\\"Spend Permission Manager\\\",version:\\\"1\\\",chainId:e,verifyingContract:qte},types:{SpendPermission:[{name:\\\"account\\\",type:\\\"address\\\"},{name:\\\"spender\\\",type:\\\"address\\\"},{name:\\\"token\\\",type:\\\"address\\\"},{name:\\\"allowance\\\",type:\\\"uint160\\\"},{name:\\\"period\\\",type:\\\"uint48\\\"},{name:\\\"start\\\",type:\\\"uint48\\\"},{name:\\\"end\\\",type:\\\"uint48\\\"},{name:\\\"salt\\\",type:\\\"uint256\\\"},{name:\\\"extraData\\\",type:\\\"bytes\\\"}]},primaryType:\\\"SpendPermission\\\",message:{account:t.account,spender:t.spender,token:t.token,allowance:t.allowance,period:t.period,start:t.start,end:t.end,salt:t.salt,extraData:t.extraData}}}function hIe({spendPermissionBatch:t,chainId:e}){return{domain:{name:\\\"Spend Permission Manager\\\",version:\\\"1\\\",chainId:e,verifyingContract:qte},types:{SpendPermissionBatch:[{name:\\\"account\\\",type:\\\"address\\\"},{name:\\\"period\\\",type:\\\"uint48\\\"},{name:\\\"start\\\",type:\\\"uint48\\\"},{name:\\\"end\\\",type:\\\"uint48\\\"},{name:\\\"permissions\\\",type:\\\"PermissionDetails[]\\\"}],PermissionDetails:[{name:\\\"spender\\\",type:\\\"address\\\"},{name:\\\"token\\\",type:\\\"address\\\"},{name:\\\"allowance\\\",type:\\\"uint160\\\"},{name:\\\"salt\\\",type:\\\"uint256\\\"},{name:\\\"extraData\\\",type:\\\"bytes\\\"}]},primaryType:\\\"SpendPermissionBatch\\\",message:{account:t.account,period:t.period,start:t.start,end:t.end,permissions:t.permissions.map(r=>({spender:r.spender,token:r.token,allowance:r.allowance,salt:r.salt,extraData:r.extraData}))}}}async function bU({client:t,id:e}){var r;let n=await Tm(t,{id:e});if(n.status===\\\"success\\\")return(r=n.receipts)===null||r===void 0?void 0:r[0].transactionHash;throw pe.rpc.internal(\\\"failed to send transaction\\\")}function wU({calls:t,from:e,chainId:r,capabilities:n}){let i=PX.get().paymasterUrls,s={method:\\\"wallet_sendCalls\\\",params:[{version:\\\"1.0\\\",calls:t,chainId:Z(r),from:e,atomicRequired:!0,capabilities:n}]};return i?.[r]&&(s=t_(s,{paymasterService:{url:i?.[r]}})),s}async function mIe(){let t=jT();return await new Promise(r=>{c3({snackbarContext:\\\"sub_account_insufficient_balance\\\"}),t.presentItem({autoExpand:!0,message:\\\"Insufficient spend permission. Choose how to proceed:\\\",menuItems:[{isRed:!1,info:\\\"Create new Spend Permission\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:()=>{Zm({snackbarContext:\\\"sub_account_insufficient_balance\\\",snackbarAction:\\\"create_permission\\\"}),t.clear(),r(\\\"update_permission\\\")}},{isRed:!1,info:\\\"Continue in Popup\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:()=>{Zm({snackbarContext:\\\"sub_account_insufficient_balance\\\",snackbarAction:\\\"continue_in_popup\\\"}),t.clear(),r(\\\"continue_popup\\\")}},{isRed:!0,info:\\\"Cancel\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:()=>{Zm({snackbarContext:\\\"sub_account_insufficient_balance\\\",snackbarAction:\\\"cancel\\\"}),t.clear(),r(\\\"cancel\\\")}}]})})}function gIe({errorData:t,sourceAddress:e}){var r;let n=[];for(let[i,{amount:s,sources:o}]of Object.entries((r=t?.required)!==null&&r!==void 0?r:{})){if(o.filter(c=>Ge(c.balance)>=Ge(s)&&c.address.toLowerCase()===e?.toLowerCase()).length===0)throw new Error(\\\"Source address has insufficient balance for a token\\\");n.push({token:i,requiredAmount:Ge(s)})}return n}function yIe(t){return typeof t==\\\"object\\\"&&t!==null&&\\\"calls\\\"in t}function bIe(t){return Array.isArray(t)&&t.length===1&&typeof t[0]==\\\"object\\\"&&t[0]!==null&&\\\"to\\\"in t[0]}function f1t(t){return No(Ft(He(t)),0,16)}function wIe({attribution:t,dappOrigin:e}){if(t){if(\\\"auto\\\"in t&&t.auto&&e)return f1t(e);if(\\\"dataSuffix\\\"in t)return t.dataSuffix}}function vIe(t,e){var r;if(!Array.isArray(t?.params))return!1;let n=(r=t.params[0])===null||r===void 0?void 0:r.capabilities;return!n||typeof n!=\\\"object\\\"?!1:e in n}function fI(t,e){let r=t.filter(n=>n!==e);return[e,...r]}function pI(t,e){return[...t.filter(n=>n!==e),e]}async function xIe(){let t=Ee.spendPermissions.get(),e=Ee.subAccounts.get(),r=Ee.account.get().accounts;return r?{accounts:r?.map(i=>({address:i,capabilities:{subAccounts:e?[e]:void 0,spendPermissions:t.length>0?{permissions:t}:void 0}}))}:null}var vU=x(()=>{u();un();un();va();WD();Du();jte();oL();Hte();pU();Uv()});function p1t(t){return t.replaceAll(\\\"+\\\",\\\"-\\\").replaceAll(\\\"/\\\",\\\"_\\\").replace(/=+$/,\\\"\\\")}function xU(t){let e=btoa(String.fromCharCode(...new Uint8Array(t)));return p1t(e)}function EIe({webauthn:t,signature:e,id:r}){let n=Bv.fromHex(e);return{id:r,rawId:xU(Ua(r)),response:{authenticatorData:xU(Hr(t.authenticatorData)),clientDataJSON:xU(Ua(t.clientDataJSON)),signature:xU(h1t(n.r,n.s))},type:JSON.parse(t.clientDataJSON).type}}function h1t(t,e){let r=Hr(An(Z(t))),n=Hr(An(Z(e))),i=r.length,s=n.length,o=i+s+4,a=new Uint8Array(o+2);return a[0]=48,a[1]=o,a[2]=2,a[3]=i,a.set(r,4),a[i+4]=2,a[i+5]=s,a.set(n,i+6),a}var _Ie=x(()=>{u();Dte();un()});async function CIe(t){let{owner:e,ownerIndex:r,address:n,client:i,factoryData:s}=t,o={abi:see,address:oee,version:\\\"0.6\\\"},a={abi:gU,address:mU};return uee({client:i,entryPoint:o,extend:{abi:Ea,factory:a},async decodeCalls(c){let l=Aw({abi:Ea,data:c});if(l.functionName===\\\"execute\\\")return[{to:l.args[0],value:l.args[1],data:l.args[2]}];if(l.functionName===\\\"executeBatch\\\")return l.args[0].map(d=>({to:d.target,value:d.value,data:d.data}));throw new W(`unable to decode calls for \\\"${l.functionName}\\\"`)},async encodeCalls(c){var l,d;return c.length===1?At({abi:Ea,functionName:\\\"execute\\\",args:[c[0].to,(l=c[0].value)!==null&&l!==void 0?l:BigInt(0),(d=c[0].data)!==null&&d!==void 0?d:\\\"0x\\\"]}):At({abi:Ea,functionName:\\\"executeBatch\\\",args:[c.map(f=>{var p,h;return{data:(p=f.data)!==null&&p!==void 0?p:\\\"0x\\\",target:f.to,value:(h=f.value)!==null&&h!==void 0?h:BigInt(0)}})]})},async getAddress(){return n},async getFactoryArgs(){return s?{factory:a.address,factoryData:s}:{factory:a.address,factoryData:s}},async getStubSignature(){return e.type===\\\"webAuthn\\\"?\\\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\\\":hI({ownerIndex:r,signature:\\\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\\\"})},async sign(c){let l=await this.getAddress(),d=Vte({address:l,chainId:i.chain.id,hash:c.hash}),f=await EU({hash:d,owner:e});return hI({ownerIndex:r,signature:f})},async signMessage(c){let{message:l}=c,d=await this.getAddress(),f=Vte({address:d,chainId:i.chain.id,hash:Rm(l)}),p=await EU({hash:f,owner:e});return hI({ownerIndex:r,signature:p})},async signTypedData(c){let{domain:l,types:d,primaryType:f,message:p}=c,h=await this.getAddress(),m=Vte({address:h,chainId:i.chain.id,hash:mp({domain:l,message:p,primaryType:f,types:d})}),g=await EU({hash:m,owner:e});return hI({ownerIndex:r,signature:g})},async signUserOperation(c){let{chainId:l=i.chain.id}=c,d=m1t(c,[\\\"chainId\\\"]),f=await this.getAddress(),p=lee({chainId:l,entryPointAddress:o.address,entryPointVersion:o.version,userOperation:Object.assign(Object.assign({},d),{sender:f})}),h=await EU({hash:p,owner:e});return hI({ownerIndex:r,signature:h})},userOperation:{async estimateGas(c){var l;if(e.type===\\\"webAuthn\\\")return{verificationGasLimit:BigInt(Math.max(Number((l=c.verificationGasLimit)!==null&&l!==void 0?l:BigInt(0)),8e5))}}}})}async function EU({hash:t,owner:e}){if(e.type===\\\"webAuthn\\\"){let{signature:r,webauthn:n}=await e.sign({hash:t});return g1t({signature:r,webauthn:n})}if(e.sign)return e.sign({hash:t});throw new W(\\\"`owner` does not support raw sign.\\\")}function Vte({address:t,chainId:e,hash:r}){return mp({domain:{chainId:e,name:\\\"Coinbase Smart Wallet\\\",verifyingContract:t,version:\\\"1\\\"},types:{CoinbaseSmartWalletMessage:[{name:\\\"hash\\\",type:\\\"bytes32\\\"}]},primaryType:\\\"CoinbaseSmartWalletMessage\\\",message:{hash:r}})}function g1t({webauthn:t,signature:e}){let{r,s:n}=lI(e);return Vn([{components:[{name:\\\"authenticatorData\\\",type:\\\"bytes\\\"},{name:\\\"clientDataJSON\\\",type:\\\"bytes\\\"},{name:\\\"challengeIndex\\\",type:\\\"uint256\\\"},{name:\\\"typeIndex\\\",type:\\\"uint256\\\"},{name:\\\"r\\\",type:\\\"uint256\\\"},{name:\\\"s\\\",type:\\\"uint256\\\"}],type:\\\"tuple\\\"}],[{authenticatorData:t.authenticatorData,clientDataJSON:la(t.clientDataJSON),challengeIndex:BigInt(t.challengeIndex),typeIndex:BigInt(t.typeIndex),r,s:n}])}function hI(t){let{ownerIndex:e=0}=t,r=(()=>{if(Ot(t.signature)!==65)return t.signature;let n=JB(t.signature);return QQ([\\\"bytes32\\\",\\\"bytes32\\\",\\\"uint8\\\"],[n.r,n.s,n.yParity===0?27:28])})();return Vn([{components:[{name:\\\"ownerIndex\\\",type:\\\"uint8\\\"},{name:\\\"signatureData\\\",type:\\\"bytes\\\"}],type:\\\"tuple\\\"}],[{ownerIndex:e,signatureData:r}])}var m1t,SIe=x(()=>{u();hte();un();gee();Uv();m1t=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols==\\\"function\\\")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}});async function AIe({address:t,client:e,factory:r,factoryData:n,owner:i,ownerIndex:s,parentAddress:o,attribution:a}){var c;let l={address:t,factory:r,factoryData:n},d=(c=e.chain)===null||c===void 0?void 0:c.id;if(!d)throw pe.rpc.internal(\\\"chainId not found\\\");let f=await CIe({owner:i,ownerIndex:s??1,address:t,client:e,factoryData:n}),p=async h=>{var m,g,w,v,b,_;try{switch(h.method){case\\\"wallet_addSubAccount\\\":return l;case\\\"eth_accounts\\\":return[l.address];case\\\"eth_coinbase\\\":return l.address;case\\\"net_version\\\":return d.toString();case\\\"eth_chainId\\\":return Z(d);case\\\"eth_sendTransaction\\\":{Ip(h.params);let S=h.params[0];co(S.to,pe.rpc.invalidParams(\\\"to is required\\\"));let T={to:S.to,data:FD((m=S.data)!==null&&m!==void 0?m:\\\"0x\\\",!0),value:FD((g=S.value)!==null&&g!==void 0?g:\\\"0x\\\",!0),from:(w=S.from)!==null&&w!==void 0?w:l.address},N=wU({calls:[T],chainId:d,from:T.from}),O=await p(N);return bU({client:e,id:O})}case\\\"wallet_sendCalls\\\":{Ip(h.params);let S=Lv(h.params[0],\\\"chainId\\\");if(!S)throw pe.rpc.invalidParams(\\\"chainId is required\\\");if(!Ur(S))throw pe.rpc.invalidParams(\\\"chainId must be a hex encoded integer\\\");if(!h.params[0])throw pe.rpc.invalidParams(\\\"params are required\\\");if(!(\\\"calls\\\"in h.params[0]))throw pe.rpc.invalidParams(\\\"calls are required\\\");let T={method:\\\"wallet_prepareCalls\\\",params:[{version:\\\"1.0\\\",calls:h.params[0].calls,chainId:S,from:l.address,capabilities:\\\"capabilities\\\"in h.params[0]?h.params[0].capabilities:{}}]};o&&(T=t_(T,{funding:[{type:\\\"spendPermission\\\",data:{autoApply:!0,sources:[o],preference:\\\"PREFER_DIRECT_BALANCE\\\"}}]}));let N=await p(T),O=await((b=(v=i).sign)===null||b===void 0?void 0:b.call(v,{hash:jS(N.signatureRequest.hash)})),L;if(!O)throw pe.rpc.internal(\\\"signature not found\\\");return Ur(O)?L={type:\\\"secp256k1\\\",data:{address:i.address,signature:O}}:L={type:\\\"webauthn\\\",data:{signature:JSON.stringify(EIe(Object.assign({id:(_=i.id)!==null&&_!==void 0?_:\\\"1\\\"},O))),publicKey:i.publicKey}},(await p({method:\\\"wallet_sendPreparedCalls\\\",params:[{version:\\\"1.0\\\",type:N.type,data:N.userOp,chainId:N.chainId,signature:L}]}))[0]}case\\\"wallet_sendPreparedCalls\\\":{Ip(h.params);let S=Lv(h.params[0],\\\"chainId\\\");if(!S)throw pe.rpc.invalidParams(\\\"chainId is required\\\");if(!Ur(S))throw pe.rpc.invalidParams(\\\"chainId must be a hex encoded integer\\\");return await e.request({method:\\\"wallet_sendPreparedCalls\\\",params:h.params})}case\\\"wallet_prepareCalls\\\":{Ip(h.params);let S=Lv(h.params[0],\\\"chainId\\\");if(!S)throw pe.rpc.invalidParams(\\\"chainId is required\\\");if(!Ur(S))throw pe.rpc.invalidParams(\\\"chainId must be a hex encoded integer\\\");if(!h.params[0])throw pe.rpc.invalidParams(\\\"params are required\\\");if(!Lv(h.params[0],\\\"calls\\\"))throw pe.rpc.invalidParams(\\\"calls are required\\\");let T=h.params[0];return a&&T.capabilities&&!(\\\"attribution\\\"in T.capabilities)&&(T.capabilities.attribution=a),await e.request({method:\\\"wallet_prepareCalls\\\",params:[Object.assign(Object.assign({},h.params[0]),{chainId:S})]})}case\\\"personal_sign\\\":{if(Ip(h.params),!Ur(h.params[0]))throw pe.rpc.invalidParams(\\\"message must be a hex encoded string\\\");let S=jS(h.params[0]);return f.signMessage({message:S})}case\\\"eth_signTypedData_v4\\\":{Ip(h.params);let S=typeof h.params[1]==\\\"string\\\"?JSON.parse(h.params[1]):h.params[1];return f.signTypedData(S)}default:throw pe.rpc.methodNotSupported()}}catch(S){if(DD(S)){let T=p4e(S);if(T)throw T}throw S}};return{request:p}}var TIe=x(()=>{u();va();tf();U3();_Ie();jte();un();vU();SIe()});async function _U({address:t,client:e,publicKey:r,factory:n,factoryData:i}){if(!await Sl(e,{address:t})&&n&&i){if(_r(n)!==_r(mU))throw pe.rpc.internal(\\\"unknown factory address\\\");let a=Aw({abi:gU,data:i});if(a.functionName!==\\\"createAccount\\\")throw pe.rpc.internal(\\\"unknown factory function\\\");let[c]=a.args;return c.findIndex(l=>l.toLowerCase()===IIe(r).toLowerCase())}let o=await Tn(e,{address:t,abi:Ea,functionName:\\\"ownerCount\\\"});for(let a=Number(o)-1;a>=0;a--){let c=await Tn(e,{address:t,abi:Ea,functionName:\\\"ownerAtIndex\\\",args:[BigInt(a)]}),l=IIe(r);if(c.toLowerCase()===l.toLowerCase())return a}return-1}function IIe(t){return lt(t)?Fr(t):t}var Wte=x(()=>{u();va();un();GJ();Uv()});async function RIe(){let t=jT();return new Promise(e=>{c3({snackbarContext:\\\"sub_account_add_owner\\\"}),t.presentItem({autoExpand:!0,message:\\\"App requires a signer update\\\",menuItems:[{isRed:!1,info:\\\"Confirm\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:()=>{Zm({snackbarContext:\\\"sub_account_add_owner\\\",snackbarAction:\\\"confirm\\\"}),t.clear(),e(\\\"authenticate\\\")}},{isRed:!0,info:\\\"Cancel\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:()=>{Zm({snackbarContext:\\\"sub_account_add_owner\\\",snackbarAction:\\\"cancel\\\"}),t.clear(),e(\\\"cancel\\\")}}]})})}var PIe=x(()=>{u();WD();oL()});async function OIe({ownerAccount:t,globalAccountRequest:e}){var r,n;let i=Ee.account.get(),s=Ee.subAccounts.get(),o=(r=i.accounts)===null||r===void 0?void 0:r.find(m=>m.toLowerCase()!==s?.address.toLowerCase());co(o,pe.provider.unauthorized(\\\"no global account\\\")),co((n=i.chain)===null||n===void 0?void 0:n.id,pe.provider.unauthorized(\\\"no chain id\\\")),co(s?.address,pe.provider.unauthorized(\\\"no sub account\\\"));let a=[];if(t.type===\\\"local\\\"&&t.address&&a.push({to:s.address,data:At({abi:Ea,functionName:\\\"addOwnerAddress\\\",args:[t.address]}),value:He(0)}),t.publicKey){let[m,g]=Cc([{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"}],t.publicKey);a.push({to:s.address,data:At({abi:Ea,functionName:\\\"addOwnerPublicKey\\\",args:[m,g]}),value:He(0)})}let c={method:\\\"wallet_sendCalls\\\",params:[{version:\\\"1\\\",calls:a,chainId:Z(84532),from:o}]};if(await RIe()===\\\"cancel\\\")throw pe.provider.unauthorized(\\\"user cancelled\\\");let d=await e(c),f=EL(i.chain.id);if(co(f,pe.rpc.internal(`client not found for chainId ${i.chain.id}`)),(await Tm(f,{id:d})).status!==\\\"success\\\")throw pe.rpc.internal(\\\"add owner call failed\\\");let h=await _U({address:s.address,publicKey:t.type===\\\"local\\\"&&t.address?t.address:t.publicKey,client:f});if(h===-1)throw pe.rpc.internal(\\\"failed to find owner index\\\");return h}var NIe=x(()=>{u();va();wee();Du();U3();un();Hte();Uv();Wte();PIe()});async function kIe({errorData:t,globalAccountAddress:e,subAccountAddress:r,client:n,request:i,subAccountRequest:s,globalAccountRequest:o}){var a;let c=(a=n.chain)===null||a===void 0?void 0:a.id;co(c,pe.rpc.internal(\\\"invalid chainId\\\"));let l=gIe({errorData:t,sourceAddress:e}),d=await mIe();if(d===\\\"cancel\\\")throw new Error(\\\"User cancelled funding\\\");let f,p=3600*24,h=3;if(d===\\\"update_permission\\\"){if(l.length===1){let _=l[0],S=pIe({spendPermission:{token:_.token,allowance:Z(_.requiredAmount*BigInt(h)),period:p,account:e,spender:r,start:0,end:0xffffffffffff,salt:Z(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\\\"0x\\\"},chainId:c});f={method:\\\"eth_signTypedData_v4\\\",params:[e,S]}}else{let _=hIe({spendPermissionBatch:{account:e,period:p,start:0,end:0xffffffffffff,permissions:l.map(S=>({token:S.token,allowance:Z(S.requiredAmount*BigInt(h)),period:p,account:e,spender:r,salt:\\\"0x0\\\",extraData:\\\"0x\\\"}))},chainId:c});f={method:\\\"eth_signTypedData_v4\\\",params:[e,_]}}try{await o(f)}catch(_){throw console.error(_),new Error(\\\"User denied spend permission request\\\")}return s(i)}let m=l.map(_=>_.token.toLowerCase()===\\\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\\\".toLowerCase()?{to:r,value:Z(_.requiredAmount),data:\\\"0x\\\"}:{to:_.token,value:\\\"0x0\\\",data:At({abi:CQ,functionName:\\\"transfer\\\",args:[r,_.requiredAmount]})}),g;if(i.method===\\\"wallet_sendCalls\\\"&&yIe(i.params))g=i.params[0];else if(i.method===\\\"eth_sendTransaction\\\"&&bIe(i.params))g=wU({calls:[i.params[0]],chainId:c,from:i.params[0].from}).params[0];else throw new Error(\\\"Could not get original call\\\");let w=At({abi:Ea,functionName:\\\"executeBatch\\\",args:[g.calls.map(_=>{var S,T;return{target:_.to,value:Ge((S=_.value)!==null&&S!==void 0?S:\\\"0x0\\\"),data:(T=_.data)!==null&&T!==void 0?T:\\\"0x\\\"}})]}),v=[...m,{data:w,to:r,value:\\\"0x0\\\"}],b=await o({method:\\\"wallet_sendCalls\\\",params:[Object.assign(Object.assign({},g),{calls:v,from:e})]});return i.method===\\\"eth_sendTransaction\\\"?bU({client:n,id:b}):b}var BIe=x(()=>{u();va();U3();un();vU();Uv()});var mI,MIe=x(()=>{u();a3();un();va();P8e();j8e();iee();tf();wee();dL();Du();U3();wSe();vee();o3();pU();cIe();vU();TIe();Wte();NIe();BIe();mI=class{constructor(e){var r,n,i,s;this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new hU;let{account:o,chains:a}=Ee.getState();this.accounts=(r=o.accounts)!==null&&r!==void 0?r:[],this.chain=(n=o.chain)!==null&&n!==void 0?n:{id:(s=(i=e.metadata.appChainIds)===null||i===void 0?void 0:i[0])!==null&&s!==void 0?s:1},a&&bee(a)}async handshake(e){var r,n,i;let s=Uc.get(e);C8e({method:e.method,correlationId:s});try{await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r));let o=await this.createRequestMessage({handshake:{method:e.method,params:(i=e.params)!==null&&i!==void 0?i:[]}},s),a=await this.communicator.postRequestAndWaitForResponse(o);if(\\\"failure\\\"in a.content)throw a.content.failure;let c=await CL(\\\"public\\\",a.sender);await this.keyManager.setPeerPublicKey(c);let l=await this.decryptResponseMessage(a);this.handleResponse(e,l),A8e({method:e.method,correlationId:s})}catch(o){throw S8e({method:e.method,correlationId:s,errorMessage:Jm(o)}),o}}async request(e){let r=Uc.get(e);T8e({method:e.method,correlationId:r});try{let n=await this._request(e);return R8e({method:e.method,correlationId:r}),n}catch(n){throw I8e({method:e.method,correlationId:r,errorMessage:Jm(n)}),n}}async _request(e){var r,n,i,s,o,a,c,l,d,f,p,h,m,g;if(this.accounts.length===0)switch(e.method){case\\\"eth_requestAccounts\\\":return await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r)),await yU(),await this.request({method:\\\"wallet_connect\\\",params:[{version:\\\"1\\\",capabilities:Object.assign({},(s=(i=Ee.subAccountsConfig.get())===null||i===void 0?void 0:i.capabilities)!==null&&s!==void 0?s:{})}]}),this.accounts;case\\\"wallet_switchEthereumChain\\\":{$te(e.params),this.chain.id=Number(e.params[0].chainId);return}case\\\"wallet_connect\\\":{await((a=(o=this.communicator).waitForPopupLoaded)===null||a===void 0?void 0:a.call(o)),await yU();let w={};vIe(e,\\\"addSubAccount\\\")&&(w=(l=(c=Ee.subAccountsConfig.get())===null||c===void 0?void 0:c.capabilities)!==null&&l!==void 0?l:{});let v=t_(e,w);return this.sendRequestToPopup(v)}case\\\"wallet_sendCalls\\\":case\\\"wallet_sign\\\":return this.sendRequestToPopup(e);default:throw pe.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(e)){let w=Uc.get(e);O8e({method:e.method,correlationId:w});try{let v=await this.sendRequestToSubAccountSigner(e);return N8e({method:e.method,correlationId:w}),v}catch(v){throw k8e({method:e.method,correlationId:w,errorMessage:Jm(v)}),v}}switch(e.method){case\\\"eth_requestAccounts\\\":case\\\"eth_accounts\\\":{let w=Ee.subAccounts.get(),v=Ee.subAccountsConfig.get();return w?.address&&(this.accounts=v?.enableAutoSubAccounts?fI(this.accounts,w.address):pI(this.accounts,w.address)),(d=this.callback)===null||d===void 0||d.call(this,\\\"connect\\\",{chainId:Z(this.chain.id)}),this.accounts}case\\\"eth_coinbase\\\":return this.accounts[0];case\\\"net_version\\\":return this.chain.id;case\\\"eth_chainId\\\":return Z(this.chain.id);case\\\"wallet_getCapabilities\\\":return this.handleGetCapabilitiesRequest(e);case\\\"wallet_switchEthereumChain\\\":return this.handleSwitchChainRequest(e);case\\\"eth_ecRecover\\\":case\\\"personal_sign\\\":case\\\"wallet_sign\\\":case\\\"personal_ecRecover\\\":case\\\"eth_signTransaction\\\":case\\\"eth_sendTransaction\\\":case\\\"eth_signTypedData_v1\\\":case\\\"eth_signTypedData_v3\\\":case\\\"eth_signTypedData_v4\\\":case\\\"eth_signTypedData\\\":case\\\"wallet_addEthereumChain\\\":case\\\"wallet_watchAsset\\\":case\\\"wallet_sendCalls\\\":case\\\"wallet_showCallsStatus\\\":case\\\"wallet_grantPermissions\\\":return this.sendRequestToPopup(e);case\\\"wallet_connect\\\":{let w=await xIe();if(w)return w;await((p=(f=this.communicator).waitForPopupLoaded)===null||p===void 0?void 0:p.call(f)),await yU();let v=Ee.subAccountsConfig.get(),b=t_(e,(h=v?.capabilities)!==null&&h!==void 0?h:{});return(m=this.callback)===null||m===void 0||m.call(this,\\\"connect\\\",{chainId:Z(this.chain.id)}),this.sendRequestToPopup(b)}case\\\"wallet_getSubAccounts\\\":{let w=Ee.subAccounts.get();if(w?.address)return{subAccounts:[w]};if(!this.chain.rpcUrl)throw pe.rpc.internal(\\\"No RPC URL set for chain\\\");let v=await Ly(e,this.chain.rpcUrl);if(Ip(v.subAccounts,\\\"subAccounts\\\"),v.subAccounts.length>0){VT(v.subAccounts[0]);let b=v.subAccounts[0];Ee.subAccounts.set({address:b.address,factory:b.factory,factoryData:b.factoryData})}return v}case\\\"wallet_addSubAccount\\\":return this.addSubAccount(e);case\\\"coinbase_fetchPermissions\\\":{dIe(e);let w=fIe(e),v=await Ly(w,VD),b=jr((g=w.params)===null||g===void 0?void 0:g[0].chainId);return Ee.spendPermissions.set(v.permissions.map(_=>Object.assign(Object.assign({},_),{chainId:b}))),v}default:if(!this.chain.rpcUrl)throw pe.rpc.internal(\\\"No RPC URL set for chain\\\");return Ly(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var r,n;await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r));let i=await this.sendEncryptedRequest(e),s=await this.decryptResponseMessage(i);return this.handleResponse(e,s)}async handleResponse(e,r){var n,i,s,o,a;let c=r.result;if(\\\"error\\\"in c)throw c.error;switch(e.method){case\\\"eth_requestAccounts\\\":{let l=c.value;this.accounts=l,Ee.account.set({accounts:l,chain:this.chain}),(n=this.callback)===null||n===void 0||n.call(this,\\\"accountsChanged\\\",l);break}case\\\"wallet_connect\\\":{let l=c.value,d=l.accounts.map(v=>v.address);this.accounts=d,Ee.account.set({accounts:d});let f=l.accounts.at(0),p=f?.capabilities;if(p?.subAccounts){let v=p?.subAccounts;Ip(v,\\\"subAccounts\\\"),VT(v[0]),Ee.subAccounts.set({address:v[0].address,factory:v[0].factory,factoryData:v[0].factoryData})}let h=[this.accounts[0]],m=Ee.subAccounts.get(),g=Ee.subAccountsConfig.get();m?.address&&(this.accounts=g?.enableAutoSubAccounts?fI(this.accounts,m.address):pI(this.accounts,m.address));let w=(s=(i=l?.accounts)===null||i===void 0?void 0:i[0].capabilities)===null||s===void 0?void 0:s.spendPermissions;w&&\\\"permissions\\\"in w&&Ee.spendPermissions.set(w?.permissions),(o=this.callback)===null||o===void 0||o.call(this,\\\"accountsChanged\\\",h);break}case\\\"wallet_addSubAccount\\\":{VT(c.value);let l=c.value;Ee.subAccounts.set(l);let d=Ee.subAccountsConfig.get();this.accounts=d?.enableAutoSubAccounts?fI(this.accounts,l.address):pI(this.accounts,l.address),(a=this.callback)===null||a===void 0||a.call(this,\\\"accountsChanged\\\",this.accounts);break}default:break}return c.value}async cleanup(){var e,r;let n=Ee.config.get().metadata;await this.keyManager.clear(),Ee.account.clear(),Ee.subAccounts.clear(),Ee.spendPermissions.clear(),Ee.chains.clear(),this.accounts=[],this.chain={id:(r=(e=n?.appChainIds)===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:1}}async handleSwitchChainRequest(e){$te(e.params);let r=gv(e.params[0].chainId);if(this.updateChain(r))return null;let i=await this.sendRequestToPopup(e);return i===null&&this.updateChain(r),i}async handleGetCapabilitiesRequest(e){uIe(e.params);let r=e.params[0],n=e.params[1];if(!this.accounts.some(a=>ha(a,r)))throw pe.provider.unauthorized(\\\"no active account found when getting capabilities\\\");let i=Ee.getState().account.capabilities;if(!i)return{};if(!n||n.length===0)return i;let s=new Set(n.map(a=>jr(a)));return Object.fromEntries(Object.entries(i).filter(([a])=>{try{let c=jr(a);return s.has(c)}catch{return!1}}))}async sendEncryptedRequest(e){let r=await this.keyManager.getSharedSecret();if(!r)throw pe.provider.unauthorized(\\\"No shared secret found when encrypting request\\\");let n=await _Se({action:e,chainId:this.chain.id},r),i=Uc.get(e),s=await this.createRequestMessage({encrypted:n},i);return this.communicator.postRequestAndWaitForResponse(s)}async createRequestMessage(e,r){let n=await _L(\\\"public\\\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:r,sender:n,content:e,timestamp:new Date}}async decryptResponseMessage(e){var r,n,i;let s=e.content;if(\\\"failure\\\"in s)throw s.failure;let o=await this.keyManager.getSharedSecret();if(!o)throw pe.provider.unauthorized(\\\"Invalid session: no shared secret found when decrypting response\\\");let a=await CSe(s.encrypted,o),c=(r=a.data)===null||r===void 0?void 0:r.chains;if(c){let d=(n=a.data)===null||n===void 0?void 0:n.nativeCurrencies,f=Object.entries(c).map(([p,h])=>{let m=d?.[Number(p)];return Object.assign({id:Number(p),rpcUrl:h},m?{nativeCurrency:m}:{})});Ee.chains.set(f),this.updateChain(this.chain.id,f),bee(f)}let l=(i=a.data)===null||i===void 0?void 0:i.capabilities;return l&&Ee.account.set({capabilities:l}),a}updateChain(e,r){var n;let i=Ee.getState(),s=r??i.chains,o=s?.find(a=>a.id===e);return o?(o!==this.chain&&(this.chain=o,Ee.account.set({chain:o}),(n=this.callback)===null||n===void 0||n.call(this,\\\"chainChanged\\\",Gm(o.id))),!0):!1}async addSubAccount(e){var r,n,i,s;let a=Ee.getState().subAccount,c=Ee.subAccountsConfig.get();if(a?.address)return this.accounts=c?.enableAutoSubAccounts?fI(this.accounts,a.address):pI(this.accounts,a.address),(r=this.callback)===null||r===void 0||r.call(this,\\\"accountsChanged\\\",this.accounts),a;if(await((i=(n=this.communicator).waitForPopupLoaded)===null||i===void 0?void 0:i.call(n)),Array.isArray(e.params)&&e.params.length>0&&e.params[0].account&&e.params[0].account.type===\\\"create\\\"){let d;if(e.params[0].account.keys&&e.params[0].account.keys.length>0)d=e.params[0].account.keys;else{let f=(s=Ee.subAccountsConfig.get())!==null&&s!==void 0?s:{},{account:p}=f.toOwnerAccount?await f.toOwnerAccount():await Dv();if(!p)throw pe.provider.unauthorized(\\\"could not get subaccount owner account when adding sub account\\\");d=[{type:p.address?\\\"address\\\":\\\"webauthn-p256\\\",publicKey:p.address||p.publicKey}]}e.params[0].account.keys=d}let l=await this.sendRequestToPopup(e);return VT(l),l}shouldRequestUseSubAccountSigner(e){let r=zte(e),n=Ee.subAccounts.get();return r?r.toLowerCase()===n?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(e){var r;let n=Ee.subAccounts.get(),i=Ee.subAccountsConfig.get(),s=Ee.config.get();co(n?.address,pe.provider.unauthorized(\\\"no active sub account when sending request to sub account signer\\\"));let o=i?.toOwnerAccount?await i.toOwnerAccount():await Dv();co(o?.account,pe.provider.unauthorized(\\\"no active sub account owner when sending request to sub account signer\\\")),zte(e)===void 0&&(e=lIe(e,n.address));let c=EL(this.chain.id);co(c,pe.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let l=this.accounts.find(m=>m.toLowerCase()!==n.address.toLowerCase());co(l,pe.provider.unauthorized(\\\"no global account found when sending request to sub account signer\\\"));let d=wIe({attribution:(r=s.preference)===null||r===void 0?void 0:r.attribution,dappOrigin:window.location.origin}),f=o.account.type===\\\"local\\\"?o.account.address:o.account.publicKey,p=await _U({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:f,client:c});if(p===-1){let m=Uc.get(e);B8e({method:e.method,correlationId:m});try{p=await OIe({ownerAccount:o.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),M8e({method:e.method,correlationId:m})}catch(g){return D8e({method:e.method,correlationId:m,errorMessage:Jm(g)}),pe.provider.unauthorized(\\\"failed to add sub account owner when sending request to sub account signer\\\")}}let{request:h}=await AIe({address:n.address,owner:o.account,client:c,factory:n.factory,factoryData:n.factoryData,parentAddress:l,attribution:d?{suffix:d}:void 0,ownerIndex:p});try{return await h(e)}catch(m){let g;if(DD(m))g=JSON.parse(m.details);else if(BX(m))g=m;else throw m;if(!(BX(g)&&g.data)||!g.data)throw m;let w=Uc.get(e);L8e({method:e.method,correlationId:w});try{let v=await kIe({errorData:g.data,globalAccountAddress:l,subAccountAddress:n.address,client:c,request:e,subAccountRequest:h,globalAccountRequest:this.request.bind(this)});return U8e({method:e.method,correlationId:w}),v}catch(v){throw console.error(v),F8e({method:e.method,correlationId:w,errorMessage:Jm(v)}),m}}}}});var DIe,LIe,UIe,FIe,jIe,HIe,Gte,qIe,Kte=x(()=>{u();Uy();DIe=({method:t,correlationId:e})=>{It(\\\"walletlink_signer.handshake.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e},wt.high)},LIe=({method:t,correlationId:e,errorMessage:r})=>{It(\\\"walletlink_signer.handshake.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r},wt.high)},UIe=({method:t,correlationId:e})=>{It(\\\"walletlink_signer.handshake.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e},wt.high)},FIe=({method:t,correlationId:e})=>{It(\\\"walletlink_signer.request.started\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e},wt.high)},jIe=({method:t,correlationId:e,errorMessage:r})=>{It(\\\"walletlink_signer.request.error\\\",{action:bt.error,componentType:yt.unknown,method:t,correlationId:e,errorMessage:r},wt.high)},HIe=({method:t,correlationId:e})=>{It(\\\"walletlink_signer.request.completed\\\",{action:bt.unknown,componentType:yt.unknown,method:t,correlationId:e},wt.high)},Gte=()=>{It(\\\"walletlink_signer.walletlink_connection.connection_failed\\\",{action:bt.measurement,componentType:yt.unknown},wt.high)},qIe=()=>{It(\\\"walletlink_signer.walletlink_connection.fetch_unseen_events_failed\\\",{action:bt.measurement,componentType:yt.unknown},wt.high)}});var Qte=q(qo=>{\\\"use strict\\\";u();Object.defineProperty(qo,\\\"__esModule\\\",{value:!0});qo.output=qo.exists=qo.hash=qo.bytes=qo.bool=qo.number=qo.isBytes=void 0;function CU(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`positive integer expected, not ${t}`)}qo.number=CU;function zIe(t){if(typeof t!=\\\"boolean\\\")throw new Error(`boolean expected, not ${t}`)}qo.bool=zIe;function $Ie(t){return t instanceof Uint8Array||t!=null&&typeof t==\\\"object\\\"&&t.constructor.name===\\\"Uint8Array\\\"}qo.isBytes=$Ie;function Zte(t,...e){if(!$Ie(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}qo.bytes=Zte;function VIe(t){if(typeof t!=\\\"function\\\"||typeof t.create!=\\\"function\\\")throw new Error(\\\"Hash should be wrapped by utils.wrapConstructor\\\");CU(t.outputLen),CU(t.blockLen)}qo.hash=VIe;function WIe(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}qo.exists=WIe;function GIe(t,e){Zte(t);let r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}qo.output=GIe;var y1t={number:CU,bool:zIe,bytes:Zte,hash:VIe,exists:WIe,output:GIe};qo.default=y1t});var m9e=q(ut=>{\\\"use strict\\\";u();Object.defineProperty(ut,\\\"__esModule\\\",{value:!0});ut.add5L=ut.add5H=ut.add4H=ut.add4L=ut.add3H=ut.add3L=ut.add=ut.rotlBL=ut.rotlBH=ut.rotlSL=ut.rotlSH=ut.rotr32L=ut.rotr32H=ut.rotrBL=ut.rotrBH=ut.rotrSL=ut.rotrSH=ut.shrSL=ut.shrSH=ut.toBig=ut.split=ut.fromBig=void 0;var SU=BigInt(2**32-1),Jte=BigInt(32);function Yte(t,e=!1){return e?{h:Number(t&SU),l:Number(t>>Jte&SU)}:{h:Number(t>>Jte&SU)|0,l:Number(t&SU)|0}}ut.fromBig=Yte;function KIe(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:s,l:o}=Yte(t[i],e);[r[i],n[i]]=[s,o]}return[r,n]}ut.split=KIe;var ZIe=(t,e)=>BigInt(t>>>0)<<Jte|BigInt(e>>>0);ut.toBig=ZIe;var QIe=(t,e,r)=>t>>>r;ut.shrSH=QIe;var JIe=(t,e,r)=>t<<32-r|e>>>r;ut.shrSL=JIe;var YIe=(t,e,r)=>t>>>r|e<<32-r;ut.rotrSH=YIe;var XIe=(t,e,r)=>t<<32-r|e>>>r;ut.rotrSL=XIe;var e9e=(t,e,r)=>t<<64-r|e>>>r-32;ut.rotrBH=e9e;var t9e=(t,e,r)=>t>>>r-32|e<<64-r;ut.rotrBL=t9e;var r9e=(t,e)=>e;ut.rotr32H=r9e;var n9e=(t,e)=>t;ut.rotr32L=n9e;var i9e=(t,e,r)=>t<<r|e>>>32-r;ut.rotlSH=i9e;var s9e=(t,e,r)=>e<<r|t>>>32-r;ut.rotlSL=s9e;var o9e=(t,e,r)=>e<<r-32|t>>>64-r;ut.rotlBH=o9e;var a9e=(t,e,r)=>t<<r-32|e>>>64-r;ut.rotlBL=a9e;function c9e(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}ut.add=c9e;var l9e=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);ut.add3L=l9e;var u9e=(t,e,r,n)=>e+r+n+(t/2**32|0)|0;ut.add3H=u9e;var d9e=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0);ut.add4L=d9e;var f9e=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0;ut.add4H=f9e;var p9e=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0);ut.add5L=p9e;var h9e=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0;ut.add5H=h9e;var b1t={fromBig:Yte,split:KIe,toBig:ZIe,shrSH:QIe,shrSL:JIe,rotrSH:YIe,rotrSL:XIe,rotrBH:e9e,rotrBL:t9e,rotr32H:r9e,rotr32L:n9e,rotlSH:i9e,rotlSL:s9e,rotlBH:o9e,rotlBL:a9e,add:c9e,add3L:l9e,add3H:u9e,add4L:d9e,add4H:f9e,add5H:h9e,add5L:p9e};ut.default=b1t});var g9e=q(AU=>{\\\"use strict\\\";u();Object.defineProperty(AU,\\\"__esModule\\\",{value:!0});AU.crypto=void 0;AU.crypto=typeof globalThis==\\\"object\\\"&&\\\"crypto\\\"in globalThis?globalThis.crypto:void 0});var w9e=q(tt=>{\\\"use strict\\\";u();Object.defineProperty(tt,\\\"__esModule\\\",{value:!0});tt.randomBytes=tt.wrapXOFConstructorWithOpts=tt.wrapConstructorWithOpts=tt.wrapConstructor=tt.checkOpts=tt.Hash=tt.concatBytes=tt.toBytes=tt.utf8ToBytes=tt.asyncLoop=tt.nextTick=tt.hexToBytes=tt.bytesToHex=tt.byteSwap32=tt.byteSwapIfBE=tt.byteSwap=tt.isLE=tt.rotl=tt.rotr=tt.createView=tt.u32=tt.u8=tt.isBytes=void 0;var Xte=g9e(),tre=Qte();function w1t(t){return t instanceof Uint8Array||t!=null&&typeof t==\\\"object\\\"&&t.constructor.name===\\\"Uint8Array\\\"}tt.isBytes=w1t;var v1t=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength);tt.u8=v1t;var x1t=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));tt.u32=x1t;var E1t=t=>new DataView(t.buffer,t.byteOffset,t.byteLength);tt.createView=E1t;var _1t=(t,e)=>t<<32-e|t>>>e;tt.rotr=_1t;var C1t=(t,e)=>t<<e|t>>>32-e>>>0;tt.rotl=C1t;tt.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var S1t=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;tt.byteSwap=S1t;tt.byteSwapIfBE=tt.isLE?t=>t:t=>(0,tt.byteSwap)(t);function A1t(t){for(let e=0;e<t.length;e++)t[e]=(0,tt.byteSwap)(t[e])}tt.byteSwap32=A1t;var T1t=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));function I1t(t){(0,tre.bytes)(t);let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=T1t[t[r]];return e}tt.bytesToHex=I1t;var n0={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function y9e(t){if(t>=n0._0&&t<=n0._9)return t-n0._0;if(t>=n0._A&&t<=n0._F)return t-(n0._A-10);if(t>=n0._a&&t<=n0._f)return t-(n0._a-10)}function R1t(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"padded hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=y9e(t.charCodeAt(s)),a=y9e(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}tt.hexToBytes=R1t;var P1t=async()=>{};tt.nextTick=P1t;async function O1t(t,e,r){let n=Date.now();for(let i=0;i<t;i++){r(i);let s=Date.now()-n;s>=0&&s<e||(await(0,tt.nextTick)(),n+=s)}}tt.asyncLoop=O1t;function b9e(t){if(typeof t!=\\\"string\\\")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}tt.utf8ToBytes=b9e;function TU(t){return typeof t==\\\"string\\\"&&(t=b9e(t)),(0,tre.bytes)(t),t}tt.toBytes=TU;function N1t(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];(0,tre.bytes)(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}tt.concatBytes=N1t;var ere=class{clone(){return this._cloneInto()}};tt.Hash=ere;var k1t={}.toString;function B1t(t,e){if(e!==void 0&&k1t.call(e)!==\\\"[object Object]\\\")throw new Error(\\\"Options should be object or undefined\\\");return Object.assign(t,e)}tt.checkOpts=B1t;function M1t(t){let e=n=>t().update(TU(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}tt.wrapConstructor=M1t;function D1t(t){let e=(n,i)=>t(i).update(TU(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}tt.wrapConstructorWithOpts=D1t;function L1t(t){let e=(n,i)=>t(i).update(TU(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}tt.wrapXOFConstructorWithOpts=L1t;function U1t(t=32){if(Xte.crypto&&typeof Xte.crypto.getRandomValues==\\\"function\\\")return Xte.crypto.getRandomValues(new Uint8Array(t));throw new Error(\\\"crypto.getRandomValues must be defined\\\")}tt.randomBytes=U1t});var T9e=q(Pn=>{\\\"use strict\\\";u();Object.defineProperty(Pn,\\\"__esModule\\\",{value:!0});Pn.shake256=Pn.shake128=Pn.keccak_512=Pn.keccak_384=Pn.keccak_256=Pn.keccak_224=Pn.sha3_512=Pn.sha3_384=Pn.sha3_256=Pn.sha3_224=Pn.Keccak=Pn.keccakP=void 0;var r_=Qte(),yI=m9e(),i0=w9e(),E9e=[],_9e=[],C9e=[],F1t=BigInt(0),gI=BigInt(1),j1t=BigInt(2),H1t=BigInt(7),q1t=BigInt(256),z1t=BigInt(113);for(let t=0,e=gI,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],E9e.push(2*(5*n+r)),_9e.push((t+1)*(t+2)/2%64);let i=F1t;for(let s=0;s<7;s++)e=(e<<gI^(e>>H1t)*z1t)%q1t,e&j1t&&(i^=gI<<(gI<<BigInt(s))-gI);C9e.push(i)}var[$1t,V1t]=(0,yI.split)(C9e,!0),v9e=(t,e,r)=>r>32?(0,yI.rotlBH)(t,e,r):(0,yI.rotlSH)(t,e,r),x9e=(t,e,r)=>r>32?(0,yI.rotlBL)(t,e,r):(0,yI.rotlSL)(t,e,r);function S9e(t,e=24){let r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){let a=(o+8)%10,c=(o+2)%10,l=r[c],d=r[c+1],f=v9e(l,d,1)^r[a],p=x9e(l,d,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=p}let i=t[2],s=t[3];for(let o=0;o<24;o++){let a=_9e[o],c=v9e(i,s,a),l=x9e(i,s,a),d=E9e[o];i=t[d],s=t[d+1],t[d]=c,t[d+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=$1t[n],t[1]^=V1t[n]}r.fill(0)}Pn.keccakP=S9e;var bI=class t extends i0.Hash{constructor(e,r,n,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r_.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error(\\\"Sha3 supports only keccak-f1600 function\\\");this.state=new Uint8Array(200),this.state32=(0,i0.u32)(this.state)}keccak(){i0.isLE||(0,i0.byteSwap32)(this.state32),S9e(this.state32,this.rounds),i0.isLE||(0,i0.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r_.exists)(this);let{blockLen:r,state:n}=this;e=(0,i0.toBytes)(e);let i=e.length;for(let s=0;s<i;){let o=Math.min(r-this.pos,i-s);for(let a=0;a<o;a++)n[this.pos++]^=e[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:r,pos:n,blockLen:i}=this;e[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,r_.exists)(this,!1),(0,r_.bytes)(e),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,s=e.length;i<s;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,s-i);e.set(r.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error(\\\"XOF is not possible for this instance\\\");return this.writeInto(e)}xof(e){return(0,r_.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r_.output)(e,this),this.finished)throw new Error(\\\"digest() was already called\\\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:r,suffix:n,outputLen:i,rounds:s,enableXOF:o}=this;return e||(e=new t(r,n,i,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}};Pn.Keccak=bI;var Gy=(t,e,r)=>(0,i0.wrapConstructor)(()=>new bI(e,t,r));Pn.sha3_224=Gy(6,144,224/8);Pn.sha3_256=Gy(6,136,256/8);Pn.sha3_384=Gy(6,104,384/8);Pn.sha3_512=Gy(6,72,512/8);Pn.keccak_224=Gy(1,144,224/8);Pn.keccak_256=Gy(1,136,256/8);Pn.keccak_384=Gy(1,104,384/8);Pn.keccak_512=Gy(1,72,512/8);var A9e=(t,e,r)=>(0,i0.wrapXOFConstructorWithOpts)((n={})=>new bI(e,t,n.dkLen===void 0?r:n.dkLen,!0));Pn.shake128=A9e(31,168,128/8);Pn.shake256=A9e(31,136,256/8)});var rre=q((XGr,B9e)=>{u();var{keccak_256:W1t}=T9e();function I9e(t){return globalThis.Buffer.allocUnsafe(t).fill(0)}function G1t(t){return`0x${t.toString(16)}`}function K1t(t){let e=G1t(t);return new globalThis.Buffer(O9e(e.slice(2)),\\\"hex\\\")}function Z1t(t){return t.toString(2).length}function R9e(t,e){let r=t.toString(16);r.length%2!==0&&(r=\\\"0\\\"+r);let n=r.match(/.{1,2}/g).map(i=>parseInt(i,16));for(;n.length<e;)n.unshift(0);return globalThis.Buffer.from(n)}function Q1t(t,e){let r=t<0n,n;if(r){let i=(1n<<BigInt(e))-1n;n=(~t&i)+1n}else n=t;return n&=(1n<<BigInt(e))-1n,n}function P9e(t,e,r){let n=I9e(e);return t=IU(t),r?t.length<e?(t.copy(n),n):t.slice(0,e):t.length<e?(t.copy(n,e-t.length),n):t.slice(-e)}function J1t(t,e){return P9e(t,e,!0)}function IU(t){if(!globalThis.Buffer.isBuffer(t))if(Array.isArray(t))t=globalThis.Buffer.from(t);else if(typeof t==\\\"string\\\")N9e(t)?t=globalThis.Buffer.from(O9e(k9e(t)),\\\"hex\\\"):t=globalThis.Buffer.from(t);else if(typeof t==\\\"number\\\")t=K1t(t);else if(t==null)t=globalThis.Buffer.allocUnsafe(0);else if(typeof t==\\\"bigint\\\")t=R9e(t);else if(t.toArray)t=globalThis.Buffer.from(t.toArray());else throw new Error(\\\"invalid type\\\");return t}function Y1t(t){return t=IU(t),\\\"0x\\\"+t.toString(\\\"hex\\\")}function X1t(t,e){if(t=IU(t),e||(e=256),e!==256)throw new Error(\\\"unsupported\\\");return globalThis.Buffer.from(W1t(new Uint8Array(t)))}function O9e(t){return t.length%2?\\\"0\\\"+t:t}function N9e(t){return typeof t==\\\"string\\\"&&t.match(/^0x[0-9A-Fa-f]*$/)}function k9e(t){return typeof t==\\\"string\\\"&&t.startsWith(\\\"0x\\\")?t.slice(2):t}B9e.exports={zeros:I9e,setLength:P9e,setLengthRight:J1t,isHexString:N9e,stripHexPrefix:k9e,toBuffer:IU,bufferToHex:Y1t,keccak:X1t,bitLengthFromBigInt:Z1t,bufferBEFromBigInt:R9e,twosFromBigInt:Q1t}});var j9e=q((tKr,F9e)=>{u();var Qa=rre();function D9e(t){return t.startsWith(\\\"int[\\\")?\\\"int256\\\"+t.slice(3):t===\\\"int\\\"?\\\"int256\\\":t.startsWith(\\\"uint[\\\")?\\\"uint256\\\"+t.slice(4):t===\\\"uint\\\"?\\\"uint256\\\":t.startsWith(\\\"fixed[\\\")?\\\"fixed128x128\\\"+t.slice(5):t===\\\"fixed\\\"?\\\"fixed128x128\\\":t.startsWith(\\\"ufixed[\\\")?\\\"ufixed128x128\\\"+t.slice(6):t===\\\"ufixed\\\"?\\\"ufixed128x128\\\":t}function n_(t){return Number.parseInt(/^\\\\D+(\\\\d+)$/.exec(t)[1],10)}function M9e(t){var e=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(t);return[Number.parseInt(e[1],10),Number.parseInt(e[2],10)]}function L9e(t){var e=t.match(/(.*)\\\\[(.*?)\\\\]$/);return e?e[2]===\\\"\\\"?\\\"dynamic\\\":Number.parseInt(e[2],10):null}function Fv(t){var e=typeof t;if(e===\\\"string\\\"||e===\\\"number\\\")return BigInt(t);if(e===\\\"bigint\\\")return t;throw new Error(\\\"Argument is not a number\\\")}function Op(t,e){var r,n,i,s;if(t===\\\"address\\\")return Op(\\\"uint160\\\",Fv(e));if(t===\\\"bool\\\")return Op(\\\"uint8\\\",e?1:0);if(t===\\\"string\\\")return Op(\\\"bytes\\\",new globalThis.Buffer(e,\\\"utf8\\\"));if(tbt(t)){if(typeof e.length>\\\"u\\\")throw new Error(\\\"Not an array?\\\");if(r=L9e(t),r!==\\\"dynamic\\\"&&r!==0&&e.length>r)throw new Error(\\\"Elements exceed array size: \\\"+r);i=[],t=t.slice(0,t.lastIndexOf(\\\"[\\\")),typeof e==\\\"string\\\"&&(e=JSON.parse(e));for(s in e)i.push(Op(t,e[s]));if(r===\\\"dynamic\\\"){var o=Op(\\\"uint256\\\",e.length);i.unshift(o)}return globalThis.Buffer.concat(i)}else{if(t===\\\"bytes\\\")return e=new globalThis.Buffer(e),i=globalThis.Buffer.concat([Op(\\\"uint256\\\",e.length),e]),e.length%32!==0&&(i=globalThis.Buffer.concat([i,Qa.zeros(32-e.length%32)])),i;if(t.startsWith(\\\"bytes\\\")){if(r=n_(t),r<1||r>32)throw new Error(\\\"Invalid bytes<N> width: \\\"+r);return Qa.setLengthRight(e,32)}else if(t.startsWith(\\\"uint\\\")){if(r=n_(t),r%8||r<8||r>256)throw new Error(\\\"Invalid uint<N> width: \\\"+r);n=Fv(e);let a=Qa.bitLengthFromBigInt(n);if(a>r)throw new Error(\\\"Supplied uint exceeds width: \\\"+r+\\\" vs \\\"+a);if(n<0)throw new Error(\\\"Supplied uint is negative\\\");return Qa.bufferBEFromBigInt(n,32)}else if(t.startsWith(\\\"int\\\")){if(r=n_(t),r%8||r<8||r>256)throw new Error(\\\"Invalid int<N> width: \\\"+r);n=Fv(e);let a=Qa.bitLengthFromBigInt(n);if(a>r)throw new Error(\\\"Supplied int exceeds width: \\\"+r+\\\" vs \\\"+a);let c=Qa.twosFromBigInt(n,256);return Qa.bufferBEFromBigInt(c,32)}else if(t.startsWith(\\\"ufixed\\\")){if(r=M9e(t),n=Fv(e),n<0)throw new Error(\\\"Supplied ufixed is negative\\\");return Op(\\\"uint256\\\",n*BigInt(2)**BigInt(r[1]))}else if(t.startsWith(\\\"fixed\\\"))return r=M9e(t),Op(\\\"int256\\\",Fv(e)*BigInt(2)**BigInt(r[1]))}throw new Error(\\\"Unsupported or invalid type: \\\"+t)}function ebt(t){return t===\\\"string\\\"||t===\\\"bytes\\\"||L9e(t)===\\\"dynamic\\\"}function tbt(t){return t.lastIndexOf(\\\"]\\\")===t.length-1}function rbt(t,e){var r=[],n=[],i=32*t.length;for(var s in t){var o=D9e(t[s]),a=e[s],c=Op(o,a);ebt(o)?(r.push(Op(\\\"uint256\\\",i)),n.push(c),i+=c.length):r.push(c)}return globalThis.Buffer.concat(r.concat(n))}function U9e(t,e){if(t.length!==e.length)throw new Error(\\\"Number of types are not matching the values\\\");for(var r,n,i=[],s=0;s<t.length;s++){var o=D9e(t[s]),a=e[s];if(o===\\\"bytes\\\")i.push(a);else if(o===\\\"string\\\")i.push(new globalThis.Buffer(a,\\\"utf8\\\"));else if(o===\\\"bool\\\")i.push(new globalThis.Buffer(a?\\\"01\\\":\\\"00\\\",\\\"hex\\\"));else if(o===\\\"address\\\")i.push(Qa.setLength(a,20));else if(o.startsWith(\\\"bytes\\\")){if(r=n_(o),r<1||r>32)throw new Error(\\\"Invalid bytes<N> width: \\\"+r);i.push(Qa.setLengthRight(a,r))}else if(o.startsWith(\\\"uint\\\")){if(r=n_(o),r%8||r<8||r>256)throw new Error(\\\"Invalid uint<N> width: \\\"+r);n=Fv(a);let c=Qa.bitLengthFromBigInt(n);if(c>r)throw new Error(\\\"Supplied uint exceeds width: \\\"+r+\\\" vs \\\"+c);i.push(Qa.bufferBEFromBigInt(n,r/8))}else if(o.startsWith(\\\"int\\\")){if(r=n_(o),r%8||r<8||r>256)throw new Error(\\\"Invalid int<N> width: \\\"+r);n=Fv(a);let c=Qa.bitLengthFromBigInt(n);if(c>r)throw new Error(\\\"Supplied int exceeds width: \\\"+r+\\\" vs \\\"+c);let l=Qa.twosFromBigInt(n,r);i.push(Qa.bufferBEFromBigInt(l,r/8))}else throw new Error(\\\"Unsupported or invalid type: \\\"+o)}return globalThis.Buffer.concat(i)}function nbt(t,e){return Qa.keccak(U9e(t,e))}F9e.exports={rawEncode:rbt,solidityPack:U9e,soliditySHA3:nbt}});var z9e=q((nKr,q9e)=>{u();var sf=rre(),wI=j9e(),H9e={type:\\\"object\\\",properties:{types:{type:\\\"object\\\",additionalProperties:{type:\\\"array\\\",items:{type:\\\"object\\\",properties:{name:{type:\\\"string\\\"},type:{type:\\\"string\\\"}},required:[\\\"name\\\",\\\"type\\\"]}}},primaryType:{type:\\\"string\\\"},domain:{type:\\\"object\\\"},message:{type:\\\"object\\\"}},required:[\\\"types\\\",\\\"primaryType\\\",\\\"domain\\\",\\\"message\\\"]},nre={encodeData(t,e,r,n=!0){let i=[\\\"bytes32\\\"],s=[this.hashType(t,r)];if(n){let o=(a,c,l)=>{if(r[c]!==void 0)return[\\\"bytes32\\\",l==null?\\\"0x0000000000000000000000000000000000000000000000000000000000000000\\\":sf.keccak(this.encodeData(c,l,r,n))];if(l===void 0)throw new Error(`missing value for field ${a} of type ${c}`);if(c===\\\"bytes\\\")return[\\\"bytes32\\\",sf.keccak(l)];if(c===\\\"string\\\")return typeof l==\\\"string\\\"&&(l=globalThis.Buffer.from(l,\\\"utf8\\\")),[\\\"bytes32\\\",sf.keccak(l)];if(c.lastIndexOf(\\\"]\\\")===c.length-1){let d=c.slice(0,c.lastIndexOf(\\\"[\\\")),f=l.map(p=>o(a,d,p));return[\\\"bytes32\\\",sf.keccak(wI.rawEncode(f.map(([p])=>p),f.map(([,p])=>p)))]}return[c,l]};for(let a of r[t]){let[c,l]=o(a.name,a.type,e[a.name]);i.push(c),s.push(l)}}else for(let o of r[t]){let a=e[o.name];if(a!==void 0)if(o.type===\\\"bytes\\\")i.push(\\\"bytes32\\\"),a=sf.keccak(a),s.push(a);else if(o.type===\\\"string\\\")i.push(\\\"bytes32\\\"),typeof a==\\\"string\\\"&&(a=globalThis.Buffer.from(a,\\\"utf8\\\")),a=sf.keccak(a),s.push(a);else if(r[o.type]!==void 0)i.push(\\\"bytes32\\\"),a=sf.keccak(this.encodeData(o.type,a,r,n)),s.push(a);else{if(o.type.lastIndexOf(\\\"]\\\")===o.type.length-1)throw new Error(\\\"Arrays currently unimplemented in encodeData\\\");i.push(o.type),s.push(a)}}return wI.rawEncode(i,s)},encodeType(t,e){let r=\\\"\\\",n=this.findTypeDependencies(t,e).filter(i=>i!==t);n=[t].concat(n.sort());for(let i of n){if(!e[i])throw new Error(\\\"No type definition specified: \\\"+i);r+=i+\\\"(\\\"+e[i].map(({name:o,type:a})=>a+\\\" \\\"+o).join(\\\",\\\")+\\\")\\\"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\\\\w*/)[0],r.includes(t)||e[t]===void 0)return r;r.push(t);for(let n of e[t])for(let i of this.findTypeDependencies(n.type,e,r))!r.includes(i)&&r.push(i);return r},hashStruct(t,e,r,n=!0){return sf.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return sf.keccak(this.encodeType(t,e))},sanitizeData(t){let e={};for(let r in H9e.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){let r=this.sanitizeData(t),n=[globalThis.Buffer.from(\\\"1901\\\",\\\"hex\\\")];return n.push(this.hashStruct(\\\"EIP712Domain\\\",r.domain,r.types,e)),r.primaryType!==\\\"EIP712Domain\\\"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,e)),sf.keccak(globalThis.Buffer.concat(n))}};q9e.exports={TYPED_MESSAGE_SCHEMA:H9e,TypedDataUtils:nre,hashForSignTypedDataLegacy:function(t){return ibt(t.data)},hashForSignTypedData_v3:function(t){return nre.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return nre.hash(t.data)}};function ibt(t){let e=new Error(\\\"Expect argument to be non-empty array\\\");if(typeof t!=\\\"object\\\"||!t.length)throw e;let r=t.map(function(s){return s.type===\\\"bytes\\\"?sf.toBuffer(s.value):s.value}),n=t.map(function(s){return s.type}),i=t.map(function(s){if(!s.name)throw e;return s.type+\\\" \\\"+s.name});return wI.soliditySHA3([\\\"bytes32\\\",\\\"bytes32\\\"],[wI.soliditySHA3(new Array(t.length).fill(\\\"string\\\"),i),wI.soliditySHA3(n,r)])}});var $9e,vI,V9e,RU=x(()=>{u();$9e=\\\"walletUsername\\\",vI=\\\"Addresses\\\",V9e=\\\"AppVersion\\\"});var PU,W9e=x(()=>{u();tf();PU=class{constructor(e){this.secret=e}async encrypt(e){let r=this.secret;if(r.length!==64)throw new Error(\\\"secret must be 256 bits\\\");let n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey(\\\"raw\\\",i3(r),{name:\\\"aes-gcm\\\"},!1,[\\\"encrypt\\\",\\\"decrypt\\\"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:\\\"AES-GCM\\\",iv:n},i,s.encode(e)),a=16,c=o.slice(o.byteLength-a),l=o.slice(0,o.byteLength-a),d=new Uint8Array(c),f=new Uint8Array(l),p=new Uint8Array([...n,...d,...f]);return DT(p)}async decrypt(e){let r=this.secret;if(r.length!==64)throw new Error(\\\"secret must be 256 bits\\\");return new Promise((n,i)=>{(async()=>{let s=await crypto.subtle.importKey(\\\"raw\\\",i3(r),{name:\\\"aes-gcm\\\"},!1,[\\\"encrypt\\\",\\\"decrypt\\\"]),o=i3(e),a=o.slice(0,12),c=o.slice(12,28),l=o.slice(28),d=new Uint8Array([...l,...c]),f={name:\\\"AES-GCM\\\",iv:new Uint8Array(a)};try{let p=await window.crypto.subtle.decrypt(f,s,d),h=new TextDecoder;n(h.decode(p))}catch(p){i(p)}})()})}}});var OU,G9e=x(()=>{u();OU=class{constructor(e,r,n){this.linkAPIUrl=e,this.sessionId=r;let i=`${r}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:\\\"POST\\\",headers:{Authorization:this.auth}}))).catch(r=>console.error(\\\"Unable to mark events as seen:\\\",r))}async fetchUnseenEvents(){var e;let r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){let{events:n,error:i}=await r.json();if(i)throw new Error(`Check unseen events failed: ${i}`);let s=(e=n?.filter(o=>o.event===\\\"Web3Response\\\").map(o=>({type:\\\"Event\\\",sessionId:this.sessionId,eventId:o.id,event:o.event,data:o.data})))!==null&&e!==void 0?e:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}}});var of,jv,K9e=x(()=>{u();(function(t){t[t.DISCONNECTED=0]=\\\"DISCONNECTED\\\",t[t.CONNECTING=1]=\\\"CONNECTING\\\",t[t.CONNECTED=2]=\\\"CONNECTED\\\"})(of||(of={}));jv=class t{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.isDisconnecting=!1,this.url=e.replace(/^http/,\\\"ws\\\"),this.instanceId=t.instanceCounter++,t.activeInstances.add(this.instanceId)}async connect(){if(this.webSocket)throw new Error(\\\"webSocket object is not null\\\");if(this.isDisconnecting)throw new Error(\\\"WebSocket is disconnecting, cannot reconnect on same instance\\\");return new Promise((e,r)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,of.CONNECTING),i.onclose=s=>{var o;this.clearWebSocket(),i.readyState!==WebSocket.OPEN&&r(new Error(`websocket error ${s.code}: ${s.reason}`)),(o=this.connectionStateListener)===null||o===void 0||o.call(this,of.DISCONNECTED)},i.onopen=s=>{var o;e(),(o=this.connectionStateListener)===null||o===void 0||o.call(this,of.CONNECTED),t.pendingData.length>0&&([...t.pendingData].forEach(c=>this.sendData(c)),t.pendingData=[])},i.onmessage=s=>{var o,a;if(s.data===\\\"h\\\")(o=this.incomingDataListener)===null||o===void 0||o.call(this,{type:\\\"Heartbeat\\\"});else try{let c=JSON.parse(s.data);(a=this.incomingDataListener)===null||a===void 0||a.call(this,c)}catch{}}})}disconnect(){var e;let{webSocket:r}=this;if(r){this.isDisconnecting=!0,this.clearWebSocket(),(e=this.connectionStateListener)===null||e===void 0||e.call(this,of.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(e){let{webSocket:r}=this;if(!r){t.pendingData.push(e),this.isDisconnecting||this.connect();return}if(r.readyState!==WebSocket.OPEN){t.pendingData.push(e);return}r.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}cleanup(){t.activeInstances.delete(this.instanceId)}};jv.instanceCounter=0;jv.activeInstances=new Set;jv.pendingData=[]});var Z9e,sbt,NU,Q9e=x(()=>{u();Kte();DX();RU();W9e();G9e();K9e();Z9e=1e4,sbt=6e4,NU=class{constructor({session:e,linkAPIUrl:r,listener:n}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=Xd(1),this.reconnectAttempts=0,this.isReconnecting=!1,this._connected=!1,this._linked=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=s=>{if(!s)return;new Map([[\\\"__destroyed\\\",this.handleDestroyed],[\\\"EthereumAddress\\\",this.handleAccountUpdated],[\\\"WalletUsername\\\",this.handleWalletUsernameUpdated],[\\\"AppVersion\\\",this.handleAppVersionUpdated],[\\\"ChainId\\\",a=>s.JsonRpcUrl&&this.handleChainUpdated(a,s.JsonRpcUrl)]]).forEach((a,c)=>{let l=s[c];l!==void 0&&a(l)})},this.handleDestroyed=s=>{var o;s===\\\"1\\\"&&((o=this.listener)===null||o===void 0||o.resetAndReload())},this.handleAccountUpdated=async s=>{var o;try{let a=await this.cipher.decrypt(s);(o=this.listener)===null||o===void 0||o.accountUpdated(a)}catch{}},this.handleMetadataUpdated=async(s,o)=>{var a;try{let c=await this.cipher.decrypt(o);(a=this.listener)===null||a===void 0||a.metadataUpdated(s,c)}catch{}},this.handleWalletUsernameUpdated=async s=>{this.handleMetadataUpdated($9e,s)},this.handleAppVersionUpdated=async s=>{this.handleMetadataUpdated(V9e,s)},this.handleChainUpdated=async(s,o)=>{var a;try{let c=await this.cipher.decrypt(s),l=await this.cipher.decrypt(o);(a=this.listener)===null||a===void 0||a.chainUpdated(c,l)}catch{}},this.session=e,this.cipher=new PU(e.secret),this.listener=n,this.linkAPIUrl=r,this.WebSocketClass=WebSocket;let i=this.createWebSocket();this.ws=i,this.http=new OU(r,e.id,e.key),this.setupVisibilityChangeHandler()}createWebSocket(){let e=new jv(`${this.linkAPIUrl}/rpc`,this.WebSocketClass);return this.activeWsInstance=e,e.setConnectionStateListener(async r=>{if(e!==this.activeWsInstance)return;let n=!1;switch(r){case of.DISCONNECTED:this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.lastHeartbeatResponse=0,n=!1,this.destroyed||(async()=>{if(this.isReconnecting)return;this.isReconnecting=!0;let s=this.reconnectAttempts===0?0:3e3;await new Promise(o=>setTimeout(o,s)),!this.destroyed&&e===this.activeWsInstance?(this.reconnectAttempts++,\\\"cleanup\\\"in this.ws&&typeof this.ws.cleanup==\\\"function\\\"&&this.ws.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{Gte()}).finally(()=>{this.isReconnecting=!1})):this.isReconnecting=!1})();break;case of.CONNECTED:this.reconnectAttempts=0;try{n=await this.handleConnected(),this.fetchUnseenEventsAPI().catch(()=>{})}catch{break}this.connected=n,this.updateLastHeartbeat(),this.heartbeatIntervalId&&clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=window.setInterval(()=>{this.heartbeat()},Z9e),setTimeout(()=>{this.heartbeat()},100);break;case of.CONNECTING:break}r!==of.CONNECTED&&(this.connected=n)}),e.setIncomingDataListener(r=>{var n;switch(r.type){case\\\"Heartbeat\\\":this.updateLastHeartbeat();return;case\\\"IsLinkedOK\\\":case\\\"Linked\\\":{let i=r.type===\\\"IsLinkedOK\\\"?r.linked:void 0;this.linked=i||r.onlineGuests>0;break}case\\\"GetSessionConfigOK\\\":case\\\"SessionConfigUpdated\\\":{this.handleSessionMetadataUpdated(r.metadata);break}case\\\"Event\\\":{this.handleIncomingEvent(r);break}}r.id!==void 0&&((n=this.requestResolutions.get(r.id))===null||n===void 0||n(r))}),e}setupVisibilityChangeHandler(){this.visibilityChangeHandler=()=>{!document.hidden&&!this.destroyed&&(this.connected?this.heartbeat():this.reconnectWithFreshWebSocket())},this.focusHandler=()=>{!this.destroyed&&!this.connected&&this.reconnectWithFreshWebSocket()},document.addEventListener(\\\"visibilitychange\\\",this.visibilityChangeHandler),window.addEventListener(\\\"focus\\\",this.focusHandler),window.addEventListener(\\\"pageshow\\\",e=>{e.persisted&&this.focusHandler&&this.focusHandler()})}reconnectWithFreshWebSocket(){if(this.destroyed)return;let e=this.ws;this.activeWsInstance=void 0,e.disconnect(),\\\"cleanup\\\"in e&&typeof e.cleanup==\\\"function\\\"&&e.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{Gte()})}connect(){if(this.destroyed)throw new Error(\\\"instance is destroyed\\\");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:\\\"SetSessionConfig\\\",id:Xd(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:\\\"1\\\"}},{timeout:1e3}),this.destroyed=!0,this.activeWsInstance=void 0,this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.visibilityChangeHandler&&document.removeEventListener(\\\"visibilitychange\\\",this.visibilityChangeHandler),this.focusHandler&&window.removeEventListener(\\\"focus\\\",this.focusHandler),this.ws.disconnect(),\\\"cleanup\\\"in this.ws&&typeof this.ws.cleanup==\\\"function\\\"&&this.ws.cleanup(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var r,n;this._linked=e,e&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(e)}setOnceLinked(e){return new Promise(r=>{this.linked?e().then(r):this.onceLinked=()=>{e().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(e){var r;if(!(e.type!==\\\"Event\\\"||e.event!==\\\"Web3Response\\\"))try{let n=await this.cipher.decrypt(e.data),i=JSON.parse(n);if(i.type!==\\\"WEB3_RESPONSE\\\")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(i.id,i.response)}catch{}}async checkUnseenEvents(){await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error(\\\"Unable to check for unseen events\\\",e)}}async fetchUnseenEventsAPI(){try{(await this.http.fetchUnseenEvents()).forEach(r=>{this.handleIncomingEvent(r)})}catch{qIe()}}async publishEvent(e,r,n=!1){let i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,location:location.href,relaySource:\\\"coinbaseWalletExtension\\\"in window&&window.coinbaseWalletExtension?\\\"injected_sdk\\\":\\\"sdk\\\"}))),s={type:\\\"PublishEvent\\\",id:Xd(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:n};return this.setOnceLinked(async()=>{let o=await this.makeRequest(s);if(o.type===\\\"Fail\\\")throw new Error(o.error||\\\"failed to publish event\\\");return o.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>Z9e*2){this.ws.disconnect();return}if(this.connected)try{this.ws.sendData(\\\"h\\\")}catch{}}async makeRequest(e,r={timeout:sbt}){let n=e.id;this.sendData(e);let i;return Promise.race([new Promise((s,o)=>{i=window.setTimeout(()=>{o(new Error(`request ${n} timed out`))},r.timeout)}),new Promise(s=>{this.requestResolutions.set(n,o=>{clearTimeout(i),s(o),this.requestResolutions.delete(n)})})])}async handleConnected(){return(await this.makeRequest({type:\\\"HostSession\\\",id:Xd(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type===\\\"Fail\\\"?!1:(this.sendData({type:\\\"IsLinked\\\",id:Xd(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:\\\"GetSessionConfig\\\",id:Xd(this.nextReqId++),sessionId:this.session.id}),!0)}}});var kU,J9e=x(()=>{u();tf();kU=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,r=UX(e.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),e}}});function obt(t){return t instanceof Uint8Array||t!=null&&typeof t==\\\"object\\\"&&t.constructor.name===\\\"Uint8Array\\\"}function BU(t,...e){if(!obt(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function ire(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function Y9e(t,e){BU(t);let r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var sre=x(()=>{u()});function X9e(t){BU(t);let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=abt[t[r]];return e}function cbt(t){if(typeof t!=\\\"string\\\")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function ore(t){return typeof t==\\\"string\\\"&&(t=cbt(t)),BU(t),t}function e7e(t){let e=n=>t().update(ore(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}var DU,af,IKr,abt,MU,RKr,LU=x(()=>{u();sre();DU=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),af=(t,e)=>t<<32-e|t>>>e,IKr=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,abt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));MU=class{clone(){return this._cloneInto()}},RKr={}.toString});function lbt(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}var t7e,r7e,UU,n7e=x(()=>{u();sre();LU();t7e=(t,e,r)=>t&e^~t&r,r7e=(t,e,r)=>t&e^t&r^e&r,UU=class extends MU{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=DU(this.buffer)}update(e){ire(this);let{view:r,buffer:n,blockLen:i}=this;e=ore(e);let s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let c=DU(e);for(;i<=s-o;o+=i)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){ire(this),Y9e(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:s}=this,{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(n,0),o=0);for(let f=o;f<i;f++)r[f]=0;lbt(n,i-8,BigInt(this.length*8),s),this.process(n,0);let a=DU(e),c=this.outputLen;if(c%4)throw new Error(\\\"_sha2: outputLen should be aligned to 32bit\\\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\\\"_sha2: outputLen bigger than state\\\");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],s)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.length=i,e.pos=a,e.finished=s,e.destroyed=o,i%r&&e.buffer.set(n),e}}});var ubt,Ky,Zy,are,i7e,s7e=x(()=>{u();n7e();LU();ubt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ky=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Zy=new Uint32Array(64),are=class extends UU{constructor(){super(64,32,8,!1),this.A=Ky[0]|0,this.B=Ky[1]|0,this.C=Ky[2]|0,this.D=Ky[3]|0,this.E=Ky[4]|0,this.F=Ky[5]|0,this.G=Ky[6]|0,this.H=Ky[7]|0}get(){let{A:e,B:r,C:n,D:i,E:s,F:o,G:a,H:c}=this;return[e,r,n,i,s,o,a,c]}set(e,r,n,i,s,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=s|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Zy[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let p=Zy[f-15],h=Zy[f-2],m=af(p,7)^af(p,18)^p>>>3,g=af(h,17)^af(h,19)^h>>>10;Zy[f]=g+Zy[f-7]+m+Zy[f-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:c,G:l,H:d}=this;for(let f=0;f<64;f++){let p=af(a,6)^af(a,11)^af(a,25),h=d+p+t7e(a,c,l)+ubt[f]+Zy[f]|0,g=(af(n,2)^af(n,13)^af(n,22))+r7e(n,i,s)|0;d=l,l=c,c=a,a=o+h|0,o=s,s=i,i=n,n=h+g|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,i,s,o,a,c,l,d)}roundClean(){Zy.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},i7e=e7e(()=>new are)});var o7e,a7e,c7e,i_,l7e=x(()=>{u();s7e();LU();tf();o7e=\\\"session:id\\\",a7e=\\\"session:secret\\\",c7e=\\\"session:linked\\\",i_=class t{constructor(e,r,n,i=!1){this.storage=e,this.id=r,this.secret=n,this.key=X9e(i7e(`${r}, ${n} WalletLink`)),this._linked=!!i}static create(e){let r=Wm(16),n=Wm(32);return new t(e,r,n).save()}static load(e){let r=e.getItem(o7e),n=e.getItem(c7e),i=e.getItem(a7e);return r&&i?new t(e,r,i,n===\\\"1\\\"):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(o7e,this.id),this.storage.setItem(a7e,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(c7e,this._linked?\\\"1\\\":\\\"0\\\")}}});var u7e,d7e=x(()=>{u();u7e=\\\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\\\"});var FU,dbt,f7e=x(()=>{u();Fy();d3();d3();zX();nL();FT();d7e();FU=class{constructor(){this.root=null,this.darkMode=rL()}attach(){let e=document.documentElement;this.root=document.createElement(\\\"div\\\"),this.root.className=\\\"-cbwsdk-css-reset\\\",e.appendChild(this.root),GD()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&(UT(null,this.root),e&&UT(zr(dbt,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}},dbt=({title:t,buttonText:e,darkMode:r,onButtonClick:n,onDismiss:i})=>{let s=r?\\\"dark\\\":\\\"light\\\";return zr(tee,{darkMode:r},zr(\\\"div\\\",{class:\\\"-cbwsdk-redirect-dialog\\\"},zr(\\\"style\\\",null,u7e),zr(\\\"div\\\",{class:\\\"-cbwsdk-redirect-dialog-backdrop\\\",onClick:i}),zr(\\\"div\\\",{class:Qm(\\\"-cbwsdk-redirect-dialog-box\\\",s)},zr(\\\"p\\\",null,t),zr(\\\"button\\\",{onClick:n},e))))}});var xI,p7e=x(()=>{u();a3();f7e();FT();xI=class{constructor(){this.attached=!1,this.redirectDialog=new FU}attach(){if(this.attached)throw new Error(\\\"Coinbase Wallet SDK UI is already attached\\\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let r=new URL(_4e);r.searchParams.append(\\\"redirect_url\\\",n8e().href),e&&r.searchParams.append(\\\"wl_url\\\",e);let n=document.createElement(\\\"a\\\");n.target=\\\"cbw-opener\\\",n.href=r.href,n.rel=\\\"noreferrer noopener\\\",n.click()}openCoinbaseWalletDeeplink(e){this.redirectToCoinbaseWallet(e),setTimeout(()=>{this.redirectDialog.present({title:\\\"Redirecting to Coinbase Wallet...\\\",buttonText:\\\"Open\\\",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}})},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}});var EI,h7e=x(()=>{u();va();HT();tf();Q9e();RU();J9e();l7e();cL();FT();nee();p7e();EI=class t{constructor(e){this.chainCallbackParams={chainId:\\\"\\\",jsonRpcUrl:\\\"\\\"},this.isMobileWeb=i8e(),this.linkedUpdated=s=>{this.isLinked=s;let o=this.storage.getItem(vI);if(s&&(this._session.linked=s),this.isUnlinkedErrorState=!1,o){let a=o.split(\\\" \\\"),c=this.storage.getItem(\\\"IsStandaloneSigning\\\")===\\\"true\\\";a[0]!==\\\"\\\"&&!s&&this._session.linked&&!c&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(s,o)=>{this.storage.setItem(s,o)},this.chainUpdated=(s,o)=>{this.chainCallbackParams.chainId===s&&this.chainCallbackParams.jsonRpcUrl===o||(this.chainCallbackParams={chainId:s,jsonRpcUrl:o},this.chainCallback&&this.chainCallback(o,Number.parseInt(s,10)))},this.accountUpdated=s=>{this.accountsCallback&&this.accountsCallback([s]),t.accountRequestCallbackIds.size>0&&(Array.from(t.accountRequestCallbackIds.values()).forEach(o=>{this.invokeCallback(o,{method:\\\"requestEthereumAccounts\\\",result:[s]})}),t.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;let{session:r,ui:n,connection:i}=this.subscribe();this._session=r,this.connection=i,this.relayEventManager=new kU,this.ui=n,this.ui.attach()}subscribe(){let e=i_.load(this.storage)||i_.create(this.storage),{linkAPIUrl:r}=this,n=new NU({session:e,linkAPIUrl:r,listener:this}),i=this.isMobileWeb?new xI:new iL;return n.connect(),{session:e,ui:i,connection:n}}resetAndReload(){this.connection.destroy().then(()=>{let e=i_.load(this.storage);e?.id===this._session.id&&Sp.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:\\\"signEthereumTransaction\\\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:ef(e.weiValue),data:mv(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?ef(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?ef(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?ef(e.gasPriceInWei):null,gasLimit:e.gasLimit?ef(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:\\\"signEthereumTransaction\\\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:ef(e.weiValue),data:mv(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?ef(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?ef(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?ef(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?ef(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,r){return this.sendRequest({method:\\\"submitEthereumTransaction\\\",params:{signedTransaction:mv(e,!0),chainId:r}})}getWalletLinkSession(){return this._session}sendRequest(e){let r=null,n=Wm(8),i=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),r?.()};return new Promise((s,o)=>{r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(n,a=>{if(r?.(),Ss(a))return o(new Error(a.errorMessage));s(a)}),this.publishWeb3RequestEvent(n,e)})}publishWeb3RequestEvent(e,r){let n={type:\\\"WEB3_REQUEST\\\",id:e,request:r};this.publishEvent(\\\"Web3Request\\\",n,!0).then(i=>{}).catch(i=>{this.handleWeb3ResponseMessage(n.id,{method:r.method,errorMessage:i.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(r.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof xI)switch(e){case\\\"requestEthereumAccounts\\\":case\\\"switchEthereumChain\\\":return;default:window.addEventListener(\\\"blur\\\",()=>{window.addEventListener(\\\"focus\\\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(e){let r={type:\\\"WEB3_REQUEST_CANCELED\\\",id:e};this.publishEvent(\\\"Web3RequestCanceled\\\",r,!1).then()}publishEvent(e,r,n){return this.connection.publishEvent(e,r,n)}handleWeb3ResponseMessage(e,r){if(r.method===\\\"requestEthereumAccounts\\\"){t.accountRequestCallbackIds.forEach(n=>this.invokeCallback(n,r)),t.accountRequestCallbackIds.clear();return}this.invokeCallback(e,r)}handleErrorResponse(e,r,n){var i;let s=(i=n?.message)!==null&&i!==void 0?i:\\\"Unspecified error message.\\\";this.handleWeb3ResponseMessage(e,{method:r,errorMessage:s})}invokeCallback(e,r){let n=this.relayEventManager.callbacks.get(e);n&&(n(r),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){let{appName:e,appLogoUrl:r}=this.metadata,n={method:\\\"requestEthereumAccounts\\\",params:{appName:e,appLogoUrl:r}},i=null,s=Wm(8);return new Promise((o,a)=>{this.relayEventManager.callbacks.set(s,c=>{if(i?.(),Ss(c))return a(new Error(c.errorMessage));o(c)}),t.accountRequestCallbackIds.add(s),this.publishWeb3RequestEvent(s,n)})}watchAsset(e,r,n,i,s,o){let a={method:\\\"watchAsset\\\",params:{type:e,options:{address:r,symbol:n,decimals:i,image:s},chainId:o}},c=null,l=Wm(8),d=f=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,a.method,f),c?.()};return c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload}),new Promise((f,p)=>{this.relayEventManager.callbacks.set(l,h=>{if(c?.(),Ss(h))return p(new Error(h.errorMessage));f(h)}),this.publishWeb3RequestEvent(l,a)})}addEthereumChain(e,r,n,i,s,o){let a={method:\\\"addEthereumChain\\\",params:{chainId:e,rpcUrls:r,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:o}},c=null,l=Wm(8),d=f=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,a.method,f),c?.()};return c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload}),new Promise((f,p)=>{this.relayEventManager.callbacks.set(l,h=>{if(c?.(),Ss(h))return p(new Error(h.errorMessage));f(h)}),this.publishWeb3RequestEvent(l,a)})}switchEthereumChain(e,r){let n={method:\\\"switchEthereumChain\\\",params:Object.assign({chainId:e},{address:r})},i=null,s=Wm(8),o=a=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,n.method,a),i?.()};return i=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload}),new Promise((a,c)=>{this.relayEventManager.callbacks.set(s,l=>{if(i?.(),Ss(l)&&l.errorCode)return c(pe.provider.custom({code:l.errorCode,message:\\\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\\\"}));if(Ss(l))return c(new Error(l.errorMessage));a(l)}),this.publishWeb3RequestEvent(s,n)})}};EI.accountRequestCallbackIds=new Set});var _I,m7e,g7e,CI,y7e=x(()=>{u();a3();va();HT();Kte();iee();tf();dL();o3();_I=Me(z9e(),1);h7e();RU();cL();m7e=\\\"DefaultChainId\\\",g7e=\\\"DefaultJsonRpcUrl\\\",CI=class{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new Sp(\\\"walletlink\\\",qX),this.callback=e.callback||null;let r=this._storage.getItem(vI);if(r){let n=r.split(\\\" \\\");n[0]!==\\\"\\\"&&(this._addresses=n.map(i=>Km(i)))}this.initializeRelay()}getSession(){let e=this.initializeRelay(),{id:r,secret:n}=e.getWalletLinkSession();return{id:r,secret:n}}async handshake(e){let r=\\\"eth_requestAccounts\\\",n=Uc.get(e);DIe({method:r,correlationId:n});try{await this._eth_requestAccounts(),UIe({method:r,correlationId:n})}catch(i){throw LIe({method:r,correlationId:n,errorMessage:Jm(i)}),i}}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(g7e))!==null&&e!==void 0?e:void 0}set jsonRpcUrl(e){this._storage.setItem(g7e,e)}updateProviderInfo(e,r){var n;this.jsonRpcUrl=e;let i=this.getChainId();this._storage.setItem(m7e,r.toString(10)),gv(r)!==i&&((n=this.callback)===null||n===void 0||n.call(this,\\\"chainChanged\\\",Gm(r)))}async watchAsset(e){let r=Array.isArray(e)?e[0]:e;if(!r.type)throw pe.rpc.invalidParams(\\\"Type is required\\\");if(r?.type!==\\\"ERC20\\\")throw pe.rpc.invalidParams(`Asset of type '${r.type}' is not supported`);if(!r?.options)throw pe.rpc.invalidParams(\\\"Options are required\\\");if(!r?.options.address)throw pe.rpc.invalidParams(\\\"Address is required\\\");let n=this.getChainId(),{address:i,symbol:s,image:o,decimals:a}=r.options,l=await this.initializeRelay().watchAsset(r.type,i,s,a,o,n?.toString());return Ss(l)?!1:!!l.result}async addEthereumChain(e){var r,n;let i=e[0];if(((r=i.rpcUrls)===null||r===void 0?void 0:r.length)===0)throw pe.rpc.invalidParams(\\\"please pass in at least 1 rpcUrl\\\");if(!i.chainName||i.chainName.trim()===\\\"\\\")throw pe.rpc.invalidParams(\\\"chainName is a required field\\\");if(!i.nativeCurrency)throw pe.rpc.invalidParams(\\\"nativeCurrency is a required field\\\");let s=Number.parseInt(i.chainId,16);if(s===this.getChainId())return!1;let o=this.initializeRelay(),{rpcUrls:a=[],blockExplorerUrls:c=[],chainName:l,iconUrls:d=[],nativeCurrency:f}=i,p=await o.addEthereumChain(s.toString(),a,d,c,l,f);if(Ss(p))return!1;if(((n=p.result)===null||n===void 0?void 0:n.isApproved)===!0)return this.updateProviderInfo(a[0],s),null;throw pe.rpc.internal(\\\"unable to add ethereum chain\\\")}async switchEthereumChain(e){let r=e[0],n=Number.parseInt(r.chainId,16),s=await this.initializeRelay().switchEthereumChain(n.toString(10),this.selectedAddress||void 0);if(Ss(s))throw s;let o=s.result;return o.isApproved&&o.rpcUrl.length>0&&this.updateProviderInfo(o.rpcUrl,n),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,r){var n;if(!Array.isArray(e))throw new Error(\\\"addresses is not an array\\\");let i=e.map(s=>Km(s));JSON.stringify(i)!==JSON.stringify(this._addresses)&&(this._addresses=i,(n=this.callback)===null||n===void 0||n.call(this,\\\"accountsChanged\\\",i),this._storage.setItem(vI,i.join(\\\" \\\")))}async request(e){let r=Uc.get(e);FIe({method:e.method,correlationId:r});try{let n=await this._request(e);return HIe({method:e.method,correlationId:r}),n}catch(n){throw jIe({method:e.method,correlationId:r,errorMessage:Jm(n)}),n}}async _request(e){let r=e.params||[];switch(e.method){case\\\"eth_accounts\\\":return[...this._addresses];case\\\"eth_coinbase\\\":return this.selectedAddress||null;case\\\"net_version\\\":return this.getChainId().toString(10);case\\\"eth_chainId\\\":return Gm(this.getChainId());case\\\"eth_requestAccounts\\\":return this._eth_requestAccounts();case\\\"eth_ecRecover\\\":case\\\"personal_ecRecover\\\":return this.ecRecover(e);case\\\"personal_sign\\\":return this.personalSign(e);case\\\"eth_signTransaction\\\":return this._eth_signTransaction(r);case\\\"eth_sendRawTransaction\\\":return this._eth_sendRawTransaction(r);case\\\"eth_sendTransaction\\\":return this._eth_sendTransaction(r);case\\\"eth_signTypedData_v1\\\":case\\\"eth_signTypedData_v3\\\":case\\\"eth_signTypedData_v4\\\":case\\\"eth_signTypedData\\\":return this.signTypedData(e);case\\\"wallet_addEthereumChain\\\":return this.addEthereumChain(r);case\\\"wallet_switchEthereumChain\\\":return this.switchEthereumChain(r);case\\\"wallet_watchAsset\\\":return this.watchAsset(r);default:if(!this.jsonRpcUrl)throw pe.rpc.internal(\\\"No RPC URL set for chain\\\");return Ly(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){let r=Km(e);if(!this._addresses.map(i=>Km(i)).includes(r))throw new Error(\\\"Unknown Ethereum address\\\")}_prepareTransactionParams(e){let r=e.from?Km(e.from):this.selectedAddress;if(!r)throw new Error(\\\"Ethereum address is unavailable\\\");this._ensureKnownAddress(r);let n=e.to?Km(e.to):null,i=e.value!=null?s3(e.value):BigInt(0),s=e.data?jD(e.data):globalThis.Buffer.alloc(0),o=e.nonce!=null?gv(e.nonce):null,a=e.gasPrice!=null?s3(e.gasPrice):null,c=e.maxFeePerGas!=null?s3(e.maxFeePerGas):null,l=e.maxPriorityFeePerGas!=null?s3(e.maxPriorityFeePerGas):null,d=e.gas!=null?s3(e.gas):null,f=e.chainId?gv(e.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:i,data:s,nonce:o,gasPriceInWei:a,maxFeePerGas:c,maxPriorityFeePerGas:l,gasLimit:d,chainId:f}}async ecRecover(e){let{method:r,params:n}=e;if(!Array.isArray(n))throw pe.rpc.invalidParams();let s=await this.initializeRelay().sendRequest({method:\\\"ethereumAddressFromSignedMessage\\\",params:{message:LD(n[0]),signature:LD(n[1]),addPrefix:r===\\\"personal_ecRecover\\\"}});if(Ss(s))throw s;return s.result}getChainId(){var e;return Number.parseInt((e=this._storage.getItem(m7e))!==null&&e!==void 0?e:\\\"1\\\",10)}async _eth_requestAccounts(){var e,r;if(this._addresses.length>0)return(e=this.callback)===null||e===void 0||e.call(this,\\\"connect\\\",{chainId:Gm(this.getChainId())}),this._addresses;let i=await this.initializeRelay().requestEthereumAccounts();if(Ss(i))throw i;if(!i.result)throw new Error(\\\"accounts received is empty\\\");return this._setAddresses(i.result),(r=this.callback)===null||r===void 0||r.call(this,\\\"connect\\\",{chainId:Gm(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw pe.rpc.invalidParams();let r=e[1],n=e[0];this._ensureKnownAddress(r);let s=await this.initializeRelay().sendRequest({method:\\\"signEthereumMessage\\\",params:{address:Km(r),message:LD(n),addPrefix:!0,typedDataJson:null}});if(Ss(s))throw s;return s.result}async _eth_signTransaction(e){let r=this._prepareTransactionParams(e[0]||{}),i=await this.initializeRelay().signEthereumTransaction(r);if(Ss(i))throw i;return i.result}async _eth_sendRawTransaction(e){let r=jD(e[0]),i=await this.initializeRelay().submitEthereumTransaction(r,this.getChainId());if(Ss(i))throw i;return i.result}async _eth_sendTransaction(e){let r=this._prepareTransactionParams(e[0]||{}),i=await this.initializeRelay().signAndSubmitEthereumTransaction(r);if(Ss(i))throw i;return i.result}async signTypedData(e){let{method:r,params:n}=e;if(!Array.isArray(n))throw pe.rpc.invalidParams();let i=l=>{let d={eth_signTypedData_v1:_I.default.hashForSignTypedDataLegacy,eth_signTypedData_v3:_I.default.hashForSignTypedData_v3,eth_signTypedData_v4:_I.default.hashForSignTypedData_v4,eth_signTypedData:_I.default.hashForSignTypedData_v4};return mv(d[r]({data:b4e(l)}),!0)},s=n[r===\\\"eth_signTypedData_v1\\\"?1:0],o=n[r===\\\"eth_signTypedData_v1\\\"?0:1];this._ensureKnownAddress(s);let c=await this.initializeRelay().sendRequest({method:\\\"signEthereumMessage\\\",params:{address:Km(s),message:i(o),typedDataJson:JSON.stringify(o,null,2),addPrefix:!1}});if(Ss(c))throw c;return c.result}initializeRelay(){return this._relay||(this._relay=new EI({linkAPIUrl:qX,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}});function v7e(){return w7e.getItem(b7e)}function x7e(t){w7e.setItem(b7e,t)}function cre(t){if(t)return t instanceof mI?\\\"scw\\\":\\\"walletlink\\\"}async function E7e(t){let{communicator:e,metadata:r,handshakeRequest:n,callback:i}=t;fbt(e,r,i,n).catch(()=>{});let s={id:crypto.randomUUID(),event:\\\"selectSignerType\\\",data:Object.assign(Object.assign({},t.preference),{handshakeRequest:n})},{data:o}=await e.postRequestAndWaitForResponse(s);return o}function _7e(t){let{signerType:e,metadata:r,communicator:n,callback:i}=t;switch(e){case\\\"scw\\\":return new mI({metadata:r,callback:i,communicator:n});case\\\"walletlink\\\":return new CI({metadata:r,callback:i})}}async function fbt(t,e,r,n){await t.onMessage(({event:s})=>s===\\\"WalletLinkSessionRequest\\\");let i=new CI({metadata:e,callback:r});t.postMessage({event:\\\"WalletLinkUpdate\\\",data:{session:i.getSession()}}),await i.handshake(n),t.postMessage({event:\\\"WalletLinkUpdate\\\",data:{connected:!0}})}var b7e,w7e,C7e=x(()=>{u();HT();MIe();y7e();b7e=\\\"SignerType\\\",w7e=new Sp(\\\"CBWSDK\\\",\\\"SignerConfigurator\\\")});var pbt,s_,lre=x(()=>{u();d8e();a3();BT();va();p8e();h8e();HT();v8e();_8e();tf();dL();Du();o3();C7e();pbt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols==\\\"function\\\")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},s_=class extends lL{constructor(e){var{metadata:r}=e,n=e.preference,{keysUrl:i}=n,s=pbt(n,[\\\"keysUrl\\\"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=r,this.preference=s,this.communicator=new aL({url:i,metadata:r,preference:s});let o=v7e();o&&(this.signer=this.initSigner(o),m8e({signerType:o}))}async request(e){let r=crypto.randomUUID();Uc.set(e,r),g8e({method:e.method,correlationId:r});try{let n=await this._request(e);return b8e({method:e.method,signerType:cre(this.signer),correlationId:r}),n}catch(n){throw y8e({method:e.method,correlationId:r,signerType:cre(this.signer),errorMessage:n instanceof Error?n.message:\\\"\\\"}),n}finally{Uc.delete(e)}}async _request(e){try{if(x4e(e),!this.signer)switch(e.method){case\\\"eth_requestAccounts\\\":{let n,i=Ee.subAccountsConfig.get();i?.enableAutoSubAccounts?n=\\\"scw\\\":n=await this.requestSignerSelection(e);let s=this.initSigner(n);n===\\\"scw\\\"&&i?.enableAutoSubAccounts?(await s.handshake({method:\\\"handshake\\\"}),await s.request(e)):await s.handshake(e),this.signer=s,x7e(n);break}case\\\"wallet_connect\\\":{let n=this.initSigner(\\\"scw\\\");await n.handshake({method:\\\"handshake\\\"});let i=await n.request(e);return this.signer=n,i}case\\\"wallet_sendCalls\\\":case\\\"wallet_sign\\\":{let n=this.initSigner(\\\"scw\\\");await n.handshake({method:\\\"handshake\\\"});let i=await n.request(e);return await n.cleanup(),i}case\\\"wallet_getCallsStatus\\\":return await Ly(e,VD);case\\\"net_version\\\":return 1;case\\\"eth_chainId\\\":return Gm(1);default:throw pe.provider.unauthorized(\\\"Must call 'eth_requestAccounts' before other methods\\\")}return await this.signer.request(e)}catch(r){let{code:n}=r;return n===Wn.provider.unauthorized&&this.disconnect(),Promise.reject(f8e(r))}}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: \\\"eth_requestAccounts\\\" }) instead.'),w8e(),await this.request({method:\\\"eth_requestAccounts\\\"})}async disconnect(){var e;await((e=this.signer)===null||e===void 0?void 0:e.cleanup()),this.signer=null,Sp.clearAll(),Uc.clear(),this.emit(\\\"disconnect\\\",pe.provider.disconnected(\\\"User initiated disconnection\\\"))}async requestSignerSelection(e){x8e();let r=await E7e({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:e,callback:this.emit.bind(this)});return E8e(r),r}initSigner(e){return _7e({signerType:e,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}});var S7e,A7e=x(()=>{u();S7e=(t,e)=>{let r;switch(t){case\\\"standard\\\":return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case\\\"circle\\\":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case\\\"text\\\":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\\\"textWithLogo\\\":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case\\\"textLight\\\":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\\\"textWithLogoLight\\\":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}}});var o_,ure=x(()=>{u();OX();tf();Du();qD();o3();HX();lre();A7e();o_=class{constructor(e){Ee.persist.rehydrate(),this.metadata={appName:e.appName||\\\"Dapp\\\",appLogoUrl:e.appLogoUrl||w4e(),appChainIds:e.appChainIds||[]},Ee.config.set({metadata:this.metadata}),HD()}makeWeb3Provider(e={options:\\\"all\\\"}){var r;$D(e),e.telemetry!==!1&&ND(),Ee.config.set({preference:e});let n={metadata:this.metadata,preference:e};return(r=zD(n))!==null&&r!==void 0?r:new s_(n)}getCoinbaseWalletLogo(e,r=240){return S7e(e,r)}}});function T7e(t){var e;let r={metadata:t.metadata,preference:t.preference};return(e=zD(r))!==null&&e!==void 0?e:new s_(r)}var I7e=x(()=>{u();o3();lre()});function R7e(t){var e,r,n,i;let s={metadata:{appName:t.appName||\\\"Dapp\\\",appLogoUrl:t.appLogoUrl||\\\"\\\",appChainIds:t.appChainIds||[]},preference:Object.assign(hbt,(e=t.preference)!==null&&e!==void 0?e:{}),paymasterUrls:t.paymasterUrls};!((r=t.subAccounts)===null||r===void 0)&&r.toOwnerAccount&&jX(t.subAccounts.toOwnerAccount),Ee.subAccountsConfig.set({toOwnerAccount:(n=t.subAccounts)===null||n===void 0?void 0:n.toOwnerAccount,enableAutoSubAccounts:(i=t.subAccounts)===null||i===void 0?void 0:i.enableAutoSubAccounts}),Ee.config.set(s),Ee.persist.rehydrate(),HD(),s.preference.telemetry!==!1&&ND(),$D(s.preference);let o=null,a={getProvider(){return o||(o=T7e(s)),o.sdk=a,o},subAccount:{async create(c){var l,d;let f=Ee.getState();return co((l=f.subAccount)===null||l===void 0?void 0:l.address,new Error(\\\"subaccount already exists\\\")),await((d=a.getProvider())===null||d===void 0?void 0:d.request({method:\\\"wallet_addSubAccount\\\",params:[{version:\\\"1\\\",account:c}]}))},async get(){var c,l;let d=Ee.subAccounts.get();if(d?.address)return d;let p=(l=(await((c=a.getProvider())===null||c===void 0?void 0:c.request({method:\\\"wallet_connect\\\",params:[{version:\\\"1\\\",capabilities:{}}]}))).accounts[0].capabilities)===null||l===void 0?void 0:l.subAccounts;return Array.isArray(p)?p[0]:null},async addOwner({address:c,publicKey:l,chainId:d}){var f,p;let h=Ee.subAccounts.get(),m=Ee.account.get();co(m,new Error(\\\"account does not exist\\\")),co(h?.address,new Error(\\\"subaccount does not exist\\\"));let g=[];if(l){let[w,v]=Cc([{type:\\\"bytes32\\\"},{type:\\\"bytes32\\\"}],l);g.push({to:h.address,data:At({abi:Ea,functionName:\\\"addOwnerPublicKey\\\",args:[w,v]}),value:He(0)})}return c&&g.push({to:h.address,data:At({abi:Ea,functionName:\\\"addOwnerAddress\\\",args:[c]}),value:He(0)}),await((f=a.getProvider())===null||f===void 0?void 0:f.request({method:\\\"wallet_sendCalls\\\",params:[{calls:g,chainId:He(d),from:(p=m.accounts)===null||p===void 0?void 0:p[0],version:\\\"1\\\"}]}))},setToOwnerAccount(c){jX(c),Ee.subAccountsConfig.set({toOwnerAccount:c})}}};return a}var hbt,P7e=x(()=>{u();un();OX();Uv();U3();qD();HX();I7e();Du();hbt={options:\\\"all\\\"}});var O7e={};ue(O7e,{CoinbaseWalletSDK:()=>o_,createCoinbaseWalletSDK:()=>R7e,default:()=>mbt,getCryptoKeyAccount:()=>Dv,removeCryptoKey:()=>iIe});var mbt,N7e=x(()=>{u();ure();ure();P7e();pU();mbt=o_});var k7e=q(jU=>{\\\"use strict\\\";u();Object.defineProperty(jU,\\\"__esModule\\\",{value:!0});jU.walletLogo=void 0;var gbt=(t,e)=>{let r;switch(t){case\\\"standard\\\":return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case\\\"circle\\\":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case\\\"text\\\":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\\\"textWithLogo\\\":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case\\\"textLight\\\":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case\\\"textWithLogoLight\\\":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};jU.walletLogo=gbt});var B7e=q(HU=>{\\\"use strict\\\";u();Object.defineProperty(HU,\\\"__esModule\\\",{value:!0});HU.LINK_API_URL=void 0;HU.LINK_API_URL=\\\"https://www.walletlink.org\\\"});var M7e=q(()=>{u()});var SI=q((D7e,dre)=>{u();(function(t,e){\\\"use strict\\\";function r(R,y){if(!R)throw new Error(y||\\\"Assertion failed\\\")}function n(R,y){R.super_=y;var E=function(){};E.prototype=y.prototype,R.prototype=new E,R.prototype.constructor=R}function i(R,y,E){if(i.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((y===\\\"le\\\"||y===\\\"be\\\")&&(E=y,y=10),this._init(R||0,y||10,E||\\\"be\\\"))}typeof t==\\\"object\\\"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<\\\"u\\\"&&typeof window.Buffer<\\\"u\\\"?s=window.Buffer:s=M7e().Buffer}catch{}i.isBN=function(y){return y instanceof i?!0:y!==null&&typeof y==\\\"object\\\"&&y.constructor.wordSize===i.wordSize&&Array.isArray(y.words)},i.max=function(y,E){return y.cmp(E)>0?y:E},i.min=function(y,E){return y.cmp(E)<0?y:E},i.prototype._init=function(y,E,C){if(typeof y==\\\"number\\\")return this._initNumber(y,E,C);if(typeof y==\\\"object\\\")return this._initArray(y,E,C);E===\\\"hex\\\"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),y=y.toString().replace(/\\\\s+/g,\\\"\\\");var I=0;y[0]===\\\"-\\\"&&(I++,this.negative=1),I<y.length&&(E===16?this._parseHex(y,I,C):(this._parseBase(y,E,I),C===\\\"le\\\"&&this._initArray(this.toArray(),E,C)))},i.prototype._initNumber=function(y,E,C){y<0&&(this.negative=1,y=-y),y<67108864?(this.words=[y&67108863],this.length=1):y<4503599627370496?(this.words=[y&67108863,y/67108864&67108863],this.length=2):(r(y<9007199254740992),this.words=[y&67108863,y/67108864&67108863,1],this.length=3),C===\\\"le\\\"&&this._initArray(this.toArray(),E,C)},i.prototype._initArray=function(y,E,C){if(r(typeof y.length==\\\"number\\\"),y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(y.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var P,k,U=0;if(C===\\\"be\\\")for(I=y.length-1,P=0;I>=0;I-=3)k=y[I]|y[I-1]<<8|y[I-2]<<16,this.words[P]|=k<<U&67108863,this.words[P+1]=k>>>26-U&67108863,U+=24,U>=26&&(U-=26,P++);else if(C===\\\"le\\\")for(I=0,P=0;I<y.length;I+=3)k=y[I]|y[I+1]<<8|y[I+2]<<16,this.words[P]|=k<<U&67108863,this.words[P+1]=k>>>26-U&67108863,U+=24,U>=26&&(U-=26,P++);return this._strip()};function o(R,y){var E=R.charCodeAt(y);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,\\\"Invalid character in \\\"+R)}function a(R,y,E){var C=o(R,E);return E-1>=y&&(C|=o(R,E-1)<<4),C}i.prototype._parseHex=function(y,E,C){this.length=Math.ceil((y.length-E)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var P=0,k=0,U;if(C===\\\"be\\\")for(I=y.length-1;I>=E;I-=2)U=a(y,E,I)<<P,this.words[k]|=U&67108863,P>=18?(P-=18,k+=1,this.words[k]|=U>>>26):P+=8;else{var D=y.length-E;for(I=D%2===0?E+1:E;I<y.length;I+=2)U=a(y,E,I)<<P,this.words[k]|=U&67108863,P>=18?(P-=18,k+=1,this.words[k]|=U>>>26):P+=8}this._strip()};function c(R,y,E,C){for(var I=0,P=0,k=Math.min(R.length,E),U=y;U<k;U++){var D=R.charCodeAt(U)-48;I*=C,D>=49?P=D-49+10:D>=17?P=D-17+10:P=D,r(D>=0&&P<C,\\\"Invalid character\\\"),I+=P}return I}i.prototype._parseBase=function(y,E,C){this.words=[0],this.length=1;for(var I=0,P=1;P<=67108863;P*=E)I++;I--,P=P/E|0;for(var k=y.length-C,U=k%I,D=Math.min(k,k-U)+C,A=0,j=C;j<D;j+=I)A=c(y,j,j+I,E),this.imuln(P),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A);if(U!==0){var K=1;for(A=c(y,j,y.length,E),j=0;j<U;j++)K*=E;this.imuln(K),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A)}this._strip()},i.prototype.copy=function(y){y.words=new Array(this.length);for(var E=0;E<this.length;E++)y.words[E]=this.words[E];y.length=this.length,y.negative=this.negative,y.red=this.red};function l(R,y){R.words=y.words,R.length=y.length,R.negative=y.negative,R.red=y.red}if(i.prototype._move=function(y){l(y,this)},i.prototype.clone=function(){var y=new i(null);return this.copy(y),y},i.prototype._expand=function(y){for(;this.length<y;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<\\\"u\\\"&&typeof Symbol.for==\\\"function\\\")try{i.prototype[Symbol.for(\\\"nodejs.util.inspect.custom\\\")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?\\\"<BN-R: \\\":\\\"<BN: \\\")+this.toString(16)+\\\">\\\"}var f=[\\\"\\\",\\\"0\\\",\\\"00\\\",\\\"000\\\",\\\"0000\\\",\\\"00000\\\",\\\"000000\\\",\\\"0000000\\\",\\\"00000000\\\",\\\"000000000\\\",\\\"0000000000\\\",\\\"00000000000\\\",\\\"000000000000\\\",\\\"0000000000000\\\",\\\"00000000000000\\\",\\\"000000000000000\\\",\\\"0000000000000000\\\",\\\"00000000000000000\\\",\\\"000000000000000000\\\",\\\"0000000000000000000\\\",\\\"00000000000000000000\\\",\\\"000000000000000000000\\\",\\\"0000000000000000000000\\\",\\\"00000000000000000000000\\\",\\\"000000000000000000000000\\\",\\\"0000000000000000000000000\\\"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(y,E){y=y||10,E=E|0||1;var C;if(y===16||y===\\\"hex\\\"){C=\\\"\\\";for(var I=0,P=0,k=0;k<this.length;k++){var U=this.words[k],D=((U<<I|P)&16777215).toString(16);P=U>>>24-I&16777215,I+=2,I>=26&&(I-=26,k--),P!==0||k!==this.length-1?C=f[6-D.length]+D+C:C=D+C}for(P!==0&&(C=P.toString(16)+C);C.length%E!==0;)C=\\\"0\\\"+C;return this.negative!==0&&(C=\\\"-\\\"+C),C}if(y===(y|0)&&y>=2&&y<=36){var A=p[y],j=h[y];C=\\\"\\\";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(j).toString(y);K=K.idivn(j),K.isZero()?C=J+C:C=f[A-J.length]+J+C}for(this.isZero()&&(C=\\\"0\\\"+C);C.length%E!==0;)C=\\\"0\\\"+C;return this.negative!==0&&(C=\\\"-\\\"+C),C}r(!1,\\\"Base should be between 2 and 36\\\")},i.prototype.toNumber=function(){var y=this.words[0];return this.length===2?y+=this.words[1]*67108864:this.length===3&&this.words[2]===1?y+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\\\"Number can only safely store up to 53 bits\\\"),this.negative!==0?-y:y},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(y,E){return this.toArrayLike(s,y,E)}),i.prototype.toArray=function(y,E){return this.toArrayLike(Array,y,E)};var m=function(y,E){return y.allocUnsafe?y.allocUnsafe(E):new y(E)};i.prototype.toArrayLike=function(y,E,C){this._strip();var I=this.byteLength(),P=C||Math.max(1,I);r(I<=P,\\\"byte array longer than desired length\\\"),r(P>0,\\\"Requested array length <= 0\\\");var k=m(y,P),U=E===\\\"le\\\"?\\\"LE\\\":\\\"BE\\\";return this[\\\"_toArrayLike\\\"+U](k,I),k},i.prototype._toArrayLikeLE=function(y,E){for(var C=0,I=0,P=0,k=0;P<this.length;P++){var U=this.words[P]<<k|I;y[C++]=U&255,C<y.length&&(y[C++]=U>>8&255),C<y.length&&(y[C++]=U>>16&255),k===6?(C<y.length&&(y[C++]=U>>24&255),I=0,k=0):(I=U>>>24,k+=2)}if(C<y.length)for(y[C++]=I;C<y.length;)y[C++]=0},i.prototype._toArrayLikeBE=function(y,E){for(var C=y.length-1,I=0,P=0,k=0;P<this.length;P++){var U=this.words[P]<<k|I;y[C--]=U&255,C>=0&&(y[C--]=U>>8&255),C>=0&&(y[C--]=U>>16&255),k===6?(C>=0&&(y[C--]=U>>24&255),I=0,k=0):(I=U>>>24,k+=2)}if(C>=0)for(y[C--]=I;C>=0;)y[C--]=0},Math.clz32?i.prototype._countBits=function(y){return 32-Math.clz32(y)}:i.prototype._countBits=function(y){var E=y,C=0;return E>=4096&&(C+=13,E>>>=13),E>=64&&(C+=7,E>>>=7),E>=8&&(C+=4,E>>>=4),E>=2&&(C+=2,E>>>=2),C+E},i.prototype._zeroBits=function(y){if(y===0)return 26;var E=y,C=0;return(E&8191)===0&&(C+=13,E>>>=13),(E&127)===0&&(C+=7,E>>>=7),(E&15)===0&&(C+=4,E>>>=4),(E&3)===0&&(C+=2,E>>>=2),(E&1)===0&&C++,C},i.prototype.bitLength=function(){var y=this.words[this.length-1],E=this._countBits(y);return(this.length-1)*26+E};function g(R){for(var y=new Array(R.bitLength()),E=0;E<y.length;E++){var C=E/26|0,I=E%26;y[E]=R.words[C]>>>I&1}return y}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var y=0,E=0;E<this.length;E++){var C=this._zeroBits(this.words[E]);if(y+=C,C!==26)break}return y},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(y){return this.negative!==0?this.abs().inotn(y).iaddn(1):this.clone()},i.prototype.fromTwos=function(y){return this.testn(y-1)?this.notn(y).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(y){for(;this.length<y.length;)this.words[this.length++]=0;for(var E=0;E<y.length;E++)this.words[E]=this.words[E]|y.words[E];return this._strip()},i.prototype.ior=function(y){return r((this.negative|y.negative)===0),this.iuor(y)},i.prototype.or=function(y){return this.length>y.length?this.clone().ior(y):y.clone().ior(this)},i.prototype.uor=function(y){return this.length>y.length?this.clone().iuor(y):y.clone().iuor(this)},i.prototype.iuand=function(y){var E;this.length>y.length?E=y:E=this;for(var C=0;C<E.length;C++)this.words[C]=this.words[C]&y.words[C];return this.length=E.length,this._strip()},i.prototype.iand=function(y){return r((this.negative|y.negative)===0),this.iuand(y)},i.prototype.and=function(y){return this.length>y.length?this.clone().iand(y):y.clone().iand(this)},i.prototype.uand=function(y){return this.length>y.length?this.clone().iuand(y):y.clone().iuand(this)},i.prototype.iuxor=function(y){var E,C;this.length>y.length?(E=this,C=y):(E=y,C=this);for(var I=0;I<C.length;I++)this.words[I]=E.words[I]^C.words[I];if(this!==E)for(;I<E.length;I++)this.words[I]=E.words[I];return this.length=E.length,this._strip()},i.prototype.ixor=function(y){return r((this.negative|y.negative)===0),this.iuxor(y)},i.prototype.xor=function(y){return this.length>y.length?this.clone().ixor(y):y.clone().ixor(this)},i.prototype.uxor=function(y){return this.length>y.length?this.clone().iuxor(y):y.clone().iuxor(this)},i.prototype.inotn=function(y){r(typeof y==\\\"number\\\"&&y>=0);var E=Math.ceil(y/26)|0,C=y%26;this._expand(E),C>0&&E--;for(var I=0;I<E;I++)this.words[I]=~this.words[I]&67108863;return C>0&&(this.words[I]=~this.words[I]&67108863>>26-C),this._strip()},i.prototype.notn=function(y){return this.clone().inotn(y)},i.prototype.setn=function(y,E){r(typeof y==\\\"number\\\"&&y>=0);var C=y/26|0,I=y%26;return this._expand(C+1),E?this.words[C]=this.words[C]|1<<I:this.words[C]=this.words[C]&~(1<<I),this._strip()},i.prototype.iadd=function(y){var E;if(this.negative!==0&&y.negative===0)return this.negative=0,E=this.isub(y),this.negative^=1,this._normSign();if(this.negative===0&&y.negative!==0)return y.negative=0,E=this.isub(y),y.negative=1,E._normSign();var C,I;this.length>y.length?(C=this,I=y):(C=y,I=this);for(var P=0,k=0;k<I.length;k++)E=(C.words[k]|0)+(I.words[k]|0)+P,this.words[k]=E&67108863,P=E>>>26;for(;P!==0&&k<C.length;k++)E=(C.words[k]|0)+P,this.words[k]=E&67108863,P=E>>>26;if(this.length=C.length,P!==0)this.words[this.length]=P,this.length++;else if(C!==this)for(;k<C.length;k++)this.words[k]=C.words[k];return this},i.prototype.add=function(y){var E;return y.negative!==0&&this.negative===0?(y.negative=0,E=this.sub(y),y.negative^=1,E):y.negative===0&&this.negative!==0?(this.negative=0,E=y.sub(this),this.negative=1,E):this.length>y.length?this.clone().iadd(y):y.clone().iadd(this)},i.prototype.isub=function(y){if(y.negative!==0){y.negative=0;var E=this.iadd(y);return y.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(y),this.negative=1,this._normSign();var C=this.cmp(y);if(C===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,P;C>0?(I=this,P=y):(I=y,P=this);for(var k=0,U=0;U<P.length;U++)E=(I.words[U]|0)-(P.words[U]|0)+k,k=E>>26,this.words[U]=E&67108863;for(;k!==0&&U<I.length;U++)E=(I.words[U]|0)+k,k=E>>26,this.words[U]=E&67108863;if(k===0&&U<I.length&&I!==this)for(;U<I.length;U++)this.words[U]=I.words[U];return this.length=Math.max(this.length,U),I!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(y){return this.clone().isub(y)};function w(R,y,E){E.negative=y.negative^R.negative;var C=R.length+y.length|0;E.length=C,C=C-1|0;var I=R.words[0]|0,P=y.words[0]|0,k=I*P,U=k&67108863,D=k/67108864|0;E.words[0]=U;for(var A=1;A<C;A++){for(var j=D>>>26,K=D&67108863,J=Math.min(A,y.length-1),X=Math.max(0,A-R.length+1);X<=J;X++){var re=A-X|0;I=R.words[re]|0,P=y.words[X]|0,k=I*P+K,j+=k/67108864|0,K=k&67108863}E.words[A]=K|0,D=j|0}return D!==0?E.words[A]=D|0:E.length--,E._strip()}var v=function(y,E,C){var I=y.words,P=E.words,k=C.words,U=0,D,A,j,K=I[0]|0,J=K&8191,X=K>>>13,re=I[1]|0,fe=re&8191,ce=re>>>13,We=I[2]|0,Ue=We&8191,je=We>>>13,Lt=I[3]|0,pt=Lt&8191,Ct=Lt>>>13,jf=I[4]|0,Un=jf&8191,Fn=jf>>>13,Q0=I[5]|0,wn=Q0&8191,an=Q0>>>13,J0=I[6]|0,vn=J0&8191,xn=J0>>>13,Y0=I[7]|0,En=Y0&8191,jn=Y0>>>13,X0=I[8]|0,_n=X0&8191,Cn=X0>>>13,Mx=I[9]|0,Jn=Mx&8191,Yn=Mx>>>13,Dx=P[0]|0,Xn=Dx&8191,ei=Dx>>>13,Lx=P[1]|0,ti=Lx&8191,ri=Lx>>>13,Ux=P[2]|0,ni=Ux&8191,ii=Ux>>>13,Fx=P[3]|0,si=Fx&8191,oi=Fx>>>13,jx=P[4]|0,ai=jx&8191,ci=jx>>>13,Hx=P[5]|0,li=Hx&8191,ui=Hx>>>13,qx=P[6]|0,di=qx&8191,fi=qx>>>13,zx=P[7]|0,pi=zx&8191,hi=zx>>>13,$x=P[8]|0,mi=$x&8191,gi=$x>>>13,Vx=P[9]|0,yi=Vx&8191,bi=Vx>>>13;C.negative=y.negative^E.negative,C.length=19,D=Math.imul(J,Xn),A=Math.imul(J,ei),A=A+Math.imul(X,Xn)|0,j=Math.imul(X,ei);var ub=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(ub>>>26)|0,ub&=67108863,D=Math.imul(fe,Xn),A=Math.imul(fe,ei),A=A+Math.imul(ce,Xn)|0,j=Math.imul(ce,ei),D=D+Math.imul(J,ti)|0,A=A+Math.imul(J,ri)|0,A=A+Math.imul(X,ti)|0,j=j+Math.imul(X,ri)|0;var db=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(db>>>26)|0,db&=67108863,D=Math.imul(Ue,Xn),A=Math.imul(Ue,ei),A=A+Math.imul(je,Xn)|0,j=Math.imul(je,ei),D=D+Math.imul(fe,ti)|0,A=A+Math.imul(fe,ri)|0,A=A+Math.imul(ce,ti)|0,j=j+Math.imul(ce,ri)|0,D=D+Math.imul(J,ni)|0,A=A+Math.imul(J,ii)|0,A=A+Math.imul(X,ni)|0,j=j+Math.imul(X,ii)|0;var fb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(fb>>>26)|0,fb&=67108863,D=Math.imul(pt,Xn),A=Math.imul(pt,ei),A=A+Math.imul(Ct,Xn)|0,j=Math.imul(Ct,ei),D=D+Math.imul(Ue,ti)|0,A=A+Math.imul(Ue,ri)|0,A=A+Math.imul(je,ti)|0,j=j+Math.imul(je,ri)|0,D=D+Math.imul(fe,ni)|0,A=A+Math.imul(fe,ii)|0,A=A+Math.imul(ce,ni)|0,j=j+Math.imul(ce,ii)|0,D=D+Math.imul(J,si)|0,A=A+Math.imul(J,oi)|0,A=A+Math.imul(X,si)|0,j=j+Math.imul(X,oi)|0;var pb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(pb>>>26)|0,pb&=67108863,D=Math.imul(Un,Xn),A=Math.imul(Un,ei),A=A+Math.imul(Fn,Xn)|0,j=Math.imul(Fn,ei),D=D+Math.imul(pt,ti)|0,A=A+Math.imul(pt,ri)|0,A=A+Math.imul(Ct,ti)|0,j=j+Math.imul(Ct,ri)|0,D=D+Math.imul(Ue,ni)|0,A=A+Math.imul(Ue,ii)|0,A=A+Math.imul(je,ni)|0,j=j+Math.imul(je,ii)|0,D=D+Math.imul(fe,si)|0,A=A+Math.imul(fe,oi)|0,A=A+Math.imul(ce,si)|0,j=j+Math.imul(ce,oi)|0,D=D+Math.imul(J,ai)|0,A=A+Math.imul(J,ci)|0,A=A+Math.imul(X,ai)|0,j=j+Math.imul(X,ci)|0;var hb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(hb>>>26)|0,hb&=67108863,D=Math.imul(wn,Xn),A=Math.imul(wn,ei),A=A+Math.imul(an,Xn)|0,j=Math.imul(an,ei),D=D+Math.imul(Un,ti)|0,A=A+Math.imul(Un,ri)|0,A=A+Math.imul(Fn,ti)|0,j=j+Math.imul(Fn,ri)|0,D=D+Math.imul(pt,ni)|0,A=A+Math.imul(pt,ii)|0,A=A+Math.imul(Ct,ni)|0,j=j+Math.imul(Ct,ii)|0,D=D+Math.imul(Ue,si)|0,A=A+Math.imul(Ue,oi)|0,A=A+Math.imul(je,si)|0,j=j+Math.imul(je,oi)|0,D=D+Math.imul(fe,ai)|0,A=A+Math.imul(fe,ci)|0,A=A+Math.imul(ce,ai)|0,j=j+Math.imul(ce,ci)|0,D=D+Math.imul(J,li)|0,A=A+Math.imul(J,ui)|0,A=A+Math.imul(X,li)|0,j=j+Math.imul(X,ui)|0;var mb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(mb>>>26)|0,mb&=67108863,D=Math.imul(vn,Xn),A=Math.imul(vn,ei),A=A+Math.imul(xn,Xn)|0,j=Math.imul(xn,ei),D=D+Math.imul(wn,ti)|0,A=A+Math.imul(wn,ri)|0,A=A+Math.imul(an,ti)|0,j=j+Math.imul(an,ri)|0,D=D+Math.imul(Un,ni)|0,A=A+Math.imul(Un,ii)|0,A=A+Math.imul(Fn,ni)|0,j=j+Math.imul(Fn,ii)|0,D=D+Math.imul(pt,si)|0,A=A+Math.imul(pt,oi)|0,A=A+Math.imul(Ct,si)|0,j=j+Math.imul(Ct,oi)|0,D=D+Math.imul(Ue,ai)|0,A=A+Math.imul(Ue,ci)|0,A=A+Math.imul(je,ai)|0,j=j+Math.imul(je,ci)|0,D=D+Math.imul(fe,li)|0,A=A+Math.imul(fe,ui)|0,A=A+Math.imul(ce,li)|0,j=j+Math.imul(ce,ui)|0,D=D+Math.imul(J,di)|0,A=A+Math.imul(J,fi)|0,A=A+Math.imul(X,di)|0,j=j+Math.imul(X,fi)|0;var gb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(gb>>>26)|0,gb&=67108863,D=Math.imul(En,Xn),A=Math.imul(En,ei),A=A+Math.imul(jn,Xn)|0,j=Math.imul(jn,ei),D=D+Math.imul(vn,ti)|0,A=A+Math.imul(vn,ri)|0,A=A+Math.imul(xn,ti)|0,j=j+Math.imul(xn,ri)|0,D=D+Math.imul(wn,ni)|0,A=A+Math.imul(wn,ii)|0,A=A+Math.imul(an,ni)|0,j=j+Math.imul(an,ii)|0,D=D+Math.imul(Un,si)|0,A=A+Math.imul(Un,oi)|0,A=A+Math.imul(Fn,si)|0,j=j+Math.imul(Fn,oi)|0,D=D+Math.imul(pt,ai)|0,A=A+Math.imul(pt,ci)|0,A=A+Math.imul(Ct,ai)|0,j=j+Math.imul(Ct,ci)|0,D=D+Math.imul(Ue,li)|0,A=A+Math.imul(Ue,ui)|0,A=A+Math.imul(je,li)|0,j=j+Math.imul(je,ui)|0,D=D+Math.imul(fe,di)|0,A=A+Math.imul(fe,fi)|0,A=A+Math.imul(ce,di)|0,j=j+Math.imul(ce,fi)|0,D=D+Math.imul(J,pi)|0,A=A+Math.imul(J,hi)|0,A=A+Math.imul(X,pi)|0,j=j+Math.imul(X,hi)|0;var yb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(yb>>>26)|0,yb&=67108863,D=Math.imul(_n,Xn),A=Math.imul(_n,ei),A=A+Math.imul(Cn,Xn)|0,j=Math.imul(Cn,ei),D=D+Math.imul(En,ti)|0,A=A+Math.imul(En,ri)|0,A=A+Math.imul(jn,ti)|0,j=j+Math.imul(jn,ri)|0,D=D+Math.imul(vn,ni)|0,A=A+Math.imul(vn,ii)|0,A=A+Math.imul(xn,ni)|0,j=j+Math.imul(xn,ii)|0,D=D+Math.imul(wn,si)|0,A=A+Math.imul(wn,oi)|0,A=A+Math.imul(an,si)|0,j=j+Math.imul(an,oi)|0,D=D+Math.imul(Un,ai)|0,A=A+Math.imul(Un,ci)|0,A=A+Math.imul(Fn,ai)|0,j=j+Math.imul(Fn,ci)|0,D=D+Math.imul(pt,li)|0,A=A+Math.imul(pt,ui)|0,A=A+Math.imul(Ct,li)|0,j=j+Math.imul(Ct,ui)|0,D=D+Math.imul(Ue,di)|0,A=A+Math.imul(Ue,fi)|0,A=A+Math.imul(je,di)|0,j=j+Math.imul(je,fi)|0,D=D+Math.imul(fe,pi)|0,A=A+Math.imul(fe,hi)|0,A=A+Math.imul(ce,pi)|0,j=j+Math.imul(ce,hi)|0,D=D+Math.imul(J,mi)|0,A=A+Math.imul(J,gi)|0,A=A+Math.imul(X,mi)|0,j=j+Math.imul(X,gi)|0;var bb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(bb>>>26)|0,bb&=67108863,D=Math.imul(Jn,Xn),A=Math.imul(Jn,ei),A=A+Math.imul(Yn,Xn)|0,j=Math.imul(Yn,ei),D=D+Math.imul(_n,ti)|0,A=A+Math.imul(_n,ri)|0,A=A+Math.imul(Cn,ti)|0,j=j+Math.imul(Cn,ri)|0,D=D+Math.imul(En,ni)|0,A=A+Math.imul(En,ii)|0,A=A+Math.imul(jn,ni)|0,j=j+Math.imul(jn,ii)|0,D=D+Math.imul(vn,si)|0,A=A+Math.imul(vn,oi)|0,A=A+Math.imul(xn,si)|0,j=j+Math.imul(xn,oi)|0,D=D+Math.imul(wn,ai)|0,A=A+Math.imul(wn,ci)|0,A=A+Math.imul(an,ai)|0,j=j+Math.imul(an,ci)|0,D=D+Math.imul(Un,li)|0,A=A+Math.imul(Un,ui)|0,A=A+Math.imul(Fn,li)|0,j=j+Math.imul(Fn,ui)|0,D=D+Math.imul(pt,di)|0,A=A+Math.imul(pt,fi)|0,A=A+Math.imul(Ct,di)|0,j=j+Math.imul(Ct,fi)|0,D=D+Math.imul(Ue,pi)|0,A=A+Math.imul(Ue,hi)|0,A=A+Math.imul(je,pi)|0,j=j+Math.imul(je,hi)|0,D=D+Math.imul(fe,mi)|0,A=A+Math.imul(fe,gi)|0,A=A+Math.imul(ce,mi)|0,j=j+Math.imul(ce,gi)|0,D=D+Math.imul(J,yi)|0,A=A+Math.imul(J,bi)|0,A=A+Math.imul(X,yi)|0,j=j+Math.imul(X,bi)|0;var wb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(wb>>>26)|0,wb&=67108863,D=Math.imul(Jn,ti),A=Math.imul(Jn,ri),A=A+Math.imul(Yn,ti)|0,j=Math.imul(Yn,ri),D=D+Math.imul(_n,ni)|0,A=A+Math.imul(_n,ii)|0,A=A+Math.imul(Cn,ni)|0,j=j+Math.imul(Cn,ii)|0,D=D+Math.imul(En,si)|0,A=A+Math.imul(En,oi)|0,A=A+Math.imul(jn,si)|0,j=j+Math.imul(jn,oi)|0,D=D+Math.imul(vn,ai)|0,A=A+Math.imul(vn,ci)|0,A=A+Math.imul(xn,ai)|0,j=j+Math.imul(xn,ci)|0,D=D+Math.imul(wn,li)|0,A=A+Math.imul(wn,ui)|0,A=A+Math.imul(an,li)|0,j=j+Math.imul(an,ui)|0,D=D+Math.imul(Un,di)|0,A=A+Math.imul(Un,fi)|0,A=A+Math.imul(Fn,di)|0,j=j+Math.imul(Fn,fi)|0,D=D+Math.imul(pt,pi)|0,A=A+Math.imul(pt,hi)|0,A=A+Math.imul(Ct,pi)|0,j=j+Math.imul(Ct,hi)|0,D=D+Math.imul(Ue,mi)|0,A=A+Math.imul(Ue,gi)|0,A=A+Math.imul(je,mi)|0,j=j+Math.imul(je,gi)|0,D=D+Math.imul(fe,yi)|0,A=A+Math.imul(fe,bi)|0,A=A+Math.imul(ce,yi)|0,j=j+Math.imul(ce,bi)|0;var vb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(vb>>>26)|0,vb&=67108863,D=Math.imul(Jn,ni),A=Math.imul(Jn,ii),A=A+Math.imul(Yn,ni)|0,j=Math.imul(Yn,ii),D=D+Math.imul(_n,si)|0,A=A+Math.imul(_n,oi)|0,A=A+Math.imul(Cn,si)|0,j=j+Math.imul(Cn,oi)|0,D=D+Math.imul(En,ai)|0,A=A+Math.imul(En,ci)|0,A=A+Math.imul(jn,ai)|0,j=j+Math.imul(jn,ci)|0,D=D+Math.imul(vn,li)|0,A=A+Math.imul(vn,ui)|0,A=A+Math.imul(xn,li)|0,j=j+Math.imul(xn,ui)|0,D=D+Math.imul(wn,di)|0,A=A+Math.imul(wn,fi)|0,A=A+Math.imul(an,di)|0,j=j+Math.imul(an,fi)|0,D=D+Math.imul(Un,pi)|0,A=A+Math.imul(Un,hi)|0,A=A+Math.imul(Fn,pi)|0,j=j+Math.imul(Fn,hi)|0,D=D+Math.imul(pt,mi)|0,A=A+Math.imul(pt,gi)|0,A=A+Math.imul(Ct,mi)|0,j=j+Math.imul(Ct,gi)|0,D=D+Math.imul(Ue,yi)|0,A=A+Math.imul(Ue,bi)|0,A=A+Math.imul(je,yi)|0,j=j+Math.imul(je,bi)|0;var xb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(xb>>>26)|0,xb&=67108863,D=Math.imul(Jn,si),A=Math.imul(Jn,oi),A=A+Math.imul(Yn,si)|0,j=Math.imul(Yn,oi),D=D+Math.imul(_n,ai)|0,A=A+Math.imul(_n,ci)|0,A=A+Math.imul(Cn,ai)|0,j=j+Math.imul(Cn,ci)|0,D=D+Math.imul(En,li)|0,A=A+Math.imul(En,ui)|0,A=A+Math.imul(jn,li)|0,j=j+Math.imul(jn,ui)|0,D=D+Math.imul(vn,di)|0,A=A+Math.imul(vn,fi)|0,A=A+Math.imul(xn,di)|0,j=j+Math.imul(xn,fi)|0,D=D+Math.imul(wn,pi)|0,A=A+Math.imul(wn,hi)|0,A=A+Math.imul(an,pi)|0,j=j+Math.imul(an,hi)|0,D=D+Math.imul(Un,mi)|0,A=A+Math.imul(Un,gi)|0,A=A+Math.imul(Fn,mi)|0,j=j+Math.imul(Fn,gi)|0,D=D+Math.imul(pt,yi)|0,A=A+Math.imul(pt,bi)|0,A=A+Math.imul(Ct,yi)|0,j=j+Math.imul(Ct,bi)|0;var Eb=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(Eb>>>26)|0,Eb&=67108863,D=Math.imul(Jn,ai),A=Math.imul(Jn,ci),A=A+Math.imul(Yn,ai)|0,j=Math.imul(Yn,ci),D=D+Math.imul(_n,li)|0,A=A+Math.imul(_n,ui)|0,A=A+Math.imul(Cn,li)|0,j=j+Math.imul(Cn,ui)|0,D=D+Math.imul(En,di)|0,A=A+Math.imul(En,fi)|0,A=A+Math.imul(jn,di)|0,j=j+Math.imul(jn,fi)|0,D=D+Math.imul(vn,pi)|0,A=A+Math.imul(vn,hi)|0,A=A+Math.imul(xn,pi)|0,j=j+Math.imul(xn,hi)|0,D=D+Math.imul(wn,mi)|0,A=A+Math.imul(wn,gi)|0,A=A+Math.imul(an,mi)|0,j=j+Math.imul(an,gi)|0,D=D+Math.imul(Un,yi)|0,A=A+Math.imul(Un,bi)|0,A=A+Math.imul(Fn,yi)|0,j=j+Math.imul(Fn,bi)|0;var _b=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(_b>>>26)|0,_b&=67108863,D=Math.imul(Jn,li),A=Math.imul(Jn,ui),A=A+Math.imul(Yn,li)|0,j=Math.imul(Yn,ui),D=D+Math.imul(_n,di)|0,A=A+Math.imul(_n,fi)|0,A=A+Math.imul(Cn,di)|0,j=j+Math.imul(Cn,fi)|0,D=D+Math.imul(En,pi)|0,A=A+Math.imul(En,hi)|0,A=A+Math.imul(jn,pi)|0,j=j+Math.imul(jn,hi)|0,D=D+Math.imul(vn,mi)|0,A=A+Math.imul(vn,gi)|0,A=A+Math.imul(xn,mi)|0,j=j+Math.imul(xn,gi)|0,D=D+Math.imul(wn,yi)|0,A=A+Math.imul(wn,bi)|0,A=A+Math.imul(an,yi)|0,j=j+Math.imul(an,bi)|0;var JV=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(JV>>>26)|0,JV&=67108863,D=Math.imul(Jn,di),A=Math.imul(Jn,fi),A=A+Math.imul(Yn,di)|0,j=Math.imul(Yn,fi),D=D+Math.imul(_n,pi)|0,A=A+Math.imul(_n,hi)|0,A=A+Math.imul(Cn,pi)|0,j=j+Math.imul(Cn,hi)|0,D=D+Math.imul(En,mi)|0,A=A+Math.imul(En,gi)|0,A=A+Math.imul(jn,mi)|0,j=j+Math.imul(jn,gi)|0,D=D+Math.imul(vn,yi)|0,A=A+Math.imul(vn,bi)|0,A=A+Math.imul(xn,yi)|0,j=j+Math.imul(xn,bi)|0;var YV=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(YV>>>26)|0,YV&=67108863,D=Math.imul(Jn,pi),A=Math.imul(Jn,hi),A=A+Math.imul(Yn,pi)|0,j=Math.imul(Yn,hi),D=D+Math.imul(_n,mi)|0,A=A+Math.imul(_n,gi)|0,A=A+Math.imul(Cn,mi)|0,j=j+Math.imul(Cn,gi)|0,D=D+Math.imul(En,yi)|0,A=A+Math.imul(En,bi)|0,A=A+Math.imul(jn,yi)|0,j=j+Math.imul(jn,bi)|0;var XV=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(XV>>>26)|0,XV&=67108863,D=Math.imul(Jn,mi),A=Math.imul(Jn,gi),A=A+Math.imul(Yn,mi)|0,j=Math.imul(Yn,gi),D=D+Math.imul(_n,yi)|0,A=A+Math.imul(_n,bi)|0,A=A+Math.imul(Cn,yi)|0,j=j+Math.imul(Cn,bi)|0;var eW=(U+D|0)+((A&8191)<<13)|0;U=(j+(A>>>13)|0)+(eW>>>26)|0,eW&=67108863,D=Math.imul(Jn,yi),A=Math.imul(Jn,bi),A=A+Math.imul(Yn,yi)|0,j=Math.imul(Yn,bi);var tW=(U+D|0)+((A&8191)<<13)|0;return U=(j+(A>>>13)|0)+(tW>>>26)|0,tW&=67108863,k[0]=ub,k[1]=db,k[2]=fb,k[3]=pb,k[4]=hb,k[5]=mb,k[6]=gb,k[7]=yb,k[8]=bb,k[9]=wb,k[10]=vb,k[11]=xb,k[12]=Eb,k[13]=_b,k[14]=JV,k[15]=YV,k[16]=XV,k[17]=eW,k[18]=tW,U!==0&&(k[19]=U,C.length++),C};Math.imul||(v=w);function b(R,y,E){E.negative=y.negative^R.negative,E.length=R.length+y.length;for(var C=0,I=0,P=0;P<E.length-1;P++){var k=I;I=0;for(var U=C&67108863,D=Math.min(P,y.length-1),A=Math.max(0,P-R.length+1);A<=D;A++){var j=P-A,K=R.words[j]|0,J=y.words[A]|0,X=K*J,re=X&67108863;k=k+(X/67108864|0)|0,re=re+U|0,U=re&67108863,k=k+(re>>>26)|0,I+=k>>>26,k&=67108863}E.words[P]=U,C=k,k=I}return C!==0?E.words[P]=C:E.length--,E._strip()}function _(R,y,E){return b(R,y,E)}i.prototype.mulTo=function(y,E){var C,I=this.length+y.length;return this.length===10&&y.length===10?C=v(this,y,E):I<63?C=w(this,y,E):I<1024?C=b(this,y,E):C=_(this,y,E),C};function S(R,y){this.x=R,this.y=y}S.prototype.makeRBT=function(y){for(var E=new Array(y),C=i.prototype._countBits(y)-1,I=0;I<y;I++)E[I]=this.revBin(I,C,y);return E},S.prototype.revBin=function(y,E,C){if(y===0||y===C-1)return y;for(var I=0,P=0;P<E;P++)I|=(y&1)<<E-P-1,y>>=1;return I},S.prototype.permute=function(y,E,C,I,P,k){for(var U=0;U<k;U++)I[U]=E[y[U]],P[U]=C[y[U]]},S.prototype.transform=function(y,E,C,I,P,k){this.permute(k,y,E,C,I,P);for(var U=1;U<P;U<<=1)for(var D=U<<1,A=Math.cos(2*Math.PI/D),j=Math.sin(2*Math.PI/D),K=0;K<P;K+=D)for(var J=A,X=j,re=0;re<U;re++){var fe=C[K+re],ce=I[K+re],We=C[K+re+U],Ue=I[K+re+U],je=J*We-X*Ue;Ue=J*Ue+X*We,We=je,C[K+re]=fe+We,I[K+re]=ce+Ue,C[K+re+U]=fe-We,I[K+re+U]=ce-Ue,re!==D&&(je=A*J-j*X,X=A*X+j*J,J=je)}},S.prototype.guessLen13b=function(y,E){var C=Math.max(E,y)|1,I=C&1,P=0;for(C=C/2|0;C;C=C>>>1)P++;return 1<<P+1+I},S.prototype.conjugate=function(y,E,C){if(!(C<=1))for(var I=0;I<C/2;I++){var P=y[I];y[I]=y[C-I-1],y[C-I-1]=P,P=E[I],E[I]=-E[C-I-1],E[C-I-1]=-P}},S.prototype.normalize13b=function(y,E){for(var C=0,I=0;I<E/2;I++){var P=Math.round(y[2*I+1]/E)*8192+Math.round(y[2*I]/E)+C;y[I]=P&67108863,P<67108864?C=0:C=P/67108864|0}return y},S.prototype.convert13b=function(y,E,C,I){for(var P=0,k=0;k<E;k++)P=P+(y[k]|0),C[2*k]=P&8191,P=P>>>13,C[2*k+1]=P&8191,P=P>>>13;for(k=2*E;k<I;++k)C[k]=0;r(P===0),r((P&-8192)===0)},S.prototype.stub=function(y){for(var E=new Array(y),C=0;C<y;C++)E[C]=0;return E},S.prototype.mulp=function(y,E,C){var I=2*this.guessLen13b(y.length,E.length),P=this.makeRBT(I),k=this.stub(I),U=new Array(I),D=new Array(I),A=new Array(I),j=new Array(I),K=new Array(I),J=new Array(I),X=C.words;X.length=I,this.convert13b(y.words,y.length,U,I),this.convert13b(E.words,E.length,j,I),this.transform(U,k,D,A,I,P),this.transform(j,k,K,J,I,P);for(var re=0;re<I;re++){var fe=D[re]*K[re]-A[re]*J[re];A[re]=D[re]*J[re]+A[re]*K[re],D[re]=fe}return this.conjugate(D,A,I),this.transform(D,A,X,k,I,P),this.conjugate(X,k,I),this.normalize13b(X,I),C.negative=y.negative^E.negative,C.length=y.length+E.length,C._strip()},i.prototype.mul=function(y){var E=new i(null);return E.words=new Array(this.length+y.length),this.mulTo(y,E)},i.prototype.mulf=function(y){var E=new i(null);return E.words=new Array(this.length+y.length),_(this,y,E)},i.prototype.imul=function(y){return this.clone().mulTo(y,this)},i.prototype.imuln=function(y){var E=y<0;E&&(y=-y),r(typeof y==\\\"number\\\"),r(y<67108864);for(var C=0,I=0;I<this.length;I++){var P=(this.words[I]|0)*y,k=(P&67108863)+(C&67108863);C>>=26,C+=P/67108864|0,C+=k>>>26,this.words[I]=k&67108863}return C!==0&&(this.words[I]=C,this.length++),this.length=y===0?1:this.length,E?this.ineg():this},i.prototype.muln=function(y){return this.clone().imuln(y)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(y){var E=g(y);if(E.length===0)return new i(1);for(var C=this,I=0;I<E.length&&E[I]===0;I++,C=C.sqr());if(++I<E.length)for(var P=C.sqr();I<E.length;I++,P=P.sqr())E[I]!==0&&(C=C.mul(P));return C},i.prototype.iushln=function(y){r(typeof y==\\\"number\\\"&&y>=0);var E=y%26,C=(y-E)/26,I=67108863>>>26-E<<26-E,P;if(E!==0){var k=0;for(P=0;P<this.length;P++){var U=this.words[P]&I,D=(this.words[P]|0)-U<<E;this.words[P]=D|k,k=U>>>26-E}k&&(this.words[P]=k,this.length++)}if(C!==0){for(P=this.length-1;P>=0;P--)this.words[P+C]=this.words[P];for(P=0;P<C;P++)this.words[P]=0;this.length+=C}return this._strip()},i.prototype.ishln=function(y){return r(this.negative===0),this.iushln(y)},i.prototype.iushrn=function(y,E,C){r(typeof y==\\\"number\\\"&&y>=0);var I;E?I=(E-E%26)/26:I=0;var P=y%26,k=Math.min((y-P)/26,this.length),U=67108863^67108863>>>P<<P,D=C;if(I-=k,I=Math.max(0,I),D){for(var A=0;A<k;A++)D.words[A]=this.words[A];D.length=k}if(k!==0)if(this.length>k)for(this.length-=k,A=0;A<this.length;A++)this.words[A]=this.words[A+k];else this.words[0]=0,this.length=1;var j=0;for(A=this.length-1;A>=0&&(j!==0||A>=I);A--){var K=this.words[A]|0;this.words[A]=j<<26-P|K>>>P,j=K&U}return D&&j!==0&&(D.words[D.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(y,E,C){return r(this.negative===0),this.iushrn(y,E,C)},i.prototype.shln=function(y){return this.clone().ishln(y)},i.prototype.ushln=function(y){return this.clone().iushln(y)},i.prototype.shrn=function(y){return this.clone().ishrn(y)},i.prototype.ushrn=function(y){return this.clone().iushrn(y)},i.prototype.testn=function(y){r(typeof y==\\\"number\\\"&&y>=0);var E=y%26,C=(y-E)/26,I=1<<E;if(this.length<=C)return!1;var P=this.words[C];return!!(P&I)},i.prototype.imaskn=function(y){r(typeof y==\\\"number\\\"&&y>=0);var E=y%26,C=(y-E)/26;if(r(this.negative===0,\\\"imaskn works only with positive numbers\\\"),this.length<=C)return this;if(E!==0&&C++,this.length=Math.min(C,this.length),E!==0){var I=67108863^67108863>>>E<<E;this.words[this.length-1]&=I}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(y){return this.clone().imaskn(y)},i.prototype.iaddn=function(y){return r(typeof y==\\\"number\\\"),r(y<67108864),y<0?this.isubn(-y):this.negative!==0?this.length===1&&(this.words[0]|0)<=y?(this.words[0]=y-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(y),this.negative=1,this):this._iaddn(y)},i.prototype._iaddn=function(y){this.words[0]+=y;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(y){if(r(typeof y==\\\"number\\\"),r(y<67108864),y<0)return this.iaddn(-y);if(this.negative!==0)return this.negative=0,this.iaddn(y),this.negative=1,this;if(this.words[0]-=y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(y){return this.clone().iaddn(y)},i.prototype.subn=function(y){return this.clone().isubn(y)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(y,E,C){var I=y.length+C,P;this._expand(I);var k,U=0;for(P=0;P<y.length;P++){k=(this.words[P+C]|0)+U;var D=(y.words[P]|0)*E;k-=D&67108863,U=(k>>26)-(D/67108864|0),this.words[P+C]=k&67108863}for(;P<this.length-C;P++)k=(this.words[P+C]|0)+U,U=k>>26,this.words[P+C]=k&67108863;if(U===0)return this._strip();for(r(U===-1),U=0,P=0;P<this.length;P++)k=-(this.words[P]|0)+U,U=k>>26,this.words[P]=k&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(y,E){var C=this.length-y.length,I=this.clone(),P=y,k=P.words[P.length-1]|0,U=this._countBits(k);C=26-U,C!==0&&(P=P.ushln(C),I.iushln(C),k=P.words[P.length-1]|0);var D=I.length-P.length,A;if(E!==\\\"mod\\\"){A=new i(null),A.length=D+1,A.words=new Array(A.length);for(var j=0;j<A.length;j++)A.words[j]=0}var K=I.clone()._ishlnsubmul(P,1,D);K.negative===0&&(I=K,A&&(A.words[D]=1));for(var J=D-1;J>=0;J--){var X=(I.words[P.length+J]|0)*67108864+(I.words[P.length+J-1]|0);for(X=Math.min(X/k|0,67108863),I._ishlnsubmul(P,X,J);I.negative!==0;)X--,I.negative=0,I._ishlnsubmul(P,1,J),I.isZero()||(I.negative^=1);A&&(A.words[J]=X)}return A&&A._strip(),I._strip(),E!==\\\"div\\\"&&C!==0&&I.iushrn(C),{div:A||null,mod:I}},i.prototype.divmod=function(y,E,C){if(r(!y.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var I,P,k;return this.negative!==0&&y.negative===0?(k=this.neg().divmod(y,E),E!==\\\"mod\\\"&&(I=k.div.neg()),E!==\\\"div\\\"&&(P=k.mod.neg(),C&&P.negative!==0&&P.iadd(y)),{div:I,mod:P}):this.negative===0&&y.negative!==0?(k=this.divmod(y.neg(),E),E!==\\\"mod\\\"&&(I=k.div.neg()),{div:I,mod:k.mod}):(this.negative&y.negative)!==0?(k=this.neg().divmod(y.neg(),E),E!==\\\"div\\\"&&(P=k.mod.neg(),C&&P.negative!==0&&P.isub(y)),{div:k.div,mod:P}):y.length>this.length||this.cmp(y)<0?{div:new i(0),mod:this}:y.length===1?E===\\\"div\\\"?{div:this.divn(y.words[0]),mod:null}:E===\\\"mod\\\"?{div:null,mod:new i(this.modrn(y.words[0]))}:{div:this.divn(y.words[0]),mod:new i(this.modrn(y.words[0]))}:this._wordDiv(y,E)},i.prototype.div=function(y){return this.divmod(y,\\\"div\\\",!1).div},i.prototype.mod=function(y){return this.divmod(y,\\\"mod\\\",!1).mod},i.prototype.umod=function(y){return this.divmod(y,\\\"mod\\\",!0).mod},i.prototype.divRound=function(y){var E=this.divmod(y);if(E.mod.isZero())return E.div;var C=E.div.negative!==0?E.mod.isub(y):E.mod,I=y.ushrn(1),P=y.andln(1),k=C.cmp(I);return k<0||P===1&&k===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(y){var E=y<0;E&&(y=-y),r(y<=67108863);for(var C=(1<<26)%y,I=0,P=this.length-1;P>=0;P--)I=(C*I+(this.words[P]|0))%y;return E?-I:I},i.prototype.modn=function(y){return this.modrn(y)},i.prototype.idivn=function(y){var E=y<0;E&&(y=-y),r(y<=67108863);for(var C=0,I=this.length-1;I>=0;I--){var P=(this.words[I]|0)+C*67108864;this.words[I]=P/y|0,C=P%y}return this._strip(),E?this.ineg():this},i.prototype.divn=function(y){return this.clone().idivn(y)},i.prototype.egcd=function(y){r(y.negative===0),r(!y.isZero());var E=this,C=y.clone();E.negative!==0?E=E.umod(y):E=E.clone();for(var I=new i(1),P=new i(0),k=new i(0),U=new i(1),D=0;E.isEven()&&C.isEven();)E.iushrn(1),C.iushrn(1),++D;for(var A=C.clone(),j=E.clone();!E.isZero();){for(var K=0,J=1;(E.words[0]&J)===0&&K<26;++K,J<<=1);if(K>0)for(E.iushrn(K);K-- >0;)(I.isOdd()||P.isOdd())&&(I.iadd(A),P.isub(j)),I.iushrn(1),P.iushrn(1);for(var X=0,re=1;(C.words[0]&re)===0&&X<26;++X,re<<=1);if(X>0)for(C.iushrn(X);X-- >0;)(k.isOdd()||U.isOdd())&&(k.iadd(A),U.isub(j)),k.iushrn(1),U.iushrn(1);E.cmp(C)>=0?(E.isub(C),I.isub(k),P.isub(U)):(C.isub(E),k.isub(I),U.isub(P))}return{a:k,b:U,gcd:C.iushln(D)}},i.prototype._invmp=function(y){r(y.negative===0),r(!y.isZero());var E=this,C=y.clone();E.negative!==0?E=E.umod(y):E=E.clone();for(var I=new i(1),P=new i(0),k=C.clone();E.cmpn(1)>0&&C.cmpn(1)>0;){for(var U=0,D=1;(E.words[0]&D)===0&&U<26;++U,D<<=1);if(U>0)for(E.iushrn(U);U-- >0;)I.isOdd()&&I.iadd(k),I.iushrn(1);for(var A=0,j=1;(C.words[0]&j)===0&&A<26;++A,j<<=1);if(A>0)for(C.iushrn(A);A-- >0;)P.isOdd()&&P.iadd(k),P.iushrn(1);E.cmp(C)>=0?(E.isub(C),I.isub(P)):(C.isub(E),P.isub(I))}var K;return E.cmpn(1)===0?K=I:K=P,K.cmpn(0)<0&&K.iadd(y),K},i.prototype.gcd=function(y){if(this.isZero())return y.abs();if(y.isZero())return this.abs();var E=this.clone(),C=y.clone();E.negative=0,C.negative=0;for(var I=0;E.isEven()&&C.isEven();I++)E.iushrn(1),C.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;C.isEven();)C.iushrn(1);var P=E.cmp(C);if(P<0){var k=E;E=C,C=k}else if(P===0||C.cmpn(1)===0)break;E.isub(C)}while(!0);return C.iushln(I)},i.prototype.invm=function(y){return this.egcd(y).a.umod(y)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(y){return this.words[0]&y},i.prototype.bincn=function(y){r(typeof y==\\\"number\\\");var E=y%26,C=(y-E)/26,I=1<<E;if(this.length<=C)return this._expand(C+1),this.words[C]|=I,this;for(var P=I,k=C;P!==0&&k<this.length;k++){var U=this.words[k]|0;U+=P,P=U>>>26,U&=67108863,this.words[k]=U}return P!==0&&(this.words[k]=P,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(y){var E=y<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var C;if(this.length>1)C=1;else{E&&(y=-y),r(y<=67108863,\\\"Number is too big\\\");var I=this.words[0]|0;C=I===y?0:I<y?-1:1}return this.negative!==0?-C|0:C},i.prototype.cmp=function(y){if(this.negative!==0&&y.negative===0)return-1;if(this.negative===0&&y.negative!==0)return 1;var E=this.ucmp(y);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(y){if(this.length>y.length)return 1;if(this.length<y.length)return-1;for(var E=0,C=this.length-1;C>=0;C--){var I=this.words[C]|0,P=y.words[C]|0;if(I!==P){I<P?E=-1:I>P&&(E=1);break}}return E},i.prototype.gtn=function(y){return this.cmpn(y)===1},i.prototype.gt=function(y){return this.cmp(y)===1},i.prototype.gten=function(y){return this.cmpn(y)>=0},i.prototype.gte=function(y){return this.cmp(y)>=0},i.prototype.ltn=function(y){return this.cmpn(y)===-1},i.prototype.lt=function(y){return this.cmp(y)===-1},i.prototype.lten=function(y){return this.cmpn(y)<=0},i.prototype.lte=function(y){return this.cmp(y)<=0},i.prototype.eqn=function(y){return this.cmpn(y)===0},i.prototype.eq=function(y){return this.cmp(y)===0},i.red=function(y){return new M(y)},i.prototype.toRed=function(y){return r(!this.red,\\\"Already a number in reduction context\\\"),r(this.negative===0,\\\"red works only with positives\\\"),y.convertTo(this)._forceRed(y)},i.prototype.fromRed=function(){return r(this.red,\\\"fromRed works only with numbers in reduction context\\\"),this.red.convertFrom(this)},i.prototype._forceRed=function(y){return this.red=y,this},i.prototype.forceRed=function(y){return r(!this.red,\\\"Already a number in reduction context\\\"),this._forceRed(y)},i.prototype.redAdd=function(y){return r(this.red,\\\"redAdd works only with red numbers\\\"),this.red.add(this,y)},i.prototype.redIAdd=function(y){return r(this.red,\\\"redIAdd works only with red numbers\\\"),this.red.iadd(this,y)},i.prototype.redSub=function(y){return r(this.red,\\\"redSub works only with red numbers\\\"),this.red.sub(this,y)},i.prototype.redISub=function(y){return r(this.red,\\\"redISub works only with red numbers\\\"),this.red.isub(this,y)},i.prototype.redShl=function(y){return r(this.red,\\\"redShl works only with red numbers\\\"),this.red.shl(this,y)},i.prototype.redMul=function(y){return r(this.red,\\\"redMul works only with red numbers\\\"),this.red._verify2(this,y),this.red.mul(this,y)},i.prototype.redIMul=function(y){return r(this.red,\\\"redMul works only with red numbers\\\"),this.red._verify2(this,y),this.red.imul(this,y)},i.prototype.redSqr=function(){return r(this.red,\\\"redSqr works only with red numbers\\\"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,\\\"redISqr works only with red numbers\\\"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,\\\"redSqrt works only with red numbers\\\"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,\\\"redInvm works only with red numbers\\\"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,\\\"redNeg works only with red numbers\\\"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(y){return r(this.red&&!y.red,\\\"redPow(normalNum)\\\"),this.red._verify1(this),this.red.pow(this,y)};var T={k256:null,p224:null,p192:null,p25519:null};function N(R,y){this.name=R,this.p=new i(y,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var y=new i(null);return y.words=new Array(Math.ceil(this.n/13)),y},N.prototype.ireduce=function(y){var E=y,C;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),C=E.bitLength();while(C>this.n);var I=C<this.n?-1:E.ucmp(this.p);return I===0?(E.words[0]=0,E.length=1):I>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},N.prototype.split=function(y,E){y.iushrn(this.n,0,E)},N.prototype.imulK=function(y){return y.imul(this.k)};function O(){N.call(this,\\\"k256\\\",\\\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\\\")}n(O,N),O.prototype.split=function(y,E){for(var C=4194303,I=Math.min(y.length,9),P=0;P<I;P++)E.words[P]=y.words[P];if(E.length=I,y.length<=9){y.words[0]=0,y.length=1;return}var k=y.words[9];for(E.words[E.length++]=k&C,P=10;P<y.length;P++){var U=y.words[P]|0;y.words[P-10]=(U&C)<<4|k>>>22,k=U}k>>>=22,y.words[P-10]=k,k===0&&y.length>10?y.length-=10:y.length-=9},O.prototype.imulK=function(y){y.words[y.length]=0,y.words[y.length+1]=0,y.length+=2;for(var E=0,C=0;C<y.length;C++){var I=y.words[C]|0;E+=I*977,y.words[C]=E&67108863,E=I*64+(E/67108864|0)}return y.words[y.length-1]===0&&(y.length--,y.words[y.length-1]===0&&y.length--),y};function L(){N.call(this,\\\"p224\\\",\\\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\\\")}n(L,N);function B(){N.call(this,\\\"p192\\\",\\\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\\\")}n(B,N);function H(){N.call(this,\\\"25519\\\",\\\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\\\")}n(H,N),H.prototype.imulK=function(y){for(var E=0,C=0;C<y.length;C++){var I=(y.words[C]|0)*19+E,P=I&67108863;I>>>=26,y.words[C]=P,E=I}return E!==0&&(y.words[y.length++]=E),y},i._prime=function(y){if(T[y])return T[y];var E;if(y===\\\"k256\\\")E=new O;else if(y===\\\"p224\\\")E=new L;else if(y===\\\"p192\\\")E=new B;else if(y===\\\"p25519\\\")E=new H;else throw new Error(\\\"Unknown prime \\\"+y);return T[y]=E,E};function M(R){if(typeof R==\\\"string\\\"){var y=i._prime(R);this.m=y.p,this.prime=y}else r(R.gtn(1),\\\"modulus must be greater than 1\\\"),this.m=R,this.prime=null}M.prototype._verify1=function(y){r(y.negative===0,\\\"red works only with positives\\\"),r(y.red,\\\"red works only with red numbers\\\")},M.prototype._verify2=function(y,E){r((y.negative|E.negative)===0,\\\"red works only with positives\\\"),r(y.red&&y.red===E.red,\\\"red works only with red numbers\\\")},M.prototype.imod=function(y){return this.prime?this.prime.ireduce(y)._forceRed(this):(l(y,y.umod(this.m)._forceRed(this)),y)},M.prototype.neg=function(y){return y.isZero()?y.clone():this.m.sub(y)._forceRed(this)},M.prototype.add=function(y,E){this._verify2(y,E);var C=y.add(E);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},M.prototype.iadd=function(y,E){this._verify2(y,E);var C=y.iadd(E);return C.cmp(this.m)>=0&&C.isub(this.m),C},M.prototype.sub=function(y,E){this._verify2(y,E);var C=y.sub(E);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},M.prototype.isub=function(y,E){this._verify2(y,E);var C=y.isub(E);return C.cmpn(0)<0&&C.iadd(this.m),C},M.prototype.shl=function(y,E){return this._verify1(y),this.imod(y.ushln(E))},M.prototype.imul=function(y,E){return this._verify2(y,E),this.imod(y.imul(E))},M.prototype.mul=function(y,E){return this._verify2(y,E),this.imod(y.mul(E))},M.prototype.isqr=function(y){return this.imul(y,y.clone())},M.prototype.sqr=function(y){return this.mul(y,y)},M.prototype.sqrt=function(y){if(y.isZero())return y.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var C=this.m.add(new i(1)).iushrn(2);return this.pow(y,C)}for(var I=this.m.subn(1),P=0;!I.isZero()&&I.andln(1)===0;)P++,I.iushrn(1);r(!I.isZero());var k=new i(1).toRed(this),U=k.redNeg(),D=this.m.subn(1).iushrn(1),A=this.m.bitLength();for(A=new i(2*A*A).toRed(this);this.pow(A,D).cmp(U)!==0;)A.redIAdd(U);for(var j=this.pow(A,I),K=this.pow(y,I.addn(1).iushrn(1)),J=this.pow(y,I),X=P;J.cmp(k)!==0;){for(var re=J,fe=0;re.cmp(k)!==0;fe++)re=re.redSqr();r(fe<X);var ce=this.pow(j,new i(1).iushln(X-fe-1));K=K.redMul(ce),j=ce.redSqr(),J=J.redMul(j),X=fe}return K},M.prototype.invm=function(y){var E=y._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},M.prototype.pow=function(y,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return y.clone();var C=4,I=new Array(1<<C);I[0]=new i(1).toRed(this),I[1]=y;for(var P=2;P<I.length;P++)I[P]=this.mul(I[P-1],y);var k=I[0],U=0,D=0,A=E.bitLength()%26;for(A===0&&(A=26),P=E.length-1;P>=0;P--){for(var j=E.words[P],K=A-1;K>=0;K--){var J=j>>K&1;if(k!==I[0]&&(k=this.sqr(k)),J===0&&U===0){D=0;continue}U<<=1,U|=J,D++,!(D!==C&&(P!==0||K!==0))&&(k=this.mul(k,I[U]),D=0,U=0)}A=26}return k},M.prototype.convertTo=function(y){var E=y.umod(this.m);return E===y?E.clone():E},M.prototype.convertFrom=function(y){var E=y.clone();return E.red=null,E},i.mont=function(y){return new F(y)};function F(R){M.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(F,M),F.prototype.convertTo=function(y){return this.imod(y.ushln(this.shift))},F.prototype.convertFrom=function(y){var E=this.imod(y.mul(this.rinv));return E.red=null,E},F.prototype.imul=function(y,E){if(y.isZero()||E.isZero())return y.words[0]=0,y.length=1,y;var C=y.imul(E),I=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=C.isub(I).iushrn(this.shift),k=P;return P.cmp(this.m)>=0?k=P.isub(this.m):P.cmpn(0)<0&&(k=P.iadd(this.m)),k._forceRed(this)},F.prototype.mul=function(y,E){if(y.isZero()||E.isZero())return new i(0)._forceRed(this);var C=y.mul(E),I=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=C.isub(I).iushrn(this.shift),k=P;return P.cmp(this.m)>=0?k=P.isub(this.m):P.cmpn(0)<0&&(k=P.iadd(this.m)),k._forceRed(this)},F.prototype.invm=function(y){var E=this.imod(y._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof dre>\\\"u\\\"||dre,D7e)});var AI=q(a_=>{\\\"use strict\\\";u();Object.defineProperty(a_,\\\"__esModule\\\",{value:!0});a_.errorValues=a_.standardErrorCodes=void 0;a_.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};a_.errorValues={\\\"-32700\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\\\"},\\\"-32600\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The JSON sent is not a valid Request object.\\\"},\\\"-32601\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The method does not exist / is not available.\\\"},\\\"-32602\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid method parameter(s).\\\"},\\\"-32603\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Internal JSON-RPC error.\\\"},\\\"-32000\\\":{standard:\\\"EIP-1474\\\",message:\\\"Invalid input.\\\"},\\\"-32001\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource not found.\\\"},\\\"-32002\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource unavailable.\\\"},\\\"-32003\\\":{standard:\\\"EIP-1474\\\",message:\\\"Transaction rejected.\\\"},\\\"-32004\\\":{standard:\\\"EIP-1474\\\",message:\\\"Method not supported.\\\"},\\\"-32005\\\":{standard:\\\"EIP-1474\\\",message:\\\"Request limit exceeded.\\\"},4001:{standard:\\\"EIP-1193\\\",message:\\\"User rejected the request.\\\"},4100:{standard:\\\"EIP-1193\\\",message:\\\"The requested account and/or method has not been authorized by the user.\\\"},4200:{standard:\\\"EIP-1193\\\",message:\\\"The requested method is not supported by this Ethereum provider.\\\"},4900:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from all chains.\\\"},4901:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from the specified chain.\\\"},4902:{standard:\\\"EIP-3085\\\",message:\\\"Unrecognized chain ID.\\\"}}});var zU=q(Rl=>{\\\"use strict\\\";u();Object.defineProperty(Rl,\\\"__esModule\\\",{value:!0});Rl.serialize=Rl.getErrorCode=Rl.isValidCode=Rl.getMessageFromCode=Rl.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var qU=AI(),F7e=\\\"Unspecified error message.\\\";Rl.JSON_RPC_SERVER_ERROR_MESSAGE=\\\"Unspecified server error.\\\";function j7e(t,e=F7e){if(t&&Number.isInteger(t)){let r=t.toString();if(fre(qU.errorValues,r))return qU.errorValues[r].message;if(q7e(t))return Rl.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Rl.getMessageFromCode=j7e;function H7e(t){if(!Number.isInteger(t))return!1;let e=t.toString();return!!(qU.errorValues[e]||q7e(t))}Rl.isValidCode=H7e;function ybt(t){var e;if(typeof t==\\\"number\\\")return t;if(bbt(t))return(e=t.code)!==null&&e!==void 0?e:t.errorCode}Rl.getErrorCode=ybt;function bbt(t){return typeof t==\\\"object\\\"&&t!==null&&(typeof t.code==\\\"number\\\"||typeof t.errorCode==\\\"number\\\")}function wbt(t,{shouldIncludeStack:e=!1}={}){let r={};if(t&&typeof t==\\\"object\\\"&&!Array.isArray(t)&&fre(t,\\\"code\\\")&&H7e(t.code)){let n=t;r.code=n.code,n.message&&typeof n.message==\\\"string\\\"?(r.message=n.message,fre(n,\\\"data\\\")&&(r.data=n.data)):(r.message=j7e(r.code),r.data={originalError:L7e(t)})}else r.code=qU.standardErrorCodes.rpc.internal,r.message=U7e(t,\\\"message\\\")?t.message:F7e,r.data={originalError:L7e(t)};return e&&(r.stack=U7e(t,\\\"stack\\\")?t.stack:void 0),r}Rl.serialize=wbt;function q7e(t){return t>=-32099&&t<=-32e3}function L7e(t){return t&&typeof t==\\\"object\\\"&&!Array.isArray(t)?Object.assign({},t):t}function fre(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function U7e(t,e){return typeof t==\\\"object\\\"&&t!==null&&e in t&&typeof t[e]==\\\"string\\\"}});var V7e=q(WU=>{\\\"use strict\\\";u();Object.defineProperty(WU,\\\"__esModule\\\",{value:!0});WU.standardErrors=void 0;var zo=AI(),z7e=zU();WU.standardErrors={rpc:{parse:t=>qu(zo.standardErrorCodes.rpc.parse,t),invalidRequest:t=>qu(zo.standardErrorCodes.rpc.invalidRequest,t),invalidParams:t=>qu(zo.standardErrorCodes.rpc.invalidParams,t),methodNotFound:t=>qu(zo.standardErrorCodes.rpc.methodNotFound,t),internal:t=>qu(zo.standardErrorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum RPC Server errors must provide single object argument.\\\");let{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('\\\"code\\\" must be an integer such that: -32099 <= code <= -32005');return qu(e,t)},invalidInput:t=>qu(zo.standardErrorCodes.rpc.invalidInput,t),resourceNotFound:t=>qu(zo.standardErrorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>qu(zo.standardErrorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>qu(zo.standardErrorCodes.rpc.transactionRejected,t),methodNotSupported:t=>qu(zo.standardErrorCodes.rpc.methodNotSupported,t),limitExceeded:t=>qu(zo.standardErrorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>c_(zo.standardErrorCodes.provider.userRejectedRequest,t),unauthorized:t=>c_(zo.standardErrorCodes.provider.unauthorized,t),unsupportedMethod:t=>c_(zo.standardErrorCodes.provider.unsupportedMethod,t),disconnected:t=>c_(zo.standardErrorCodes.provider.disconnected,t),chainDisconnected:t=>c_(zo.standardErrorCodes.provider.chainDisconnected,t),unsupportedChain:t=>c_(zo.standardErrorCodes.provider.unsupportedChain,t),custom:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum Provider custom errors must provide single object argument.\\\");let{code:e,message:r,data:n}=t;if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string');return new VU(e,r,n)}}};function qu(t,e){let[r,n]=$7e(e);return new $U(t,r||(0,z7e.getMessageFromCode)(t),n)}function c_(t,e){let[r,n]=$7e(e);return new VU(t,r||(0,z7e.getMessageFromCode)(t),n)}function $7e(t){if(t){if(typeof t==\\\"string\\\")return[t];if(typeof t==\\\"object\\\"&&!Array.isArray(t)){let{message:e,data:r}=t;if(e&&typeof e!=\\\"string\\\")throw new Error(\\\"Must specify string message.\\\");return[e||void 0,r]}}return[]}var $U=class extends Error{constructor(e,r,n){if(!Number.isInteger(e))throw new Error('\\\"code\\\" must be an integer.');if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string.');super(r),this.code=e,n!==void 0&&(this.data=n)}},VU=class extends $U{constructor(e,r,n){if(!vbt(e))throw new Error('\\\"code\\\" must be an integer such that: 1000 <= code <= 4999');super(e,r,n)}};function vbt(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}});var KU=q(GU=>{\\\"use strict\\\";u();Object.defineProperty(GU,\\\"__esModule\\\",{value:!0});GU.isErrorResponse=void 0;function xbt(t){return t.errorMessage!==void 0}GU.isErrorResponse=xbt});var QU=q(ZU=>{\\\"use strict\\\";u();Object.defineProperty(ZU,\\\"__esModule\\\",{value:!0});ZU.LIB_VERSION=void 0;ZU.LIB_VERSION=\\\"3.9.3\\\"});var W7e=q(JU=>{\\\"use strict\\\";u();Object.defineProperty(JU,\\\"__esModule\\\",{value:!0});JU.serializeError=void 0;var Ebt=KU(),_bt=QU(),Cbt=AI(),Sbt=zU();function Abt(t,e){let r=(0,Sbt.serialize)(Tbt(t),{shouldIncludeStack:!0}),n=new URL(\\\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\\\");n.searchParams.set(\\\"version\\\",_bt.LIB_VERSION),n.searchParams.set(\\\"code\\\",r.code.toString());let i=Ibt(r.data,e);return i&&n.searchParams.set(\\\"method\\\",i),n.searchParams.set(\\\"message\\\",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}JU.serializeError=Abt;function Tbt(t){return typeof t==\\\"string\\\"?{message:t,code:Cbt.standardErrorCodes.rpc.internal}:(0,Ebt.isErrorResponse)(t)?Object.assign(Object.assign({},t),{message:t.errorMessage,code:t.errorCode,data:{method:t.method}}):t}function Ibt(t,e){let r=t?.method;if(r)return r;if(e!==void 0){if(typeof e==\\\"string\\\")return e;if(Array.isArray(e)){if(e.length>0)return e[0].method}else return e.method}}});var TI=q(zu=>{\\\"use strict\\\";u();Object.defineProperty(zu,\\\"__esModule\\\",{value:!0});zu.standardErrors=zu.standardErrorCodes=zu.serializeError=zu.getMessageFromCode=zu.getErrorCode=void 0;var Rbt=AI();Object.defineProperty(zu,\\\"standardErrorCodes\\\",{enumerable:!0,get:function(){return Rbt.standardErrorCodes}});var Pbt=V7e();Object.defineProperty(zu,\\\"standardErrors\\\",{enumerable:!0,get:function(){return Pbt.standardErrors}});var Obt=W7e();Object.defineProperty(zu,\\\"serializeError\\\",{enumerable:!0,get:function(){return Obt.serializeError}});var G7e=zU();Object.defineProperty(zu,\\\"getErrorCode\\\",{enumerable:!0,get:function(){return G7e.getErrorCode}});Object.defineProperty(zu,\\\"getMessageFromCode\\\",{enumerable:!0,get:function(){return G7e.getMessageFromCode}})});var RI=q(_a=>{\\\"use strict\\\";u();Object.defineProperty(_a,\\\"__esModule\\\",{value:!0});_a.ProviderType=_a.RegExpString=_a.IntNumber=_a.BigIntString=_a.AddressString=_a.HexString=_a.OpaqueType=void 0;function II(){return t=>t}_a.OpaqueType=II;_a.HexString=II();_a.AddressString=II();_a.BigIntString=II();function Nbt(t){return Math.floor(t)}_a.IntNumber=Nbt;_a.RegExpString=II();var K7e;(function(t){t.CoinbaseWallet=\\\"CoinbaseWallet\\\",t.MetaMask=\\\"MetaMask\\\",t.Unselected=\\\"\\\"})(K7e||(_a.ProviderType=K7e={}))});var Np=q(Je=>{\\\"use strict\\\";u();var kbt=Je&&Je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Je,\\\"__esModule\\\",{value:!0});Je.isMobileWeb=Je.getLocation=Je.isInIFrame=Je.createQrUrl=Je.getFavicon=Je.range=Je.isBigNumber=Je.ensureParsedJSONObject=Je.ensureBN=Je.ensureRegExpString=Je.ensureIntNumber=Je.ensureBuffer=Je.ensureAddressString=Je.ensureEvenLengthHexString=Je.ensureHexString=Je.isHexString=Je.prepend0x=Je.strip0x=Je.has0xPrefix=Je.hexStringFromIntNumber=Je.intNumberFromHexString=Je.bigIntStringFromBN=Je.hexStringFromBuffer=Je.hexStringToUint8Array=Je.uint8ArrayToHex=Je.randomBytesHex=void 0;var Qy=kbt(SI()),Hv=TI(),$u=RI(),Z7e=/^[0-9]*$/,Q7e=/^[a-f0-9]*$/;function Bbt(t){return J7e(crypto.getRandomValues(new Uint8Array(t)))}Je.randomBytesHex=Bbt;function J7e(t){return[...t].map(e=>e.toString(16).padStart(2,\\\"0\\\")).join(\\\"\\\")}Je.uint8ArrayToHex=J7e;function Mbt(t){return new Uint8Array(t.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Je.hexStringToUint8Array=Mbt;function Dbt(t,e=!1){let r=t.toString(\\\"hex\\\");return(0,$u.HexString)(e?`0x${r}`:r)}Je.hexStringFromBuffer=Dbt;function Lbt(t){return(0,$u.BigIntString)(t.toString(10))}Je.bigIntStringFromBN=Lbt;function Ubt(t){return(0,$u.IntNumber)(new Qy.default(OI(t,!1),16).toNumber())}Je.intNumberFromHexString=Ubt;function Fbt(t){return(0,$u.HexString)(`0x${new Qy.default(t).toString(16)}`)}Je.hexStringFromIntNumber=Fbt;function pre(t){return t.startsWith(\\\"0x\\\")||t.startsWith(\\\"0X\\\")}Je.has0xPrefix=pre;function YU(t){return pre(t)?t.slice(2):t}Je.strip0x=YU;function Y7e(t){return pre(t)?`0x${t.slice(2)}`:`0x${t}`}Je.prepend0x=Y7e;function PI(t){if(typeof t!=\\\"string\\\")return!1;let e=YU(t).toLowerCase();return Q7e.test(e)}Je.isHexString=PI;function X7e(t,e=!1){if(typeof t==\\\"string\\\"){let r=YU(t).toLowerCase();if(Q7e.test(r))return(0,$u.HexString)(e?`0x${r}`:r)}throw Hv.standardErrors.rpc.invalidParams(`\\\"${String(t)}\\\" is not a hexadecimal string`)}Je.ensureHexString=X7e;function OI(t,e=!1){let r=X7e(t,!1);return r.length%2===1&&(r=(0,$u.HexString)(`0${r}`)),e?(0,$u.HexString)(`0x${r}`):r}Je.ensureEvenLengthHexString=OI;function jbt(t){if(typeof t==\\\"string\\\"){let e=YU(t).toLowerCase();if(PI(e)&&e.length===40)return(0,$u.AddressString)(Y7e(e))}throw Hv.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)}Je.ensureAddressString=jbt;function Hbt(t){if(globalThis.Buffer.isBuffer(t))return t;if(typeof t==\\\"string\\\"){if(PI(t)){let e=OI(t,!1);return globalThis.Buffer.from(e,\\\"hex\\\")}return globalThis.Buffer.from(t,\\\"utf8\\\")}throw Hv.standardErrors.rpc.invalidParams(`Not binary data: ${String(t)}`)}Je.ensureBuffer=Hbt;function eRe(t){if(typeof t==\\\"number\\\"&&Number.isInteger(t))return(0,$u.IntNumber)(t);if(typeof t==\\\"string\\\"){if(Z7e.test(t))return(0,$u.IntNumber)(Number(t));if(PI(t))return(0,$u.IntNumber)(new Qy.default(OI(t,!1),16).toNumber())}throw Hv.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}Je.ensureIntNumber=eRe;function qbt(t){if(t instanceof RegExp)return(0,$u.RegExpString)(t.toString());throw Hv.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(t)}`)}Je.ensureRegExpString=qbt;function zbt(t){if(t!==null&&(Qy.default.isBN(t)||tRe(t)))return new Qy.default(t.toString(10),10);if(typeof t==\\\"number\\\")return new Qy.default(eRe(t));if(typeof t==\\\"string\\\"){if(Z7e.test(t))return new Qy.default(t,10);if(PI(t))return new Qy.default(OI(t,!1),16)}throw Hv.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}Je.ensureBN=zbt;function $bt(t){if(typeof t==\\\"string\\\")return JSON.parse(t);if(typeof t==\\\"object\\\")return t;throw Hv.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}Je.ensureParsedJSONObject=$bt;function tRe(t){if(t==null||typeof t.constructor!=\\\"function\\\")return!1;let{constructor:e}=t;return typeof e.config==\\\"function\\\"&&typeof e.EUCLID==\\\"number\\\"}Je.isBigNumber=tRe;function Vbt(t,e){return Array.from({length:e-t},(r,n)=>t+n)}Je.range=Vbt;function Wbt(){let t=document.querySelector('link[sizes=\\\"192x192\\\"]')||document.querySelector('link[sizes=\\\"180x180\\\"]')||document.querySelector('link[rel=\\\"icon\\\"]')||document.querySelector('link[rel=\\\"shortcut icon\\\"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute(\\\"href\\\"):null;return!n||n.startsWith(\\\"javascript:\\\")||n.startsWith(\\\"vbscript:\\\")?null:n.startsWith(\\\"http://\\\")||n.startsWith(\\\"https://\\\")||n.startsWith(\\\"data:\\\")?n:n.startsWith(\\\"//\\\")?e+n:`${e}//${r}${n}`}Je.getFavicon=Wbt;function Gbt(t,e,r,n,i,s){let o=n?\\\"parent-id\\\":\\\"id\\\",a=new URLSearchParams({[o]:t,secret:e,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}Je.createQrUrl=Gbt;function rRe(){try{return window.frameElement!==null}catch{return!1}}Je.isInIFrame=rRe;function Kbt(){try{return rRe()&&window.top?window.top.location:window.location}catch{return window.location}}Je.getLocation=Kbt;function Zbt(){var t;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((t=window?.navigator)===null||t===void 0?void 0:t.userAgent)}Je.isMobileWeb=Zbt});var nRe=q(XU=>{\\\"use strict\\\";u();Object.defineProperty(XU,\\\"__esModule\\\",{value:!0});XU.ScopedLocalStorage=void 0;var hre=class{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(\\\"\\\"),r=[];for(let n=0;n<localStorage.length;n++){let i=localStorage.key(n);typeof i==\\\"string\\\"&&i.startsWith(e)&&r.push(i)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};XU.ScopedLocalStorage=hre});var sRe=q((sJr,mre)=>{\\\"use strict\\\";u();var Qbt=Object.prototype.hasOwnProperty,Ja=\\\"~\\\";function NI(){}Object.create&&(NI.prototype=Object.create(null),new NI().__proto__||(Ja=!1));function Jbt(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function iRe(t,e,r,n,i){if(typeof r!=\\\"function\\\")throw new TypeError(\\\"The listener must be a function\\\");var s=new Jbt(r,n||t,i),o=Ja?Ja+e:e;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],s]:t._events[o].push(s):(t._events[o]=s,t._eventsCount++),t}function eF(t,e){--t._eventsCount===0?t._events=new NI:delete t._events[e]}function Ca(){this._events=new NI,this._eventsCount=0}Ca.prototype.eventNames=function(){var e=[],r,n;if(this._eventsCount===0)return e;for(n in r=this._events)Qbt.call(r,n)&&e.push(Ja?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};Ca.prototype.listeners=function(e){var r=Ja?Ja+e:e,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i<s;i++)o[i]=n[i].fn;return o};Ca.prototype.listenerCount=function(e){var r=Ja?Ja+e:e,n=this._events[r];return n?n.fn?1:n.length:0};Ca.prototype.emit=function(e,r,n,i,s,o){var a=Ja?Ja+e:e;if(!this._events[a])return!1;var c=this._events[a],l=arguments.length,d,f;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,s),!0;case 6:return c.fn.call(c.context,r,n,i,s,o),!0}for(f=1,d=new Array(l-1);f<l;f++)d[f-1]=arguments[f];c.fn.apply(c.context,d)}else{var p=c.length,h;for(f=0;f<p;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),l){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,r);break;case 3:c[f].fn.call(c[f].context,r,n);break;case 4:c[f].fn.call(c[f].context,r,n,i);break;default:if(!d)for(h=1,d=new Array(l-1);h<l;h++)d[h-1]=arguments[h];c[f].fn.apply(c[f].context,d)}}return!0};Ca.prototype.on=function(e,r,n){return iRe(this,e,r,n,!1)};Ca.prototype.once=function(e,r,n){return iRe(this,e,r,n,!0)};Ca.prototype.removeListener=function(e,r,n,i){var s=Ja?Ja+e:e;if(!this._events[s])return this;if(!r)return eF(this,s),this;var o=this._events[s];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&eF(this,s);else{for(var a=0,c=[],l=o.length;a<l;a++)(o[a].fn!==r||i&&!o[a].once||n&&o[a].context!==n)&&c.push(o[a]);c.length?this._events[s]=c.length===1?c[0]:c:eF(this,s)}return this};Ca.prototype.removeAllListeners=function(e){var r;return e?(r=Ja?Ja+e:e,this._events[r]&&eF(this,r)):(this._events=new NI,this._eventsCount=0),this};Ca.prototype.off=Ca.prototype.removeListener;Ca.prototype.addListener=Ca.prototype.on;Ca.prefixed=Ja;Ca.EventEmitter=Ca;typeof mre<\\\"u\\\"&&(mre.exports=Ca)});var rF=q(tF=>{\\\"use strict\\\";u();Object.defineProperty(tF,\\\"__esModule\\\",{value:!0});tF.EVENTS=void 0;tF.EVENTS={STARTED_CONNECTING:\\\"walletlink_sdk.started.connecting\\\",CONNECTED_STATE_CHANGE:\\\"walletlink_sdk.connected\\\",DISCONNECTED:\\\"walletlink_sdk.disconnected\\\",METADATA_DESTROYED:\\\"walletlink_sdk_metadata_destroyed\\\",LINKED:\\\"walletlink_sdk.linked\\\",FAILURE:\\\"walletlink_sdk.generic_failure\\\",SESSION_CONFIG_RECEIVED:\\\"walletlink_sdk.session_config_event_received\\\",ETH_ACCOUNTS_STATE:\\\"walletlink_sdk.eth_accounts_state\\\",SESSION_STATE_CHANGE:\\\"walletlink_sdk.session_state_change\\\",UNLINKED_ERROR_STATE:\\\"walletlink_sdk.unlinked_error_state\\\",SKIPPED_CLEARING_SESSION:\\\"walletlink_sdk.skipped_clearing_session\\\",GENERAL_ERROR:\\\"walletlink_sdk.general_error\\\",WEB3_REQUEST:\\\"walletlink_sdk.web3.request\\\",WEB3_REQUEST_PUBLISHED:\\\"walletlink_sdk.web3.request_published\\\",WEB3_RESPONSE:\\\"walletlink_sdk.web3.response\\\",METHOD_NOT_IMPLEMENTED:\\\"walletlink_sdk.method_not_implemented\\\",UNKNOWN_ADDRESS_ENCOUNTERED:\\\"walletlink_sdk.unknown_address_encountered\\\"}});var nF=q(kp=>{\\\"use strict\\\";u();Object.defineProperty(kp,\\\"__esModule\\\",{value:!0});kp.RelayAbstract=kp.APP_VERSION_KEY=kp.LOCAL_STORAGE_ADDRESSES_KEY=kp.WALLET_USER_NAME_KEY=void 0;var oRe=TI();kp.WALLET_USER_NAME_KEY=\\\"walletUsername\\\";kp.LOCAL_STORAGE_ADDRESSES_KEY=\\\"Addresses\\\";kp.APP_VERSION_KEY=\\\"AppVersion\\\";var gre=class{async makeEthereumJSONRPCRequest(e,r){if(!r)throw new Error(\\\"Error: No jsonRpcUrl provided\\\");return window.fetch(r,{method:\\\"POST\\\",body:JSON.stringify(e),mode:\\\"cors\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"}}).then(n=>n.json()).then(n=>{if(!n)throw oRe.standardErrors.rpc.parse({});let i=n,{error:s}=i;if(s)throw(0,oRe.serializeError)(s,e.method);return i})}};kp.RelayAbstract=gre});var Vu=q((dJr,yre)=>{u();typeof Object.create==\\\"function\\\"?yre.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:yre.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Mp=q((bre,cRe)=>{u();var iF=Qx(),Bp=iF.Buffer;function aRe(t,e){for(var r in t)e[r]=t[r]}Bp.from&&Bp.alloc&&Bp.allocUnsafe&&Bp.allocUnsafeSlow?cRe.exports=iF:(aRe(iF,bre),bre.Buffer=qv);function qv(t,e,r){return Bp(t,e,r)}qv.prototype=Object.create(Bp.prototype);aRe(Bp,qv);qv.from=function(t,e,r){if(typeof t==\\\"number\\\")throw new TypeError(\\\"Argument must not be a number\\\");return Bp(t,e,r)};qv.alloc=function(t,e,r){if(typeof t!=\\\"number\\\")throw new TypeError(\\\"Argument must be a number\\\");var n=Bp(t);return e!==void 0?typeof r==\\\"string\\\"?n.fill(e,r):n.fill(e):n.fill(0),n};qv.allocUnsafe=function(t){if(typeof t!=\\\"number\\\")throw new TypeError(\\\"Argument must be a number\\\");return Bp(t)};qv.allocUnsafeSlow=function(t){if(typeof t!=\\\"number\\\")throw new TypeError(\\\"Argument must be a number\\\");return iF.SlowBuffer(t)}});var uRe=q((hJr,lRe)=>{u();var Ybt={}.toString;lRe.exports=Array.isArray||function(t){return Ybt.call(t)==\\\"[object Array]\\\"}});var l_=q((gJr,dRe)=>{\\\"use strict\\\";u();dRe.exports=TypeError});var wre=q((bJr,fRe)=>{\\\"use strict\\\";u();fRe.exports=Object});var hRe=q((vJr,pRe)=>{\\\"use strict\\\";u();pRe.exports=Error});var gRe=q((EJr,mRe)=>{\\\"use strict\\\";u();mRe.exports=EvalError});var bRe=q((CJr,yRe)=>{\\\"use strict\\\";u();yRe.exports=RangeError});var vRe=q((AJr,wRe)=>{\\\"use strict\\\";u();wRe.exports=ReferenceError});var vre=q((IJr,xRe)=>{\\\"use strict\\\";u();xRe.exports=SyntaxError});var _Re=q((PJr,ERe)=>{\\\"use strict\\\";u();ERe.exports=URIError});var SRe=q((NJr,CRe)=>{\\\"use strict\\\";u();CRe.exports=Math.abs});var TRe=q((BJr,ARe)=>{\\\"use strict\\\";u();ARe.exports=Math.floor});var RRe=q((DJr,IRe)=>{\\\"use strict\\\";u();IRe.exports=Math.max});var ORe=q((UJr,PRe)=>{\\\"use strict\\\";u();PRe.exports=Math.min});var kRe=q((jJr,NRe)=>{\\\"use strict\\\";u();NRe.exports=Math.pow});var MRe=q((qJr,BRe)=>{\\\"use strict\\\";u();BRe.exports=Math.round});var LRe=q(($Jr,DRe)=>{\\\"use strict\\\";u();DRe.exports=Number.isNaN||function(e){return e!==e}});var FRe=q((WJr,URe)=>{\\\"use strict\\\";u();var Xbt=LRe();URe.exports=function(e){return Xbt(e)||e===0?e:e<0?-1:1}});var HRe=q((KJr,jRe)=>{\\\"use strict\\\";u();jRe.exports=Object.getOwnPropertyDescriptor});var u_=q((QJr,qRe)=>{\\\"use strict\\\";u();var sF=HRe();if(sF)try{sF([],\\\"length\\\")}catch{sF=null}qRe.exports=sF});var kI=q((YJr,zRe)=>{\\\"use strict\\\";u();var oF=Object.defineProperty||!1;if(oF)try{oF({},\\\"a\\\",{value:1})}catch{oF=!1}zRe.exports=oF});var xre=q((eYr,$Re)=>{\\\"use strict\\\";u();$Re.exports=function(){if(typeof Symbol!=\\\"function\\\"||typeof Object.getOwnPropertySymbols!=\\\"function\\\")return!1;if(typeof Symbol.iterator==\\\"symbol\\\")return!0;var e={},r=Symbol(\\\"test\\\"),n=Object(r);if(typeof r==\\\"string\\\"||Object.prototype.toString.call(r)!==\\\"[object Symbol]\\\"||Object.prototype.toString.call(n)!==\\\"[object Symbol]\\\")return!1;var i=42;e[r]=i;for(var s in e)return!1;if(typeof Object.keys==\\\"function\\\"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==\\\"function\\\"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor==\\\"function\\\"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var GRe=q((rYr,WRe)=>{\\\"use strict\\\";u();var VRe=typeof Symbol<\\\"u\\\"&&Symbol,ewt=xre();WRe.exports=function(){return typeof VRe!=\\\"function\\\"||typeof Symbol!=\\\"function\\\"||typeof VRe(\\\"foo\\\")!=\\\"symbol\\\"||typeof Symbol(\\\"bar\\\")!=\\\"symbol\\\"?!1:ewt()}});var Ere=q((iYr,KRe)=>{\\\"use strict\\\";u();KRe.exports=typeof Reflect<\\\"u\\\"&&Reflect.getPrototypeOf||null});var _re=q((oYr,ZRe)=>{\\\"use strict\\\";u();var twt=wre();ZRe.exports=twt.getPrototypeOf||null});var YRe=q((cYr,JRe)=>{\\\"use strict\\\";u();var rwt=\\\"Function.prototype.bind called on incompatible \\\",nwt=Object.prototype.toString,iwt=Math.max,swt=\\\"[object Function]\\\",QRe=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<r.length;s+=1)n[s+e.length]=r[s];return n},owt=function(e,r){for(var n=[],i=r||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},awt=function(t,e){for(var r=\\\"\\\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};JRe.exports=function(e){var r=this;if(typeof r!=\\\"function\\\"||nwt.apply(r)!==swt)throw new TypeError(rwt+r);for(var n=owt(arguments,1),i,s=function(){if(this instanceof i){var d=r.apply(this,QRe(n,arguments));return Object(d)===d?d:this}return r.apply(e,QRe(n,arguments))},o=iwt(0,r.length-n.length),a=[],c=0;c<o;c++)a[c]=\\\"$\\\"+c;if(i=Function(\\\"binder\\\",\\\"return function (\\\"+awt(a,\\\",\\\")+\\\"){ return binder.apply(this,arguments); }\\\")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i}});var d_=q((uYr,XRe)=>{\\\"use strict\\\";u();var cwt=YRe();XRe.exports=Function.prototype.bind||cwt});var aF=q((fYr,ePe)=>{\\\"use strict\\\";u();ePe.exports=Function.prototype.call});var cF=q((hYr,tPe)=>{\\\"use strict\\\";u();tPe.exports=Function.prototype.apply});var nPe=q((gYr,rPe)=>{\\\"use strict\\\";u();rPe.exports=typeof Reflect<\\\"u\\\"&&Reflect&&Reflect.apply});var Cre=q((bYr,iPe)=>{\\\"use strict\\\";u();var lwt=d_(),uwt=cF(),dwt=aF(),fwt=nPe();iPe.exports=fwt||lwt.call(dwt,uwt)});var lF=q((vYr,sPe)=>{\\\"use strict\\\";u();var pwt=d_(),hwt=l_(),mwt=aF(),gwt=Cre();sPe.exports=function(e){if(e.length<1||typeof e[0]!=\\\"function\\\")throw new hwt(\\\"a function is required\\\");return gwt(pwt,mwt,e)}});var dPe=q((EYr,uPe)=>{\\\"use strict\\\";u();var ywt=lF(),oPe=u_(),cPe;try{cPe=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!=\\\"object\\\"||!(\\\"code\\\"in t)||t.code!==\\\"ERR_PROTO_ACCESS\\\")throw t}var Sre=!!cPe&&oPe&&oPe(Object.prototype,\\\"__proto__\\\"),lPe=Object,aPe=lPe.getPrototypeOf;uPe.exports=Sre&&typeof Sre.get==\\\"function\\\"?ywt([Sre.get]):typeof aPe==\\\"function\\\"?function(e){return aPe(e==null?e:lPe(e))}:!1});var Are=q((CYr,mPe)=>{\\\"use strict\\\";u();var fPe=Ere(),pPe=_re(),hPe=dPe();mPe.exports=fPe?function(e){return fPe(e)}:pPe?function(e){if(!e||typeof e!=\\\"object\\\"&&typeof e!=\\\"function\\\")throw new TypeError(\\\"getProto: not an object\\\");return pPe(e)}:hPe?function(e){return hPe(e)}:null});var yPe=q((AYr,gPe)=>{\\\"use strict\\\";u();var bwt=Function.prototype.call,wwt=Object.prototype.hasOwnProperty,vwt=d_();gPe.exports=vwt.call(bwt,wwt)});var Rre=q((IYr,_Pe)=>{\\\"use strict\\\";u();var Zt,xwt=wre(),Ewt=hRe(),_wt=gRe(),Cwt=bRe(),Swt=vRe(),m_=vre(),h_=l_(),Awt=_Re(),Twt=SRe(),Iwt=TRe(),Rwt=RRe(),Pwt=ORe(),Owt=kRe(),Nwt=MRe(),kwt=FRe(),xPe=Function,Tre=function(t){try{return xPe('\\\"use strict\\\"; return ('+t+\\\").constructor;\\\")()}catch{}},BI=u_(),Bwt=kI(),Ire=function(){throw new h_},Mwt=BI?(function(){try{return arguments.callee,Ire}catch{try{return BI(arguments,\\\"callee\\\").get}catch{return Ire}}})():Ire,f_=GRe()(),uo=Are(),Dwt=_re(),Lwt=Ere(),EPe=cF(),MI=aF(),p_={},Uwt=typeof Uint8Array>\\\"u\\\"||!uo?Zt:uo(Uint8Array),zv={__proto__:null,\\\"%AggregateError%\\\":typeof AggregateError>\\\"u\\\"?Zt:AggregateError,\\\"%Array%\\\":Array,\\\"%ArrayBuffer%\\\":typeof ArrayBuffer>\\\"u\\\"?Zt:ArrayBuffer,\\\"%ArrayIteratorPrototype%\\\":f_&&uo?uo([][Symbol.iterator]()):Zt,\\\"%AsyncFromSyncIteratorPrototype%\\\":Zt,\\\"%AsyncFunction%\\\":p_,\\\"%AsyncGenerator%\\\":p_,\\\"%AsyncGeneratorFunction%\\\":p_,\\\"%AsyncIteratorPrototype%\\\":p_,\\\"%Atomics%\\\":typeof Atomics>\\\"u\\\"?Zt:Atomics,\\\"%BigInt%\\\":typeof BigInt>\\\"u\\\"?Zt:BigInt,\\\"%BigInt64Array%\\\":typeof BigInt64Array>\\\"u\\\"?Zt:BigInt64Array,\\\"%BigUint64Array%\\\":typeof BigUint64Array>\\\"u\\\"?Zt:BigUint64Array,\\\"%Boolean%\\\":Boolean,\\\"%DataView%\\\":typeof DataView>\\\"u\\\"?Zt:DataView,\\\"%Date%\\\":Date,\\\"%decodeURI%\\\":decodeURI,\\\"%decodeURIComponent%\\\":decodeURIComponent,\\\"%encodeURI%\\\":encodeURI,\\\"%encodeURIComponent%\\\":encodeURIComponent,\\\"%Error%\\\":Ewt,\\\"%eval%\\\":eval,\\\"%EvalError%\\\":_wt,\\\"%Float16Array%\\\":typeof Float16Array>\\\"u\\\"?Zt:Float16Array,\\\"%Float32Array%\\\":typeof Float32Array>\\\"u\\\"?Zt:Float32Array,\\\"%Float64Array%\\\":typeof Float64Array>\\\"u\\\"?Zt:Float64Array,\\\"%FinalizationRegistry%\\\":typeof FinalizationRegistry>\\\"u\\\"?Zt:FinalizationRegistry,\\\"%Function%\\\":xPe,\\\"%GeneratorFunction%\\\":p_,\\\"%Int8Array%\\\":typeof Int8Array>\\\"u\\\"?Zt:Int8Array,\\\"%Int16Array%\\\":typeof Int16Array>\\\"u\\\"?Zt:Int16Array,\\\"%Int32Array%\\\":typeof Int32Array>\\\"u\\\"?Zt:Int32Array,\\\"%isFinite%\\\":isFinite,\\\"%isNaN%\\\":isNaN,\\\"%IteratorPrototype%\\\":f_&&uo?uo(uo([][Symbol.iterator]())):Zt,\\\"%JSON%\\\":typeof JSON==\\\"object\\\"?JSON:Zt,\\\"%Map%\\\":typeof Map>\\\"u\\\"?Zt:Map,\\\"%MapIteratorPrototype%\\\":typeof Map>\\\"u\\\"||!f_||!uo?Zt:uo(new Map()[Symbol.iterator]()),\\\"%Math%\\\":Math,\\\"%Number%\\\":Number,\\\"%Object%\\\":xwt,\\\"%Object.getOwnPropertyDescriptor%\\\":BI,\\\"%parseFloat%\\\":parseFloat,\\\"%parseInt%\\\":parseInt,\\\"%Promise%\\\":typeof Promise>\\\"u\\\"?Zt:Promise,\\\"%Proxy%\\\":typeof Proxy>\\\"u\\\"?Zt:Proxy,\\\"%RangeError%\\\":Cwt,\\\"%ReferenceError%\\\":Swt,\\\"%Reflect%\\\":typeof Reflect>\\\"u\\\"?Zt:Reflect,\\\"%RegExp%\\\":RegExp,\\\"%Set%\\\":typeof Set>\\\"u\\\"?Zt:Set,\\\"%SetIteratorPrototype%\\\":typeof Set>\\\"u\\\"||!f_||!uo?Zt:uo(new Set()[Symbol.iterator]()),\\\"%SharedArrayBuffer%\\\":typeof SharedArrayBuffer>\\\"u\\\"?Zt:SharedArrayBuffer,\\\"%String%\\\":String,\\\"%StringIteratorPrototype%\\\":f_&&uo?uo(\\\"\\\"[Symbol.iterator]()):Zt,\\\"%Symbol%\\\":f_?Symbol:Zt,\\\"%SyntaxError%\\\":m_,\\\"%ThrowTypeError%\\\":Mwt,\\\"%TypedArray%\\\":Uwt,\\\"%TypeError%\\\":h_,\\\"%Uint8Array%\\\":typeof Uint8Array>\\\"u\\\"?Zt:Uint8Array,\\\"%Uint8ClampedArray%\\\":typeof Uint8ClampedArray>\\\"u\\\"?Zt:Uint8ClampedArray,\\\"%Uint16Array%\\\":typeof Uint16Array>\\\"u\\\"?Zt:Uint16Array,\\\"%Uint32Array%\\\":typeof Uint32Array>\\\"u\\\"?Zt:Uint32Array,\\\"%URIError%\\\":Awt,\\\"%WeakMap%\\\":typeof WeakMap>\\\"u\\\"?Zt:WeakMap,\\\"%WeakRef%\\\":typeof WeakRef>\\\"u\\\"?Zt:WeakRef,\\\"%WeakSet%\\\":typeof WeakSet>\\\"u\\\"?Zt:WeakSet,\\\"%Function.prototype.call%\\\":MI,\\\"%Function.prototype.apply%\\\":EPe,\\\"%Object.defineProperty%\\\":Bwt,\\\"%Object.getPrototypeOf%\\\":Dwt,\\\"%Math.abs%\\\":Twt,\\\"%Math.floor%\\\":Iwt,\\\"%Math.max%\\\":Rwt,\\\"%Math.min%\\\":Pwt,\\\"%Math.pow%\\\":Owt,\\\"%Math.round%\\\":Nwt,\\\"%Math.sign%\\\":kwt,\\\"%Reflect.getPrototypeOf%\\\":Lwt};if(uo)try{null.error}catch(t){bPe=uo(uo(t)),zv[\\\"%Error.prototype%\\\"]=bPe}var bPe,Fwt=function t(e){var r;if(e===\\\"%AsyncFunction%\\\")r=Tre(\\\"async function () {}\\\");else if(e===\\\"%GeneratorFunction%\\\")r=Tre(\\\"function* () {}\\\");else if(e===\\\"%AsyncGeneratorFunction%\\\")r=Tre(\\\"async function* () {}\\\");else if(e===\\\"%AsyncGenerator%\\\"){var n=t(\\\"%AsyncGeneratorFunction%\\\");n&&(r=n.prototype)}else if(e===\\\"%AsyncIteratorPrototype%\\\"){var i=t(\\\"%AsyncGenerator%\\\");i&&uo&&(r=uo(i.prototype))}return zv[e]=r,r},wPe={__proto__:null,\\\"%ArrayBufferPrototype%\\\":[\\\"ArrayBuffer\\\",\\\"prototype\\\"],\\\"%ArrayPrototype%\\\":[\\\"Array\\\",\\\"prototype\\\"],\\\"%ArrayProto_entries%\\\":[\\\"Array\\\",\\\"prototype\\\",\\\"entries\\\"],\\\"%ArrayProto_forEach%\\\":[\\\"Array\\\",\\\"prototype\\\",\\\"forEach\\\"],\\\"%ArrayProto_keys%\\\":[\\\"Array\\\",\\\"prototype\\\",\\\"keys\\\"],\\\"%ArrayProto_values%\\\":[\\\"Array\\\",\\\"prototype\\\",\\\"values\\\"],\\\"%AsyncFunctionPrototype%\\\":[\\\"AsyncFunction\\\",\\\"prototype\\\"],\\\"%AsyncGenerator%\\\":[\\\"AsyncGeneratorFunction\\\",\\\"prototype\\\"],\\\"%AsyncGeneratorPrototype%\\\":[\\\"AsyncGeneratorFunction\\\",\\\"prototype\\\",\\\"prototype\\\"],\\\"%BooleanPrototype%\\\":[\\\"Boolean\\\",\\\"prototype\\\"],\\\"%DataViewPrototype%\\\":[\\\"DataView\\\",\\\"prototype\\\"],\\\"%DatePrototype%\\\":[\\\"Date\\\",\\\"prototype\\\"],\\\"%ErrorPrototype%\\\":[\\\"Error\\\",\\\"prototype\\\"],\\\"%EvalErrorPrototype%\\\":[\\\"EvalError\\\",\\\"prototype\\\"],\\\"%Float32ArrayPrototype%\\\":[\\\"Float32Array\\\",\\\"prototype\\\"],\\\"%Float64ArrayPrototype%\\\":[\\\"Float64Array\\\",\\\"prototype\\\"],\\\"%FunctionPrototype%\\\":[\\\"Function\\\",\\\"prototype\\\"],\\\"%Generator%\\\":[\\\"GeneratorFunction\\\",\\\"prototype\\\"],\\\"%GeneratorPrototype%\\\":[\\\"GeneratorFunction\\\",\\\"prototype\\\",\\\"prototype\\\"],\\\"%Int8ArrayPrototype%\\\":[\\\"Int8Array\\\",\\\"prototype\\\"],\\\"%Int16ArrayPrototype%\\\":[\\\"Int16Array\\\",\\\"prototype\\\"],\\\"%Int32ArrayPrototype%\\\":[\\\"Int32Array\\\",\\\"prototype\\\"],\\\"%JSONParse%\\\":[\\\"JSON\\\",\\\"parse\\\"],\\\"%JSONStringify%\\\":[\\\"JSON\\\",\\\"stringify\\\"],\\\"%MapPrototype%\\\":[\\\"Map\\\",\\\"prototype\\\"],\\\"%NumberPrototype%\\\":[\\\"Number\\\",\\\"prototype\\\"],\\\"%ObjectPrototype%\\\":[\\\"Object\\\",\\\"prototype\\\"],\\\"%ObjProto_toString%\\\":[\\\"Object\\\",\\\"prototype\\\",\\\"toString\\\"],\\\"%ObjProto_valueOf%\\\":[\\\"Object\\\",\\\"prototype\\\",\\\"valueOf\\\"],\\\"%PromisePrototype%\\\":[\\\"Promise\\\",\\\"prototype\\\"],\\\"%PromiseProto_then%\\\":[\\\"Promise\\\",\\\"prototype\\\",\\\"then\\\"],\\\"%Promise_all%\\\":[\\\"Promise\\\",\\\"all\\\"],\\\"%Promise_reject%\\\":[\\\"Promise\\\",\\\"reject\\\"],\\\"%Promise_resolve%\\\":[\\\"Promise\\\",\\\"resolve\\\"],\\\"%RangeErrorPrototype%\\\":[\\\"RangeError\\\",\\\"prototype\\\"],\\\"%ReferenceErrorPrototype%\\\":[\\\"ReferenceError\\\",\\\"prototype\\\"],\\\"%RegExpPrototype%\\\":[\\\"RegExp\\\",\\\"prototype\\\"],\\\"%SetPrototype%\\\":[\\\"Set\\\",\\\"prototype\\\"],\\\"%SharedArrayBufferPrototype%\\\":[\\\"SharedArrayBuffer\\\",\\\"prototype\\\"],\\\"%StringPrototype%\\\":[\\\"String\\\",\\\"prototype\\\"],\\\"%SymbolPrototype%\\\":[\\\"Symbol\\\",\\\"prototype\\\"],\\\"%SyntaxErrorPrototype%\\\":[\\\"SyntaxError\\\",\\\"prototype\\\"],\\\"%TypedArrayPrototype%\\\":[\\\"TypedArray\\\",\\\"prototype\\\"],\\\"%TypeErrorPrototype%\\\":[\\\"TypeError\\\",\\\"prototype\\\"],\\\"%Uint8ArrayPrototype%\\\":[\\\"Uint8Array\\\",\\\"prototype\\\"],\\\"%Uint8ClampedArrayPrototype%\\\":[\\\"Uint8ClampedArray\\\",\\\"prototype\\\"],\\\"%Uint16ArrayPrototype%\\\":[\\\"Uint16Array\\\",\\\"prototype\\\"],\\\"%Uint32ArrayPrototype%\\\":[\\\"Uint32Array\\\",\\\"prototype\\\"],\\\"%URIErrorPrototype%\\\":[\\\"URIError\\\",\\\"prototype\\\"],\\\"%WeakMapPrototype%\\\":[\\\"WeakMap\\\",\\\"prototype\\\"],\\\"%WeakSetPrototype%\\\":[\\\"WeakSet\\\",\\\"prototype\\\"]},DI=d_(),uF=yPe(),jwt=DI.call(MI,Array.prototype.concat),Hwt=DI.call(EPe,Array.prototype.splice),vPe=DI.call(MI,String.prototype.replace),dF=DI.call(MI,String.prototype.slice),qwt=DI.call(MI,RegExp.prototype.exec),zwt=/[^%.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|%$))/g,$wt=/\\\\\\\\(\\\\\\\\)?/g,Vwt=function(e){var r=dF(e,0,1),n=dF(e,-1);if(r===\\\"%\\\"&&n!==\\\"%\\\")throw new m_(\\\"invalid intrinsic syntax, expected closing `%`\\\");if(n===\\\"%\\\"&&r!==\\\"%\\\")throw new m_(\\\"invalid intrinsic syntax, expected opening `%`\\\");var i=[];return vPe(e,zwt,function(s,o,a,c){i[i.length]=a?vPe(c,$wt,\\\"$1\\\"):o||s}),i},Wwt=function(e,r){var n=e,i;if(uF(wPe,n)&&(i=wPe[n],n=\\\"%\\\"+i[0]+\\\"%\\\"),uF(zv,n)){var s=zv[n];if(s===p_&&(s=Fwt(n)),typeof s>\\\"u\\\"&&!r)throw new h_(\\\"intrinsic \\\"+e+\\\" exists, but is not available. Please file an issue!\\\");return{alias:i,name:n,value:s}}throw new m_(\\\"intrinsic \\\"+e+\\\" does not exist!\\\")};_Pe.exports=function(e,r){if(typeof e!=\\\"string\\\"||e.length===0)throw new h_(\\\"intrinsic name must be a non-empty string\\\");if(arguments.length>1&&typeof r!=\\\"boolean\\\")throw new h_('\\\"allowMissing\\\" argument must be a boolean');if(qwt(/^%?[^%]*%?$/,e)===null)throw new m_(\\\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\\\");var n=Vwt(e),i=n.length>0?n[0]:\\\"\\\",s=Wwt(\\\"%\\\"+i+\\\"%\\\",r),o=s.name,a=s.value,c=!1,l=s.alias;l&&(i=l[0],Hwt(n,jwt([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=dF(p,0,1),m=dF(p,-1);if((h==='\\\"'||h===\\\"'\\\"||h===\\\"`\\\"||m==='\\\"'||m===\\\"'\\\"||m===\\\"`\\\")&&h!==m)throw new m_(\\\"property names with quotes must have matching quotes\\\");if((p===\\\"constructor\\\"||!f)&&(c=!0),i+=\\\".\\\"+p,o=\\\"%\\\"+i+\\\"%\\\",uF(zv,o))a=zv[o];else if(a!=null){if(!(p in a)){if(!r)throw new h_(\\\"base intrinsic for \\\"+e+\\\" exists, but the property is not available.\\\");return}if(BI&&d+1>=n.length){var g=BI(a,p);f=!!g,f&&\\\"get\\\"in g&&!(\\\"originalValue\\\"in g.get)?a=g.get:a=a[p]}else f=uF(a,p),a=a[p];f&&!c&&(zv[o]=a)}}return a}});var Pre=q((PYr,APe)=>{\\\"use strict\\\";u();var CPe=Rre(),SPe=lF(),Gwt=SPe([CPe(\\\"%String.prototype.indexOf%\\\")]);APe.exports=function(e,r){var n=CPe(e,!!r);return typeof n==\\\"function\\\"&&Gwt(e,\\\".prototype.\\\")>-1?SPe([n]):n}});var PPe=q((NYr,RPe)=>{\\\"use strict\\\";u();var IPe=Function.prototype.toString,g_=typeof Reflect==\\\"object\\\"&&Reflect!==null&&Reflect.apply,Nre,fF;if(typeof g_==\\\"function\\\"&&typeof Object.defineProperty==\\\"function\\\")try{Nre=Object.defineProperty({},\\\"length\\\",{get:function(){throw fF}}),fF={},g_(function(){throw 42},null,Nre)}catch(t){t!==fF&&(g_=null)}else g_=null;var Kwt=/^\\\\s*class\\\\b/,kre=function(e){try{var r=IPe.call(e);return Kwt.test(r)}catch{return!1}},Ore=function(e){try{return kre(e)?!1:(IPe.call(e),!0)}catch{return!1}},pF=Object.prototype.toString,Zwt=\\\"[object Object]\\\",Qwt=\\\"[object Function]\\\",Jwt=\\\"[object GeneratorFunction]\\\",Ywt=\\\"[object HTMLAllCollection]\\\",Xwt=\\\"[object HTML document.all class]\\\",evt=\\\"[object HTMLCollection]\\\",tvt=typeof Symbol==\\\"function\\\"&&!!Symbol.toStringTag,rvt=!(0 in[,]),Bre=function(){return!1};typeof document==\\\"object\\\"&&(TPe=document.all,pF.call(TPe)===pF.call(document.all)&&(Bre=function(e){if((rvt||!e)&&(typeof e>\\\"u\\\"||typeof e==\\\"object\\\"))try{var r=pF.call(e);return(r===Ywt||r===Xwt||r===evt||r===Zwt)&&e(\\\"\\\")==null}catch{}return!1}));var TPe;RPe.exports=g_?function(e){if(Bre(e))return!0;if(!e||typeof e!=\\\"function\\\"&&typeof e!=\\\"object\\\")return!1;try{g_(e,null,Nre)}catch(r){if(r!==fF)return!1}return!kre(e)&&Ore(e)}:function(e){if(Bre(e))return!0;if(!e||typeof e!=\\\"function\\\"&&typeof e!=\\\"object\\\")return!1;if(tvt)return Ore(e);if(kre(e))return!1;var r=pF.call(e);return r!==Qwt&&r!==Jwt&&!/^\\\\[object HTML/.test(r)?!1:Ore(e)}});var kPe=q((BYr,NPe)=>{\\\"use strict\\\";u();var nvt=PPe(),ivt=Object.prototype.toString,OPe=Object.prototype.hasOwnProperty,svt=function(e,r,n){for(var i=0,s=e.length;i<s;i++)OPe.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},ovt=function(e,r,n){for(var i=0,s=e.length;i<s;i++)n==null?r(e.charAt(i),i,e):r.call(n,e.charAt(i),i,e)},avt=function(e,r,n){for(var i in e)OPe.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))};function cvt(t){return ivt.call(t)===\\\"[object Array]\\\"}NPe.exports=function(e,r,n){if(!nvt(r))throw new TypeError(\\\"iterator must be a function\\\");var i;arguments.length>=3&&(i=n),cvt(e)?svt(e,r,i):typeof e==\\\"string\\\"?ovt(e,r,i):avt(e,r,i)}});var MPe=q((DYr,BPe)=>{\\\"use strict\\\";u();BPe.exports=[\\\"Float16Array\\\",\\\"Float32Array\\\",\\\"Float64Array\\\",\\\"Int8Array\\\",\\\"Int16Array\\\",\\\"Int32Array\\\",\\\"Uint8Array\\\",\\\"Uint8ClampedArray\\\",\\\"Uint16Array\\\",\\\"Uint32Array\\\",\\\"BigInt64Array\\\",\\\"BigUint64Array\\\"]});var LPe=q((UYr,DPe)=>{\\\"use strict\\\";u();var Mre=MPe(),lvt=globalThis;DPe.exports=function(){for(var e=[],r=0;r<Mre.length;r++)typeof lvt[Mre[r]]==\\\"function\\\"&&(e[e.length]=Mre[r]);return e}});var HPe=q((jYr,jPe)=>{\\\"use strict\\\";u();var UPe=kI(),uvt=vre(),y_=l_(),FPe=u_();jPe.exports=function(e,r,n){if(!e||typeof e!=\\\"object\\\"&&typeof e!=\\\"function\\\")throw new y_(\\\"`obj` must be an object or a function`\\\");if(typeof r!=\\\"string\\\"&&typeof r!=\\\"symbol\\\")throw new y_(\\\"`property` must be a string or a symbol`\\\");if(arguments.length>3&&typeof arguments[3]!=\\\"boolean\\\"&&arguments[3]!==null)throw new y_(\\\"`nonEnumerable`, if provided, must be a boolean or null\\\");if(arguments.length>4&&typeof arguments[4]!=\\\"boolean\\\"&&arguments[4]!==null)throw new y_(\\\"`nonWritable`, if provided, must be a boolean or null\\\");if(arguments.length>5&&typeof arguments[5]!=\\\"boolean\\\"&&arguments[5]!==null)throw new y_(\\\"`nonConfigurable`, if provided, must be a boolean or null\\\");if(arguments.length>6&&typeof arguments[6]!=\\\"boolean\\\")throw new y_(\\\"`loose`, if provided, must be a boolean\\\");var i=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,c=!!FPe&&FPe(e,r);if(UPe)UPe(e,r,{configurable:o===null&&c?c.configurable:!o,enumerable:i===null&&c?c.enumerable:!i,value:n,writable:s===null&&c?c.writable:!s});else if(a||!i&&!s&&!o)e[r]=n;else throw new uvt(\\\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\\\")}});var $Pe=q((qYr,zPe)=>{\\\"use strict\\\";u();var Dre=kI(),qPe=function(){return!!Dre};qPe.hasArrayLengthDefineBug=function(){if(!Dre)return null;try{return Dre([],\\\"length\\\",{value:1}).length!==1}catch{return!0}};zPe.exports=qPe});var ZPe=q(($Yr,KPe)=>{\\\"use strict\\\";u();var dvt=Rre(),VPe=HPe(),fvt=$Pe()(),WPe=u_(),GPe=l_(),pvt=dvt(\\\"%Math.floor%\\\");KPe.exports=function(e,r){if(typeof e!=\\\"function\\\")throw new GPe(\\\"`fn` is not a function\\\");if(typeof r!=\\\"number\\\"||r<0||r>4294967295||pvt(r)!==r)throw new GPe(\\\"`length` must be a positive 32-bit integer\\\");var n=arguments.length>2&&!!arguments[2],i=!0,s=!0;if(\\\"length\\\"in e&&WPe){var o=WPe(e,\\\"length\\\");o&&!o.configurable&&(i=!1),o&&!o.writable&&(s=!1)}return(i||s||!n)&&(fvt?VPe(e,\\\"length\\\",r,!0,!0):VPe(e,\\\"length\\\",r)),e}});var JPe=q((WYr,QPe)=>{\\\"use strict\\\";u();var hvt=d_(),mvt=cF(),gvt=Cre();QPe.exports=function(){return gvt(hvt,mvt,arguments)}});var eOe=q((KYr,hF)=>{\\\"use strict\\\";u();var yvt=ZPe(),YPe=kI(),bvt=lF(),XPe=JPe();hF.exports=function(e){var r=bvt(arguments),n=e.length-(arguments.length-1);return yvt(r,1+(n>0?n:0),!0)};YPe?YPe(hF.exports,\\\"apply\\\",{value:XPe}):hF.exports.apply=XPe});var rOe=q((QYr,tOe)=>{\\\"use strict\\\";u();var wvt=xre();tOe.exports=function(){return wvt()&&!!Symbol.toStringTag}});var aOe=q((YYr,oOe)=>{\\\"use strict\\\";u();var yF=kPe(),vvt=LPe(),nOe=eOe(),Ure=Pre(),gF=u_(),mF=Are(),xvt=Ure(\\\"Object.prototype.toString\\\"),sOe=rOe()(),iOe=globalThis,Lre=vvt(),Fre=Ure(\\\"String.prototype.slice\\\"),Evt=Ure(\\\"Array.prototype.indexOf\\\",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},bF={__proto__:null};sOe&&gF&&mF?yF(Lre,function(t){var e=new iOe[t];if(Symbol.toStringTag in e&&mF){var r=mF(e),n=gF(r,Symbol.toStringTag);if(!n&&r){var i=mF(r);n=gF(i,Symbol.toStringTag)}bF[\\\"$\\\"+t]=nOe(n.get)}}):yF(Lre,function(t){var e=new iOe[t],r=e.slice||e.set;r&&(bF[\\\"$\\\"+t]=nOe(r))});var _vt=function(e){var r=!1;return yF(bF,function(n,i){if(!r)try{\\\"$\\\"+n(e)===i&&(r=Fre(i,1))}catch{}}),r},Cvt=function(e){var r=!1;return yF(bF,function(n,i){if(!r)try{n(e),r=Fre(i,1)}catch{}}),r};oOe.exports=function(e){if(!e||typeof e!=\\\"object\\\")return!1;if(!sOe){var r=Fre(xvt(e),8,-1);return Evt(Lre,r)>-1?r:r!==\\\"Object\\\"?!1:Cvt(e)}return gF?_vt(e):null}});var lOe=q((eXr,cOe)=>{\\\"use strict\\\";u();var Svt=aOe();cOe.exports=function(e){return!!Svt(e)}});var dOe=q((rXr,uOe)=>{\\\"use strict\\\";u();var Avt=l_(),Tvt=Pre(),Ivt=Tvt(\\\"TypedArray.prototype.buffer\\\",!0),Rvt=lOe();uOe.exports=Ivt||function(e){if(!Rvt(e))throw new Avt(\\\"Not a Typed Array\\\");return e.buffer}});var hOe=q((iXr,pOe)=>{\\\"use strict\\\";u();var cf=Mp().Buffer,Pvt=uRe(),Ovt=dOe(),Nvt=ArrayBuffer.isView||function(e){try{return Ovt(e),!0}catch{return!1}},kvt=typeof Uint8Array<\\\"u\\\",fOe=typeof ArrayBuffer<\\\"u\\\"&&typeof Uint8Array<\\\"u\\\",Bvt=fOe&&(cf.prototype instanceof Uint8Array||cf.TYPED_ARRAY_SUPPORT);pOe.exports=function(e,r){if(cf.isBuffer(e))return e.constructor&&!(\\\"isBuffer\\\"in e)?cf.from(e):e;if(typeof e==\\\"string\\\")return cf.from(e,r);if(fOe&&Nvt(e)){if(e.byteLength===0)return cf.alloc(0);if(Bvt){var n=cf.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),s=cf.from(i);if(s.length===e.byteLength)return s}if(kvt&&e instanceof Uint8Array)return cf.from(e);var o=Pvt(e);if(o)for(var a=0;a<e.length;a+=1){var c=e[a];if(typeof c!=\\\"number\\\"||c<0||c>255||~~c!==c)throw new RangeError(\\\"Array items must be numbers in the range 0-255.\\\")}if(o||cf.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==\\\"function\\\"&&e.constructor.isBuffer(e))return cf.from(e);throw new TypeError('The \\\"data\\\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var $v=q((oXr,mOe)=>{\\\"use strict\\\";u();var Mvt=Mp().Buffer,Dvt=hOe();function wF(t,e){this._block=Mvt.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}wF.prototype.update=function(t,e){t=Dvt(t,e||\\\"utf8\\\");for(var r=this._block,n=this._blockSize,i=t.length,s=this._len,o=0;o<i;){for(var a=s%n,c=Math.min(i-o,n-a),l=0;l<c;l++)r[a+l]=t[o+l];s+=c,o+=c,s%n===0&&this._update(r)}return this._len+=i,this};wF.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s};wF.prototype._update=function(){throw new Error(\\\"_update must be implemented by subclass\\\")};mOe.exports=wF});var bOe=q((cXr,yOe)=>{\\\"use strict\\\";u();var Lvt=Vu(),gOe=$v(),Uvt=Mp().Buffer,Fvt=[1518500249,1859775393,-1894007588,-899497514],jvt=new Array(80);function LI(){this.init(),this._w=jvt,gOe.call(this,64,56)}Lvt(LI,gOe);LI.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Hvt(t){return t<<5|t>>>27}function qvt(t){return t<<30|t>>>2}function zvt(t,e,r,n){return t===0?e&r|~e&n:t===2?e&r|e&n|r&n:e^r^n}LI.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,o=this._e|0,a=0;a<16;++a)e[a]=t.readInt32BE(a*4);for(;a<80;++a)e[a]=e[a-3]^e[a-8]^e[a-14]^e[a-16];for(var c=0;c<80;++c){var l=~~(c/20),d=Hvt(r)+zvt(l,n,i,s)+o+e[c]+Fvt[l]|0;o=s,s=i,i=qvt(n),n=r,r=d}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0};LI.prototype._hash=function(){var t=Uvt.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};yOe.exports=LI});var xOe=q((uXr,vOe)=>{\\\"use strict\\\";u();var $vt=Vu(),wOe=$v(),Vvt=Mp().Buffer,Wvt=[1518500249,1859775393,-1894007588,-899497514],Gvt=new Array(80);function UI(){this.init(),this._w=Gvt,wOe.call(this,64,56)}$vt(UI,wOe);UI.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Kvt(t){return t<<1|t>>>31}function Zvt(t){return t<<5|t>>>27}function Qvt(t){return t<<30|t>>>2}function Jvt(t,e,r,n){return t===0?e&r|~e&n:t===2?e&r|e&n|r&n:e^r^n}UI.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,o=this._e|0,a=0;a<16;++a)e[a]=t.readInt32BE(a*4);for(;a<80;++a)e[a]=Kvt(e[a-3]^e[a-8]^e[a-14]^e[a-16]);for(var c=0;c<80;++c){var l=~~(c/20),d=Zvt(r)+Jvt(l,n,i,s)+o+e[c]+Wvt[l]|0;o=s,s=i,i=Qvt(n),n=r,r=d}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0};UI.prototype._hash=function(){var t=Vvt.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};vOe.exports=UI});var jre=q((fXr,_Oe)=>{\\\"use strict\\\";u();var Yvt=Vu(),EOe=$v(),Xvt=Mp().Buffer,e2t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],t2t=new Array(64);function FI(){this.init(),this._w=t2t,EOe.call(this,64,56)}Yvt(FI,EOe);FI.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function r2t(t,e,r){return r^t&(e^r)}function n2t(t,e,r){return t&e|r&(t|e)}function i2t(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function s2t(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function o2t(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function a2t(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}FI.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,i=this._c|0,s=this._d|0,o=this._e|0,a=this._f|0,c=this._g|0,l=this._h|0,d=0;d<16;++d)e[d]=t.readInt32BE(d*4);for(;d<64;++d)e[d]=a2t(e[d-2])+e[d-7]+o2t(e[d-15])+e[d-16]|0;for(var f=0;f<64;++f){var p=l+s2t(o)+r2t(o,a,c)+e2t[f]+e[f]|0,h=i2t(r)+n2t(r,n,i)|0;l=c,c=a,a=o,o=s+p|0,s=i,i=n,n=r,r=p+h|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0,this._f=a+this._f|0,this._g=c+this._g|0,this._h=l+this._h|0};FI.prototype._hash=function(){var t=Xvt.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};_Oe.exports=FI});var SOe=q((hXr,COe)=>{\\\"use strict\\\";u();var c2t=Vu(),l2t=jre(),u2t=$v(),d2t=Mp().Buffer,f2t=new Array(64);function vF(){this.init(),this._w=f2t,u2t.call(this,64,56)}c2t(vF,l2t);vF.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};vF.prototype._hash=function(){var t=d2t.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};COe.exports=vF});var Hre=q((gXr,NOe)=>{\\\"use strict\\\";u();var p2t=Vu(),OOe=$v(),h2t=Mp().Buffer,AOe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m2t=new Array(160);function jI(){this.init(),this._w=m2t,OOe.call(this,128,112)}p2t(jI,OOe);jI.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function TOe(t,e,r){return r^t&(e^r)}function IOe(t,e,r){return t&e|r&(t|e)}function ROe(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function POe(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function g2t(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function y2t(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function b2t(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function w2t(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function fo(t,e){return t>>>0<e>>>0?1:0}jI.prototype._update=function(t){for(var e=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,s=this._dh|0,o=this._eh|0,a=this._fh|0,c=this._gh|0,l=this._hh|0,d=this._al|0,f=this._bl|0,p=this._cl|0,h=this._dl|0,m=this._el|0,g=this._fl|0,w=this._gl|0,v=this._hl|0,b=0;b<32;b+=2)e[b]=t.readInt32BE(b*4),e[b+1]=t.readInt32BE(b*4+4);for(;b<160;b+=2){var _=e[b-30],S=e[b-30+1],T=g2t(_,S),N=y2t(S,_);_=e[b-4],S=e[b-4+1];var O=b2t(_,S),L=w2t(S,_),B=e[b-14],H=e[b-14+1],M=e[b-32],F=e[b-32+1],R=N+H|0,y=T+B+fo(R,N)|0;R=R+L|0,y=y+O+fo(R,L)|0,R=R+F|0,y=y+M+fo(R,F)|0,e[b]=y,e[b+1]=R}for(var E=0;E<160;E+=2){y=e[E],R=e[E+1];var C=IOe(r,n,i),I=IOe(d,f,p),P=ROe(r,d),k=ROe(d,r),U=POe(o,m),D=POe(m,o),A=AOe[E],j=AOe[E+1],K=TOe(o,a,c),J=TOe(m,g,w),X=v+D|0,re=l+U+fo(X,v)|0;X=X+J|0,re=re+K+fo(X,J)|0,X=X+j|0,re=re+A+fo(X,j)|0,X=X+R|0,re=re+y+fo(X,R)|0;var fe=k+I|0,ce=P+C+fo(fe,k)|0;l=c,v=w,c=a,w=g,a=o,g=m,m=h+X|0,o=s+re+fo(m,h)|0,s=i,h=p,i=n,p=f,n=r,f=d,d=X+fe|0,r=re+ce+fo(d,X)|0}this._al=this._al+d|0,this._bl=this._bl+f|0,this._cl=this._cl+p|0,this._dl=this._dl+h|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+w|0,this._hl=this._hl+v|0,this._ah=this._ah+r+fo(this._al,d)|0,this._bh=this._bh+n+fo(this._bl,f)|0,this._ch=this._ch+i+fo(this._cl,p)|0,this._dh=this._dh+s+fo(this._dl,h)|0,this._eh=this._eh+o+fo(this._el,m)|0,this._fh=this._fh+a+fo(this._fl,g)|0,this._gh=this._gh+c+fo(this._gl,w)|0,this._hh=this._hh+l+fo(this._hl,v)|0};jI.prototype._hash=function(){var t=h2t.allocUnsafe(64);function e(r,n,i){t.writeInt32BE(r,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};NOe.exports=jI});var BOe=q((bXr,kOe)=>{\\\"use strict\\\";u();var v2t=Vu(),x2t=Hre(),E2t=$v(),_2t=Mp().Buffer,C2t=new Array(160);function xF(){this.init(),this._w=C2t,E2t.call(this,128,112)}v2t(xF,x2t);xF.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};xF.prototype._hash=function(){var t=_2t.allocUnsafe(48);function e(r,n,i){t.writeInt32BE(r,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};kOe.exports=xF});var MOe=q((vXr,s0)=>{\\\"use strict\\\";u();s0.exports=function(e){var r=e.toLowerCase(),n=s0.exports[r];if(!n)throw new Error(r+\\\" is not supported (we accept pull requests)\\\");return new n};s0.exports.sha=bOe();s0.exports.sha1=xOe();s0.exports.sha224=SOe();s0.exports.sha256=jre();s0.exports.sha384=BOe();s0.exports.sha512=Hre()});var _F=q(EF=>{\\\"use strict\\\";u();Object.defineProperty(EF,\\\"__esModule\\\",{value:!0});EF.Session=void 0;var DOe=MOe(),LOe=Np(),UOe=\\\"session:id\\\",FOe=\\\"session:secret\\\",jOe=\\\"session:linked\\\",qre=class t{constructor(e,r,n,i){this._storage=e,this._id=r||(0,LOe.randomBytesHex)(16),this._secret=n||(0,LOe.randomBytesHex)(32),this._key=new DOe.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\\\"hex\\\"),this._linked=!!i}static load(e){let r=e.getItem(UOe),n=e.getItem(jOe),i=e.getItem(FOe);return r&&i?new t(e,r,i,n===\\\"1\\\"):null}static hash(e){return new DOe.sha256().update(e).digest(\\\"hex\\\")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(UOe,this._id),this._storage.setItem(FOe,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(jOe,this._linked?\\\"1\\\":\\\"0\\\")}};EF.Session=qre});var HOe=q(SF=>{\\\"use strict\\\";u();Object.defineProperty(SF,\\\"__esModule\\\",{value:!0});SF.Cipher=void 0;var CF=Np(),zre=class{constructor(e){this.secret=e}async encrypt(e){let r=this.secret;if(r.length!==64)throw Error(\\\"secret must be 256 bits\\\");let n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey(\\\"raw\\\",(0,CF.hexStringToUint8Array)(r),{name:\\\"aes-gcm\\\"},!1,[\\\"encrypt\\\",\\\"decrypt\\\"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:\\\"AES-GCM\\\",iv:n},i,s.encode(e)),a=16,c=o.slice(o.byteLength-a),l=o.slice(0,o.byteLength-a),d=new Uint8Array(c),f=new Uint8Array(l),p=new Uint8Array([...n,...d,...f]);return(0,CF.uint8ArrayToHex)(p)}async decrypt(e){let r=this.secret;if(r.length!==64)throw Error(\\\"secret must be 256 bits\\\");return new Promise((n,i)=>{(async function(){let s=await crypto.subtle.importKey(\\\"raw\\\",(0,CF.hexStringToUint8Array)(r),{name:\\\"aes-gcm\\\"},!1,[\\\"encrypt\\\",\\\"decrypt\\\"]),o=(0,CF.hexStringToUint8Array)(e),a=o.slice(0,12),c=o.slice(12,28),l=o.slice(28),d=new Uint8Array([...l,...c]),f={name:\\\"AES-GCM\\\",iv:new Uint8Array(a)};try{let p=await window.crypto.subtle.decrypt(f,s,d),h=new TextDecoder;n(h.decode(p))}catch(p){i(p)}})()})}};SF.Cipher=zre});var qOe=q(AF=>{\\\"use strict\\\";u();Object.defineProperty(AF,\\\"__esModule\\\",{value:!0});AF.WalletLinkHTTP=void 0;var $re=class{constructor(e,r,n){this.linkAPIUrl=e,this.sessionId=r;let i=`${r}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:\\\"POST\\\",headers:{Authorization:this.auth}}))).catch(r=>console.error(\\\"Unabled to mark event as failed:\\\",r))}async fetchUnseenEvents(){var e;let r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){let{events:n,error:i}=await r.json();if(i)throw new Error(`Check unseen events failed: ${i}`);let s=(e=n?.filter(o=>o.event===\\\"Web3Response\\\").map(o=>({type:\\\"Event\\\",sessionId:this.sessionId,eventId:o.id,event:o.event,data:o.data})))!==null&&e!==void 0?e:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}};AF.WalletLinkHTTP=$re});var zOe=q(w_=>{\\\"use strict\\\";u();Object.defineProperty(w_,\\\"__esModule\\\",{value:!0});w_.WalletLinkWebSocket=w_.ConnectionState=void 0;var b_;(function(t){t[t.DISCONNECTED=0]=\\\"DISCONNECTED\\\",t[t.CONNECTING=1]=\\\"CONNECTING\\\",t[t.CONNECTED=2]=\\\"CONNECTED\\\"})(b_||(w_.ConnectionState=b_={}));var Vre=class{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,\\\"ws\\\")}async connect(){if(this.webSocket)throw new Error(\\\"webSocket object is not null\\\");return new Promise((e,r)=>{var n;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,b_.CONNECTING),i.onclose=s=>{var o;this.clearWebSocket(),r(new Error(`websocket error ${s.code}: ${s.reason}`)),(o=this.connectionStateListener)===null||o===void 0||o.call(this,b_.DISCONNECTED)},i.onopen=s=>{var o;e(),(o=this.connectionStateListener)===null||o===void 0||o.call(this,b_.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(c=>this.sendData(c)),this.pendingData=[])},i.onmessage=s=>{var o,a;if(s.data===\\\"h\\\")(o=this.incomingDataListener)===null||o===void 0||o.call(this,{type:\\\"Heartbeat\\\"});else try{let c=JSON.parse(s.data);(a=this.incomingDataListener)===null||a===void 0||a.call(this,c)}catch{}}})}disconnect(){var e;let{webSocket:r}=this;if(r){this.clearWebSocket(),(e=this.connectionStateListener)===null||e===void 0||e.call(this,b_.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(e){let{webSocket:r}=this;if(!r){this.pendingData.push(e),this.connect();return}r.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};w_.WalletLinkWebSocket=Vre});var WOe=q(IF=>{\\\"use strict\\\";u();Object.defineProperty(IF,\\\"__esModule\\\",{value:!0});IF.WalletLinkConnection=void 0;var v_=RI(),S2t=HOe(),Dp=rF(),$Oe=nF(),x_=_F(),A2t=qOe(),TF=zOe(),VOe=1e4,T2t=6e4,Wre=class{constructor({session:e,linkAPIUrl:r,listener:n,diagnostic:i,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,v_.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=a=>{if(!a)return;new Map([[\\\"__destroyed\\\",this.handleDestroyed],[\\\"EthereumAddress\\\",this.handleAccountUpdated],[\\\"WalletUsername\\\",this.handleWalletUsernameUpdated],[\\\"AppVersion\\\",this.handleAppVersionUpdated],[\\\"ChainId\\\",l=>a.JsonRpcUrl&&this.handleChainUpdated(l,a.JsonRpcUrl)]]).forEach((l,d)=>{let f=a[d];f!==void 0&&l(f)})},this.handleDestroyed=a=>{var c,l;a===\\\"1\\\"&&((c=this.listener)===null||c===void 0||c.resetAndReload(),(l=this.diagnostic)===null||l===void 0||l.log(Dp.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:x_.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var c,l;try{let d=await this.cipher.decrypt(a);(c=this.listener)===null||c===void 0||c.accountUpdated(d)}catch{(l=this.diagnostic)===null||l===void 0||l.log(Dp.EVENTS.GENERAL_ERROR,{message:\\\"Had error decrypting\\\",value:\\\"selectedAddress\\\"})}},this.handleMetadataUpdated=async(a,c)=>{var l,d;try{let f=await this.cipher.decrypt(c);(l=this.listener)===null||l===void 0||l.metadataUpdated(a,f)}catch{(d=this.diagnostic)===null||d===void 0||d.log(Dp.EVENTS.GENERAL_ERROR,{message:\\\"Had error decrypting\\\",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated($Oe.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated($Oe.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,c)=>{var l,d;try{let f=await this.cipher.decrypt(a),p=await this.cipher.decrypt(c);(l=this.listener)===null||l===void 0||l.chainUpdated(f,p)}catch{(d=this.diagnostic)===null||d===void 0||d.log(Dp.EVENTS.GENERAL_ERROR,{message:\\\"Had error decrypting\\\",value:\\\"chainId|jsonRpcUrl\\\"})}},this.session=e,this.cipher=new S2t.Cipher(e.secret),this.diagnostic=i,this.listener=n;let o=new TF.WalletLinkWebSocket(`${r}/rpc`,s);o.setConnectionStateListener(async a=>{var c;(c=this.diagnostic)===null||c===void 0||c.log(Dp.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:x_.Session.hash(e.id)});let l=!1;switch(a){case TF.ConnectionState.DISCONNECTED:if(!this.destroyed){let d=async()=>{await new Promise(f=>setTimeout(f,5e3)),this.destroyed||o.connect().catch(()=>{d()})};d()}break;case TF.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),l=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},VOe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case TF.ConnectionState.CONNECTING:break}this.connected!==l&&(this.connected=l)}),o.setIncomingDataListener(a=>{var c,l,d;switch(a.type){case\\\"Heartbeat\\\":this.updateLastHeartbeat();return;case\\\"IsLinkedOK\\\":case\\\"Linked\\\":{let f=a.type===\\\"IsLinkedOK\\\"?a.linked:void 0;(c=this.diagnostic)===null||c===void 0||c.log(Dp.EVENTS.LINKED,{sessionIdHash:x_.Session.hash(e.id),linked:f,type:a.type,onlineGuests:a.onlineGuests}),this.linked=f||a.onlineGuests>0;break}case\\\"GetSessionConfigOK\\\":case\\\"SessionConfigUpdated\\\":{(l=this.diagnostic)===null||l===void 0||l.log(Dp.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:x_.Session.hash(e.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case\\\"Event\\\":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((d=this.requestResolutions.get(a.id))===null||d===void 0||d(a))}),this.ws=o,this.http=new A2t.WalletLinkHTTP(r,e.id,e.key)}connect(){var e;if(this.destroyed)throw new Error(\\\"instance is destroyed\\\");(e=this.diagnostic)===null||e===void 0||e.log(Dp.EVENTS.STARTED_CONNECTING,{sessionIdHash:x_.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var e;this.destroyed=!0,this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(Dp.EVENTS.DISCONNECTED,{sessionIdHash:x_.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var r,n;this._connected=e,e&&((r=this.onceConnected)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.connectedUpdated(e)}setOnceConnected(e){return new Promise(r=>{this.connected?e().then(r):this.onceConnected=()=>{e().then(r),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var r,n;this._linked=e,e&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(e)}setOnceLinked(e){return new Promise(r=>{this.linked?e().then(r):this.onceLinked=()=>{e().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(e){var r,n;if(!(e.type!==\\\"Event\\\"||e.event!==\\\"Web3Response\\\"))try{let i=await this.cipher.decrypt(e.data),s=JSON.parse(i);if(s.type!==\\\"WEB3_RESPONSE\\\")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(s)}catch{(n=this.diagnostic)===null||n===void 0||n.log(Dp.EVENTS.GENERAL_ERROR,{message:\\\"Had error decrypting\\\",value:\\\"incomingEvent\\\"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error(\\\"Unable to check for unseen events\\\",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(r=>this.handleIncomingEvent(r))}async setSessionMetadata(e,r){let n={type:\\\"SetSessionConfig\\\",id:(0,v_.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:r}};return this.setOnceConnected(async()=>{let i=await this.makeRequest(n);if(i.type===\\\"Fail\\\")throw new Error(i.error||\\\"failed to set session metadata\\\")})}async publishEvent(e,r,n=!1){let i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,relaySource:window.coinbaseWalletExtension?\\\"injected_sdk\\\":\\\"sdk\\\"}))),s={type:\\\"PublishEvent\\\",id:(0,v_.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:n};return this.setOnceLinked(async()=>{let o=await this.makeRequest(s);if(o.type===\\\"Fail\\\")throw new Error(o.error||\\\"failed to publish event\\\");return o.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>VOe*2){this.ws.disconnect();return}try{this.ws.sendData(\\\"h\\\")}catch{}}async makeRequest(e,r=T2t){let n=e.id;this.sendData(e);let i;return Promise.race([new Promise((s,o)=>{i=window.setTimeout(()=>{o(new Error(`request ${n} timed out`))},r)}),new Promise(s=>{this.requestResolutions.set(n,o=>{clearTimeout(i),s(o),this.requestResolutions.delete(n)})})])}async authenticate(){let e={type:\\\"HostSession\\\",id:(0,v_.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},r=await this.makeRequest(e);if(r.type===\\\"Fail\\\")throw new Error(r.error||\\\"failed to authentcate\\\")}sendIsLinked(){let e={type:\\\"IsLinked\\\",id:(0,v_.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:\\\"GetSessionConfig\\\",id:(0,v_.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}};IF.WalletLinkConnection=Wre});var GOe=q(Gre=>{\\\"use strict\\\";u();Object.defineProperty(Gre,\\\"__esModule\\\",{value:!0});Gre.default='@namespace svg \\\"http://www.w3.org/2000/svg\\\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",\\\"Helvetica Neue\\\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\\\"\\\\\\\\201C\\\" \\\"\\\\\\\\201D\\\" \\\"\\\\\\\\2018\\\" \\\"\\\\\\\\2019\\\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",\\\"Helvetica Neue\\\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var Kre=q(E_=>{\\\"use strict\\\";u();var I2t=E_&&E_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(E_,\\\"__esModule\\\",{value:!0});E_.injectCssReset=void 0;var R2t=I2t(GOe());function P2t(){let t=document.createElement(\\\"style\\\");t.type=\\\"text/css\\\",t.appendChild(document.createTextNode(R2t.default)),document.documentElement.appendChild(t)}E_.injectCssReset=P2t});var Ya={};ue(Ya,{Component:()=>zI,Fragment:()=>WI,cloneElement:()=>U2t,createContext:()=>F2t,createElement:()=>nNe,createRef:()=>N2t,h:()=>nNe,hydrate:()=>fNe,isValidElement:()=>YOe,options:()=>dn,render:()=>dNe,toChildArray:()=>aNe});function Lp(t,e){for(var r in e)t[r]=e[r];return t}function tne(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function nNe(t,e,r){var n,i,s,o={};for(s in e)s==\\\"key\\\"?n=e[s]:s==\\\"ref\\\"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?$I.call(arguments,2):r),typeof t==\\\"function\\\"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return qI(t,o,n,i,null)}function qI(t,e,r,n,i){var s={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++JOe,__i:-1,__u:0};return i==null&&dn.vnode!=null&&dn.vnode(s),s}function N2t(){return{current:null}}function WI(t){return t.children}function zI(t,e){this.props=t,this.context=e}function __(t,e){if(e==null)return t.__?__(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type==\\\"function\\\"?__(t):null}function k2t(t){if(t.__P&&t.__d){var e=t.__v,r=e.__e,n=[],i=[],s=Lp({},e);s.__v=e.__v+1,dn.vnode&&dn.vnode(s),rne(t.__P,s,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,n,r??__(e),!!(32&e.__u),i),s.__v=e.__v,s.__.__k[s.__i]=s,cNe(n,s,i),e.__e=e.__=null,s.__e!=r&&iNe(s)}}function iNe(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),iNe(t)}function Yre(t){(!t.__d&&(t.__d=!0)&&Jy.push(t)&&!kF.__r++||KOe!=dn.debounceRendering)&&((KOe=dn.debounceRendering)||XOe)(kF)}function kF(){try{for(var t,e=1;Jy.length;)Jy.length>e&&Jy.sort(eNe),t=Jy.shift(),e=Jy.length,k2t(t)}finally{Jy.length=kF.__r=0}}function sNe(t,e,r,n,i,s,o,a,c,l,d){var f,p,h,m,g,w,v,b=n&&n.__k||NF,_=e.length;for(c=B2t(r,e,b,c,_),f=0;f<_;f++)(h=r.__k[f])!=null&&(p=h.__i!=-1&&b[h.__i]||OF,h.__i=f,w=rne(t,h,p,i,s,o,a,c,l,d),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&nne(p.ref,null,h),d.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),(v=!!(4&h.__u))||p.__k===h.__k?(c=oNe(h,c,t,v),v&&p.__e&&(p.__e=null)):typeof h.type==\\\"function\\\"&&w!==void 0?c=w:m&&(c=m.nextSibling),h.__u&=-7);return r.__e=g,c}function B2t(t,e,r,n,i){var s,o,a,c,l,d=r.length,f=d,p=0;for(t.__k=new Array(i),s=0;s<i;s++)(o=e[s])!=null&&typeof o!=\\\"boolean\\\"&&typeof o!=\\\"function\\\"?(typeof o==\\\"string\\\"||typeof o==\\\"number\\\"||typeof o==\\\"bigint\\\"||o.constructor==String?o=t.__k[s]=qI(null,o,null,null,null):VI(o)?o=t.__k[s]=qI(WI,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=t.__k[s]=qI(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):t.__k[s]=o,c=s+p,o.__=t,o.__b=t.__b+1,a=null,(l=o.__i=M2t(o,r,c,f))!=-1&&(f--,(a=r[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(i>d?p--:i<d&&p++),typeof o.type!=\\\"function\\\"&&(o.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,o.__u|=4))):t.__k[s]=null;if(f)for(s=0;s<d;s++)(a=r[s])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=__(a)),uNe(a,a));return n}function oNe(t,e,r,n){var i,s;if(typeof t.type==\\\"function\\\"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=oNe(i[s],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=__(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function aNe(t,e){return e=e||[],t==null||typeof t==\\\"boolean\\\"||(VI(t)?t.some(function(r){aNe(r,e)}):e.push(t)),e}function M2t(t,e,r,n){var i,s,o,a=t.key,c=t.type,l=e[r],d=l!=null&&(2&l.__u)==0;if(l===null&&a==null||d&&a==l.key&&c==l.type)return r;if(n>(d?1:0)){for(i=r-1,s=r+1;i>=0||s<e.length;)if((l=e[o=i>=0?i--:s++])!=null&&(2&l.__u)==0&&a==l.key&&c==l.type)return o}return-1}function ZOe(t,e,r){e[0]==\\\"-\\\"?t.setProperty(e,r??\\\"\\\"):t[e]=r==null?\\\"\\\":typeof r!=\\\"number\\\"||O2t.test(e)?r:r+\\\"px\\\"}function RF(t,e,r,n,i){var s,o;e:if(e==\\\"style\\\")if(typeof r==\\\"string\\\")t.style.cssText=r;else{if(typeof n==\\\"string\\\"&&(t.style.cssText=n=\\\"\\\"),n)for(e in n)r&&e in r||ZOe(t.style,e,\\\"\\\");if(r)for(e in r)n&&r[e]==n[e]||ZOe(t.style,e,r[e])}else if(e[0]==\\\"o\\\"&&e[1]==\\\"n\\\")s=e!=(e=e.replace(tNe,\\\"$1\\\")),o=e.toLowerCase(),e=o in t||e==\\\"onFocusOut\\\"||e==\\\"onFocusIn\\\"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r[HI]=n[HI]:(r[HI]=ene,t.addEventListener(e,s?Jre:Qre,s)):t.removeEventListener(e,s?Jre:Qre,s);else{if(i==\\\"http://www.w3.org/2000/svg\\\")e=e.replace(/xlink(H|:h)/,\\\"h\\\").replace(/sName$/,\\\"s\\\");else if(e!=\\\"width\\\"&&e!=\\\"height\\\"&&e!=\\\"href\\\"&&e!=\\\"list\\\"&&e!=\\\"form\\\"&&e!=\\\"tabIndex\\\"&&e!=\\\"download\\\"&&e!=\\\"rowSpan\\\"&&e!=\\\"colSpan\\\"&&e!=\\\"role\\\"&&e!=\\\"popover\\\"&&e in t)try{t[e]=r??\\\"\\\";break e}catch{}typeof r==\\\"function\\\"||(r==null||r===!1&&e[4]!=\\\"-\\\"?t.removeAttribute(e):t.setAttribute(e,e==\\\"popover\\\"&&r==1?\\\"\\\":r))}}function QOe(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e[PF]==null)e[PF]=ene++;else if(e[PF]<r[HI])return;return r(dn.event?dn.event(e):e)}}}function rne(t,e,r,n,i,s,o,a,c,l){var d,f,p,h,m,g,w,v,b,_,S,T,N,O,L,B=e.type;if(e.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),s=[a=e.__e=r.__e]),(d=dn.__b)&&d(e);e:if(typeof B==\\\"function\\\")try{if(v=e.props,b=B.prototype&&B.prototype.render,_=(d=B.contextType)&&n[d.__c],S=d?_?_.props.value:d.__:n,r.__c?w=(f=e.__c=r.__c).__=f.__E:(b?e.__c=f=new B(v,S):(e.__c=f=new zI(v,S),f.constructor=B,f.render=L2t),_&&_.sub(f),f.state||(f.state={}),f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&B.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Lp({},f.__s)),Lp(f.__s,B.getDerivedStateFromProps(v,f.__s))),h=f.props,m=f.state,f.__v=e,p)b&&B.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&B.getDerivedStateFromProps==null&&v!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,S),e.__v==r.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(v,f.__s,S)===!1){e.__v!=r.__v&&(f.props=v,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),NF.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,S),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,m,g)})}if(f.context=S,f.props=v,f.__P=t,f.__e=!1,T=dn.__r,N=0,b)f.state=f.__s,f.__d=!1,T&&T(e),d=f.render(f.props,f.state,f.context),NF.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,T&&T(e),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++N<25);f.state=f.__s,f.getChildContext!=null&&(n=Lp(Lp({},n),f.getChildContext())),b&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(h,m)),O=d!=null&&d.type===WI&&d.key==null?lNe(d.props.children):d,a=sNe(t,VI(O)?O:[O],e,r,n,i,s,o,a,c,l),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),w&&(f.__E=f.__=null)}catch(H){if(e.__v=null,c||s!=null)if(H.then){for(e.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else{for(L=s.length;L--;)tne(s[L]);Xre(e)}else e.__e=r.__e,e.__k=r.__k,H.then||Xre(e);dn.__e(H,e,r)}else s==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=D2t(r.__e,e,r,n,i,s,o,c,l);return(d=dn.diffed)&&d(e),128&e.__u?void 0:a}function Xre(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(Xre))}function cNe(t,e,r){for(var n=0;n<r.length;n++)nne(r[n],r[++n],r[++n]);dn.__c&&dn.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){dn.__e(s,i.__v)}})}function lNe(t){return typeof t!=\\\"object\\\"||t==null||t.__b>0?t:VI(t)?t.map(lNe):Lp({},t)}function D2t(t,e,r,n,i,s,o,a,c){var l,d,f,p,h,m,g,w=r.props||OF,v=e.props,b=e.type;if(b==\\\"svg\\\"?i=\\\"http://www.w3.org/2000/svg\\\":b==\\\"math\\\"?i=\\\"http://www.w3.org/1998/Math/MathML\\\":i||(i=\\\"http://www.w3.org/1999/xhtml\\\"),s!=null){for(l=0;l<s.length;l++)if((h=s[l])&&\\\"setAttribute\\\"in h==!!b&&(b?h.localName==b:h.nodeType==3)){t=h,s[l]=null;break}}if(t==null){if(b==null)return document.createTextNode(v);t=document.createElementNS(i,b,v.is&&v),a&&(dn.__m&&dn.__m(e,s),a=!1),s=null}if(b==null)w===v||a&&t.data==v||(t.data=v);else{if(s=s&&$I.call(t.childNodes),!a&&s!=null)for(w={},l=0;l<t.attributes.length;l++)w[(h=t.attributes[l]).name]=h.value;for(l in w)h=w[l],l==\\\"dangerouslySetInnerHTML\\\"?f=h:l==\\\"children\\\"||l in v||l==\\\"value\\\"&&\\\"defaultValue\\\"in v||l==\\\"checked\\\"&&\\\"defaultChecked\\\"in v||RF(t,l,null,h,i);for(l in v)h=v[l],l==\\\"children\\\"?p=h:l==\\\"dangerouslySetInnerHTML\\\"?d=h:l==\\\"value\\\"?m=h:l==\\\"checked\\\"?g=h:a&&typeof h!=\\\"function\\\"||w[l]===h||RF(t,l,h,w[l],i);if(d)a||f&&(d.__html==f.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(f&&(t.innerHTML=\\\"\\\"),sNe(e.type==\\\"template\\\"?t.content:t,VI(p)?p:[p],e,r,n,b==\\\"foreignObject\\\"?\\\"http://www.w3.org/1999/xhtml\\\":i,s,o,s?s[0]:r.__k&&__(r,0),a,c),s!=null)for(l=s.length;l--;)tne(s[l]);a||(l=\\\"value\\\",b==\\\"progress\\\"&&m==null?t.removeAttribute(\\\"value\\\"):m!=null&&(m!==t[l]||b==\\\"progress\\\"&&!m||b==\\\"option\\\"&&m!=w[l])&&RF(t,l,m,w[l],i),l=\\\"checked\\\",g!=null&&g!=t[l]&&RF(t,l,g,w[l],i))}return t}function nne(t,e,r){try{if(typeof t==\\\"function\\\"){var n=typeof t.__u==\\\"function\\\";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){dn.__e(i,r)}}function uNe(t,e,r){var n,i;if(dn.unmount&&dn.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||nne(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){dn.__e(s,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&uNe(n[i],e,r||typeof t.type!=\\\"function\\\");r||tne(t.__e),t.__c=t.__=t.__e=void 0}function L2t(t,e,r){return this.constructor(t,r)}function dNe(t,e,r){var n,i,s,o;e==document&&(e=document.documentElement),dn.__&&dn.__(t,e),i=(n=typeof r==\\\"function\\\")?null:r&&r.__k||e.__k,s=[],o=[],rne(e,t=(!n&&r||e).__k=nNe(WI,null,[t]),i||OF,OF,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?$I.call(e.childNodes):null,s,!n&&r?r:i?i.__e:e.firstChild,n,o),cNe(s,t,o)}function fNe(t,e){dNe(t,e,fNe)}function U2t(t,e,r){var n,i,s,o,a=Lp({},t.props);for(s in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)s==\\\"key\\\"?n=e[s]:s==\\\"ref\\\"?i=e[s]:a[s]=e[s]===void 0&&o!=null?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?$I.call(arguments,2):r),qI(t.type,a,n||t.key,i||t.ref,null)}function F2t(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(o){o.__e=!0,Yre(o)})},this.sub=function(s){n.add(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),o&&o.call(s)}}),r.children}return e.__c=\\\"__cC\\\"+rNe++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}var $I,dn,JOe,YOe,Jy,KOe,XOe,eNe,Zre,PF,HI,tNe,ene,Qre,Jre,rNe,OF,NF,O2t,VI,Sa=x(()=>{u();OF={},NF=[],O2t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,VI=Array.isArray;$I=NF.slice,dn={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},JOe=0,YOe=function(t){return t!=null&&t.constructor===void 0},zI.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Lp({},this.state),typeof t==\\\"function\\\"&&(t=t(Lp({},r),this.props)),t&&Lp(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Yre(this))},zI.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Yre(this))},zI.prototype.render=WI,Jy=[],XOe=typeof Promise==\\\"function\\\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,eNe=function(t,e){return t.__v.__b-e.__v.__b},kF.__r=0,Zre=Math.random().toString(8),PF=\\\"__d\\\"+Zre,HI=\\\"__a\\\"+Zre,tNe=/(PointerCapture)$|Capture$/i,ene=0,Qre=QOe(!1),Jre=QOe(!0),rNe=0});var GI={};ue(GI,{useCallback:()=>z2t,useContext:()=>$2t,useDebugValue:()=>V2t,useEffect:()=>j2t,useErrorBoundary:()=>W2t,useId:()=>G2t,useImperativeHandle:()=>q2t,useLayoutEffect:()=>CNe,useMemo:()=>one,useReducer:()=>_Ne,useRef:()=>H2t,useState:()=>ENe});function Vv(t,e){ki.__h&&ki.__h(fn,t,C_||e),C_=0;var r=fn.__H||(fn.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function ENe(t){return C_=1,_Ne(SNe,t)}function _Ne(t,e,r){var n=Vv(o0++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):SNe(void 0,e),function(a){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,a);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=fn,!fn.__f)){var i=function(a,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return p.__c});if(d.every(function(p){return!p.__N}))return!s||s.call(this,a,c,l);var f=n.__c.props!==a;return d.some(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),s&&s.call(this,a,c,l)||f};fn.__f=!0;var s=fn.shouldComponentUpdate,o=fn.componentWillUpdate;fn.componentWillUpdate=function(a,c,l){if(this.__e){var d=s;s=void 0,i(a,c,l),s=d}o&&o.call(this,a,c,l)},fn.shouldComponentUpdate=i}return n.__N||n.__}function j2t(t,e){var r=Vv(o0++,3);!ki.__s&&ane(r.__H,e)&&(r.__=t,r.u=e,fn.__H.__h.push(r))}function CNe(t,e){var r=Vv(o0++,4);!ki.__s&&ane(r.__H,e)&&(r.__=t,r.u=e,fn.__h.push(r))}function H2t(t){return C_=5,one(function(){return{current:t}},[])}function q2t(t,e,r){C_=6,CNe(function(){if(typeof t==\\\"function\\\"){var n=t(e());return function(){t(null),n&&typeof n==\\\"function\\\"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function one(t,e){var r=Vv(o0++,7);return ane(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function z2t(t,e){return C_=8,one(function(){return t},e)}function $2t(t){var e=fn.context[t.__c],r=Vv(o0++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(fn)),e.props.value):t.__}function V2t(t,e){ki.useDebugValue&&ki.useDebugValue(e?e(t):t)}function W2t(t){var e=Vv(o0++,10),r=ENe();return e.__=t,fn.componentDidCatch||(fn.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function G2t(){var t=Vv(o0++,11);if(!t.__){for(var e=fn.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__=\\\"P\\\"+r[0]+\\\"-\\\"+r[1]++}return t.__}function K2t(){for(var t;t=xNe.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(BF),e.__h.some(sne),e.__h=[]}catch(r){e.__h=[],ki.__e(r,t.__v)}}}function Z2t(t){var e,r=function(){clearTimeout(n),vNe&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);vNe&&(e=requestAnimationFrame(r))}function BF(t){var e=fn,r=t.__c;typeof r==\\\"function\\\"&&(t.__c=void 0,r()),fn=e}function sne(t){var e=fn;t.__c=t.__(),fn=e}function ane(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function SNe(t,e){return typeof e==\\\"function\\\"?e(t):e}var o0,fn,ine,pNe,C_,xNe,ki,hNe,mNe,gNe,yNe,bNe,wNe,vNe,KI=x(()=>{u();Sa();C_=0,xNe=[],ki=dn,hNe=ki.__b,mNe=ki.__r,gNe=ki.diffed,yNe=ki.__c,bNe=ki.unmount,wNe=ki.__;ki.__b=function(t){fn=null,hNe&&hNe(t)},ki.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wNe&&wNe(t,e)},ki.__r=function(t){mNe&&mNe(t),o0=0;var e=(fn=t.__c).__H;e&&(ine===fn?(e.__h=[],fn.__h=[],e.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.some(BF),e.__h.some(sne),e.__h=[],o0=0)),ine=fn},ki.diffed=function(t){gNe&&gNe(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(xNe.push(e)!==1&&pNe===ki.requestAnimationFrame||((pNe=ki.requestAnimationFrame)||Z2t)(K2t)),e.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ine=fn=null},ki.__c=function(t,e){e.some(function(r){try{r.__h.some(BF),r.__h=r.__h.filter(function(n){return!n.__||sne(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],ki.__e(n,r.__v)}}),yNe&&yNe(t,e)},ki.unmount=function(t){bNe&&bNe(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.some(function(n){try{BF(n)}catch(i){e=i}}),r.__H=void 0,e&&ki.__e(e,r.__v))};vNe=typeof requestAnimationFrame==\\\"function\\\"});var TNe=q(MF=>{\\\"use strict\\\";u();Object.defineProperty(MF,\\\"__esModule\\\",{value:!0});MF.CloseIcon=void 0;var ANe=(Sa(),mt(Ya));function Q2t(t){return(0,ANe.h)(\\\"svg\\\",Object.assign({width:\\\"40\\\",height:\\\"40\\\",viewBox:\\\"0 0 40 40\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,ANe.h)(\\\"path\\\",{d:\\\"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z\\\"}))}MF.CloseIcon=Q2t});var INe=q(LF=>{\\\"use strict\\\";u();Object.defineProperty(LF,\\\"__esModule\\\",{value:!0});LF.CoinbaseWalletRound=void 0;var DF=(Sa(),mt(Ya));function J2t(t){return(0,DF.h)(\\\"svg\\\",Object.assign({width:\\\"28\\\",height:\\\"28\\\",viewBox:\\\"0 0 28 28\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,DF.h)(\\\"circle\\\",{cx:\\\"14\\\",cy:\\\"14\\\",r:\\\"14\\\",fill:\\\"#0052FF\\\"}),(0,DF.h)(\\\"path\\\",{d:\\\"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z\\\",fill:\\\"white\\\"}),(0,DF.h)(\\\"path\\\",{d:\\\"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z\\\",fill:\\\"#0052FF\\\"}))}LF.CoinbaseWalletRound=J2t});var RNe=q(UF=>{\\\"use strict\\\";u();Object.defineProperty(UF,\\\"__esModule\\\",{value:!0});UF.QRCodeIcon=void 0;var ZI=(Sa(),mt(Ya));function Y2t(t){return(0,ZI.h)(\\\"svg\\\",Object.assign({width:\\\"18\\\",height:\\\"18\\\",viewBox:\\\"0 0 24 24\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,ZI.h)(\\\"path\\\",{d:\\\"M3 3V8.99939L5 8.99996V5H9V3H3Z\\\"}),(0,ZI.h)(\\\"path\\\",{d:\\\"M15 21L21 21V15.0006L19 15V19L15 19V21Z\\\"}),(0,ZI.h)(\\\"path\\\",{d:\\\"M21 9H19V5H15.0006L15 3H21V9Z\\\"}),(0,ZI.h)(\\\"path\\\",{d:\\\"M3 15V21H8.99939L8.99996 19H5L5 15H3Z\\\"}))}UF.QRCodeIcon=Y2t});var BNe=q((VXr,kNe)=>{u();function PNe(t){this.mode=Pl.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var n=[],i=this.data.charCodeAt(e);i>65536?(n[0]=240|(i&1835008)>>>18,n[1]=128|(i&258048)>>>12,n[2]=128|(i&4032)>>>6,n[3]=128|i&63):i>2048?(n[0]=224|(i&61440)>>>12,n[1]=128|(i&4032)>>>6,n[2]=128|i&63):i>128?(n[0]=192|(i&1984)>>>6,n[1]=128|i&63):n[0]=i,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}PNe.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}};function Fp(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}Fp.prototype={addData:function(t){var e=new PNe(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+\\\",\\\"+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=Fp.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Bi.getLostPoint(this);(r==0||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r),i=1;this.make();for(var s=0;s<this.modules.length;s++)for(var o=s*i,a=0;a<this.modules[s].length;a++){var c=a*i,l=this.modules[s][a];l&&(n.beginFill(0,100),n.moveTo(c,o),n.lineTo(c+i,o),n.lineTo(c+i,o+i),n.lineTo(c,o+i),n.endFill())}return n},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)this.modules[t][6]==null&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)this.modules[6][e]==null&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=Bi.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];if(this.modules[n][i]==null)for(var s=-2;s<=2;s++)for(var o=-2;o<=2;o++)s==-2||s==2||o==-2||o==2||s==0&&o==0?this.modules[n+s][i+o]=!0:this.modules[n+s][i+o]=!1}},setupTypeNumber:function(t){for(var e=Bi.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=Bi.getBCHTypeInfo(r),i=0;i<15;i++){var s=!t&&(n>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!t&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,s=0,o=this.moduleCount-1;o>0;o-=2)for(o==6&&o--;;){for(var a=0;a<2;a++)if(this.modules[n][o-a]==null){var c=!1;s<t.length&&(c=(t[s]>>>i&1)==1);var l=Bi.getMask(e,n,o-a);l&&(c=!c),this.modules[n][o-a]=c,i--,i==-1&&(s++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}};Fp.PAD0=236;Fp.PAD1=17;Fp.createData=function(t,e,r){for(var n=Up.getRSBlocks(t,e),i=new ONe,s=0;s<r.length;s++){var o=r[s];i.put(o.mode,4),i.put(o.getLength(),Bi.getLengthInBits(o.mode,t)),o.write(i)}for(var a=0,s=0;s<n.length;s++)a+=n[s].dataCount;if(i.getLengthInBits()>a*8)throw new Error(\\\"code length overflow. (\\\"+i.getLengthInBits()+\\\">\\\"+a*8+\\\")\\\");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Fp.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Fp.PAD1,8);return Fp.createBytes(i,n)};Fp.createBytes=function(t,e){for(var r=0,n=0,i=0,s=new Array(e.length),o=new Array(e.length),a=0;a<e.length;a++){var c=e[a].dataCount,l=e[a].totalCount-c;n=Math.max(n,c),i=Math.max(i,l),s[a]=new Array(c);for(var d=0;d<s[a].length;d++)s[a][d]=255&t.buffer[d+r];r+=c;var f=Bi.getErrorCorrectPolynomial(l),p=new S_(s[a],f.getLength()-1),h=p.mod(f);o[a]=new Array(f.getLength()-1);for(var d=0;d<o[a].length;d++){var m=d+h.getLength()-o[a].length;o[a][d]=m>=0?h.get(m):0}}for(var g=0,d=0;d<e.length;d++)g+=e[d].totalCount;for(var w=new Array(g),v=0,d=0;d<n;d++)for(var a=0;a<e.length;a++)d<s[a].length&&(w[v++]=s[a][d]);for(var d=0;d<i;d++)for(var a=0;a<e.length;a++)d<o[a].length&&(w[v++]=o[a][d]);return w};var Pl={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Xy={L:1,M:0,Q:3,H:2},Yy={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},Bi={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;Bi.getBCHDigit(e)-Bi.getBCHDigit(Bi.G15)>=0;)e^=Bi.G15<<Bi.getBCHDigit(e)-Bi.getBCHDigit(Bi.G15);return(t<<10|e)^Bi.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;Bi.getBCHDigit(e)-Bi.getBCHDigit(Bi.G18)>=0;)e^=Bi.G18<<Bi.getBCHDigit(e)-Bi.getBCHDigit(Bi.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;t!=0;)e++,t>>>=1;return e},getPatternPosition:function(t){return Bi.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case Yy.PATTERN000:return(e+r)%2==0;case Yy.PATTERN001:return e%2==0;case Yy.PATTERN010:return r%3==0;case Yy.PATTERN011:return(e+r)%3==0;case Yy.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case Yy.PATTERN101:return e*r%2+e*r%3==0;case Yy.PATTERN110:return(e*r%2+e*r%3)%2==0;case Yy.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(\\\"bad maskPattern:\\\"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new S_([1],0),r=0;r<t;r++)e=e.multiply(new S_([1,po.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case Pl.MODE_NUMBER:return 10;case Pl.MODE_ALPHA_NUM:return 9;case Pl.MODE_8BIT_BYTE:return 8;case Pl.MODE_KANJI:return 8;default:throw new Error(\\\"mode:\\\"+t)}else if(e<27)switch(t){case Pl.MODE_NUMBER:return 12;case Pl.MODE_ALPHA_NUM:return 11;case Pl.MODE_8BIT_BYTE:return 16;case Pl.MODE_KANJI:return 10;default:throw new Error(\\\"mode:\\\"+t)}else if(e<41)switch(t){case Pl.MODE_NUMBER:return 14;case Pl.MODE_ALPHA_NUM:return 13;case Pl.MODE_8BIT_BYTE:return 16;case Pl.MODE_KANJI:return 12;default:throw new Error(\\\"mode:\\\"+t)}else throw new Error(\\\"type:\\\"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var s=0,o=t.isDark(n,i),a=-1;a<=1;a++)if(!(n+a<0||e<=n+a))for(var c=-1;c<=1;c++)i+c<0||e<=i+c||a==0&&c==0||o==t.isDark(n+a,i+c)&&s++;s>5&&(r+=3+s-5)}for(var n=0;n<e-1;n++)for(var i=0;i<e-1;i++){var l=0;t.isDark(n,i)&&l++,t.isDark(n+1,i)&&l++,t.isDark(n,i+1)&&l++,t.isDark(n+1,i+1)&&l++,(l==0||l==4)&&(r+=3)}for(var n=0;n<e;n++)for(var i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(var i=0;i<e;i++)for(var n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);for(var d=0,i=0;i<e;i++)for(var n=0;n<e;n++)t.isDark(n,i)&&d++;var f=Math.abs(100*d/e/e-50)/5;return r+=f*10,r}},po={glog:function(t){if(t<1)throw new Error(\\\"glog(\\\"+t+\\\")\\\");return po.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return po.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Ts=0;Ts<8;Ts++)po.EXP_TABLE[Ts]=1<<Ts;var Ts;for(Ts=8;Ts<256;Ts++)po.EXP_TABLE[Ts]=po.EXP_TABLE[Ts-4]^po.EXP_TABLE[Ts-5]^po.EXP_TABLE[Ts-6]^po.EXP_TABLE[Ts-8];var Ts;for(Ts=0;Ts<255;Ts++)po.LOG_TABLE[po.EXP_TABLE[Ts]]=Ts;var Ts;function S_(t,e){if(t.length==null)throw new Error(t.length+\\\"/\\\"+e);for(var r=0;r<t.length&&t[r]==0;)r++;this.num=new Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}S_.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<t.getLength();n++)e[r+n]^=po.gexp(po.glog(this.get(r))+po.glog(t.get(n)));return new S_(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=po.glog(this.get(0))-po.glog(t.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<t.getLength();n++)r[n]^=po.gexp(po.glog(t.get(n))+e);return new S_(r,0).mod(t)}};function Up(t,e){this.totalCount=t,this.dataCount=e}Up.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];Up.getRSBlocks=function(t,e){var r=Up.getRsBlockTable(t,e);if(r==null)throw new Error(\\\"bad rs block @ typeNumber:\\\"+t+\\\"/errorCorrectLevel:\\\"+e);for(var n=r.length/3,i=[],s=0;s<n;s++)for(var o=r[s*3+0],a=r[s*3+1],c=r[s*3+2],l=0;l<o;l++)i.push(new Up(a,c));return i};Up.getRsBlockTable=function(t,e){switch(e){case Xy.L:return Up.RS_BLOCK_TABLE[(t-1)*4+0];case Xy.M:return Up.RS_BLOCK_TABLE[(t-1)*4+1];case Xy.Q:return Up.RS_BLOCK_TABLE[(t-1)*4+2];case Xy.H:return Up.RS_BLOCK_TABLE[(t-1)*4+3];default:return}};function ONe(){this.buffer=[],this.length=0}ONe.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var cne=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function NNe(t){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:\\\"#000000\\\",background:\\\"#ffffff\\\",ecl:\\\"M\\\",image:{svg:\\\"\\\",width:0,height:0}},typeof t==\\\"string\\\"&&(t={content:t}),t)for(var r in t)this.options[r]=t[r];if(typeof this.options.content!=\\\"string\\\")throw new Error(\\\"Expected 'content' as string!\\\");if(this.options.content.length===0)throw new Error(\\\"Expected 'content' to be non-empty!\\\");if(!(this.options.padding>=0))throw new Error(\\\"Expected 'padding' value to be non-negative!\\\");if(!(this.options.width>0)||!(this.options.height>0))throw new Error(\\\"Expected 'width' or 'height' value to be higher than zero!\\\");function n(l){switch(l){case\\\"L\\\":return Xy.L;case\\\"M\\\":return Xy.M;case\\\"Q\\\":return Xy.Q;case\\\"H\\\":return Xy.H;default:throw new Error(\\\"Unknwon error correction level: \\\"+l)}}function i(l,d){for(var f=s(l),p=1,h=0,m=0,g=cne.length;m<=g;m++){var w=cne[m];if(!w)throw new Error(\\\"Content too long: expected \\\"+h+\\\" but got \\\"+f);switch(d){case\\\"L\\\":h=w[0];break;case\\\"M\\\":h=w[1];break;case\\\"Q\\\":h=w[2];break;case\\\"H\\\":h=w[3];break;default:throw new Error(\\\"Unknwon error correction level: \\\"+d)}if(f<=h)break;p++}if(p>cne.length)throw new Error(\\\"Content too long\\\");return p}function s(l){var d=encodeURI(l).toString().replace(/\\\\%[0-9a-fA-F]{2}/g,\\\"a\\\");return d.length+(d.length!=l?3:0)}var o=this.options.content,a=i(o,this.options.ecl),c=n(this.options.ecl);this.qrcode=new Fp(a,c),this.qrcode.addData(o),this.qrcode.make()}NNe.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;typeof t>\\\"u\\\"&&(t={container:e.container||\\\"svg\\\"});for(var n=typeof e.pretty<\\\"u\\\"?!!e.pretty:!0,i=n?\\\"  \\\":\\\"\\\",s=n?`\\\\r\\n`:\\\"\\\",o=e.width,a=e.height,c=r.length,l=o/(c+2*e.padding),d=a/(c+2*e.padding),f=typeof e.join<\\\"u\\\"?!!e.join:!1,p=typeof e.swap<\\\"u\\\"?!!e.swap:!1,h=typeof e.xmlDeclaration<\\\"u\\\"?!!e.xmlDeclaration:!0,m=typeof e.predefined<\\\"u\\\"?!!e.predefined:!1,g=m?i+'<defs><path id=\\\"qrmodule\\\" d=\\\"M0 0 h'+d+\\\" v\\\"+l+' H0 z\\\" style=\\\"fill:'+e.color+';shape-rendering:crispEdges;\\\" /></defs>'+s:\\\"\\\",w=i+'<rect x=\\\"0\\\" y=\\\"0\\\" width=\\\"'+o+'\\\" height=\\\"'+a+'\\\" style=\\\"fill:'+e.background+';shape-rendering:crispEdges;\\\"/>'+s,v=\\\"\\\",b=\\\"\\\",_=0;_<c;_++)for(var S=0;S<c;S++){var T=r[S][_];if(T){var N=S*l+e.padding*l,O=_*d+e.padding*d;if(p){var L=N;N=O,O=L}if(f){var B=l+N,H=d+O;N=Number.isInteger(N)?Number(N):N.toFixed(2),O=Number.isInteger(O)?Number(O):O.toFixed(2),B=Number.isInteger(B)?Number(B):B.toFixed(2),H=Number.isInteger(H)?Number(H):H.toFixed(2),b+=\\\"M\\\"+N+\\\",\\\"+O+\\\" V\\\"+H+\\\" H\\\"+B+\\\" V\\\"+O+\\\" H\\\"+N+\\\" Z \\\"}else m?v+=i+'<use x=\\\"'+N.toString()+'\\\" y=\\\"'+O.toString()+'\\\" href=\\\"#qrmodule\\\" />'+s:v+=i+'<rect x=\\\"'+N.toString()+'\\\" y=\\\"'+O.toString()+'\\\" width=\\\"'+l+'\\\" height=\\\"'+d+'\\\" style=\\\"fill:'+e.color+';shape-rendering:crispEdges;\\\"/>'+s}}f&&(v=i+'<path x=\\\"0\\\" y=\\\"0\\\" style=\\\"fill:'+e.color+';shape-rendering:crispEdges;\\\" d=\\\"'+b+'\\\" />');let M=\\\"\\\";if(this.options.image!==void 0&&this.options.image.svg){let R=o*this.options.image.width/100,y=a*this.options.image.height/100,E=o/2-R/2,C=a/2-y/2;M+=`<svg x=\\\"${E}\\\" y=\\\"${C}\\\" width=\\\"${R}\\\" height=\\\"${y}\\\" viewBox=\\\"0 0 100 100\\\" preserveAspectRatio=\\\"xMinYMin meet\\\">`,M+=this.options.image.svg+s,M+=\\\"</svg>\\\"}var F=\\\"\\\";switch(t.container){case\\\"svg\\\":h&&(F+='<?xml version=\\\"1.0\\\" standalone=\\\"yes\\\"?>'+s),F+='<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"'+o+'\\\" height=\\\"'+a+'\\\">'+s,F+=g+w+v,F+=M,F+=\\\"</svg>\\\";break;case\\\"svg-viewbox\\\":h&&(F+='<?xml version=\\\"1.0\\\" standalone=\\\"yes\\\"?>'+s),F+='<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" viewBox=\\\"0 0 '+o+\\\" \\\"+a+'\\\">'+s,F+=g+w+v,F+=M,F+=\\\"</svg>\\\";break;case\\\"g\\\":F+='<g width=\\\"'+o+'\\\" height=\\\"'+a+'\\\">'+s,F+=g+w+v,F+=M,F+=\\\"</g>\\\";break;default:F+=(g+w+v+M).replace(/^\\\\s+/,\\\"\\\");break}return F};kNe.exports=NNe});var DNe=q(A_=>{\\\"use strict\\\";u();var X2t=A_&&A_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A_,\\\"__esModule\\\",{value:!0});A_.QRCode=void 0;var ext=(Sa(),mt(Ya)),MNe=(KI(),mt(GI)),txt=X2t(BNe()),rxt=t=>{let[e,r]=(0,MNe.useState)(\\\"\\\");return(0,MNe.useEffect)(()=>{var n,i;let s=new txt.default({content:t.content,background:t.bgColor||\\\"#ffffff\\\",color:t.fgColor||\\\"#000000\\\",container:\\\"svg\\\",ecl:\\\"M\\\",width:(n=t.width)!==null&&n!==void 0?n:256,height:(i=t.height)!==null&&i!==void 0?i:256,padding:0,image:t.image}),o=globalThis.Buffer.from(s.svg(),\\\"utf8\\\").toString(\\\"base64\\\");r(`data:image/svg+xml;base64,${o}`)},[t.bgColor,t.content,t.fgColor,t.height,t.image,t.width]),e?(0,ext.h)(\\\"img\\\",{src:e,alt:\\\"QR Code\\\"}):null};A_.QRCode=rxt});var LNe=q(lne=>{\\\"use strict\\\";u();Object.defineProperty(lne,\\\"__esModule\\\",{value:!0});lne.default=\\\".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}\\\"});var UNe=q(T_=>{\\\"use strict\\\";u();var nxt=T_&&T_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(T_,\\\"__esModule\\\",{value:!0});T_.Spinner=void 0;var FF=(Sa(),mt(Ya)),ixt=nxt(LNe()),sxt=t=>{var e;let r=(e=t.size)!==null&&e!==void 0?e:64,n=t.color||\\\"#000\\\";return(0,FF.h)(\\\"div\\\",{class:\\\"-cbwsdk-spinner\\\"},(0,FF.h)(\\\"style\\\",null,ixt.default),(0,FF.h)(\\\"svg\\\",{viewBox:\\\"0 0 100 100\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\",style:{width:r,height:r}},(0,FF.h)(\\\"circle\\\",{style:{cx:50,cy:50,r:45,stroke:n}})))};T_.Spinner=sxt});var FNe=q(une=>{\\\"use strict\\\";u();Object.defineProperty(une,\\\"__esModule\\\",{value:!0});une.default=\\\".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}\\\"});var qNe=q(e1=>{\\\"use strict\\\";u();var jNe=e1&&e1.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e1,\\\"__esModule\\\",{value:!0});e1.CoinbaseWalletSteps=e1.ConnectContent=void 0;var Wv=jNe((Fy(),mt(l3))),hr=(Sa(),mt(Ya)),oxt=Np(),axt=QU(),cxt=TNe(),lxt=INe(),uxt=RNe(),dxt=DNe(),fxt=UNe(),pxt=jNe(FNe()),dne={title:\\\"Coinbase Wallet app\\\",description:\\\"Connect with your self-custody wallet\\\",steps:HNe},hxt=t=>t===\\\"light\\\"?\\\"#FFFFFF\\\":\\\"#0A0B0D\\\";function mxt(t){let{theme:e}=t,r=(0,oxt.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId),n=dne.steps;return(0,hr.h)(\\\"div\\\",{\\\"data-testid\\\":\\\"connect-content\\\",className:(0,Wv.default)(\\\"-cbwsdk-connect-content\\\",e)},(0,hr.h)(\\\"style\\\",null,pxt.default),(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-content-header\\\"},(0,hr.h)(\\\"h2\\\",{className:(0,Wv.default)(\\\"-cbwsdk-connect-content-heading\\\",e)},\\\"Scan to connect with our mobile app\\\"),t.onCancel&&(0,hr.h)(\\\"button\\\",{type:\\\"button\\\",className:\\\"-cbwsdk-cancel-button\\\",onClick:t.onCancel},(0,hr.h)(cxt.CloseIcon,{fill:e===\\\"light\\\"?\\\"#0A0B0D\\\":\\\"#FFFFFF\\\"}))),(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-content-layout\\\"},(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-content-column-left\\\"},(0,hr.h)(gxt,{title:dne.title,description:dne.description,theme:e})),(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-content-column-right\\\"},(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-content-qr-wrapper\\\"},(0,hr.h)(dxt.QRCode,{content:r,width:200,height:200,fgColor:\\\"#000\\\",bgColor:\\\"transparent\\\"}),(0,hr.h)(\\\"input\\\",{type:\\\"hidden\\\",name:\\\"cbw-cbwsdk-version\\\",value:axt.LIB_VERSION}),(0,hr.h)(\\\"input\\\",{type:\\\"hidden\\\",value:r})),(0,hr.h)(n,{theme:e}),!t.isConnected&&(0,hr.h)(\\\"div\\\",{\\\"data-testid\\\":\\\"connecting-spinner\\\",className:(0,Wv.default)(\\\"-cbwsdk-connect-content-qr-connecting\\\",e)},(0,hr.h)(fxt.Spinner,{size:36,color:e===\\\"dark\\\"?\\\"#FFF\\\":\\\"#000\\\"}),(0,hr.h)(\\\"p\\\",null,\\\"Connecting...\\\")))))}e1.ConnectContent=mxt;function gxt({title:t,description:e,theme:r}){return(0,hr.h)(\\\"div\\\",{className:(0,Wv.default)(\\\"-cbwsdk-connect-item\\\",r)},(0,hr.h)(\\\"div\\\",null,(0,hr.h)(lxt.CoinbaseWalletRound,null)),(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-connect-item-copy-wrapper\\\"},(0,hr.h)(\\\"h3\\\",{className:\\\"-cbwsdk-connect-item-title\\\"},t),(0,hr.h)(\\\"p\\\",{className:\\\"-cbwsdk-connect-item-description\\\"},e)))}function HNe({theme:t}){return(0,hr.h)(\\\"ol\\\",{className:\\\"-cbwsdk-wallet-steps\\\"},(0,hr.h)(\\\"li\\\",{className:(0,Wv.default)(\\\"-cbwsdk-wallet-steps-item\\\",t)},(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-wallet-steps-item-wrapper\\\"},\\\"Open Coinbase Wallet app\\\")),(0,hr.h)(\\\"li\\\",{className:(0,Wv.default)(\\\"-cbwsdk-wallet-steps-item\\\",t)},(0,hr.h)(\\\"div\\\",{className:\\\"-cbwsdk-wallet-steps-item-wrapper\\\"},(0,hr.h)(\\\"span\\\",null,\\\"Tap \\\",(0,hr.h)(\\\"strong\\\",null,\\\"Scan\\\"),\\\" \\\"),(0,hr.h)(\\\"span\\\",{className:(0,Wv.default)(\\\"-cbwsdk-wallet-steps-pad-left\\\",\\\"-cbwsdk-wallet-steps-icon\\\",t)},(0,hr.h)(uxt.QRCodeIcon,{fill:hxt(t)})))))}e1.CoinbaseWalletSteps=HNe});var $Ne=q(jF=>{\\\"use strict\\\";u();Object.defineProperty(jF,\\\"__esModule\\\",{value:!0});jF.ArrowLeftIcon=void 0;var zNe=(Sa(),mt(Ya));function yxt(t){return(0,zNe.h)(\\\"svg\\\",Object.assign({width:\\\"16\\\",height:\\\"16\\\",viewBox:\\\"0 0 16 16\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,zNe.h)(\\\"path\\\",{d:\\\"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z\\\"}))}jF.ArrowLeftIcon=yxt});var VNe=q(HF=>{\\\"use strict\\\";u();Object.defineProperty(HF,\\\"__esModule\\\",{value:!0});HF.LaptopIcon=void 0;var fne=(Sa(),mt(Ya));function bxt(t){return(0,fne.h)(\\\"svg\\\",Object.assign({width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,fne.h)(\\\"path\\\",{d:\\\"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z\\\"}),(0,fne.h)(\\\"path\\\",{d:\\\"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z\\\"}))}HF.LaptopIcon=bxt});var GNe=q(qF=>{\\\"use strict\\\";u();Object.defineProperty(qF,\\\"__esModule\\\",{value:!0});qF.SafeIcon=void 0;var WNe=(Sa(),mt(Ya));function wxt(t){return(0,WNe.h)(\\\"svg\\\",Object.assign({width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},t),(0,WNe.h)(\\\"path\\\",{\\\"fill-rule\\\":\\\"evenodd\\\",\\\"clip-rule\\\":\\\"evenodd\\\",d:\\\"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z\\\"}))}qF.SafeIcon=wxt});var KNe=q(pne=>{\\\"use strict\\\";u();Object.defineProperty(pne,\\\"__esModule\\\",{value:!0});pne.default=\\\".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}\\\"});var QNe=q(I_=>{\\\"use strict\\\";u();var ZNe=I_&&I_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I_,\\\"__esModule\\\",{value:!0});I_.TryExtensionContent=void 0;var Gv=ZNe((Fy(),mt(l3))),Is=(Sa(),mt(Ya)),hne=(KI(),mt(GI)),vxt=$Ne(),xxt=VNe(),Ext=GNe(),_xt=ZNe(KNe());function Cxt({theme:t}){let[e,r]=(0,hne.useState)(!1),n=(0,hne.useCallback)(()=>{window.open(\\\"https://api.wallet.coinbase.com/rpc/v2/desktop/chrome\\\",\\\"_blank\\\")},[]),i=(0,hne.useCallback)(()=>{e?window.location.reload():(n(),r(!0))},[n,e]);return(0,Is.h)(\\\"div\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension\\\",t)},(0,Is.h)(\\\"style\\\",null,_xt.default),(0,Is.h)(\\\"div\\\",{class:\\\"-cbwsdk-try-extension-column-half\\\"},(0,Is.h)(\\\"h3\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-heading\\\",t)},\\\"Or try the Coinbase Wallet browser extension\\\"),(0,Is.h)(\\\"div\\\",{class:\\\"-cbwsdk-try-extension-cta-wrapper\\\"},(0,Is.h)(\\\"button\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-cta\\\",t),onClick:i},e?\\\"Refresh\\\":\\\"Install\\\"),(0,Is.h)(\\\"div\\\",null,!e&&(0,Is.h)(vxt.ArrowLeftIcon,{class:\\\"-cbwsdk-try-extension-cta-icon\\\",fill:t===\\\"light\\\"?\\\"#0052FF\\\":\\\"#588AF5\\\"})))),(0,Is.h)(\\\"div\\\",{class:\\\"-cbwsdk-try-extension-column-half\\\"},(0,Is.h)(\\\"ul\\\",{class:\\\"-cbwsdk-try-extension-list\\\"},(0,Is.h)(\\\"li\\\",{class:\\\"-cbwsdk-try-extension-list-item\\\"},(0,Is.h)(\\\"div\\\",{class:\\\"-cbwsdk-try-extension-list-item-icon-wrapper\\\"},(0,Is.h)(\\\"span\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-list-item-icon\\\",t)},(0,Is.h)(xxt.LaptopIcon,{fill:t===\\\"light\\\"?\\\"#0A0B0D\\\":\\\"#FFFFFF\\\"}))),(0,Is.h)(\\\"div\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-list-item-copy\\\",t)},\\\"Connect with dapps with just one click on your desktop browser\\\")),(0,Is.h)(\\\"li\\\",{class:\\\"-cbwsdk-try-extension-list-item\\\"},(0,Is.h)(\\\"div\\\",{class:\\\"-cbwsdk-try-extension-list-item-icon-wrapper\\\"},(0,Is.h)(\\\"span\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-list-item-icon\\\",t)},(0,Is.h)(Ext.SafeIcon,{fill:t===\\\"light\\\"?\\\"#0A0B0D\\\":\\\"#FFFFFF\\\"}))),(0,Is.h)(\\\"div\\\",{class:(0,Gv.default)(\\\"-cbwsdk-try-extension-list-item-copy\\\",t)},\\\"Add an additional layer of security by using a supported Ledger hardware wallet\\\")))))}I_.TryExtensionContent=Cxt});var JNe=q(mne=>{\\\"use strict\\\";u();Object.defineProperty(mne,\\\"__esModule\\\",{value:!0});mne.default=\\\".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}\\\"});var XNe=q(R_=>{\\\"use strict\\\";u();var YNe=R_&&R_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R_,\\\"__esModule\\\",{value:!0});R_.ConnectDialog=void 0;var gne=YNe((Fy(),mt(l3))),Kv=(Sa(),mt(Ya)),yne=(KI(),mt(GI)),Sxt=qNe(),Axt=QNe(),Txt=YNe(JNe()),Ixt=t=>{let{isOpen:e,darkMode:r}=t,[n,i]=(0,yne.useState)(!e),[s,o]=(0,yne.useState)(!e);(0,yne.useEffect)(()=>{let c=[window.setTimeout(()=>{o(!e)},10)];return e?i(!1):c.push(window.setTimeout(()=>{i(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[e]);let a=r?\\\"dark\\\":\\\"light\\\";return(0,Kv.h)(\\\"div\\\",{class:(0,gne.default)(\\\"-cbwsdk-connect-dialog-container\\\",n&&\\\"-cbwsdk-connect-dialog-container-hidden\\\")},(0,Kv.h)(\\\"style\\\",null,Txt.default),(0,Kv.h)(\\\"div\\\",{class:(0,gne.default)(\\\"-cbwsdk-connect-dialog-backdrop\\\",a,s&&\\\"-cbwsdk-connect-dialog-backdrop-hidden\\\")}),(0,Kv.h)(\\\"div\\\",{class:\\\"-cbwsdk-connect-dialog\\\"},(0,Kv.h)(\\\"div\\\",{class:(0,gne.default)(\\\"-cbwsdk-connect-dialog-box\\\",s&&\\\"-cbwsdk-connect-dialog-box-hidden\\\")},t.connectDisabled?null:(0,Kv.h)(Sxt.ConnectContent,{theme:a,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,Kv.h)(Axt.TryExtensionContent,{theme:a}))))};R_.ConnectDialog=Ixt});var eke=q(zF=>{\\\"use strict\\\";u();Object.defineProperty(zF,\\\"__esModule\\\",{value:!0});zF.LinkFlow=void 0;var bne=(Sa(),mt(Ya)),Rxt=XNe(),wne=class{constructor(e){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection}attach(e){this.root=document.createElement(\\\"div\\\"),this.root.className=\\\"-cbwsdk-link-flow-root\\\",e.appendChild(this.root),this.render()}setConnected(e){this.connected!==e&&(this.connected=e,this.render())}setChainId(e){this.chainId!==e&&(this.chainId=e,this.render())}detach(){var e;this.root&&((0,bne.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,bne.render)((0,bne.h)(Rxt.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};zF.LinkFlow=wne});var tke=q(vne=>{\\\"use strict\\\";u();Object.defineProperty(vne,\\\"__esModule\\\",{value:!0});vne.default=\\\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\\\"});var _ne=q(Wu=>{\\\"use strict\\\";u();var rke=Wu&&Wu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wu,\\\"__esModule\\\",{value:!0});Wu.SnackbarInstance=Wu.SnackbarContainer=Wu.Snackbar=void 0;var $F=rke((Fy(),mt(l3))),Rs=(Sa(),mt(Ya)),xne=(KI(),mt(GI)),Pxt=rke(tke()),Oxt=\\\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\\\",Nxt=\\\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\\\",Ene=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement(\\\"div\\\"),this.root.className=\\\"-cbwsdk-snackbar-root\\\",e.appendChild(this.root),this.render()}presentItem(e){let r=this.nextItemKey++;return this.items.set(r,e),this.render(),()=>{this.items.delete(r),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,Rs.render)((0,Rs.h)(\\\"div\\\",null,(0,Rs.h)(Wu.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,r])=>(0,Rs.h)(Wu.SnackbarInstance,Object.assign({},r,{key:e}))))),this.root)}};Wu.Snackbar=Ene;var kxt=t=>(0,Rs.h)(\\\"div\\\",{class:(0,$F.default)(\\\"-cbwsdk-snackbar-container\\\")},(0,Rs.h)(\\\"style\\\",null,Pxt.default),(0,Rs.h)(\\\"div\\\",{class:\\\"-cbwsdk-snackbar\\\"},t.children));Wu.SnackbarContainer=kxt;var Bxt=({autoExpand:t,message:e,menuItems:r})=>{let[n,i]=(0,xne.useState)(!0),[s,o]=(0,xne.useState)(t??!1);(0,xne.useEffect)(()=>{let c=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{c.forEach(window.clearTimeout)}});let a=()=>{o(!s)};return(0,Rs.h)(\\\"div\\\",{class:(0,$F.default)(\\\"-cbwsdk-snackbar-instance\\\",n&&\\\"-cbwsdk-snackbar-instance-hidden\\\",s&&\\\"-cbwsdk-snackbar-instance-expanded\\\")},(0,Rs.h)(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-header\\\",onClick:a},(0,Rs.h)(\\\"img\\\",{src:Oxt,class:\\\"-cbwsdk-snackbar-instance-header-cblogo\\\"}),\\\" \\\",(0,Rs.h)(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-header-message\\\"},e),(0,Rs.h)(\\\"div\\\",{class:\\\"-gear-container\\\"},!s&&(0,Rs.h)(\\\"svg\\\",{width:\\\"24\\\",height:\\\"24\\\",viewBox:\\\"0 0 24 24\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},(0,Rs.h)(\\\"circle\\\",{cx:\\\"12\\\",cy:\\\"12\\\",r:\\\"12\\\",fill:\\\"#F5F7F8\\\"})),(0,Rs.h)(\\\"img\\\",{src:Nxt,class:\\\"-gear-icon\\\",title:\\\"Expand\\\"}))),r&&r.length>0&&(0,Rs.h)(\\\"div\\\",{class:\\\"-cbwsdk-snackbar-instance-menu\\\"},r.map((c,l)=>(0,Rs.h)(\\\"div\\\",{class:(0,$F.default)(\\\"-cbwsdk-snackbar-instance-menu-item\\\",c.isRed&&\\\"-cbwsdk-snackbar-instance-menu-item-is-red\\\"),onClick:c.onClick,key:l},(0,Rs.h)(\\\"svg\\\",{width:c.svgWidth,height:c.svgHeight,viewBox:\\\"0 0 10 11\\\",fill:\\\"none\\\",xmlns:\\\"http://www.w3.org/2000/svg\\\"},(0,Rs.h)(\\\"path\\\",{\\\"fill-rule\\\":c.defaultFillRule,\\\"clip-rule\\\":c.defaultClipRule,d:c.path,fill:\\\"#AAAAAA\\\"})),(0,Rs.h)(\\\"span\\\",{class:(0,$F.default)(\\\"-cbwsdk-snackbar-instance-menu-item-info\\\",c.isRed&&\\\"-cbwsdk-snackbar-instance-menu-item-info-is-red\\\")},c.info)))))};Wu.SnackbarInstance=Bxt});var Sne=q(VF=>{\\\"use strict\\\";u();Object.defineProperty(VF,\\\"__esModule\\\",{value:!0});VF.WalletLinkRelayUI=void 0;var Mxt=Kre(),Dxt=eke(),Lxt=_ne(),Cne=class{constructor(e){this.standalone=null,this.attached=!1,this.snackbar=new Lxt.Snackbar({darkMode:e.darkMode}),this.linkFlow=new Dxt.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error(\\\"Coinbase Wallet SDK UI is already attached\\\");let e=document.documentElement,r=document.createElement(\\\"div\\\");r.className=\\\"-cbwsdk-css-reset\\\",e.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),this.attached=!0,(0,Mxt.injectCssReset)()}setConnected(e){this.linkFlow.setConnected(e)}setChainId(e){this.linkFlow.setChainId(e)}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(e){let r;return e.isUnlinkedErrorState?r={autoExpand:!0,message:\\\"Connection lost\\\",menuItems:[{isRed:!1,info:\\\"Reset connection\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:e.onResetConnection}]}:r={message:\\\"Confirm on phone\\\",menuItems:[{isRed:!0,info:\\\"Cancel transaction\\\",svgWidth:\\\"11\\\",svgHeight:\\\"11\\\",path:\\\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\\\",defaultFillRule:\\\"inherit\\\",defaultClipRule:\\\"inherit\\\",onClick:e.onCancel},{isRed:!1,info:\\\"Reset connection\\\",svgWidth:\\\"10\\\",svgHeight:\\\"11\\\",path:\\\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\\\",defaultFillRule:\\\"evenodd\\\",defaultClipRule:\\\"evenodd\\\",onClick:e.onResetConnection}]},this.snackbar.presentItem(r)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};VF.WalletLinkRelayUI=Cne});var Ane=q(GF=>{\\\"use strict\\\";u();Object.defineProperty(GF,\\\"__esModule\\\",{value:!0});GF.WalletLinkRelay=void 0;var P_=TI(),Uxt=RI(),Mi=Np(),Zv=rF(),nke=nF(),t1=_F(),Fxt=WOe(),Qv=KU(),jxt=Sne(),WF=class t extends nke.RelayAbstract{constructor(e){var r;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:\\\"\\\",jsonRpcUrl:\\\"\\\"},this.chainCallback=null,this.dappDefaultChain=1,this.appName=\\\"\\\",this.appLogoUrl=null,this.linkedUpdated=o=>{var a;this.isLinked=o;let c=this.storage.getItem(nke.LOCAL_STORAGE_ADDRESSES_KEY);if(o&&(this.session.linked=o),this.isUnlinkedErrorState=!1,c){let l=c.split(\\\" \\\"),d=this.storage.getItem(\\\"IsStandaloneSigning\\\")===\\\"true\\\";if(l[0]!==\\\"\\\"&&!o&&this.session.linked&&!d){this.isUnlinkedErrorState=!0;let f=this.getSessionIdHash();(a=this.diagnostic)===null||a===void 0||a.log(Zv.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:f})}}},this.metadataUpdated=(o,a)=>{this.storage.setItem(o,a)},this.chainUpdated=(o,a)=>{this.chainCallbackParams.chainId===o&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:o,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(o,a))},this.accountUpdated=o=>{this.accountsCallback&&this.accountsCallback([o]),t.accountRequestCallbackIds.size>0&&(Array.from(t.accountRequestCallbackIds.values()).forEach(a=>{let c={type:\\\"WEB3_RESPONSE\\\",id:a,response:{method:\\\"requestEthereumAccounts\\\",result:[o]}};this.invokeCallback(Object.assign(Object.assign({},c),{id:a}))}),t.accountRequestCallbackIds.clear())},this.connectedUpdated=o=>{this.ui.setConnected(o)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(r=e.reloadOnDisconnect)!==null&&r!==void 0?r:!0,this.ui=i}subscribe(){let e=t1.Session.load(this.storage)||new t1.Session(this.storage).save(),{linkAPIUrl:r,diagnostic:n}=this,i=new Fxt.WalletLinkConnection({session:e,linkAPIUrl:r,diagnostic:n,listener:this}),{version:s,darkMode:o}=this.options,a=this.options.uiConstructor({linkAPIUrl:r,version:s,darkMode:o,session:e});return i.connect(),{session:e,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\\\"__destroyed\\\",\\\"1\\\"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{var e,r;let n=this.ui.isStandalone();(e=this.diagnostic)===null||e===void 0||e.log(Zv.EVENTS.SESSION_STATE_CHANGE,{method:\\\"relay::resetAndReload\\\",sessionMetadataChange:\\\"__destroyed, 1\\\",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let i=t1.Session.load(this.storage);if(i?.id===this._session.id?this.storage.clear():i&&((r=this.diagnostic)===null||r===void 0||r.log(Zv.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:t1.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:s,ui:o,connection:a}=this.subscribe();this._session=s,this.connection=a,this.ui=o,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(e=>{var r;(r=this.diagnostic)===null||r===void 0||r.log(Zv.EVENTS.FAILURE,{method:\\\"relay::resetAndReload\\\",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,r){this.appName=e,this.appLogoUrl=r}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,r){this.storage.setItem(e,r)}signEthereumMessage(e,r,n,i){return this.sendRequest({method:\\\"signEthereumMessage\\\",params:{message:(0,Mi.hexStringFromBuffer)(e,!0),address:r,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,r,n){return this.sendRequest({method:\\\"ethereumAddressFromSignedMessage\\\",params:{message:(0,Mi.hexStringFromBuffer)(e,!0),signature:(0,Mi.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:\\\"signEthereumTransaction\\\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Mi.bigIntStringFromBN)(e.weiValue),data:(0,Mi.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Mi.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Mi.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Mi.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Mi.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:\\\"signEthereumTransaction\\\",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Mi.bigIntStringFromBN)(e.weiValue),data:(0,Mi.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Mi.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Mi.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Mi.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Mi.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,r){return this.sendRequest({method:\\\"submitEthereumTransaction\\\",params:{signedTransaction:(0,Mi.hexStringFromBuffer)(e,!0),chainId:r}})}scanQRCode(e){return this.sendRequest({method:\\\"scanQRCode\\\",params:{regExp:e}})}getQRCodeUrl(){return(0,Mi.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,r){return this.sendRequest({method:\\\"generic\\\",params:{action:r,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let r=null,n=(0,Mi.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,o),r?.()};return{promise:new Promise((o,a)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(r?.(),(0,Qv.isErrorResponse)(c))return a(new Error(c.errorMessage));o(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:i}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e,this.ui instanceof jxt.WalletLinkRelayUI&&this.ui.setChainId(e)}publishWeb3RequestEvent(e,r){var n;let i={type:\\\"WEB3_REQUEST\\\",id:e,request:r},s=t1.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Zv.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?t1.Session.hash(s.id):\\\"\\\",isSessionMismatched:(s?.id!==this._session.id).toString()}),this.publishEvent(\\\"Web3Request\\\",i,!0).then(o=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Zv.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?t1.Session.hash(s.id):\\\"\\\",isSessionMismatched:(s?.id!==this._session.id).toString()})}).catch(o=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:i.id,response:{method:r.method,errorMessage:o.message}})})}publishWeb3RequestCanceledEvent(e){let r={type:\\\"WEB3_REQUEST_CANCELED\\\",id:e};this.publishEvent(\\\"Web3RequestCanceled\\\",r,!1).then()}publishEvent(e,r,n){return this.connection.publishEvent(e,r,n)}handleWeb3ResponseMessage(e){var r;let{response:n}=e;if((r=this.diagnostic)===null||r===void 0||r.log(Zv.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),n.method===\\\"requestEthereumAccounts\\\"){t.accountRequestCallbackIds.forEach(i=>this.invokeCallback(Object.assign(Object.assign({},e),{id:i}))),t.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,r,n,i){var s;let o=(s=n?.message)!==null&&s!==void 0?s:(0,P_.getMessageFromCode)(i);this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:e,response:{method:r,errorMessage:o,errorCode:i}})}invokeCallback(e){let r=this.relayEventManager.callbacks.get(e.id);r&&(r(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:\\\"requestEthereumAccounts\\\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=null,n=(0,Mi.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,o),r?.()};return{promise:new Promise((o,a)=>{if(this.relayEventManager.callbacks.set(n,c=>{if(this.ui.hideRequestEthereumAccounts(),r?.(),(0,Qv.isErrorResponse)(c))return a(new Error(c.errorMessage));o(c)}),this.ui.inlineAccountsResponse()){let c=l=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:n,response:{method:\\\"requestEthereumAccounts\\\",result:l}})};this.ui.requestEthereumAccounts({onCancel:i,onAccounts:c})}else{let c=P_.standardErrors.provider.userRejectedRequest(\\\"User denied account authorization\\\");this.ui.requestEthereumAccounts({onCancel:()=>i(c)})}t.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:i}}selectProvider(e){let r={method:\\\"selectProvider\\\",params:{providerOptions:e}},n=(0,Mi.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,o)},s=new Promise((o,a)=>{this.relayEventManager.callbacks.set(n,d=>{if((0,Qv.isErrorResponse)(d))return a(new Error(d.errorMessage));o(d)});let c=d=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:n,response:{method:\\\"selectProvider\\\",result:Uxt.ProviderType.Unselected}})},l=d=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:n,response:{method:\\\"selectProvider\\\",result:d}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:l,onCancel:c,providerOptions:e})});return{cancel:i,promise:s}}watchAsset(e,r,n,i,s,o){let a={method:\\\"watchAsset\\\",params:{type:e,options:{address:r,symbol:n,decimals:i,image:s},chainId:o}},c=null,l=(0,Mi.randomBytesHex)(8),d=p=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,a.method,p),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload}));let f=new Promise((p,h)=>{this.relayEventManager.callbacks.set(l,w=>{if(c?.(),(0,Qv.isErrorResponse)(w))return h(new Error(w.errorMessage));p(w)});let m=w=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:l,response:{method:\\\"watchAsset\\\",result:!1}})},g=()=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:l,response:{method:\\\"watchAsset\\\",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:g,onCancel:m,type:e,address:r,symbol:n,decimals:i,image:s,chainId:o}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(l,a)});return{cancel:d,promise:f}}addEthereumChain(e,r,n,i,s,o){let a={method:\\\"addEthereumChain\\\",params:{chainId:e,rpcUrls:r,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:o}},c=null,l=(0,Mi.randomBytesHex)(8),d=p=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,a.method,p),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload})),{promise:new Promise((p,h)=>{this.relayEventManager.callbacks.set(l,w=>{if(c?.(),(0,Qv.isErrorResponse)(w))return h(new Error(w.errorMessage));p(w)});let m=w=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:l,response:{method:\\\"addEthereumChain\\\",result:{isApproved:!1,rpcUrl:\\\"\\\"}}})},g=w=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:l,response:{method:\\\"addEthereumChain\\\",result:{isApproved:!0,rpcUrl:w}}})};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:m,onApprove:g,chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(l,a)}),cancel:d}}switchEthereumChain(e,r){let n={method:\\\"switchEthereumChain\\\",params:Object.assign({chainId:e},{address:r})},i=(0,Mi.randomBytesHex)(8),s=a=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,a)};return{promise:new Promise((a,c)=>{this.relayEventManager.callbacks.set(i,f=>{if((0,Qv.isErrorResponse)(f)&&f.errorCode)return c(P_.standardErrors.provider.custom({code:f.errorCode,message:\\\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\\\"}));if((0,Qv.isErrorResponse)(f))return c(new Error(f.errorMessage));a(f)});let l=f=>{var p;if(f){let h=(p=(0,P_.getErrorCode)(f))!==null&&p!==void 0?p:P_.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,\\\"switchEthereumChain\\\",f instanceof Error?f:P_.standardErrors.provider.unsupportedChain(e),h)}else this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:i,response:{method:\\\"switchEthereumChain\\\",result:{isApproved:!1,rpcUrl:\\\"\\\"}}})},d=f=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:i,response:{method:\\\"switchEthereumChain\\\",result:{isApproved:!0,rpcUrl:f}}})};this.ui.switchEthereumChain({onCancel:l,onApprove:d,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(i,n)}),cancel:s}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return t1.Session.hash(this._session.id)}sendRequestStandalone(e,r){let n=s=>{this.handleErrorResponse(e,r.method,s)},i=s=>{this.handleWeb3ResponseMessage({type:\\\"WEB3_RESPONSE\\\",id:e,response:s})};switch(r.method){case\\\"signEthereumMessage\\\":this.ui.signEthereumMessage({request:r,onSuccess:i,onCancel:n});break;case\\\"signEthereumTransaction\\\":this.ui.signEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case\\\"submitEthereumTransaction\\\":this.ui.submitEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case\\\"ethereumAddressFromSignedMessage\\\":this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:i});break;default:n();break}}};GF.WalletLinkRelay=WF;WF.accountRequestCallbackIds=new Set});var ike=q(Jv=>{\\\"use strict\\\";u();var Hxt=Jv&&Jv.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qxt=Jv&&Jv.__exportStar||function(t,e){for(var r in t)r!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,r)&&Hxt(e,t,r)};Object.defineProperty(Jv,\\\"__esModule\\\",{value:!0});qxt(_ne(),Jv)});var ske=q(Tne=>{\\\"use strict\\\";u();Object.defineProperty(Tne,\\\"__esModule\\\",{value:!0});Tne.default=\\\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\\\"});var ake=q(O_=>{\\\"use strict\\\";u();var oke=O_&&O_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(O_,\\\"__esModule\\\",{value:!0});O_.RedirectDialog=void 0;var zxt=oke((Fy(),mt(l3))),jp=(Sa(),mt(Ya)),$xt=Kre(),Vxt=ike(),Wxt=oke(ske()),Ine=class{constructor(){this.root=null}attach(){let e=document.documentElement;this.root=document.createElement(\\\"div\\\"),this.root.className=\\\"-cbwsdk-css-reset\\\",e.appendChild(this.root),(0,$xt.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,jp.render)(null,this.root),e&&(0,jp.render)((0,jp.h)(Gxt,Object.assign({},e,{onDismiss:()=>{this.clear()}})),this.root))}};O_.RedirectDialog=Ine;var Gxt=({title:t,buttonText:e,darkMode:r,onButtonClick:n,onDismiss:i})=>{let s=r?\\\"dark\\\":\\\"light\\\";return(0,jp.h)(Vxt.SnackbarContainer,{darkMode:r},(0,jp.h)(\\\"div\\\",{class:\\\"-cbwsdk-redirect-dialog\\\"},(0,jp.h)(\\\"style\\\",null,Wxt.default),(0,jp.h)(\\\"div\\\",{class:\\\"-cbwsdk-redirect-dialog-backdrop\\\",onClick:i}),(0,jp.h)(\\\"div\\\",{class:(0,zxt.default)(\\\"-cbwsdk-redirect-dialog-box\\\",s)},(0,jp.h)(\\\"p\\\",null,t),(0,jp.h)(\\\"button\\\",{onClick:n},e))))}});var Pne=q(KF=>{\\\"use strict\\\";u();Object.defineProperty(KF,\\\"__esModule\\\",{value:!0});KF.MobileRelayUI=void 0;var Kxt=ake(),Rne=class{constructor(e){this.attached=!1,this.darkMode=!1,this.redirectDialog=new Kxt.RedirectDialog,this.darkMode=e.darkMode}attach(){if(this.attached)throw new Error(\\\"Coinbase Wallet SDK UI is already attached\\\");this.redirectDialog.attach(),this.attached=!0}setConnected(e){}redirectToCoinbaseWallet(e){let r=new URL(\\\"https://go.cb-w.com/walletlink\\\");r.searchParams.append(\\\"redirect_url\\\",window.location.href),e&&r.searchParams.append(\\\"wl_url\\\",e);let n=document.createElement(\\\"a\\\");n.target=\\\"cbw-opener\\\",n.href=r.href,n.rel=\\\"noreferrer noopener\\\",n.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:\\\"Redirecting to Coinbase Wallet...\\\",buttonText:\\\"Open\\\",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};KF.MobileRelayUI=Rne});var Nne=q(ZF=>{\\\"use strict\\\";u();Object.defineProperty(ZF,\\\"__esModule\\\",{value:!0});ZF.MobileRelay=void 0;var Zxt=Np(),Qxt=Ane(),Jxt=Pne(),One=class extends Qxt.WalletLinkRelay{constructor(e){var r;super(e),this._enableMobileWalletLink=(r=e.enableMobileWalletLink)!==null&&r!==void 0?r:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let e=(0,Zxt.getLocation)();e.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(e.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(e,r){if(super.publishWeb3RequestEvent(e,r),!(this._enableMobileWalletLink&&this.ui instanceof Jxt.MobileRelayUI))return;let n=!1;switch(r.method){case\\\"requestEthereumAccounts\\\":case\\\"connectAndSignIn\\\":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case\\\"switchEthereumChain\\\":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink();break}n&&window.addEventListener(\\\"blur\\\",()=>{window.addEventListener(\\\"focus\\\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(e){super.handleWeb3ResponseMessage(e)}connectAndSignIn(e){if(!this._enableMobileWalletLink)throw new Error(\\\"connectAndSignIn is supported only when enableMobileWalletLink is on\\\");return this.sendRequest({method:\\\"connectAndSignIn\\\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:\\\"1\\\",type:\\\"eip4361\\\",nonce:e.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:e.statement,resources:e.resources}})}};ZF.MobileRelay=One});var ho=q((Len,kne)=>{\\\"use strict\\\";u();var N_=typeof Reflect==\\\"object\\\"?Reflect:null,cke=N_&&typeof N_.apply==\\\"function\\\"?N_.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},QF;N_&&typeof N_.ownKeys==\\\"function\\\"?QF=N_.ownKeys:Object.getOwnPropertySymbols?QF=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:QF=function(e){return Object.getOwnPropertyNames(e)};function Yxt(t){console&&console.warn&&console.warn(t)}var uke=Number.isNaN||function(e){return e!==e};function rn(){rn.init.call(this)}kne.exports=rn;kne.exports.once=rEt;rn.EventEmitter=rn;rn.prototype._events=void 0;rn.prototype._eventsCount=0;rn.prototype._maxListeners=void 0;var lke=10;function JF(t){if(typeof t!=\\\"function\\\")throw new TypeError('The \\\"listener\\\" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(rn,\\\"defaultMaxListeners\\\",{enumerable:!0,get:function(){return lke},set:function(t){if(typeof t!=\\\"number\\\"||t<0||uke(t))throw new RangeError('The value of \\\"defaultMaxListeners\\\" is out of range. It must be a non-negative number. Received '+t+\\\".\\\");lke=t}});rn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};rn.prototype.setMaxListeners=function(e){if(typeof e!=\\\"number\\\"||e<0||uke(e))throw new RangeError('The value of \\\"n\\\" is out of range. It must be a non-negative number. Received '+e+\\\".\\\");return this._maxListeners=e,this};function dke(t){return t._maxListeners===void 0?rn.defaultMaxListeners:t._maxListeners}rn.prototype.getMaxListeners=function(){return dke(this)};rn.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=e===\\\"error\\\",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var a=new Error(\\\"Unhandled error.\\\"+(o?\\\" (\\\"+o.message+\\\")\\\":\\\"\\\"));throw a.context=o,a}var c=s[e];if(c===void 0)return!1;if(typeof c==\\\"function\\\")cke(c,this,r);else for(var l=c.length,d=gke(c,l),n=0;n<l;++n)cke(d[n],this,r);return!0};function fke(t,e,r,n){var i,s,o;if(JF(r),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit(\\\"newListener\\\",e,r.listener?r.listener:r),s=t._events),o=s[e]),o===void 0)o=s[e]=r,++t._eventsCount;else if(typeof o==\\\"function\\\"?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=dke(t),i>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error(\\\"Possible EventEmitter memory leak detected. \\\"+o.length+\\\" \\\"+String(e)+\\\" listeners added. Use emitter.setMaxListeners() to increase limit\\\");a.name=\\\"MaxListenersExceededWarning\\\",a.emitter=t,a.type=e,a.count=o.length,Yxt(a)}return t}rn.prototype.addListener=function(e,r){return fke(this,e,r,!1)};rn.prototype.on=rn.prototype.addListener;rn.prototype.prependListener=function(e,r){return fke(this,e,r,!0)};function Xxt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pke(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=Xxt.bind(n);return i.listener=r,n.wrapFn=i,i}rn.prototype.once=function(e,r){return JF(r),this.on(e,pke(this,e,r)),this};rn.prototype.prependOnceListener=function(e,r){return JF(r),this.prependListener(e,pke(this,e,r)),this};rn.prototype.removeListener=function(e,r){var n,i,s,o,a;if(JF(r),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit(\\\"removeListener\\\",e,n.listener||r));else if(typeof n!=\\\"function\\\"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){a=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():eEt(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit(\\\"removeListener\\\",e,a||r)}return this};rn.prototype.off=rn.prototype.removeListener;rn.prototype.removeAllListeners=function(e){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i<s.length;++i)o=s[i],o!==\\\"removeListener\\\"&&this.removeAllListeners(o);return this.removeAllListeners(\\\"removeListener\\\"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[e],typeof r==\\\"function\\\")this.removeListener(e,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(e,r[i]);return this};function hke(t,e,r){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i==\\\"function\\\"?r?[i.listener||i]:[i]:r?tEt(i):gke(i,i.length)}rn.prototype.listeners=function(e){return hke(this,e,!0)};rn.prototype.rawListeners=function(e){return hke(this,e,!1)};rn.listenerCount=function(t,e){return typeof t.listenerCount==\\\"function\\\"?t.listenerCount(e):mke.call(t,e)};rn.prototype.listenerCount=mke;function mke(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r==\\\"function\\\")return 1;if(r!==void 0)return r.length}return 0}rn.prototype.eventNames=function(){return this._eventsCount>0?QF(this._events):[]};function gke(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function eEt(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function tEt(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function rEt(t,e){return new Promise(function(r,n){function i(o){t.removeListener(e,s),n(o)}function s(){typeof t.removeListener==\\\"function\\\"&&t.removeListener(\\\"error\\\",i),r([].slice.call(arguments))}yke(t,e,s,{once:!0}),e!==\\\"error\\\"&&nEt(t,i,{once:!0})})}function nEt(t,e,r){typeof t.on==\\\"function\\\"&&yke(t,\\\"error\\\",e,r)}function yke(t,e,r,n){if(typeof t.on==\\\"function\\\")n.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener==\\\"function\\\")t.addEventListener(e,function i(s){n.once&&t.removeEventListener(e,i),r(s)});else throw new TypeError('The \\\"emitter\\\" argument must be of type EventEmitter. Received type '+typeof t)}});var Bne=q((Fen,bke)=>{u();bke.exports=ho().EventEmitter});var Mne=q(()=>{u()});var Cke=q(($en,_ke)=>{\\\"use strict\\\";u();function wke(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function vke(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wke(Object(r),!0).forEach(function(n){iEt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wke(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function iEt(t,e,r){return e=Eke(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sEt(t,e){if(!(t instanceof e))throw new TypeError(\\\"Cannot call a class as a function\\\")}function xke(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\\\"value\\\"in n&&(n.writable=!0),Object.defineProperty(t,Eke(n.key),n)}}function oEt(t,e,r){return e&&xke(t.prototype,e),r&&xke(t,r),Object.defineProperty(t,\\\"prototype\\\",{writable:!1}),t}function Eke(t){var e=aEt(t,\\\"string\\\");return typeof e==\\\"symbol\\\"?e:String(e)}function aEt(t,e){if(typeof t!=\\\"object\\\"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||\\\"default\\\");if(typeof n!=\\\"object\\\")return n;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(e===\\\"string\\\"?String:Number)(t)}var cEt=Qx(),YF=cEt.Buffer,lEt=Mne(),Dne=lEt.inspect,uEt=Dne&&Dne.custom||\\\"inspect\\\";function dEt(t,e,r){YF.prototype.copy.call(t,e,r)}_ke.exports=(function(){function t(){sEt(this,t),this.head=null,this.tail=null,this.length=0}return oEt(t,[{key:\\\"push\\\",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:\\\"unshift\\\",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:\\\"shift\\\",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:\\\"clear\\\",value:function(){this.head=this.tail=null,this.length=0}},{key:\\\"join\\\",value:function(r){if(this.length===0)return\\\"\\\";for(var n=this.head,i=\\\"\\\"+n.data;n=n.next;)i+=r+n.data;return i}},{key:\\\"concat\\\",value:function(r){if(this.length===0)return YF.alloc(0);for(var n=YF.allocUnsafe(r>>>0),i=this.head,s=0;i;)dEt(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:\\\"consume\\\",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:\\\"first\\\",value:function(){return this.head.data}},{key:\\\"_getString\\\",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:\\\"_getBuffer\\\",value:function(r){var n=YF.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:uEt,value:function(r,n){return Dne(this,vke(vke({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var Une=q((Wen,Ake)=>{\\\"use strict\\\";u();function fEt(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Lne,this,t)):process.nextTick(Lne,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(XF,r):(r._writableState.errorEmitted=!0,process.nextTick(Ske,r,s)):process.nextTick(Ske,r,s):e?(process.nextTick(XF,r),e(s)):process.nextTick(XF,r)}),this)}function Ske(t,e){Lne(t,e),XF(t)}function XF(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit(\\\"close\\\")}function pEt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lne(t,e){t.emit(\\\"error\\\",e)}function hEt(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit(\\\"error\\\",e)}Ake.exports={destroy:fEt,undestroy:pEt,errorOrDestroy:hEt}});var Yv=q((Ken,Rke)=>{\\\"use strict\\\";u();function mEt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Ike={};function Gu(t,e,r){r||(r=Error);function n(s,o,a){return typeof e==\\\"string\\\"?e:e(s,o,a)}var i=(function(s){mEt(o,s);function o(a,c,l){return s.call(this,n(a,c,l))||this}return o})(r);i.prototype.name=r.name,i.prototype.code=t,Ike[t]=i}function Tke(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?\\\"one of \\\".concat(e,\\\" \\\").concat(t.slice(0,r-1).join(\\\", \\\"),\\\", or \\\")+t[r-1]:r===2?\\\"one of \\\".concat(e,\\\" \\\").concat(t[0],\\\" or \\\").concat(t[1]):\\\"of \\\".concat(e,\\\" \\\").concat(t[0])}else return\\\"of \\\".concat(e,\\\" \\\").concat(String(t))}function gEt(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function yEt(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function bEt(t,e,r){return typeof r!=\\\"number\\\"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Gu(\\\"ERR_INVALID_OPT_VALUE\\\",function(t,e){return'The value \\\"'+e+'\\\" is invalid for option \\\"'+t+'\\\"'},TypeError);Gu(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,e,r){var n;typeof e==\\\"string\\\"&&gEt(e,\\\"not \\\")?(n=\\\"must not be\\\",e=e.replace(/^not /,\\\"\\\")):n=\\\"must be\\\";var i;if(yEt(t,\\\" argument\\\"))i=\\\"The \\\".concat(t,\\\" \\\").concat(n,\\\" \\\").concat(Tke(e,\\\"type\\\"));else{var s=bEt(t,\\\".\\\")?\\\"property\\\":\\\"argument\\\";i='The \\\"'.concat(t,'\\\" ').concat(s,\\\" \\\").concat(n,\\\" \\\").concat(Tke(e,\\\"type\\\"))}return i+=\\\". Received type \\\".concat(typeof r),i},TypeError);Gu(\\\"ERR_STREAM_PUSH_AFTER_EOF\\\",\\\"stream.push() after EOF\\\");Gu(\\\"ERR_METHOD_NOT_IMPLEMENTED\\\",function(t){return\\\"The \\\"+t+\\\" method is not implemented\\\"});Gu(\\\"ERR_STREAM_PREMATURE_CLOSE\\\",\\\"Premature close\\\");Gu(\\\"ERR_STREAM_DESTROYED\\\",function(t){return\\\"Cannot call \\\"+t+\\\" after a stream was destroyed\\\"});Gu(\\\"ERR_MULTIPLE_CALLBACK\\\",\\\"Callback called multiple times\\\");Gu(\\\"ERR_STREAM_CANNOT_PIPE\\\",\\\"Cannot pipe, not readable\\\");Gu(\\\"ERR_STREAM_WRITE_AFTER_END\\\",\\\"write after end\\\");Gu(\\\"ERR_STREAM_NULL_VALUES\\\",\\\"May not write null values to stream\\\",TypeError);Gu(\\\"ERR_UNKNOWN_ENCODING\\\",function(t){return\\\"Unknown encoding: \\\"+t},TypeError);Gu(\\\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\\\",\\\"stream.unshift() after end event\\\");Rke.exports.codes=Ike});var Fne=q((Qen,Pke)=>{\\\"use strict\\\";u();var wEt=Yv().codes.ERR_INVALID_OPT_VALUE;function vEt(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function xEt(t,e,r,n){var i=vEt(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:\\\"highWaterMark\\\";throw new wEt(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Pke.exports={getHighWaterMark:xEt}});var Nke=q((Yen,Oke)=>{u();Oke.exports=EEt;function EEt(t,e){if(jne(\\\"noDeprecation\\\"))return t;var r=!1;function n(){if(!r){if(jne(\\\"throwDeprecation\\\"))throw new Error(e);jne(\\\"traceDeprecation\\\")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function jne(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()===\\\"true\\\"}});var zne=q((etn,Uke)=>{\\\"use strict\\\";u();Uke.exports=es;function Bke(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ZEt(e,t)}}var k_;es.WritableState=JI;var _Et={deprecate:Nke()},Mke=Bne(),tj=Qx().Buffer,CEt=(typeof globalThis<\\\"u\\\"?globalThis:typeof window<\\\"u\\\"?window:typeof self<\\\"u\\\"?self:{}).Uint8Array||function(){};function SEt(t){return tj.from(t)}function AEt(t){return tj.isBuffer(t)||t instanceof CEt}var qne=Une(),TEt=Fne(),IEt=TEt.getHighWaterMark,r1=Yv().codes,REt=r1.ERR_INVALID_ARG_TYPE,PEt=r1.ERR_METHOD_NOT_IMPLEMENTED,OEt=r1.ERR_MULTIPLE_CALLBACK,NEt=r1.ERR_STREAM_CANNOT_PIPE,kEt=r1.ERR_STREAM_DESTROYED,BEt=r1.ERR_STREAM_NULL_VALUES,MEt=r1.ERR_STREAM_WRITE_AFTER_END,DEt=r1.ERR_UNKNOWN_ENCODING,B_=qne.errorOrDestroy;Vu()(es,Mke);function LEt(){}function JI(t,e,r){k_=k_||Xv(),t=t||{},typeof r!=\\\"boolean\\\"&&(r=e instanceof k_),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=IEt(this,t,\\\"writableHighWaterMark\\\",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||\\\"utf8\\\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){$Et(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bke(this)}JI.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(JI.prototype,\\\"buffer\\\",{get:_Et.deprecate(function(){return this.getBuffer()},\\\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\\\",\\\"DEP0003\\\")})}catch{}})();var ej;typeof Symbol==\\\"function\\\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\\\"function\\\"?(ej=Function.prototype[Symbol.hasInstance],Object.defineProperty(es,Symbol.hasInstance,{value:function(e){return ej.call(this,e)?!0:this!==es?!1:e&&e._writableState instanceof JI}})):ej=function(e){return e instanceof this};function es(t){k_=k_||Xv();var e=this instanceof k_;if(!e&&!ej.call(es,this))return new es(t);this._writableState=new JI(t,this,e),this.writable=!0,t&&(typeof t.write==\\\"function\\\"&&(this._write=t.write),typeof t.writev==\\\"function\\\"&&(this._writev=t.writev),typeof t.destroy==\\\"function\\\"&&(this._destroy=t.destroy),typeof t.final==\\\"function\\\"&&(this._final=t.final)),Mke.call(this)}es.prototype.pipe=function(){B_(this,new NEt)};function UEt(t,e){var r=new MEt;B_(t,r),process.nextTick(e,r)}function FEt(t,e,r,n){var i;return r===null?i=new BEt:typeof r!=\\\"string\\\"&&!e.objectMode&&(i=new REt(\\\"chunk\\\",[\\\"string\\\",\\\"Buffer\\\"],r)),i?(B_(t,i),process.nextTick(n,i),!1):!0}es.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&AEt(t);return s&&!tj.isBuffer(t)&&(t=SEt(t)),typeof e==\\\"function\\\"&&(r=e,e=null),s?e=\\\"buffer\\\":e||(e=n.defaultEncoding),typeof r!=\\\"function\\\"&&(r=LEt),n.ending?UEt(this,r):(s||FEt(this,n,t,r))&&(n.pendingcb++,i=HEt(this,n,s,t,e,r)),i};es.prototype.cork=function(){this._writableState.corked++};es.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Dke(this,t))};es.prototype.setDefaultEncoding=function(e){if(typeof e==\\\"string\\\"&&(e=e.toLowerCase()),!([\\\"hex\\\",\\\"utf8\\\",\\\"utf-8\\\",\\\"ascii\\\",\\\"binary\\\",\\\"base64\\\",\\\"ucs2\\\",\\\"ucs-2\\\",\\\"utf16le\\\",\\\"utf-16le\\\",\\\"raw\\\"].indexOf((e+\\\"\\\").toLowerCase())>-1))throw new DEt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(es.prototype,\\\"writableBuffer\\\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jEt(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e==\\\"string\\\"&&(e=tj.from(e,r)),e}Object.defineProperty(es.prototype,\\\"writableHighWaterMark\\\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function HEt(t,e,r,n,i,s){if(!r){var o=jEt(e,n,i);n!==o&&(r=!0,i=\\\"buffer\\\",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Hne(t,e,!1,a,n,i,s);return c}function Hne(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new kEt(\\\"write\\\")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function qEt(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(QI,t,e),t._writableState.errorEmitted=!0,B_(t,n)):(i(n),t._writableState.errorEmitted=!0,B_(t,n),QI(t,e))}function zEt(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function $Et(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!=\\\"function\\\")throw new OEt;if(zEt(r),e)qEt(t,r,n,e,i);else{var s=Lke(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Dke(t,r),n?process.nextTick(kke,t,r,s,i):kke(t,r,s,i)}}function kke(t,e,r,n){r||VEt(t,e),e.pendingcb--,n(),QI(t,e)}function VEt(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit(\\\"drain\\\"))}function Dke(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Hne(t,e,!0,e.length,i,\\\"\\\",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Bke(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,d=r.callback,f=e.objectMode?1:c.length;if(Hne(t,e,!1,f,c,l,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}es.prototype._write=function(t,e,r){r(new PEt(\\\"_write()\\\"))};es.prototype._writev=null;es.prototype.end=function(t,e,r){var n=this._writableState;return typeof t==\\\"function\\\"?(r=t,t=null,e=null):typeof e==\\\"function\\\"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||KEt(this,n,r),this};Object.defineProperty(es.prototype,\\\"writableLength\\\",{enumerable:!1,get:function(){return this._writableState.length}});function Lke(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function WEt(t,e){t._final(function(r){e.pendingcb--,r&&B_(t,r),e.prefinished=!0,t.emit(\\\"prefinish\\\"),QI(t,e)})}function GEt(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final==\\\"function\\\"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(WEt,t,e)):(e.prefinished=!0,t.emit(\\\"prefinish\\\")))}function QI(t,e){var r=Lke(e);if(r&&(GEt(t,e),e.pendingcb===0&&(e.finished=!0,t.emit(\\\"finish\\\"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function KEt(t,e,r){e.ending=!0,QI(t,e),r&&(e.finished?process.nextTick(r):t.once(\\\"finish\\\",r)),e.ended=!0,t.writable=!1}function ZEt(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(es.prototype,\\\"destroyed\\\",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});es.prototype.destroy=qne.destroy;es.prototype._undestroy=qne.undestroy;es.prototype._destroy=function(t,e){e(t)}});var Xv=q((rtn,jke)=>{\\\"use strict\\\";u();var QEt=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};jke.exports=Hp;var Fke=Wne(),Vne=zne();Vu()(Hp,Fke);for($ne=QEt(Vne.prototype),rj=0;rj<$ne.length;rj++)nj=$ne[rj],Hp.prototype[nj]||(Hp.prototype[nj]=Vne.prototype[nj]);var $ne,nj,rj;function Hp(t){if(!(this instanceof Hp))return new Hp(t);Fke.call(this,t),Vne.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\\\"end\\\",JEt)))}Object.defineProperty(Hp.prototype,\\\"writableHighWaterMark\\\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Hp.prototype,\\\"writableBuffer\\\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Hp.prototype,\\\"writableLength\\\",{enumerable:!1,get:function(){return this._writableState.length}});function JEt(){this._writableState.ended||process.nextTick(YEt,this)}function YEt(t){t.end()}Object.defineProperty(Hp.prototype,\\\"destroyed\\\",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Zne=q(qke=>{\\\"use strict\\\";u();var Kne=Mp().Buffer,Hke=Kne.isEncoding||function(t){switch(t=\\\"\\\"+t,t&&t.toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":case\\\"raw\\\":return!0;default:return!1}};function XEt(t){if(!t)return\\\"utf8\\\";for(var e;;)switch(t){case\\\"utf8\\\":case\\\"utf-8\\\":return\\\"utf8\\\";case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return\\\"utf16le\\\";case\\\"latin1\\\":case\\\"binary\\\":return\\\"latin1\\\";case\\\"base64\\\":case\\\"ascii\\\":case\\\"hex\\\":return t;default:if(e)return;t=(\\\"\\\"+t).toLowerCase(),e=!0}}function e5t(t){var e=XEt(t);if(typeof e!=\\\"string\\\"&&(Kne.isEncoding===Hke||!Hke(t)))throw new Error(\\\"Unknown encoding: \\\"+t);return e||t}qke.StringDecoder=YI;function YI(t){this.encoding=e5t(t);var e;switch(this.encoding){case\\\"utf16le\\\":this.text=o5t,this.end=a5t,e=4;break;case\\\"utf8\\\":this.fillLast=n5t,e=4;break;case\\\"base64\\\":this.text=c5t,this.end=l5t,e=3;break;default:this.write=u5t,this.end=d5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Kne.allocUnsafe(e)}YI.prototype.write=function(t){if(t.length===0)return\\\"\\\";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return\\\"\\\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\\\"\\\"};YI.prototype.end=s5t;YI.prototype.text=i5t;YI.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Gne(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function t5t(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Gne(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Gne(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Gne(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function r5t(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,\\\"\\\\uFFFD\\\";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,\\\"\\\\uFFFD\\\";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,\\\"\\\\uFFFD\\\"}}function n5t(t){var e=this.lastTotal-this.lastNeed,r=r5t(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function i5t(t,e){var r=t5t(this,t,e);if(!this.lastNeed)return t.toString(\\\"utf8\\\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\\\"utf8\\\",e,n)}function s5t(t){var e=t&&t.length?this.write(t):\\\"\\\";return this.lastNeed?e+\\\"\\\\uFFFD\\\":e}function o5t(t,e){if((t.length-e)%2===0){var r=t.toString(\\\"utf16le\\\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\\\"utf16le\\\",e,t.length-1)}function a5t(t){var e=t&&t.length?this.write(t):\\\"\\\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\\\"utf16le\\\",0,r)}return e}function c5t(t,e){var r=(t.length-e)%3;return r===0?t.toString(\\\"base64\\\",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\\\"base64\\\",e,t.length-r))}function l5t(t){var e=t&&t.length?this.write(t):\\\"\\\";return this.lastNeed?e+this.lastChar.toString(\\\"base64\\\",0,3-this.lastNeed):e}function u5t(t){return t.toString(this.encoding)}function d5t(t){return t&&t.length?this.write(t):\\\"\\\"}});var ij=q((otn,Vke)=>{\\\"use strict\\\";u();var zke=Yv().codes.ERR_STREAM_PREMATURE_CLOSE;function f5t(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function p5t(){}function h5t(t){return t.setHeader&&typeof t.abort==\\\"function\\\"}function $ke(t,e,r){if(typeof e==\\\"function\\\")return $ke(t,null,e);e||(e={}),r=f5t(r||p5t);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},c=t._readableState&&t._readableState.endEmitted,l=function(){n=!1,c=!0,i||r.call(t)},d=function(m){r.call(t,m)},f=function(){var m;if(n&&!c)return(!t._readableState||!t._readableState.ended)&&(m=new zke),r.call(t,m);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new zke),r.call(t,m)},p=function(){t.req.on(\\\"finish\\\",a)};return h5t(t)?(t.on(\\\"complete\\\",a),t.on(\\\"abort\\\",f),t.req?p():t.on(\\\"request\\\",p)):i&&!t._writableState&&(t.on(\\\"end\\\",s),t.on(\\\"close\\\",s)),t.on(\\\"end\\\",l),t.on(\\\"finish\\\",a),e.error!==!1&&t.on(\\\"error\\\",d),t.on(\\\"close\\\",f),function(){t.removeListener(\\\"complete\\\",a),t.removeListener(\\\"abort\\\",f),t.removeListener(\\\"request\\\",p),t.req&&t.req.removeListener(\\\"finish\\\",a),t.removeListener(\\\"end\\\",s),t.removeListener(\\\"close\\\",s),t.removeListener(\\\"finish\\\",a),t.removeListener(\\\"end\\\",l),t.removeListener(\\\"error\\\",d),t.removeListener(\\\"close\\\",f)}}Vke.exports=$ke});var Gke=q((ctn,Wke)=>{\\\"use strict\\\";u();var sj;function n1(t,e,r){return e=m5t(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m5t(t){var e=g5t(t,\\\"string\\\");return typeof e==\\\"symbol\\\"?e:String(e)}function g5t(t,e){if(typeof t!=\\\"object\\\"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||\\\"default\\\");if(typeof n!=\\\"object\\\")return n;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(e===\\\"string\\\"?String:Number)(t)}var y5t=ij(),i1=Symbol(\\\"lastResolve\\\"),e2=Symbol(\\\"lastReject\\\"),XI=Symbol(\\\"error\\\"),oj=Symbol(\\\"ended\\\"),t2=Symbol(\\\"lastPromise\\\"),Qne=Symbol(\\\"handlePromise\\\"),r2=Symbol(\\\"stream\\\");function s1(t,e){return{value:t,done:e}}function b5t(t){var e=t[i1];if(e!==null){var r=t[r2].read();r!==null&&(t[t2]=null,t[i1]=null,t[e2]=null,e(s1(r,!1)))}}function w5t(t){process.nextTick(b5t,t)}function v5t(t,e){return function(r,n){t.then(function(){if(e[oj]){r(s1(void 0,!0));return}e[Qne](r,n)},n)}}var x5t=Object.getPrototypeOf(function(){}),E5t=Object.setPrototypeOf((sj={get stream(){return this[r2]},next:function(){var e=this,r=this[XI];if(r!==null)return Promise.reject(r);if(this[oj])return Promise.resolve(s1(void 0,!0));if(this[r2].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[XI]?a(e[XI]):o(s1(void 0,!0))})});var n=this[t2],i;if(n)i=new Promise(v5t(n,this));else{var s=this[r2].read();if(s!==null)return Promise.resolve(s1(s,!1));i=new Promise(this[Qne])}return this[t2]=i,i}},n1(sj,Symbol.asyncIterator,function(){return this}),n1(sj,\\\"return\\\",function(){var e=this;return new Promise(function(r,n){e[r2].destroy(null,function(i){if(i){n(i);return}r(s1(void 0,!0))})})}),sj),x5t),_5t=function(e){var r,n=Object.create(E5t,(r={},n1(r,r2,{value:e,writable:!0}),n1(r,i1,{value:null,writable:!0}),n1(r,e2,{value:null,writable:!0}),n1(r,XI,{value:null,writable:!0}),n1(r,oj,{value:e._readableState.endEmitted,writable:!0}),n1(r,Qne,{value:function(s,o){var a=n[r2].read();a?(n[t2]=null,n[i1]=null,n[e2]=null,s(s1(a,!1))):(n[i1]=s,n[e2]=o)},writable:!0}),r));return n[t2]=null,y5t(e,function(i){if(i&&i.code!==\\\"ERR_STREAM_PREMATURE_CLOSE\\\"){var s=n[e2];s!==null&&(n[t2]=null,n[i1]=null,n[e2]=null,s(i)),n[XI]=i;return}var o=n[i1];o!==null&&(n[t2]=null,n[i1]=null,n[e2]=null,o(s1(void 0,!0))),n[oj]=!0}),e.on(\\\"readable\\\",w5t.bind(null,n)),n};Wke.exports=_5t});var Zke=q((utn,Kke)=>{u();Kke.exports=function(){throw new Error(\\\"Readable.from is not available in the browser\\\")}});var Wne=q((ptn,sBe)=>{\\\"use strict\\\";u();sBe.exports=mr;var M_;mr.ReadableState=Xke;var ftn=ho().EventEmitter,Yke=function(e,r){return e.listeners(r).length},t9=Bne(),aj=Qx().Buffer,C5t=(typeof globalThis<\\\"u\\\"?globalThis:typeof window<\\\"u\\\"?window:typeof self<\\\"u\\\"?self:{}).Uint8Array||function(){};function S5t(t){return aj.from(t)}function A5t(t){return aj.isBuffer(t)||t instanceof C5t}var Jne=Mne(),$t;Jne&&Jne.debuglog?$t=Jne.debuglog(\\\"stream\\\"):$t=function(){};var T5t=Cke(),iie=Une(),I5t=Fne(),R5t=I5t.getHighWaterMark,cj=Yv().codes,P5t=cj.ERR_INVALID_ARG_TYPE,O5t=cj.ERR_STREAM_PUSH_AFTER_EOF,N5t=cj.ERR_METHOD_NOT_IMPLEMENTED,k5t=cj.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,D_,Yne,Xne;Vu()(mr,t9);var e9=iie.errorOrDestroy,eie=[\\\"error\\\",\\\"close\\\",\\\"destroy\\\",\\\"pause\\\",\\\"resume\\\"];function B5t(t,e,r){if(typeof t.prependListener==\\\"function\\\")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Xke(t,e,r){M_=M_||Xv(),t=t||{},typeof r!=\\\"boolean\\\"&&(r=e instanceof M_),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=R5t(this,t,\\\"readableHighWaterMark\\\",r),this.buffer=new T5t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\\\"utf8\\\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(D_||(D_=Zne().StringDecoder),this.decoder=new D_(t.encoding),this.encoding=t.encoding)}function mr(t){if(M_=M_||Xv(),!(this instanceof mr))return new mr(t);var e=this instanceof M_;this._readableState=new Xke(t,this,e),this.readable=!0,t&&(typeof t.read==\\\"function\\\"&&(this._read=t.read),typeof t.destroy==\\\"function\\\"&&(this._destroy=t.destroy)),t9.call(this)}Object.defineProperty(mr.prototype,\\\"destroyed\\\",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});mr.prototype.destroy=iie.destroy;mr.prototype._undestroy=iie.undestroy;mr.prototype._destroy=function(t,e){e(t)};mr.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t==\\\"string\\\"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=aj.from(t,e),e=\\\"\\\"),n=!0),eBe(this,t,e,!1,n)};mr.prototype.unshift=function(t){return eBe(this,t,null,!0,!1)};function eBe(t,e,r,n,i){$t(\\\"readableAddChunk\\\",e);var s=t._readableState;if(e===null)s.reading=!1,L5t(t,s);else{var o;if(i||(o=M5t(s,e)),o)e9(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!=\\\"string\\\"&&!s.objectMode&&Object.getPrototypeOf(e)!==aj.prototype&&(e=S5t(e)),n)s.endEmitted?e9(t,new k5t):tie(t,s,e,!0);else if(s.ended)e9(t,new O5t);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?tie(t,s,e,!1):nie(t,s)):tie(t,s,e,!1)}else n||(s.reading=!1,nie(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function tie(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit(\\\"data\\\",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&lj(t)),nie(t,e)}function M5t(t,e){var r;return!A5t(e)&&typeof e!=\\\"string\\\"&&e!==void 0&&!t.objectMode&&(r=new P5t(\\\"chunk\\\",[\\\"string\\\",\\\"Buffer\\\",\\\"Uint8Array\\\"],e)),r}mr.prototype.isPaused=function(){return this._readableState.flowing===!1};mr.prototype.setEncoding=function(t){D_||(D_=Zne().StringDecoder);var e=new D_(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n=\\\"\\\";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==\\\"\\\"&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Qke=1073741824;function D5t(t){return t>=Qke?t=Qke:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Jke(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=D5t(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}mr.prototype.read=function(t){$t(\\\"read\\\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return $t(\\\"read: emitReadable\\\",e.length,e.ended),e.length===0&&e.ended?rie(this):lj(this),null;if(t=Jke(t,e),t===0&&e.ended)return e.length===0&&rie(this),null;var n=e.needReadable;$t(\\\"need readable\\\",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,$t(\\\"length less than watermark\\\",n)),e.ended||e.reading?(n=!1,$t(\\\"reading or ended\\\",n)):n&&($t(\\\"do read\\\"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Jke(r,e)));var i;return t>0?i=nBe(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&rie(this)),i!==null&&this.emit(\\\"data\\\",i),i};function L5t(t,e){if($t(\\\"onEofChunk\\\"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?lj(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,tBe(t)))}}function lj(t){var e=t._readableState;$t(\\\"emitReadable\\\",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||($t(\\\"emitReadable\\\",e.flowing),e.emittedReadable=!0,process.nextTick(tBe,t))}function tBe(t){var e=t._readableState;$t(\\\"emitReadable_\\\",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit(\\\"readable\\\"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,sie(t)}function nie(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(U5t,t,e))}function U5t(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if($t(\\\"maybeReadMore read 0\\\"),t.read(0),r===e.length)break}e.readingMore=!1}mr.prototype._read=function(t){e9(this,new N5t(\\\"_read()\\\"))};mr.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,$t(\\\"pipe count=%d opts=%j\\\",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:g;n.endEmitted?process.nextTick(s):r.once(\\\"end\\\",s),t.on(\\\"unpipe\\\",o);function o(w,v){$t(\\\"onunpipe\\\"),w===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,d())}function a(){$t(\\\"onend\\\"),t.end()}var c=F5t(r);t.on(\\\"drain\\\",c);var l=!1;function d(){$t(\\\"cleanup\\\"),t.removeListener(\\\"close\\\",h),t.removeListener(\\\"finish\\\",m),t.removeListener(\\\"drain\\\",c),t.removeListener(\\\"error\\\",p),t.removeListener(\\\"unpipe\\\",o),r.removeListener(\\\"end\\\",a),r.removeListener(\\\"end\\\",g),r.removeListener(\\\"data\\\",f),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c()}r.on(\\\"data\\\",f);function f(w){$t(\\\"ondata\\\");var v=t.write(w);$t(\\\"dest.write\\\",v),v===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&iBe(n.pipes,t)!==-1)&&!l&&($t(\\\"false write response, pause\\\",n.awaitDrain),n.awaitDrain++),r.pause())}function p(w){$t(\\\"onerror\\\",w),g(),t.removeListener(\\\"error\\\",p),Yke(t,\\\"error\\\")===0&&e9(t,w)}B5t(t,\\\"error\\\",p);function h(){t.removeListener(\\\"finish\\\",m),g()}t.once(\\\"close\\\",h);function m(){$t(\\\"onfinish\\\"),t.removeListener(\\\"close\\\",h),g()}t.once(\\\"finish\\\",m);function g(){$t(\\\"unpipe\\\"),r.unpipe(t)}return t.emit(\\\"pipe\\\",r),n.flowing||($t(\\\"pipe resume\\\"),r.resume()),t};function F5t(t){return function(){var r=t._readableState;$t(\\\"pipeOnDrain\\\",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Yke(t,\\\"data\\\")&&(r.flowing=!0,sie(t))}}mr.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\\\"unpipe\\\",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit(\\\"unpipe\\\",this,{hasUnpiped:!1});return this}var o=iBe(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit(\\\"unpipe\\\",this,r),this)};mr.prototype.on=function(t,e){var r=t9.prototype.on.call(this,t,e),n=this._readableState;return t===\\\"data\\\"?(n.readableListening=this.listenerCount(\\\"readable\\\")>0,n.flowing!==!1&&this.resume()):t===\\\"readable\\\"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,$t(\\\"on readable\\\",n.length,n.reading),n.length?lj(this):n.reading||process.nextTick(j5t,this)),r};mr.prototype.addListener=mr.prototype.on;mr.prototype.removeListener=function(t,e){var r=t9.prototype.removeListener.call(this,t,e);return t===\\\"readable\\\"&&process.nextTick(rBe,this),r};mr.prototype.removeAllListeners=function(t){var e=t9.prototype.removeAllListeners.apply(this,arguments);return(t===\\\"readable\\\"||t===void 0)&&process.nextTick(rBe,this),e};function rBe(t){var e=t._readableState;e.readableListening=t.listenerCount(\\\"readable\\\")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount(\\\"data\\\")>0&&t.resume()}function j5t(t){$t(\\\"readable nexttick read 0\\\"),t.read(0)}mr.prototype.resume=function(){var t=this._readableState;return t.flowing||($t(\\\"resume\\\"),t.flowing=!t.readableListening,H5t(this,t)),t.paused=!1,this};function H5t(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(q5t,t,e))}function q5t(t,e){$t(\\\"resume\\\",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(\\\"resume\\\"),sie(t),e.flowing&&!e.reading&&t.read(0)}mr.prototype.pause=function(){return $t(\\\"call pause flowing=%j\\\",this._readableState.flowing),this._readableState.flowing!==!1&&($t(\\\"pause\\\"),this._readableState.flowing=!1,this.emit(\\\"pause\\\")),this._readableState.paused=!0,this};function sie(t){var e=t._readableState;for($t(\\\"flow\\\",e.flowing);e.flowing&&t.read()!==null;);}mr.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on(\\\"end\\\",function(){if($t(\\\"wrapped end\\\"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on(\\\"data\\\",function(o){if($t(\\\"wrapped data\\\"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]==\\\"function\\\"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var s=0;s<eie.length;s++)t.on(eie[s],this.emit.bind(this,eie[s]));return this._read=function(o){$t(\\\"wrapped _read\\\",o),n&&(n=!1,t.resume())},this};typeof Symbol==\\\"function\\\"&&(mr.prototype[Symbol.asyncIterator]=function(){return Yne===void 0&&(Yne=Gke()),Yne(this)});Object.defineProperty(mr.prototype,\\\"readableHighWaterMark\\\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(mr.prototype,\\\"readableBuffer\\\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(mr.prototype,\\\"readableFlowing\\\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});mr._fromList=nBe;Object.defineProperty(mr.prototype,\\\"readableLength\\\",{enumerable:!1,get:function(){return this._readableState.length}});function nBe(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(\\\"\\\"):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function rie(t){var e=t._readableState;$t(\\\"endReadable\\\",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(z5t,e,t))}function z5t(t,e){if($t(\\\"endReadableNT\\\",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit(\\\"end\\\"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol==\\\"function\\\"&&(mr.from=function(t,e){return Xne===void 0&&(Xne=Zke()),Xne(mr,t,e)});function iBe(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var oie=q((mtn,aBe)=>{\\\"use strict\\\";u();aBe.exports=a0;var uj=Yv().codes,$5t=uj.ERR_METHOD_NOT_IMPLEMENTED,V5t=uj.ERR_MULTIPLE_CALLBACK,W5t=uj.ERR_TRANSFORM_ALREADY_TRANSFORMING,G5t=uj.ERR_TRANSFORM_WITH_LENGTH_0,dj=Xv();Vu()(a0,dj);function K5t(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit(\\\"error\\\",new V5t);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a0(t){if(!(this instanceof a0))return new a0(t);dj.call(this,t),this._transformState={afterTransform:K5t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform==\\\"function\\\"&&(this._transform=t.transform),typeof t.flush==\\\"function\\\"&&(this._flush=t.flush)),this.on(\\\"prefinish\\\",Z5t)}function Z5t(){var t=this;typeof this._flush==\\\"function\\\"&&!this._readableState.destroyed?this._flush(function(e,r){oBe(t,e,r)}):oBe(this,null,null)}a0.prototype.push=function(t,e){return this._transformState.needTransform=!1,dj.prototype.push.call(this,t,e)};a0.prototype._transform=function(t,e,r){r(new $5t(\\\"_transform()\\\"))};a0.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};a0.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};a0.prototype._destroy=function(t,e){dj.prototype._destroy.call(this,t,function(r){e(r)})};function oBe(t,e,r){if(e)return t.emit(\\\"error\\\",e);if(r!=null&&t.push(r),t._writableState.length)throw new G5t;if(t._transformState.transforming)throw new W5t;return t.push(null)}});var uBe=q((ytn,lBe)=>{\\\"use strict\\\";u();lBe.exports=r9;var cBe=oie();Vu()(r9,cBe);function r9(t){if(!(this instanceof r9))return new r9(t);cBe.call(this,t)}r9.prototype._transform=function(t,e,r){r(null,t)}});var mBe=q((wtn,hBe)=>{\\\"use strict\\\";u();var aie;function Q5t(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var pBe=Yv().codes,J5t=pBe.ERR_MISSING_ARGS,Y5t=pBe.ERR_STREAM_DESTROYED;function dBe(t){if(t)throw t}function X5t(t){return t.setHeader&&typeof t.abort==\\\"function\\\"}function e6t(t,e,r,n){n=Q5t(n);var i=!1;t.on(\\\"close\\\",function(){i=!0}),aie===void 0&&(aie=ij()),aie(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,X5t(t))return t.abort();if(typeof t.destroy==\\\"function\\\")return t.destroy();n(o||new Y5t(\\\"pipe\\\"))}}}function fBe(t){t()}function t6t(t,e){return t.pipe(e)}function r6t(t){return!t.length||typeof t[t.length-1]!=\\\"function\\\"?dBe:t.pop()}function n6t(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=r6t(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new J5t(\\\"streams\\\");var i,s=e.map(function(o,a){var c=a<e.length-1,l=a>0;return e6t(o,c,l,function(d){i||(i=d),d&&s.forEach(fBe),!c&&(s.forEach(fBe),n(i))})});return e.reduce(t6t)}hBe.exports=n6t});var cie=q((Ku,gBe)=>{u();Ku=gBe.exports=Wne();Ku.Stream=Ku;Ku.Readable=Ku;Ku.Writable=zne();Ku.Duplex=Xv();Ku.Transform=oie();Ku.PassThrough=uBe();Ku.finished=ij();Ku.pipeline=mBe()});var wBe=q((Etn,bBe)=>{u();var{Transform:i6t}=cie();bBe.exports=t=>class yBe extends i6t{constructor(r,n,i,s,o){super(o),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=o,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(o){s=o}i(s)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!globalThis.Buffer.isBuffer(r)&&typeof r!=\\\"string\\\")throw new TypeError(\\\"Data must be a string or a buffer\\\");if(this._finalized)throw new Error(\\\"Digest already called\\\");return globalThis.Buffer.isBuffer(r)||(r=globalThis.Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error(\\\"Digest already called\\\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new yBe(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var EBe=q((Ctn,xBe)=>{u();var{Transform:s6t}=cie();xBe.exports=t=>class vBe extends s6t{constructor(r,n,i,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let s=null;try{this.update(r,n)}catch(o){s=o}i(s)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!globalThis.Buffer.isBuffer(r)&&typeof r!=\\\"string\\\")throw new TypeError(\\\"Data must be a string or a buffer\\\");if(this._finalized)throw new Error(\\\"Squeeze already called\\\");return globalThis.Buffer.isBuffer(r)||(r=globalThis.Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new vBe(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var CBe=q((Atn,_Be)=>{u();var o6t=wBe(),a6t=EBe();_Be.exports=function(t){let e=o6t(t),r=a6t(t);return function(n,i){switch(typeof n==\\\"string\\\"?n.toLowerCase():n){case\\\"keccak224\\\":return new e(1152,448,null,224,i);case\\\"keccak256\\\":return new e(1088,512,null,256,i);case\\\"keccak384\\\":return new e(832,768,null,384,i);case\\\"keccak512\\\":return new e(576,1024,null,512,i);case\\\"sha3-224\\\":return new e(1152,448,6,224,i);case\\\"sha3-256\\\":return new e(1088,512,6,256,i);case\\\"sha3-384\\\":return new e(832,768,6,384,i);case\\\"sha3-512\\\":return new e(576,1024,6,512,i);case\\\"shake128\\\":return new r(1344,256,31,i);case\\\"shake256\\\":return new r(1088,512,31,i);default:throw new Error(\\\"Invald algorithm: \\\"+n)}}}});var TBe=q(ABe=>{u();var SBe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];ABe.p1600=function(t){for(let e=0;e<24;++e){let r=t[0]^t[10]^t[20]^t[30]^t[40],n=t[1]^t[11]^t[21]^t[31]^t[41],i=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],o=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49],p=d^(i<<1|s>>>31),h=f^(s<<1|i>>>31),m=t[0]^p,g=t[1]^h,w=t[10]^p,v=t[11]^h,b=t[20]^p,_=t[21]^h,S=t[30]^p,T=t[31]^h,N=t[40]^p,O=t[41]^h;p=r^(o<<1|a>>>31),h=n^(a<<1|o>>>31);let L=t[2]^p,B=t[3]^h,H=t[12]^p,M=t[13]^h,F=t[22]^p,R=t[23]^h,y=t[32]^p,E=t[33]^h,C=t[42]^p,I=t[43]^h;p=i^(c<<1|l>>>31),h=s^(l<<1|c>>>31);let P=t[4]^p,k=t[5]^h,U=t[14]^p,D=t[15]^h,A=t[24]^p,j=t[25]^h,K=t[34]^p,J=t[35]^h,X=t[44]^p,re=t[45]^h;p=o^(d<<1|f>>>31),h=a^(f<<1|d>>>31);let fe=t[6]^p,ce=t[7]^h,We=t[16]^p,Ue=t[17]^h,je=t[26]^p,Lt=t[27]^h,pt=t[36]^p,Ct=t[37]^h,jf=t[46]^p,Un=t[47]^h;p=c^(r<<1|n>>>31),h=l^(n<<1|r>>>31);let Fn=t[8]^p,Q0=t[9]^h,wn=t[18]^p,an=t[19]^h,J0=t[28]^p,vn=t[29]^h,xn=t[38]^p,Y0=t[39]^h,En=t[48]^p,jn=t[49]^h,X0=m,_n=g,Cn=v<<4|w>>>28,Mx=w<<4|v>>>28,Jn=b<<3|_>>>29,Yn=_<<3|b>>>29,Dx=T<<9|S>>>23,Xn=S<<9|T>>>23,ei=N<<18|O>>>14,Lx=O<<18|N>>>14,ti=L<<1|B>>>31,ri=B<<1|L>>>31,Ux=M<<12|H>>>20,ni=H<<12|M>>>20,ii=F<<10|R>>>22,Fx=R<<10|F>>>22,si=E<<13|y>>>19,oi=y<<13|E>>>19,jx=C<<2|I>>>30,ai=I<<2|C>>>30,ci=k<<30|P>>>2,Hx=P<<30|k>>>2,li=U<<6|D>>>26,ui=D<<6|U>>>26,qx=j<<11|A>>>21,di=A<<11|j>>>21,fi=K<<15|J>>>17,zx=J<<15|K>>>17,pi=re<<29|X>>>3,hi=X<<29|re>>>3,$x=fe<<28|ce>>>4,mi=ce<<28|fe>>>4,gi=Ue<<23|We>>>9,Vx=We<<23|Ue>>>9,yi=je<<25|Lt>>>7,bi=Lt<<25|je>>>7,ub=pt<<21|Ct>>>11,db=Ct<<21|pt>>>11,fb=Un<<24|jf>>>8,pb=jf<<24|Un>>>8,hb=Fn<<27|Q0>>>5,mb=Q0<<27|Fn>>>5,gb=wn<<20|an>>>12,yb=an<<20|wn>>>12,bb=vn<<7|J0>>>25,wb=J0<<7|vn>>>25,vb=xn<<8|Y0>>>24,xb=Y0<<8|xn>>>24,Eb=En<<14|jn>>>18,_b=jn<<14|En>>>18;t[0]=X0^~Ux&qx,t[1]=_n^~ni&di,t[10]=$x^~gb&Jn,t[11]=mi^~yb&Yn,t[20]=ti^~li&yi,t[21]=ri^~ui&bi,t[30]=hb^~Cn&ii,t[31]=mb^~Mx&Fx,t[40]=ci^~gi&bb,t[41]=Hx^~Vx&wb,t[2]=Ux^~qx&ub,t[3]=ni^~di&db,t[12]=gb^~Jn&si,t[13]=yb^~Yn&oi,t[22]=li^~yi&vb,t[23]=ui^~bi&xb,t[32]=Cn^~ii&fi,t[33]=Mx^~Fx&zx,t[42]=gi^~bb&Dx,t[43]=Vx^~wb&Xn,t[4]=qx^~ub&Eb,t[5]=di^~db&_b,t[14]=Jn^~si&pi,t[15]=Yn^~oi&hi,t[24]=yi^~vb&ei,t[25]=bi^~xb&Lx,t[34]=ii^~fi&fb,t[35]=Fx^~zx&pb,t[44]=bb^~Dx&jx,t[45]=wb^~Xn&ai,t[6]=ub^~Eb&X0,t[7]=db^~_b&_n,t[16]=si^~pi&$x,t[17]=oi^~hi&mi,t[26]=vb^~ei&ti,t[27]=xb^~Lx&ri,t[36]=fi^~fb&hb,t[37]=zx^~pb&mb,t[46]=Dx^~jx&ci,t[47]=Xn^~ai&Hx,t[8]=Eb^~X0&Ux,t[9]=_b^~_n&ni,t[18]=pi^~$x&gb,t[19]=hi^~mi&yb,t[28]=ei^~ti&li,t[29]=Lx^~ri&ui,t[38]=fb^~hb&Cn,t[39]=pb^~mb&Mx,t[48]=jx^~ci&gi,t[49]=ai^~Hx&Vx,t[0]^=SBe[e*2],t[1]^=SBe[e*2+1]}}});var RBe=q((Ptn,IBe)=>{u();var fj=TBe();function L_(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}L_.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};L_.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(fj.p1600(this.state),this.count=0)};L_.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),(t&128)!==0&&this.count===this.blockSize-1&&fj.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),fj.p1600(this.state),this.count=0,this.squeezing=!0};L_.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);let e=globalThis.Buffer.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(fj.p1600(this.state),this.count=0);return e};L_.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};IBe.exports=L_});var OBe=q((Ntn,PBe)=>{u();PBe.exports=CBe()(RBe())});var lie=q((Btn,DBe)=>{u();var c6t=OBe(),l6t=SI();function NBe(t){return globalThis.Buffer.allocUnsafe(t).fill(0)}function kBe(t,e,r){let n=NBe(e);return t=pj(t),r?t.length<e?(t.copy(n),n):t.slice(0,e):t.length<e?(t.copy(n,e-t.length),n):t.slice(-e)}function u6t(t,e){return kBe(t,e,!0)}function pj(t){if(!globalThis.Buffer.isBuffer(t))if(Array.isArray(t))t=globalThis.Buffer.from(t);else if(typeof t==\\\"string\\\")BBe(t)?t=globalThis.Buffer.from(p6t(MBe(t)),\\\"hex\\\"):t=globalThis.Buffer.from(t);else if(typeof t==\\\"number\\\")t=intToBuffer(t);else if(t==null)t=globalThis.Buffer.allocUnsafe(0);else if(l6t.isBN(t))t=t.toArrayLike(globalThis.Buffer);else if(t.toArray)t=globalThis.Buffer.from(t.toArray());else throw new Error(\\\"invalid type\\\");return t}function d6t(t){return t=pj(t),\\\"0x\\\"+t.toString(\\\"hex\\\")}function f6t(t,e){return t=pj(t),e||(e=256),c6t(\\\"keccak\\\"+e).update(t).digest()}function p6t(t){return t.length%2?\\\"0\\\"+t:t}function BBe(t){return typeof t==\\\"string\\\"&&t.match(/^0x[0-9A-Fa-f]*$/)}function MBe(t){return typeof t==\\\"string\\\"&&t.startsWith(\\\"0x\\\")?t.slice(2):t}DBe.exports={zeros:NBe,setLength:kBe,setLengthRight:u6t,isHexString:BBe,stripHexPrefix:MBe,toBuffer:pj,bufferToHex:d6t,keccak:f6t}});var qBe=q((Dtn,HBe)=>{u();var s2=lie(),i2=SI();function UBe(t){return t.startsWith(\\\"int[\\\")?\\\"int256\\\"+t.slice(3):t===\\\"int\\\"?\\\"int256\\\":t.startsWith(\\\"uint[\\\")?\\\"uint256\\\"+t.slice(4):t===\\\"uint\\\"?\\\"uint256\\\":t.startsWith(\\\"fixed[\\\")?\\\"fixed128x128\\\"+t.slice(5):t===\\\"fixed\\\"?\\\"fixed128x128\\\":t.startsWith(\\\"ufixed[\\\")?\\\"ufixed128x128\\\"+t.slice(6):t===\\\"ufixed\\\"?\\\"ufixed128x128\\\":t}function U_(t){return parseInt(/^\\\\D+(\\\\d+)$/.exec(t)[1],10)}function LBe(t){var e=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function FBe(t){var e=t.match(/(.*)\\\\[(.*?)\\\\]$/);return e?e[2]===\\\"\\\"?\\\"dynamic\\\":parseInt(e[2],10):null}function n2(t){var e=typeof t;if(e===\\\"string\\\")return s2.isHexString(t)?new i2(s2.stripHexPrefix(t),16):new i2(t,10);if(e===\\\"number\\\")return new i2(t);if(t.toArray)return t;throw new Error(\\\"Argument is not a number\\\")}function qp(t,e){var r,n,i,s;if(t===\\\"address\\\")return qp(\\\"uint160\\\",n2(e));if(t===\\\"bool\\\")return qp(\\\"uint8\\\",e?1:0);if(t===\\\"string\\\")return qp(\\\"bytes\\\",new globalThis.Buffer(e,\\\"utf8\\\"));if(m6t(t)){if(typeof e.length>\\\"u\\\")throw new Error(\\\"Not an array?\\\");if(r=FBe(t),r!==\\\"dynamic\\\"&&r!==0&&e.length>r)throw new Error(\\\"Elements exceed array size: \\\"+r);i=[],t=t.slice(0,t.lastIndexOf(\\\"[\\\")),typeof e==\\\"string\\\"&&(e=JSON.parse(e));for(s in e)i.push(qp(t,e[s]));if(r===\\\"dynamic\\\"){var o=qp(\\\"uint256\\\",e.length);i.unshift(o)}return globalThis.Buffer.concat(i)}else{if(t===\\\"bytes\\\")return e=new globalThis.Buffer(e),i=globalThis.Buffer.concat([qp(\\\"uint256\\\",e.length),e]),e.length%32!==0&&(i=globalThis.Buffer.concat([i,s2.zeros(32-e.length%32)])),i;if(t.startsWith(\\\"bytes\\\")){if(r=U_(t),r<1||r>32)throw new Error(\\\"Invalid bytes<N> width: \\\"+r);return s2.setLengthRight(e,32)}else if(t.startsWith(\\\"uint\\\")){if(r=U_(t),r%8||r<8||r>256)throw new Error(\\\"Invalid uint<N> width: \\\"+r);if(n=n2(e),n.bitLength()>r)throw new Error(\\\"Supplied uint exceeds width: \\\"+r+\\\" vs \\\"+n.bitLength());if(n<0)throw new Error(\\\"Supplied uint is negative\\\");return n.toArrayLike(globalThis.Buffer,\\\"be\\\",32)}else if(t.startsWith(\\\"int\\\")){if(r=U_(t),r%8||r<8||r>256)throw new Error(\\\"Invalid int<N> width: \\\"+r);if(n=n2(e),n.bitLength()>r)throw new Error(\\\"Supplied int exceeds width: \\\"+r+\\\" vs \\\"+n.bitLength());return n.toTwos(256).toArrayLike(globalThis.Buffer,\\\"be\\\",32)}else if(t.startsWith(\\\"ufixed\\\")){if(r=LBe(t),n=n2(e),n<0)throw new Error(\\\"Supplied ufixed is negative\\\");return qp(\\\"uint256\\\",n.mul(new i2(2).pow(new i2(r[1]))))}else if(t.startsWith(\\\"fixed\\\"))return r=LBe(t),qp(\\\"int256\\\",n2(e).mul(new i2(2).pow(new i2(r[1]))))}throw new Error(\\\"Unsupported or invalid type: \\\"+t)}function h6t(t){return t===\\\"string\\\"||t===\\\"bytes\\\"||FBe(t)===\\\"dynamic\\\"}function m6t(t){return t.lastIndexOf(\\\"]\\\")===t.length-1}function g6t(t,e){var r=[],n=[],i=32*t.length;for(var s in t){var o=UBe(t[s]),a=e[s],c=qp(o,a);h6t(o)?(r.push(qp(\\\"uint256\\\",i)),n.push(c),i+=c.length):r.push(c)}return globalThis.Buffer.concat(r.concat(n))}function jBe(t,e){if(t.length!==e.length)throw new Error(\\\"Number of types are not matching the values\\\");for(var r,n,i=[],s=0;s<t.length;s++){var o=UBe(t[s]),a=e[s];if(o===\\\"bytes\\\")i.push(a);else if(o===\\\"string\\\")i.push(new globalThis.Buffer(a,\\\"utf8\\\"));else if(o===\\\"bool\\\")i.push(new globalThis.Buffer(a?\\\"01\\\":\\\"00\\\",\\\"hex\\\"));else if(o===\\\"address\\\")i.push(s2.setLength(a,20));else if(o.startsWith(\\\"bytes\\\")){if(r=U_(o),r<1||r>32)throw new Error(\\\"Invalid bytes<N> width: \\\"+r);i.push(s2.setLengthRight(a,r))}else if(o.startsWith(\\\"uint\\\")){if(r=U_(o),r%8||r<8||r>256)throw new Error(\\\"Invalid uint<N> width: \\\"+r);if(n=n2(a),n.bitLength()>r)throw new Error(\\\"Supplied uint exceeds width: \\\"+r+\\\" vs \\\"+n.bitLength());i.push(n.toArrayLike(globalThis.Buffer,\\\"be\\\",r/8))}else if(o.startsWith(\\\"int\\\")){if(r=U_(o),r%8||r<8||r>256)throw new Error(\\\"Invalid int<N> width: \\\"+r);if(n=n2(a),n.bitLength()>r)throw new Error(\\\"Supplied int exceeds width: \\\"+r+\\\" vs \\\"+n.bitLength());i.push(n.toTwos(r).toArrayLike(globalThis.Buffer,\\\"be\\\",r/8))}else throw new Error(\\\"Unsupported or invalid type: \\\"+o)}return globalThis.Buffer.concat(i)}function y6t(t,e){return s2.keccak(jBe(t,e))}HBe.exports={rawEncode:g6t,solidityPack:jBe,soliditySHA3:y6t}});var VBe=q((Utn,$Be)=>{u();var lf=lie(),n9=qBe(),zBe={type:\\\"object\\\",properties:{types:{type:\\\"object\\\",additionalProperties:{type:\\\"array\\\",items:{type:\\\"object\\\",properties:{name:{type:\\\"string\\\"},type:{type:\\\"string\\\"}},required:[\\\"name\\\",\\\"type\\\"]}}},primaryType:{type:\\\"string\\\"},domain:{type:\\\"object\\\"},message:{type:\\\"object\\\"}},required:[\\\"types\\\",\\\"primaryType\\\",\\\"domain\\\",\\\"message\\\"]},uie={encodeData(t,e,r,n=!0){let i=[\\\"bytes32\\\"],s=[this.hashType(t,r)];if(n){let o=(a,c,l)=>{if(r[c]!==void 0)return[\\\"bytes32\\\",l==null?\\\"0x0000000000000000000000000000000000000000000000000000000000000000\\\":lf.keccak(this.encodeData(c,l,r,n))];if(l===void 0)throw new Error(`missing value for field ${a} of type ${c}`);if(c===\\\"bytes\\\")return[\\\"bytes32\\\",lf.keccak(l)];if(c===\\\"string\\\")return typeof l==\\\"string\\\"&&(l=globalThis.Buffer.from(l,\\\"utf8\\\")),[\\\"bytes32\\\",lf.keccak(l)];if(c.lastIndexOf(\\\"]\\\")===c.length-1){let d=c.slice(0,c.lastIndexOf(\\\"[\\\")),f=l.map(p=>o(a,d,p));return[\\\"bytes32\\\",lf.keccak(n9.rawEncode(f.map(([p])=>p),f.map(([,p])=>p)))]}return[c,l]};for(let a of r[t]){let[c,l]=o(a.name,a.type,e[a.name]);i.push(c),s.push(l)}}else for(let o of r[t]){let a=e[o.name];if(a!==void 0)if(o.type===\\\"bytes\\\")i.push(\\\"bytes32\\\"),a=lf.keccak(a),s.push(a);else if(o.type===\\\"string\\\")i.push(\\\"bytes32\\\"),typeof a==\\\"string\\\"&&(a=globalThis.Buffer.from(a,\\\"utf8\\\")),a=lf.keccak(a),s.push(a);else if(r[o.type]!==void 0)i.push(\\\"bytes32\\\"),a=lf.keccak(this.encodeData(o.type,a,r,n)),s.push(a);else{if(o.type.lastIndexOf(\\\"]\\\")===o.type.length-1)throw new Error(\\\"Arrays currently unimplemented in encodeData\\\");i.push(o.type),s.push(a)}}return n9.rawEncode(i,s)},encodeType(t,e){let r=\\\"\\\",n=this.findTypeDependencies(t,e).filter(i=>i!==t);n=[t].concat(n.sort());for(let i of n){if(!e[i])throw new Error(\\\"No type definition specified: \\\"+i);r+=i+\\\"(\\\"+e[i].map(({name:o,type:a})=>a+\\\" \\\"+o).join(\\\",\\\")+\\\")\\\"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\\\\w*/)[0],r.includes(t)||e[t]===void 0)return r;r.push(t);for(let n of e[t])for(let i of this.findTypeDependencies(n.type,e,r))!r.includes(i)&&r.push(i);return r},hashStruct(t,e,r,n=!0){return lf.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return lf.keccak(this.encodeType(t,e))},sanitizeData(t){let e={};for(let r in zBe.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){let r=this.sanitizeData(t),n=[globalThis.Buffer.from(\\\"1901\\\",\\\"hex\\\")];return n.push(this.hashStruct(\\\"EIP712Domain\\\",r.domain,r.types,e)),r.primaryType!==\\\"EIP712Domain\\\"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,e)),lf.keccak(globalThis.Buffer.concat(n))}};$Be.exports={TYPED_MESSAGE_SCHEMA:zBe,TypedDataUtils:uie,hashForSignTypedDataLegacy:function(t){return b6t(t.data)},hashForSignTypedData_v3:function(t){return uie.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return uie.hash(t.data)}};function b6t(t){let e=new Error(\\\"Expect argument to be non-empty array\\\");if(typeof t!=\\\"object\\\"||!t.length)throw e;let r=t.map(function(s){return s.type===\\\"bytes\\\"?lf.toBuffer(s.value):s.value}),n=t.map(function(s){return s.type}),i=t.map(function(s){if(!s.name)throw e;return s.type+\\\" \\\"+s.name});return n9.soliditySHA3([\\\"bytes32\\\",\\\"bytes32\\\"],[n9.soliditySHA3(new Array(t.length).fill(\\\"string\\\"),i),n9.soliditySHA3(n,r)])}});var QBe=q(j_=>{\\\"use strict\\\";u();Object.defineProperty(j_,\\\"__esModule\\\",{value:!0});j_.filterFromParam=j_.FilterPolyfill=void 0;var F_=RI(),Xa=Np(),w6t=300*1e3,o2={jsonrpc:\\\"2.0\\\",id:0},die=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,F_.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=e}async newFilter(e){let r=ZBe(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,r.fromBlock);return console.info(`Installing new log filter(${n}):`,r,\\\"initial cursor position:\\\",i),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,Xa.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),r=await this.setInitialCursorPosition(e,\\\"latest\\\");return console.info(`Installing new block filter (${e}) with initial cursor position:`,r),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Xa.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),r=await this.setInitialCursorPosition(e,\\\"latest\\\");return console.info(`Installing new block filter (${e}) with initial cursor position:`,r),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Xa.hexStringFromIntNumber)(e)}uninstallFilter(e){let r=(0,Xa.intNumberFromHexString)(e);return console.info(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(e){let r=(0,Xa.intNumberFromHexString)(e);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(hj())}async getFilterLogs(e){let r=(0,Xa.intNumberFromHexString)(e),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o2),{method:\\\"eth_getLogs\\\",params:[WBe(n)]})):hj()}makeFilterId(){return(0,F_.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((r,n)=>{this.provider.sendAsync(e,(i,s)=>{if(i)return n(i);if(Array.isArray(s)||s==null)return n(new Error(`unexpected response received: ${JSON.stringify(s)}`));r(s)})})}deleteFilter(e){console.info(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let r=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!r)return hj();let i=await this.getCurrentBlockHeight(),s=r.toBlock===\\\"latest\\\"?i:r.toBlock;if(n>i||n>Number(r.toBlock))return mj();console.info(`Fetching logs from ${n} to ${s} for filter ${e}`);let o=await this.sendAsyncPromise(Object.assign(Object.assign({},o2),{method:\\\"eth_getLogs\\\",params:[WBe(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(o.result)){let a=o.result.map(l=>(0,Xa.intNumberFromHexString)(l.blockNumber||\\\"0x0\\\")),c=Math.max(...a);if(c&&c>n){let l=(0,F_.IntNumber)(c+1);console.info(`Moving cursor position for filter (${e}) from ${n} to ${l}`),this.cursors.set(e,l)}}return o}async getBlockFilterChanges(e){let r=this.cursors.get(e);if(!r)return hj();let n=await this.getCurrentBlockHeight();if(r>n)return mj();console.info(`Fetching blocks from ${r} to ${n} for filter (${e})`);let i=(await Promise.all((0,Xa.range)(r,n+1).map(o=>this.getBlockHashByNumber((0,F_.IntNumber)(o))))).filter(o=>!!o),s=(0,F_.IntNumber)(r+i.length);return console.info(`Moving cursor position for filter (${e}) from ${r} to ${s}`),this.cursors.set(e,s),Object.assign(Object.assign({},o2),{result:i})}async getPendingTransactionFilterChanges(e){return Promise.resolve(mj())}async setInitialCursorPosition(e,r){let n=await this.getCurrentBlockHeight(),i=typeof r==\\\"number\\\"&&r>n?r:n;return this.cursors.set(e,i),i}setFilterTimeout(e){let r=this.timeouts.get(e);r&&window.clearTimeout(r);let n=window.setTimeout(()=>{console.info(`Filter (${e}) timed out`),this.deleteFilter(e)},w6t);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let e=new Date;if(e.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=e;let r=await this._getCurrentBlockHeight();this.currentBlockHeight=r,this.resolvers.forEach(n=>n(r)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(r=>this.resolvers.push(r))}async _getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o2),{method:\\\"eth_blockNumber\\\",params:[]}));return(0,Xa.intNumberFromHexString)((0,Xa.ensureHexString)(e))}async getBlockHashByNumber(e){let r=await this.sendAsyncPromise(Object.assign(Object.assign({},o2),{method:\\\"eth_getBlockByNumber\\\",params:[(0,Xa.hexStringFromIntNumber)(e),!1]}));return r.result&&typeof r.result.hash==\\\"string\\\"?(0,Xa.ensureHexString)(r.result.hash):null}};j_.FilterPolyfill=die;function ZBe(t){return{fromBlock:GBe(t.fromBlock),toBlock:GBe(t.toBlock),addresses:t.address===void 0?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}j_.filterFromParam=ZBe;function WBe(t){let e={fromBlock:KBe(t.fromBlock),toBlock:KBe(t.toBlock),topics:t.topics};return t.addresses!==null&&(e.address=t.addresses),e}function GBe(t){if(t===void 0||t===\\\"latest\\\"||t===\\\"pending\\\")return\\\"latest\\\";if(t===\\\"earliest\\\")return(0,F_.IntNumber)(0);if((0,Xa.isHexString)(t))return(0,Xa.intNumberFromHexString)(t);throw new Error(`Invalid block option: ${String(t)}`)}function KBe(t){return t===\\\"latest\\\"?t:(0,Xa.hexStringFromIntNumber)(t)}function hj(){return Object.assign(Object.assign({},o2),{error:{code:-32e3,message:\\\"filter not found\\\"}})}function mj(){return Object.assign(Object.assign({},o2),{result:[]})}});var gj=q((qtn,JBe)=>{u();JBe.exports=v6t;function v6t(t){t=t||{};var e=t.max||Number.MAX_SAFE_INTEGER,r=typeof t.start<\\\"u\\\"?t.start:Math.floor(Math.random()*e);return function(){return r=r%e,r++}}});var eMe=q(($tn,XBe)=>{\\\"use strict\\\";u();var YBe=(t,e)=>function(){let r=e.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{e.errorFirst?n.push(function(o,a){if(e.multiArgs){let c=new Array(arguments.length-1);for(let l=1;l<arguments.length;l++)c[l-1]=arguments[l];o?(c.unshift(o),s(c)):i(c)}else o?s(o):i(a)}):n.push(function(o){if(e.multiArgs){let a=new Array(arguments.length-1);for(let c=0;c<arguments.length;c++)a[c]=arguments[c];i(a)}else i(o)}),t.apply(this,n)})};XBe.exports=(t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let r=i=>{let s=o=>typeof o==\\\"string\\\"?i===o:o.test(i);return e.include?e.include.some(s):!e.exclude.some(s)},n;typeof t==\\\"function\\\"?n=function(){return e.excludeMain?t.apply(this,arguments):YBe(t,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(t));for(let i in t){let s=t[i];n[i]=typeof s==\\\"function\\\"&&r(i)?YBe(s,e):s}return n}});var yj=q(pie=>{\\\"use strict\\\";u();Object.defineProperty(pie,\\\"__esModule\\\",{value:!0});var x6t=ho();function tMe(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function E6t(t){let e=t.length,r=new Array(e);for(let n=0;n<e;n+=1)r[n]=t[n];return r}var fie=class extends x6t.EventEmitter{emit(e,...r){let n=e===\\\"error\\\",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){let o;if(r.length>0&&([o]=r),o instanceof Error)throw o;let a=new Error(`Unhandled error.${o?` (${o.message})`:\\\"\\\"}`);throw a.context=o,a}let s=i[e];if(s===void 0)return!1;if(typeof s==\\\"function\\\")tMe(s,this,r);else{let o=s.length,a=E6t(s);for(let c=0;c<o;c+=1)tMe(a[c],this,r)}return!0}};pie.default=fie});var mie=q(H_=>{\\\"use strict\\\";u();var _6t=H_&&H_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(H_,\\\"__esModule\\\",{value:!0});H_.BaseBlockTracker=void 0;var C6t=_6t(yj()),S6t=1e3,A6t=(t,e)=>t+e,rMe=[\\\"sync\\\",\\\"latest\\\"],hie=class extends C6t.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||20*S6t,this._usePastBlocks=e.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(r=>this.once(\\\"latest\\\",r))}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener(\\\"newListener\\\",this._onNewListener),this.removeListener(\\\"removeListener\\\",this._onRemoveListener),this.on(\\\"newListener\\\",this._onNewListener),this.on(\\\"removeListener\\\",this._onRemoveListener)}_onNewListener(e){rMe.includes(e)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit(\\\"_started\\\"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit(\\\"_ended\\\"))}_getBlockTrackerEventCount(){return rMe.map(e=>this.listenerCount(e)).reduce(A6t)}_shouldUseNewBlock(e){let r=this._currentBlock;if(!r)return!0;let n=nMe(e),i=nMe(r);return this._usePastBlocks&&n<i||n>i}_newPotentialLatest(e){this._shouldUseNewBlock(e)&&this._setCurrentBlock(e)}_setCurrentBlock(e){let r=this._currentBlock;this._currentBlock=e,this.emit(\\\"latest\\\",e),this.emit(\\\"sync\\\",{oldBlock:r,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};H_.BaseBlockTracker=hie;function nMe(t){return Number.parseInt(t,16)}});var o1={};ue(o1,{Struct:()=>Di,StructError:()=>bj,any:()=>U6t,array:()=>F6t,assert:()=>sMe,assign:()=>P6t,bigint:()=>j6t,boolean:()=>H6t,coerce:()=>vie,create:()=>oMe,date:()=>q6t,defaulted:()=>n3t,define:()=>jc,deprecated:()=>O6t,dynamic:()=>N6t,empty:()=>s3t,enums:()=>z6t,func:()=>$6t,instance:()=>V6t,integer:()=>W6t,intersection:()=>G6t,is:()=>bie,lazy:()=>k6t,literal:()=>K6t,map:()=>Z6t,mask:()=>aMe,max:()=>o3t,min:()=>a3t,never:()=>wie,nonempty:()=>c3t,nullable:()=>Q6t,number:()=>J6t,object:()=>i9,omit:()=>B6t,optional:()=>cMe,partial:()=>M6t,pattern:()=>l3t,pick:()=>D6t,record:()=>Y6t,refine:()=>a2,regexp:()=>X6t,set:()=>e3t,size:()=>u3t,string:()=>lMe,struct:()=>L6t,trimmed:()=>i3t,tuple:()=>t3t,type:()=>s9,union:()=>r3t,unknown:()=>uMe,validate:()=>q_});function T6t(t){return Zu(t)&&typeof t[Symbol.iterator]==\\\"function\\\"}function Zu(t){return typeof t==\\\"object\\\"&&t!=null}function iMe(t){if(Object.prototype.toString.call(t)!==\\\"[object Object]\\\")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function qs(t){return typeof t==\\\"symbol\\\"?t.toString():typeof t==\\\"string\\\"?JSON.stringify(t):`${t}`}function I6t(t){let{done:e,value:r}=t.next();return e?void 0:r}function R6t(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t==\\\"string\\\"&&(t={message:t});let{path:i,branch:s}=e,{type:o}=r,{refinement:a,message:c=`Expected a value of type \\\\`${o}\\\\`${a?` with refinement \\\\`${a}\\\\``:\\\"\\\"}, but received: \\\\`${qs(n)}\\\\``}=t;return{value:n,type:o,refinement:a,key:i[i.length-1],path:i,branch:s,...t,message:c}}function*gie(t,e,r,n){T6t(t)||(t=[t]);for(let i of t){let s=R6t(i,e,r,n);s&&(yield s)}}function*yie(t,e,r={}){let{path:n=[],branch:i=[t],coerce:s=!1,mask:o=!1}=r,a={path:n,branch:i};if(s&&(t=e.coercer(t,a),o&&e.type!==\\\"type\\\"&&Zu(e.schema)&&Zu(t)&&!Array.isArray(t)))for(let l in t)e.schema[l]===void 0&&delete t[l];let c=\\\"valid\\\";for(let l of e.validator(t,a))l.explanation=r.message,c=\\\"not_valid\\\",yield[l,void 0];for(let[l,d,f]of e.entries(t,a)){let p=yie(d,f,{path:l===void 0?n:[...n,l],branch:l===void 0?i:[...i,d],coerce:s,mask:o,message:r.message});for(let h of p)h[0]?(c=h[0].refinement!=null?\\\"not_refined\\\":\\\"not_valid\\\",yield[h[0],void 0]):s&&(d=h[1],l===void 0?t=d:t instanceof Map?t.set(l,d):t instanceof Set?t.add(d):Zu(t)&&(d!==void 0||l in t)&&(t[l]=d))}if(c!==\\\"not_valid\\\")for(let l of e.refiner(t,a))l.explanation=r.message,c=\\\"not_refined\\\",yield[l,void 0];c===\\\"valid\\\"&&(yield[void 0,t])}function sMe(t,e,r){let n=q_(t,e,{message:r});if(n[0])throw n[0]}function oMe(t,e,r){let n=q_(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function aMe(t,e,r){let n=q_(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function bie(t,e){return!q_(t,e)[0]}function q_(t,e,r={}){let n=yie(t,e,r),i=I6t(n);return i[0]?[new bj(i[0],function*(){for(let o of n)o[0]&&(yield o[0])}),void 0]:[void 0,i[1]]}function P6t(...t){let e=t[0].type===\\\"type\\\",r=t.map(i=>i.schema),n=Object.assign({},...r);return e?s9(n):i9(n)}function jc(t,e){return new Di({type:t,schema:null,validator:e})}function O6t(t,e){return new Di({...t,refiner:(r,n)=>r===void 0||t.refiner(r,n),validator(r,n){return r===void 0?!0:(e(r,n),t.validator(r,n))}})}function N6t(t){return new Di({type:\\\"dynamic\\\",schema:null,*entries(e,r){yield*t(e,r).entries(e,r)},validator(e,r){return t(e,r).validator(e,r)},coercer(e,r){return t(e,r).coercer(e,r)},refiner(e,r){return t(e,r).refiner(e,r)}})}function k6t(t){let e;return new Di({type:\\\"lazy\\\",schema:null,*entries(r,n){e??(e=t()),yield*e.entries(r,n)},validator(r,n){return e??(e=t()),e.validator(r,n)},coercer(r,n){return e??(e=t()),e.coercer(r,n)},refiner(r,n){return e??(e=t()),e.refiner(r,n)}})}function B6t(t,e){let{schema:r}=t,n={...r};for(let i of e)delete n[i];return t.type===\\\"type\\\"?s9(n):i9(n)}function M6t(t){let e=t instanceof Di,r=e?{...t.schema}:{...t};for(let n in r)r[n]=cMe(r[n]);return e&&t.type===\\\"type\\\"?s9(r):i9(r)}function D6t(t,e){let{schema:r}=t,n={};for(let i of e)n[i]=r[i];return t.type===\\\"type\\\"?s9(n):i9(n)}function L6t(t,e){return console.warn(\\\"superstruct@0.11 - The `struct` helper has been renamed to `define`.\\\"),jc(t,e)}function U6t(){return jc(\\\"any\\\",()=>!0)}function F6t(t){return new Di({type:\\\"array\\\",schema:t,*entries(e){if(t&&Array.isArray(e))for(let[r,n]of e.entries())yield[r,n,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${qs(e)}`}})}function j6t(){return jc(\\\"bigint\\\",t=>typeof t==\\\"bigint\\\")}function H6t(){return jc(\\\"boolean\\\",t=>typeof t==\\\"boolean\\\")}function q6t(){return jc(\\\"date\\\",t=>t instanceof Date&&!isNaN(t.getTime())||`Expected a valid \\\\`Date\\\\` object, but received: ${qs(t)}`)}function z6t(t){let e={},r=t.map(n=>qs(n)).join();for(let n of t)e[n]=n;return new Di({type:\\\"enums\\\",schema:e,validator(n){return t.includes(n)||`Expected one of \\\\`${r}\\\\`, but received: ${qs(n)}`}})}function $6t(){return jc(\\\"func\\\",t=>typeof t==\\\"function\\\"||`Expected a function, but received: ${qs(t)}`)}function V6t(t){return jc(\\\"instance\\\",e=>e instanceof t||`Expected a \\\\`${t.name}\\\\` instance, but received: ${qs(e)}`)}function W6t(){return jc(\\\"integer\\\",t=>typeof t==\\\"number\\\"&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${qs(t)}`)}function G6t(t){return new Di({type:\\\"intersection\\\",schema:null,*entries(e,r){for(let n of t)yield*n.entries(e,r)},*validator(e,r){for(let n of t)yield*n.validator(e,r)},*refiner(e,r){for(let n of t)yield*n.refiner(e,r)}})}function K6t(t){let e=qs(t),r=typeof t;return new Di({type:\\\"literal\\\",schema:r===\\\"string\\\"||r===\\\"number\\\"||r===\\\"boolean\\\"?t:null,validator(n){return n===t||`Expected the literal \\\\`${e}\\\\`, but received: ${qs(n)}`}})}function Z6t(t,e){return new Di({type:\\\"map\\\",schema:null,*entries(r){if(t&&e&&r instanceof Map)for(let[n,i]of r.entries())yield[n,n,t],yield[n,i,e]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \\\\`Map\\\\` object, but received: ${qs(r)}`}})}function wie(){return jc(\\\"never\\\",()=>!1)}function Q6t(t){return new Di({...t,validator:(e,r)=>e===null||t.validator(e,r),refiner:(e,r)=>e===null||t.refiner(e,r)})}function J6t(){return jc(\\\"number\\\",t=>typeof t==\\\"number\\\"&&!isNaN(t)||`Expected a number, but received: ${qs(t)}`)}function i9(t){let e=t?Object.keys(t):[],r=wie();return new Di({type:\\\"object\\\",schema:t||null,*entries(n){if(t&&Zu(n)){let i=new Set(Object.keys(n));for(let s of e)i.delete(s),yield[s,n[s],t[s]];for(let s of i)yield[s,n[s],r]}},validator(n){return Zu(n)||`Expected an object, but received: ${qs(n)}`},coercer(n){return Zu(n)?{...n}:n}})}function cMe(t){return new Di({...t,validator:(e,r)=>e===void 0||t.validator(e,r),refiner:(e,r)=>e===void 0||t.refiner(e,r)})}function Y6t(t,e){return new Di({type:\\\"record\\\",schema:null,*entries(r){if(Zu(r))for(let n in r){let i=r[n];yield[n,n,t],yield[n,i,e]}},validator(r){return Zu(r)||`Expected an object, but received: ${qs(r)}`}})}function X6t(){return jc(\\\"regexp\\\",t=>t instanceof RegExp)}function e3t(t){return new Di({type:\\\"set\\\",schema:null,*entries(e){if(t&&e instanceof Set)for(let r of e)yield[r,r,t]},coercer(e){return e instanceof Set?new Set(e):e},validator(e){return e instanceof Set||`Expected a \\\\`Set\\\\` object, but received: ${qs(e)}`}})}function lMe(){return jc(\\\"string\\\",t=>typeof t==\\\"string\\\"||`Expected a string, but received: ${qs(t)}`)}function t3t(t){let e=wie();return new Di({type:\\\"tuple\\\",schema:null,*entries(r){if(Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i<n;i++)yield[i,r[i],t[i]||e]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${qs(r)}`}})}function s9(t){let e=Object.keys(t);return new Di({type:\\\"type\\\",schema:t,*entries(r){if(Zu(r))for(let n of e)yield[n,r[n],t[n]]},validator(r){return Zu(r)||`Expected an object, but received: ${qs(r)}`},coercer(r){return Zu(r)?{...r}:r}})}function r3t(t){let e=t.map(r=>r.type).join(\\\" | \\\");return new Di({type:\\\"union\\\",schema:null,coercer(r){for(let n of t){let[i,s]=n.validate(r,{coerce:!0});if(!i)return s}return r},validator(r,n){let i=[];for(let s of t){let[...o]=yie(r,s,n),[a]=o;if(a[0])for(let[c]of o)c&&i.push(c);else return[]}return[`Expected the value to satisfy a union of \\\\`${e}\\\\`, but received: ${qs(r)}`,...i]}})}function uMe(){return jc(\\\"unknown\\\",()=>!0)}function vie(t,e,r){return new Di({...t,coercer:(n,i)=>bie(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)})}function n3t(t,e,r={}){return vie(t,uMe(),n=>{let i=typeof e==\\\"function\\\"?e():e;if(n===void 0)return i;if(!r.strict&&iMe(n)&&iMe(i)){let s={...n},o=!1;for(let a in i)s[a]===void 0&&(s[a]=i[a],o=!0);if(o)return s}return n})}function i3t(t){return vie(t,lMe(),e=>e.trim())}function s3t(t){return a2(t,\\\"empty\\\",e=>{let r=dMe(e);return r===0||`Expected an empty ${t.type} but received one with a size of \\\\`${r}\\\\``})}function dMe(t){return t instanceof Map||t instanceof Set?t.size:t.length}function o3t(t,e,r={}){let{exclusive:n}=r;return a2(t,\\\"max\\\",i=>n?i<e:i<=e||`Expected a ${t.type} less than ${n?\\\"\\\":\\\"or equal to \\\"}${e} but received \\\\`${i}\\\\``)}function a3t(t,e,r={}){let{exclusive:n}=r;return a2(t,\\\"min\\\",i=>n?i>e:i>=e||`Expected a ${t.type} greater than ${n?\\\"\\\":\\\"or equal to \\\"}${e} but received \\\\`${i}\\\\``)}function c3t(t){return a2(t,\\\"nonempty\\\",e=>dMe(e)>0||`Expected a nonempty ${t.type} but received an empty one`)}function l3t(t,e){return a2(t,\\\"pattern\\\",r=>e.test(r)||`Expected a ${t.type} matching \\\\`/${e.source}/\\\\` but received \\\"${r}\\\"`)}function u3t(t,e,r=e){let n=`Expected a ${t.type}`,i=e===r?`of \\\\`${e}\\\\``:`between \\\\`${e}\\\\` and \\\\`${r}\\\\``;return a2(t,\\\"size\\\",s=>{if(typeof s==\\\"number\\\"||s instanceof Date)return e<=s&&s<=r||`${n} ${i} but received \\\\`${s}\\\\``;if(s instanceof Map||s instanceof Set){let{size:o}=s;return e<=o&&o<=r||`${n} with a size ${i} but received one with a size of \\\\`${o}\\\\``}else{let{length:o}=s;return e<=o&&o<=r||`${n} with a length ${i} but received one with a length of \\\\`${o}\\\\``}})}function a2(t,e,r){return new Di({...t,*refiner(n,i){yield*t.refiner(n,i);let s=r(n,i),o=gie(s,i,t,n);for(let a of o)yield{...a,refinement:e}}})}var bj,Di,a1=x(()=>{u();bj=class extends TypeError{constructor(e,r){let n,{message:i,explanation:s,...o}=e,{path:a}=e,c=a.length===0?i:`At path: ${a.join(\\\".\\\")} -- ${i}`;super(s??c),s!=null&&(this.cause=c),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...r()])}};Di=class{constructor(e){let{type:r,schema:n,validator:i,refiner:s,coercer:o=c=>c,entries:a=function*(){}}=e;this.type=r,this.schema=n,this.entries=a,this.coercer=o,i?this.validator=(c,l)=>{let d=i(c,l);return gie(d,l,this,c)}:this.validator=()=>[],s?this.refiner=(c,l)=>{let d=s(c,l);return gie(d,l,this,c)}:this.refiner=()=>[]}assert(e,r){return sMe(e,this,r)}create(e,r){return oMe(e,this,r)}is(e){return bie(e,this)}mask(e,r){return aMe(e,this,r)}validate(e,r={}){return q_(e,this,r)}}});var c0=q(zp=>{\\\"use strict\\\";u();Object.defineProperty(zp,\\\"__esModule\\\",{value:!0});zp.assertExhaustive=zp.assertStruct=zp.assert=zp.AssertionError=void 0;var d3t=(a1(),mt(o1));function f3t(t){return typeof t==\\\"object\\\"&&t!==null&&\\\"message\\\"in t}function p3t(t){var e,r;return typeof((r=(e=t?.prototype)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.name)==\\\"string\\\"}function h3t(t){let e=f3t(t)?t.message:String(t);return e.endsWith(\\\".\\\")?e.slice(0,-1):e}function fMe(t,e){return p3t(t)?new t({message:e}):t({message:e})}var o9=class extends Error{constructor(e){super(e.message),this.code=\\\"ERR_ASSERTION\\\"}};zp.AssertionError=o9;function m3t(t,e=\\\"Assertion failed.\\\",r=o9){if(!t)throw e instanceof Error?e:fMe(r,e)}zp.assert=m3t;function g3t(t,e,r=\\\"Assertion failed\\\",n=o9){try{(0,d3t.assert)(t,e)}catch(i){throw fMe(n,`${r}: ${h3t(i)}.`)}}zp.assertStruct=g3t;function y3t(t){throw new Error(\\\"Invalid branch reached. Should be detected during compilation.\\\")}zp.assertExhaustive=y3t});var xie=q(wj=>{\\\"use strict\\\";u();Object.defineProperty(wj,\\\"__esModule\\\",{value:!0});wj.base64=void 0;var b3t=(a1(),mt(o1)),w3t=c0(),v3t=(t,e={})=>{var r,n;let i=(r=e.paddingRequired)!==null&&r!==void 0?r:!1,s=(n=e.characterSet)!==null&&n!==void 0?n:\\\"base64\\\",o;s===\\\"base64\\\"?o=String.raw`[A-Za-z0-9+\\\\/]`:((0,w3t.assert)(s===\\\"base64url\\\"),o=String.raw`[-_A-Za-z0-9]`);let a;return i?a=new RegExp(`^(?:${o}{4})*(?:${o}{3}=|${o}{2}==)?$`,\\\"u\\\"):a=new RegExp(`^(?:${o}{4})*(?:${o}{2,3}|${o}{3}=|${o}{2}==)?$`,\\\"u\\\"),(0,b3t.pattern)(t,a)};wj.base64=v3t});var a9=q(Ps=>{\\\"use strict\\\";u();Object.defineProperty(Ps,\\\"__esModule\\\",{value:!0});Ps.remove0x=Ps.add0x=Ps.assertIsStrictHexString=Ps.assertIsHexString=Ps.isStrictHexString=Ps.isHexString=Ps.StrictHexStruct=Ps.HexStruct=void 0;var z_=(a1(),mt(o1)),pMe=c0();Ps.HexStruct=(0,z_.pattern)((0,z_.string)(),/^(?:0x)?[0-9a-f]+$/iu);Ps.StrictHexStruct=(0,z_.pattern)((0,z_.string)(),/^0x[0-9a-f]+$/iu);function hMe(t){return(0,z_.is)(t,Ps.HexStruct)}Ps.isHexString=hMe;function mMe(t){return(0,z_.is)(t,Ps.StrictHexStruct)}Ps.isStrictHexString=mMe;function x3t(t){(0,pMe.assert)(hMe(t),\\\"Value must be a hexadecimal string.\\\")}Ps.assertIsHexString=x3t;function E3t(t){(0,pMe.assert)(mMe(t),'Value must be a hexadecimal string, starting with \\\"0x\\\".')}Ps.assertIsStrictHexString=E3t;function _3t(t){return t.startsWith(\\\"0x\\\")?t:t.startsWith(\\\"0X\\\")?`0x${t.substring(2)}`:`0x${t}`}Ps.add0x=_3t;function C3t(t){return t.startsWith(\\\"0x\\\")||t.startsWith(\\\"0X\\\")?t.substring(2):t}Ps.remove0x=C3t});var Cie=q(Ar=>{\\\"use strict\\\";u();Object.defineProperty(Ar,\\\"__esModule\\\",{value:!0});Ar.createDataView=Ar.concatBytes=Ar.valueToBytes=Ar.stringToBytes=Ar.numberToBytes=Ar.signedBigIntToBytes=Ar.bigIntToBytes=Ar.hexToBytes=Ar.bytesToString=Ar.bytesToNumber=Ar.bytesToSignedBigInt=Ar.bytesToBigInt=Ar.bytesToHex=Ar.assertIsBytes=Ar.isBytes=void 0;var Ol=c0(),Eie=a9(),gMe=48,yMe=58,bMe=87;function S3t(){let t=[];return()=>{if(t.length===0)for(let e=0;e<256;e++)t.push(e.toString(16).padStart(2,\\\"0\\\"));return t}}var A3t=S3t();function _ie(t){return t instanceof Uint8Array}Ar.isBytes=_ie;function $_(t){(0,Ol.assert)(_ie(t),\\\"Value must be a Uint8Array.\\\")}Ar.assertIsBytes=$_;function wMe(t){if($_(t),t.length===0)return\\\"0x\\\";let e=A3t(),r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=e[t[n]];return(0,Eie.add0x)(r.join(\\\"\\\"))}Ar.bytesToHex=wMe;function vMe(t){$_(t);let e=wMe(t);return BigInt(e)}Ar.bytesToBigInt=vMe;function T3t(t){$_(t);let e=BigInt(0);for(let r of t)e=(e<<BigInt(8))+BigInt(r);return BigInt.asIntN(t.length*8,e)}Ar.bytesToSignedBigInt=T3t;function I3t(t){$_(t);let e=vMe(t);return(0,Ol.assert)(e<=BigInt(Number.MAX_SAFE_INTEGER),\\\"Number is not a safe integer. Use `bytesToBigInt` instead.\\\"),Number(e)}Ar.bytesToNumber=I3t;function R3t(t){return $_(t),new TextDecoder().decode(t)}Ar.bytesToString=R3t;function vj(t){var e;if(((e=t?.toLowerCase)===null||e===void 0?void 0:e.call(t))===\\\"0x\\\")return new Uint8Array;(0,Eie.assertIsHexString)(t);let r=(0,Eie.remove0x)(t).toLowerCase(),n=r.length%2===0?r:`0${r}`,i=new Uint8Array(n.length/2);for(let s=0;s<i.length;s++){let o=n.charCodeAt(s*2),a=n.charCodeAt(s*2+1),c=o-(o<yMe?gMe:bMe),l=a-(a<yMe?gMe:bMe);i[s]=c*16+l}return i}Ar.hexToBytes=vj;function xMe(t){(0,Ol.assert)(typeof t==\\\"bigint\\\",\\\"Value must be a bigint.\\\"),(0,Ol.assert)(t>=BigInt(0),\\\"Value must be a non-negative bigint.\\\");let e=t.toString(16);return vj(e)}Ar.bigIntToBytes=xMe;function P3t(t,e){(0,Ol.assert)(e>0);let r=t>>BigInt(31);return!((~t&r)+(t&~r)>>BigInt(e*8+-1))}function O3t(t,e){(0,Ol.assert)(typeof t==\\\"bigint\\\",\\\"Value must be a bigint.\\\"),(0,Ol.assert)(typeof e==\\\"number\\\",\\\"Byte length must be a number.\\\"),(0,Ol.assert)(e>0,\\\"Byte length must be greater than 0.\\\"),(0,Ol.assert)(P3t(t,e),\\\"Byte length is too small to represent the given value.\\\");let r=t,n=new Uint8Array(e);for(let i=0;i<n.length;i++)n[i]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()}Ar.signedBigIntToBytes=O3t;function EMe(t){(0,Ol.assert)(typeof t==\\\"number\\\",\\\"Value must be a number.\\\"),(0,Ol.assert)(t>=0,\\\"Value must be a non-negative number.\\\"),(0,Ol.assert)(Number.isSafeInteger(t),\\\"Value is not a safe integer. Use `bigIntToBytes` instead.\\\");let e=t.toString(16);return vj(e)}Ar.numberToBytes=EMe;function _Me(t){return(0,Ol.assert)(typeof t==\\\"string\\\",\\\"Value must be a string.\\\"),new TextEncoder().encode(t)}Ar.stringToBytes=_Me;function CMe(t){if(typeof t==\\\"bigint\\\")return xMe(t);if(typeof t==\\\"number\\\")return EMe(t);if(typeof t==\\\"string\\\")return t.startsWith(\\\"0x\\\")?vj(t):_Me(t);if(_ie(t))return t;throw new TypeError(`Unsupported value type: \\\"${typeof t}\\\".`)}Ar.valueToBytes=CMe;function N3t(t){let e=new Array(t.length),r=0;for(let i=0;i<t.length;i++){let s=CMe(t[i]);e[i]=s,r+=s.length}let n=new Uint8Array(r);for(let i=0,s=0;i<e.length;i++)n.set(e[i],s),s+=e[i].length;return n}Ar.concatBytes=N3t;function k3t(t){if(typeof globalThis.Buffer<\\\"u\\\"&&t instanceof globalThis.Buffer){let e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new DataView(e)}return new DataView(t.buffer,t.byteOffset,t.byteLength)}Ar.createDataView=k3t});var AMe=q(xj=>{\\\"use strict\\\";u();Object.defineProperty(xj,\\\"__esModule\\\",{value:!0});xj.ChecksumStruct=void 0;var SMe=(a1(),mt(o1)),B3t=xie();xj.ChecksumStruct=(0,SMe.size)((0,B3t.base64)((0,SMe.string)(),{paddingRequired:!0}),44,44)});var RMe=q($p=>{\\\"use strict\\\";u();Object.defineProperty($p,\\\"__esModule\\\",{value:!0});$p.createHex=$p.createBytes=$p.createBigInt=$p.createNumber=void 0;var Li=(a1(),mt(o1)),M3t=c0(),TMe=Cie(),Ej=a9(),IMe=(0,Li.union)([(0,Li.number)(),(0,Li.bigint)(),(0,Li.string)(),Ej.StrictHexStruct]),D3t=(0,Li.coerce)((0,Li.number)(),IMe,Number),L3t=(0,Li.coerce)((0,Li.bigint)(),IMe,BigInt),arn=(0,Li.union)([Ej.StrictHexStruct,(0,Li.instance)(Uint8Array)]),U3t=(0,Li.coerce)((0,Li.instance)(Uint8Array),(0,Li.union)([Ej.StrictHexStruct]),TMe.hexToBytes),F3t=(0,Li.coerce)(Ej.StrictHexStruct,(0,Li.instance)(Uint8Array),TMe.bytesToHex);function j3t(t){try{let e=(0,Li.create)(t,D3t);return(0,M3t.assert)(Number.isFinite(e),`Expected a number-like value, got \\\"${t}\\\".`),e}catch(e){throw e instanceof Li.StructError?new Error(`Expected a number-like value, got \\\"${t}\\\".`):e}}$p.createNumber=j3t;function H3t(t){try{return(0,Li.create)(t,L3t)}catch(e){throw e instanceof Li.StructError?new Error(`Expected a number-like value, got \\\"${String(e.value)}\\\".`):e}}$p.createBigInt=H3t;function q3t(t){if(typeof t==\\\"string\\\"&&t.toLowerCase()===\\\"0x\\\")return new Uint8Array;try{return(0,Li.create)(t,U3t)}catch(e){throw e instanceof Li.StructError?new Error(`Expected a bytes-like value, got \\\"${String(e.value)}\\\".`):e}}$p.createBytes=q3t;function z3t(t){if(t instanceof Uint8Array&&t.length===0||typeof t==\\\"string\\\"&&t.toLowerCase()===\\\"0x\\\")return\\\"0x\\\";try{return(0,Li.create)(t,F3t)}catch(e){throw e instanceof Li.StructError?new Error(`Expected a bytes-like value, got \\\"${String(e.value)}\\\".`):e}}$p.createHex=z3t});var OMe=q(Wp=>{\\\"use strict\\\";u();var PMe=Wp&&Wp.__classPrivateFieldSet||function(t,e,r,n,i){if(n===\\\"m\\\")throw new TypeError(\\\"Private method is not writable\\\");if(n===\\\"a\\\"&&!i)throw new TypeError(\\\"Private accessor was defined without a setter\\\");if(typeof e==\\\"function\\\"?t!==e||!i:!e.has(t))throw new TypeError(\\\"Cannot write private member to an object whose class did not declare it\\\");return n===\\\"a\\\"?i.call(t,r):i?i.value=r:e.set(t,r),r},ec=Wp&&Wp.__classPrivateFieldGet||function(t,e,r,n){if(r===\\\"a\\\"&&!n)throw new TypeError(\\\"Private accessor was defined without a getter\\\");if(typeof e==\\\"function\\\"?t!==e||!n:!e.has(t))throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");return r===\\\"m\\\"?n:r===\\\"a\\\"?n.call(t):n?n.value:e.get(t)},uf,Vp;Object.defineProperty(Wp,\\\"__esModule\\\",{value:!0});Wp.FrozenSet=Wp.FrozenMap=void 0;var c9=class{constructor(e){uf.set(this,void 0),PMe(this,uf,new Map(e),\\\"f\\\"),Object.freeze(this)}get size(){return ec(this,uf,\\\"f\\\").size}[(uf=new WeakMap,Symbol.iterator)](){return ec(this,uf,\\\"f\\\")[Symbol.iterator]()}entries(){return ec(this,uf,\\\"f\\\").entries()}forEach(e,r){return ec(this,uf,\\\"f\\\").forEach((n,i,s)=>e.call(r,n,i,this))}get(e){return ec(this,uf,\\\"f\\\").get(e)}has(e){return ec(this,uf,\\\"f\\\").has(e)}keys(){return ec(this,uf,\\\"f\\\").keys()}values(){return ec(this,uf,\\\"f\\\").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,r])=>`${String(e)} => ${String(r)}`).join(\\\", \\\")} `:\\\"\\\"}}`}};Wp.FrozenMap=c9;var l9=class{constructor(e){Vp.set(this,void 0),PMe(this,Vp,new Set(e),\\\"f\\\"),Object.freeze(this)}get size(){return ec(this,Vp,\\\"f\\\").size}[(Vp=new WeakMap,Symbol.iterator)](){return ec(this,Vp,\\\"f\\\")[Symbol.iterator]()}entries(){return ec(this,Vp,\\\"f\\\").entries()}forEach(e,r){return ec(this,Vp,\\\"f\\\").forEach((n,i,s)=>e.call(r,n,i,this))}has(e){return ec(this,Vp,\\\"f\\\").has(e)}keys(){return ec(this,Vp,\\\"f\\\").keys()}values(){return ec(this,Vp,\\\"f\\\").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(\\\", \\\")} `:\\\"\\\"}}`}};Wp.FrozenSet=l9;Object.freeze(c9);Object.freeze(c9.prototype);Object.freeze(l9);Object.freeze(l9.prototype)});var kMe=q(NMe=>{\\\"use strict\\\";u();Object.defineProperty(NMe,\\\"__esModule\\\",{value:!0})});var BMe=q(he=>{\\\"use strict\\\";u();Object.defineProperty(he,\\\"__esModule\\\",{value:!0});he.getJsonRpcIdValidator=he.assertIsJsonRpcError=he.isJsonRpcError=he.assertIsJsonRpcFailure=he.isJsonRpcFailure=he.assertIsJsonRpcSuccess=he.isJsonRpcSuccess=he.assertIsJsonRpcResponse=he.isJsonRpcResponse=he.assertIsPendingJsonRpcResponse=he.isPendingJsonRpcResponse=he.JsonRpcResponseStruct=he.JsonRpcFailureStruct=he.JsonRpcSuccessStruct=he.PendingJsonRpcResponseStruct=he.assertIsJsonRpcRequest=he.isJsonRpcRequest=he.assertIsJsonRpcNotification=he.isJsonRpcNotification=he.JsonRpcNotificationStruct=he.JsonRpcRequestStruct=he.JsonRpcParamsStruct=he.JsonRpcErrorStruct=he.JsonRpcIdStruct=he.JsonRpcVersionStruct=he.jsonrpc2=he.getJsonSize=he.isValidJson=he.JsonStruct=he.UnsafeJsonStruct=void 0;var dt=(a1(),mt(o1)),c1=c0(),$3t=()=>(0,dt.define)(\\\"finite number\\\",t=>(0,dt.is)(t,(0,dt.number)())&&Number.isFinite(t));he.UnsafeJsonStruct=(0,dt.union)([(0,dt.literal)(null),(0,dt.boolean)(),$3t(),(0,dt.string)(),(0,dt.array)((0,dt.lazy)(()=>he.UnsafeJsonStruct)),(0,dt.record)((0,dt.string)(),(0,dt.lazy)(()=>he.UnsafeJsonStruct))]);he.JsonStruct=(0,dt.define)(\\\"Json\\\",(t,e)=>{function r(n,i){let o=[...i.validator(n,e)];return o.length>0?o:!0}try{let n=r(t,he.UnsafeJsonStruct);return n!==!0?n:r(JSON.parse(JSON.stringify(t)),he.UnsafeJsonStruct)}catch(n){return n instanceof RangeError?\\\"Circular reference detected\\\":!1}});function V3t(t){return(0,dt.is)(t,he.JsonStruct)}he.isValidJson=V3t;function W3t(t){(0,c1.assertStruct)(t,he.JsonStruct,\\\"Invalid JSON value\\\");let e=JSON.stringify(t);return new TextEncoder().encode(e).byteLength}he.getJsonSize=W3t;he.jsonrpc2=\\\"2.0\\\";he.JsonRpcVersionStruct=(0,dt.literal)(he.jsonrpc2);he.JsonRpcIdStruct=(0,dt.nullable)((0,dt.union)([(0,dt.number)(),(0,dt.string)()]));he.JsonRpcErrorStruct=(0,dt.object)({code:(0,dt.integer)(),message:(0,dt.string)(),data:(0,dt.optional)(he.JsonStruct),stack:(0,dt.optional)((0,dt.string)())});he.JsonRpcParamsStruct=(0,dt.optional)((0,dt.union)([(0,dt.record)((0,dt.string)(),he.JsonStruct),(0,dt.array)(he.JsonStruct)]));he.JsonRpcRequestStruct=(0,dt.object)({id:he.JsonRpcIdStruct,jsonrpc:he.JsonRpcVersionStruct,method:(0,dt.string)(),params:he.JsonRpcParamsStruct});he.JsonRpcNotificationStruct=(0,dt.omit)(he.JsonRpcRequestStruct,[\\\"id\\\"]);function G3t(t){return(0,dt.is)(t,he.JsonRpcNotificationStruct)}he.isJsonRpcNotification=G3t;function K3t(t,e){(0,c1.assertStruct)(t,he.JsonRpcNotificationStruct,\\\"Invalid JSON-RPC notification\\\",e)}he.assertIsJsonRpcNotification=K3t;function Z3t(t){return(0,dt.is)(t,he.JsonRpcRequestStruct)}he.isJsonRpcRequest=Z3t;function Q3t(t,e){(0,c1.assertStruct)(t,he.JsonRpcRequestStruct,\\\"Invalid JSON-RPC request\\\",e)}he.assertIsJsonRpcRequest=Q3t;he.PendingJsonRpcResponseStruct=(0,dt.object)({id:he.JsonRpcIdStruct,jsonrpc:he.JsonRpcVersionStruct,result:(0,dt.optional)((0,dt.unknown)()),error:(0,dt.optional)(he.JsonRpcErrorStruct)});he.JsonRpcSuccessStruct=(0,dt.object)({id:he.JsonRpcIdStruct,jsonrpc:he.JsonRpcVersionStruct,result:he.JsonStruct});he.JsonRpcFailureStruct=(0,dt.object)({id:he.JsonRpcIdStruct,jsonrpc:he.JsonRpcVersionStruct,error:he.JsonRpcErrorStruct});he.JsonRpcResponseStruct=(0,dt.union)([he.JsonRpcSuccessStruct,he.JsonRpcFailureStruct]);function J3t(t){return(0,dt.is)(t,he.PendingJsonRpcResponseStruct)}he.isPendingJsonRpcResponse=J3t;function Y3t(t,e){(0,c1.assertStruct)(t,he.PendingJsonRpcResponseStruct,\\\"Invalid pending JSON-RPC response\\\",e)}he.assertIsPendingJsonRpcResponse=Y3t;function X3t(t){return(0,dt.is)(t,he.JsonRpcResponseStruct)}he.isJsonRpcResponse=X3t;function e_t(t,e){(0,c1.assertStruct)(t,he.JsonRpcResponseStruct,\\\"Invalid JSON-RPC response\\\",e)}he.assertIsJsonRpcResponse=e_t;function t_t(t){return(0,dt.is)(t,he.JsonRpcSuccessStruct)}he.isJsonRpcSuccess=t_t;function r_t(t,e){(0,c1.assertStruct)(t,he.JsonRpcSuccessStruct,\\\"Invalid JSON-RPC success response\\\",e)}he.assertIsJsonRpcSuccess=r_t;function n_t(t){return(0,dt.is)(t,he.JsonRpcFailureStruct)}he.isJsonRpcFailure=n_t;function i_t(t,e){(0,c1.assertStruct)(t,he.JsonRpcFailureStruct,\\\"Invalid JSON-RPC failure response\\\",e)}he.assertIsJsonRpcFailure=i_t;function s_t(t){return(0,dt.is)(t,he.JsonRpcErrorStruct)}he.isJsonRpcError=s_t;function o_t(t,e){(0,c1.assertStruct)(t,he.JsonRpcErrorStruct,\\\"Invalid JSON-RPC error\\\",e)}he.assertIsJsonRpcError=o_t;function a_t(t){let{permitEmptyString:e,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},t);return s=>!!(typeof s==\\\"number\\\"&&(r||Number.isInteger(s))||typeof s==\\\"string\\\"&&(e||s.length>0)||n&&s===null)}he.getJsonRpcIdValidator=a_t});var DMe=q(MMe=>{\\\"use strict\\\";u();Object.defineProperty(MMe,\\\"__esModule\\\",{value:!0})});var UMe=q((brn,LMe)=>{u();var V_=1e3,W_=V_*60,G_=W_*60,c2=G_*24,c_t=c2*7,l_t=c2*365.25;LMe.exports=function(t,e){e=e||{};var r=typeof t;if(r===\\\"string\\\"&&t.length>0)return u_t(t);if(r===\\\"number\\\"&&isFinite(t))return e.long?f_t(t):d_t(t);throw new Error(\\\"val is not a non-empty string or a valid number. val=\\\"+JSON.stringify(t))};function u_t(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\\\d+)?\\\\.?\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||\\\"ms\\\").toLowerCase();switch(n){case\\\"years\\\":case\\\"year\\\":case\\\"yrs\\\":case\\\"yr\\\":case\\\"y\\\":return r*l_t;case\\\"weeks\\\":case\\\"week\\\":case\\\"w\\\":return r*c_t;case\\\"days\\\":case\\\"day\\\":case\\\"d\\\":return r*c2;case\\\"hours\\\":case\\\"hour\\\":case\\\"hrs\\\":case\\\"hr\\\":case\\\"h\\\":return r*G_;case\\\"minutes\\\":case\\\"minute\\\":case\\\"mins\\\":case\\\"min\\\":case\\\"m\\\":return r*W_;case\\\"seconds\\\":case\\\"second\\\":case\\\"secs\\\":case\\\"sec\\\":case\\\"s\\\":return r*V_;case\\\"milliseconds\\\":case\\\"millisecond\\\":case\\\"msecs\\\":case\\\"msec\\\":case\\\"ms\\\":return r;default:return}}}}function d_t(t){var e=Math.abs(t);return e>=c2?Math.round(t/c2)+\\\"d\\\":e>=G_?Math.round(t/G_)+\\\"h\\\":e>=W_?Math.round(t/W_)+\\\"m\\\":e>=V_?Math.round(t/V_)+\\\"s\\\":t+\\\"ms\\\"}function f_t(t){var e=Math.abs(t);return e>=c2?_j(t,e,c2,\\\"day\\\"):e>=G_?_j(t,e,G_,\\\"hour\\\"):e>=W_?_j(t,e,W_,\\\"minute\\\"):e>=V_?_j(t,e,V_,\\\"second\\\"):t+\\\" ms\\\"}function _j(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+\\\" \\\"+n+(i?\\\"s\\\":\\\"\\\")}});var jMe=q((vrn,FMe)=>{u();function p_t(t){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=UMe(),r.destroy=l,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let p=0;p<d.length;p++)f=(f<<5)-f+d.charCodeAt(p),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(d){let f,p=null,h,m;function g(...w){if(!g.enabled)return;let v=g,b=Number(new Date),_=b-(f||b);v.diff=_,v.prev=f,v.curr=b,f=b,w[0]=r.coerce(w[0]),typeof w[0]!=\\\"string\\\"&&w.unshift(\\\"%O\\\");let S=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(N,O)=>{if(N===\\\"%%\\\")return\\\"%\\\";S++;let L=r.formatters[O];if(typeof L==\\\"function\\\"){let B=w[S];N=L.call(v,B),w.splice(S,1),S--}return N}),r.formatArgs.call(v,w),(v.log||r.log).apply(v,w)}return g.namespace=d,g.useColors=r.useColors(),g.color=r.selectColor(d),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,\\\"enabled\\\",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==r.namespaces&&(h=r.namespaces,m=r.enabled(d)),m),set:w=>{p=w}}),typeof r.init==\\\"function\\\"&&r.init(g),g}function n(d,f){let p=r(this.namespace+(typeof f>\\\"u\\\"?\\\":\\\":f)+d);return p.log=this.log,p}function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f=(typeof d==\\\"string\\\"?d:\\\"\\\").trim().replace(/\\\\s+/g,\\\",\\\").split(\\\",\\\").filter(Boolean);for(let p of f)p[0]===\\\"-\\\"?r.skips.push(p.slice(1)):r.names.push(p)}function s(d,f){let p=0,h=0,m=-1,g=0;for(;p<d.length;)if(h<f.length&&(f[h]===d[p]||f[h]===\\\"*\\\"))f[h]===\\\"*\\\"?(m=h,g=p,h++):(p++,h++);else if(m!==-1)h=m+1,g++,p=g;else return!1;for(;h<f.length&&f[h]===\\\"*\\\";)h++;return h===f.length}function o(){let d=[...r.names,...r.skips.map(f=>\\\"-\\\"+f)].join(\\\",\\\");return r.enable(\\\"\\\"),d}function a(d){for(let f of r.skips)if(s(d,f))return!1;for(let f of r.names)if(s(d,f))return!0;return!1}function c(d){return d instanceof Error?d.stack||d.message:d}function l(){console.warn(\\\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\\\")}return r.enable(r.load()),r}FMe.exports=p_t});var HMe=q((Hc,Cj)=>{u();Hc.formatArgs=m_t;Hc.save=g_t;Hc.load=y_t;Hc.useColors=h_t;Hc.storage=b_t();Hc.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn(\\\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\\\"))}})();Hc.colors=[\\\"#0000CC\\\",\\\"#0000FF\\\",\\\"#0033CC\\\",\\\"#0033FF\\\",\\\"#0066CC\\\",\\\"#0066FF\\\",\\\"#0099CC\\\",\\\"#0099FF\\\",\\\"#00CC00\\\",\\\"#00CC33\\\",\\\"#00CC66\\\",\\\"#00CC99\\\",\\\"#00CCCC\\\",\\\"#00CCFF\\\",\\\"#3300CC\\\",\\\"#3300FF\\\",\\\"#3333CC\\\",\\\"#3333FF\\\",\\\"#3366CC\\\",\\\"#3366FF\\\",\\\"#3399CC\\\",\\\"#3399FF\\\",\\\"#33CC00\\\",\\\"#33CC33\\\",\\\"#33CC66\\\",\\\"#33CC99\\\",\\\"#33CCCC\\\",\\\"#33CCFF\\\",\\\"#6600CC\\\",\\\"#6600FF\\\",\\\"#6633CC\\\",\\\"#6633FF\\\",\\\"#66CC00\\\",\\\"#66CC33\\\",\\\"#9900CC\\\",\\\"#9900FF\\\",\\\"#9933CC\\\",\\\"#9933FF\\\",\\\"#99CC00\\\",\\\"#99CC33\\\",\\\"#CC0000\\\",\\\"#CC0033\\\",\\\"#CC0066\\\",\\\"#CC0099\\\",\\\"#CC00CC\\\",\\\"#CC00FF\\\",\\\"#CC3300\\\",\\\"#CC3333\\\",\\\"#CC3366\\\",\\\"#CC3399\\\",\\\"#CC33CC\\\",\\\"#CC33FF\\\",\\\"#CC6600\\\",\\\"#CC6633\\\",\\\"#CC9900\\\",\\\"#CC9933\\\",\\\"#CCCC00\\\",\\\"#CCCC33\\\",\\\"#FF0000\\\",\\\"#FF0033\\\",\\\"#FF0066\\\",\\\"#FF0099\\\",\\\"#FF00CC\\\",\\\"#FF00FF\\\",\\\"#FF3300\\\",\\\"#FF3333\\\",\\\"#FF3366\\\",\\\"#FF3399\\\",\\\"#FF33CC\\\",\\\"#FF33FF\\\",\\\"#FF6600\\\",\\\"#FF6633\\\",\\\"#FF9900\\\",\\\"#FF9933\\\",\\\"#FFCC00\\\",\\\"#FFCC33\\\"];function h_t(){if(typeof window<\\\"u\\\"&&window.process&&(window.process.type===\\\"renderer\\\"||window.process.__nwjs))return!0;if(typeof navigator<\\\"u\\\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\/(\\\\d+)/))return!1;let t;return typeof document<\\\"u\\\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\\\"u\\\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\\\"u\\\"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\\\\/(\\\\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<\\\"u\\\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\\\/(\\\\d+)/)}function m_t(t){if(t[0]=(this.useColors?\\\"%c\\\":\\\"\\\")+this.namespace+(this.useColors?\\\" %c\\\":\\\" \\\")+t[0]+(this.useColors?\\\"%c \\\":\\\" \\\")+\\\"+\\\"+Cj.exports.humanize(this.diff),!this.useColors)return;let e=\\\"color: \\\"+this.color;t.splice(1,0,e,\\\"color: inherit\\\");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!==\\\"%%\\\"&&(r++,i===\\\"%c\\\"&&(n=r))}),t.splice(n,0,e)}Hc.log=console.debug||console.log||(()=>{});function g_t(t){try{t?Hc.storage.setItem(\\\"debug\\\",t):Hc.storage.removeItem(\\\"debug\\\")}catch{}}function y_t(){let t;try{t=Hc.storage.getItem(\\\"debug\\\")||Hc.storage.getItem(\\\"DEBUG\\\")}catch{}return!t&&typeof process<\\\"u\\\"&&\\\"env\\\"in process&&(t=process.env.DEBUG),t}function b_t(){try{return localStorage}catch{}}Cj.exports=jMe()(Hc);var{formatters:w_t}=Cj.exports;w_t.j=function(t){try{return JSON.stringify(t)}catch(e){return\\\"[UnexpectedJSONParseError]: \\\"+e.message}}});var qMe=q(l1=>{\\\"use strict\\\";u();var v_t=l1&&l1.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(l1,\\\"__esModule\\\",{value:!0});l1.createModuleLogger=l1.createProjectLogger=void 0;var x_t=v_t(HMe()),E_t=(0,x_t.default)(\\\"metamask\\\");function __t(t){return E_t.extend(t)}l1.createProjectLogger=__t;function C_t(t,e){return t.extend(e)}l1.createModuleLogger=C_t});var $Me=q(Ai=>{\\\"use strict\\\";u();Object.defineProperty(Ai,\\\"__esModule\\\",{value:!0});Ai.calculateNumberSize=Ai.calculateStringSize=Ai.isASCII=Ai.isPlainObject=Ai.ESCAPE_CHARACTERS_REGEXP=Ai.JsonSize=Ai.hasProperty=Ai.isObject=Ai.isNullOrUndefined=Ai.isNonEmptyArray=void 0;function S_t(t){return Array.isArray(t)&&t.length>0}Ai.isNonEmptyArray=S_t;function A_t(t){return t==null}Ai.isNullOrUndefined=A_t;function T_t(t){return!!t&&typeof t==\\\"object\\\"&&!Array.isArray(t)}Ai.isObject=T_t;var I_t=(t,e)=>Object.hasOwnProperty.call(t,e);Ai.hasProperty=I_t;var R_t;(function(t){t[t.Null=4]=\\\"Null\\\",t[t.Comma=1]=\\\"Comma\\\",t[t.Wrapper=1]=\\\"Wrapper\\\",t[t.True=4]=\\\"True\\\",t[t.False=5]=\\\"False\\\",t[t.Quote=1]=\\\"Quote\\\",t[t.Colon=1]=\\\"Colon\\\",t[t.Date=24]=\\\"Date\\\"})(R_t=Ai.JsonSize||(Ai.JsonSize={}));Ai.ESCAPE_CHARACTERS_REGEXP=/\\\"|\\\\\\\\|\\\\n|\\\\r|\\\\t/gu;function P_t(t){if(typeof t!=\\\"object\\\"||t===null)return!1;try{let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}catch{return!1}}Ai.isPlainObject=P_t;function zMe(t){return t.charCodeAt(0)<=127}Ai.isASCII=zMe;function O_t(t){var e;return t.split(\\\"\\\").reduce((n,i)=>zMe(i)?n+1:n+2,0)+((e=t.match(Ai.ESCAPE_CHARACTERS_REGEXP))!==null&&e!==void 0?e:[]).length}Ai.calculateStringSize=O_t;function N_t(t){return t.toString().length}Ai.calculateNumberSize=N_t});var VMe=q(Gp=>{\\\"use strict\\\";u();Object.defineProperty(Gp,\\\"__esModule\\\",{value:!0});Gp.hexToBigInt=Gp.hexToNumber=Gp.bigIntToHex=Gp.numberToHex=void 0;var K_=c0(),u9=a9(),k_t=t=>((0,K_.assert)(typeof t==\\\"number\\\",\\\"Value must be a number.\\\"),(0,K_.assert)(t>=0,\\\"Value must be a non-negative number.\\\"),(0,K_.assert)(Number.isSafeInteger(t),\\\"Value is not a safe integer. Use `bigIntToHex` instead.\\\"),(0,u9.add0x)(t.toString(16)));Gp.numberToHex=k_t;var B_t=t=>((0,K_.assert)(typeof t==\\\"bigint\\\",\\\"Value must be a bigint.\\\"),(0,K_.assert)(t>=0,\\\"Value must be a non-negative bigint.\\\"),(0,u9.add0x)(t.toString(16)));Gp.bigIntToHex=B_t;var M_t=t=>{(0,u9.assertIsHexString)(t);let e=parseInt(t,16);return(0,K_.assert)(Number.isSafeInteger(e),\\\"Value is not a safe integer. Use `hexToBigInt` instead.\\\"),e};Gp.hexToNumber=M_t;var D_t=t=>((0,u9.assertIsHexString)(t),BigInt((0,u9.add0x)(t)));Gp.hexToBigInt=D_t});var GMe=q(WMe=>{\\\"use strict\\\";u();Object.defineProperty(WMe,\\\"__esModule\\\",{value:!0})});var ZMe=q(l0=>{\\\"use strict\\\";u();Object.defineProperty(l0,\\\"__esModule\\\",{value:!0});l0.timeSince=l0.inMilliseconds=l0.Duration=void 0;var L_t;(function(t){t[t.Millisecond=1]=\\\"Millisecond\\\",t[t.Second=1e3]=\\\"Second\\\",t[t.Minute=6e4]=\\\"Minute\\\",t[t.Hour=36e5]=\\\"Hour\\\",t[t.Day=864e5]=\\\"Day\\\",t[t.Week=6048e5]=\\\"Week\\\",t[t.Year=31536e6]=\\\"Year\\\"})(L_t=l0.Duration||(l0.Duration={}));var U_t=t=>Number.isInteger(t)&&t>=0,KMe=(t,e)=>{if(!U_t(t))throw new Error(`\\\"${e}\\\" must be a non-negative integer. Received: \\\"${t}\\\".`)};function F_t(t,e){return KMe(t,\\\"count\\\"),t*e}l0.inMilliseconds=F_t;function j_t(t){return KMe(t,\\\"timestamp\\\"),Date.now()-t}l0.timeSince=j_t});var JMe=q(QMe=>{\\\"use strict\\\";u();Object.defineProperty(QMe,\\\"__esModule\\\",{value:!0})});var d9=q((Mrn,YMe)=>{\\\"use strict\\\";u();var H_t=\\\"2.0.0\\\",q_t=Number.MAX_SAFE_INTEGER||9007199254740991,z_t=16,$_t=250,V_t=[\\\"major\\\",\\\"premajor\\\",\\\"minor\\\",\\\"preminor\\\",\\\"patch\\\",\\\"prepatch\\\",\\\"prerelease\\\"];YMe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:z_t,MAX_SAFE_BUILD_LENGTH:$_t,MAX_SAFE_INTEGER:q_t,RELEASE_TYPES:V_t,SEMVER_SPEC_VERSION:H_t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var f9=q((Lrn,XMe)=>{\\\"use strict\\\";u();var W_t=typeof process==\\\"object\\\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error(\\\"SEMVER\\\",...t):()=>{};XMe.exports=W_t});var Z_=q((Kp,eDe)=>{\\\"use strict\\\";u();var{MAX_SAFE_COMPONENT_LENGTH:Sie,MAX_SAFE_BUILD_LENGTH:G_t,MAX_LENGTH:K_t}=d9(),Z_t=f9();Kp=eDe.exports={};var Q_t=Kp.re=[],J_t=Kp.safeRe=[],De=Kp.src=[],Y_t=Kp.safeSrc=[],Le=Kp.t={},X_t=0,Aie=\\\"[a-zA-Z0-9-]\\\",eCt=[[\\\"\\\\\\\\s\\\",1],[\\\"\\\\\\\\d\\\",K_t],[Aie,G_t]],tCt=t=>{for(let[e,r]of eCt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},_t=(t,e,r)=>{let n=tCt(e),i=X_t++;Z_t(t,i,e),Le[t]=i,De[i]=e,Y_t[i]=n,Q_t[i]=new RegExp(e,r?\\\"g\\\":void 0),J_t[i]=new RegExp(n,r?\\\"g\\\":void 0)};_t(\\\"NUMERICIDENTIFIER\\\",\\\"0|[1-9]\\\\\\\\d*\\\");_t(\\\"NUMERICIDENTIFIERLOOSE\\\",\\\"\\\\\\\\d+\\\");_t(\\\"NONNUMERICIDENTIFIER\\\",`\\\\\\\\d*[a-zA-Z-]${Aie}*`);_t(\\\"MAINVERSION\\\",`(${De[Le.NUMERICIDENTIFIER]})\\\\\\\\.(${De[Le.NUMERICIDENTIFIER]})\\\\\\\\.(${De[Le.NUMERICIDENTIFIER]})`);_t(\\\"MAINVERSIONLOOSE\\\",`(${De[Le.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${De[Le.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${De[Le.NUMERICIDENTIFIERLOOSE]})`);_t(\\\"PRERELEASEIDENTIFIER\\\",`(?:${De[Le.NONNUMERICIDENTIFIER]}|${De[Le.NUMERICIDENTIFIER]})`);_t(\\\"PRERELEASEIDENTIFIERLOOSE\\\",`(?:${De[Le.NONNUMERICIDENTIFIER]}|${De[Le.NUMERICIDENTIFIERLOOSE]})`);_t(\\\"PRERELEASE\\\",`(?:-(${De[Le.PRERELEASEIDENTIFIER]}(?:\\\\\\\\.${De[Le.PRERELEASEIDENTIFIER]})*))`);_t(\\\"PRERELEASELOOSE\\\",`(?:-?(${De[Le.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\\\\\.${De[Le.PRERELEASEIDENTIFIERLOOSE]})*))`);_t(\\\"BUILDIDENTIFIER\\\",`${Aie}+`);_t(\\\"BUILD\\\",`(?:\\\\\\\\+(${De[Le.BUILDIDENTIFIER]}(?:\\\\\\\\.${De[Le.BUILDIDENTIFIER]})*))`);_t(\\\"FULLPLAIN\\\",`v?${De[Le.MAINVERSION]}${De[Le.PRERELEASE]}?${De[Le.BUILD]}?`);_t(\\\"FULL\\\",`^${De[Le.FULLPLAIN]}$`);_t(\\\"LOOSEPLAIN\\\",`[v=\\\\\\\\s]*${De[Le.MAINVERSIONLOOSE]}${De[Le.PRERELEASELOOSE]}?${De[Le.BUILD]}?`);_t(\\\"LOOSE\\\",`^${De[Le.LOOSEPLAIN]}$`);_t(\\\"GTLT\\\",\\\"((?:<|>)?=?)\\\");_t(\\\"XRANGEIDENTIFIERLOOSE\\\",`${De[Le.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\\\\\*`);_t(\\\"XRANGEIDENTIFIER\\\",`${De[Le.NUMERICIDENTIFIER]}|x|X|\\\\\\\\*`);_t(\\\"XRANGEPLAIN\\\",`[v=\\\\\\\\s]*(${De[Le.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${De[Le.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${De[Le.XRANGEIDENTIFIER]})(?:${De[Le.PRERELEASE]})?${De[Le.BUILD]}?)?)?`);_t(\\\"XRANGEPLAINLOOSE\\\",`[v=\\\\\\\\s]*(${De[Le.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${De[Le.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${De[Le.XRANGEIDENTIFIERLOOSE]})(?:${De[Le.PRERELEASELOOSE]})?${De[Le.BUILD]}?)?)?`);_t(\\\"XRANGE\\\",`^${De[Le.GTLT]}\\\\\\\\s*${De[Le.XRANGEPLAIN]}$`);_t(\\\"XRANGELOOSE\\\",`^${De[Le.GTLT]}\\\\\\\\s*${De[Le.XRANGEPLAINLOOSE]}$`);_t(\\\"COERCEPLAIN\\\",`(^|[^\\\\\\\\d])(\\\\\\\\d{1,${Sie}})(?:\\\\\\\\.(\\\\\\\\d{1,${Sie}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${Sie}}))?`);_t(\\\"COERCE\\\",`${De[Le.COERCEPLAIN]}(?:$|[^\\\\\\\\d])`);_t(\\\"COERCEFULL\\\",De[Le.COERCEPLAIN]+`(?:${De[Le.PRERELEASE]})?(?:${De[Le.BUILD]})?(?:$|[^\\\\\\\\d])`);_t(\\\"COERCERTL\\\",De[Le.COERCE],!0);_t(\\\"COERCERTLFULL\\\",De[Le.COERCEFULL],!0);_t(\\\"LONETILDE\\\",\\\"(?:~>?)\\\");_t(\\\"TILDETRIM\\\",`(\\\\\\\\s*)${De[Le.LONETILDE]}\\\\\\\\s+`,!0);Kp.tildeTrimReplace=\\\"$1~\\\";_t(\\\"TILDE\\\",`^${De[Le.LONETILDE]}${De[Le.XRANGEPLAIN]}$`);_t(\\\"TILDELOOSE\\\",`^${De[Le.LONETILDE]}${De[Le.XRANGEPLAINLOOSE]}$`);_t(\\\"LONECARET\\\",\\\"(?:\\\\\\\\^)\\\");_t(\\\"CARETTRIM\\\",`(\\\\\\\\s*)${De[Le.LONECARET]}\\\\\\\\s+`,!0);Kp.caretTrimReplace=\\\"$1^\\\";_t(\\\"CARET\\\",`^${De[Le.LONECARET]}${De[Le.XRANGEPLAIN]}$`);_t(\\\"CARETLOOSE\\\",`^${De[Le.LONECARET]}${De[Le.XRANGEPLAINLOOSE]}$`);_t(\\\"COMPARATORLOOSE\\\",`^${De[Le.GTLT]}\\\\\\\\s*(${De[Le.LOOSEPLAIN]})$|^$`);_t(\\\"COMPARATOR\\\",`^${De[Le.GTLT]}\\\\\\\\s*(${De[Le.FULLPLAIN]})$|^$`);_t(\\\"COMPARATORTRIM\\\",`(\\\\\\\\s*)${De[Le.GTLT]}\\\\\\\\s*(${De[Le.LOOSEPLAIN]}|${De[Le.XRANGEPLAIN]})`,!0);Kp.comparatorTrimReplace=\\\"$1$2$3\\\";_t(\\\"HYPHENRANGE\\\",`^\\\\\\\\s*(${De[Le.XRANGEPLAIN]})\\\\\\\\s+-\\\\\\\\s+(${De[Le.XRANGEPLAIN]})\\\\\\\\s*$`);_t(\\\"HYPHENRANGELOOSE\\\",`^\\\\\\\\s*(${De[Le.XRANGEPLAINLOOSE]})\\\\\\\\s+-\\\\\\\\s+(${De[Le.XRANGEPLAINLOOSE]})\\\\\\\\s*$`);_t(\\\"STAR\\\",\\\"(<|>)?=?\\\\\\\\s*\\\\\\\\*\\\");_t(\\\"GTE0\\\",\\\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0\\\\\\\\s*$\\\");_t(\\\"GTE0PRE\\\",\\\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0-0\\\\\\\\s*$\\\")});var Sj=q((jrn,tDe)=>{\\\"use strict\\\";u();var rCt=Object.freeze({loose:!0}),nCt=Object.freeze({}),iCt=t=>t?typeof t!=\\\"object\\\"?rCt:t:nCt;tDe.exports=iCt});var Tie=q((qrn,iDe)=>{\\\"use strict\\\";u();var rDe=/^[0-9]+$/,nDe=(t,e)=>{if(typeof t==\\\"number\\\"&&typeof e==\\\"number\\\")return t===e?0:t<e?-1:1;let r=rDe.test(t),n=rDe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},sCt=(t,e)=>nDe(e,t);iDe.exports={compareIdentifiers:nDe,rcompareIdentifiers:sCt}});var Aa=q(($rn,oDe)=>{\\\"use strict\\\";u();var Aj=f9(),{MAX_LENGTH:sDe,MAX_SAFE_INTEGER:Tj}=d9(),{safeRe:Ij,t:Rj}=Z_(),oCt=Sj(),{compareIdentifiers:Iie}=Tie(),Rie=class t{constructor(e,r){if(r=oCt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!=\\\"string\\\")throw new TypeError(`Invalid version. Must be a string. Got type \\\"${typeof e}\\\".`);if(e.length>sDe)throw new TypeError(`version is longer than ${sDe} characters`);Aj(\\\"SemVer\\\",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Ij[Rj.LOOSE]:Ij[Rj.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Tj||this.major<0)throw new TypeError(\\\"Invalid major version\\\");if(this.minor>Tj||this.minor<0)throw new TypeError(\\\"Invalid minor version\\\");if(this.patch>Tj||this.patch<0)throw new TypeError(\\\"Invalid patch version\\\");n[4]?this.prerelease=n[4].split(\\\".\\\").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Tj)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split(\\\".\\\"):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(\\\".\\\")}`),this.version}toString(){return this.version}compare(e){if(Aj(\\\"SemVer.compare\\\",this.version,this.options,e),!(e instanceof t)){if(typeof e==\\\"string\\\"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(Aj(\\\"prerelease compare\\\",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Iie(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(Aj(\\\"build compare\\\",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Iie(n,i)}while(++r)}inc(e,r,n){if(e.startsWith(\\\"pre\\\")){if(!r&&n===!1)throw new Error(\\\"invalid increment argument: identifier is empty\\\");if(r){let i=`-${r}`.match(this.options.loose?Ij[Rj.PRERELEASELOOSE]:Ij[Rj.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case\\\"premajor\\\":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(\\\"pre\\\",r,n);break;case\\\"preminor\\\":this.prerelease.length=0,this.patch=0,this.minor++,this.inc(\\\"pre\\\",r,n);break;case\\\"prepatch\\\":this.prerelease.length=0,this.inc(\\\"patch\\\",r,n),this.inc(\\\"pre\\\",r,n);break;case\\\"prerelease\\\":this.prerelease.length===0&&this.inc(\\\"patch\\\",r,n),this.inc(\\\"pre\\\",r,n);break;case\\\"release\\\":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case\\\"major\\\":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case\\\"minor\\\":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case\\\"patch\\\":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case\\\"pre\\\":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]==\\\"number\\\"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(\\\".\\\")&&n===!1)throw new Error(\\\"invalid increment argument: identifier already exists\\\");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Iie(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(\\\".\\\")}`),this}};oDe.exports=Rie});var l2=q((Wrn,cDe)=>{\\\"use strict\\\";u();var aDe=Aa(),aCt=(t,e,r=!1)=>{if(t instanceof aDe)return t;try{return new aDe(t,e)}catch(n){if(!r)return null;throw n}};cDe.exports=aCt});var uDe=q((Krn,lDe)=>{\\\"use strict\\\";u();var cCt=l2(),lCt=(t,e)=>{let r=cCt(t,e);return r?r.version:null};lDe.exports=lCt});var fDe=q((Qrn,dDe)=>{\\\"use strict\\\";u();var uCt=l2(),dCt=(t,e)=>{let r=uCt(t.trim().replace(/^[=v]+/,\\\"\\\"),e);return r?r.version:null};dDe.exports=dCt});var mDe=q((Yrn,hDe)=>{\\\"use strict\\\";u();var pDe=Aa(),fCt=(t,e,r,n,i)=>{typeof r==\\\"string\\\"&&(i=n,n=r,r=void 0);try{return new pDe(t instanceof pDe?t.version:t,r).inc(e,n,i).version}catch{return null}};hDe.exports=fCt});var bDe=q((enn,yDe)=>{\\\"use strict\\\";u();var gDe=l2(),pCt=(t,e)=>{let r=gDe(t,null,!0),n=gDe(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return\\\"major\\\";if(a.compareMain(o)===0)return a.minor&&!a.patch?\\\"minor\\\":\\\"patch\\\"}let d=c?\\\"pre\\\":\\\"\\\";return r.major!==n.major?d+\\\"major\\\":r.minor!==n.minor?d+\\\"minor\\\":r.patch!==n.patch?d+\\\"patch\\\":\\\"prerelease\\\"};yDe.exports=pCt});var vDe=q((rnn,wDe)=>{\\\"use strict\\\";u();var hCt=Aa(),mCt=(t,e)=>new hCt(t,e).major;wDe.exports=mCt});var EDe=q((inn,xDe)=>{\\\"use strict\\\";u();var gCt=Aa(),yCt=(t,e)=>new gCt(t,e).minor;xDe.exports=yCt});var CDe=q((onn,_De)=>{\\\"use strict\\\";u();var bCt=Aa(),wCt=(t,e)=>new bCt(t,e).patch;_De.exports=wCt});var ADe=q((cnn,SDe)=>{\\\"use strict\\\";u();var vCt=l2(),xCt=(t,e)=>{let r=vCt(t,e);return r&&r.prerelease.length?r.prerelease:null};SDe.exports=xCt});var Qu=q((unn,IDe)=>{\\\"use strict\\\";u();var TDe=Aa(),ECt=(t,e,r)=>new TDe(t,r).compare(new TDe(e,r));IDe.exports=ECt});var PDe=q((fnn,RDe)=>{\\\"use strict\\\";u();var _Ct=Qu(),CCt=(t,e,r)=>_Ct(e,t,r);RDe.exports=CCt});var NDe=q((hnn,ODe)=>{\\\"use strict\\\";u();var SCt=Qu(),ACt=(t,e)=>SCt(t,e,!0);ODe.exports=ACt});var Pj=q((gnn,BDe)=>{\\\"use strict\\\";u();var kDe=Aa(),TCt=(t,e,r)=>{let n=new kDe(t,r),i=new kDe(e,r);return n.compare(i)||n.compareBuild(i)};BDe.exports=TCt});var DDe=q((bnn,MDe)=>{\\\"use strict\\\";u();var ICt=Pj(),RCt=(t,e)=>t.sort((r,n)=>ICt(r,n,e));MDe.exports=RCt});var UDe=q((vnn,LDe)=>{\\\"use strict\\\";u();var PCt=Pj(),OCt=(t,e)=>t.sort((r,n)=>PCt(n,r,e));LDe.exports=OCt});var p9=q((Enn,FDe)=>{\\\"use strict\\\";u();var NCt=Qu(),kCt=(t,e,r)=>NCt(t,e,r)>0;FDe.exports=kCt});var Oj=q((Cnn,jDe)=>{\\\"use strict\\\";u();var BCt=Qu(),MCt=(t,e,r)=>BCt(t,e,r)<0;jDe.exports=MCt});var Pie=q((Ann,HDe)=>{\\\"use strict\\\";u();var DCt=Qu(),LCt=(t,e,r)=>DCt(t,e,r)===0;HDe.exports=LCt});var Oie=q((Inn,qDe)=>{\\\"use strict\\\";u();var UCt=Qu(),FCt=(t,e,r)=>UCt(t,e,r)!==0;qDe.exports=FCt});var Nj=q((Pnn,zDe)=>{\\\"use strict\\\";u();var jCt=Qu(),HCt=(t,e,r)=>jCt(t,e,r)>=0;zDe.exports=HCt});var kj=q((Nnn,$De)=>{\\\"use strict\\\";u();var qCt=Qu(),zCt=(t,e,r)=>qCt(t,e,r)<=0;$De.exports=zCt});var Nie=q((Bnn,VDe)=>{\\\"use strict\\\";u();var $Ct=Pie(),VCt=Oie(),WCt=p9(),GCt=Nj(),KCt=Oj(),ZCt=kj(),QCt=(t,e,r,n)=>{switch(e){case\\\"===\\\":return typeof t==\\\"object\\\"&&(t=t.version),typeof r==\\\"object\\\"&&(r=r.version),t===r;case\\\"!==\\\":return typeof t==\\\"object\\\"&&(t=t.version),typeof r==\\\"object\\\"&&(r=r.version),t!==r;case\\\"\\\":case\\\"=\\\":case\\\"==\\\":return $Ct(t,r,n);case\\\"!=\\\":return VCt(t,r,n);case\\\">\\\":return WCt(t,r,n);case\\\">=\\\":return GCt(t,r,n);case\\\"<\\\":return KCt(t,r,n);case\\\"<=\\\":return ZCt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};VDe.exports=QCt});var GDe=q((Dnn,WDe)=>{\\\"use strict\\\";u();var JCt=Aa(),YCt=l2(),{safeRe:Bj,t:Mj}=Z_(),XCt=(t,e)=>{if(t instanceof JCt)return t;if(typeof t==\\\"number\\\"&&(t=String(t)),typeof t!=\\\"string\\\")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Bj[Mj.COERCEFULL]:Bj[Mj.COERCE]);else{let c=e.includePrerelease?Bj[Mj.COERCERTLFULL]:Bj[Mj.COERCERTL],l;for(;(l=c.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||\\\"0\\\",s=r[4]||\\\"0\\\",o=e.includePrerelease&&r[5]?`-${r[5]}`:\\\"\\\",a=e.includePrerelease&&r[6]?`+${r[6]}`:\\\"\\\";return YCt(`${n}.${i}.${s}${o}${a}`,e)};WDe.exports=XCt});var ZDe=q((Unn,KDe)=>{\\\"use strict\\\";u();var kie=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};KDe.exports=kie});var Ju=q((jnn,XDe)=>{\\\"use strict\\\";u();var e4t=/\\\\s+/g,Bie=class t{constructor(e,r){if(r=r4t(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Mie)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(e4t,\\\" \\\"),this.set=this.raw.split(\\\"||\\\").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!JDe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&l4t(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=\\\"\\\";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=\\\"||\\\");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=\\\" \\\"),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&a4t)|(this.options.loose&&c4t))+\\\":\\\"+e,i=QDe.get(n);if(i)return i;let s=this.options.loose,o=s?tc[Ta.HYPHENRANGELOOSE]:tc[Ta.HYPHENRANGE];e=e.replace(o,w4t(this.options.includePrerelease)),Gn(\\\"hyphen replace\\\",e),e=e.replace(tc[Ta.COMPARATORTRIM],i4t),Gn(\\\"comparator trim\\\",e),e=e.replace(tc[Ta.TILDETRIM],s4t),Gn(\\\"tilde trim\\\",e),e=e.replace(tc[Ta.CARETTRIM],o4t),Gn(\\\"caret trim\\\",e);let a=e.split(\\\" \\\").map(f=>u4t(f,this.options)).join(\\\" \\\").split(/\\\\s+/).map(f=>b4t(f,this.options));s&&(a=a.filter(f=>(Gn(\\\"loose invalid filter\\\",f,this.options),!!f.match(tc[Ta.COMPARATORLOOSE])))),Gn(\\\"range list\\\",a);let c=new Map,l=a.map(f=>new Mie(f,this.options));for(let f of l){if(JDe(f))return[f];c.set(f.value,f)}c.size>1&&c.has(\\\"\\\")&&c.delete(\\\"\\\");let d=[...c.values()];return QDe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError(\\\"a Range is required\\\");return this.set.some(n=>YDe(n,r)&&e.set.some(i=>YDe(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e==\\\"string\\\")try{e=new n4t(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(v4t(this.set[r],e,this.options))return!0;return!1}};XDe.exports=Bie;var t4t=ZDe(),QDe=new t4t,r4t=Sj(),Mie=h9(),Gn=f9(),n4t=Aa(),{safeRe:tc,t:Ta,comparatorTrimReplace:i4t,tildeTrimReplace:s4t,caretTrimReplace:o4t}=Z_(),{FLAG_INCLUDE_PRERELEASE:a4t,FLAG_LOOSE:c4t}=d9(),JDe=t=>t.value===\\\"<0.0.0-0\\\",l4t=t=>t.value===\\\"\\\",YDe=(t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},u4t=(t,e)=>(t=t.replace(tc[Ta.BUILD],\\\"\\\"),Gn(\\\"comp\\\",t,e),t=p4t(t,e),Gn(\\\"caret\\\",t),t=d4t(t,e),Gn(\\\"tildes\\\",t),t=m4t(t,e),Gn(\\\"xrange\\\",t),t=y4t(t,e),Gn(\\\"stars\\\",t),t),rc=t=>!t||t.toLowerCase()===\\\"x\\\"||t===\\\"*\\\",d4t=(t,e)=>t.trim().split(/\\\\s+/).map(r=>f4t(r,e)).join(\\\" \\\"),f4t=(t,e)=>{let r=e.loose?tc[Ta.TILDELOOSE]:tc[Ta.TILDE];return t.replace(r,(n,i,s,o,a)=>{Gn(\\\"tilde\\\",t,n,i,s,o,a);let c;return rc(i)?c=\\\"\\\":rc(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:rc(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Gn(\\\"replaceTilde pr\\\",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Gn(\\\"tilde return\\\",c),c})},p4t=(t,e)=>t.trim().split(/\\\\s+/).map(r=>h4t(r,e)).join(\\\" \\\"),h4t=(t,e)=>{Gn(\\\"caret\\\",t,e);let r=e.loose?tc[Ta.CARETLOOSE]:tc[Ta.CARET],n=e.includePrerelease?\\\"-0\\\":\\\"\\\";return t.replace(r,(i,s,o,a,c)=>{Gn(\\\"caret\\\",t,i,s,o,a,c);let l;return rc(s)?l=\\\"\\\":rc(o)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:rc(a)?s===\\\"0\\\"?l=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(Gn(\\\"replaceCaret pr\\\",c),s===\\\"0\\\"?o===\\\"0\\\"?l=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Gn(\\\"no pr\\\"),s===\\\"0\\\"?o===\\\"0\\\"?l=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Gn(\\\"caret return\\\",l),l})},m4t=(t,e)=>(Gn(\\\"replaceXRanges\\\",t,e),t.split(/\\\\s+/).map(r=>g4t(r,e)).join(\\\" \\\")),g4t=(t,e)=>{t=t.trim();let r=e.loose?tc[Ta.XRANGELOOSE]:tc[Ta.XRANGE];return t.replace(r,(n,i,s,o,a,c)=>{Gn(\\\"xRange\\\",t,n,i,s,o,a,c);let l=rc(s),d=l||rc(o),f=d||rc(a),p=f;return i===\\\"=\\\"&&p&&(i=\\\"\\\"),c=e.includePrerelease?\\\"-0\\\":\\\"\\\",l?i===\\\">\\\"||i===\\\"<\\\"?n=\\\"<0.0.0-0\\\":n=\\\"*\\\":i&&p?(d&&(o=0),a=0,i===\\\">\\\"?(i=\\\">=\\\",d?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i===\\\"<=\\\"&&(i=\\\"<\\\",d?s=+s+1:o=+o+1),i===\\\"<\\\"&&(c=\\\"-0\\\"),n=`${i+s}.${o}.${a}${c}`):d?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Gn(\\\"xRange return\\\",n),n})},y4t=(t,e)=>(Gn(\\\"replaceStars\\\",t,e),t.trim().replace(tc[Ta.STAR],\\\"\\\")),b4t=(t,e)=>(Gn(\\\"replaceGTE0\\\",t,e),t.trim().replace(tc[e.includePrerelease?Ta.GTE0PRE:Ta.GTE0],\\\"\\\")),w4t=t=>(e,r,n,i,s,o,a,c,l,d,f,p)=>(rc(n)?r=\\\"\\\":rc(i)?r=`>=${n}.0.0${t?\\\"-0\\\":\\\"\\\"}`:rc(s)?r=`>=${n}.${i}.0${t?\\\"-0\\\":\\\"\\\"}`:o?r=`>=${r}`:r=`>=${r}${t?\\\"-0\\\":\\\"\\\"}`,rc(l)?c=\\\"\\\":rc(d)?c=`<${+l+1}.0.0-0`:rc(f)?c=`<${l}.${+d+1}.0-0`:p?c=`<=${l}.${d}.${f}-${p}`:t?c=`<${l}.${d}.${+f+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),v4t=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(Gn(t[n].semver),t[n].semver!==Mie.ANY&&t[n].semver.prerelease.length>0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var h9=q((qnn,sLe)=>{\\\"use strict\\\";u();var m9=Symbol(\\\"SemVer ANY\\\"),Uie=class t{static get ANY(){return m9}constructor(e,r){if(r=eLe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\\\\s+/).join(\\\" \\\"),Lie(\\\"comparator\\\",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===m9?this.value=\\\"\\\":this.value=this.operator+this.semver.version,Lie(\\\"comp\\\",this)}parse(e){let r=this.options.loose?tLe[rLe.COMPARATORLOOSE]:tLe[rLe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:\\\"\\\",this.operator===\\\"=\\\"&&(this.operator=\\\"\\\"),n[2]?this.semver=new nLe(n[2],this.options.loose):this.semver=m9}toString(){return this.value}test(e){if(Lie(\\\"Comparator.test\\\",e,this.options.loose),this.semver===m9||e===m9)return!0;if(typeof e==\\\"string\\\")try{e=new nLe(e,this.options)}catch{return!1}return Die(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError(\\\"a Comparator is required\\\");return this.operator===\\\"\\\"?this.value===\\\"\\\"?!0:new iLe(e.value,r).test(this.value):e.operator===\\\"\\\"?e.value===\\\"\\\"?!0:new iLe(this.value,r).test(e.semver):(r=eLe(r),r.includePrerelease&&(this.value===\\\"<0.0.0-0\\\"||e.value===\\\"<0.0.0-0\\\")||!r.includePrerelease&&(this.value.startsWith(\\\"<0.0.0\\\")||e.value.startsWith(\\\"<0.0.0\\\"))?!1:!!(this.operator.startsWith(\\\">\\\")&&e.operator.startsWith(\\\">\\\")||this.operator.startsWith(\\\"<\\\")&&e.operator.startsWith(\\\"<\\\")||this.semver.version===e.semver.version&&this.operator.includes(\\\"=\\\")&&e.operator.includes(\\\"=\\\")||Die(this.semver,\\\"<\\\",e.semver,r)&&this.operator.startsWith(\\\">\\\")&&e.operator.startsWith(\\\"<\\\")||Die(this.semver,\\\">\\\",e.semver,r)&&this.operator.startsWith(\\\"<\\\")&&e.operator.startsWith(\\\">\\\")))}};sLe.exports=Uie;var eLe=Sj(),{safeRe:tLe,t:rLe}=Z_(),Die=Nie(),Lie=f9(),nLe=Aa(),iLe=Ju()});var g9=q(($nn,oLe)=>{\\\"use strict\\\";u();var x4t=Ju(),E4t=(t,e,r)=>{try{e=new x4t(e,r)}catch{return!1}return e.test(t)};oLe.exports=E4t});var cLe=q((Wnn,aLe)=>{\\\"use strict\\\";u();var _4t=Ju(),C4t=(t,e)=>new _4t(t,e).set.map(r=>r.map(n=>n.value).join(\\\" \\\").trim().split(\\\" \\\"));aLe.exports=C4t});var uLe=q((Knn,lLe)=>{\\\"use strict\\\";u();var S4t=Aa(),A4t=Ju(),T4t=(t,e,r)=>{let n=null,i=null,s=null;try{s=new A4t(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new S4t(n,r))}),n};lLe.exports=T4t});var fLe=q((Qnn,dLe)=>{\\\"use strict\\\";u();var I4t=Aa(),R4t=Ju(),P4t=(t,e,r)=>{let n=null,i=null,s=null;try{s=new R4t(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new I4t(n,r))}),n};dLe.exports=P4t});var mLe=q((Ynn,hLe)=>{\\\"use strict\\\";u();var Fie=Aa(),O4t=Ju(),pLe=p9(),N4t=(t,e)=>{t=new O4t(t,e);let r=new Fie(\\\"0.0.0\\\");if(t.test(r)||(r=new Fie(\\\"0.0.0-0\\\"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let i=t.set[n],s=null;i.forEach(o=>{let a=new Fie(o.semver.version);switch(o.operator){case\\\">\\\":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case\\\"\\\":case\\\">=\\\":(!s||pLe(a,s))&&(s=a);break;case\\\"<\\\":case\\\"<=\\\":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||pLe(r,s))&&(r=s)}return r&&t.test(r)?r:null};hLe.exports=N4t});var yLe=q((ein,gLe)=>{\\\"use strict\\\";u();var k4t=Ju(),B4t=(t,e)=>{try{return new k4t(t,e).range||\\\"*\\\"}catch{return null}};gLe.exports=B4t});var Dj=q((rin,xLe)=>{\\\"use strict\\\";u();var M4t=Aa(),vLe=h9(),{ANY:D4t}=vLe,L4t=Ju(),U4t=g9(),bLe=p9(),wLe=Oj(),F4t=kj(),j4t=Nj(),H4t=(t,e,r,n)=>{t=new M4t(t,n),e=new L4t(e,n);let i,s,o,a,c;switch(r){case\\\">\\\":i=bLe,s=F4t,o=wLe,a=\\\">\\\",c=\\\">=\\\";break;case\\\"<\\\":i=wLe,s=j4t,o=bLe,a=\\\"<\\\",c=\\\"<=\\\";break;default:throw new TypeError('Must provide a hilo val of \\\"<\\\" or \\\">\\\"')}if(U4t(t,e,n))return!1;for(let l=0;l<e.set.length;++l){let d=e.set[l],f=null,p=null;if(d.forEach(h=>{h.semver===D4t&&(h=new vLe(\\\">=0.0.0\\\")),f=f||h,p=p||h,i(h.semver,f.semver,n)?f=h:o(h.semver,p.semver,n)&&(p=h)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&s(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};xLe.exports=H4t});var _Le=q((iin,ELe)=>{\\\"use strict\\\";u();var q4t=Dj(),z4t=(t,e,r)=>q4t(t,e,\\\">\\\",r);ELe.exports=z4t});var SLe=q((oin,CLe)=>{\\\"use strict\\\";u();var $4t=Dj(),V4t=(t,e,r)=>$4t(t,e,\\\"<\\\",r);CLe.exports=V4t});var ILe=q((cin,TLe)=>{\\\"use strict\\\";u();var ALe=Ju(),W4t=(t,e,r)=>(t=new ALe(t,r),e=new ALe(e,r),t.intersects(e,r));TLe.exports=W4t});var PLe=q((uin,RLe)=>{\\\"use strict\\\";u();var G4t=g9(),K4t=Qu();RLe.exports=(t,e,r)=>{let n=[],i=null,s=null,o=t.sort((d,f)=>K4t(d,f,r));for(let d of o)G4t(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[d,f]of n)d===f?a.push(d):!f&&d===o[0]?a.push(\\\"*\\\"):f?d===o[0]?a.push(`<=${f}`):a.push(`${d} - ${f}`):a.push(`>=${d}`);let c=a.join(\\\" || \\\"),l=typeof e.raw==\\\"string\\\"?e.raw:String(e);return c.length<l.length?c:e}});var DLe=q((fin,MLe)=>{\\\"use strict\\\";u();var OLe=Ju(),Hie=h9(),{ANY:jie}=Hie,y9=g9(),qie=Qu(),Z4t=(t,e,r={})=>{if(t===e)return!0;t=new OLe(t,r),e=new OLe(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let o=J4t(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Q4t=[new Hie(\\\">=0.0.0-0\\\")],NLe=[new Hie(\\\">=0.0.0\\\")],J4t=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===jie){if(e.length===1&&e[0].semver===jie)return!0;r.includePrerelease?t=Q4t:t=NLe}if(e.length===1&&e[0].semver===jie){if(r.includePrerelease)return!0;e=NLe}let n=new Set,i,s;for(let h of t)h.operator===\\\">\\\"||h.operator===\\\">=\\\"?i=kLe(i,h,r):h.operator===\\\"<\\\"||h.operator===\\\"<=\\\"?s=BLe(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=qie(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==\\\">=\\\"||s.operator!==\\\"<=\\\"))return null}for(let h of n){if(i&&!y9(h,String(i),r)||s&&!y9(h,String(s),r))return null;for(let m of e)if(!y9(h,String(m),r))return!1;return!0}let a,c,l,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator===\\\"<\\\"&&f.prerelease[0]===0&&(f=!1);for(let h of e){if(d=d||h.operator===\\\">\\\"||h.operator===\\\">=\\\",l=l||h.operator===\\\"<\\\"||h.operator===\\\"<=\\\",i){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator===\\\">\\\"||h.operator===\\\">=\\\"){if(a=kLe(i,h,r),a===h&&a!==i)return!1}else if(i.operator===\\\">=\\\"&&!y9(i.semver,String(h),r))return!1}if(s){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator===\\\"<\\\"||h.operator===\\\"<=\\\"){if(c=BLe(s,h,r),c===h&&c!==s)return!1}else if(s.operator===\\\"<=\\\"&&!y9(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&l&&!s&&o!==0||s&&d&&!i&&o!==0||p||f)},kLe=(t,e,r)=>{if(!t)return e;let n=qie(t.semver,e.semver,r);return n>0?t:n<0||e.operator===\\\">\\\"&&t.operator===\\\">=\\\"?e:t},BLe=(t,e,r)=>{if(!t)return e;let n=qie(t.semver,e.semver,r);return n<0?t:n>0||e.operator===\\\"<\\\"&&t.operator===\\\"<=\\\"?e:t};MLe.exports=Z4t});var jLe=q((hin,FLe)=>{\\\"use strict\\\";u();var zie=Z_(),LLe=d9(),Y4t=Aa(),ULe=Tie(),X4t=l2(),e8t=uDe(),t8t=fDe(),r8t=mDe(),n8t=bDe(),i8t=vDe(),s8t=EDe(),o8t=CDe(),a8t=ADe(),c8t=Qu(),l8t=PDe(),u8t=NDe(),d8t=Pj(),f8t=DDe(),p8t=UDe(),h8t=p9(),m8t=Oj(),g8t=Pie(),y8t=Oie(),b8t=Nj(),w8t=kj(),v8t=Nie(),x8t=GDe(),E8t=h9(),_8t=Ju(),C8t=g9(),S8t=cLe(),A8t=uLe(),T8t=fLe(),I8t=mLe(),R8t=yLe(),P8t=Dj(),O8t=_Le(),N8t=SLe(),k8t=ILe(),B8t=PLe(),M8t=DLe();FLe.exports={parse:X4t,valid:e8t,clean:t8t,inc:r8t,diff:n8t,major:i8t,minor:s8t,patch:o8t,prerelease:a8t,compare:c8t,rcompare:l8t,compareLoose:u8t,compareBuild:d8t,sort:f8t,rsort:p8t,gt:h8t,lt:m8t,eq:g8t,neq:y8t,gte:b8t,lte:w8t,cmp:v8t,coerce:x8t,Comparator:E8t,Range:_8t,satisfies:C8t,toComparators:S8t,maxSatisfying:A8t,minSatisfying:T8t,minVersion:I8t,validRange:R8t,outside:P8t,gtr:O8t,ltr:N8t,intersects:k8t,simplifyRange:B8t,subset:M8t,SemVer:Y4t,re:zie.re,src:zie.src,tokens:zie.t,SEMVER_SPEC_VERSION:LLe.SEMVER_SPEC_VERSION,RELEASE_TYPES:LLe.RELEASE_TYPES,compareIdentifiers:ULe.compareIdentifiers,rcompareIdentifiers:ULe.rcompareIdentifiers}});var qLe=q(Ti=>{\\\"use strict\\\";u();Object.defineProperty(Ti,\\\"__esModule\\\",{value:!0});Ti.satisfiesVersionRange=Ti.gtRange=Ti.gtVersion=Ti.assertIsSemVerRange=Ti.assertIsSemVerVersion=Ti.isValidSemVerRange=Ti.isValidSemVerVersion=Ti.VersionRangeStruct=Ti.VersionStruct=void 0;var b9=jLe(),Q_=(a1(),mt(o1)),HLe=c0();Ti.VersionStruct=(0,Q_.refine)((0,Q_.string)(),\\\"Version\\\",t=>(0,b9.valid)(t)===null?`Expected SemVer version, got \\\"${t}\\\"`:!0);Ti.VersionRangeStruct=(0,Q_.refine)((0,Q_.string)(),\\\"Version range\\\",t=>(0,b9.validRange)(t)===null?`Expected SemVer range, got \\\"${t}\\\"`:!0);function D8t(t){return(0,Q_.is)(t,Ti.VersionStruct)}Ti.isValidSemVerVersion=D8t;function L8t(t){return(0,Q_.is)(t,Ti.VersionRangeStruct)}Ti.isValidSemVerRange=L8t;function U8t(t){(0,HLe.assertStruct)(t,Ti.VersionStruct)}Ti.assertIsSemVerVersion=U8t;function F8t(t){(0,HLe.assertStruct)(t,Ti.VersionRangeStruct)}Ti.assertIsSemVerRange=F8t;function j8t(t,e){return(0,b9.gt)(t,e)}Ti.gtVersion=j8t;function H8t(t,e){return(0,b9.gtr)(t,e)}Ti.gtRange=H8t;function q8t(t,e){return(0,b9.satisfies)(t,e,{includePrerelease:!0})}Ti.satisfiesVersionRange=q8t});var zLe=q(Ui=>{\\\"use strict\\\";u();var z8t=Ui&&Ui.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$o=Ui&&Ui.__exportStar||function(t,e){for(var r in t)r!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,r)&&z8t(e,t,r)};Object.defineProperty(Ui,\\\"__esModule\\\",{value:!0});$o(c0(),Ui);$o(xie(),Ui);$o(Cie(),Ui);$o(AMe(),Ui);$o(RMe(),Ui);$o(OMe(),Ui);$o(kMe(),Ui);$o(a9(),Ui);$o(BMe(),Ui);$o(DMe(),Ui);$o(qMe(),Ui);$o($Me(),Ui);$o(VMe(),Ui);$o(GMe(),Ui);$o(ZMe(),Ui);$o(JMe(),Ui);$o(qLe(),Ui)});var VLe=q(J_=>{\\\"use strict\\\";u();Object.defineProperty(J_,\\\"__esModule\\\",{value:!0});J_.createModuleLogger=J_.projectLogger=void 0;var $Le=zLe();Object.defineProperty(J_,\\\"createModuleLogger\\\",{enumerable:!0,get:function(){return $Le.createModuleLogger}});J_.projectLogger=(0,$Le.createProjectLogger)(\\\"eth-block-tracker\\\")});var QLe=q(Y_=>{\\\"use strict\\\";u();var ZLe=Y_&&Y_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Y_,\\\"__esModule\\\",{value:!0});Y_.PollingBlockTracker=void 0;var $8t=ZLe(gj()),V8t=ZLe(eMe()),W8t=mie(),WLe=VLe(),GLe=(0,WLe.createModuleLogger)(WLe.projectLogger,\\\"polling-block-tracker\\\"),G8t=(0,$8t.default)(),K8t=1e3,$ie=class extends W8t.BaseBlockTracker{constructor(e={}){var r;if(!e.provider)throw new Error(\\\"PollingBlockTracker - no provider specified.\\\");super(Object.assign(Object.assign({},e),{blockResetDuration:(r=e.blockResetDuration)!==null&&r!==void 0?r:e.pollingInterval})),this._provider=e.provider,this._pollingInterval=e.pollingInterval||20*K8t,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=e.keepEventLoopActive===void 0?!0:e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();let r=KLe(this._pollingInterval,!this._keepEventLoopActive);this.emit(\\\"_waitingForNextIteration\\\"),await r}catch(r){let n=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\\n${(e=r.stack)!==null&&e!==void 0?e:r}`);try{this.emit(\\\"error\\\",n)}catch{console.error(n)}let i=KLe(this._retryTimeout,!this._keepEventLoopActive);this.emit(\\\"_waitingForNextIteration\\\"),await i}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:\\\"2.0\\\",id:G8t(),method:\\\"eth_blockNumber\\\",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),GLe(\\\"Making request\\\",e);let r=await(0,V8t.default)(n=>this._provider.sendAsync(e,n))();if(GLe(\\\"Got response\\\",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\\n${r.error.message}`);return r.result}};Y_.PollingBlockTracker=$ie;function KLe(t,e){return new Promise(r=>{let n=setTimeout(r,t);n.unref&&e&&n.unref()})}});var JLe=q(X_=>{\\\"use strict\\\";u();var Z8t=X_&&X_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(X_,\\\"__esModule\\\",{value:!0});X_.SubscribeBlockTracker=void 0;var Q8t=Z8t(gj()),J8t=mie(),Y8t=(0,Q8t.default)(),Vie=class extends J8t.BaseBlockTracker{constructor(e={}){if(!e.provider)throw new Error(\\\"SubscribeBlockTracker - no provider specified.\\\");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{let e=await this._call(\\\"eth_blockNumber\\\");this._subscriptionId=await this._call(\\\"eth_subscribe\\\",\\\"newHeads\\\"),this._provider.on(\\\"data\\\",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit(\\\"error\\\",e)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call(\\\"eth_unsubscribe\\\",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit(\\\"error\\\",e)}}_call(e,...r){return new Promise((n,i)=>{this._provider.sendAsync({id:Y8t(),method:e,params:r,jsonrpc:\\\"2.0\\\"},(s,o)=>{s?i(s):n(o.result)})})}_handleSubData(e,r){var n;r.method===\\\"eth_subscription\\\"&&((n=r.params)===null||n===void 0?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(r.params.result.number)}};X_.SubscribeBlockTracker=Vie});var XLe=q(u1=>{\\\"use strict\\\";u();var X8t=u1&&u1.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),YLe=u1&&u1.__exportStar||function(t,e){for(var r in t)r!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,r)&&X8t(e,t,r)};Object.defineProperty(u1,\\\"__esModule\\\",{value:!0});YLe(QLe(),u1);YLe(JLe(),u1)});var Gie=q(Lj=>{\\\"use strict\\\";u();Object.defineProperty(Lj,\\\"__esModule\\\",{value:!0});Lj.getUniqueId=void 0;var eUe=4294967295,Wie=Math.floor(Math.random()*eUe);function eSt(){return Wie=(Wie+1)%eUe,Wie}Lj.getUniqueId=eSt});var tUe=q(Uj=>{\\\"use strict\\\";u();Object.defineProperty(Uj,\\\"__esModule\\\",{value:!0});Uj.createIdRemapMiddleware=void 0;var tSt=Gie();function rSt(){return(t,e,r,n)=>{let i=t.id,s=tSt.getUniqueId();t.id=s,e.id=s,r(o=>{t.id=i,e.id=i,o()})}}Uj.createIdRemapMiddleware=rSt});var rUe=q(Fj=>{\\\"use strict\\\";u();Object.defineProperty(Fj,\\\"__esModule\\\",{value:!0});Fj.createAsyncMiddleware=void 0;function nSt(t){return async(e,r,n,i)=>{let s,o=new Promise(d=>{s=d}),a=null,c=!1,l=async()=>{c=!0,n(d=>{a=d,s()}),await o};try{await t(e,r,l),c?(await o,a(null)):i(null)}catch(d){a?a(d):i(d)}}}Fj.createAsyncMiddleware=nSt});var nUe=q(jj=>{\\\"use strict\\\";u();Object.defineProperty(jj,\\\"__esModule\\\",{value:!0});jj.createScaffoldMiddleware=void 0;function iSt(t){return(e,r,n,i)=>{let s=t[e.method];return s===void 0?n():typeof s==\\\"function\\\"?s(e,r,n,i):(r.result=s,i())}}jj.createScaffoldMiddleware=iSt});var sUe=q(Zie=>{\\\"use strict\\\";u();Object.defineProperty(Zie,\\\"__esModule\\\",{value:!0});var sSt=ho();function iUe(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function oSt(t){let e=t.length,r=new Array(e);for(let n=0;n<e;n+=1)r[n]=t[n];return r}var Kie=class extends sSt.EventEmitter{emit(e,...r){let n=e===\\\"error\\\",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){let o;if(r.length>0&&([o]=r),o instanceof Error)throw o;let a=new Error(`Unhandled error.${o?` (${o.message})`:\\\"\\\"}`);throw a.context=o,a}let s=i[e];if(s===void 0)return!1;if(typeof s==\\\"function\\\")iUe(s,this,r);else{let o=s.length,a=oSt(s);for(let c=0;c<o;c+=1)iUe(a[c],this,r)}return!0}};Zie.default=Kie});var dUe=q((Uin,uUe)=>{u();uUe.exports=w9;w9.default=w9;w9.stable=cUe;w9.stableStringify=cUe;var Hj=\\\"[...]\\\",oUe=\\\"[Circular]\\\",d2=[],u2=[];function aUe(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function w9(t,e,r,n){typeof n>\\\"u\\\"&&(n=aUe()),Qie(t,\\\"\\\",0,[],void 0,0,n);var i;try{u2.length===0?i=JSON.stringify(t,e,r):i=JSON.stringify(t,lUe(e),r)}catch{return JSON.stringify(\\\"[unable to serialize, circular reference is too complex to analyze]\\\")}finally{for(;d2.length!==0;){var s=d2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function eC(t,e,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:t}),d2.push([n,r,e,i])):u2.push([e,r,t]):(n[r]=t,d2.push([n,r,e]))}function Qie(t,e,r,n,i,s,o){s+=1;var a;if(typeof t==\\\"object\\\"&&t!==null){for(a=0;a<n.length;a++)if(n[a]===t){eC(oUe,t,e,i);return}if(typeof o.depthLimit<\\\"u\\\"&&s>o.depthLimit){eC(Hj,t,e,i);return}if(typeof o.edgesLimit<\\\"u\\\"&&r+1>o.edgesLimit){eC(Hj,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a<t.length;a++)Qie(t[a],a,a,n,t,s,o);else{var c=Object.keys(t);for(a=0;a<c.length;a++){var l=c[a];Qie(t[l],l,a,n,t,s,o)}}n.pop()}}function aSt(t,e){return t<e?-1:t>e?1:0}function cUe(t,e,r,n){typeof n>\\\"u\\\"&&(n=aUe());var i=Jie(t,\\\"\\\",0,[],void 0,0,n)||t,s;try{u2.length===0?s=JSON.stringify(i,e,r):s=JSON.stringify(i,lUe(e),r)}catch{return JSON.stringify(\\\"[unable to serialize, circular reference is too complex to analyze]\\\")}finally{for(;d2.length!==0;){var o=d2.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function Jie(t,e,r,n,i,s,o){s+=1;var a;if(typeof t==\\\"object\\\"&&t!==null){for(a=0;a<n.length;a++)if(n[a]===t){eC(oUe,t,e,i);return}try{if(typeof t.toJSON==\\\"function\\\")return}catch{return}if(typeof o.depthLimit<\\\"u\\\"&&s>o.depthLimit){eC(Hj,t,e,i);return}if(typeof o.edgesLimit<\\\"u\\\"&&r+1>o.edgesLimit){eC(Hj,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a<t.length;a++)Jie(t[a],a,a,n,t,s,o);else{var c={},l=Object.keys(t).sort(aSt);for(a=0;a<l.length;a++){var d=l[a];Jie(t[d],d,a,n,t,s,o),c[d]=t[d]}if(typeof i<\\\"u\\\")d2.push([i,e,t]),i[e]=c;else return c}n.pop()}}function lUe(t){return t=typeof t<\\\"u\\\"?t:function(e,r){return r},function(e,r){if(u2.length>0)for(var n=0;n<u2.length;n++){var i=u2[n];if(i[1]===e&&i[0]===r){r=i[2],u2.splice(n,1);break}}return t.call(this,e,r)}}});var zj=q(tC=>{\\\"use strict\\\";u();Object.defineProperty(tC,\\\"__esModule\\\",{value:!0});tC.EthereumProviderError=tC.EthereumRpcError=void 0;var cSt=dUe(),qj=class extends Error{constructor(e,r,n){if(!Number.isInteger(e))throw new Error('\\\"code\\\" must be an integer.');if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string.');super(r),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return cSt.default(this.serialize(),uSt,2)}};tC.EthereumRpcError=qj;var Yie=class extends qj{constructor(e,r,n){if(!lSt(e))throw new Error('\\\"code\\\" must be an integer such that: 1000 <= code <= 4999');super(e,r,n)}};tC.EthereumProviderError=Yie;function lSt(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function uSt(t,e){if(e!==\\\"[Circular]\\\")return e}});var $j=q(rC=>{\\\"use strict\\\";u();Object.defineProperty(rC,\\\"__esModule\\\",{value:!0});rC.errorValues=rC.errorCodes=void 0;rC.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};rC.errorValues={\\\"-32700\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\\\"},\\\"-32600\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The JSON sent is not a valid Request object.\\\"},\\\"-32601\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"The method does not exist / is not available.\\\"},\\\"-32602\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Invalid method parameter(s).\\\"},\\\"-32603\\\":{standard:\\\"JSON RPC 2.0\\\",message:\\\"Internal JSON-RPC error.\\\"},\\\"-32000\\\":{standard:\\\"EIP-1474\\\",message:\\\"Invalid input.\\\"},\\\"-32001\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource not found.\\\"},\\\"-32002\\\":{standard:\\\"EIP-1474\\\",message:\\\"Resource unavailable.\\\"},\\\"-32003\\\":{standard:\\\"EIP-1474\\\",message:\\\"Transaction rejected.\\\"},\\\"-32004\\\":{standard:\\\"EIP-1474\\\",message:\\\"Method not supported.\\\"},\\\"-32005\\\":{standard:\\\"EIP-1474\\\",message:\\\"Request limit exceeded.\\\"},4001:{standard:\\\"EIP-1193\\\",message:\\\"User rejected the request.\\\"},4100:{standard:\\\"EIP-1193\\\",message:\\\"The requested account and/or method has not been authorized by the user.\\\"},4200:{standard:\\\"EIP-1193\\\",message:\\\"The requested method is not supported by this Ethereum provider.\\\"},4900:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from all chains.\\\"},4901:{standard:\\\"EIP-1193\\\",message:\\\"The provider is disconnected from the specified chain.\\\"}}});var tse=q(df=>{\\\"use strict\\\";u();Object.defineProperty(df,\\\"__esModule\\\",{value:!0});df.serializeError=df.isValidCode=df.getMessageFromCode=df.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Vj=$j(),dSt=zj(),fUe=Vj.errorCodes.rpc.internal,fSt=\\\"Unspecified error message. This is a bug, please report it.\\\",pSt={code:fUe,message:ese(fUe)};df.JSON_RPC_SERVER_ERROR_MESSAGE=\\\"Unspecified server error.\\\";function ese(t,e=fSt){if(Number.isInteger(t)){let r=t.toString();if(Xie(Vj.errorValues,r))return Vj.errorValues[r].message;if(mUe(t))return df.JSON_RPC_SERVER_ERROR_MESSAGE}return e}df.getMessageFromCode=ese;function hUe(t){if(!Number.isInteger(t))return!1;let e=t.toString();return!!(Vj.errorValues[e]||mUe(t))}df.isValidCode=hUe;function hSt(t,{fallbackError:e=pSt,shouldIncludeStack:r=!1}={}){var n,i;if(!e||!Number.isInteger(e.code)||typeof e.message!=\\\"string\\\")throw new Error(\\\"Must provide fallback error with integer number code and string message.\\\");if(t instanceof dSt.EthereumRpcError)return t.serialize();let s={};if(t&&typeof t==\\\"object\\\"&&!Array.isArray(t)&&Xie(t,\\\"code\\\")&&hUe(t.code)){let a=t;s.code=a.code,a.message&&typeof a.message==\\\"string\\\"?(s.message=a.message,Xie(a,\\\"data\\\")&&(s.data=a.data)):(s.message=ese(s.code),s.data={originalError:pUe(t)})}else{s.code=e.code;let a=(n=t)===null||n===void 0?void 0:n.message;s.message=a&&typeof a==\\\"string\\\"?a:e.message,s.data={originalError:pUe(t)}}let o=(i=t)===null||i===void 0?void 0:i.stack;return r&&t&&o&&typeof o==\\\"string\\\"&&(s.stack=o),s}df.serializeError=hSt;function mUe(t){return t>=-32099&&t<=-32e3}function pUe(t){return t&&typeof t==\\\"object\\\"&&!Array.isArray(t)?Object.assign({},t):t}function Xie(t,e){return Object.prototype.hasOwnProperty.call(t,e)}});var bUe=q(Wj=>{\\\"use strict\\\";u();Object.defineProperty(Wj,\\\"__esModule\\\",{value:!0});Wj.ethErrors=void 0;var rse=zj(),gUe=tse(),Ia=$j();Wj.ethErrors={rpc:{parse:t=>Yu(Ia.errorCodes.rpc.parse,t),invalidRequest:t=>Yu(Ia.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Yu(Ia.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Yu(Ia.errorCodes.rpc.methodNotFound,t),internal:t=>Yu(Ia.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum RPC Server errors must provide single object argument.\\\");let{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('\\\"code\\\" must be an integer such that: -32099 <= code <= -32005');return Yu(e,t)},invalidInput:t=>Yu(Ia.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Yu(Ia.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Yu(Ia.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Yu(Ia.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Yu(Ia.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Yu(Ia.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>v9(Ia.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>v9(Ia.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>v9(Ia.errorCodes.provider.unsupportedMethod,t),disconnected:t=>v9(Ia.errorCodes.provider.disconnected,t),chainDisconnected:t=>v9(Ia.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!=\\\"object\\\"||Array.isArray(t))throw new Error(\\\"Ethereum Provider custom errors must provide single object argument.\\\");let{code:e,message:r,data:n}=t;if(!r||typeof r!=\\\"string\\\")throw new Error('\\\"message\\\" must be a nonempty string');return new rse.EthereumProviderError(e,r,n)}}};function Yu(t,e){let[r,n]=yUe(e);return new rse.EthereumRpcError(t,r||gUe.getMessageFromCode(t),n)}function v9(t,e){let[r,n]=yUe(e);return new rse.EthereumProviderError(t,r||gUe.getMessageFromCode(t),n)}function yUe(t){if(t){if(typeof t==\\\"string\\\")return[t];if(typeof t==\\\"object\\\"&&!Array.isArray(t)){let{message:e,data:r}=t;if(e&&typeof e!=\\\"string\\\")throw new Error(\\\"Must specify string message.\\\");return[e||void 0,r]}}return[]}});var xUe=q(qc=>{\\\"use strict\\\";u();Object.defineProperty(qc,\\\"__esModule\\\",{value:!0});qc.getMessageFromCode=qc.serializeError=qc.EthereumProviderError=qc.EthereumRpcError=qc.ethErrors=qc.errorCodes=void 0;var wUe=zj();Object.defineProperty(qc,\\\"EthereumRpcError\\\",{enumerable:!0,get:function(){return wUe.EthereumRpcError}});Object.defineProperty(qc,\\\"EthereumProviderError\\\",{enumerable:!0,get:function(){return wUe.EthereumProviderError}});var vUe=tse();Object.defineProperty(qc,\\\"serializeError\\\",{enumerable:!0,get:function(){return vUe.serializeError}});Object.defineProperty(qc,\\\"getMessageFromCode\\\",{enumerable:!0,get:function(){return vUe.getMessageFromCode}});var mSt=bUe();Object.defineProperty(qc,\\\"ethErrors\\\",{enumerable:!0,get:function(){return mSt.ethErrors}});var gSt=$j();Object.defineProperty(qc,\\\"errorCodes\\\",{enumerable:!0,get:function(){return gSt.errorCodes}})});var sse=q(nC=>{\\\"use strict\\\";u();var ySt=nC&&nC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nC,\\\"__esModule\\\",{value:!0});nC.JsonRpcEngine=void 0;var bSt=ySt(sUe()),Xu=xUe(),ise=class t extends bSt.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,r){if(r&&typeof r!=\\\"function\\\")throw new Error('\\\"callback\\\" must be a function if provided.');return Array.isArray(e)?r?this._handleBatch(e,r):this._handleBatch(e):r?this._handle(e,r):this._promiseHandle(e)}asMiddleware(){return async(e,r,n,i)=>{try{let[s,o,a]=await t._runAllMiddleware(e,r,this._middleware);return o?(await t._runReturnHandlers(a),i(s)):n(async c=>{try{await t._runReturnHandlers(a)}catch(l){return c(l)}return c()})}catch(s){return i(s)}}}async _handleBatch(e,r){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(e){return new Promise(r=>{this._handle(e,(n,i)=>{r(i)})})}async _handle(e,r){if(!e||Array.isArray(e)||typeof e!=\\\"object\\\"){let o=new Xu.EthereumRpcError(Xu.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return r(o,{id:void 0,jsonrpc:\\\"2.0\\\",error:o})}if(typeof e.method!=\\\"string\\\"){let o=new Xu.EthereumRpcError(Xu.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return r(o,{id:e.id,jsonrpc:\\\"2.0\\\",error:o})}let n=Object.assign({},e),i={id:n.id,jsonrpc:n.jsonrpc},s=null;try{await this._processRequest(n,i)}catch(o){s=o}return s&&(delete i.result,i.error||(i.error=Xu.serializeError(s))),r(s,i)}async _processRequest(e,r){let[n,i,s]=await t._runAllMiddleware(e,r,this._middleware);if(t._checkForCompletion(e,r,i),await t._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(e,r,n){let i=[],s=null,o=!1;for(let a of n)if([s,o]=await t._runMiddleware(e,r,a,i),o)break;return[s,o,i.reverse()]}static _runMiddleware(e,r,n,i){return new Promise(s=>{let o=c=>{let l=c||r.error;l&&(r.error=Xu.serializeError(l)),s([l,!0])},a=c=>{r.error?o(r.error):(c&&(typeof c!=\\\"function\\\"&&o(new Xu.EthereumRpcError(Xu.errorCodes.rpc.internal,`JsonRpcEngine: \\\"next\\\" return handlers must be functions. Received \\\"${typeof c}\\\" for request:\\n${nse(e)}`,{request:e})),i.push(c)),s([null,!1]))};try{n(e,r,a,o)}catch(c){o(c)}})}static async _runReturnHandlers(e){for(let r of e)await new Promise((n,i)=>{r(s=>s?i(s):n())})}static _checkForCompletion(e,r,n){if(!(\\\"result\\\"in r)&&!(\\\"error\\\"in r))throw new Xu.EthereumRpcError(Xu.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\\n${nse(e)}`,{request:e});if(!n)throw new Xu.EthereumRpcError(Xu.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\\n${nse(e)}`,{request:e})}};nC.JsonRpcEngine=ise;function nse(t){return JSON.stringify(t,null,2)}});var EUe=q(Gj=>{\\\"use strict\\\";u();Object.defineProperty(Gj,\\\"__esModule\\\",{value:!0});Gj.mergeMiddleware=void 0;var wSt=sse();function vSt(t){let e=new wSt.JsonRpcEngine;return t.forEach(r=>e.push(r)),e.asMiddleware()}Gj.mergeMiddleware=vSt});var ose=q(ed=>{\\\"use strict\\\";u();var xSt=ed&&ed.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iC=ed&&ed.__exportStar||function(t,e){for(var r in t)r!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,r)&&xSt(e,t,r)};Object.defineProperty(ed,\\\"__esModule\\\",{value:!0});iC(tUe(),ed);iC(rUe(),ed);iC(nUe(),ed);iC(Gie(),ed);iC(sse(),ed);iC(EUe(),ed)});var Jj=q((rsn,Qj)=>{u();var _Ue,CUe,SUe,AUe,TUe,IUe,RUe,PUe,OUe,NUe,kUe,BUe,MUe,Kj,ase,DUe,LUe,UUe,sC,FUe,jUe,HUe,qUe,zUe,$Ue,VUe,WUe,GUe,Zj,KUe,ZUe,QUe;(function(t){var e=typeof globalThis==\\\"object\\\"?globalThis:typeof self==\\\"object\\\"?self:typeof this==\\\"object\\\"?this:{};typeof define==\\\"function\\\"&&define.amd?define(\\\"tslib\\\",[\\\"exports\\\"],function(n){t(r(e,r(n)))}):typeof Qj==\\\"object\\\"&&typeof Qj.exports==\\\"object\\\"?t(r(e,r(Qj.exports))):t(r(e));function r(n,i){return n!==e&&(typeof Object.create==\\\"function\\\"?Object.defineProperty(n,\\\"__esModule\\\",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(s[a]=o[a])};_Ue=function(s,o){if(typeof o!=\\\"function\\\"&&o!==null)throw new TypeError(\\\"Class extends value \\\"+String(o)+\\\" is not a constructor or null\\\");e(s,o);function a(){this.constructor=s}s.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)},CUe=Object.assign||function(s){for(var o,a=1,c=arguments.length;a<c;a++){o=arguments[a];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(s[l]=o[l])}return s},SUe=function(s,o){var a={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&o.indexOf(c)<0&&(a[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols==\\\"function\\\")for(var l=0,c=Object.getOwnPropertySymbols(s);l<c.length;l++)o.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(s,c[l])&&(a[c[l]]=s[c[l]]);return a},AUe=function(s,o,a,c){var l=arguments.length,d=l<3?o:c===null?c=Object.getOwnPropertyDescriptor(o,a):c,f;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")d=Reflect.decorate(s,o,a,c);else for(var p=s.length-1;p>=0;p--)(f=s[p])&&(d=(l<3?f(d):l>3?f(o,a,d):f(o,a))||d);return l>3&&d&&Object.defineProperty(o,a,d),d},TUe=function(s,o){return function(a,c){o(a,c,s)}},IUe=function(s,o,a,c,l,d){function f(N){if(N!==void 0&&typeof N!=\\\"function\\\")throw new TypeError(\\\"Function expected\\\");return N}for(var p=c.kind,h=p===\\\"getter\\\"?\\\"get\\\":p===\\\"setter\\\"?\\\"set\\\":\\\"value\\\",m=!o&&s?c.static?s:s.prototype:null,g=o||(m?Object.getOwnPropertyDescriptor(m,c.name):{}),w,v=!1,b=a.length-1;b>=0;b--){var _={};for(var S in c)_[S]=S===\\\"access\\\"?{}:c[S];for(var S in c.access)_.access[S]=c.access[S];_.addInitializer=function(N){if(v)throw new TypeError(\\\"Cannot add initializers after decoration has completed\\\");d.push(f(N||null))};var T=(0,a[b])(p===\\\"accessor\\\"?{get:g.get,set:g.set}:g[h],_);if(p===\\\"accessor\\\"){if(T===void 0)continue;if(T===null||typeof T!=\\\"object\\\")throw new TypeError(\\\"Object expected\\\");(w=f(T.get))&&(g.get=w),(w=f(T.set))&&(g.set=w),(w=f(T.init))&&l.unshift(w)}else(w=f(T))&&(p===\\\"field\\\"?l.unshift(w):g[h]=w)}m&&Object.defineProperty(m,c.name,g),v=!0},RUe=function(s,o,a){for(var c=arguments.length>2,l=0;l<o.length;l++)a=c?o[l].call(s,a):o[l].call(s);return c?a:void 0},PUe=function(s){return typeof s==\\\"symbol\\\"?s:\\\"\\\".concat(s)},OUe=function(s,o,a){return typeof o==\\\"symbol\\\"&&(o=o.description?\\\"[\\\".concat(o.description,\\\"]\\\"):\\\"\\\"),Object.defineProperty(s,\\\"name\\\",{configurable:!0,value:a?\\\"\\\".concat(a,\\\" \\\",o):o})},NUe=function(s,o){if(typeof Reflect==\\\"object\\\"&&typeof Reflect.metadata==\\\"function\\\")return Reflect.metadata(s,o)},kUe=function(s,o,a,c){function l(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function p(g){try{m(c.next(g))}catch(w){f(w)}}function h(g){try{m(c.throw(g))}catch(w){f(w)}}function m(g){g.done?d(g.value):l(g.value).then(p,h)}m((c=c.apply(s,o||[])).next())})},BUe=function(s,o){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},c,l,d,f=Object.create((typeof Iterator==\\\"function\\\"?Iterator:Object).prototype);return f.next=p(0),f.throw=p(1),f.return=p(2),typeof Symbol==\\\"function\\\"&&(f[Symbol.iterator]=function(){return this}),f;function p(m){return function(g){return h([m,g])}}function h(m){if(c)throw new TypeError(\\\"Generator is already executing.\\\");for(;f&&(f=0,m[0]&&(a=0)),a;)try{if(c=1,l&&(d=m[0]&2?l.return:m[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,m[1])).done)return d;switch(l=0,d&&(m=[m[0]&2,d.value]),m[0]){case 0:case 1:d=m;break;case 4:return a.label++,{value:m[1],done:!1};case 5:a.label++,l=m[1],m=[0];continue;case 7:m=a.ops.pop(),a.trys.pop();continue;default:if(d=a.trys,!(d=d.length>0&&d[d.length-1])&&(m[0]===6||m[0]===2)){a=0;continue}if(m[0]===3&&(!d||m[1]>d[0]&&m[1]<d[3])){a.label=m[1];break}if(m[0]===6&&a.label<d[1]){a.label=d[1],d=m;break}if(d&&a.label<d[2]){a.label=d[2],a.ops.push(m);break}d[2]&&a.ops.pop(),a.trys.pop();continue}m=o.call(s,a)}catch(g){m=[6,g],l=0}finally{c=d=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},MUe=function(s,o){for(var a in s)a!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(o,a)&&Zj(o,s,a)},Zj=Object.create?(function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||(\\\"get\\\"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}):(function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),Kj=function(s){var o=typeof Symbol==\\\"function\\\"&&Symbol.iterator,a=o&&s[o],c=0;if(a)return a.call(s);if(s&&typeof s.length==\\\"number\\\")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(o?\\\"Object is not iterable.\\\":\\\"Symbol.iterator is not defined.\\\")},ase=function(s,o){var a=typeof Symbol==\\\"function\\\"&&s[Symbol.iterator];if(!a)return s;var c=a.call(s),l,d=[],f;try{for(;(o===void 0||o-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(p){f={error:p}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(f)throw f.error}}return d},DUe=function(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(ase(arguments[o]));return s},LUe=function(){for(var s=0,o=0,a=arguments.length;o<a;o++)s+=arguments[o].length;for(var c=Array(s),l=0,o=0;o<a;o++)for(var d=arguments[o],f=0,p=d.length;f<p;f++,l++)c[l]=d[f];return c},UUe=function(s,o,a){if(a||arguments.length===2)for(var c=0,l=o.length,d;c<l;c++)(d||!(c in o))&&(d||(d=Array.prototype.slice.call(o,0,c)),d[c]=o[c]);return s.concat(d||Array.prototype.slice.call(o))},sC=function(s){return this instanceof sC?(this.v=s,this):new sC(s)},FUe=function(s,o,a){if(!Symbol.asyncIterator)throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");var c=a.apply(s,o||[]),l,d=[];return l=Object.create((typeof AsyncIterator==\\\"function\\\"?AsyncIterator:Object).prototype),p(\\\"next\\\"),p(\\\"throw\\\"),p(\\\"return\\\",f),l[Symbol.asyncIterator]=function(){return this},l;function f(b){return function(_){return Promise.resolve(_).then(b,w)}}function p(b,_){c[b]&&(l[b]=function(S){return new Promise(function(T,N){d.push([b,S,T,N])>1||h(b,S)})},_&&(l[b]=_(l[b])))}function h(b,_){try{m(c[b](_))}catch(S){v(d[0][3],S)}}function m(b){b.value instanceof sC?Promise.resolve(b.value.v).then(g,w):v(d[0][2],b)}function g(b){h(\\\"next\\\",b)}function w(b){h(\\\"throw\\\",b)}function v(b,_){b(_),d.shift(),d.length&&h(d[0][0],d[0][1])}},jUe=function(s){var o,a;return o={},c(\\\"next\\\"),c(\\\"throw\\\",function(l){throw l}),c(\\\"return\\\"),o[Symbol.iterator]=function(){return this},o;function c(l,d){o[l]=s[l]?function(f){return(a=!a)?{value:sC(s[l](f)),done:!1}:d?d(f):f}:d}},HUe=function(s){if(!Symbol.asyncIterator)throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");var o=s[Symbol.asyncIterator],a;return o?o.call(s):(s=typeof Kj==\\\"function\\\"?Kj(s):s[Symbol.iterator](),a={},c(\\\"next\\\"),c(\\\"throw\\\"),c(\\\"return\\\"),a[Symbol.asyncIterator]=function(){return this},a);function c(d){a[d]=s[d]&&function(f){return new Promise(function(p,h){f=s[d](f),l(p,h,f.done,f.value)})}}function l(d,f,p,h){Promise.resolve(h).then(function(m){d({value:m,done:p})},f)}},qUe=function(s,o){return Object.defineProperty?Object.defineProperty(s,\\\"raw\\\",{value:o}):s.raw=o,s};var r=Object.create?(function(s,o){Object.defineProperty(s,\\\"default\\\",{enumerable:!0,value:o})}):function(s,o){s.default=o},n=function(s){return n=Object.getOwnPropertyNames||function(o){var a=[];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(a[a.length]=c);return a},n(s)};zUe=function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var a=n(s),c=0;c<a.length;c++)a[c]!==\\\"default\\\"&&Zj(o,s,a[c]);return r(o,s),o},$Ue=function(s){return s&&s.__esModule?s:{default:s}},VUe=function(s,o,a,c){if(a===\\\"a\\\"&&!c)throw new TypeError(\\\"Private accessor was defined without a getter\\\");if(typeof o==\\\"function\\\"?s!==o||!c:!o.has(s))throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");return a===\\\"m\\\"?c:a===\\\"a\\\"?c.call(s):c?c.value:o.get(s)},WUe=function(s,o,a,c,l){if(c===\\\"m\\\")throw new TypeError(\\\"Private method is not writable\\\");if(c===\\\"a\\\"&&!l)throw new TypeError(\\\"Private accessor was defined without a setter\\\");if(typeof o==\\\"function\\\"?s!==o||!l:!o.has(s))throw new TypeError(\\\"Cannot write private member to an object whose class did not declare it\\\");return c===\\\"a\\\"?l.call(s,a):l?l.value=a:o.set(s,a),a},GUe=function(s,o){if(o===null||typeof o!=\\\"object\\\"&&typeof o!=\\\"function\\\")throw new TypeError(\\\"Cannot use 'in' operator on non-object\\\");return typeof s==\\\"function\\\"?o===s:s.has(o)},KUe=function(s,o,a){if(o!=null){if(typeof o!=\\\"object\\\"&&typeof o!=\\\"function\\\")throw new TypeError(\\\"Object expected.\\\");var c,l;if(a){if(!Symbol.asyncDispose)throw new TypeError(\\\"Symbol.asyncDispose is not defined.\\\");c=o[Symbol.asyncDispose]}if(c===void 0){if(!Symbol.dispose)throw new TypeError(\\\"Symbol.dispose is not defined.\\\");c=o[Symbol.dispose],a&&(l=c)}if(typeof c!=\\\"function\\\")throw new TypeError(\\\"Object not disposable.\\\");l&&(c=function(){try{l.call(this)}catch(d){return Promise.reject(d)}}),s.stack.push({value:o,dispose:c,async:a})}else a&&s.stack.push({async:!0});return o};var i=typeof SuppressedError==\\\"function\\\"?SuppressedError:function(s,o,a){var c=new Error(a);return c.name=\\\"SuppressedError\\\",c.error=s,c.suppressed=o,c};ZUe=function(s){function o(d){s.error=s.hasError?new i(d,s.error,\\\"An error was suppressed during disposal.\\\"):d,s.hasError=!0}var a,c=0;function l(){for(;a=s.stack.pop();)try{if(!a.async&&c===1)return c=0,s.stack.push(a),Promise.resolve().then(l);if(a.dispose){var d=a.dispose.call(a.value);if(a.async)return c|=2,Promise.resolve(d).then(l,function(f){return o(f),l()})}else c|=1}catch(f){o(f)}if(c===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return l()},QUe=function(s,o){return typeof s==\\\"string\\\"&&/^\\\\.\\\\.?\\\\//.test(s)?s.replace(/\\\\.(tsx)$|((?:\\\\.d)?)((?:\\\\.[^./]+?)?)\\\\.([cm]?)ts$/i,function(a,c,l,d,f){return c?o?\\\".jsx\\\":\\\".js\\\":l&&(!d||!f)?a:l+d+\\\".\\\"+f.toLowerCase()+\\\"js\\\"}):s},t(\\\"__extends\\\",_Ue),t(\\\"__assign\\\",CUe),t(\\\"__rest\\\",SUe),t(\\\"__decorate\\\",AUe),t(\\\"__param\\\",TUe),t(\\\"__esDecorate\\\",IUe),t(\\\"__runInitializers\\\",RUe),t(\\\"__propKey\\\",PUe),t(\\\"__setFunctionName\\\",OUe),t(\\\"__metadata\\\",NUe),t(\\\"__awaiter\\\",kUe),t(\\\"__generator\\\",BUe),t(\\\"__exportStar\\\",MUe),t(\\\"__createBinding\\\",Zj),t(\\\"__values\\\",Kj),t(\\\"__read\\\",ase),t(\\\"__spread\\\",DUe),t(\\\"__spreadArrays\\\",LUe),t(\\\"__spreadArray\\\",UUe),t(\\\"__await\\\",sC),t(\\\"__asyncGenerator\\\",FUe),t(\\\"__asyncDelegator\\\",jUe),t(\\\"__asyncValues\\\",HUe),t(\\\"__makeTemplateObject\\\",qUe),t(\\\"__importStar\\\",zUe),t(\\\"__importDefault\\\",$Ue),t(\\\"__classPrivateFieldGet\\\",VUe),t(\\\"__classPrivateFieldSet\\\",WUe),t(\\\"__classPrivateFieldIn\\\",GUe),t(\\\"__addDisposableResource\\\",KUe),t(\\\"__disposeResources\\\",ZUe),t(\\\"__rewriteRelativeImportExtension\\\",QUe)})});var lse=q(cse=>{\\\"use strict\\\";u();Object.defineProperty(cse,\\\"__esModule\\\",{value:!0});var JUe=Jj(),ESt=(function(){function t(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error(\\\"semaphore must be initialized to a positive value\\\");this._value=e}return t.prototype.acquire=function(){var e=this,r=this.isLocked(),n=new Promise(function(i){return e._queue.push(i)});return r||this._dispatch(),n},t.prototype.runExclusive=function(e){return JUe.__awaiter(this,void 0,void 0,function(){var r,n,i;return JUe.__generator(this,function(s){switch(s.label){case 0:return[4,this.acquire()];case 1:r=s.sent(),n=r[0],i=r[1],s.label=2;case 2:return s.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,s.sent()];case 4:return i(),[7];case 5:return[2]}})})},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error(\\\"this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead\\\");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},t.prototype._dispatch=function(){var e=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},r([this._value--,this._currentReleaser])}},t})();cse.default=ESt});var XUe=q(use=>{\\\"use strict\\\";u();Object.defineProperty(use,\\\"__esModule\\\",{value:!0});var YUe=Jj(),_St=lse(),CSt=(function(){function t(){this._semaphore=new _St.default(1)}return t.prototype.acquire=function(){return YUe.__awaiter(this,void 0,void 0,function(){var e,r;return YUe.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),r=e[1],[2,r]}})})},t.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t})();use.default=CSt});var eFe=q(Xj=>{\\\"use strict\\\";u();Object.defineProperty(Xj,\\\"__esModule\\\",{value:!0});Xj.withTimeout=void 0;var Yj=Jj();function SSt(t,e,r){var n=this;return r===void 0&&(r=new Error(\\\"timeout\\\")),{acquire:function(){return new Promise(function(i,s){return Yj.__awaiter(n,void 0,void 0,function(){var o,a,c;return Yj.__generator(this,function(l){switch(l.label){case 0:return o=!1,setTimeout(function(){o=!0,s(r)},e),[4,t.acquire()];case 1:return a=l.sent(),o?(c=Array.isArray(a)?a[1]:a,c()):i(a),[2]}})})})},runExclusive:function(i){return Yj.__awaiter(this,void 0,void 0,function(){var s,o;return Yj.__generator(this,function(a){switch(a.label){case 0:s=function(){},a.label=1;case 1:return a.trys.push([1,,7,8]),[4,this.acquire()];case 2:return o=a.sent(),Array.isArray(o)?(s=o[1],[4,i(o[0])]):[3,4];case 3:return[2,a.sent()];case 4:return s=o,[4,i()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:return s(),[7];case 8:return[2]}})})},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}Xj.withTimeout=SSt});var tFe=q(d1=>{\\\"use strict\\\";u();Object.defineProperty(d1,\\\"__esModule\\\",{value:!0});d1.withTimeout=d1.Semaphore=d1.Mutex=void 0;var ASt=XUe();Object.defineProperty(d1,\\\"Mutex\\\",{enumerable:!0,get:function(){return ASt.default}});var TSt=lse();Object.defineProperty(d1,\\\"Semaphore\\\",{enumerable:!0,get:function(){return TSt.default}});var ISt=eFe();Object.defineProperty(d1,\\\"withTimeout\\\",{enumerable:!0,get:function(){return ISt.withTimeout}})});var nFe=q((fsn,rFe)=>{u();rFe.exports=PSt;var RSt=Object.prototype.hasOwnProperty;function PSt(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var n in r)RSt.call(r,n)&&(t[n]=r[n])}return t}});var sFe=q((hsn,iFe)=>{u();var OSt=nFe(),NSt=gj()();iFe.exports=ht;function ht(t){let e=this;e.currentProvider=t}ht.prototype.getBalance=x9(2,\\\"eth_getBalance\\\");ht.prototype.getCode=x9(2,\\\"eth_getCode\\\");ht.prototype.getTransactionCount=x9(2,\\\"eth_getTransactionCount\\\");ht.prototype.getStorageAt=x9(3,\\\"eth_getStorageAt\\\");ht.prototype.call=x9(2,\\\"eth_call\\\");ht.prototype.protocolVersion=Vt(\\\"eth_protocolVersion\\\");ht.prototype.syncing=Vt(\\\"eth_syncing\\\");ht.prototype.coinbase=Vt(\\\"eth_coinbase\\\");ht.prototype.mining=Vt(\\\"eth_mining\\\");ht.prototype.hashrate=Vt(\\\"eth_hashrate\\\");ht.prototype.gasPrice=Vt(\\\"eth_gasPrice\\\");ht.prototype.accounts=Vt(\\\"eth_accounts\\\");ht.prototype.blockNumber=Vt(\\\"eth_blockNumber\\\");ht.prototype.getBlockTransactionCountByHash=Vt(\\\"eth_getBlockTransactionCountByHash\\\");ht.prototype.getBlockTransactionCountByNumber=Vt(\\\"eth_getBlockTransactionCountByNumber\\\");ht.prototype.getUncleCountByBlockHash=Vt(\\\"eth_getUncleCountByBlockHash\\\");ht.prototype.getUncleCountByBlockNumber=Vt(\\\"eth_getUncleCountByBlockNumber\\\");ht.prototype.sign=Vt(\\\"eth_sign\\\");ht.prototype.sendTransaction=Vt(\\\"eth_sendTransaction\\\");ht.prototype.sendRawTransaction=Vt(\\\"eth_sendRawTransaction\\\");ht.prototype.estimateGas=Vt(\\\"eth_estimateGas\\\");ht.prototype.getBlockByHash=Vt(\\\"eth_getBlockByHash\\\");ht.prototype.getBlockByNumber=Vt(\\\"eth_getBlockByNumber\\\");ht.prototype.getTransactionByHash=Vt(\\\"eth_getTransactionByHash\\\");ht.prototype.getTransactionByBlockHashAndIndex=Vt(\\\"eth_getTransactionByBlockHashAndIndex\\\");ht.prototype.getTransactionByBlockNumberAndIndex=Vt(\\\"eth_getTransactionByBlockNumberAndIndex\\\");ht.prototype.getTransactionReceipt=Vt(\\\"eth_getTransactionReceipt\\\");ht.prototype.getUncleByBlockHashAndIndex=Vt(\\\"eth_getUncleByBlockHashAndIndex\\\");ht.prototype.getUncleByBlockNumberAndIndex=Vt(\\\"eth_getUncleByBlockNumberAndIndex\\\");ht.prototype.getCompilers=Vt(\\\"eth_getCompilers\\\");ht.prototype.compileLLL=Vt(\\\"eth_compileLLL\\\");ht.prototype.compileSolidity=Vt(\\\"eth_compileSolidity\\\");ht.prototype.compileSerpent=Vt(\\\"eth_compileSerpent\\\");ht.prototype.newFilter=Vt(\\\"eth_newFilter\\\");ht.prototype.newBlockFilter=Vt(\\\"eth_newBlockFilter\\\");ht.prototype.newPendingTransactionFilter=Vt(\\\"eth_newPendingTransactionFilter\\\");ht.prototype.uninstallFilter=Vt(\\\"eth_uninstallFilter\\\");ht.prototype.getFilterChanges=Vt(\\\"eth_getFilterChanges\\\");ht.prototype.getFilterLogs=Vt(\\\"eth_getFilterLogs\\\");ht.prototype.getLogs=Vt(\\\"eth_getLogs\\\");ht.prototype.getWork=Vt(\\\"eth_getWork\\\");ht.prototype.submitWork=Vt(\\\"eth_submitWork\\\");ht.prototype.submitHashrate=Vt(\\\"eth_submitHashrate\\\");ht.prototype.sendAsync=function(t,e){this.currentProvider.sendAsync(kSt(t),function(n,i){if(!n&&i.error&&(n=new Error(\\\"EthQuery - RPC Error - \\\"+i.error.message)),n)return e(n);e(null,i.result)})};function Vt(t){return function(){let e=this;var r=[].slice.call(arguments),n=r.pop();e.sendAsync({method:t,params:r},n)}}function x9(t,e){return function(){let r=this;var n=[].slice.call(arguments),i=n.pop();n.length<t&&n.push(\\\"latest\\\"),r.sendAsync({method:e,params:n},i)}}function kSt(t){return OSt({id:NSt(),jsonrpc:\\\"2.0\\\",params:[]},t)}});var lFe=q((gsn,cFe)=>{\\\"use strict\\\";u();var oFe=(t,e,r,n)=>function(...i){let s=e.promiseModule;return new s((o,a)=>{e.multiArgs?i.push((...l)=>{e.errorFirst?l[0]?a(l):(l.shift(),o(l)):o(l)}):e.errorFirst?i.push((l,d)=>{l?a(l):o(d)}):i.push(o),Reflect.apply(t,this===r?n:this,i)})},aFe=new WeakMap;cFe.exports=(t,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let r=typeof t;if(!(t!==null&&(r===\\\"object\\\"||r===\\\"function\\\")))throw new TypeError(`Expected \\\\`input\\\\` to be a \\\\`Function\\\\` or \\\\`Object\\\\`, got \\\\`${t===null?\\\"null\\\":r}\\\\``);let n=(o,a)=>{let c=aFe.get(o);if(c||(c={},aFe.set(o,c)),a in c)return c[a];let l=m=>typeof m==\\\"string\\\"||typeof a==\\\"symbol\\\"?a===m:m.test(a),d=Reflect.getOwnPropertyDescriptor(o,a),f=d===void 0||d.writable||d.configurable,h=(e.include?e.include.some(l):!e.exclude.some(l))&&f;return c[a]=h,h},i=new WeakMap,s=new Proxy(t,{apply(o,a,c){let l=i.get(o);if(l)return Reflect.apply(l,a,c);let d=e.excludeMain?o:oFe(o,e,s,o);return i.set(o,d),Reflect.apply(d,a,c)},get(o,a){let c=o[a];if(!n(o,a)||c===Function.prototype[a])return c;let l=i.get(c);if(l)return l;if(typeof c==\\\"function\\\"){let d=oFe(c,e,s,o);return i.set(c,d),d}return c}});return s}});var eH=q((bsn,uFe)=>{u();var BSt=yj().default,dse=class extends BSt{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error(\\\"BaseFilter - no update method specified\\\")}addResults(e){this.updates=this.updates.concat(e),e.forEach(r=>this.emit(\\\"update\\\",r))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};uFe.exports=dse});var fFe=q((vsn,dFe)=>{u();var MSt=eH(),fse=class extends MSt{constructor(){super(),this.allResults=[]}async update(){throw new Error(\\\"BaseFilterWithHistory - no update method specified\\\")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};dFe.exports=fse});var oC=q((Esn,mFe)=>{u();mFe.exports={minBlockRef:DSt,maxBlockRef:LSt,sortBlockRefs:pse,bnToHex:USt,blockRefIsNumber:FSt,hexToInt:tH,incrementHexInt:jSt,intToHex:hFe,unsafeRandomBytes:HSt};function DSt(...t){return pse(t)[0]}function LSt(...t){let e=pse(t);return e[e.length-1]}function pse(t){return t.sort((e,r)=>e===\\\"latest\\\"||r===\\\"earliest\\\"?1:r===\\\"latest\\\"||e===\\\"earliest\\\"?-1:tH(e)-tH(r))}function USt(t){return\\\"0x\\\"+t.toString(16)}function FSt(t){return t&&![\\\"earliest\\\",\\\"latest\\\",\\\"pending\\\"].includes(t)}function tH(t){return t==null?t:Number.parseInt(t,16)}function jSt(t){if(t==null)return t;let e=tH(t);return hFe(e+1)}function hFe(t){if(t==null)return t;let e=t.toString(16);return e.length%2&&(e=\\\"0\\\"+e),\\\"0x\\\"+e}function HSt(t){let e=\\\"0x\\\";for(let r=0;r<t;r++)e+=pFe(),e+=pFe();return e}function pFe(){return Math.floor(Math.random()*16).toString(16)}});var yFe=q((Ssn,gFe)=>{u();var qSt=sFe(),zSt=lFe(),$St=fFe(),{bnToHex:Csn,hexToInt:rH,incrementHexInt:VSt,minBlockRef:WSt,blockRefIsNumber:GSt}=oC(),hse=class extends $St{constructor({provider:e,params:r}){super(),this.type=\\\"log\\\",this.ethQuery=new qSt(e),this.params=Object.assign({fromBlock:\\\"latest\\\",toBlock:\\\"latest\\\",address:void 0,topics:[]},r),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let r=this.params.fromBlock;[\\\"latest\\\",\\\"pending\\\"].includes(r)&&(r=e),r===\\\"earliest\\\"&&(r=\\\"0x0\\\"),this.params.fromBlock=r;let n=WSt(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:e,newBlock:r}){let n=r,i;e?i=VSt(e):i=r;let s=Object.assign({},this.params,{fromBlock:i,toBlock:n}),a=(await this._fetchLogs(s)).filter(c=>this.matchLog(c));this.addResults(a)}async _fetchLogs(e){return await zSt(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(rH(this.params.fromBlock)>=rH(e.blockNumber)||GSt(this.params.toBlock)&&rH(this.params.toBlock)<=rH(e.blockNumber))return!1;let r=e.address&&e.address.toLowerCase();return this.params.address&&r&&!this.params.address.includes(r)?!1:this.params.topics.every((i,s)=>{let o=e.topics[s];if(!o)return!1;o=o.toLowerCase();let a=Array.isArray(i)?i:[i];return a.includes(null)?!0:(a=a.map(d=>d.toLowerCase()),a.includes(o))})}};gFe.exports=hse});var nH=q((Tsn,wFe)=>{u();wFe.exports=KSt;async function KSt({provider:t,fromBlock:e,toBlock:r}){e||(e=r);let n=bFe(e),s=bFe(r)-n+1,o=Array(s).fill().map((c,l)=>n+l).map(ZSt),a=await Promise.all(o.map(c=>JSt(t,\\\"eth_getBlockByNumber\\\",[c,!1])));return a=a.filter(c=>c!==null),a}function bFe(t){return t==null?t:Number.parseInt(t,16)}function ZSt(t){return t==null?t:\\\"0x\\\"+t.toString(16)}function QSt(t,e){return new Promise((r,n)=>{t.sendAsync(e,(i,s)=>{i?n(i):s.error?n(s.error):s.result?r(s.result):n(new Error(\\\"Result was empty\\\"))})})}async function JSt(t,e,r){for(let n=0;n<3;n++)try{return await QSt(t,{id:1,jsonrpc:\\\"2.0\\\",method:e,params:r})}catch(i){console.error(`provider.sendAsync failed: ${i.stack||i.message||i}`)}return null}});var xFe=q((Rsn,vFe)=>{u();var YSt=eH(),XSt=nH(),{incrementHexInt:eAt}=oC(),mse=class extends YSt{constructor({provider:e,params:r}){super(),this.type=\\\"block\\\",this.provider=e}async update({oldBlock:e,newBlock:r}){let n=r,i=eAt(e),o=(await XSt({provider:this.provider,fromBlock:i,toBlock:n})).map(a=>a.hash);this.addResults(o)}};vFe.exports=mse});var _Fe=q((Osn,EFe)=>{u();var tAt=eH(),rAt=nH(),{incrementHexInt:nAt}=oC(),gse=class extends tAt{constructor({provider:e}){super(),this.type=\\\"tx\\\",this.provider=e}async update({oldBlock:e}){let r=e,n=nAt(e),i=await rAt({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(let o of i)s.push(...o.transactions);this.addResults(s)}};EFe.exports=gse});var AFe=q((ksn,SFe)=>{u();var iAt=tFe().Mutex,{createAsyncMiddleware:sAt,createScaffoldMiddleware:oAt}=ose(),aAt=yFe(),cAt=xFe(),lAt=_Fe(),{intToHex:CFe,hexToInt:yse}=oC();SFe.exports=uAt;function uAt({blockTracker:t,provider:e}){let r=0,n={},i=new iAt,s=dAt({mutex:i}),o=oAt({eth_newFilter:s(bse(c)),eth_newBlockFilter:s(bse(l)),eth_newPendingTransactionFilter:s(bse(d)),eth_uninstallFilter:s(iH(h)),eth_getFilterChanges:s(iH(f)),eth_getFilterLogs:s(iH(p))}),a=async({oldBlock:b,newBlock:_})=>{if(n.length===0)return;let S=await i.acquire();try{await Promise.all(aC(n).map(async T=>{try{await T.update({oldBlock:b,newBlock:_})}catch(N){console.error(N)}}))}catch(T){console.error(T)}S()};return o.newLogFilter=c,o.newBlockFilter=l,o.newPendingTransactionFilter=d,o.uninstallFilter=h,o.getFilterChanges=f,o.getFilterLogs=p,o.destroy=()=>{w()},o;async function c(b){let _=new aAt({provider:e,params:b}),S=await m(_);return _}async function l(){let b=new cAt({provider:e}),_=await m(b);return b}async function d(){let b=new lAt({provider:e}),_=await m(b);return b}async function f(b){let _=yse(b),S=n[_];if(!S)throw new Error(`No filter for index \\\"${_}\\\"`);return S.getChangesAndClear()}async function p(b){let _=yse(b),S=n[_];if(!S)throw new Error(`No filter for index \\\"${_}\\\"`);let T=[];return S.type===\\\"log\\\"&&(T=S.getAllResults()),T}async function h(b){let _=yse(b),T=!!n[_];return T&&await g(_),T}async function m(b){let _=aC(n).length,S=await t.getLatestBlock();await b.initialize({currentBlock:S}),r++,n[r]=b,b.id=r,b.idHex=CFe(r);let T=aC(n).length;return v({prevFilterCount:_,newFilterCount:T}),r}async function g(b){let _=aC(n).length;delete n[b];let S=aC(n).length;v({prevFilterCount:_,newFilterCount:S})}async function w(){let b=aC(n).length;n={},v({prevFilterCount:b,newFilterCount:0})}function v({prevFilterCount:b,newFilterCount:_}){if(b===0&&_>0){t.on(\\\"sync\\\",a);return}if(b>0&&_===0){t.removeListener(\\\"sync\\\",a);return}}}function bse(t){return iH(async(...e)=>{let r=await t(...e);return CFe(r.id)})}function iH(t){return sAt(async(e,r)=>{let n=await t.apply(null,e.params);r.result=n})}function dAt({mutex:t}){return e=>async(r,n,i,s)=>{(await t.acquire())(),e(r,n,i,s)}}function aC(t,e){let r=[];for(let n in t)r.push(t[n]);return r}});var RFe=q((Msn,IFe)=>{u();var fAt=yj().default,{createAsyncMiddleware:TFe,createScaffoldMiddleware:pAt}=ose(),hAt=AFe(),{unsafeRandomBytes:mAt,incrementHexInt:gAt}=oC(),yAt=nH();IFe.exports=bAt;function bAt({blockTracker:t,provider:e}){let r={},n=hAt({blockTracker:t,provider:e}),i=!1,s=new fAt,o=pAt({eth_subscribe:TFe(a),eth_unsubscribe:TFe(c)});return o.destroy=d,{events:s,middleware:o};async function a(f,p){if(i)throw new Error(\\\"SubscriptionManager - attempting to use after destroying\\\");let h=f.params[0],m=mAt(16),g;switch(h){case\\\"newHeads\\\":g=w({subId:m});break;case\\\"logs\\\":let b=f.params[1],_=await n.newLogFilter(b);g=v({subId:m,filter:_});break;default:throw new Error(`SubscriptionManager - unsupported subscription type \\\"${h}\\\"`)}r[m]=g,p.result=m;return;function w({subId:b}){let _={type:h,destroy:async()=>{t.removeListener(\\\"sync\\\",_.update)},update:async({oldBlock:S,newBlock:T})=>{let N=T,O=gAt(S);(await yAt({provider:e,fromBlock:O,toBlock:N})).map(wAt).filter(H=>H!==null).forEach(H=>{l(b,H)})}};return t.on(\\\"sync\\\",_.update),_}function v({subId:b,filter:_}){return _.on(\\\"update\\\",T=>l(b,T)),{type:h,destroy:async()=>await n.uninstallFilter(_.idHex)}}}async function c(f,p){if(i)throw new Error(\\\"SubscriptionManager - attempting to use after destroying\\\");let h=f.params[0],m=r[h];if(!m){p.result=!1;return}delete r[h],await m.destroy(),p.result=!0}function l(f,p){s.emit(\\\"notification\\\",{jsonrpc:\\\"2.0\\\",method:\\\"eth_subscription\\\",params:{subscription:f,result:p}})}function d(){s.removeAllListeners();for(let f in r)r[f].destroy(),delete r[f];i=!0}}function wAt(t){return t==null?null:{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}});var OFe=q(sH=>{\\\"use strict\\\";u();Object.defineProperty(sH,\\\"__esModule\\\",{value:!0});sH.SubscriptionManager=void 0;var vAt=XLe(),xAt=RFe(),PFe=()=>{},wse=class{constructor(e){let r=new vAt.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:i}=xAt({blockTracker:r,provider:e});this.events=n,this.subscriptionMiddleware=i}async handleRequest(e){let r={};return await this.subscriptionMiddleware(e,r,PFe,PFe),r}destroy(){this.subscriptionMiddleware.destroy()}};sH.SubscriptionManager=wse});var aH=q(cC=>{\\\"use strict\\\";u();var MFe=cC&&cC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cC,\\\"__esModule\\\",{value:!0});cC.CoinbaseWalletProvider=void 0;var EAt=MFe(SI()),_At=sRe(),gr=TI(),Bt=Np(),CAt=Nne(),NFe=nF(),oH=_F(),Nl=KU(),vse=MFe(VBe()),E9=rF(),SAt=QBe(),AAt=OFe(),kFe=\\\"DefaultChainId\\\",BFe=\\\"DefaultJsonRpcUrl\\\",xse=class extends _At.EventEmitter{constructor(e){var r,n;super(),this._filterPolyfill=new SAt.FilterPolyfill(this),this._subscriptionManager=new AAt.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(r=e.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl;let i=this.getChainId(),s=(0,Bt.prepend0x)(i.toString(16));this.emit(\\\"connect\\\",{chainIdStr:s});let o=this._storage.getItem(NFe.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let a=o.split(\\\" \\\");a[0]!==\\\"\\\"&&(this._addresses=a.map(c=>(0,Bt.ensureAddressString)(c)),this.emit(\\\"accountsChanged\\\",a))}this._subscriptionManager.events.on(\\\"notification\\\",a=>{this.emit(\\\"message\\\",{type:a.method,data:a.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener(\\\"message\\\",a=>{var c;if(!(a.origin!==location.origin||a.source!==window)&&a.data.type===\\\"walletLinkMessage\\\"&&a.data.data.action===\\\"dappChainSwitched\\\"){let l=a.data.data.chainId,d=(c=a.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(d,Number(l))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Bt.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(BFe))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(BFe,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,r){this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,r){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(kFe,r.toString(10)),((0,Bt.ensureIntNumber)(r)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit(\\\"chainChanged\\\",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,r,n,i,s,o){let c=await(await this.initializeRelay()).watchAsset(e,r,n,i,s,o?.toString()).promise;return(0,Nl.isErrorResponse)(c)?!1:!!c.result}async addEthereumChain(e,r,n,i,s,o){var a,c;if((0,Bt.ensureIntNumber)(e)===this.getChainId())return!1;let l=await this.initializeRelay(),d=l.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!d&&await l.requestEthereumAccounts().promise;let f=await l.addEthereumChain(e.toString(),r,s,n,i,o).promise;return(0,Nl.isErrorResponse)(f)?!1:(((a=f.result)===null||a===void 0?void 0:a.isApproved)===!0&&this.updateProviderInfo(r[0],e),((c=f.result)===null||c===void 0?void 0:c.isApproved)===!0)}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,Nl.isErrorResponse)(n)){if(!n.errorCode)return;throw n.errorCode===gr.standardErrorCodes.provider.unsupportedChain?gr.standardErrors.provider.unsupportedChain():gr.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}setAppInfo(e,r){this.initializeRelay().then(n=>n.setAppInfo(e,r))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(E9.EVENTS.ETH_ACCOUNTS_STATE,{method:\\\"provider::enable\\\",addresses_length:this._addresses.length,sessionIdHash:this._relay?oH.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(\\\"eth_requestAccounts\\\")}async close(){(await this.initializeRelay()).resetAndReload()}send(e,r){try{let n=this._send(e,r);if(n instanceof Promise)return n.catch(i=>{throw(0,gr.serializeError)(i,e)})}catch(n){throw(0,gr.serializeError)(n,e)}}_send(e,r){if(typeof e==\\\"string\\\"){let i=e,s=Array.isArray(r)?r:r!==void 0?[r]:[],o={jsonrpc:\\\"2.0\\\",id:0,method:i,params:s};return this._sendRequestAsync(o).then(a=>a.result)}if(typeof r==\\\"function\\\"){let i=e,s=r;return this._sendAsync(i,s)}if(Array.isArray(e))return e.map(s=>this._sendRequest(s));let n=e;return this._sendRequest(n)}async sendAsync(e,r){try{return this._sendAsync(e,r).catch(n=>{throw(0,gr.serializeError)(n,e)})}catch(n){return Promise.reject((0,gr.serializeError)(n,e))}}async _sendAsync(e,r){if(typeof r!=\\\"function\\\")throw new Error(\\\"callback is required\\\");if(Array.isArray(e)){let i=r;this._sendMultipleRequestsAsync(e).then(s=>i(null,s)).catch(s=>i(s,null));return}let n=r;return this._sendRequestAsync(e).then(i=>n(null,i)).catch(i=>n(i,null))}async request(e){try{return this._request(e).catch(r=>{throw(0,gr.serializeError)(r,e.method)})}catch(r){return Promise.reject((0,gr.serializeError)(r,e.method))}}async _request(e){if(!e||typeof e!=\\\"object\\\"||Array.isArray(e))throw gr.standardErrors.rpc.invalidRequest({message:\\\"Expected a single, non-array, object argument.\\\",data:e});let{method:r,params:n}=e;if(typeof r!=\\\"string\\\"||r.length===0)throw gr.standardErrors.rpc.invalidRequest({message:\\\"'args.method' must be a non-empty string.\\\",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\\\"object\\\"||n===null))throw gr.standardErrors.rpc.invalidRequest({message:\\\"'args.params' must be an object or array if provided.\\\",data:e});let i=n===void 0?[]:n,s=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:i,jsonrpc:\\\"2.0\\\",id:s})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Bt.ensureRegExpString)(e)).promise;if((0,Nl.isErrorResponse)(n))throw(0,gr.serializeError)(n.errorMessage,\\\"scanQRCode\\\");if(typeof n.result!=\\\"string\\\")throw(0,gr.serializeError)(\\\"result was not a string\\\",\\\"scanQRCode\\\");return n.result}async genericRequest(e,r){let i=await(await this.initializeRelay()).genericRequest(e,r).promise;if((0,Nl.isErrorResponse)(i))throw(0,gr.serializeError)(i.errorMessage,\\\"generic\\\");if(typeof i.result!=\\\"string\\\")throw(0,gr.serializeError)(\\\"result was not a string\\\",\\\"generic\\\");return i.result}async connectAndSignIn(e){var r;(r=this.diagnostic)===null||r===void 0||r.log(E9.EVENTS.ETH_ACCOUNTS_STATE,{method:\\\"provider::connectAndSignIn\\\",sessionIdHash:this._relay?oH.Session.hash(this._relay.session.id):void 0});let n;try{let s=await this.initializeRelay();if(!(s instanceof CAt.MobileRelay))throw new Error(\\\"connectAndSignIn is only supported on mobile\\\");if(n=await s.connectAndSignIn(e).promise,(0,Nl.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(s){throw typeof s.message==\\\"string\\\"&&s.message.match(/(denied|rejected)/i)?gr.standardErrors.provider.userRejectedRequest(\\\"User denied account authorization\\\"):s}if(!n.result)throw new Error(\\\"accounts received is empty\\\");let{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if((0,Nl.isErrorResponse)(n))throw(0,gr.serializeError)(n.errorMessage,\\\"selectProvider\\\");if(typeof n.result!=\\\"string\\\")throw(0,gr.serializeError)(\\\"result was not a string\\\",\\\"selectProvider\\\");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error(\\\"Subscriptions are not supported\\\")}unsubscribe(){throw new Error(\\\"Subscriptions are not supported\\\")}disconnect(){return!0}_sendRequest(e){let r={jsonrpc:\\\"2.0\\\",id:e.id},{method:n}=e;if(r.result=this._handleSynchronousMethods(e),r.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(e,r){if(!Array.isArray(e))throw new Error(\\\"addresses is not an array\\\");let n=e.map(i=>(0,Bt.ensureAddressString)(i));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit(\\\"accountsChanged\\\",this._addresses),this._storage.setItem(NFe.LOCAL_STORAGE_ADDRESSES_KEY,n.join(\\\" \\\")))}_sendRequestAsync(e){return new Promise((r,n)=>{try{let i=this._handleSynchronousMethods(e);if(i!==void 0)return r({jsonrpc:\\\"2.0\\\",id:e.id,result:i});let s=this._handleAsynchronousFilterMethods(e);if(s!==void 0){s.then(a=>r(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a));return}let o=this._handleSubscriptionMethods(e);if(o!==void 0){o.then(a=>r({jsonrpc:\\\"2.0\\\",id:e.id,result:a.result})).catch(a=>n(a));return}}catch(i){return n(i)}this._handleAsynchronousMethods(e).then(i=>i&&r(Object.assign(Object.assign({},i),{id:e.id}))).catch(i=>n(i))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(r=>this._sendRequestAsync(r)))}_handleSynchronousMethods(e){let{method:r}=e,n=e.params||[];switch(r){case\\\"eth_accounts\\\":return this._eth_accounts();case\\\"eth_coinbase\\\":return this._eth_coinbase();case\\\"eth_uninstallFilter\\\":return this._eth_uninstallFilter(n);case\\\"net_version\\\":return this._net_version();case\\\"eth_chainId\\\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:r}=e,n=e.params||[];switch(r){case\\\"eth_requestAccounts\\\":return this._eth_requestAccounts();case\\\"eth_sign\\\":return this._eth_sign(n);case\\\"eth_ecRecover\\\":return this._eth_ecRecover(n);case\\\"personal_sign\\\":return this._personal_sign(n);case\\\"personal_ecRecover\\\":return this._personal_ecRecover(n);case\\\"eth_signTransaction\\\":return this._eth_signTransaction(n);case\\\"eth_sendRawTransaction\\\":return this._eth_sendRawTransaction(n);case\\\"eth_sendTransaction\\\":return this._eth_sendTransaction(n);case\\\"eth_signTypedData_v1\\\":return this._eth_signTypedData_v1(n);case\\\"eth_signTypedData_v2\\\":return this._throwUnsupportedMethodError();case\\\"eth_signTypedData_v3\\\":return this._eth_signTypedData_v3(n);case\\\"eth_signTypedData_v4\\\":case\\\"eth_signTypedData\\\":return this._eth_signTypedData_v4(n);case\\\"cbWallet_arbitrary\\\":return this._cbwallet_arbitrary(n);case\\\"wallet_addEthereumChain\\\":return this._wallet_addEthereumChain(n);case\\\"wallet_switchEthereumChain\\\":return this._wallet_switchEthereumChain(n);case\\\"wallet_watchAsset\\\":return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl).catch(s=>{var o;throw(s.code===gr.standardErrorCodes.rpc.methodNotFound||s.code===gr.standardErrorCodes.rpc.methodNotSupported)&&((o=this.diagnostic)===null||o===void 0||o.log(E9.EVENTS.METHOD_NOT_IMPLEMENTED,{method:e.method,sessionIdHash:this._relay?oH.Session.hash(this._relay.session.id):void 0})),s})}_handleAsynchronousFilterMethods(e){let{method:r}=e,n=e.params||[];switch(r){case\\\"eth_newFilter\\\":return this._eth_newFilter(n);case\\\"eth_newBlockFilter\\\":return this._eth_newBlockFilter();case\\\"eth_newPendingTransactionFilter\\\":return this._eth_newPendingTransactionFilter();case\\\"eth_getFilterChanges\\\":return this._eth_getFilterChanges(n);case\\\"eth_getFilterLogs\\\":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case\\\"eth_subscribe\\\":case\\\"eth_unsubscribe\\\":return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let r=(0,Bt.ensureAddressString)(e);return this._addresses.map(i=>(0,Bt.ensureAddressString)(i)).includes(r)}catch{}return!1}_ensureKnownAddress(e){var r;if(!this._isKnownAddress(e))throw(r=this.diagnostic)===null||r===void 0||r.log(E9.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error(\\\"Unknown Ethereum address\\\")}_prepareTransactionParams(e){let r=e.from?(0,Bt.ensureAddressString)(e.from):this.selectedAddress;if(!r)throw new Error(\\\"Ethereum address is unavailable\\\");this._ensureKnownAddress(r);let n=e.to?(0,Bt.ensureAddressString)(e.to):null,i=e.value!=null?(0,Bt.ensureBN)(e.value):new EAt.default(0),s=e.data?(0,Bt.ensureBuffer)(e.data):globalThis.Buffer.alloc(0),o=e.nonce!=null?(0,Bt.ensureIntNumber)(e.nonce):null,a=e.gasPrice!=null?(0,Bt.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Bt.ensureBN)(e.maxFeePerGas):null,l=e.maxPriorityFeePerGas!=null?(0,Bt.ensureBN)(e.maxPriorityFeePerGas):null,d=e.gas!=null?(0,Bt.ensureBN)(e.gas):null,f=e.chainId?(0,Bt.ensureIntNumber)(e.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:i,data:s,nonce:o,gasPriceInWei:a,maxFeePerGas:c,maxPriorityFeePerGas:l,gasLimit:d,chainId:f}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw gr.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw gr.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,r,n,i){this._ensureKnownAddress(r);try{let o=await(await this.initializeRelay()).signEthereumMessage(e,r,n,i).promise;if((0,Nl.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\\\"2.0\\\",id:0,result:o.result}}catch(s){throw typeof s.message==\\\"string\\\"&&s.message.match(/(denied|rejected)/i)?gr.standardErrors.provider.userRejectedRequest(\\\"User denied message signature\\\"):s}}async _ethereumAddressFromSignedMessage(e,r,n){let s=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,r,n).promise;if((0,Nl.isErrorResponse)(s))throw new Error(s.errorMessage);return{jsonrpc:\\\"2.0\\\",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Bt.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(kFe);if(!e)return(0,Bt.ensureIntNumber)(this._chainIdFromOpts);let r=parseInt(e,10);return(0,Bt.ensureIntNumber)(r)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(E9.EVENTS.ETH_ACCOUNTS_STATE,{method:\\\"provider::_eth_requestAccounts\\\",addresses_length:this._addresses.length,sessionIdHash:this._relay?oH.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:\\\"2.0\\\",id:0,result:this._addresses});let r;try{if(r=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,Nl.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(n){throw typeof n.message==\\\"string\\\"&&n.message.match(/(denied|rejected)/i)?gr.standardErrors.provider.userRejectedRequest(\\\"User denied account authorization\\\"):n}if(!r.result)throw new Error(\\\"accounts received is empty\\\");return this._setAddresses(r.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:\\\"2.0\\\",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let r=(0,Bt.ensureAddressString)(e[0]),n=(0,Bt.ensureBuffer)(e[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(e){let r=(0,Bt.ensureBuffer)(e[0]),n=(0,Bt.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(e){this._requireAuthorization();let r=(0,Bt.ensureBuffer)(e[0]),n=(0,Bt.ensureAddressString)(e[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(e){let r=(0,Bt.ensureBuffer)(e[0]),n=(0,Bt.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let r=this._prepareTransactionParams(e[0]||{});try{let i=await(await this.initializeRelay()).signEthereumTransaction(r).promise;if((0,Nl.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:\\\"2.0\\\",id:0,result:i.result}}catch(n){throw typeof n.message==\\\"string\\\"&&n.message.match(/(denied|rejected)/i)?gr.standardErrors.provider.userRejectedRequest(\\\"User denied transaction signature\\\"):n}}async _eth_sendRawTransaction(e){let r=(0,Bt.ensureBuffer)(e[0]),i=await(await this.initializeRelay()).submitEthereumTransaction(r,this.getChainId()).promise;if((0,Nl.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:\\\"2.0\\\",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let r=this._prepareTransactionParams(e[0]||{});try{let i=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(r).promise;if((0,Nl.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:\\\"2.0\\\",id:0,result:i.result}}catch(n){throw typeof n.message==\\\"string\\\"&&n.message.match(/(denied|rejected)/i)?gr.standardErrors.provider.userRejectedRequest(\\\"User denied transaction signature\\\"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let r=(0,Bt.ensureParsedJSONObject)(e[0]),n=(0,Bt.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=vse.default.hashForSignTypedDataLegacy({data:r}),s=JSON.stringify(r,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(e){this._requireAuthorization();let r=(0,Bt.ensureAddressString)(e[0]),n=(0,Bt.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(r);let i=vse.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _eth_signTypedData_v4(e){this._requireAuthorization();let r=(0,Bt.ensureAddressString)(e[0]),n=(0,Bt.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(r);let i=vse.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,s)}async _cbwallet_arbitrary(e){let r=e[0],n=e[1];if(typeof n!=\\\"string\\\")throw new Error(\\\"parameter must be a string\\\");if(typeof r!=\\\"object\\\"||r===null)throw new Error(\\\"parameter must be an object\\\");return{jsonrpc:\\\"2.0\\\",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(e){var r,n,i,s;let o=e[0];if(((r=o.rpcUrls)===null||r===void 0?void 0:r.length)===0)return{jsonrpc:\\\"2.0\\\",id:0,error:{code:2,message:\\\"please pass in at least 1 rpcUrl\\\"}};if(!o.chainName||o.chainName.trim()===\\\"\\\")throw gr.standardErrors.rpc.invalidParams(\\\"chainName is a required field\\\");if(!o.nativeCurrency)throw gr.standardErrors.rpc.invalidParams(\\\"nativeCurrency is a required field\\\");let a=parseInt(o.chainId,16);return await this.addEthereumChain(a,(n=o.rpcUrls)!==null&&n!==void 0?n:[],(i=o.blockExplorerUrls)!==null&&i!==void 0?i:[],o.chainName,(s=o.iconUrls)!==null&&s!==void 0?s:[],o.nativeCurrency)?{jsonrpc:\\\"2.0\\\",id:0,result:null}:{jsonrpc:\\\"2.0\\\",id:0,error:{code:2,message:\\\"unable to add ethereum chain\\\"}}}async _wallet_switchEthereumChain(e){let r=e[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:\\\"2.0\\\",id:0,result:null}}async _wallet_watchAsset(e){let r=Array.isArray(e)?e[0]:e;if(!r.type)throw gr.standardErrors.rpc.invalidParams(\\\"Type is required\\\");if(r?.type!==\\\"ERC20\\\")throw gr.standardErrors.rpc.invalidParams(`Asset of type '${r.type}' is not supported`);if(!r?.options)throw gr.standardErrors.rpc.invalidParams(\\\"Options are required\\\");if(!r?.options.address)throw gr.standardErrors.rpc.invalidParams(\\\"Address is required\\\");let n=this.getChainId(),{address:i,symbol:s,image:o,decimals:a}=r.options;return{jsonrpc:\\\"2.0\\\",id:0,result:await this.watchAsset(r.type,i,s,a,o,n)}}_eth_uninstallFilter(e){let r=(0,Bt.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(e){let r=e[0];return{jsonrpc:\\\"2.0\\\",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:\\\"2.0\\\",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:\\\"2.0\\\",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let r=(0,Bt.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(e){let r=(0,Bt.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((r,n)=>this._setAddresses(r,n)),e.setChainCallback((r,n)=>{this.updateProviderInfo(n,parseInt(r,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};cC.CoinbaseWalletProvider=xse});var DFe=q(cH=>{\\\"use strict\\\";u();Object.defineProperty(cH,\\\"__esModule\\\",{value:!0});cH.RelayEventManager=void 0;var TAt=Np(),Ese=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,r=(0,TAt.prepend0x)(e.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),e}};cH.RelayEventManager=Ese});var _se=q(uH=>{\\\"use strict\\\";u();Object.defineProperty(uH,\\\"__esModule\\\",{value:!0});uH.CoinbaseWalletSDK=void 0;var IAt=k7e(),RAt=B7e(),LFe=Np(),PAt=nRe(),OAt=aH(),NAt=Nne(),kAt=Pne(),BAt=DFe(),MAt=Sne(),DAt=Ane(),UFe=QU(),lH=class t{constructor(e){var r,n,i;this._appName=\\\"\\\",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let s=e.linkAPIUrl||RAt.LINK_API_URL;typeof e.overrideIsMetaMask>\\\"u\\\"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(r=e.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(i=e.reloadOnDisconnect)!==null&&i!==void 0?i:!0;let o=new URL(s),a=`${o.protocol}//${o.host}`;if(this._storage=new PAt.ScopedLocalStorage(`-walletlink:${a}`),this._storage.setItem(\\\"version\\\",t.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new BAt.RelayEventManager;let c=(0,LFe.isMobileWeb)(),l=e.uiConstructor||(f=>c?new kAt.MobileRelayUI(f):new MAt.WalletLinkRelayUI(f)),d={linkAPIUrl:s,version:UFe.LIB_VERSION,darkMode:!!e.darkMode,headlessMode:!!e.headlessMode,uiConstructor:l,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:e.enableMobileWalletLink};this._relay=c?new NAt.MobileRelay(d):new DAt.WalletLinkRelay(d),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI()}makeWeb3Provider(e=\\\"\\\",r=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,r),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect==\\\"function\\\"&&n.disableReloadOnDisconnect(),n;let i=this.coinbaseBrowser;if(i)return i;let s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw new Error(\\\"Relay not initialized, should never happen\\\");return e||s.setConnectDisabled(!0),new OAt.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,r){var n;this._appName=e||\\\"DApp\\\",this._appLogoUrl=r||(0,LFe.getFavicon)();let i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let r=this===null||this===void 0?void 0:this.walletExtension;r?r.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,r;return(r=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&r!==void 0?r:null}getCoinbaseWalletLogo(e,r=240){return(0,IAt.walletLogo)(e,r)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,r;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(r=window.top)===null||r===void 0?void 0:r.ethereum;return n&&\\\"isCoinbaseBrowser\\\"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher==\\\"boolean\\\"&&e.isCipher}};uH.CoinbaseWalletSDK=lH;lH.VERSION=UFe.LIB_VERSION});var jFe=q(f2=>{\\\"use strict\\\";u();Object.defineProperty(f2,\\\"__esModule\\\",{value:!0});f2.CoinbaseWalletProvider=f2.CoinbaseWalletSDK=void 0;var Cse=_se(),FFe=aH(),LAt=_se();Object.defineProperty(f2,\\\"CoinbaseWalletSDK\\\",{enumerable:!0,get:function(){return LAt.CoinbaseWalletSDK}});var UAt=aH();Object.defineProperty(f2,\\\"CoinbaseWalletProvider\\\",{enumerable:!0,get:function(){return UAt.CoinbaseWalletProvider}});f2.default=Cse.CoinbaseWalletSDK;typeof window<\\\"u\\\"&&(window.CoinbaseWalletSDK=Cse.CoinbaseWalletSDK,window.CoinbaseWalletProvider=FFe.CoinbaseWalletProvider,window.WalletLink=Cse.CoinbaseWalletSDK,window.WalletLinkProvider=FFe.CoinbaseWalletProvider)});function p2(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function Ase(t,e){let r,n=()=>{if(r)return r;let i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),r=p2(i),r.then(s=>{s.onclose=()=>r=void 0},()=>{}),r};return(i,s)=>n().then(o=>s(o.transaction(e,i).objectStore(e)))}function _9(){return Sse||(Sse=Ase(\\\"keyval-store\\\",\\\"keyval\\\")),Sse}function Tse(t,e=_9()){return e(\\\"readonly\\\",r=>p2(r.get(t)))}function HFe(t,e,r=_9()){return r(\\\"readwrite\\\",n=>(n.put(e,t),p2(n.transaction)))}function qFe(t,e=_9()){return e(\\\"readwrite\\\",r=>(r.delete(t),p2(r.transaction)))}function zFe(t=_9()){return t(\\\"readwrite\\\",e=>(e.clear(),p2(e.transaction)))}function HAt(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},p2(t.transaction)}function $Fe(t=_9()){return t(\\\"readonly\\\",e=>{if(e.getAllKeys)return p2(e.getAllKeys());let r=[];return HAt(e,n=>r.push(n.key)).then(()=>r)})}var Sse,VFe=x(()=>{u()});function dH(t){return t?ZFe(t):typeof document>\\\"u\\\"&&typeof navigator<\\\"u\\\"&&navigator.product===\\\"ReactNative\\\"?new WAt:typeof navigator<\\\"u\\\"?ZFe(navigator.userAgent):YAt()}function QAt(t){return t!==\\\"\\\"&&ZAt.reduce(function(e,r){var n=r[0],i=r[1];if(e)return e;var s=i.exec(t);return!!s&&[n,s]},!1)}function ZFe(t){var e=QAt(t);if(!e)return null;var r=e[0],n=e[1];if(r===\\\"searchbot\\\")return new VAt;var i=n[1]&&n[1].split(\\\".\\\").join(\\\"_\\\").split(\\\"_\\\").slice(0,3);i?i.length<GFe&&(i=WFe(WFe([],i,!0),XAt(GFe-i.length),!0)):i=[];var s=i.join(\\\".\\\"),o=JAt(t),a=KAt.exec(t);return a&&a[1]?new $At(r,s,o,a[1]):new qAt(r,s,o)}function JAt(t){for(var e=0,r=KFe.length;e<r;e++){var n=KFe[e],i=n[0],s=n[1],o=s.exec(t);if(o)return i}return null}function YAt(){var t=typeof process<\\\"u\\\"&&process.version;return t?new zAt(process.version.slice(1)):null}function XAt(t){for(var e=[],r=0;r<t;r++)e.push(\\\"0\\\");return e}var WFe,qAt,zAt,$At,VAt,WAt,GAt,KAt,GFe,ZAt,KFe,Ise=x(()=>{u();WFe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},qAt=(function(){function t(e,r,n){this.name=e,this.version=r,this.os=n,this.type=\\\"browser\\\"}return t})(),zAt=(function(){function t(e){this.version=e,this.type=\\\"node\\\",this.name=\\\"node\\\",this.os=process.platform}return t})(),$At=(function(){function t(e,r,n,i){this.name=e,this.version=r,this.os=n,this.bot=i,this.type=\\\"bot-device\\\"}return t})(),VAt=(function(){function t(){this.type=\\\"bot\\\",this.bot=!0,this.name=\\\"bot\\\",this.version=null,this.os=null}return t})(),WAt=(function(){function t(){this.type=\\\"react-native\\\",this.name=\\\"react-native\\\",this.version=null,this.os=null}return t})(),GAt=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,KAt=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\\\\ Jeeves\\\\/Teoma|ia_archiver)/,GFe=3,ZAt=[[\\\"aol\\\",/AOLShield\\\\/([0-9\\\\._]+)/],[\\\"edge\\\",/Edge\\\\/([0-9\\\\._]+)/],[\\\"edge-ios\\\",/EdgiOS\\\\/([0-9\\\\._]+)/],[\\\"yandexbrowser\\\",/YaBrowser\\\\/([0-9\\\\._]+)/],[\\\"kakaotalk\\\",/KAKAOTALK\\\\s([0-9\\\\.]+)/],[\\\"samsung\\\",/SamsungBrowser\\\\/([0-9\\\\.]+)/],[\\\"silk\\\",/\\\\bSilk\\\\/([0-9._-]+)\\\\b/],[\\\"miui\\\",/MiuiBrowser\\\\/([0-9\\\\.]+)$/],[\\\"beaker\\\",/BeakerBrowser\\\\/([0-9\\\\.]+)/],[\\\"edge-chromium\\\",/EdgA?\\\\/([0-9\\\\.]+)/],[\\\"chromium-webview\\\",/(?!Chrom.*OPR)wv\\\\).*Chrom(?:e|ium)\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\\\"chrome\\\",/(?!Chrom.*OPR)Chrom(?:e|ium)\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\\\"phantomjs\\\",/PhantomJS\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\\\"crios\\\",/CriOS\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\\\"firefox\\\",/Firefox\\\\/([0-9\\\\.]+)(?:\\\\s|$)/],[\\\"fxios\\\",/FxiOS\\\\/([0-9\\\\.]+)/],[\\\"opera-mini\\\",/Opera Mini.*Version\\\\/([0-9\\\\.]+)/],[\\\"opera\\\",/Opera\\\\/([0-9\\\\.]+)(?:\\\\s|$)/],[\\\"opera\\\",/OPR\\\\/([0-9\\\\.]+)(:?\\\\s|$)/],[\\\"pie\\\",/^Microsoft Pocket Internet Explorer\\\\/(\\\\d+\\\\.\\\\d+)$/],[\\\"pie\\\",/^Mozilla\\\\/\\\\d\\\\.\\\\d+\\\\s\\\\(compatible;\\\\s(?:MSP?IE|MSInternet Explorer) (\\\\d+\\\\.\\\\d+);.*Windows CE.*\\\\)$/],[\\\"netfront\\\",/^Mozilla\\\\/\\\\d\\\\.\\\\d+.*NetFront\\\\/(\\\\d.\\\\d)/],[\\\"ie\\\",/Trident\\\\/7\\\\.0.*rv\\\\:([0-9\\\\.]+).*\\\\).*Gecko$/],[\\\"ie\\\",/MSIE\\\\s([0-9\\\\.]+);.*Trident\\\\/[4-7].0/],[\\\"ie\\\",/MSIE\\\\s(7\\\\.0)/],[\\\"bb10\\\",/BB10;\\\\sTouch.*Version\\\\/([0-9\\\\.]+)/],[\\\"android\\\",/Android\\\\s([0-9\\\\.]+)/],[\\\"ios\\\",/Version\\\\/([0-9\\\\._]+).*Mobile.*Safari.*/],[\\\"safari\\\",/Version\\\\/([0-9\\\\._]+).*Safari/],[\\\"facebook\\\",/FB[AS]V\\\\/([0-9\\\\.]+)/],[\\\"instagram\\\",/Instagram\\\\s([0-9\\\\.]+)/],[\\\"ios-webview\\\",/AppleWebKit\\\\/([0-9\\\\.]+).*Mobile/],[\\\"ios-webview\\\",/AppleWebKit\\\\/([0-9\\\\.]+).*Gecko\\\\)$/],[\\\"curl\\\",/^curl\\\\/([0-9\\\\.]+)$/],[\\\"searchbot\\\",GAt]],KFe=[[\\\"iOS\\\",/iP(hone|od|ad)/],[\\\"Android OS\\\",/Android/],[\\\"BlackBerry OS\\\",/BlackBerry|BB10/],[\\\"Windows Mobile\\\",/IEMobile/],[\\\"Amazon OS\\\",/Kindle/],[\\\"Windows 3.11\\\",/Win16/],[\\\"Windows 95\\\",/(Windows 95)|(Win95)|(Windows_95)/],[\\\"Windows 98\\\",/(Windows 98)|(Win98)/],[\\\"Windows 2000\\\",/(Windows NT 5.0)|(Windows 2000)/],[\\\"Windows XP\\\",/(Windows NT 5.1)|(Windows XP)/],[\\\"Windows Server 2003\\\",/(Windows NT 5.2)/],[\\\"Windows Vista\\\",/(Windows NT 6.0)/],[\\\"Windows 7\\\",/(Windows NT 6.1)/],[\\\"Windows 8\\\",/(Windows NT 6.2)/],[\\\"Windows 8.1\\\",/(Windows NT 6.3)/],[\\\"Windows 10\\\",/(Windows NT 10.0)/],[\\\"Windows ME\\\",/Windows ME/],[\\\"Windows CE\\\",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],[\\\"Open BSD\\\",/OpenBSD/],[\\\"Sun OS\\\",/SunOS/],[\\\"Chrome OS\\\",/CrOS/],[\\\"Linux\\\",/(Linux)|(X11)/],[\\\"Mac OS\\\",/(Mac_PowerPC)|(Macintosh)/],[\\\"QNX\\\",/QNX/],[\\\"BeOS\\\",/BeOS/],[\\\"OS/2\\\",/OS\\\\/2/]]});var dC=q((ton,pH)=>{u();var QFe,JFe,YFe,XFe,eje,tje,rje,nje,ije,fH,Rse,sje,oje,uC,aje,cje,lje,uje,dje,fje,pje,hje,mje;(function(t){var e=typeof globalThis==\\\"object\\\"?globalThis:typeof self==\\\"object\\\"?self:typeof this==\\\"object\\\"?this:{};typeof define==\\\"function\\\"&&define.amd?define(\\\"tslib\\\",[\\\"exports\\\"],function(n){t(r(e,r(n)))}):typeof pH==\\\"object\\\"&&typeof pH.exports==\\\"object\\\"?t(r(e,r(pH.exports))):t(r(e));function r(n,i){return n!==e&&(typeof Object.create==\\\"function\\\"?Object.defineProperty(n,\\\"__esModule\\\",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};QFe=function(r,n){e(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},JFe=Object.assign||function(r){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},YFe=function(r,n){var i={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&n.indexOf(s)<0&&(i[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols==\\\"function\\\")for(var o=0,s=Object.getOwnPropertySymbols(r);o<s.length;o++)n.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(r,s[o])&&(i[s[o]]=r[s[o]]);return i},XFe=function(r,n,i,s){var o=arguments.length,a=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,i):s,c;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")a=Reflect.decorate(r,n,i,s);else for(var l=r.length-1;l>=0;l--)(c=r[l])&&(a=(o<3?c(a):o>3?c(n,i,a):c(n,i))||a);return o>3&&a&&Object.defineProperty(n,i,a),a},eje=function(r,n){return function(i,s){n(i,s,r)}},tje=function(r,n){if(typeof Reflect==\\\"object\\\"&&typeof Reflect.metadata==\\\"function\\\")return Reflect.metadata(r,n)},rje=function(r,n,i,s){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function l(p){try{f(s.next(p))}catch(h){c(h)}}function d(p){try{f(s.throw(p))}catch(h){c(h)}}function f(p){p.done?a(p.value):o(p.value).then(l,d)}f((s=s.apply(r,n||[])).next())})},nje=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,o,a,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol==\\\"function\\\"&&(c[Symbol.iterator]=function(){return this}),c;function l(f){return function(p){return d([f,p])}}function d(f){if(s)throw new TypeError(\\\"Generator is already executing.\\\");for(;i;)try{if(s=1,o&&(a=f[0]&2?o.return:f[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,f[1])).done)return a;switch(o=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,o=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){i.label=f[1];break}if(f[0]===6&&i.label<a[1]){i.label=a[1],a=f;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(f);break}a[2]&&i.ops.pop(),i.trys.pop();continue}f=n.call(r,i)}catch(p){f=[6,p],o=0}finally{s=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},mje=function(r,n,i,s){s===void 0&&(s=i),r[s]=n[i]},ije=function(r,n){for(var i in r)i!==\\\"default\\\"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},fH=function(r){var n=typeof Symbol==\\\"function\\\"&&Symbol.iterator,i=n&&r[n],s=0;if(i)return i.call(r);if(r&&typeof r.length==\\\"number\\\")return{next:function(){return r&&s>=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(n?\\\"Object is not iterable.\\\":\\\"Symbol.iterator is not defined.\\\")},Rse=function(r,n){var i=typeof Symbol==\\\"function\\\"&&r[Symbol.iterator];if(!i)return r;var s=i.call(r),o,a=[],c;try{for(;(n===void 0||n-- >0)&&!(o=s.next()).done;)a.push(o.value)}catch(l){c={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(c)throw c.error}}return a},sje=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Rse(arguments[n]));return r},oje=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var s=Array(r),o=0,n=0;n<i;n++)for(var a=arguments[n],c=0,l=a.length;c<l;c++,o++)s[o]=a[c];return s},uC=function(r){return this instanceof uC?(this.v=r,this):new uC(r)},aje=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");var s=i.apply(r,n||[]),o,a=[];return o={},c(\\\"next\\\"),c(\\\"throw\\\"),c(\\\"return\\\"),o[Symbol.asyncIterator]=function(){return this},o;function c(m){s[m]&&(o[m]=function(g){return new Promise(function(w,v){a.push([m,g,w,v])>1||l(m,g)})})}function l(m,g){try{d(s[m](g))}catch(w){h(a[0][3],w)}}function d(m){m.value instanceof uC?Promise.resolve(m.value.v).then(f,p):h(a[0][2],m)}function f(m){l(\\\"next\\\",m)}function p(m){l(\\\"throw\\\",m)}function h(m,g){m(g),a.shift(),a.length&&l(a[0][0],a[0][1])}},cje=function(r){var n,i;return n={},s(\\\"next\\\"),s(\\\"throw\\\",function(o){throw o}),s(\\\"return\\\"),n[Symbol.iterator]=function(){return this},n;function s(o,a){n[o]=r[o]?function(c){return(i=!i)?{value:uC(r[o](c)),done:o===\\\"return\\\"}:a?a(c):c}:a}},lje=function(r){if(!Symbol.asyncIterator)throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof fH==\\\"function\\\"?fH(r):r[Symbol.iterator](),i={},s(\\\"next\\\"),s(\\\"throw\\\"),s(\\\"return\\\"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=r[a]&&function(c){return new Promise(function(l,d){c=r[a](c),o(l,d,c.done,c.value)})}}function o(a,c,l,d){Promise.resolve(d).then(function(f){a({value:f,done:l})},c)}},uje=function(r,n){return Object.defineProperty?Object.defineProperty(r,\\\"raw\\\",{value:n}):r.raw=n,r},dje=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},fje=function(r){return r&&r.__esModule?r:{default:r}},pje=function(r,n){if(!n.has(r))throw new TypeError(\\\"attempted to get private field on non-instance\\\");return n.get(r)},hje=function(r,n,i){if(!n.has(r))throw new TypeError(\\\"attempted to set private field on non-instance\\\");return n.set(r,i),i},t(\\\"__extends\\\",QFe),t(\\\"__assign\\\",JFe),t(\\\"__rest\\\",YFe),t(\\\"__decorate\\\",XFe),t(\\\"__param\\\",eje),t(\\\"__metadata\\\",tje),t(\\\"__awaiter\\\",rje),t(\\\"__generator\\\",nje),t(\\\"__exportStar\\\",ije),t(\\\"__createBinding\\\",mje),t(\\\"__values\\\",fH),t(\\\"__read\\\",Rse),t(\\\"__spread\\\",sje),t(\\\"__spreadArrays\\\",oje),t(\\\"__await\\\",uC),t(\\\"__asyncGenerator\\\",aje),t(\\\"__asyncDelegator\\\",cje),t(\\\"__asyncValues\\\",lje),t(\\\"__makeTemplateObject\\\",uje),t(\\\"__importStar\\\",dje),t(\\\"__importDefault\\\",fje),t(\\\"__classPrivateFieldGet\\\",pje),t(\\\"__classPrivateFieldSet\\\",hje)})});var gje=q(hH=>{\\\"use strict\\\";u();Object.defineProperty(hH,\\\"__esModule\\\",{value:!0});hH.delay=void 0;function eTt(t){return new Promise(e=>{setTimeout(()=>{e(!0)},t)})}hH.delay=eTt});var yje=q(fC=>{\\\"use strict\\\";u();Object.defineProperty(fC,\\\"__esModule\\\",{value:!0});fC.ONE_THOUSAND=fC.ONE_HUNDRED=void 0;fC.ONE_HUNDRED=100;fC.ONE_THOUSAND=1e3});var bje=q(ke=>{\\\"use strict\\\";u();Object.defineProperty(ke,\\\"__esModule\\\",{value:!0});ke.ONE_YEAR=ke.FOUR_WEEKS=ke.THREE_WEEKS=ke.TWO_WEEKS=ke.ONE_WEEK=ke.THIRTY_DAYS=ke.SEVEN_DAYS=ke.FIVE_DAYS=ke.THREE_DAYS=ke.ONE_DAY=ke.TWENTY_FOUR_HOURS=ke.TWELVE_HOURS=ke.SIX_HOURS=ke.THREE_HOURS=ke.ONE_HOUR=ke.SIXTY_MINUTES=ke.THIRTY_MINUTES=ke.TEN_MINUTES=ke.FIVE_MINUTES=ke.ONE_MINUTE=ke.SIXTY_SECONDS=ke.THIRTY_SECONDS=ke.TEN_SECONDS=ke.FIVE_SECONDS=ke.ONE_SECOND=void 0;ke.ONE_SECOND=1;ke.FIVE_SECONDS=5;ke.TEN_SECONDS=10;ke.THIRTY_SECONDS=30;ke.SIXTY_SECONDS=60;ke.ONE_MINUTE=ke.SIXTY_SECONDS;ke.FIVE_MINUTES=ke.ONE_MINUTE*5;ke.TEN_MINUTES=ke.ONE_MINUTE*10;ke.THIRTY_MINUTES=ke.ONE_MINUTE*30;ke.SIXTY_MINUTES=ke.ONE_MINUTE*60;ke.ONE_HOUR=ke.SIXTY_MINUTES;ke.THREE_HOURS=ke.ONE_HOUR*3;ke.SIX_HOURS=ke.ONE_HOUR*6;ke.TWELVE_HOURS=ke.ONE_HOUR*12;ke.TWENTY_FOUR_HOURS=ke.ONE_HOUR*24;ke.ONE_DAY=ke.TWENTY_FOUR_HOURS;ke.THREE_DAYS=ke.ONE_DAY*3;ke.FIVE_DAYS=ke.ONE_DAY*5;ke.SEVEN_DAYS=ke.ONE_DAY*7;ke.THIRTY_DAYS=ke.ONE_DAY*30;ke.ONE_WEEK=ke.SEVEN_DAYS;ke.TWO_WEEKS=ke.ONE_WEEK*2;ke.THREE_WEEKS=ke.ONE_WEEK*3;ke.FOUR_WEEKS=ke.ONE_WEEK*4;ke.ONE_YEAR=ke.ONE_DAY*365});var Pse=q(mH=>{\\\"use strict\\\";u();Object.defineProperty(mH,\\\"__esModule\\\",{value:!0});var wje=dC();wje.__exportStar(yje(),mH);wje.__exportStar(bje(),mH)});var xje=q(pC=>{\\\"use strict\\\";u();Object.defineProperty(pC,\\\"__esModule\\\",{value:!0});pC.fromMiliseconds=pC.toMiliseconds=void 0;var vje=Pse();function tTt(t){return t*vje.ONE_THOUSAND}pC.toMiliseconds=tTt;function rTt(t){return Math.floor(t/vje.ONE_THOUSAND)}pC.fromMiliseconds=rTt});var _je=q(gH=>{\\\"use strict\\\";u();Object.defineProperty(gH,\\\"__esModule\\\",{value:!0});var Eje=dC();Eje.__exportStar(gje(),gH);Eje.__exportStar(xje(),gH)});var Cje=q(C9=>{\\\"use strict\\\";u();Object.defineProperty(C9,\\\"__esModule\\\",{value:!0});C9.Watch=void 0;var yH=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let r=this.get(e);if(typeof r.elapsed<\\\"u\\\")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-r.started;this.timestamps.set(e,{started:r.started,elapsed:n})}get(e){let r=this.timestamps.get(e);if(typeof r>\\\"u\\\")throw new Error(`No timestamp found for label: ${e}`);return r}elapsed(e){let r=this.get(e);return r.elapsed||Date.now()-r.started}};C9.Watch=yH;C9.default=yH});var Sje=q(bH=>{\\\"use strict\\\";u();Object.defineProperty(bH,\\\"__esModule\\\",{value:!0});bH.IWatch=void 0;var Ose=class{};bH.IWatch=Ose});var Aje=q(Nse=>{\\\"use strict\\\";u();Object.defineProperty(Nse,\\\"__esModule\\\",{value:!0});var nTt=dC();nTt.__exportStar(Sje(),Nse)});var u0=q(hC=>{\\\"use strict\\\";u();Object.defineProperty(hC,\\\"__esModule\\\",{value:!0});var wH=dC();wH.__exportStar(_je(),hC);wH.__exportStar(Cje(),hC);wH.__exportStar(Aje(),hC);wH.__exportStar(Pse(),hC)});var gC=q(On=>{\\\"use strict\\\";u();Object.defineProperty(On,\\\"__esModule\\\",{value:!0});On.getLocalStorage=On.getLocalStorageOrThrow=On.getCrypto=On.getCryptoOrThrow=On.getLocation=On.getLocationOrThrow=On.getNavigator=On.getNavigatorOrThrow=On.getDocument=On.getDocumentOrThrow=On.getFromWindowOrThrow=On.getFromWindow=void 0;function h2(t){let e;return typeof window<\\\"u\\\"&&typeof window[t]<\\\"u\\\"&&(e=window[t]),e}On.getFromWindow=h2;function mC(t){let e=h2(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}On.getFromWindowOrThrow=mC;function iTt(){return mC(\\\"document\\\")}On.getDocumentOrThrow=iTt;function sTt(){return h2(\\\"document\\\")}On.getDocument=sTt;function oTt(){return mC(\\\"navigator\\\")}On.getNavigatorOrThrow=oTt;function aTt(){return h2(\\\"navigator\\\")}On.getNavigator=aTt;function cTt(){return mC(\\\"location\\\")}On.getLocationOrThrow=cTt;function lTt(){return h2(\\\"location\\\")}On.getLocation=lTt;function uTt(){return mC(\\\"crypto\\\")}On.getCryptoOrThrow=uTt;function dTt(){return h2(\\\"crypto\\\")}On.getCrypto=dTt;function fTt(){return mC(\\\"localStorage\\\")}On.getLocalStorageOrThrow=fTt;function pTt(){return h2(\\\"localStorage\\\")}On.getLocalStorage=pTt});var kse=q(vH=>{\\\"use strict\\\";u();Object.defineProperty(vH,\\\"__esModule\\\",{value:!0});vH.getWindowMetadata=void 0;var Tje=gC();function hTt(){let t,e;try{t=Tje.getDocumentOrThrow(),e=Tje.getLocationOrThrow()}catch{return null}function r(){let f=t.getElementsByTagName(\\\"link\\\"),p=[];for(let h=0;h<f.length;h++){let m=f[h],g=m.getAttribute(\\\"rel\\\");if(g&&g.toLowerCase().indexOf(\\\"icon\\\")>-1){let w=m.getAttribute(\\\"href\\\");if(w)if(w.toLowerCase().indexOf(\\\"https:\\\")===-1&&w.toLowerCase().indexOf(\\\"http:\\\")===-1&&w.indexOf(\\\"//\\\")!==0){let v=e.protocol+\\\"//\\\"+e.host;if(w.indexOf(\\\"/\\\")===0)v+=w;else{let b=e.pathname.split(\\\"/\\\");b.pop();let _=b.join(\\\"/\\\");v+=_+\\\"/\\\"+w}p.push(v)}else if(w.indexOf(\\\"//\\\")===0){let v=e.protocol+w;p.push(v)}else p.push(w)}}return p}function n(...f){let p=t.getElementsByTagName(\\\"meta\\\");for(let h=0;h<p.length;h++){let m=p[h],g=[\\\"itemprop\\\",\\\"property\\\",\\\"name\\\"].map(w=>m.getAttribute(w)).filter(w=>w?f.includes(w):!1);if(g.length&&g){let w=m.getAttribute(\\\"content\\\");if(w)return w}}return\\\"\\\"}function i(){let f=n(\\\"name\\\",\\\"og:site_name\\\",\\\"og:title\\\",\\\"twitter:title\\\");return f||(f=t.title),f}function s(){return n(\\\"description\\\",\\\"og:description\\\",\\\"twitter:description\\\",\\\"keywords\\\")}let o=i(),a=s(),c=e.origin,l=r();return{description:a,url:c,icons:l,name:o}}vH.getWindowMetadata=hTt});function mTt(t){if(t.length>=255)throw new TypeError(\\\"Alphabet too long\\\");let e=new Uint8Array(256);for(let l=0;l<e.length;l++)e[l]=255;for(let l=0;l<t.length;l++){let d=t.charAt(l),f=d.charCodeAt(0);if(e[f]!==255)throw new TypeError(d+\\\" is ambiguous\\\");e[f]=l}let r=t.length,n=t.charAt(0),i=Math.log(r)/Math.log(256),s=Math.log(256)/Math.log(r);function o(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError(\\\"Expected Uint8Array\\\");if(l.length===0)return\\\"\\\";let d=0,f=0,p=0,h=l.length;for(;p!==h&&l[p]===0;)p++,d++;let m=(h-p)*s+1>>>0,g=new Uint8Array(m);for(;p!==h;){let b=l[p],_=0;for(let S=m-1;(b!==0||_<f)&&S!==-1;S--,_++)b+=256*g[S]>>>0,g[S]=b%r>>>0,b=b/r>>>0;if(b!==0)throw new Error(\\\"Non-zero carry\\\");f=_,p++}let w=m-f;for(;w!==m&&g[w]===0;)w++;let v=n.repeat(d);for(;w<m;++w)v+=t.charAt(g[w]);return v}function a(l){if(typeof l!=\\\"string\\\")throw new TypeError(\\\"Expected String\\\");if(l.length===0)return new Uint8Array;let d=0,f=0,p=0;for(;l[d]===n;)f++,d++;let h=(l.length-d)*i+1>>>0,m=new Uint8Array(h);for(;d<l.length;){let b=l.charCodeAt(d);if(b>255)return;let _=e[b];if(_===255)return;let S=0;for(let T=h-1;(_!==0||S<p)&&T!==-1;T--,S++)_+=r*m[T]>>>0,m[T]=_%256>>>0,_=_/256>>>0;if(_!==0)throw new Error(\\\"Non-zero carry\\\");p=S,d++}let g=h-p;for(;g!==h&&m[g]===0;)g++;let w=new Uint8Array(f+(h-g)),v=f;for(;g!==h;)w[v++]=m[g++];return w}function c(l){let d=a(l);if(d)return d;throw new Error(\\\"Non-base\\\"+r+\\\" character\\\")}return{encode:o,decodeUnsafe:a,decode:c}}var Ije,Rje=x(()=>{u();Ije=mTt});var gTt,yC,xH=x(()=>{u();Rje();gTt=\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\",yC=Ije(gTt)});function nc(t){if(typeof t!=\\\"string\\\")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return bTt(t)}catch{return t}}function Vo(t){return typeof t==\\\"string\\\"?t:yTt(t)||\\\"\\\"}var yTt,bTt,f1=x(()=>{u();yTt=t=>JSON.stringify(t,(e,r)=>typeof r==\\\"bigint\\\"?r.toString()+\\\"n\\\":r),bTt=t=>{let e=/([\\\\[:])?(\\\\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\\\\}\\\\]])/g,r=t.replace(e,'$1\\\"$2n\\\"$3');return JSON.parse(r,(n,i)=>typeof i==\\\"string\\\"&&i.match(/^\\\\d+n$/)?BigInt(i.substring(0,i.length-1)):i)}});function wTt(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function Zje(t,...e){if(!wTt(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function Pje(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function vTt(t,e){Zje(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function xTt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"utf8ToBytes expected string, got \\\"+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function Qje(t){return typeof t==\\\"string\\\"&&(t=xTt(t)),Zje(t),t}function ETt(t){let e=n=>t().update(Qje(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Jje(t=32){if(bC&&typeof bC.getRandomValues==\\\"function\\\")return bC.getRandomValues(new Uint8Array(t));if(bC&&typeof bC.randomBytes==\\\"function\\\")return bC.randomBytes(t);throw new Error(\\\"crypto.getRandomValues must be defined\\\")}function _Tt(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function Yje(t,e=!1){return e?{h:Number(t&EH),l:Number(t>>$se&EH)}:{h:Number(t>>$se&EH)|0,l:Number(t&EH)|0}}function CTt(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:s,l:o}=Yje(t[i],e);[r[i],n[i]]=[s,o]}return[r,n]}function UTt(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}function noe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function ioe(t){if(!noe(t))throw new Error(\\\"Uint8Array expected\\\")}function Mse(t,e){if(typeof e!=\\\"boolean\\\")throw new Error(t+\\\" boolean expected, got \\\"+e)}function soe(t){ioe(t);let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=ZTt[t[r]];return e}function eHe(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);return t===\\\"\\\"?roe:BigInt(\\\"0x\\\"+t)}function Oje(t){if(t>=d0._0&&t<=d0._9)return t-d0._0;if(t>=d0.A&&t<=d0.F)return t-(d0.A-10);if(t>=d0.a&&t<=d0.f)return t-(d0.a-10)}function tHe(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=Oje(t.charCodeAt(s)),a=Oje(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}function QTt(t){return eHe(soe(t))}function SH(t){return ioe(t),eHe(soe(Uint8Array.from(t).reverse()))}function rHe(t,e){return tHe(t.toString(16).padStart(e*2,\\\"0\\\"))}function Wse(t,e){return rHe(t,e).reverse()}function f0(t,e,r){let n;if(typeof e==\\\"string\\\")try{n=tHe(e)}catch(s){throw new Error(t+\\\" must be hex string or Uint8Array, cause: \\\"+s)}else if(noe(e))n=Uint8Array.from(e);else throw new Error(t+\\\" must be hex string or Uint8Array\\\");let i=n.length;if(typeof r==\\\"number\\\"&&i!==r)throw new Error(t+\\\" of length \\\"+r+\\\" expected, got \\\"+i);return n}function Nje(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];ioe(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function JTt(t,e,r){return Dse(t)&&Dse(e)&&Dse(r)&&e<=t&&t<r}function S9(t,e,r,n){if(!JTt(e,r,n))throw new Error(\\\"expected valid \\\"+t+\\\": \\\"+r+\\\" <= n < \\\"+n+\\\", got \\\"+e)}function YTt(t){let e;for(e=0;t>roe;t>>=Xje,e+=1);return e}function ooe(t,e,r={}){let n=(i,s,o)=>{let a=eIt[s];if(typeof a!=\\\"function\\\")throw new Error(\\\"invalid validator function\\\");let c=t[i];if(!(o&&c===void 0)&&!a(c,t))throw new Error(\\\"param \\\"+String(i)+\\\" is invalid. Expected \\\"+s+\\\", got \\\"+c)};for(let[i,s]of Object.entries(e))n(i,s,!1);for(let[i,s]of Object.entries(r))n(i,s,!0);return t}function kje(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(i!==void 0)return i;let s=t(r,...n);return e.set(r,s),s}}function zs(t,e){let r=t%e;return r>=mo?r:e+r}function rIt(t,e,r){if(e<mo)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r<=mo)throw new Error(\\\"invalid modulus\\\");if(r===fs)return mo;let n=fs;for(;e>mo;)e&fs&&(n=n*t%r),t=t*t%r,e>>=fs;return n}function Zp(t,e,r){let n=t;for(;e-- >mo;)n*=n,n%=r;return n}function Dje(t,e){if(t===mo)throw new Error(\\\"invert: expected non-zero number\\\");if(e<=mo)throw new Error(\\\"invert: expected positive modulus, got \\\"+e);let r=zs(t,e),n=e,i=mo,s=fs;for(;r!==mo;){let o=n/r,a=n%r,c=i-s*o;n=r,r=a,i=s,s=c}if(n!==fs)throw new Error(\\\"invert: does not exist\\\");return zs(i,e)}function nIt(t){let e=(t-fs)/m2,r,n,i;for(r=t-fs,n=0;r%m2===mo;r/=m2,n++);for(i=m2;i<t&&rIt(i,e,t)!==t-fs;i++)if(i>1e3)throw new Error(\\\"Cannot find square root: likely non-prime P\\\");if(n===1){let o=(t+fs)/Gse;return function(a,c){let l=a.pow(c,o);if(!a.eql(a.sqr(l),c))throw new Error(\\\"Cannot find square root\\\");return l}}let s=(r+fs)/m2;return function(o,a){if(o.pow(a,e)===o.neg(o.ONE))throw new Error(\\\"Cannot find square root\\\");let c=n,l=o.pow(o.mul(o.ONE,i),r),d=o.pow(a,s),f=o.pow(a,r);for(;!o.eql(f,o.ONE);){if(o.eql(f,o.ZERO))return o.ZERO;let p=1;for(let m=o.sqr(f);p<c&&!o.eql(m,o.ONE);p++)m=o.sqr(m);let h=o.pow(l,fs<<BigInt(c-p-1));l=o.sqr(h),d=o.mul(d,h),f=o.mul(f,l),c=p}return d}}function iIt(t){if(t%Gse===tIt){let e=(t+fs)/Gse;return function(r,n){let i=r.pow(n,e);if(!r.eql(r.sqr(i),n))throw new Error(\\\"Cannot find square root\\\");return i}}if(t%Mje===Bje){let e=(t-Bje)/Mje;return function(r,n){let i=r.mul(n,m2),s=r.pow(i,e),o=r.mul(n,s),a=r.mul(r.mul(o,m2),s),c=r.mul(o,r.sub(a,r.ONE));if(!r.eql(r.sqr(c),n))throw new Error(\\\"Cannot find square root\\\");return c}}return nIt(t)}function aIt(t){let e={ORDER:\\\"bigint\\\",MASK:\\\"bigint\\\",BYTES:\\\"isSafeInteger\\\",BITS:\\\"isSafeInteger\\\"},r=oIt.reduce((n,i)=>(n[i]=\\\"function\\\",n),e);return ooe(t,r)}function cIt(t,e,r){if(r<mo)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r===mo)return t.ONE;if(r===fs)return e;let n=t.ONE,i=e;for(;r>mo;)r&fs&&(n=t.mul(n,i)),i=t.sqr(i),r>>=fs;return n}function lIt(t,e){let r=new Array(e.length),n=e.reduce((s,o,a)=>t.is0(o)?s:(r[a]=s,t.mul(s,o)),t.ONE),i=t.inv(n);return e.reduceRight((s,o,a)=>t.is0(o)?s:(r[a]=t.mul(s,r[a]),t.mul(s,o)),i),r}function nHe(t,e){let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function iHe(t,e,r=!1,n={}){if(t<=mo)throw new Error(\\\"invalid field: expected ORDER > 0, got \\\"+t);let{nBitLength:i,nByteLength:s}=nHe(t,e);if(s>2048)throw new Error(\\\"invalid field: expected ORDER of <= 2048 bytes\\\");let o,a=Object.freeze({ORDER:t,isLE:r,BITS:i,BYTES:s,MASK:XTt(i),ZERO:mo,ONE:fs,create:c=>zs(c,t),isValid:c=>{if(typeof c!=\\\"bigint\\\")throw new Error(\\\"invalid field element: expected bigint, got \\\"+typeof c);return mo<=c&&c<t},is0:c=>c===mo,isOdd:c=>(c&fs)===fs,neg:c=>zs(-c,t),eql:(c,l)=>c===l,sqr:c=>zs(c*c,t),add:(c,l)=>zs(c+l,t),sub:(c,l)=>zs(c-l,t),mul:(c,l)=>zs(c*l,t),pow:(c,l)=>cIt(a,c,l),div:(c,l)=>zs(c*Dje(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Dje(c,t),sqrt:n.sqrt||(c=>(o||(o=iIt(t)),o(a,c))),invertBatch:c=>lIt(a,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?Wse(c,s):rHe(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(\\\"Field.fromBytes: expected \\\"+s+\\\" bytes, got \\\"+c.length);return r?SH(c):QTt(c)}});return Object.freeze(a)}function Lse(t,e){let r=e.negate();return t?r:e}function sHe(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\\\"invalid window size, expected [1..\\\"+e+\\\"], got W=\\\"+t)}function Use(t,e){sHe(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1);return{windows:r,windowSize:n}}function uIt(t,e){if(!Array.isArray(t))throw new Error(\\\"array expected\\\");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error(\\\"invalid point at index \\\"+n)})}function dIt(t,e){if(!Array.isArray(t))throw new Error(\\\"array of scalars expected\\\");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error(\\\"invalid scalar at index \\\"+n)})}function jse(t){return oHe.get(t)||1}function fIt(t,e){return{constTimeNegate:Lse,hasPrecomputes(r){return jse(r)!==1},unsafeLadder(r,n,i=t.ZERO){let s=r;for(;n>Lje;)n&_H&&(i=i.add(s)),s=s.double(),n>>=_H;return i},precomputeWindow(r,n){let{windows:i,windowSize:s}=Use(n,e),o=[],a=r,c=a;for(let l=0;l<i;l++){c=a,o.push(c);for(let d=1;d<s;d++)c=c.add(a),o.push(c);a=c.double()}return o},wNAF(r,n,i){let{windows:s,windowSize:o}=Use(r,e),a=t.ZERO,c=t.BASE,l=BigInt(2**r-1),d=2**r,f=BigInt(r);for(let p=0;p<s;p++){let h=p*o,m=Number(i&l);i>>=f,m>o&&(m-=d,i+=_H);let g=h,w=h+Math.abs(m)-1,v=p%2!==0,b=m<0;m===0?c=c.add(Lse(v,n[g])):a=a.add(Lse(b,n[w]))}return{p:a,f:c}},wNAFUnsafe(r,n,i,s=t.ZERO){let{windows:o,windowSize:a}=Use(r,e),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let f=0;f<o;f++){let p=f*a;if(i===Lje)break;let h=Number(i&c);if(i>>=d,h>a&&(h-=l,i+=_H),h===0)continue;let m=n[p+Math.abs(h)-1];h<0&&(m=m.negate()),s=s.add(m)}return s},getPrecomputes(r,n,i){let s=Fse.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&Fse.set(n,i(s))),s},wNAFCached(r,n,i){let s=jse(r);return this.wNAF(s,this.getPrecomputes(s,r,i),n)},wNAFCachedUnsafe(r,n,i,s){let o=jse(r);return o===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(o,this.getPrecomputes(o,r,i),n,s)},setWindowSize(r,n){sHe(n,e),oHe.set(r,n),Fse.delete(r)}}}function pIt(t,e,r,n){if(uIt(r,t),dIt(n,e),r.length!==n.length)throw new Error(\\\"arrays of points and scalars must have equal length\\\");let i=t.ZERO,s=YTt(BigInt(r.length)),o=s>12?s-3:s>4?s-2:s?2:1,a=(1<<o)-1,c=new Array(a+1).fill(i),l=Math.floor((e.BITS-1)/o)*o,d=i;for(let f=l;f>=0;f-=o){c.fill(i);for(let h=0;h<n.length;h++){let m=n[h],g=Number(m>>BigInt(f)&BigInt(a));c[g]=c[g].add(r[h])}let p=i;for(let h=c.length-1,m=i;h>0;h--)m=m.add(c[h]),p=p.add(m);if(d=d.add(p),f!==0)for(let h=0;h<o;h++)d=d.double()}return d}function hIt(t){return aIt(t.Fp),ooe(t,{n:\\\"bigint\\\",h:\\\"bigint\\\",Gx:\\\"field\\\",Gy:\\\"field\\\"},{nBitLength:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\"}),Object.freeze({...nHe(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function yIt(t){let e=hIt(t);return ooe(t,{hash:\\\"function\\\",a:\\\"bigint\\\",d:\\\"bigint\\\",randomBytes:\\\"function\\\"},{adjustScalarBytes:\\\"function\\\",domain:\\\"function\\\",uvRatio:\\\"function\\\",mapToCurve:\\\"function\\\"}),Object.freeze({...e})}function bIt(t){let e=yIt(t),{Fp:r,n,prehash:i,hash:s,randomBytes:o,nByteLength:a,h:c}=e,l=CH<<BigInt(a*8)-zc,d=r.create,f=iHe(e.n,e.nBitLength),p=e.uvRatio||((E,C)=>{try{return{isValid:!0,value:r.sqrt(E*r.inv(C))}}catch{return{isValid:!1,value:ff}}}),h=e.adjustScalarBytes||(E=>E),m=e.domain||((E,C,I)=>{if(Mse(\\\"phflag\\\",I),C.length||I)throw new Error(\\\"Contexts/pre-hash are not supported\\\");return E});function g(E,C){S9(\\\"coordinate \\\"+E,C,ff,l)}function w(E){if(!(E instanceof _))throw new Error(\\\"ExtendedPoint expected\\\")}let v=kje((E,C)=>{let{ex:I,ey:P,ez:k}=E,U=E.is0();C==null&&(C=U?mIt:r.inv(k));let D=d(I*C),A=d(P*C),j=d(k*C);if(U)return{x:ff,y:zc};if(j!==zc)throw new Error(\\\"invZ was invalid\\\");return{x:D,y:A}}),b=kje(E=>{let{a:C,d:I}=e;if(E.is0())throw new Error(\\\"bad point: ZERO\\\");let{ex:P,ey:k,ez:U,et:D}=E,A=d(P*P),j=d(k*k),K=d(U*U),J=d(K*K),X=d(A*C),re=d(K*d(X+j)),fe=d(J+d(I*d(A*j)));if(re!==fe)throw new Error(\\\"bad point: equation left != right (1)\\\");let ce=d(P*k),We=d(U*D);if(ce!==We)throw new Error(\\\"bad point: equation left != right (2)\\\");return!0});class _{constructor(C,I,P,k){this.ex=C,this.ey=I,this.ez=P,this.et=k,g(\\\"x\\\",C),g(\\\"y\\\",I),g(\\\"z\\\",P),g(\\\"t\\\",k),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(C){if(C instanceof _)throw new Error(\\\"extended point not allowed\\\");let{x:I,y:P}=C||{};return g(\\\"x\\\",I),g(\\\"y\\\",P),new _(I,P,zc,d(I*P))}static normalizeZ(C){let I=r.invertBatch(C.map(P=>P.ez));return C.map((P,k)=>P.toAffine(I[k])).map(_.fromAffine)}static msm(C,I){return pIt(_,f,C,I)}_setWindowSize(C){N.setWindowSize(this,C)}assertValidity(){b(this)}equals(C){w(C);let{ex:I,ey:P,ez:k}=this,{ex:U,ey:D,ez:A}=C,j=d(I*A),K=d(U*k),J=d(P*A),X=d(D*k);return j===K&&J===X}is0(){return this.equals(_.ZERO)}negate(){return new _(d(-this.ex),this.ey,this.ez,d(-this.et))}double(){let{a:C}=e,{ex:I,ey:P,ez:k}=this,U=d(I*I),D=d(P*P),A=d(CH*d(k*k)),j=d(C*U),K=I+P,J=d(d(K*K)-U-D),X=j+D,re=X-A,fe=j-D,ce=d(J*re),We=d(X*fe),Ue=d(J*fe),je=d(re*X);return new _(ce,We,je,Ue)}add(C){w(C);let{a:I,d:P}=e,{ex:k,ey:U,ez:D,et:A}=this,{ex:j,ey:K,ez:J,et:X}=C;if(I===BigInt(-1)){let Q0=d((U-k)*(K+j)),wn=d((U+k)*(K-j)),an=d(wn-Q0);if(an===ff)return this.double();let J0=d(D*CH*X),vn=d(A*CH*J),xn=vn+J0,Y0=wn+Q0,En=vn-J0,jn=d(xn*an),X0=d(Y0*En),_n=d(xn*En),Cn=d(an*Y0);return new _(jn,X0,Cn,_n)}let re=d(k*j),fe=d(U*K),ce=d(A*P*X),We=d(D*J),Ue=d((k+U)*(j+K)-re-fe),je=We-ce,Lt=We+ce,pt=d(fe-I*re),Ct=d(Ue*je),jf=d(Lt*pt),Un=d(Ue*pt),Fn=d(je*Lt);return new _(Ct,jf,Fn,Un)}subtract(C){return this.add(C.negate())}wNAF(C){return N.wNAFCached(this,C,_.normalizeZ)}multiply(C){let I=C;S9(\\\"scalar\\\",I,zc,n);let{p:P,f:k}=this.wNAF(I);return _.normalizeZ([P,k])[0]}multiplyUnsafe(C,I=_.ZERO){let P=C;return S9(\\\"scalar\\\",P,ff,n),P===ff?T:this.is0()||P===zc?this:N.wNAFCachedUnsafe(this,P,_.normalizeZ,I)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return N.unsafeLadder(this,n).is0()}toAffine(C){return v(this,C)}clearCofactor(){let{h:C}=e;return C===zc?this:this.multiplyUnsafe(C)}static fromHex(C,I=!1){let{d:P,a:k}=e,U=r.BYTES;C=f0(\\\"pointHex\\\",C,U),Mse(\\\"zip215\\\",I);let D=C.slice(),A=C[U-1];D[U-1]=A&-129;let j=SH(D),K=I?l:r.ORDER;S9(\\\"pointHex.y\\\",j,ff,K);let J=d(j*j),X=d(J-zc),re=d(P*J-k),{isValid:fe,value:ce}=p(X,re);if(!fe)throw new Error(\\\"Point.fromHex: invalid y coordinate\\\");let We=(ce&zc)===zc,Ue=(A&128)!==0;if(!I&&ce===ff&&Ue)throw new Error(\\\"Point.fromHex: x=0 and x_0=1\\\");return Ue!==We&&(ce=d(-ce)),_.fromAffine({x:ce,y:j})}static fromPrivateKey(C){return B(C).point}toRawBytes(){let{x:C,y:I}=this.toAffine(),P=Wse(I,r.BYTES);return P[P.length-1]|=C&zc?128:0,P}toHex(){return soe(this.toRawBytes())}}_.BASE=new _(e.Gx,e.Gy,zc,d(e.Gx*e.Gy)),_.ZERO=new _(ff,zc,zc,ff);let{BASE:S,ZERO:T}=_,N=fIt(_,a*8);function O(E){return zs(E,n)}function L(E){return O(SH(E))}function B(E){let C=r.BYTES;E=f0(\\\"private key\\\",E,C);let I=f0(\\\"hashed private key\\\",s(E),2*C),P=h(I.slice(0,C)),k=I.slice(C,2*C),U=L(P),D=S.multiply(U),A=D.toRawBytes();return{head:P,prefix:k,scalar:U,point:D,pointBytes:A}}function H(E){return B(E).pointBytes}function M(E=new Uint8Array,...C){let I=Nje(...C);return L(s(m(I,f0(\\\"context\\\",E),!!i)))}function F(E,C,I={}){E=f0(\\\"message\\\",E),i&&(E=i(E));let{prefix:P,scalar:k,pointBytes:U}=B(C),D=M(I.context,P,E),A=S.multiply(D).toRawBytes(),j=M(I.context,A,U,E),K=O(D+j*k);S9(\\\"signature.s\\\",K,ff,n);let J=Nje(A,Wse(K,r.BYTES));return f0(\\\"result\\\",J,r.BYTES*2)}let R=gIt;function y(E,C,I,P=R){let{context:k,zip215:U}=P,D=r.BYTES;E=f0(\\\"signature\\\",E,2*D),C=f0(\\\"message\\\",C),I=f0(\\\"publicKey\\\",I,D),U!==void 0&&Mse(\\\"zip215\\\",U),i&&(C=i(C));let A=SH(E.slice(D,2*D)),j,K,J;try{j=_.fromHex(I,U),K=_.fromHex(E.slice(0,D),U),J=S.multiplyUnsafe(A)}catch{return!1}if(!U&&j.isSmallOrder())return!1;let X=M(k,K.toRawBytes(),j.toRawBytes(),C);return K.add(j.multiplyUnsafe(X)).subtract(J).clearCofactor().equals(_.ZERO)}return S._setWindowSize(8),{CURVE:e,getPublicKey:H,sign:F,verify:y,ExtendedPoint:_,utils:{getExtendedPublicKey:B,randomPrivateKey:()=>o(r.BYTES),precompute(E=8,C=_.BASE){return C._setWindowSize(E),C.multiply(BigInt(3)),C}}}}function EIt(t){let e=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),s=aoe,o=t*t%s*t%s,a=Zp(o,Fje,s)*o%s,c=Zp(a,wIt,s)*t%s,l=Zp(c,vIt,s)*c%s,d=Zp(l,e,s)*l%s,f=Zp(d,r,s)*d%s,p=Zp(f,n,s)*f%s,h=Zp(p,i,s)*p%s,m=Zp(h,i,s)*p%s,g=Zp(m,e,s)*l%s;return{pow_p_5_8:Zp(g,Fje,s)*t%s,b2:o}}function _It(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function CIt(t,e){let r=aoe,n=zs(e*e*e,r),i=zs(n*n*e,r),s=EIt(t*i).pow_p_5_8,o=zs(t*n*s,r),a=zs(e*o*o,r),c=o,l=zs(o*Uje,r),d=a===t,f=a===zs(-t,r),p=a===zs(-t*Uje,r);return d&&(o=c),(f||p)&&(o=l),sIt(o,r)&&(o=zs(-o,r)),{isValid:d||f,value:o}}function coe(t){return globalThis.Buffer!=null?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function uHe(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?coe(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function dHe(t,e){e||(e=t.reduce((i,s)=>i+s.length,0));let r=uHe(e),n=0;for(let i of t)r.set(i,n),n+=i.length;return coe(r)}function MIt(t,e){if(t.length>=255)throw new TypeError(\\\"Alphabet too long\\\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),o=s.charCodeAt(0);if(r[o]!==255)throw new TypeError(s+\\\" is ambiguous\\\");r[o]=i}var a=t.length,c=t.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function f(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError(\\\"Expected Uint8Array\\\");if(m.length===0)return\\\"\\\";for(var g=0,w=0,v=0,b=m.length;v!==b&&m[v]===0;)v++,g++;for(var _=(b-v)*d+1>>>0,S=new Uint8Array(_);v!==b;){for(var T=m[v],N=0,O=_-1;(T!==0||N<w)&&O!==-1;O--,N++)T+=256*S[O]>>>0,S[O]=T%a>>>0,T=T/a>>>0;if(T!==0)throw new Error(\\\"Non-zero carry\\\");w=N,v++}for(var L=_-w;L!==_&&S[L]===0;)L++;for(var B=c.repeat(g);L<_;++L)B+=t.charAt(S[L]);return B}function p(m){if(typeof m!=\\\"string\\\")throw new TypeError(\\\"Expected String\\\");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==\\\" \\\"){for(var w=0,v=0;m[g]===c;)w++,g++;for(var b=(m.length-g)*l+1>>>0,_=new Uint8Array(b);m[g];){var S=r[m.charCodeAt(g)];if(S===255)return;for(var T=0,N=b-1;(S!==0||T<v)&&N!==-1;N--,T++)S+=a*_[N]>>>0,_[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error(\\\"Non-zero carry\\\");v=T,g++}if(m[g]!==\\\" \\\"){for(var O=b-v;O!==b&&_[O]===0;)O++;for(var L=new Uint8Array(w+(b-O)),B=w;O!==b;)L[B++]=_[O++];return L}}}function h(m){var g=p(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:f,decodeUnsafe:p,decode:h}}function E9t(t){return t.reduce((e,r)=>(e+=v9t[r],e),\\\"\\\")}function _9t(t){let e=[];for(let r of t){let n=x9t[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}function mHe(t,e,r){e=e||[],r=r||0;for(var n=r;t>=R9t;)e[r++]=t&255|Hje,t/=128;for(;t&I9t;)e[r++]=t&255|Hje,t>>>=7;return e[r]=t|0,mHe.bytes=r-n+1,e}function Yse(t,n){var r=0,n=n||0,i=0,s=n,o,a=t.length;do{if(s>=a)throw Yse.bytes=0,new RangeError(\\\"Could not decode varint\\\");o=t[s++],r+=i<28?(o&qje)<<i:(o&qje)*Math.pow(2,i),i+=7}while(o>=O9t);return Yse.bytes=s-n,r}function xHe(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}function PH(t,e=\\\"utf8\\\"){let r=EHe[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString(\\\"utf8\\\"):r.encoder.encode(t).substring(1)}function wC(t,e=\\\"utf8\\\"){let r=EHe[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?coe(globalThis.Buffer.from(t,\\\"utf-8\\\")):r.decoder.decode(`${r.prefix}${t}`)}function Gje(t){return nc(PH(wC(t,IH),cHe))}function TH(t){return PH(wC(Vo(t),cHe),IH)}function T9(t){let e=wC(kIt,jje),r=NIt+PH(dHe([e,t]),jje);return[PIt,OIt,r].join(RIt)}function Q9t(t){return PH(t,IH)}function J9t(t){return wC(t,IH)}function Y9t(t){return wC([TH(t.header),TH(t.payload)].join(AH),lHe)}function X9t(t){return[TH(t.header),TH(t.payload),Q9t(t.signature)].join(AH)}function Qp(t){let e=t.split(AH),r=Gje(e[0]),n=Gje(e[1]),i=J9t(e[2]),s=wC(e.slice(0,2).join(AH),lHe);return{header:r,payload:n,signature:i,data:s}}function vC(t=Jje(BIt)){let e=aHe.getPublicKey(t);return{secretKey:dHe([t,e]),publicKey:e}}async function OH(t,e,r,n,i=(0,Kje.fromMiliseconds)(Date.now())){let s={alg:TIt,typ:IIt},o=T9(n.publicKey),a=i+r,c={iss:o,sub:t,aud:e,iat:i,exp:a},l=Y9t({header:s,payload:c}),d=aHe.sign(l,n.secretKey.slice(0,32));return X9t({header:s,payload:c,signature:d})}var Kje,bC,Bse,qse,zse,EH,$se,STt,ATt,TTt,ITt,RTt,PTt,OTt,NTt,kTt,BTt,MTt,DTt,LTt,FTt,jTt,HTt,qTt,zTt,$Tt,Mt,VTt,WTt,p1,h1,Vse,GTt,roe,Xje,KTt,ZTt,d0,Dse,XTt,eIt,mo,fs,m2,tIt,Gse,Bje,Mje,sIt,oIt,Lje,_H,Fse,oHe,ff,zc,CH,mIt,gIt,aoe,Uje,wIt,Fje,vIt,xIt,SIt,AIt,aHe,TIt,IIt,AH,IH,cHe,lHe,RIt,PIt,OIt,jje,NIt,kIt,BIt,DIt,LIt,fHe,UIt,FIt,Kse,Zse,Qse,pHe,Jse,RH,A9,jIt,HIt,Wo,qIt,zIt,$It,VIt,WIt,GIt,KIt,ZIt,QIt,JIt,YIt,XIt,e9t,t9t,r9t,n9t,i9t,s9t,o9t,a9t,c9t,l9t,u9t,d9t,f9t,p9t,h9t,m9t,g9t,y9t,b9t,w9t,hHe,v9t,x9t,C9t,S9t,A9t,Hje,T9t,I9t,R9t,P9t,O9t,qje,N9t,k9t,B9t,M9t,D9t,L9t,U9t,F9t,j9t,H9t,q9t,gHe,zje,$je,Xse,eoe,yHe,toe,bHe,z9t,$9t,V9t,wHe,W9t,vHe,G9t,K9t,Z9t,Vje,Wje,Hse,EHe,g2=x(()=>{u();Kje=Me(u0());f1();bC=typeof globalThis==\\\"object\\\"&&\\\"crypto\\\"in globalThis?globalThis.crypto:void 0;Bse=t=>new DataView(t.buffer,t.byteOffset,t.byteLength);qse=class{clone(){return this._cloneInto()}};zse=class extends qse{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Bse(this.buffer)}update(e){Pje(this);let{view:r,buffer:n,blockLen:i}=this;e=Qje(e);let s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let c=Bse(e);for(;i<=s-o;o+=i)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Pje(this),vTt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:s}=this,{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(n,0),o=0);for(let f=o;f<i;f++)r[f]=0;_Tt(n,i-8,BigInt(this.length*8),s),this.process(n,0);let a=Bse(e),c=this.outputLen;if(c%4)throw new Error(\\\"_sha2: outputLen should be aligned to 32bit\\\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\\\"_sha2: outputLen bigger than state\\\");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],s)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.length=i,e.pos=a,e.finished=s,e.destroyed=o,i%r&&e.buffer.set(n),e}},EH=BigInt(2**32-1),$se=BigInt(32);STt=(t,e)=>BigInt(t>>>0)<<$se|BigInt(e>>>0),ATt=(t,e,r)=>t>>>r,TTt=(t,e,r)=>t<<32-r|e>>>r,ITt=(t,e,r)=>t>>>r|e<<32-r,RTt=(t,e,r)=>t<<32-r|e>>>r,PTt=(t,e,r)=>t<<64-r|e>>>r-32,OTt=(t,e,r)=>t>>>r-32|e<<64-r,NTt=(t,e)=>e,kTt=(t,e)=>t,BTt=(t,e,r)=>t<<r|e>>>32-r,MTt=(t,e,r)=>e<<r|t>>>32-r,DTt=(t,e,r)=>e<<r-32|t>>>64-r,LTt=(t,e,r)=>t<<r-32|e>>>64-r;FTt=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),jTt=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,HTt=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),qTt=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,zTt=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),$Tt=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,Mt={fromBig:Yje,split:CTt,toBig:STt,shrSH:ATt,shrSL:TTt,rotrSH:ITt,rotrSL:RTt,rotrBH:PTt,rotrBL:OTt,rotr32H:NTt,rotr32L:kTt,rotlSH:BTt,rotlSL:MTt,rotlBH:DTt,rotlBL:LTt,add:UTt,add3L:FTt,add3H:jTt,add4L:HTt,add4H:qTt,add5H:$Tt,add5L:zTt},[VTt,WTt]=Mt.split([\\\"0x428a2f98d728ae22\\\",\\\"0x7137449123ef65cd\\\",\\\"0xb5c0fbcfec4d3b2f\\\",\\\"0xe9b5dba58189dbbc\\\",\\\"0x3956c25bf348b538\\\",\\\"0x59f111f1b605d019\\\",\\\"0x923f82a4af194f9b\\\",\\\"0xab1c5ed5da6d8118\\\",\\\"0xd807aa98a3030242\\\",\\\"0x12835b0145706fbe\\\",\\\"0x243185be4ee4b28c\\\",\\\"0x550c7dc3d5ffb4e2\\\",\\\"0x72be5d74f27b896f\\\",\\\"0x80deb1fe3b1696b1\\\",\\\"0x9bdc06a725c71235\\\",\\\"0xc19bf174cf692694\\\",\\\"0xe49b69c19ef14ad2\\\",\\\"0xefbe4786384f25e3\\\",\\\"0x0fc19dc68b8cd5b5\\\",\\\"0x240ca1cc77ac9c65\\\",\\\"0x2de92c6f592b0275\\\",\\\"0x4a7484aa6ea6e483\\\",\\\"0x5cb0a9dcbd41fbd4\\\",\\\"0x76f988da831153b5\\\",\\\"0x983e5152ee66dfab\\\",\\\"0xa831c66d2db43210\\\",\\\"0xb00327c898fb213f\\\",\\\"0xbf597fc7beef0ee4\\\",\\\"0xc6e00bf33da88fc2\\\",\\\"0xd5a79147930aa725\\\",\\\"0x06ca6351e003826f\\\",\\\"0x142929670a0e6e70\\\",\\\"0x27b70a8546d22ffc\\\",\\\"0x2e1b21385c26c926\\\",\\\"0x4d2c6dfc5ac42aed\\\",\\\"0x53380d139d95b3df\\\",\\\"0x650a73548baf63de\\\",\\\"0x766a0abb3c77b2a8\\\",\\\"0x81c2c92e47edaee6\\\",\\\"0x92722c851482353b\\\",\\\"0xa2bfe8a14cf10364\\\",\\\"0xa81a664bbc423001\\\",\\\"0xc24b8b70d0f89791\\\",\\\"0xc76c51a30654be30\\\",\\\"0xd192e819d6ef5218\\\",\\\"0xd69906245565a910\\\",\\\"0xf40e35855771202a\\\",\\\"0x106aa07032bbd1b8\\\",\\\"0x19a4c116b8d2d0c8\\\",\\\"0x1e376c085141ab53\\\",\\\"0x2748774cdf8eeb99\\\",\\\"0x34b0bcb5e19b48a8\\\",\\\"0x391c0cb3c5c95a63\\\",\\\"0x4ed8aa4ae3418acb\\\",\\\"0x5b9cca4f7763e373\\\",\\\"0x682e6ff3d6b2b8a3\\\",\\\"0x748f82ee5defb2fc\\\",\\\"0x78a5636f43172f60\\\",\\\"0x84c87814a1f0ab72\\\",\\\"0x8cc702081a6439ec\\\",\\\"0x90befffa23631e28\\\",\\\"0xa4506cebde82bde9\\\",\\\"0xbef9a3f7b2c67915\\\",\\\"0xc67178f2e372532b\\\",\\\"0xca273eceea26619c\\\",\\\"0xd186b8c721c0c207\\\",\\\"0xeada7dd6cde0eb1e\\\",\\\"0xf57d4f7fee6ed178\\\",\\\"0x06f067aa72176fba\\\",\\\"0x0a637dc5a2c898a6\\\",\\\"0x113f9804bef90dae\\\",\\\"0x1b710b35131c471b\\\",\\\"0x28db77f523047d84\\\",\\\"0x32caab7b40c72493\\\",\\\"0x3c9ebe0a15c9bebc\\\",\\\"0x431d67c49c100d4c\\\",\\\"0x4cc5d4becb3e42b6\\\",\\\"0x597f299cfc657e2a\\\",\\\"0x5fcb6fab3ad6faec\\\",\\\"0x6c44198c4a475817\\\"].map(t=>BigInt(t))),p1=new Uint32Array(80),h1=new Uint32Array(80),Vse=class extends zse{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:s,Cl:o,Dh:a,Dl:c,Eh:l,El:d,Fh:f,Fl:p,Gh:h,Gl:m,Hh:g,Hl:w}=this;return[e,r,n,i,s,o,a,c,l,d,f,p,h,m,g,w]}set(e,r,n,i,s,o,a,c,l,d,f,p,h,m,g,w){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=s|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=f|0,this.Fl=p|0,this.Gh=h|0,this.Gl=m|0,this.Hh=g|0,this.Hl=w|0}process(e,r){for(let _=0;_<16;_++,r+=4)p1[_]=e.getUint32(r),h1[_]=e.getUint32(r+=4);for(let _=16;_<80;_++){let S=p1[_-15]|0,T=h1[_-15]|0,N=Mt.rotrSH(S,T,1)^Mt.rotrSH(S,T,8)^Mt.shrSH(S,T,7),O=Mt.rotrSL(S,T,1)^Mt.rotrSL(S,T,8)^Mt.shrSL(S,T,7),L=p1[_-2]|0,B=h1[_-2]|0,H=Mt.rotrSH(L,B,19)^Mt.rotrBH(L,B,61)^Mt.shrSH(L,B,6),M=Mt.rotrSL(L,B,19)^Mt.rotrBL(L,B,61)^Mt.shrSL(L,B,6),F=Mt.add4L(O,M,h1[_-7],h1[_-16]),R=Mt.add4H(F,N,H,p1[_-7],p1[_-16]);p1[_]=R|0,h1[_]=F|0}let{Ah:n,Al:i,Bh:s,Bl:o,Ch:a,Cl:c,Dh:l,Dl:d,Eh:f,El:p,Fh:h,Fl:m,Gh:g,Gl:w,Hh:v,Hl:b}=this;for(let _=0;_<80;_++){let S=Mt.rotrSH(f,p,14)^Mt.rotrSH(f,p,18)^Mt.rotrBH(f,p,41),T=Mt.rotrSL(f,p,14)^Mt.rotrSL(f,p,18)^Mt.rotrBL(f,p,41),N=f&h^~f&g,O=p&m^~p&w,L=Mt.add5L(b,T,O,WTt[_],h1[_]),B=Mt.add5H(L,v,S,N,VTt[_],p1[_]),H=L|0,M=Mt.rotrSH(n,i,28)^Mt.rotrBH(n,i,34)^Mt.rotrBH(n,i,39),F=Mt.rotrSL(n,i,28)^Mt.rotrBL(n,i,34)^Mt.rotrBL(n,i,39),R=n&s^n&a^s&a,y=i&o^i&c^o&c;v=g|0,b=w|0,g=h|0,w=m|0,h=f|0,m=p|0,{h:f,l:p}=Mt.add(l|0,d|0,B|0,H|0),l=a|0,d=c|0,a=s|0,c=o|0,s=n|0,o=i|0;let E=Mt.add3L(H,F,y);n=Mt.add3H(E,B,M,R),i=E|0}({h:n,l:i}=Mt.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:s,l:o}=Mt.add(this.Bh|0,this.Bl|0,s|0,o|0),{h:a,l:c}=Mt.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:d}=Mt.add(this.Dh|0,this.Dl|0,l|0,d|0),{h:f,l:p}=Mt.add(this.Eh|0,this.El|0,f|0,p|0),{h,l:m}=Mt.add(this.Fh|0,this.Fl|0,h|0,m|0),{h:g,l:w}=Mt.add(this.Gh|0,this.Gl|0,g|0,w|0),{h:v,l:b}=Mt.add(this.Hh|0,this.Hl|0,v|0,b|0),this.set(n,i,s,o,a,c,l,d,f,p,h,m,g,w,v,b)}roundClean(){p1.fill(0),h1.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},GTt=ETt(()=>new Vse);roe=BigInt(0),Xje=BigInt(1),KTt=BigInt(2);ZTt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));d0={_0:48,_9:57,A:65,F:70,a:97,f:102};Dse=t=>typeof t==\\\"bigint\\\"&&roe<=t;XTt=t=>(KTt<<BigInt(t-1))-Xje,eIt={bigint:t=>typeof t==\\\"bigint\\\",function:t=>typeof t==\\\"function\\\",boolean:t=>typeof t==\\\"boolean\\\",string:t=>typeof t==\\\"string\\\",stringOrUint8Array:t=>typeof t==\\\"string\\\"||noe(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t==\\\"function\\\"&&Number.isSafeInteger(t.outputLen)};mo=BigInt(0),fs=BigInt(1),m2=BigInt(2),tIt=BigInt(3),Gse=BigInt(4),Bje=BigInt(5),Mje=BigInt(8);sIt=(t,e)=>(zs(t,e)&fs)===fs,oIt=[\\\"create\\\",\\\"isValid\\\",\\\"is0\\\",\\\"neg\\\",\\\"inv\\\",\\\"sqrt\\\",\\\"sqr\\\",\\\"eql\\\",\\\"add\\\",\\\"sub\\\",\\\"mul\\\",\\\"pow\\\",\\\"div\\\",\\\"addN\\\",\\\"subN\\\",\\\"mulN\\\",\\\"sqrN\\\"];Lje=BigInt(0),_H=BigInt(1);Fse=new WeakMap,oHe=new WeakMap;ff=BigInt(0),zc=BigInt(1),CH=BigInt(2),mIt=BigInt(8),gIt={zip215:!0};BigInt(0),BigInt(1);aoe=BigInt(\\\"57896044618658097711785492504343953926634992332820282019728792003956564819949\\\"),Uje=BigInt(\\\"19681161376707505956807079304988542015446066515923890162744021073123829784752\\\");BigInt(0);wIt=BigInt(1),Fje=BigInt(2);BigInt(3);vIt=BigInt(5),xIt=BigInt(8);SIt=iHe(aoe,void 0,!0),AIt={a:BigInt(-1),d:BigInt(\\\"37095705934669439343138083508754565189542113879843219016388785533085940283555\\\"),Fp:SIt,n:BigInt(\\\"7237005577332262213973186563042994240857116359379907606001950938285454250989\\\"),h:xIt,Gx:BigInt(\\\"15112221349535400772501151409588531511454012693041857206046113283949847762202\\\"),Gy:BigInt(\\\"46316835694926478169428394003475163141307993866256225615783033603165251855960\\\"),hash:GTt,randomBytes:Jje,adjustScalarBytes:_It,uvRatio:CIt},aHe=bIt(AIt),TIt=\\\"EdDSA\\\",IIt=\\\"JWT\\\",AH=\\\".\\\",IH=\\\"base64url\\\",cHe=\\\"utf8\\\",lHe=\\\"utf8\\\",RIt=\\\":\\\",PIt=\\\"did\\\",OIt=\\\"key\\\",jje=\\\"base58btc\\\",NIt=\\\"z\\\",kIt=\\\"K36\\\",BIt=32;DIt=MIt,LIt=DIt,fHe=t=>{if(t instanceof Uint8Array&&t.constructor.name===\\\"Uint8Array\\\")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error(\\\"Unknown type, must be binary type\\\")},UIt=t=>new TextEncoder().encode(t),FIt=t=>new TextDecoder().decode(t),Kse=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\\\"Unknown type, must be binary type\\\")}},Zse=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error(\\\"Invalid prefix character\\\");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e==\\\"string\\\"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error(\\\"Can only multibase decode strings\\\")}or(e){return pHe(this,e)}},Qse=class{constructor(e){this.decoders=e}or(e){return pHe(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},pHe=(t,e)=>new Qse({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),Jse=class{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Kse(e,r,n),this.decoder=new Zse(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},RH=({name:t,prefix:e,encode:r,decode:n})=>new Jse(t,e,r,n),A9=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:i}=LIt(r,e);return RH({prefix:t,name:e,encode:n,decode:s=>fHe(i(s))})},jIt=(t,e,r,n)=>{let i={};for(let d=0;d<e.length;++d)i[e[d]]=d;let s=t.length;for(;t[s-1]===\\\"=\\\";)--s;let o=new Uint8Array(s*r/8|0),a=0,c=0,l=0;for(let d=0;d<s;++d){let f=i[t[d]];if(f===void 0)throw new SyntaxError(`Non-${n} character`);c=c<<r|f,a+=r,a>=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError(\\\"Unexpected end of data\\\");return o},HIt=(t,e,r)=>{let n=e[e.length-1]===\\\"=\\\",i=(1<<r)-1,s=\\\"\\\",o=0,a=0;for(let c=0;c<t.length;++c)for(a=a<<8|t[c],o+=8;o>r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<<r-o]),n)for(;s.length*r&7;)s+=\\\"=\\\";return s},Wo=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>RH({prefix:e,name:t,encode(i){return HIt(i,n,r)},decode(i){return jIt(i,n,r,t)}}),qIt=RH({prefix:\\\"\\\\0\\\",name:\\\"identity\\\",encode:t=>FIt(t),decode:t=>UIt(t)}),zIt=Object.freeze({__proto__:null,identity:qIt}),$It=Wo({prefix:\\\"0\\\",name:\\\"base2\\\",alphabet:\\\"01\\\",bitsPerChar:1}),VIt=Object.freeze({__proto__:null,base2:$It}),WIt=Wo({prefix:\\\"7\\\",name:\\\"base8\\\",alphabet:\\\"01234567\\\",bitsPerChar:3}),GIt=Object.freeze({__proto__:null,base8:WIt}),KIt=A9({prefix:\\\"9\\\",name:\\\"base10\\\",alphabet:\\\"0123456789\\\"}),ZIt=Object.freeze({__proto__:null,base10:KIt}),QIt=Wo({prefix:\\\"f\\\",name:\\\"base16\\\",alphabet:\\\"0123456789abcdef\\\",bitsPerChar:4}),JIt=Wo({prefix:\\\"F\\\",name:\\\"base16upper\\\",alphabet:\\\"0123456789ABCDEF\\\",bitsPerChar:4}),YIt=Object.freeze({__proto__:null,base16:QIt,base16upper:JIt}),XIt=Wo({prefix:\\\"b\\\",name:\\\"base32\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567\\\",bitsPerChar:5}),e9t=Wo({prefix:\\\"B\\\",name:\\\"base32upper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\\\",bitsPerChar:5}),t9t=Wo({prefix:\\\"c\\\",name:\\\"base32pad\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567=\\\",bitsPerChar:5}),r9t=Wo({prefix:\\\"C\\\",name:\\\"base32padupper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\\\",bitsPerChar:5}),n9t=Wo({prefix:\\\"v\\\",name:\\\"base32hex\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv\\\",bitsPerChar:5}),i9t=Wo({prefix:\\\"V\\\",name:\\\"base32hexupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV\\\",bitsPerChar:5}),s9t=Wo({prefix:\\\"t\\\",name:\\\"base32hexpad\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv=\\\",bitsPerChar:5}),o9t=Wo({prefix:\\\"T\\\",name:\\\"base32hexpadupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\\\",bitsPerChar:5}),a9t=Wo({prefix:\\\"h\\\",name:\\\"base32z\\\",alphabet:\\\"ybndrfg8ejkmcpqxot1uwisza345h769\\\",bitsPerChar:5}),c9t=Object.freeze({__proto__:null,base32:XIt,base32upper:e9t,base32pad:t9t,base32padupper:r9t,base32hex:n9t,base32hexupper:i9t,base32hexpad:s9t,base32hexpadupper:o9t,base32z:a9t}),l9t=A9({prefix:\\\"k\\\",name:\\\"base36\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuvwxyz\\\"}),u9t=A9({prefix:\\\"K\\\",name:\\\"base36upper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\\\"}),d9t=Object.freeze({__proto__:null,base36:l9t,base36upper:u9t}),f9t=A9({name:\\\"base58btc\\\",prefix:\\\"z\\\",alphabet:\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\"}),p9t=A9({name:\\\"base58flickr\\\",prefix:\\\"Z\\\",alphabet:\\\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\\\"}),h9t=Object.freeze({__proto__:null,base58btc:f9t,base58flickr:p9t}),m9t=Wo({prefix:\\\"m\\\",name:\\\"base64\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",bitsPerChar:6}),g9t=Wo({prefix:\\\"M\\\",name:\\\"base64pad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\\",bitsPerChar:6}),y9t=Wo({prefix:\\\"u\\\",name:\\\"base64url\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\\\",bitsPerChar:6}),b9t=Wo({prefix:\\\"U\\\",name:\\\"base64urlpad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\\\",bitsPerChar:6}),w9t=Object.freeze({__proto__:null,base64:m9t,base64pad:g9t,base64url:y9t,base64urlpad:b9t}),hHe=Array.from(\\\"\\\\u{1F680}\\\\u{1FA90}\\\\u2604\\\\u{1F6F0}\\\\u{1F30C}\\\\u{1F311}\\\\u{1F312}\\\\u{1F313}\\\\u{1F314}\\\\u{1F315}\\\\u{1F316}\\\\u{1F317}\\\\u{1F318}\\\\u{1F30D}\\\\u{1F30F}\\\\u{1F30E}\\\\u{1F409}\\\\u2600\\\\u{1F4BB}\\\\u{1F5A5}\\\\u{1F4BE}\\\\u{1F4BF}\\\\u{1F602}\\\\u2764\\\\u{1F60D}\\\\u{1F923}\\\\u{1F60A}\\\\u{1F64F}\\\\u{1F495}\\\\u{1F62D}\\\\u{1F618}\\\\u{1F44D}\\\\u{1F605}\\\\u{1F44F}\\\\u{1F601}\\\\u{1F525}\\\\u{1F970}\\\\u{1F494}\\\\u{1F496}\\\\u{1F499}\\\\u{1F622}\\\\u{1F914}\\\\u{1F606}\\\\u{1F644}\\\\u{1F4AA}\\\\u{1F609}\\\\u263A\\\\u{1F44C}\\\\u{1F917}\\\\u{1F49C}\\\\u{1F614}\\\\u{1F60E}\\\\u{1F607}\\\\u{1F339}\\\\u{1F926}\\\\u{1F389}\\\\u{1F49E}\\\\u270C\\\\u2728\\\\u{1F937}\\\\u{1F631}\\\\u{1F60C}\\\\u{1F338}\\\\u{1F64C}\\\\u{1F60B}\\\\u{1F497}\\\\u{1F49A}\\\\u{1F60F}\\\\u{1F49B}\\\\u{1F642}\\\\u{1F493}\\\\u{1F929}\\\\u{1F604}\\\\u{1F600}\\\\u{1F5A4}\\\\u{1F603}\\\\u{1F4AF}\\\\u{1F648}\\\\u{1F447}\\\\u{1F3B6}\\\\u{1F612}\\\\u{1F92D}\\\\u2763\\\\u{1F61C}\\\\u{1F48B}\\\\u{1F440}\\\\u{1F62A}\\\\u{1F611}\\\\u{1F4A5}\\\\u{1F64B}\\\\u{1F61E}\\\\u{1F629}\\\\u{1F621}\\\\u{1F92A}\\\\u{1F44A}\\\\u{1F973}\\\\u{1F625}\\\\u{1F924}\\\\u{1F449}\\\\u{1F483}\\\\u{1F633}\\\\u270B\\\\u{1F61A}\\\\u{1F61D}\\\\u{1F634}\\\\u{1F31F}\\\\u{1F62C}\\\\u{1F643}\\\\u{1F340}\\\\u{1F337}\\\\u{1F63B}\\\\u{1F613}\\\\u2B50\\\\u2705\\\\u{1F97A}\\\\u{1F308}\\\\u{1F608}\\\\u{1F918}\\\\u{1F4A6}\\\\u2714\\\\u{1F623}\\\\u{1F3C3}\\\\u{1F490}\\\\u2639\\\\u{1F38A}\\\\u{1F498}\\\\u{1F620}\\\\u261D\\\\u{1F615}\\\\u{1F33A}\\\\u{1F382}\\\\u{1F33B}\\\\u{1F610}\\\\u{1F595}\\\\u{1F49D}\\\\u{1F64A}\\\\u{1F639}\\\\u{1F5E3}\\\\u{1F4AB}\\\\u{1F480}\\\\u{1F451}\\\\u{1F3B5}\\\\u{1F91E}\\\\u{1F61B}\\\\u{1F534}\\\\u{1F624}\\\\u{1F33C}\\\\u{1F62B}\\\\u26BD\\\\u{1F919}\\\\u2615\\\\u{1F3C6}\\\\u{1F92B}\\\\u{1F448}\\\\u{1F62E}\\\\u{1F646}\\\\u{1F37B}\\\\u{1F343}\\\\u{1F436}\\\\u{1F481}\\\\u{1F632}\\\\u{1F33F}\\\\u{1F9E1}\\\\u{1F381}\\\\u26A1\\\\u{1F31E}\\\\u{1F388}\\\\u274C\\\\u270A\\\\u{1F44B}\\\\u{1F630}\\\\u{1F928}\\\\u{1F636}\\\\u{1F91D}\\\\u{1F6B6}\\\\u{1F4B0}\\\\u{1F353}\\\\u{1F4A2}\\\\u{1F91F}\\\\u{1F641}\\\\u{1F6A8}\\\\u{1F4A8}\\\\u{1F92C}\\\\u2708\\\\u{1F380}\\\\u{1F37A}\\\\u{1F913}\\\\u{1F619}\\\\u{1F49F}\\\\u{1F331}\\\\u{1F616}\\\\u{1F476}\\\\u{1F974}\\\\u25B6\\\\u27A1\\\\u2753\\\\u{1F48E}\\\\u{1F4B8}\\\\u2B07\\\\u{1F628}\\\\u{1F31A}\\\\u{1F98B}\\\\u{1F637}\\\\u{1F57A}\\\\u26A0\\\\u{1F645}\\\\u{1F61F}\\\\u{1F635}\\\\u{1F44E}\\\\u{1F932}\\\\u{1F920}\\\\u{1F927}\\\\u{1F4CC}\\\\u{1F535}\\\\u{1F485}\\\\u{1F9D0}\\\\u{1F43E}\\\\u{1F352}\\\\u{1F617}\\\\u{1F911}\\\\u{1F30A}\\\\u{1F92F}\\\\u{1F437}\\\\u260E\\\\u{1F4A7}\\\\u{1F62F}\\\\u{1F486}\\\\u{1F446}\\\\u{1F3A4}\\\\u{1F647}\\\\u{1F351}\\\\u2744\\\\u{1F334}\\\\u{1F4A3}\\\\u{1F438}\\\\u{1F48C}\\\\u{1F4CD}\\\\u{1F940}\\\\u{1F922}\\\\u{1F445}\\\\u{1F4A1}\\\\u{1F4A9}\\\\u{1F450}\\\\u{1F4F8}\\\\u{1F47B}\\\\u{1F910}\\\\u{1F92E}\\\\u{1F3BC}\\\\u{1F975}\\\\u{1F6A9}\\\\u{1F34E}\\\\u{1F34A}\\\\u{1F47C}\\\\u{1F48D}\\\\u{1F4E3}\\\\u{1F942}\\\"),v9t=hHe.reduce((t,e,r)=>(t[r]=e,t),[]),x9t=hHe.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);C9t=RH({prefix:\\\"\\\\u{1F680}\\\",name:\\\"base256emoji\\\",encode:E9t,decode:_9t}),S9t=Object.freeze({__proto__:null,base256emoji:C9t}),A9t=mHe,Hje=128,T9t=127,I9t=~T9t,R9t=Math.pow(2,31);P9t=Yse,O9t=128,qje=127;N9t=Math.pow(2,7),k9t=Math.pow(2,14),B9t=Math.pow(2,21),M9t=Math.pow(2,28),D9t=Math.pow(2,35),L9t=Math.pow(2,42),U9t=Math.pow(2,49),F9t=Math.pow(2,56),j9t=Math.pow(2,63),H9t=function(t){return t<N9t?1:t<k9t?2:t<B9t?3:t<M9t?4:t<D9t?5:t<L9t?6:t<U9t?7:t<F9t?8:t<j9t?9:10},q9t={encode:A9t,decode:P9t,encodingLength:H9t},gHe=q9t,zje=(t,e,r=0)=>(gHe.encode(t,e,r),e),$je=t=>gHe.encodingLength(t),Xse=(t,e)=>{let r=e.byteLength,n=$je(t),i=n+$je(r),s=new Uint8Array(i+r);return zje(t,s,0),zje(r,s,n),s.set(e,i),new eoe(t,r,e,s)},eoe=class{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}},yHe=({name:t,code:e,encode:r})=>new toe(t,e,r),toe=class{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?Xse(this.code,r):r.then(n=>Xse(this.code,n))}else throw Error(\\\"Unknown type, must be binary type\\\")}},bHe=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),z9t=yHe({name:\\\"sha2-256\\\",code:18,encode:bHe(\\\"SHA-256\\\")}),$9t=yHe({name:\\\"sha2-512\\\",code:19,encode:bHe(\\\"SHA-512\\\")}),V9t=Object.freeze({__proto__:null,sha256:z9t,sha512:$9t}),wHe=0,W9t=\\\"identity\\\",vHe=fHe,G9t=t=>Xse(wHe,vHe(t)),K9t={code:wHe,name:W9t,encode:vHe,digest:G9t},Z9t=Object.freeze({__proto__:null,identity:K9t});new TextEncoder,new TextDecoder;Vje={...zIt,...VIt,...GIt,...ZIt,...YIt,...c9t,...d9t,...h9t,...w9t,...S9t};({...V9t,...Z9t});Wje=xHe(\\\"utf8\\\",\\\"u\\\",t=>\\\"u\\\"+new TextDecoder(\\\"utf8\\\").decode(t),t=>new TextEncoder().encode(t.substring(1))),Hse=xHe(\\\"ascii\\\",\\\"a\\\",t=>{let e=\\\"a\\\";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=uHe(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),EHe={utf8:Wje,\\\"utf-8\\\":Wje,hex:Vje.base16,latin1:Hse,ascii:Hse,binary:Hse,...Vje}});var CHe=x(()=>{u()});function I9(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(t):new Uint8Array(t)}var NH=x(()=>{u()});function kl(t,e){e||(e=t.reduce((i,s)=>i+s.length,0));let r=I9(e),n=0;for(let i of t)r.set(i,n),n+=i.length;return r}var SHe=x(()=>{u();NH()});var AHe=x(()=>{u()});function e7t(t,e){if(t.length>=255)throw new TypeError(\\\"Alphabet too long\\\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),o=s.charCodeAt(0);if(r[o]!==255)throw new TypeError(s+\\\" is ambiguous\\\");r[o]=i}var a=t.length,c=t.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function f(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError(\\\"Expected Uint8Array\\\");if(m.length===0)return\\\"\\\";for(var g=0,w=0,v=0,b=m.length;v!==b&&m[v]===0;)v++,g++;for(var _=(b-v)*d+1>>>0,S=new Uint8Array(_);v!==b;){for(var T=m[v],N=0,O=_-1;(T!==0||N<w)&&O!==-1;O--,N++)T+=256*S[O]>>>0,S[O]=T%a>>>0,T=T/a>>>0;if(T!==0)throw new Error(\\\"Non-zero carry\\\");w=N,v++}for(var L=_-w;L!==_&&S[L]===0;)L++;for(var B=c.repeat(g);L<_;++L)B+=t.charAt(S[L]);return B}function p(m){if(typeof m!=\\\"string\\\")throw new TypeError(\\\"Expected String\\\");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==\\\" \\\"){for(var w=0,v=0;m[g]===c;)w++,g++;for(var b=(m.length-g)*l+1>>>0,_=new Uint8Array(b);m[g];){var S=r[m.charCodeAt(g)];if(S===255)return;for(var T=0,N=b-1;(S!==0||T<v)&&N!==-1;N--,T++)S+=a*_[N]>>>0,_[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error(\\\"Non-zero carry\\\");v=T,g++}if(m[g]!==\\\" \\\"){for(var O=b-v;O!==b&&_[O]===0;)O++;for(var L=new Uint8Array(w+(b-O)),B=w;O!==b;)L[B++]=_[O++];return L}}}function h(m){var g=p(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:f,decodeUnsafe:p,decode:h}}var t7t,r7t,THe,IHe=x(()=>{u();t7t=e7t,r7t=t7t,THe=r7t});var Gon,RHe,p0,PHe,OHe,m1=x(()=>{u();Gon=new Uint8Array(0),RHe=(t,e)=>{if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0},p0=t=>{if(t instanceof Uint8Array&&t.constructor.name===\\\"Uint8Array\\\")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error(\\\"Unknown type, must be binary type\\\")},PHe=t=>new TextEncoder().encode(t),OHe=t=>new TextDecoder().decode(t)});var loe,uoe,doe,kHe,foe,xC,g1,n7t,i7t,ts,pf=x(()=>{u();IHe();m1();loe=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\\\"Unknown type, must be binary type\\\")}},uoe=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error(\\\"Invalid prefix character\\\");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e==\\\"string\\\"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error(\\\"Can only multibase decode strings\\\")}or(e){return kHe(this,e)}},doe=class{constructor(e){this.decoders=e}or(e){return kHe(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},kHe=(t,e)=>new doe({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),foe=class{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new loe(e,r,n),this.decoder=new uoe(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},xC=({name:t,prefix:e,encode:r,decode:n})=>new foe(t,e,r,n),g1=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:i}=THe(r,e);return xC({prefix:t,name:e,encode:n,decode:s=>p0(i(s))})},n7t=(t,e,r,n)=>{let i={};for(let d=0;d<e.length;++d)i[e[d]]=d;let s=t.length;for(;t[s-1]===\\\"=\\\";)--s;let o=new Uint8Array(s*r/8|0),a=0,c=0,l=0;for(let d=0;d<s;++d){let f=i[t[d]];if(f===void 0)throw new SyntaxError(`Non-${n} character`);c=c<<r|f,a+=r,a>=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError(\\\"Unexpected end of data\\\");return o},i7t=(t,e,r)=>{let n=e[e.length-1]===\\\"=\\\",i=(1<<r)-1,s=\\\"\\\",o=0,a=0;for(let c=0;c<t.length;++c)for(a=a<<8|t[c],o+=8;o>r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<<r-o]),n)for(;s.length*r&7;)s+=\\\"=\\\";return s},ts=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>xC({prefix:e,name:t,encode(i){return i7t(i,n,r)},decode(i){return n7t(i,n,r,t)}})});var poe={};ue(poe,{identity:()=>s7t});var s7t,BHe=x(()=>{u();pf();m1();s7t=xC({prefix:\\\"\\\\0\\\",name:\\\"identity\\\",encode:t=>OHe(t),decode:t=>PHe(t)})});var hoe={};ue(hoe,{base2:()=>o7t});var o7t,MHe=x(()=>{u();pf();o7t=ts({prefix:\\\"0\\\",name:\\\"base2\\\",alphabet:\\\"01\\\",bitsPerChar:1})});var moe={};ue(moe,{base8:()=>a7t});var a7t,DHe=x(()=>{u();pf();a7t=ts({prefix:\\\"7\\\",name:\\\"base8\\\",alphabet:\\\"01234567\\\",bitsPerChar:3})});var goe={};ue(goe,{base10:()=>c7t});var c7t,LHe=x(()=>{u();pf();c7t=g1({prefix:\\\"9\\\",name:\\\"base10\\\",alphabet:\\\"0123456789\\\"})});var yoe={};ue(yoe,{base16:()=>l7t,base16upper:()=>u7t});var l7t,u7t,UHe=x(()=>{u();pf();l7t=ts({prefix:\\\"f\\\",name:\\\"base16\\\",alphabet:\\\"0123456789abcdef\\\",bitsPerChar:4}),u7t=ts({prefix:\\\"F\\\",name:\\\"base16upper\\\",alphabet:\\\"0123456789ABCDEF\\\",bitsPerChar:4})});var boe={};ue(boe,{base32:()=>EC,base32hex:()=>h7t,base32hexpad:()=>g7t,base32hexpadupper:()=>y7t,base32hexupper:()=>m7t,base32pad:()=>f7t,base32padupper:()=>p7t,base32upper:()=>d7t,base32z:()=>b7t});var EC,d7t,f7t,p7t,h7t,m7t,g7t,y7t,b7t,woe=x(()=>{u();pf();EC=ts({prefix:\\\"b\\\",name:\\\"base32\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567\\\",bitsPerChar:5}),d7t=ts({prefix:\\\"B\\\",name:\\\"base32upper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\\\",bitsPerChar:5}),f7t=ts({prefix:\\\"c\\\",name:\\\"base32pad\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567=\\\",bitsPerChar:5}),p7t=ts({prefix:\\\"C\\\",name:\\\"base32padupper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\\\",bitsPerChar:5}),h7t=ts({prefix:\\\"v\\\",name:\\\"base32hex\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv\\\",bitsPerChar:5}),m7t=ts({prefix:\\\"V\\\",name:\\\"base32hexupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV\\\",bitsPerChar:5}),g7t=ts({prefix:\\\"t\\\",name:\\\"base32hexpad\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv=\\\",bitsPerChar:5}),y7t=ts({prefix:\\\"T\\\",name:\\\"base32hexpadupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\\\",bitsPerChar:5}),b7t=ts({prefix:\\\"h\\\",name:\\\"base32z\\\",alphabet:\\\"ybndrfg8ejkmcpqxot1uwisza345h769\\\",bitsPerChar:5})});var voe={};ue(voe,{base36:()=>w7t,base36upper:()=>v7t});var w7t,v7t,FHe=x(()=>{u();pf();w7t=g1({prefix:\\\"k\\\",name:\\\"base36\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuvwxyz\\\"}),v7t=g1({prefix:\\\"K\\\",name:\\\"base36upper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\\\"})});var xoe={};ue(xoe,{base58btc:()=>Jp,base58flickr:()=>x7t});var Jp,x7t,Eoe=x(()=>{u();pf();Jp=g1({name:\\\"base58btc\\\",prefix:\\\"z\\\",alphabet:\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\"}),x7t=g1({name:\\\"base58flickr\\\",prefix:\\\"Z\\\",alphabet:\\\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\\\"})});var _oe={};ue(_oe,{base64:()=>E7t,base64pad:()=>_7t,base64url:()=>C7t,base64urlpad:()=>S7t});var E7t,_7t,C7t,S7t,jHe=x(()=>{u();pf();E7t=ts({prefix:\\\"m\\\",name:\\\"base64\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",bitsPerChar:6}),_7t=ts({prefix:\\\"M\\\",name:\\\"base64pad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\\",bitsPerChar:6}),C7t=ts({prefix:\\\"u\\\",name:\\\"base64url\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\\\",bitsPerChar:6}),S7t=ts({prefix:\\\"U\\\",name:\\\"base64urlpad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\\\",bitsPerChar:6})});var Coe={};ue(Coe,{base256emoji:()=>P7t});function I7t(t){return t.reduce((e,r)=>(e+=A7t[r],e),\\\"\\\")}function R7t(t){let e=[];for(let r of t){let n=T7t[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}var HHe,A7t,T7t,P7t,qHe=x(()=>{u();pf();HHe=Array.from(\\\"\\\\u{1F680}\\\\u{1FA90}\\\\u2604\\\\u{1F6F0}\\\\u{1F30C}\\\\u{1F311}\\\\u{1F312}\\\\u{1F313}\\\\u{1F314}\\\\u{1F315}\\\\u{1F316}\\\\u{1F317}\\\\u{1F318}\\\\u{1F30D}\\\\u{1F30F}\\\\u{1F30E}\\\\u{1F409}\\\\u2600\\\\u{1F4BB}\\\\u{1F5A5}\\\\u{1F4BE}\\\\u{1F4BF}\\\\u{1F602}\\\\u2764\\\\u{1F60D}\\\\u{1F923}\\\\u{1F60A}\\\\u{1F64F}\\\\u{1F495}\\\\u{1F62D}\\\\u{1F618}\\\\u{1F44D}\\\\u{1F605}\\\\u{1F44F}\\\\u{1F601}\\\\u{1F525}\\\\u{1F970}\\\\u{1F494}\\\\u{1F496}\\\\u{1F499}\\\\u{1F622}\\\\u{1F914}\\\\u{1F606}\\\\u{1F644}\\\\u{1F4AA}\\\\u{1F609}\\\\u263A\\\\u{1F44C}\\\\u{1F917}\\\\u{1F49C}\\\\u{1F614}\\\\u{1F60E}\\\\u{1F607}\\\\u{1F339}\\\\u{1F926}\\\\u{1F389}\\\\u{1F49E}\\\\u270C\\\\u2728\\\\u{1F937}\\\\u{1F631}\\\\u{1F60C}\\\\u{1F338}\\\\u{1F64C}\\\\u{1F60B}\\\\u{1F497}\\\\u{1F49A}\\\\u{1F60F}\\\\u{1F49B}\\\\u{1F642}\\\\u{1F493}\\\\u{1F929}\\\\u{1F604}\\\\u{1F600}\\\\u{1F5A4}\\\\u{1F603}\\\\u{1F4AF}\\\\u{1F648}\\\\u{1F447}\\\\u{1F3B6}\\\\u{1F612}\\\\u{1F92D}\\\\u2763\\\\u{1F61C}\\\\u{1F48B}\\\\u{1F440}\\\\u{1F62A}\\\\u{1F611}\\\\u{1F4A5}\\\\u{1F64B}\\\\u{1F61E}\\\\u{1F629}\\\\u{1F621}\\\\u{1F92A}\\\\u{1F44A}\\\\u{1F973}\\\\u{1F625}\\\\u{1F924}\\\\u{1F449}\\\\u{1F483}\\\\u{1F633}\\\\u270B\\\\u{1F61A}\\\\u{1F61D}\\\\u{1F634}\\\\u{1F31F}\\\\u{1F62C}\\\\u{1F643}\\\\u{1F340}\\\\u{1F337}\\\\u{1F63B}\\\\u{1F613}\\\\u2B50\\\\u2705\\\\u{1F97A}\\\\u{1F308}\\\\u{1F608}\\\\u{1F918}\\\\u{1F4A6}\\\\u2714\\\\u{1F623}\\\\u{1F3C3}\\\\u{1F490}\\\\u2639\\\\u{1F38A}\\\\u{1F498}\\\\u{1F620}\\\\u261D\\\\u{1F615}\\\\u{1F33A}\\\\u{1F382}\\\\u{1F33B}\\\\u{1F610}\\\\u{1F595}\\\\u{1F49D}\\\\u{1F64A}\\\\u{1F639}\\\\u{1F5E3}\\\\u{1F4AB}\\\\u{1F480}\\\\u{1F451}\\\\u{1F3B5}\\\\u{1F91E}\\\\u{1F61B}\\\\u{1F534}\\\\u{1F624}\\\\u{1F33C}\\\\u{1F62B}\\\\u26BD\\\\u{1F919}\\\\u2615\\\\u{1F3C6}\\\\u{1F92B}\\\\u{1F448}\\\\u{1F62E}\\\\u{1F646}\\\\u{1F37B}\\\\u{1F343}\\\\u{1F436}\\\\u{1F481}\\\\u{1F632}\\\\u{1F33F}\\\\u{1F9E1}\\\\u{1F381}\\\\u26A1\\\\u{1F31E}\\\\u{1F388}\\\\u274C\\\\u270A\\\\u{1F44B}\\\\u{1F630}\\\\u{1F928}\\\\u{1F636}\\\\u{1F91D}\\\\u{1F6B6}\\\\u{1F4B0}\\\\u{1F353}\\\\u{1F4A2}\\\\u{1F91F}\\\\u{1F641}\\\\u{1F6A8}\\\\u{1F4A8}\\\\u{1F92C}\\\\u2708\\\\u{1F380}\\\\u{1F37A}\\\\u{1F913}\\\\u{1F619}\\\\u{1F49F}\\\\u{1F331}\\\\u{1F616}\\\\u{1F476}\\\\u{1F974}\\\\u25B6\\\\u27A1\\\\u2753\\\\u{1F48E}\\\\u{1F4B8}\\\\u2B07\\\\u{1F628}\\\\u{1F31A}\\\\u{1F98B}\\\\u{1F637}\\\\u{1F57A}\\\\u26A0\\\\u{1F645}\\\\u{1F61F}\\\\u{1F635}\\\\u{1F44E}\\\\u{1F932}\\\\u{1F920}\\\\u{1F927}\\\\u{1F4CC}\\\\u{1F535}\\\\u{1F485}\\\\u{1F9D0}\\\\u{1F43E}\\\\u{1F352}\\\\u{1F617}\\\\u{1F911}\\\\u{1F30A}\\\\u{1F92F}\\\\u{1F437}\\\\u260E\\\\u{1F4A7}\\\\u{1F62F}\\\\u{1F486}\\\\u{1F446}\\\\u{1F3A4}\\\\u{1F647}\\\\u{1F351}\\\\u2744\\\\u{1F334}\\\\u{1F4A3}\\\\u{1F438}\\\\u{1F48C}\\\\u{1F4CD}\\\\u{1F940}\\\\u{1F922}\\\\u{1F445}\\\\u{1F4A1}\\\\u{1F4A9}\\\\u{1F450}\\\\u{1F4F8}\\\\u{1F47B}\\\\u{1F910}\\\\u{1F92E}\\\\u{1F3BC}\\\\u{1F975}\\\\u{1F6A9}\\\\u{1F34E}\\\\u{1F34A}\\\\u{1F47C}\\\\u{1F48D}\\\\u{1F4E3}\\\\u{1F942}\\\"),A7t=HHe.reduce((t,e,r)=>(t[r]=e,t),[]),T7t=HHe.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);P7t=xC({prefix:\\\"\\\\u{1F680}\\\",name:\\\"base256emoji\\\",encode:I7t,decode:R7t})});function VHe(t,e,r){e=e||[],r=r||0;for(var n=r;t>=B7t;)e[r++]=t&255|zHe,t/=128;for(;t&k7t;)e[r++]=t&255|zHe,t>>>=7;return e[r]=t|0,VHe.bytes=r-n+1,e}function Soe(t,n){var r=0,n=n||0,i=0,s=n,o,a=t.length;do{if(s>=a)throw Soe.bytes=0,new RangeError(\\\"Could not decode varint\\\");o=t[s++],r+=i<28?(o&$He)<<i:(o&$He)*Math.pow(2,i),i+=7}while(o>=D7t);return Soe.bytes=s-n,r}var O7t,zHe,N7t,k7t,B7t,M7t,D7t,$He,L7t,U7t,F7t,j7t,H7t,q7t,z7t,$7t,V7t,W7t,G7t,K7t,R9,WHe=x(()=>{u();O7t=VHe,zHe=128,N7t=127,k7t=~N7t,B7t=Math.pow(2,31);M7t=Soe,D7t=128,$He=127;L7t=Math.pow(2,7),U7t=Math.pow(2,14),F7t=Math.pow(2,21),j7t=Math.pow(2,28),H7t=Math.pow(2,35),q7t=Math.pow(2,42),z7t=Math.pow(2,49),$7t=Math.pow(2,56),V7t=Math.pow(2,63),W7t=function(t){return t<L7t?1:t<U7t?2:t<F7t?3:t<j7t?4:t<H7t?5:t<q7t?6:t<z7t?7:t<$7t?8:t<V7t?9:10},G7t={encode:O7t,decode:M7t,encodingLength:W7t},K7t=G7t,R9=K7t});var P9,_C,CC,BH=x(()=>{u();WHe();P9=(t,e=0)=>[R9.decode(t,e),R9.decode.bytes],_C=(t,e,r=0)=>(R9.encode(t,e,r),e),CC=t=>R9.encodingLength(t)});var y2,GHe,KHe,SC,N9=x(()=>{u();m1();BH();y2=(t,e)=>{let r=e.byteLength,n=CC(t),i=n+CC(r),s=new Uint8Array(i+r);return _C(t,s,0),_C(r,s,n),s.set(e,i),new SC(t,r,e,s)},GHe=t=>{let e=p0(t),[r,n]=P9(e),[i,s]=P9(e.subarray(n)),o=e.subarray(n+s);if(o.byteLength!==i)throw new Error(\\\"Incorrect length\\\");return new SC(r,i,o,e)},KHe=(t,e)=>t===e?!0:t.code===e.code&&t.size===e.size&&RHe(t.bytes,e.bytes),SC=class{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}}});var Toe,Aoe,Ioe=x(()=>{u();N9();Toe=({name:t,code:e,encode:r})=>new Aoe(t,e,r),Aoe=class{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?y2(this.code,r):r.then(n=>y2(this.code,n))}else throw Error(\\\"Unknown type, must be binary type\\\")}}});var Roe={};ue(Roe,{sha256:()=>Z7t,sha512:()=>Q7t});var QHe,Z7t,Q7t,JHe=x(()=>{u();Ioe();QHe=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),Z7t=Toe({name:\\\"sha2-256\\\",code:18,encode:QHe(\\\"SHA-256\\\")}),Q7t=Toe({name:\\\"sha2-512\\\",code:19,encode:QHe(\\\"SHA-512\\\")})});var Poe={};ue(Poe,{identity:()=>X7t});var YHe,J7t,XHe,Y7t,X7t,eqe=x(()=>{u();m1();N9();YHe=0,J7t=\\\"identity\\\",XHe=p0,Y7t=t=>y2(YHe,XHe(t)),X7t={code:YHe,name:J7t,encode:XHe,digest:Y7t}});var tqe=x(()=>{u();m1()});var kan,Ban,rqe=x(()=>{u();kan=new TextEncoder,Ban=new TextDecoder});var LH,rRt,nRt,iRt,k9,sRt,nqe,iqe,MH,DH,oRt,aRt,cRt,sqe=x(()=>{u();BH();N9();Eoe();woe();m1();LH=class t{constructor(e,r,n,i){this.code=r,this.version=e,this.multihash=n,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:DH,byteLength:DH,code:MH,version:MH,multihash:MH,bytes:MH,_baseCache:DH,asCID:DH})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:r}=this;if(e!==k9)throw new Error(\\\"Cannot convert a non dag-pb CID to CIDv0\\\");if(r.code!==sRt)throw new Error(\\\"Cannot convert non sha2-256 multihash CID to CIDv0\\\");return t.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:r}=this.multihash,n=y2(e,r);return t.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&KHe(this.multihash,e.multihash)}toString(e){let{bytes:r,version:n,_baseCache:i}=this;return n===0?nRt(r,i,e||Jp.encoder):iRt(r,i,e||EC.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return\\\"CID\\\"}[Symbol.for(\\\"nodejs.util.inspect.custom\\\")](){return\\\"CID(\\\"+this.toString()+\\\")\\\"}static isCID(e){return aRt(/^0\\\\.0/,cRt),!!(e&&(e[iqe]||e.asCID===e))}get toBaseEncodedString(){throw new Error(\\\"Deprecated, use .toString()\\\")}get codec(){throw new Error('\\\"codec\\\" property is deprecated, use integer \\\"code\\\" property instead')}get buffer(){throw new Error(\\\"Deprecated .buffer property, use .bytes to get Uint8Array instead\\\")}get multibaseName(){throw new Error('\\\"multibaseName\\\" property is deprecated')}get prefix(){throw new Error('\\\"prefix\\\" property is deprecated')}static asCID(e){if(e instanceof t)return e;if(e!=null&&e.asCID===e){let{version:r,code:n,multihash:i,bytes:s}=e;return new t(r,n,i,s||nqe(r,n,i.bytes))}else if(e!=null&&e[iqe]===!0){let{version:r,multihash:n,code:i}=e,s=GHe(n);return t.create(r,i,s)}else return null}static create(e,r,n){if(typeof r!=\\\"number\\\")throw new Error(\\\"String codecs are no longer supported\\\");switch(e){case 0:{if(r!==k9)throw new Error(`Version 0 CID must use dag-pb (code: ${k9}) block encoding`);return new t(e,r,n,n.bytes)}case 1:{let i=nqe(e,r,n.bytes);return new t(e,r,n,i)}default:throw new Error(\\\"Invalid version\\\")}}static createV0(e){return t.create(0,k9,e)}static createV1(e,r){return t.create(1,e,r)}static decode(e){let[r,n]=t.decodeFirst(e);if(n.length)throw new Error(\\\"Incorrect length\\\");return r}static decodeFirst(e){let r=t.inspectBytes(e),n=r.size-r.multihashSize,i=p0(e.subarray(n,n+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error(\\\"Incorrect length\\\");let s=i.subarray(r.multihashSize-r.digestSize),o=new SC(r.multihashCode,r.digestSize,s,i);return[r.version===0?t.createV0(o):t.createV1(r.codec,o),e.subarray(r.size)]}static inspectBytes(e){let r=0,n=()=>{let[f,p]=P9(e.subarray(r));return r+=p,f},i=n(),s=k9;if(i===18?(i=0,r=0):i===1&&(s=n()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let o=r,a=n(),c=n(),l=r+c,d=l-o;return{version:i,codec:s,multihashCode:a,digestSize:c,multihashSize:d,size:l}}static parse(e,r){let[n,i]=rRt(e,r),s=t.decode(i);return s._baseCache.set(n,e),s}},rRt=(t,e)=>{switch(t[0]){case\\\"Q\\\":{let r=e||Jp;return[Jp.prefix,r.decode(`${Jp.prefix}${t}`)]}case Jp.prefix:{let r=e||Jp;return[Jp.prefix,r.decode(t)]}case EC.prefix:{let r=e||EC;return[EC.prefix,r.decode(t)]}default:{if(e==null)throw Error(\\\"To parse non base32 or base58btc encoded CID multibase decoder must be provided\\\");return[t[0],e.decode(t)]}}},nRt=(t,e,r)=>{let{prefix:n}=r;if(n!==Jp.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=e.get(n);if(i==null){let s=r.encode(t).slice(1);return e.set(n,s),s}else return i},iRt=(t,e,r)=>{let{prefix:n}=r,i=e.get(n);if(i==null){let s=r.encode(t);return e.set(n,s),s}else return i},k9=112,sRt=18,nqe=(t,e,r)=>{let n=CC(t),i=n+CC(e),s=new Uint8Array(i+r.byteLength);return _C(t,s,0),_C(e,s,n),s.set(r,i),s},iqe=Symbol.for(\\\"@ipld/js-cid/CID\\\"),MH={writable:!1,configurable:!1,enumerable:!0},DH={writable:!1,enumerable:!1,configurable:!1},oRt=\\\"0.0.0-dev\\\",aRt=(t,e)=>{if(t.test(oRt))console.warn(e);else throw new Error(e)},cRt=`CID.isCID(v) is deprecated and will be removed in the next major release.\\nFollowing code pattern:\\n\\nif (CID.isCID(value)) {\\n  doSomethingWithCID(value)\\n}\\n\\nIs replaced with:\\n\\nconst cid = CID.asCID(value)\\nif (cid) {\\n  // Make sure to use cid instead of value\\n  doSomethingWithCID(cid)\\n}\\n`});var oqe=x(()=>{u();sqe();BH();m1();Ioe();N9()});var Ooe,Van,aqe=x(()=>{u();BHe();MHe();DHe();LHe();UHe();woe();FHe();Eoe();jHe();qHe();JHe();eqe();tqe();rqe();oqe();Ooe={...poe,...hoe,...moe,...goe,...yoe,...boe,...voe,...xoe,..._oe,...Coe},Van={...Roe,...Poe}});function lqe(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}var cqe,Noe,lRt,UH,koe=x(()=>{u();aqe();NH();cqe=lqe(\\\"utf8\\\",\\\"u\\\",t=>\\\"u\\\"+new TextDecoder(\\\"utf8\\\").decode(t),t=>new TextEncoder().encode(t.substring(1))),Noe=lqe(\\\"ascii\\\",\\\"a\\\",t=>{let e=\\\"a\\\";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=I9(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),lRt={utf8:cqe,\\\"utf-8\\\":cqe,hex:Ooe.base16,latin1:Noe,ascii:Noe,binary:Noe,...Ooe},UH=lRt});function pn(t,e=\\\"utf8\\\"){let r=UH[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t,\\\"utf8\\\"):r.decoder.decode(`${r.prefix}${t}`)}var uqe=x(()=>{u();koe()});function yr(t,e=\\\"utf8\\\"){let r=UH[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString(\\\"utf8\\\"):r.encoder.encode(t).substring(1)}var dqe=x(()=>{u();koe()});var fqe=x(()=>{u();NH()});var B9=x(()=>{u();CHe();SHe();AHe();uqe();dqe();fqe()});var FH,Boe=x(()=>{u();FH={waku:{publish:\\\"waku_publish\\\",batchPublish:\\\"waku_batchPublish\\\",subscribe:\\\"waku_subscribe\\\",batchSubscribe:\\\"waku_batchSubscribe\\\",subscription:\\\"waku_subscription\\\",unsubscribe:\\\"waku_unsubscribe\\\",batchUnsubscribe:\\\"waku_batchUnsubscribe\\\",batchFetchMessages:\\\"waku_batchFetchMessages\\\"},irn:{publish:\\\"irn_publish\\\",batchPublish:\\\"irn_batchPublish\\\",subscribe:\\\"irn_subscribe\\\",batchSubscribe:\\\"irn_batchSubscribe\\\",subscription:\\\"irn_subscription\\\",unsubscribe:\\\"irn_unsubscribe\\\",batchUnsubscribe:\\\"irn_batchUnsubscribe\\\",batchFetchMessages:\\\"irn_batchFetchMessages\\\"},iridium:{publish:\\\"iridium_publish\\\",batchPublish:\\\"iridium_batchPublish\\\",subscribe:\\\"iridium_subscribe\\\",batchSubscribe:\\\"iridium_batchSubscribe\\\",subscription:\\\"iridium_subscription\\\",unsubscribe:\\\"iridium_unsubscribe\\\",batchUnsubscribe:\\\"iridium_batchUnsubscribe\\\",batchFetchMessages:\\\"iridium_batchFetchMessages\\\"}}});var dce={};ue(dce,{BASE10:()=>Nae,BASE16:()=>Ko,BASE64:()=>Vc,BASE64URL:()=>nh,COLON:()=>xRt,DEFAULT_DEPTH:()=>lae,EMPTY_SPACE:()=>zH,ENV_MAP:()=>ic,INTERNAL_ERRORS:()=>r$e,MemoryStore:()=>v0,ONE_THOUSAND:()=>ERt,REACT_NATIVE_PRODUCT:()=>Zqe,RELAYER_DEFAULT_PROTOCOL:()=>Wze,SDK_ERRORS:()=>t$e,SDK_TYPE:()=>Jqe,SLASH:()=>Qqe,TYPE_0:()=>kae,TYPE_1:()=>nd,TYPE_2:()=>_2,UTF8:()=>HC,addResourceToRecap:()=>Sze,appendToQueryString:()=>Yqe,assertType:()=>SRt,assignAbilityToActions:()=>Sae,base64Decode:()=>_ze,base64Encode:()=>Eze,buildApprovedNamespaces:()=>kOt,buildAuthObject:()=>sPt,buildNamespacesFromAuth:()=>hq,buildRecapStatement:()=>Tze,calcExpiry:()=>rs,capitalize:()=>RRt,capitalizeWord:()=>nze,createDelayedPromise:()=>th,createEncodedRecap:()=>Aae,createExpiringPromise:()=>rh,createRecap:()=>Cze,decodeRecap:()=>x1,decodeTypeByte:()=>w0,decodeTypeTwoEnvelope:()=>Hae,decrypt:()=>Fae,deriveSymKey:()=>Dae,deserialize:()=>S2,encodeRecap:()=>tq,encodeTypeByte:()=>Lae,encodeTypeTwoEnvelope:()=>jae,encrypt:()=>Uae,engineEvent:()=>br,enumify:()=>IRt,extractSolanaTransactionId:()=>_ae,formatAccountId:()=>Vqe,formatAccountWithChain:()=>uRt,formatChainId:()=>$qe,formatDeeplinkUrl:()=>ize,formatExpirerTarget:()=>hae,formatIdTarget:()=>gae,formatMessage:()=>eq,formatMessageContext:()=>ARt,formatRelayParams:()=>Zze,formatRelayRpcUrl:()=>pae,formatStatementFromRecap:()=>Rae,formatTopicTarget:()=>mae,formatUA:()=>ZH,formatUri:()=>pq,fromBase64:()=>wae,generateKeyPair:()=>Mae,generateRandomBytes32:()=>Q9,getAccountsChains:()=>T2,getAccountsFromNamespaces:()=>fRt,getAddressFromAccount:()=>Wqe,getAddressesFromAccounts:()=>dRt,getAppId:()=>GH,getAppMetadata:()=>KH,getBrowserOnlineStatus:()=>l$e,getChainFromAccount:()=>Gqe,getChainsFromAccounts:()=>Kqe,getChainsFromNamespace:()=>WH,getChainsFromNamespaces:()=>pRt,getChainsFromRecap:()=>nq,getChainsFromRequiredNamespaces:()=>hRt,getCommonValuesInArrays:()=>Woe,getCryptoKeyFromKeyData:()=>Vze,getDecodedRecapFromResources:()=>wze,getDeepLink:()=>bae,getDidAddress:()=>FC,getDidAddressSegments:()=>YH,getDidChainId:()=>bze,getEnvironment:()=>E2,getHttpUrl:()=>CRt,getInternalError:()=>Ce,getJavascriptID:()=>eze,getJavascriptOS:()=>Xqe,getLastItems:()=>rze,getLinkModeURL:()=>zC,getMethodsFromRecap:()=>rq,getNamespacedDidChainId:()=>G9,getNamespacesChains:()=>Qze,getNamespacesEventsForChainId:()=>Yze,getNamespacesFromAccounts:()=>e$e,getNamespacesMethodsForChainId:()=>Jze,getNodeOnlineStatus:()=>d$e,getReCapActions:()=>xze,getReactNativeOnlineStatus:()=>u$e,getRecapAbilitiesFromResource:()=>cPt,getRecapFromResources:()=>_1,getRecapResource:()=>vze,getRelayClientMetadata:()=>_Rt,getRelayProtocolApi:()=>A2,getRelayProtocolName:()=>qC,getRequiredNamespacesFromNamespaces:()=>NOt,getSdkError:()=>Kr,getSearchParamFromURL:()=>QH,getUniqueValues:()=>cae,handleDeeplinkRedirect:()=>yae,hasOverlap:()=>w1,hashEthereumMessage:()=>Eae,hashKey:()=>C2,hashMessage:()=>Dl,isAndroid:()=>uae,isAppVisible:()=>uce,isBrowser:()=>E1,isCaipNamespace:()=>Vae,isConformingNamespaces:()=>J9,isExpired:()=>mf,isIframe:()=>aze,isIos:()=>dae,isNode:()=>DC,isOnline:()=>bq,isProposalStruct:()=>Zae,isReactNative:()=>eh,isRecap:()=>Tae,isSessionCompatible:()=>Gae,isSessionStruct:()=>Qae,isTelegram:()=>oze,isTestRun:()=>LC,isTypeOneEnvelope:()=>uq,isTypeTwoEnvelope:()=>dq,isUndefined:()=>Os,isValidAccountId:()=>n$e,isValidAccounts:()=>o$e,isValidActions:()=>c$e,isValidArray:()=>I2,isValidChainId:()=>q9,isValidChains:()=>i$e,isValidController:()=>Jae,isValidEip1271Signature:()=>gze,isValidEip191Signature:()=>mze,isValidErrorReason:()=>rce,isValidEvent:()=>sce,isValidId:()=>tce,isValidNamespaceAccounts:()=>a$e,isValidNamespaceActions:()=>Yae,isValidNamespaceChains:()=>s$e,isValidNamespaceMethodsOrEvents:()=>oae,isValidNamespaces:()=>$C,isValidNamespacesChainId:()=>yq,isValidNamespacesEvent:()=>ace,isValidNamespacesRequest:()=>oce,isValidNumber:()=>mq,isValidObject:()=>R2,isValidParams:()=>Zo,isValidRecap:()=>Xp,isValidRelay:()=>gq,isValidRelays:()=>ece,isValidRequest:()=>nce,isValidRequestExpiry:()=>cce,isValidRequiredNamespaces:()=>Xae,isValidResponse:()=>ice,isValidString:()=>Fi,isValidUrl:()=>Kae,mapEntries:()=>TRt,mapToObj:()=>z9,mergeArrays:()=>td,mergeEncodedRecaps:()=>Iae,mergeRecaps:()=>Aze,mergeRequiredAndOptionalNamespaces:()=>Wae,normalizeNamespaces:()=>H9,objToMap:()=>$9,openDeeplink:()=>sze,parseAccountId:()=>aae,parseChainId:()=>x2,parseContextNames:()=>tze,parseExpirerTarget:()=>V9,parseNamespaceKey:()=>Xze,parseRelayParams:()=>Gze,parseTopic:()=>Kze,parseUri:()=>fq,populateAppMetadata:()=>fae,populateAuthPayload:()=>oPt,recapHasResource:()=>aPt,serialize:()=>qae,sleep:()=>vae,subscribeToBrowserNetworkChange:()=>f$e,subscribeToNetworkChange:()=>lce,subscribeToReactNativeNetworkChange:()=>p$e,toBase64:()=>cze,uuidv4:()=>JH,validateDecoding:()=>zae,validateEncoding:()=>lq,validateSignedCacao:()=>XH,verifyP256Jwt:()=>$ae,verifySignature:()=>hze});function x2(t){let[e,r]=t.split(VH);return{namespace:e,reference:r}}function $qe(t){let{namespace:e,reference:r}=t;return[e,r].join(VH)}function aae(t){let[e,r,n]=t.split(VH);return{namespace:e,reference:r,address:n}}function Vqe(t){let{namespace:e,reference:r,address:n}=t;return[e,r,n].join(VH)}function cae(t,e){let r=[];return t.forEach(n=>{let i=e(n);r.includes(i)||r.push(i)}),r}function Wqe(t){let{address:e}=aae(t);return e}function Gqe(t){let{namespace:e,reference:r}=aae(t);return $qe({namespace:e,reference:r})}function uRt(t,e){let{namespace:r,reference:n}=x2(e);return Vqe({namespace:r,reference:n,address:t})}function dRt(t){return cae(t,Wqe)}function Kqe(t){return cae(t,Gqe)}function fRt(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...i.accounts)}),r}function pRt(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...Kqe(i.accounts))}),r}function hRt(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...WH(n,i))}),r}function WH(t,e){return t.includes(\\\":\\\")?[t]:e.chains||[]}function DC(){return typeof process<\\\"u\\\"&&typeof process.versions<\\\"u\\\"&&typeof process.versions.node<\\\"u\\\"}function eh(){return!(0,rd.getDocument)()&&!!(0,rd.getNavigator)()&&navigator.product===Zqe}function uae(){return eh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"&&globalThis?.Platform.OS===\\\"android\\\"}function dae(){return eh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"&&globalThis?.Platform.OS===\\\"ios\\\"}function E1(){return!DC()&&!!(0,rd.getNavigator)()&&!!(0,rd.getDocument)()}function E2(){return eh()?ic.reactNative:DC()?ic.node:E1()?ic.browser:ic.unknown}function GH(){var t;try{return eh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Application<\\\"u\\\"?(t=globalThis.Application)==null?void 0:t.applicationId:void 0}catch{return}}function Yqe(t,e){let r=new URLSearchParams(t);for(let n of Object.keys(e).sort())if(e.hasOwnProperty(n)){let i=e[n];i!==void 0&&r.set(n,i)}return r.toString()}function fae(t){var e,r;let n=KH();try{return t!=null&&t.url&&n.url&&new URL(t.url).host!==new URL(n.url).host&&(console.warn(`The configured WalletConnect 'metadata.url':${t.url} differs from the actual page url:${n.url}. This is probably unintended and can lead to issues.`),t.url=n.url),(e=t?.icons)!=null&&e.length&&t.icons.length>0&&(t.icons=t.icons.filter(i=>i!==\\\"\\\")),vRt(mqe(mqe({},n),t),{url:t?.url||n.url,name:t?.name||n.name,description:t?.description||n.description,icons:(r=t?.icons)!=null&&r.length&&t.icons.length>0?t.icons:n.icons})}catch(i){return console.warn(\\\"Error populating app metadata\\\",i),t||n}}function KH(){return(0,zqe.getWindowMetadata)()||{name:\\\"\\\",description:\\\"\\\",url:\\\"\\\",icons:[\\\"\\\"]}}function _Rt(t,e){var r;let n=E2(),i={protocol:t,version:e,env:n};return n===\\\"browser\\\"&&(i.host=((r=(0,rd.getLocation)())==null?void 0:r.host)||\\\"unknown\\\"),i}function Xqe(){if(E2()===ic.reactNative&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"){let{OS:r,Version:n}=globalThis.Platform;return[r,n].join(\\\"-\\\")}let t=dH();if(t===null)return\\\"unknown\\\";let e=t.os?t.os.replace(\\\" \\\",\\\"\\\").toLowerCase():\\\"unknown\\\";return t.type===\\\"browser\\\"?[e,t.name,t.version].join(\\\"-\\\"):[e,t.version].join(\\\"-\\\")}function eze(){var t;let e=E2();return e===ic.browser?[e,((t=(0,rd.getLocation)())==null?void 0:t.host)||\\\"unknown\\\"].join(\\\":\\\"):e}function ZH(t,e,r){let n=Xqe(),i=eze();return[[t,e].join(\\\"-\\\"),[Jqe,r].join(\\\"-\\\"),n,i].join(\\\"/\\\")}function pae({protocol:t,version:e,relayUrl:r,sdkVersion:n,auth:i,projectId:s,useOnCloseEvent:o,bundleId:a,packageName:c}){let l=r.split(\\\"?\\\"),d=ZH(t,e,n),f={auth:i,ua:d,projectId:s,useOnCloseEvent:o||void 0,packageName:c||void 0,bundleId:a||void 0},p=Yqe(l[1]||\\\"\\\",f);return l[0]+\\\"?\\\"+p}function CRt(t){let e=(t.match(/^[^:]+(?=:\\\\/\\\\/)/gi)||[])[0],r=typeof e<\\\"u\\\"?t.split(\\\"://\\\")[1]:t;return e=e===\\\"wss\\\"?\\\"https\\\":\\\"http\\\",[e,r].join(\\\"://\\\")}function SRt(t,e,r){if(!t[e]||typeof t[e]!==r)throw new Error(`Missing or invalid \\\"${e}\\\" param`)}function tze(t,e=lae){return rze(t.split(Qqe),e)}function ARt(t){return tze(t).join(zH)}function w1(t,e){return t.filter(r=>e.includes(r)).length===t.length}function rze(t,e=lae){return t.slice(Math.max(t.length-e,0))}function z9(t){return Object.fromEntries(t.entries())}function $9(t){return new Map(Object.entries(t))}function TRt(t,e){let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}function nze(t){return t.trim().replace(/^\\\\w/,e=>e.toUpperCase())}function RRt(t){return t.split(zH).map(e=>nze(e)).join(zH)}function th(t=b0.FIVE_MINUTES,e){let r=(0,b0.toMiliseconds)(t||b0.FIVE_MINUTES),n,i,s,o;return{resolve:a=>{s&&n&&(clearTimeout(s),n(a),o=Promise.resolve(a))},reject:a=>{s&&i&&(clearTimeout(s),i(a))},done:()=>new Promise((a,c)=>{if(o)return a(o);s=setTimeout(()=>{let l=new Error(e);o=Promise.reject(l),c(l)},r),n=a,i=c})}}function rh(t,e,r){return new Promise(async(n,i)=>{let s=setTimeout(()=>i(new Error(r)),e);try{let o=await t;n(o)}catch(o){i(o)}clearTimeout(s)})}function hae(t,e){if(typeof e==\\\"string\\\"&&e.startsWith(`${t}:`))return e;if(t.toLowerCase()===\\\"topic\\\"){if(typeof e!=\\\"string\\\")throw new Error('Value must be \\\"string\\\" for expirer target type: topic');return`topic:${e}`}else if(t.toLowerCase()===\\\"id\\\"){if(typeof e!=\\\"number\\\")throw new Error('Value must be \\\"number\\\" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function mae(t){return hae(\\\"topic\\\",t)}function gae(t){return hae(\\\"id\\\",t)}function V9(t){let[e,r]=t.split(\\\":\\\"),n={id:void 0,topic:void 0};if(e===\\\"topic\\\"&&typeof r==\\\"string\\\")n.topic=r;else if(e===\\\"id\\\"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);return n}function rs(t,e){return(0,b0.fromMiliseconds)((e||Date.now())+(0,b0.toMiliseconds)(t))}function mf(t){return Date.now()>=(0,b0.toMiliseconds)(t)}function br(t,e){return`${t}${e?`:${e}`:\\\"\\\"}`}function td(t=[],e=[]){return[...new Set([...t,...e])]}async function yae({id:t,topic:e,wcDeepLink:r}){var n;try{if(!r)return;let i=typeof r==\\\"string\\\"?JSON.parse(r):r,s=i?.href;if(typeof s!=\\\"string\\\")return;let o=ize(s,t,e),a=E2();if(a===ic.browser){if(!((n=(0,rd.getDocument)())!=null&&n.hasFocus())){console.warn(\\\"Document does not have focus, skipping deeplink.\\\");return}sze(o)}else a===ic.reactNative&&typeof globalThis?.Linking<\\\"u\\\"&&await globalThis.Linking.openURL(o)}catch(i){console.error(i)}}function ize(t,e,r){let n=`requestId=${e}&sessionTopic=${r}`;t.endsWith(\\\"/\\\")&&(t=t.slice(0,-1));let i=`${t}`;if(t.startsWith(\\\"https://t.me\\\")){let s=t.includes(\\\"?\\\")?\\\"&startapp=\\\":\\\"?startapp=\\\";i=`${i}${s}${cze(n,!0)}`}else i=`${i}/wc?${n}`;return i}function sze(t){let e=\\\"_self\\\";aze()?e=\\\"_top\\\":(oze()||t.startsWith(\\\"https://\\\")||t.startsWith(\\\"http://\\\"))&&(e=\\\"_blank\\\"),window.open(t,e,\\\"noreferrer noopener\\\")}async function bae(t,e){let r=\\\"\\\";try{if(E1()&&(r=localStorage.getItem(e),r))return r;r=await t.getItem(e)}catch(n){console.error(n)}return r}function Woe(t,e){return t.filter(r=>e.includes(r))}function QH(t,e){if(!t.includes(e))return null;let r=t.split(/([&,?,=])/),n=r.indexOf(e);return r[n+2]}function JH(){return typeof crypto<\\\"u\\\"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():\\\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\\\".replace(/[xy]/gu,t=>{let e=Math.random()*16|0;return(t===\\\"x\\\"?e:e&3|8).toString(16)})}function LC(){return typeof process<\\\"u\\\"&&process.env.IS_VITEST===\\\"true\\\"}function oze(){return typeof window<\\\"u\\\"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function aze(){try{return window.self!==window.top}catch{return!1}}function cze(t,e=!1){let r=globalThis.Buffer.from(t).toString(\\\"base64\\\");return e?r.replace(/[=]/g,\\\"\\\"):r}function wae(t){return globalThis.Buffer.from(t,\\\"base64\\\").toString(\\\"utf-8\\\")}function vae(t){return new Promise(e=>setTimeout(e,t))}function L9(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\\\"positive integer expected, got \\\"+t)}function PRt(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function W9(t,...e){if(!PRt(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function xae(t){if(typeof t!=\\\"function\\\"||typeof t.create!=\\\"function\\\")throw new Error(\\\"Hash should be wrapped by utils.wrapConstructor\\\");L9(t.outputLen),L9(t.blockLen)}function RC(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function lze(t,e){W9(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function ORt(t,e=!1){return e?{h:Number(t&jH),l:Number(t>>gqe&jH)}:{h:Number(t>>gqe&jH)|0,l:Number(t&jH)|0}}function NRt(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:s,l:o}=ORt(t[i],e);[r[i],n[i]]=[s,o]}return[r,n]}function LRt(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Moe(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Yp(t,e){return t<<32-e|t>>>e}function URt(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function bqe(t){for(let e=0;e<t.length;e++)t[e]=URt(t[e])}function FRt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"utf8ToBytes expected string, got \\\"+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function PC(t){return typeof t==\\\"string\\\"&&(t=FRt(t)),W9(t),t}function jRt(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];W9(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function uze(t){let e=n=>t().update(PC(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function UC(t=32){if(AC&&typeof AC.getRandomValues==\\\"function\\\")return AC.getRandomValues(new Uint8Array(t));if(AC&&typeof AC.randomBytes==\\\"function\\\")return AC.randomBytes(t);throw new Error(\\\"crypto.getRandomValues must be defined\\\")}function KRt(t,e=24){let r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){let a=(o+8)%10,c=(o+2)%10,l=r[c],d=r[c+1],f=wqe(l,d,1)^r[a],p=vqe(l,d,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=p}let i=t[2],s=t[3];for(let o=0;o<24;o++){let a=fze[o],c=wqe(i,s,a),l=vqe(i,s,a),d=dze[o];i=t[d],s=t[d+1],t[d]=c,t[d+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=WRt[n],t[1]^=GRt[n]}r.fill(0)}function Eae(t){let e=`\\u0019Ethereum Signed Message:\\n${t.length}`,r=new TextEncoder().encode(e+t);return\\\"0x\\\"+globalThis.Buffer.from(QRt(r)).toString(\\\"hex\\\")}async function hze(t,e,r,n,i,s){switch(r.t){case\\\"eip191\\\":return await mze(t,e,r.s);case\\\"eip1271\\\":return await gze(t,e,r.s,n,i,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function mze(t,e,r){return(await ap({hash:Eae(e),signature:r})).toLowerCase()===t.toLowerCase()}async function gze(t,e,r,n,i,s){let o=x2(n);if(!o.namespace||!o.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${n}`);try{let a=\\\"0x1626ba7e\\\",c=\\\"0000000000000000000000000000000000000000000000000000000000000040\\\",l=\\\"0000000000000000000000000000000000000000000000000000000000000041\\\",d=r.substring(2),f=Eae(e).substring(2),p=a+f+c+l+d,h=await fetch(`${s||JRt}/?chainId=${n}&projectId=${i}`,{method:\\\"POST\\\",body:JSON.stringify({id:YRt(),jsonrpc:\\\"2.0\\\",method:\\\"eth_call\\\",params:[{to:t,data:p},\\\"latest\\\"]})}),{result:m}=await h.json();return m?m.slice(0,a.length).toLowerCase()===a.toLowerCase():!1}catch(a){return console.error(\\\"isValidEip1271Signature: \\\",a),!1}}function YRt(){return Date.now()+Math.floor(Math.random()*1e3)}function _ae(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);let n=r[0];if(n===0)throw new Error(\\\"No signatures found\\\");let i=1+n*64;if(r.length<i)throw new Error(\\\"Transaction data too short for claimed signature count\\\");if(r.length<100)throw new Error(\\\"Transaction too short\\\");let s=globalThis.Buffer.from(t,\\\"base64\\\").slice(1,65);return yC.encode(s)}async function XH(t){let{cacao:e,projectId:r}=t,{s:n,p:i}=e,s=eq(i,i.iss),o=FC(i.iss);return await hze(o,s,n,G9(i.iss),r)}function sPt(t,e,r){return r.includes(\\\"did:pkh:\\\")||(r=`did:pkh:${r}`),{h:{t:\\\"caip122\\\"},p:{iss:r,domain:t.domain,aud:t.aud,version:t.version,nonce:t.nonce,iat:t.iat,statement:t.statement,requestId:t.requestId,resources:t.resources,nbf:t.nbf,exp:t.exp},s:e}}function oPt(t){var e;let{authPayload:r,chains:n,methods:i}=t,s=r.statement||\\\"\\\";if(!(n!=null&&n.length))return r;let o=r.chains,a=Woe(o,n);if(!(a!=null&&a.length))throw new Error(\\\"No supported chains\\\");let c=wze(r.resources);if(!c)return r;Xp(c);let l=vze(c,\\\"eip155\\\"),d=r?.resources||[];if(l!=null&&l.length){let f=xze(l),p=Woe(f,i);if(!(p!=null&&p.length))throw new Error(`Supported methods don't satisfy the requested: ${JSON.stringify(f)}, supported: ${JSON.stringify(i)}`);let h=Sae(\\\"request\\\",p,{chains:a}),m=Sze(c,\\\"eip155\\\",h);d=((e=r?.resources)==null?void 0:e.slice(0,-1))||[],d.push(tq(m))}return yze(Cae({},r),{statement:Tze(s,_1(d)),chains:a,resources:r!=null&&r.resources||d.length>0?d:void 0})}function wze(t){let e=_1(t);if(e&&Tae(e))return x1(e)}function aPt(t,e){var r;return(r=t?.att)==null?void 0:r.hasOwnProperty(e)}function vze(t,e){var r,n;return(r=t?.att)!=null&&r[e]?Object.keys((n=t?.att)==null?void 0:n[e]):[]}function cPt(t){return t?.map(e=>Object.keys(e))||[]}function xze(t){return t?.map(e=>{var r;return(r=e.split(\\\"/\\\"))==null?void 0:r[1]})||[]}function Eze(t){return globalThis.Buffer.from(JSON.stringify(t)).toString(\\\"base64\\\")}function _ze(t){return JSON.parse(globalThis.Buffer.from(t,\\\"base64\\\").toString(\\\"utf-8\\\"))}function Xp(t){if(!t)throw new Error(\\\"No recap provided, value is undefined\\\");if(!t.att)throw new Error(\\\"No `att` property found\\\");let e=Object.keys(t.att);if(!(e!=null&&e.length))throw new Error(\\\"No resources found in `att` property\\\");e.forEach(r=>{let n=t.att[r];if(Array.isArray(n))throw new Error(`Resource must be an object: ${r}`);if(typeof n!=\\\"object\\\")throw new Error(`Resource must be an object: ${r}`);if(!Object.keys(n).length)throw new Error(`Resource object is empty: ${r}`);Object.keys(n).forEach(i=>{let s=n[i];if(!Array.isArray(s))throw new Error(`Ability limits ${i} must be an array of objects, found: ${s}`);if(!s.length)throw new Error(`Value of ${i} is empty array, must be an array with objects`);s.forEach(o=>{if(typeof o!=\\\"object\\\")throw new Error(`Ability limits (${i}) must be an array of objects, found: ${o}`)})})})}function Cze(t,e,r,n={}){return r?.sort((i,s)=>i.localeCompare(s)),{att:{[t]:Sae(e,r,n)}}}function Sze(t,e,r){var n;t.att[e]=Cae({},r);let i=(n=Object.keys(t.att))==null?void 0:n.sort((o,a)=>o.localeCompare(a)),s={att:{}};return i.reduce((o,a)=>(o.att[a]=t.att[a],o),s)}function Sae(t,e,r={}){e=e?.sort((i,s)=>i.localeCompare(s));let n=e.map(i=>({[`${t}/${i}`]:[r]}));return Object.assign({},...n)}function tq(t){return Xp(t),`urn:recap:${Eze(t).replace(/=/g,\\\"\\\")}`}function x1(t){let e=_ze(t.replace(\\\"urn:recap:\\\",\\\"\\\"));return Xp(e),e}function Aae(t,e,r){let n=Cze(t,e,r);return tq(n)}function Tae(t){return t&&t.includes(\\\"urn:recap:\\\")}function Iae(t,e){let r=x1(t),n=x1(e),i=Aze(r,n);return tq(i)}function Aze(t,e){Xp(t),Xp(e);let r=Object.keys(t.att).concat(Object.keys(e.att)).sort((i,s)=>i.localeCompare(s)),n={att:{}};return r.forEach(i=>{var s,o;Object.keys(((s=t.att)==null?void 0:s[i])||{}).concat(Object.keys(((o=e.att)==null?void 0:o[i])||{})).sort((a,c)=>a.localeCompare(c)).forEach(a=>{var c,l;n.att[i]=yze(Cae({},n.att[i]),{[a]:((c=t.att[i])==null?void 0:c[a])||((l=e.att[i])==null?void 0:l[a])})})}),n}function Rae(t=\\\"\\\",e){Xp(e);let r=\\\"I further authorize the stated URI to perform the following actions on my behalf: \\\";if(t.includes(r))return t;let n=[],i=0;Object.keys(e.att).forEach(a=>{let c=Object.keys(e.att[a]).map(f=>({ability:f.split(\\\"/\\\")[0],action:f.split(\\\"/\\\")[1]}));c.sort((f,p)=>f.action.localeCompare(p.action));let l={};c.forEach(f=>{l[f.ability]||(l[f.ability]=[]),l[f.ability].push(f.action)});let d=Object.keys(l).map(f=>(i++,`(${i}) '${f}': '${l[f].join(\\\"', '\\\")}' for '${a}'.`));n.push(d.join(\\\", \\\").replace(\\\".,\\\",\\\".\\\"))});let s=n.join(\\\" \\\"),o=`${r}${s}`;return`${t?t+\\\" \\\":\\\"\\\"}${o}`}function rq(t){var e;let r=x1(t);Xp(r);let n=(e=r.att)==null?void 0:e.eip155;return n?Object.keys(n).map(i=>i.split(\\\"/\\\")[1]):[]}function nq(t){let e=x1(t);Xp(e);let r=[];return Object.values(e.att).forEach(n=>{Object.values(n).forEach(i=>{var s;(s=i?.[0])!=null&&s.chains&&r.push(i[0].chains)})}),[...new Set(r.flat())]}function Tze(t,e){if(!e)return t;let r=x1(e);return Xp(r),Rae(t,r)}function _1(t){if(!t)return;let e=t?.[t.length-1];return Tae(e)?e:void 0}function Doe(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\\\"positive integer expected, got \\\"+t)}function Ize(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function Ml(t,...e){if(!Ize(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function _qe(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function lPt(t,e){Ml(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function Cqe(t){if(typeof t!=\\\"boolean\\\")throw new Error(`boolean expected, not ${t}`)}function fPt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function Koe(t){if(typeof t==\\\"string\\\")t=fPt(t);else if(Ize(t))t=Zoe(t);else throw new Error(\\\"Uint8Array expected, got \\\"+typeof t);return t}function pPt(t,e){if(e==null||typeof e!=\\\"object\\\")throw new Error(\\\"options must be defined\\\");return Object.assign(t,e)}function hPt(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function Sqe(t,e,r=!0){if(e===void 0)return new Uint8Array(t);if(e.length!==t)throw new Error(\\\"invalid output length, expected \\\"+t+\\\", got: \\\"+e.length);if(r&&!gPt(e))throw new Error(\\\"invalid output, must be aligned\\\");return e}function Aqe(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function gPt(t){return t.byteOffset%4===0}function Zoe(t){return Uint8Array.from(t)}function OC(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function Tr(t,e){return t<<e|t>>>32-e}function Qoe(t){return t.byteOffset%4===0}function EPt(t,e,r,n,i,s,o,a){let c=i.length,l=new Uint8Array(HH),d=v1(l),f=Qoe(i)&&Qoe(s),p=f?v1(i):Tqe,h=f?v1(s):Tqe;for(let m=0;m<c;o++){if(t(e,r,n,d,o,a),o>=Pze)throw new Error(\\\"arx: counter overflow\\\");let g=Math.min(HH,c-m);if(f&&g===HH){let w=m/4;if(m%4!==0)throw new Error(\\\"arx: invalid block position\\\");for(let v=0,b;v<xPt;v++)b=w+v,h[b]=p[b]^d[v];m+=HH;continue}for(let w=0,v;w<g;w++)v=m+w,s[v]=i[v]^l[w];m+=g}}function _Pt(t,e){let{allowShortKeys:r,extendNonceFn:n,counterLength:i,counterRight:s,rounds:o}=pPt({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if(typeof t!=\\\"function\\\")throw new Error(\\\"core must be a function\\\");return Doe(i),Doe(o),Cqe(s),Cqe(r),(a,c,l,d,f=0)=>{Ml(a),Ml(c),Ml(l);let p=l.length;if(d===void 0&&(d=new Uint8Array(p)),Ml(d),Doe(f),f<0||f>=Pze)throw new Error(\\\"arx: counter overflow\\\");if(d.length<p)throw new Error(`arx: output (${d.length}) is shorter than data (${p})`);let h=[],m=a.length,g,w;if(m===32)h.push(g=Zoe(a)),w=vPt;else if(m===16&&r)g=new Uint8Array(32),g.set(a),g.set(a,16),w=wPt,h.push(g);else throw new Error(`arx: invalid 32-byte key, got length=${m}`);Qoe(c)||h.push(c=Zoe(c));let v=v1(g);if(n){if(c.length!==24)throw new Error(\\\"arx: extended nonce must be 24 bytes\\\");n(w,v,v1(c.subarray(0,16)),v),c=c.subarray(16)}let b=16-i;if(b!==c.length)throw new Error(`arx: nonce must be ${b} or 16 bytes`);if(b!==12){let S=new Uint8Array(12);S.set(c,s?0:12-c.length),c=S,h.push(c)}let _=v1(c);return EPt(t,w,v,_,l,d,f,o),OC(...h),d}}function CPt(t){let e=(n,i)=>t(i).update(Koe(n)).digest(),r=t(new Uint8Array(32));return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function APt(t,e,r,n,i,s=20){let o=t[0],a=t[1],c=t[2],l=t[3],d=e[0],f=e[1],p=e[2],h=e[3],m=e[4],g=e[5],w=e[6],v=e[7],b=i,_=r[0],S=r[1],T=r[2],N=o,O=a,L=c,B=l,H=d,M=f,F=p,R=h,y=m,E=g,C=w,I=v,P=b,k=_,U=S,D=T;for(let j=0;j<s;j+=2)N=N+H|0,P=Tr(P^N,16),y=y+P|0,H=Tr(H^y,12),N=N+H|0,P=Tr(P^N,8),y=y+P|0,H=Tr(H^y,7),O=O+M|0,k=Tr(k^O,16),E=E+k|0,M=Tr(M^E,12),O=O+M|0,k=Tr(k^O,8),E=E+k|0,M=Tr(M^E,7),L=L+F|0,U=Tr(U^L,16),C=C+U|0,F=Tr(F^C,12),L=L+F|0,U=Tr(U^L,8),C=C+U|0,F=Tr(F^C,7),B=B+R|0,D=Tr(D^B,16),I=I+D|0,R=Tr(R^I,12),B=B+R|0,D=Tr(D^B,8),I=I+D|0,R=Tr(R^I,7),N=N+M|0,D=Tr(D^N,16),C=C+D|0,M=Tr(M^C,12),N=N+M|0,D=Tr(D^N,8),C=C+D|0,M=Tr(M^C,7),O=O+F|0,P=Tr(P^O,16),I=I+P|0,F=Tr(F^I,12),O=O+F|0,P=Tr(P^O,8),I=I+P|0,F=Tr(F^I,7),L=L+R|0,k=Tr(k^L,16),y=y+k|0,R=Tr(R^y,12),L=L+R|0,k=Tr(k^L,8),y=y+k|0,R=Tr(R^y,7),B=B+H|0,U=Tr(U^B,16),E=E+U|0,H=Tr(H^E,12),B=B+H|0,U=Tr(U^B,8),E=E+U|0,H=Tr(H^E,7);let A=0;n[A++]=o+N|0,n[A++]=a+O|0,n[A++]=c+L|0,n[A++]=l+B|0,n[A++]=d+H|0,n[A++]=f+M|0,n[A++]=p+F|0,n[A++]=h+R|0,n[A++]=m+y|0,n[A++]=g+E|0,n[A++]=w+C|0,n[A++]=v+I|0,n[A++]=b+P|0,n[A++]=_+k|0,n[A++]=S+U|0,n[A++]=T+D|0}function Rqe(t,e,r,n,i){let s=t(e,r,RPt),o=SPt.create(s);i&&Iqe(o,i),Iqe(o,n);let a=new Uint8Array(16),c=uPt(a);Aqe(c,0,BigInt(i?i.length:0),!0),Aqe(c,8,BigInt(n.length),!0),o.update(a);let l=o.digest();return OC(s,a),l}function OPt(t,e,r){return xae(t),r===void 0&&(r=new Uint8Array(t.outputLen)),iq(t,PC(r),PC(e))}function NPt(t,e,r,n=32){if(xae(t),L9(n),n>255*t.outputLen)throw new Error(\\\"Length should be <= 255*HashLen\\\");let i=Math.ceil(n/t.outputLen);r===void 0&&(r=Pqe);let s=new Uint8Array(i*t.outputLen),o=iq.create(t,e),a=o._cloneInto(),c=new Uint8Array(o.outputLen);for(let l=0;l<i;l++)Loe[0]=l+1,a.update(l===0?Pqe:c).update(r).update(Loe).digestInto(c),s.set(c,t.outputLen*l),o._cloneInto(a);return o.destroy(),a.destroy(),c.fill(0),Loe.fill(0),s.slice(0,n)}function BPt(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function MPt(t,e,r){return t&e^~t&r}function DPt(t,e,r){return t&e^t&r^e&r}function v2(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function Z9(t){if(!v2(t))throw new Error(\\\"Uint8Array expected\\\")}function NC(t,e){if(typeof e!=\\\"boolean\\\")throw new Error(t+\\\" boolean expected, got \\\"+e)}function kC(t){Z9(t);let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=FPt[t[r]];return e}function IC(t){let e=t.toString(16);return e.length&1?\\\"0\\\"+e:e}function Pae(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);return t===\\\"\\\"?sq:BigInt(\\\"0x\\\"+t)}function Oqe(t){if(t>=h0._0&&t<=h0._9)return t-h0._0;if(t>=h0.A&&t<=h0.F)return t-(h0.A-10);if(t>=h0.a&&t<=h0.f)return t-(h0.a-10)}function BC(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=Oqe(t.charCodeAt(s)),a=Oqe(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}function w2(t){return Pae(kC(t))}function F9(t){return Z9(t),Pae(kC(Uint8Array.from(t).reverse()))}function MC(t,e){return BC(t.toString(16).padStart(e*2,\\\"0\\\"))}function aq(t,e){return MC(t,e).reverse()}function jPt(t){return BC(IC(t))}function Bl(t,e,r){let n;if(typeof e==\\\"string\\\")try{n=BC(e)}catch(s){throw new Error(t+\\\" must be hex string or Uint8Array, cause: \\\"+s)}else if(v2(e))n=Uint8Array.from(e);else throw new Error(t+\\\" must be hex string or Uint8Array\\\");let i=n.length;if(typeof r==\\\"number\\\"&&i!==r)throw new Error(t+\\\" of length \\\"+r+\\\" expected, got \\\"+i);return n}function j9(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];Z9(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function HPt(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function qPt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function cq(t,e,r){return Uoe(t)&&Uoe(e)&&Uoe(r)&&e<=t&&t<r}function y0(t,e,r,n){if(!cq(e,r,n))throw new Error(\\\"expected valid \\\"+t+\\\": \\\"+r+\\\" <= n < \\\"+n+\\\", got \\\"+e)}function Nze(t){let e;for(e=0;t>sq;t>>=oq,e+=1);return e}function zPt(t,e){return t>>BigInt(e)&oq}function $Pt(t,e,r){return t|(r?oq:sq)<<BigInt(e)}function kze(t,e,r){if(typeof t!=\\\"number\\\"||t<2)throw new Error(\\\"hashLen must be a number\\\");if(typeof e!=\\\"number\\\"||e<2)throw new Error(\\\"qByteLen must be a number\\\");if(typeof r!=\\\"function\\\")throw new Error(\\\"hmacFn must be a function\\\");let n=Foe(t),i=Foe(t),s=0,o=()=>{n.fill(1),i.fill(0),s=0},a=(...d)=>r(i,n,...d),c=(d=Foe())=>{i=a(Nqe([0]),d),n=a(),d.length!==0&&(i=a(Nqe([1]),d),n=a())},l=()=>{if(s++>=1e3)throw new Error(\\\"drbg: tried 1000 values\\\");let d=0,f=[];for(;d<e;){n=a();let p=n.slice();f.push(p),d+=n.length}return j9(...f)};return(d,f)=>{o(),c(d);let p;for(;!(p=f(l()));)c();return o(),p}}function jC(t,e,r={}){let n=(i,s,o)=>{let a=VPt[s];if(typeof a!=\\\"function\\\")throw new Error(\\\"invalid validator function\\\");let c=t[i];if(!(o&&c===void 0)&&!a(c,t))throw new Error(\\\"param \\\"+String(i)+\\\" is invalid. Expected \\\"+s+\\\", got \\\"+c)};for(let[i,s]of Object.entries(e))n(i,s,!1);for(let[i,s]of Object.entries(r))n(i,s,!0);return t}function eae(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(i!==void 0)return i;let s=t(r,...n);return e.set(r,s),s}}function $c(t,e){let r=t%e;return r>=yo?r:e+r}function Bze(t,e,r){if(e<yo)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r<=yo)throw new Error(\\\"invalid modulus\\\");if(r===ps)return yo;let n=ps;for(;e>yo;)e&ps&&(n=n*t%r),t=t*t%r,e>>=ps;return n}function hf(t,e,r){let n=t;for(;e-- >yo;)n*=n,n%=r;return n}function rae(t,e){if(t===yo)throw new Error(\\\"invert: expected non-zero number\\\");if(e<=yo)throw new Error(\\\"invert: expected positive modulus, got \\\"+e);let r=$c(t,e),n=e,i=yo,s=ps;for(;r!==yo;){let o=n/r,a=n%r,c=i-s*o;n=r,r=a,i=s,s=c}if(n!==ps)throw new Error(\\\"invert: does not exist\\\");return $c(i,e)}function ZPt(t){let e=(t-ps)/b2,r,n,i;for(r=t-ps,n=0;r%b2===yo;r/=b2,n++);for(i=b2;i<t&&Bze(i,e,t)!==t-ps;i++)if(i>1e3)throw new Error(\\\"Cannot find square root: likely non-prime P\\\");if(n===1){let o=(t+ps)/tae;return function(a,c){let l=a.pow(c,o);if(!a.eql(a.sqr(l),c))throw new Error(\\\"Cannot find square root\\\");return l}}let s=(r+ps)/b2;return function(o,a){if(o.pow(a,e)===o.neg(o.ONE))throw new Error(\\\"Cannot find square root\\\");let c=n,l=o.pow(o.mul(o.ONE,i),r),d=o.pow(a,s),f=o.pow(a,r);for(;!o.eql(f,o.ONE);){if(o.eql(f,o.ZERO))return o.ZERO;let p=1;for(let m=o.sqr(f);p<c&&!o.eql(m,o.ONE);p++)m=o.sqr(m);let h=o.pow(l,ps<<BigInt(c-p-1));l=o.sqr(h),d=o.mul(d,h),f=o.mul(f,l),c=p}return d}}function QPt(t){if(t%tae===KPt){let e=(t+ps)/tae;return function(r,n){let i=r.pow(n,e);if(!r.eql(r.sqr(i),n))throw new Error(\\\"Cannot find square root\\\");return i}}if(t%Bqe===kqe){let e=(t-kqe)/Bqe;return function(r,n){let i=r.mul(n,b2),s=r.pow(i,e),o=r.mul(n,s),a=r.mul(r.mul(o,b2),s),c=r.mul(o,r.sub(a,r.ONE));if(!r.eql(r.sqr(c),n))throw new Error(\\\"Cannot find square root\\\");return c}}return ZPt(t)}function YPt(t){let e={ORDER:\\\"bigint\\\",MASK:\\\"bigint\\\",BYTES:\\\"isSafeInteger\\\",BITS:\\\"isSafeInteger\\\"},r=JPt.reduce((n,i)=>(n[i]=\\\"function\\\",n),e);return jC(t,r)}function XPt(t,e,r){if(r<yo)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r===yo)return t.ONE;if(r===ps)return e;let n=t.ONE,i=e;for(;r>yo;)r&ps&&(n=t.mul(n,i)),i=t.sqr(i),r>>=ps;return n}function eOt(t,e){let r=new Array(e.length),n=e.reduce((s,o,a)=>t.is0(o)?s:(r[a]=s,t.mul(s,o)),t.ONE),i=t.inv(n);return e.reduceRight((s,o,a)=>t.is0(o)?s:(r[a]=t.mul(s,r[a]),t.mul(s,o)),i),r}function Mze(t,e){let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Dze(t,e,r=!1,n={}){if(t<=yo)throw new Error(\\\"invalid field: expected ORDER > 0, got \\\"+t);let{nBitLength:i,nByteLength:s}=Mze(t,e);if(s>2048)throw new Error(\\\"invalid field: expected ORDER of <= 2048 bytes\\\");let o,a=Object.freeze({ORDER:t,isLE:r,BITS:i,BYTES:s,MASK:Oae(i),ZERO:yo,ONE:ps,create:c=>$c(c,t),isValid:c=>{if(typeof c!=\\\"bigint\\\")throw new Error(\\\"invalid field element: expected bigint, got \\\"+typeof c);return yo<=c&&c<t},is0:c=>c===yo,isOdd:c=>(c&ps)===ps,neg:c=>$c(-c,t),eql:(c,l)=>c===l,sqr:c=>$c(c*c,t),add:(c,l)=>$c(c+l,t),sub:(c,l)=>$c(c-l,t),mul:(c,l)=>$c(c*l,t),pow:(c,l)=>XPt(a,c,l),div:(c,l)=>$c(c*rae(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>rae(c,t),sqrt:n.sqrt||(c=>(o||(o=QPt(t)),o(a,c))),invertBatch:c=>eOt(a,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?aq(c,s):MC(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(\\\"Field.fromBytes: expected \\\"+s+\\\" bytes, got \\\"+c.length);return r?F9(c):w2(c)}});return Object.freeze(a)}function Lze(t){if(typeof t!=\\\"bigint\\\")throw new Error(\\\"field order must be bigint\\\");let e=t.toString(2).length;return Math.ceil(e/8)}function Uze(t){let e=Lze(t);return e+Math.ceil(e/2)}function tOt(t,e,r=!1){let n=t.length,i=Lze(e),s=Uze(e);if(n<16||n<s||n>1024)throw new Error(\\\"expected \\\"+s+\\\"-1024 bytes of input, got \\\"+n);let o=r?F9(t):w2(t),a=$c(o,e-ps)+ps;return r?aq(a,i):MC(a,i)}function joe(t,e){let r=e.negate();return t?r:e}function Fze(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\\\"invalid window size, expected [1..\\\"+e+\\\"], got W=\\\"+t)}function Hoe(t,e){Fze(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1);return{windows:r,windowSize:n}}function rOt(t,e){if(!Array.isArray(t))throw new Error(\\\"array expected\\\");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error(\\\"invalid point at index \\\"+n)})}function nOt(t,e){if(!Array.isArray(t))throw new Error(\\\"array of scalars expected\\\");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error(\\\"invalid scalar at index \\\"+n)})}function zoe(t){return jze.get(t)||1}function iOt(t,e){return{constTimeNegate:joe,hasPrecomputes(r){return zoe(r)!==1},unsafeLadder(r,n,i=t.ZERO){let s=r;for(;n>Mqe;)n&qH&&(i=i.add(s)),s=s.double(),n>>=qH;return i},precomputeWindow(r,n){let{windows:i,windowSize:s}=Hoe(n,e),o=[],a=r,c=a;for(let l=0;l<i;l++){c=a,o.push(c);for(let d=1;d<s;d++)c=c.add(a),o.push(c);a=c.double()}return o},wNAF(r,n,i){let{windows:s,windowSize:o}=Hoe(r,e),a=t.ZERO,c=t.BASE,l=BigInt(2**r-1),d=2**r,f=BigInt(r);for(let p=0;p<s;p++){let h=p*o,m=Number(i&l);i>>=f,m>o&&(m-=d,i+=qH);let g=h,w=h+Math.abs(m)-1,v=p%2!==0,b=m<0;m===0?c=c.add(joe(v,n[g])):a=a.add(joe(b,n[w]))}return{p:a,f:c}},wNAFUnsafe(r,n,i,s=t.ZERO){let{windows:o,windowSize:a}=Hoe(r,e),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let f=0;f<o;f++){let p=f*a;if(i===Mqe)break;let h=Number(i&c);if(i>>=d,h>a&&(h-=l,i+=qH),h===0)continue;let m=n[p+Math.abs(h)-1];h<0&&(m=m.negate()),s=s.add(m)}return s},getPrecomputes(r,n,i){let s=qoe.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&qoe.set(n,i(s))),s},wNAFCached(r,n,i){let s=zoe(r);return this.wNAF(s,this.getPrecomputes(s,r,i),n)},wNAFCachedUnsafe(r,n,i,s){let o=zoe(r);return o===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(o,this.getPrecomputes(o,r,i),n,s)},setWindowSize(r,n){Fze(n,e),jze.set(r,n),qoe.delete(r)}}}function sOt(t,e,r,n){if(rOt(r,t),nOt(n,e),r.length!==n.length)throw new Error(\\\"arrays of points and scalars must have equal length\\\");let i=t.ZERO,s=Nze(BigInt(r.length)),o=s>12?s-3:s>4?s-2:s?2:1,a=(1<<o)-1,c=new Array(a+1).fill(i),l=Math.floor((e.BITS-1)/o)*o,d=i;for(let f=l;f>=0;f-=o){c.fill(i);for(let h=0;h<n.length;h++){let m=n[h],g=Number(m>>BigInt(f)&BigInt(a));c[g]=c[g].add(r[h])}let p=i;for(let h=c.length-1,m=i;h>0;h--)m=m.add(c[h]),p=p.add(m);if(d=d.add(p),f!==0)for(let h=0;h<o;h++)d=d.double()}return d}function Hze(t){return YPt(t.Fp),jC(t,{n:\\\"bigint\\\",h:\\\"bigint\\\",Gx:\\\"field\\\",Gy:\\\"field\\\"},{nBitLength:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\"}),Object.freeze({...Mze(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function oOt(t){return jC(t,{a:\\\"bigint\\\"},{montgomeryBits:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\",adjustScalarBytes:\\\"function\\\",domain:\\\"function\\\",powPminus2:\\\"function\\\",Gu:\\\"bigint\\\"}),Object.freeze({...t})}function aOt(t){let e=oOt(t),{P:r}=e,n=b=>$c(b,r),i=e.montgomeryBits,s=Math.ceil(i/8),o=e.nByteLength,a=e.adjustScalarBytes||(b=>b),c=e.powPminus2||(b=>Bze(b,r-BigInt(2),r));function l(b,_,S){let T=n(b*(_-S));return _=n(_-T),S=n(S+T),[_,S]}let d=(e.a-BigInt(2))/BigInt(4);function f(b,_){y0(\\\"u\\\",b,TC,r),y0(\\\"scalar\\\",_,TC,r);let S=_,T=b,N=$oe,O=TC,L=b,B=$oe,H=TC,M;for(let R=BigInt(i-1);R>=TC;R--){let y=S>>R&$oe;H^=y,M=l(H,N,L),N=M[0],L=M[1],M=l(H,O,B),O=M[0],B=M[1],H=y;let E=N+O,C=n(E*E),I=N-O,P=n(I*I),k=C-P,U=L+B,D=L-B,A=n(D*E),j=n(U*I),K=A+j,J=A-j;L=n(K*K),B=n(T*n(J*J)),N=n(C*P),O=n(k*(C+n(d*k)))}M=l(H,N,L),N=M[0],L=M[1],M=l(H,O,B),O=M[0],B=M[1];let F=c(O);return n(N*F)}function p(b){return aq(n(b),s)}function h(b){let _=Bl(\\\"u coordinate\\\",b,s);return o===32&&(_[31]&=127),F9(_)}function m(b){let _=Bl(\\\"scalar\\\",b),S=_.length;if(S!==s&&S!==o){let T=\\\"\\\"+s+\\\" or \\\"+o;throw new Error(\\\"invalid scalar, expected \\\"+T+\\\" bytes, got \\\"+S)}return F9(a(_))}function g(b,_){let S=h(_),T=m(b),N=f(S,T);if(N===TC)throw new Error(\\\"invalid private or public key received\\\");return p(N)}let w=p(e.Gu);function v(b){return g(b,w)}return{scalarMult:g,scalarMultBase:v,getSharedSecret:(b,_)=>g(b,_),getPublicKey:b=>v(b),utils:{randomPrivateKey:()=>e.randomBytes(e.nByteLength)},GuBytes:w}}function dOt(t){let e=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),s=nae,o=t*t%s*t%s,a=hf(o,Dqe,s)*o%s,c=hf(a,cOt,s)*t%s,l=hf(c,uOt,s)*c%s,d=hf(l,e,s)*l%s,f=hf(d,r,s)*d%s,p=hf(f,n,s)*f%s,h=hf(p,i,s)*p%s,m=hf(h,i,s)*p%s,g=hf(m,e,s)*l%s;return{pow_p_5_8:hf(g,Dqe,s)*t%s,b2:o}}function fOt(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function Lqe(t){t.lowS!==void 0&&NC(\\\"lowS\\\",t.lowS),t.prehash!==void 0&&NC(\\\"prehash\\\",t.prehash)}function pOt(t){let e=Hze(t);jC(e,{a:\\\"field\\\",b:\\\"field\\\"},{allowedPrivateKeyLengths:\\\"array\\\",wrapPrivateKey:\\\"boolean\\\",isTorsionFree:\\\"function\\\",clearCofactor:\\\"function\\\",allowInfinityPoint:\\\"boolean\\\",fromBytes:\\\"function\\\",toBytes:\\\"function\\\"});let{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw new Error(\\\"invalid endomorphism, can only be defined for Koblitz curves that have a=0\\\");if(typeof r!=\\\"object\\\"||typeof r.beta!=\\\"bigint\\\"||typeof r.splitScalar!=\\\"function\\\")throw new Error(\\\"invalid endomorphism, expected beta: bigint and splitScalar: function\\\")}return Object.freeze({...e})}function gOt(t){let e=pOt(t),{Fp:r}=e,n=Dze(e.n,e.nBitLength),i=e.toBytes||((g,w,v)=>{let b=w.toAffine();return j9(Uint8Array.from([4]),r.toBytes(b.x),r.toBytes(b.y))}),s=e.fromBytes||(g=>{let w=g.subarray(1),v=r.fromBytes(w.subarray(0,r.BYTES)),b=r.fromBytes(w.subarray(r.BYTES,2*r.BYTES));return{x:v,y:b}});function o(g){let{a:w,b:v}=e,b=r.sqr(g),_=r.mul(b,g);return r.add(r.add(_,r.mul(g,w)),v)}if(!r.eql(r.sqr(e.Gy),o(e.Gx)))throw new Error(\\\"bad generator point: equation left != right\\\");function a(g){return cq(g,go,e.n)}function c(g){let{allowedPrivateKeyLengths:w,nByteLength:v,wrapPrivateKey:b,n:_}=e;if(w&&typeof g!=\\\"bigint\\\"){if(v2(g)&&(g=kC(g)),typeof g!=\\\"string\\\"||!w.includes(g.length))throw new Error(\\\"invalid private key\\\");g=g.padStart(v*2,\\\"0\\\")}let S;try{S=typeof g==\\\"bigint\\\"?g:w2(Bl(\\\"private key\\\",g,v))}catch{throw new Error(\\\"invalid private key, expected hex or \\\"+v+\\\" bytes, got \\\"+typeof g)}return b&&(S=$c(S,_)),y0(\\\"private key\\\",S,go,_),S}function l(g){if(!(g instanceof p))throw new Error(\\\"ProjectivePoint expected\\\")}let d=eae((g,w)=>{let{px:v,py:b,pz:_}=g;if(r.eql(_,r.ONE))return{x:v,y:b};let S=g.is0();w==null&&(w=S?r.ONE:r.inv(_));let T=r.mul(v,w),N=r.mul(b,w),O=r.mul(_,w);if(S)return{x:r.ZERO,y:r.ZERO};if(!r.eql(O,r.ONE))throw new Error(\\\"invZ was invalid\\\");return{x:T,y:N}}),f=eae(g=>{if(g.is0()){if(e.allowInfinityPoint&&!r.is0(g.py))return;throw new Error(\\\"bad point: ZERO\\\")}let{x:w,y:v}=g.toAffine();if(!r.isValid(w)||!r.isValid(v))throw new Error(\\\"bad point: x or y not FE\\\");let b=r.sqr(v),_=o(w);if(!r.eql(b,_))throw new Error(\\\"bad point: equation left != right\\\");if(!g.isTorsionFree())throw new Error(\\\"bad point: not in prime-order subgroup\\\");return!0});class p{constructor(w,v,b){if(this.px=w,this.py=v,this.pz=b,w==null||!r.isValid(w))throw new Error(\\\"x required\\\");if(v==null||!r.isValid(v))throw new Error(\\\"y required\\\");if(b==null||!r.isValid(b))throw new Error(\\\"z required\\\");Object.freeze(this)}static fromAffine(w){let{x:v,y:b}=w||{};if(!w||!r.isValid(v)||!r.isValid(b))throw new Error(\\\"invalid affine point\\\");if(w instanceof p)throw new Error(\\\"projective point not allowed\\\");let _=S=>r.eql(S,r.ZERO);return _(v)&&_(b)?p.ZERO:new p(v,b,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(w){let v=r.invertBatch(w.map(b=>b.pz));return w.map((b,_)=>b.toAffine(v[_])).map(p.fromAffine)}static fromHex(w){let v=p.fromAffine(s(Bl(\\\"pointHex\\\",w)));return v.assertValidity(),v}static fromPrivateKey(w){return p.BASE.multiply(c(w))}static msm(w,v){return sOt(p,n,w,v)}_setWindowSize(w){m.setWindowSize(this,w)}assertValidity(){f(this)}hasEvenY(){let{y:w}=this.toAffine();if(r.isOdd)return!r.isOdd(w);throw new Error(\\\"Field doesn't support isOdd\\\")}equals(w){l(w);let{px:v,py:b,pz:_}=this,{px:S,py:T,pz:N}=w,O=r.eql(r.mul(v,N),r.mul(S,_)),L=r.eql(r.mul(b,N),r.mul(T,_));return O&&L}negate(){return new p(this.px,r.neg(this.py),this.pz)}double(){let{a:w,b:v}=e,b=r.mul(v,Uqe),{px:_,py:S,pz:T}=this,N=r.ZERO,O=r.ZERO,L=r.ZERO,B=r.mul(_,_),H=r.mul(S,S),M=r.mul(T,T),F=r.mul(_,S);return F=r.add(F,F),L=r.mul(_,T),L=r.add(L,L),N=r.mul(w,L),O=r.mul(b,M),O=r.add(N,O),N=r.sub(H,O),O=r.add(H,O),O=r.mul(N,O),N=r.mul(F,N),L=r.mul(b,L),M=r.mul(w,M),F=r.sub(B,M),F=r.mul(w,F),F=r.add(F,L),L=r.add(B,B),B=r.add(L,B),B=r.add(B,M),B=r.mul(B,F),O=r.add(O,B),M=r.mul(S,T),M=r.add(M,M),B=r.mul(M,F),N=r.sub(N,B),L=r.mul(M,H),L=r.add(L,L),L=r.add(L,L),new p(N,O,L)}add(w){l(w);let{px:v,py:b,pz:_}=this,{px:S,py:T,pz:N}=w,O=r.ZERO,L=r.ZERO,B=r.ZERO,H=e.a,M=r.mul(e.b,Uqe),F=r.mul(v,S),R=r.mul(b,T),y=r.mul(_,N),E=r.add(v,b),C=r.add(S,T);E=r.mul(E,C),C=r.add(F,R),E=r.sub(E,C),C=r.add(v,_);let I=r.add(S,N);return C=r.mul(C,I),I=r.add(F,y),C=r.sub(C,I),I=r.add(b,_),O=r.add(T,N),I=r.mul(I,O),O=r.add(R,y),I=r.sub(I,O),B=r.mul(H,C),O=r.mul(M,y),B=r.add(O,B),O=r.sub(R,B),B=r.add(R,B),L=r.mul(O,B),R=r.add(F,F),R=r.add(R,F),y=r.mul(H,y),C=r.mul(M,C),R=r.add(R,y),y=r.sub(F,y),y=r.mul(H,y),C=r.add(C,y),F=r.mul(R,C),L=r.add(L,F),F=r.mul(I,C),O=r.mul(E,O),O=r.sub(O,F),F=r.mul(E,R),B=r.mul(I,B),B=r.add(B,F),new p(O,L,B)}subtract(w){return this.add(w.negate())}is0(){return this.equals(p.ZERO)}wNAF(w){return m.wNAFCached(this,w,p.normalizeZ)}multiplyUnsafe(w){let{endo:v,n:b}=e;y0(\\\"scalar\\\",w,g0,b);let _=p.ZERO;if(w===g0)return _;if(this.is0()||w===go)return this;if(!v||m.hasPrecomputes(this))return m.wNAFCachedUnsafe(this,w,p.normalizeZ);let{k1neg:S,k1:T,k2neg:N,k2:O}=v.splitScalar(w),L=_,B=_,H=this;for(;T>g0||O>g0;)T&go&&(L=L.add(H)),O&go&&(B=B.add(H)),H=H.double(),T>>=go,O>>=go;return S&&(L=L.negate()),N&&(B=B.negate()),B=new p(r.mul(B.px,v.beta),B.py,B.pz),L.add(B)}multiply(w){let{endo:v,n:b}=e;y0(\\\"scalar\\\",w,go,b);let _,S;if(v){let{k1neg:T,k1:N,k2neg:O,k2:L}=v.splitScalar(w),{p:B,f:H}=this.wNAF(N),{p:M,f:F}=this.wNAF(L);B=m.constTimeNegate(T,B),M=m.constTimeNegate(O,M),M=new p(r.mul(M.px,v.beta),M.py,M.pz),_=B.add(M),S=H.add(F)}else{let{p:T,f:N}=this.wNAF(w);_=T,S=N}return p.normalizeZ([_,S])[0]}multiplyAndAddUnsafe(w,v,b){let _=p.BASE,S=(N,O)=>O===g0||O===go||!N.equals(_)?N.multiplyUnsafe(O):N.multiply(O),T=S(this,v).add(S(w,b));return T.is0()?void 0:T}toAffine(w){return d(this,w)}isTorsionFree(){let{h:w,isTorsionFree:v}=e;if(w===go)return!0;if(v)return v(p,this);throw new Error(\\\"isTorsionFree() has not been declared for the elliptic curve\\\")}clearCofactor(){let{h:w,clearCofactor:v}=e;return w===go?this:v?v(p,this):this.multiplyUnsafe(e.h)}toRawBytes(w=!0){return NC(\\\"isCompressed\\\",w),this.assertValidity(),i(p,this,w)}toHex(w=!0){return NC(\\\"isCompressed\\\",w),kC(this.toRawBytes(w))}}p.BASE=new p(e.Gx,e.Gy,r.ONE),p.ZERO=new p(r.ZERO,r.ONE,r.ZERO);let h=e.nBitLength,m=iOt(p,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:o,isWithinCurveOrder:a}}function yOt(t){let e=Hze(t);return jC(e,{hash:\\\"hash\\\",hmac:\\\"function\\\",randomBytes:\\\"function\\\"},{bits2int:\\\"function\\\",bits2int_modN:\\\"function\\\",lowS:\\\"boolean\\\"}),Object.freeze({lowS:!0,...e})}function bOt(t){let e=yOt(t),{Fp:r,n}=e,i=r.BYTES+1,s=2*r.BYTES+1;function o(y){return $c(y,n)}function a(y){return rae(y,n)}let{ProjectivePoint:c,normPrivateKeyToScalar:l,weierstrassEquation:d,isWithinCurveOrder:f}=gOt({...e,toBytes(y,E,C){let I=E.toAffine(),P=r.toBytes(I.x),k=j9;return NC(\\\"isCompressed\\\",C),C?k(Uint8Array.from([E.hasEvenY()?2:3]),P):k(Uint8Array.from([4]),P,r.toBytes(I.y))},fromBytes(y){let E=y.length,C=y[0],I=y.subarray(1);if(E===i&&(C===2||C===3)){let P=w2(I);if(!cq(P,go,r.ORDER))throw new Error(\\\"Point is not on curve\\\");let k=d(P),U;try{U=r.sqrt(k)}catch(A){let j=A instanceof Error?\\\": \\\"+A.message:\\\"\\\";throw new Error(\\\"Point is not on curve\\\"+j)}let D=(U&go)===go;return(C&1)===1!==D&&(U=r.neg(U)),{x:P,y:U}}else if(E===s&&C===4){let P=r.fromBytes(I.subarray(0,r.BYTES)),k=r.fromBytes(I.subarray(r.BYTES,2*r.BYTES));return{x:P,y:k}}else{let P=i,k=s;throw new Error(\\\"invalid Point, expected length of \\\"+P+\\\", or uncompressed \\\"+k+\\\", got \\\"+E)}}}),p=y=>kC(MC(y,e.nByteLength));function h(y){let E=n>>go;return y>E}function m(y){return h(y)?o(-y):y}let g=(y,E,C)=>w2(y.slice(E,C));class w{constructor(E,C,I){this.r=E,this.s=C,this.recovery=I,this.assertValidity()}static fromCompact(E){let C=e.nByteLength;return E=Bl(\\\"compactSignature\\\",E,C*2),new w(g(E,0,C),g(E,C,2*C))}static fromDER(E){let{r:C,s:I}=m0.toSig(Bl(\\\"DER\\\",E));return new w(C,I)}assertValidity(){y0(\\\"r\\\",this.r,go,n),y0(\\\"s\\\",this.s,go,n)}addRecoveryBit(E){return new w(this.r,this.s,E)}recoverPublicKey(E){let{r:C,s:I,recovery:P}=this,k=N(Bl(\\\"msgHash\\\",E));if(P==null||![0,1,2,3].includes(P))throw new Error(\\\"recovery id invalid\\\");let U=P===2||P===3?C+e.n:C;if(U>=r.ORDER)throw new Error(\\\"recovery id 2 or 3 invalid\\\");let D=(P&1)===0?\\\"02\\\":\\\"03\\\",A=c.fromHex(D+p(U)),j=a(U),K=o(-k*j),J=o(I*j),X=c.BASE.multiplyAndAddUnsafe(A,K,J);if(!X)throw new Error(\\\"point at infinify\\\");return X.assertValidity(),X}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return BC(this.toDERHex())}toDERHex(){return m0.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return BC(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}let v={isValidPrivateKey(y){try{return l(y),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let y=Uze(e.n);return tOt(e.randomBytes(y),e.n)},precompute(y=8,E=c.BASE){return E._setWindowSize(y),E.multiply(BigInt(3)),E}};function b(y,E=!0){return c.fromPrivateKey(y).toRawBytes(E)}function _(y){let E=v2(y),C=typeof y==\\\"string\\\",I=(E||C)&&y.length;return E?I===i||I===s:C?I===2*i||I===2*s:y instanceof c}function S(y,E,C=!0){if(_(y))throw new Error(\\\"first arg must be private key\\\");if(!_(E))throw new Error(\\\"second arg must be public key\\\");return c.fromHex(E).multiply(l(y)).toRawBytes(C)}let T=e.bits2int||function(y){if(y.length>8192)throw new Error(\\\"input is too large\\\");let E=w2(y),C=y.length*8-e.nBitLength;return C>0?E>>BigInt(C):E},N=e.bits2int_modN||function(y){return o(T(y))},O=Oae(e.nBitLength);function L(y){return y0(\\\"num < 2^\\\"+e.nBitLength,y,g0,O),MC(y,e.nByteLength)}function B(y,E,C=H){if([\\\"recovered\\\",\\\"canonical\\\"].some(fe=>fe in C))throw new Error(\\\"sign() legacy options not supported\\\");let{hash:I,randomBytes:P}=e,{lowS:k,prehash:U,extraEntropy:D}=C;k==null&&(k=!0),y=Bl(\\\"msgHash\\\",y),Lqe(C),U&&(y=Bl(\\\"prehashed msgHash\\\",I(y)));let A=N(y),j=l(E),K=[L(j),L(A)];if(D!=null&&D!==!1){let fe=D===!0?P(r.BYTES):D;K.push(Bl(\\\"extraEntropy\\\",fe))}let J=j9(...K),X=A;function re(fe){let ce=T(fe);if(!f(ce))return;let We=a(ce),Ue=c.BASE.multiply(ce).toAffine(),je=o(Ue.x);if(je===g0)return;let Lt=o(We*o(X+je*j));if(Lt===g0)return;let pt=(Ue.x===je?0:2)|Number(Ue.y&go),Ct=Lt;return k&&h(Lt)&&(Ct=m(Lt),pt^=1),new w(je,Ct,pt)}return{seed:J,k2sig:re}}let H={lowS:e.lowS,prehash:!1},M={lowS:e.lowS,prehash:!1};function F(y,E,C=H){let{seed:I,k2sig:P}=B(y,E,C),k=e;return kze(k.hash.outputLen,k.nByteLength,k.hmac)(I,P)}c.BASE._setWindowSize(8);function R(y,E,C,I=M){let P=y;E=Bl(\\\"msgHash\\\",E),C=Bl(\\\"publicKey\\\",C);let{lowS:k,prehash:U,format:D}=I;if(Lqe(I),\\\"strict\\\"in I)throw new Error(\\\"options.strict was renamed to lowS\\\");if(D!==void 0&&D!==\\\"compact\\\"&&D!==\\\"der\\\")throw new Error(\\\"format must be compact or der\\\");let A=typeof P==\\\"string\\\"||v2(P),j=!A&&!D&&typeof P==\\\"object\\\"&&P!==null&&typeof P.r==\\\"bigint\\\"&&typeof P.s==\\\"bigint\\\";if(!A&&!j)throw new Error(\\\"invalid signature, expected Uint8Array, hex string or Signature instance\\\");let K,J;try{if(j&&(K=new w(P.r,P.s)),A){try{D!==\\\"compact\\\"&&(K=w.fromDER(P))}catch(Lt){if(!(Lt instanceof m0.Err))throw Lt}!K&&D!==\\\"der\\\"&&(K=w.fromCompact(P))}J=c.fromHex(C)}catch{return!1}if(!K||k&&K.hasHighS())return!1;U&&(E=e.hash(E));let{r:X,s:re}=K,fe=N(E),ce=a(re),We=o(fe*ce),Ue=o(X*ce),je=c.BASE.multiplyAndAddUnsafe(J,We,Ue)?.toAffine();return je?o(je.x)===X:!1}return{CURVE:e,getPublicKey:b,getSharedSecret:S,sign:F,verify:R,ProjectivePoint:c,Signature:w,utils:v}}function wOt(t){return{hash:t,hmac:(e,...r)=>iq(t,e,jRt(...r)),randomBytes:UC}}function vOt(t,e){let r=n=>bOt({...t,...wOt(n)});return{...r(e),create:r}}function Mae(){let t=iae.utils.randomPrivateKey(),e=iae.getPublicKey(t);return{privateKey:yr(t,Ko),publicKey:yr(e,Ko)}}function Q9(){let t=UC(Bae);return yr(t,Ko)}function Dae(t,e){let r=iae.getSharedSecret(pn(t,Ko),pn(e,Ko)),n=kPt(K9,r,void 0,void 0,Bae);return yr(n,Ko)}function C2(t){let e=K9(pn(t,Ko));return yr(e,Ko)}function Dl(t){let e=K9(pn(t,HC));return yr(e,Ko)}function Lae(t){return pn(`${t}`,Nae)}function w0(t){return Number(yr(t,Nae))}function zze(t){return t.replace(/\\\\+/g,\\\"-\\\").replace(/\\\\//g,\\\"_\\\").replace(/=/g,\\\"\\\")}function $ze(t){let e=t.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\"),r=(4-e.length%4)%4;return e+\\\"=\\\".repeat(r)}function Uae(t){let e=Lae(typeof t.type<\\\"u\\\"?t.type:kae);if(w0(e)===nd&&typeof t.senderPublicKey>\\\"u\\\")throw new Error(\\\"Missing sender public key for type 1 envelope\\\");let r=typeof t.senderPublicKey<\\\"u\\\"?pn(t.senderPublicKey,Ko):void 0,n=typeof t.iv<\\\"u\\\"?pn(t.iv,Ko):UC(D9),i=pn(t.symKey,Ko),s=Oze(i,n).encrypt(pn(t.message,HC)),o=qae({type:e,sealed:s,iv:n,senderPublicKey:r});return t.encoding===nh?zze(o):o}function Fae(t){let e=pn(t.symKey,Ko),{sealed:r,iv:n}=S2({encoded:t.encoded,encoding:t.encoding}),i=Oze(e,n).decrypt(r);if(i===null)throw new Error(\\\"Failed to decrypt\\\");return yr(i,HC)}function jae(t,e){let r=Lae(_2),n=UC(D9),i=pn(t,HC),s=qae({type:r,sealed:i,iv:n});return e===nh?zze(s):s}function Hae(t,e){let{sealed:r}=S2({encoded:t,encoding:e});return yr(r,HC)}function qae(t){if(w0(t.type)===_2)return yr(kl([t.type,t.sealed]),Vc);if(w0(t.type)===nd){if(typeof t.senderPublicKey>\\\"u\\\")throw new Error(\\\"Missing sender public key for type 1 envelope\\\");return yr(kl([t.type,t.senderPublicKey,t.iv,t.sealed]),Vc)}return yr(kl([t.type,t.iv,t.sealed]),Vc)}function S2(t){let e=(t.encoding||Vc)===nh?$ze(t.encoded):t.encoded,r=pn(e,Vc),n=r.slice(COt,Fqe),i=Fqe;if(w0(n)===nd){let c=i+Bae,l=c+D9,d=r.slice(i,c),f=r.slice(c,l),p=r.slice(l);return{type:n,sealed:p,iv:f,senderPublicKey:d}}if(w0(n)===_2){let c=r.slice(i),l=UC(D9);return{type:n,sealed:c,iv:l}}let s=i+D9,o=r.slice(i,s),a=r.slice(s);return{type:n,sealed:a,iv:o}}function zae(t,e){let r=S2({encoded:t,encoding:e?.encoding});return lq({type:w0(r.type),senderPublicKey:typeof r.senderPublicKey<\\\"u\\\"?yr(r.senderPublicKey,Ko):void 0,receiverPublicKey:e?.receiverPublicKey})}function lq(t){let e=t?.type||kae;if(e===nd){if(typeof t?.senderPublicKey>\\\"u\\\")throw new Error(\\\"missing sender public key\\\");if(typeof t?.receiverPublicKey>\\\"u\\\")throw new Error(\\\"missing receiver public key\\\")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function uq(t){return t.type===nd&&typeof t.senderPublicKey==\\\"string\\\"&&typeof t.receiverPublicKey==\\\"string\\\"}function dq(t){return t.type===_2}function Vze(t){let e=globalThis.Buffer.from(t.x,\\\"base64\\\"),r=globalThis.Buffer.from(t.y,\\\"base64\\\");return kl([new Uint8Array([4]),e,r])}function $ae(t,e){let[r,n,i]=t.split(\\\".\\\"),s=globalThis.Buffer.from($ze(i),\\\"base64\\\");if(s.length!==64)throw new Error(\\\"Invalid signature length\\\");let o=s.slice(0,32),a=s.slice(32,64),c=`${r}.${n}`,l=K9(c),d=Vze(e);if(!_Ot.verify(kl([o,a]),l,d))throw new Error(\\\"Invalid signature\\\");return Qp(t).payload}function qC(t){return t?.relay||{protocol:Wze}}function A2(t){let e=FH[t];if(typeof e>\\\"u\\\")throw new Error(`Relay Protocol not supported: ${t}`);return e}function Gze(t,e=\\\"-\\\"){let r={},n=\\\"relay\\\"+e;return Object.keys(t).forEach(i=>{if(i.startsWith(n)){let s=i.replace(n,\\\"\\\"),o=t[i];r[s]=o}}),r}function fq(t){if(!t.includes(\\\"wc:\\\")){let l=wae(t);l!=null&&l.includes(\\\"wc:\\\")&&(t=l)}t=t.includes(\\\"wc://\\\")?t.replace(\\\"wc://\\\",\\\"\\\"):t,t=t.includes(\\\"wc:\\\")?t.replace(\\\"wc:\\\",\\\"\\\"):t;let e=t.indexOf(\\\":\\\"),r=t.indexOf(\\\"?\\\")!==-1?t.indexOf(\\\"?\\\"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split(\\\"@\\\"),s=typeof r<\\\"u\\\"?t.substring(r):\\\"\\\",o=new URLSearchParams(s),a={};o.forEach((l,d)=>{a[d]=l});let c=typeof a.methods==\\\"string\\\"?a.methods.split(\\\",\\\"):void 0;return{protocol:n,topic:Kze(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:Gze(a),methods:c,expiryTimestamp:a.expiryTimestamp?parseInt(a.expiryTimestamp,10):void 0}}function Kze(t){return t.startsWith(\\\"//\\\")?t.substring(2):t}function Zze(t,e=\\\"-\\\"){let r=\\\"relay\\\",n={};return Object.keys(t).forEach(i=>{let s=i,o=r+e+s;t[s]&&(n[o]=t[s])}),n}function pq(t){let e=new URLSearchParams,r=Zze(t.relay);Object.keys(r).sort().forEach(i=>{e.set(i,r[i])}),e.set(\\\"symKey\\\",t.symKey),t.expiryTimestamp&&e.set(\\\"expiryTimestamp\\\",t.expiryTimestamp.toString()),t.methods&&e.set(\\\"methods\\\",t.methods.join(\\\",\\\"));let n=e.toString();return`${t.protocol}:${t.topic}@${t.version}?${n}`}function zC(t,e,r){return`${t}?wc_ev=${r}&topic=${e}`}function T2(t){let e=[];return t.forEach(r=>{let[n,i]=r.split(\\\":\\\");e.push(`${n}:${i}`)}),e}function Qze(t){let e=[];return Object.values(t).forEach(r=>{e.push(...T2(r.accounts))}),e}function Jze(t,e){let r=[];return Object.values(t).forEach(n=>{T2(n.accounts).includes(e)&&r.push(...n.methods)}),r}function Yze(t,e){let r=[];return Object.values(t).forEach(n=>{T2(n.accounts).includes(e)&&r.push(...n.events)}),r}function NOt(t,e){let r=$C(t,e);if(r)throw new Error(r.message);let n={};for(let[i,s]of Object.entries(t))n[i]={methods:s.methods,events:s.events,chains:s.accounts.map(o=>`${o.split(\\\":\\\")[0]}:${o.split(\\\":\\\")[1]}`)};return n}function kOt(t){let{proposal:{requiredNamespaces:e,optionalNamespaces:r={}},supportedNamespaces:n}=t,i=H9(e),s=H9(r),o={};Object.keys(n).forEach(l=>{let d=n[l].chains,f=n[l].methods,p=n[l].events,h=n[l].accounts;d.forEach(m=>{if(!h.some(g=>g.includes(m)))throw new Error(`No accounts provided for chain ${m} in namespace ${l}`)}),o[l]={chains:d,methods:f,events:p,accounts:h}});let a=J9(e,o,\\\"approve()\\\");if(a)throw new Error(a.message);let c={};return!Object.keys(e).length&&!Object.keys(r).length?o:(Object.keys(i).forEach(l=>{let d=n[l].chains.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.chains)==null?void 0:w.includes(m)}),f=n[l].methods.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.methods)==null?void 0:w.includes(m)}),p=n[l].events.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.events)==null?void 0:w.includes(m)}),h=d.map(m=>n[l].accounts.filter(g=>g.includes(`${m}:`))).flat();c[l]={chains:d,methods:f,events:p,accounts:h}}),Object.keys(s).forEach(l=>{var d,f,p,h,m,g;if(!n[l])return;let w=(f=(d=s[l])==null?void 0:d.chains)==null?void 0:f.filter(S=>n[l].chains.includes(S)),v=n[l].methods.filter(S=>{var T,N;return(N=(T=s[l])==null?void 0:T.methods)==null?void 0:N.includes(S)}),b=n[l].events.filter(S=>{var T,N;return(N=(T=s[l])==null?void 0:T.events)==null?void 0:N.includes(S)}),_=w?.map(S=>n[l].accounts.filter(T=>T.includes(`${S}:`))).flat();c[l]={chains:td((p=c[l])==null?void 0:p.chains,w),methods:td((h=c[l])==null?void 0:h.methods,v),events:td((m=c[l])==null?void 0:m.events,b),accounts:td((g=c[l])==null?void 0:g.accounts,_)}}),c)}function Vae(t){return t.includes(\\\":\\\")}function Xze(t){return Vae(t)?t.split(\\\":\\\")[0]:t}function H9(t){var e,r,n;let i={};if(!R2(t))return i;for(let[s,o]of Object.entries(t)){let a=Vae(s)?[s]:o.chains,c=o.methods||[],l=o.events||[],d=Xze(s);i[d]=OOt(POt({},i[d]),{chains:td(a,(e=i[d])==null?void 0:e.chains),methods:td(c,(r=i[d])==null?void 0:r.methods),events:td(l,(n=i[d])==null?void 0:n.events)})}return i}function e$e(t){let e={};return t?.forEach(r=>{var n;let[i,s]=r.split(\\\":\\\");e[i]||(e[i]={accounts:[],chains:[],events:[],methods:[]}),e[i].accounts.push(r),(n=e[i].chains)==null||n.push(`${i}:${s}`)}),e}function hq(t,e){e=e.map(n=>n.replace(\\\"did:pkh:\\\",\\\"\\\"));let r=e$e(e);for(let[n,i]of Object.entries(r))i.methods?i.methods=td(i.methods,t):i.methods=t,i.events=[\\\"chainChanged\\\",\\\"accountsChanged\\\"];return r}function Wae(t,e){var r,n,i,s,o,a;let c=H9(t),l=H9(e),d={},f=Object.keys(c).concat(Object.keys(l));for(let p of f)d[p]={chains:td((r=c[p])==null?void 0:r.chains,(n=l[p])==null?void 0:n.chains),methods:td((i=c[p])==null?void 0:i.methods,(s=l[p])==null?void 0:s.methods),events:td((o=c[p])==null?void 0:o.events,(a=l[p])==null?void 0:a.events)};return d}function Ce(t,e){let{message:r,code:n}=r$e[t];return{message:e?`${r} ${e}`:r,code:n}}function Kr(t,e){let{message:r,code:n}=t$e[t];return{message:e?`${r} ${e}`:r,code:n}}function I2(t,e){return Array.isArray(t)?typeof e<\\\"u\\\"&&t.length?t.every(e):!0:!1}function R2(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function Os(t){return typeof t>\\\"u\\\"}function Fi(t,e){return e&&Os(t)?!0:typeof t==\\\"string\\\"&&!!t.trim().length}function mq(t,e){return e&&Os(t)?!0:typeof t==\\\"number\\\"&&!isNaN(t)}function Gae(t,e){let{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r),s=!0;return w1(i,n)?(n.forEach(o=>{let{accounts:a,methods:c,events:l}=t.namespaces[o],d=T2(a),f=r[o];(!w1(WH(o,f),d)||!w1(f.methods,c)||!w1(f.events,l))&&(s=!1)}),s):!1}function q9(t){return Fi(t,!1)&&t.includes(\\\":\\\")?t.split(\\\":\\\").length===2:!1}function n$e(t){if(Fi(t,!1)&&t.includes(\\\":\\\")){let e=t.split(\\\":\\\");if(e.length===3){let r=e[0]+\\\":\\\"+e[1];return!!e[2]&&q9(r)}}return!1}function Kae(t){function e(r){try{return typeof new URL(r)<\\\"u\\\"}catch{return!1}}try{if(Fi(t,!1)){if(e(t))return!0;let r=wae(t);return e(r)}}catch{}return!1}function Zae(t){var e;return(e=t?.proposer)==null?void 0:e.publicKey}function Qae(t){return t?.topic}function Jae(t,e){let r=null;return Fi(t?.publicKey,!1)||(r=Ce(\\\"MISSING_OR_INVALID\\\",`${e} controller public key should be a string`)),r}function oae(t){let e=!0;return I2(t)?t.length&&(e=t.every(r=>Fi(r,!1))):e=!1,e}function i$e(t,e,r){let n=null;return I2(e)&&e.length?e.forEach(i=>{n||q9(i)||(n=Kr(\\\"UNSUPPORTED_CHAINS\\\",`${r}, chain ${i} should be a string and conform to \\\"namespace:chainId\\\" format`))}):q9(t)||(n=Kr(\\\"UNSUPPORTED_CHAINS\\\",`${r}, chains must be defined as \\\"namespace:chainId\\\" e.g. \\\"eip155:1\\\": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: [\\\"eip155:1\\\", \\\"eip155:5\\\"] }`)),n}function s$e(t,e,r){let n=null;return Object.entries(t).forEach(([i,s])=>{if(n)return;let o=i$e(i,WH(i,s),`${e} ${r}`);o&&(n=o)}),n}function o$e(t,e){let r=null;return I2(t)?t.forEach(n=>{r||n$e(n)||(r=Kr(\\\"UNSUPPORTED_ACCOUNTS\\\",`${e}, account ${n} should be a string and conform to \\\"namespace:chainId:address\\\" format`))}):r=Kr(\\\"UNSUPPORTED_ACCOUNTS\\\",`${e}, accounts should be an array of strings conforming to \\\"namespace:chainId:address\\\" format`),r}function a$e(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;let i=o$e(n?.accounts,`${e} namespace`);i&&(r=i)}),r}function c$e(t,e){let r=null;return oae(t?.methods)?oae(t?.events)||(r=Kr(\\\"UNSUPPORTED_EVENTS\\\",`${e}, events should be an array of strings or empty array for no events`)):r=Kr(\\\"UNSUPPORTED_METHODS\\\",`${e}, methods should be an array of strings or empty array for no methods`),r}function Yae(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;let i=c$e(n,`${e}, namespace`);i&&(r=i)}),r}function Xae(t,e,r){let n=null;if(t&&R2(t)){let i=Yae(t,e);i&&(n=i);let s=s$e(t,e,r);s&&(n=s)}else n=Ce(\\\"MISSING_OR_INVALID\\\",`${e}, ${r} should be an object with data`);return n}function $C(t,e){let r=null;if(t&&R2(t)){let n=Yae(t,e);n&&(r=n);let i=a$e(t,e);i&&(r=i)}else r=Ce(\\\"MISSING_OR_INVALID\\\",`${e}, namespaces should be an object with data`);return r}function gq(t){return Fi(t.protocol,!0)}function ece(t,e){let r=!1;return e&&!t?r=!0:t&&I2(t)&&t.length&&t.forEach(n=>{r=gq(n)}),r}function tce(t){return typeof t==\\\"number\\\"}function Zo(t){return typeof t<\\\"u\\\"&&typeof t!==null}function rce(t){return!(!t||typeof t!=\\\"object\\\"||!t.code||!mq(t.code,!1)||!t.message||!Fi(t.message,!1))}function nce(t){return!(Os(t)||!Fi(t.method,!1))}function ice(t){return!(Os(t)||Os(t.result)&&Os(t.error)||!mq(t.id,!1)||!Fi(t.jsonrpc,!1))}function sce(t){return!(Os(t)||!Fi(t.name,!1))}function yq(t,e){return!(!q9(e)||!Qze(t).includes(e))}function oce(t,e,r){return Fi(r,!1)?Jze(t,e).includes(r):!1}function ace(t,e,r){return Fi(r,!1)?Yze(t,e).includes(r):!1}function J9(t,e,r){let n=null,i=BOt(t),s=MOt(e),o=Object.keys(i),a=Object.keys(s),c=qqe(Object.keys(t)),l=qqe(Object.keys(e)),d=c.filter(f=>!l.includes(f));return d.length&&(n=Ce(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces keys don't satisfy requiredNamespaces.\\n      Required: ${d.toString()}\\n      Received: ${Object.keys(e).toString()}`)),w1(o,a)||(n=Ce(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces chains don't satisfy required namespaces.\\n      Required: ${o.toString()}\\n      Approved: ${a.toString()}`)),Object.keys(e).forEach(f=>{if(!f.includes(\\\":\\\")||n)return;let p=T2(e[f].accounts);p.includes(f)||(n=Ce(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces accounts don't satisfy namespace accounts for ${f}\\n        Required: ${f}\\n        Approved: ${p.toString()}`))}),o.forEach(f=>{n||(w1(i[f].methods,s[f].methods)?w1(i[f].events,s[f].events)||(n=Ce(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces events don't satisfy namespace events for ${f}`)):n=Ce(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces methods don't satisfy namespace methods for ${f}`))}),n}function BOt(t){let e={};return Object.keys(t).forEach(r=>{var n;r.includes(\\\":\\\")?e[r]=t[r]:(n=t[r].chains)==null||n.forEach(i=>{e[i]={methods:t[r].methods,events:t[r].events}})}),e}function qqe(t){return[...new Set(t.map(e=>e.includes(\\\":\\\")?e.split(\\\":\\\")[0]:e))]}function MOt(t){let e={};return Object.keys(t).forEach(r=>{r.includes(\\\":\\\")?e[r]=t[r]:T2(t[r].accounts)?.forEach(i=>{e[i]={accounts:t[r].accounts.filter(s=>s.includes(`${i}:`)),methods:t[r].methods,events:t[r].events}})}),e}function cce(t,e){return mq(t,!1)&&t<=e.max&&t>=e.min}function bq(){let t=E2();return new Promise(e=>{switch(t){case ic.browser:e(l$e());break;case ic.reactNative:e(u$e());break;case ic.node:e(d$e());break;default:e(!0)}})}function l$e(){return E1()&&navigator?.onLine}async function u$e(){return eh()&&typeof globalThis<\\\"u\\\"&&globalThis!=null&&globalThis.NetInfo?(await globalThis?.NetInfo.fetch())?.isConnected:!0}function d$e(){return!0}function lce(t){switch(E2()){case ic.browser:f$e(t);break;case ic.reactNative:p$e(t);break;case ic.node:break}}function f$e(t){!eh()&&E1()&&(window.addEventListener(\\\"online\\\",()=>t(!0)),window.addEventListener(\\\"offline\\\",()=>t(!1)))}function p$e(t){eh()&&typeof globalThis<\\\"u\\\"&&globalThis!=null&&globalThis.NetInfo&&globalThis?.NetInfo.addEventListener(e=>t(e?.isConnected))}function uce(){var t;return E1()&&(0,rd.getDocument)()?((t=(0,rd.getDocument)())==null?void 0:t.visibilityState)===\\\"visible\\\":!0}var b0,rd,zqe,VH,mRt,gRt,yRt,pqe,bRt,wRt,hqe,mqe,vRt,Zqe,ic,zH,xRt,Qqe,lae,ERt,Jqe,IRt,jH,gqe,kRt,BRt,MRt,DRt,AC,yqe,U9,dze,fze,pze,HRt,M9,qRt,zRt,$Rt,VRt,WRt,GRt,wqe,vqe,Goe,ZRt,QRt,JRt,XRt,ePt,tPt,xqe,rPt,nPt,Eqe,Cae,yze,iPt,YH,bze,G9,FC,eq,v1,uPt,dPt,mPt,Rze,yPt,bPt,wPt,vPt,HH,xPt,Pze,Tqe,Go,Joe,SPt,TPt,IPt,Iqe,RPt,PPt,Oze,$H,iq,Loe,Pqe,kPt,Yoe,LPt,y1,b1,Xoe,K9,sq,oq,UPt,FPt,h0,Uoe,Oae,Foe,Nqe,VPt,WPt,GPt,yo,ps,b2,KPt,tae,kqe,Bqe,JPt,Mqe,qH,qoe,jze,TC,$oe,nae,cOt,Dqe,lOt,uOt,iae,hOt,mOt,sae,m0,g0,go,Uqe,qze,xOt,EOt,_Ot,Nae,Ko,Vc,nh,HC,kae,nd,_2,COt,Fqe,D9,Bae,Wze,SOt,AOt,TOt,jqe,IOt,ROt,Hqe,POt,OOt,t$e,r$e,Voe,v0,Y9=x(()=>{u();Ise();b0=Me(u0()),rd=Me(gC()),zqe=Me(kse());un();xH();g2();B9();Boe();VH=\\\":\\\";mRt=Object.defineProperty,gRt=Object.defineProperties,yRt=Object.getOwnPropertyDescriptors,pqe=Object.getOwnPropertySymbols,bRt=Object.prototype.hasOwnProperty,wRt=Object.prototype.propertyIsEnumerable,hqe=(t,e,r)=>e in t?mRt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mqe=(t,e)=>{for(var r in e||(e={}))bRt.call(e,r)&&hqe(t,r,e[r]);if(pqe)for(var r of pqe(e))wRt.call(e,r)&&hqe(t,r,e[r]);return t},vRt=(t,e)=>gRt(t,yRt(e)),Zqe=\\\"ReactNative\\\",ic={reactNative:\\\"react-native\\\",node:\\\"node\\\",browser:\\\"browser\\\",unknown:\\\"unknown\\\"},zH=\\\" \\\",xRt=\\\":\\\",Qqe=\\\"/\\\",lae=2,ERt=1e3,Jqe=\\\"js\\\";IRt=t=>t;jH=BigInt(2**32-1),gqe=BigInt(32);kRt=(t,e,r)=>t<<r|e>>>32-r,BRt=(t,e,r)=>e<<r|t>>>32-r,MRt=(t,e,r)=>e<<r-32|t>>>64-r,DRt=(t,e,r)=>t<<r-32|e>>>64-r,AC=typeof globalThis==\\\"object\\\"&&\\\"crypto\\\"in globalThis?globalThis.crypto:void 0;yqe=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;U9=class{clone(){return this._cloneInto()}};dze=[],fze=[],pze=[],HRt=BigInt(0),M9=BigInt(1),qRt=BigInt(2),zRt=BigInt(7),$Rt=BigInt(256),VRt=BigInt(113);for(let t=0,e=M9,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],dze.push(2*(5*n+r)),fze.push((t+1)*(t+2)/2%64);let i=HRt;for(let s=0;s<7;s++)e=(e<<M9^(e>>zRt)*VRt)%$Rt,e&qRt&&(i^=M9<<(M9<<BigInt(s))-M9);pze.push(i)}[WRt,GRt]=NRt(pze,!0),wqe=(t,e,r)=>r>32?MRt(t,e,r):kRt(t,e,r),vqe=(t,e,r)=>r>32?DRt(t,e,r):BRt(t,e,r);Goe=class t extends U9{constructor(e,r,n,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,L9(n),0>=this.blockLen||this.blockLen>=200)throw new Error(\\\"Sha3 supports only keccak-f1600 function\\\");this.state=new Uint8Array(200),this.state32=LRt(this.state)}keccak(){yqe||bqe(this.state32),KRt(this.state32,this.rounds),yqe||bqe(this.state32),this.posOut=0,this.pos=0}update(e){RC(this);let{blockLen:r,state:n}=this;e=PC(e);let i=e.length;for(let s=0;s<i;){let o=Math.min(r-this.pos,i-s);for(let a=0;a<o;a++)n[this.pos++]^=e[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:r,pos:n,blockLen:i}=this;e[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){RC(this,!1),W9(e),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,s=e.length;i<s;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,s-i);e.set(r.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error(\\\"XOF is not possible for this instance\\\");return this.writeInto(e)}xof(e){return L9(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(lze(e,this),this.finished)throw new Error(\\\"digest() was already called\\\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:r,suffix:n,outputLen:i,rounds:s,enableXOF:o}=this;return e||(e=new t(r,n,i,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}},ZRt=(t,e,r)=>uze(()=>new Goe(e,t,r)),QRt=ZRt(1,136,256/8),JRt=\\\"https://rpc.walletconnect.org/v1\\\";XRt=Object.defineProperty,ePt=Object.defineProperties,tPt=Object.getOwnPropertyDescriptors,xqe=Object.getOwnPropertySymbols,rPt=Object.prototype.hasOwnProperty,nPt=Object.prototype.propertyIsEnumerable,Eqe=(t,e,r)=>e in t?XRt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Cae=(t,e)=>{for(var r in e||(e={}))rPt.call(e,r)&&Eqe(t,r,e[r]);if(xqe)for(var r of xqe(e))nPt.call(e,r)&&Eqe(t,r,e[r]);return t},yze=(t,e)=>ePt(t,tPt(e)),iPt=\\\"did:pkh:\\\",YH=t=>t?.split(\\\":\\\"),bze=t=>{let e=t&&YH(t);if(e)return t.includes(iPt)?e[3]:e[1]},G9=t=>{let e=t&&YH(t);if(e)return e[2]+\\\":\\\"+e[3]},FC=t=>{let e=t&&YH(t);if(e)return e.pop()};eq=(t,e)=>{let r=`${t.domain} wants you to sign in with your Ethereum account:`,n=FC(e);if(!t.aud&&!t.uri)throw new Error(\\\"Either `aud` or `uri` is required to construct the message\\\");let i=t.statement||void 0,s=`URI: ${t.aud||t.uri}`,o=`Version: ${t.version}`,a=`Chain ID: ${bze(e)}`,c=`Nonce: ${t.nonce}`,l=`Issued At: ${t.iat}`,d=t.exp?`Expiration Time: ${t.exp}`:void 0,f=t.nbf?`Not Before: ${t.nbf}`:void 0,p=t.requestId?`Request ID: ${t.requestId}`:void 0,h=t.resources?`Resources:${t.resources.map(g=>`\\n- ${g}`).join(\\\"\\\")}`:void 0,m=_1(t.resources);if(m){let g=x1(m);i=Rae(i,g)}return[r,n,\\\"\\\",i,\\\"\\\",s,o,a,c,l,d,f,p,h].filter(g=>g!=null).join(`\\n`)};v1=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),uPt=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),dPt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!dPt)throw new Error(\\\"Non little-endian hardware is not supported\\\");mPt=(t,e)=>{function r(n,...i){if(Ml(n),t.nonceLength!==void 0){let l=i[0];if(!l)throw new Error(\\\"nonce / iv required\\\");t.varSizeNonce?Ml(l):Ml(l,t.nonceLength)}let s=t.tagLength;s&&i[1]!==void 0&&Ml(i[1]);let o=e(n,...i),a=(l,d)=>{if(d!==void 0){if(l!==2)throw new Error(\\\"cipher output not supported\\\");Ml(d)}},c=!1;return{encrypt(l,d){if(c)throw new Error(\\\"cannot encrypt() twice with same key + nonce\\\");return c=!0,Ml(l),a(o.encrypt.length,d),o.encrypt(l,d)},decrypt(l,d){if(Ml(l),s&&l.length<s)throw new Error(\\\"invalid ciphertext length: smaller than tagLength=\\\"+s);return a(o.decrypt.length,d),o.decrypt(l,d)}}}return Object.assign(r,t),r};Rze=t=>Uint8Array.from(t.split(\\\"\\\").map(e=>e.charCodeAt(0))),yPt=Rze(\\\"expand 16-byte k\\\"),bPt=Rze(\\\"expand 32-byte k\\\"),wPt=v1(yPt),vPt=v1(bPt);HH=64,xPt=16,Pze=2**32-1,Tqe=new Uint32Array;Go=(t,e)=>t[e++]&255|(t[e++]&255)<<8,Joe=class{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=Koe(e),Ml(e,32);let r=Go(e,0),n=Go(e,2),i=Go(e,4),s=Go(e,6),o=Go(e,8),a=Go(e,10),c=Go(e,12),l=Go(e,14);this.r[0]=r&8191,this.r[1]=(r>>>13|n<<3)&8191,this.r[2]=(n>>>10|i<<6)&7939,this.r[3]=(i>>>7|s<<9)&8191,this.r[4]=(s>>>4|o<<12)&255,this.r[5]=o>>>1&8190,this.r[6]=(o>>>14|a<<2)&8191,this.r[7]=(a>>>11|c<<5)&8065,this.r[8]=(c>>>8|l<<8)&8191,this.r[9]=l>>>5&127;for(let d=0;d<8;d++)this.pad[d]=Go(e,16+2*d)}process(e,r,n=!1){let i=n?0:2048,{h:s,r:o}=this,a=o[0],c=o[1],l=o[2],d=o[3],f=o[4],p=o[5],h=o[6],m=o[7],g=o[8],w=o[9],v=Go(e,r+0),b=Go(e,r+2),_=Go(e,r+4),S=Go(e,r+6),T=Go(e,r+8),N=Go(e,r+10),O=Go(e,r+12),L=Go(e,r+14),B=s[0]+(v&8191),H=s[1]+((v>>>13|b<<3)&8191),M=s[2]+((b>>>10|_<<6)&8191),F=s[3]+((_>>>7|S<<9)&8191),R=s[4]+((S>>>4|T<<12)&8191),y=s[5]+(T>>>1&8191),E=s[6]+((T>>>14|N<<2)&8191),C=s[7]+((N>>>11|O<<5)&8191),I=s[8]+((O>>>8|L<<8)&8191),P=s[9]+(L>>>5|i),k=0,U=k+B*a+H*(5*w)+M*(5*g)+F*(5*m)+R*(5*h);k=U>>>13,U&=8191,U+=y*(5*p)+E*(5*f)+C*(5*d)+I*(5*l)+P*(5*c),k+=U>>>13,U&=8191;let D=k+B*c+H*a+M*(5*w)+F*(5*g)+R*(5*m);k=D>>>13,D&=8191,D+=y*(5*h)+E*(5*p)+C*(5*f)+I*(5*d)+P*(5*l),k+=D>>>13,D&=8191;let A=k+B*l+H*c+M*a+F*(5*w)+R*(5*g);k=A>>>13,A&=8191,A+=y*(5*m)+E*(5*h)+C*(5*p)+I*(5*f)+P*(5*d),k+=A>>>13,A&=8191;let j=k+B*d+H*l+M*c+F*a+R*(5*w);k=j>>>13,j&=8191,j+=y*(5*g)+E*(5*m)+C*(5*h)+I*(5*p)+P*(5*f),k+=j>>>13,j&=8191;let K=k+B*f+H*d+M*l+F*c+R*a;k=K>>>13,K&=8191,K+=y*(5*w)+E*(5*g)+C*(5*m)+I*(5*h)+P*(5*p),k+=K>>>13,K&=8191;let J=k+B*p+H*f+M*d+F*l+R*c;k=J>>>13,J&=8191,J+=y*a+E*(5*w)+C*(5*g)+I*(5*m)+P*(5*h),k+=J>>>13,J&=8191;let X=k+B*h+H*p+M*f+F*d+R*l;k=X>>>13,X&=8191,X+=y*c+E*a+C*(5*w)+I*(5*g)+P*(5*m),k+=X>>>13,X&=8191;let re=k+B*m+H*h+M*p+F*f+R*d;k=re>>>13,re&=8191,re+=y*l+E*c+C*a+I*(5*w)+P*(5*g),k+=re>>>13,re&=8191;let fe=k+B*g+H*m+M*h+F*p+R*f;k=fe>>>13,fe&=8191,fe+=y*d+E*l+C*c+I*a+P*(5*w),k+=fe>>>13,fe&=8191;let ce=k+B*w+H*g+M*m+F*h+R*p;k=ce>>>13,ce&=8191,ce+=y*f+E*d+C*l+I*c+P*a,k+=ce>>>13,ce&=8191,k=(k<<2)+k|0,k=k+U|0,U=k&8191,k=k>>>13,D+=k,s[0]=U,s[1]=D,s[2]=A,s[3]=j,s[4]=K,s[5]=J,s[6]=X,s[7]=re,s[8]=fe,s[9]=ce}finalize(){let{h:e,pad:r}=this,n=new Uint16Array(10),i=e[1]>>>13;e[1]&=8191;for(let a=2;a<10;a++)e[a]+=i,i=e[a]>>>13,e[a]&=8191;e[0]+=i*5,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,n[0]=e[0]+5,i=n[0]>>>13,n[0]&=8191;for(let a=1;a<10;a++)n[a]=e[a]+i,i=n[a]>>>13,n[a]&=8191;n[9]-=8192;let s=(i^1)-1;for(let a=0;a<10;a++)n[a]&=s;s=~s;for(let a=0;a<10;a++)e[a]=e[a]&s|n[a];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let o=e[0]+r[0];e[0]=o&65535;for(let a=1;a<8;a++)o=(e[a]+r[a]|0)+(o>>>16)|0,e[a]=o&65535;OC(n)}update(e){_qe(this);let{buffer:r,blockLen:n}=this;e=Koe(e);let i=e.length;for(let s=0;s<i;){let o=Math.min(n-this.pos,i-s);if(o===n){for(;n<=i-s;s+=n)this.process(e,s);continue}r.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===n&&(this.process(r,0,!1),this.pos=0)}return this}destroy(){OC(this.h,this.r,this.buffer,this.pad)}digestInto(e){_qe(this),lPt(e,this),this.finished=!0;let{buffer:r,h:n}=this,{pos:i}=this;if(i){for(r[i++]=1;i<16;i++)r[i]=0;this.process(r,0,!0)}this.finalize();let s=0;for(let o=0;o<8;o++)e[s++]=n[o]>>>0,e[s++]=n[o]>>>8;return e}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}};SPt=CPt(t=>new Joe(t));TPt=_Pt(APt,{counterRight:!1,counterLength:4,allowShortKeys:!1}),IPt=new Uint8Array(16),Iqe=(t,e)=>{t.update(e);let r=e.length%16;r&&t.update(IPt.subarray(r))},RPt=new Uint8Array(32);PPt=t=>(e,r,n)=>({encrypt(i,s){let o=i.length;s=Sqe(o+16,s,!1),s.set(i);let a=s.subarray(0,-16);t(e,r,a,a,1);let c=Rqe(t,e,r,a,n);return s.set(c,o),OC(c),s},decrypt(i,s){s=Sqe(i.length-16,s,!1);let o=i.subarray(0,-16),a=i.subarray(-16),c=Rqe(t,e,r,o,n);if(!hPt(a,c))throw new Error(\\\"invalid tag\\\");return s.set(i.subarray(0,-16)),t(e,r,s,s,1),OC(c),s}}),Oze=mPt({blockSize:64,nonceLength:12,tagLength:16},PPt(TPt)),$H=class extends U9{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,xae(e);let n=PC(r);if(this.iHash=e.create(),typeof this.iHash.update!=\\\"function\\\")throw new Error(\\\"Expected instance of class which extends utils.Hash\\\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(n.length>i?e.create().update(n).digest():n);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),s.fill(0)}update(e){return RC(this),this.iHash.update(e),this}digestInto(e){RC(this),W9(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:n,finished:i,destroyed:s,blockLen:o,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=s,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},iq=(t,e,r)=>new $H(t,e).update(r).digest();iq.create=(t,e)=>new $H(t,e);Loe=new Uint8Array([0]),Pqe=new Uint8Array;kPt=(t,e,r,n,i)=>NPt(t,OPt(t,e,r),n,i);Yoe=class extends U9{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Moe(this.buffer)}update(e){RC(this);let{view:r,buffer:n,blockLen:i}=this;e=PC(e);let s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let c=Moe(e);for(;i<=s-o;o+=i)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){RC(this),lze(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:s}=this,{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(n,0),o=0);for(let f=o;f<i;f++)r[f]=0;BPt(n,i-8,BigInt(this.length*8),s),this.process(n,0);let a=Moe(e),c=this.outputLen;if(c%4)throw new Error(\\\"_sha2: outputLen should be aligned to 32bit\\\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\\\"_sha2: outputLen bigger than state\\\");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],s)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.length=i,e.pos=a,e.finished=s,e.destroyed=o,i%r&&e.buffer.set(n),e}},LPt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),y1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b1=new Uint32Array(64),Xoe=class extends Yoe{constructor(){super(64,32,8,!1),this.A=y1[0]|0,this.B=y1[1]|0,this.C=y1[2]|0,this.D=y1[3]|0,this.E=y1[4]|0,this.F=y1[5]|0,this.G=y1[6]|0,this.H=y1[7]|0}get(){let{A:e,B:r,C:n,D:i,E:s,F:o,G:a,H:c}=this;return[e,r,n,i,s,o,a,c]}set(e,r,n,i,s,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=s|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)b1[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let p=b1[f-15],h=b1[f-2],m=Yp(p,7)^Yp(p,18)^p>>>3,g=Yp(h,17)^Yp(h,19)^h>>>10;b1[f]=g+b1[f-7]+m+b1[f-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:c,G:l,H:d}=this;for(let f=0;f<64;f++){let p=Yp(a,6)^Yp(a,11)^Yp(a,25),h=d+p+MPt(a,c,l)+LPt[f]+b1[f]|0,m=(Yp(n,2)^Yp(n,13)^Yp(n,22))+DPt(n,i,s)|0;d=l,l=c,c=a,a=o+h|0,o=s,s=i,i=n,n=h+m|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,i,s,o,a,c,l,d)}roundClean(){b1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},K9=uze(()=>new Xoe);sq=BigInt(0),oq=BigInt(1),UPt=BigInt(2);FPt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));h0={_0:48,_9:57,A:65,F:70,a:97,f:102};Uoe=t=>typeof t==\\\"bigint\\\"&&sq<=t;Oae=t=>(UPt<<BigInt(t-1))-oq,Foe=t=>new Uint8Array(t),Nqe=t=>Uint8Array.from(t);VPt={bigint:t=>typeof t==\\\"bigint\\\",function:t=>typeof t==\\\"function\\\",boolean:t=>typeof t==\\\"boolean\\\",string:t=>typeof t==\\\"string\\\",stringOrUint8Array:t=>typeof t==\\\"string\\\"||v2(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t==\\\"function\\\"&&Number.isSafeInteger(t.outputLen)};WPt=()=>{throw new Error(\\\"not implemented\\\")};GPt=Object.freeze({__proto__:null,isBytes:v2,abytes:Z9,abool:NC,bytesToHex:kC,numberToHexUnpadded:IC,hexToNumber:Pae,hexToBytes:BC,bytesToNumberBE:w2,bytesToNumberLE:F9,numberToBytesBE:MC,numberToBytesLE:aq,numberToVarBytesBE:jPt,ensureBytes:Bl,concatBytes:j9,equalBytes:HPt,utf8ToBytes:qPt,inRange:cq,aInRange:y0,bitLen:Nze,bitGet:zPt,bitSet:$Pt,bitMask:Oae,createHmacDrbg:kze,validateObject:jC,notImplemented:WPt,memoized:eae}),yo=BigInt(0),ps=BigInt(1),b2=BigInt(2),KPt=BigInt(3),tae=BigInt(4),kqe=BigInt(5),Bqe=BigInt(8);JPt=[\\\"create\\\",\\\"isValid\\\",\\\"is0\\\",\\\"neg\\\",\\\"inv\\\",\\\"sqrt\\\",\\\"sqr\\\",\\\"eql\\\",\\\"add\\\",\\\"sub\\\",\\\"mul\\\",\\\"pow\\\",\\\"div\\\",\\\"addN\\\",\\\"subN\\\",\\\"mulN\\\",\\\"sqrN\\\"];Mqe=BigInt(0),qH=BigInt(1);qoe=new WeakMap,jze=new WeakMap;BigInt(0),BigInt(1),BigInt(2),BigInt(8);TC=BigInt(0),$oe=BigInt(1);nae=BigInt(\\\"57896044618658097711785492504343953926634992332820282019728792003956564819949\\\");BigInt(0);cOt=BigInt(1),Dqe=BigInt(2),lOt=BigInt(3),uOt=BigInt(5);BigInt(8);iae=aOt({P:nae,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:t=>{let e=nae,{pow_p_5_8:r,b2:n}=dOt(t);return $c(hf(r,lOt,e)*n,e)},adjustScalarBytes:fOt,randomBytes:UC});({bytesToNumberBE:hOt,hexToBytes:mOt}=GPt),sae=class extends Error{constructor(e=\\\"\\\"){super(e)}},m0={Err:sae,_tlv:{encode:(t,e)=>{let{Err:r}=m0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length&1)throw new r(\\\"tlv.encode: unpadded data\\\");let n=e.length/2,i=IC(n);if(i.length/2&128)throw new r(\\\"tlv.encode: long form length too big\\\");let s=n>127?IC(i.length/2|128):\\\"\\\";return IC(t)+s+i+e},decode(t,e){let{Err:r}=m0,n=0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length<2||e[n++]!==t)throw new r(\\\"tlv.decode: wrong tlv\\\");let i=e[n++],s=!!(i&128),o=0;if(!s)o=i;else{let c=i&127;if(!c)throw new r(\\\"tlv.decode(long): indefinite length not supported\\\");if(c>4)throw new r(\\\"tlv.decode(long): byte length is too big\\\");let l=e.subarray(n,n+c);if(l.length!==c)throw new r(\\\"tlv.decode: length bytes not complete\\\");if(l[0]===0)throw new r(\\\"tlv.decode(long): zero leftmost byte\\\");for(let d of l)o=o<<8|d;if(n+=c,o<128)throw new r(\\\"tlv.decode(long): not minimal encoding\\\")}let a=e.subarray(n,n+o);if(a.length!==o)throw new r(\\\"tlv.decode: wrong value length\\\");return{v:a,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=m0;if(t<g0)throw new e(\\\"integer: negative integers are not allowed\\\");let r=IC(t);if(Number.parseInt(r[0],16)&8&&(r=\\\"00\\\"+r),r.length&1)throw new e(\\\"unexpected DER parsing assertion: unpadded hex\\\");return r},decode(t){let{Err:e}=m0;if(t[0]&128)throw new e(\\\"invalid signature integer: negative\\\");if(t[0]===0&&!(t[1]&128))throw new e(\\\"invalid signature integer: unnecessary leading zero\\\");return hOt(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=m0,i=typeof t==\\\"string\\\"?mOt(t):t;Z9(i);let{v:s,l:o}=n.decode(48,i);if(o.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");let{v:a,l:c}=n.decode(2,s),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(t){let{_tlv:e,_int:r}=m0,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s)),s=n+i;return e.encode(48,s)}},g0=BigInt(0),go=BigInt(1);BigInt(2);Uqe=BigInt(3);BigInt(4);qze=Dze(BigInt(\\\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\\\")),xOt=qze.create(BigInt(\\\"-3\\\")),EOt=BigInt(\\\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\\\"),_Ot=vOt({a:xOt,b:EOt,Fp:qze,n:BigInt(\\\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\\\"),Gx:BigInt(\\\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\\\"),Gy:BigInt(\\\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\\\"),h:BigInt(1),lowS:!1},K9),Nae=\\\"base10\\\",Ko=\\\"base16\\\",Vc=\\\"base64pad\\\",nh=\\\"base64url\\\",HC=\\\"utf8\\\",kae=0,nd=1,_2=2,COt=0,Fqe=1,D9=12,Bae=32;Wze=\\\"irn\\\";SOt=Object.defineProperty,AOt=Object.defineProperties,TOt=Object.getOwnPropertyDescriptors,jqe=Object.getOwnPropertySymbols,IOt=Object.prototype.hasOwnProperty,ROt=Object.prototype.propertyIsEnumerable,Hqe=(t,e,r)=>e in t?SOt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,POt=(t,e)=>{for(var r in e||(e={}))IOt.call(e,r)&&Hqe(t,r,e[r]);if(jqe)for(var r of jqe(e))ROt.call(e,r)&&Hqe(t,r,e[r]);return t},OOt=(t,e)=>AOt(t,TOt(e));t$e={INVALID_METHOD:{message:\\\"Invalid method.\\\",code:1001},INVALID_EVENT:{message:\\\"Invalid event.\\\",code:1002},INVALID_UPDATE_REQUEST:{message:\\\"Invalid update request.\\\",code:1003},INVALID_EXTEND_REQUEST:{message:\\\"Invalid extend request.\\\",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:\\\"Invalid session settle request.\\\",code:1005},UNAUTHORIZED_METHOD:{message:\\\"Unauthorized method.\\\",code:3001},UNAUTHORIZED_EVENT:{message:\\\"Unauthorized event.\\\",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:\\\"Unauthorized update request.\\\",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:\\\"Unauthorized extend request.\\\",code:3004},USER_REJECTED:{message:\\\"User rejected.\\\",code:5e3},USER_REJECTED_CHAINS:{message:\\\"User rejected chains.\\\",code:5001},USER_REJECTED_METHODS:{message:\\\"User rejected methods.\\\",code:5002},USER_REJECTED_EVENTS:{message:\\\"User rejected events.\\\",code:5003},UNSUPPORTED_CHAINS:{message:\\\"Unsupported chains.\\\",code:5100},UNSUPPORTED_METHODS:{message:\\\"Unsupported methods.\\\",code:5101},UNSUPPORTED_EVENTS:{message:\\\"Unsupported events.\\\",code:5102},UNSUPPORTED_ACCOUNTS:{message:\\\"Unsupported accounts.\\\",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:\\\"Unsupported namespace key.\\\",code:5104},USER_DISCONNECTED:{message:\\\"User disconnected.\\\",code:6e3},SESSION_SETTLEMENT_FAILED:{message:\\\"Session settlement failed.\\\",code:7e3},WC_METHOD_UNSUPPORTED:{message:\\\"Unsupported wc_ method.\\\",code:10001}},r$e={NOT_INITIALIZED:{message:\\\"Not initialized.\\\",code:1},NO_MATCHING_KEY:{message:\\\"No matching key.\\\",code:2},RESTORE_WILL_OVERRIDE:{message:\\\"Restore will override.\\\",code:3},RESUBSCRIBED:{message:\\\"Resubscribed.\\\",code:4},MISSING_OR_INVALID:{message:\\\"Missing or invalid.\\\",code:5},EXPIRED:{message:\\\"Expired.\\\",code:6},UNKNOWN_TYPE:{message:\\\"Unknown type.\\\",code:7},MISMATCHED_TOPIC:{message:\\\"Mismatched topic.\\\",code:8},NON_CONFORMING_NAMESPACES:{message:\\\"Non conforming namespaces.\\\",code:9}};Voe={},v0=class{static get(e){return Voe[e]}static set(e,r){Voe[e]=r}static delete(e){delete Voe[e]}}});var bo,h$e=x(()=>{u();bo=class{}});var wq=x(()=>{u();h$e()});var g$e,vq,fce,m$e,sc,VC,pce=x(()=>{u();g$e=Me(ho()),vq=Me(u0());wq();fce=class extends bo{constructor(e){super()}},m$e=vq.FIVE_SECONDS,sc={pulse:\\\"heartbeat_pulse\\\"},VC=class t extends fce{constructor(e){super(e),this.events=new g$e.EventEmitter,this.interval=m$e,this.interval=e?.interval||m$e}static async init(e){let r=new t(e);return await r.init(),r}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,vq.toMiliseconds)(this.interval))}pulse(){this.events.emit(sc.pulse)}}});function FOt(t,e){if(t===\\\"__proto__\\\"||t===\\\"constructor\\\"&&e&&typeof e==\\\"object\\\"&&\\\"prototype\\\"in e){jOt(t);return}return e}function jOt(t){console.warn(`[destr] Dropping \\\"${t}\\\" key to prevent prototype pollution.`)}function X9(t,e={}){if(typeof t!=\\\"string\\\")return t;if(t[0]==='\\\"'&&t[t.length-1]==='\\\"'&&t.indexOf(\\\"\\\\\\\\\\\")===-1)return t.slice(1,-1);let r=t.trim();if(r.length<=9)switch(r.toLowerCase()){case\\\"true\\\":return!0;case\\\"false\\\":return!1;case\\\"undefined\\\":return;case\\\"null\\\":return null;case\\\"nan\\\":return Number.NaN;case\\\"infinity\\\":return Number.POSITIVE_INFINITY;case\\\"-infinity\\\":return Number.NEGATIVE_INFINITY}if(!UOt.test(t)){if(e.strict)throw new SyntaxError(\\\"[destr] Invalid JSON\\\");return t}try{if(DOt.test(t)||LOt.test(t)){if(e.strict)throw new Error(\\\"[destr] Possible prototype pollution\\\");return JSON.parse(t,FOt)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}var DOt,LOt,UOt,y$e=x(()=>{u();DOt=/\\\"(?:_|\\\\\\\\u0{2}5[Ff]){2}(?:p|\\\\\\\\u0{2}70)(?:r|\\\\\\\\u0{2}72)(?:o|\\\\\\\\u0{2}6[Ff])(?:t|\\\\\\\\u0{2}74)(?:o|\\\\\\\\u0{2}6[Ff])(?:_|\\\\\\\\u0{2}5[Ff]){2}\\\"\\\\s*:/,LOt=/\\\"(?:c|\\\\\\\\u0063)(?:o|\\\\\\\\u006[Ff])(?:n|\\\\\\\\u006[Ee])(?:s|\\\\\\\\u0073)(?:t|\\\\\\\\u0074)(?:r|\\\\\\\\u0072)(?:u|\\\\\\\\u0075)(?:c|\\\\\\\\u0063)(?:t|\\\\\\\\u0074)(?:o|\\\\\\\\u006[Ff])(?:r|\\\\\\\\u0072)\\\"\\\\s*:/,UOt=/^\\\\s*[\\\"[{]|^\\\\s*-?\\\\d{1,16}(\\\\.\\\\d{1,17})?([Ee][+-]?\\\\d+)?\\\\s*$/});function HOt(t){return!t||typeof t.then!=\\\"function\\\"?Promise.resolve(t):t}function $s(t,...e){try{return HOt(t(...e))}catch(r){return Promise.reject(r)}}function qOt(t){let e=typeof t;return t===null||e!==\\\"object\\\"&&e!==\\\"function\\\"}function zOt(t){let e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}function e7(t){if(qOt(t))return String(t);if(zOt(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON==\\\"function\\\")return e7(t.toJSON());throw new Error(\\\"[unstorage] Cannot stringify value!\\\")}function b$e(t){return typeof t==\\\"string\\\"?t:hce+VOt(t)}function w$e(t){return typeof t!=\\\"string\\\"||!t.startsWith(hce)?t:$Ot(t.slice(hce.length))}function $Ot(t){return globalThis.Buffer?globalThis.Buffer.from(t,\\\"base64\\\"):Uint8Array.from(globalThis.atob(t),e=>e.codePointAt(0))}function VOt(t){return globalThis.Buffer?globalThis.Buffer.from(t).toString(\\\"base64\\\"):globalThis.btoa(String.fromCodePoint(...t))}function oc(t){return t&&t.split(\\\"?\\\")[0]?.replace(/[/\\\\\\\\]/g,\\\":\\\").replace(/:+/g,\\\":\\\").replace(/^:|:$/g,\\\"\\\")||\\\"\\\"}function v$e(...t){return oc(t.join(\\\":\\\"))}function t7(t){return t=oc(t),t?t+\\\":\\\":\\\"\\\"}function x$e(t,e){if(e===void 0)return!0;let r=0,n=t.indexOf(\\\":\\\");for(;n>-1;)r++,n=t.indexOf(\\\":\\\",n+1);return r<=e}function E$e(t,e){return e?t.startsWith(e)&&t[t.length-1]!==\\\"$\\\":t[t.length-1]!==\\\"$\\\"}var hce,_$e=x(()=>{u();hce=\\\"base64:\\\"});function A$e(t={}){let e={mounts:{\\\"\\\":t.driver||GOt()},mountpoints:[\\\"\\\"],watching:!1,watchListeners:[],unwatch:{}},r=l=>{for(let d of e.mountpoints)if(l.startsWith(d))return{base:d,relativeKey:l.slice(d.length),driver:e.mounts[d]};return{base:\\\"\\\",relativeKey:l,driver:e.mounts[\\\"\\\"]}},n=(l,d)=>e.mountpoints.filter(f=>f.startsWith(l)||d&&l.startsWith(f)).map(f=>({relativeBase:l.length>f.length?l.slice(f.length):void 0,mountpoint:f,driver:e.mounts[f]})),i=(l,d)=>{if(e.watching){d=oc(d);for(let f of e.watchListeners)f(l,d)}},s=async()=>{if(!e.watching){e.watching=!0;for(let l in e.mounts)e.unwatch[l]=await C$e(e.mounts[l],i,l)}},o=async()=>{if(e.watching){for(let l in e.unwatch)await e.unwatch[l]();e.unwatch={},e.watching=!1}},a=(l,d,f)=>{let p=new Map,h=m=>{let g=p.get(m.base);return g||(g={driver:m.driver,base:m.base,items:[]},p.set(m.base,g)),g};for(let m of l){let g=typeof m==\\\"string\\\",w=oc(g?m:m.key),v=g?void 0:m.value,b=g||!m.options?d:{...d,...m.options},_=r(w);h(_).items.push({key:w,value:v,relativeKey:_.relativeKey,options:b})}return Promise.all([...p.values()].map(m=>f(m))).then(m=>m.flat())},c={hasItem(l,d={}){l=oc(l);let{relativeKey:f,driver:p}=r(l);return $s(p.hasItem,f,d)},getItem(l,d={}){l=oc(l);let{relativeKey:f,driver:p}=r(l);return $s(p.getItem,f,d).then(h=>X9(h))},getItems(l,d={}){return a(l,d,f=>f.driver.getItems?$s(f.driver.getItems,f.items.map(p=>({key:p.relativeKey,options:p.options})),d).then(p=>p.map(h=>({key:v$e(f.base,h.key),value:X9(h.value)}))):Promise.all(f.items.map(p=>$s(f.driver.getItem,p.relativeKey,p.options).then(h=>({key:p.key,value:X9(h)})))))},getItemRaw(l,d={}){l=oc(l);let{relativeKey:f,driver:p}=r(l);return p.getItemRaw?$s(p.getItemRaw,f,d):$s(p.getItem,f,d).then(h=>w$e(h))},async setItem(l,d,f={}){if(d===void 0)return c.removeItem(l);l=oc(l);let{relativeKey:p,driver:h}=r(l);h.setItem&&(await $s(h.setItem,p,e7(d),f),h.watch||i(\\\"update\\\",l))},async setItems(l,d){await a(l,d,async f=>{if(f.driver.setItems)return $s(f.driver.setItems,f.items.map(p=>({key:p.relativeKey,value:e7(p.value),options:p.options})),d);f.driver.setItem&&await Promise.all(f.items.map(p=>$s(f.driver.setItem,p.relativeKey,e7(p.value),p.options)))})},async setItemRaw(l,d,f={}){if(d===void 0)return c.removeItem(l,f);l=oc(l);let{relativeKey:p,driver:h}=r(l);if(h.setItemRaw)await $s(h.setItemRaw,p,d,f);else if(h.setItem)await $s(h.setItem,p,b$e(d),f);else return;h.watch||i(\\\"update\\\",l)},async removeItem(l,d={}){typeof d==\\\"boolean\\\"&&(d={removeMeta:d}),l=oc(l);let{relativeKey:f,driver:p}=r(l);p.removeItem&&(await $s(p.removeItem,f,d),(d.removeMeta||d.removeMata)&&await $s(p.removeItem,f+\\\"$\\\",d),p.watch||i(\\\"remove\\\",l))},async getMeta(l,d={}){typeof d==\\\"boolean\\\"&&(d={nativeOnly:d}),l=oc(l);let{relativeKey:f,driver:p}=r(l),h=Object.create(null);if(p.getMeta&&Object.assign(h,await $s(p.getMeta,f,d)),!d.nativeOnly){let m=await $s(p.getItem,f+\\\"$\\\",d).then(g=>X9(g));m&&typeof m==\\\"object\\\"&&(typeof m.atime==\\\"string\\\"&&(m.atime=new Date(m.atime)),typeof m.mtime==\\\"string\\\"&&(m.mtime=new Date(m.mtime)),Object.assign(h,m))}return h},setMeta(l,d,f={}){return this.setItem(l+\\\"$\\\",d,f)},removeMeta(l,d={}){return this.removeItem(l+\\\"$\\\",d)},async getKeys(l,d={}){l=t7(l);let f=n(l,!0),p=[],h=[],m=!0;for(let w of f){w.driver.flags?.maxDepth||(m=!1);let v=await $s(w.driver.getKeys,w.relativeBase,d);for(let b of v){let _=w.mountpoint+oc(b);p.some(S=>_.startsWith(S))||h.push(_)}p=[w.mountpoint,...p.filter(b=>!b.startsWith(w.mountpoint))]}let g=d.maxDepth!==void 0&&!m;return h.filter(w=>(!g||x$e(w,d.maxDepth))&&E$e(w,l))},async clear(l,d={}){l=t7(l),await Promise.all(n(l,!1).map(async f=>{if(f.driver.clear)return $s(f.driver.clear,f.relativeBase,d);if(f.driver.removeItem){let p=await f.driver.getKeys(f.relativeBase||\\\"\\\",d);return Promise.all(p.map(h=>f.driver.removeItem(h,d)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(l=>S$e(l)))},async watch(l){return await s(),e.watchListeners.push(l),async()=>{e.watchListeners=e.watchListeners.filter(d=>d!==l),e.watchListeners.length===0&&await o()}},async unwatch(){e.watchListeners=[],await o()},mount(l,d){if(l=t7(l),l&&e.mounts[l])throw new Error(`already mounted at ${l}`);return l&&(e.mountpoints.push(l),e.mountpoints.sort((f,p)=>p.length-f.length)),e.mounts[l]=d,e.watching&&Promise.resolve(C$e(d,i,l)).then(f=>{e.unwatch[l]=f}).catch(console.error),c},async unmount(l,d=!0){l=t7(l),!(!l||!e.mounts[l])&&(e.watching&&l in e.unwatch&&(e.unwatch[l]?.(),delete e.unwatch[l]),d&&await S$e(e.mounts[l]),e.mountpoints=e.mountpoints.filter(f=>f!==l),delete e.mounts[l])},getMount(l=\\\"\\\"){l=oc(l)+\\\":\\\";let d=r(l);return{driver:d.driver,base:d.base}},getMounts(l=\\\"\\\",d={}){return l=oc(l),n(l,d.parents).map(p=>({driver:p.driver,base:p.mountpoint}))},keys:(l,d={})=>c.getKeys(l,d),get:(l,d={})=>c.getItem(l,d),set:(l,d,f={})=>c.setItem(l,d,f),has:(l,d={})=>c.hasItem(l,d),del:(l,d={})=>c.removeItem(l,d),remove:(l,d={})=>c.removeItem(l,d)};return c}function C$e(t,e,r){return t.watch?t.watch((n,i)=>e(n,r+i)):()=>{}}async function S$e(t){typeof t.dispose==\\\"function\\\"&&await $s(t.dispose)}var WOt,GOt,T$e=x(()=>{u();y$e();_$e();WOt=\\\"memory\\\",GOt=()=>{let t=new Map;return{name:WOt,getInstance:()=>t,hasItem(e){return t.has(e)},getItem(e){return t.get(e)??null},getItemRaw(e){return t.get(e)??null},setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys(){return[...t.keys()]},clear(){t.clear()},dispose(){t.clear()}}}});function YOt(t){var e;return[t[0],nc((e=t[1])!=null?e:\\\"\\\")]}var KOt,ZOt,QOt,JOt,gce,mce,xq,yce,XOt,I$e,eNt,tNt,WC,bce=x(()=>{u();T$e();VFe();f1();KOt=\\\"idb-keyval\\\",ZOt=(t={})=>{let e=t.base&&t.base.length>0?`${t.base}:`:\\\"\\\",r=i=>e+i,n;return t.dbName&&t.storeName&&(n=Ase(t.dbName,t.storeName)),{name:KOt,options:t,async hasItem(i){return!(typeof await Tse(r(i),n)>\\\"u\\\")},async getItem(i){return await Tse(r(i),n)??null},setItem(i,s){return HFe(r(i),s,n)},removeItem(i){return qFe(r(i),n)},getKeys(){return $Fe(n)},clear(){return zFe(n)}}},QOt=\\\"WALLET_CONNECT_V2_INDEXED_DB\\\",JOt=\\\"keyvaluestorage\\\",gce=class{constructor(){this.indexedDb=A$e({driver:ZOt({dbName:QOt,storeName:JOt})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let r=await this.indexedDb.getItem(e);if(r!==null)return r}async setItem(e,r){await this.indexedDb.setItem(e,Vo(r))}async removeItem(e){await this.indexedDb.removeItem(e)}},mce=typeof globalThis<\\\"u\\\"?globalThis:typeof window<\\\"u\\\"?window:typeof globalThis<\\\"u\\\"?globalThis:typeof self<\\\"u\\\"?self:{},xq={exports:{}};(function(){let t;function e(){}t=e,t.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},t.prototype.setItem=function(r,n){this[r]=String(n)},t.prototype.removeItem=function(r){delete this[r]},t.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},t.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},t.prototype.__defineGetter__(\\\"length\\\",function(){return Object.keys(this).length}),typeof mce<\\\"u\\\"&&mce.localStorage?xq.exports=mce.localStorage:typeof window<\\\"u\\\"&&window.localStorage?xq.exports=window.localStorage:xq.exports=new e})();yce=class{constructor(){this.localStorage=xq.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(YOt)}async getItem(e){let r=this.localStorage.getItem(e);if(r!==null)return nc(r)}async setItem(e,r){this.localStorage.setItem(e,Vo(r))}async removeItem(e){this.localStorage.removeItem(e)}},XOt=\\\"wc_storage_version\\\",I$e=1,eNt=async(t,e,r)=>{let n=XOt,i=await e.getItem(n);if(i&&i>=I$e){r(e);return}let s=await t.getKeys();if(!s.length){r(e);return}let o=[];for(;s.length;){let a=s.shift();if(!a)continue;let c=a.toLowerCase();if(c.includes(\\\"wc@\\\")||c.includes(\\\"walletconnect\\\")||c.includes(\\\"wc_\\\")||c.includes(\\\"wallet_connect\\\")){let l=await t.getItem(a);await e.setItem(a,l),o.push(a)}}await e.setItem(n,I$e),r(e),tNt(t,o)},tNt=async(t,e)=>{e.length&&e.forEach(async r=>{await t.removeItem(r)})},WC=class{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};let e=new yce;this.storage=e;try{let r=new gce;eNt(e,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,r){return await this.initialize(),this.storage.setItem(e,r)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let r=setInterval(()=>{this.initialized&&(clearInterval(r),e())},20)})}}});var P$e=q((Kcn,R$e)=>{\\\"use strict\\\";u();function rNt(t){try{return JSON.stringify(t)}catch{return'\\\"[Circular]\\\"'}}R$e.exports=nNt;function nNt(t,e,r){var n=r&&r.stringify||rNt,i=1;if(typeof t==\\\"object\\\"&&t!==null){var s=e.length+i;if(s===1)return t;var o=new Array(s);o[0]=n(t);for(var a=1;a<s;a++)o[a]=n(e[a]);return o.join(\\\" \\\")}if(typeof t!=\\\"string\\\")return t;var c=e.length;if(c===0)return t;for(var l=\\\"\\\",d=1-i,f=-1,p=t&&t.length||0,h=0;h<p;){if(t.charCodeAt(h)===37&&h+1<p){switch(f=f>-1?f:0,t.charCodeAt(h+1)){case 100:case 102:if(d>=c||e[d]==null)break;f<h&&(l+=t.slice(f,h)),l+=Number(e[d]),f=h+2,h++;break;case 105:if(d>=c||e[d]==null)break;f<h&&(l+=t.slice(f,h)),l+=Math.floor(Number(e[d])),f=h+2,h++;break;case 79:case 111:case 106:if(d>=c||e[d]===void 0)break;f<h&&(l+=t.slice(f,h));var m=typeof e[d];if(m===\\\"string\\\"){l+=\\\"'\\\"+e[d]+\\\"'\\\",f=h+2,h++;break}if(m===\\\"function\\\"){l+=e[d].name||\\\"<anonymous>\\\",f=h+2,h++;break}l+=n(e[d]),f=h+2,h++;break;case 115:if(d>=c)break;f<h&&(l+=t.slice(f,h)),l+=String(e[d]),f=h+2,h++;break;case 37:f<h&&(l+=t.slice(f,h)),l+=\\\"%\\\",f=h+2,h++,d--;break}++d}++h}return f===-1?t:(f<p&&(l+=t.slice(f)),l)}});var xce=q((Qcn,B$e)=>{\\\"use strict\\\";u();var O$e=P$e();B$e.exports=ih;var r7=pNt().console||{},iNt={mapHttpRequest:Eq,mapHttpResponse:Eq,wrapRequestSerializer:wce,wrapResponseSerializer:wce,wrapErrorSerializer:wce,req:Eq,res:Eq,err:lNt};function sNt(t,e){return Array.isArray(t)?t.filter(function(n){return n!==\\\"!stdSerializers.err\\\"}):t===!0?Object.keys(e):!1}function ih(t){t=t||{},t.browser=t.browser||{};let e=t.browser.transmit;if(e&&typeof e.send!=\\\"function\\\")throw Error(\\\"pino: transmit option must have a send function\\\");let r=t.browser.write||r7;t.browser.write&&(t.browser.asObject=!0);let n=t.serializers||{},i=sNt(t.browser.serialize,n),s=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf(\\\"!stdSerializers.err\\\")>-1&&(s=!1);let o=[\\\"error\\\",\\\"fatal\\\",\\\"warn\\\",\\\"info\\\",\\\"debug\\\",\\\"trace\\\"];typeof r==\\\"function\\\"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),t.enabled===!1&&(t.level=\\\"silent\\\");let a=t.level||\\\"info\\\",c=Object.create(r);c.log||(c.log=n7),Object.defineProperty(c,\\\"levelVal\\\",{get:d}),Object.defineProperty(c,\\\"level\\\",{get:f,set:p});let l={transmit:e,serialize:i,asObject:t.browser.asObject,levels:o,timestamp:uNt(t)};c.levels=ih.levels,c.level=a,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=n7,c.serializers=n,c._serialize=i,c._stdErrSerialize=s,c.child=h,e&&(c._logEvent=vce());function d(){return this.level===\\\"silent\\\"?1/0:this.levels.values[this.level]}function f(){return this._level}function p(m){if(m!==\\\"silent\\\"&&!this.levels.values[m])throw Error(\\\"unknown level \\\"+m);this._level=m,GC(l,c,\\\"error\\\",\\\"log\\\"),GC(l,c,\\\"fatal\\\",\\\"error\\\"),GC(l,c,\\\"warn\\\",\\\"error\\\"),GC(l,c,\\\"info\\\",\\\"log\\\"),GC(l,c,\\\"debug\\\",\\\"log\\\"),GC(l,c,\\\"trace\\\",\\\"log\\\")}function h(m,g){if(!m)throw new Error(\\\"missing bindings for child Pino\\\");g=g||{},i&&m.serializers&&(g.serializers=m.serializers);let w=g.serializers;if(i&&w){var v=Object.assign({},n,w),b=t.browser.serialize===!0?Object.keys(v):i;delete m.serializers,_q([m],b,v,this._stdErrSerialize)}function _(S){this._childLevel=(S._childLevel|0)+1,this.error=KC(S,m,\\\"error\\\"),this.fatal=KC(S,m,\\\"fatal\\\"),this.warn=KC(S,m,\\\"warn\\\"),this.info=KC(S,m,\\\"info\\\"),this.debug=KC(S,m,\\\"debug\\\"),this.trace=KC(S,m,\\\"trace\\\"),v&&(this.serializers=v,this._serialize=b),e&&(this._logEvent=vce([].concat(S._logEvent.bindings,m)))}return _.prototype=this,new _(this)}return c}ih.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:\\\"trace\\\",20:\\\"debug\\\",30:\\\"info\\\",40:\\\"warn\\\",50:\\\"error\\\",60:\\\"fatal\\\"}};ih.stdSerializers=iNt;ih.stdTimeFunctions=Object.assign({},{nullTime:N$e,epochTime:k$e,unixTime:dNt,isoTime:fNt});function GC(t,e,r,n){let i=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?n7:i[r]?i[r]:r7[r]||r7[n]||n7,oNt(t,e,r)}function oNt(t,e,r){!t.transmit&&e[r]===n7||(e[r]=(function(n){return function(){let s=t.timestamp(),o=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===r7?r7:this;for(var c=0;c<o.length;c++)o[c]=arguments[c];if(t.serialize&&!t.asObject&&_q(o,this._serialize,this.serializers,this._stdErrSerialize),t.asObject?n.call(a,aNt(this,r,o,s)):n.apply(a,o),t.transmit){let l=t.transmit.level||e.level,d=ih.levels.values[l],f=ih.levels.values[r];if(f<d)return;cNt(this,{ts:s,methodLevel:r,methodValue:f,transmitLevel:l,transmitValue:ih.levels.values[t.transmit.level||e.level],send:t.transmit.send,val:e.levelVal},o)}}})(e[r]))}function aNt(t,e,r,n){t._serialize&&_q(r,t._serialize,t.serializers,t._stdErrSerialize);let i=r.slice(),s=i[0],o={};n&&(o.time=n),o.level=ih.levels.values[e];let a=(t._childLevel|0)+1;if(a<1&&(a=1),s!==null&&typeof s==\\\"object\\\"){for(;a--&&typeof i[0]==\\\"object\\\";)Object.assign(o,i.shift());s=i.length?O$e(i.shift(),i):void 0}else typeof s==\\\"string\\\"&&(s=O$e(i.shift(),i));return s!==void 0&&(o.msg=s),o}function _q(t,e,r,n){for(let i in t)if(n&&t[i]instanceof Error)t[i]=ih.stdSerializers.err(t[i]);else if(typeof t[i]==\\\"object\\\"&&!Array.isArray(t[i]))for(let s in t[i])e&&e.indexOf(s)>-1&&s in r&&(t[i][s]=r[s](t[i][s]))}function KC(t,e,r){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return t[r].apply(this,n)}}function cNt(t,e,r){let n=e.send,i=e.ts,s=e.methodLevel,o=e.methodValue,a=e.val,c=t._logEvent.bindings;_q(r,t._serialize||Object.keys(t.serializers),t.serializers,t._stdErrSerialize===void 0?!0:t._stdErrSerialize),t._logEvent.ts=i,t._logEvent.messages=r.filter(function(l){return c.indexOf(l)===-1}),t._logEvent.level.label=s,t._logEvent.level.value=o,n(s,t._logEvent,a),t._logEvent=vce(c)}function vce(t){return{ts:0,messages:[],bindings:t||[],level:{label:\\\"\\\",value:0}}}function lNt(t){let e={type:t.constructor.name,msg:t.message,stack:t.stack};for(let r in t)e[r]===void 0&&(e[r]=t[r]);return e}function uNt(t){return typeof t.timestamp==\\\"function\\\"?t.timestamp:t.timestamp===!1?N$e:k$e}function Eq(){return{}}function wce(t){return t}function n7(){}function N$e(){return!1}function k$e(){return Date.now()}function dNt(){return Math.round(Date.now()/1e3)}function fNt(){return new Date(Date.now()).toISOString()}function pNt(){function t(e){return typeof e<\\\"u\\\"&&e}try{return typeof globalThis<\\\"u\\\"||Object.defineProperty(Object.prototype,\\\"globalThis\\\",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return t(self)||t(window)||t(this)||{}}}});var Sce={};ue(Sce,{MAX_LOG_SIZE_IN_BYTES_DEFAULT:()=>Iq,PINO_CUSTOM_CONTEXT_KEY:()=>ZC,PINO_LOGGER_DEFAULTS:()=>L$e,formatChildLoggerContext:()=>j$e,generateChildLogger:()=>rr,generateClientLogger:()=>H$e,generatePlatformLogger:()=>P2,generateServerLogger:()=>q$e,getBrowserLoggerContext:()=>U$e,getDefaultLoggerOptions:()=>Ll,getLoggerContext:()=>Ir,pino:()=>sh.default,setBrowserLoggerContext:()=>F$e});function Ll(t){return Tq(Aq({},t),{level:t?.level||L$e.level})}function U$e(t,e=ZC){return t[e]||\\\"\\\"}function F$e(t,e,r=ZC){return t[r]=e,t}function Ir(t,e=ZC){let r=\\\"\\\";return typeof t.bindings>\\\"u\\\"?r=U$e(t,e):r=t.bindings().context||\\\"\\\",r}function j$e(t,e,r=ZC){let n=Ir(t,r);return n.trim()?`${n}/${e}`:e}function rr(t,e,r=ZC){let n=j$e(t,e,r),i=t.child({context:n});return F$e(i,n,r)}function H$e(t){var e,r;let n=new _ce((e=t.opts)==null?void 0:e.level,t.maxSizeInBytes);return{logger:(0,x0.default)(Tq(Aq({},t.opts),{level:\\\"trace\\\",browser:Tq(Aq({},(r=t.opts)==null?void 0:r.browser),{write:i=>n.write(i)})})),chunkLoggerController:n}}function q$e(t){var e;let r=new Cce((e=t.opts)==null?void 0:e.level,t.maxSizeInBytes);return{logger:(0,x0.default)(Tq(Aq({},t.opts),{level:\\\"trace\\\"}),r),chunkLoggerController:r}}function P2(t){return typeof t.loggerOverride<\\\"u\\\"&&typeof t.loggerOverride!=\\\"string\\\"?{logger:t.loggerOverride,chunkLoggerController:null}:typeof window<\\\"u\\\"?H$e(t):q$e(t)}var x0,sh,L$e,ZC,Iq,Ece,Cq,Sq,_ce,Cce,hNt,mNt,gNt,M$e,yNt,bNt,D$e,Aq,Tq,C1=x(()=>{u();x0=Me(xce()),sh=Me(xce());f1();L$e={level:\\\"info\\\"},ZC=\\\"custom_context\\\",Iq=1e3*1024,Ece=class{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}},Cq=class{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let r=new Ece(e);if(r.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${r.size}`);for(;this.size+r.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=r),this.tail=r):(this.head=r,this.tail=r),this.lengthInNodes++,this.sizeInBytes+=r.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],r=this.head;for(;r!==null;)e.push(r.value),r=r.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let r=e.value;return e=e.next,{done:!1,value:r}}}}},Sq=class{constructor(e,r=Iq){this.level=e??\\\"error\\\",this.levelValue=x0.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=r,this.logs=new Cq(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,r){r===x0.levels.values.error?console.error(e):r===x0.levels.values.warn?console.warn(e):r===x0.levels.values.debug||r===x0.levels.values.trace&&console.trace(e)}appendToLogs(e){this.logs.append(Vo({timestamp:new Date().toISOString(),log:e}));let r=typeof e==\\\"string\\\"?JSON.parse(e).level:e.level;r>=this.levelValue&&this.forwardToConsole(e,r)}getLogs(){return this.logs}clearLogs(){this.logs=new Cq(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let r=this.getLogArray();return r.push(Vo({extraMetadata:e})),new Blob(r,{type:\\\"application/json\\\"})}},_ce=class{constructor(e,r=Iq){this.baseChunkLogger=new Sq(e,r)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let r=URL.createObjectURL(this.logsToBlob(e)),n=document.createElement(\\\"a\\\");n.href=r,n.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r)}},Cce=class{constructor(e,r=Iq){this.baseChunkLogger=new Sq(e,r)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}},hNt=Object.defineProperty,mNt=Object.defineProperties,gNt=Object.getOwnPropertyDescriptors,M$e=Object.getOwnPropertySymbols,yNt=Object.prototype.hasOwnProperty,bNt=Object.prototype.propertyIsEnumerable,D$e=(t,e,r)=>e in t?hNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Aq=(t,e)=>{for(var r in e||(e={}))yNt.call(e,r)&&D$e(t,r,e[r]);if(M$e)for(var r of M$e(e))bNt.call(e,r)&&D$e(t,r,e[r]);return t},Tq=(t,e)=>mNt(t,gNt(e))});var V$e,wNt,vNt,z$e,Rq,xNt,ENt,_Nt,Pq,Oq,Nq,kq,Bq,Mq,Dq,Lq,Uq,Fq,CNt,SNt,$$e,jq,Hq,Ace=x(()=>{u();wq();V$e=Me(ho()),wNt=Object.defineProperty,vNt=(t,e,r)=>e in t?wNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,z$e=(t,e,r)=>vNt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Rq=class extends bo{constructor(e){super(),this.opts=e,z$e(this,\\\"protocol\\\",\\\"wc\\\"),z$e(this,\\\"version\\\",2)}},xNt=Object.defineProperty,ENt=(t,e,r)=>e in t?xNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_Nt=(t,e,r)=>ENt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Pq=class extends bo{constructor(e,r){super(),this.core=e,this.logger=r,_Nt(this,\\\"records\\\",new Map)}},Oq=class{constructor(e,r){this.logger=e,this.core=r}},Nq=class extends bo{constructor(e,r){super(),this.relayer=e,this.logger=r}},kq=class extends bo{constructor(e){super()}},Bq=class{constructor(e,r,n,i){this.core=e,this.logger=r,this.name=n}},Mq=class extends bo{constructor(e,r){super(),this.relayer=e,this.logger=r}},Dq=class extends bo{constructor(e,r){super(),this.core=e,this.logger=r}},Lq=class{constructor(e,r,n){this.core=e,this.logger=r,this.store=n}},Uq=class{constructor(e,r){this.projectId=e,this.logger=r}},Fq=class{constructor(e,r,n){this.core=e,this.logger=r,this.telemetryEnabled=n}},CNt=Object.defineProperty,SNt=(t,e,r)=>e in t?CNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$$e=(t,e,r)=>SNt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),jq=class{constructor(e){this.opts=e,$$e(this,\\\"protocol\\\",\\\"wc\\\"),$$e(this,\\\"version\\\",2)}},Hq=class{constructor(e){this.client=e}}});var W$e,G$e,K$e,Z$e,qq,i7,Tce,zq,S1,s7,$q=x(()=>{u();W$e=\\\"PARSE_ERROR\\\",G$e=\\\"INVALID_REQUEST\\\",K$e=\\\"METHOD_NOT_FOUND\\\",Z$e=\\\"INVALID_PARAMS\\\",qq=\\\"INTERNAL_ERROR\\\",i7=\\\"SERVER_ERROR\\\",Tce=[-32700,-32600,-32601,-32602,-32603],zq=[-32e3,-32099],S1={[W$e]:{code:-32700,message:\\\"Parse error\\\"},[G$e]:{code:-32600,message:\\\"Invalid Request\\\"},[K$e]:{code:-32601,message:\\\"Method not found\\\"},[Z$e]:{code:-32602,message:\\\"Invalid params\\\"},[qq]:{code:-32603,message:\\\"Internal error\\\"},[i7]:{code:-32e3,message:\\\"Server error\\\"}},s7=i7});function ANt(t){return t<=zq[0]&&t>=zq[1]}function Vq(t){return Tce.includes(t)}function Q$e(t){return typeof t==\\\"number\\\"}function Wq(t){return Object.keys(S1).includes(t)?S1[t]:S1[s7]}function Gq(t){let e=Object.values(S1).find(r=>r.code===t);return e||S1[s7]}function TNt(t){if(typeof t.error.code>\\\"u\\\")return{valid:!1,error:\\\"Missing code for JSON-RPC error\\\"};if(typeof t.error.message>\\\"u\\\")return{valid:!1,error:\\\"Missing message for JSON-RPC error\\\"};if(!Q$e(t.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${t.error.code}`};if(Vq(t.error.code)){let e=Gq(t.error.code);if(e.message!==S1[s7].message&&t.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${t.error.code}`}}return{valid:!0}}function o7(t,e,r){return t.message.includes(\\\"getaddrinfo ENOTFOUND\\\")||t.message.includes(\\\"connect ECONNREFUSED\\\")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var Ice=x(()=>{u();$q()});var Y$e=q(A1=>{\\\"use strict\\\";u();Object.defineProperty(A1,\\\"__esModule\\\",{value:!0});A1.isBrowserCryptoAvailable=A1.getSubtleCrypto=A1.getBrowerCrypto=void 0;function Rce(){return globalThis?.crypto||globalThis?.msCrypto||{}}A1.getBrowerCrypto=Rce;function J$e(){let t=Rce();return t.subtle||t.webkitSubtle}A1.getSubtleCrypto=J$e;function INt(){return!!Rce()&&!!J$e()}A1.isBrowserCryptoAvailable=INt});var tVe=q(T1=>{\\\"use strict\\\";u();Object.defineProperty(T1,\\\"__esModule\\\",{value:!0});T1.isBrowser=T1.isNode=T1.isReactNative=void 0;function X$e(){return typeof document>\\\"u\\\"&&typeof navigator<\\\"u\\\"&&navigator.product===\\\"ReactNative\\\"}T1.isReactNative=X$e;function eVe(){return typeof process<\\\"u\\\"&&typeof process.versions<\\\"u\\\"&&typeof process.versions.node<\\\"u\\\"}T1.isNode=eVe;function RNt(){return!X$e()&&!eVe()}T1.isBrowser=RNt});var Pce=q(Kq=>{\\\"use strict\\\";u();Object.defineProperty(Kq,\\\"__esModule\\\",{value:!0});var rVe=dC();rVe.__exportStar(Y$e(),Kq);rVe.__exportStar(tVe(),Kq)});var wo={};ue(wo,{isNodeJs:()=>iVe});var nVe,iVe,sVe=x(()=>{u();nVe=Me(Pce());So(wo,Me(Pce()));iVe=nVe.isNode});function hs(t=3){let e=Date.now()*Math.pow(10,t),r=Math.floor(Math.random()*Math.pow(10,t));return e+r}function Vs(t=6){return BigInt(hs(t))}function Ws(t,e,r){return{id:r||hs(),jsonrpc:\\\"2.0\\\",method:t,params:e}}function gf(t,e){return{id:t,jsonrpc:\\\"2.0\\\",result:e}}function Ul(t,e,r){return{id:t,jsonrpc:\\\"2.0\\\",error:oVe(e,r)}}function oVe(t,e){return typeof t>\\\"u\\\"?Wq(qq):(typeof t==\\\"string\\\"&&(t=Object.assign(Object.assign({},Wq(i7)),{message:t})),typeof e<\\\"u\\\"&&(t.data=e),Vq(t.code)&&(t=Gq(t.code)),t)}var aVe=x(()=>{u();Ice();$q()});function PNt(t){return t.includes(\\\"*\\\")?Qq(t):!/\\\\W/g.test(t)}function Zq(t){return t===\\\"*\\\"}function Qq(t){return Zq(t)?!0:!(!t.includes(\\\"*\\\")||t.split(\\\"*\\\").length!==2||t.split(\\\"*\\\").filter(e=>e.trim()===\\\"\\\").length!==1)}function ONt(t){return!Zq(t)&&Qq(t)&&!t.split(\\\"*\\\")[0].trim()}function NNt(t){return!Zq(t)&&Qq(t)&&!t.split(\\\"*\\\")[1].trim()}var cVe=x(()=>{u()});var a7,Oce,Jq,c7,lVe=x(()=>{u();a7=class{},Oce=class extends a7{constructor(e){super()}},Jq=class extends a7{constructor(){super()}},c7=class extends Jq{constructor(e){super()}}});var uVe=x(()=>{u();lVe()});function MNt(t){let e=t.match(new RegExp(/^\\\\w+:/,\\\"gi\\\"));if(!(!e||!e.length))return e[0]}function dVe(t,e){let r=MNt(t);return typeof r>\\\"u\\\"?!1:new RegExp(e).test(r)}function Yq(t){return dVe(t,kNt)}function Xq(t){return dVe(t,BNt)}function Nce(t){return new RegExp(\\\"wss?://localhost(:d{2,5})?\\\").test(t)}var kNt,BNt,fVe=x(()=>{u();kNt=\\\"^https?:\\\",BNt=\\\"^wss?:\\\"});function kce(t){return typeof t==\\\"object\\\"&&\\\"id\\\"in t&&\\\"jsonrpc\\\"in t&&t.jsonrpc===\\\"2.0\\\"}function yf(t){return kce(t)&&\\\"method\\\"in t}function Fl(t){return kce(t)&&(Ii(t)||nn(t))}function Ii(t){return\\\"result\\\"in t}function nn(t){return\\\"error\\\"in t}function DNt(t){return\\\"error\\\"in t&&t.valid===!1}var pVe=x(()=>{u()});var Ra={};ue(Ra,{DEFAULT_ERROR:()=>s7,IBaseJsonRpcProvider:()=>Jq,IEvents:()=>a7,IJsonRpcConnection:()=>Oce,IJsonRpcProvider:()=>c7,INTERNAL_ERROR:()=>qq,INVALID_PARAMS:()=>Z$e,INVALID_REQUEST:()=>G$e,METHOD_NOT_FOUND:()=>K$e,PARSE_ERROR:()=>W$e,RESERVED_ERROR_CODES:()=>Tce,SERVER_ERROR:()=>i7,SERVER_ERROR_CODE_RANGE:()=>zq,STANDARD_ERROR_MAP:()=>S1,formatErrorMessage:()=>oVe,formatJsonRpcError:()=>Ul,formatJsonRpcRequest:()=>Ws,formatJsonRpcResult:()=>gf,getBigIntRpcId:()=>Vs,getError:()=>Wq,getErrorByCode:()=>Gq,isHttpUrl:()=>Yq,isJsonRpcError:()=>nn,isJsonRpcPayload:()=>kce,isJsonRpcRequest:()=>yf,isJsonRpcResponse:()=>Fl,isJsonRpcResult:()=>Ii,isJsonRpcValidationInvalid:()=>DNt,isLocalhostUrl:()=>Nce,isNodeJs:()=>iVe,isReservedErrorCode:()=>Vq,isServerErrorCode:()=>ANt,isValidDefaultRoute:()=>Zq,isValidErrorCode:()=>Q$e,isValidLeadingWildcardRoute:()=>ONt,isValidRoute:()=>PNt,isValidTrailingWildcardRoute:()=>NNt,isValidWildcardRoute:()=>Qq,isWsUrl:()=>Xq,parseConnectionError:()=>o7,payloadId:()=>hs,validateJsonRpcError:()=>TNt});var oh=x(()=>{u();$q();Ice();sVe();So(Ra,wo);aVe();cVe();uVe();fVe();pVe()});var Bce={};ue(Bce,{JsonRpcProvider:()=>O2,default:()=>O2});var hVe,O2,l7=x(()=>{u();hVe=Me(ho());oh();O2=class extends c7{constructor(e){super(e),this.events=new hVe.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict(Ws(e.method,e.params||[],e.id||Vs().toString()),r)}async requestStrict(e,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(s){i(s)}this.events.on(`${e.id}`,s=>{nn(s)?i(s.error):n(s.result)});try{await this.connection.send(e,r)}catch(s){i(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit(\\\"payload\\\",e),Fl(e)?this.events.emit(`${e.id}`,e):this.events.emit(\\\"message\\\",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit(\\\"error\\\",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:\\\"\\\"}`)),this.events.emit(\\\"disconnect\\\")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e==\\\"string\\\"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit(\\\"connect\\\"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on(\\\"payload\\\",e=>this.onPayload(e)),this.connection.on(\\\"close\\\",e=>this.onClose(e)),this.connection.on(\\\"error\\\",e=>this.events.emit(\\\"error\\\",e)),this.connection.on(\\\"register_error\\\",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}});var gVe=q((qln,mVe)=>{\\\"use strict\\\";u();mVe.exports=function(){throw new Error(\\\"ws does not work in the browser. Browser clients must use the native WebSocket object\\\")}});var wVe,LNt,UNt,yVe,bVe,FNt,QC,Mce=x(()=>{u();wVe=Me(ho());f1();oh();LNt=()=>typeof WebSocket<\\\"u\\\"?WebSocket:typeof globalThis<\\\"u\\\"&&typeof globalThis.WebSocket<\\\"u\\\"?globalThis.WebSocket:typeof window<\\\"u\\\"&&typeof window.WebSocket<\\\"u\\\"?window.WebSocket:typeof self<\\\"u\\\"&&typeof self.WebSocket<\\\"u\\\"?self.WebSocket:gVe(),UNt=()=>typeof WebSocket<\\\"u\\\"||typeof globalThis<\\\"u\\\"&&typeof globalThis.WebSocket<\\\"u\\\"||typeof window<\\\"u\\\"&&typeof window.WebSocket<\\\"u\\\"||typeof self<\\\"u\\\"&&typeof self.WebSocket<\\\"u\\\",yVe=t=>t.split(\\\"?\\\")[0],bVe=10,FNt=LNt(),QC=class{constructor(e){if(this.url=e,this.events=new wVe.EventEmitter,this.registering=!1,!Xq(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<\\\"u\\\"}get connecting(){return this.registering}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,r)=>{if(typeof this.socket>\\\"u\\\"){r(new Error(\\\"Connection already closed\\\"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e){typeof this.socket>\\\"u\\\"&&(this.socket=await this.register());try{this.socket.send(Vo(e))}catch(r){this.onError(e.id,r)}}register(e=this.url){if(!Xq(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount(\\\"register_error\\\")>=r||this.events.listenerCount(\\\"open\\\")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once(\\\"register_error\\\",s=>{this.resetMaxListeners(),i(s)}),this.events.once(\\\"open\\\",()=>{if(this.resetMaxListeners(),typeof this.socket>\\\"u\\\")return i(new Error(\\\"WebSocket connection is missing or invalid\\\"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((r,n)=>{let i=(0,Ra.isReactNative)()?void 0:{rejectUnauthorized:!Nce(e)},s=new FNt(e,[],i);UNt()?s.onerror=o=>{let a=o;n(this.emitError(a.error))}:s.on(\\\"error\\\",o=>{n(this.emitError(o))}),s.onopen=()=>{this.onOpen(s),r(s)}})}onOpen(e){e.onmessage=r=>this.onPayload(r),e.onclose=r=>this.onClose(r),this.socket=e,this.registering=!1,this.events.emit(\\\"open\\\")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit(\\\"close\\\",e)}onPayload(e){if(typeof e.data>\\\"u\\\")return;let r=typeof e.data==\\\"string\\\"?nc(e.data):e.data;this.events.emit(\\\"payload\\\",r)}onError(e,r){let n=this.parseError(r),i=n.message||n.toString(),s=Ul(e,i);this.events.emit(\\\"payload\\\",s)}parseError(e,r=this.url){return o7(e,yVe(r),\\\"WS\\\")}resetMaxListeners(){this.events.getMaxListeners()>bVe&&this.events.setMaxListeners(bVe)}emitError(e){let r=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${yVe(this.url)}`));return this.events.emit(\\\"register_error\\\",r),r}}});function wkt(t,e){if(t.length>=255)throw new TypeError(\\\"Alphabet too long\\\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),o=s.charCodeAt(0);if(r[o]!==255)throw new TypeError(s+\\\" is ambiguous\\\");r[o]=i}var a=t.length,c=t.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function f(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError(\\\"Expected Uint8Array\\\");if(m.length===0)return\\\"\\\";for(var g=0,w=0,v=0,b=m.length;v!==b&&m[v]===0;)v++,g++;for(var _=(b-v)*d+1>>>0,S=new Uint8Array(_);v!==b;){for(var T=m[v],N=0,O=_-1;(T!==0||N<w)&&O!==-1;O--,N++)T+=256*S[O]>>>0,S[O]=T%a>>>0,T=T/a>>>0;if(T!==0)throw new Error(\\\"Non-zero carry\\\");w=N,v++}for(var L=_-w;L!==_&&S[L]===0;)L++;for(var B=c.repeat(g);L<_;++L)B+=t.charAt(S[L]);return B}function p(m){if(typeof m!=\\\"string\\\")throw new TypeError(\\\"Expected String\\\");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==\\\" \\\"){for(var w=0,v=0;m[g]===c;)w++,g++;for(var b=(m.length-g)*l+1>>>0,_=new Uint8Array(b);m[g];){var S=r[m.charCodeAt(g)];if(S===255)return;for(var T=0,N=b-1;(S!==0||T<v)&&N!==-1;N--,T++)S+=a*_[N]>>>0,_[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error(\\\"Non-zero carry\\\");v=T,g++}if(m[g]!==\\\" \\\"){for(var O=b-v;O!==b&&_[O]===0;)O++;for(var L=new Uint8Array(w+(b-O)),B=w;O!==b;)L[B++]=_[O++];return L}}}function h(m){var g=p(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:f,decodeUnsafe:p,decode:h}}function oBt(t){return t.reduce((e,r)=>(e+=iBt[r],e),\\\"\\\")}function aBt(t){let e=[];for(let r of t){let n=sBt[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}function YVe(t,e,r){e=e||[],r=r||0;for(var n=r;t>=pBt;)e[r++]=t&255|_Ve,t/=128;for(;t&fBt;)e[r++]=t&255|_Ve,t>>>=7;return e[r]=t|0,YVe.bytes=r-n+1,e}function Vce(t,n){var r=0,n=n||0,i=0,s=n,o,a=t.length;do{if(s>=a)throw Vce.bytes=0,new RangeError(\\\"Could not decode varint\\\");o=t[s++],r+=i<28?(o&CVe)<<i:(o&CVe)*Math.pow(2,i),i+=7}while(o>=mBt);return Vce.bytes=s-n,r}function BBt(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(t):new Uint8Array(t)}function iWe(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}function DBt(t,e=\\\"utf8\\\"){let r=MBt[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t,\\\"utf8\\\"):r.decoder.decode(`${r.prefix}${t}`)}function lMt(){}function BVe(t){if(!t||typeof t!=\\\"object\\\")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null?Object.prototype.toString.call(t)===\\\"[object Object]\\\":!1}function MVe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function DVe(t){return t==null?t===void 0?\\\"[object Undefined]\\\":\\\"[object Null]\\\":Object.prototype.toString.call(t)}function BMt(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)}function MMt(t,e,r){return p7(t,e,void 0,void 0,void 0,void 0,r)}function p7(t,e,r,n,i,s,o){let a=o(t,e,r,n,i,s);if(a!==void 0)return a;if(typeof t==typeof e)switch(typeof t){case\\\"bigint\\\":case\\\"string\\\":case\\\"boolean\\\":case\\\"symbol\\\":case\\\"undefined\\\":return t===e;case\\\"number\\\":return t===e||Object.is(t,e);case\\\"function\\\":return t===e;case\\\"object\\\":return h7(t,e,s,o)}return h7(t,e,s,o)}function h7(t,e,r,n){if(Object.is(t,e))return!0;let i=DVe(t),s=DVe(e);if(i===LVe&&(i=Fce),s===LVe&&(s=Fce),i!==s)return!1;switch(i){case dMt:return t.toString()===e.toString();case fMt:{let c=t.valueOf(),l=e.valueOf();return BMt(c,l)}case pMt:case mMt:case hMt:return Object.is(t.valueOf(),e.valueOf());case uMt:return t.source===e.source&&t.flags===e.flags;case wMt:return t===e}r=r??new Map;let o=r.get(t),a=r.get(e);if(o!=null&&a!=null)return o===e;r.set(t,e),r.set(e,t);try{switch(i){case gMt:{if(t.size!==e.size)return!1;for(let[c,l]of t.entries())if(!e.has(c)||!p7(l,e.get(c),c,t,e,r,n))return!1;return!0}case yMt:{if(t.size!==e.size)return!1;let c=Array.from(t.values()),l=Array.from(e.values());for(let d=0;d<c.length;d++){let f=c[d],p=l.findIndex(h=>p7(f,h,void 0,t,e,r,n));if(p===-1)return!1;l.splice(p,1)}return!0}case bMt:case _Mt:case CMt:case SMt:case AMt:case TMt:case IMt:case RMt:case PMt:case OMt:case NMt:case kMt:{if(typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(t)!==globalThis.Buffer.isBuffer(e)||t.length!==e.length)return!1;for(let c=0;c<t.length;c++)if(!p7(t[c],e[c],c,t,e,r,n))return!1;return!0}case vMt:return t.byteLength!==e.byteLength?!1:h7(new Uint8Array(t),new Uint8Array(e),r,n);case EMt:return t.byteLength!==e.byteLength||t.byteOffset!==e.byteOffset?!1:h7(new Uint8Array(t),new Uint8Array(e),r,n);case xMt:return t.name===e.name&&t.message===e.message;case Fce:{if(!(h7(t.constructor,e.constructor,r,n)||BVe(t)&&BVe(e)))return!1;let c=[...Object.keys(t),...MVe(t)],l=[...Object.keys(e),...MVe(e)];if(c.length!==l.length)return!1;for(let d=0;d<c.length;d++){let f=c[d],p=t[f];if(!Object.hasOwn(e,f))return!1;let h=e[f];if(!p7(p,h,f,t,e,r,n))return!1}return!0}default:return!1}}finally{r.delete(t),r.delete(e)}}function DMt(t,e){return MMt(t,e,lMt)}var E0,Ye,$Ve,VVe,WVe,rz,lh,jNt,HNt,qNt,vVe,zNt,$Nt,VNt,WNt,GNt,xVe,KNt,gle,ZNt,GVe,QNt,Gs,JNt,id,YNt,jce,kn,tz,XNt,ekt,EVe,Hl,tkt,rkt,sun,nkt,ikt,u7,I1,bf,skt,okt,akt,ql,ckt,lkt,ukt,KVe,YC,dkt,fkt,pkt,hkt,vf,ch,sd,R1,P1,XC,mkt,gkt,ykt,bkt,vkt,xkt,ZVe,Ekt,_kt,Hce,qce,zce,QVe,$ce,nz,m7,Ckt,Skt,Yo,Akt,Tkt,Ikt,Rkt,Pkt,Okt,Nkt,kkt,Bkt,Mkt,Dkt,Lkt,Ukt,Fkt,jkt,Hkt,qkt,zkt,$kt,Vkt,Wkt,Gkt,Kkt,Zkt,Qkt,Jkt,Ykt,Xkt,eBt,tBt,rBt,nBt,JVe,iBt,sBt,cBt,lBt,uBt,_Ve,dBt,fBt,pBt,hBt,mBt,CVe,gBt,yBt,bBt,wBt,vBt,xBt,EBt,_Bt,CBt,SBt,ABt,XVe,SVe,AVe,Wce,Gce,eWe,Kce,tWe,TBt,IBt,RBt,rWe,PBt,nWe,OBt,NBt,kBt,TVe,IVe,Dce,MBt,LBt,UBt,ah,Zce,FBt,jBt,Qo,Qce,HBt,qBt,zBt,RVe,$Bt,VBt,Jce,WBt,GBt,jl,Yce,KBt,ZBt,QBt,PVe,JBt,YBt,Xce,ez,Lce,wf,ele,XBt,eMt,JC,tle,tMt,rMt,nMt,OVe,iMt,sMt,rle,d7,Uce,hn,nle,oMt,NVe,aMt,cMt,ile,kVe,Rr,sle,uMt,dMt,fMt,pMt,LVe,hMt,mMt,gMt,yMt,bMt,wMt,vMt,Fce,xMt,EMt,_Mt,CMt,SMt,AMt,TMt,IMt,RMt,PMt,OMt,NMt,kMt,LMt,UVe,UMt,FMt,ole,FVe,Wc,uh,jMt,HMt,nr,ale,qMt,zMt,Jo,cle,$Mt,VMt,Pa,lle,WMt,GMt,Ns,ule,KMt,ZMt,jVe,dle,QMt,HVe,JMt,YMt,fle,f7,vo,ple,XMt,qVe,eDt,tDt,hle,zVe,Nn,mle,sWe,oWe=x(()=>{u();E0=Me(ho());pce();bce();C1();Ace();Ye=Me(u0());f1();g2();g2();Y9();B9();l7();oh();Mce();$Ve=Me(gC()),VVe=\\\"wc\\\",WVe=2,rz=\\\"core\\\",lh=`${VVe}@2:${rz}:`,jNt={name:rz,logger:\\\"error\\\"},HNt={database:\\\":memory:\\\"},qNt=\\\"crypto\\\",vVe=\\\"client_ed25519_seed\\\",zNt=Ye.ONE_DAY,$Nt=\\\"keychain\\\",VNt=\\\"0.3\\\",WNt=\\\"messages\\\",GNt=\\\"0.3\\\",xVe=Ye.SIX_HOURS,KNt=\\\"publisher\\\",gle=\\\"irn\\\",ZNt=\\\"error\\\",GVe=\\\"wss://relay.walletconnect.org\\\",QNt=\\\"relayer\\\",Gs={message:\\\"relayer_message\\\",message_ack:\\\"relayer_message_ack\\\",connect:\\\"relayer_connect\\\",disconnect:\\\"relayer_disconnect\\\",error:\\\"relayer_error\\\",connection_stalled:\\\"relayer_connection_stalled\\\",transport_closed:\\\"relayer_transport_closed\\\",publish:\\\"relayer_publish\\\"},JNt=\\\"_subscription\\\",id={payload:\\\"payload\\\",connect:\\\"connect\\\",disconnect:\\\"disconnect\\\",error:\\\"error\\\"},YNt=.1,jce=\\\"2.21.1\\\",kn={link_mode:\\\"link_mode\\\",relay:\\\"relay\\\"},tz={inbound:\\\"inbound\\\",outbound:\\\"outbound\\\"},XNt=\\\"0.3\\\",ekt=\\\"WALLETCONNECT_CLIENT_ID\\\",EVe=\\\"WALLETCONNECT_LINK_MODE_APPS\\\",Hl={created:\\\"subscription_created\\\",deleted:\\\"subscription_deleted\\\",expired:\\\"subscription_expired\\\",disabled:\\\"subscription_disabled\\\",sync:\\\"subscription_sync\\\",resubscribed:\\\"subscription_resubscribed\\\"},tkt=\\\"subscription\\\",rkt=\\\"0.3\\\",sun=Ye.FIVE_SECONDS*1e3,nkt=\\\"pairing\\\",ikt=\\\"0.3\\\",u7={wc_pairingDelete:{req:{ttl:Ye.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Ye.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Ye.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Ye.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Ye.ONE_DAY,prompt:!1,tag:0},res:{ttl:Ye.ONE_DAY,prompt:!1,tag:0}}},I1={create:\\\"pairing_create\\\",expire:\\\"pairing_expire\\\",delete:\\\"pairing_delete\\\",ping:\\\"pairing_ping\\\"},bf={created:\\\"history_created\\\",updated:\\\"history_updated\\\",deleted:\\\"history_deleted\\\",sync:\\\"history_sync\\\"},skt=\\\"history\\\",okt=\\\"0.3\\\",akt=\\\"expirer\\\",ql={created:\\\"expirer_created\\\",deleted:\\\"expirer_deleted\\\",expired:\\\"expirer_expired\\\",sync:\\\"expirer_sync\\\"},ckt=\\\"0.3\\\",lkt=\\\"verify-api\\\",ukt=\\\"https://verify.walletconnect.com\\\",KVe=\\\"https://verify.walletconnect.org\\\",YC=KVe,dkt=`${YC}/v3`,fkt=[ukt,KVe],pkt=\\\"echo\\\",hkt=\\\"https://echo.walletconnect.com\\\",vf={pairing_started:\\\"pairing_started\\\",pairing_uri_validation_success:\\\"pairing_uri_validation_success\\\",pairing_uri_not_expired:\\\"pairing_uri_not_expired\\\",store_new_pairing:\\\"store_new_pairing\\\",subscribing_pairing_topic:\\\"subscribing_pairing_topic\\\",subscribe_pairing_topic_success:\\\"subscribe_pairing_topic_success\\\",existing_pairing:\\\"existing_pairing\\\",pairing_not_expired:\\\"pairing_not_expired\\\",emit_inactive_pairing:\\\"emit_inactive_pairing\\\",emit_session_proposal:\\\"emit_session_proposal\\\",subscribing_to_pairing_topic:\\\"subscribing_to_pairing_topic\\\"},ch={no_wss_connection:\\\"no_wss_connection\\\",no_internet_connection:\\\"no_internet_connection\\\",malformed_pairing_uri:\\\"malformed_pairing_uri\\\",active_pairing_already_exists:\\\"active_pairing_already_exists\\\",subscribe_pairing_topic_failure:\\\"subscribe_pairing_topic_failure\\\",pairing_expired:\\\"pairing_expired\\\",proposal_expired:\\\"proposal_expired\\\",proposal_listener_not_found:\\\"proposal_listener_not_found\\\"},sd={session_approve_started:\\\"session_approve_started\\\",proposal_not_expired:\\\"proposal_not_expired\\\",session_namespaces_validation_success:\\\"session_namespaces_validation_success\\\",create_session_topic:\\\"create_session_topic\\\",subscribing_session_topic:\\\"subscribing_session_topic\\\",subscribe_session_topic_success:\\\"subscribe_session_topic_success\\\",publishing_session_approve:\\\"publishing_session_approve\\\",session_approve_publish_success:\\\"session_approve_publish_success\\\",store_session:\\\"store_session\\\",publishing_session_settle:\\\"publishing_session_settle\\\",session_settle_publish_success:\\\"session_settle_publish_success\\\"},R1={no_internet_connection:\\\"no_internet_connection\\\",no_wss_connection:\\\"no_wss_connection\\\",proposal_expired:\\\"proposal_expired\\\",subscribe_session_topic_failure:\\\"subscribe_session_topic_failure\\\",session_approve_publish_failure:\\\"session_approve_publish_failure\\\",session_settle_publish_failure:\\\"session_settle_publish_failure\\\",session_approve_namespace_validation_failure:\\\"session_approve_namespace_validation_failure\\\",proposal_not_found:\\\"proposal_not_found\\\"},P1={authenticated_session_approve_started:\\\"authenticated_session_approve_started\\\",authenticated_session_not_expired:\\\"authenticated_session_not_expired\\\",chains_caip2_compliant:\\\"chains_caip2_compliant\\\",chains_evm_compliant:\\\"chains_evm_compliant\\\",create_authenticated_session_topic:\\\"create_authenticated_session_topic\\\",cacaos_verified:\\\"cacaos_verified\\\",store_authenticated_session:\\\"store_authenticated_session\\\",subscribing_authenticated_session_topic:\\\"subscribing_authenticated_session_topic\\\",subscribe_authenticated_session_topic_success:\\\"subscribe_authenticated_session_topic_success\\\",publishing_authenticated_session_approve:\\\"publishing_authenticated_session_approve\\\",authenticated_session_approve_publish_success:\\\"authenticated_session_approve_publish_success\\\"},XC={no_internet_connection:\\\"no_internet_connection\\\",no_wss_connection:\\\"no_wss_connection\\\",missing_session_authenticate_request:\\\"missing_session_authenticate_request\\\",session_authenticate_request_expired:\\\"session_authenticate_request_expired\\\",chains_caip2_compliant_failure:\\\"chains_caip2_compliant_failure\\\",chains_evm_compliant_failure:\\\"chains_evm_compliant_failure\\\",invalid_cacao:\\\"invalid_cacao\\\",subscribe_authenticated_session_topic_failure:\\\"subscribe_authenticated_session_topic_failure\\\",authenticated_session_approve_publish_failure:\\\"authenticated_session_approve_publish_failure\\\",authenticated_session_pending_request_not_found:\\\"authenticated_session_pending_request_not_found\\\"},mkt=.1,gkt=\\\"event-client\\\",ykt=86400,bkt=\\\"https://pulse.walletconnect.org/batch\\\";vkt=wkt,xkt=vkt,ZVe=t=>{if(t instanceof Uint8Array&&t.constructor.name===\\\"Uint8Array\\\")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error(\\\"Unknown type, must be binary type\\\")},Ekt=t=>new TextEncoder().encode(t),_kt=t=>new TextDecoder().decode(t),Hce=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\\\"Unknown type, must be binary type\\\")}},qce=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error(\\\"Invalid prefix character\\\");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e==\\\"string\\\"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error(\\\"Can only multibase decode strings\\\")}or(e){return QVe(this,e)}},zce=class{constructor(e){this.decoders=e}or(e){return QVe(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},QVe=(t,e)=>new zce({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),$ce=class{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Hce(e,r,n),this.decoder=new qce(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},nz=({name:t,prefix:e,encode:r,decode:n})=>new $ce(t,e,r,n),m7=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:i}=xkt(r,e);return nz({prefix:t,name:e,encode:n,decode:s=>ZVe(i(s))})},Ckt=(t,e,r,n)=>{let i={};for(let d=0;d<e.length;++d)i[e[d]]=d;let s=t.length;for(;t[s-1]===\\\"=\\\";)--s;let o=new Uint8Array(s*r/8|0),a=0,c=0,l=0;for(let d=0;d<s;++d){let f=i[t[d]];if(f===void 0)throw new SyntaxError(`Non-${n} character`);c=c<<r|f,a+=r,a>=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError(\\\"Unexpected end of data\\\");return o},Skt=(t,e,r)=>{let n=e[e.length-1]===\\\"=\\\",i=(1<<r)-1,s=\\\"\\\",o=0,a=0;for(let c=0;c<t.length;++c)for(a=a<<8|t[c],o+=8;o>r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<<r-o]),n)for(;s.length*r&7;)s+=\\\"=\\\";return s},Yo=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>nz({prefix:e,name:t,encode(i){return Skt(i,n,r)},decode(i){return Ckt(i,n,r,t)}}),Akt=nz({prefix:\\\"\\\\0\\\",name:\\\"identity\\\",encode:t=>_kt(t),decode:t=>Ekt(t)}),Tkt=Object.freeze({__proto__:null,identity:Akt}),Ikt=Yo({prefix:\\\"0\\\",name:\\\"base2\\\",alphabet:\\\"01\\\",bitsPerChar:1}),Rkt=Object.freeze({__proto__:null,base2:Ikt}),Pkt=Yo({prefix:\\\"7\\\",name:\\\"base8\\\",alphabet:\\\"01234567\\\",bitsPerChar:3}),Okt=Object.freeze({__proto__:null,base8:Pkt}),Nkt=m7({prefix:\\\"9\\\",name:\\\"base10\\\",alphabet:\\\"0123456789\\\"}),kkt=Object.freeze({__proto__:null,base10:Nkt}),Bkt=Yo({prefix:\\\"f\\\",name:\\\"base16\\\",alphabet:\\\"0123456789abcdef\\\",bitsPerChar:4}),Mkt=Yo({prefix:\\\"F\\\",name:\\\"base16upper\\\",alphabet:\\\"0123456789ABCDEF\\\",bitsPerChar:4}),Dkt=Object.freeze({__proto__:null,base16:Bkt,base16upper:Mkt}),Lkt=Yo({prefix:\\\"b\\\",name:\\\"base32\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567\\\",bitsPerChar:5}),Ukt=Yo({prefix:\\\"B\\\",name:\\\"base32upper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\\\",bitsPerChar:5}),Fkt=Yo({prefix:\\\"c\\\",name:\\\"base32pad\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567=\\\",bitsPerChar:5}),jkt=Yo({prefix:\\\"C\\\",name:\\\"base32padupper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\\\",bitsPerChar:5}),Hkt=Yo({prefix:\\\"v\\\",name:\\\"base32hex\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv\\\",bitsPerChar:5}),qkt=Yo({prefix:\\\"V\\\",name:\\\"base32hexupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV\\\",bitsPerChar:5}),zkt=Yo({prefix:\\\"t\\\",name:\\\"base32hexpad\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv=\\\",bitsPerChar:5}),$kt=Yo({prefix:\\\"T\\\",name:\\\"base32hexpadupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\\\",bitsPerChar:5}),Vkt=Yo({prefix:\\\"h\\\",name:\\\"base32z\\\",alphabet:\\\"ybndrfg8ejkmcpqxot1uwisza345h769\\\",bitsPerChar:5}),Wkt=Object.freeze({__proto__:null,base32:Lkt,base32upper:Ukt,base32pad:Fkt,base32padupper:jkt,base32hex:Hkt,base32hexupper:qkt,base32hexpad:zkt,base32hexpadupper:$kt,base32z:Vkt}),Gkt=m7({prefix:\\\"k\\\",name:\\\"base36\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuvwxyz\\\"}),Kkt=m7({prefix:\\\"K\\\",name:\\\"base36upper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\\\"}),Zkt=Object.freeze({__proto__:null,base36:Gkt,base36upper:Kkt}),Qkt=m7({name:\\\"base58btc\\\",prefix:\\\"z\\\",alphabet:\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\"}),Jkt=m7({name:\\\"base58flickr\\\",prefix:\\\"Z\\\",alphabet:\\\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\\\"}),Ykt=Object.freeze({__proto__:null,base58btc:Qkt,base58flickr:Jkt}),Xkt=Yo({prefix:\\\"m\\\",name:\\\"base64\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",bitsPerChar:6}),eBt=Yo({prefix:\\\"M\\\",name:\\\"base64pad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\\",bitsPerChar:6}),tBt=Yo({prefix:\\\"u\\\",name:\\\"base64url\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\\\",bitsPerChar:6}),rBt=Yo({prefix:\\\"U\\\",name:\\\"base64urlpad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\\\",bitsPerChar:6}),nBt=Object.freeze({__proto__:null,base64:Xkt,base64pad:eBt,base64url:tBt,base64urlpad:rBt}),JVe=Array.from(\\\"\\\\u{1F680}\\\\u{1FA90}\\\\u2604\\\\u{1F6F0}\\\\u{1F30C}\\\\u{1F311}\\\\u{1F312}\\\\u{1F313}\\\\u{1F314}\\\\u{1F315}\\\\u{1F316}\\\\u{1F317}\\\\u{1F318}\\\\u{1F30D}\\\\u{1F30F}\\\\u{1F30E}\\\\u{1F409}\\\\u2600\\\\u{1F4BB}\\\\u{1F5A5}\\\\u{1F4BE}\\\\u{1F4BF}\\\\u{1F602}\\\\u2764\\\\u{1F60D}\\\\u{1F923}\\\\u{1F60A}\\\\u{1F64F}\\\\u{1F495}\\\\u{1F62D}\\\\u{1F618}\\\\u{1F44D}\\\\u{1F605}\\\\u{1F44F}\\\\u{1F601}\\\\u{1F525}\\\\u{1F970}\\\\u{1F494}\\\\u{1F496}\\\\u{1F499}\\\\u{1F622}\\\\u{1F914}\\\\u{1F606}\\\\u{1F644}\\\\u{1F4AA}\\\\u{1F609}\\\\u263A\\\\u{1F44C}\\\\u{1F917}\\\\u{1F49C}\\\\u{1F614}\\\\u{1F60E}\\\\u{1F607}\\\\u{1F339}\\\\u{1F926}\\\\u{1F389}\\\\u{1F49E}\\\\u270C\\\\u2728\\\\u{1F937}\\\\u{1F631}\\\\u{1F60C}\\\\u{1F338}\\\\u{1F64C}\\\\u{1F60B}\\\\u{1F497}\\\\u{1F49A}\\\\u{1F60F}\\\\u{1F49B}\\\\u{1F642}\\\\u{1F493}\\\\u{1F929}\\\\u{1F604}\\\\u{1F600}\\\\u{1F5A4}\\\\u{1F603}\\\\u{1F4AF}\\\\u{1F648}\\\\u{1F447}\\\\u{1F3B6}\\\\u{1F612}\\\\u{1F92D}\\\\u2763\\\\u{1F61C}\\\\u{1F48B}\\\\u{1F440}\\\\u{1F62A}\\\\u{1F611}\\\\u{1F4A5}\\\\u{1F64B}\\\\u{1F61E}\\\\u{1F629}\\\\u{1F621}\\\\u{1F92A}\\\\u{1F44A}\\\\u{1F973}\\\\u{1F625}\\\\u{1F924}\\\\u{1F449}\\\\u{1F483}\\\\u{1F633}\\\\u270B\\\\u{1F61A}\\\\u{1F61D}\\\\u{1F634}\\\\u{1F31F}\\\\u{1F62C}\\\\u{1F643}\\\\u{1F340}\\\\u{1F337}\\\\u{1F63B}\\\\u{1F613}\\\\u2B50\\\\u2705\\\\u{1F97A}\\\\u{1F308}\\\\u{1F608}\\\\u{1F918}\\\\u{1F4A6}\\\\u2714\\\\u{1F623}\\\\u{1F3C3}\\\\u{1F490}\\\\u2639\\\\u{1F38A}\\\\u{1F498}\\\\u{1F620}\\\\u261D\\\\u{1F615}\\\\u{1F33A}\\\\u{1F382}\\\\u{1F33B}\\\\u{1F610}\\\\u{1F595}\\\\u{1F49D}\\\\u{1F64A}\\\\u{1F639}\\\\u{1F5E3}\\\\u{1F4AB}\\\\u{1F480}\\\\u{1F451}\\\\u{1F3B5}\\\\u{1F91E}\\\\u{1F61B}\\\\u{1F534}\\\\u{1F624}\\\\u{1F33C}\\\\u{1F62B}\\\\u26BD\\\\u{1F919}\\\\u2615\\\\u{1F3C6}\\\\u{1F92B}\\\\u{1F448}\\\\u{1F62E}\\\\u{1F646}\\\\u{1F37B}\\\\u{1F343}\\\\u{1F436}\\\\u{1F481}\\\\u{1F632}\\\\u{1F33F}\\\\u{1F9E1}\\\\u{1F381}\\\\u26A1\\\\u{1F31E}\\\\u{1F388}\\\\u274C\\\\u270A\\\\u{1F44B}\\\\u{1F630}\\\\u{1F928}\\\\u{1F636}\\\\u{1F91D}\\\\u{1F6B6}\\\\u{1F4B0}\\\\u{1F353}\\\\u{1F4A2}\\\\u{1F91F}\\\\u{1F641}\\\\u{1F6A8}\\\\u{1F4A8}\\\\u{1F92C}\\\\u2708\\\\u{1F380}\\\\u{1F37A}\\\\u{1F913}\\\\u{1F619}\\\\u{1F49F}\\\\u{1F331}\\\\u{1F616}\\\\u{1F476}\\\\u{1F974}\\\\u25B6\\\\u27A1\\\\u2753\\\\u{1F48E}\\\\u{1F4B8}\\\\u2B07\\\\u{1F628}\\\\u{1F31A}\\\\u{1F98B}\\\\u{1F637}\\\\u{1F57A}\\\\u26A0\\\\u{1F645}\\\\u{1F61F}\\\\u{1F635}\\\\u{1F44E}\\\\u{1F932}\\\\u{1F920}\\\\u{1F927}\\\\u{1F4CC}\\\\u{1F535}\\\\u{1F485}\\\\u{1F9D0}\\\\u{1F43E}\\\\u{1F352}\\\\u{1F617}\\\\u{1F911}\\\\u{1F30A}\\\\u{1F92F}\\\\u{1F437}\\\\u260E\\\\u{1F4A7}\\\\u{1F62F}\\\\u{1F486}\\\\u{1F446}\\\\u{1F3A4}\\\\u{1F647}\\\\u{1F351}\\\\u2744\\\\u{1F334}\\\\u{1F4A3}\\\\u{1F438}\\\\u{1F48C}\\\\u{1F4CD}\\\\u{1F940}\\\\u{1F922}\\\\u{1F445}\\\\u{1F4A1}\\\\u{1F4A9}\\\\u{1F450}\\\\u{1F4F8}\\\\u{1F47B}\\\\u{1F910}\\\\u{1F92E}\\\\u{1F3BC}\\\\u{1F975}\\\\u{1F6A9}\\\\u{1F34E}\\\\u{1F34A}\\\\u{1F47C}\\\\u{1F48D}\\\\u{1F4E3}\\\\u{1F942}\\\"),iBt=JVe.reduce((t,e,r)=>(t[r]=e,t),[]),sBt=JVe.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);cBt=nz({prefix:\\\"\\\\u{1F680}\\\",name:\\\"base256emoji\\\",encode:oBt,decode:aBt}),lBt=Object.freeze({__proto__:null,base256emoji:cBt}),uBt=YVe,_Ve=128,dBt=127,fBt=~dBt,pBt=Math.pow(2,31);hBt=Vce,mBt=128,CVe=127;gBt=Math.pow(2,7),yBt=Math.pow(2,14),bBt=Math.pow(2,21),wBt=Math.pow(2,28),vBt=Math.pow(2,35),xBt=Math.pow(2,42),EBt=Math.pow(2,49),_Bt=Math.pow(2,56),CBt=Math.pow(2,63),SBt=function(t){return t<gBt?1:t<yBt?2:t<bBt?3:t<wBt?4:t<vBt?5:t<xBt?6:t<EBt?7:t<_Bt?8:t<CBt?9:10},ABt={encode:uBt,decode:hBt,encodingLength:SBt},XVe=ABt,SVe=(t,e,r=0)=>(XVe.encode(t,e,r),e),AVe=t=>XVe.encodingLength(t),Wce=(t,e)=>{let r=e.byteLength,n=AVe(t),i=n+AVe(r),s=new Uint8Array(i+r);return SVe(t,s,0),SVe(r,s,n),s.set(e,i),new Gce(t,r,e,s)},Gce=class{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}},eWe=({name:t,code:e,encode:r})=>new Kce(t,e,r),Kce=class{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?Wce(this.code,r):r.then(n=>Wce(this.code,n))}else throw Error(\\\"Unknown type, must be binary type\\\")}},tWe=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),TBt=eWe({name:\\\"sha2-256\\\",code:18,encode:tWe(\\\"SHA-256\\\")}),IBt=eWe({name:\\\"sha2-512\\\",code:19,encode:tWe(\\\"SHA-512\\\")}),RBt=Object.freeze({__proto__:null,sha256:TBt,sha512:IBt}),rWe=0,PBt=\\\"identity\\\",nWe=ZVe,OBt=t=>Wce(rWe,nWe(t)),NBt={code:rWe,name:PBt,encode:nWe,digest:OBt},kBt=Object.freeze({__proto__:null,identity:NBt});new TextEncoder,new TextDecoder;TVe={...Tkt,...Rkt,...Okt,...kkt,...Dkt,...Wkt,...Zkt,...Ykt,...nBt,...lBt};({...RBt,...kBt});IVe=iWe(\\\"utf8\\\",\\\"u\\\",t=>\\\"u\\\"+new TextDecoder(\\\"utf8\\\").decode(t),t=>new TextEncoder().encode(t.substring(1))),Dce=iWe(\\\"ascii\\\",\\\"a\\\",t=>{let e=\\\"a\\\";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=BBt(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),MBt={utf8:IVe,\\\"utf-8\\\":IVe,hex:TVe.base16,latin1:Dce,ascii:Dce,binary:Dce,...TVe};LBt=Object.defineProperty,UBt=(t,e,r)=>e in t?LBt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ah=(t,e,r)=>UBt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Zce=class{constructor(e,r){this.core=e,this.logger=r,ah(this,\\\"keychain\\\",new Map),ah(this,\\\"name\\\",$Nt),ah(this,\\\"version\\\",VNt),ah(this,\\\"initialized\\\",!1),ah(this,\\\"storagePrefix\\\",lh),ah(this,\\\"init\\\",async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<\\\"u\\\"&&(this.keychain=n),this.initialized=!0}}),ah(this,\\\"has\\\",n=>(this.isInitialized(),this.keychain.has(n))),ah(this,\\\"set\\\",async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()}),ah(this,\\\"get\\\",n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>\\\"u\\\"){let{message:s}=Ce(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${n}`);throw new Error(s)}return i}),ah(this,\\\"del\\\",async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()}),this.core=e,this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,z9(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<\\\"u\\\"?$9(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},FBt=Object.defineProperty,jBt=(t,e,r)=>e in t?FBt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qo=(t,e,r)=>jBt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Qce=class{constructor(e,r,n){this.core=e,this.logger=r,Qo(this,\\\"name\\\",qNt),Qo(this,\\\"keychain\\\"),Qo(this,\\\"randomSessionIdentifier\\\",Q9()),Qo(this,\\\"initialized\\\",!1),Qo(this,\\\"init\\\",async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)}),Qo(this,\\\"hasKeys\\\",i=>(this.isInitialized(),this.keychain.has(i))),Qo(this,\\\"getClientId\\\",async()=>{this.isInitialized();let i=await this.getClientSeed(),s=vC(i);return T9(s.publicKey)}),Qo(this,\\\"generateKeyPair\\\",()=>{this.isInitialized();let i=Mae();return this.setPrivateKey(i.publicKey,i.privateKey)}),Qo(this,\\\"signJWT\\\",async i=>{this.isInitialized();let s=await this.getClientSeed(),o=vC(s),a=this.randomSessionIdentifier;return await OH(a,i,zNt,o)}),Qo(this,\\\"generateSharedKey\\\",(i,s,o)=>{this.isInitialized();let a=this.getPrivateKey(i),c=Dae(a,s);return this.setSymKey(c,o)}),Qo(this,\\\"setSymKey\\\",async(i,s)=>{this.isInitialized();let o=s||C2(i);return await this.keychain.set(o,i),o}),Qo(this,\\\"deleteKeyPair\\\",async i=>{this.isInitialized(),await this.keychain.del(i)}),Qo(this,\\\"deleteSymKey\\\",async i=>{this.isInitialized(),await this.keychain.del(i)}),Qo(this,\\\"encode\\\",async(i,s,o)=>{this.isInitialized();let a=lq(o),c=Vo(s);if(dq(a))return jae(c,o?.encoding);if(uq(a)){let p=a.senderPublicKey,h=a.receiverPublicKey;i=await this.generateSharedKey(p,h)}let l=this.getSymKey(i),{type:d,senderPublicKey:f}=a;return Uae({type:d,symKey:l,message:c,senderPublicKey:f,encoding:o?.encoding})}),Qo(this,\\\"decode\\\",async(i,s,o)=>{this.isInitialized();let a=zae(s,o);if(dq(a)){let c=Hae(s,o?.encoding);return nc(c)}if(uq(a)){let c=a.receiverPublicKey,l=a.senderPublicKey;i=await this.generateSharedKey(c,l)}try{let c=this.getSymKey(i),l=Fae({symKey:c,encoded:s,encoding:o?.encoding});return nc(l)}catch(c){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(c)}}),Qo(this,\\\"getPayloadType\\\",(i,s=Vc)=>{let o=S2({encoded:i,encoding:s});return w0(o.type)}),Qo(this,\\\"getPayloadSenderPublicKey\\\",(i,s=Vc)=>{let o=S2({encoded:i,encoding:s});return o.senderPublicKey?yr(o.senderPublicKey,Ko):void 0}),this.core=e,this.logger=rr(r,this.name),this.keychain=n||new Zce(this.core,this.logger)}get context(){return Ir(this.logger)}async setPrivateKey(e,r){return await this.keychain.set(e,r),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e=\\\"\\\";try{e=this.keychain.get(vVe)}catch{e=Q9(),await this.keychain.set(vVe,e)}return DBt(e,\\\"base16\\\")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},HBt=Object.defineProperty,qBt=Object.defineProperties,zBt=Object.getOwnPropertyDescriptors,RVe=Object.getOwnPropertySymbols,$Bt=Object.prototype.hasOwnProperty,VBt=Object.prototype.propertyIsEnumerable,Jce=(t,e,r)=>e in t?HBt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,WBt=(t,e)=>{for(var r in e||(e={}))$Bt.call(e,r)&&Jce(t,r,e[r]);if(RVe)for(var r of RVe(e))VBt.call(e,r)&&Jce(t,r,e[r]);return t},GBt=(t,e)=>qBt(t,zBt(e)),jl=(t,e,r)=>Jce(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Yce=class extends Oq{constructor(e,r){super(e,r),this.logger=e,this.core=r,jl(this,\\\"messages\\\",new Map),jl(this,\\\"messagesWithoutClientAck\\\",new Map),jl(this,\\\"name\\\",WNt),jl(this,\\\"version\\\",GNt),jl(this,\\\"initialized\\\",!1),jl(this,\\\"storagePrefix\\\",lh),jl(this,\\\"init\\\",async()=>{if(!this.initialized){this.logger.trace(\\\"Initialized\\\");try{let n=await this.getRelayerMessages();typeof n<\\\"u\\\"&&(this.messages=n);let i=await this.getRelayerMessagesWithoutClientAck();typeof i<\\\"u\\\"&&(this.messagesWithoutClientAck=i),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}}),jl(this,\\\"set\\\",async(n,i,s)=>{this.isInitialized();let o=Dl(i),a=this.messages.get(n);if(typeof a>\\\"u\\\"&&(a={}),typeof a[o]<\\\"u\\\")return o;if(a[o]=i,this.messages.set(n,a),s===tz.inbound){let c=this.messagesWithoutClientAck.get(n)||{};this.messagesWithoutClientAck.set(n,GBt(WBt({},c),{[o]:i}))}return await this.persist(),o}),jl(this,\\\"get\\\",n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>\\\"u\\\"&&(i={}),i}),jl(this,\\\"getWithoutAck\\\",n=>{this.isInitialized();let i={};for(let s of n){let o=this.messagesWithoutClientAck.get(s)||{};i[s]=Object.values(o)}return i}),jl(this,\\\"has\\\",(n,i)=>{this.isInitialized();let s=this.get(n),o=Dl(i);return typeof s[o]<\\\"u\\\"}),jl(this,\\\"ack\\\",async(n,i)=>{this.isInitialized();let s=this.messagesWithoutClientAck.get(n);if(typeof s>\\\"u\\\")return;let o=Dl(i);delete s[o],Object.keys(s).length===0?this.messagesWithoutClientAck.delete(n):this.messagesWithoutClientAck.set(n,s),await this.persist()}),jl(this,\\\"del\\\",async n=>{this.isInitialized(),this.messages.delete(n),this.messagesWithoutClientAck.delete(n),await this.persist()}),this.logger=rr(e,this.name),this.core=r}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get storageKeyWithoutClientAck(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name+\\\"_withoutClientAck\\\"}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,z9(e))}async setRelayerMessagesWithoutClientAck(e){await this.core.storage.setItem(this.storageKeyWithoutClientAck,z9(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<\\\"u\\\"?$9(e):void 0}async getRelayerMessagesWithoutClientAck(){let e=await this.core.storage.getItem(this.storageKeyWithoutClientAck);return typeof e<\\\"u\\\"?$9(e):void 0}async persist(){await this.setRelayerMessages(this.messages),await this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},KBt=Object.defineProperty,ZBt=Object.defineProperties,QBt=Object.getOwnPropertyDescriptors,PVe=Object.getOwnPropertySymbols,JBt=Object.prototype.hasOwnProperty,YBt=Object.prototype.propertyIsEnumerable,Xce=(t,e,r)=>e in t?KBt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ez=(t,e)=>{for(var r in e||(e={}))JBt.call(e,r)&&Xce(t,r,e[r]);if(PVe)for(var r of PVe(e))YBt.call(e,r)&&Xce(t,r,e[r]);return t},Lce=(t,e)=>ZBt(t,QBt(e)),wf=(t,e,r)=>Xce(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ele=class extends Nq{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,wf(this,\\\"events\\\",new E0.EventEmitter),wf(this,\\\"name\\\",KNt),wf(this,\\\"queue\\\",new Map),wf(this,\\\"publishTimeout\\\",(0,Ye.toMiliseconds)(Ye.ONE_MINUTE)),wf(this,\\\"initialPublishTimeout\\\",(0,Ye.toMiliseconds)(Ye.ONE_SECOND*15)),wf(this,\\\"needsTransportRestart\\\",!1),wf(this,\\\"publish\\\",async(n,i,s)=>{var o;this.logger.debug(\\\"Publishing Payload\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"publish\\\",params:{topic:n,message:i,opts:s}});let a=s?.ttl||xVe,c=qC(s),l=s?.prompt||!1,d=s?.tag||0,f=s?.id||Vs().toString(),p={topic:n,message:i,opts:{ttl:a,relay:c,prompt:l,tag:d,id:f,attestation:s?.attestation,tvf:s?.tvf}},h=`Failed to publish payload, please try again. id:${f} tag:${d}`;try{let m=new Promise(async g=>{let w=({id:b})=>{p.opts.id===b&&(this.removeRequestFromQueue(b),this.relayer.events.removeListener(Gs.publish,w),g(p))};this.relayer.events.on(Gs.publish,w);let v=rh(new Promise((b,_)=>{this.rpcPublish({topic:n,message:i,ttl:a,prompt:l,tag:d,id:f,attestation:s?.attestation,tvf:s?.tvf}).then(b).catch(S=>{this.logger.warn(S,S?.message),_(S)})}),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${f} tag:${d}`);try{await v,this.events.removeListener(Gs.publish,w)}catch(b){this.queue.set(f,Lce(ez({},p),{attempt:1})),this.logger.warn(b,b?.message)}});this.logger.trace({type:\\\"method\\\",method:\\\"publish\\\",params:{id:f,topic:n,message:i,opts:s}}),await rh(m,this.publishTimeout,h)}catch(m){if(this.logger.debug(\\\"Failed to Publish Payload\\\"),this.logger.error(m),(o=s?.internal)!=null&&o.throwOnFailedPublish)throw m}finally{this.queue.delete(f)}}),wf(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),wf(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),wf(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),wf(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.relayer=e,this.logger=rr(r,this.name),this.registerEventListeners()}get context(){return Ir(this.logger)}async rpcPublish(e){var r,n,i,s;let{topic:o,message:a,ttl:c=xVe,prompt:l,tag:d,id:f,attestation:p,tvf:h}=e,m={method:A2(qC().protocol).publish,params:ez({topic:o,message:a,ttl:c,prompt:l,tag:d,attestation:p},h),id:f};Os((r=m.params)==null?void 0:r.prompt)&&((n=m.params)==null||delete n.prompt),Os((i=m.params)==null?void 0:i.tag)&&((s=m.params)==null||delete s.tag),this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"message\\\",direction:\\\"outgoing\\\",request:m});let g=await this.relayer.request(m);return this.relayer.events.emit(Gs.publish,e),this.logger.debug(\\\"Successfully Published Payload\\\"),g}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async(e,r)=>{let n=e.attempt+1;this.queue.set(r,Lce(ez({},e),{attempt:n}));let{topic:i,message:s,opts:o,attestation:a}=e;this.logger.warn({},`Publisher: queue->publishing: ${e.opts.id}, tag: ${e.opts.tag}, attempt: ${n}`),await this.rpcPublish(Lce(ez({},e),{topic:i,message:s,ttl:o.ttl,prompt:o.prompt,tag:o.tag,id:o.id,attestation:a,tvf:o.tvf})),this.logger.warn({},`Publisher: queue->published: ${e.opts.id}`)})}registerEventListeners(){this.relayer.core.heartbeat.on(sc.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Gs.connection_stalled);return}this.checkQueue()}),this.relayer.on(Gs.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}},XBt=Object.defineProperty,eMt=(t,e,r)=>e in t?XBt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,JC=(t,e,r)=>eMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),tle=class{constructor(){JC(this,\\\"map\\\",new Map),JC(this,\\\"set\\\",(e,r)=>{let n=this.get(e);this.exists(e,r)||this.map.set(e,[...n,r])}),JC(this,\\\"get\\\",e=>this.map.get(e)||[]),JC(this,\\\"exists\\\",(e,r)=>this.get(e).includes(r)),JC(this,\\\"delete\\\",(e,r)=>{if(typeof r>\\\"u\\\"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,r))return;let i=n.filter(s=>s!==r);if(!i.length){this.map.delete(e);return}this.map.set(e,i)}),JC(this,\\\"clear\\\",()=>{this.map.clear()})}get topics(){return Array.from(this.map.keys())}},tMt=Object.defineProperty,rMt=Object.defineProperties,nMt=Object.getOwnPropertyDescriptors,OVe=Object.getOwnPropertySymbols,iMt=Object.prototype.hasOwnProperty,sMt=Object.prototype.propertyIsEnumerable,rle=(t,e,r)=>e in t?tMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,d7=(t,e)=>{for(var r in e||(e={}))iMt.call(e,r)&&rle(t,r,e[r]);if(OVe)for(var r of OVe(e))sMt.call(e,r)&&rle(t,r,e[r]);return t},Uce=(t,e)=>rMt(t,nMt(e)),hn=(t,e,r)=>rle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),nle=class extends Mq{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,hn(this,\\\"subscriptions\\\",new Map),hn(this,\\\"topicMap\\\",new tle),hn(this,\\\"events\\\",new E0.EventEmitter),hn(this,\\\"name\\\",tkt),hn(this,\\\"version\\\",rkt),hn(this,\\\"pending\\\",new Map),hn(this,\\\"cached\\\",[]),hn(this,\\\"initialized\\\",!1),hn(this,\\\"storagePrefix\\\",lh),hn(this,\\\"subscribeTimeout\\\",(0,Ye.toMiliseconds)(Ye.ONE_MINUTE)),hn(this,\\\"initialSubscribeTimeout\\\",(0,Ye.toMiliseconds)(Ye.ONE_SECOND*15)),hn(this,\\\"clientId\\\"),hn(this,\\\"batchSubscribeTopicsLimit\\\",500),hn(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),this.registerEventListeners(),await this.restore()),this.initialized=!0}),hn(this,\\\"subscribe\\\",async(n,i)=>{this.isInitialized(),this.logger.debug(\\\"Subscribing Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"subscribe\\\",params:{topic:n,opts:i}});try{let s=qC(i),o={topic:n,relay:s,transportType:i?.transportType};this.pending.set(n,o);let a=await this.rpcSubscribe(n,s,i);return typeof a==\\\"string\\\"&&(this.onSubscribe(a,o),this.logger.debug(\\\"Successfully Subscribed Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"subscribe\\\",params:{topic:n,opts:i}})),a}catch(s){throw this.logger.debug(\\\"Failed to Subscribe Topic\\\"),this.logger.error(s),s}}),hn(this,\\\"unsubscribe\\\",async(n,i)=>{this.isInitialized(),typeof i?.id<\\\"u\\\"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)}),hn(this,\\\"isSubscribed\\\",n=>new Promise(i=>{i(this.topicMap.topics.includes(n))})),hn(this,\\\"isKnownTopic\\\",n=>new Promise(i=>{i(this.topicMap.topics.includes(n)||this.pending.has(n)||this.cached.some(s=>s.topic===n))})),hn(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),hn(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),hn(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),hn(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),hn(this,\\\"start\\\",async()=>{await this.onConnect()}),hn(this,\\\"stop\\\",async()=>{await this.onDisconnect()}),hn(this,\\\"restart\\\",async()=>{await this.restore(),await this.onRestart()}),hn(this,\\\"checkPending\\\",async()=>{if(this.pending.size===0&&(!this.initialized||!this.relayer.connected))return;let n=[];this.pending.forEach(i=>{n.push(i)}),await this.batchSubscribe(n)}),hn(this,\\\"registerEventListeners\\\",()=>{this.relayer.core.heartbeat.on(sc.pulse,async()=>{await this.checkPending()}),this.events.on(Hl.created,async n=>{let i=Hl.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:\\\"event\\\",event:i,data:n}),await this.persist()}),this.events.on(Hl.deleted,async n=>{let i=Hl.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:\\\"event\\\",event:i,data:n}),await this.persist()})}),this.relayer=e,this.logger=rr(r,this.name),this.clientId=\\\"\\\"}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}get hasAnyTopics(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}hasSubscription(e,r){let n=!1;try{n=this.getSubscription(e).topic===r}catch{}return n}reset(){this.cached=[],this.initialized=!0}onDisable(){this.values.length>0&&(this.cached=this.values),this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,r){let n=this.topicMap.get(e);await Promise.all(n.map(async i=>await this.unsubscribeById(e,i,r)))}async unsubscribeById(e,r,n){this.logger.debug(\\\"Unsubscribing Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"unsubscribe\\\",params:{topic:e,id:r,opts:n}});try{let i=qC(n);await this.restartToComplete({topic:e,id:r,relay:i}),await this.rpcUnsubscribe(e,r,i);let s=Kr(\\\"USER_DISCONNECTED\\\",`${this.name}, ${e}`);await this.onUnsubscribe(e,r,s),this.logger.debug(\\\"Successfully Unsubscribed Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"unsubscribe\\\",params:{topic:e,id:r,opts:n}})}catch(i){throw this.logger.debug(\\\"Failed to Unsubscribe Topic\\\"),this.logger.error(i),i}}async rpcSubscribe(e,r,n){var i;(!n||n?.transportType===kn.relay)&&await this.restartToComplete({topic:e,id:e,relay:r});let s={method:A2(r.protocol).subscribe,params:{topic:e}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:s});let o=(i=n?.internal)==null?void 0:i.throwOnFailedPublish;try{let a=await this.getSubscriptionId(e);if(n?.transportType===kn.link_mode)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(s).catch(d=>this.logger.warn(d))},(0,Ye.toMiliseconds)(Ye.ONE_SECOND)),a;let c=new Promise(async d=>{let f=p=>{p.topic===e&&(this.events.removeListener(Hl.created,f),d(p.id))};this.events.on(Hl.created,f);try{let p=await rh(new Promise((h,m)=>{this.relayer.request(s).catch(g=>{this.logger.warn(g,g?.message),m(g)}).then(h)}),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(Hl.created,f),d(p)}catch{}}),l=await rh(c,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!l&&o)throw new Error(`Subscribing to ${e} failed, please try again`);return l?a:null}catch(a){if(this.logger.debug(\\\"Outgoing Relay Subscribe Payload stalled\\\"),this.relayer.events.emit(Gs.connection_stalled),o)throw a}return null}async rpcBatchSubscribe(e){if(!e.length)return;let r=e[0].relay,n={method:A2(r.protocol).batchSubscribe,params:{topics:e.map(i=>i.topic)}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:n});try{await await rh(new Promise(i=>{this.relayer.request(n).catch(s=>this.logger.warn(s)).then(i)}),this.subscribeTimeout,\\\"rpcBatchSubscribe failed, please try again\\\")}catch{this.relayer.events.emit(Gs.connection_stalled)}}async rpcBatchFetchMessages(e){if(!e.length)return;let r=e[0].relay,n={method:A2(r.protocol).batchFetchMessages,params:{topics:e.map(s=>s.topic)}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:n});let i;try{i=await await rh(new Promise((s,o)=>{this.relayer.request(n).catch(a=>{this.logger.warn(a),o(a)}).then(s)}),this.subscribeTimeout,\\\"rpcBatchFetchMessages failed, please try again\\\")}catch{this.relayer.events.emit(Gs.connection_stalled)}return i}rpcUnsubscribe(e,r,n){let i={method:A2(n.protocol).unsubscribe,params:{topic:e,id:r}};return this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:i}),this.relayer.request(i)}onSubscribe(e,r){this.setSubscription(e,Uce(d7({},r),{id:e})),this.pending.delete(r.topic)}onBatchSubscribe(e){e.length&&e.forEach(r=>{this.setSubscription(r.id,d7({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(e,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,e)&&this.deleteSubscription(r,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,r){this.logger.debug(\\\"Setting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"setSubscription\\\",id:e,subscription:r}),this.addSubscription(e,r)}addSubscription(e,r){this.subscriptions.set(e,d7({},r)),this.topicMap.set(r.topic,e),this.events.emit(Hl.created,r)}getSubscription(e){this.logger.debug(\\\"Getting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"getSubscription\\\",id:e});let r=this.subscriptions.get(e);if(!r){let{message:n}=Ce(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw new Error(n)}return r}deleteSubscription(e,r){this.logger.debug(\\\"Deleting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"deleteSubscription\\\",id:e,reason:r});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(Hl.deleted,Uce(d7({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Hl.sync)}async onRestart(){if(this.cached.length){let e=[...this.cached],r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let n=0;n<r;n++){let i=e.splice(0,this.batchSubscribeTopicsLimit);await this.batchSubscribe(i)}}this.events.emit(Hl.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>\\\"u\\\"||!e.length)return;if(this.subscriptions.size){let{message:r}=Ce(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){e.length&&(await this.rpcBatchSubscribe(e),this.onBatchSubscribe(await Promise.all(e.map(async r=>Uce(d7({},r),{id:await this.getSubscriptionId(r.topic)})))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let r=await this.rpcBatchFetchMessages(e);r&&r.messages&&(await vae((0,Ye.toMiliseconds)(Ye.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(r.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async restartToComplete(e){!this.relayer.connected&&!this.relayer.connecting&&(this.cached.push(e),await this.relayer.transportOpen())}async getClientId(){return this.clientId||(this.clientId=await this.relayer.core.crypto.getClientId()),this.clientId}async getSubscriptionId(e){return Dl(e+await this.getClientId())}},oMt=Object.defineProperty,NVe=Object.getOwnPropertySymbols,aMt=Object.prototype.hasOwnProperty,cMt=Object.prototype.propertyIsEnumerable,ile=(t,e,r)=>e in t?oMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,kVe=(t,e)=>{for(var r in e||(e={}))aMt.call(e,r)&&ile(t,r,e[r]);if(NVe)for(var r of NVe(e))cMt.call(e,r)&&ile(t,r,e[r]);return t},Rr=(t,e,r)=>ile(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),sle=class extends kq{constructor(e){super(e),Rr(this,\\\"protocol\\\",\\\"wc\\\"),Rr(this,\\\"version\\\",2),Rr(this,\\\"core\\\"),Rr(this,\\\"logger\\\"),Rr(this,\\\"events\\\",new E0.EventEmitter),Rr(this,\\\"provider\\\"),Rr(this,\\\"messages\\\"),Rr(this,\\\"subscriber\\\"),Rr(this,\\\"publisher\\\"),Rr(this,\\\"name\\\",QNt),Rr(this,\\\"transportExplicitlyClosed\\\",!1),Rr(this,\\\"initialized\\\",!1),Rr(this,\\\"connectionAttemptInProgress\\\",!1),Rr(this,\\\"relayUrl\\\"),Rr(this,\\\"projectId\\\"),Rr(this,\\\"packageName\\\"),Rr(this,\\\"bundleId\\\"),Rr(this,\\\"hasExperiencedNetworkDisruption\\\",!1),Rr(this,\\\"pingTimeout\\\"),Rr(this,\\\"heartBeatTimeout\\\",(0,Ye.toMiliseconds)(Ye.THIRTY_SECONDS+Ye.FIVE_SECONDS)),Rr(this,\\\"reconnectTimeout\\\"),Rr(this,\\\"connectPromise\\\"),Rr(this,\\\"reconnectInProgress\\\",!1),Rr(this,\\\"requestsInFlight\\\",[]),Rr(this,\\\"connectTimeout\\\",(0,Ye.toMiliseconds)(Ye.ONE_SECOND*15)),Rr(this,\\\"request\\\",async r=>{var n,i;this.logger.debug(\\\"Publishing Request Payload\\\");let s=r.id||Vs().toString();await this.toEstablishConnection();try{this.logger.trace({id:s,method:r.method,topic:(n=r.params)==null?void 0:n.topic},\\\"relayer.request - publishing...\\\");let o=`${s}:${((i=r.params)==null?void 0:i.tag)||\\\"\\\"}`;this.requestsInFlight.push(o);let a=await this.provider.request(r);return this.requestsInFlight=this.requestsInFlight.filter(c=>c!==o),a}catch(o){throw this.logger.debug(`Failed to Publish Request: ${s}`),o}}),Rr(this,\\\"resetPingTimeout\\\",()=>{DC()&&(clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var r,n,i,s;try{this.logger.debug({},\\\"pingTimeout: Connection stalled, terminating...\\\"),(s=(i=(n=(r=this.provider)==null?void 0:r.connection)==null?void 0:n.socket)==null?void 0:i.terminate)==null||s.call(i)}catch(o){this.logger.warn(o,o?.message)}},this.heartBeatTimeout))}),Rr(this,\\\"onPayloadHandler\\\",r=>{this.onProviderPayload(r),this.resetPingTimeout()}),Rr(this,\\\"onConnectHandler\\\",()=>{this.logger.warn({},\\\"Relayer connected \\\\u{1F6DC}\\\"),this.startPingTimeout(),this.events.emit(Gs.connect)}),Rr(this,\\\"onDisconnectHandler\\\",()=>{this.logger.warn({},\\\"Relayer disconnected \\\\u{1F6D1}\\\"),this.requestsInFlight=[],this.onProviderDisconnect()}),Rr(this,\\\"onProviderErrorHandler\\\",r=>{this.logger.fatal(`Fatal socket error: ${r.message}`),this.events.emit(Gs.error,r),this.logger.fatal(\\\"Fatal socket error received, closing transport\\\"),this.transportClose()}),Rr(this,\\\"registerProviderListeners\\\",()=>{this.provider.on(id.payload,this.onPayloadHandler),this.provider.on(id.connect,this.onConnectHandler),this.provider.on(id.disconnect,this.onDisconnectHandler),this.provider.on(id.error,this.onProviderErrorHandler)}),this.core=e.core,this.logger=typeof e.logger<\\\"u\\\"&&typeof e.logger!=\\\"string\\\"?rr(e.logger,this.name):(0,sh.default)(Ll({level:e.logger||ZNt})),this.messages=new Yce(this.logger,e.core),this.subscriber=new nle(this,this.logger),this.publisher=new ele(this,this.logger),this.relayUrl=e?.relayUrl||GVe,this.projectId=e.projectId,uae()?this.packageName=GH():dae()&&(this.bundleId=GH()),this.provider={}}async init(){if(this.logger.trace(\\\"Initialized\\\"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.hasAnyTopics)try{await this.transportOpen()}catch(e){this.logger.warn(e,e?.message)}}get context(){return Ir(this.logger)}get connected(){var e,r,n;return((n=(r=(e=this.provider)==null?void 0:e.connection)==null?void 0:r.socket)==null?void 0:n.readyState)===1||!1}get connecting(){var e,r,n;return((n=(r=(e=this.provider)==null?void 0:e.connection)==null?void 0:r.socket)==null?void 0:n.readyState)===0||this.connectPromise!==void 0||!1}async publish(e,r,n){this.isInitialized(),await this.publisher.publish(e,r,n),await this.recordMessageEvent({topic:e,message:r,publishedAt:Date.now(),transportType:kn.relay},tz.outbound)}async subscribe(e,r){var n,i,s;this.isInitialized(),(!(r!=null&&r.transportType)||r?.transportType===\\\"relay\\\")&&await this.toEstablishConnection();let o=typeof((n=r?.internal)==null?void 0:n.throwOnFailedPublish)>\\\"u\\\"?!0:(i=r?.internal)==null?void 0:i.throwOnFailedPublish,a=((s=this.subscriber.topicMap.get(e))==null?void 0:s[0])||\\\"\\\",c,l=d=>{d.topic===e&&(this.subscriber.off(Hl.created,l),c())};return await Promise.all([new Promise(d=>{c=d,this.subscriber.on(Hl.created,l)}),new Promise(async(d,f)=>{a=await this.subscriber.subscribe(e,kVe({internal:{throwOnFailedPublish:o}},r)).catch(p=>{o&&f(p)})||a,d()})]),a}async unsubscribe(e,r){this.isInitialized(),await this.subscriber.unsubscribe(e,r)}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await rh(this.provider.disconnect(),2e3,\\\"provider.disconnect()\\\").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){if(!this.subscriber.hasAnyTopics){this.logger.warn(\\\"Starting WS connection skipped because the client has no topics to work with.\\\");return}if(this.connectPromise?(this.logger.debug({},\\\"Waiting for existing connection attempt to resolve...\\\"),await this.connectPromise,this.logger.debug({},\\\"Existing connection attempt resolved\\\")):(this.connectPromise=new Promise(async(r,n)=>{await this.connect(e).then(r).catch(n).finally(()=>{this.connectPromise=void 0})}),await this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},\\\"Restarting transport...\\\"),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await bq())throw new Error(\\\"No internet connection detected. Please restart your network and try again.\\\")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace(\\\"Batch message events is empty. Ignoring...\\\");return}let r=e.sort((n,i)=>n.publishedAt-i.publishedAt);this.logger.debug(`Batch of ${r.length} message events sorted`);for(let n of r)try{await this.onMessageEvent(n)}catch(i){this.logger.warn(i,\\\"Error while processing batch message event: \\\"+i?.message)}this.logger.trace(`Batch of ${r.length} message events processed`)}async onLinkMessageEvent(e,r){let{topic:n}=e;if(!r.sessionExists){let i=rs(Ye.FIVE_MINUTES),s={topic:n,expiry:i,relay:{protocol:\\\"irn\\\"},active:!1};await this.core.pairing.pairings.set(n,s)}this.events.emit(Gs.message,e),await this.recordMessageEvent(e,tz.inbound)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;let r=1;for(;r<6;){try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${r}...`),await this.createProvider(),await new Promise(async(n,i)=>{let s=()=>{i(new Error(\\\"Connection interrupted while trying to subscribe\\\"))};this.provider.once(id.disconnect,s),await rh(new Promise((o,a)=>{this.provider.connect().then(o).catch(a)}),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(o=>{i(o)}).finally(()=>{this.provider.off(id.disconnect,s),clearTimeout(this.reconnectTimeout)}),await new Promise(async(o,a)=>{let c=()=>{a(new Error(\\\"Connection interrupted while trying to subscribe\\\"))};this.provider.once(id.disconnect,c),await this.subscriber.start().then(o).catch(a).finally(()=>{this.provider.off(id.disconnect,c)})}),this.hasExperiencedNetworkDisruption=!1,n()})}catch(n){await this.subscriber.stop();let i=n;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${r}`);break}await new Promise(n=>setTimeout(n,(0,Ye.toMiliseconds)(r*1))),r++}}startPingTimeout(){var e,r,n,i,s;if(DC())try{(r=(e=this.provider)==null?void 0:e.connection)!=null&&r.socket&&((s=(i=(n=this.provider)==null?void 0:n.connection)==null?void 0:i.socket)==null||s.on(\\\"ping\\\",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(o){this.logger.warn(o,o?.message)}}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new O2(new QC(pae({sdkVersion:jce,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e,r){let{topic:n,message:i}=e;await this.messages.set(n,i,r)}async shouldIgnoreMessageEvent(e){let{topic:r,message:n}=e;if(!n||n.length===0)return this.logger.warn(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isKnownTopic(r))return this.logger.warn(`Ignoring message for unknown topic ${r}`),!0;let i=this.messages.has(r,n);return i&&this.logger.warn(`Ignoring duplicate message: ${n}`),i}async onProviderPayload(e){if(this.logger.debug(\\\"Incoming Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"incoming\\\",payload:e}),yf(e)){if(!e.method.endsWith(JNt))return;let r=e.params,{topic:n,message:i,publishedAt:s,attestation:o}=r.data,a={topic:n,message:i,publishedAt:s,transportType:kn.relay,attestation:o};this.logger.debug(\\\"Emitting Relayer Payload\\\"),this.logger.trace(kVe({type:\\\"event\\\",event:r.id},a)),this.events.emit(r.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else Fl(e)&&this.events.emit(Gs.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(await this.recordMessageEvent(e,tz.inbound),this.events.emit(Gs.message,e))}async acknowledgePayload(e){let r=gf(e.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(id.payload,this.onPayloadHandler),this.provider.off(id.connect,this.onConnectHandler),this.provider.off(id.disconnect,this.onDisconnectHandler),this.provider.off(id.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await bq();lce(async r=>{e!==r&&(e=r,r?await this.transportOpen().catch(n=>this.logger.error(n,n?.message)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}),this.core.heartbeat.on(sc.pulse,async()=>{if(!this.transportExplicitlyClosed&&!this.connected&&uce())try{await this.confirmOnlineStateOrThrow(),await this.transportOpen()}catch(r){this.logger.warn(r,r?.message)}})}async onProviderDisconnect(){clearTimeout(this.pingTimeout),this.events.emit(Gs.disconnect),this.connectionAttemptInProgress=!1,!this.reconnectInProgress&&(this.reconnectInProgress=!0,await this.subscriber.stop(),this.subscriber.hasAnyTopics&&(this.transportExplicitlyClosed||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e,e?.message)),this.reconnectTimeout=void 0,this.reconnectInProgress=!1},(0,Ye.toMiliseconds)(YNt)))))}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectPromise){await this.connectPromise;return}await this.connect()}}};uMt=\\\"[object RegExp]\\\",dMt=\\\"[object String]\\\",fMt=\\\"[object Number]\\\",pMt=\\\"[object Boolean]\\\",LVe=\\\"[object Arguments]\\\",hMt=\\\"[object Symbol]\\\",mMt=\\\"[object Date]\\\",gMt=\\\"[object Map]\\\",yMt=\\\"[object Set]\\\",bMt=\\\"[object Array]\\\",wMt=\\\"[object Function]\\\",vMt=\\\"[object ArrayBuffer]\\\",Fce=\\\"[object Object]\\\",xMt=\\\"[object Error]\\\",EMt=\\\"[object DataView]\\\",_Mt=\\\"[object Uint8Array]\\\",CMt=\\\"[object Uint8ClampedArray]\\\",SMt=\\\"[object Uint16Array]\\\",AMt=\\\"[object Uint32Array]\\\",TMt=\\\"[object BigUint64Array]\\\",IMt=\\\"[object Int8Array]\\\",RMt=\\\"[object Int16Array]\\\",PMt=\\\"[object Int32Array]\\\",OMt=\\\"[object BigInt64Array]\\\",NMt=\\\"[object Float32Array]\\\",kMt=\\\"[object Float64Array]\\\";LMt=Object.defineProperty,UVe=Object.getOwnPropertySymbols,UMt=Object.prototype.hasOwnProperty,FMt=Object.prototype.propertyIsEnumerable,ole=(t,e,r)=>e in t?LMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,FVe=(t,e)=>{for(var r in e||(e={}))UMt.call(e,r)&&ole(t,r,e[r]);if(UVe)for(var r of UVe(e))FMt.call(e,r)&&ole(t,r,e[r]);return t},Wc=(t,e,r)=>ole(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),uh=class extends Bq{constructor(e,r,n,i=lh,s=void 0){super(e,r,n,i),this.core=e,this.logger=r,this.name=n,Wc(this,\\\"map\\\",new Map),Wc(this,\\\"version\\\",XNt),Wc(this,\\\"cached\\\",[]),Wc(this,\\\"initialized\\\",!1),Wc(this,\\\"getKey\\\"),Wc(this,\\\"storagePrefix\\\",lh),Wc(this,\\\"recentlyDeleted\\\",[]),Wc(this,\\\"recentlyDeletedLimit\\\",200),Wc(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(o=>{this.getKey&&o!==null&&!Os(o)?this.map.set(this.getKey(o),o):Zae(o)?this.map.set(o.id,o):Qae(o)&&this.map.set(o.topic,o)}),this.cached=[],this.initialized=!0)}),Wc(this,\\\"set\\\",async(o,a)=>{this.isInitialized(),this.map.has(o)?await this.update(o,a):(this.logger.debug(\\\"Setting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"set\\\",key:o,value:a}),this.map.set(o,a),await this.persist())}),Wc(this,\\\"get\\\",o=>(this.isInitialized(),this.logger.debug(\\\"Getting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"get\\\",key:o}),this.getData(o))),Wc(this,\\\"getAll\\\",o=>(this.isInitialized(),o?this.values.filter(a=>Object.keys(o).every(c=>DMt(a[c],o[c]))):this.values)),Wc(this,\\\"update\\\",async(o,a)=>{this.isInitialized(),this.logger.debug(\\\"Updating value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"update\\\",key:o,update:a});let c=FVe(FVe({},this.getData(o)),a);this.map.set(o,c),await this.persist()}),Wc(this,\\\"delete\\\",async(o,a)=>{this.isInitialized(),this.map.has(o)&&(this.logger.debug(\\\"Deleting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"delete\\\",key:o,reason:a}),this.map.delete(o),this.addToRecentlyDeleted(o),await this.persist())}),this.logger=rr(r,this.name),this.storagePrefix=i,this.getKey=s}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let r=this.map.get(e);if(!r){if(this.recentlyDeleted.includes(e)){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(i),new Error(i)}let{message:n}=Ce(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>\\\"u\\\"||!e.length)return;if(this.map.size){let{message:r}=Ce(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},jMt=Object.defineProperty,HMt=(t,e,r)=>e in t?jMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nr=(t,e,r)=>HMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ale=class{constructor(e,r){this.core=e,this.logger=r,nr(this,\\\"name\\\",nkt),nr(this,\\\"version\\\",ikt),nr(this,\\\"events\\\",new E0.default),nr(this,\\\"pairings\\\"),nr(this,\\\"initialized\\\",!1),nr(this,\\\"storagePrefix\\\",lh),nr(this,\\\"ignoredPayloadTypes\\\",[nd]),nr(this,\\\"registeredMethods\\\",[]),nr(this,\\\"init\\\",async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace(\\\"Initialized\\\"))}),nr(this,\\\"register\\\",({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]}),nr(this,\\\"create\\\",async n=>{this.isInitialized();let i=Q9(),s=await this.core.crypto.setSymKey(i),o=rs(Ye.FIVE_MINUTES),a={protocol:gle},c={topic:s,expiry:o,relay:a,active:!1,methods:n?.methods},l=pq({protocol:this.core.protocol,version:this.core.version,topic:s,symKey:i,relay:a,expiryTimestamp:o,methods:n?.methods});return this.events.emit(I1.create,c),this.core.expirer.set(s,o),await this.pairings.set(s,c),await this.core.relayer.subscribe(s,{transportType:n?.transportType}),{topic:s,uri:l}}),nr(this,\\\"pair\\\",async n=>{this.isInitialized();let i=this.core.eventClient.createEvent({properties:{topic:n?.uri,trace:[vf.pairing_started]}});this.isValidPair(n,i);let{topic:s,symKey:o,relay:a,expiryTimestamp:c,methods:l}=fq(n.uri);i.props.properties.topic=s,i.addTrace(vf.pairing_uri_validation_success),i.addTrace(vf.pairing_uri_not_expired);let d;if(this.pairings.keys.includes(s)){if(d=this.pairings.get(s),i.addTrace(vf.existing_pairing),d.active)throw i.setError(ch.active_pairing_already_exists),new Error(`Pairing already exists: ${s}. Please try again with a new connection URI.`);i.addTrace(vf.pairing_not_expired)}let f=c||rs(Ye.FIVE_MINUTES),p={topic:s,relay:a,expiry:f,active:!1,methods:l};this.core.expirer.set(s,f),await this.pairings.set(s,p),i.addTrace(vf.store_new_pairing),n.activatePairing&&await this.activate({topic:s}),this.events.emit(I1.create,p),i.addTrace(vf.emit_inactive_pairing),this.core.crypto.keychain.has(s)||await this.core.crypto.setSymKey(o,s),i.addTrace(vf.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(ch.no_internet_connection)}try{await this.core.relayer.subscribe(s,{relay:a})}catch(h){throw i.setError(ch.subscribe_pairing_topic_failure),h}return i.addTrace(vf.subscribe_pairing_topic_success),p}),nr(this,\\\"activate\\\",async({topic:n})=>{this.isInitialized();let i=rs(Ye.FIVE_MINUTES);this.core.expirer.set(n,i),await this.pairings.update(n,{active:!0,expiry:i})}),nr(this,\\\"ping\\\",async n=>{this.isInitialized(),await this.isValidPing(n),this.logger.warn(\\\"ping() is deprecated and will be removed in the next major release.\\\");let{topic:i}=n;if(this.pairings.keys.includes(i)){let s=await this.sendRequest(i,\\\"wc_pairingPing\\\",{}),{done:o,resolve:a,reject:c}=th();this.events.once(br(\\\"pairing_ping\\\",s),({error:l})=>{l?c(l):a()}),await o()}}),nr(this,\\\"updateExpiry\\\",async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})}),nr(this,\\\"updateMetadata\\\",async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})}),nr(this,\\\"getPairings\\\",()=>(this.isInitialized(),this.pairings.values)),nr(this,\\\"disconnect\\\",async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,\\\"wc_pairingDelete\\\",Kr(\\\"USER_DISCONNECTED\\\")),await this.deletePairing(i))}),nr(this,\\\"formatUriFromPairing\\\",n=>{this.isInitialized();let{topic:i,relay:s,expiry:o,methods:a}=n,c=this.core.crypto.keychain.get(i);return pq({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:c,relay:s,expiryTimestamp:o,methods:a})}),nr(this,\\\"sendRequest\\\",async(n,i,s)=>{let o=Ws(i,s),a=await this.core.crypto.encode(n,o),c=u7[i].req;return this.core.history.set(n,o),this.core.relayer.publish(n,a,c),o.id}),nr(this,\\\"sendResult\\\",async(n,i,s)=>{let o=gf(n,s),a=await this.core.crypto.encode(i,o),c=(await this.core.history.get(i,n)).request.method,l=u7[c].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(o)}),nr(this,\\\"sendError\\\",async(n,i,s)=>{let o=Ul(n,s),a=await this.core.crypto.encode(i,o),c=(await this.core.history.get(i,n)).request.method,l=u7[c]?u7[c].res:u7.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(o)}),nr(this,\\\"deletePairing\\\",async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Kr(\\\"USER_DISCONNECTED\\\")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])}),nr(this,\\\"cleanup\\\",async()=>{let n=this.pairings.getAll().filter(i=>mf(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))}),nr(this,\\\"onRelayEventRequest\\\",async n=>{let{topic:i,payload:s}=n;switch(s.method){case\\\"wc_pairingPing\\\":return await this.onPairingPingRequest(i,s);case\\\"wc_pairingDelete\\\":return await this.onPairingDeleteRequest(i,s);default:return await this.onUnknownRpcMethodRequest(i,s)}}),nr(this,\\\"onRelayEventResponse\\\",async n=>{let{topic:i,payload:s}=n,o=(await this.core.history.get(i,s.id)).request.method;return o===\\\"wc_pairingPing\\\"?this.onPairingPingResponse(i,s):this.onUnknownRpcMethodResponse(o)}),nr(this,\\\"onPairingPingRequest\\\",async(n,i)=>{let{id:s}=i;try{this.isValidPing({topic:n}),await this.sendResult(s,n,!0),this.events.emit(I1.ping,{id:s,topic:n})}catch(o){await this.sendError(s,n,o),this.logger.error(o)}}),nr(this,\\\"onPairingPingResponse\\\",(n,i)=>{let{id:s}=i;setTimeout(()=>{Ii(i)?this.events.emit(br(\\\"pairing_ping\\\",s),{}):nn(i)&&this.events.emit(br(\\\"pairing_ping\\\",s),{error:i.error})},500)}),nr(this,\\\"onPairingDeleteRequest\\\",async(n,i)=>{let{id:s}=i;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(I1.delete,{id:s,topic:n})}catch(o){await this.sendError(s,n,o),this.logger.error(o)}}),nr(this,\\\"onUnknownRpcMethodRequest\\\",async(n,i)=>{let{id:s,method:o}=i;try{if(this.registeredMethods.includes(o))return;let a=Kr(\\\"WC_METHOD_UNSUPPORTED\\\",o);await this.sendError(s,n,a),this.logger.error(a)}catch(a){await this.sendError(s,n,a),this.logger.error(a)}}),nr(this,\\\"onUnknownRpcMethodResponse\\\",n=>{this.registeredMethods.includes(n)||this.logger.error(Kr(\\\"WC_METHOD_UNSUPPORTED\\\",n))}),nr(this,\\\"isValidPair\\\",(n,i)=>{var s;if(!Zo(n)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`pair() params: ${n}`);throw i.setError(ch.malformed_pairing_uri),new Error(a)}if(!Kae(n.uri)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`pair() uri: ${n.uri}`);throw i.setError(ch.malformed_pairing_uri),new Error(a)}let o=fq(n?.uri);if(!((s=o?.relay)!=null&&s.protocol)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",\\\"pair() uri#relay-protocol\\\");throw i.setError(ch.malformed_pairing_uri),new Error(a)}if(!(o!=null&&o.symKey)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",\\\"pair() uri#symKey\\\");throw i.setError(ch.malformed_pairing_uri),new Error(a)}if(o!=null&&o.expiryTimestamp&&(0,Ye.toMiliseconds)(o?.expiryTimestamp)<Date.now()){i.setError(ch.pairing_expired);let{message:a}=Ce(\\\"EXPIRED\\\",\\\"pair() URI has expired. Please try again with a new connection URI.\\\");throw new Error(a)}}),nr(this,\\\"isValidPing\\\",async n=>{if(!Zo(n)){let{message:s}=Ce(\\\"MISSING_OR_INVALID\\\",`ping() params: ${n}`);throw new Error(s)}let{topic:i}=n;await this.isValidPairingTopic(i)}),nr(this,\\\"isValidDisconnect\\\",async n=>{if(!Zo(n)){let{message:s}=Ce(\\\"MISSING_OR_INVALID\\\",`disconnect() params: ${n}`);throw new Error(s)}let{topic:i}=n;await this.isValidPairingTopic(i)}),nr(this,\\\"isValidPairingTopic\\\",async n=>{if(!Fi(n,!1)){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Ce(\\\"NO_MATCHING_KEY\\\",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(mf(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Ce(\\\"EXPIRED\\\",`pairing topic: ${n}`);throw new Error(i)}}),this.core=e,this.logger=rr(r,this.name),this.pairings=new uh(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Ir(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Gs.message,async e=>{let{topic:r,message:n,transportType:i}=e;if(this.pairings.keys.includes(r)&&i!==kn.link_mode&&!this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))try{let s=await this.core.crypto.decode(r,n);yf(s)?(this.core.history.set(r,s),await this.onRelayEventRequest({topic:r,payload:s})):Fl(s)&&(await this.core.history.resolve(s),await this.onRelayEventResponse({topic:r,payload:s}),this.core.history.delete(r,s.id)),await this.core.relayer.messages.ack(r,n)}catch(s){this.logger.error(s)}})}registerExpirerEvents(){this.core.expirer.on(ql.expired,async e=>{let{topic:r}=V9(e.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(I1.expire,{topic:r}))})}},qMt=Object.defineProperty,zMt=(t,e,r)=>e in t?qMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jo=(t,e,r)=>zMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),cle=class extends Pq{constructor(e,r){super(e,r),this.core=e,this.logger=r,Jo(this,\\\"records\\\",new Map),Jo(this,\\\"events\\\",new E0.EventEmitter),Jo(this,\\\"name\\\",skt),Jo(this,\\\"version\\\",okt),Jo(this,\\\"cached\\\",[]),Jo(this,\\\"initialized\\\",!1),Jo(this,\\\"storagePrefix\\\",lh),Jo(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),Jo(this,\\\"set\\\",(n,i,s)=>{if(this.isInitialized(),this.logger.debug(\\\"Setting JSON-RPC request history record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"set\\\",topic:n,request:i,chainId:s}),this.records.has(i.id))return;let o={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:s,expiry:rs(Ye.THIRTY_DAYS)};this.records.set(o.id,o),this.persist(),this.events.emit(bf.created,o)}),Jo(this,\\\"resolve\\\",async n=>{if(this.isInitialized(),this.logger.debug(\\\"Updating JSON-RPC response history record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"update\\\",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>\\\"u\\\"&&(i.response=nn(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.persist(),this.events.emit(bf.updated,i))}),Jo(this,\\\"get\\\",async(n,i)=>(this.isInitialized(),this.logger.debug(\\\"Getting record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"get\\\",topic:n,id:i}),await this.getRecord(i))),Jo(this,\\\"delete\\\",(n,i)=>{this.isInitialized(),this.logger.debug(\\\"Deleting record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"delete\\\",id:i}),this.values.forEach(s=>{if(s.topic===n){if(typeof i<\\\"u\\\"&&s.id!==i)return;this.records.delete(s.id),this.events.emit(bf.deleted,s)}}),this.persist()}),Jo(this,\\\"exists\\\",async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1)),Jo(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),Jo(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),Jo(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),Jo(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(r=>{if(typeof r.response<\\\"u\\\")return;let n={topic:r.topic,request:Ws(r.request.method,r.request.params,r.id),chainId:r.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let r=this.records.get(e);if(!r){let{message:n}=Ce(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(bf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>\\\"u\\\"||!e.length)return;if(this.records.size){let{message:r}=Ce(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(bf.created,e=>{let r=bf.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.events.on(bf.updated,e=>{let r=bf.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.events.on(bf.deleted,e=>{let r=bf.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.core.heartbeat.on(sc.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(r=>{(0,Ye.toMiliseconds)(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.records.delete(r.id),this.events.emit(bf.deleted,r,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},$Mt=Object.defineProperty,VMt=(t,e,r)=>e in t?$Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pa=(t,e,r)=>VMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),lle=class extends Dq{constructor(e,r){super(e,r),this.core=e,this.logger=r,Pa(this,\\\"expirations\\\",new Map),Pa(this,\\\"events\\\",new E0.EventEmitter),Pa(this,\\\"name\\\",akt),Pa(this,\\\"version\\\",ckt),Pa(this,\\\"cached\\\",[]),Pa(this,\\\"initialized\\\",!1),Pa(this,\\\"storagePrefix\\\",lh),Pa(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),Pa(this,\\\"has\\\",n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<\\\"u\\\"}catch{return!1}}),Pa(this,\\\"set\\\",(n,i)=>{this.isInitialized();let s=this.formatTarget(n),o={target:s,expiry:i};this.expirations.set(s,o),this.checkExpiry(s,o),this.events.emit(ql.created,{target:s,expiration:o})}),Pa(this,\\\"get\\\",n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)}),Pa(this,\\\"del\\\",n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),s=this.getExpiration(i);this.expirations.delete(i),this.events.emit(ql.deleted,{target:i,expiration:s})}}),Pa(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),Pa(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),Pa(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),Pa(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e==\\\"string\\\")return mae(e);if(typeof e==\\\"number\\\")return gae(e);let{message:r}=Ce(\\\"UNKNOWN_TYPE\\\",`Target type: ${typeof e}`);throw new Error(r)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(ql.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>\\\"u\\\"||!e.length)return;if(this.expirations.size){let{message:r}=Ce(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let r=this.expirations.get(e);if(!r){let{message:n}=Ce(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw this.logger.warn(n),new Error(n)}return r}checkExpiry(e,r){let{expiry:n}=r;(0,Ye.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,r)}expire(e,r){this.expirations.delete(e),this.events.emit(ql.expired,{target:e,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,r)=>this.checkExpiry(r,e))}registerEventListeners(){this.core.heartbeat.on(sc.pulse,()=>this.checkExpirations()),this.events.on(ql.created,e=>{let r=ql.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()}),this.events.on(ql.expired,e=>{let r=ql.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()}),this.events.on(ql.deleted,e=>{let r=ql.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},WMt=Object.defineProperty,GMt=(t,e,r)=>e in t?WMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ns=(t,e,r)=>GMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ule=class extends Lq{constructor(e,r,n){super(e,r,n),this.core=e,this.logger=r,this.store=n,Ns(this,\\\"name\\\",lkt),Ns(this,\\\"abortController\\\"),Ns(this,\\\"isDevEnv\\\"),Ns(this,\\\"verifyUrlV3\\\",dkt),Ns(this,\\\"storagePrefix\\\",lh),Ns(this,\\\"version\\\",WVe),Ns(this,\\\"publicKey\\\"),Ns(this,\\\"fetchPromise\\\"),Ns(this,\\\"init\\\",async()=>{var i;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,Ye.toMiliseconds)((i=this.publicKey)==null?void 0:i.expiresAt)<Date.now()&&(this.logger.debug(\\\"verify v2 public key expired\\\"),await this.removePublicKey()))}),Ns(this,\\\"register\\\",async i=>{if(!E1()||this.isDevEnv)return;let s=window.location.origin,{id:o,decryptedId:a}=i,c=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${s}&id=${o}&decryptedId=${a}`;try{let l=(0,$Ve.getDocument)(),d=this.startAbortTimer(Ye.ONE_SECOND*5),f=await new Promise((p,h)=>{let m=()=>{window.removeEventListener(\\\"message\\\",w),l.body.removeChild(g),h(\\\"attestation aborted\\\")};this.abortController.signal.addEventListener(\\\"abort\\\",m);let g=l.createElement(\\\"iframe\\\");g.src=c,g.style.display=\\\"none\\\",g.addEventListener(\\\"error\\\",m,{signal:this.abortController.signal});let w=v=>{if(v.data&&typeof v.data==\\\"string\\\")try{let b=JSON.parse(v.data);if(b.type===\\\"verify_attestation\\\"){if(Qp(b.attestation).payload.id!==o)return;clearInterval(d),l.body.removeChild(g),this.abortController.signal.removeEventListener(\\\"abort\\\",m),window.removeEventListener(\\\"message\\\",w),p(b.attestation===null?\\\"\\\":b.attestation)}}catch(b){this.logger.warn(b)}};l.body.appendChild(g),window.addEventListener(\\\"message\\\",w,{signal:this.abortController.signal})});return this.logger.debug(\\\"jwt attestation\\\",f),f}catch(l){this.logger.warn(l)}return\\\"\\\"}),Ns(this,\\\"resolve\\\",async i=>{if(this.isDevEnv)return\\\"\\\";let{attestationId:s,hash:o,encryptedId:a}=i;if(s===\\\"\\\"){this.logger.debug(\\\"resolve: attestationId is empty, skipping\\\");return}if(s){if(Qp(s).payload.id!==a)return;let l=await this.isValidJwtAttestation(s);if(l){if(!l.isVerified){this.logger.warn(\\\"resolve: jwt attestation: origin url not verified\\\");return}return l}}if(!o)return;let c=this.getVerifyUrl(i?.verifyUrl);return this.fetchAttestation(o,c)}),Ns(this,\\\"fetchAttestation\\\",async(i,s)=>{this.logger.debug(`resolving attestation: ${i} from url: ${s}`);let o=this.startAbortTimer(Ye.ONE_SECOND*5),a=await fetch(`${s}/attestation/${i}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(o),a.status===200?await a.json():void 0}),Ns(this,\\\"getVerifyUrl\\\",i=>{let s=i||YC;return fkt.includes(s)||(this.logger.info(`verify url: ${s}, not included in trusted list, assigning default: ${YC}`),s=YC),s}),Ns(this,\\\"fetchPublicKey\\\",async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);let i=this.startAbortTimer(Ye.FIVE_SECONDS),s=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(i),await s.json()}catch(i){this.logger.warn(i)}}),Ns(this,\\\"persistPublicKey\\\",async i=>{this.logger.debug(\\\"persisting public key to local storage\\\",i),await this.store.setItem(this.storeKey,i),this.publicKey=i}),Ns(this,\\\"removePublicKey\\\",async()=>{this.logger.debug(\\\"removing verify v2 public key from storage\\\"),await this.store.removeItem(this.storeKey),this.publicKey=void 0}),Ns(this,\\\"isValidJwtAttestation\\\",async i=>{let s=await this.getPublicKey();try{if(s)return this.validateAttestation(i,s)}catch(a){this.logger.error(a),this.logger.warn(\\\"error validating attestation\\\")}let o=await this.fetchAndPersistPublicKey();try{if(o)return this.validateAttestation(i,o)}catch(a){this.logger.error(a),this.logger.warn(\\\"error validating attestation\\\")}}),Ns(this,\\\"getPublicKey\\\",async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey()),Ns(this,\\\"fetchAndPersistPublicKey\\\",async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async s=>{let o=await this.fetchPublicKey();o&&(await this.persistPublicKey(o),s(o))});let i=await this.fetchPromise;return this.fetchPromise=void 0,i}),Ns(this,\\\"validateAttestation\\\",(i,s)=>{let o=$ae(i,s.publicKey),a={hasExpired:(0,Ye.toMiliseconds)(o.exp)<Date.now(),payload:o};if(a.hasExpired)throw this.logger.warn(\\\"resolve: jwt attestation expired\\\"),new Error(\\\"JWT attestation expired\\\");return{origin:a.payload.origin,isScam:a.payload.isScam,isVerified:a.payload.isVerified}}),this.logger=rr(r,this.name),this.abortController=new AbortController,this.isDevEnv=LC(),this.init()}get storeKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//verify:public:key\\\"}get context(){return Ir(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,Ye.toMiliseconds)(e))}},KMt=Object.defineProperty,ZMt=(t,e,r)=>e in t?KMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,jVe=(t,e,r)=>ZMt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),dle=class extends Uq{constructor(e,r){super(e,r),this.projectId=e,this.logger=r,jVe(this,\\\"context\\\",pkt),jVe(this,\\\"registerDeviceToken\\\",async n=>{let{clientId:i,token:s,notificationType:o,enableEncrypted:a=!1}=n,c=`${hkt}/${this.projectId}/clients`;await fetch(c,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify({client_id:i,type:o,token:s,always_raw:a})})}),this.logger=rr(r,this.context)}},QMt=Object.defineProperty,HVe=Object.getOwnPropertySymbols,JMt=Object.prototype.hasOwnProperty,YMt=Object.prototype.propertyIsEnumerable,fle=(t,e,r)=>e in t?QMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,f7=(t,e)=>{for(var r in e||(e={}))JMt.call(e,r)&&fle(t,r,e[r]);if(HVe)for(var r of HVe(e))YMt.call(e,r)&&fle(t,r,e[r]);return t},vo=(t,e,r)=>fle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ple=class extends Fq{constructor(e,r,n=!0){super(e,r,n),this.core=e,this.logger=r,vo(this,\\\"context\\\",gkt),vo(this,\\\"storagePrefix\\\",lh),vo(this,\\\"storageVersion\\\",mkt),vo(this,\\\"events\\\",new Map),vo(this,\\\"shouldPersist\\\",!1),vo(this,\\\"init\\\",async()=>{if(!LC())try{let i={eventId:JH(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:\\\"INIT\\\",type:\\\"\\\",properties:{client_id:await this.core.crypto.getClientId(),user_agent:ZH(this.core.relayer.protocol,this.core.relayer.version,jce)}}};await this.sendEvent([i])}catch(i){this.logger.warn(i)}}),vo(this,\\\"createEvent\\\",i=>{let{event:s=\\\"ERROR\\\",type:o=\\\"\\\",properties:{topic:a,trace:c}}=i,l=JH(),d=this.core.projectId||\\\"\\\",f=Date.now(),p=f7({eventId:l,timestamp:f,props:{event:s,type:o,properties:{topic:a,trace:c}},bundleId:d,domain:this.getAppDomain()},this.setMethods(l));return this.telemetryEnabled&&(this.events.set(l,p),this.shouldPersist=!0),p}),vo(this,\\\"getEvent\\\",i=>{let{eventId:s,topic:o}=i;if(s)return this.events.get(s);let a=Array.from(this.events.values()).find(c=>c.props.properties.topic===o);if(a)return f7(f7({},a),this.setMethods(a.eventId))}),vo(this,\\\"deleteEvent\\\",i=>{let{eventId:s}=i;this.events.delete(s),this.shouldPersist=!0}),vo(this,\\\"setEventListeners\\\",()=>{this.core.heartbeat.on(sc.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(i=>{(0,Ye.fromMiliseconds)(Date.now())-(0,Ye.fromMiliseconds)(i.timestamp)>ykt&&(this.events.delete(i.eventId),this.shouldPersist=!0)})})}),vo(this,\\\"setMethods\\\",i=>({addTrace:s=>this.addTrace(i,s),setError:s=>this.setError(i,s)})),vo(this,\\\"addTrace\\\",(i,s)=>{let o=this.events.get(i);o&&(o.props.properties.trace.push(s),this.events.set(i,o),this.shouldPersist=!0)}),vo(this,\\\"setError\\\",(i,s)=>{let o=this.events.get(i);o&&(o.props.type=s,o.timestamp=Date.now(),this.events.set(i,o),this.shouldPersist=!0)}),vo(this,\\\"persist\\\",async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1}),vo(this,\\\"restore\\\",async()=>{try{let i=await this.core.storage.getItem(this.storageKey)||[];if(!i.length)return;i.forEach(s=>{this.events.set(s.eventId,f7(f7({},s),this.setMethods(s.eventId)))})}catch(i){this.logger.warn(i)}}),vo(this,\\\"submit\\\",async()=>{if(!this.telemetryEnabled||this.events.size===0)return;let i=[];for(let[s,o]of this.events)o.props.type&&i.push(o);if(i.length!==0)try{if((await this.sendEvent(i)).ok)for(let s of i)this.events.delete(s.eventId),this.shouldPersist=!0}catch(s){this.logger.warn(s)}}),vo(this,\\\"sendEvent\\\",async i=>{let s=this.getAppDomain()?\\\"\\\":\\\"&sp=desktop\\\";return await fetch(`${bkt}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${jce}${s}`,{method:\\\"POST\\\",body:JSON.stringify(i)})}),vo(this,\\\"getAppDomain\\\",()=>KH().url),this.logger=rr(r,this.context),this.telemetryEnabled=n,n?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+\\\"//\\\"+this.context}},XMt=Object.defineProperty,qVe=Object.getOwnPropertySymbols,eDt=Object.prototype.hasOwnProperty,tDt=Object.prototype.propertyIsEnumerable,hle=(t,e,r)=>e in t?XMt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zVe=(t,e)=>{for(var r in e||(e={}))eDt.call(e,r)&&hle(t,r,e[r]);if(qVe)for(var r of qVe(e))tDt.call(e,r)&&hle(t,r,e[r]);return t},Nn=(t,e,r)=>hle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),mle=class t extends Rq{constructor(e){var r;super(e),Nn(this,\\\"protocol\\\",VVe),Nn(this,\\\"version\\\",WVe),Nn(this,\\\"name\\\",rz),Nn(this,\\\"relayUrl\\\"),Nn(this,\\\"projectId\\\"),Nn(this,\\\"customStoragePrefix\\\"),Nn(this,\\\"events\\\",new E0.EventEmitter),Nn(this,\\\"logger\\\"),Nn(this,\\\"heartbeat\\\"),Nn(this,\\\"relayer\\\"),Nn(this,\\\"crypto\\\"),Nn(this,\\\"storage\\\"),Nn(this,\\\"history\\\"),Nn(this,\\\"expirer\\\"),Nn(this,\\\"pairing\\\"),Nn(this,\\\"verify\\\"),Nn(this,\\\"echoClient\\\"),Nn(this,\\\"linkModeSupportedApps\\\"),Nn(this,\\\"eventClient\\\"),Nn(this,\\\"initialized\\\",!1),Nn(this,\\\"logChunkController\\\"),Nn(this,\\\"on\\\",(a,c)=>this.events.on(a,c)),Nn(this,\\\"once\\\",(a,c)=>this.events.once(a,c)),Nn(this,\\\"off\\\",(a,c)=>this.events.off(a,c)),Nn(this,\\\"removeListener\\\",(a,c)=>this.events.removeListener(a,c)),Nn(this,\\\"dispatchEnvelope\\\",({topic:a,message:c,sessionExists:l})=>{if(!a||!c)return;let d={topic:a,message:c,publishedAt:Date.now(),transportType:kn.link_mode};this.relayer.onLinkMessageEvent(d,{sessionExists:l})});let n=this.getGlobalCore(e?.customStoragePrefix);if(n)try{return this.customStoragePrefix=n.customStoragePrefix,this.logger=n.logger,this.heartbeat=n.heartbeat,this.crypto=n.crypto,this.history=n.history,this.expirer=n.expirer,this.storage=n.storage,this.relayer=n.relayer,this.pairing=n.pairing,this.verify=n.verify,this.echoClient=n.echoClient,this.linkModeSupportedApps=n.linkModeSupportedApps,this.eventClient=n.eventClient,this.initialized=n.initialized,this.logChunkController=n.logChunkController,n}catch(a){console.warn(\\\"Failed to copy global core\\\",a)}this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||GVe,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:\\\"\\\";let i=Ll({level:typeof e?.logger==\\\"string\\\"&&e.logger?e.logger:jNt.logger,name:rz}),{logger:s,chunkLoggerController:o}=P2({opts:i,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=o,(r=this.logChunkController)!=null&&r.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var a,c;(a=this.logChunkController)!=null&&a.downloadLogsBlobInBrowser&&((c=this.logChunkController)==null||c.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=rr(s,this.name),this.heartbeat=new VC,this.crypto=new Qce(this,this.logger,e?.keychain),this.history=new cle(this,this.logger),this.expirer=new lle(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new WC(zVe(zVe({},HNt),e?.storageOptions)),this.relayer=new sle({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new ale(this,this.logger),this.verify=new ule(this,this.logger,this.storage),this.echoClient=new dle(this.projectId||\\\"\\\",this.logger),this.linkModeSupportedApps=[],this.eventClient=new ple(this,this.logger,e?.telemetryEnabled),this.setGlobalCore(this)}static async init(e){let r=new t(e);await r.initialize();let n=await r.crypto.getClientId();return await r.storage.setItem(ekt,n),r}get context(){return Ir(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return(e=this.logChunkController)==null?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(EVe,this.linkModeSupportedApps))}async initialize(){this.logger.trace(\\\"Initialized\\\");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.linkModeSupportedApps=await this.storage.getItem(EVe)||[],this.initialized=!0,this.logger.info(\\\"Core Initialization Success\\\")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}getGlobalCore(e=\\\"\\\"){try{if(this.isGlobalCoreDisabled())return;let r=`_walletConnectCore_${e}`,n=`${r}_count`;return globalThis[n]=(globalThis[n]||0)+1,globalThis[n]>1&&console.warn(`WalletConnect Core is already initialized. This is probably a mistake and can lead to unexpected behavior. Init() was called ${globalThis[n]} times.`),globalThis[r]}catch(r){console.warn(\\\"Failed to get global WalletConnect core\\\",r);return}}setGlobalCore(e){var r;try{if(this.isGlobalCoreDisabled())return;let n=`_walletConnectCore_${((r=e.opts)==null?void 0:r.customStoragePrefix)||\\\"\\\"}`;globalThis[n]=e}catch(n){console.warn(\\\"Failed to set global WalletConnect core\\\",n)}}isGlobalCoreDisabled(){try{return typeof process<\\\"u\\\"&&process.env.DISABLE_GLOBAL_CORE===\\\"true\\\"}catch{return!0}}},sWe=mle});var bWe={};ue(bWe,{AUTH_CONTEXT:()=>hWe,AUTH_KEYS_CONTEXT:()=>mWe,AUTH_PAIRING_TOPIC_CONTEXT:()=>gWe,AUTH_PROTOCOL:()=>pWe,AUTH_PUBLIC_KEY_NAME:()=>g7,AUTH_REQUEST_CONTEXT:()=>yWe,AUTH_STORAGE_PREFIX:()=>y7,AUTH_VERSION:()=>cDt,ENGINE_CONTEXT:()=>uWe,ENGINE_QUEUE_STATES:()=>xf,ENGINE_RPC_OPTS:()=>Ks,HISTORY_CONTEXT:()=>sDt,HISTORY_EVENTS:()=>iDt,HISTORY_STORAGE_VERSION:()=>oDt,METHODS_TO_VERIFY:()=>fWe,PROPOSAL_CONTEXT:()=>cWe,PROPOSAL_EXPIRY:()=>aDt,PROPOSAL_EXPIRY_MESSAGE:()=>wle,REQUEST_CONTEXT:()=>dWe,SESSION_CONTEXT:()=>lWe,SESSION_EXPIRY:()=>N2,SESSION_REQUEST_EXPIRY_BOUNDARIES:()=>sz,SIGN_CLIENT_CONTEXT:()=>Ole,SIGN_CLIENT_DEFAULT:()=>iz,SIGN_CLIENT_EVENTS:()=>rDt,SIGN_CLIENT_PROTOCOL:()=>Rle,SIGN_CLIENT_STORAGE_OPTIONS:()=>nDt,SIGN_CLIENT_STORAGE_PREFIX:()=>lz,SIGN_CLIENT_VERSION:()=>Ple,SessionStore:()=>bDt,SignClient:()=>wDt,TVF_METHODS:()=>vle,WALLETCONNECT_DEEPLINK_CHOICE:()=>ble,default:()=>az});var jt,cz,Rle,Ple,Ole,lz,iz,rDt,nDt,ble,iDt,sDt,oDt,cWe,aDt,wle,lWe,N2,uWe,Ks,sz,xf,vle,dWe,fWe,pWe,cDt,hWe,mWe,gWe,yWe,y7,g7,lDt,uDt,dDt,aWe,fDt,pDt,xle,mn,ac,ge,Ele,_le,oz,Cle,Sle,Ale,Tle,hDt,mDt,yle,Ile,gDt,yDt,ir,az,bDt,wDt,wWe=x(()=>{u();oWe();C1();Ace();jt=Me(u0());Y9();cz=Me(ho());oh();Rle=\\\"wc\\\",Ple=2,Ole=\\\"client\\\",lz=`${Rle}@${Ple}:${Ole}:`,iz={name:Ole,logger:\\\"error\\\",controller:!1,relayUrl:\\\"wss://relay.walletconnect.org\\\"},rDt={session_proposal:\\\"session_proposal\\\",session_update:\\\"session_update\\\",session_extend:\\\"session_extend\\\",session_ping:\\\"session_ping\\\",session_delete:\\\"session_delete\\\",session_expire:\\\"session_expire\\\",session_request:\\\"session_request\\\",session_request_sent:\\\"session_request_sent\\\",session_event:\\\"session_event\\\",proposal_expire:\\\"proposal_expire\\\",session_authenticate:\\\"session_authenticate\\\",session_request_expire:\\\"session_request_expire\\\",session_connect:\\\"session_connect\\\"},nDt={database:\\\":memory:\\\"},ble=\\\"WALLETCONNECT_DEEPLINK_CHOICE\\\",iDt={created:\\\"history_created\\\",updated:\\\"history_updated\\\",deleted:\\\"history_deleted\\\",sync:\\\"history_sync\\\"},sDt=\\\"history\\\",oDt=\\\"0.3\\\",cWe=\\\"proposal\\\",aDt=jt.THIRTY_DAYS,wle=\\\"Proposal expired\\\",lWe=\\\"session\\\",N2=jt.SEVEN_DAYS,uWe=\\\"engine\\\",Ks={wc_sessionPropose:{req:{ttl:jt.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:jt.ONE_DAY,prompt:!1,tag:1104},res:{ttl:jt.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:jt.ONE_DAY,prompt:!1,tag:1106},res:{ttl:jt.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:jt.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:jt.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:jt.ONE_DAY,prompt:!1,tag:1112},res:{ttl:jt.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:jt.ONE_DAY,prompt:!1,tag:1114},res:{ttl:jt.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:jt.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:jt.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:jt.FIVE_MINUTES,prompt:!1,tag:1119}}},sz={min:jt.FIVE_MINUTES,max:jt.SEVEN_DAYS},xf={idle:\\\"IDLE\\\",active:\\\"ACTIVE\\\"},vle={eth_sendTransaction:{key:\\\"\\\"},eth_sendRawTransaction:{key:\\\"\\\"},wallet_sendCalls:{key:\\\"\\\"},solana_signTransaction:{key:\\\"signature\\\"},solana_signAllTransactions:{key:\\\"transactions\\\"},solana_signAndSendTransaction:{key:\\\"signature\\\"}},dWe=\\\"request\\\",fWe=[\\\"wc_sessionPropose\\\",\\\"wc_sessionRequest\\\",\\\"wc_authRequest\\\",\\\"wc_sessionAuthenticate\\\"],pWe=\\\"wc\\\",cDt=1.5,hWe=\\\"auth\\\",mWe=\\\"authKeys\\\",gWe=\\\"pairingTopics\\\",yWe=\\\"requests\\\",y7=`${pWe}@${1.5}:${hWe}:`,g7=`${y7}:PUB_KEY`,lDt=Object.defineProperty,uDt=Object.defineProperties,dDt=Object.getOwnPropertyDescriptors,aWe=Object.getOwnPropertySymbols,fDt=Object.prototype.hasOwnProperty,pDt=Object.prototype.propertyIsEnumerable,xle=(t,e,r)=>e in t?lDt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mn=(t,e)=>{for(var r in e||(e={}))fDt.call(e,r)&&xle(t,r,e[r]);if(aWe)for(var r of aWe(e))pDt.call(e,r)&&xle(t,r,e[r]);return t},ac=(t,e)=>uDt(t,dDt(e)),ge=(t,e,r)=>xle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Ele=class extends Hq{constructor(e){super(e),ge(this,\\\"name\\\",uWe),ge(this,\\\"events\\\",new cz.default),ge(this,\\\"initialized\\\",!1),ge(this,\\\"requestQueue\\\",{state:xf.idle,queue:[]}),ge(this,\\\"sessionRequestQueue\\\",{state:xf.idle,queue:[]}),ge(this,\\\"requestQueueDelay\\\",jt.ONE_SECOND),ge(this,\\\"expectedPairingMethodMap\\\",new Map),ge(this,\\\"recentlyDeletedMap\\\",new Map),ge(this,\\\"recentlyDeletedLimit\\\",200),ge(this,\\\"relayMessageCache\\\",[]),ge(this,\\\"pendingSessions\\\",new Map),ge(this,\\\"init\\\",async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(Ks)}),this.initialized=!0,setTimeout(async()=>{await this.processPendingMessageEvents(),this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,jt.toMiliseconds)(this.requestQueueDelay)))}),ge(this,\\\"connect\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();let n=ac(mn({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n),n.optionalNamespaces=Wae(n.requiredNamespaces,n.optionalNamespaces),n.requiredNamespaces={};let{pairingTopic:i,requiredNamespaces:s,optionalNamespaces:o,sessionProperties:a,scopedProperties:c,relays:l}=n,d=i,f,p=!1;try{if(d){let N=this.client.core.pairing.pairings.get(d);this.client.logger.warn(\\\"connect() with existing pairing topic is deprecated and will be removed in the next major release.\\\"),p=N.active}}catch(N){throw this.client.logger.error(`connect() -> pairing.get(${d}) failed`),N}if(!d||!p){let{topic:N,uri:O}=await this.client.core.pairing.create();d=N,f=O}if(!d){let{message:N}=Ce(\\\"NO_MATCHING_KEY\\\",`connect() pairing topic: ${d}`);throw new Error(N)}let h=await this.client.core.crypto.generateKeyPair(),m=Ks.wc_sessionPropose.req.ttl||jt.FIVE_MINUTES,g=rs(m),w=ac(mn(mn({requiredNamespaces:s,optionalNamespaces:o,relays:l??[{protocol:gle}],proposer:{publicKey:h,metadata:this.client.metadata},expiryTimestamp:g,pairingTopic:d},a&&{sessionProperties:a}),c&&{scopedProperties:c}),{id:hs()}),v=br(\\\"session_connect\\\",w.id),{reject:b,resolve:_,done:S}=th(m,wle),T=({id:N})=>{N===w.id&&(this.client.events.off(\\\"proposal_expire\\\",T),this.pendingSessions.delete(w.id),this.events.emit(v,{error:{message:wle,code:0}}))};return this.client.events.on(\\\"proposal_expire\\\",T),this.events.once(v,({error:N,session:O})=>{this.client.events.off(\\\"proposal_expire\\\",T),N?b(N):O&&_(O)}),await this.sendRequest({topic:d,method:\\\"wc_sessionPropose\\\",params:w,throwOnFailedPublish:!0,clientRpcId:w.id}),await this.setProposal(w.id,w),{uri:f,approval:S}}),ge(this,\\\"pair\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(r)}catch(n){throw this.client.logger.error(\\\"pair() failed\\\"),n}}),ge(this,\\\"approve\\\",async r=>{var n,i,s;let o=this.client.core.eventClient.createEvent({properties:{topic:(n=r?.id)==null?void 0:n.toString(),trace:[sd.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(B){throw o.setError(R1.no_internet_connection),B}try{await this.isValidProposalId(r?.id)}catch(B){throw this.client.logger.error(`approve() -> proposal.get(${r?.id}) failed`),o.setError(R1.proposal_not_found),B}try{await this.isValidApprove(r)}catch(B){throw this.client.logger.error(\\\"approve() -> isValidApprove() failed\\\"),o.setError(R1.session_approve_namespace_validation_failure),B}let{id:a,relayProtocol:c,namespaces:l,sessionProperties:d,scopedProperties:f,sessionConfig:p}=r,h=this.client.proposal.get(a);this.client.core.eventClient.deleteEvent({eventId:o.eventId});let{pairingTopic:m,proposer:g,requiredNamespaces:w,optionalNamespaces:v}=h,b=(i=this.client.core.eventClient)==null?void 0:i.getEvent({topic:m});b||(b=(s=this.client.core.eventClient)==null?void 0:s.createEvent({type:sd.session_approve_started,properties:{topic:m,trace:[sd.session_approve_started,sd.session_namespaces_validation_success]}}));let _=await this.client.core.crypto.generateKeyPair(),S=g.publicKey,T=await this.client.core.crypto.generateSharedKey(_,S),N=mn(mn(mn({relay:{protocol:c??\\\"irn\\\"},namespaces:l,controller:{publicKey:_,metadata:this.client.metadata},expiry:rs(N2)},d&&{sessionProperties:d}),f&&{scopedProperties:f}),p&&{sessionConfig:p}),O=kn.relay;b.addTrace(sd.subscribing_session_topic);try{await this.client.core.relayer.subscribe(T,{transportType:O})}catch(B){throw b.setError(R1.subscribe_session_topic_failure),B}b.addTrace(sd.subscribe_session_topic_success);let L=ac(mn({},N),{topic:T,requiredNamespaces:w,optionalNamespaces:v,pairingTopic:m,acknowledged:!1,self:N.controller,peer:{publicKey:g.publicKey,metadata:g.metadata},controller:_,transportType:kn.relay});await this.client.session.set(T,L),b.addTrace(sd.store_session);try{b.addTrace(sd.publishing_session_settle),await this.sendRequest({topic:T,method:\\\"wc_sessionSettle\\\",params:N,throwOnFailedPublish:!0}).catch(B=>{throw b?.setError(R1.session_settle_publish_failure),B}),b.addTrace(sd.session_settle_publish_success),b.addTrace(sd.publishing_session_approve),await this.sendResult({id:a,topic:m,result:{relay:{protocol:c??\\\"irn\\\"},responderPublicKey:_},throwOnFailedPublish:!0}).catch(B=>{throw b?.setError(R1.session_approve_publish_failure),B}),b.addTrace(sd.session_approve_publish_success)}catch(B){throw this.client.logger.error(B),this.client.session.delete(T,Kr(\\\"USER_DISCONNECTED\\\")),await this.client.core.relayer.unsubscribe(T),B}return this.client.core.eventClient.deleteEvent({eventId:b.eventId}),await this.client.core.pairing.updateMetadata({topic:m,metadata:g.metadata}),await this.client.proposal.delete(a,Kr(\\\"USER_DISCONNECTED\\\")),await this.client.core.pairing.activate({topic:m}),await this.setExpiry(T,rs(N2)),{topic:T,acknowledged:()=>Promise.resolve(this.client.session.get(T))}}),ge(this,\\\"reject\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(r)}catch(o){throw this.client.logger.error(\\\"reject() -> isValidReject() failed\\\"),o}let{id:n,reason:i}=r,s;try{s=this.client.proposal.get(n).pairingTopic}catch(o){throw this.client.logger.error(`reject() -> proposal.get(${n}) failed`),o}s&&(await this.sendError({id:n,topic:s,error:i,rpcOpts:Ks.wc_sessionPropose.reject}),await this.client.proposal.delete(n,Kr(\\\"USER_DISCONNECTED\\\")))}),ge(this,\\\"update\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(r)}catch(f){throw this.client.logger.error(\\\"update() -> isValidUpdate() failed\\\"),f}let{topic:n,namespaces:i}=r,{done:s,resolve:o,reject:a}=th(),c=hs(),l=Vs().toString(),d=this.client.session.get(n).namespaces;return this.events.once(br(\\\"session_update\\\",c),({error:f})=>{f?a(f):o()}),await this.client.session.update(n,{namespaces:i}),await this.sendRequest({topic:n,method:\\\"wc_sessionUpdate\\\",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:c,relayRpcId:l}).catch(f=>{this.client.logger.error(f),this.client.session.update(n,{namespaces:d}),a(f)}),{acknowledged:s}}),ge(this,\\\"extend\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(r)}catch(c){throw this.client.logger.error(\\\"extend() -> isValidExtend() failed\\\"),c}let{topic:n}=r,i=hs(),{done:s,resolve:o,reject:a}=th();return this.events.once(br(\\\"session_extend\\\",i),({error:c})=>{c?a(c):o()}),await this.setExpiry(n,rs(N2)),this.sendRequest({topic:n,method:\\\"wc_sessionExtend\\\",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(c=>{a(c)}),{acknowledged:s}}),ge(this,\\\"request\\\",async r=>{this.isInitialized();try{await this.isValidRequest(r)}catch(v){throw this.client.logger.error(\\\"request() -> isValidRequest() failed\\\"),v}let{chainId:n,request:i,topic:s,expiry:o=Ks.wc_sessionRequest.req.ttl}=r,a=this.client.session.get(s);a?.transportType===kn.relay&&await this.confirmOnlineStateOrThrow();let c=hs(),l=Vs().toString(),{done:d,resolve:f,reject:p}=th(o,\\\"Request expired. Please try again.\\\");this.events.once(br(\\\"session_request\\\",c),({error:v,result:b})=>{v?p(v):f(b)});let h=\\\"wc_sessionRequest\\\",m=this.getAppLinkIfEnabled(a.peer.metadata,a.transportType);if(m)return await this.sendRequest({clientRpcId:c,relayRpcId:l,topic:s,method:h,params:{request:ac(mn({},i),{expiryTimestamp:rs(o)}),chainId:n},expiry:o,throwOnFailedPublish:!0,appLink:m}).catch(v=>p(v)),this.client.events.emit(\\\"session_request_sent\\\",{topic:s,request:i,chainId:n,id:c}),await d();let g={request:ac(mn({},i),{expiryTimestamp:rs(o)}),chainId:n},w=this.shouldSetTVF(h,g);return await Promise.all([new Promise(async v=>{await this.sendRequest(mn({clientRpcId:c,relayRpcId:l,topic:s,method:h,params:g,expiry:o,throwOnFailedPublish:!0},w&&{tvf:this.getTVFParams(c,g)})).catch(b=>p(b)),this.client.events.emit(\\\"session_request_sent\\\",{topic:s,request:i,chainId:n,id:c}),v()}),new Promise(async v=>{var b;if(!((b=a.sessionConfig)!=null&&b.disableDeepLink)){let _=await bae(this.client.core.storage,ble);await yae({id:c,topic:s,wcDeepLink:_})}v()}),d()]).then(v=>v[2])}),ge(this,\\\"respond\\\",async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:s}=i,o=this.client.session.get(n);o.transportType===kn.relay&&await this.confirmOnlineStateOrThrow();let a=this.getAppLinkIfEnabled(o.peer.metadata,o.transportType);Ii(i)?await this.sendResult({id:s,topic:n,result:i.result,throwOnFailedPublish:!0,appLink:a}):nn(i)&&await this.sendError({id:s,topic:n,error:i.error,appLink:a}),this.cleanupAfterResponse(r)}),ge(this,\\\"ping\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(r)}catch(i){throw this.client.logger.error(\\\"ping() -> isValidPing() failed\\\"),i}let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=hs(),s=Vs().toString(),{done:o,resolve:a,reject:c}=th();this.events.once(br(\\\"session_ping\\\",i),({error:l})=>{l?c(l):a()}),await Promise.all([this.sendRequest({topic:n,method:\\\"wc_sessionPing\\\",params:{},throwOnFailedPublish:!0,clientRpcId:i,relayRpcId:s}),o()])}else this.client.core.pairing.pairings.keys.includes(n)&&(this.client.logger.warn(\\\"ping() on pairing topic is deprecated and will be removed in the next major release.\\\"),await this.client.core.pairing.ping({topic:n}))}),ge(this,\\\"emit\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(r);let{topic:n,event:i,chainId:s}=r,o=Vs().toString(),a=hs();await this.sendRequest({topic:n,method:\\\"wc_sessionEvent\\\",params:{event:i,chainId:s},throwOnFailedPublish:!0,relayRpcId:o,clientRpcId:a})}),ge(this,\\\"disconnect\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(r);let{topic:n}=r;if(this.client.session.keys.includes(n))await this.sendRequest({topic:n,method:\\\"wc_sessionDelete\\\",params:Kr(\\\"USER_DISCONNECTED\\\"),throwOnFailedPublish:!0}),await this.deleteSession({topic:n,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(n))await this.client.core.pairing.disconnect({topic:n});else{let{message:i}=Ce(\\\"MISMATCHED_TOPIC\\\",`Session or pairing topic not found: ${n}`);throw new Error(i)}}),ge(this,\\\"find\\\",r=>(this.isInitialized(),this.client.session.getAll().filter(n=>Gae(n,r)))),ge(this,\\\"getPendingSessionRequests\\\",()=>this.client.pendingRequest.getAll()),ge(this,\\\"authenticate\\\",async(r,n)=>{var i;this.isInitialized(),this.isValidAuthenticate(r);let s=n&&this.client.core.linkModeSupportedApps.includes(n)&&((i=this.client.metadata.redirect)==null?void 0:i.linkMode),o=s?kn.link_mode:kn.relay;o===kn.relay&&await this.confirmOnlineStateOrThrow();let{chains:a,statement:c=\\\"\\\",uri:l,domain:d,nonce:f,type:p,exp:h,nbf:m,methods:g=[],expiry:w}=r,v=[...r.resources||[]],{topic:b,uri:_}=await this.client.core.pairing.create({methods:[\\\"wc_sessionAuthenticate\\\"],transportType:o});this.client.logger.info({message:\\\"Generated new pairing\\\",pairing:{topic:b,uri:_}});let S=await this.client.core.crypto.generateKeyPair(),T=C2(S);if(await Promise.all([this.client.auth.authKeys.set(g7,{responseTopic:T,publicKey:S}),this.client.auth.pairingTopics.set(T,{topic:T,pairingTopic:b})]),await this.client.core.relayer.subscribe(T,{transportType:o}),this.client.logger.info(`sending request to new pairing topic: ${b}`),g.length>0){let{namespace:k}=x2(a[0]),U=Aae(k,\\\"request\\\",g);_1(v)&&(U=Iae(U,v.pop())),v.push(U)}let N=w&&w>Ks.wc_sessionAuthenticate.req.ttl?w:Ks.wc_sessionAuthenticate.req.ttl,O={authPayload:{type:p??\\\"caip122\\\",chains:a,statement:c,aud:l,domain:d,version:\\\"1\\\",nonce:f,iat:new Date().toISOString(),exp:h,nbf:m,resources:v},requester:{publicKey:S,metadata:this.client.metadata},expiryTimestamp:rs(N)},L={eip155:{chains:a,methods:[...new Set([\\\"personal_sign\\\",...g])],events:[\\\"chainChanged\\\",\\\"accountsChanged\\\"]}},B={requiredNamespaces:{},optionalNamespaces:L,relays:[{protocol:\\\"irn\\\"}],pairingTopic:b,proposer:{publicKey:S,metadata:this.client.metadata},expiryTimestamp:rs(Ks.wc_sessionPropose.req.ttl),id:hs()},{done:H,resolve:M,reject:F}=th(N,\\\"Request expired\\\"),R=hs(),y=br(\\\"session_connect\\\",B.id),E=br(\\\"session_request\\\",R),C=async({error:k,session:U})=>{this.events.off(E,I),k?F(k):U&&M({session:U})},I=async k=>{var U,D,A;if(await this.deletePendingAuthRequest(R,{message:\\\"fulfilled\\\",code:0}),k.error){let ce=Kr(\\\"WC_METHOD_UNSUPPORTED\\\",\\\"wc_sessionAuthenticate\\\");return k.error.code===ce.code?void 0:(this.events.off(y,C),F(k.error.message))}await this.deleteProposal(B.id),this.events.off(y,C);let{cacaos:j,responder:K}=k.result,J=[],X=[];for(let ce of j){await XH({cacao:ce,projectId:this.client.core.projectId})||(this.client.logger.error(ce,\\\"Signature verification failed\\\"),F(Kr(\\\"SESSION_SETTLEMENT_FAILED\\\",\\\"Signature verification failed\\\")));let{p:We}=ce,Ue=_1(We.resources),je=[G9(We.iss)],Lt=FC(We.iss);if(Ue){let pt=rq(Ue),Ct=nq(Ue);J.push(...pt),je.push(...Ct)}for(let pt of je)X.push(`${pt}:${Lt}`)}let re=await this.client.core.crypto.generateSharedKey(S,K.publicKey),fe;J.length>0&&(fe={topic:re,acknowledged:!0,self:{publicKey:S,metadata:this.client.metadata},peer:K,controller:K.publicKey,expiry:rs(N2),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\\\"irn\\\"},pairingTopic:b,namespaces:hq([...new Set(J)],[...new Set(X)]),transportType:o},await this.client.core.relayer.subscribe(re,{transportType:o}),await this.client.session.set(re,fe),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:K.metadata}),fe=this.client.session.get(re)),(U=this.client.metadata.redirect)!=null&&U.linkMode&&(D=K.metadata.redirect)!=null&&D.linkMode&&(A=K.metadata.redirect)!=null&&A.universal&&n&&(this.client.core.addLinkModeSupportedApp(K.metadata.redirect.universal),this.client.session.update(re,{transportType:kn.link_mode})),M({auths:j,session:fe})};this.events.once(y,C),this.events.once(E,I);let P;try{if(s){let k=Ws(\\\"wc_sessionAuthenticate\\\",O,R);this.client.core.history.set(b,k);let U=await this.client.core.crypto.encode(\\\"\\\",k,{type:_2,encoding:nh});P=zC(n,b,U)}else await Promise.all([this.sendRequest({topic:b,method:\\\"wc_sessionAuthenticate\\\",params:O,expiry:r.expiry,throwOnFailedPublish:!0,clientRpcId:R}),this.sendRequest({topic:b,method:\\\"wc_sessionPropose\\\",params:B,expiry:Ks.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:B.id})])}catch(k){throw this.events.off(y,C),this.events.off(E,I),k}return await this.setProposal(B.id,B),await this.setAuthRequest(R,{request:ac(mn({},O),{verifyContext:{}}),pairingTopic:b,transportType:o}),{uri:P??_,response:H}}),ge(this,\\\"approveSessionAuthenticate\\\",async r=>{let{id:n,auths:i}=r,s=this.client.core.eventClient.createEvent({properties:{topic:n.toString(),trace:[P1.authenticated_session_approve_started]}});try{this.isInitialized()}catch(w){throw s.setError(XC.no_internet_connection),w}let o=this.getPendingAuthRequest(n);if(!o)throw s.setError(XC.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${n}`);let a=o.transportType||kn.relay;a===kn.relay&&await this.confirmOnlineStateOrThrow();let c=o.requester.publicKey,l=await this.client.core.crypto.generateKeyPair(),d=C2(c),f={type:nd,receiverPublicKey:c,senderPublicKey:l},p=[],h=[];for(let w of i){if(!await XH({cacao:w,projectId:this.client.core.projectId})){s.setError(XC.invalid_cacao);let T=Kr(\\\"SESSION_SETTLEMENT_FAILED\\\",\\\"Signature verification failed\\\");throw await this.sendError({id:n,topic:d,error:T,encodeOpts:f}),new Error(T.message)}s.addTrace(P1.cacaos_verified);let{p:v}=w,b=_1(v.resources),_=[G9(v.iss)],S=FC(v.iss);if(b){let T=rq(b),N=nq(b);p.push(...T),_.push(...N)}for(let T of _)h.push(`${T}:${S}`)}let m=await this.client.core.crypto.generateSharedKey(l,c);s.addTrace(P1.create_authenticated_session_topic);let g;if(p?.length>0){g={topic:m,acknowledged:!0,self:{publicKey:l,metadata:this.client.metadata},peer:{publicKey:c,metadata:o.requester.metadata},controller:c,expiry:rs(N2),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\\\"irn\\\"},pairingTopic:o.pairingTopic,namespaces:hq([...new Set(p)],[...new Set(h)]),transportType:a},s.addTrace(P1.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(m,{transportType:a})}catch(w){throw s.setError(XC.subscribe_authenticated_session_topic_failure),w}s.addTrace(P1.subscribe_authenticated_session_topic_success),await this.client.session.set(m,g),s.addTrace(P1.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:o.pairingTopic,metadata:o.requester.metadata})}s.addTrace(P1.publishing_authenticated_session_approve);try{await this.sendResult({topic:d,id:n,result:{cacaos:i,responder:{publicKey:l,metadata:this.client.metadata}},encodeOpts:f,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(o.requester.metadata,a)})}catch(w){throw s.setError(XC.authenticated_session_approve_publish_failure),w}return await this.client.auth.requests.delete(n,{message:\\\"fulfilled\\\",code:0}),await this.client.core.pairing.activate({topic:o.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:s.eventId}),{session:g}}),ge(this,\\\"rejectSessionAuthenticate\\\",async r=>{this.isInitialized();let{id:n,reason:i}=r,s=this.getPendingAuthRequest(n);if(!s)throw new Error(`Could not find pending auth request with id ${n}`);s.transportType===kn.relay&&await this.confirmOnlineStateOrThrow();let o=s.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),c=C2(o),l={type:nd,receiverPublicKey:o,senderPublicKey:a};await this.sendError({id:n,topic:c,error:i,encodeOpts:l,rpcOpts:Ks.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(s.requester.metadata,s.transportType)}),await this.client.auth.requests.delete(n,{message:\\\"rejected\\\",code:0}),await this.client.proposal.delete(n,Kr(\\\"USER_DISCONNECTED\\\"))}),ge(this,\\\"formatAuthMessage\\\",r=>{this.isInitialized();let{request:n,iss:i}=r;return eq(n,i)}),ge(this,\\\"processRelayMessageCache\\\",()=>{setTimeout(async()=>{if(this.relayMessageCache.length!==0)for(;this.relayMessageCache.length>0;)try{let r=this.relayMessageCache.shift();r&&await this.onRelayMessage(r)}catch(r){this.client.logger.error(r)}},50)}),ge(this,\\\"cleanupDuplicatePairings\\\",async r=>{if(r.pairingTopic)try{let n=this.client.core.pairing.pairings.get(r.pairingTopic),i=this.client.core.pairing.pairings.getAll().filter(s=>{var o,a;return((o=s.peerMetadata)==null?void 0:o.url)&&((a=s.peerMetadata)==null?void 0:a.url)===r.peer.metadata.url&&s.topic&&s.topic!==n.topic});if(i.length===0)return;this.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),await Promise.all(i.map(s=>this.client.core.pairing.disconnect({topic:s.topic}))),this.client.logger.info(\\\"Duplicate pairings clean up finished\\\")}catch(n){this.client.logger.error(n)}}),ge(this,\\\"deleteSession\\\",async r=>{var n;let{topic:i,expirerHasDeleted:s=!1,emitEvent:o=!0,id:a=0}=r,{self:c}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),await this.client.session.delete(i,Kr(\\\"USER_DISCONNECTED\\\")),this.addToRecentlyDeleted(i,\\\"session\\\"),this.client.core.crypto.keychain.has(c.publicKey)&&await this.client.core.crypto.deleteKeyPair(c.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),s||this.client.core.expirer.del(i),this.client.core.storage.removeItem(ble).catch(l=>this.client.logger.warn(l)),this.getPendingSessionRequests().forEach(l=>{l.topic===i&&this.deletePendingSessionRequest(l.id,Kr(\\\"USER_DISCONNECTED\\\"))}),i===((n=this.sessionRequestQueue.queue[0])==null?void 0:n.topic)&&(this.sessionRequestQueue.state=xf.idle),o&&this.client.events.emit(\\\"session_delete\\\",{id:a,topic:i})}),ge(this,\\\"deleteProposal\\\",async(r,n)=>{if(n)try{let i=this.client.proposal.get(r);this.client.core.eventClient.getEvent({topic:i.pairingTopic})?.setError(R1.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(r,Kr(\\\"USER_DISCONNECTED\\\")),n?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,\\\"proposal\\\")}),ge(this,\\\"deletePendingSessionRequest\\\",async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,\\\"request\\\"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(s=>s.id!==r),i&&(this.sessionRequestQueue.state=xf.idle,this.client.events.emit(\\\"session_request_expire\\\",{id:r}))}),ge(this,\\\"deletePendingAuthRequest\\\",async(r,n,i=!1)=>{await Promise.all([this.client.auth.requests.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])}),ge(this,\\\"setExpiry\\\",async(r,n)=>{this.client.session.keys.includes(r)&&(this.client.core.expirer.set(r,n),await this.client.session.update(r,{expiry:n}))}),ge(this,\\\"setProposal\\\",async(r,n)=>{this.client.core.expirer.set(r,rs(Ks.wc_sessionPropose.req.ttl)),await this.client.proposal.set(r,n)}),ge(this,\\\"setAuthRequest\\\",async(r,n)=>{let{request:i,pairingTopic:s,transportType:o=kn.relay}=n;this.client.core.expirer.set(r,i.expiryTimestamp),await this.client.auth.requests.set(r,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:r,pairingTopic:s,verifyContext:i.verifyContext,transportType:o})}),ge(this,\\\"setPendingSessionRequest\\\",async r=>{let{id:n,topic:i,params:s,verifyContext:o}=r,a=s.request.expiryTimestamp||rs(Ks.wc_sessionRequest.req.ttl);this.client.core.expirer.set(n,a),await this.client.pendingRequest.set(n,{id:n,topic:i,params:s,verifyContext:o})}),ge(this,\\\"sendRequest\\\",async r=>{let{topic:n,method:i,params:s,expiry:o,relayRpcId:a,clientRpcId:c,throwOnFailedPublish:l,appLink:d,tvf:f}=r,p=Ws(i,s,c),h,m=!!d;try{let v=m?nh:Vc;h=await this.client.core.crypto.encode(n,p,{encoding:v})}catch(v){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),v}let g;if(fWe.includes(i)){let v=Dl(JSON.stringify(p)),b=Dl(h);g=await this.client.core.verify.register({id:b,decryptedId:v})}let w=Ks[i].req;if(w.attestation=g,o&&(w.ttl=o),a&&(w.id=a),this.client.core.history.set(n,p),m){let v=zC(d,n,h);await globalThis.Linking.openURL(v,this.client.name)}else{let v=Ks[i].req;o&&(v.ttl=o),a&&(v.id=a),v.tvf=ac(mn({},f),{correlationId:p.id}),l?(v.internal=ac(mn({},v.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,h,v)):this.client.core.relayer.publish(n,h,v).catch(b=>this.client.logger.error(b))}return p.id}),ge(this,\\\"sendResult\\\",async r=>{let{id:n,topic:i,result:s,throwOnFailedPublish:o,encodeOpts:a,appLink:c}=r,l=gf(n,s),d,f=c&&typeof globalThis?.Linking<\\\"u\\\";try{let m=f?nh:Vc;d=await this.client.core.crypto.encode(i,l,ac(mn({},a||{}),{encoding:m}))}catch(m){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),m}let p,h;try{p=await this.client.core.history.get(i,n);let m=p.request;try{this.shouldSetTVF(m.method,m.params)&&(h=this.getTVFParams(n,m.params,s))}catch(g){this.client.logger.warn(\\\"sendResult() -> getTVFParams() failed\\\",g)}}catch(m){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${n}) failed`),m}if(f){let m=zC(c,i,d);await globalThis.Linking.openURL(m,this.client.name)}else{let m=p.request.method,g=Ks[m].res;g.tvf=ac(mn({},h),{correlationId:n}),o?(g.internal=ac(mn({},g.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,d,g)):this.client.core.relayer.publish(i,d,g).catch(w=>this.client.logger.error(w))}await this.client.core.history.resolve(l)}),ge(this,\\\"sendError\\\",async r=>{let{id:n,topic:i,error:s,encodeOpts:o,rpcOpts:a,appLink:c}=r,l=Ul(n,s),d,f=c&&typeof globalThis?.Linking<\\\"u\\\";try{let h=f?nh:Vc;d=await this.client.core.crypto.encode(i,l,ac(mn({},o||{}),{encoding:h}))}catch(h){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),h}let p;try{p=await this.client.core.history.get(i,n)}catch(h){throw this.client.logger.error(`sendError() -> history.get(${i}, ${n}) failed`),h}if(f){let h=zC(c,i,d);await globalThis.Linking.openURL(h,this.client.name)}else{let h=p.request.method,m=a||Ks[h].res;this.client.core.relayer.publish(i,d,m)}await this.client.core.history.resolve(l)}),ge(this,\\\"cleanup\\\",async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{let s=!1;mf(i.expiry)&&(s=!0),this.client.core.crypto.keychain.has(i.topic)||(s=!0),s&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{mf(i.expiryTimestamp)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession({topic:i})),...n.map(i=>this.deleteProposal(i))])}),ge(this,\\\"onProviderMessageEvent\\\",async r=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(r):await this.onRelayMessage(r)}),ge(this,\\\"onRelayEventRequest\\\",async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()}),ge(this,\\\"processRequestsQueue\\\",async()=>{if(this.requestQueue.state===xf.active){this.client.logger.info(\\\"Request queue already active, skipping...\\\");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=xf.active;let r=this.requestQueue.queue.shift();if(r)try{await this.processRequest(r)}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=xf.idle}),ge(this,\\\"processRequest\\\",async r=>{let{topic:n,payload:i,attestation:s,transportType:o,encryptedId:a}=r,c=i.method;if(!this.shouldIgnorePairingRequest({topic:n,requestMethod:c}))switch(c){case\\\"wc_sessionPropose\\\":return await this.onSessionProposeRequest({topic:n,payload:i,attestation:s,encryptedId:a});case\\\"wc_sessionSettle\\\":return await this.onSessionSettleRequest(n,i);case\\\"wc_sessionUpdate\\\":return await this.onSessionUpdateRequest(n,i);case\\\"wc_sessionExtend\\\":return await this.onSessionExtendRequest(n,i);case\\\"wc_sessionPing\\\":return await this.onSessionPingRequest(n,i);case\\\"wc_sessionDelete\\\":return await this.onSessionDeleteRequest(n,i);case\\\"wc_sessionRequest\\\":return await this.onSessionRequest({topic:n,payload:i,attestation:s,encryptedId:a,transportType:o});case\\\"wc_sessionEvent\\\":return await this.onSessionEventRequest(n,i);case\\\"wc_sessionAuthenticate\\\":return await this.onSessionAuthenticateRequest({topic:n,payload:i,attestation:s,encryptedId:a,transportType:o});default:return this.client.logger.info(`Unsupported request method ${c}`)}}),ge(this,\\\"onRelayEventResponse\\\",async r=>{let{topic:n,payload:i,transportType:s}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case\\\"wc_sessionPropose\\\":return this.onSessionProposeResponse(n,i,s);case\\\"wc_sessionSettle\\\":return this.onSessionSettleResponse(n,i);case\\\"wc_sessionUpdate\\\":return this.onSessionUpdateResponse(n,i);case\\\"wc_sessionExtend\\\":return this.onSessionExtendResponse(n,i);case\\\"wc_sessionPing\\\":return this.onSessionPingResponse(n,i);case\\\"wc_sessionRequest\\\":return this.onSessionRequestResponse(n,i);case\\\"wc_sessionAuthenticate\\\":return this.onSessionAuthenticateResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}}),ge(this,\\\"onRelayEventUnknownPayload\\\",r=>{let{topic:n}=r,{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(i)}),ge(this,\\\"shouldIgnorePairingRequest\\\",r=>{let{topic:n,requestMethod:i}=r,s=this.expectedPairingMethodMap.get(n);return!s||s.includes(i)?!1:!!(s.includes(\\\"wc_sessionAuthenticate\\\")&&this.client.events.listenerCount(\\\"session_authenticate\\\")>0)}),ge(this,\\\"onSessionProposeRequest\\\",async r=>{let{topic:n,payload:i,attestation:s,encryptedId:o}=r,{params:a,id:c}=i;try{let l=this.client.core.eventClient.getEvent({topic:n});this.client.events.listenerCount(\\\"session_proposal\\\")===0&&(console.warn(\\\"No listener for session_proposal event\\\"),l?.setError(ch.proposal_listener_not_found)),this.isValidConnect(mn({},i.params));let d=a.expiryTimestamp||rs(Ks.wc_sessionPropose.req.ttl),f=mn({id:c,pairingTopic:n,expiryTimestamp:d},a);await this.setProposal(c,f);let p=await this.getVerifyContext({attestationId:s,hash:Dl(JSON.stringify(i)),encryptedId:o,metadata:f.proposer.metadata});l?.addTrace(vf.emit_session_proposal),this.client.events.emit(\\\"session_proposal\\\",{id:c,params:f,verifyContext:p})}catch(l){await this.sendError({id:c,topic:n,error:l,rpcOpts:Ks.wc_sessionPropose.autoReject}),this.client.logger.error(l)}}),ge(this,\\\"onSessionProposeResponse\\\",async(r,n,i)=>{let{id:s}=n;if(Ii(n)){let{result:o}=n;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",result:o});let a=this.client.proposal.get(s);this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",proposal:a});let c=a.proposer.publicKey;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",selfPublicKey:c});let l=o.responderPublicKey;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",peerPublicKey:l});let d=await this.client.core.crypto.generateSharedKey(c,l);this.pendingSessions.set(s,{sessionTopic:d,pairingTopic:r,proposalId:s,publicKey:c});let f=await this.client.core.relayer.subscribe(d,{transportType:i});this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",subscriptionId:f}),await this.client.core.pairing.activate({topic:r})}else if(nn(n)){await this.client.proposal.delete(s,Kr(\\\"USER_DISCONNECTED\\\"));let o=br(\\\"session_connect\\\",s);if(this.events.listenerCount(o)===0)throw new Error(`emitting ${o} without any listeners, 954`);this.events.emit(o,{error:n.error})}}),ge(this,\\\"onSessionSettleRequest\\\",async(r,n)=>{let{id:i,params:s}=n;try{this.isValidSessionSettleRequest(s);let{relay:o,controller:a,expiry:c,namespaces:l,sessionProperties:d,scopedProperties:f,sessionConfig:p}=n.params,h=[...this.pendingSessions.values()].find(w=>w.sessionTopic===r);if(!h)return this.client.logger.error(`Pending session not found for topic ${r}`);let m=this.client.proposal.get(h.proposalId),g=ac(mn(mn(mn({topic:r,relay:o,expiry:c,namespaces:l,acknowledged:!0,pairingTopic:h.pairingTopic,requiredNamespaces:m.requiredNamespaces,optionalNamespaces:m.optionalNamespaces,controller:a.publicKey,self:{publicKey:h.publicKey,metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},d&&{sessionProperties:d}),f&&{scopedProperties:f}),p&&{sessionConfig:p}),{transportType:kn.relay});await this.client.session.set(g.topic,g),await this.setExpiry(g.topic,g.expiry),await this.client.core.pairing.updateMetadata({topic:h.pairingTopic,metadata:g.peer.metadata}),this.client.events.emit(\\\"session_connect\\\",{session:g}),this.events.emit(br(\\\"session_connect\\\",h.proposalId),{session:g}),this.pendingSessions.delete(h.proposalId),this.deleteProposal(h.proposalId,!1),this.cleanupDuplicatePairings(g),await this.sendResult({id:n.id,topic:r,result:!0,throwOnFailedPublish:!0})}catch(o){await this.sendError({id:i,topic:r,error:o}),this.client.logger.error(o)}}),ge(this,\\\"onSessionSettleResponse\\\",async(r,n)=>{let{id:i}=n;Ii(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(br(\\\"session_approve\\\",i),{})):nn(n)&&(await this.client.session.delete(r,Kr(\\\"USER_DISCONNECTED\\\")),this.events.emit(br(\\\"session_approve\\\",i),{error:n.error}))}),ge(this,\\\"onSessionUpdateRequest\\\",async(r,n)=>{let{params:i,id:s}=n;try{let o=`${r}_session_update`,a=v0.get(o);if(a&&this.isRequestOutOfSync(a,s)){this.client.logger.warn(`Discarding out of sync request - ${s}`),this.sendError({id:s,topic:r,error:Kr(\\\"INVALID_UPDATE_REQUEST\\\")});return}this.isValidUpdate(mn({topic:r},i));try{v0.set(o,s),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult({id:s,topic:r,result:!0,throwOnFailedPublish:!0})}catch(c){throw v0.delete(o),c}this.client.events.emit(\\\"session_update\\\",{id:s,topic:r,params:i})}catch(o){await this.sendError({id:s,topic:r,error:o}),this.client.logger.error(o)}}),ge(this,\\\"isRequestOutOfSync\\\",(r,n)=>n.toString().slice(0,-3)<r.toString().slice(0,-3)),ge(this,\\\"onSessionUpdateResponse\\\",(r,n)=>{let{id:i}=n,s=br(\\\"session_update\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(br(\\\"session_update\\\",i),{}):nn(n)&&this.events.emit(br(\\\"session_update\\\",i),{error:n.error})}),ge(this,\\\"onSessionExtendRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,rs(N2)),await this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\\\"session_extend\\\",{id:i,topic:r})}catch(s){await this.sendError({id:i,topic:r,error:s}),this.client.logger.error(s)}}),ge(this,\\\"onSessionExtendResponse\\\",(r,n)=>{let{id:i}=n,s=br(\\\"session_extend\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(br(\\\"session_extend\\\",i),{}):nn(n)&&this.events.emit(br(\\\"session_extend\\\",i),{error:n.error})}),ge(this,\\\"onSessionPingRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\\\"session_ping\\\",{id:i,topic:r})}catch(s){await this.sendError({id:i,topic:r,error:s}),this.client.logger.error(s)}}),ge(this,\\\"onSessionPingResponse\\\",(r,n)=>{let{id:i}=n,s=br(\\\"session_ping\\\",i);setTimeout(()=>{if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners 2176`);Ii(n)?this.events.emit(br(\\\"session_ping\\\",i),{}):nn(n)&&this.events.emit(br(\\\"session_ping\\\",i),{error:n.error})},500)}),ge(this,\\\"onSessionDeleteRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),Promise.all([new Promise(s=>{this.client.core.relayer.once(Gs.publish,async()=>{s(await this.deleteSession({topic:r,id:i}))})}),this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:r,error:Kr(\\\"USER_DISCONNECTED\\\")})]).catch(s=>this.client.logger.error(s))}catch(s){this.client.logger.error(s)}}),ge(this,\\\"onSessionRequest\\\",async r=>{var n,i,s;let{topic:o,payload:a,attestation:c,encryptedId:l,transportType:d}=r,{id:f,params:p}=a;try{await this.isValidRequest(mn({topic:o},p));let h=this.client.session.get(o),m=await this.getVerifyContext({attestationId:c,hash:Dl(JSON.stringify(Ws(\\\"wc_sessionRequest\\\",p,f))),encryptedId:l,metadata:h.peer.metadata,transportType:d}),g={id:f,topic:o,params:p,verifyContext:m};await this.setPendingSessionRequest(g),d===kn.link_mode&&(n=h.peer.metadata.redirect)!=null&&n.universal&&this.client.core.addLinkModeSupportedApp((i=h.peer.metadata.redirect)==null?void 0:i.universal),(s=this.client.signConfig)!=null&&s.disableRequestQueue?this.emitSessionRequest(g):(this.addSessionRequestToSessionRequestQueue(g),this.processSessionRequestQueue())}catch(h){await this.sendError({id:f,topic:o,error:h}),this.client.logger.error(h)}}),ge(this,\\\"onSessionRequestResponse\\\",(r,n)=>{let{id:i}=n,s=br(\\\"session_request\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(br(\\\"session_request\\\",i),{result:n.result}):nn(n)&&this.events.emit(br(\\\"session_request\\\",i),{error:n.error})}),ge(this,\\\"onSessionEventRequest\\\",async(r,n)=>{let{id:i,params:s}=n;try{let o=`${r}_session_event_${s.event.name}`,a=v0.get(o);if(a&&this.isRequestOutOfSync(a,i)){this.client.logger.info(`Discarding out of sync request - ${i}`);return}this.isValidEmit(mn({topic:r},s)),this.client.events.emit(\\\"session_event\\\",{id:i,topic:r,params:s}),v0.set(o,i)}catch(o){await this.sendError({id:i,topic:r,error:o}),this.client.logger.error(o)}}),ge(this,\\\"onSessionAuthenticateResponse\\\",(r,n)=>{let{id:i}=n;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionAuthenticateResponse\\\",topic:r,payload:n}),Ii(n)?this.events.emit(br(\\\"session_request\\\",i),{result:n.result}):nn(n)&&this.events.emit(br(\\\"session_request\\\",i),{error:n.error})}),ge(this,\\\"onSessionAuthenticateRequest\\\",async r=>{var n;let{topic:i,payload:s,attestation:o,encryptedId:a,transportType:c}=r;try{let{requester:l,authPayload:d,expiryTimestamp:f}=s.params,p=await this.getVerifyContext({attestationId:o,hash:Dl(JSON.stringify(s)),encryptedId:a,metadata:l.metadata,transportType:c}),h={requester:l,pairingTopic:i,id:s.id,authPayload:d,verifyContext:p,expiryTimestamp:f};await this.setAuthRequest(s.id,{request:h,pairingTopic:i,transportType:c}),c===kn.link_mode&&(n=l.metadata.redirect)!=null&&n.universal&&this.client.core.addLinkModeSupportedApp(l.metadata.redirect.universal),this.client.events.emit(\\\"session_authenticate\\\",{topic:i,params:s.params,id:s.id,verifyContext:p})}catch(l){this.client.logger.error(l);let d=s.params.requester.publicKey,f=await this.client.core.crypto.generateKeyPair(),p=this.getAppLinkIfEnabled(s.params.requester.metadata,c),h={type:nd,receiverPublicKey:d,senderPublicKey:f};await this.sendError({id:s.id,topic:i,error:l,encodeOpts:h,rpcOpts:Ks.wc_sessionAuthenticate.autoReject,appLink:p})}}),ge(this,\\\"addSessionRequestToSessionRequestQueue\\\",r=>{this.sessionRequestQueue.queue.push(r)}),ge(this,\\\"cleanupAfterResponse\\\",r=>{this.deletePendingSessionRequest(r.response.id,{message:\\\"fulfilled\\\",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=xf.idle,this.processSessionRequestQueue()},(0,jt.toMiliseconds)(this.requestQueueDelay))}),ge(this,\\\"cleanupPendingSentRequestsForTopic\\\",({topic:r,error:n})=>{let i=this.client.core.history.pending;i.length>0&&i.filter(s=>s.topic===r&&s.request.method===\\\"wc_sessionRequest\\\").forEach(s=>{let o=s.request.id,a=br(\\\"session_request\\\",o);if(this.events.listenerCount(a)===0)throw new Error(`emitting ${a} without any listeners`);this.events.emit(br(\\\"session_request\\\",s.request.id),{error:n})})}),ge(this,\\\"processSessionRequestQueue\\\",()=>{if(this.sessionRequestQueue.state===xf.active){this.client.logger.info(\\\"session request queue is already active.\\\");return}let r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info(\\\"session request queue is empty.\\\");return}try{this.sessionRequestQueue.state=xf.active,this.emitSessionRequest(r)}catch(n){this.client.logger.error(n)}}),ge(this,\\\"emitSessionRequest\\\",r=>{this.client.events.emit(\\\"session_request\\\",r)}),ge(this,\\\"onPairingCreated\\\",r=>{if(r.methods&&this.expectedPairingMethodMap.set(r.topic,r.methods),r.active)return;let n=this.client.proposal.getAll().find(i=>i.pairingTopic===r.topic);n&&this.onSessionProposeRequest({topic:r.topic,payload:Ws(\\\"wc_sessionPropose\\\",ac(mn({},n),{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties,scopedProperties:n.scopedProperties}),n.id)})}),ge(this,\\\"isValidConnect\\\",async r=>{if(!Zo(r)){let{message:l}=Ce(\\\"MISSING_OR_INVALID\\\",`connect() params: ${JSON.stringify(r)}`);throw new Error(l)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,scopedProperties:a,relays:c}=r;if(Os(n)||await this.isValidPairingTopic(n),!ece(c,!0)){let{message:l}=Ce(\\\"MISSING_OR_INVALID\\\",`connect() relays: ${c}`);throw new Error(l)}if(!Os(i)&&R2(i)!==0){let l=\\\"requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces\\\";[\\\"fatal\\\",\\\"error\\\",\\\"silent\\\"].includes(this.client.logger.level)?console.warn(l):this.client.logger.warn(l),this.validateNamespaces(i,\\\"requiredNamespaces\\\")}if(!Os(s)&&R2(s)!==0&&this.validateNamespaces(s,\\\"optionalNamespaces\\\"),Os(o)||this.validateSessionProps(o,\\\"sessionProperties\\\"),!Os(a)){this.validateSessionProps(a,\\\"scopedProperties\\\");let l=Object.keys(i||{}).concat(Object.keys(s||{}));if(!Object.keys(a).every(d=>l.includes(d)))throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(a)}, required/optional namespaces: ${JSON.stringify(l)}`)}}),ge(this,\\\"validateNamespaces\\\",(r,n)=>{let i=Xae(r,\\\"connect()\\\",n);if(i)throw new Error(i.message)}),ge(this,\\\"isValidApprove\\\",async r=>{if(!Zo(r))throw new Error(Ce(\\\"MISSING_OR_INVALID\\\",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:s,sessionProperties:o,scopedProperties:a}=r;this.checkRecentlyDeleted(n),await this.isValidProposalId(n);let c=this.client.proposal.get(n),l=$C(i,\\\"approve()\\\");if(l)throw new Error(l.message);let d=J9(c.requiredNamespaces,i,\\\"approve()\\\");if(d)throw new Error(d.message);if(!Fi(s,!0)){let{message:f}=Ce(\\\"MISSING_OR_INVALID\\\",`approve() relayProtocol: ${s}`);throw new Error(f)}if(Os(o)||this.validateSessionProps(o,\\\"sessionProperties\\\"),!Os(a)){this.validateSessionProps(a,\\\"scopedProperties\\\");let f=new Set(Object.keys(i));if(!Object.keys(a).every(p=>f.has(p)))throw new Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(a)}, approved namespaces: ${Array.from(f).join(\\\", \\\")}`)}}),ge(this,\\\"isValidReject\\\",async r=>{if(!Zo(r)){let{message:s}=Ce(\\\"MISSING_OR_INVALID\\\",`reject() params: ${r}`);throw new Error(s)}let{id:n,reason:i}=r;if(this.checkRecentlyDeleted(n),await this.isValidProposalId(n),!rce(i)){let{message:s}=Ce(\\\"MISSING_OR_INVALID\\\",`reject() reason: ${JSON.stringify(i)}`);throw new Error(s)}}),ge(this,\\\"isValidSessionSettleRequest\\\",r=>{if(!Zo(r)){let{message:l}=Ce(\\\"MISSING_OR_INVALID\\\",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:s,expiry:o}=r;if(!gq(n)){let{message:l}=Ce(\\\"MISSING_OR_INVALID\\\",\\\"onSessionSettleRequest() relay protocol should be a string\\\");throw new Error(l)}let a=Jae(i,\\\"onSessionSettleRequest()\\\");if(a)throw new Error(a.message);let c=$C(s,\\\"onSessionSettleRequest()\\\");if(c)throw new Error(c.message);if(mf(o)){let{message:l}=Ce(\\\"EXPIRED\\\",\\\"onSessionSettleRequest()\\\");throw new Error(l)}}),ge(this,\\\"isValidUpdate\\\",async r=>{if(!Zo(r)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`update() params: ${r}`);throw new Error(c)}let{topic:n,namespaces:i}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n);let s=this.client.session.get(n),o=$C(i,\\\"update()\\\");if(o)throw new Error(o.message);let a=J9(s.requiredNamespaces,i,\\\"update()\\\");if(a)throw new Error(a.message)}),ge(this,\\\"isValidExtend\\\",async r=>{if(!Zo(r)){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n)}),ge(this,\\\"isValidRequest\\\",async r=>{if(!Zo(r)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`request() params: ${r}`);throw new Error(c)}let{topic:n,request:i,chainId:s,expiry:o}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!yq(a,s)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`request() chainId: ${s}`);throw new Error(c)}if(!nce(i)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`request() ${JSON.stringify(i)}`);throw new Error(c)}if(!oce(a,s,i.method)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`request() method: ${i.method}`);throw new Error(c)}if(o&&!cce(o,sz)){let{message:c}=Ce(\\\"MISSING_OR_INVALID\\\",`request() expiry: ${o}. Expiry must be a number (in seconds) between ${sz.min} and ${sz.max}`);throw new Error(c)}}),ge(this,\\\"isValidRespond\\\",async r=>{var n;if(!Zo(r)){let{message:o}=Ce(\\\"MISSING_OR_INVALID\\\",`respond() params: ${r}`);throw new Error(o)}let{topic:i,response:s}=r;try{await this.isValidSessionTopic(i)}catch(o){throw(n=r?.response)!=null&&n.id&&this.cleanupAfterResponse(r),o}if(!ice(s)){let{message:o}=Ce(\\\"MISSING_OR_INVALID\\\",`respond() response: ${JSON.stringify(s)}`);throw new Error(o)}}),ge(this,\\\"isValidPing\\\",async r=>{if(!Zo(r)){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}),ge(this,\\\"isValidEmit\\\",async r=>{if(!Zo(r)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:s}=r;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!yq(o,s)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`emit() chainId: ${s}`);throw new Error(a)}if(!sce(i)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!ace(o,s,i.name)){let{message:a}=Ce(\\\"MISSING_OR_INVALID\\\",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}}),ge(this,\\\"isValidDisconnect\\\",async r=>{if(!Zo(r)){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}),ge(this,\\\"isValidAuthenticate\\\",r=>{let{chains:n,uri:i,domain:s,nonce:o}=r;if(!Array.isArray(n)||n.length===0)throw new Error(\\\"chains is required and must be a non-empty array\\\");if(!Fi(i,!1))throw new Error(\\\"uri is required parameter\\\");if(!Fi(s,!1))throw new Error(\\\"domain is required parameter\\\");if(!Fi(o,!1))throw new Error(\\\"nonce is required parameter\\\");if([...new Set(n.map(c=>x2(c).namespace))].length>1)throw new Error(\\\"Multi-namespace requests are not supported. Please request single namespace only.\\\");let{namespace:a}=x2(n[0]);if(a!==\\\"eip155\\\")throw new Error(\\\"Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.\\\")}),ge(this,\\\"getVerifyContext\\\",async r=>{let{attestationId:n,hash:i,encryptedId:s,metadata:o,transportType:a}=r,c={verified:{verifyUrl:o.verifyUrl||YC,validation:\\\"UNKNOWN\\\",origin:o.url||\\\"\\\"}};try{if(a===kn.link_mode){let d=this.getAppLinkIfEnabled(o,a);return c.verified.validation=d&&new URL(d).origin===new URL(o.url).origin?\\\"VALID\\\":\\\"INVALID\\\",c}let l=await this.client.core.verify.resolve({attestationId:n,hash:i,encryptedId:s,verifyUrl:o.verifyUrl});l&&(c.verified.origin=l.origin,c.verified.isScam=l.isScam,c.verified.validation=l.origin===new URL(o.url).origin?\\\"VALID\\\":\\\"INVALID\\\")}catch(l){this.client.logger.warn(l)}return this.client.logger.debug(`Verify context: ${JSON.stringify(c)}`),c}),ge(this,\\\"validateSessionProps\\\",(r,n)=>{Object.values(r).forEach((i,s)=>{if(i==null){let{message:o}=Ce(\\\"MISSING_OR_INVALID\\\",`${n} must contain an existing value for each key. Received: ${i} for key ${Object.keys(r)[s]}`);throw new Error(o)}})}),ge(this,\\\"getPendingAuthRequest\\\",r=>{let n=this.client.auth.requests.get(r);return typeof n==\\\"object\\\"?n:void 0}),ge(this,\\\"addToRecentlyDeleted\\\",(r,n)=>{if(this.recentlyDeletedMap.set(r,n),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let i=0,s=this.recentlyDeletedLimit/2;for(let o of this.recentlyDeletedMap.keys()){if(i++>=s)break;this.recentlyDeletedMap.delete(o)}}}),ge(this,\\\"checkRecentlyDeleted\\\",r=>{let n=this.recentlyDeletedMap.get(r);if(n){let{message:i}=Ce(\\\"MISSING_OR_INVALID\\\",`Record was recently deleted - ${n}: ${r}`);throw new Error(i)}}),ge(this,\\\"isLinkModeEnabled\\\",(r,n)=>{var i,s,o,a,c,l,d,f,p;return!r||n!==kn.link_mode?!1:((s=(i=this.client.metadata)==null?void 0:i.redirect)==null?void 0:s.linkMode)===!0&&((a=(o=this.client.metadata)==null?void 0:o.redirect)==null?void 0:a.universal)!==void 0&&((l=(c=this.client.metadata)==null?void 0:c.redirect)==null?void 0:l.universal)!==\\\"\\\"&&((d=r?.redirect)==null?void 0:d.universal)!==void 0&&((f=r?.redirect)==null?void 0:f.universal)!==\\\"\\\"&&((p=r?.redirect)==null?void 0:p.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(r.redirect.universal)&&typeof globalThis?.Linking<\\\"u\\\"}),ge(this,\\\"getAppLinkIfEnabled\\\",(r,n)=>{var i;return this.isLinkModeEnabled(r,n)?(i=r?.redirect)==null?void 0:i.universal:void 0}),ge(this,\\\"handleLinkModeMessage\\\",({url:r})=>{if(!r||!r.includes(\\\"wc_ev\\\")||!r.includes(\\\"topic\\\"))return;let n=QH(r,\\\"topic\\\")||\\\"\\\",i=decodeURIComponent(QH(r,\\\"wc_ev\\\")||\\\"\\\"),s=this.client.session.keys.includes(n);s&&this.client.session.update(n,{transportType:kn.link_mode}),this.client.core.dispatchEnvelope({topic:n,message:i,sessionExists:s})}),ge(this,\\\"registerLinkModeListeners\\\",async()=>{var r;if(LC()||eh()&&(r=this.client.metadata.redirect)!=null&&r.linkMode){let n=globalThis?.Linking;if(typeof n<\\\"u\\\"){n.addEventListener(\\\"url\\\",this.handleLinkModeMessage,this.client.name);let i=await n.getInitialURL();i&&setTimeout(()=>{this.handleLinkModeMessage({url:i})},50)}}}),ge(this,\\\"shouldSetTVF\\\",(r,n)=>{if(!n||r!==\\\"wc_sessionRequest\\\")return!1;let{request:i}=n;return Object.keys(vle).includes(i.method)}),ge(this,\\\"getTVFParams\\\",(r,n,i)=>{var s,o;try{let a=n.request.method,c=this.extractTxHashesFromResult(a,i);return ac(mn({correlationId:r,rpcMethods:[a],chainId:n.chainId},this.isValidContractData(n.request.params)&&{contractAddresses:[(o=(s=n.request.params)==null?void 0:s[0])==null?void 0:o.to]}),{txHashes:c})}catch(a){this.client.logger.warn(\\\"Error getting TVF params\\\",a)}return{}}),ge(this,\\\"isValidContractData\\\",r=>{var n;if(!r)return!1;try{let i=r?.data||((n=r?.[0])==null?void 0:n.data);if(!i.startsWith(\\\"0x\\\"))return!1;let s=i.slice(2);return/^[0-9a-fA-F]*$/.test(s)?s.length%2===0:!1}catch{}return!1}),ge(this,\\\"extractTxHashesFromResult\\\",(r,n)=>{try{let i=vle[r];if(typeof n==\\\"string\\\")return[n];let s=n[i.key];if(I2(s))return r===\\\"solana_signAllTransactions\\\"?s.map(o=>_ae(o)):s;if(typeof s==\\\"string\\\")return[s]}catch(i){this.client.logger.warn(\\\"Error extracting tx hashes from result\\\",i)}return[]})}async processPendingMessageEvents(){try{let e=this.client.session.keys,r=this.client.core.relayer.messages.getWithoutAck(e);for(let[n,i]of Object.entries(r))for(let s of i)try{await this.onProviderMessageEvent({topic:n,message:s,publishedAt:Date.now()})}catch{this.client.logger.warn(`Error processing pending message event for topic: ${n}, message: ${s}`)}}catch(e){this.client.logger.warn(\\\"processPendingMessageEvents failed\\\",e)}}isInitialized(){if(!this.initialized){let{message:e}=Ce(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Gs.message,e=>{this.onProviderMessageEvent(e)})}async onRelayMessage(e){let{topic:r,message:n,attestation:i,transportType:s}=e,{publicKey:o}=this.client.auth.authKeys.keys.includes(g7)?this.client.auth.authKeys.get(g7):{responseTopic:void 0,publicKey:void 0};try{let a=await this.client.core.crypto.decode(r,n,{receiverPublicKey:o,encoding:s===kn.link_mode?nh:Vc});yf(a)?(this.client.core.history.set(r,a),await this.onRelayEventRequest({topic:r,payload:a,attestation:i,transportType:s,encryptedId:Dl(n)})):Fl(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a,transportType:s}),this.client.core.history.delete(r,a.id)):await this.onRelayEventUnknownPayload({topic:r,payload:a,transportType:s}),await this.client.core.relayer.messages.ack(r,n)}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(ql.expired,async e=>{let{topic:r,id:n}=V9(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,Ce(\\\"EXPIRED\\\"),!0);if(n&&this.client.auth.requests.keys.includes(n))return await this.deletePendingAuthRequest(n,Ce(\\\"EXPIRED\\\"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession({topic:r,expirerHasDeleted:!0}),this.client.events.emit(\\\"session_expire\\\",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit(\\\"proposal_expire\\\",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(I1.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(I1.delete,e=>{this.addToRecentlyDeleted(e.topic,\\\"pairing\\\")})}isValidPairingTopic(e){if(!Fi(e,!1)){let{message:r}=Ce(\\\"MISSING_OR_INVALID\\\",`pairing topic should be a string: ${e}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:r}=Ce(\\\"NO_MATCHING_KEY\\\",`pairing topic doesn't exist: ${e}`);throw new Error(r)}if(mf(this.client.core.pairing.pairings.get(e).expiry)){let{message:r}=Ce(\\\"EXPIRED\\\",`pairing topic: ${e}`);throw new Error(r)}}async isValidSessionTopic(e){if(!Fi(e,!1)){let{message:r}=Ce(\\\"MISSING_OR_INVALID\\\",`session topic should be a string: ${e}`);throw new Error(r)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:r}=Ce(\\\"NO_MATCHING_KEY\\\",`session topic doesn't exist: ${e}`);throw new Error(r)}if(mf(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:r}=Ce(\\\"EXPIRED\\\",`session topic: ${e}`);throw new Error(r)}if(!this.client.core.crypto.keychain.has(e)){let{message:r}=Ce(\\\"MISSING_OR_INVALID\\\",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(r)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(Fi(e,!1)){let{message:r}=Ce(\\\"NO_MATCHING_KEY\\\",`session or pairing topic doesn't exist: ${e}`);throw new Error(r)}else{let{message:r}=Ce(\\\"MISSING_OR_INVALID\\\",`session or pairing topic should be a string: ${e}`);throw new Error(r)}}async isValidProposalId(e){if(!tce(e)){let{message:r}=Ce(\\\"MISSING_OR_INVALID\\\",`proposal id should be a number: ${e}`);throw new Error(r)}if(!this.client.proposal.keys.includes(e)){let{message:r}=Ce(\\\"NO_MATCHING_KEY\\\",`proposal id doesn't exist: ${e}`);throw new Error(r)}if(mf(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:r}=Ce(\\\"EXPIRED\\\",`proposal id: ${e}`);throw new Error(r)}}},_le=class extends uh{constructor(e,r){super(e,r,cWe,lz),this.core=e,this.logger=r}},oz=class extends uh{constructor(e,r){super(e,r,lWe,lz),this.core=e,this.logger=r}},Cle=class extends uh{constructor(e,r){super(e,r,dWe,lz,n=>n.id),this.core=e,this.logger=r}},Sle=class extends uh{constructor(e,r){super(e,r,mWe,y7,()=>g7),this.core=e,this.logger=r}},Ale=class extends uh{constructor(e,r){super(e,r,gWe,y7),this.core=e,this.logger=r}},Tle=class extends uh{constructor(e,r){super(e,r,yWe,y7,n=>n.id),this.core=e,this.logger=r}},hDt=Object.defineProperty,mDt=(t,e,r)=>e in t?hDt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yle=(t,e,r)=>mDt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Ile=class{constructor(e,r){this.core=e,this.logger=r,yle(this,\\\"authKeys\\\"),yle(this,\\\"pairingTopics\\\"),yle(this,\\\"requests\\\"),this.authKeys=new Sle(this.core,this.logger),this.pairingTopics=new Ale(this.core,this.logger),this.requests=new Tle(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}},gDt=Object.defineProperty,yDt=(t,e,r)=>e in t?gDt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ir=(t,e,r)=>yDt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),az=class t extends jq{constructor(e){super(e),ir(this,\\\"protocol\\\",Rle),ir(this,\\\"version\\\",Ple),ir(this,\\\"name\\\",iz.name),ir(this,\\\"metadata\\\"),ir(this,\\\"core\\\"),ir(this,\\\"logger\\\"),ir(this,\\\"events\\\",new cz.EventEmitter),ir(this,\\\"engine\\\"),ir(this,\\\"session\\\"),ir(this,\\\"proposal\\\"),ir(this,\\\"pendingRequest\\\"),ir(this,\\\"auth\\\"),ir(this,\\\"signConfig\\\"),ir(this,\\\"on\\\",(n,i)=>this.events.on(n,i)),ir(this,\\\"once\\\",(n,i)=>this.events.once(n,i)),ir(this,\\\"off\\\",(n,i)=>this.events.off(n,i)),ir(this,\\\"removeListener\\\",(n,i)=>this.events.removeListener(n,i)),ir(this,\\\"removeAllListeners\\\",n=>this.events.removeAllListeners(n)),ir(this,\\\"connect\\\",async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"pair\\\",async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"approve\\\",async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"reject\\\",async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"update\\\",async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"extend\\\",async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"request\\\",async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"respond\\\",async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"ping\\\",async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"emit\\\",async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"disconnect\\\",async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"find\\\",n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"getPendingSessionRequests\\\",()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}}),ir(this,\\\"authenticate\\\",async(n,i)=>{try{return await this.engine.authenticate(n,i)}catch(s){throw this.logger.error(s.message),s}}),ir(this,\\\"formatAuthMessage\\\",n=>{try{return this.engine.formatAuthMessage(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"approveSessionAuthenticate\\\",async n=>{try{return await this.engine.approveSessionAuthenticate(n)}catch(i){throw this.logger.error(i.message),i}}),ir(this,\\\"rejectSessionAuthenticate\\\",async n=>{try{return await this.engine.rejectSessionAuthenticate(n)}catch(i){throw this.logger.error(i.message),i}}),this.name=e?.name||iz.name,this.metadata=fae(e?.metadata),this.signConfig=e?.signConfig;let r=typeof e?.logger<\\\"u\\\"&&typeof e?.logger!=\\\"string\\\"?e.logger:(0,sh.default)(Ll({level:e?.logger||iz.logger}));this.core=e?.core||new sWe(e),this.logger=rr(r,this.name),this.session=new oz(this.core,this.logger),this.proposal=new _le(this.core,this.logger),this.pendingRequest=new Cle(this.core,this.logger),this.engine=new Ele(this),this.auth=new Ile(this.core,this.logger)}static async init(e){let r=new t(e);return await r.initialize(),r}get context(){return Ir(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace(\\\"Initialized\\\");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info(\\\"SignClient Initialization Success\\\"),setTimeout(()=>{this.engine.processRelayMessageCache()},(0,jt.toMiliseconds)(jt.ONE_SECOND))}catch(e){throw this.logger.info(\\\"SignClient Initialization Failure\\\"),this.logger.error(e.message),e}}},bDt=oz,wDt=az});var xWe=q((O1,vWe)=>{u();var uz=typeof globalThis<\\\"u\\\"&&globalThis||typeof self<\\\"u\\\"&&self||typeof globalThis<\\\"u\\\"&&globalThis,dz=(function(){function t(){this.fetch=!1,this.DOMException=uz.DOMException}return t.prototype=uz,new t})();(function(t){var e=(function(r){var n=typeof t<\\\"u\\\"&&t||typeof self<\\\"u\\\"&&self||typeof t<\\\"u\\\"&&t||{},i={searchParams:\\\"URLSearchParams\\\"in n,iterable:\\\"Symbol\\\"in n&&\\\"iterator\\\"in Symbol,blob:\\\"FileReader\\\"in n&&\\\"Blob\\\"in n&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:\\\"FormData\\\"in n,arrayBuffer:\\\"ArrayBuffer\\\"in n};function s(M){return M&&DataView.prototype.isPrototypeOf(M)}if(i.arrayBuffer)var o=[\\\"[object Int8Array]\\\",\\\"[object Uint8Array]\\\",\\\"[object Uint8ClampedArray]\\\",\\\"[object Int16Array]\\\",\\\"[object Uint16Array]\\\",\\\"[object Int32Array]\\\",\\\"[object Uint32Array]\\\",\\\"[object Float32Array]\\\",\\\"[object Float64Array]\\\"],a=ArrayBuffer.isView||function(M){return M&&o.indexOf(Object.prototype.toString.call(M))>-1};function c(M){if(typeof M!=\\\"string\\\"&&(M=String(M)),/[^a-z0-9\\\\-#$%&'*+.^_`|~!]/i.test(M)||M===\\\"\\\")throw new TypeError('Invalid character in header field name: \\\"'+M+'\\\"');return M.toLowerCase()}function l(M){return typeof M!=\\\"string\\\"&&(M=String(M)),M}function d(M){var F={next:function(){var R=M.shift();return{done:R===void 0,value:R}}};return i.iterable&&(F[Symbol.iterator]=function(){return F}),F}function f(M){this.map={},M instanceof f?M.forEach(function(F,R){this.append(R,F)},this):Array.isArray(M)?M.forEach(function(F){if(F.length!=2)throw new TypeError(\\\"Headers constructor: expected name/value pair to be length 2, found\\\"+F.length);this.append(F[0],F[1])},this):M&&Object.getOwnPropertyNames(M).forEach(function(F){this.append(F,M[F])},this)}f.prototype.append=function(M,F){M=c(M),F=l(F);var R=this.map[M];this.map[M]=R?R+\\\", \\\"+F:F},f.prototype.delete=function(M){delete this.map[c(M)]},f.prototype.get=function(M){return M=c(M),this.has(M)?this.map[M]:null},f.prototype.has=function(M){return this.map.hasOwnProperty(c(M))},f.prototype.set=function(M,F){this.map[c(M)]=l(F)},f.prototype.forEach=function(M,F){for(var R in this.map)this.map.hasOwnProperty(R)&&M.call(F,this.map[R],R,this)},f.prototype.keys=function(){var M=[];return this.forEach(function(F,R){M.push(R)}),d(M)},f.prototype.values=function(){var M=[];return this.forEach(function(F){M.push(F)}),d(M)},f.prototype.entries=function(){var M=[];return this.forEach(function(F,R){M.push([R,F])}),d(M)},i.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function p(M){if(!M._noBody){if(M.bodyUsed)return Promise.reject(new TypeError(\\\"Already read\\\"));M.bodyUsed=!0}}function h(M){return new Promise(function(F,R){M.onload=function(){F(M.result)},M.onerror=function(){R(M.error)}})}function m(M){var F=new FileReader,R=h(F);return F.readAsArrayBuffer(M),R}function g(M){var F=new FileReader,R=h(F),y=/charset=([A-Za-z0-9_-]+)/.exec(M.type),E=y?y[1]:\\\"utf-8\\\";return F.readAsText(M,E),R}function w(M){for(var F=new Uint8Array(M),R=new Array(F.length),y=0;y<F.length;y++)R[y]=String.fromCharCode(F[y]);return R.join(\\\"\\\")}function v(M){if(M.slice)return M.slice(0);var F=new Uint8Array(M.byteLength);return F.set(new Uint8Array(M)),F.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(M){this.bodyUsed=this.bodyUsed,this._bodyInit=M,M?typeof M==\\\"string\\\"?this._bodyText=M:i.blob&&Blob.prototype.isPrototypeOf(M)?this._bodyBlob=M:i.formData&&FormData.prototype.isPrototypeOf(M)?this._bodyFormData=M:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(M)?this._bodyText=M.toString():i.arrayBuffer&&i.blob&&s(M)?(this._bodyArrayBuffer=v(M.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(M)||a(M))?this._bodyArrayBuffer=v(M):this._bodyText=M=Object.prototype.toString.call(M):(this._noBody=!0,this._bodyText=\\\"\\\"),this.headers.get(\\\"content-type\\\")||(typeof M==\\\"string\\\"?this.headers.set(\\\"content-type\\\",\\\"text/plain;charset=UTF-8\\\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\\\"content-type\\\",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(M)&&this.headers.set(\\\"content-type\\\",\\\"application/x-www-form-urlencoded;charset=UTF-8\\\"))},i.blob&&(this.blob=function(){var M=p(this);if(M)return M;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\\\"could not read FormData body as blob\\\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var M=p(this);return M||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(m);throw new Error(\\\"could not read as ArrayBuffer\\\")}},this.text=function(){var M=p(this);if(M)return M;if(this._bodyBlob)return g(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\\\"could not read FormData body as text\\\");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=[\\\"CONNECT\\\",\\\"DELETE\\\",\\\"GET\\\",\\\"HEAD\\\",\\\"OPTIONS\\\",\\\"PATCH\\\",\\\"POST\\\",\\\"PUT\\\",\\\"TRACE\\\"];function S(M){var F=M.toUpperCase();return _.indexOf(F)>-1?F:M}function T(M,F){if(!(this instanceof T))throw new TypeError('Please use the \\\"new\\\" operator, this DOM object constructor cannot be called as a function.');F=F||{};var R=F.body;if(M instanceof T){if(M.bodyUsed)throw new TypeError(\\\"Already read\\\");this.url=M.url,this.credentials=M.credentials,F.headers||(this.headers=new f(M.headers)),this.method=M.method,this.mode=M.mode,this.signal=M.signal,!R&&M._bodyInit!=null&&(R=M._bodyInit,M.bodyUsed=!0)}else this.url=String(M);if(this.credentials=F.credentials||this.credentials||\\\"same-origin\\\",(F.headers||!this.headers)&&(this.headers=new f(F.headers)),this.method=S(F.method||this.method||\\\"GET\\\"),this.mode=F.mode||this.mode||null,this.signal=F.signal||this.signal||(function(){if(\\\"AbortController\\\"in n){var C=new AbortController;return C.signal}})(),this.referrer=null,(this.method===\\\"GET\\\"||this.method===\\\"HEAD\\\")&&R)throw new TypeError(\\\"Body not allowed for GET or HEAD requests\\\");if(this._initBody(R),(this.method===\\\"GET\\\"||this.method===\\\"HEAD\\\")&&(F.cache===\\\"no-store\\\"||F.cache===\\\"no-cache\\\")){var y=/([?&])_=[^&]*/;if(y.test(this.url))this.url=this.url.replace(y,\\\"$1_=\\\"+new Date().getTime());else{var E=/\\\\?/;this.url+=(E.test(this.url)?\\\"&\\\":\\\"?\\\")+\\\"_=\\\"+new Date().getTime()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function N(M){var F=new FormData;return M.trim().split(\\\"&\\\").forEach(function(R){if(R){var y=R.split(\\\"=\\\"),E=y.shift().replace(/\\\\+/g,\\\" \\\"),C=y.join(\\\"=\\\").replace(/\\\\+/g,\\\" \\\");F.append(decodeURIComponent(E),decodeURIComponent(C))}}),F}function O(M){var F=new f,R=M.replace(/\\\\r?\\\\n[\\\\t ]+/g,\\\" \\\");return R.split(\\\"\\\\r\\\").map(function(y){return y.indexOf(`\\n`)===0?y.substr(1,y.length):y}).forEach(function(y){var E=y.split(\\\":\\\"),C=E.shift().trim();if(C){var I=E.join(\\\":\\\").trim();try{F.append(C,I)}catch(P){console.warn(\\\"Response \\\"+P.message)}}}),F}b.call(T.prototype);function L(M,F){if(!(this instanceof L))throw new TypeError('Please use the \\\"new\\\" operator, this DOM object constructor cannot be called as a function.');if(F||(F={}),this.type=\\\"default\\\",this.status=F.status===void 0?200:F.status,this.status<200||this.status>599)throw new RangeError(\\\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\\\");this.ok=this.status>=200&&this.status<300,this.statusText=F.statusText===void 0?\\\"\\\":\\\"\\\"+F.statusText,this.headers=new f(F.headers),this.url=F.url||\\\"\\\",this._initBody(M)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},L.error=function(){var M=new L(null,{status:200,statusText:\\\"\\\"});return M.ok=!1,M.status=0,M.type=\\\"error\\\",M};var B=[301,302,303,307,308];L.redirect=function(M,F){if(B.indexOf(F)===-1)throw new RangeError(\\\"Invalid status code\\\");return new L(null,{status:F,headers:{location:M}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(F,R){this.message=F,this.name=R;var y=Error(F);this.stack=y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function H(M,F){return new Promise(function(R,y){var E=new T(M,F);if(E.signal&&E.signal.aborted)return y(new r.DOMException(\\\"Aborted\\\",\\\"AbortError\\\"));var C=new XMLHttpRequest;function I(){C.abort()}C.onload=function(){var U={statusText:C.statusText,headers:O(C.getAllResponseHeaders()||\\\"\\\")};E.url.indexOf(\\\"file://\\\")===0&&(C.status<200||C.status>599)?U.status=200:U.status=C.status,U.url=\\\"responseURL\\\"in C?C.responseURL:U.headers.get(\\\"X-Request-URL\\\");var D=\\\"response\\\"in C?C.response:C.responseText;setTimeout(function(){R(new L(D,U))},0)},C.onerror=function(){setTimeout(function(){y(new TypeError(\\\"Network request failed\\\"))},0)},C.ontimeout=function(){setTimeout(function(){y(new TypeError(\\\"Network request timed out\\\"))},0)},C.onabort=function(){setTimeout(function(){y(new r.DOMException(\\\"Aborted\\\",\\\"AbortError\\\"))},0)};function P(U){try{return U===\\\"\\\"&&n.location.href?n.location.href:U}catch{return U}}if(C.open(E.method,P(E.url),!0),E.credentials===\\\"include\\\"?C.withCredentials=!0:E.credentials===\\\"omit\\\"&&(C.withCredentials=!1),\\\"responseType\\\"in C&&(i.blob?C.responseType=\\\"blob\\\":i.arrayBuffer&&(C.responseType=\\\"arraybuffer\\\")),F&&typeof F.headers==\\\"object\\\"&&!(F.headers instanceof f||n.Headers&&F.headers instanceof n.Headers)){var k=[];Object.getOwnPropertyNames(F.headers).forEach(function(U){k.push(c(U)),C.setRequestHeader(U,l(F.headers[U]))}),E.headers.forEach(function(U,D){k.indexOf(D)===-1&&C.setRequestHeader(D,U)})}else E.headers.forEach(function(U,D){C.setRequestHeader(D,U)});E.signal&&(E.signal.addEventListener(\\\"abort\\\",I),C.onreadystatechange=function(){C.readyState===4&&E.signal.removeEventListener(\\\"abort\\\",I)}),C.send(typeof E._bodyInit>\\\"u\\\"?null:E._bodyInit)})}return H.polyfill=!0,n.fetch||(n.fetch=H,n.Headers=f,n.Request=T,n.Response=L),r.Headers=f,r.Request=T,r.Response=L,r.fetch=H,Object.defineProperty(r,\\\"__esModule\\\",{value:!0}),r})({})})(dz);dz.fetch.ponyfill=!0;delete dz.fetch.polyfill;var e4=uz.fetch?uz:dz;O1=e4.fetch;O1.default=e4.fetch;O1.fetch=e4.fetch;O1.Headers=e4.Headers;O1.Request=e4.Request;O1.Response=e4.Response;vWe.exports=O1});var Ble={};ue(Ble,{HttpConnection:()=>kle,default:()=>kle});var IWe,Nle,vDt,xDt,EDt,EWe,_Dt,CDt,_We,CWe,SWe,SDt,ADt,AWe,TWe,kle,Mle=x(()=>{u();IWe=Me(ho()),Nle=Me(xWe());f1();oh();vDt=Object.defineProperty,xDt=Object.defineProperties,EDt=Object.getOwnPropertyDescriptors,EWe=Object.getOwnPropertySymbols,_Dt=Object.prototype.hasOwnProperty,CDt=Object.prototype.propertyIsEnumerable,_We=(t,e,r)=>e in t?vDt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,CWe=(t,e)=>{for(var r in e||(e={}))_Dt.call(e,r)&&_We(t,r,e[r]);if(EWe)for(var r of EWe(e))CDt.call(e,r)&&_We(t,r,e[r]);return t},SWe=(t,e)=>xDt(t,EDt(e)),SDt={Accept:\\\"application/json\\\",\\\"Content-Type\\\":\\\"application/json\\\"},ADt=\\\"POST\\\",AWe={headers:SDt,method:ADt},TWe=10,kle=class{constructor(e,r=!1){if(this.url=e,this.disableProviderPing=r,this.events=new IWe.EventEmitter,this.isAvailable=!1,this.registering=!1,!Yq(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=r}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error(\\\"Connection already closed\\\");this.onClose()}async send(e){this.isAvailable||await this.register();try{let r=Vo(e),n=await(await(0,Nle.default)(this.url,SWe(CWe({},AWe),{body:r}))).json();this.onPayload({data:n})}catch(r){this.onError(e.id,r)}}async register(e=this.url){if(!Yq(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount(\\\"register_error\\\")>=r||this.events.listenerCount(\\\"open\\\")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once(\\\"register_error\\\",s=>{this.resetMaxListeners(),i(s)}),this.events.once(\\\"open\\\",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>\\\"u\\\")return i(new Error(\\\"HTTP connection is missing or invalid\\\"));n()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let r=Vo({id:1,jsonrpc:\\\"2.0\\\",method:\\\"test\\\",params:[]});await(0,Nle.default)(e,SWe(CWe({},AWe),{body:r}))}this.onOpen()}catch(r){let n=this.parseError(r);throw this.events.emit(\\\"register_error\\\",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit(\\\"open\\\")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit(\\\"close\\\")}onPayload(e){if(typeof e.data>\\\"u\\\")return;let r=typeof e.data==\\\"string\\\"?nc(e.data):e.data;this.events.emit(\\\"payload\\\",r)}onError(e,r){let n=this.parseError(r),i=n.message||n.toString(),s=Ul(e,i);this.events.emit(\\\"payload\\\",s)}parseError(e,r=this.url){return o7(e,r,\\\"HTTP\\\")}resetMaxListeners(){this.events.getMaxListeners()>TWe&&this.events.setMaxListeners(TWe)}}});var eGe=q(yz=>{\\\"use strict\\\";u();Object.defineProperty(yz,\\\"__esModule\\\",{value:!0});var TDt=(wWe(),mt(bWe)),ks=(Y9(),mt(dce)),RWe=(C1(),mt(Sce)),zWe=(Mle(),mt(Ble)),Ef=(l7(),mt(Bce)),$We=(oh(),mt(Ra)),IDt=ho();function Xle(t){return t&&typeof t==\\\"object\\\"&&\\\"default\\\"in t?t:{default:t}}var RDt=Xle(TDt),dh=Xle(zWe),PDt=Xle(IDt),PWe=\\\"error\\\",ODt=\\\"wss://relay.walletconnect.org\\\",NDt=\\\"wc\\\",kDt=\\\"universal_provider\\\",fz=`${NDt}@2:${kDt}:`,VWe=\\\"https://rpc.walletconnect.org/v1/\\\",f4=\\\"generic\\\",BDt=`${VWe}bundler`,ad={DEFAULT_CHAIN_CHANGED:\\\"default_chain_changed\\\"};function MDt(){}function eue(t){return t==null||typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"}function tue(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function DDt(t){if(eue(t))return t;if(Array.isArray(t)||tue(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<\\\"u\\\"&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t),r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n=new r(t.message);return n.stack=t.stack,n.name=t.name,n.cause=t.cause,n}if(typeof File<\\\"u\\\"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t==\\\"object\\\"){let n=Object.create(e);return Object.assign(n,t)}return t}function OWe(t){return typeof t==\\\"object\\\"&&t!==null}function WWe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function GWe(t){return t==null?t===void 0?\\\"[object Undefined]\\\":\\\"[object Null]\\\":Object.prototype.toString.call(t)}var LDt=\\\"[object RegExp]\\\",KWe=\\\"[object String]\\\",ZWe=\\\"[object Number]\\\",QWe=\\\"[object Boolean]\\\",JWe=\\\"[object Arguments]\\\",UDt=\\\"[object Symbol]\\\",FDt=\\\"[object Date]\\\",jDt=\\\"[object Map]\\\",HDt=\\\"[object Set]\\\",qDt=\\\"[object Array]\\\",zDt=\\\"[object ArrayBuffer]\\\",$Dt=\\\"[object Object]\\\",VDt=\\\"[object DataView]\\\",WDt=\\\"[object Uint8Array]\\\",GDt=\\\"[object Uint8ClampedArray]\\\",KDt=\\\"[object Uint16Array]\\\",ZDt=\\\"[object Uint32Array]\\\",QDt=\\\"[object Int8Array]\\\",JDt=\\\"[object Int16Array]\\\",YDt=\\\"[object Int32Array]\\\",XDt=\\\"[object Float32Array]\\\",eLt=\\\"[object Float64Array]\\\";function tLt(t,e){return p4(t,void 0,t,new Map,e)}function p4(t,e,r,n=new Map,i=void 0){let s=i?.(t,e,r,n);if(s!=null)return s;if(eue(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let o=new Array(t.length);n.set(t,o);for(let a=0;a<t.length;a++)o[a]=p4(t[a],a,r,n,i);return Object.hasOwn(t,\\\"index\\\")&&(o.index=t.index),Object.hasOwn(t,\\\"input\\\")&&(o.input=t.input),o}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let o=new RegExp(t.source,t.flags);return o.lastIndex=t.lastIndex,o}if(t instanceof Map){let o=new Map;n.set(t,o);for(let[a,c]of t)o.set(a,p4(c,a,r,n,i));return o}if(t instanceof Set){let o=new Set;n.set(t,o);for(let a of t)o.add(p4(a,void 0,r,n,i));return o}if(typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(t))return t.subarray();if(tue(t)){let o=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,o);for(let a=0;a<t.length;a++)o[a]=p4(t[a],a,r,n,i);return o}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<\\\"u\\\"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let o=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,o),k2(o,t,r,n,i),o}if(typeof File<\\\"u\\\"&&t instanceof File){let o=new File([t],t.name,{type:t.type});return n.set(t,o),k2(o,t,r,n,i),o}if(t instanceof Blob){let o=new Blob([t],{type:t.type});return n.set(t,o),k2(o,t,r,n,i),o}if(t instanceof Error){let o=new t.constructor;return n.set(t,o),o.message=t.message,o.name=t.name,o.stack=t.stack,o.cause=t.cause,k2(o,t,r,n,i),o}if(typeof t==\\\"object\\\"&&rLt(t)){let o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),k2(o,t,r,n,i),o}return t}function k2(t,e,r=t,n,i){let s=[...Object.keys(e),...WWe(e)];for(let o=0;o<s.length;o++){let a=s[o],c=Object.getOwnPropertyDescriptor(t,a);(c==null||c.writable)&&(t[a]=p4(e[a],a,r,n,i))}}function rLt(t){switch(GWe(t)){case JWe:case qDt:case zDt:case VDt:case QWe:case FDt:case XDt:case eLt:case QDt:case JDt:case YDt:case jDt:case ZWe:case $Dt:case LDt:case HDt:case KWe:case UDt:case WDt:case GDt:case KDt:case ZDt:return!0;default:return!1}}function nLt(t,e){return tLt(t,(r,n,i,s)=>{let o=e?.(r,n,i,s);if(o!=null)return o;if(typeof t==\\\"object\\\")switch(Object.prototype.toString.call(t)){case ZWe:case KWe:case QWe:{let a=new t.constructor(t?.valueOf());return k2(a,t),a}case JWe:{let a={};return k2(a,t),a.length=t.length,a[Symbol.iterator]=t[Symbol.iterator],a}default:return}})}function NWe(t){return nLt(t)}function kWe(t){return t!==null&&typeof t==\\\"object\\\"&&GWe(t)===\\\"[object Arguments]\\\"}function iLt(t){return tue(t)}function sLt(t){if(typeof t!=\\\"object\\\"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!==\\\"[object Object]\\\"){let r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function oLt(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let s=0;s<r.length;s++){let o=r[s];i=Fle(i,o,n,new Map)}return i}function Fle(t,e,r,n){if(eue(t)&&(t=Object(t)),e==null||typeof e!=\\\"object\\\")return t;if(n.has(e))return DDt(n.get(e));if(n.set(e,t),Array.isArray(e)){e=e.slice();for(let s=0;s<e.length;s++)e[s]=e[s]??void 0}let i=[...Object.keys(e),...WWe(e)];for(let s=0;s<i.length;s++){let o=i[s],a=e[o],c=t[o];if(kWe(a)&&(a={...a}),kWe(c)&&(c={...c}),typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(a)&&(a=NWe(a)),Array.isArray(a))if(typeof c==\\\"object\\\"&&c!=null){let d=[],f=Reflect.ownKeys(c);for(let p=0;p<f.length;p++){let h=f[p];d[h]=c[h]}c=d}else c=[];let l=r(c,a,o,t,e,n);l!=null?t[o]=l:Array.isArray(a)||OWe(c)&&OWe(a)?t[o]=Fle(c,a,r,n):c==null&&sLt(a)?t[o]=Fle({},a,r,n):c==null&&iLt(a)?t[o]=NWe(a):(c===void 0||a!==void 0)&&(t[o]=a)}return t}function aLt(t,...e){return oLt(t,...e,MDt)}var cLt=Object.defineProperty,lLt=Object.defineProperties,uLt=Object.getOwnPropertyDescriptors,BWe=Object.getOwnPropertySymbols,dLt=Object.prototype.hasOwnProperty,fLt=Object.prototype.propertyIsEnumerable,MWe=(t,e,r)=>e in t?cLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pz=(t,e)=>{for(var r in e||(e={}))dLt.call(e,r)&&MWe(t,r,e[r]);if(BWe)for(var r of BWe(e))fLt.call(e,r)&&MWe(t,r,e[r]);return t},pLt=(t,e)=>lLt(t,uLt(e));function zl(t,e,r){var n;let i=ks.parseChainId(t);return((n=e.rpcMap)==null?void 0:n[i.reference])||`${VWe}?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function B2(t){return t.includes(\\\":\\\")?t.split(\\\":\\\")[1]:t}function YWe(t){return t.map(e=>`${e.split(\\\":\\\")[0]}:${e.split(\\\":\\\")[1]}`)}function hLt(t,e){let r=Object.keys(e.namespaces).filter(i=>i.includes(t));if(!r.length)return[];let n=[];return r.forEach(i=>{let s=e.namespaces[i].accounts;n.push(...s)}),n}function hz(t={},e={}){let r=DWe(t),n=DWe(e);return aLt(r,n)}function DWe(t){var e,r,n,i,s;let o={};if(!ks.isValidObject(t))return o;for(let[a,c]of Object.entries(t)){let l=ks.isCaipNamespace(a)?[a]:c.chains,d=c.methods||[],f=c.events||[],p=c.rpcMap||{},h=ks.parseNamespaceKey(a);o[h]=pLt(pz(pz({},o[h]),c),{chains:ks.mergeArrays(l,(e=o[h])==null?void 0:e.chains),methods:ks.mergeArrays(d,(r=o[h])==null?void 0:r.methods),events:ks.mergeArrays(f,(n=o[h])==null?void 0:n.events)}),(ks.isValidObject(p)||ks.isValidObject(((i=o[h])==null?void 0:i.rpcMap)||{}))&&(o[h].rpcMap=pz(pz({},p),(s=o[h])==null?void 0:s.rpcMap))}return o}function LWe(t){return t.includes(\\\":\\\")?t.split(\\\":\\\")[2]:t}function UWe(t){let e={};for(let[r,n]of Object.entries(t)){let i=n.methods||[],s=n.events||[],o=n.accounts||[],a=ks.isCaipNamespace(r)?[r]:n.chains?n.chains:YWe(n.accounts);e[r]={chains:a,methods:i,events:s,accounts:o}}return e}function Dle(t){return typeof t==\\\"number\\\"?t:t.includes(\\\"0x\\\")?parseInt(t,16):(t=t.includes(\\\":\\\")?t.split(\\\":\\\")[1]:t,isNaN(Number(t))?t:Number(t))}var XWe={},Pr=t=>XWe[t],Lle=(t,e)=>{XWe[t]=e},mLt=Object.defineProperty,gLt=(t,e,r)=>e in t?mLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,t4=(t,e,r)=>gLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),jle=class{constructor(e){t4(this,\\\"name\\\",\\\"polkadot\\\"),t4(this,\\\"client\\\"),t4(this,\\\"httpProviders\\\"),t4(this,\\\"events\\\"),t4(this,\\\"namespace\\\"),t4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=B2(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},yLt=Object.defineProperty,bLt=Object.defineProperties,wLt=Object.getOwnPropertyDescriptors,FWe=Object.getOwnPropertySymbols,vLt=Object.prototype.hasOwnProperty,xLt=Object.prototype.propertyIsEnumerable,Hle=(t,e,r)=>e in t?yLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,jWe=(t,e)=>{for(var r in e||(e={}))vLt.call(e,r)&&Hle(t,r,e[r]);if(FWe)for(var r of FWe(e))xLt.call(e,r)&&Hle(t,r,e[r]);return t},HWe=(t,e)=>bLt(t,wLt(e)),r4=(t,e,r)=>Hle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),qle=class{constructor(e){r4(this,\\\"name\\\",\\\"eip155\\\"),r4(this,\\\"client\\\"),r4(this,\\\"chainId\\\"),r4(this,\\\"namespace\\\"),r4(this,\\\"httpProviders\\\"),r4(this,\\\"events\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case\\\"eth_requestAccounts\\\":return this.getAccounts();case\\\"eth_accounts\\\":return this.getAccounts();case\\\"wallet_switchEthereumChain\\\":return await this.handleSwitchChain(e);case\\\"eth_chainId\\\":return parseInt(this.getDefaultChain());case\\\"wallet_getCapabilities\\\":return await this.getCapabilities(e);case\\\"wallet_getCallsStatus\\\":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(parseInt(e),r),this.chainId=parseInt(e),this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}createHttpProvider(e,r){let n=r||zl(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new zWe.HttpConnection(n,Pr(\\\"disableProviderPing\\\")))}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=parseInt(B2(r));e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}getHttpProvider(){let e=this.chainId,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}async handleSwitchChain(e){var r,n;let i=e.request.params?(r=e.request.params[0])==null?void 0:r.chainId:\\\"0x0\\\";i=i.startsWith(\\\"0x\\\")?i:`0x${i}`;let s=parseInt(i,16);if(this.isChainApproved(s))this.setDefaultChain(`${s}`);else if(this.namespace.methods.includes(\\\"wallet_switchEthereumChain\\\"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${s}`);else throw new Error(`Failed to switch to chain 'eip155:${s}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var r,n,i,s,o;let a=(n=(r=e.request)==null?void 0:r.params)==null?void 0:n[0],c=((s=(i=e.request)==null?void 0:i.params)==null?void 0:s[1])||[],l=`${a}${c.join(\\\",\\\")}`;if(!a)throw new Error(\\\"Missing address parameter in `wallet_getCapabilities` request\\\");let d=this.client.session.get(e.topic),f=((o=d?.sessionProperties)==null?void 0:o.capabilities)||{};if(f!=null&&f[l])return f?.[l];let p=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:HWe(jWe({},d.sessionProperties||{}),{capabilities:HWe(jWe({},f||{}),{[l]:p})})})}catch(h){console.warn(\\\"Failed to update session with capabilities\\\",h)}return p}async getCallStatus(e){var r,n;let i=this.client.session.get(e.topic),s=(r=i.sessionProperties)==null?void 0:r.bundler_name;if(s){let a=this.getBundlerUrl(e.chainId,s);try{return await this.getUserOperationReceipt(a,e)}catch(c){console.warn(\\\"Failed to fetch call status from bundler\\\",c,a)}}let o=(n=i.sessionProperties)==null?void 0:n.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,e)}catch(a){console.warn(\\\"Failed to fetch call status from custom bundler\\\",a,o)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw new Error(\\\"Fetching call status not approved by the wallet.\\\")}async getUserOperationReceipt(e,r){var n;let i=new URL(e),s=await fetch(i,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify($We.formatJsonRpcRequest(\\\"eth_getUserOperationReceipt\\\",[(n=r.request.params)==null?void 0:n[0]]))});if(!s.ok)throw new Error(`Failed to fetch user operation receipt - ${s.status}`);return await s.json()}getBundlerUrl(e,r){return`${BDt}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${r}`}},ELt=Object.defineProperty,_Lt=(t,e,r)=>e in t?ELt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n4=(t,e,r)=>_Lt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),zle=class{constructor(e){n4(this,\\\"name\\\",\\\"solana\\\"),n4(this,\\\"client\\\"),n4(this,\\\"httpProviders\\\"),n4(this,\\\"events\\\"),n4(this,\\\"namespace\\\"),n4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=B2(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},CLt=Object.defineProperty,SLt=(t,e,r)=>e in t?CLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i4=(t,e,r)=>SLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),$le=class{constructor(e){i4(this,\\\"name\\\",\\\"cosmos\\\"),i4(this,\\\"client\\\"),i4(this,\\\"httpProviders\\\"),i4(this,\\\"events\\\"),i4(this,\\\"namespace\\\"),i4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=B2(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},ALt=Object.defineProperty,TLt=(t,e,r)=>e in t?ALt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,s4=(t,e,r)=>TLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Vle=class{constructor(e){s4(this,\\\"name\\\",\\\"algorand\\\"),s4(this,\\\"client\\\"),s4(this,\\\"httpProviders\\\"),s4(this,\\\"events\\\"),s4(this,\\\"namespace\\\"),s4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(!this.httpProviders[e]){let n=r||zl(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;e[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);return typeof n>\\\"u\\\"?void 0:new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},ILt=Object.defineProperty,RLt=(t,e,r)=>e in t?ILt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,o4=(t,e,r)=>RLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Wle=class{constructor(e){o4(this,\\\"name\\\",\\\"cip34\\\"),o4(this,\\\"client\\\"),o4(this,\\\"httpProviders\\\"),o4(this,\\\"events\\\"),o4(this,\\\"namespace\\\"),o4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{let n=this.getCardanoRPCUrl(r),i=B2(r);e[i]=this.createHttpProvider(i,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}getCardanoRPCUrl(e){let r=this.namespace.rpcMap;if(r)return r[e]}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},PLt=Object.defineProperty,OLt=(t,e,r)=>e in t?PLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,a4=(t,e,r)=>OLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Gle=class{constructor(e){a4(this,\\\"name\\\",\\\"elrond\\\"),a4(this,\\\"client\\\"),a4(this,\\\"httpProviders\\\"),a4(this,\\\"events\\\"),a4(this,\\\"namespace\\\"),a4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=B2(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},NLt=Object.defineProperty,kLt=(t,e,r)=>e in t?NLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c4=(t,e,r)=>kLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Kle=class{constructor(e){c4(this,\\\"name\\\",\\\"multiversx\\\"),c4(this,\\\"client\\\"),c4(this,\\\"httpProviders\\\"),c4(this,\\\"events\\\"),c4(this,\\\"namespace\\\"),c4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=B2(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},BLt=Object.defineProperty,MLt=(t,e,r)=>e in t?BLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,l4=(t,e,r)=>MLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Zle=class{constructor(e){l4(this,\\\"name\\\",\\\"near\\\"),l4(this,\\\"client\\\"),l4(this,\\\"httpProviders\\\"),l4(this,\\\"events\\\"),l4(this,\\\"namespace\\\"),l4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(this.chainId=e,!this.httpProviders[e]){let n=r||zl(`${this.name}:${e}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;e[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace);return typeof n>\\\"u\\\"?void 0:new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},DLt=Object.defineProperty,LLt=(t,e,r)=>e in t?DLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,u4=(t,e,r)=>LLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Qle=class{constructor(e){u4(this,\\\"name\\\",\\\"tezos\\\"),u4(this,\\\"client\\\"),u4(this,\\\"httpProviders\\\"),u4(this,\\\"events\\\"),u4(this,\\\"namespace\\\"),u4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(this.chainId=e,!this.httpProviders[e]){let n=r||zl(`${this.name}:${e}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{e[r]=this.createHttpProvider(r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace);return typeof n>\\\"u\\\"?void 0:new Ef.JsonRpcProvider(new dh.default(n))}},ULt=Object.defineProperty,FLt=(t,e,r)=>e in t?ULt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,d4=(t,e,r)=>FLt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Jle=class{constructor(e){d4(this,\\\"name\\\",f4),d4(this,\\\"client\\\"),d4(this,\\\"httpProviders\\\"),d4(this,\\\"events\\\"),d4(this,\\\"namespace\\\"),d4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Pr(\\\"events\\\"),this.client=Pr(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(ad.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){var e,r;let n={};return(r=(e=this.namespace)==null?void 0:e.accounts)==null||r.forEach(i=>{let s=ks.parseChainId(i);n[`${s.namespace}:${s.reference}`]=this.createHttpProvider(i)}),n}getHttpProvider(e){let r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||zl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new Ef.JsonRpcProvider(new dh.default(n,Pr(\\\"disableProviderPing\\\")))}},jLt=Object.defineProperty,HLt=Object.defineProperties,qLt=Object.getOwnPropertyDescriptors,qWe=Object.getOwnPropertySymbols,zLt=Object.prototype.hasOwnProperty,$Lt=Object.prototype.propertyIsEnumerable,Yle=(t,e,r)=>e in t?jLt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mz=(t,e)=>{for(var r in e||(e={}))zLt.call(e,r)&&Yle(t,r,e[r]);if(qWe)for(var r of qWe(e))$Lt.call(e,r)&&Yle(t,r,e[r]);return t},Ule=(t,e)=>HLt(t,qLt(e)),od=(t,e,r)=>Yle(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),gz=class t{constructor(e){od(this,\\\"client\\\"),od(this,\\\"namespaces\\\"),od(this,\\\"optionalNamespaces\\\"),od(this,\\\"sessionProperties\\\"),od(this,\\\"scopedProperties\\\"),od(this,\\\"events\\\",new PDt.default),od(this,\\\"rpcProviders\\\",{}),od(this,\\\"session\\\"),od(this,\\\"providerOpts\\\"),od(this,\\\"logger\\\"),od(this,\\\"uri\\\"),od(this,\\\"disableProviderPing\\\",!1),this.providerOpts=e,this.logger=typeof e?.logger<\\\"u\\\"&&typeof e?.logger!=\\\"string\\\"?e.logger:RWe.pino(RWe.getDefaultLoggerOptions({level:e?.logger||PWe})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let r=new t(e);return await r.initialize(),r}async request(e,r,n){let[i,s]=this.validateChain(r);if(!this.session)throw new Error(\\\"Please call connect() before request()\\\");return await this.getProvider(i).request({request:mz({},e),chainId:`${i}:${s}`,topic:this.session.topic,expiry:n})}sendAsync(e,r,n,i){let s=new Date().getTime();this.request(e,n,i).then(o=>r(null,$We.formatJsonRpcResult(s,o))).catch(o=>r(o,void 0))}async enable(){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error(\\\"Please call connect() before enable()\\\");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:ks.getSdkError(\\\"USER_DISCONNECTED\\\")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,r){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:n,response:i}=await this.client.authenticate(e,r);n&&(this.uri=n,this.events.emit(\\\"display_uri\\\",n));let s=await i();if(this.session=s.session,this.session){let o=UWe(this.session.namespaces);this.namespaces=hz(this.namespaces,o),await this.persist(\\\"namespaces\\\",this.namespaces),this.onConnect()}return s}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}removeListener(e,r){this.events.removeListener(e,r)}off(e,r){this.events.off(e,r)}get isWalletConnect(){return!0}async pair(e){let{uri:r,approval:n}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});r&&(this.uri=r,this.events.emit(\\\"display_uri\\\",r));let i=await n();this.session=i;let s=UWe(i.namespaces);return this.namespaces=hz(this.namespaces,s),await this.persist(\\\"namespaces\\\",this.namespaces),await this.persist(\\\"optionalNamespaces\\\",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(e,r){try{if(!this.session)return;let[n,i]=this.validateChain(e),s=this.getProvider(n);s.name===f4?s.setDefaultChain(`${n}:${i}`,r):s.setDefaultChain(i,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info(\\\"Cleaning up inactive pairings...\\\");let r=this.client.pairing.getAll();if(ks.isValidArray(r)){for(let n of r)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.logger.warn(\\\"abortPairingAttempt is deprecated. This is now a no-op.\\\")}async checkStorage(){this.namespaces=await this.getFromStore(\\\"namespaces\\\")||{},this.optionalNamespaces=await this.getFromStore(\\\"optionalNamespaces\\\")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace(\\\"Initialized\\\"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var e,r;if(this.client=this.providerOpts.client||await RDt.default.init({core:this.providerOpts.core,logger:this.providerOpts.logger||PWe,relayUrl:this.providerOpts.relayUrl||ODt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(n){throw this.logger.error(\\\"Failed to get session\\\",n),new Error(`The provided session: ${(r=(e=this.providerOpts)==null?void 0:e.session)==null?void 0:r.topic} doesn't exist in the Sign client`)}else{let n=this.client.session.getAll();this.session=n[0]}this.logger.trace(\\\"SignClient Initialized\\\")}createProviders(){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");if(!this.session)throw new Error(\\\"Session not initialized. Please call connect() before enable()\\\");let e=[...new Set(Object.keys(this.session.namespaces).map(r=>ks.parseNamespaceKey(r)))];Lle(\\\"client\\\",this.client),Lle(\\\"events\\\",this.events),Lle(\\\"disableProviderPing\\\",this.disableProviderPing),e.forEach(r=>{if(!this.session)return;let n=hLt(r,this.session),i=YWe(n),s=hz(this.namespaces,this.optionalNamespaces),o=Ule(mz({},s[r]),{accounts:n,chains:i});switch(r){case\\\"eip155\\\":this.rpcProviders[r]=new qle({namespace:o});break;case\\\"algorand\\\":this.rpcProviders[r]=new Vle({namespace:o});break;case\\\"solana\\\":this.rpcProviders[r]=new zle({namespace:o});break;case\\\"cosmos\\\":this.rpcProviders[r]=new $le({namespace:o});break;case\\\"polkadot\\\":this.rpcProviders[r]=new jle({namespace:o});break;case\\\"cip34\\\":this.rpcProviders[r]=new Wle({namespace:o});break;case\\\"elrond\\\":this.rpcProviders[r]=new Gle({namespace:o});break;case\\\"multiversx\\\":this.rpcProviders[r]=new Kle({namespace:o});break;case\\\"near\\\":this.rpcProviders[r]=new Zle({namespace:o});break;case\\\"tezos\\\":this.rpcProviders[r]=new Qle({namespace:o});break;default:this.rpcProviders[f4]?this.rpcProviders[f4].updateNamespace(o):this.rpcProviders[f4]=new Jle({namespace:o})}})}registerEventListeners(){if(typeof this.client>\\\"u\\\")throw new Error(\\\"Sign Client is not initialized\\\");this.client.on(\\\"session_ping\\\",e=>{var r;let{topic:n}=e;n===((r=this.session)==null?void 0:r.topic)&&this.events.emit(\\\"session_ping\\\",e)}),this.client.on(\\\"session_event\\\",e=>{var r;let{params:n,topic:i}=e;if(i!==((r=this.session)==null?void 0:r.topic))return;let{event:s}=n;if(s.name===\\\"accountsChanged\\\"){let o=s.data;o&&ks.isValidArray(o)&&this.events.emit(\\\"accountsChanged\\\",o.map(LWe))}else if(s.name===\\\"chainChanged\\\"){let o=n.chainId,a=n.event.data,c=ks.parseNamespaceKey(o),l=Dle(o)!==Dle(a)?`${c}:${Dle(a)}`:o;this.onChainChanged(l)}else this.events.emit(s.name,s.data);this.events.emit(\\\"session_event\\\",e)}),this.client.on(\\\"session_update\\\",({topic:e,params:r})=>{var n,i;if(e!==((n=this.session)==null?void 0:n.topic))return;let{namespaces:s}=r,o=(i=this.client)==null?void 0:i.session.get(e);this.session=Ule(mz({},o),{namespaces:s}),this.onSessionUpdate(),this.events.emit(\\\"session_update\\\",{topic:e,params:r})}),this.client.on(\\\"session_delete\\\",async e=>{var r;e.topic===((r=this.session)==null?void 0:r.topic)&&(await this.cleanup(),this.events.emit(\\\"session_delete\\\",e),this.events.emit(\\\"disconnect\\\",Ule(mz({},ks.getSdkError(\\\"USER_DISCONNECTED\\\")),{data:e.topic})))}),this.on(ad.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[f4]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var r;this.getProvider(e).updateNamespace((r=this.session)==null?void 0:r.namespaces[e])})}setNamespaces(e){let{namespaces:r={},optionalNamespaces:n={},sessionProperties:i,scopedProperties:s}=e;this.optionalNamespaces=hz(r,n),this.sessionProperties=i,this.scopedProperties=s}validateChain(e){let[r,n]=e?.split(\\\":\\\")||[\\\"\\\",\\\"\\\"];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(o=>ks.parseNamespaceKey(o)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];let i=ks.parseNamespaceKey(Object.keys(this.namespaces)[0]),s=this.rpcProviders[i].getDefaultChain();return[i,s]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}async onChainChanged(e,r=!1){if(!this.namespaces)return;let[n,i]=this.validateChain(e);if(!i)return;this.updateNamespaceChain(n,i),this.events.emit(\\\"chainChanged\\\",i);let s=this.getProvider(n).getDefaultChain();r||this.getProvider(n).setDefaultChain(i),this.emitAccountsChangedOnChainChange({namespace:n,previousChainId:s,newChainId:e}),await this.persist(\\\"namespaces\\\",this.namespaces)}emitAccountsChangedOnChainChange({namespace:e,previousChainId:r,newChainId:n}){var i,s;try{if(r===n)return;let o=(s=(i=this.session)==null?void 0:i.namespaces[e])==null?void 0:s.accounts;if(!o)return;let a=o.filter(c=>c.includes(`${n}:`)).map(LWe);if(!ks.isValidArray(a))return;this.events.emit(\\\"accountsChanged\\\",a)}catch(o){this.logger.warn(\\\"Failed to emit accountsChanged on chain change\\\",o)}}updateNamespaceChain(e,r){if(!this.namespaces)return;let n=this.namespaces[e]?e:`${e}:${r}`,i={chains:[],methods:[],events:[],defaultChain:r};this.namespaces[n]?this.namespaces[n]&&(this.namespaces[n].defaultChain=r):this.namespaces[n]=i}onConnect(){this.createProviders(),this.events.emit(\\\"connect\\\",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore(\\\"namespaces\\\"),await this.deleteFromStore(\\\"optionalNamespaces\\\"),await this.deleteFromStore(\\\"sessionProperties\\\"),this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(e,r){var n;let i=((n=this.session)==null?void 0:n.topic)||\\\"\\\";await this.client.core.storage.setItem(`${fz}/${e}${i}`,r)}async getFromStore(e){var r;let n=((r=this.session)==null?void 0:r.topic)||\\\"\\\";return await this.client.core.storage.getItem(`${fz}/${e}${n}`)}async deleteFromStore(e){var r;let n=((r=this.session)==null?void 0:r.topic)||\\\"\\\";await this.client.core.storage.removeItem(`${fz}/${e}${n}`)}async cleanupStorage(){var e;try{if(((e=this.client)==null?void 0:e.session.length)>0)return;let r=await this.client.core.storage.getKeys();for(let n of r)n.startsWith(fz)&&await this.client.core.storage.removeItem(n)}catch(r){this.logger.warn(\\\"Failed to cleanup storage\\\",r)}}},VLt=gz;yz.UniversalProvider=VLt,yz.default=gz});var _e,bz=x(()=>{u();_e={WC_NAME_SUFFIX:\\\".reown.id\\\",WC_NAME_SUFFIX_LEGACY:\\\".wcn.id\\\",BLOCKCHAIN_API_RPC_URL:\\\"https://rpc.walletconnect.org\\\",PULSE_API_URL:\\\"https://pulse.walletconnect.org\\\",W3M_API_URL:\\\"https://api.web3modal.org\\\",CONNECTOR_ID:{WALLET_CONNECT:\\\"walletConnect\\\",INJECTED:\\\"injected\\\",WALLET_STANDARD:\\\"announced\\\",COINBASE:\\\"coinbaseWallet\\\",COINBASE_SDK:\\\"coinbaseWalletSDK\\\",SAFE:\\\"safe\\\",LEDGER:\\\"ledger\\\",OKX:\\\"okx\\\",EIP6963:\\\"eip6963\\\",AUTH:\\\"ID_AUTH\\\"},CONNECTOR_NAMES:{AUTH:\\\"Auth\\\"},AUTH_CONNECTOR_SUPPORTED_CHAINS:[\\\"eip155\\\",\\\"solana\\\"],LIMITS:{PENDING_TRANSACTIONS:99},CHAIN:{EVM:\\\"eip155\\\",SOLANA:\\\"solana\\\",POLKADOT:\\\"polkadot\\\",BITCOIN:\\\"bip122\\\"},CHAIN_NAME_MAP:{eip155:\\\"EVM Networks\\\",solana:\\\"Solana\\\",polkadot:\\\"Polkadot\\\",bip122:\\\"Bitcoin\\\",cosmos:\\\"Cosmos\\\"},ADAPTER_TYPES:{BITCOIN:\\\"bitcoin\\\",SOLANA:\\\"solana\\\",WAGMI:\\\"wagmi\\\",ETHERS:\\\"ethers\\\",ETHERS5:\\\"ethers5\\\"},USDT_CONTRACT_ADDRESSES:[\\\"0xdac17f958d2ee523a2206206994597c13d831ec7\\\",\\\"0xc2132d05d31c914a87c6611c10748aeb04b58e8f\\\",\\\"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7\\\",\\\"0x919C1c267BC06a7039e03fcc2eF738525769109c\\\",\\\"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e\\\",\\\"0x55d398326f99059fF775485246999027B3197955\\\",\\\"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9\\\"],HTTP_STATUS_CODES:{SERVICE_UNAVAILABLE:503,FORBIDDEN:403},UNSUPPORTED_NETWORK_NAME:\\\"Unknown Network\\\",SECURE_SITE_SDK_ORIGIN:(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||\\\"https://secure.walletconnect.org\\\"}});var b7,tGe=x(()=>{u();bz();b7={caipNetworkIdToNumber(t){return t?Number(t.split(\\\":\\\")[1]):void 0},parseEvmChainId(t){return typeof t==\\\"string\\\"?this.caipNetworkIdToNumber(t):t},getNetworksByNamespace(t,e){return t?.filter(r=>r.chainNamespace===e)||[]},getFirstNetworkByNamespace(t,e){return this.getNetworksByNamespace(t,e)[0]},getNetworkNameByCaipNetworkId(t,e){if(!e)return;let r=t.find(i=>i.caipNetworkId===e);if(r)return r.name;let[n]=e.split(\\\":\\\");return _e.CHAIN_NAME_MAP?.[n]||void 0}}});function iGe(){function t(e){var r=this;if(!(r instanceof t))return e===fh?iGe():new t(e);if(e instanceof t)r.s=e.s,r.e=e.e,r.c=e.c.slice();else{if(typeof e!=\\\"string\\\"){if(t.strict===!0&&typeof e!=\\\"bigint\\\")throw TypeError(D2+\\\"value\\\");e=e===0&&1/e<0?\\\"-0\\\":String(e)}XLt(r,e)}r.constructor=t}return t.prototype=Zr,t.DP=WLt,t.RM=GLt,t.NE=KLt,t.PE=ZLt,t.strict=QLt,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}function XLt(t,e){var r,n,i;if(!YLt.test(e))throw Error(D2+\\\"number\\\");for(t.s=e.charAt(0)==\\\"-\\\"?(e=e.slice(1),-1):1,(r=e.indexOf(\\\".\\\"))>-1&&(e=e.replace(\\\".\\\",\\\"\\\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),i=e.length,n=0;n<i&&e.charAt(n)==\\\"0\\\";)++n;if(n==i)t.c=[t.e=0];else{for(;i>0&&e.charAt(--i)==\\\"0\\\";);for(t.e=r-n-1,t.c=[],r=0;n<=i;)t.c[r++]=+e.charAt(n++)}return t}function L2(t,e,r,n){var i=t.c;if(r===fh&&(r=t.constructor.RM),r!==0&&r!==1&&r!==2&&r!==3)throw Error(JLt);if(e<1)n=r===3&&(n||!!i[0])||e===0&&(r===1&&i[0]>=5||r===2&&(i[0]>5||i[0]===5&&(n||i[1]!==fh))),i.length=1,n?(t.e=t.e-e+1,i[0]=1):i[0]=t.e=0;else if(e<i.length){if(n=r===1&&i[e]>=5||r===2&&(i[e]>5||i[e]===5&&(n||i[e+1]!==fh||i[e-1]&1))||r===3&&(n||!!i[0]),i.length=e,n){for(;++i[--e]>9;)if(i[e]=0,e===0){++t.e,i.unshift(1);break}}for(e=i.length;!i[--e];)i.pop()}return t}function U2(t,e,r){var n=t.e,i=t.c.join(\\\"\\\"),s=i.length;if(e)i=i.charAt(0)+(s>1?\\\".\\\"+i.slice(1):\\\"\\\")+(n<0?\\\"e\\\":\\\"e+\\\")+n;else if(n<0){for(;++n;)i=\\\"0\\\"+i;i=\\\"0.\\\"+i}else if(n>0)if(++n>s)for(n-=s;n--;)i+=\\\"0\\\";else n<s&&(i=i.slice(0,n)+\\\".\\\"+i.slice(n));else s>1&&(i=i.charAt(0)+\\\".\\\"+i.slice(1));return t.s<0&&r?\\\"-\\\"+i:i}var WLt,GLt,M2,rGe,KLt,ZLt,QLt,w7,D2,wz,JLt,nGe,Zr,fh,YLt,eUt,h4,sGe=x(()=>{u();WLt=20,GLt=1,M2=1e6,rGe=1e6,KLt=-7,ZLt=21,QLt=!1,w7=\\\"[big.js] \\\",D2=w7+\\\"Invalid \\\",wz=D2+\\\"decimal places\\\",JLt=D2+\\\"rounding mode\\\",nGe=w7+\\\"Division by zero\\\",Zr={},fh=void 0,YLt=/^-?(\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)(e[+-]?\\\\d+)?$/i;Zr.abs=function(){var t=new this.constructor(this);return t.s=1,t};Zr.cmp=function(t){var e,r=this,n=r.c,i=(t=new r.constructor(t)).c,s=r.s,o=t.s,a=r.e,c=t.e;if(!n[0]||!i[0])return n[0]?s:i[0]?-o:0;if(s!=o)return s;if(e=s<0,a!=c)return a>c^e?1:-1;for(o=(a=n.length)<(c=i.length)?a:c,s=-1;++s<o;)if(n[s]!=i[s])return n[s]>i[s]^e?1:-1;return a==c?0:a>c^e?1:-1};Zr.div=function(t){var e=this,r=e.constructor,n=e.c,i=(t=new r(t)).c,s=e.s==t.s?1:-1,o=r.DP;if(o!==~~o||o<0||o>M2)throw Error(wz);if(!i[0])throw Error(nGe);if(!n[0])return t.s=s,t.c=[t.e=0],t;var a,c,l,d,f,p=i.slice(),h=a=i.length,m=n.length,g=n.slice(0,a),w=g.length,v=t,b=v.c=[],_=0,S=o+(v.e=e.e-t.e)+1;for(v.s=s,s=S<0?0:S,p.unshift(0);w++<a;)g.push(0);do{for(l=0;l<10;l++){if(a!=(w=g.length))d=a>w?1:-1;else for(f=-1,d=0;++f<a;)if(i[f]!=g[f]){d=i[f]>g[f]?1:-1;break}if(d<0){for(c=w==a?i:p;w;){if(g[--w]<c[w]){for(f=w;f&&!g[--f];)g[f]=9;--g[f],g[w]+=10}g[w]-=c[w]}for(;!g[0];)g.shift()}else break}b[_++]=d?l:++l,g[0]&&d?g[w]=n[h]||0:g=[n[h]]}while((h++<m||g[0]!==fh)&&s--);return!b[0]&&_!=1&&(b.shift(),v.e--,S--),_>S&&L2(v,S,r.RM,g[0]!==fh),v};Zr.eq=function(t){return this.cmp(t)===0};Zr.gt=function(t){return this.cmp(t)>0};Zr.gte=function(t){return this.cmp(t)>-1};Zr.lt=function(t){return this.cmp(t)<0};Zr.lte=function(t){return this.cmp(t)<1};Zr.minus=Zr.sub=function(t){var e,r,n,i,s=this,o=s.constructor,a=s.s,c=(t=new o(t)).s;if(a!=c)return t.s=-c,s.plus(t);var l=s.c.slice(),d=s.e,f=t.c,p=t.e;if(!l[0]||!f[0])return f[0]?t.s=-c:l[0]?t=new o(s):t.s=1,t;if(a=d-p){for((i=a<0)?(a=-a,n=l):(p=d,n=f),n.reverse(),c=a;c--;)n.push(0);n.reverse()}else for(r=((i=l.length<f.length)?l:f).length,a=c=0;c<r;c++)if(l[c]!=f[c]){i=l[c]<f[c];break}if(i&&(n=l,l=f,f=n,t.s=-t.s),(c=(r=f.length)-(e=l.length))>0)for(;c--;)l[e++]=0;for(c=e;r>a;){if(l[--r]<f[r]){for(e=r;e&&!l[--e];)l[e]=9;--l[e],l[r]+=10}l[r]-=f[r]}for(;l[--c]===0;)l.pop();for(;l[0]===0;)l.shift(),--p;return l[0]||(t.s=1,l=[p=0]),t.c=l,t.e=p,t};Zr.mod=function(t){var e,r=this,n=r.constructor,i=r.s,s=(t=new n(t)).s;if(!t.c[0])throw Error(nGe);return r.s=t.s=1,e=t.cmp(r)==1,r.s=i,t.s=s,e?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(t),n.DP=i,n.RM=s,this.minus(r.times(t)))};Zr.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t};Zr.plus=Zr.add=function(t){var e,r,n,i=this,s=i.constructor;if(t=new s(t),i.s!=t.s)return t.s=-t.s,i.minus(t);var o=i.e,a=i.c,c=t.e,l=t.c;if(!a[0]||!l[0])return l[0]||(a[0]?t=new s(i):t.s=i.s),t;if(a=a.slice(),e=o-c){for(e>0?(c=o,n=l):(e=-e,n=a),n.reverse();e--;)n.push(0);n.reverse()}for(a.length-l.length<0&&(n=l,l=a,a=n),e=l.length,r=0;e;a[e]%=10)r=(a[--e]=a[e]+l[e]+r)/10|0;for(r&&(a.unshift(r),++c),e=a.length;a[--e]===0;)a.pop();return t.c=a,t.e=c,t};Zr.pow=function(t){var e=this,r=new e.constructor(\\\"1\\\"),n=r,i=t<0;if(t!==~~t||t<-rGe||t>rGe)throw Error(D2+\\\"exponent\\\");for(i&&(t=-t);t&1&&(n=n.times(e)),t>>=1,!!t;)e=e.times(e);return i?r.div(n):n};Zr.prec=function(t,e){if(t!==~~t||t<1||t>M2)throw Error(D2+\\\"precision\\\");return L2(new this.constructor(this),t,e)};Zr.round=function(t,e){if(t===fh)t=0;else if(t!==~~t||t<-M2||t>M2)throw Error(wz);return L2(new this.constructor(this),t+this.e+1,e)};Zr.sqrt=function(){var t,e,r,n=this,i=n.constructor,s=n.s,o=n.e,a=new i(\\\"0.5\\\");if(!n.c[0])return new i(n);if(s<0)throw Error(w7+\\\"No square root\\\");s=Math.sqrt(+U2(n,!0,!0)),s===0||s===1/0?(e=n.c.join(\\\"\\\"),e.length+o&1||(e+=\\\"0\\\"),s=Math.sqrt(e),o=((o+1)/2|0)-(o<0||o&1),t=new i((s==1/0?\\\"5e\\\":(s=s.toExponential()).slice(0,s.indexOf(\\\"e\\\")+1))+o)):t=new i(s+\\\"\\\"),o=t.e+(i.DP+=4);do r=t,t=a.times(r.plus(n.div(r)));while(r.c.slice(0,o).join(\\\"\\\")!==t.c.slice(0,o).join(\\\"\\\"));return L2(t,(i.DP-=4)+t.e+1,i.RM)};Zr.times=Zr.mul=function(t){var e,r=this,n=r.constructor,i=r.c,s=(t=new n(t)).c,o=i.length,a=s.length,c=r.e,l=t.e;if(t.s=r.s==t.s?1:-1,!i[0]||!s[0])return t.c=[t.e=0],t;for(t.e=c+l,o<a&&(e=i,i=s,s=e,l=o,o=a,a=l),e=new Array(l=o+a);l--;)e[l]=0;for(c=a;c--;){for(a=0,l=o+c;l>c;)a=e[l]+s[c]*i[l-c-1]+a,e[l--]=a%10,a=a/10|0;e[l]=a}for(a?++t.e:e.shift(),c=e.length;!e[--c];)e.pop();return t.c=e,t};Zr.toExponential=function(t,e){var r=this,n=r.c[0];if(t!==fh){if(t!==~~t||t<0||t>M2)throw Error(wz);for(r=L2(new r.constructor(r),++t,e);r.c.length<t;)r.c.push(0)}return U2(r,!0,!!n)};Zr.toFixed=function(t,e){var r=this,n=r.c[0];if(t!==fh){if(t!==~~t||t<0||t>M2)throw Error(wz);for(r=L2(new r.constructor(r),t+r.e+1,e),t=t+r.e+1;r.c.length<t;)r.c.push(0)}return U2(r,!1,!!n)};Zr[Symbol.for(\\\"nodejs.util.inspect.custom\\\")]=Zr.toJSON=Zr.toString=function(){var t=this,e=t.constructor;return U2(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])};Zr.toNumber=function(){var t=+U2(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(t.toString()))throw Error(w7+\\\"Imprecise conversion\\\");return t};Zr.toPrecision=function(t,e){var r=this,n=r.constructor,i=r.c[0];if(t!==fh){if(t!==~~t||t<1||t>M2)throw Error(D2+\\\"precision\\\");for(r=L2(new n(r),t,e);r.c.length<t;)r.c.push(0)}return U2(r,t<=r.e||r.e<=n.NE||r.e>=n.PE,!!i)};Zr.valueOf=function(){var t=this,e=t.constructor;if(e.strict===!0)throw Error(w7+\\\"valueOf disallowed\\\");return U2(t,t.e<=e.NE||t.e>=e.PE,!0)};eUt=iGe(),h4=eUt});var rue,oGe=x(()=>{u();sGe();rue={bigNumber(t){return t?new h4(t):new h4(0)},multiply(t,e){if(t===void 0||e===void 0)return new h4(0);let r=new h4(t),n=new h4(e);return r.times(n)},formatNumberToLocalString(t,e=2){return t===void 0?\\\"0.00\\\":typeof t==\\\"number\\\"?t.toLocaleString(\\\"en-US\\\",{maximumFractionDigits:e,minimumFractionDigits:e}):parseFloat(t).toLocaleString(\\\"en-US\\\",{maximumFractionDigits:e,minimumFractionDigits:e})},parseLocalStringToNumber(t){return t===void 0?0:parseFloat(t.replace(/,/gu,\\\"\\\"))}}});var aGe,cGe=x(()=>{u();aGe=[{type:\\\"function\\\",name:\\\"transfer\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"_to\\\",type:\\\"address\\\"},{name:\\\"_value\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"bool\\\"}]},{type:\\\"function\\\",name:\\\"transferFrom\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"_from\\\",type:\\\"address\\\"},{name:\\\"_to\\\",type:\\\"address\\\"},{name:\\\"_value\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"bool\\\"}]}]});var lGe,uGe=x(()=>{u();lGe=[{type:\\\"function\\\",name:\\\"approve\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"spender\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[{type:\\\"bool\\\"}]}]});var dGe,fGe=x(()=>{u();dGe=[{type:\\\"function\\\",name:\\\"transfer\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"recipient\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[]},{type:\\\"function\\\",name:\\\"transferFrom\\\",stateMutability:\\\"nonpayable\\\",inputs:[{name:\\\"sender\\\",type:\\\"address\\\"},{name:\\\"recipient\\\",type:\\\"address\\\"},{name:\\\"amount\\\",type:\\\"uint256\\\"}],outputs:[{name:\\\"\\\",type:\\\"bool\\\"}]}]});var nue,pGe=x(()=>{u();cGe();uGe();fGe();bz();nue={getERC20Abi:t=>_e.USDT_CONTRACT_ADDRESSES.includes(t)?dGe:aGe,getSwapAbi:()=>lGe}});var ph,hGe=x(()=>{u();ph={validateCaipAddress(t){if(t.split(\\\":\\\")?.length!==3)throw new Error(\\\"Invalid CAIP Address\\\");return t},parseCaipAddress(t){let e=t.split(\\\":\\\");if(e.length!==3)throw new Error(`Invalid CAIP-10 address: ${t}`);let[r,n,i]=e;if(!r||!n||!i)throw new Error(`Invalid CAIP-10 address: ${t}`);return{chainNamespace:r,chainId:n,address:i}},parseCaipNetworkId(t){let e=t.split(\\\":\\\");if(e.length!==2)throw new Error(`Invalid CAIP-2 network id: ${t}`);let[r,n]=e;if(!r||!n)throw new Error(`Invalid CAIP-2 network id: ${t}`);return{chainNamespace:r,chainId:n}}}});function v7(t){if(!t)throw new Error(\\\"Namespace is required for CONNECTED_CONNECTOR_ID\\\");return`@appkit/${t}:connected_connector_id`}function F2(){return typeof window<\\\"u\\\"&&typeof localStorage<\\\"u\\\"}var vt,ft,mGe=x(()=>{u();vt={WALLET_ID:\\\"@appkit/wallet_id\\\",WALLET_NAME:\\\"@appkit/wallet_name\\\",SOLANA_WALLET:\\\"@appkit/solana_wallet\\\",SOLANA_CAIP_CHAIN:\\\"@appkit/solana_caip_chain\\\",ACTIVE_CAIP_NETWORK_ID:\\\"@appkit/active_caip_network_id\\\",CONNECTED_SOCIAL:\\\"@appkit/connected_social\\\",CONNECTED_SOCIAL_USERNAME:\\\"@appkit-wallet/SOCIAL_USERNAME\\\",RECENT_WALLETS:\\\"@appkit/recent_wallets\\\",DEEPLINK_CHOICE:\\\"WALLETCONNECT_DEEPLINK_CHOICE\\\",ACTIVE_NAMESPACE:\\\"@appkit/active_namespace\\\",CONNECTED_NAMESPACES:\\\"@appkit/connected_namespaces\\\",CONNECTION_STATUS:\\\"@appkit/connection_status\\\",SIWX_AUTH_TOKEN:\\\"@appkit/siwx-auth-token\\\",SIWX_NONCE_TOKEN:\\\"@appkit/siwx-nonce-token\\\",TELEGRAM_SOCIAL_PROVIDER:\\\"@appkit/social_provider\\\",NATIVE_BALANCE_CACHE:\\\"@appkit/native_balance_cache\\\",PORTFOLIO_CACHE:\\\"@appkit/portfolio_cache\\\",ENS_CACHE:\\\"@appkit/ens_cache\\\",IDENTITY_CACHE:\\\"@appkit/identity_cache\\\",PREFERRED_ACCOUNT_TYPES:\\\"@appkit/preferred_account_types\\\",CONNECTIONS:\\\"@appkit/connections\\\"};ft={setItem(t,e){F2()&&e!==void 0&&localStorage.setItem(t,e)},getItem(t){if(F2())return localStorage.getItem(t)||void 0},removeItem(t){F2()&&localStorage.removeItem(t)},clear(){F2()&&localStorage.clear()}}});function cd(t,e){return e===\\\"light\\\"?{\\\"--w3m-accent\\\":t?.[\\\"--w3m-accent\\\"]||\\\"hsla(231, 100%, 70%, 1)\\\",\\\"--w3m-background\\\":\\\"#fff\\\"}:{\\\"--w3m-accent\\\":t?.[\\\"--w3m-accent\\\"]||\\\"hsla(230, 100%, 67%, 1)\\\",\\\"--w3m-background\\\":\\\"#121313\\\"}}var gGe=x(()=>{u()});var Ri=x(()=>{u();tGe();oGe();pGe();bz();hGe();mGe();gGe()});var tUt,yGe,iue,rUt,bGe,sue,wGe=x(()=>{u();tUt=Symbol(),yGe=Object.getPrototypeOf,iue=new WeakMap,rUt=t=>t&&(iue.has(t)?iue.get(t):yGe(t)===Object.prototype||yGe(t)===Array.prototype),bGe=t=>rUt(t)&&t[tUt]||null,sue=(t,e=!0)=>{iue.set(t,e)}});function ot(t={}){return iUt(t)}function Lr(t,e,r){let n=N1.get(t);(k1.env?k1.env.MODE:void 0)!==\\\"production\\\"&&!n&&console.warn(\\\"Please use proxy object\\\");let i,s=[],o=n[3],a=!1,l=o(d=>{if(s.push(d),r){e(s.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,a&&e(s.splice(0))}))});return a=!0,()=>{a=!1,l()}}function hh(t,e){let r=N1.get(t);(k1.env?k1.env.MODE:void 0)!==\\\"production\\\"&&!r&&console.warn(\\\"Please use proxy object\\\");let[n,i,s]=r;return s(n,i(),e)}function $l(t){return x7.add(t),t}var k1,oue,N1,x7,nUt,iUt,Kn=x(()=>{u();wGe();k1={},oue=t=>typeof t==\\\"object\\\"&&t!==null,N1=new WeakMap,x7=new WeakSet,nUt=(t=Object.is,e=(l,d)=>new Proxy(l,d),r=l=>oue(l)&&!x7.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),n=l=>{switch(l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw l.reason;default:throw l}},i=new WeakMap,s=(l,d,f=n)=>{let p=i.get(l);if(p?.[0]===d)return p[1];let h=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return sue(h,!0),i.set(l,[d,h]),Reflect.ownKeys(l).forEach(m=>{if(Object.getOwnPropertyDescriptor(h,m))return;let g=Reflect.get(l,m),{enumerable:w}=Reflect.getOwnPropertyDescriptor(l,m),v={value:g,enumerable:w,configurable:!0};if(x7.has(g))sue(g,!1);else if(g instanceof Promise)delete v.value,v.get=()=>f(g);else if(N1.has(g)){let[b,_]=N1.get(g);v.value=s(b,_(),f)}Object.defineProperty(h,m,v)}),Object.preventExtensions(h)},o=new WeakMap,a=[1,1],c=l=>{if(!oue(l))throw new Error(\\\"object required\\\");let d=o.get(l);if(d)return d;let f=a[0],p=new Set,h=(B,H=++a[0])=>{f!==H&&(f=H,p.forEach(M=>M(B,H)))},m=a[1],g=(B=++a[1])=>(m!==B&&!p.size&&(m=B,v.forEach(([H])=>{let M=H[1](B);M>f&&(f=M)})),f),w=B=>(H,M)=>{let F=[...H];F[1]=[B,...F[1]],h(F,M)},v=new Map,b=(B,H)=>{if((k1.env?k1.env.MODE:void 0)!==\\\"production\\\"&&v.has(B))throw new Error(\\\"prop listener already exists\\\");if(p.size){let M=H[3](w(B));v.set(B,[H,M])}else v.set(B,[H])},_=B=>{var H;let M=v.get(B);M&&(v.delete(B),(H=M[1])==null||H.call(M))},S=B=>(p.add(B),p.size===1&&v.forEach(([M,F],R)=>{if((k1.env?k1.env.MODE:void 0)!==\\\"production\\\"&&F)throw new Error(\\\"remove already exists\\\");let y=M[3](w(R));v.set(R,[M,y])}),()=>{p.delete(B),p.size===0&&v.forEach(([M,F],R)=>{F&&(F(),v.set(R,[M]))})}),T=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),O=e(T,{deleteProperty(B,H){let M=Reflect.get(B,H);_(H);let F=Reflect.deleteProperty(B,H);return F&&h([\\\"delete\\\",[H],M]),F},set(B,H,M,F){let R=Reflect.has(B,H),y=Reflect.get(B,H,F);if(R&&(t(y,M)||o.has(M)&&t(y,o.get(M))))return!0;_(H),oue(M)&&(M=bGe(M)||M);let E=M;if(M instanceof Promise)M.then(C=>{M.status=\\\"fulfilled\\\",M.value=C,h([\\\"resolve\\\",[H],C])}).catch(C=>{M.status=\\\"rejected\\\",M.reason=C,h([\\\"reject\\\",[H],C])});else{!N1.has(M)&&r(M)&&(E=c(M));let C=!x7.has(E)&&N1.get(E);C&&b(H,C)}return Reflect.set(B,H,E,F),h([\\\"set\\\",[H],M,y]),!0}});o.set(l,O);let L=[T,g,s,S];return N1.set(O,L),Reflect.ownKeys(l).forEach(B=>{let H=Object.getOwnPropertyDescriptor(l,B);\\\"value\\\"in H&&(O[B]=l[B],delete H.value,delete H.writable),Object.defineProperty(T,B,H)}),O})=>[c,N1,x7,t,e,r,n,i,s,o,a],[iUt]=nUt()});function lr(t,e,r,n){let i=t[e];return Lr(t,()=>{let s=t[e];Object.is(i,s)||r(i=s)},n)}function vGe(t){let e=ot({data:Array.from(t||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){let i=this.data.find(s=>s[0]===r);return i?i[1]=n:this.data.push([r,n]),this},get(r){var n;return(n=this.data.find(i=>i[0]===r))==null?void 0:n[1]},delete(r){let n=this.data.findIndex(i=>i[0]===r);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(r){this.data.forEach(n=>{r(n[1],n[0],this)})},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return\\\"Map\\\"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(e,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(e),e}var xo=x(()=>{u();Kn()});var aue,cue,xGe,Rt,mh=x(()=>{u();aue=(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||\\\"https://secure.walletconnect.org\\\",cue=[{label:\\\"Coinbase\\\",name:\\\"coinbase\\\",feeRange:\\\"1-2%\\\",url:\\\"\\\",supportedChains:[\\\"eip155\\\"]},{label:\\\"Meld.io\\\",name:\\\"meld\\\",feeRange:\\\"1-2%\\\",url:\\\"https://meldcrypto.com\\\",supportedChains:[\\\"eip155\\\",\\\"solana\\\"]}],xGe=\\\"WXETMuFUQmqqybHuRkSgxv:25B8LJHSfpG6LVjR2ytU5Cwh7Z4Sch2ocoU\\\",Rt={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,FIVE_SEC_MS:5e3,THREE_SEC_MS:3e3,ONE_SEC_MS:1e3,SECURE_SITE:aue,SECURE_SITE_DASHBOARD:`${aue}/dashboard`,SECURE_SITE_FAVICON:`${aue}/images/favicon.png`,RESTRICTED_TIMEZONES:[\\\"ASIA/SHANGHAI\\\",\\\"ASIA/URUMQI\\\",\\\"ASIA/CHONGQING\\\",\\\"ASIA/HARBIN\\\",\\\"ASIA/KASHGAR\\\",\\\"ASIA/MACAU\\\",\\\"ASIA/HONG_KONG\\\",\\\"ASIA/MACAO\\\",\\\"ASIA/BEIJING\\\",\\\"ASIA/HARBIN\\\"],WC_COINBASE_PAY_SDK_CHAINS:[\\\"ethereum\\\",\\\"arbitrum\\\",\\\"polygon\\\",\\\"berachain\\\",\\\"avalanche-c-chain\\\",\\\"optimism\\\",\\\"celo\\\",\\\"base\\\"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:\\\"ethereum\\\",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:\\\"ethereum\\\",\\\"Arbitrum One\\\":\\\"arbitrum\\\",Polygon:\\\"polygon\\\",Berachain:\\\"berachain\\\",Avalanche:\\\"avalanche-c-chain\\\",\\\"OP Mainnet\\\":\\\"optimism\\\",Celo:\\\"celo\\\",Base:\\\"base\\\"},WC_COINBASE_ONRAMP_APP_ID:\\\"bf18c88d-495a-463b-b249-0b9d3656cf5e\\\",SWAP_SUGGESTED_TOKENS:[\\\"ETH\\\",\\\"UNI\\\",\\\"1INCH\\\",\\\"AAVE\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"AVAX\\\",\\\"DOT\\\",\\\"LINK\\\",\\\"NITRO\\\",\\\"GAIA\\\",\\\"MILK\\\",\\\"TRX\\\",\\\"NEAR\\\",\\\"GNO\\\",\\\"WBTC\\\",\\\"DAI\\\",\\\"WETH\\\",\\\"USDC\\\",\\\"USDT\\\",\\\"ARB\\\",\\\"BAL\\\",\\\"BICO\\\",\\\"CRV\\\",\\\"ENS\\\",\\\"MATIC\\\",\\\"OP\\\"],SWAP_POPULAR_TOKENS:[\\\"ETH\\\",\\\"UNI\\\",\\\"1INCH\\\",\\\"AAVE\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"AVAX\\\",\\\"DOT\\\",\\\"LINK\\\",\\\"NITRO\\\",\\\"GAIA\\\",\\\"MILK\\\",\\\"TRX\\\",\\\"NEAR\\\",\\\"GNO\\\",\\\"WBTC\\\",\\\"DAI\\\",\\\"WETH\\\",\\\"USDC\\\",\\\"USDT\\\",\\\"ARB\\\",\\\"BAL\\\",\\\"BICO\\\",\\\"CRV\\\",\\\"ENS\\\",\\\"MATIC\\\",\\\"OP\\\",\\\"METAL\\\",\\\"DAI\\\",\\\"CHAMP\\\",\\\"WOLF\\\",\\\"SALE\\\",\\\"BAL\\\",\\\"BUSD\\\",\\\"MUST\\\",\\\"BTCpx\\\",\\\"ROUTE\\\",\\\"HEX\\\",\\\"WELT\\\",\\\"amDAI\\\",\\\"VSQ\\\",\\\"VISION\\\",\\\"AURUM\\\",\\\"pSP\\\",\\\"SNX\\\",\\\"VC\\\",\\\"LINK\\\",\\\"CHP\\\",\\\"amUSDT\\\",\\\"SPHERE\\\",\\\"FOX\\\",\\\"GIDDY\\\",\\\"GFC\\\",\\\"OMEN\\\",\\\"OX_OLD\\\",\\\"DE\\\",\\\"WNT\\\"],BALANCE_SUPPORTED_CHAINS:[\\\"eip155\\\",\\\"solana\\\"],SWAP_SUPPORTED_NETWORKS:[\\\"eip155:1\\\",\\\"eip155:42161\\\",\\\"eip155:10\\\",\\\"eip155:324\\\",\\\"eip155:8453\\\",\\\"eip155:56\\\",\\\"eip155:137\\\",\\\"eip155:100\\\",\\\"eip155:43114\\\",\\\"eip155:250\\\",\\\"eip155:8217\\\",\\\"eip155:1313161554\\\"],NAMES_SUPPORTED_CHAIN_NAMESPACES:[\\\"eip155\\\"],ONRAMP_SUPPORTED_CHAIN_NAMESPACES:[\\\"eip155\\\",\\\"solana\\\"],ACTIVITY_ENABLED_CHAIN_NAMESPACES:[\\\"eip155\\\"],NATIVE_TOKEN_ADDRESS:{eip155:\\\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\\\",solana:\\\"So11111111111111111111111111111111111111111\\\",polkadot:\\\"0x\\\",bip122:\\\"0x\\\",cosmos:\\\"0x\\\"},CONVERT_SLIPPAGE_TOLERANCE:1,CONNECT_LABELS:{MOBILE:\\\"Open and continue in the wallet app\\\",WEB:\\\"Open and continue in the wallet app\\\"},SEND_SUPPORTED_NAMESPACES:[\\\"eip155\\\",\\\"solana\\\"],DEFAULT_REMOTE_FEATURES:{swaps:[\\\"1inch\\\"],onramp:[\\\"coinbase\\\",\\\"meld\\\"],email:!0,socials:[\\\"google\\\",\\\"x\\\",\\\"discord\\\",\\\"farcaster\\\",\\\"github\\\",\\\"apple\\\",\\\"facebook\\\"],activity:!0,reownBranding:!0},DEFAULT_REMOTE_FEATURES_DISABLED:{email:!1,socials:!1,swaps:!1,onramp:!1,activity:!1,reownBranding:!1},DEFAULT_FEATURES:{receive:!0,send:!0,emailShowWallets:!0,connectorTypeOrder:[\\\"walletConnect\\\",\\\"recent\\\",\\\"injected\\\",\\\"featured\\\",\\\"custom\\\",\\\"external\\\",\\\"recommended\\\"],analytics:!0,allWallets:!0,legalCheckbox:!1,smartSessions:!1,collapseWallets:!1,walletFeaturesOrder:[\\\"onramp\\\",\\\"swaps\\\",\\\"receive\\\",\\\"send\\\"],connectMethodsOrder:void 0,pay:!1},DEFAULT_SOCIALS:[\\\"google\\\",\\\"x\\\",\\\"farcaster\\\",\\\"discord\\\",\\\"apple\\\",\\\"github\\\",\\\"facebook\\\"],DEFAULT_ACCOUNT_TYPES:{bip122:\\\"payment\\\",eip155:\\\"smartAccount\\\",polkadot:\\\"eoa\\\",solana:\\\"eoa\\\"},ADAPTER_TYPES:{UNIVERSAL:\\\"universal\\\",SOLANA:\\\"solana\\\",WAGMI:\\\"wagmi\\\",ETHERS:\\\"ethers\\\",ETHERS5:\\\"ethers5\\\",BITCOIN:\\\"bitcoin\\\"}}});var Te,_0=x(()=>{u();Ri();Te={cacheExpiry:{portfolio:3e4,nativeBalance:3e4,ens:3e5,identity:3e5},isCacheExpired(t,e){return Date.now()-t>e},getActiveNetworkProps(){let t=Te.getActiveNamespace(),e=Te.getActiveCaipNetworkId(),r=e?e.split(\\\":\\\")[1]:void 0,n=r?isNaN(Number(r))?r:Number(r):void 0;return{namespace:t,caipNetworkId:e,chainId:n}},setWalletConnectDeepLink({name:t,href:e}){try{ft.setItem(vt.DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info(\\\"Unable to set WalletConnect deep link\\\")}},getWalletConnectDeepLink(){try{let t=ft.getItem(vt.DEEPLINK_CHOICE);if(t)return JSON.parse(t)}catch{console.info(\\\"Unable to get WalletConnect deep link\\\")}},deleteWalletConnectDeepLink(){try{ft.removeItem(vt.DEEPLINK_CHOICE)}catch{console.info(\\\"Unable to delete WalletConnect deep link\\\")}},setActiveNamespace(t){try{ft.setItem(vt.ACTIVE_NAMESPACE,t)}catch{console.info(\\\"Unable to set active namespace\\\")}},setActiveCaipNetworkId(t){try{ft.setItem(vt.ACTIVE_CAIP_NETWORK_ID,t),Te.setActiveNamespace(t.split(\\\":\\\")[0])}catch{console.info(\\\"Unable to set active caip network id\\\")}},getActiveCaipNetworkId(){try{return ft.getItem(vt.ACTIVE_CAIP_NETWORK_ID)}catch{console.info(\\\"Unable to get active caip network id\\\");return}},deleteActiveCaipNetworkId(){try{ft.removeItem(vt.ACTIVE_CAIP_NETWORK_ID)}catch{console.info(\\\"Unable to delete active caip network id\\\")}},deleteConnectedConnectorId(t){try{let e=v7(t);ft.removeItem(e)}catch{console.info(\\\"Unable to delete connected connector id\\\")}},setAppKitRecent(t){try{let e=Te.getRecentWallets();e.find(n=>n.id===t.id)||(e.unshift(t),e.length>2&&e.pop(),ft.setItem(vt.RECENT_WALLETS,JSON.stringify(e)))}catch{console.info(\\\"Unable to set AppKit recent\\\")}},getRecentWallets(){try{let t=ft.getItem(vt.RECENT_WALLETS);return t?JSON.parse(t):[]}catch{console.info(\\\"Unable to get AppKit recent\\\")}return[]},setConnectedConnectorId(t,e){try{let r=v7(t);ft.setItem(r,e)}catch{console.info(\\\"Unable to set Connected Connector Id\\\")}},getActiveNamespace(){try{return ft.getItem(vt.ACTIVE_NAMESPACE)}catch{console.info(\\\"Unable to get active namespace\\\")}},getConnectedConnectorId(t){if(t)try{let e=v7(t);return ft.getItem(e)}catch{console.info(\\\"Unable to get connected connector id in namespace \\\",t)}},setConnectedSocialProvider(t){try{ft.setItem(vt.CONNECTED_SOCIAL,t)}catch{console.info(\\\"Unable to set connected social provider\\\")}},getConnectedSocialProvider(){try{return ft.getItem(vt.CONNECTED_SOCIAL)}catch{console.info(\\\"Unable to get connected social provider\\\")}},deleteConnectedSocialProvider(){try{ft.removeItem(vt.CONNECTED_SOCIAL)}catch{console.info(\\\"Unable to delete connected social provider\\\")}},getConnectedSocialUsername(){try{return ft.getItem(vt.CONNECTED_SOCIAL_USERNAME)}catch{console.info(\\\"Unable to get connected social username\\\")}},getStoredActiveCaipNetworkId(){return ft.getItem(vt.ACTIVE_CAIP_NETWORK_ID)?.split(\\\":\\\")?.[1]},setConnectionStatus(t){try{ft.setItem(vt.CONNECTION_STATUS,t)}catch{console.info(\\\"Unable to set connection status\\\")}},getConnectionStatus(){try{return ft.getItem(vt.CONNECTION_STATUS)}catch{return}},getConnectedNamespaces(){try{let t=ft.getItem(vt.CONNECTED_NAMESPACES);return t?.length?t.split(\\\",\\\"):[]}catch{return[]}},setConnectedNamespaces(t){try{let e=Array.from(new Set(t));ft.setItem(vt.CONNECTED_NAMESPACES,e.join(\\\",\\\"))}catch{console.info(\\\"Unable to set namespaces in storage\\\")}},addConnectedNamespace(t){try{let e=Te.getConnectedNamespaces();e.includes(t)||(e.push(t),Te.setConnectedNamespaces(e))}catch{console.info(\\\"Unable to add connected namespace\\\")}},removeConnectedNamespace(t){try{let e=Te.getConnectedNamespaces(),r=e.indexOf(t);r>-1&&(e.splice(r,1),Te.setConnectedNamespaces(e))}catch{console.info(\\\"Unable to remove connected namespace\\\")}},getTelegramSocialProvider(){try{return ft.getItem(vt.TELEGRAM_SOCIAL_PROVIDER)}catch{return console.info(\\\"Unable to get telegram social provider\\\"),null}},setTelegramSocialProvider(t){try{ft.setItem(vt.TELEGRAM_SOCIAL_PROVIDER,t)}catch{console.info(\\\"Unable to set telegram social provider\\\")}},removeTelegramSocialProvider(){try{ft.removeItem(vt.TELEGRAM_SOCIAL_PROVIDER)}catch{console.info(\\\"Unable to remove telegram social provider\\\")}},getBalanceCache(){let t={};try{let e=ft.getItem(vt.PORTFOLIO_CACHE);t=e?JSON.parse(e):{}}catch{console.info(\\\"Unable to get balance cache\\\")}return t},removeAddressFromBalanceCache(t){try{let e=Te.getBalanceCache();ft.setItem(vt.PORTFOLIO_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info(\\\"Unable to remove address from balance cache\\\",t)}},getBalanceCacheForCaipAddress(t){try{let r=Te.getBalanceCache()[t];if(r&&!this.isCacheExpired(r.timestamp,this.cacheExpiry.portfolio))return r.balance;Te.removeAddressFromBalanceCache(t)}catch{console.info(\\\"Unable to get balance cache for address\\\",t)}},updateBalanceCache(t){try{let e=Te.getBalanceCache();e[t.caipAddress]=t,ft.setItem(vt.PORTFOLIO_CACHE,JSON.stringify(e))}catch{console.info(\\\"Unable to update balance cache\\\",t)}},getNativeBalanceCache(){let t={};try{let e=ft.getItem(vt.NATIVE_BALANCE_CACHE);t=e?JSON.parse(e):{}}catch{console.info(\\\"Unable to get balance cache\\\")}return t},removeAddressFromNativeBalanceCache(t){try{let e=Te.getBalanceCache();ft.setItem(vt.NATIVE_BALANCE_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info(\\\"Unable to remove address from balance cache\\\",t)}},getNativeBalanceCacheForCaipAddress(t){try{let r=Te.getNativeBalanceCache()[t];if(r&&!this.isCacheExpired(r.timestamp,this.cacheExpiry.nativeBalance))return r;console.info(\\\"Discarding cache for address\\\",t),Te.removeAddressFromBalanceCache(t)}catch{console.info(\\\"Unable to get balance cache for address\\\",t)}},updateNativeBalanceCache(t){try{let e=Te.getNativeBalanceCache();e[t.caipAddress]=t,ft.setItem(vt.NATIVE_BALANCE_CACHE,JSON.stringify(e))}catch{console.info(\\\"Unable to update balance cache\\\",t)}},getEnsCache(){let t={};try{let e=ft.getItem(vt.ENS_CACHE);t=e?JSON.parse(e):{}}catch{console.info(\\\"Unable to get ens name cache\\\")}return t},getEnsFromCacheForAddress(t){try{let r=Te.getEnsCache()[t];if(r&&!this.isCacheExpired(r.timestamp,this.cacheExpiry.ens))return r.ens;Te.removeEnsFromCache(t)}catch{console.info(\\\"Unable to get ens name from cache\\\",t)}},updateEnsCache(t){try{let e=Te.getEnsCache();e[t.address]=t,ft.setItem(vt.ENS_CACHE,JSON.stringify(e))}catch{console.info(\\\"Unable to update ens name cache\\\",t)}},removeEnsFromCache(t){try{let e=Te.getEnsCache();ft.setItem(vt.ENS_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info(\\\"Unable to remove ens name from cache\\\",t)}},getIdentityCache(){let t={};try{let e=ft.getItem(vt.IDENTITY_CACHE);t=e?JSON.parse(e):{}}catch{console.info(\\\"Unable to get identity cache\\\")}return t},getIdentityFromCacheForAddress(t){try{let r=Te.getIdentityCache()[t];if(r&&!this.isCacheExpired(r.timestamp,this.cacheExpiry.identity))return r.identity;Te.removeIdentityFromCache(t)}catch{console.info(\\\"Unable to get identity from cache\\\",t)}},updateIdentityCache(t){try{let e=Te.getIdentityCache();e[t.address]={identity:t.identity,timestamp:t.timestamp},ft.setItem(vt.IDENTITY_CACHE,JSON.stringify(e))}catch{console.info(\\\"Unable to update identity cache\\\",t)}},removeIdentityFromCache(t){try{let e=Te.getIdentityCache();ft.setItem(vt.IDENTITY_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info(\\\"Unable to remove identity from cache\\\",t)}},clearAddressCache(){try{ft.removeItem(vt.PORTFOLIO_CACHE),ft.removeItem(vt.NATIVE_BALANCE_CACHE),ft.removeItem(vt.ENS_CACHE),ft.removeItem(vt.IDENTITY_CACHE)}catch{console.info(\\\"Unable to clear address cache\\\")}},setPreferredAccountTypes(t){try{ft.setItem(vt.PREFERRED_ACCOUNT_TYPES,JSON.stringify(t))}catch{console.info(\\\"Unable to set preferred account types\\\",t)}},getPreferredAccountTypes(){try{let t=ft.getItem(vt.PREFERRED_ACCOUNT_TYPES);return t?JSON.parse(t):{}}catch{console.info(\\\"Unable to get preferred account types\\\")}return{}},setConnections(t,e){try{let r={...Te.getConnections(),[e]:t};ft.setItem(vt.CONNECTIONS,JSON.stringify(r))}catch(r){console.error(\\\"Unable to sync connections to storage\\\",r)}},getConnections(){try{let t=ft.getItem(vt.CONNECTIONS);return t?JSON.parse(t):{}}catch(t){return console.error(\\\"Unable to get connections from storage\\\",t),{}}}}});var oe,Gc=x(()=>{u();Ri();mh();_0();oe={isMobile(){return this.isClient()?!!(typeof window?.matchMedia==\\\"function\\\"&&window?.matchMedia(\\\"(pointer:coarse)\\\")?.matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},checkCaipNetwork(t,e=\\\"\\\"){return t?.caipNetworkId.toLocaleLowerCase().includes(e.toLowerCase())},isAndroid(){if(!this.isMobile())return!1;let t=window?.navigator.userAgent.toLowerCase();return oe.isMobile()&&t.includes(\\\"android\\\")},isIos(){if(!this.isMobile())return!1;let t=window?.navigator.userAgent.toLowerCase();return t.includes(\\\"iphone\\\")||t.includes(\\\"ipad\\\")},isSafari(){return this.isClient()?(window?.navigator.userAgent.toLowerCase()).includes(\\\"safari\\\"):!1},isClient(){return typeof window<\\\"u\\\"},isPairingExpired(t){return t?t-Date.now()<=Rt.TEN_SEC_MS:!0},isAllowedRetry(t,e=Rt.ONE_SEC_MS){return Date.now()-t>=e},copyToClopboard(t){navigator.clipboard.writeText(t)},isIframe(){try{return window?.self!==window?.top}catch{return!1}},isSafeApp(){if(oe.isClient()&&window.self!==window.top)try{let t=window?.location?.ancestorOrigins?.[0],e=\\\"https://app.safe.global\\\";if(t){let r=new URL(t),n=new URL(e);return r.hostname===n.hostname}}catch{return!1}return!1},getPairingExpiry(){return Date.now()+Rt.FOUR_MINUTES_MS},getNetworkId(t){return t?.split(\\\":\\\")[1]},getPlainAddress(t){return t?.split(\\\":\\\")[2]},async wait(t){return new Promise(e=>{setTimeout(e,t)})},debounce(t,e=500){let r;return(...n)=>{function i(){t(...n)}r&&clearTimeout(r),r=setTimeout(i,e)}},isHttpUrl(t){return t.startsWith(\\\"http://\\\")||t.startsWith(\\\"https://\\\")},formatNativeUrl(t,e,r=null){if(oe.isHttpUrl(t))return this.formatUniversalUrl(t,e);let n=t,i=r;n.includes(\\\"://\\\")||(n=t.replaceAll(\\\"/\\\",\\\"\\\").replaceAll(\\\":\\\",\\\"\\\"),n=`${n}://`),n.endsWith(\\\"/\\\")||(n=`${n}/`),i&&!i?.endsWith(\\\"/\\\")&&(i=`${i}/`),this.isTelegram()&&this.isAndroid()&&(e=encodeURIComponent(e));let s=encodeURIComponent(e);return{redirect:`${n}wc?uri=${s}`,redirectUniversalLink:i?`${i}wc?uri=${s}`:void 0,href:n}},formatUniversalUrl(t,e){if(!oe.isHttpUrl(t))return this.formatNativeUrl(t,e);let r=t;r.endsWith(\\\"/\\\")||(r=`${r}/`);let n=encodeURIComponent(e);return{redirect:`${r}wc?uri=${n}`,href:r}},getOpenTargetForPlatform(t){return t===\\\"popupWindow\\\"?t:this.isTelegram()?Te.getTelegramSocialProvider()?\\\"_top\\\":\\\"_blank\\\":t},openHref(t,e,r){window?.open(t,this.getOpenTargetForPlatform(e),r||\\\"noreferrer noopener\\\")},returnOpenHref(t,e,r){return window?.open(t,this.getOpenTargetForPlatform(e),r||\\\"noreferrer noopener\\\")},isTelegram(){return typeof window<\\\"u\\\"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},isPWA(){if(typeof window>\\\"u\\\")return!1;let t=window.matchMedia?.(\\\"(display-mode: standalone)\\\")?.matches,e=window?.navigator?.standalone;return!!(t||e)},async preloadImage(t){let e=new Promise((r,n)=>{let i=new Image;i.onload=r,i.onerror=n,i.crossOrigin=\\\"anonymous\\\",i.src=t});return Promise.race([e,oe.wait(2e3)])},formatBalance(t,e){let r=\\\"0.000\\\";if(typeof t==\\\"string\\\"){let n=Number(t);if(n){let i=Math.floor(n*1e3)/1e3;i&&(r=i.toString())}}return`${r}${e?` ${e}`:\\\"\\\"}`},formatBalance2(t,e){let r;if(t===\\\"0\\\")r=\\\"0\\\";else if(typeof t==\\\"string\\\"){let n=Number(t);n&&(r=n.toString().match(/^-?\\\\d+(?:\\\\.\\\\d{0,3})?/u)?.[0])}return{value:r??\\\"0\\\",rest:r===\\\"0\\\"?\\\"000\\\":\\\"\\\",symbol:e}},getApiUrl(){return _e.W3M_API_URL},getBlockchainApiUrl(){return _e.BLOCKCHAIN_API_RPC_URL},getAnalyticsUrl(){return _e.PULSE_API_URL},getUUID(){return crypto?.randomUUID?crypto.randomUUID():\\\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\\\".replace(/[xy]/gu,t=>{let e=Math.random()*16|0;return(t===\\\"x\\\"?e:e&3|8).toString(16)})},parseError(t){return typeof t==\\\"string\\\"?t:typeof t?.issues?.[0]?.message==\\\"string\\\"?t.issues[0].message:t instanceof Error?t.message:\\\"Unknown error\\\"},sortRequestedNetworks(t,e=[]){let r={};return e&&t&&(t.forEach((n,i)=>{r[n]=i}),e.sort((n,i)=>{let s=r[n.id],o=r[i.id];return s!==void 0&&o!==void 0?s-o:s!==void 0?-1:o!==void 0?1:0})),e},calculateBalance(t){let e=0;for(let r of t)e+=r.value??0;return e},formatTokenBalance(t){let e=t.toFixed(2),[r,n]=e.split(\\\".\\\");return{dollars:r,pennies:n}},isAddress(t,e=\\\"eip155\\\"){switch(e){case\\\"eip155\\\":if(/^(?:0x)?[0-9a-f]{40}$/iu.test(t)){if(/^(?:0x)?[0-9a-f]{40}$/iu.test(t)||/^(?:0x)?[0-9A-F]{40}$/iu.test(t))return!0}else return!1;return!1;case\\\"solana\\\":return/[1-9A-HJ-NP-Za-km-z]{32,44}$/iu.test(t);default:return!1}},uniqueBy(t,e){let r=new Set;return t.filter(n=>{let i=n[e];return r.has(i)?!1:(r.add(i),!0)})},generateSdkVersion(t,e,r){let i=t.length===0?Rt.ADAPTER_TYPES.UNIVERSAL:t.map(s=>s.adapterType).join(\\\",\\\");return`${e}-${i}-${r}`},createAccount(t,e,r,n,i){return{namespace:t,address:e,type:r,publicKey:n,path:i}},isCaipAddress(t){if(typeof t!=\\\"string\\\")return!1;let e=t.split(\\\":\\\"),r=e[0];return e.filter(Boolean).length===3&&r in _e.CHAIN_NAME_MAP},isMac(){let t=window?.navigator.userAgent.toLowerCase();return t.includes(\\\"macintosh\\\")&&!t.includes(\\\"safari\\\")},formatTelegramSocialLoginUrl(t){let e=`--${encodeURIComponent(window?.location.href)}`,r=\\\"state=\\\";if(new URL(t).host===\\\"auth.magic.link\\\"){let i=\\\"provider_authorization_url=\\\",s=t.substring(t.indexOf(i)+i.length),o=this.injectIntoUrl(decodeURIComponent(s),r,e);return t.replace(s,encodeURIComponent(o))}return this.injectIntoUrl(t,r,e)},injectIntoUrl(t,e,r){let n=t.indexOf(e);if(n===-1)throw new Error(`${e} parameter not found in the URL: ${t}`);let i=t.indexOf(\\\"&\\\",n),s=e.length,o=i!==-1?i:t.length,a=t.substring(0,n+s),c=t.substring(n+s,o),l=t.substring(i),d=c+r;return a+d+l}}});async function E7(...t){let e=await fetch(...t);if(!e.ok)throw new Error(`HTTP status code: ${e.status}`,{cause:e});return e}var _f,_7=x(()=>{u();_f=class{constructor({baseUrl:e,clientId:r}){this.baseUrl=e,this.clientId=r}async get({headers:e,signal:r,cache:n,...i}){let s=this.createUrl(i);return(await E7(s,{method:\\\"GET\\\",headers:e,signal:r,cache:n})).json()}async getBlob({headers:e,signal:r,...n}){let i=this.createUrl(n);return(await E7(i,{method:\\\"GET\\\",headers:e,signal:r})).blob()}async post({body:e,headers:r,signal:n,...i}){let s=this.createUrl(i);return(await E7(s,{method:\\\"POST\\\",headers:r,body:e?JSON.stringify(e):void 0,signal:n})).json()}async put({body:e,headers:r,signal:n,...i}){let s=this.createUrl(i);return(await E7(s,{method:\\\"PUT\\\",headers:r,body:e?JSON.stringify(e):void 0,signal:n})).json()}async delete({body:e,headers:r,signal:n,...i}){let s=this.createUrl(i);return(await E7(s,{method:\\\"DELETE\\\",headers:r,body:e?JSON.stringify(e):void 0,signal:n})).json()}createUrl({path:e,params:r}){let n=new URL(e,this.baseUrl);return r&&Object.entries(r).forEach(([i,s])=>{s&&n.searchParams.append(i,s)}),this.clientId&&n.searchParams.append(\\\"clientId\\\",this.clientId),n}}});var EGe,_Ge=x(()=>{u();mh();Gc();EGe={getFeatureValue(t,e){let r=e?.[t];return r===void 0?Rt.DEFAULT_FEATURES[t]:r},filterSocialsByPlatform(t){if(!t||!t.length)return t;if(oe.isTelegram()){if(oe.isIos())return t.filter(e=>e!==\\\"google\\\");if(oe.isMac())return t.filter(e=>e!==\\\"x\\\");if(oe.isAndroid())return t.filter(e=>![\\\"facebook\\\",\\\"x\\\"].includes(e))}return t}}});var rt,ee,Kc=x(()=>{u();Kn();xo();mh();_Ge();rt=ot({features:Rt.DEFAULT_FEATURES,projectId:\\\"\\\",sdkType:\\\"appkit\\\",sdkVersion:\\\"html-wagmi-undefined\\\",defaultAccountTypes:Rt.DEFAULT_ACCOUNT_TYPES,enableNetworkSwitch:!0,experimental_preferUniversalLinks:!1,remoteFeatures:{}}),ee={state:rt,subscribeKey(t,e){return lr(rt,t,e)},setOptions(t){Object.assign(rt,t)},setRemoteFeatures(t){if(!t)return;let e={...rt.remoteFeatures,...t};rt.remoteFeatures=e,rt.remoteFeatures?.socials&&(rt.remoteFeatures.socials=EGe.filterSocialsByPlatform(rt.remoteFeatures.socials))},setFeatures(t){if(!t)return;rt.features||(rt.features=Rt.DEFAULT_FEATURES);let e={...rt.features,...t};rt.features=e},setProjectId(t){rt.projectId=t},setCustomRpcUrls(t){rt.customRpcUrls=t},setAllWallets(t){rt.allWallets=t},setIncludeWalletIds(t){rt.includeWalletIds=t},setExcludeWalletIds(t){rt.excludeWalletIds=t},setFeaturedWalletIds(t){rt.featuredWalletIds=t},setTokens(t){rt.tokens=t},setTermsConditionsUrl(t){rt.termsConditionsUrl=t},setPrivacyPolicyUrl(t){rt.privacyPolicyUrl=t},setCustomWallets(t){rt.customWallets=t},setIsSiweEnabled(t){rt.isSiweEnabled=t},setIsUniversalProvider(t){rt.isUniversalProvider=t},setSdkVersion(t){rt.sdkVersion=t},setMetadata(t){rt.metadata=t},setDisableAppend(t){rt.disableAppend=t},setEIP6963Enabled(t){rt.enableEIP6963=t},setDebug(t){rt.debug=t},setEnableWalletConnect(t){rt.enableWalletConnect=t},setEnableWalletGuide(t){rt.enableWalletGuide=t},setEnableAuthLogger(t){rt.enableAuthLogger=t},setEnableWallets(t){rt.enableWallets=t},setPreferUniversalLinks(t){rt.experimental_preferUniversalLinks=t},setHasMultipleAddresses(t){rt.hasMultipleAddresses=t},setSIWX(t){rt.siwx=t},setConnectMethodsOrder(t){rt.features={...rt.features,connectMethodsOrder:t}},setWalletFeaturesOrder(t){rt.features={...rt.features,walletFeaturesOrder:t}},setSocialsOrder(t){rt.remoteFeatures={...rt.remoteFeatures,socials:t}},setCollapseWallets(t){rt.features={...rt.features,collapseWallets:t}},setEnableEmbedded(t){rt.enableEmbedded=t},setAllowUnsupportedChain(t){rt.allowUnsupportedChain=t},setManualWCControl(t){rt.manualWCControl=t},setEnableNetworkSwitch(t){rt.enableNetworkSwitch=t},setDefaultAccountTypes(t={}){Object.entries(t).forEach(([e,r])=>{r&&(rt.defaultAccountTypes[e]=r)})},setUniversalProviderConfigOverride(t){rt.universalProviderConfigOverride=t},getUniversalProviderConfigOverride(){return rt.universalProviderConfigOverride},getSnapshot(){return hh(rt)}}});var sUt,oUt,aUt,cUt,B1,CGe,SGe=x(()=>{u();Kn();xo();Gc();_7();Kc();sUt=Object.freeze({enabled:!0,events:[]}),oUt=new _f({baseUrl:oe.getAnalyticsUrl(),clientId:null}),aUt=5,cUt=60*1e3,B1=ot({...sUt}),CGe={state:B1,subscribeKey(t,e){return lr(B1,t,e)},async sendError(t,e){if(!B1.enabled)return;let r=Date.now();if(B1.events.filter(s=>{let o=new Date(s.properties.timestamp||\\\"\\\").getTime();return r-o<cUt}).length>=aUt)return;let i={type:\\\"error\\\",event:e,properties:{errorType:t.name,errorMessage:t.message,stackTrace:t.stack,timestamp:new Date().toISOString()}};B1.events.push(i);try{if(typeof window>\\\"u\\\")return;let{projectId:s,sdkType:o,sdkVersion:a}=ee.state;await oUt.post({path:\\\"/e\\\",params:{projectId:s,st:o,sv:a||\\\"html-wagmi-4.2.2\\\"},body:{eventId:oe.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:new Date().toISOString(),props:{type:\\\"error\\\",event:e,errorType:t.name,errorMessage:t.message,stackTrace:t.stack}}})}catch{}},enable(){B1.enabled=!0},disable(){B1.enabled=!1},clearEvents(){B1.events=[]}}});function AGe(t,e){let r=t instanceof m4?t:new m4(t instanceof Error?t.message:String(t),e,t);throw CGe.sendError(r,r.category),r}function sn(t,e=\\\"INTERNAL_SDK_ERROR\\\"){let r={};return Object.keys(t).forEach(n=>{let i=t[n];if(typeof i==\\\"function\\\"){let s=i;i.constructor.name===\\\"AsyncFunction\\\"?s=async(...o)=>{try{return await i(...o)}catch(a){return AGe(a,e)}}:s=(...o)=>{try{return i(...o)}catch(a){return AGe(a,e)}},r[n]=s}else r[n]=i}),r}var m4,cc=x(()=>{u();SGe();m4=class t extends Error{constructor(e,r,n){super(e),this.name=\\\"AppKitError\\\",this.category=r,this.originalError=n,Object.setPrototypeOf(this,t.prototype);let i=!1;if(n instanceof Error&&typeof n.stack==\\\"string\\\"&&n.stack){let s=n.stack,o=s.indexOf(`\\n`);if(o>-1){let a=s.substring(o+1);this.stack=`${this.name}: ${this.message}\\n${a}`,i=!0}}i||(Error.captureStackTrace?Error.captureStackTrace(this,t):this.stack||(this.stack=`${this.name}: ${this.message}`))}}});var Cf,TGe,lue=x(()=>{u();Ri();Cf={PHANTOM:{id:\\\"a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393\\\",url:\\\"https://phantom.app\\\"},SOLFLARE:{id:\\\"1ca0bdd4747578705b1939af023d120677c64fe6ca76add81fda36e350605e79\\\",url:\\\"https://solflare.com\\\"},COINBASE:{id:\\\"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa\\\",url:\\\"https://go.cb-w.com\\\"}},TGe={handleMobileDeeplinkRedirect(t,e){let r=window.location.href,n=encodeURIComponent(r);if(t===Cf.PHANTOM.id&&!(\\\"phantom\\\"in window)){let i=r.startsWith(\\\"https\\\")?\\\"https\\\":\\\"http\\\",s=r.split(\\\"/\\\")[2],o=encodeURIComponent(`${i}://${s}`);window.location.href=`${Cf.PHANTOM.url}/ul/browse/${n}?ref=${o}`}t===Cf.SOLFLARE.id&&!(\\\"solflare\\\"in window)&&(window.location.href=`${Cf.SOLFLARE.url}/ul/v1/browse/${n}?ref=${n}`),e===_e.CHAIN.SOLANA&&t===Cf.COINBASE.id&&!(\\\"coinbaseSolana\\\"in window)&&(window.location.href=`${Cf.COINBASE.url}/dapp?cb_url=${n}`)}}});var Vl,lUt,Zs,vz=x(()=>{u();Kn();xo();cc();Vl=ot({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),lUt={state:Vl,subscribeNetworkImages(t){return Lr(Vl.networkImages,()=>t(Vl.networkImages))},subscribeKey(t,e){return lr(Vl,t,e)},subscribe(t){return Lr(Vl,()=>t(Vl))},setWalletImage(t,e){Vl.walletImages[t]=e},setNetworkImage(t,e){Vl.networkImages[t]=e},setChainImage(t,e){Vl.chainImages[t]=e},setConnectorImage(t,e){Vl.connectorImages={...Vl.connectorImages,[t]:e}},setTokenImage(t,e){Vl.tokenImages[t]=e},setCurrencyImage(t,e){Vl.currencyImages[t]=e}},Zs=sn(lUt)});var uUt,uue,sr,due=x(()=>{u();Kn();g4();vz();uUt={eip155:\\\"ba0ba0cd-17c6-4806-ad93-f9d174f17900\\\",solana:\\\"a1b58899-f671-4276-6a5e-56ca5bd59700\\\",polkadot:\\\"\\\",bip122:\\\"0b4838db-0161-4ffe-022d-532bf03dba00\\\",cosmos:\\\"\\\"},uue=ot({networkImagePromises:{}}),sr={async fetchWalletImage(t){if(t)return await ye._fetchWalletImage(t),this.getWalletImageById(t)},async fetchNetworkImage(t){if(!t)return;let e=this.getNetworkImageById(t);return e||(uue.networkImagePromises[t]||(uue.networkImagePromises[t]=ye._fetchNetworkImage(t)),await uue.networkImagePromises[t],this.getNetworkImageById(t))},getWalletImageById(t){if(t)return Zs.state.walletImages[t]},getWalletImage(t){if(t?.image_url)return t?.image_url;if(t?.image_id)return Zs.state.walletImages[t.image_id]},getNetworkImage(t){if(t?.assets?.imageUrl)return t?.assets?.imageUrl;if(t?.assets?.imageId)return Zs.state.networkImages[t.assets.imageId]},getNetworkImageById(t){if(t)return Zs.state.networkImages[t]},getConnectorImage(t){if(t?.imageUrl)return t.imageUrl;if(t?.imageId)return Zs.state.connectorImages[t.imageId]},getChainImage(t){return Zs.state.networkImages[uUt[t]]}}});var M1,dUt,Xo,fue=x(()=>{u();Kn();xo();cc();Kc();M1=ot({message:\\\"\\\",variant:\\\"info\\\",open:!1}),dUt={state:M1,subscribeKey(t,e){return lr(M1,t,e)},open(t,e){let{debug:r}=ee.state,{shortMessage:n,longMessage:i}=t;r&&(M1.message=n,M1.variant=e,M1.open=!0),i&&console.error(typeof i==\\\"function\\\"?i():i)},close(){M1.open=!1,M1.message=\\\"\\\",M1.variant=\\\"info\\\"}},Xo=sn(dUt)});var fUt,pUt,hUt,C0,Xe,S0=x(()=>{u();Kn();Ri();Gc();_7();lc();fue();Kc();fUt=oe.getAnalyticsUrl(),pUt=new _f({baseUrl:fUt,clientId:null}),hUt=[\\\"MODAL_CREATED\\\"],C0=ot({timestamp:Date.now(),reportedErrors:{},data:{type:\\\"track\\\",event:\\\"MODAL_CREATED\\\"}}),Xe={state:C0,subscribe(t){return Lr(C0,()=>t(C0))},getSdkProperties(){let{projectId:t,sdkType:e,sdkVersion:r}=ee.state;return{projectId:t,st:e,sv:r||\\\"html-wagmi-4.2.2\\\"}},async _sendAnalyticsEvent(t){try{let e=Ie.state.address;if(hUt.includes(t.data.event)||typeof window>\\\"u\\\")return;await pUt.post({path:\\\"/e\\\",params:Xe.getSdkProperties(),body:{eventId:oe.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:t.timestamp,props:{...t.data,address:e}}}),C0.reportedErrors.FORBIDDEN=!1}catch(e){e instanceof Error&&e.cause instanceof Response&&e.cause.status===_e.HTTP_STATUS_CODES.FORBIDDEN&&!C0.reportedErrors.FORBIDDEN&&(Xo.open({shortMessage:\\\"Invalid App Configuration\\\",longMessage:`Origin ${F2()?window.origin:\\\"uknown\\\"} not found on Allowlist - update configuration on cloud.reown.com`},\\\"error\\\"),C0.reportedErrors.FORBIDDEN=!0)}},sendEvent(t){C0.timestamp=Date.now(),C0.data=t,ee.state.features?.analytics&&Xe._sendAnalyticsEvent(C0)}}});var mUt,Zc,gUt,IGe,yUt,Pt,ye,g4=x(()=>{u();Kn();xo();due();Gc();_7();lue();_0();vz();ea();ld();S0();Kc();mUt=oe.getApiUrl(),Zc=new _f({baseUrl:mUt,clientId:null}),gUt=40,IGe=4,yUt=20,Pt=ot({promises:{},page:1,count:0,featured:[],allFeatured:[],recommended:[],allRecommended:[],wallets:[],filteredWallets:[],search:[],isAnalyticsEnabled:!1,excludedWallets:[],isFetchingRecommendedWallets:!1}),ye={state:Pt,subscribeKey(t,e){return lr(Pt,t,e)},_getSdkProperties(){let{projectId:t,sdkType:e,sdkVersion:r}=ee.state;return{projectId:t,st:e||\\\"appkit\\\",sv:r||\\\"html-wagmi-4.2.2\\\"}},_filterOutExtensions(t){return ee.state.isUniversalProvider?t.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):t},async _fetchWalletImage(t){let e=`${Zc.baseUrl}/getWalletImage/${t}`,r=await Zc.getBlob({path:e,params:ye._getSdkProperties()});Zs.setWalletImage(t,URL.createObjectURL(r))},async _fetchNetworkImage(t){let e=`${Zc.baseUrl}/public/getAssetImage/${t}`,r=await Zc.getBlob({path:e,params:ye._getSdkProperties()});Zs.setNetworkImage(t,URL.createObjectURL(r))},async _fetchConnectorImage(t){let e=`${Zc.baseUrl}/public/getAssetImage/${t}`,r=await Zc.getBlob({path:e,params:ye._getSdkProperties()});Zs.setConnectorImage(t,URL.createObjectURL(r))},async _fetchCurrencyImage(t){let e=`${Zc.baseUrl}/public/getCurrencyImage/${t}`,r=await Zc.getBlob({path:e,params:ye._getSdkProperties()});Zs.setCurrencyImage(t,URL.createObjectURL(r))},async _fetchTokenImage(t){let e=`${Zc.baseUrl}/public/getTokenImage/${t}`,r=await Zc.getBlob({path:e,params:ye._getSdkProperties()});Zs.setTokenImage(t,URL.createObjectURL(r))},_filterWalletsByPlatform(t){return oe.isMobile()?t?.filter(r=>r.mobile_link||r.id===Cf.COINBASE.id?!0:z.state.activeChain===\\\"solana\\\"&&(r.id===Cf.SOLFLARE.id||r.id===Cf.PHANTOM.id)):t},async fetchProjectConfig(){return(await Zc.get({path:\\\"/appkit/v1/config\\\",params:ye._getSdkProperties()})).features},async fetchAllowedOrigins(){try{let{allowedOrigins:t}=await Zc.get({path:\\\"/projects/v1/origins\\\",params:ye._getSdkProperties()});return t}catch{return[]}},async fetchNetworkImages(){let e=z.getAllRequestedCaipNetworks()?.map(({assets:r})=>r?.imageId).filter(Boolean).filter(r=>!sr.getNetworkImageById(r));e&&await Promise.allSettled(e.map(r=>ye._fetchNetworkImage(r)))},async fetchConnectorImages(){let{connectors:t}=ie.state,e=t.map(({imageId:r})=>r).filter(Boolean);await Promise.allSettled(e.map(r=>ye._fetchConnectorImage(r)))},async fetchCurrencyImages(t=[]){await Promise.allSettled(t.map(e=>ye._fetchCurrencyImage(e)))},async fetchTokenImages(t=[]){await Promise.allSettled(t.map(e=>ye._fetchTokenImage(e)))},async fetchWallets(t){let e=t.exclude??[];ye._getSdkProperties().sv.startsWith(\\\"html-core-\\\")&&e.push(...Object.values(Cf).map(s=>s.id));let n=await Zc.get({path:\\\"/getWallets\\\",params:{...ye._getSdkProperties(),...t,page:String(t.page),entries:String(t.entries),include:t.include?.join(\\\",\\\"),exclude:e.join(\\\",\\\")}});return{data:ye._filterWalletsByPlatform(n?.data)||[],count:n?.count}},async fetchFeaturedWallets(){let{featuredWalletIds:t}=ee.state;if(t?.length){let e={...ye._getSdkProperties(),page:1,entries:t?.length??IGe,include:t},{data:r}=await ye.fetchWallets(e),n=[...r].sort((s,o)=>t.indexOf(s.id)-t.indexOf(o.id)),i=n.map(s=>s.image_id).filter(Boolean);await Promise.allSettled(i.map(s=>ye._fetchWalletImage(s))),Pt.featured=n,Pt.allFeatured=n}},async fetchRecommendedWallets(){try{Pt.isFetchingRecommendedWallets=!0;let{includeWalletIds:t,excludeWalletIds:e,featuredWalletIds:r}=ee.state,n=[...e??[],...r??[]].filter(Boolean),i=z.getRequestedCaipNetworkIds().join(\\\",\\\"),s={page:1,entries:IGe,include:t,exclude:n,chains:i},{data:o,count:a}=await ye.fetchWallets(s),c=Te.getRecentWallets(),l=o.map(f=>f.image_id).filter(Boolean),d=c.map(f=>f.image_id).filter(Boolean);await Promise.allSettled([...l,...d].map(f=>ye._fetchWalletImage(f))),Pt.recommended=o,Pt.allRecommended=o,Pt.count=a??0}catch{}finally{Pt.isFetchingRecommendedWallets=!1}},async fetchWalletsByPage({page:t}){let{includeWalletIds:e,excludeWalletIds:r,featuredWalletIds:n}=ee.state,i=z.getRequestedCaipNetworkIds().join(\\\",\\\"),s=[...Pt.recommended.map(({id:d})=>d),...r??[],...n??[]].filter(Boolean),o={page:t,entries:gUt,include:e,exclude:s,chains:i},{data:a,count:c}=await ye.fetchWallets(o),l=a.slice(0,yUt).map(d=>d.image_id).filter(Boolean);await Promise.allSettled(l.map(d=>ye._fetchWalletImage(d))),Pt.wallets=oe.uniqueBy([...Pt.wallets,...ye._filterOutExtensions(a)],\\\"id\\\").filter(d=>d.chains?.some(f=>i.includes(f))),Pt.count=c>Pt.count?c:Pt.count,Pt.page=t},async initializeExcludedWallets({ids:t}){let e={page:1,entries:t.length,include:t},{data:r}=await ye.fetchWallets(e);r&&r.forEach(n=>{Pt.excludedWallets.push({rdns:n.rdns,name:n.name})})},async searchWallet({search:t,badge:e}){let{includeWalletIds:r,excludeWalletIds:n}=ee.state,i=z.getRequestedCaipNetworkIds().join(\\\",\\\");Pt.search=[];let s={page:1,entries:100,search:t?.trim(),badge_type:e,include:r,exclude:n,chains:i},{data:o}=await ye.fetchWallets(s);Xe.sendEvent({type:\\\"track\\\",event:\\\"SEARCH_WALLET\\\",properties:{badge:e??\\\"\\\",search:t??\\\"\\\"}});let a=o.map(c=>c.image_id).filter(Boolean);await Promise.allSettled([...a.map(c=>ye._fetchWalletImage(c)),oe.wait(300)]),Pt.search=ye._filterOutExtensions(o)},initPromise(t,e){let r=Pt.promises[t];return r||(Pt.promises[t]=e())},prefetch({fetchConnectorImages:t=!0,fetchFeaturedWallets:e=!0,fetchRecommendedWallets:r=!0,fetchNetworkImages:n=!0}={}){let i=[t&&ye.initPromise(\\\"connectorImages\\\",ye.fetchConnectorImages),e&&ye.initPromise(\\\"featuredWallets\\\",ye.fetchFeaturedWallets),r&&ye.initPromise(\\\"recommendedWallets\\\",ye.fetchRecommendedWallets),n&&ye.initPromise(\\\"networkImages\\\",ye.fetchNetworkImages)].filter(Boolean);return Promise.allSettled(i)},prefetchAnalyticsConfig(){ee.state.features?.analytics&&ye.fetchAnalyticsConfig()},async fetchAnalyticsConfig(){try{let{isAnalyticsEnabled:t}=await Zc.get({path:\\\"/getAnalyticsConfig\\\",params:ye._getSdkProperties()});ee.setFeatures({analytics:t})}catch{ee.setFeatures({analytics:!1})}},filterByNamespaces(t){if(!t?.length){Pt.featured=Pt.allFeatured,Pt.recommended=Pt.allRecommended;return}let e=z.getRequestedCaipNetworkIds().join(\\\",\\\");Pt.featured=Pt.allFeatured.filter(r=>r.chains?.some(n=>e.includes(n))),Pt.recommended=Pt.allRecommended.filter(r=>r.chains?.some(n=>e.includes(n))),Pt.filteredWallets=Pt.wallets.filter(r=>r.chains?.some(n=>e.includes(n)))},clearFilterByNamespaces(){Pt.filteredWallets=[]},setFilterByNamespace(t){if(!t){Pt.featured=Pt.allFeatured,Pt.recommended=Pt.allRecommended;return}let e=z.getRequestedCaipNetworkIds().join(\\\",\\\");Pt.featured=Pt.allFeatured.filter(r=>r.chains?.some(n=>e.includes(n))),Pt.recommended=Pt.allRecommended.filter(r=>r.chains?.some(n=>e.includes(n))),Pt.filteredWallets=Pt.wallets.filter(r=>r.chains?.some(n=>e.includes(n)))}}});var on,bUt,de,Sf=x(()=>{u();Kn();xo();cc();lc();ea();ld();j2();Kc();on=ot({view:\\\"Connect\\\",history:[\\\"Connect\\\"],transactionStack:[]}),bUt={state:on,subscribeKey(t,e){return lr(on,t,e)},pushTransactionStack(t){on.transactionStack.push(t)},popTransactionStack(t){let e=on.transactionStack.pop();if(!e)return;let{onSuccess:r,onError:n,onCancel:i}=e;switch(t){case\\\"success\\\":r?.();break;case\\\"error\\\":n?.(),de.goBack();break;case\\\"cancel\\\":i?.(),de.goBack();break;default:}},push(t,e){t!==on.view&&(on.view=t,on.history.push(t),on.data=e)},reset(t,e){on.view=t,on.history=[t],on.data=e},replace(t,e){on.history.at(-1)===t||(on.view=t,on.history[on.history.length-1]=t,on.data=e)},goBack(){let t=z.state.activeCaipAddress,e=de.state.view===\\\"ConnectingFarcaster\\\",r=!t&&e;if(on.history.length>1){on.history.pop();let[n]=on.history.slice(-1);n&&(t&&n===\\\"Connect\\\"?on.view=\\\"Account\\\":on.view=n)}else Dt.close();on.data?.wallet&&(on.data.wallet=void 0),setTimeout(()=>{if(r){Ie.setFarcasterUrl(void 0,z.state.activeChain);let n=ie.getAuthConnector();n?.provider?.reload();let i=hh(ee.state);n?.provider?.syncDappData?.({metadata:i.metadata,sdkVersion:i.sdkVersion,projectId:i.projectId,sdkType:i.sdkType})}},100)},goBackToIndex(t){if(on.history.length>1){on.history=on.history.slice(0,t+1);let[e]=on.history.slice(-1);e&&(on.view=e)}},goBackOrCloseModal(){de.state.history.length>1?de.goBack():Dt.close()}},de=sn(bUt)});var A0,pue,ji,hue=x(()=>{u();Kn();Ri();cc();ld();A0=ot({themeMode:\\\"dark\\\",themeVariables:{},w3mThemeVariables:void 0}),pue={state:A0,subscribe(t){return Lr(A0,()=>t(A0))},setThemeMode(t){A0.themeMode=t;try{let e=ie.getAuthConnector();if(e){let r=pue.getSnapshot().themeVariables;e.provider.syncTheme({themeMode:t,themeVariables:r,w3mThemeVariables:cd(r,t)})}}catch{console.info(\\\"Unable to sync theme to auth connector\\\")}},setThemeVariables(t){A0.themeVariables={...A0.themeVariables,...t};try{let e=ie.getAuthConnector();if(e){let r=pue.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:r,w3mThemeVariables:cd(A0.themeVariables,A0.themeMode)})}}catch{console.info(\\\"Unable to sync theme to auth connector\\\")}},getSnapshot(){return hh(A0)}},ji=sn(pue)});var RGe,Or,wUt,ie,ld=x(()=>{u();Kn();xo();Ri();lue();_0();cc();g4();ea();Kc();Sf();hue();RGe={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0,cosmos:void 0},Or=ot({allConnectors:[],connectors:[],activeConnector:void 0,filterByNamespace:void 0,activeConnectorIds:{...RGe},filterByNamespaceMap:{eip155:!0,solana:!0,polkadot:!0,bip122:!0,cosmos:!0}}),wUt={state:Or,subscribe(t){return Lr(Or,()=>{t(Or)})},subscribeKey(t,e){return lr(Or,t,e)},initialize(t){t.forEach(e=>{let r=Te.getConnectedConnectorId(e);r&&ie.setConnectorId(r,e)})},setActiveConnector(t){t&&(Or.activeConnector=$l(t))},setConnectors(t){t.filter(i=>!Or.allConnectors.some(s=>s.id===i.id&&ie.getConnectorName(s.name)===ie.getConnectorName(i.name)&&s.chain===i.chain)).forEach(i=>{i.type!==\\\"MULTI_CHAIN\\\"&&Or.allConnectors.push($l(i))});let r=ie.getEnabledNamespaces(),n=ie.getEnabledConnectors(r);Or.connectors=ie.mergeMultiChainConnectors(n)},filterByNamespaces(t){Object.keys(Or.filterByNamespaceMap).forEach(e=>{Or.filterByNamespaceMap[e]=!1}),t.forEach(e=>{Or.filterByNamespaceMap[e]=!0}),ie.updateConnectorsForEnabledNamespaces()},filterByNamespace(t,e){Or.filterByNamespaceMap[t]=e,ie.updateConnectorsForEnabledNamespaces()},updateConnectorsForEnabledNamespaces(){let t=ie.getEnabledNamespaces(),e=ie.getEnabledConnectors(t),r=ie.areAllNamespacesEnabled();Or.connectors=ie.mergeMultiChainConnectors(e),r?ye.clearFilterByNamespaces():ye.filterByNamespaces(t)},getEnabledNamespaces(){return Object.entries(Or.filterByNamespaceMap).filter(([t,e])=>e).map(([t])=>t)},getEnabledConnectors(t){return Or.allConnectors.filter(e=>t.includes(e.chain))},areAllNamespacesEnabled(){return Object.values(Or.filterByNamespaceMap).every(t=>t)},mergeMultiChainConnectors(t){let e=ie.generateConnectorMapByName(t),r=[];return e.forEach(n=>{let i=n[0],s=i?.id===_e.CONNECTOR_ID.AUTH;n.length>1&&i?r.push({name:i.name,imageUrl:i.imageUrl,imageId:i.imageId,connectors:[...n],type:s?\\\"AUTH\\\":\\\"MULTI_CHAIN\\\",chain:\\\"eip155\\\",id:i?.id||\\\"\\\"}):i&&r.push(i)}),r},generateConnectorMapByName(t){let e=new Map;return t.forEach(r=>{let{name:n}=r,i=ie.getConnectorName(n);if(!i)return;let s=e.get(i)||[];s.find(a=>a.chain===r.chain)||s.push(r),e.set(i,s)}),e},getConnectorName(t){return t&&({\\\"Trust Wallet\\\":\\\"Trust\\\"}[t]||t)},getUniqueConnectorsByName(t){let e=[];return t.forEach(r=>{e.find(n=>n.chain===r.chain)||e.push(r)}),e},addConnector(t){if(t.id===_e.CONNECTOR_ID.AUTH){let e=t,r=hh(ee.state),n=ji.getSnapshot().themeMode,i=ji.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:r.metadata,sdkVersion:r.sdkVersion,projectId:r.projectId,sdkType:r.sdkType}),e?.provider?.syncTheme({themeMode:n,themeVariables:i,w3mThemeVariables:cd(i,n)}),ie.setConnectors([t])}else ie.setConnectors([t])},getAuthConnector(t){let e=t||z.state.activeChain,r=Or.connectors.find(n=>n.id===_e.CONNECTOR_ID.AUTH);if(r)return r?.connectors?.length?r.connectors.find(i=>i.chain===e):r},getAnnouncedConnectorRdns(){return Or.connectors.filter(t=>t.type===\\\"ANNOUNCED\\\").map(t=>t.info?.rdns)},getConnectorById(t){return Or.allConnectors.find(e=>e.id===t)},getConnector(t,e){return Or.allConnectors.filter(n=>n.chain===z.state.activeChain).find(n=>n.explorerId===t||n.info?.rdns===e)},syncIfAuthConnector(t){if(t.id!==\\\"ID_AUTH\\\")return;let e=t,r=hh(ee.state),n=ji.getSnapshot().themeMode,i=ji.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:r.metadata,sdkVersion:r.sdkVersion,sdkType:r.sdkType,projectId:r.projectId}),e.provider.syncTheme({themeMode:n,themeVariables:i,w3mThemeVariables:cd(i,n)})},getConnectorsByNamespace(t){let e=Or.allConnectors.filter(r=>r.chain===t);return ie.mergeMultiChainConnectors(e)},selectWalletConnector(t){let e=ie.getConnector(t.id,t.rdns),r=z.state.activeChain;TGe.handleMobileDeeplinkRedirect(e?.explorerId||t.id,r),e?de.push(\\\"ConnectingExternal\\\",{connector:e}):de.push(\\\"ConnectingWalletConnect\\\",{wallet:t})},getConnectors(t){return t?ie.getConnectorsByNamespace(t):ie.mergeMultiChainConnectors(Or.allConnectors)},setFilterByNamespace(t){Or.filterByNamespace=t,Or.connectors=ie.getConnectors(t),ye.setFilterByNamespace(t)},setConnectorId(t,e){t&&(Or.activeConnectorIds={...Or.activeConnectorIds,[e]:t},Te.setConnectedConnectorId(e,t))},removeConnectorId(t){Or.activeConnectorIds={...Or.activeConnectorIds,[t]:void 0},Te.deleteConnectedConnectorId(t)},getConnectorId(t){if(t)return Or.activeConnectorIds[t]},isConnected(t){return t?!!Or.activeConnectorIds[t]:Object.values(Or.activeConnectorIds).some(e=>!!e)},resetConnectorIds(){Or.activeConnectorIds={...RGe}}},ie=sn(wUt)});var vUt,apn,cpn,lpn,T0,PGe=x(()=>{u();vUt=\\\"https://secure.walletconnect.org/sdk\\\",apn=(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_SECURE_SITE_SDK_URL:void 0)||vUt,cpn=(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_DEFAULT_LOG_LEVEL:void 0)||\\\"error\\\",lpn=(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_SECURE_SITE_SDK_VERSION:void 0)||\\\"4\\\",T0={SAFE_RPC_METHODS:[\\\"eth_accounts\\\",\\\"eth_blockNumber\\\",\\\"eth_call\\\",\\\"eth_chainId\\\",\\\"eth_estimateGas\\\",\\\"eth_feeHistory\\\",\\\"eth_gasPrice\\\",\\\"eth_getAccount\\\",\\\"eth_getBalance\\\",\\\"eth_getBlockByHash\\\",\\\"eth_getBlockByNumber\\\",\\\"eth_getBlockReceipts\\\",\\\"eth_getBlockTransactionCountByHash\\\",\\\"eth_getBlockTransactionCountByNumber\\\",\\\"eth_getCode\\\",\\\"eth_getFilterChanges\\\",\\\"eth_getFilterLogs\\\",\\\"eth_getLogs\\\",\\\"eth_getProof\\\",\\\"eth_getStorageAt\\\",\\\"eth_getTransactionByBlockHashAndIndex\\\",\\\"eth_getTransactionByBlockNumberAndIndex\\\",\\\"eth_getTransactionByHash\\\",\\\"eth_getTransactionCount\\\",\\\"eth_getTransactionReceipt\\\",\\\"eth_getUncleCountByBlockHash\\\",\\\"eth_getUncleCountByBlockNumber\\\",\\\"eth_maxPriorityFeePerGas\\\",\\\"eth_newBlockFilter\\\",\\\"eth_newFilter\\\",\\\"eth_newPendingTransactionFilter\\\",\\\"eth_sendRawTransaction\\\",\\\"eth_syncing\\\",\\\"eth_uninstallFilter\\\",\\\"wallet_getCapabilities\\\",\\\"wallet_getCallsStatus\\\",\\\"eth_getUserOperationReceipt\\\",\\\"eth_estimateUserOperationGas\\\",\\\"eth_getUserOperationByHash\\\",\\\"eth_supportedEntryPoints\\\",\\\"wallet_getAssets\\\"],NOT_SAFE_RPC_METHODS:[\\\"personal_sign\\\",\\\"eth_signTypedData_v4\\\",\\\"eth_sendTransaction\\\",\\\"solana_signMessage\\\",\\\"solana_signTransaction\\\",\\\"solana_signAllTransactions\\\",\\\"solana_signAndSendTransaction\\\",\\\"wallet_sendCalls\\\",\\\"wallet_grantPermissions\\\",\\\"wallet_revokePermissions\\\",\\\"eth_sendUserOperation\\\"],GET_CHAIN_ID:\\\"eth_chainId\\\",RPC_METHOD_NOT_ALLOWED_MESSAGE:\\\"Requested RPC call is not allowed\\\",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:\\\"Action not allowed\\\",ACCOUNT_TYPES:{EOA:\\\"eoa\\\",SMART_ACCOUNT:\\\"smartAccount\\\"}}});var xz=x(()=>{u();PGe()});var H2,Qs,xUt,wr,q2=x(()=>{u();Kn();xo();Gc();H2=Object.freeze({message:\\\"\\\",variant:\\\"success\\\",svg:void 0,open:!1,autoClose:!0}),Qs=ot({...H2}),xUt={state:Qs,subscribeKey(t,e){return lr(Qs,t,e)},showLoading(t,e={}){this._showMessage({message:t,variant:\\\"loading\\\",...e})},showSuccess(t){this._showMessage({message:t,variant:\\\"success\\\"})},showSvg(t,e){this._showMessage({message:t,svg:e})},showError(t){let e=oe.parseError(t);this._showMessage({message:e,variant:\\\"error\\\"})},hide(){Qs.message=H2.message,Qs.variant=H2.variant,Qs.svg=H2.svg,Qs.open=H2.open,Qs.autoClose=H2.autoClose},_showMessage({message:t,svg:e,variant:r=\\\"success\\\",autoClose:n=H2.autoClose}){Qs.open?(Qs.open=!1,setTimeout(()=>{Qs.message=t,Qs.variant=r,Qs.svg=e,Qs.open=!0,Qs.autoClose=n},150)):(Qs.message=t,Qs.variant=r,Qs.svg=e,Qs.open=!0,Qs.autoClose=n)}},wr=xUt});var Bn,EUt,y4,OGe=x(()=>{u();Kn();xz();cc();lc();z2();ea();S0();Kc();q2();Bn=ot({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),EUt={state:Bn,subscribe(t){return Lr(Bn,()=>t(Bn))},setLastNetworkInView(t){Bn.lastNetworkInView=t},async fetchTransactions(t,e){if(!t)throw new Error(\\\"Transactions can't be fetched without an accountAddress\\\");Bn.loading=!0;try{let r=await Qe.fetchTransactions({account:t,cursor:Bn.next,onramp:e,cache:e===\\\"coinbase\\\"?\\\"no-cache\\\":void 0,chainId:z.state.activeCaipNetwork?.caipNetworkId}),n=y4.filterSpamTransactions(r.data),i=y4.filterByConnectedChain(n),s=[...Bn.transactions,...i];Bn.loading=!1,e===\\\"coinbase\\\"?Bn.coinbaseTransactions=y4.groupTransactionsByYearAndMonth(Bn.coinbaseTransactions,r.data):(Bn.transactions=s,Bn.transactionsByYear=y4.groupTransactionsByYearAndMonth(Bn.transactionsByYear,i)),Bn.empty=s.length===0,Bn.next=r.next?r.next:void 0}catch{let n=z.state.activeChain;Xe.sendEvent({type:\\\"track\\\",event:\\\"ERROR_FETCH_TRANSACTIONS\\\",properties:{address:t,projectId:ee.state.projectId,cursor:Bn.next,isSmartAccount:Ie.state.preferredAccountTypes?.[n]===T0.ACCOUNT_TYPES.SMART_ACCOUNT}}),wr.showError(\\\"Failed to fetch transactions\\\"),Bn.loading=!1,Bn.empty=!0,Bn.next=void 0}},groupTransactionsByYearAndMonth(t={},e=[]){let r=t;return e.forEach(n=>{let i=new Date(n.metadata.minedAt).getFullYear(),s=new Date(n.metadata.minedAt).getMonth(),o=r[i]??{},c=(o[s]??[]).filter(l=>l.id!==n.id);r[i]={...o,[s]:[...c,n].sort((l,d)=>new Date(d.metadata.minedAt).getTime()-new Date(l.metadata.minedAt).getTime())}}),r},filterSpamTransactions(t){return t.filter(e=>!e.transfers.every(n=>n.nft_info?.flags.is_spam===!0))},filterByConnectedChain(t){let e=z.state.activeCaipNetwork?.caipNetworkId;return t.filter(n=>n.metadata.chain===e)},clearCursor(){Bn.next=void 0},resetTransactions(){Bn.transactions=[],Bn.transactionsByYear={},Bn.lastNetworkInView=void 0,Bn.loading=!1,Bn.empty=!1,Bn.next=void 0}},y4=sn(EUt,\\\"API_ERROR\\\")});var Zn,$2,_Ut,me,D1=x(()=>{u();Kn();xo();Gc();_0();cc();lc();ea();ld();S0();j2();Sf();OGe();Zn=ot({connections:new Map,wcError:!1,buffering:!1,status:\\\"disconnected\\\"}),_Ut={state:Zn,subscribeKey(t,e){return lr(Zn,t,e)},_getClient(){return Zn._client},setClient(t){Zn._client=$l(t)},async connectWalletConnect(){if(oe.isTelegram()||oe.isSafari()&&oe.isIos()){if($2){await $2,$2=void 0;return}if(!oe.isPairingExpired(Zn?.wcPairingExpiry)){let t=Zn.wcUri;Zn.wcUri=t;return}$2=me._getClient()?.connectWalletConnect?.().catch(()=>{}),me.state.status=\\\"connecting\\\",await $2,$2=void 0,Zn.wcPairingExpiry=void 0,me.state.status=\\\"connected\\\"}else await me._getClient()?.connectWalletConnect?.()},async connectExternal(t,e,r=!0){await me._getClient()?.connectExternal?.(t),r&&z.setActiveNamespace(e)},async reconnectExternal(t){await me._getClient()?.reconnectExternal?.(t);let e=t.chain||z.state.activeChain;e&&ie.setConnectorId(t.id,e)},async setPreferredAccountType(t,e){Dt.setLoading(!0,z.state.activeChain);let r=ie.getAuthConnector();r&&(Ie.setPreferredAccountType(t,e),await r.provider.setPreferredAccount(t),Te.setPreferredAccountTypes(Ie.state.preferredAccountTypes??{[e]:t}),await me.reconnectExternal(r),Dt.setLoading(!1,z.state.activeChain),Xe.sendEvent({type:\\\"track\\\",event:\\\"SET_PREFERRED_ACCOUNT_TYPE\\\",properties:{accountType:t,network:z.state.activeCaipNetwork?.caipNetworkId||\\\"\\\"}}))},async signMessage(t){return me._getClient()?.signMessage(t)},parseUnits(t,e){return me._getClient()?.parseUnits(t,e)},formatUnits(t,e){return me._getClient()?.formatUnits(t,e)},async sendTransaction(t){return me._getClient()?.sendTransaction(t)},async getCapabilities(t){return me._getClient()?.getCapabilities(t)},async grantPermissions(t){return me._getClient()?.grantPermissions(t)},async walletGetAssets(t){return me._getClient()?.walletGetAssets(t)??{}},async estimateGas(t){return me._getClient()?.estimateGas(t)},async writeContract(t){return me._getClient()?.writeContract(t)},async getEnsAddress(t){return me._getClient()?.getEnsAddress(t)},async getEnsAvatar(t){return me._getClient()?.getEnsAvatar(t)},checkInstalled(t){return me._getClient()?.checkInstalled?.(t)||!1},resetWcConnection(){Zn.wcUri=void 0,Zn.wcPairingExpiry=void 0,Zn.wcLinking=void 0,Zn.recentWallet=void 0,Zn.status=\\\"disconnected\\\",y4.resetTransactions(),Te.deleteWalletConnectDeepLink()},resetUri(){Zn.wcUri=void 0,Zn.wcPairingExpiry=void 0,$2=void 0},finalizeWcConnection(){let{wcLinking:t,recentWallet:e}=me.state;t&&Te.setWalletConnectDeepLink(t),e&&Te.setAppKitRecent(e),Xe.sendEvent({type:\\\"track\\\",event:\\\"CONNECT_SUCCESS\\\",properties:{method:t?\\\"mobile\\\":\\\"qrcode\\\",name:de.state.data?.wallet?.name||\\\"Unknown\\\"}})},setWcBasic(t){Zn.wcBasic=t},setUri(t){Zn.wcUri=t,Zn.wcPairingExpiry=oe.getPairingExpiry()},setWcLinking(t){Zn.wcLinking=t},setWcError(t){Zn.wcError=t,Zn.buffering=!1},setRecentWallet(t){Zn.recentWallet=t},setBuffering(t){Zn.buffering=t},setStatus(t){Zn.status=t},async disconnect(t){try{await me._getClient()?.disconnect(t)}catch(e){throw new m4(\\\"Failed to disconnect\\\",\\\"INTERNAL_SDK_ERROR\\\",e)}},setConnections(t,e){Zn.connections.set(e,t)},switchAccount({connection:t,address:e,namespace:r}){if(ie.state.activeConnectorIds[r]===t.connectorId){let s=z.state.activeCaipNetwork;if(s){let o=`${r}:${s.id}:${e}`;Ie.setCaipAddress(o,r)}else console.warn(`No current network found for namespace \\\"${r}\\\"`)}else{let s=ie.getConnector(t.connectorId);s?me.connectExternal(s,r):console.warn(`No connector found for namespace \\\"${r}\\\"`)}}},me=sn(_Ut)});var b4,ud,Ez=x(()=>{u();Kn();xo();b4=ot({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0,initialized:!1}),ud={state:b4,subscribe(t){return Lr(b4,()=>t(b4))},subscribeOpen(t){return lr(b4,\\\"open\\\",t)},set(t){Object.assign(b4,{...b4,...t})}}});var _z,NGe=x(()=>{u();un();_z={createBalance(t,e){let r={name:t.metadata.name||\\\"\\\",symbol:t.metadata.symbol||\\\"\\\",decimals:t.metadata.decimals||0,value:t.metadata.value||0,price:t.metadata.price||0,iconUrl:t.metadata.iconUrl||\\\"\\\"};return{name:r.name,symbol:r.symbol,chainId:e,address:t.address===\\\"native\\\"?void 0:this.convertAddressToCAIP10Address(t.address,e),value:r.value,price:r.price,quantity:{decimals:r.decimals.toString(),numeric:this.convertHexToBalance({hex:t.balance,decimals:r.decimals})},iconUrl:r.iconUrl}},convertHexToBalance({hex:t,decimals:e}){return cm(BigInt(t),e)},convertAddressToCAIP10Address(t,e){return`${e}:${t}`},createCAIP2ChainId(t,e){return`${e}:${parseInt(t,16)}`},getChainIdHexFromCAIP2ChainId(t){let e=t.split(\\\":\\\");if(e.length<2||!e[1])return\\\"0x0\\\";let r=e[1],n=parseInt(r,10);return isNaN(n)?\\\"0x0\\\":`0x${n.toString(16)}`},isWalletGetAssetsResponse(t){return typeof t!=\\\"object\\\"||t===null?!1:Object.values(t).every(e=>Array.isArray(e)&&e.every(r=>this.isValidAsset(r)))},isValidAsset(t){return typeof t==\\\"object\\\"&&t!==null&&typeof t.address==\\\"string\\\"&&typeof t.balance==\\\"string\\\"&&(t.type===\\\"ERC20\\\"||t.type===\\\"NATIVE\\\")&&typeof t.metadata==\\\"object\\\"&&t.metadata!==null&&typeof t.metadata.name==\\\"string\\\"&&typeof t.metadata.symbol==\\\"string\\\"&&typeof t.metadata.decimals==\\\"number\\\"&&typeof t.metadata.price==\\\"number\\\"&&typeof t.metadata.iconUrl==\\\"string\\\"}}});var mue,kGe=x(()=>{u();lc();z2();ea();D1();NGe();mue={async getMyTokensWithBalance(t){let e=Ie.state.address,r=z.state.activeCaipNetwork;if(!e||!r)return[];if(r.chainNamespace===\\\"eip155\\\"){let i=await this.getEIP155Balances(e,r);if(i)return this.filterLowQualityTokens(i)}let n=await Qe.getBalance(e,r.caipNetworkId,t);return this.filterLowQualityTokens(n.balances)},async getEIP155Balances(t,e){try{let r=_z.getChainIdHexFromCAIP2ChainId(e.caipNetworkId);if(!(await me.getCapabilities(t))?.[r]?.assetDiscovery?.supported)return null;let i=await me.walletGetAssets({account:t,chainFilter:[r]});return _z.isWalletGetAssetsResponse(i)?(i[r]||[]).map(o=>_z.createBalance(o,e.caipNetworkId)):null}catch{return null}},filterLowQualityTokens(t){return t.filter(e=>e.quantity.decimals!==\\\"0\\\")},mapBalancesToSwapTokens(t){return t?.map(e=>({...e,address:e?.address?e.address:z.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]}}});var Qr,CUt,ur,gue=x(()=>{u();Kn();xo();Ri();Ri();xz();mh();Gc();kGe();cc();lc();ea();D1();S0();Sf();q2();Qr=ot({tokenBalances:[],loading:!1}),CUt={state:Qr,subscribe(t){return Lr(Qr,()=>t(Qr))},subscribeKey(t,e){return lr(Qr,t,e)},setToken(t){t&&(Qr.token=$l(t))},setTokenAmount(t){Qr.sendTokenAmount=t},setReceiverAddress(t){Qr.receiverAddress=t},setReceiverProfileImageUrl(t){Qr.receiverProfileImageUrl=t},setReceiverProfileName(t){Qr.receiverProfileName=t},setNetworkBalanceInUsd(t){Qr.networkBalanceInUSD=t},setLoading(t){Qr.loading=t},async sendToken(){try{switch(ur.setLoading(!0),z.state.activeCaipNetwork?.chainNamespace){case\\\"eip155\\\":await ur.sendEvmToken();return;case\\\"solana\\\":await ur.sendSolanaToken();return;default:throw new Error(\\\"Unsupported chain\\\")}}finally{ur.setLoading(!1)}},async sendEvmToken(){let t=z.state.activeChain,e=Ie.state.preferredAccountTypes?.[t];if(!ur.state.sendTokenAmount||!ur.state.receiverAddress)throw new Error(\\\"An amount and receiver address are required\\\");if(!ur.state.token)throw new Error(\\\"A token is required\\\");ur.state.token?.address?(Xe.sendEvent({type:\\\"track\\\",event:\\\"SEND_INITIATED\\\",properties:{isSmartAccount:e===T0.ACCOUNT_TYPES.SMART_ACCOUNT,token:ur.state.token.address,amount:ur.state.sendTokenAmount,network:z.state.activeCaipNetwork?.caipNetworkId||\\\"\\\"}}),await ur.sendERC20Token({receiverAddress:ur.state.receiverAddress,tokenAddress:ur.state.token.address,sendTokenAmount:ur.state.sendTokenAmount,decimals:ur.state.token.quantity.decimals})):(Xe.sendEvent({type:\\\"track\\\",event:\\\"SEND_INITIATED\\\",properties:{isSmartAccount:e===T0.ACCOUNT_TYPES.SMART_ACCOUNT,token:ur.state.token.symbol||\\\"\\\",amount:ur.state.sendTokenAmount,network:z.state.activeCaipNetwork?.caipNetworkId||\\\"\\\"}}),await ur.sendNativeToken({receiverAddress:ur.state.receiverAddress,sendTokenAmount:ur.state.sendTokenAmount,decimals:ur.state.token.quantity.decimals}))},async fetchTokenBalance(t){Qr.loading=!0;let e=z.state.activeCaipNetwork?.caipNetworkId,r=z.state.activeCaipNetwork?.chainNamespace,n=z.state.activeCaipAddress,i=n?oe.getPlainAddress(n):void 0;if(Qr.lastRetry&&!oe.isAllowedRetry(Qr.lastRetry,30*Rt.ONE_SEC_MS))return Qr.loading=!1,[];try{if(i&&e&&r){let s=await mue.getMyTokensWithBalance();return Qr.tokenBalances=s,Qr.lastRetry=void 0,s}}catch(s){Qr.lastRetry=Date.now(),t?.(s),wr.showError(\\\"Token Balance Unavailable\\\")}finally{Qr.loading=!1}return[]},fetchNetworkBalance(){if(Qr.tokenBalances.length===0)return;let t=mue.mapBalancesToSwapTokens(Qr.tokenBalances);if(!t)return;let e=t.find(r=>r.address===z.getActiveNetworkTokenAddress());e&&(Qr.networkBalanceInUSD=e?rue.multiply(e.quantity.numeric,e.price).toString():\\\"0\\\")},async sendNativeToken(t){de.pushTransactionStack({});let e=t.receiverAddress,r=Ie.state.address,n=me.parseUnits(t.sendTokenAmount.toString(),Number(t.decimals));await me.sendTransaction({chainNamespace:\\\"eip155\\\",to:e,address:r,data:\\\"0x\\\",value:n??BigInt(0)}),Xe.sendEvent({type:\\\"track\\\",event:\\\"SEND_SUCCESS\\\",properties:{isSmartAccount:Ie.state.preferredAccountTypes?.eip155===T0.ACCOUNT_TYPES.SMART_ACCOUNT,token:ur.state.token?.symbol||\\\"\\\",amount:t.sendTokenAmount,network:z.state.activeCaipNetwork?.caipNetworkId||\\\"\\\"}}),me._getClient()?.updateBalance(\\\"eip155\\\"),ur.resetSend()},async sendERC20Token(t){de.pushTransactionStack({onSuccess(){de.replace(\\\"Account\\\")}});let e=me.parseUnits(t.sendTokenAmount.toString(),Number(t.decimals));if(Ie.state.address&&t.sendTokenAmount&&t.receiverAddress&&t.tokenAddress){let r=oe.getPlainAddress(t.tokenAddress);await me.writeContract({fromAddress:Ie.state.address,tokenAddress:r,args:[t.receiverAddress,e??BigInt(0)],method:\\\"transfer\\\",abi:nue.getERC20Abi(r),chainNamespace:\\\"eip155\\\"}),ur.resetSend()}},async sendSolanaToken(){if(!ur.state.sendTokenAmount||!ur.state.receiverAddress)throw new Error(\\\"An amount and receiver address are required\\\");de.pushTransactionStack({onSuccess(){de.replace(\\\"Account\\\")}}),await me.sendTransaction({chainNamespace:\\\"solana\\\",to:ur.state.receiverAddress,value:ur.state.sendTokenAmount}),me._getClient()?.updateBalance(\\\"solana\\\"),ur.resetSend()},resetSend(){Qr.token=void 0,Qr.sendTokenAmount=void 0,Qr.receiverAddress=void 0,Qr.receiverProfileImageUrl=void 0,Qr.receiverProfileName=void 0,Qr.loading=!1,Qr.tokenBalances=[]}},ur=sn(CUt)});var yue,Cz,Ne,SUt,z,ea=x(()=>{u();Kn();xo();Ri();mh();Gc();_0();cc();lc();D1();ld();S0();j2();Kc();Ez();Sf();gue();yue={currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[],user:void 0},Cz={caipNetwork:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]},Ne=ot({chains:vGe(),activeCaipAddress:void 0,activeChain:void 0,activeCaipNetwork:void 0,noAdapters:!1,universalAdapter:{networkControllerClient:void 0,connectionControllerClient:void 0},isSwitchingNamespace:!1}),SUt={state:Ne,subscribe(t){return Lr(Ne,()=>{t(Ne)})},subscribeKey(t,e){return lr(Ne,t,e)},subscribeChainProp(t,e,r){let n;return Lr(Ne.chains,()=>{let i=r||Ne.activeChain;if(i){let s=Ne.chains.get(i)?.[t];n!==s&&(n=s,e(s))}})},initialize(t,e,r){let{chainId:n,namespace:i}=Te.getActiveNetworkProps(),s=e?.find(d=>d.id.toString()===n?.toString()),a=t.find(d=>d?.namespace===i)||t?.[0],c=t.map(d=>d.namespace).filter(d=>d!==void 0),l=ee.state.enableEmbedded?new Set([...c]):new Set([...e?.map(d=>d.chainNamespace)??[]]);(t?.length===0||!a)&&(Ne.noAdapters=!0),Ne.noAdapters||(Ne.activeChain=a?.namespace,Ne.activeCaipNetwork=s,z.setChainNetworkData(a?.namespace,{caipNetwork:s}),Ne.activeChain&&ud.set({activeChain:a?.namespace})),l.forEach(d=>{let f=e?.filter(p=>p.chainNamespace===d);z.state.chains.set(d,{namespace:d,networkState:ot({...Cz,caipNetwork:f?.[0]}),accountState:ot(yue),caipNetworks:f??[],...r}),z.setRequestedCaipNetworks(f??[],d)})},removeAdapter(t){if(Ne.activeChain===t){let e=Array.from(Ne.chains.entries()).find(([r])=>r!==t);if(e){let r=e[1]?.caipNetworks?.[0];r&&z.setActiveCaipNetwork(r)}}Ne.chains.delete(t)},addAdapter(t,{networkControllerClient:e,connectionControllerClient:r},n){Ne.chains.set(t.namespace,{namespace:t.namespace,networkState:{...Cz,caipNetwork:n[0]},accountState:yue,caipNetworks:n,connectionControllerClient:r,networkControllerClient:e}),z.setRequestedCaipNetworks(n?.filter(i=>i.chainNamespace===t.namespace)??[],t.namespace)},addNetwork(t){let e=Ne.chains.get(t.chainNamespace);if(e){let r=[...e.caipNetworks||[]];e.caipNetworks?.find(n=>n.id===t.id)||r.push(t),Ne.chains.set(t.chainNamespace,{...e,caipNetworks:r}),z.setRequestedCaipNetworks(r,t.chainNamespace),ie.filterByNamespace(t.chainNamespace,!0)}},removeNetwork(t,e){let r=Ne.chains.get(t);if(r){let n=Ne.activeCaipNetwork?.id===e,i=[...r.caipNetworks?.filter(s=>s.id!==e)||[]];n&&r?.caipNetworks?.[0]&&z.setActiveCaipNetwork(r.caipNetworks[0]),Ne.chains.set(t,{...r,caipNetworks:i}),z.setRequestedCaipNetworks(i||[],t),i.length===0&&ie.filterByNamespace(t,!1)}},setAdapterNetworkState(t,e){let r=Ne.chains.get(t);r&&(r.networkState={...r.networkState||Cz,...e},Ne.chains.set(t,r))},setChainAccountData(t,e,r=!0){if(!t)throw new Error(\\\"Chain is required to update chain account data\\\");let n=Ne.chains.get(t);if(n){let i={...n.accountState||yue,...e};Ne.chains.set(t,{...n,accountState:i}),(Ne.chains.size===1||Ne.activeChain===t)&&(e.caipAddress&&(Ne.activeCaipAddress=e.caipAddress),Ie.replaceState(i))}},setChainNetworkData(t,e){if(!t)return;let r=Ne.chains.get(t);if(r){let n={...r.networkState||Cz,...e};Ne.chains.set(t,{...r,networkState:n})}},setAccountProp(t,e,r,n=!0){z.setChainAccountData(r,{[t]:e},n),t===\\\"status\\\"&&e===\\\"disconnected\\\"&&r&&ie.removeConnectorId(r)},setActiveNamespace(t){Ne.activeChain=t;let e=t?Ne.chains.get(t):void 0,r=e?.networkState?.caipNetwork;r?.id&&t&&(Ne.activeCaipAddress=e?.accountState?.caipAddress,Ne.activeCaipNetwork=r,z.setChainNetworkData(t,{caipNetwork:r}),Te.setActiveCaipNetworkId(r?.caipNetworkId),ud.set({activeChain:t,selectedNetworkId:r?.caipNetworkId}))},setActiveCaipNetwork(t){if(!t)return;Ne.activeChain!==t.chainNamespace&&z.setIsSwitchingNamespace(!0);let e=Ne.chains.get(t.chainNamespace);Ne.activeChain=t.chainNamespace,Ne.activeCaipNetwork=t,z.setChainNetworkData(t.chainNamespace,{caipNetwork:t}),e?.accountState?.address?Ne.activeCaipAddress=`${t.chainNamespace}:${t.id}:${e?.accountState?.address}`:Ne.activeCaipAddress=void 0,z.setAccountProp(\\\"caipAddress\\\",Ne.activeCaipAddress,t.chainNamespace),e&&Ie.replaceState(e.accountState),ur.resetSend(),ud.set({activeChain:Ne.activeChain,selectedNetworkId:Ne.activeCaipNetwork?.caipNetworkId}),Te.setActiveCaipNetworkId(t.caipNetworkId),!z.checkIfSupportedNetwork(t.chainNamespace)&&ee.state.enableNetworkSwitch&&!ee.state.allowUnsupportedChain&&!me.state.wcBasic&&z.showUnsupportedChainUI()},addCaipNetwork(t){if(!t)return;let e=Ne.chains.get(t.chainNamespace);e&&e?.caipNetworks?.push(t)},async switchActiveNamespace(t){if(!t)return;let e=t!==z.state.activeChain,r=z.getNetworkData(t)?.caipNetwork,n=z.getCaipNetworkByNamespace(t,r?.id);e&&n&&await z.switchActiveNetwork(n)},async switchActiveNetwork(t){let r=!z.state.chains.get(z.state.activeChain)?.caipNetworks?.some(i=>i.id===Ne.activeCaipNetwork?.id),n=z.getNetworkControllerClient(t.chainNamespace);if(n){try{await n.switchCaipNetwork(t),r&&Dt.close()}catch{de.goBack()}Xe.sendEvent({type:\\\"track\\\",event:\\\"SWITCH_NETWORK\\\",properties:{network:t.caipNetworkId}})}},getNetworkControllerClient(t){let e=t||Ne.activeChain,r=Ne.chains.get(e);if(!r)throw new Error(\\\"Chain adapter not found\\\");if(!r.networkControllerClient)throw new Error(\\\"NetworkController client not set\\\");return r.networkControllerClient},getConnectionControllerClient(t){let e=t||Ne.activeChain;if(!e)throw new Error(\\\"Chain is required to get connection controller client\\\");let r=Ne.chains.get(e);if(!r?.connectionControllerClient)throw new Error(\\\"ConnectionController client not set\\\");return r.connectionControllerClient},getAccountProp(t,e){let r=Ne.activeChain;if(e&&(r=e),!r)return;let n=Ne.chains.get(r)?.accountState;if(n)return n[t]},getNetworkProp(t,e){let r=Ne.chains.get(e)?.networkState;if(r)return r[t]},getRequestedCaipNetworks(t){let e=Ne.chains.get(t),{approvedCaipNetworkIds:r=[],requestedCaipNetworks:n=[]}=e?.networkState||{};return oe.sortRequestedNetworks(r,n)},getAllRequestedCaipNetworks(){let t=[];return Ne.chains.forEach(e=>{let r=z.getRequestedCaipNetworks(e.namespace);t.push(...r)}),t},setRequestedCaipNetworks(t,e){z.setAdapterNetworkState(e,{requestedCaipNetworks:t});let n=z.getAllRequestedCaipNetworks().map(s=>s.chainNamespace),i=Array.from(new Set(n));ie.filterByNamespaces(i)},getAllApprovedCaipNetworkIds(){let t=[];return Ne.chains.forEach(e=>{let r=z.getApprovedCaipNetworkIds(e.namespace);t.push(...r)}),t},getActiveCaipNetwork(){return Ne.activeCaipNetwork},getActiveCaipAddress(){return Ne.activeCaipAddress},getApprovedCaipNetworkIds(t){return Ne.chains.get(t)?.networkState?.approvedCaipNetworkIds||[]},async setApprovedCaipNetworksData(t){let r=await z.getNetworkControllerClient()?.getApprovedCaipNetworksData();z.setAdapterNetworkState(t,{approvedCaipNetworkIds:r?.approvedCaipNetworkIds,supportsAllNetworks:r?.supportsAllNetworks})},checkIfSupportedNetwork(t,e){let r=e||Ne.activeCaipNetwork,n=z.getRequestedCaipNetworks(t);return n.length?n?.some(i=>i.id===r?.id):!0},checkIfSupportedChainId(t){return Ne.activeChain?z.getRequestedCaipNetworks(Ne.activeChain)?.some(r=>r.id===t):!0},setSmartAccountEnabledNetworks(t,e){z.setAdapterNetworkState(e,{smartAccountEnabledNetworks:t})},checkIfSmartAccountEnabled(){let t=b7.caipNetworkIdToNumber(Ne.activeCaipNetwork?.caipNetworkId),e=Ne.activeChain;return!e||!t?!1:!!z.getNetworkProp(\\\"smartAccountEnabledNetworks\\\",e)?.includes(Number(t))},getActiveNetworkTokenAddress(){let t=Ne.activeCaipNetwork?.chainNamespace||\\\"eip155\\\",e=Ne.activeCaipNetwork?.id||1,r=Rt.NATIVE_TOKEN_ADDRESS[t];return`${t}:${e}:${r}`},showUnsupportedChainUI(){Dt.open({view:\\\"UnsupportedChain\\\"})},checkIfNamesSupported(){let t=Ne.activeCaipNetwork;return!!(t?.chainNamespace&&Rt.NAMES_SUPPORTED_CHAIN_NAMESPACES.includes(t.chainNamespace))},resetNetwork(t){z.setAdapterNetworkState(t,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},resetAccount(t){let e=t;if(!e)throw new Error(\\\"Chain is required to set account prop\\\");Ne.activeCaipAddress=void 0,z.setChainAccountData(e,{smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountTypes:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0,allAccounts:[],user:void 0,status:\\\"disconnected\\\"}),ie.removeConnectorId(e)},setIsSwitchingNamespace(t){Ne.isSwitchingNamespace=t},getFirstCaipNetworkSupportsAuthConnector(){let t=[],e;if(Ne.chains.forEach(r=>{_e.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(n=>n===r.namespace)&&r.namespace&&t.push(r.namespace)}),t.length>0){let r=t[0];return e=r?Ne.chains.get(r)?.caipNetworks?.[0]:void 0,e}},getAccountData(t){return t?z.state.chains.get(t)?.accountState:Ie.state},getNetworkData(t){let e=t||Ne.activeChain;if(e)return z.state.chains.get(e)?.networkState},getCaipNetworkByNamespace(t,e){if(!t)return;let r=z.state.chains.get(t),n=r?.caipNetworks?.find(i=>i.id===e);return n||r?.networkState?.caipNetwork||r?.caipNetworks?.[0]},getRequestedCaipNetworkIds(){let t=ie.state.filterByNamespace;return(t?[Ne.chains.get(t)]:Array.from(Ne.chains.values())).flatMap(r=>r?.caipNetworks||[]).map(r=>r.caipNetworkId)},getCaipNetworks(t){return t?z.getRequestedCaipNetworks(t):z.getAllRequestedCaipNetworks()}},z=sn(SUt)});var AUt,BGe,Qc,Qe,z2=x(()=>{u();Kn();mh();Gc();_7();_0();lc();ea();Kc();q2();AUt={purchaseCurrencies:[{id:\\\"2b92315d-eab7-5bef-84fa-089a131333f5\\\",name:\\\"USD Coin\\\",symbol:\\\"USDC\\\",networks:[{name:\\\"ethereum-mainnet\\\",display_name:\\\"Ethereum\\\",chain_id:\\\"1\\\",contract_address:\\\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\\\"},{name:\\\"polygon-mainnet\\\",display_name:\\\"Polygon\\\",chain_id:\\\"137\\\",contract_address:\\\"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\\\"}]},{id:\\\"2b92315d-eab7-5bef-84fa-089a131333f5\\\",name:\\\"Ether\\\",symbol:\\\"ETH\\\",networks:[{name:\\\"ethereum-mainnet\\\",display_name:\\\"Ethereum\\\",chain_id:\\\"1\\\",contract_address:\\\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\\\"},{name:\\\"polygon-mainnet\\\",display_name:\\\"Polygon\\\",chain_id:\\\"137\\\",contract_address:\\\"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\\\"}]}],paymentCurrencies:[{id:\\\"USD\\\",payment_method_limits:[{id:\\\"card\\\",min:\\\"10.00\\\",max:\\\"7500.00\\\"},{id:\\\"ach_bank_account\\\",min:\\\"10.00\\\",max:\\\"25000.00\\\"}]},{id:\\\"EUR\\\",payment_method_limits:[{id:\\\"card\\\",min:\\\"10.00\\\",max:\\\"7500.00\\\"},{id:\\\"ach_bank_account\\\",min:\\\"10.00\\\",max:\\\"25000.00\\\"}]}]},BGe=oe.getBlockchainApiUrl(),Qc=ot({clientId:null,api:new _f({baseUrl:BGe,clientId:null}),supportedChains:{http:[],ws:[]}}),Qe={state:Qc,async get(t){let{st:e,sv:r}=Qe.getSdkProperties(),n=ee.state.projectId,i={...t.params||{},st:e,sv:r,projectId:n};return Qc.api.get({...t,params:i})},getSdkProperties(){let{sdkType:t,sdkVersion:e}=ee.state;return{st:t||\\\"unknown\\\",sv:e||\\\"unknown\\\"}},async isNetworkSupported(t){if(!t)return!1;try{Qc.supportedChains.http.length||await Qe.getSupportedNetworks()}catch{return!1}return Qc.supportedChains.http.includes(t)},async getSupportedNetworks(){try{let t=await Qe.get({path:\\\"v1/supported-chains\\\"});return Qc.supportedChains=t,t}catch{return Qc.supportedChains}},async fetchIdentity({address:t,caipNetworkId:e}){if(!await Qe.isNetworkSupported(e))return{avatar:\\\"\\\",name:\\\"\\\"};let n=Te.getIdentityFromCacheForAddress(t);if(n)return n;let i=await Qe.get({path:`/v1/identity/${t}`,params:{sender:z.state.activeCaipAddress?oe.getPlainAddress(z.state.activeCaipAddress):void 0}});return Te.updateIdentityCache({address:t,identity:i,timestamp:Date.now()}),i},async fetchTransactions({account:t,cursor:e,onramp:r,signal:n,cache:i,chainId:s}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:`/v1/account/${t}/history`,params:{cursor:e,onramp:r,chainId:s},signal:n,cache:i}):{data:[],next:void 0}},async fetchSwapQuote({amount:t,userAddress:e,from:r,to:n,gasPrice:i}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:\\\"/v1/convert/quotes\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},params:{amount:t,userAddress:e,from:r,to:n,gasPrice:i}}):{quotes:[]}},async fetchSwapTokens({chainId:t}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:\\\"/v1/convert/tokens\\\",params:{chainId:t}}):{tokens:[]}},async fetchTokenPrice({addresses:t}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qc.api.post({path:\\\"/v1/fungible/price\\\",body:{currency:\\\"usd\\\",addresses:t,projectId:ee.state.projectId},headers:{\\\"Content-Type\\\":\\\"application/json\\\"}}):{fungibles:[]}},async fetchSwapAllowance({tokenAddress:t,userAddress:e}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:\\\"/v1/convert/allowance\\\",params:{tokenAddress:t,userAddress:e},headers:{\\\"Content-Type\\\":\\\"application/json\\\"}}):{allowance:\\\"0\\\"}},async fetchGasPrice({chainId:t}){let{st:e,sv:r}=Qe.getSdkProperties();if(!await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId))throw new Error(\\\"Network not supported for Gas Price\\\");return Qe.get({path:\\\"/v1/convert/gas-price\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},params:{chainId:t,st:e,sv:r}})},async generateSwapCalldata({amount:t,from:e,to:r,userAddress:n,disableEstimate:i}){if(!await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId))throw new Error(\\\"Network not supported for Swaps\\\");return Qc.api.post({path:\\\"/v1/convert/build-transaction\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:{amount:t,eip155:{slippage:Rt.CONVERT_SLIPPAGE_TOLERANCE},projectId:ee.state.projectId,from:e,to:r,userAddress:n,disableEstimate:i}})},async generateApproveCalldata({from:t,to:e,userAddress:r}){let{st:n,sv:i}=Qe.getSdkProperties();if(!await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId))throw new Error(\\\"Network not supported for Swaps\\\");return Qe.get({path:\\\"/v1/convert/build-approve\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},params:{userAddress:r,from:t,to:e,st:n,sv:i}})},async getBalance(t,e,r){let{st:n,sv:i}=Qe.getSdkProperties();if(!await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId))return wr.showError(\\\"Token Balance Unavailable\\\"),{balances:[]};let o=`${e}:${t}`,a=Te.getBalanceCacheForCaipAddress(o);if(a)return a;let c=await Qe.get({path:`/v1/account/${t}/balance`,params:{currency:\\\"usd\\\",chainId:e,forceUpdate:r,st:n,sv:i}});return Te.updateBalanceCache({caipAddress:o,balance:c,timestamp:Date.now()}),c},async lookupEnsName(t){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:`/v1/profile/account/${t}`,params:{apiVersion:\\\"2\\\"}}):{addresses:{},attributes:[]}},async reverseLookupEnsName({address:t}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:`/v1/profile/reverse/${t}`,params:{sender:Ie.state.address,apiVersion:\\\"2\\\"}}):[]},async getEnsNameSuggestions(t){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:`/v1/profile/suggestions/${t}`,params:{zone:\\\"reown.id\\\"}}):{suggestions:[]}},async registerEnsName({coinType:t,address:e,message:r,signature:n}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qc.api.post({path:\\\"/v1/profile/account\\\",body:{coin_type:t,address:e,message:r,signature:n},headers:{\\\"Content-Type\\\":\\\"application/json\\\"}}):{success:!1}},async generateOnRampURL({destinationWallets:t,partnerUserId:e,defaultNetwork:r,purchaseAmount:n,paymentAmount:i}){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?(await Qc.api.post({path:\\\"/v1/generators/onrampurl\\\",params:{projectId:ee.state.projectId},body:{destinationWallets:t,defaultNetwork:r,partnerUserId:e,defaultExperience:\\\"buy\\\",presetCryptoAmount:n,presetFiatAmount:i}})).url:\\\"\\\"},async getOnrampOptions(){if(!await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId))return{paymentCurrencies:[],purchaseCurrencies:[]};try{return await Qe.get({path:\\\"/v1/onramp/options\\\"})}catch{return AUt}},async getOnrampQuote({purchaseCurrency:t,paymentCurrency:e,amount:r,network:n}){try{return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?await Qc.api.post({path:\\\"/v1/onramp/quote\\\",params:{projectId:ee.state.projectId},body:{purchaseCurrency:t,paymentCurrency:e,amount:r,network:n}}):null}catch{return{coinbaseFee:{amount:r,currency:e.id},networkFee:{amount:r,currency:e.id},paymentSubtotal:{amount:r,currency:e.id},paymentTotal:{amount:r,currency:e.id},purchaseAmount:{amount:r,currency:e.id},quoteId:\\\"mocked-quote-id\\\"}}},async getSmartSessions(t){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qe.get({path:`/v1/sessions/${t}`}):[]},async revokeSmartSession(t,e,r){return await Qe.isNetworkSupported(z.state.activeCaipNetwork?.caipNetworkId)?Qc.api.post({path:`/v1/sessions/${t}/revoke`,params:{projectId:ee.state.projectId},body:{pci:e,signature:r}}):{success:!1}},setClientId(t){Qc.clientId=t,Qc.api=new _f({baseUrl:BGe,clientId:t})}}});var dd,TUt,Ie,lc=x(()=>{u();Kn();mh();Gc();cc();z2();ea();q2();dd=ot({currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),TUt={state:dd,replaceState(t){t&&Object.assign(dd,$l(t))},subscribe(t){return z.subscribeChainProp(\\\"accountState\\\",e=>{if(e)return t(e)})},subscribeKey(t,e,r){let n;return z.subscribeChainProp(\\\"accountState\\\",i=>{if(i){let s=i[t];n!==s&&(n=s,e(s))}},r)},setStatus(t,e){z.setAccountProp(\\\"status\\\",t,e)},getCaipAddress(t){return z.getAccountProp(\\\"caipAddress\\\",t)},setCaipAddress(t,e){let r=t?oe.getPlainAddress(t):void 0;e===z.state.activeChain&&(z.state.activeCaipAddress=t),z.setAccountProp(\\\"caipAddress\\\",t,e),z.setAccountProp(\\\"address\\\",r,e)},setBalance(t,e,r){z.setAccountProp(\\\"balance\\\",t,r),z.setAccountProp(\\\"balanceSymbol\\\",e,r)},setProfileName(t,e){z.setAccountProp(\\\"profileName\\\",t,e)},setProfileImage(t,e){z.setAccountProp(\\\"profileImage\\\",t,e)},setUser(t,e){z.setAccountProp(\\\"user\\\",t,e)},setAddressExplorerUrl(t,e){z.setAccountProp(\\\"addressExplorerUrl\\\",t,e)},setSmartAccountDeployed(t,e){z.setAccountProp(\\\"smartAccountDeployed\\\",t,e)},setCurrentTab(t){z.setAccountProp(\\\"currentTab\\\",t,z.state.activeChain)},setTokenBalance(t,e){t&&z.setAccountProp(\\\"tokenBalance\\\",t,e)},setShouldUpdateToAddress(t,e){z.setAccountProp(\\\"shouldUpdateToAddress\\\",t,e)},setAllAccounts(t,e){z.setAccountProp(\\\"allAccounts\\\",t,e)},addAddressLabel(t,e,r){let n=z.getAccountProp(\\\"addressLabels\\\",r)||new Map;n.set(t,e),z.setAccountProp(\\\"addressLabels\\\",n,r)},removeAddressLabel(t,e){let r=z.getAccountProp(\\\"addressLabels\\\",e)||new Map;r.delete(t),z.setAccountProp(\\\"addressLabels\\\",r,e)},setConnectedWalletInfo(t,e){z.setAccountProp(\\\"connectedWalletInfo\\\",t,e,!1)},setPreferredAccountType(t,e){z.setAccountProp(\\\"preferredAccountTypes\\\",{...dd.preferredAccountTypes,[e]:t},e)},setPreferredAccountTypes(t){dd.preferredAccountTypes=t},setSocialProvider(t,e){t&&z.setAccountProp(\\\"socialProvider\\\",t,e)},setSocialWindow(t,e){z.setAccountProp(\\\"socialWindow\\\",t?$l(t):void 0,e)},setFarcasterUrl(t,e){z.setAccountProp(\\\"farcasterUrl\\\",t,e)},async fetchTokenBalance(t){dd.balanceLoading=!0;let e=z.state.activeCaipNetwork?.caipNetworkId,r=z.state.activeCaipNetwork?.chainNamespace,n=z.state.activeCaipAddress,i=n?oe.getPlainAddress(n):void 0;if(dd.lastRetry&&!oe.isAllowedRetry(dd.lastRetry,30*Rt.ONE_SEC_MS))return dd.balanceLoading=!1,[];try{if(i&&e&&r){let o=(await Qe.getBalance(i,e)).balances.filter(a=>a.quantity.decimals!==\\\"0\\\");return Ie.setTokenBalance(o,r),dd.lastRetry=void 0,dd.balanceLoading=!1,o}}catch(s){dd.lastRetry=Date.now(),t?.(s),wr.showError(\\\"Token Balance Unavailable\\\")}finally{dd.balanceLoading=!1}return[]},resetAccount(t){z.resetAccount(t)}},Ie=sn(TUt)});var MGe,DGe=x(()=>{u();Ri();lc();ea();ld();Sf();MGe={onSwitchNetwork({network:t,ignoreSwitchConfirmation:e=!1}){let r=z.state.activeCaipNetwork,n=de.state.data;if(t.id===r?.id)return;let s=Ie.getCaipAddress(z.state.activeChain),o=t.chainNamespace!==z.state.activeChain,a=Ie.getCaipAddress(t.chainNamespace),l=ie.getConnectorId(z.state.activeChain)===_e.CONNECTOR_ID.AUTH,d=_e.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(f=>f===t.chainNamespace);e||l&&d?de.push(\\\"SwitchNetwork\\\",{...n,network:t}):s&&o&&!a?de.push(\\\"SwitchActiveChain\\\",{switchToChain:t.chainNamespace,navigateTo:\\\"Connect\\\",navigateWithReplace:!0,network:t}):de.push(\\\"SwitchNetwork\\\",{...n,network:t})}}});var Jc,IUt,Dt,j2=x(()=>{u();Kn();xo();Gc();DGe();cc();lc();g4();ea();D1();ld();S0();Kc();Ez();Sf();Jc=ot({loading:!1,loadingNamespaceMap:new Map,open:!1,shake:!1,namespace:void 0}),IUt={state:Jc,subscribe(t){return Lr(Jc,()=>t(Jc))},subscribeKey(t,e){return lr(Jc,t,e)},async open(t){let e=Ie.state.status===\\\"connected\\\",r=t?.namespace,n=z.state.activeChain,i=r&&r!==n,s=z.getAccountData(t?.namespace)?.caipAddress;if(me.state.wcBasic?ye.prefetch({fetchNetworkImages:!1,fetchConnectorImages:!1}):await ye.prefetch({fetchConnectorImages:!e,fetchFeaturedWallets:!e,fetchRecommendedWallets:!e}),ie.setFilterByNamespace(t?.namespace),Dt.setLoading(!0,r),r&&i){let o=z.getNetworkData(r)?.caipNetwork||z.getRequestedCaipNetworks(r)[0];o&&MGe.onSwitchNetwork({network:o,ignoreSwitchConfirmation:!0})}else{let o=z.state.noAdapters;ee.state.manualWCControl||o&&!s?oe.isMobile()?de.reset(\\\"AllWallets\\\"):de.reset(\\\"ConnectingWalletConnectBasic\\\"):t?.view?de.reset(t.view,t.data):s?de.reset(\\\"Account\\\"):de.reset(\\\"Connect\\\")}Jc.open=!0,ud.set({open:!0}),Xe.sendEvent({type:\\\"track\\\",event:\\\"MODAL_OPEN\\\",properties:{connected:!!s}})},close(){let t=ee.state.enableEmbedded,e=!!z.state.activeCaipAddress;Jc.open&&Xe.sendEvent({type:\\\"track\\\",event:\\\"MODAL_CLOSE\\\",properties:{connected:e}}),Jc.open=!1,de.reset(\\\"Connect\\\"),Dt.clearLoading(),t?e?de.replace(\\\"Account\\\"):de.push(\\\"Connect\\\"):ud.set({open:!1}),me.resetUri()},setLoading(t,e){e&&Jc.loadingNamespaceMap.set(e,t),Jc.loading=t,ud.set({loading:t})},clearLoading(){Jc.loadingNamespaceMap.clear(),Jc.loading=!1},shake(){Jc.shake||(Jc.shake=!0,setTimeout(()=>{Jc.shake=!1},500))}},Dt=sn(IUt)});var C7,bue,RUt,vr,PUt,S7,LGe=x(()=>{u();Kn();xo();Ri();mh();cc();lc();g4();z2();ea();Kc();C7={id:\\\"2b92315d-eab7-5bef-84fa-089a131333f5\\\",name:\\\"USD Coin\\\",symbol:\\\"USDC\\\",networks:[{name:\\\"ethereum-mainnet\\\",display_name:\\\"Ethereum\\\",chain_id:\\\"1\\\",contract_address:\\\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\\\"},{name:\\\"polygon-mainnet\\\",display_name:\\\"Polygon\\\",chain_id:\\\"137\\\",contract_address:\\\"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\\\"}]},bue={id:\\\"USD\\\",payment_method_limits:[{id:\\\"card\\\",min:\\\"10.00\\\",max:\\\"7500.00\\\"},{id:\\\"ach_bank_account\\\",min:\\\"10.00\\\",max:\\\"25000.00\\\"}]},RUt={providers:cue,selectedProvider:null,error:null,purchaseCurrency:C7,paymentCurrency:bue,purchaseCurrencies:[C7],paymentCurrencies:[],quotesLoading:!1},vr=ot(RUt),PUt={state:vr,subscribe(t){return Lr(vr,()=>t(vr))},subscribeKey(t,e){return lr(vr,t,e)},setSelectedProvider(t){if(t&&t.name===\\\"meld\\\"){let e=z.state.activeChain===_e.CHAIN.SOLANA?\\\"SOL\\\":\\\"USDC\\\",r=Ie.state.address??\\\"\\\",n=new URL(t.url);n.searchParams.append(\\\"publicKey\\\",xGe),n.searchParams.append(\\\"destinationCurrencyCode\\\",e),n.searchParams.append(\\\"walletAddress\\\",r),n.searchParams.append(\\\"externalCustomerId\\\",ee.state.projectId),vr.selectedProvider={...t,url:n.toString()}}else vr.selectedProvider=t},setOnrampProviders(t){if(Array.isArray(t)&&t.every(e=>typeof e==\\\"string\\\")){let e=t,r=cue.filter(n=>e.includes(n.name));vr.providers=r}else vr.providers=[]},setPurchaseCurrency(t){vr.purchaseCurrency=t},setPaymentCurrency(t){vr.paymentCurrency=t},setPurchaseAmount(t){S7.state.purchaseAmount=t},setPaymentAmount(t){S7.state.paymentAmount=t},async getAvailableCurrencies(){let t=await Qe.getOnrampOptions();vr.purchaseCurrencies=t.purchaseCurrencies,vr.paymentCurrencies=t.paymentCurrencies,vr.paymentCurrency=t.paymentCurrencies[0]||bue,vr.purchaseCurrency=t.purchaseCurrencies[0]||C7,await ye.fetchCurrencyImages(t.paymentCurrencies.map(e=>e.id)),await ye.fetchTokenImages(t.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){vr.quotesLoading=!0;try{let t=await Qe.getOnrampQuote({purchaseCurrency:vr.purchaseCurrency,paymentCurrency:vr.paymentCurrency,amount:vr.paymentAmount?.toString()||\\\"0\\\",network:vr.purchaseCurrency?.symbol});return vr.quotesLoading=!1,vr.purchaseAmount=Number(t?.purchaseAmount.amount),t}catch(t){return vr.error=t.message,vr.quotesLoading=!1,null}finally{vr.quotesLoading=!1}},resetState(){vr.selectedProvider=null,vr.error=null,vr.purchaseCurrency=C7,vr.paymentCurrency=bue,vr.purchaseCurrencies=[C7],vr.paymentCurrencies=[],vr.paymentAmount=void 0,vr.purchaseAmount=void 0,vr.quotesLoading=!1}},S7=sn(PUt)});var Af,OUt,I0,UGe=x(()=>{u();Kn();xo();cc();Af=ot({message:\\\"\\\",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:\\\"shade\\\"}),OUt={state:Af,subscribe(t){return Lr(Af,()=>t(Af))},subscribeKey(t,e){return lr(Af,t,e)},showTooltip({message:t,triggerRect:e,variant:r}){Af.open=!0,Af.message=t,Af.triggerRect=e,Af.variant=r},hide(){Af.open=!1,Af.message=\\\"\\\",Af.triggerRect={width:0,height:0,top:0,left:0}}},I0=sn(OUt)});var FGe,jGe=x(()=>{u();FGe={convertEVMChainIdToCoinType(t){if(t>=2147483648)throw new Error(\\\"Invalid chainId\\\");return(2147483648|t)>>>0}}});var fd,NUt,L1,HGe=x(()=>{u();Kn();xo();jGe();_0();cc();lc();z2();ea();D1();ld();Sf();fd=ot({suggestions:[],loading:!1}),NUt={state:fd,subscribe(t){return Lr(fd,()=>t(fd))},subscribeKey(t,e){return lr(fd,t,e)},async resolveName(t){try{return await Qe.lookupEnsName(t)}catch(e){let r=e;throw new Error(r?.reasons?.[0]?.description||\\\"Error resolving name\\\")}},async isNameRegistered(t){try{return await Qe.lookupEnsName(t),!0}catch{return!1}},async getSuggestions(t){try{fd.loading=!0,fd.suggestions=[];let e=await Qe.getEnsNameSuggestions(t);return fd.suggestions=e.suggestions.map(r=>({...r,name:r.name}))||[],fd.suggestions}catch(e){let r=L1.parseEnsApiError(e,\\\"Error fetching name suggestions\\\");throw new Error(r)}finally{fd.loading=!1}},async getNamesForAddress(t){try{if(!z.state.activeCaipNetwork)return[];let r=Te.getEnsFromCacheForAddress(t);if(r)return r;let n=await Qe.reverseLookupEnsName({address:t});return Te.updateEnsCache({address:t,ens:n,timestamp:Date.now()}),n}catch(e){let r=L1.parseEnsApiError(e,\\\"Error fetching names for address\\\");throw new Error(r)}},async registerName(t){let e=z.state.activeCaipNetwork;if(!e)throw new Error(\\\"Network not found\\\");let r=Ie.state.address,n=ie.getAuthConnector();if(!r||!n)throw new Error(\\\"Address or auth connector not found\\\");fd.loading=!0;try{let i=JSON.stringify({name:t,attributes:{},timestamp:Math.floor(Date.now()/1e3)});de.pushTransactionStack({onCancel(){de.replace(\\\"RegisterAccountName\\\")}});let s=await me.signMessage(i);fd.loading=!1;let o=e.id;if(!o)throw new Error(\\\"Network not found\\\");let a=FGe.convertEVMChainIdToCoinType(Number(o));await Qe.registerEnsName({coinType:a,address:r,signature:s,message:i}),Ie.setProfileName(t,e.chainNamespace),de.replace(\\\"RegisterAccountNameSuccess\\\")}catch(i){let s=L1.parseEnsApiError(i,`Error registering name ${t}`);throw de.replace(\\\"RegisterAccountName\\\"),new Error(s)}finally{fd.loading=!1}},validateName(t){return/^[a-zA-Z0-9-]{4,}$/u.test(t)},parseEnsApiError(t,e){return t?.reasons?.[0]?.description||e}},L1=sn(NUt)});var $Ge,kUt,BUt,qGe,Sz,MUt,DUt,LUt,Az,Tz,Iz,Rz,Pz,Oz,Nz,kz,Bz,Mz,UUt,FUt,zGe,Dz,Lz,wue=x(()=>{u();wq();$Ge=Me(ho()),kUt=Object.defineProperty,BUt=(t,e,r)=>e in t?kUt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qGe=(t,e,r)=>BUt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Sz=class extends bo{constructor(e){super(),this.opts=e,qGe(this,\\\"protocol\\\",\\\"wc\\\"),qGe(this,\\\"version\\\",2)}},MUt=Object.defineProperty,DUt=(t,e,r)=>e in t?MUt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,LUt=(t,e,r)=>DUt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Az=class extends bo{constructor(e,r){super(),this.core=e,this.logger=r,LUt(this,\\\"records\\\",new Map)}},Tz=class{constructor(e,r){this.logger=e,this.core=r}},Iz=class extends bo{constructor(e,r){super(),this.relayer=e,this.logger=r}},Rz=class extends bo{constructor(e){super()}},Pz=class{constructor(e,r,n,i){this.core=e,this.logger=r,this.name=n}},Oz=class extends bo{constructor(e,r){super(),this.relayer=e,this.logger=r}},Nz=class extends bo{constructor(e,r){super(),this.core=e,this.logger=r}},kz=class{constructor(e,r,n){this.core=e,this.logger=r,this.store=n}},Bz=class{constructor(e,r){this.projectId=e,this.logger=r}},Mz=class{constructor(e,r,n){this.core=e,this.logger=r,this.telemetryEnabled=n}},UUt=Object.defineProperty,FUt=(t,e,r)=>e in t?UUt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zGe=(t,e,r)=>FUt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Dz=class{constructor(e){this.opts=e,zGe(this,\\\"protocol\\\",\\\"wc\\\"),zGe(this,\\\"version\\\",2)}},Lz=class{constructor(e){this.client=e}}});var WZe={};ue(WZe,{BASE10:()=>yde,BASE16:()=>ra,BASE64:()=>Xc,BASE64URL:()=>xh,COLON:()=>JUt,DEFAULT_DEPTH:()=>Kue,EMPTY_SPACE:()=>Hz,ENV_MAP:()=>uc,INTERNAL_ERRORS:()=>BZe,MemoryStore:()=>M0,ONE_THOUSAND:()=>YUt,REACT_NATIVE_PRODUCT:()=>TKe,RELAYER_DEFAULT_PROTOCOL:()=>CZe,SDK_ERRORS:()=>kZe,SDK_TYPE:()=>RKe,SLASH:()=>IKe,TYPE_0:()=>bde,TYPE_1:()=>md,TYPE_2:()=>Q2,UTF8:()=>B4,addResourceToRecap:()=>nZe,appendToQueryString:()=>PKe,assertType:()=>tFt,assignAbilityToActions:()=>ude,base64Decode:()=>tZe,base64Encode:()=>eZe,buildApprovedNamespaces:()=>lHt,buildAuthObject:()=>MFt,buildNamespacesFromAuth:()=>f$,buildRecapStatement:()=>sZe,calcExpiry:()=>ns,capitalize:()=>sFt,capitalizeWord:()=>MKe,createDelayedPromise:()=>wh,createEncodedRecap:()=>dde,createExpiringPromise:()=>vh,createRecap:()=>rZe,decodeRecap:()=>q1,decodeTypeByte:()=>B0,decodeTypeTwoEnvelope:()=>Ade,decrypt:()=>Cde,deriveSymKey:()=>xde,deserialize:()=>Y2,encodeRecap:()=>Xz,encodeTypeByte:()=>Ede,encodeTypeTwoEnvelope:()=>Sde,encrypt:()=>_de,engineEvent:()=>xr,enumify:()=>iFt,extractSolanaTransactionId:()=>cde,formatAccountId:()=>_Ke,formatAccountWithChain:()=>jUt,formatChainId:()=>EKe,formatDeeplinkUrl:()=>DKe,formatExpirerTarget:()=>Xue,formatIdTarget:()=>tde,formatMessage:()=>Yz,formatMessageContext:()=>rFt,formatRelayParams:()=>TZe,formatRelayRpcUrl:()=>Yue,formatStatementFromRecap:()=>hde,formatTopicTarget:()=>ede,formatUA:()=>Gz,formatUri:()=>d$,fromBase64:()=>ide,generateKeyPair:()=>vde,generateRandomBytes32:()=>H7,getAccountsChains:()=>ex,getAccountsFromNamespaces:()=>qUt,getAddressFromAccount:()=>CKe,getAddressesFromAccounts:()=>HUt,getAppId:()=>Vz,getAppMetadata:()=>Wz,getBrowserOnlineStatus:()=>HZe,getChainFromAccount:()=>SKe,getChainsFromAccounts:()=>AKe,getChainsFromNamespace:()=>$z,getChainsFromNamespaces:()=>zUt,getChainsFromRecap:()=>t$,getChainsFromRequiredNamespaces:()=>$Ut,getCommonValuesInArrays:()=>Oue,getCryptoKeyFromKeyData:()=>_Ze,getDecodedRecapFromResources:()=>JKe,getDeepLink:()=>nde,getDidAddress:()=>N4,getDidAddressSegments:()=>Qz,getDidChainId:()=>QKe,getEnvironment:()=>Z2,getHttpUrl:()=>eFt,getInternalError:()=>Se,getJavascriptID:()=>NKe,getJavascriptOS:()=>OKe,getLastItems:()=>BKe,getLinkModeURL:()=>D4,getMethodsFromRecap:()=>e$,getNamespacedDidChainId:()=>U7,getNamespacesChains:()=>IZe,getNamespacesEventsForChainId:()=>PZe,getNamespacesFromAccounts:()=>NZe,getNamespacesMethodsForChainId:()=>RZe,getNodeOnlineStatus:()=>zZe,getReCapActions:()=>XKe,getReactNativeOnlineStatus:()=>qZe,getRecapAbilitiesFromResource:()=>UFt,getRecapFromResources:()=>$1,getRecapResource:()=>YKe,getRelayClientMetadata:()=>XUt,getRelayProtocolApi:()=>X2,getRelayProtocolName:()=>M4,getRequiredNamespacesFromNamespaces:()=>cHt,getSdkError:()=>Jr,getSearchParamFromURL:()=>Kz,getUniqueValues:()=>Gue,handleDeeplinkRedirect:()=>rde,hasOverlap:()=>j1,hashEthereumMessage:()=>ade,hashKey:()=>J2,hashMessage:()=>Kl,isAndroid:()=>Zue,isAppVisible:()=>Zde,isBrowser:()=>z1,isCaipNamespace:()=>Pde,isConformingNamespaces:()=>q7,isExpired:()=>If,isIframe:()=>FKe,isIos:()=>Que,isNode:()=>R4,isOnline:()=>g$,isProposalStruct:()=>Bde,isReactNative:()=>bh,isRecap:()=>fde,isSessionCompatible:()=>Nde,isSessionStruct:()=>Mde,isTelegram:()=>UKe,isTestRun:()=>P4,isTypeOneEnvelope:()=>c$,isTypeTwoEnvelope:()=>l$,isUndefined:()=>Bs,isValidAccountId:()=>MZe,isValidAccounts:()=>UZe,isValidActions:()=>jZe,isValidArray:()=>tx,isValidChainId:()=>k7,isValidChains:()=>DZe,isValidController:()=>Dde,isValidEip1271Signature:()=>KKe,isValidEip191Signature:()=>GKe,isValidErrorReason:()=>Hde,isValidEvent:()=>$de,isValidId:()=>jde,isValidNamespaceAccounts:()=>FZe,isValidNamespaceActions:()=>Lde,isValidNamespaceChains:()=>LZe,isValidNamespaceMethodsOrEvents:()=>Vue,isValidNamespaces:()=>L4,isValidNamespacesChainId:()=>m$,isValidNamespacesEvent:()=>Wde,isValidNamespacesRequest:()=>Vde,isValidNumber:()=>p$,isValidObject:()=>rx,isValidParams:()=>na,isValidRecap:()=>yh,isValidRelay:()=>h$,isValidRelays:()=>Fde,isValidRequest:()=>qde,isValidRequestExpiry:()=>Gde,isValidRequiredNamespaces:()=>Ude,isValidResponse:()=>zde,isValidString:()=>Hi,isValidUrl:()=>kde,mapEntries:()=>nFt,mapToObj:()=>B7,mergeArrays:()=>pd,mergeEncodedRecaps:()=>pde,mergeRecaps:()=>iZe,mergeRequiredAndOptionalNamespaces:()=>Ode,normalizeNamespaces:()=>N7,objToMap:()=>M7,openDeeplink:()=>LKe,parseAccountId:()=>Wue,parseChainId:()=>K2,parseContextNames:()=>kKe,parseExpirerTarget:()=>D7,parseNamespaceKey:()=>OZe,parseRelayParams:()=>SZe,parseTopic:()=>AZe,parseUri:()=>u$,populateAppMetadata:()=>Jue,populateAuthPayload:()=>DFt,recapHasResource:()=>LFt,serialize:()=>Tde,sleep:()=>sde,subscribeToBrowserNetworkChange:()=>$Ze,subscribeToNetworkChange:()=>Kde,subscribeToReactNativeNetworkChange:()=>VZe,toBase64:()=>jKe,uuidv4:()=>Zz,validateDecoding:()=>Ide,validateEncoding:()=>a$,validateSignedCacao:()=>Jz,verifyP256Jwt:()=>Rde,verifySignature:()=>WKe});function K2(t){let[e,r]=t.split(zz);return{namespace:e,reference:r}}function EKe(t){let{namespace:e,reference:r}=t;return[e,r].join(zz)}function Wue(t){let[e,r,n]=t.split(zz);return{namespace:e,reference:r,address:n}}function _Ke(t){let{namespace:e,reference:r,address:n}=t;return[e,r,n].join(zz)}function Gue(t,e){let r=[];return t.forEach(n=>{let i=e(n);r.includes(i)||r.push(i)}),r}function CKe(t){let{address:e}=Wue(t);return e}function SKe(t){let{namespace:e,reference:r}=Wue(t);return EKe({namespace:e,reference:r})}function jUt(t,e){let{namespace:r,reference:n}=K2(e);return _Ke({namespace:r,reference:n,address:t})}function HUt(t){return Gue(t,CKe)}function AKe(t){return Gue(t,SKe)}function qUt(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...i.accounts)}),r}function zUt(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...AKe(i.accounts))}),r}function $Ut(t,e=[]){let r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;let i=t[n];r.push(...$z(n,i))}),r}function $z(t,e){return t.includes(\\\":\\\")?[t]:e.chains||[]}function R4(){return typeof process<\\\"u\\\"&&typeof process.versions<\\\"u\\\"&&typeof process.versions.node<\\\"u\\\"}function bh(){return!(0,hd.getDocument)()&&!!(0,hd.getNavigator)()&&navigator.product===TKe}function Zue(){return bh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"&&globalThis?.Platform.OS===\\\"android\\\"}function Que(){return bh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"&&globalThis?.Platform.OS===\\\"ios\\\"}function z1(){return!R4()&&!!(0,hd.getNavigator)()&&!!(0,hd.getDocument)()}function Z2(){return bh()?uc.reactNative:R4()?uc.node:z1()?uc.browser:uc.unknown}function Vz(){var t;try{return bh()&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Application<\\\"u\\\"?(t=globalThis.Application)==null?void 0:t.applicationId:void 0}catch{return}}function PKe(t,e){let r=new URLSearchParams(t);for(let n of Object.keys(e).sort())if(e.hasOwnProperty(n)){let i=e[n];i!==void 0&&r.set(n,i)}return r.toString()}function Jue(t){var e,r;let n=Wz();try{return t!=null&&t.url&&n.url&&new URL(t.url).host!==new URL(n.url).host&&(console.warn(`The configured WalletConnect 'metadata.url':${t.url} differs from the actual page url:${n.url}. This is probably unintended and can lead to issues.`),t.url=n.url),(e=t?.icons)!=null&&e.length&&t.icons.length>0&&(t.icons=t.icons.filter(i=>i!==\\\"\\\")),QUt(GGe(GGe({},n),t),{url:t?.url||n.url,name:t?.name||n.name,description:t?.description||n.description,icons:(r=t?.icons)!=null&&r.length&&t.icons.length>0?t.icons:n.icons})}catch(i){return console.warn(\\\"Error populating app metadata\\\",i),t||n}}function Wz(){return(0,xKe.getWindowMetadata)()||{name:\\\"\\\",description:\\\"\\\",url:\\\"\\\",icons:[\\\"\\\"]}}function XUt(t,e){var r;let n=Z2(),i={protocol:t,version:e,env:n};return n===\\\"browser\\\"&&(i.host=((r=(0,hd.getLocation)())==null?void 0:r.host)||\\\"unknown\\\"),i}function OKe(){if(Z2()===uc.reactNative&&typeof globalThis<\\\"u\\\"&&typeof globalThis?.Platform<\\\"u\\\"){let{OS:r,Version:n}=globalThis.Platform;return[r,n].join(\\\"-\\\")}let t=dH();if(t===null)return\\\"unknown\\\";let e=t.os?t.os.replace(\\\" \\\",\\\"\\\").toLowerCase():\\\"unknown\\\";return t.type===\\\"browser\\\"?[e,t.name,t.version].join(\\\"-\\\"):[e,t.version].join(\\\"-\\\")}function NKe(){var t;let e=Z2();return e===uc.browser?[e,((t=(0,hd.getLocation)())==null?void 0:t.host)||\\\"unknown\\\"].join(\\\":\\\"):e}function Gz(t,e,r){let n=OKe(),i=NKe();return[[t,e].join(\\\"-\\\"),[RKe,r].join(\\\"-\\\"),n,i].join(\\\"/\\\")}function Yue({protocol:t,version:e,relayUrl:r,sdkVersion:n,auth:i,projectId:s,useOnCloseEvent:o,bundleId:a,packageName:c}){let l=r.split(\\\"?\\\"),d=Gz(t,e,n),f={auth:i,ua:d,projectId:s,useOnCloseEvent:o||void 0,packageName:c||void 0,bundleId:a||void 0},p=PKe(l[1]||\\\"\\\",f);return l[0]+\\\"?\\\"+p}function eFt(t){let e=(t.match(/^[^:]+(?=:\\\\/\\\\/)/gi)||[])[0],r=typeof e<\\\"u\\\"?t.split(\\\"://\\\")[1]:t;return e=e===\\\"wss\\\"?\\\"https\\\":\\\"http\\\",[e,r].join(\\\"://\\\")}function tFt(t,e,r){if(!t[e]||typeof t[e]!==r)throw new Error(`Missing or invalid \\\"${e}\\\" param`)}function kKe(t,e=Kue){return BKe(t.split(IKe),e)}function rFt(t){return kKe(t).join(Hz)}function j1(t,e){return t.filter(r=>e.includes(r)).length===t.length}function BKe(t,e=Kue){return t.slice(Math.max(t.length-e,0))}function B7(t){return Object.fromEntries(t.entries())}function M7(t){return new Map(Object.entries(t))}function nFt(t,e){let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}function MKe(t){return t.trim().replace(/^\\\\w/,e=>e.toUpperCase())}function sFt(t){return t.split(Hz).map(e=>MKe(e)).join(Hz)}function wh(t=k0.FIVE_MINUTES,e){let r=(0,k0.toMiliseconds)(t||k0.FIVE_MINUTES),n,i,s,o;return{resolve:a=>{s&&n&&(clearTimeout(s),n(a),o=Promise.resolve(a))},reject:a=>{s&&i&&(clearTimeout(s),i(a))},done:()=>new Promise((a,c)=>{if(o)return a(o);s=setTimeout(()=>{let l=new Error(e);o=Promise.reject(l),c(l)},r),n=a,i=c})}}function vh(t,e,r){return new Promise(async(n,i)=>{let s=setTimeout(()=>i(new Error(r)),e);try{let o=await t;n(o)}catch(o){i(o)}clearTimeout(s)})}function Xue(t,e){if(typeof e==\\\"string\\\"&&e.startsWith(`${t}:`))return e;if(t.toLowerCase()===\\\"topic\\\"){if(typeof e!=\\\"string\\\")throw new Error('Value must be \\\"string\\\" for expirer target type: topic');return`topic:${e}`}else if(t.toLowerCase()===\\\"id\\\"){if(typeof e!=\\\"number\\\")throw new Error('Value must be \\\"number\\\" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function ede(t){return Xue(\\\"topic\\\",t)}function tde(t){return Xue(\\\"id\\\",t)}function D7(t){let[e,r]=t.split(\\\":\\\"),n={id:void 0,topic:void 0};if(e===\\\"topic\\\"&&typeof r==\\\"string\\\")n.topic=r;else if(e===\\\"id\\\"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);return n}function ns(t,e){return(0,k0.fromMiliseconds)((e||Date.now())+(0,k0.toMiliseconds)(t))}function If(t){return Date.now()>=(0,k0.toMiliseconds)(t)}function xr(t,e){return`${t}${e?`:${e}`:\\\"\\\"}`}function pd(t=[],e=[]){return[...new Set([...t,...e])]}async function rde({id:t,topic:e,wcDeepLink:r}){var n;try{if(!r)return;let i=typeof r==\\\"string\\\"?JSON.parse(r):r,s=i?.href;if(typeof s!=\\\"string\\\")return;let o=DKe(s,t,e),a=Z2();if(a===uc.browser){if(!((n=(0,hd.getDocument)())!=null&&n.hasFocus())){console.warn(\\\"Document does not have focus, skipping deeplink.\\\");return}LKe(o)}else a===uc.reactNative&&typeof globalThis?.Linking<\\\"u\\\"&&await globalThis.Linking.openURL(o)}catch(i){console.error(i)}}function DKe(t,e,r){let n=`requestId=${e}&sessionTopic=${r}`;t.endsWith(\\\"/\\\")&&(t=t.slice(0,-1));let i=`${t}`;if(t.startsWith(\\\"https://t.me\\\")){let s=t.includes(\\\"?\\\")?\\\"&startapp=\\\":\\\"?startapp=\\\";i=`${i}${s}${jKe(n,!0)}`}else i=`${i}/wc?${n}`;return i}function LKe(t){let e=\\\"_self\\\";FKe()?e=\\\"_top\\\":(UKe()||t.startsWith(\\\"https://\\\")||t.startsWith(\\\"http://\\\"))&&(e=\\\"_blank\\\"),window.open(t,e,\\\"noreferrer noopener\\\")}async function nde(t,e){let r=\\\"\\\";try{if(z1()&&(r=localStorage.getItem(e),r))return r;r=await t.getItem(e)}catch(n){console.error(n)}return r}function Oue(t,e){return t.filter(r=>e.includes(r))}function Kz(t,e){if(!t.includes(e))return null;let r=t.split(/([&,?,=])/),n=r.indexOf(e);return r[n+2]}function Zz(){return typeof crypto<\\\"u\\\"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():\\\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\\\".replace(/[xy]/gu,t=>{let e=Math.random()*16|0;return(t===\\\"x\\\"?e:e&3|8).toString(16)})}function P4(){return typeof process<\\\"u\\\"&&process.env.IS_VITEST===\\\"true\\\"}function UKe(){return typeof window<\\\"u\\\"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function FKe(){try{return window.self!==window.top}catch{return!1}}function jKe(t,e=!1){let r=globalThis.Buffer.from(t).toString(\\\"base64\\\");return e?r.replace(/[=]/g,\\\"\\\"):r}function ide(t){return globalThis.Buffer.from(t,\\\"base64\\\").toString(\\\"utf-8\\\")}function sde(t){return new Promise(e=>setTimeout(e,t))}function I7(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\\\"positive integer expected, got \\\"+t)}function oFt(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function L7(t,...e){if(!oFt(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function ode(t){if(typeof t!=\\\"function\\\"||typeof t.create!=\\\"function\\\")throw new Error(\\\"Hash should be wrapped by utils.wrapConstructor\\\");I7(t.outputLen),I7(t.blockLen)}function E4(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function HKe(t,e){L7(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function aFt(t,e=!1){return e?{h:Number(t&Uz),l:Number(t>>KGe&Uz)}:{h:Number(t>>KGe&Uz)|0,l:Number(t&Uz)|0}}function cFt(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:s,l:o}=aFt(t[i],e);[r[i],n[i]]=[s,o]}return[r,n]}function pFt(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function vue(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function gh(t,e){return t<<32-e|t>>>e}function hFt(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function QGe(t){for(let e=0;e<t.length;e++)t[e]=hFt(t[e])}function mFt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"utf8ToBytes expected string, got \\\"+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function _4(t){return typeof t==\\\"string\\\"&&(t=mFt(t)),L7(t),t}function gFt(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];L7(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function qKe(t){let e=n=>t().update(_4(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function O4(t=32){if(w4&&typeof w4.getRandomValues==\\\"function\\\")return w4.getRandomValues(new Uint8Array(t));if(w4&&typeof w4.randomBytes==\\\"function\\\")return w4.randomBytes(t);throw new Error(\\\"crypto.getRandomValues must be defined\\\")}function CFt(t,e=24){let r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){let a=(o+8)%10,c=(o+2)%10,l=r[c],d=r[c+1],f=JGe(l,d,1)^r[a],p=YGe(l,d,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=p}let i=t[2],s=t[3];for(let o=0;o<24;o++){let a=$Ke[o],c=JGe(i,s,a),l=YGe(i,s,a),d=zKe[o];i=t[d],s=t[d+1],t[d]=c,t[d+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=EFt[n],t[1]^=_Ft[n]}r.fill(0)}function ade(t){let e=`\\u0019Ethereum Signed Message:\\n${t.length}`,r=new TextEncoder().encode(e+t);return\\\"0x\\\"+globalThis.Buffer.from(AFt(r)).toString(\\\"hex\\\")}async function WKe(t,e,r,n,i,s){switch(r.t){case\\\"eip191\\\":return await GKe(t,e,r.s);case\\\"eip1271\\\":return await KKe(t,e,r.s,n,i,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function GKe(t,e,r){return(await ap({hash:ade(e),signature:r})).toLowerCase()===t.toLowerCase()}async function KKe(t,e,r,n,i,s){let o=K2(n);if(!o.namespace||!o.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${n}`);try{let a=\\\"0x1626ba7e\\\",c=\\\"0000000000000000000000000000000000000000000000000000000000000040\\\",l=\\\"0000000000000000000000000000000000000000000000000000000000000041\\\",d=r.substring(2),f=ade(e).substring(2),p=a+f+c+l+d,h=await fetch(`${s||TFt}/?chainId=${n}&projectId=${i}`,{method:\\\"POST\\\",body:JSON.stringify({id:IFt(),jsonrpc:\\\"2.0\\\",method:\\\"eth_call\\\",params:[{to:t,data:p},\\\"latest\\\"]})}),{result:m}=await h.json();return m?m.slice(0,a.length).toLowerCase()===a.toLowerCase():!1}catch(a){return console.error(\\\"isValidEip1271Signature: \\\",a),!1}}function IFt(){return Date.now()+Math.floor(Math.random()*1e3)}function cde(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);let n=r[0];if(n===0)throw new Error(\\\"No signatures found\\\");let i=1+n*64;if(r.length<i)throw new Error(\\\"Transaction data too short for claimed signature count\\\");if(r.length<100)throw new Error(\\\"Transaction too short\\\");let s=globalThis.Buffer.from(t,\\\"base64\\\").slice(1,65);return yC.encode(s)}async function Jz(t){let{cacao:e,projectId:r}=t,{s:n,p:i}=e,s=Yz(i,i.iss),o=N4(i.iss);return await WKe(o,s,n,U7(i.iss),r)}function MFt(t,e,r){return r.includes(\\\"did:pkh:\\\")||(r=`did:pkh:${r}`),{h:{t:\\\"caip122\\\"},p:{iss:r,domain:t.domain,aud:t.aud,version:t.version,nonce:t.nonce,iat:t.iat,statement:t.statement,requestId:t.requestId,resources:t.resources,nbf:t.nbf,exp:t.exp},s:e}}function DFt(t){var e;let{authPayload:r,chains:n,methods:i}=t,s=r.statement||\\\"\\\";if(!(n!=null&&n.length))return r;let o=r.chains,a=Oue(o,n);if(!(a!=null&&a.length))throw new Error(\\\"No supported chains\\\");let c=JKe(r.resources);if(!c)return r;yh(c);let l=YKe(c,\\\"eip155\\\"),d=r?.resources||[];if(l!=null&&l.length){let f=XKe(l),p=Oue(f,i);if(!(p!=null&&p.length))throw new Error(`Supported methods don't satisfy the requested: ${JSON.stringify(f)}, supported: ${JSON.stringify(i)}`);let h=ude(\\\"request\\\",p,{chains:a}),m=nZe(c,\\\"eip155\\\",h);d=((e=r?.resources)==null?void 0:e.slice(0,-1))||[],d.push(Xz(m))}return ZKe(lde({},r),{statement:sZe(s,$1(d)),chains:a,resources:r!=null&&r.resources||d.length>0?d:void 0})}function JKe(t){let e=$1(t);if(e&&fde(e))return q1(e)}function LFt(t,e){var r;return(r=t?.att)==null?void 0:r.hasOwnProperty(e)}function YKe(t,e){var r,n;return(r=t?.att)!=null&&r[e]?Object.keys((n=t?.att)==null?void 0:n[e]):[]}function UFt(t){return t?.map(e=>Object.keys(e))||[]}function XKe(t){return t?.map(e=>{var r;return(r=e.split(\\\"/\\\"))==null?void 0:r[1]})||[]}function eZe(t){return globalThis.Buffer.from(JSON.stringify(t)).toString(\\\"base64\\\")}function tZe(t){return JSON.parse(globalThis.Buffer.from(t,\\\"base64\\\").toString(\\\"utf-8\\\"))}function yh(t){if(!t)throw new Error(\\\"No recap provided, value is undefined\\\");if(!t.att)throw new Error(\\\"No `att` property found\\\");let e=Object.keys(t.att);if(!(e!=null&&e.length))throw new Error(\\\"No resources found in `att` property\\\");e.forEach(r=>{let n=t.att[r];if(Array.isArray(n))throw new Error(`Resource must be an object: ${r}`);if(typeof n!=\\\"object\\\")throw new Error(`Resource must be an object: ${r}`);if(!Object.keys(n).length)throw new Error(`Resource object is empty: ${r}`);Object.keys(n).forEach(i=>{let s=n[i];if(!Array.isArray(s))throw new Error(`Ability limits ${i} must be an array of objects, found: ${s}`);if(!s.length)throw new Error(`Value of ${i} is empty array, must be an array with objects`);s.forEach(o=>{if(typeof o!=\\\"object\\\")throw new Error(`Ability limits (${i}) must be an array of objects, found: ${o}`)})})})}function rZe(t,e,r,n={}){return r?.sort((i,s)=>i.localeCompare(s)),{att:{[t]:ude(e,r,n)}}}function nZe(t,e,r){var n;t.att[e]=lde({},r);let i=(n=Object.keys(t.att))==null?void 0:n.sort((o,a)=>o.localeCompare(a)),s={att:{}};return i.reduce((o,a)=>(o.att[a]=t.att[a],o),s)}function ude(t,e,r={}){e=e?.sort((i,s)=>i.localeCompare(s));let n=e.map(i=>({[`${t}/${i}`]:[r]}));return Object.assign({},...n)}function Xz(t){return yh(t),`urn:recap:${eZe(t).replace(/=/g,\\\"\\\")}`}function q1(t){let e=tZe(t.replace(\\\"urn:recap:\\\",\\\"\\\"));return yh(e),e}function dde(t,e,r){let n=rZe(t,e,r);return Xz(n)}function fde(t){return t&&t.includes(\\\"urn:recap:\\\")}function pde(t,e){let r=q1(t),n=q1(e),i=iZe(r,n);return Xz(i)}function iZe(t,e){yh(t),yh(e);let r=Object.keys(t.att).concat(Object.keys(e.att)).sort((i,s)=>i.localeCompare(s)),n={att:{}};return r.forEach(i=>{var s,o;Object.keys(((s=t.att)==null?void 0:s[i])||{}).concat(Object.keys(((o=e.att)==null?void 0:o[i])||{})).sort((a,c)=>a.localeCompare(c)).forEach(a=>{var c,l;n.att[i]=ZKe(lde({},n.att[i]),{[a]:((c=t.att[i])==null?void 0:c[a])||((l=e.att[i])==null?void 0:l[a])})})}),n}function hde(t=\\\"\\\",e){yh(e);let r=\\\"I further authorize the stated URI to perform the following actions on my behalf: \\\";if(t.includes(r))return t;let n=[],i=0;Object.keys(e.att).forEach(a=>{let c=Object.keys(e.att[a]).map(f=>({ability:f.split(\\\"/\\\")[0],action:f.split(\\\"/\\\")[1]}));c.sort((f,p)=>f.action.localeCompare(p.action));let l={};c.forEach(f=>{l[f.ability]||(l[f.ability]=[]),l[f.ability].push(f.action)});let d=Object.keys(l).map(f=>(i++,`(${i}) '${f}': '${l[f].join(\\\"', '\\\")}' for '${a}'.`));n.push(d.join(\\\", \\\").replace(\\\".,\\\",\\\".\\\"))});let s=n.join(\\\" \\\"),o=`${r}${s}`;return`${t?t+\\\" \\\":\\\"\\\"}${o}`}function e$(t){var e;let r=q1(t);yh(r);let n=(e=r.att)==null?void 0:e.eip155;return n?Object.keys(n).map(i=>i.split(\\\"/\\\")[1]):[]}function t$(t){let e=q1(t);yh(e);let r=[];return Object.values(e.att).forEach(n=>{Object.values(n).forEach(i=>{var s;(s=i?.[0])!=null&&s.chains&&r.push(i[0].chains)})}),[...new Set(r.flat())]}function sZe(t,e){if(!e)return t;let r=q1(e);return yh(r),hde(t,r)}function $1(t){if(!t)return;let e=t?.[t.length-1];return fde(e)?e:void 0}function xue(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(\\\"positive integer expected, got \\\"+t)}function oZe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function Gl(t,...e){if(!oZe(t))throw new Error(\\\"Uint8Array expected\\\");if(e.length>0&&!e.includes(t.length))throw new Error(\\\"Uint8Array expected of length \\\"+e+\\\", got length=\\\"+t.length)}function tKe(t,e=!0){if(t.destroyed)throw new Error(\\\"Hash instance has been destroyed\\\");if(e&&t.finished)throw new Error(\\\"Hash#digest() has already been called\\\")}function FFt(t,e){Gl(t);let r=e.outputLen;if(t.length<r)throw new Error(\\\"digestInto() expects output buffer of length at least \\\"+r)}function rKe(t){if(typeof t!=\\\"boolean\\\")throw new Error(`boolean expected, not ${t}`)}function qFt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function kue(t){if(typeof t==\\\"string\\\")t=qFt(t);else if(oZe(t))t=Bue(t);else throw new Error(\\\"Uint8Array expected, got \\\"+typeof t);return t}function zFt(t,e){if(e==null||typeof e!=\\\"object\\\")throw new Error(\\\"options must be defined\\\");return Object.assign(t,e)}function $Ft(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function nKe(t,e,r=!0){if(e===void 0)return new Uint8Array(t);if(e.length!==t)throw new Error(\\\"invalid output length, expected \\\"+t+\\\", got: \\\"+e.length);if(r&&!WFt(e))throw new Error(\\\"invalid output, must be aligned\\\");return e}function iKe(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function WFt(t){return t.byteOffset%4===0}function Bue(t){return Uint8Array.from(t)}function C4(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function Nr(t,e){return t<<e|t>>>32-e}function Mue(t){return t.byteOffset%4===0}function YFt(t,e,r,n,i,s,o,a){let c=i.length,l=new Uint8Array(Fz),d=H1(l),f=Mue(i)&&Mue(s),p=f?H1(i):sKe,h=f?H1(s):sKe;for(let m=0;m<c;o++){if(t(e,r,n,d,o,a),o>=cZe)throw new Error(\\\"arx: counter overflow\\\");let g=Math.min(Fz,c-m);if(f&&g===Fz){let w=m/4;if(m%4!==0)throw new Error(\\\"arx: invalid block position\\\");for(let v=0,b;v<JFt;v++)b=w+v,h[b]=p[b]^d[v];m+=Fz;continue}for(let w=0,v;w<g;w++)v=m+w,s[v]=i[v]^l[w];m+=g}}function XFt(t,e){let{allowShortKeys:r,extendNonceFn:n,counterLength:i,counterRight:s,rounds:o}=zFt({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if(typeof t!=\\\"function\\\")throw new Error(\\\"core must be a function\\\");return xue(i),xue(o),rKe(s),rKe(r),(a,c,l,d,f=0)=>{Gl(a),Gl(c),Gl(l);let p=l.length;if(d===void 0&&(d=new Uint8Array(p)),Gl(d),xue(f),f<0||f>=cZe)throw new Error(\\\"arx: counter overflow\\\");if(d.length<p)throw new Error(`arx: output (${d.length}) is shorter than data (${p})`);let h=[],m=a.length,g,w;if(m===32)h.push(g=Bue(a)),w=QFt;else if(m===16&&r)g=new Uint8Array(32),g.set(a),g.set(a,16),w=ZFt,h.push(g);else throw new Error(`arx: invalid 32-byte key, got length=${m}`);Mue(c)||h.push(c=Bue(c));let v=H1(g);if(n){if(c.length!==24)throw new Error(\\\"arx: extended nonce must be 24 bytes\\\");n(w,v,H1(c.subarray(0,16)),v),c=c.subarray(16)}let b=16-i;if(b!==c.length)throw new Error(`arx: nonce must be ${b} or 16 bytes`);if(b!==12){let S=new Uint8Array(12);S.set(c,s?0:12-c.length),c=S,h.push(c)}let _=H1(c);return YFt(t,w,v,_,l,d,f,o),C4(...h),d}}function ejt(t){let e=(n,i)=>t(i).update(kue(n)).digest(),r=t(new Uint8Array(32));return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function rjt(t,e,r,n,i,s=20){let o=t[0],a=t[1],c=t[2],l=t[3],d=e[0],f=e[1],p=e[2],h=e[3],m=e[4],g=e[5],w=e[6],v=e[7],b=i,_=r[0],S=r[1],T=r[2],N=o,O=a,L=c,B=l,H=d,M=f,F=p,R=h,y=m,E=g,C=w,I=v,P=b,k=_,U=S,D=T;for(let j=0;j<s;j+=2)N=N+H|0,P=Nr(P^N,16),y=y+P|0,H=Nr(H^y,12),N=N+H|0,P=Nr(P^N,8),y=y+P|0,H=Nr(H^y,7),O=O+M|0,k=Nr(k^O,16),E=E+k|0,M=Nr(M^E,12),O=O+M|0,k=Nr(k^O,8),E=E+k|0,M=Nr(M^E,7),L=L+F|0,U=Nr(U^L,16),C=C+U|0,F=Nr(F^C,12),L=L+F|0,U=Nr(U^L,8),C=C+U|0,F=Nr(F^C,7),B=B+R|0,D=Nr(D^B,16),I=I+D|0,R=Nr(R^I,12),B=B+R|0,D=Nr(D^B,8),I=I+D|0,R=Nr(R^I,7),N=N+M|0,D=Nr(D^N,16),C=C+D|0,M=Nr(M^C,12),N=N+M|0,D=Nr(D^N,8),C=C+D|0,M=Nr(M^C,7),O=O+F|0,P=Nr(P^O,16),I=I+P|0,F=Nr(F^I,12),O=O+F|0,P=Nr(P^O,8),I=I+P|0,F=Nr(F^I,7),L=L+R|0,k=Nr(k^L,16),y=y+k|0,R=Nr(R^y,12),L=L+R|0,k=Nr(k^L,8),y=y+k|0,R=Nr(R^y,7),B=B+H|0,U=Nr(U^B,16),E=E+U|0,H=Nr(H^E,12),B=B+H|0,U=Nr(U^B,8),E=E+U|0,H=Nr(H^E,7);let A=0;n[A++]=o+N|0,n[A++]=a+O|0,n[A++]=c+L|0,n[A++]=l+B|0,n[A++]=d+H|0,n[A++]=f+M|0,n[A++]=p+F|0,n[A++]=h+R|0,n[A++]=m+y|0,n[A++]=g+E|0,n[A++]=w+C|0,n[A++]=v+I|0,n[A++]=b+P|0,n[A++]=_+k|0,n[A++]=S+U|0,n[A++]=T+D|0}function aKe(t,e,r,n,i){let s=t(e,r,sjt),o=tjt.create(s);i&&oKe(o,i),oKe(o,n);let a=new Uint8Array(16),c=jFt(a);iKe(c,0,BigInt(i?i.length:0),!0),iKe(c,8,BigInt(n.length),!0),o.update(a);let l=o.digest();return C4(s,a),l}function ajt(t,e,r){return ode(t),r===void 0&&(r=new Uint8Array(t.outputLen)),r$(t,_4(r),_4(e))}function cjt(t,e,r,n=32){if(ode(t),I7(n),n>255*t.outputLen)throw new Error(\\\"Length should be <= 255*HashLen\\\");let i=Math.ceil(n/t.outputLen);r===void 0&&(r=cKe);let s=new Uint8Array(i*t.outputLen),o=r$.create(t,e),a=o._cloneInto(),c=new Uint8Array(o.outputLen);for(let l=0;l<i;l++)Eue[0]=l+1,a.update(l===0?cKe:c).update(r).update(Eue).digestInto(c),s.set(c,t.outputLen*l),o._cloneInto(a);return o.destroy(),a.destroy(),c.fill(0),Eue.fill(0),s.slice(0,n)}function ujt(t,e,r,n){if(typeof t.setBigUint64==\\\"function\\\")return t.setBigUint64(e,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}function djt(t,e,r){return t&e^~t&r}function fjt(t,e,r){return t&e^t&r^e&r}function G2(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name===\\\"Uint8Array\\\"}function j7(t){if(!G2(t))throw new Error(\\\"Uint8Array expected\\\")}function S4(t,e){if(typeof e!=\\\"boolean\\\")throw new Error(t+\\\" boolean expected, got \\\"+e)}function A4(t){j7(t);let e=\\\"\\\";for(let r=0;r<t.length;r++)e+=mjt[t[r]];return e}function x4(t){let e=t.toString(16);return e.length&1?\\\"0\\\"+e:e}function mde(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);return t===\\\"\\\"?n$:BigInt(\\\"0x\\\"+t)}function lKe(t){if(t>=R0._0&&t<=R0._9)return t-R0._0;if(t>=R0.A&&t<=R0.F)return t-(R0.A-10);if(t>=R0.a&&t<=R0.f)return t-(R0.a-10)}function T4(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"hex string expected, got \\\"+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error(\\\"hex string expected, got unpadded hex of length \\\"+e);let n=new Uint8Array(r);for(let i=0,s=0;i<r;i++,s+=2){let o=lKe(t.charCodeAt(s)),a=lKe(t.charCodeAt(s+1));if(o===void 0||a===void 0){let c=t[s]+t[s+1];throw new Error('hex string expected, got non-hex character \\\"'+c+'\\\" at index '+s)}n[i]=o*16+a}return n}function W2(t){return mde(A4(t))}function P7(t){return j7(t),mde(A4(Uint8Array.from(t).reverse()))}function I4(t,e){return T4(t.toString(16).padStart(e*2,\\\"0\\\"))}function s$(t,e){return I4(t,e).reverse()}function gjt(t){return T4(x4(t))}function Wl(t,e,r){let n;if(typeof e==\\\"string\\\")try{n=T4(e)}catch(s){throw new Error(t+\\\" must be hex string or Uint8Array, cause: \\\"+s)}else if(G2(e))n=Uint8Array.from(e);else throw new Error(t+\\\" must be hex string or Uint8Array\\\");let i=n.length;if(typeof r==\\\"number\\\"&&i!==r)throw new Error(t+\\\" of length \\\"+r+\\\" expected, got \\\"+i);return n}function O7(...t){let e=0;for(let n=0;n<t.length;n++){let i=t[n];j7(i),e+=i.length}let r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let s=t[n];r.set(s,i),i+=s.length}return r}function yjt(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function bjt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"string expected\\\");return new Uint8Array(new TextEncoder().encode(t))}function o$(t,e,r){return _ue(t)&&_ue(e)&&_ue(r)&&e<=t&&t<r}function N0(t,e,r,n){if(!o$(e,r,n))throw new Error(\\\"expected valid \\\"+t+\\\": \\\"+r+\\\" <= n < \\\"+n+\\\", got \\\"+e)}function uZe(t){let e;for(e=0;t>n$;t>>=i$,e+=1);return e}function wjt(t,e){return t>>BigInt(e)&i$}function vjt(t,e,r){return t|(r?i$:n$)<<BigInt(e)}function dZe(t,e,r){if(typeof t!=\\\"number\\\"||t<2)throw new Error(\\\"hashLen must be a number\\\");if(typeof e!=\\\"number\\\"||e<2)throw new Error(\\\"qByteLen must be a number\\\");if(typeof r!=\\\"function\\\")throw new Error(\\\"hmacFn must be a function\\\");let n=Cue(t),i=Cue(t),s=0,o=()=>{n.fill(1),i.fill(0),s=0},a=(...d)=>r(i,n,...d),c=(d=Cue())=>{i=a(uKe([0]),d),n=a(),d.length!==0&&(i=a(uKe([1]),d),n=a())},l=()=>{if(s++>=1e3)throw new Error(\\\"drbg: tried 1000 values\\\");let d=0,f=[];for(;d<e;){n=a();let p=n.slice();f.push(p),d+=n.length}return O7(...f)};return(d,f)=>{o(),c(d);let p;for(;!(p=f(l()));)c();return o(),p}}function k4(t,e,r={}){let n=(i,s,o)=>{let a=xjt[s];if(typeof a!=\\\"function\\\")throw new Error(\\\"invalid validator function\\\");let c=t[i];if(!(o&&c===void 0)&&!a(c,t))throw new Error(\\\"param \\\"+String(i)+\\\" is invalid. Expected \\\"+s+\\\", got \\\"+c)};for(let[i,s]of Object.entries(e))n(i,s,!1);for(let[i,s]of Object.entries(r))n(i,s,!0);return t}function Fue(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(i!==void 0)return i;let s=t(r,...n);return e.set(r,s),s}}function Yc(t,e){let r=t%e;return r>=_o?r:e+r}function fZe(t,e,r){if(e<_o)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r<=_o)throw new Error(\\\"invalid modulus\\\");if(r===ms)return _o;let n=ms;for(;e>_o;)e&ms&&(n=n*t%r),t=t*t%r,e>>=ms;return n}function Tf(t,e,r){let n=t;for(;e-- >_o;)n*=n,n%=r;return n}function Hue(t,e){if(t===_o)throw new Error(\\\"invert: expected non-zero number\\\");if(e<=_o)throw new Error(\\\"invert: expected positive modulus, got \\\"+e);let r=Yc(t,e),n=e,i=_o,s=ms;for(;r!==_o;){let o=n/r,a=n%r,c=i-s*o;n=r,r=a,i=s,s=c}if(n!==ms)throw new Error(\\\"invert: does not exist\\\");return Yc(i,e)}function Sjt(t){let e=(t-ms)/V2,r,n,i;for(r=t-ms,n=0;r%V2===_o;r/=V2,n++);for(i=V2;i<t&&fZe(i,e,t)!==t-ms;i++)if(i>1e3)throw new Error(\\\"Cannot find square root: likely non-prime P\\\");if(n===1){let o=(t+ms)/jue;return function(a,c){let l=a.pow(c,o);if(!a.eql(a.sqr(l),c))throw new Error(\\\"Cannot find square root\\\");return l}}let s=(r+ms)/V2;return function(o,a){if(o.pow(a,e)===o.neg(o.ONE))throw new Error(\\\"Cannot find square root\\\");let c=n,l=o.pow(o.mul(o.ONE,i),r),d=o.pow(a,s),f=o.pow(a,r);for(;!o.eql(f,o.ONE);){if(o.eql(f,o.ZERO))return o.ZERO;let p=1;for(let m=o.sqr(f);p<c&&!o.eql(m,o.ONE);p++)m=o.sqr(m);let h=o.pow(l,ms<<BigInt(c-p-1));l=o.sqr(h),d=o.mul(d,h),f=o.mul(f,l),c=p}return d}}function Ajt(t){if(t%jue===Cjt){let e=(t+ms)/jue;return function(r,n){let i=r.pow(n,e);if(!r.eql(r.sqr(i),n))throw new Error(\\\"Cannot find square root\\\");return i}}if(t%fKe===dKe){let e=(t-dKe)/fKe;return function(r,n){let i=r.mul(n,V2),s=r.pow(i,e),o=r.mul(n,s),a=r.mul(r.mul(o,V2),s),c=r.mul(o,r.sub(a,r.ONE));if(!r.eql(r.sqr(c),n))throw new Error(\\\"Cannot find square root\\\");return c}}return Sjt(t)}function Ijt(t){let e={ORDER:\\\"bigint\\\",MASK:\\\"bigint\\\",BYTES:\\\"isSafeInteger\\\",BITS:\\\"isSafeInteger\\\"},r=Tjt.reduce((n,i)=>(n[i]=\\\"function\\\",n),e);return k4(t,r)}function Rjt(t,e,r){if(r<_o)throw new Error(\\\"invalid exponent, negatives unsupported\\\");if(r===_o)return t.ONE;if(r===ms)return e;let n=t.ONE,i=e;for(;r>_o;)r&ms&&(n=t.mul(n,i)),i=t.sqr(i),r>>=ms;return n}function Pjt(t,e){let r=new Array(e.length),n=e.reduce((s,o,a)=>t.is0(o)?s:(r[a]=s,t.mul(s,o)),t.ONE),i=t.inv(n);return e.reduceRight((s,o,a)=>t.is0(o)?s:(r[a]=t.mul(s,r[a]),t.mul(s,o)),i),r}function pZe(t,e){let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function hZe(t,e,r=!1,n={}){if(t<=_o)throw new Error(\\\"invalid field: expected ORDER > 0, got \\\"+t);let{nBitLength:i,nByteLength:s}=pZe(t,e);if(s>2048)throw new Error(\\\"invalid field: expected ORDER of <= 2048 bytes\\\");let o,a=Object.freeze({ORDER:t,isLE:r,BITS:i,BYTES:s,MASK:gde(i),ZERO:_o,ONE:ms,create:c=>Yc(c,t),isValid:c=>{if(typeof c!=\\\"bigint\\\")throw new Error(\\\"invalid field element: expected bigint, got \\\"+typeof c);return _o<=c&&c<t},is0:c=>c===_o,isOdd:c=>(c&ms)===ms,neg:c=>Yc(-c,t),eql:(c,l)=>c===l,sqr:c=>Yc(c*c,t),add:(c,l)=>Yc(c+l,t),sub:(c,l)=>Yc(c-l,t),mul:(c,l)=>Yc(c*l,t),pow:(c,l)=>Rjt(a,c,l),div:(c,l)=>Yc(c*Hue(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Hue(c,t),sqrt:n.sqrt||(c=>(o||(o=Ajt(t)),o(a,c))),invertBatch:c=>Pjt(a,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?s$(c,s):I4(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(\\\"Field.fromBytes: expected \\\"+s+\\\" bytes, got \\\"+c.length);return r?P7(c):W2(c)}});return Object.freeze(a)}function mZe(t){if(typeof t!=\\\"bigint\\\")throw new Error(\\\"field order must be bigint\\\");let e=t.toString(2).length;return Math.ceil(e/8)}function gZe(t){let e=mZe(t);return e+Math.ceil(e/2)}function Ojt(t,e,r=!1){let n=t.length,i=mZe(e),s=gZe(e);if(n<16||n<s||n>1024)throw new Error(\\\"expected \\\"+s+\\\"-1024 bytes of input, got \\\"+n);let o=r?P7(t):W2(t),a=Yc(o,e-ms)+ms;return r?s$(a,i):I4(a,i)}function Sue(t,e){let r=e.negate();return t?r:e}function yZe(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error(\\\"invalid window size, expected [1..\\\"+e+\\\"], got W=\\\"+t)}function Aue(t,e){yZe(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1);return{windows:r,windowSize:n}}function Njt(t,e){if(!Array.isArray(t))throw new Error(\\\"array expected\\\");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error(\\\"invalid point at index \\\"+n)})}function kjt(t,e){if(!Array.isArray(t))throw new Error(\\\"array of scalars expected\\\");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error(\\\"invalid scalar at index \\\"+n)})}function Iue(t){return bZe.get(t)||1}function Bjt(t,e){return{constTimeNegate:Sue,hasPrecomputes(r){return Iue(r)!==1},unsafeLadder(r,n,i=t.ZERO){let s=r;for(;n>pKe;)n&jz&&(i=i.add(s)),s=s.double(),n>>=jz;return i},precomputeWindow(r,n){let{windows:i,windowSize:s}=Aue(n,e),o=[],a=r,c=a;for(let l=0;l<i;l++){c=a,o.push(c);for(let d=1;d<s;d++)c=c.add(a),o.push(c);a=c.double()}return o},wNAF(r,n,i){let{windows:s,windowSize:o}=Aue(r,e),a=t.ZERO,c=t.BASE,l=BigInt(2**r-1),d=2**r,f=BigInt(r);for(let p=0;p<s;p++){let h=p*o,m=Number(i&l);i>>=f,m>o&&(m-=d,i+=jz);let g=h,w=h+Math.abs(m)-1,v=p%2!==0,b=m<0;m===0?c=c.add(Sue(v,n[g])):a=a.add(Sue(b,n[w]))}return{p:a,f:c}},wNAFUnsafe(r,n,i,s=t.ZERO){let{windows:o,windowSize:a}=Aue(r,e),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let f=0;f<o;f++){let p=f*a;if(i===pKe)break;let h=Number(i&c);if(i>>=d,h>a&&(h-=l,i+=jz),h===0)continue;let m=n[p+Math.abs(h)-1];h<0&&(m=m.negate()),s=s.add(m)}return s},getPrecomputes(r,n,i){let s=Tue.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&Tue.set(n,i(s))),s},wNAFCached(r,n,i){let s=Iue(r);return this.wNAF(s,this.getPrecomputes(s,r,i),n)},wNAFCachedUnsafe(r,n,i,s){let o=Iue(r);return o===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(o,this.getPrecomputes(o,r,i),n,s)},setWindowSize(r,n){yZe(n,e),bZe.set(r,n),Tue.delete(r)}}}function Mjt(t,e,r,n){if(Njt(r,t),kjt(n,e),r.length!==n.length)throw new Error(\\\"arrays of points and scalars must have equal length\\\");let i=t.ZERO,s=uZe(BigInt(r.length)),o=s>12?s-3:s>4?s-2:s?2:1,a=(1<<o)-1,c=new Array(a+1).fill(i),l=Math.floor((e.BITS-1)/o)*o,d=i;for(let f=l;f>=0;f-=o){c.fill(i);for(let h=0;h<n.length;h++){let m=n[h],g=Number(m>>BigInt(f)&BigInt(a));c[g]=c[g].add(r[h])}let p=i;for(let h=c.length-1,m=i;h>0;h--)m=m.add(c[h]),p=p.add(m);if(d=d.add(p),f!==0)for(let h=0;h<o;h++)d=d.double()}return d}function wZe(t){return Ijt(t.Fp),k4(t,{n:\\\"bigint\\\",h:\\\"bigint\\\",Gx:\\\"field\\\",Gy:\\\"field\\\"},{nBitLength:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\"}),Object.freeze({...pZe(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function Djt(t){return k4(t,{a:\\\"bigint\\\"},{montgomeryBits:\\\"isSafeInteger\\\",nByteLength:\\\"isSafeInteger\\\",adjustScalarBytes:\\\"function\\\",domain:\\\"function\\\",powPminus2:\\\"function\\\",Gu:\\\"bigint\\\"}),Object.freeze({...t})}function Ljt(t){let e=Djt(t),{P:r}=e,n=b=>Yc(b,r),i=e.montgomeryBits,s=Math.ceil(i/8),o=e.nByteLength,a=e.adjustScalarBytes||(b=>b),c=e.powPminus2||(b=>fZe(b,r-BigInt(2),r));function l(b,_,S){let T=n(b*(_-S));return _=n(_-T),S=n(S+T),[_,S]}let d=(e.a-BigInt(2))/BigInt(4);function f(b,_){N0(\\\"u\\\",b,v4,r),N0(\\\"scalar\\\",_,v4,r);let S=_,T=b,N=Rue,O=v4,L=b,B=Rue,H=v4,M;for(let R=BigInt(i-1);R>=v4;R--){let y=S>>R&Rue;H^=y,M=l(H,N,L),N=M[0],L=M[1],M=l(H,O,B),O=M[0],B=M[1],H=y;let E=N+O,C=n(E*E),I=N-O,P=n(I*I),k=C-P,U=L+B,D=L-B,A=n(D*E),j=n(U*I),K=A+j,J=A-j;L=n(K*K),B=n(T*n(J*J)),N=n(C*P),O=n(k*(C+n(d*k)))}M=l(H,N,L),N=M[0],L=M[1],M=l(H,O,B),O=M[0],B=M[1];let F=c(O);return n(N*F)}function p(b){return s$(n(b),s)}function h(b){let _=Wl(\\\"u coordinate\\\",b,s);return o===32&&(_[31]&=127),P7(_)}function m(b){let _=Wl(\\\"scalar\\\",b),S=_.length;if(S!==s&&S!==o){let T=\\\"\\\"+s+\\\" or \\\"+o;throw new Error(\\\"invalid scalar, expected \\\"+T+\\\" bytes, got \\\"+S)}return P7(a(_))}function g(b,_){let S=h(_),T=m(b),N=f(S,T);if(N===v4)throw new Error(\\\"invalid private or public key received\\\");return p(N)}let w=p(e.Gu);function v(b){return g(b,w)}return{scalarMult:g,scalarMultBase:v,getSharedSecret:(b,_)=>g(b,_),getPublicKey:b=>v(b),utils:{randomPrivateKey:()=>e.randomBytes(e.nByteLength)},GuBytes:w}}function Hjt(t){let e=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),s=que,o=t*t%s*t%s,a=Tf(o,hKe,s)*o%s,c=Tf(a,Ujt,s)*t%s,l=Tf(c,jjt,s)*c%s,d=Tf(l,e,s)*l%s,f=Tf(d,r,s)*d%s,p=Tf(f,n,s)*f%s,h=Tf(p,i,s)*p%s,m=Tf(h,i,s)*p%s,g=Tf(m,e,s)*l%s;return{pow_p_5_8:Tf(g,hKe,s)*t%s,b2:o}}function qjt(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function mKe(t){t.lowS!==void 0&&S4(\\\"lowS\\\",t.lowS),t.prehash!==void 0&&S4(\\\"prehash\\\",t.prehash)}function zjt(t){let e=wZe(t);k4(e,{a:\\\"field\\\",b:\\\"field\\\"},{allowedPrivateKeyLengths:\\\"array\\\",wrapPrivateKey:\\\"boolean\\\",isTorsionFree:\\\"function\\\",clearCofactor:\\\"function\\\",allowInfinityPoint:\\\"boolean\\\",fromBytes:\\\"function\\\",toBytes:\\\"function\\\"});let{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw new Error(\\\"invalid endomorphism, can only be defined for Koblitz curves that have a=0\\\");if(typeof r!=\\\"object\\\"||typeof r.beta!=\\\"bigint\\\"||typeof r.splitScalar!=\\\"function\\\")throw new Error(\\\"invalid endomorphism, expected beta: bigint and splitScalar: function\\\")}return Object.freeze({...e})}function Wjt(t){let e=zjt(t),{Fp:r}=e,n=hZe(e.n,e.nBitLength),i=e.toBytes||((g,w,v)=>{let b=w.toAffine();return O7(Uint8Array.from([4]),r.toBytes(b.x),r.toBytes(b.y))}),s=e.fromBytes||(g=>{let w=g.subarray(1),v=r.fromBytes(w.subarray(0,r.BYTES)),b=r.fromBytes(w.subarray(r.BYTES,2*r.BYTES));return{x:v,y:b}});function o(g){let{a:w,b:v}=e,b=r.sqr(g),_=r.mul(b,g);return r.add(r.add(_,r.mul(g,w)),v)}if(!r.eql(r.sqr(e.Gy),o(e.Gx)))throw new Error(\\\"bad generator point: equation left != right\\\");function a(g){return o$(g,Eo,e.n)}function c(g){let{allowedPrivateKeyLengths:w,nByteLength:v,wrapPrivateKey:b,n:_}=e;if(w&&typeof g!=\\\"bigint\\\"){if(G2(g)&&(g=A4(g)),typeof g!=\\\"string\\\"||!w.includes(g.length))throw new Error(\\\"invalid private key\\\");g=g.padStart(v*2,\\\"0\\\")}let S;try{S=typeof g==\\\"bigint\\\"?g:W2(Wl(\\\"private key\\\",g,v))}catch{throw new Error(\\\"invalid private key, expected hex or \\\"+v+\\\" bytes, got \\\"+typeof g)}return b&&(S=Yc(S,_)),N0(\\\"private key\\\",S,Eo,_),S}function l(g){if(!(g instanceof p))throw new Error(\\\"ProjectivePoint expected\\\")}let d=Fue((g,w)=>{let{px:v,py:b,pz:_}=g;if(r.eql(_,r.ONE))return{x:v,y:b};let S=g.is0();w==null&&(w=S?r.ONE:r.inv(_));let T=r.mul(v,w),N=r.mul(b,w),O=r.mul(_,w);if(S)return{x:r.ZERO,y:r.ZERO};if(!r.eql(O,r.ONE))throw new Error(\\\"invZ was invalid\\\");return{x:T,y:N}}),f=Fue(g=>{if(g.is0()){if(e.allowInfinityPoint&&!r.is0(g.py))return;throw new Error(\\\"bad point: ZERO\\\")}let{x:w,y:v}=g.toAffine();if(!r.isValid(w)||!r.isValid(v))throw new Error(\\\"bad point: x or y not FE\\\");let b=r.sqr(v),_=o(w);if(!r.eql(b,_))throw new Error(\\\"bad point: equation left != right\\\");if(!g.isTorsionFree())throw new Error(\\\"bad point: not in prime-order subgroup\\\");return!0});class p{constructor(w,v,b){if(this.px=w,this.py=v,this.pz=b,w==null||!r.isValid(w))throw new Error(\\\"x required\\\");if(v==null||!r.isValid(v))throw new Error(\\\"y required\\\");if(b==null||!r.isValid(b))throw new Error(\\\"z required\\\");Object.freeze(this)}static fromAffine(w){let{x:v,y:b}=w||{};if(!w||!r.isValid(v)||!r.isValid(b))throw new Error(\\\"invalid affine point\\\");if(w instanceof p)throw new Error(\\\"projective point not allowed\\\");let _=S=>r.eql(S,r.ZERO);return _(v)&&_(b)?p.ZERO:new p(v,b,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(w){let v=r.invertBatch(w.map(b=>b.pz));return w.map((b,_)=>b.toAffine(v[_])).map(p.fromAffine)}static fromHex(w){let v=p.fromAffine(s(Wl(\\\"pointHex\\\",w)));return v.assertValidity(),v}static fromPrivateKey(w){return p.BASE.multiply(c(w))}static msm(w,v){return Mjt(p,n,w,v)}_setWindowSize(w){m.setWindowSize(this,w)}assertValidity(){f(this)}hasEvenY(){let{y:w}=this.toAffine();if(r.isOdd)return!r.isOdd(w);throw new Error(\\\"Field doesn't support isOdd\\\")}equals(w){l(w);let{px:v,py:b,pz:_}=this,{px:S,py:T,pz:N}=w,O=r.eql(r.mul(v,N),r.mul(S,_)),L=r.eql(r.mul(b,N),r.mul(T,_));return O&&L}negate(){return new p(this.px,r.neg(this.py),this.pz)}double(){let{a:w,b:v}=e,b=r.mul(v,gKe),{px:_,py:S,pz:T}=this,N=r.ZERO,O=r.ZERO,L=r.ZERO,B=r.mul(_,_),H=r.mul(S,S),M=r.mul(T,T),F=r.mul(_,S);return F=r.add(F,F),L=r.mul(_,T),L=r.add(L,L),N=r.mul(w,L),O=r.mul(b,M),O=r.add(N,O),N=r.sub(H,O),O=r.add(H,O),O=r.mul(N,O),N=r.mul(F,N),L=r.mul(b,L),M=r.mul(w,M),F=r.sub(B,M),F=r.mul(w,F),F=r.add(F,L),L=r.add(B,B),B=r.add(L,B),B=r.add(B,M),B=r.mul(B,F),O=r.add(O,B),M=r.mul(S,T),M=r.add(M,M),B=r.mul(M,F),N=r.sub(N,B),L=r.mul(M,H),L=r.add(L,L),L=r.add(L,L),new p(N,O,L)}add(w){l(w);let{px:v,py:b,pz:_}=this,{px:S,py:T,pz:N}=w,O=r.ZERO,L=r.ZERO,B=r.ZERO,H=e.a,M=r.mul(e.b,gKe),F=r.mul(v,S),R=r.mul(b,T),y=r.mul(_,N),E=r.add(v,b),C=r.add(S,T);E=r.mul(E,C),C=r.add(F,R),E=r.sub(E,C),C=r.add(v,_);let I=r.add(S,N);return C=r.mul(C,I),I=r.add(F,y),C=r.sub(C,I),I=r.add(b,_),O=r.add(T,N),I=r.mul(I,O),O=r.add(R,y),I=r.sub(I,O),B=r.mul(H,C),O=r.mul(M,y),B=r.add(O,B),O=r.sub(R,B),B=r.add(R,B),L=r.mul(O,B),R=r.add(F,F),R=r.add(R,F),y=r.mul(H,y),C=r.mul(M,C),R=r.add(R,y),y=r.sub(F,y),y=r.mul(H,y),C=r.add(C,y),F=r.mul(R,C),L=r.add(L,F),F=r.mul(I,C),O=r.mul(E,O),O=r.sub(O,F),F=r.mul(E,R),B=r.mul(I,B),B=r.add(B,F),new p(O,L,B)}subtract(w){return this.add(w.negate())}is0(){return this.equals(p.ZERO)}wNAF(w){return m.wNAFCached(this,w,p.normalizeZ)}multiplyUnsafe(w){let{endo:v,n:b}=e;N0(\\\"scalar\\\",w,O0,b);let _=p.ZERO;if(w===O0)return _;if(this.is0()||w===Eo)return this;if(!v||m.hasPrecomputes(this))return m.wNAFCachedUnsafe(this,w,p.normalizeZ);let{k1neg:S,k1:T,k2neg:N,k2:O}=v.splitScalar(w),L=_,B=_,H=this;for(;T>O0||O>O0;)T&Eo&&(L=L.add(H)),O&Eo&&(B=B.add(H)),H=H.double(),T>>=Eo,O>>=Eo;return S&&(L=L.negate()),N&&(B=B.negate()),B=new p(r.mul(B.px,v.beta),B.py,B.pz),L.add(B)}multiply(w){let{endo:v,n:b}=e;N0(\\\"scalar\\\",w,Eo,b);let _,S;if(v){let{k1neg:T,k1:N,k2neg:O,k2:L}=v.splitScalar(w),{p:B,f:H}=this.wNAF(N),{p:M,f:F}=this.wNAF(L);B=m.constTimeNegate(T,B),M=m.constTimeNegate(O,M),M=new p(r.mul(M.px,v.beta),M.py,M.pz),_=B.add(M),S=H.add(F)}else{let{p:T,f:N}=this.wNAF(w);_=T,S=N}return p.normalizeZ([_,S])[0]}multiplyAndAddUnsafe(w,v,b){let _=p.BASE,S=(N,O)=>O===O0||O===Eo||!N.equals(_)?N.multiplyUnsafe(O):N.multiply(O),T=S(this,v).add(S(w,b));return T.is0()?void 0:T}toAffine(w){return d(this,w)}isTorsionFree(){let{h:w,isTorsionFree:v}=e;if(w===Eo)return!0;if(v)return v(p,this);throw new Error(\\\"isTorsionFree() has not been declared for the elliptic curve\\\")}clearCofactor(){let{h:w,clearCofactor:v}=e;return w===Eo?this:v?v(p,this):this.multiplyUnsafe(e.h)}toRawBytes(w=!0){return S4(\\\"isCompressed\\\",w),this.assertValidity(),i(p,this,w)}toHex(w=!0){return S4(\\\"isCompressed\\\",w),A4(this.toRawBytes(w))}}p.BASE=new p(e.Gx,e.Gy,r.ONE),p.ZERO=new p(r.ZERO,r.ONE,r.ZERO);let h=e.nBitLength,m=Bjt(p,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:o,isWithinCurveOrder:a}}function Gjt(t){let e=wZe(t);return k4(e,{hash:\\\"hash\\\",hmac:\\\"function\\\",randomBytes:\\\"function\\\"},{bits2int:\\\"function\\\",bits2int_modN:\\\"function\\\",lowS:\\\"boolean\\\"}),Object.freeze({lowS:!0,...e})}function Kjt(t){let e=Gjt(t),{Fp:r,n}=e,i=r.BYTES+1,s=2*r.BYTES+1;function o(y){return Yc(y,n)}function a(y){return Hue(y,n)}let{ProjectivePoint:c,normPrivateKeyToScalar:l,weierstrassEquation:d,isWithinCurveOrder:f}=Wjt({...e,toBytes(y,E,C){let I=E.toAffine(),P=r.toBytes(I.x),k=O7;return S4(\\\"isCompressed\\\",C),C?k(Uint8Array.from([E.hasEvenY()?2:3]),P):k(Uint8Array.from([4]),P,r.toBytes(I.y))},fromBytes(y){let E=y.length,C=y[0],I=y.subarray(1);if(E===i&&(C===2||C===3)){let P=W2(I);if(!o$(P,Eo,r.ORDER))throw new Error(\\\"Point is not on curve\\\");let k=d(P),U;try{U=r.sqrt(k)}catch(A){let j=A instanceof Error?\\\": \\\"+A.message:\\\"\\\";throw new Error(\\\"Point is not on curve\\\"+j)}let D=(U&Eo)===Eo;return(C&1)===1!==D&&(U=r.neg(U)),{x:P,y:U}}else if(E===s&&C===4){let P=r.fromBytes(I.subarray(0,r.BYTES)),k=r.fromBytes(I.subarray(r.BYTES,2*r.BYTES));return{x:P,y:k}}else{let P=i,k=s;throw new Error(\\\"invalid Point, expected length of \\\"+P+\\\", or uncompressed \\\"+k+\\\", got \\\"+E)}}}),p=y=>A4(I4(y,e.nByteLength));function h(y){let E=n>>Eo;return y>E}function m(y){return h(y)?o(-y):y}let g=(y,E,C)=>W2(y.slice(E,C));class w{constructor(E,C,I){this.r=E,this.s=C,this.recovery=I,this.assertValidity()}static fromCompact(E){let C=e.nByteLength;return E=Wl(\\\"compactSignature\\\",E,C*2),new w(g(E,0,C),g(E,C,2*C))}static fromDER(E){let{r:C,s:I}=P0.toSig(Wl(\\\"DER\\\",E));return new w(C,I)}assertValidity(){N0(\\\"r\\\",this.r,Eo,n),N0(\\\"s\\\",this.s,Eo,n)}addRecoveryBit(E){return new w(this.r,this.s,E)}recoverPublicKey(E){let{r:C,s:I,recovery:P}=this,k=N(Wl(\\\"msgHash\\\",E));if(P==null||![0,1,2,3].includes(P))throw new Error(\\\"recovery id invalid\\\");let U=P===2||P===3?C+e.n:C;if(U>=r.ORDER)throw new Error(\\\"recovery id 2 or 3 invalid\\\");let D=(P&1)===0?\\\"02\\\":\\\"03\\\",A=c.fromHex(D+p(U)),j=a(U),K=o(-k*j),J=o(I*j),X=c.BASE.multiplyAndAddUnsafe(A,K,J);if(!X)throw new Error(\\\"point at infinify\\\");return X.assertValidity(),X}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return T4(this.toDERHex())}toDERHex(){return P0.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return T4(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}let v={isValidPrivateKey(y){try{return l(y),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let y=gZe(e.n);return Ojt(e.randomBytes(y),e.n)},precompute(y=8,E=c.BASE){return E._setWindowSize(y),E.multiply(BigInt(3)),E}};function b(y,E=!0){return c.fromPrivateKey(y).toRawBytes(E)}function _(y){let E=G2(y),C=typeof y==\\\"string\\\",I=(E||C)&&y.length;return E?I===i||I===s:C?I===2*i||I===2*s:y instanceof c}function S(y,E,C=!0){if(_(y))throw new Error(\\\"first arg must be private key\\\");if(!_(E))throw new Error(\\\"second arg must be public key\\\");return c.fromHex(E).multiply(l(y)).toRawBytes(C)}let T=e.bits2int||function(y){if(y.length>8192)throw new Error(\\\"input is too large\\\");let E=W2(y),C=y.length*8-e.nBitLength;return C>0?E>>BigInt(C):E},N=e.bits2int_modN||function(y){return o(T(y))},O=gde(e.nBitLength);function L(y){return N0(\\\"num < 2^\\\"+e.nBitLength,y,O0,O),I4(y,e.nByteLength)}function B(y,E,C=H){if([\\\"recovered\\\",\\\"canonical\\\"].some(fe=>fe in C))throw new Error(\\\"sign() legacy options not supported\\\");let{hash:I,randomBytes:P}=e,{lowS:k,prehash:U,extraEntropy:D}=C;k==null&&(k=!0),y=Wl(\\\"msgHash\\\",y),mKe(C),U&&(y=Wl(\\\"prehashed msgHash\\\",I(y)));let A=N(y),j=l(E),K=[L(j),L(A)];if(D!=null&&D!==!1){let fe=D===!0?P(r.BYTES):D;K.push(Wl(\\\"extraEntropy\\\",fe))}let J=O7(...K),X=A;function re(fe){let ce=T(fe);if(!f(ce))return;let We=a(ce),Ue=c.BASE.multiply(ce).toAffine(),je=o(Ue.x);if(je===O0)return;let Lt=o(We*o(X+je*j));if(Lt===O0)return;let pt=(Ue.x===je?0:2)|Number(Ue.y&Eo),Ct=Lt;return k&&h(Lt)&&(Ct=m(Lt),pt^=1),new w(je,Ct,pt)}return{seed:J,k2sig:re}}let H={lowS:e.lowS,prehash:!1},M={lowS:e.lowS,prehash:!1};function F(y,E,C=H){let{seed:I,k2sig:P}=B(y,E,C),k=e;return dZe(k.hash.outputLen,k.nByteLength,k.hmac)(I,P)}c.BASE._setWindowSize(8);function R(y,E,C,I=M){let P=y;E=Wl(\\\"msgHash\\\",E),C=Wl(\\\"publicKey\\\",C);let{lowS:k,prehash:U,format:D}=I;if(mKe(I),\\\"strict\\\"in I)throw new Error(\\\"options.strict was renamed to lowS\\\");if(D!==void 0&&D!==\\\"compact\\\"&&D!==\\\"der\\\")throw new Error(\\\"format must be compact or der\\\");let A=typeof P==\\\"string\\\"||G2(P),j=!A&&!D&&typeof P==\\\"object\\\"&&P!==null&&typeof P.r==\\\"bigint\\\"&&typeof P.s==\\\"bigint\\\";if(!A&&!j)throw new Error(\\\"invalid signature, expected Uint8Array, hex string or Signature instance\\\");let K,J;try{if(j&&(K=new w(P.r,P.s)),A){try{D!==\\\"compact\\\"&&(K=w.fromDER(P))}catch(Lt){if(!(Lt instanceof P0.Err))throw Lt}!K&&D!==\\\"der\\\"&&(K=w.fromCompact(P))}J=c.fromHex(C)}catch{return!1}if(!K||k&&K.hasHighS())return!1;U&&(E=e.hash(E));let{r:X,s:re}=K,fe=N(E),ce=a(re),We=o(fe*ce),Ue=o(X*ce),je=c.BASE.multiplyAndAddUnsafe(J,We,Ue)?.toAffine();return je?o(je.x)===X:!1}return{CURVE:e,getPublicKey:b,getSharedSecret:S,sign:F,verify:R,ProjectivePoint:c,Signature:w,utils:v}}function Zjt(t){return{hash:t,hmac:(e,...r)=>r$(t,e,gFt(...r)),randomBytes:O4}}function Qjt(t,e){let r=n=>Kjt({...t,...Zjt(n)});return{...r(e),create:r}}function vde(){let t=zue.utils.randomPrivateKey(),e=zue.getPublicKey(t);return{privateKey:yr(t,ra),publicKey:yr(e,ra)}}function H7(){let t=O4(wde);return yr(t,ra)}function xde(t,e){let r=zue.getSharedSecret(pn(t,ra),pn(e,ra)),n=ljt(F7,r,void 0,void 0,wde);return yr(n,ra)}function J2(t){let e=F7(pn(t,ra));return yr(e,ra)}function Kl(t){let e=F7(pn(t,B4));return yr(e,ra)}function Ede(t){return pn(`${t}`,yde)}function B0(t){return Number(yr(t,yde))}function xZe(t){return t.replace(/\\\\+/g,\\\"-\\\").replace(/\\\\//g,\\\"_\\\").replace(/=/g,\\\"\\\")}function EZe(t){let e=t.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\"),r=(4-e.length%4)%4;return e+\\\"=\\\".repeat(r)}function _de(t){let e=Ede(typeof t.type<\\\"u\\\"?t.type:bde);if(B0(e)===md&&typeof t.senderPublicKey>\\\"u\\\")throw new Error(\\\"Missing sender public key for type 1 envelope\\\");let r=typeof t.senderPublicKey<\\\"u\\\"?pn(t.senderPublicKey,ra):void 0,n=typeof t.iv<\\\"u\\\"?pn(t.iv,ra):O4(T7),i=pn(t.symKey,ra),s=lZe(i,n).encrypt(pn(t.message,B4)),o=Tde({type:e,sealed:s,iv:n,senderPublicKey:r});return t.encoding===xh?xZe(o):o}function Cde(t){let e=pn(t.symKey,ra),{sealed:r,iv:n}=Y2({encoded:t.encoded,encoding:t.encoding}),i=lZe(e,n).decrypt(r);if(i===null)throw new Error(\\\"Failed to decrypt\\\");return yr(i,B4)}function Sde(t,e){let r=Ede(Q2),n=O4(T7),i=pn(t,B4),s=Tde({type:r,sealed:i,iv:n});return e===xh?xZe(s):s}function Ade(t,e){let{sealed:r}=Y2({encoded:t,encoding:e});return yr(r,B4)}function Tde(t){if(B0(t.type)===Q2)return yr(kl([t.type,t.sealed]),Xc);if(B0(t.type)===md){if(typeof t.senderPublicKey>\\\"u\\\")throw new Error(\\\"Missing sender public key for type 1 envelope\\\");return yr(kl([t.type,t.senderPublicKey,t.iv,t.sealed]),Xc)}return yr(kl([t.type,t.iv,t.sealed]),Xc)}function Y2(t){let e=(t.encoding||Xc)===xh?EZe(t.encoded):t.encoded,r=pn(e,Xc),n=r.slice(eHt,yKe),i=yKe;if(B0(n)===md){let c=i+wde,l=c+T7,d=r.slice(i,c),f=r.slice(c,l),p=r.slice(l);return{type:n,sealed:p,iv:f,senderPublicKey:d}}if(B0(n)===Q2){let c=r.slice(i),l=O4(T7);return{type:n,sealed:c,iv:l}}let s=i+T7,o=r.slice(i,s),a=r.slice(s);return{type:n,sealed:a,iv:o}}function Ide(t,e){let r=Y2({encoded:t,encoding:e?.encoding});return a$({type:B0(r.type),senderPublicKey:typeof r.senderPublicKey<\\\"u\\\"?yr(r.senderPublicKey,ra):void 0,receiverPublicKey:e?.receiverPublicKey})}function a$(t){let e=t?.type||bde;if(e===md){if(typeof t?.senderPublicKey>\\\"u\\\")throw new Error(\\\"missing sender public key\\\");if(typeof t?.receiverPublicKey>\\\"u\\\")throw new Error(\\\"missing receiver public key\\\")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function c$(t){return t.type===md&&typeof t.senderPublicKey==\\\"string\\\"&&typeof t.receiverPublicKey==\\\"string\\\"}function l$(t){return t.type===Q2}function _Ze(t){let e=globalThis.Buffer.from(t.x,\\\"base64\\\"),r=globalThis.Buffer.from(t.y,\\\"base64\\\");return kl([new Uint8Array([4]),e,r])}function Rde(t,e){let[r,n,i]=t.split(\\\".\\\"),s=globalThis.Buffer.from(EZe(i),\\\"base64\\\");if(s.length!==64)throw new Error(\\\"Invalid signature length\\\");let o=s.slice(0,32),a=s.slice(32,64),c=`${r}.${n}`,l=F7(c),d=_Ze(e);if(!Xjt.verify(kl([o,a]),l,d))throw new Error(\\\"Invalid signature\\\");return Qp(t).payload}function M4(t){return t?.relay||{protocol:CZe}}function X2(t){let e=FH[t];if(typeof e>\\\"u\\\")throw new Error(`Relay Protocol not supported: ${t}`);return e}function SZe(t,e=\\\"-\\\"){let r={},n=\\\"relay\\\"+e;return Object.keys(t).forEach(i=>{if(i.startsWith(n)){let s=i.replace(n,\\\"\\\"),o=t[i];r[s]=o}}),r}function u$(t){if(!t.includes(\\\"wc:\\\")){let l=ide(t);l!=null&&l.includes(\\\"wc:\\\")&&(t=l)}t=t.includes(\\\"wc://\\\")?t.replace(\\\"wc://\\\",\\\"\\\"):t,t=t.includes(\\\"wc:\\\")?t.replace(\\\"wc:\\\",\\\"\\\"):t;let e=t.indexOf(\\\":\\\"),r=t.indexOf(\\\"?\\\")!==-1?t.indexOf(\\\"?\\\"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split(\\\"@\\\"),s=typeof r<\\\"u\\\"?t.substring(r):\\\"\\\",o=new URLSearchParams(s),a={};o.forEach((l,d)=>{a[d]=l});let c=typeof a.methods==\\\"string\\\"?a.methods.split(\\\",\\\"):void 0;return{protocol:n,topic:AZe(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:SZe(a),methods:c,expiryTimestamp:a.expiryTimestamp?parseInt(a.expiryTimestamp,10):void 0}}function AZe(t){return t.startsWith(\\\"//\\\")?t.substring(2):t}function TZe(t,e=\\\"-\\\"){let r=\\\"relay\\\",n={};return Object.keys(t).forEach(i=>{let s=i,o=r+e+s;t[s]&&(n[o]=t[s])}),n}function d$(t){let e=new URLSearchParams,r=TZe(t.relay);Object.keys(r).sort().forEach(i=>{e.set(i,r[i])}),e.set(\\\"symKey\\\",t.symKey),t.expiryTimestamp&&e.set(\\\"expiryTimestamp\\\",t.expiryTimestamp.toString()),t.methods&&e.set(\\\"methods\\\",t.methods.join(\\\",\\\"));let n=e.toString();return`${t.protocol}:${t.topic}@${t.version}?${n}`}function D4(t,e,r){return`${t}?wc_ev=${r}&topic=${e}`}function ex(t){let e=[];return t.forEach(r=>{let[n,i]=r.split(\\\":\\\");e.push(`${n}:${i}`)}),e}function IZe(t){let e=[];return Object.values(t).forEach(r=>{e.push(...ex(r.accounts))}),e}function RZe(t,e){let r=[];return Object.values(t).forEach(n=>{ex(n.accounts).includes(e)&&r.push(...n.methods)}),r}function PZe(t,e){let r=[];return Object.values(t).forEach(n=>{ex(n.accounts).includes(e)&&r.push(...n.events)}),r}function cHt(t,e){let r=L4(t,e);if(r)throw new Error(r.message);let n={};for(let[i,s]of Object.entries(t))n[i]={methods:s.methods,events:s.events,chains:s.accounts.map(o=>`${o.split(\\\":\\\")[0]}:${o.split(\\\":\\\")[1]}`)};return n}function lHt(t){let{proposal:{requiredNamespaces:e,optionalNamespaces:r={}},supportedNamespaces:n}=t,i=N7(e),s=N7(r),o={};Object.keys(n).forEach(l=>{let d=n[l].chains,f=n[l].methods,p=n[l].events,h=n[l].accounts;d.forEach(m=>{if(!h.some(g=>g.includes(m)))throw new Error(`No accounts provided for chain ${m} in namespace ${l}`)}),o[l]={chains:d,methods:f,events:p,accounts:h}});let a=q7(e,o,\\\"approve()\\\");if(a)throw new Error(a.message);let c={};return!Object.keys(e).length&&!Object.keys(r).length?o:(Object.keys(i).forEach(l=>{let d=n[l].chains.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.chains)==null?void 0:w.includes(m)}),f=n[l].methods.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.methods)==null?void 0:w.includes(m)}),p=n[l].events.filter(m=>{var g,w;return(w=(g=i[l])==null?void 0:g.events)==null?void 0:w.includes(m)}),h=d.map(m=>n[l].accounts.filter(g=>g.includes(`${m}:`))).flat();c[l]={chains:d,methods:f,events:p,accounts:h}}),Object.keys(s).forEach(l=>{var d,f,p,h,m,g;if(!n[l])return;let w=(f=(d=s[l])==null?void 0:d.chains)==null?void 0:f.filter(S=>n[l].chains.includes(S)),v=n[l].methods.filter(S=>{var T,N;return(N=(T=s[l])==null?void 0:T.methods)==null?void 0:N.includes(S)}),b=n[l].events.filter(S=>{var T,N;return(N=(T=s[l])==null?void 0:T.events)==null?void 0:N.includes(S)}),_=w?.map(S=>n[l].accounts.filter(T=>T.includes(`${S}:`))).flat();c[l]={chains:pd((p=c[l])==null?void 0:p.chains,w),methods:pd((h=c[l])==null?void 0:h.methods,v),events:pd((m=c[l])==null?void 0:m.events,b),accounts:pd((g=c[l])==null?void 0:g.accounts,_)}}),c)}function Pde(t){return t.includes(\\\":\\\")}function OZe(t){return Pde(t)?t.split(\\\":\\\")[0]:t}function N7(t){var e,r,n;let i={};if(!rx(t))return i;for(let[s,o]of Object.entries(t)){let a=Pde(s)?[s]:o.chains,c=o.methods||[],l=o.events||[],d=OZe(s);i[d]=aHt(oHt({},i[d]),{chains:pd(a,(e=i[d])==null?void 0:e.chains),methods:pd(c,(r=i[d])==null?void 0:r.methods),events:pd(l,(n=i[d])==null?void 0:n.events)})}return i}function NZe(t){let e={};return t?.forEach(r=>{var n;let[i,s]=r.split(\\\":\\\");e[i]||(e[i]={accounts:[],chains:[],events:[],methods:[]}),e[i].accounts.push(r),(n=e[i].chains)==null||n.push(`${i}:${s}`)}),e}function f$(t,e){e=e.map(n=>n.replace(\\\"did:pkh:\\\",\\\"\\\"));let r=NZe(e);for(let[n,i]of Object.entries(r))i.methods?i.methods=pd(i.methods,t):i.methods=t,i.events=[\\\"chainChanged\\\",\\\"accountsChanged\\\"];return r}function Ode(t,e){var r,n,i,s,o,a;let c=N7(t),l=N7(e),d={},f=Object.keys(c).concat(Object.keys(l));for(let p of f)d[p]={chains:pd((r=c[p])==null?void 0:r.chains,(n=l[p])==null?void 0:n.chains),methods:pd((i=c[p])==null?void 0:i.methods,(s=l[p])==null?void 0:s.methods),events:pd((o=c[p])==null?void 0:o.events,(a=l[p])==null?void 0:a.events)};return d}function Se(t,e){let{message:r,code:n}=BZe[t];return{message:e?`${r} ${e}`:r,code:n}}function Jr(t,e){let{message:r,code:n}=kZe[t];return{message:e?`${r} ${e}`:r,code:n}}function tx(t,e){return Array.isArray(t)?typeof e<\\\"u\\\"&&t.length?t.every(e):!0:!1}function rx(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function Bs(t){return typeof t>\\\"u\\\"}function Hi(t,e){return e&&Bs(t)?!0:typeof t==\\\"string\\\"&&!!t.trim().length}function p$(t,e){return e&&Bs(t)?!0:typeof t==\\\"number\\\"&&!isNaN(t)}function Nde(t,e){let{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r),s=!0;return j1(i,n)?(n.forEach(o=>{let{accounts:a,methods:c,events:l}=t.namespaces[o],d=ex(a),f=r[o];(!j1($z(o,f),d)||!j1(f.methods,c)||!j1(f.events,l))&&(s=!1)}),s):!1}function k7(t){return Hi(t,!1)&&t.includes(\\\":\\\")?t.split(\\\":\\\").length===2:!1}function MZe(t){if(Hi(t,!1)&&t.includes(\\\":\\\")){let e=t.split(\\\":\\\");if(e.length===3){let r=e[0]+\\\":\\\"+e[1];return!!e[2]&&k7(r)}}return!1}function kde(t){function e(r){try{return typeof new URL(r)<\\\"u\\\"}catch{return!1}}try{if(Hi(t,!1)){if(e(t))return!0;let r=ide(t);return e(r)}}catch{}return!1}function Bde(t){var e;return(e=t?.proposer)==null?void 0:e.publicKey}function Mde(t){return t?.topic}function Dde(t,e){let r=null;return Hi(t?.publicKey,!1)||(r=Se(\\\"MISSING_OR_INVALID\\\",`${e} controller public key should be a string`)),r}function Vue(t){let e=!0;return tx(t)?t.length&&(e=t.every(r=>Hi(r,!1))):e=!1,e}function DZe(t,e,r){let n=null;return tx(e)&&e.length?e.forEach(i=>{n||k7(i)||(n=Jr(\\\"UNSUPPORTED_CHAINS\\\",`${r}, chain ${i} should be a string and conform to \\\"namespace:chainId\\\" format`))}):k7(t)||(n=Jr(\\\"UNSUPPORTED_CHAINS\\\",`${r}, chains must be defined as \\\"namespace:chainId\\\" e.g. \\\"eip155:1\\\": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: [\\\"eip155:1\\\", \\\"eip155:5\\\"] }`)),n}function LZe(t,e,r){let n=null;return Object.entries(t).forEach(([i,s])=>{if(n)return;let o=DZe(i,$z(i,s),`${e} ${r}`);o&&(n=o)}),n}function UZe(t,e){let r=null;return tx(t)?t.forEach(n=>{r||MZe(n)||(r=Jr(\\\"UNSUPPORTED_ACCOUNTS\\\",`${e}, account ${n} should be a string and conform to \\\"namespace:chainId:address\\\" format`))}):r=Jr(\\\"UNSUPPORTED_ACCOUNTS\\\",`${e}, accounts should be an array of strings conforming to \\\"namespace:chainId:address\\\" format`),r}function FZe(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;let i=UZe(n?.accounts,`${e} namespace`);i&&(r=i)}),r}function jZe(t,e){let r=null;return Vue(t?.methods)?Vue(t?.events)||(r=Jr(\\\"UNSUPPORTED_EVENTS\\\",`${e}, events should be an array of strings or empty array for no events`)):r=Jr(\\\"UNSUPPORTED_METHODS\\\",`${e}, methods should be an array of strings or empty array for no methods`),r}function Lde(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;let i=jZe(n,`${e}, namespace`);i&&(r=i)}),r}function Ude(t,e,r){let n=null;if(t&&rx(t)){let i=Lde(t,e);i&&(n=i);let s=LZe(t,e,r);s&&(n=s)}else n=Se(\\\"MISSING_OR_INVALID\\\",`${e}, ${r} should be an object with data`);return n}function L4(t,e){let r=null;if(t&&rx(t)){let n=Lde(t,e);n&&(r=n);let i=FZe(t,e);i&&(r=i)}else r=Se(\\\"MISSING_OR_INVALID\\\",`${e}, namespaces should be an object with data`);return r}function h$(t){return Hi(t.protocol,!0)}function Fde(t,e){let r=!1;return e&&!t?r=!0:t&&tx(t)&&t.length&&t.forEach(n=>{r=h$(n)}),r}function jde(t){return typeof t==\\\"number\\\"}function na(t){return typeof t<\\\"u\\\"&&typeof t!==null}function Hde(t){return!(!t||typeof t!=\\\"object\\\"||!t.code||!p$(t.code,!1)||!t.message||!Hi(t.message,!1))}function qde(t){return!(Bs(t)||!Hi(t.method,!1))}function zde(t){return!(Bs(t)||Bs(t.result)&&Bs(t.error)||!p$(t.id,!1)||!Hi(t.jsonrpc,!1))}function $de(t){return!(Bs(t)||!Hi(t.name,!1))}function m$(t,e){return!(!k7(e)||!IZe(t).includes(e))}function Vde(t,e,r){return Hi(r,!1)?RZe(t,e).includes(r):!1}function Wde(t,e,r){return Hi(r,!1)?PZe(t,e).includes(r):!1}function q7(t,e,r){let n=null,i=uHt(t),s=dHt(e),o=Object.keys(i),a=Object.keys(s),c=vKe(Object.keys(t)),l=vKe(Object.keys(e)),d=c.filter(f=>!l.includes(f));return d.length&&(n=Se(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces keys don't satisfy requiredNamespaces.\\n      Required: ${d.toString()}\\n      Received: ${Object.keys(e).toString()}`)),j1(o,a)||(n=Se(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces chains don't satisfy required namespaces.\\n      Required: ${o.toString()}\\n      Approved: ${a.toString()}`)),Object.keys(e).forEach(f=>{if(!f.includes(\\\":\\\")||n)return;let p=ex(e[f].accounts);p.includes(f)||(n=Se(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces accounts don't satisfy namespace accounts for ${f}\\n        Required: ${f}\\n        Approved: ${p.toString()}`))}),o.forEach(f=>{n||(j1(i[f].methods,s[f].methods)?j1(i[f].events,s[f].events)||(n=Se(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces events don't satisfy namespace events for ${f}`)):n=Se(\\\"NON_CONFORMING_NAMESPACES\\\",`${r} namespaces methods don't satisfy namespace methods for ${f}`))}),n}function uHt(t){let e={};return Object.keys(t).forEach(r=>{var n;r.includes(\\\":\\\")?e[r]=t[r]:(n=t[r].chains)==null||n.forEach(i=>{e[i]={methods:t[r].methods,events:t[r].events}})}),e}function vKe(t){return[...new Set(t.map(e=>e.includes(\\\":\\\")?e.split(\\\":\\\")[0]:e))]}function dHt(t){let e={};return Object.keys(t).forEach(r=>{r.includes(\\\":\\\")?e[r]=t[r]:ex(t[r].accounts)?.forEach(i=>{e[i]={accounts:t[r].accounts.filter(s=>s.includes(`${i}:`)),methods:t[r].methods,events:t[r].events}})}),e}function Gde(t,e){return p$(t,!1)&&t<=e.max&&t>=e.min}function g$(){let t=Z2();return new Promise(e=>{switch(t){case uc.browser:e(HZe());break;case uc.reactNative:e(qZe());break;case uc.node:e(zZe());break;default:e(!0)}})}function HZe(){return z1()&&navigator?.onLine}async function qZe(){return bh()&&typeof globalThis<\\\"u\\\"&&globalThis!=null&&globalThis.NetInfo?(await globalThis?.NetInfo.fetch())?.isConnected:!0}function zZe(){return!0}function Kde(t){switch(Z2()){case uc.browser:$Ze(t);break;case uc.reactNative:VZe(t);break;case uc.node:break}}function $Ze(t){!bh()&&z1()&&(window.addEventListener(\\\"online\\\",()=>t(!0)),window.addEventListener(\\\"offline\\\",()=>t(!1)))}function VZe(t){bh()&&typeof globalThis<\\\"u\\\"&&globalThis!=null&&globalThis.NetInfo&&globalThis?.NetInfo.addEventListener(e=>t(e?.isConnected))}function Zde(){var t;return z1()&&(0,hd.getDocument)()?((t=(0,hd.getDocument)())==null?void 0:t.visibilityState)===\\\"visible\\\":!0}var k0,hd,xKe,zz,VUt,WUt,GUt,VGe,KUt,ZUt,WGe,GGe,QUt,TKe,uc,Hz,JUt,IKe,Kue,YUt,RKe,iFt,Uz,KGe,lFt,uFt,dFt,fFt,w4,ZGe,R7,zKe,$Ke,VKe,yFt,A7,bFt,wFt,vFt,xFt,EFt,_Ft,JGe,YGe,Nue,SFt,AFt,TFt,RFt,PFt,OFt,XGe,NFt,kFt,eKe,lde,ZKe,BFt,Qz,QKe,U7,N4,Yz,H1,jFt,HFt,VFt,aZe,GFt,KFt,ZFt,QFt,Fz,JFt,cZe,sKe,ta,Due,tjt,njt,ijt,oKe,sjt,ojt,lZe,qz,r$,Eue,cKe,ljt,Lue,pjt,U1,F1,Uue,F7,n$,i$,hjt,mjt,R0,_ue,gde,Cue,uKe,xjt,Ejt,_jt,_o,ms,V2,Cjt,jue,dKe,fKe,Tjt,pKe,jz,Tue,bZe,v4,Rue,que,Ujt,hKe,Fjt,jjt,zue,$jt,Vjt,$ue,P0,O0,Eo,gKe,vZe,Jjt,Yjt,Xjt,yde,ra,Xc,xh,B4,bde,md,Q2,eHt,yKe,T7,wde,CZe,tHt,rHt,nHt,bKe,iHt,sHt,wKe,oHt,aHt,kZe,BZe,Pue,M0,y$=x(()=>{u();Ise();k0=Me(u0()),hd=Me(gC()),xKe=Me(kse());un();xH();g2();B9();Boe();zz=\\\":\\\";VUt=Object.defineProperty,WUt=Object.defineProperties,GUt=Object.getOwnPropertyDescriptors,VGe=Object.getOwnPropertySymbols,KUt=Object.prototype.hasOwnProperty,ZUt=Object.prototype.propertyIsEnumerable,WGe=(t,e,r)=>e in t?VUt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,GGe=(t,e)=>{for(var r in e||(e={}))KUt.call(e,r)&&WGe(t,r,e[r]);if(VGe)for(var r of VGe(e))ZUt.call(e,r)&&WGe(t,r,e[r]);return t},QUt=(t,e)=>WUt(t,GUt(e)),TKe=\\\"ReactNative\\\",uc={reactNative:\\\"react-native\\\",node:\\\"node\\\",browser:\\\"browser\\\",unknown:\\\"unknown\\\"},Hz=\\\" \\\",JUt=\\\":\\\",IKe=\\\"/\\\",Kue=2,YUt=1e3,RKe=\\\"js\\\";iFt=t=>t;Uz=BigInt(2**32-1),KGe=BigInt(32);lFt=(t,e,r)=>t<<r|e>>>32-r,uFt=(t,e,r)=>e<<r|t>>>32-r,dFt=(t,e,r)=>e<<r-32|t>>>64-r,fFt=(t,e,r)=>t<<r-32|e>>>64-r,w4=typeof globalThis==\\\"object\\\"&&\\\"crypto\\\"in globalThis?globalThis.crypto:void 0;ZGe=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;R7=class{clone(){return this._cloneInto()}};zKe=[],$Ke=[],VKe=[],yFt=BigInt(0),A7=BigInt(1),bFt=BigInt(2),wFt=BigInt(7),vFt=BigInt(256),xFt=BigInt(113);for(let t=0,e=A7,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],zKe.push(2*(5*n+r)),$Ke.push((t+1)*(t+2)/2%64);let i=yFt;for(let s=0;s<7;s++)e=(e<<A7^(e>>wFt)*xFt)%vFt,e&bFt&&(i^=A7<<(A7<<BigInt(s))-A7);VKe.push(i)}[EFt,_Ft]=cFt(VKe,!0),JGe=(t,e,r)=>r>32?dFt(t,e,r):lFt(t,e,r),YGe=(t,e,r)=>r>32?fFt(t,e,r):uFt(t,e,r);Nue=class t extends R7{constructor(e,r,n,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,I7(n),0>=this.blockLen||this.blockLen>=200)throw new Error(\\\"Sha3 supports only keccak-f1600 function\\\");this.state=new Uint8Array(200),this.state32=pFt(this.state)}keccak(){ZGe||QGe(this.state32),CFt(this.state32,this.rounds),ZGe||QGe(this.state32),this.posOut=0,this.pos=0}update(e){E4(this);let{blockLen:r,state:n}=this;e=_4(e);let i=e.length;for(let s=0;s<i;){let o=Math.min(r-this.pos,i-s);for(let a=0;a<o;a++)n[this.pos++]^=e[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:r,pos:n,blockLen:i}=this;e[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){E4(this,!1),L7(e),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,s=e.length;i<s;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,s-i);e.set(r.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error(\\\"XOF is not possible for this instance\\\");return this.writeInto(e)}xof(e){return I7(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(HKe(e,this),this.finished)throw new Error(\\\"digest() was already called\\\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:r,suffix:n,outputLen:i,rounds:s,enableXOF:o}=this;return e||(e=new t(r,n,i,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}},SFt=(t,e,r)=>qKe(()=>new Nue(e,t,r)),AFt=SFt(1,136,256/8),TFt=\\\"https://rpc.walletconnect.org/v1\\\";RFt=Object.defineProperty,PFt=Object.defineProperties,OFt=Object.getOwnPropertyDescriptors,XGe=Object.getOwnPropertySymbols,NFt=Object.prototype.hasOwnProperty,kFt=Object.prototype.propertyIsEnumerable,eKe=(t,e,r)=>e in t?RFt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lde=(t,e)=>{for(var r in e||(e={}))NFt.call(e,r)&&eKe(t,r,e[r]);if(XGe)for(var r of XGe(e))kFt.call(e,r)&&eKe(t,r,e[r]);return t},ZKe=(t,e)=>PFt(t,OFt(e)),BFt=\\\"did:pkh:\\\",Qz=t=>t?.split(\\\":\\\"),QKe=t=>{let e=t&&Qz(t);if(e)return t.includes(BFt)?e[3]:e[1]},U7=t=>{let e=t&&Qz(t);if(e)return e[2]+\\\":\\\"+e[3]},N4=t=>{let e=t&&Qz(t);if(e)return e.pop()};Yz=(t,e)=>{let r=`${t.domain} wants you to sign in with your Ethereum account:`,n=N4(e);if(!t.aud&&!t.uri)throw new Error(\\\"Either `aud` or `uri` is required to construct the message\\\");let i=t.statement||void 0,s=`URI: ${t.aud||t.uri}`,o=`Version: ${t.version}`,a=`Chain ID: ${QKe(e)}`,c=`Nonce: ${t.nonce}`,l=`Issued At: ${t.iat}`,d=t.exp?`Expiration Time: ${t.exp}`:void 0,f=t.nbf?`Not Before: ${t.nbf}`:void 0,p=t.requestId?`Request ID: ${t.requestId}`:void 0,h=t.resources?`Resources:${t.resources.map(g=>`\\n- ${g}`).join(\\\"\\\")}`:void 0,m=$1(t.resources);if(m){let g=q1(m);i=hde(i,g)}return[r,n,\\\"\\\",i,\\\"\\\",s,o,a,c,l,d,f,p,h].filter(g=>g!=null).join(`\\n`)};H1=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),jFt=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),HFt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!HFt)throw new Error(\\\"Non little-endian hardware is not supported\\\");VFt=(t,e)=>{function r(n,...i){if(Gl(n),t.nonceLength!==void 0){let l=i[0];if(!l)throw new Error(\\\"nonce / iv required\\\");t.varSizeNonce?Gl(l):Gl(l,t.nonceLength)}let s=t.tagLength;s&&i[1]!==void 0&&Gl(i[1]);let o=e(n,...i),a=(l,d)=>{if(d!==void 0){if(l!==2)throw new Error(\\\"cipher output not supported\\\");Gl(d)}},c=!1;return{encrypt(l,d){if(c)throw new Error(\\\"cannot encrypt() twice with same key + nonce\\\");return c=!0,Gl(l),a(o.encrypt.length,d),o.encrypt(l,d)},decrypt(l,d){if(Gl(l),s&&l.length<s)throw new Error(\\\"invalid ciphertext length: smaller than tagLength=\\\"+s);return a(o.decrypt.length,d),o.decrypt(l,d)}}}return Object.assign(r,t),r};aZe=t=>Uint8Array.from(t.split(\\\"\\\").map(e=>e.charCodeAt(0))),GFt=aZe(\\\"expand 16-byte k\\\"),KFt=aZe(\\\"expand 32-byte k\\\"),ZFt=H1(GFt),QFt=H1(KFt);Fz=64,JFt=16,cZe=2**32-1,sKe=new Uint32Array;ta=(t,e)=>t[e++]&255|(t[e++]&255)<<8,Due=class{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=kue(e),Gl(e,32);let r=ta(e,0),n=ta(e,2),i=ta(e,4),s=ta(e,6),o=ta(e,8),a=ta(e,10),c=ta(e,12),l=ta(e,14);this.r[0]=r&8191,this.r[1]=(r>>>13|n<<3)&8191,this.r[2]=(n>>>10|i<<6)&7939,this.r[3]=(i>>>7|s<<9)&8191,this.r[4]=(s>>>4|o<<12)&255,this.r[5]=o>>>1&8190,this.r[6]=(o>>>14|a<<2)&8191,this.r[7]=(a>>>11|c<<5)&8065,this.r[8]=(c>>>8|l<<8)&8191,this.r[9]=l>>>5&127;for(let d=0;d<8;d++)this.pad[d]=ta(e,16+2*d)}process(e,r,n=!1){let i=n?0:2048,{h:s,r:o}=this,a=o[0],c=o[1],l=o[2],d=o[3],f=o[4],p=o[5],h=o[6],m=o[7],g=o[8],w=o[9],v=ta(e,r+0),b=ta(e,r+2),_=ta(e,r+4),S=ta(e,r+6),T=ta(e,r+8),N=ta(e,r+10),O=ta(e,r+12),L=ta(e,r+14),B=s[0]+(v&8191),H=s[1]+((v>>>13|b<<3)&8191),M=s[2]+((b>>>10|_<<6)&8191),F=s[3]+((_>>>7|S<<9)&8191),R=s[4]+((S>>>4|T<<12)&8191),y=s[5]+(T>>>1&8191),E=s[6]+((T>>>14|N<<2)&8191),C=s[7]+((N>>>11|O<<5)&8191),I=s[8]+((O>>>8|L<<8)&8191),P=s[9]+(L>>>5|i),k=0,U=k+B*a+H*(5*w)+M*(5*g)+F*(5*m)+R*(5*h);k=U>>>13,U&=8191,U+=y*(5*p)+E*(5*f)+C*(5*d)+I*(5*l)+P*(5*c),k+=U>>>13,U&=8191;let D=k+B*c+H*a+M*(5*w)+F*(5*g)+R*(5*m);k=D>>>13,D&=8191,D+=y*(5*h)+E*(5*p)+C*(5*f)+I*(5*d)+P*(5*l),k+=D>>>13,D&=8191;let A=k+B*l+H*c+M*a+F*(5*w)+R*(5*g);k=A>>>13,A&=8191,A+=y*(5*m)+E*(5*h)+C*(5*p)+I*(5*f)+P*(5*d),k+=A>>>13,A&=8191;let j=k+B*d+H*l+M*c+F*a+R*(5*w);k=j>>>13,j&=8191,j+=y*(5*g)+E*(5*m)+C*(5*h)+I*(5*p)+P*(5*f),k+=j>>>13,j&=8191;let K=k+B*f+H*d+M*l+F*c+R*a;k=K>>>13,K&=8191,K+=y*(5*w)+E*(5*g)+C*(5*m)+I*(5*h)+P*(5*p),k+=K>>>13,K&=8191;let J=k+B*p+H*f+M*d+F*l+R*c;k=J>>>13,J&=8191,J+=y*a+E*(5*w)+C*(5*g)+I*(5*m)+P*(5*h),k+=J>>>13,J&=8191;let X=k+B*h+H*p+M*f+F*d+R*l;k=X>>>13,X&=8191,X+=y*c+E*a+C*(5*w)+I*(5*g)+P*(5*m),k+=X>>>13,X&=8191;let re=k+B*m+H*h+M*p+F*f+R*d;k=re>>>13,re&=8191,re+=y*l+E*c+C*a+I*(5*w)+P*(5*g),k+=re>>>13,re&=8191;let fe=k+B*g+H*m+M*h+F*p+R*f;k=fe>>>13,fe&=8191,fe+=y*d+E*l+C*c+I*a+P*(5*w),k+=fe>>>13,fe&=8191;let ce=k+B*w+H*g+M*m+F*h+R*p;k=ce>>>13,ce&=8191,ce+=y*f+E*d+C*l+I*c+P*a,k+=ce>>>13,ce&=8191,k=(k<<2)+k|0,k=k+U|0,U=k&8191,k=k>>>13,D+=k,s[0]=U,s[1]=D,s[2]=A,s[3]=j,s[4]=K,s[5]=J,s[6]=X,s[7]=re,s[8]=fe,s[9]=ce}finalize(){let{h:e,pad:r}=this,n=new Uint16Array(10),i=e[1]>>>13;e[1]&=8191;for(let a=2;a<10;a++)e[a]+=i,i=e[a]>>>13,e[a]&=8191;e[0]+=i*5,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,n[0]=e[0]+5,i=n[0]>>>13,n[0]&=8191;for(let a=1;a<10;a++)n[a]=e[a]+i,i=n[a]>>>13,n[a]&=8191;n[9]-=8192;let s=(i^1)-1;for(let a=0;a<10;a++)n[a]&=s;s=~s;for(let a=0;a<10;a++)e[a]=e[a]&s|n[a];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let o=e[0]+r[0];e[0]=o&65535;for(let a=1;a<8;a++)o=(e[a]+r[a]|0)+(o>>>16)|0,e[a]=o&65535;C4(n)}update(e){tKe(this);let{buffer:r,blockLen:n}=this;e=kue(e);let i=e.length;for(let s=0;s<i;){let o=Math.min(n-this.pos,i-s);if(o===n){for(;n<=i-s;s+=n)this.process(e,s);continue}r.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===n&&(this.process(r,0,!1),this.pos=0)}return this}destroy(){C4(this.h,this.r,this.buffer,this.pad)}digestInto(e){tKe(this),FFt(e,this),this.finished=!0;let{buffer:r,h:n}=this,{pos:i}=this;if(i){for(r[i++]=1;i<16;i++)r[i]=0;this.process(r,0,!0)}this.finalize();let s=0;for(let o=0;o<8;o++)e[s++]=n[o]>>>0,e[s++]=n[o]>>>8;return e}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}};tjt=ejt(t=>new Due(t));njt=XFt(rjt,{counterRight:!1,counterLength:4,allowShortKeys:!1}),ijt=new Uint8Array(16),oKe=(t,e)=>{t.update(e);let r=e.length%16;r&&t.update(ijt.subarray(r))},sjt=new Uint8Array(32);ojt=t=>(e,r,n)=>({encrypt(i,s){let o=i.length;s=nKe(o+16,s,!1),s.set(i);let a=s.subarray(0,-16);t(e,r,a,a,1);let c=aKe(t,e,r,a,n);return s.set(c,o),C4(c),s},decrypt(i,s){s=nKe(i.length-16,s,!1);let o=i.subarray(0,-16),a=i.subarray(-16),c=aKe(t,e,r,o,n);if(!$Ft(a,c))throw new Error(\\\"invalid tag\\\");return s.set(i.subarray(0,-16)),t(e,r,s,s,1),C4(c),s}}),lZe=VFt({blockSize:64,nonceLength:12,tagLength:16},ojt(njt)),qz=class extends R7{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,ode(e);let n=_4(r);if(this.iHash=e.create(),typeof this.iHash.update!=\\\"function\\\")throw new Error(\\\"Expected instance of class which extends utils.Hash\\\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(n.length>i?e.create().update(n).digest():n);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),s.fill(0)}update(e){return E4(this),this.iHash.update(e),this}digestInto(e){E4(this),L7(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:n,finished:i,destroyed:s,blockLen:o,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=s,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},r$=(t,e,r)=>new qz(t,e).update(r).digest();r$.create=(t,e)=>new qz(t,e);Eue=new Uint8Array([0]),cKe=new Uint8Array;ljt=(t,e,r,n,i)=>cjt(t,ajt(t,e,r),n,i);Lue=class extends R7{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=vue(this.buffer)}update(e){E4(this);let{view:r,buffer:n,blockLen:i}=this;e=_4(e);let s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let c=vue(e);for(;i<=s-o;o+=i)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){E4(this),HKe(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:s}=this,{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(n,0),o=0);for(let f=o;f<i;f++)r[f]=0;ujt(n,i-8,BigInt(this.length*8),s),this.process(n,0);let a=vue(e),c=this.outputLen;if(c%4)throw new Error(\\\"_sha2: outputLen should be aligned to 32bit\\\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\\\"_sha2: outputLen bigger than state\\\");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],s)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:s,destroyed:o,pos:a}=this;return e.length=i,e.pos=a,e.finished=s,e.destroyed=o,i%r&&e.buffer.set(n),e}},pjt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),U1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),F1=new Uint32Array(64),Uue=class extends Lue{constructor(){super(64,32,8,!1),this.A=U1[0]|0,this.B=U1[1]|0,this.C=U1[2]|0,this.D=U1[3]|0,this.E=U1[4]|0,this.F=U1[5]|0,this.G=U1[6]|0,this.H=U1[7]|0}get(){let{A:e,B:r,C:n,D:i,E:s,F:o,G:a,H:c}=this;return[e,r,n,i,s,o,a,c]}set(e,r,n,i,s,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=s|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)F1[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let p=F1[f-15],h=F1[f-2],m=gh(p,7)^gh(p,18)^p>>>3,g=gh(h,17)^gh(h,19)^h>>>10;F1[f]=g+F1[f-7]+m+F1[f-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:c,G:l,H:d}=this;for(let f=0;f<64;f++){let p=gh(a,6)^gh(a,11)^gh(a,25),h=d+p+djt(a,c,l)+pjt[f]+F1[f]|0,m=(gh(n,2)^gh(n,13)^gh(n,22))+fjt(n,i,s)|0;d=l,l=c,c=a,a=o+h|0,o=s,s=i,i=n,n=h+m|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,i,s,o,a,c,l,d)}roundClean(){F1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},F7=qKe(()=>new Uue);n$=BigInt(0),i$=BigInt(1),hjt=BigInt(2);mjt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,\\\"0\\\"));R0={_0:48,_9:57,A:65,F:70,a:97,f:102};_ue=t=>typeof t==\\\"bigint\\\"&&n$<=t;gde=t=>(hjt<<BigInt(t-1))-i$,Cue=t=>new Uint8Array(t),uKe=t=>Uint8Array.from(t);xjt={bigint:t=>typeof t==\\\"bigint\\\",function:t=>typeof t==\\\"function\\\",boolean:t=>typeof t==\\\"boolean\\\",string:t=>typeof t==\\\"string\\\",stringOrUint8Array:t=>typeof t==\\\"string\\\"||G2(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t==\\\"function\\\"&&Number.isSafeInteger(t.outputLen)};Ejt=()=>{throw new Error(\\\"not implemented\\\")};_jt=Object.freeze({__proto__:null,isBytes:G2,abytes:j7,abool:S4,bytesToHex:A4,numberToHexUnpadded:x4,hexToNumber:mde,hexToBytes:T4,bytesToNumberBE:W2,bytesToNumberLE:P7,numberToBytesBE:I4,numberToBytesLE:s$,numberToVarBytesBE:gjt,ensureBytes:Wl,concatBytes:O7,equalBytes:yjt,utf8ToBytes:bjt,inRange:o$,aInRange:N0,bitLen:uZe,bitGet:wjt,bitSet:vjt,bitMask:gde,createHmacDrbg:dZe,validateObject:k4,notImplemented:Ejt,memoized:Fue}),_o=BigInt(0),ms=BigInt(1),V2=BigInt(2),Cjt=BigInt(3),jue=BigInt(4),dKe=BigInt(5),fKe=BigInt(8);Tjt=[\\\"create\\\",\\\"isValid\\\",\\\"is0\\\",\\\"neg\\\",\\\"inv\\\",\\\"sqrt\\\",\\\"sqr\\\",\\\"eql\\\",\\\"add\\\",\\\"sub\\\",\\\"mul\\\",\\\"pow\\\",\\\"div\\\",\\\"addN\\\",\\\"subN\\\",\\\"mulN\\\",\\\"sqrN\\\"];pKe=BigInt(0),jz=BigInt(1);Tue=new WeakMap,bZe=new WeakMap;BigInt(0),BigInt(1),BigInt(2),BigInt(8);v4=BigInt(0),Rue=BigInt(1);que=BigInt(\\\"57896044618658097711785492504343953926634992332820282019728792003956564819949\\\");BigInt(0);Ujt=BigInt(1),hKe=BigInt(2),Fjt=BigInt(3),jjt=BigInt(5);BigInt(8);zue=Ljt({P:que,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:t=>{let e=que,{pow_p_5_8:r,b2:n}=Hjt(t);return Yc(Tf(r,Fjt,e)*n,e)},adjustScalarBytes:qjt,randomBytes:O4});({bytesToNumberBE:$jt,hexToBytes:Vjt}=_jt),$ue=class extends Error{constructor(e=\\\"\\\"){super(e)}},P0={Err:$ue,_tlv:{encode:(t,e)=>{let{Err:r}=P0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length&1)throw new r(\\\"tlv.encode: unpadded data\\\");let n=e.length/2,i=x4(n);if(i.length/2&128)throw new r(\\\"tlv.encode: long form length too big\\\");let s=n>127?x4(i.length/2|128):\\\"\\\";return x4(t)+s+i+e},decode(t,e){let{Err:r}=P0,n=0;if(t<0||t>256)throw new r(\\\"tlv.encode: wrong tag\\\");if(e.length<2||e[n++]!==t)throw new r(\\\"tlv.decode: wrong tlv\\\");let i=e[n++],s=!!(i&128),o=0;if(!s)o=i;else{let c=i&127;if(!c)throw new r(\\\"tlv.decode(long): indefinite length not supported\\\");if(c>4)throw new r(\\\"tlv.decode(long): byte length is too big\\\");let l=e.subarray(n,n+c);if(l.length!==c)throw new r(\\\"tlv.decode: length bytes not complete\\\");if(l[0]===0)throw new r(\\\"tlv.decode(long): zero leftmost byte\\\");for(let d of l)o=o<<8|d;if(n+=c,o<128)throw new r(\\\"tlv.decode(long): not minimal encoding\\\")}let a=e.subarray(n,n+o);if(a.length!==o)throw new r(\\\"tlv.decode: wrong value length\\\");return{v:a,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=P0;if(t<O0)throw new e(\\\"integer: negative integers are not allowed\\\");let r=x4(t);if(Number.parseInt(r[0],16)&8&&(r=\\\"00\\\"+r),r.length&1)throw new e(\\\"unexpected DER parsing assertion: unpadded hex\\\");return r},decode(t){let{Err:e}=P0;if(t[0]&128)throw new e(\\\"invalid signature integer: negative\\\");if(t[0]===0&&!(t[1]&128))throw new e(\\\"invalid signature integer: unnecessary leading zero\\\");return $jt(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=P0,i=typeof t==\\\"string\\\"?Vjt(t):t;j7(i);let{v:s,l:o}=n.decode(48,i);if(o.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");let{v:a,l:c}=n.decode(2,s),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e(\\\"invalid signature: left bytes after parsing\\\");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(t){let{_tlv:e,_int:r}=P0,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s)),s=n+i;return e.encode(48,s)}},O0=BigInt(0),Eo=BigInt(1);BigInt(2);gKe=BigInt(3);BigInt(4);vZe=hZe(BigInt(\\\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\\\")),Jjt=vZe.create(BigInt(\\\"-3\\\")),Yjt=BigInt(\\\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\\\"),Xjt=Qjt({a:Jjt,b:Yjt,Fp:vZe,n:BigInt(\\\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\\\"),Gx:BigInt(\\\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\\\"),Gy:BigInt(\\\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\\\"),h:BigInt(1),lowS:!1},F7),yde=\\\"base10\\\",ra=\\\"base16\\\",Xc=\\\"base64pad\\\",xh=\\\"base64url\\\",B4=\\\"utf8\\\",bde=0,md=1,Q2=2,eHt=0,yKe=1,T7=12,wde=32;CZe=\\\"irn\\\";tHt=Object.defineProperty,rHt=Object.defineProperties,nHt=Object.getOwnPropertyDescriptors,bKe=Object.getOwnPropertySymbols,iHt=Object.prototype.hasOwnProperty,sHt=Object.prototype.propertyIsEnumerable,wKe=(t,e,r)=>e in t?tHt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oHt=(t,e)=>{for(var r in e||(e={}))iHt.call(e,r)&&wKe(t,r,e[r]);if(bKe)for(var r of bKe(e))sHt.call(e,r)&&wKe(t,r,e[r]);return t},aHt=(t,e)=>rHt(t,nHt(e));kZe={INVALID_METHOD:{message:\\\"Invalid method.\\\",code:1001},INVALID_EVENT:{message:\\\"Invalid event.\\\",code:1002},INVALID_UPDATE_REQUEST:{message:\\\"Invalid update request.\\\",code:1003},INVALID_EXTEND_REQUEST:{message:\\\"Invalid extend request.\\\",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:\\\"Invalid session settle request.\\\",code:1005},UNAUTHORIZED_METHOD:{message:\\\"Unauthorized method.\\\",code:3001},UNAUTHORIZED_EVENT:{message:\\\"Unauthorized event.\\\",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:\\\"Unauthorized update request.\\\",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:\\\"Unauthorized extend request.\\\",code:3004},USER_REJECTED:{message:\\\"User rejected.\\\",code:5e3},USER_REJECTED_CHAINS:{message:\\\"User rejected chains.\\\",code:5001},USER_REJECTED_METHODS:{message:\\\"User rejected methods.\\\",code:5002},USER_REJECTED_EVENTS:{message:\\\"User rejected events.\\\",code:5003},UNSUPPORTED_CHAINS:{message:\\\"Unsupported chains.\\\",code:5100},UNSUPPORTED_METHODS:{message:\\\"Unsupported methods.\\\",code:5101},UNSUPPORTED_EVENTS:{message:\\\"Unsupported events.\\\",code:5102},UNSUPPORTED_ACCOUNTS:{message:\\\"Unsupported accounts.\\\",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:\\\"Unsupported namespace key.\\\",code:5104},USER_DISCONNECTED:{message:\\\"User disconnected.\\\",code:6e3},SESSION_SETTLEMENT_FAILED:{message:\\\"Session settlement failed.\\\",code:7e3},WC_METHOD_UNSUPPORTED:{message:\\\"Unsupported wc_ method.\\\",code:10001}},BZe={NOT_INITIALIZED:{message:\\\"Not initialized.\\\",code:1},NO_MATCHING_KEY:{message:\\\"No matching key.\\\",code:2},RESTORE_WILL_OVERRIDE:{message:\\\"Restore will override.\\\",code:3},RESUBSCRIBED:{message:\\\"Resubscribed.\\\",code:4},MISSING_OR_INVALID:{message:\\\"Missing or invalid.\\\",code:5},EXPIRED:{message:\\\"Expired.\\\",code:6},UNKNOWN_TYPE:{message:\\\"Unknown type.\\\",code:7},MISMATCHED_TOPIC:{message:\\\"Mismatched topic.\\\",code:8},NON_CONFORMING_NAMESPACES:{message:\\\"Non conforming namespaces.\\\",code:9}};Pue={},M0=class{static get(e){return Pue[e]}static set(e,r){Pue[e]=r}static delete(e){delete Pue[e]}}});function VHt(t,e){if(t.length>=255)throw new TypeError(\\\"Alphabet too long\\\");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),o=s.charCodeAt(0);if(r[o]!==255)throw new TypeError(s+\\\" is ambiguous\\\");r[o]=i}var a=t.length,c=t.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function f(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError(\\\"Expected Uint8Array\\\");if(m.length===0)return\\\"\\\";for(var g=0,w=0,v=0,b=m.length;v!==b&&m[v]===0;)v++,g++;for(var _=(b-v)*d+1>>>0,S=new Uint8Array(_);v!==b;){for(var T=m[v],N=0,O=_-1;(T!==0||N<w)&&O!==-1;O--,N++)T+=256*S[O]>>>0,S[O]=T%a>>>0,T=T/a>>>0;if(T!==0)throw new Error(\\\"Non-zero carry\\\");w=N,v++}for(var L=_-w;L!==_&&S[L]===0;)L++;for(var B=c.repeat(g);L<_;++L)B+=t.charAt(S[L]);return B}function p(m){if(typeof m!=\\\"string\\\")throw new TypeError(\\\"Expected String\\\");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==\\\" \\\"){for(var w=0,v=0;m[g]===c;)w++,g++;for(var b=(m.length-g)*l+1>>>0,_=new Uint8Array(b);m[g];){var S=r[m.charCodeAt(g)];if(S===255)return;for(var T=0,N=b-1;(S!==0||T<v)&&N!==-1;N--,T++)S+=a*_[N]>>>0,_[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error(\\\"Non-zero carry\\\");v=T,g++}if(m[g]!==\\\" \\\"){for(var O=b-v;O!==b&&_[O]===0;)O++;for(var L=new Uint8Array(w+(b-O)),B=w;O!==b;)L[B++]=_[O++];return L}}}function h(m){var g=p(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:f,decodeUnsafe:p,decode:h}}function Nqt(t){return t.reduce((e,r)=>(e+=Pqt[r],e),\\\"\\\")}function kqt(t){let e=[];for(let r of t){let n=Oqt[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}function SQe(t,e,r){e=e||[],r=r||0;for(var n=r;t>=Fqt;)e[r++]=t&255|QZe,t/=128;for(;t&Uqt;)e[r++]=t&255|QZe,t>>>=7;return e[r]=t|0,SQe.bytes=r-n+1,e}function sfe(t,n){var r=0,n=n||0,i=0,s=n,o,a=t.length;do{if(s>=a)throw sfe.bytes=0,new RangeError(\\\"Could not decode varint\\\");o=t[s++],r+=i<28?(o&JZe)<<i:(o&JZe)*Math.pow(2,i),i+=7}while(o>=Hqt);return sfe.bytes=s-n,r}function ozt(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(t):new Uint8Array(t)}function OQe(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}function czt(t,e=\\\"utf8\\\"){let r=azt[e];if(!r)throw new Error(`Unsupported encoding \\\"${e}\\\"`);return(e===\\\"utf8\\\"||e===\\\"utf-8\\\")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t,\\\"utf8\\\"):r.decoder.decode(`${r.prefix}${t}`)}function Mzt(){}function aQe(t){if(!t||typeof t!=\\\"object\\\")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null?Object.prototype.toString.call(t)===\\\"[object Object]\\\":!1}function cQe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function lQe(t){return t==null?t===void 0?\\\"[object Undefined]\\\":\\\"[object Null]\\\":Object.prototype.toString.call(t)}function o$t(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)}function a$t(t,e,r){return W7(t,e,void 0,void 0,void 0,void 0,r)}function W7(t,e,r,n,i,s,o){let a=o(t,e,r,n,i,s);if(a!==void 0)return a;if(typeof t==typeof e)switch(typeof t){case\\\"bigint\\\":case\\\"string\\\":case\\\"boolean\\\":case\\\"symbol\\\":case\\\"undefined\\\":return t===e;case\\\"number\\\":return t===e||Object.is(t,e);case\\\"function\\\":return t===e;case\\\"object\\\":return G7(t,e,s,o)}return G7(t,e,s,o)}function G7(t,e,r,n){if(Object.is(t,e))return!0;let i=lQe(t),s=lQe(e);if(i===uQe&&(i=Xde),s===uQe&&(s=Xde),i!==s)return!1;switch(i){case Lzt:return t.toString()===e.toString();case Uzt:{let c=t.valueOf(),l=e.valueOf();return o$t(c,l)}case Fzt:case Hzt:case jzt:return Object.is(t.valueOf(),e.valueOf());case Dzt:return t.source===e.source&&t.flags===e.flags;case Vzt:return t===e}r=r??new Map;let o=r.get(t),a=r.get(e);if(o!=null&&a!=null)return o===e;r.set(t,e),r.set(e,t);try{switch(i){case qzt:{if(t.size!==e.size)return!1;for(let[c,l]of t.entries())if(!e.has(c)||!W7(l,e.get(c),c,t,e,r,n))return!1;return!0}case zzt:{if(t.size!==e.size)return!1;let c=Array.from(t.values()),l=Array.from(e.values());for(let d=0;d<c.length;d++){let f=c[d],p=l.findIndex(h=>W7(f,h,void 0,t,e,r,n));if(p===-1)return!1;l.splice(p,1)}return!0}case $zt:case Zzt:case Qzt:case Jzt:case Yzt:case Xzt:case e$t:case t$t:case r$t:case n$t:case i$t:case s$t:{if(typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(t)!==globalThis.Buffer.isBuffer(e)||t.length!==e.length)return!1;for(let c=0;c<t.length;c++)if(!W7(t[c],e[c],c,t,e,r,n))return!1;return!0}case Wzt:return t.byteLength!==e.byteLength?!1:G7(new Uint8Array(t),new Uint8Array(e),r,n);case Kzt:return t.byteLength!==e.byteLength||t.byteOffset!==e.byteOffset?!1:G7(new Uint8Array(t),new Uint8Array(e),r,n);case Gzt:return t.name===e.name&&t.message===e.message;case Xde:{if(!(G7(t.constructor,e.constructor,r,n)||aQe(t)&&aQe(e)))return!1;let c=[...Object.keys(t),...cQe(t)],l=[...Object.keys(e),...cQe(e)];if(c.length!==l.length)return!1;for(let d=0;d<c.length;d++){let f=c[d],p=t[f];if(!Object.hasOwn(e,f))return!1;let h=e[f];if(!W7(p,h,f,t,e,r,n))return!1}return!0}default:return!1}}finally{r.delete(t),r.delete(e)}}function c$t(t,e){return a$t(t,e,Mzt)}var D0,et,yQe,bQe,wQe,v$,Ch,fHt,pHt,hHt,GZe,mHt,gHt,yHt,bHt,wHt,KZe,vHt,Pfe,xHt,vQe,EHt,Js,_Ht,gd,CHt,efe,Dn,w$,SHt,AHt,ZZe,Ql,THt,IHt,I0n,RHt,PHt,z7,V1,Rf,OHt,NHt,kHt,Jl,BHt,MHt,DHt,xQe,F4,LHt,UHt,FHt,jHt,Of,_h,yd,W1,G1,j4,HHt,qHt,zHt,$Ht,WHt,GHt,EQe,KHt,ZHt,tfe,rfe,nfe,_Qe,ife,x$,K7,QHt,JHt,oa,YHt,XHt,eqt,tqt,rqt,nqt,iqt,sqt,oqt,aqt,cqt,lqt,uqt,dqt,fqt,pqt,hqt,mqt,gqt,yqt,bqt,wqt,vqt,xqt,Eqt,_qt,Cqt,Sqt,Aqt,Tqt,Iqt,Rqt,CQe,Pqt,Oqt,Bqt,Mqt,Dqt,QZe,Lqt,Uqt,Fqt,jqt,Hqt,JZe,qqt,zqt,$qt,Vqt,Wqt,Gqt,Kqt,Zqt,Qqt,Jqt,Yqt,AQe,YZe,XZe,ofe,afe,TQe,cfe,IQe,Xqt,ezt,tzt,RQe,rzt,PQe,nzt,izt,szt,eQe,tQe,Qde,azt,lzt,uzt,Eh,lfe,dzt,fzt,ia,ufe,pzt,hzt,mzt,rQe,gzt,yzt,dfe,bzt,wzt,Zl,ffe,vzt,xzt,Ezt,nQe,_zt,Czt,pfe,b$,Jde,Pf,hfe,Szt,Azt,U4,mfe,Tzt,Izt,Rzt,iQe,Pzt,Ozt,gfe,$7,Yde,gn,yfe,Nzt,sQe,kzt,Bzt,bfe,oQe,kr,wfe,Dzt,Lzt,Uzt,Fzt,uQe,jzt,Hzt,qzt,zzt,$zt,Vzt,Wzt,Xde,Gzt,Kzt,Zzt,Qzt,Jzt,Yzt,Xzt,e$t,t$t,r$t,n$t,i$t,s$t,l$t,dQe,u$t,d$t,vfe,fQe,el,Sh,f$t,p$t,or,xfe,h$t,m$t,sa,Efe,g$t,y$t,Oa,_fe,b$t,w$t,Ms,Cfe,v$t,x$t,pQe,Sfe,E$t,hQe,_$t,C$t,Afe,V7,Co,Tfe,S$t,mQe,A$t,T$t,Ife,gQe,Mn,Rfe,NQe,kQe=x(()=>{u();D0=Me(ho());pce();bce();C1();wue();et=Me(u0());f1();g2();g2();y$();B9();l7();oh();Mce();yQe=Me(gC()),bQe=\\\"wc\\\",wQe=2,v$=\\\"core\\\",Ch=`${bQe}@2:${v$}:`,fHt={name:v$,logger:\\\"error\\\"},pHt={database:\\\":memory:\\\"},hHt=\\\"crypto\\\",GZe=\\\"client_ed25519_seed\\\",mHt=et.ONE_DAY,gHt=\\\"keychain\\\",yHt=\\\"0.3\\\",bHt=\\\"messages\\\",wHt=\\\"0.3\\\",KZe=et.SIX_HOURS,vHt=\\\"publisher\\\",Pfe=\\\"irn\\\",xHt=\\\"error\\\",vQe=\\\"wss://relay.walletconnect.org\\\",EHt=\\\"relayer\\\",Js={message:\\\"relayer_message\\\",message_ack:\\\"relayer_message_ack\\\",connect:\\\"relayer_connect\\\",disconnect:\\\"relayer_disconnect\\\",error:\\\"relayer_error\\\",connection_stalled:\\\"relayer_connection_stalled\\\",transport_closed:\\\"relayer_transport_closed\\\",publish:\\\"relayer_publish\\\"},_Ht=\\\"_subscription\\\",gd={payload:\\\"payload\\\",connect:\\\"connect\\\",disconnect:\\\"disconnect\\\",error:\\\"error\\\"},CHt=.1,efe=\\\"2.21.0\\\",Dn={link_mode:\\\"link_mode\\\",relay:\\\"relay\\\"},w$={inbound:\\\"inbound\\\",outbound:\\\"outbound\\\"},SHt=\\\"0.3\\\",AHt=\\\"WALLETCONNECT_CLIENT_ID\\\",ZZe=\\\"WALLETCONNECT_LINK_MODE_APPS\\\",Ql={created:\\\"subscription_created\\\",deleted:\\\"subscription_deleted\\\",expired:\\\"subscription_expired\\\",disabled:\\\"subscription_disabled\\\",sync:\\\"subscription_sync\\\",resubscribed:\\\"subscription_resubscribed\\\"},THt=\\\"subscription\\\",IHt=\\\"0.3\\\",I0n=et.FIVE_SECONDS*1e3,RHt=\\\"pairing\\\",PHt=\\\"0.3\\\",z7={wc_pairingDelete:{req:{ttl:et.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:et.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:et.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:et.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:et.ONE_DAY,prompt:!1,tag:0},res:{ttl:et.ONE_DAY,prompt:!1,tag:0}}},V1={create:\\\"pairing_create\\\",expire:\\\"pairing_expire\\\",delete:\\\"pairing_delete\\\",ping:\\\"pairing_ping\\\"},Rf={created:\\\"history_created\\\",updated:\\\"history_updated\\\",deleted:\\\"history_deleted\\\",sync:\\\"history_sync\\\"},OHt=\\\"history\\\",NHt=\\\"0.3\\\",kHt=\\\"expirer\\\",Jl={created:\\\"expirer_created\\\",deleted:\\\"expirer_deleted\\\",expired:\\\"expirer_expired\\\",sync:\\\"expirer_sync\\\"},BHt=\\\"0.3\\\",MHt=\\\"verify-api\\\",DHt=\\\"https://verify.walletconnect.com\\\",xQe=\\\"https://verify.walletconnect.org\\\",F4=xQe,LHt=`${F4}/v3`,UHt=[DHt,xQe],FHt=\\\"echo\\\",jHt=\\\"https://echo.walletconnect.com\\\",Of={pairing_started:\\\"pairing_started\\\",pairing_uri_validation_success:\\\"pairing_uri_validation_success\\\",pairing_uri_not_expired:\\\"pairing_uri_not_expired\\\",store_new_pairing:\\\"store_new_pairing\\\",subscribing_pairing_topic:\\\"subscribing_pairing_topic\\\",subscribe_pairing_topic_success:\\\"subscribe_pairing_topic_success\\\",existing_pairing:\\\"existing_pairing\\\",pairing_not_expired:\\\"pairing_not_expired\\\",emit_inactive_pairing:\\\"emit_inactive_pairing\\\",emit_session_proposal:\\\"emit_session_proposal\\\",subscribing_to_pairing_topic:\\\"subscribing_to_pairing_topic\\\"},_h={no_wss_connection:\\\"no_wss_connection\\\",no_internet_connection:\\\"no_internet_connection\\\",malformed_pairing_uri:\\\"malformed_pairing_uri\\\",active_pairing_already_exists:\\\"active_pairing_already_exists\\\",subscribe_pairing_topic_failure:\\\"subscribe_pairing_topic_failure\\\",pairing_expired:\\\"pairing_expired\\\",proposal_expired:\\\"proposal_expired\\\",proposal_listener_not_found:\\\"proposal_listener_not_found\\\"},yd={session_approve_started:\\\"session_approve_started\\\",proposal_not_expired:\\\"proposal_not_expired\\\",session_namespaces_validation_success:\\\"session_namespaces_validation_success\\\",create_session_topic:\\\"create_session_topic\\\",subscribing_session_topic:\\\"subscribing_session_topic\\\",subscribe_session_topic_success:\\\"subscribe_session_topic_success\\\",publishing_session_approve:\\\"publishing_session_approve\\\",session_approve_publish_success:\\\"session_approve_publish_success\\\",store_session:\\\"store_session\\\",publishing_session_settle:\\\"publishing_session_settle\\\",session_settle_publish_success:\\\"session_settle_publish_success\\\"},W1={no_internet_connection:\\\"no_internet_connection\\\",no_wss_connection:\\\"no_wss_connection\\\",proposal_expired:\\\"proposal_expired\\\",subscribe_session_topic_failure:\\\"subscribe_session_topic_failure\\\",session_approve_publish_failure:\\\"session_approve_publish_failure\\\",session_settle_publish_failure:\\\"session_settle_publish_failure\\\",session_approve_namespace_validation_failure:\\\"session_approve_namespace_validation_failure\\\",proposal_not_found:\\\"proposal_not_found\\\"},G1={authenticated_session_approve_started:\\\"authenticated_session_approve_started\\\",authenticated_session_not_expired:\\\"authenticated_session_not_expired\\\",chains_caip2_compliant:\\\"chains_caip2_compliant\\\",chains_evm_compliant:\\\"chains_evm_compliant\\\",create_authenticated_session_topic:\\\"create_authenticated_session_topic\\\",cacaos_verified:\\\"cacaos_verified\\\",store_authenticated_session:\\\"store_authenticated_session\\\",subscribing_authenticated_session_topic:\\\"subscribing_authenticated_session_topic\\\",subscribe_authenticated_session_topic_success:\\\"subscribe_authenticated_session_topic_success\\\",publishing_authenticated_session_approve:\\\"publishing_authenticated_session_approve\\\",authenticated_session_approve_publish_success:\\\"authenticated_session_approve_publish_success\\\"},j4={no_internet_connection:\\\"no_internet_connection\\\",no_wss_connection:\\\"no_wss_connection\\\",missing_session_authenticate_request:\\\"missing_session_authenticate_request\\\",session_authenticate_request_expired:\\\"session_authenticate_request_expired\\\",chains_caip2_compliant_failure:\\\"chains_caip2_compliant_failure\\\",chains_evm_compliant_failure:\\\"chains_evm_compliant_failure\\\",invalid_cacao:\\\"invalid_cacao\\\",subscribe_authenticated_session_topic_failure:\\\"subscribe_authenticated_session_topic_failure\\\",authenticated_session_approve_publish_failure:\\\"authenticated_session_approve_publish_failure\\\",authenticated_session_pending_request_not_found:\\\"authenticated_session_pending_request_not_found\\\"},HHt=.1,qHt=\\\"event-client\\\",zHt=86400,$Ht=\\\"https://pulse.walletconnect.org/batch\\\";WHt=VHt,GHt=WHt,EQe=t=>{if(t instanceof Uint8Array&&t.constructor.name===\\\"Uint8Array\\\")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error(\\\"Unknown type, must be binary type\\\")},KHt=t=>new TextEncoder().encode(t),ZHt=t=>new TextDecoder().decode(t),tfe=class{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(\\\"Unknown type, must be binary type\\\")}},rfe=class{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error(\\\"Invalid prefix character\\\");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e==\\\"string\\\"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error(\\\"Can only multibase decode strings\\\")}or(e){return _Qe(this,e)}},nfe=class{constructor(e){this.decoders=e}or(e){return _Qe(this,e)}decode(e){let r=e[0],n=this.decoders[r];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},_Qe=(t,e)=>new nfe({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}}),ife=class{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tfe(e,r,n),this.decoder=new rfe(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},x$=({name:t,prefix:e,encode:r,decode:n})=>new ife(t,e,r,n),K7=({prefix:t,name:e,alphabet:r})=>{let{encode:n,decode:i}=GHt(r,e);return x$({prefix:t,name:e,encode:n,decode:s=>EQe(i(s))})},QHt=(t,e,r,n)=>{let i={};for(let d=0;d<e.length;++d)i[e[d]]=d;let s=t.length;for(;t[s-1]===\\\"=\\\";)--s;let o=new Uint8Array(s*r/8|0),a=0,c=0,l=0;for(let d=0;d<s;++d){let f=i[t[d]];if(f===void 0)throw new SyntaxError(`Non-${n} character`);c=c<<r|f,a+=r,a>=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError(\\\"Unexpected end of data\\\");return o},JHt=(t,e,r)=>{let n=e[e.length-1]===\\\"=\\\",i=(1<<r)-1,s=\\\"\\\",o=0,a=0;for(let c=0;c<t.length;++c)for(a=a<<8|t[c],o+=8;o>r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<<r-o]),n)for(;s.length*r&7;)s+=\\\"=\\\";return s},oa=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>x$({prefix:e,name:t,encode(i){return JHt(i,n,r)},decode(i){return QHt(i,n,r,t)}}),YHt=x$({prefix:\\\"\\\\0\\\",name:\\\"identity\\\",encode:t=>ZHt(t),decode:t=>KHt(t)}),XHt=Object.freeze({__proto__:null,identity:YHt}),eqt=oa({prefix:\\\"0\\\",name:\\\"base2\\\",alphabet:\\\"01\\\",bitsPerChar:1}),tqt=Object.freeze({__proto__:null,base2:eqt}),rqt=oa({prefix:\\\"7\\\",name:\\\"base8\\\",alphabet:\\\"01234567\\\",bitsPerChar:3}),nqt=Object.freeze({__proto__:null,base8:rqt}),iqt=K7({prefix:\\\"9\\\",name:\\\"base10\\\",alphabet:\\\"0123456789\\\"}),sqt=Object.freeze({__proto__:null,base10:iqt}),oqt=oa({prefix:\\\"f\\\",name:\\\"base16\\\",alphabet:\\\"0123456789abcdef\\\",bitsPerChar:4}),aqt=oa({prefix:\\\"F\\\",name:\\\"base16upper\\\",alphabet:\\\"0123456789ABCDEF\\\",bitsPerChar:4}),cqt=Object.freeze({__proto__:null,base16:oqt,base16upper:aqt}),lqt=oa({prefix:\\\"b\\\",name:\\\"base32\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567\\\",bitsPerChar:5}),uqt=oa({prefix:\\\"B\\\",name:\\\"base32upper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\\\",bitsPerChar:5}),dqt=oa({prefix:\\\"c\\\",name:\\\"base32pad\\\",alphabet:\\\"abcdefghijklmnopqrstuvwxyz234567=\\\",bitsPerChar:5}),fqt=oa({prefix:\\\"C\\\",name:\\\"base32padupper\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=\\\",bitsPerChar:5}),pqt=oa({prefix:\\\"v\\\",name:\\\"base32hex\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv\\\",bitsPerChar:5}),hqt=oa({prefix:\\\"V\\\",name:\\\"base32hexupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV\\\",bitsPerChar:5}),mqt=oa({prefix:\\\"t\\\",name:\\\"base32hexpad\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuv=\\\",bitsPerChar:5}),gqt=oa({prefix:\\\"T\\\",name:\\\"base32hexpadupper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUV=\\\",bitsPerChar:5}),yqt=oa({prefix:\\\"h\\\",name:\\\"base32z\\\",alphabet:\\\"ybndrfg8ejkmcpqxot1uwisza345h769\\\",bitsPerChar:5}),bqt=Object.freeze({__proto__:null,base32:lqt,base32upper:uqt,base32pad:dqt,base32padupper:fqt,base32hex:pqt,base32hexupper:hqt,base32hexpad:mqt,base32hexpadupper:gqt,base32z:yqt}),wqt=K7({prefix:\\\"k\\\",name:\\\"base36\\\",alphabet:\\\"0123456789abcdefghijklmnopqrstuvwxyz\\\"}),vqt=K7({prefix:\\\"K\\\",name:\\\"base36upper\\\",alphabet:\\\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\\\"}),xqt=Object.freeze({__proto__:null,base36:wqt,base36upper:vqt}),Eqt=K7({name:\\\"base58btc\\\",prefix:\\\"z\\\",alphabet:\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\"}),_qt=K7({name:\\\"base58flickr\\\",prefix:\\\"Z\\\",alphabet:\\\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\\\"}),Cqt=Object.freeze({__proto__:null,base58btc:Eqt,base58flickr:_qt}),Sqt=oa({prefix:\\\"m\\\",name:\\\"base64\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",bitsPerChar:6}),Aqt=oa({prefix:\\\"M\\\",name:\\\"base64pad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\\",bitsPerChar:6}),Tqt=oa({prefix:\\\"u\\\",name:\\\"base64url\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\\\",bitsPerChar:6}),Iqt=oa({prefix:\\\"U\\\",name:\\\"base64urlpad\\\",alphabet:\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=\\\",bitsPerChar:6}),Rqt=Object.freeze({__proto__:null,base64:Sqt,base64pad:Aqt,base64url:Tqt,base64urlpad:Iqt}),CQe=Array.from(\\\"\\\\u{1F680}\\\\u{1FA90}\\\\u2604\\\\u{1F6F0}\\\\u{1F30C}\\\\u{1F311}\\\\u{1F312}\\\\u{1F313}\\\\u{1F314}\\\\u{1F315}\\\\u{1F316}\\\\u{1F317}\\\\u{1F318}\\\\u{1F30D}\\\\u{1F30F}\\\\u{1F30E}\\\\u{1F409}\\\\u2600\\\\u{1F4BB}\\\\u{1F5A5}\\\\u{1F4BE}\\\\u{1F4BF}\\\\u{1F602}\\\\u2764\\\\u{1F60D}\\\\u{1F923}\\\\u{1F60A}\\\\u{1F64F}\\\\u{1F495}\\\\u{1F62D}\\\\u{1F618}\\\\u{1F44D}\\\\u{1F605}\\\\u{1F44F}\\\\u{1F601}\\\\u{1F525}\\\\u{1F970}\\\\u{1F494}\\\\u{1F496}\\\\u{1F499}\\\\u{1F622}\\\\u{1F914}\\\\u{1F606}\\\\u{1F644}\\\\u{1F4AA}\\\\u{1F609}\\\\u263A\\\\u{1F44C}\\\\u{1F917}\\\\u{1F49C}\\\\u{1F614}\\\\u{1F60E}\\\\u{1F607}\\\\u{1F339}\\\\u{1F926}\\\\u{1F389}\\\\u{1F49E}\\\\u270C\\\\u2728\\\\u{1F937}\\\\u{1F631}\\\\u{1F60C}\\\\u{1F338}\\\\u{1F64C}\\\\u{1F60B}\\\\u{1F497}\\\\u{1F49A}\\\\u{1F60F}\\\\u{1F49B}\\\\u{1F642}\\\\u{1F493}\\\\u{1F929}\\\\u{1F604}\\\\u{1F600}\\\\u{1F5A4}\\\\u{1F603}\\\\u{1F4AF}\\\\u{1F648}\\\\u{1F447}\\\\u{1F3B6}\\\\u{1F612}\\\\u{1F92D}\\\\u2763\\\\u{1F61C}\\\\u{1F48B}\\\\u{1F440}\\\\u{1F62A}\\\\u{1F611}\\\\u{1F4A5}\\\\u{1F64B}\\\\u{1F61E}\\\\u{1F629}\\\\u{1F621}\\\\u{1F92A}\\\\u{1F44A}\\\\u{1F973}\\\\u{1F625}\\\\u{1F924}\\\\u{1F449}\\\\u{1F483}\\\\u{1F633}\\\\u270B\\\\u{1F61A}\\\\u{1F61D}\\\\u{1F634}\\\\u{1F31F}\\\\u{1F62C}\\\\u{1F643}\\\\u{1F340}\\\\u{1F337}\\\\u{1F63B}\\\\u{1F613}\\\\u2B50\\\\u2705\\\\u{1F97A}\\\\u{1F308}\\\\u{1F608}\\\\u{1F918}\\\\u{1F4A6}\\\\u2714\\\\u{1F623}\\\\u{1F3C3}\\\\u{1F490}\\\\u2639\\\\u{1F38A}\\\\u{1F498}\\\\u{1F620}\\\\u261D\\\\u{1F615}\\\\u{1F33A}\\\\u{1F382}\\\\u{1F33B}\\\\u{1F610}\\\\u{1F595}\\\\u{1F49D}\\\\u{1F64A}\\\\u{1F639}\\\\u{1F5E3}\\\\u{1F4AB}\\\\u{1F480}\\\\u{1F451}\\\\u{1F3B5}\\\\u{1F91E}\\\\u{1F61B}\\\\u{1F534}\\\\u{1F624}\\\\u{1F33C}\\\\u{1F62B}\\\\u26BD\\\\u{1F919}\\\\u2615\\\\u{1F3C6}\\\\u{1F92B}\\\\u{1F448}\\\\u{1F62E}\\\\u{1F646}\\\\u{1F37B}\\\\u{1F343}\\\\u{1F436}\\\\u{1F481}\\\\u{1F632}\\\\u{1F33F}\\\\u{1F9E1}\\\\u{1F381}\\\\u26A1\\\\u{1F31E}\\\\u{1F388}\\\\u274C\\\\u270A\\\\u{1F44B}\\\\u{1F630}\\\\u{1F928}\\\\u{1F636}\\\\u{1F91D}\\\\u{1F6B6}\\\\u{1F4B0}\\\\u{1F353}\\\\u{1F4A2}\\\\u{1F91F}\\\\u{1F641}\\\\u{1F6A8}\\\\u{1F4A8}\\\\u{1F92C}\\\\u2708\\\\u{1F380}\\\\u{1F37A}\\\\u{1F913}\\\\u{1F619}\\\\u{1F49F}\\\\u{1F331}\\\\u{1F616}\\\\u{1F476}\\\\u{1F974}\\\\u25B6\\\\u27A1\\\\u2753\\\\u{1F48E}\\\\u{1F4B8}\\\\u2B07\\\\u{1F628}\\\\u{1F31A}\\\\u{1F98B}\\\\u{1F637}\\\\u{1F57A}\\\\u26A0\\\\u{1F645}\\\\u{1F61F}\\\\u{1F635}\\\\u{1F44E}\\\\u{1F932}\\\\u{1F920}\\\\u{1F927}\\\\u{1F4CC}\\\\u{1F535}\\\\u{1F485}\\\\u{1F9D0}\\\\u{1F43E}\\\\u{1F352}\\\\u{1F617}\\\\u{1F911}\\\\u{1F30A}\\\\u{1F92F}\\\\u{1F437}\\\\u260E\\\\u{1F4A7}\\\\u{1F62F}\\\\u{1F486}\\\\u{1F446}\\\\u{1F3A4}\\\\u{1F647}\\\\u{1F351}\\\\u2744\\\\u{1F334}\\\\u{1F4A3}\\\\u{1F438}\\\\u{1F48C}\\\\u{1F4CD}\\\\u{1F940}\\\\u{1F922}\\\\u{1F445}\\\\u{1F4A1}\\\\u{1F4A9}\\\\u{1F450}\\\\u{1F4F8}\\\\u{1F47B}\\\\u{1F910}\\\\u{1F92E}\\\\u{1F3BC}\\\\u{1F975}\\\\u{1F6A9}\\\\u{1F34E}\\\\u{1F34A}\\\\u{1F47C}\\\\u{1F48D}\\\\u{1F4E3}\\\\u{1F942}\\\"),Pqt=CQe.reduce((t,e,r)=>(t[r]=e,t),[]),Oqt=CQe.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);Bqt=x$({prefix:\\\"\\\\u{1F680}\\\",name:\\\"base256emoji\\\",encode:Nqt,decode:kqt}),Mqt=Object.freeze({__proto__:null,base256emoji:Bqt}),Dqt=SQe,QZe=128,Lqt=127,Uqt=~Lqt,Fqt=Math.pow(2,31);jqt=sfe,Hqt=128,JZe=127;qqt=Math.pow(2,7),zqt=Math.pow(2,14),$qt=Math.pow(2,21),Vqt=Math.pow(2,28),Wqt=Math.pow(2,35),Gqt=Math.pow(2,42),Kqt=Math.pow(2,49),Zqt=Math.pow(2,56),Qqt=Math.pow(2,63),Jqt=function(t){return t<qqt?1:t<zqt?2:t<$qt?3:t<Vqt?4:t<Wqt?5:t<Gqt?6:t<Kqt?7:t<Zqt?8:t<Qqt?9:10},Yqt={encode:Dqt,decode:jqt,encodingLength:Jqt},AQe=Yqt,YZe=(t,e,r=0)=>(AQe.encode(t,e,r),e),XZe=t=>AQe.encodingLength(t),ofe=(t,e)=>{let r=e.byteLength,n=XZe(t),i=n+XZe(r),s=new Uint8Array(i+r);return YZe(t,s,0),YZe(r,s,n),s.set(e,i),new afe(t,r,e,s)},afe=class{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}},TQe=({name:t,code:e,encode:r})=>new cfe(t,e,r),cfe=class{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?ofe(this.code,r):r.then(n=>ofe(this.code,n))}else throw Error(\\\"Unknown type, must be binary type\\\")}},IQe=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),Xqt=TQe({name:\\\"sha2-256\\\",code:18,encode:IQe(\\\"SHA-256\\\")}),ezt=TQe({name:\\\"sha2-512\\\",code:19,encode:IQe(\\\"SHA-512\\\")}),tzt=Object.freeze({__proto__:null,sha256:Xqt,sha512:ezt}),RQe=0,rzt=\\\"identity\\\",PQe=EQe,nzt=t=>ofe(RQe,PQe(t)),izt={code:RQe,name:rzt,encode:PQe,digest:nzt},szt=Object.freeze({__proto__:null,identity:izt});new TextEncoder,new TextDecoder;eQe={...XHt,...tqt,...nqt,...sqt,...cqt,...bqt,...xqt,...Cqt,...Rqt,...Mqt};({...tzt,...szt});tQe=OQe(\\\"utf8\\\",\\\"u\\\",t=>\\\"u\\\"+new TextDecoder(\\\"utf8\\\").decode(t),t=>new TextEncoder().encode(t.substring(1))),Qde=OQe(\\\"ascii\\\",\\\"a\\\",t=>{let e=\\\"a\\\";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=ozt(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),azt={utf8:tQe,\\\"utf-8\\\":tQe,hex:eQe.base16,latin1:Qde,ascii:Qde,binary:Qde,...eQe};lzt=Object.defineProperty,uzt=(t,e,r)=>e in t?lzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Eh=(t,e,r)=>uzt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),lfe=class{constructor(e,r){this.core=e,this.logger=r,Eh(this,\\\"keychain\\\",new Map),Eh(this,\\\"name\\\",gHt),Eh(this,\\\"version\\\",yHt),Eh(this,\\\"initialized\\\",!1),Eh(this,\\\"storagePrefix\\\",Ch),Eh(this,\\\"init\\\",async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<\\\"u\\\"&&(this.keychain=n),this.initialized=!0}}),Eh(this,\\\"has\\\",n=>(this.isInitialized(),this.keychain.has(n))),Eh(this,\\\"set\\\",async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()}),Eh(this,\\\"get\\\",n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>\\\"u\\\"){let{message:s}=Se(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${n}`);throw new Error(s)}return i}),Eh(this,\\\"del\\\",async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()}),this.core=e,this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,B7(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<\\\"u\\\"?M7(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},dzt=Object.defineProperty,fzt=(t,e,r)=>e in t?dzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ia=(t,e,r)=>fzt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ufe=class{constructor(e,r,n){this.core=e,this.logger=r,ia(this,\\\"name\\\",hHt),ia(this,\\\"keychain\\\"),ia(this,\\\"randomSessionIdentifier\\\",H7()),ia(this,\\\"initialized\\\",!1),ia(this,\\\"init\\\",async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)}),ia(this,\\\"hasKeys\\\",i=>(this.isInitialized(),this.keychain.has(i))),ia(this,\\\"getClientId\\\",async()=>{this.isInitialized();let i=await this.getClientSeed(),s=vC(i);return T9(s.publicKey)}),ia(this,\\\"generateKeyPair\\\",()=>{this.isInitialized();let i=vde();return this.setPrivateKey(i.publicKey,i.privateKey)}),ia(this,\\\"signJWT\\\",async i=>{this.isInitialized();let s=await this.getClientSeed(),o=vC(s),a=this.randomSessionIdentifier;return await OH(a,i,mHt,o)}),ia(this,\\\"generateSharedKey\\\",(i,s,o)=>{this.isInitialized();let a=this.getPrivateKey(i),c=xde(a,s);return this.setSymKey(c,o)}),ia(this,\\\"setSymKey\\\",async(i,s)=>{this.isInitialized();let o=s||J2(i);return await this.keychain.set(o,i),o}),ia(this,\\\"deleteKeyPair\\\",async i=>{this.isInitialized(),await this.keychain.del(i)}),ia(this,\\\"deleteSymKey\\\",async i=>{this.isInitialized(),await this.keychain.del(i)}),ia(this,\\\"encode\\\",async(i,s,o)=>{this.isInitialized();let a=a$(o),c=Vo(s);if(l$(a))return Sde(c,o?.encoding);if(c$(a)){let p=a.senderPublicKey,h=a.receiverPublicKey;i=await this.generateSharedKey(p,h)}let l=this.getSymKey(i),{type:d,senderPublicKey:f}=a;return _de({type:d,symKey:l,message:c,senderPublicKey:f,encoding:o?.encoding})}),ia(this,\\\"decode\\\",async(i,s,o)=>{this.isInitialized();let a=Ide(s,o);if(l$(a)){let c=Ade(s,o?.encoding);return nc(c)}if(c$(a)){let c=a.receiverPublicKey,l=a.senderPublicKey;i=await this.generateSharedKey(c,l)}try{let c=this.getSymKey(i),l=Cde({symKey:c,encoded:s,encoding:o?.encoding});return nc(l)}catch(c){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(c)}}),ia(this,\\\"getPayloadType\\\",(i,s=Xc)=>{let o=Y2({encoded:i,encoding:s});return B0(o.type)}),ia(this,\\\"getPayloadSenderPublicKey\\\",(i,s=Xc)=>{let o=Y2({encoded:i,encoding:s});return o.senderPublicKey?yr(o.senderPublicKey,ra):void 0}),this.core=e,this.logger=rr(r,this.name),this.keychain=n||new lfe(this.core,this.logger)}get context(){return Ir(this.logger)}async setPrivateKey(e,r){return await this.keychain.set(e,r),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e=\\\"\\\";try{e=this.keychain.get(GZe)}catch{e=H7(),await this.keychain.set(GZe,e)}return czt(e,\\\"base16\\\")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},pzt=Object.defineProperty,hzt=Object.defineProperties,mzt=Object.getOwnPropertyDescriptors,rQe=Object.getOwnPropertySymbols,gzt=Object.prototype.hasOwnProperty,yzt=Object.prototype.propertyIsEnumerable,dfe=(t,e,r)=>e in t?pzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bzt=(t,e)=>{for(var r in e||(e={}))gzt.call(e,r)&&dfe(t,r,e[r]);if(rQe)for(var r of rQe(e))yzt.call(e,r)&&dfe(t,r,e[r]);return t},wzt=(t,e)=>hzt(t,mzt(e)),Zl=(t,e,r)=>dfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ffe=class extends Tz{constructor(e,r){super(e,r),this.logger=e,this.core=r,Zl(this,\\\"messages\\\",new Map),Zl(this,\\\"messagesWithoutClientAck\\\",new Map),Zl(this,\\\"name\\\",bHt),Zl(this,\\\"version\\\",wHt),Zl(this,\\\"initialized\\\",!1),Zl(this,\\\"storagePrefix\\\",Ch),Zl(this,\\\"init\\\",async()=>{if(!this.initialized){this.logger.trace(\\\"Initialized\\\");try{let n=await this.getRelayerMessages();typeof n<\\\"u\\\"&&(this.messages=n);let i=await this.getRelayerMessagesWithoutClientAck();typeof i<\\\"u\\\"&&(this.messagesWithoutClientAck=i),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}}),Zl(this,\\\"set\\\",async(n,i,s)=>{this.isInitialized();let o=Kl(i),a=this.messages.get(n);if(typeof a>\\\"u\\\"&&(a={}),typeof a[o]<\\\"u\\\")return o;if(a[o]=i,this.messages.set(n,a),s===w$.inbound){let c=this.messagesWithoutClientAck.get(n)||{};this.messagesWithoutClientAck.set(n,wzt(bzt({},c),{[o]:i}))}return await this.persist(),o}),Zl(this,\\\"get\\\",n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>\\\"u\\\"&&(i={}),i}),Zl(this,\\\"getWithoutAck\\\",n=>{this.isInitialized();let i={};for(let s of n){let o=this.messagesWithoutClientAck.get(s)||{};i[s]=Object.values(o)}return i}),Zl(this,\\\"has\\\",(n,i)=>{this.isInitialized();let s=this.get(n),o=Kl(i);return typeof s[o]<\\\"u\\\"}),Zl(this,\\\"ack\\\",async(n,i)=>{this.isInitialized();let s=this.messagesWithoutClientAck.get(n);if(typeof s>\\\"u\\\")return;let o=Kl(i);delete s[o],Object.keys(s).length===0?this.messagesWithoutClientAck.delete(n):this.messagesWithoutClientAck.set(n,s),await this.persist()}),Zl(this,\\\"del\\\",async n=>{this.isInitialized(),this.messages.delete(n),this.messagesWithoutClientAck.delete(n),await this.persist()}),this.logger=rr(e,this.name),this.core=r}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get storageKeyWithoutClientAck(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name+\\\"_withoutClientAck\\\"}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,B7(e))}async setRelayerMessagesWithoutClientAck(e){await this.core.storage.setItem(this.storageKeyWithoutClientAck,B7(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<\\\"u\\\"?M7(e):void 0}async getRelayerMessagesWithoutClientAck(){let e=await this.core.storage.getItem(this.storageKeyWithoutClientAck);return typeof e<\\\"u\\\"?M7(e):void 0}async persist(){await this.setRelayerMessages(this.messages),await this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},vzt=Object.defineProperty,xzt=Object.defineProperties,Ezt=Object.getOwnPropertyDescriptors,nQe=Object.getOwnPropertySymbols,_zt=Object.prototype.hasOwnProperty,Czt=Object.prototype.propertyIsEnumerable,pfe=(t,e,r)=>e in t?vzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b$=(t,e)=>{for(var r in e||(e={}))_zt.call(e,r)&&pfe(t,r,e[r]);if(nQe)for(var r of nQe(e))Czt.call(e,r)&&pfe(t,r,e[r]);return t},Jde=(t,e)=>xzt(t,Ezt(e)),Pf=(t,e,r)=>pfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),hfe=class extends Iz{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,Pf(this,\\\"events\\\",new D0.EventEmitter),Pf(this,\\\"name\\\",vHt),Pf(this,\\\"queue\\\",new Map),Pf(this,\\\"publishTimeout\\\",(0,et.toMiliseconds)(et.ONE_MINUTE)),Pf(this,\\\"initialPublishTimeout\\\",(0,et.toMiliseconds)(et.ONE_SECOND*15)),Pf(this,\\\"needsTransportRestart\\\",!1),Pf(this,\\\"publish\\\",async(n,i,s)=>{var o;this.logger.debug(\\\"Publishing Payload\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"publish\\\",params:{topic:n,message:i,opts:s}});let a=s?.ttl||KZe,c=M4(s),l=s?.prompt||!1,d=s?.tag||0,f=s?.id||Vs().toString(),p={topic:n,message:i,opts:{ttl:a,relay:c,prompt:l,tag:d,id:f,attestation:s?.attestation,tvf:s?.tvf}},h=`Failed to publish payload, please try again. id:${f} tag:${d}`;try{let m=new Promise(async g=>{let w=({id:b})=>{p.opts.id===b&&(this.removeRequestFromQueue(b),this.relayer.events.removeListener(Js.publish,w),g(p))};this.relayer.events.on(Js.publish,w);let v=vh(new Promise((b,_)=>{this.rpcPublish({topic:n,message:i,ttl:a,prompt:l,tag:d,id:f,attestation:s?.attestation,tvf:s?.tvf}).then(b).catch(S=>{this.logger.warn(S,S?.message),_(S)})}),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${f} tag:${d}`);try{await v,this.events.removeListener(Js.publish,w)}catch(b){this.queue.set(f,Jde(b$({},p),{attempt:1})),this.logger.warn(b,b?.message)}});this.logger.trace({type:\\\"method\\\",method:\\\"publish\\\",params:{id:f,topic:n,message:i,opts:s}}),await vh(m,this.publishTimeout,h)}catch(m){if(this.logger.debug(\\\"Failed to Publish Payload\\\"),this.logger.error(m),(o=s?.internal)!=null&&o.throwOnFailedPublish)throw m}finally{this.queue.delete(f)}}),Pf(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),Pf(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),Pf(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),Pf(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.relayer=e,this.logger=rr(r,this.name),this.registerEventListeners()}get context(){return Ir(this.logger)}async rpcPublish(e){var r,n,i,s;let{topic:o,message:a,ttl:c=KZe,prompt:l,tag:d,id:f,attestation:p,tvf:h}=e,m={method:X2(M4().protocol).publish,params:b$({topic:o,message:a,ttl:c,prompt:l,tag:d,attestation:p},h),id:f};Bs((r=m.params)==null?void 0:r.prompt)&&((n=m.params)==null||delete n.prompt),Bs((i=m.params)==null?void 0:i.tag)&&((s=m.params)==null||delete s.tag),this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"message\\\",direction:\\\"outgoing\\\",request:m});let g=await this.relayer.request(m);return this.relayer.events.emit(Js.publish,e),this.logger.debug(\\\"Successfully Published Payload\\\"),g}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async(e,r)=>{let n=e.attempt+1;this.queue.set(r,Jde(b$({},e),{attempt:n}));let{topic:i,message:s,opts:o,attestation:a}=e;this.logger.warn({},`Publisher: queue->publishing: ${e.opts.id}, tag: ${e.opts.tag}, attempt: ${n}`),await this.rpcPublish(Jde(b$({},e),{topic:i,message:s,ttl:o.ttl,prompt:o.prompt,tag:o.tag,id:o.id,attestation:a,tvf:o.tvf})),this.logger.warn({},`Publisher: queue->published: ${e.opts.id}`)})}registerEventListeners(){this.relayer.core.heartbeat.on(sc.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Js.connection_stalled);return}this.checkQueue()}),this.relayer.on(Js.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}},Szt=Object.defineProperty,Azt=(t,e,r)=>e in t?Szt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,U4=(t,e,r)=>Azt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),mfe=class{constructor(){U4(this,\\\"map\\\",new Map),U4(this,\\\"set\\\",(e,r)=>{let n=this.get(e);this.exists(e,r)||this.map.set(e,[...n,r])}),U4(this,\\\"get\\\",e=>this.map.get(e)||[]),U4(this,\\\"exists\\\",(e,r)=>this.get(e).includes(r)),U4(this,\\\"delete\\\",(e,r)=>{if(typeof r>\\\"u\\\"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,r))return;let i=n.filter(s=>s!==r);if(!i.length){this.map.delete(e);return}this.map.set(e,i)}),U4(this,\\\"clear\\\",()=>{this.map.clear()})}get topics(){return Array.from(this.map.keys())}},Tzt=Object.defineProperty,Izt=Object.defineProperties,Rzt=Object.getOwnPropertyDescriptors,iQe=Object.getOwnPropertySymbols,Pzt=Object.prototype.hasOwnProperty,Ozt=Object.prototype.propertyIsEnumerable,gfe=(t,e,r)=>e in t?Tzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$7=(t,e)=>{for(var r in e||(e={}))Pzt.call(e,r)&&gfe(t,r,e[r]);if(iQe)for(var r of iQe(e))Ozt.call(e,r)&&gfe(t,r,e[r]);return t},Yde=(t,e)=>Izt(t,Rzt(e)),gn=(t,e,r)=>gfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),yfe=class extends Oz{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,gn(this,\\\"subscriptions\\\",new Map),gn(this,\\\"topicMap\\\",new mfe),gn(this,\\\"events\\\",new D0.EventEmitter),gn(this,\\\"name\\\",THt),gn(this,\\\"version\\\",IHt),gn(this,\\\"pending\\\",new Map),gn(this,\\\"cached\\\",[]),gn(this,\\\"initialized\\\",!1),gn(this,\\\"storagePrefix\\\",Ch),gn(this,\\\"subscribeTimeout\\\",(0,et.toMiliseconds)(et.ONE_MINUTE)),gn(this,\\\"initialSubscribeTimeout\\\",(0,et.toMiliseconds)(et.ONE_SECOND*15)),gn(this,\\\"clientId\\\"),gn(this,\\\"batchSubscribeTopicsLimit\\\",500),gn(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),this.registerEventListeners(),await this.restore()),this.initialized=!0}),gn(this,\\\"subscribe\\\",async(n,i)=>{this.isInitialized(),this.logger.debug(\\\"Subscribing Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"subscribe\\\",params:{topic:n,opts:i}});try{let s=M4(i),o={topic:n,relay:s,transportType:i?.transportType};this.pending.set(n,o);let a=await this.rpcSubscribe(n,s,i);return typeof a==\\\"string\\\"&&(this.onSubscribe(a,o),this.logger.debug(\\\"Successfully Subscribed Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"subscribe\\\",params:{topic:n,opts:i}})),a}catch(s){throw this.logger.debug(\\\"Failed to Subscribe Topic\\\"),this.logger.error(s),s}}),gn(this,\\\"unsubscribe\\\",async(n,i)=>{this.isInitialized(),typeof i?.id<\\\"u\\\"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)}),gn(this,\\\"isSubscribed\\\",n=>new Promise(i=>{i(this.topicMap.topics.includes(n))})),gn(this,\\\"isKnownTopic\\\",n=>new Promise(i=>{i(this.topicMap.topics.includes(n)||this.pending.has(n)||this.cached.some(s=>s.topic===n))})),gn(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),gn(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),gn(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),gn(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),gn(this,\\\"start\\\",async()=>{await this.onConnect()}),gn(this,\\\"stop\\\",async()=>{await this.onDisconnect()}),gn(this,\\\"restart\\\",async()=>{await this.restore(),await this.onRestart()}),gn(this,\\\"checkPending\\\",async()=>{if(this.pending.size===0&&(!this.initialized||!this.relayer.connected))return;let n=[];this.pending.forEach(i=>{n.push(i)}),await this.batchSubscribe(n)}),gn(this,\\\"registerEventListeners\\\",()=>{this.relayer.core.heartbeat.on(sc.pulse,async()=>{await this.checkPending()}),this.events.on(Ql.created,async n=>{let i=Ql.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:\\\"event\\\",event:i,data:n}),await this.persist()}),this.events.on(Ql.deleted,async n=>{let i=Ql.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:\\\"event\\\",event:i,data:n}),await this.persist()})}),this.relayer=e,this.logger=rr(r,this.name),this.clientId=\\\"\\\"}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}get hasAnyTopics(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}hasSubscription(e,r){let n=!1;try{n=this.getSubscription(e).topic===r}catch{}return n}reset(){this.cached=[],this.initialized=!0}onDisable(){this.values.length>0&&(this.cached=this.values),this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,r){let n=this.topicMap.get(e);await Promise.all(n.map(async i=>await this.unsubscribeById(e,i,r)))}async unsubscribeById(e,r,n){this.logger.debug(\\\"Unsubscribing Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"unsubscribe\\\",params:{topic:e,id:r,opts:n}});try{let i=M4(n);await this.restartToComplete({topic:e,id:r,relay:i}),await this.rpcUnsubscribe(e,r,i);let s=Jr(\\\"USER_DISCONNECTED\\\",`${this.name}, ${e}`);await this.onUnsubscribe(e,r,s),this.logger.debug(\\\"Successfully Unsubscribed Topic\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"unsubscribe\\\",params:{topic:e,id:r,opts:n}})}catch(i){throw this.logger.debug(\\\"Failed to Unsubscribe Topic\\\"),this.logger.error(i),i}}async rpcSubscribe(e,r,n){var i;(!n||n?.transportType===Dn.relay)&&await this.restartToComplete({topic:e,id:e,relay:r});let s={method:X2(r.protocol).subscribe,params:{topic:e}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:s});let o=(i=n?.internal)==null?void 0:i.throwOnFailedPublish;try{let a=await this.getSubscriptionId(e);if(n?.transportType===Dn.link_mode)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(s).catch(d=>this.logger.warn(d))},(0,et.toMiliseconds)(et.ONE_SECOND)),a;let c=new Promise(async d=>{let f=p=>{p.topic===e&&(this.events.removeListener(Ql.created,f),d(p.id))};this.events.on(Ql.created,f);try{let p=await vh(new Promise((h,m)=>{this.relayer.request(s).catch(g=>{this.logger.warn(g,g?.message),m(g)}).then(h)}),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(Ql.created,f),d(p)}catch{}}),l=await vh(c,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!l&&o)throw new Error(`Subscribing to ${e} failed, please try again`);return l?a:null}catch(a){if(this.logger.debug(\\\"Outgoing Relay Subscribe Payload stalled\\\"),this.relayer.events.emit(Js.connection_stalled),o)throw a}return null}async rpcBatchSubscribe(e){if(!e.length)return;let r=e[0].relay,n={method:X2(r.protocol).batchSubscribe,params:{topics:e.map(i=>i.topic)}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:n});try{await await vh(new Promise(i=>{this.relayer.request(n).catch(s=>this.logger.warn(s)).then(i)}),this.subscribeTimeout,\\\"rpcBatchSubscribe failed, please try again\\\")}catch{this.relayer.events.emit(Js.connection_stalled)}}async rpcBatchFetchMessages(e){if(!e.length)return;let r=e[0].relay,n={method:X2(r.protocol).batchFetchMessages,params:{topics:e.map(s=>s.topic)}};this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:n});let i;try{i=await await vh(new Promise((s,o)=>{this.relayer.request(n).catch(a=>{this.logger.warn(a),o(a)}).then(s)}),this.subscribeTimeout,\\\"rpcBatchFetchMessages failed, please try again\\\")}catch{this.relayer.events.emit(Js.connection_stalled)}return i}rpcUnsubscribe(e,r,n){let i={method:X2(n.protocol).unsubscribe,params:{topic:e,id:r}};return this.logger.debug(\\\"Outgoing Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"outgoing\\\",request:i}),this.relayer.request(i)}onSubscribe(e,r){this.setSubscription(e,Yde($7({},r),{id:e})),this.pending.delete(r.topic)}onBatchSubscribe(e){e.length&&e.forEach(r=>{this.setSubscription(r.id,$7({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(e,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,e)&&this.deleteSubscription(r,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,r){this.logger.debug(\\\"Setting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"setSubscription\\\",id:e,subscription:r}),this.addSubscription(e,r)}addSubscription(e,r){this.subscriptions.set(e,$7({},r)),this.topicMap.set(r.topic,e),this.events.emit(Ql.created,r)}getSubscription(e){this.logger.debug(\\\"Getting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"getSubscription\\\",id:e});let r=this.subscriptions.get(e);if(!r){let{message:n}=Se(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw new Error(n)}return r}deleteSubscription(e,r){this.logger.debug(\\\"Deleting subscription\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"deleteSubscription\\\",id:e,reason:r});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(Ql.deleted,Yde($7({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Ql.sync)}async onRestart(){if(this.cached.length){let e=[...this.cached],r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let n=0;n<r;n++){let i=e.splice(0,this.batchSubscribeTopicsLimit);await this.batchSubscribe(i)}}this.events.emit(Ql.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>\\\"u\\\"||!e.length)return;if(this.subscriptions.size){let{message:r}=Se(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){e.length&&(await this.rpcBatchSubscribe(e),this.onBatchSubscribe(await Promise.all(e.map(async r=>Yde($7({},r),{id:await this.getSubscriptionId(r.topic)})))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let r=await this.rpcBatchFetchMessages(e);r&&r.messages&&(await sde((0,et.toMiliseconds)(et.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(r.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async restartToComplete(e){!this.relayer.connected&&!this.relayer.connecting&&(this.cached.push(e),await this.relayer.transportOpen())}async getClientId(){return this.clientId||(this.clientId=await this.relayer.core.crypto.getClientId()),this.clientId}async getSubscriptionId(e){return Kl(e+await this.getClientId())}},Nzt=Object.defineProperty,sQe=Object.getOwnPropertySymbols,kzt=Object.prototype.hasOwnProperty,Bzt=Object.prototype.propertyIsEnumerable,bfe=(t,e,r)=>e in t?Nzt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oQe=(t,e)=>{for(var r in e||(e={}))kzt.call(e,r)&&bfe(t,r,e[r]);if(sQe)for(var r of sQe(e))Bzt.call(e,r)&&bfe(t,r,e[r]);return t},kr=(t,e,r)=>bfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),wfe=class extends Rz{constructor(e){super(e),kr(this,\\\"protocol\\\",\\\"wc\\\"),kr(this,\\\"version\\\",2),kr(this,\\\"core\\\"),kr(this,\\\"logger\\\"),kr(this,\\\"events\\\",new D0.EventEmitter),kr(this,\\\"provider\\\"),kr(this,\\\"messages\\\"),kr(this,\\\"subscriber\\\"),kr(this,\\\"publisher\\\"),kr(this,\\\"name\\\",EHt),kr(this,\\\"transportExplicitlyClosed\\\",!1),kr(this,\\\"initialized\\\",!1),kr(this,\\\"connectionAttemptInProgress\\\",!1),kr(this,\\\"relayUrl\\\"),kr(this,\\\"projectId\\\"),kr(this,\\\"packageName\\\"),kr(this,\\\"bundleId\\\"),kr(this,\\\"hasExperiencedNetworkDisruption\\\",!1),kr(this,\\\"pingTimeout\\\"),kr(this,\\\"heartBeatTimeout\\\",(0,et.toMiliseconds)(et.THIRTY_SECONDS+et.FIVE_SECONDS)),kr(this,\\\"reconnectTimeout\\\"),kr(this,\\\"connectPromise\\\"),kr(this,\\\"reconnectInProgress\\\",!1),kr(this,\\\"requestsInFlight\\\",[]),kr(this,\\\"connectTimeout\\\",(0,et.toMiliseconds)(et.ONE_SECOND*15)),kr(this,\\\"request\\\",async r=>{var n,i;this.logger.debug(\\\"Publishing Request Payload\\\");let s=r.id||Vs().toString();await this.toEstablishConnection();try{this.logger.trace({id:s,method:r.method,topic:(n=r.params)==null?void 0:n.topic},\\\"relayer.request - publishing...\\\");let o=`${s}:${((i=r.params)==null?void 0:i.tag)||\\\"\\\"}`;this.requestsInFlight.push(o);let a=await this.provider.request(r);return this.requestsInFlight=this.requestsInFlight.filter(c=>c!==o),a}catch(o){throw this.logger.debug(`Failed to Publish Request: ${s}`),o}}),kr(this,\\\"resetPingTimeout\\\",()=>{R4()&&(clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var r,n,i,s;try{this.logger.debug({},\\\"pingTimeout: Connection stalled, terminating...\\\"),(s=(i=(n=(r=this.provider)==null?void 0:r.connection)==null?void 0:n.socket)==null?void 0:i.terminate)==null||s.call(i)}catch(o){this.logger.warn(o,o?.message)}},this.heartBeatTimeout))}),kr(this,\\\"onPayloadHandler\\\",r=>{this.onProviderPayload(r),this.resetPingTimeout()}),kr(this,\\\"onConnectHandler\\\",()=>{this.logger.warn({},\\\"Relayer connected \\\\u{1F6DC}\\\"),this.startPingTimeout(),this.events.emit(Js.connect)}),kr(this,\\\"onDisconnectHandler\\\",()=>{this.logger.warn({},\\\"Relayer disconnected \\\\u{1F6D1}\\\"),this.requestsInFlight=[],this.onProviderDisconnect()}),kr(this,\\\"onProviderErrorHandler\\\",r=>{this.logger.fatal(`Fatal socket error: ${r.message}`),this.events.emit(Js.error,r),this.logger.fatal(\\\"Fatal socket error received, closing transport\\\"),this.transportClose()}),kr(this,\\\"registerProviderListeners\\\",()=>{this.provider.on(gd.payload,this.onPayloadHandler),this.provider.on(gd.connect,this.onConnectHandler),this.provider.on(gd.disconnect,this.onDisconnectHandler),this.provider.on(gd.error,this.onProviderErrorHandler)}),this.core=e.core,this.logger=typeof e.logger<\\\"u\\\"&&typeof e.logger!=\\\"string\\\"?rr(e.logger,this.name):(0,sh.default)(Ll({level:e.logger||xHt})),this.messages=new ffe(this.logger,e.core),this.subscriber=new yfe(this,this.logger),this.publisher=new hfe(this,this.logger),this.relayUrl=e?.relayUrl||vQe,this.projectId=e.projectId,Zue()?this.packageName=Vz():Que()&&(this.bundleId=Vz()),this.provider={}}async init(){if(this.logger.trace(\\\"Initialized\\\"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.hasAnyTopics)try{await this.transportOpen()}catch(e){this.logger.warn(e,e?.message)}}get context(){return Ir(this.logger)}get connected(){var e,r,n;return((n=(r=(e=this.provider)==null?void 0:e.connection)==null?void 0:r.socket)==null?void 0:n.readyState)===1||!1}get connecting(){var e,r,n;return((n=(r=(e=this.provider)==null?void 0:e.connection)==null?void 0:r.socket)==null?void 0:n.readyState)===0||this.connectPromise!==void 0||!1}async publish(e,r,n){this.isInitialized(),await this.publisher.publish(e,r,n),await this.recordMessageEvent({topic:e,message:r,publishedAt:Date.now(),transportType:Dn.relay},w$.outbound)}async subscribe(e,r){var n,i,s;this.isInitialized(),(!(r!=null&&r.transportType)||r?.transportType===\\\"relay\\\")&&await this.toEstablishConnection();let o=typeof((n=r?.internal)==null?void 0:n.throwOnFailedPublish)>\\\"u\\\"?!0:(i=r?.internal)==null?void 0:i.throwOnFailedPublish,a=((s=this.subscriber.topicMap.get(e))==null?void 0:s[0])||\\\"\\\",c,l=d=>{d.topic===e&&(this.subscriber.off(Ql.created,l),c())};return await Promise.all([new Promise(d=>{c=d,this.subscriber.on(Ql.created,l)}),new Promise(async(d,f)=>{a=await this.subscriber.subscribe(e,oQe({internal:{throwOnFailedPublish:o}},r)).catch(p=>{o&&f(p)})||a,d()})]),a}async unsubscribe(e,r){this.isInitialized(),await this.subscriber.unsubscribe(e,r)}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await vh(this.provider.disconnect(),2e3,\\\"provider.disconnect()\\\").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){if(!this.subscriber.hasAnyTopics){this.logger.warn(\\\"Starting WS connection skipped because the client has no topics to work with.\\\");return}if(this.connectPromise?(this.logger.debug({},\\\"Waiting for existing connection attempt to resolve...\\\"),await this.connectPromise,this.logger.debug({},\\\"Existing connection attempt resolved\\\")):(this.connectPromise=new Promise(async(r,n)=>{await this.connect(e).then(r).catch(n).finally(()=>{this.connectPromise=void 0})}),await this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},\\\"Restarting transport...\\\"),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await g$())throw new Error(\\\"No internet connection detected. Please restart your network and try again.\\\")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace(\\\"Batch message events is empty. Ignoring...\\\");return}let r=e.sort((n,i)=>n.publishedAt-i.publishedAt);this.logger.debug(`Batch of ${r.length} message events sorted`);for(let n of r)try{await this.onMessageEvent(n)}catch(i){this.logger.warn(i,\\\"Error while processing batch message event: \\\"+i?.message)}this.logger.trace(`Batch of ${r.length} message events processed`)}async onLinkMessageEvent(e,r){let{topic:n}=e;if(!r.sessionExists){let i=ns(et.FIVE_MINUTES),s={topic:n,expiry:i,relay:{protocol:\\\"irn\\\"},active:!1};await this.core.pairing.pairings.set(n,s)}this.events.emit(Js.message,e),await this.recordMessageEvent(e,w$.inbound)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;let r=1;for(;r<6;){try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${r}...`),await this.createProvider(),await new Promise(async(n,i)=>{let s=()=>{i(new Error(\\\"Connection interrupted while trying to subscribe\\\"))};this.provider.once(gd.disconnect,s),await vh(new Promise((o,a)=>{this.provider.connect().then(o).catch(a)}),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(o=>{i(o)}).finally(()=>{this.provider.off(gd.disconnect,s),clearTimeout(this.reconnectTimeout)}),await new Promise(async(o,a)=>{let c=()=>{a(new Error(\\\"Connection interrupted while trying to subscribe\\\"))};this.provider.once(gd.disconnect,c),await this.subscriber.start().then(o).catch(a).finally(()=>{this.provider.off(gd.disconnect,c)})}),this.hasExperiencedNetworkDisruption=!1,n()})}catch(n){await this.subscriber.stop();let i=n;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${r}`);break}await new Promise(n=>setTimeout(n,(0,et.toMiliseconds)(r*1))),r++}}startPingTimeout(){var e,r,n,i,s;if(R4())try{(r=(e=this.provider)==null?void 0:e.connection)!=null&&r.socket&&((s=(i=(n=this.provider)==null?void 0:n.connection)==null?void 0:i.socket)==null||s.on(\\\"ping\\\",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(o){this.logger.warn(o,o?.message)}}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new O2(new QC(Yue({sdkVersion:efe,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e,r){let{topic:n,message:i}=e;await this.messages.set(n,i,r)}async shouldIgnoreMessageEvent(e){let{topic:r,message:n}=e;if(!n||n.length===0)return this.logger.warn(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isKnownTopic(r))return this.logger.warn(`Ignoring message for unknown topic ${r}`),!0;let i=this.messages.has(r,n);return i&&this.logger.warn(`Ignoring duplicate message: ${n}`),i}async onProviderPayload(e){if(this.logger.debug(\\\"Incoming Relay Payload\\\"),this.logger.trace({type:\\\"payload\\\",direction:\\\"incoming\\\",payload:e}),yf(e)){if(!e.method.endsWith(_Ht))return;let r=e.params,{topic:n,message:i,publishedAt:s,attestation:o}=r.data,a={topic:n,message:i,publishedAt:s,transportType:Dn.relay,attestation:o};this.logger.debug(\\\"Emitting Relayer Payload\\\"),this.logger.trace(oQe({type:\\\"event\\\",event:r.id},a)),this.events.emit(r.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else Fl(e)&&this.events.emit(Js.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(await this.recordMessageEvent(e,w$.inbound),this.events.emit(Js.message,e))}async acknowledgePayload(e){let r=gf(e.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(gd.payload,this.onPayloadHandler),this.provider.off(gd.connect,this.onConnectHandler),this.provider.off(gd.disconnect,this.onDisconnectHandler),this.provider.off(gd.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await g$();Kde(async r=>{e!==r&&(e=r,r?await this.transportOpen().catch(n=>this.logger.error(n,n?.message)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}),this.core.heartbeat.on(sc.pulse,async()=>{if(!this.transportExplicitlyClosed&&!this.connected&&Zde())try{await this.confirmOnlineStateOrThrow(),await this.transportOpen()}catch(r){this.logger.warn(r,r?.message)}})}async onProviderDisconnect(){clearTimeout(this.pingTimeout),this.events.emit(Js.disconnect),this.connectionAttemptInProgress=!1,!this.reconnectInProgress&&(this.reconnectInProgress=!0,await this.subscriber.stop(),this.subscriber.hasAnyTopics&&(this.transportExplicitlyClosed||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e,e?.message)),this.reconnectTimeout=void 0,this.reconnectInProgress=!1},(0,et.toMiliseconds)(CHt)))))}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectPromise){await this.connectPromise;return}await this.connect()}}};Dzt=\\\"[object RegExp]\\\",Lzt=\\\"[object String]\\\",Uzt=\\\"[object Number]\\\",Fzt=\\\"[object Boolean]\\\",uQe=\\\"[object Arguments]\\\",jzt=\\\"[object Symbol]\\\",Hzt=\\\"[object Date]\\\",qzt=\\\"[object Map]\\\",zzt=\\\"[object Set]\\\",$zt=\\\"[object Array]\\\",Vzt=\\\"[object Function]\\\",Wzt=\\\"[object ArrayBuffer]\\\",Xde=\\\"[object Object]\\\",Gzt=\\\"[object Error]\\\",Kzt=\\\"[object DataView]\\\",Zzt=\\\"[object Uint8Array]\\\",Qzt=\\\"[object Uint8ClampedArray]\\\",Jzt=\\\"[object Uint16Array]\\\",Yzt=\\\"[object Uint32Array]\\\",Xzt=\\\"[object BigUint64Array]\\\",e$t=\\\"[object Int8Array]\\\",t$t=\\\"[object Int16Array]\\\",r$t=\\\"[object Int32Array]\\\",n$t=\\\"[object BigInt64Array]\\\",i$t=\\\"[object Float32Array]\\\",s$t=\\\"[object Float64Array]\\\";l$t=Object.defineProperty,dQe=Object.getOwnPropertySymbols,u$t=Object.prototype.hasOwnProperty,d$t=Object.prototype.propertyIsEnumerable,vfe=(t,e,r)=>e in t?l$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fQe=(t,e)=>{for(var r in e||(e={}))u$t.call(e,r)&&vfe(t,r,e[r]);if(dQe)for(var r of dQe(e))d$t.call(e,r)&&vfe(t,r,e[r]);return t},el=(t,e,r)=>vfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Sh=class extends Pz{constructor(e,r,n,i=Ch,s=void 0){super(e,r,n,i),this.core=e,this.logger=r,this.name=n,el(this,\\\"map\\\",new Map),el(this,\\\"version\\\",SHt),el(this,\\\"cached\\\",[]),el(this,\\\"initialized\\\",!1),el(this,\\\"getKey\\\"),el(this,\\\"storagePrefix\\\",Ch),el(this,\\\"recentlyDeleted\\\",[]),el(this,\\\"recentlyDeletedLimit\\\",200),el(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(o=>{this.getKey&&o!==null&&!Bs(o)?this.map.set(this.getKey(o),o):Bde(o)?this.map.set(o.id,o):Mde(o)&&this.map.set(o.topic,o)}),this.cached=[],this.initialized=!0)}),el(this,\\\"set\\\",async(o,a)=>{this.isInitialized(),this.map.has(o)?await this.update(o,a):(this.logger.debug(\\\"Setting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"set\\\",key:o,value:a}),this.map.set(o,a),await this.persist())}),el(this,\\\"get\\\",o=>(this.isInitialized(),this.logger.debug(\\\"Getting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"get\\\",key:o}),this.getData(o))),el(this,\\\"getAll\\\",o=>(this.isInitialized(),o?this.values.filter(a=>Object.keys(o).every(c=>c$t(a[c],o[c]))):this.values)),el(this,\\\"update\\\",async(o,a)=>{this.isInitialized(),this.logger.debug(\\\"Updating value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"update\\\",key:o,update:a});let c=fQe(fQe({},this.getData(o)),a);this.map.set(o,c),await this.persist()}),el(this,\\\"delete\\\",async(o,a)=>{this.isInitialized(),this.map.has(o)&&(this.logger.debug(\\\"Deleting value\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"delete\\\",key:o,reason:a}),this.map.delete(o),this.addToRecentlyDeleted(o),await this.persist())}),this.logger=rr(r,this.name),this.storagePrefix=i,this.getKey=s}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let r=this.map.get(e);if(!r){if(this.recentlyDeleted.includes(e)){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(i),new Error(i)}let{message:n}=Se(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>\\\"u\\\"||!e.length)return;if(this.map.size){let{message:r}=Se(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},f$t=Object.defineProperty,p$t=(t,e,r)=>e in t?f$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,or=(t,e,r)=>p$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),xfe=class{constructor(e,r){this.core=e,this.logger=r,or(this,\\\"name\\\",RHt),or(this,\\\"version\\\",PHt),or(this,\\\"events\\\",new D0.default),or(this,\\\"pairings\\\"),or(this,\\\"initialized\\\",!1),or(this,\\\"storagePrefix\\\",Ch),or(this,\\\"ignoredPayloadTypes\\\",[md]),or(this,\\\"registeredMethods\\\",[]),or(this,\\\"init\\\",async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace(\\\"Initialized\\\"))}),or(this,\\\"register\\\",({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]}),or(this,\\\"create\\\",async n=>{this.isInitialized();let i=H7(),s=await this.core.crypto.setSymKey(i),o=ns(et.FIVE_MINUTES),a={protocol:Pfe},c={topic:s,expiry:o,relay:a,active:!1,methods:n?.methods},l=d$({protocol:this.core.protocol,version:this.core.version,topic:s,symKey:i,relay:a,expiryTimestamp:o,methods:n?.methods});return this.events.emit(V1.create,c),this.core.expirer.set(s,o),await this.pairings.set(s,c),await this.core.relayer.subscribe(s,{transportType:n?.transportType}),{topic:s,uri:l}}),or(this,\\\"pair\\\",async n=>{this.isInitialized();let i=this.core.eventClient.createEvent({properties:{topic:n?.uri,trace:[Of.pairing_started]}});this.isValidPair(n,i);let{topic:s,symKey:o,relay:a,expiryTimestamp:c,methods:l}=u$(n.uri);i.props.properties.topic=s,i.addTrace(Of.pairing_uri_validation_success),i.addTrace(Of.pairing_uri_not_expired);let d;if(this.pairings.keys.includes(s)){if(d=this.pairings.get(s),i.addTrace(Of.existing_pairing),d.active)throw i.setError(_h.active_pairing_already_exists),new Error(`Pairing already exists: ${s}. Please try again with a new connection URI.`);i.addTrace(Of.pairing_not_expired)}let f=c||ns(et.FIVE_MINUTES),p={topic:s,relay:a,expiry:f,active:!1,methods:l};this.core.expirer.set(s,f),await this.pairings.set(s,p),i.addTrace(Of.store_new_pairing),n.activatePairing&&await this.activate({topic:s}),this.events.emit(V1.create,p),i.addTrace(Of.emit_inactive_pairing),this.core.crypto.keychain.has(s)||await this.core.crypto.setSymKey(o,s),i.addTrace(Of.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(_h.no_internet_connection)}try{await this.core.relayer.subscribe(s,{relay:a})}catch(h){throw i.setError(_h.subscribe_pairing_topic_failure),h}return i.addTrace(Of.subscribe_pairing_topic_success),p}),or(this,\\\"activate\\\",async({topic:n})=>{this.isInitialized();let i=ns(et.FIVE_MINUTES);this.core.expirer.set(n,i),await this.pairings.update(n,{active:!0,expiry:i})}),or(this,\\\"ping\\\",async n=>{this.isInitialized(),await this.isValidPing(n),this.logger.warn(\\\"ping() is deprecated and will be removed in the next major release.\\\");let{topic:i}=n;if(this.pairings.keys.includes(i)){let s=await this.sendRequest(i,\\\"wc_pairingPing\\\",{}),{done:o,resolve:a,reject:c}=wh();this.events.once(xr(\\\"pairing_ping\\\",s),({error:l})=>{l?c(l):a()}),await o()}}),or(this,\\\"updateExpiry\\\",async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})}),or(this,\\\"updateMetadata\\\",async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})}),or(this,\\\"getPairings\\\",()=>(this.isInitialized(),this.pairings.values)),or(this,\\\"disconnect\\\",async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,\\\"wc_pairingDelete\\\",Jr(\\\"USER_DISCONNECTED\\\")),await this.deletePairing(i))}),or(this,\\\"formatUriFromPairing\\\",n=>{this.isInitialized();let{topic:i,relay:s,expiry:o,methods:a}=n,c=this.core.crypto.keychain.get(i);return d$({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:c,relay:s,expiryTimestamp:o,methods:a})}),or(this,\\\"sendRequest\\\",async(n,i,s)=>{let o=Ws(i,s),a=await this.core.crypto.encode(n,o),c=z7[i].req;return this.core.history.set(n,o),this.core.relayer.publish(n,a,c),o.id}),or(this,\\\"sendResult\\\",async(n,i,s)=>{let o=gf(n,s),a=await this.core.crypto.encode(i,o),c=(await this.core.history.get(i,n)).request.method,l=z7[c].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(o)}),or(this,\\\"sendError\\\",async(n,i,s)=>{let o=Ul(n,s),a=await this.core.crypto.encode(i,o),c=(await this.core.history.get(i,n)).request.method,l=z7[c]?z7[c].res:z7.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(o)}),or(this,\\\"deletePairing\\\",async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Jr(\\\"USER_DISCONNECTED\\\")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])}),or(this,\\\"cleanup\\\",async()=>{let n=this.pairings.getAll().filter(i=>If(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))}),or(this,\\\"onRelayEventRequest\\\",async n=>{let{topic:i,payload:s}=n;switch(s.method){case\\\"wc_pairingPing\\\":return await this.onPairingPingRequest(i,s);case\\\"wc_pairingDelete\\\":return await this.onPairingDeleteRequest(i,s);default:return await this.onUnknownRpcMethodRequest(i,s)}}),or(this,\\\"onRelayEventResponse\\\",async n=>{let{topic:i,payload:s}=n,o=(await this.core.history.get(i,s.id)).request.method;return o===\\\"wc_pairingPing\\\"?this.onPairingPingResponse(i,s):this.onUnknownRpcMethodResponse(o)}),or(this,\\\"onPairingPingRequest\\\",async(n,i)=>{let{id:s}=i;try{this.isValidPing({topic:n}),await this.sendResult(s,n,!0),this.events.emit(V1.ping,{id:s,topic:n})}catch(o){await this.sendError(s,n,o),this.logger.error(o)}}),or(this,\\\"onPairingPingResponse\\\",(n,i)=>{let{id:s}=i;setTimeout(()=>{Ii(i)?this.events.emit(xr(\\\"pairing_ping\\\",s),{}):nn(i)&&this.events.emit(xr(\\\"pairing_ping\\\",s),{error:i.error})},500)}),or(this,\\\"onPairingDeleteRequest\\\",async(n,i)=>{let{id:s}=i;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(V1.delete,{id:s,topic:n})}catch(o){await this.sendError(s,n,o),this.logger.error(o)}}),or(this,\\\"onUnknownRpcMethodRequest\\\",async(n,i)=>{let{id:s,method:o}=i;try{if(this.registeredMethods.includes(o))return;let a=Jr(\\\"WC_METHOD_UNSUPPORTED\\\",o);await this.sendError(s,n,a),this.logger.error(a)}catch(a){await this.sendError(s,n,a),this.logger.error(a)}}),or(this,\\\"onUnknownRpcMethodResponse\\\",n=>{this.registeredMethods.includes(n)||this.logger.error(Jr(\\\"WC_METHOD_UNSUPPORTED\\\",n))}),or(this,\\\"isValidPair\\\",(n,i)=>{var s;if(!na(n)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`pair() params: ${n}`);throw i.setError(_h.malformed_pairing_uri),new Error(a)}if(!kde(n.uri)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`pair() uri: ${n.uri}`);throw i.setError(_h.malformed_pairing_uri),new Error(a)}let o=u$(n?.uri);if(!((s=o?.relay)!=null&&s.protocol)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",\\\"pair() uri#relay-protocol\\\");throw i.setError(_h.malformed_pairing_uri),new Error(a)}if(!(o!=null&&o.symKey)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",\\\"pair() uri#symKey\\\");throw i.setError(_h.malformed_pairing_uri),new Error(a)}if(o!=null&&o.expiryTimestamp&&(0,et.toMiliseconds)(o?.expiryTimestamp)<Date.now()){i.setError(_h.pairing_expired);let{message:a}=Se(\\\"EXPIRED\\\",\\\"pair() URI has expired. Please try again with a new connection URI.\\\");throw new Error(a)}}),or(this,\\\"isValidPing\\\",async n=>{if(!na(n)){let{message:s}=Se(\\\"MISSING_OR_INVALID\\\",`ping() params: ${n}`);throw new Error(s)}let{topic:i}=n;await this.isValidPairingTopic(i)}),or(this,\\\"isValidDisconnect\\\",async n=>{if(!na(n)){let{message:s}=Se(\\\"MISSING_OR_INVALID\\\",`disconnect() params: ${n}`);throw new Error(s)}let{topic:i}=n;await this.isValidPairingTopic(i)}),or(this,\\\"isValidPairingTopic\\\",async n=>{if(!Hi(n,!1)){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Se(\\\"NO_MATCHING_KEY\\\",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(If(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Se(\\\"EXPIRED\\\",`pairing topic: ${n}`);throw new Error(i)}}),this.core=e,this.logger=rr(r,this.name),this.pairings=new Sh(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Ir(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Js.message,async e=>{let{topic:r,message:n,transportType:i}=e;if(this.pairings.keys.includes(r)&&i!==Dn.link_mode&&!this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))try{let s=await this.core.crypto.decode(r,n);yf(s)?(this.core.history.set(r,s),await this.onRelayEventRequest({topic:r,payload:s})):Fl(s)&&(await this.core.history.resolve(s),await this.onRelayEventResponse({topic:r,payload:s}),this.core.history.delete(r,s.id)),await this.core.relayer.messages.ack(r,n)}catch(s){this.logger.error(s)}})}registerExpirerEvents(){this.core.expirer.on(Jl.expired,async e=>{let{topic:r}=D7(e.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(V1.expire,{topic:r}))})}},h$t=Object.defineProperty,m$t=(t,e,r)=>e in t?h$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sa=(t,e,r)=>m$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Efe=class extends Az{constructor(e,r){super(e,r),this.core=e,this.logger=r,sa(this,\\\"records\\\",new Map),sa(this,\\\"events\\\",new D0.EventEmitter),sa(this,\\\"name\\\",OHt),sa(this,\\\"version\\\",NHt),sa(this,\\\"cached\\\",[]),sa(this,\\\"initialized\\\",!1),sa(this,\\\"storagePrefix\\\",Ch),sa(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),sa(this,\\\"set\\\",(n,i,s)=>{if(this.isInitialized(),this.logger.debug(\\\"Setting JSON-RPC request history record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"set\\\",topic:n,request:i,chainId:s}),this.records.has(i.id))return;let o={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:s,expiry:ns(et.THIRTY_DAYS)};this.records.set(o.id,o),this.persist(),this.events.emit(Rf.created,o)}),sa(this,\\\"resolve\\\",async n=>{if(this.isInitialized(),this.logger.debug(\\\"Updating JSON-RPC response history record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"update\\\",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>\\\"u\\\"&&(i.response=nn(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.persist(),this.events.emit(Rf.updated,i))}),sa(this,\\\"get\\\",async(n,i)=>(this.isInitialized(),this.logger.debug(\\\"Getting record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"get\\\",topic:n,id:i}),await this.getRecord(i))),sa(this,\\\"delete\\\",(n,i)=>{this.isInitialized(),this.logger.debug(\\\"Deleting record\\\"),this.logger.trace({type:\\\"method\\\",method:\\\"delete\\\",id:i}),this.values.forEach(s=>{if(s.topic===n){if(typeof i<\\\"u\\\"&&s.id!==i)return;this.records.delete(s.id),this.events.emit(Rf.deleted,s)}}),this.persist()}),sa(this,\\\"exists\\\",async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1)),sa(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),sa(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),sa(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),sa(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(r=>{if(typeof r.response<\\\"u\\\")return;let n={topic:r.topic,request:Ws(r.request.method,r.request.params,r.id),chainId:r.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let r=this.records.get(e);if(!r){let{message:n}=Se(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(Rf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>\\\"u\\\"||!e.length)return;if(this.records.size){let{message:r}=Se(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(Rf.created,e=>{let r=Rf.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.events.on(Rf.updated,e=>{let r=Rf.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.events.on(Rf.deleted,e=>{let r=Rf.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,record:e})}),this.core.heartbeat.on(sc.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(r=>{(0,et.toMiliseconds)(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.records.delete(r.id),this.events.emit(Rf.deleted,r,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},g$t=Object.defineProperty,y$t=(t,e,r)=>e in t?g$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oa=(t,e,r)=>y$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),_fe=class extends Nz{constructor(e,r){super(e,r),this.core=e,this.logger=r,Oa(this,\\\"expirations\\\",new Map),Oa(this,\\\"events\\\",new D0.EventEmitter),Oa(this,\\\"name\\\",kHt),Oa(this,\\\"version\\\",BHt),Oa(this,\\\"cached\\\",[]),Oa(this,\\\"initialized\\\",!1),Oa(this,\\\"storagePrefix\\\",Ch),Oa(this,\\\"init\\\",async()=>{this.initialized||(this.logger.trace(\\\"Initialized\\\"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),Oa(this,\\\"has\\\",n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<\\\"u\\\"}catch{return!1}}),Oa(this,\\\"set\\\",(n,i)=>{this.isInitialized();let s=this.formatTarget(n),o={target:s,expiry:i};this.expirations.set(s,o),this.checkExpiry(s,o),this.events.emit(Jl.created,{target:s,expiration:o})}),Oa(this,\\\"get\\\",n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)}),Oa(this,\\\"del\\\",n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),s=this.getExpiration(i);this.expirations.delete(i),this.events.emit(Jl.deleted,{target:i,expiration:s})}}),Oa(this,\\\"on\\\",(n,i)=>{this.events.on(n,i)}),Oa(this,\\\"once\\\",(n,i)=>{this.events.once(n,i)}),Oa(this,\\\"off\\\",(n,i)=>{this.events.off(n,i)}),Oa(this,\\\"removeListener\\\",(n,i)=>{this.events.removeListener(n,i)}),this.logger=rr(r,this.name)}get context(){return Ir(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//\\\"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e==\\\"string\\\")return ede(e);if(typeof e==\\\"number\\\")return tde(e);let{message:r}=Se(\\\"UNKNOWN_TYPE\\\",`Target type: ${typeof e}`);throw new Error(r)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Jl.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>\\\"u\\\"||!e.length)return;if(this.expirations.size){let{message:r}=Se(\\\"RESTORE_WILL_OVERRIDE\\\",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:\\\"method\\\",method:\\\"restore\\\",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let r=this.expirations.get(e);if(!r){let{message:n}=Se(\\\"NO_MATCHING_KEY\\\",`${this.name}: ${e}`);throw this.logger.warn(n),new Error(n)}return r}checkExpiry(e,r){let{expiry:n}=r;(0,et.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,r)}expire(e,r){this.expirations.delete(e),this.events.emit(Jl.expired,{target:e,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,r)=>this.checkExpiry(r,e))}registerEventListeners(){this.core.heartbeat.on(sc.pulse,()=>this.checkExpirations()),this.events.on(Jl.created,e=>{let r=Jl.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()}),this.events.on(Jl.expired,e=>{let r=Jl.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()}),this.events.on(Jl.deleted,e=>{let r=Jl.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:\\\"event\\\",event:r,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}},b$t=Object.defineProperty,w$t=(t,e,r)=>e in t?b$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ms=(t,e,r)=>w$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Cfe=class extends kz{constructor(e,r,n){super(e,r,n),this.core=e,this.logger=r,this.store=n,Ms(this,\\\"name\\\",MHt),Ms(this,\\\"abortController\\\"),Ms(this,\\\"isDevEnv\\\"),Ms(this,\\\"verifyUrlV3\\\",LHt),Ms(this,\\\"storagePrefix\\\",Ch),Ms(this,\\\"version\\\",wQe),Ms(this,\\\"publicKey\\\"),Ms(this,\\\"fetchPromise\\\"),Ms(this,\\\"init\\\",async()=>{var i;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,et.toMiliseconds)((i=this.publicKey)==null?void 0:i.expiresAt)<Date.now()&&(this.logger.debug(\\\"verify v2 public key expired\\\"),await this.removePublicKey()))}),Ms(this,\\\"register\\\",async i=>{if(!z1()||this.isDevEnv)return;let s=window.location.origin,{id:o,decryptedId:a}=i,c=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${s}&id=${o}&decryptedId=${a}`;try{let l=(0,yQe.getDocument)(),d=this.startAbortTimer(et.ONE_SECOND*5),f=await new Promise((p,h)=>{let m=()=>{window.removeEventListener(\\\"message\\\",w),l.body.removeChild(g),h(\\\"attestation aborted\\\")};this.abortController.signal.addEventListener(\\\"abort\\\",m);let g=l.createElement(\\\"iframe\\\");g.src=c,g.style.display=\\\"none\\\",g.addEventListener(\\\"error\\\",m,{signal:this.abortController.signal});let w=v=>{if(v.data&&typeof v.data==\\\"string\\\")try{let b=JSON.parse(v.data);if(b.type===\\\"verify_attestation\\\"){if(Qp(b.attestation).payload.id!==o)return;clearInterval(d),l.body.removeChild(g),this.abortController.signal.removeEventListener(\\\"abort\\\",m),window.removeEventListener(\\\"message\\\",w),p(b.attestation===null?\\\"\\\":b.attestation)}}catch(b){this.logger.warn(b)}};l.body.appendChild(g),window.addEventListener(\\\"message\\\",w,{signal:this.abortController.signal})});return this.logger.debug(\\\"jwt attestation\\\",f),f}catch(l){this.logger.warn(l)}return\\\"\\\"}),Ms(this,\\\"resolve\\\",async i=>{if(this.isDevEnv)return\\\"\\\";let{attestationId:s,hash:o,encryptedId:a}=i;if(s===\\\"\\\"){this.logger.debug(\\\"resolve: attestationId is empty, skipping\\\");return}if(s){if(Qp(s).payload.id!==a)return;let l=await this.isValidJwtAttestation(s);if(l){if(!l.isVerified){this.logger.warn(\\\"resolve: jwt attestation: origin url not verified\\\");return}return l}}if(!o)return;let c=this.getVerifyUrl(i?.verifyUrl);return this.fetchAttestation(o,c)}),Ms(this,\\\"fetchAttestation\\\",async(i,s)=>{this.logger.debug(`resolving attestation: ${i} from url: ${s}`);let o=this.startAbortTimer(et.ONE_SECOND*5),a=await fetch(`${s}/attestation/${i}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(o),a.status===200?await a.json():void 0}),Ms(this,\\\"getVerifyUrl\\\",i=>{let s=i||F4;return UHt.includes(s)||(this.logger.info(`verify url: ${s}, not included in trusted list, assigning default: ${F4}`),s=F4),s}),Ms(this,\\\"fetchPublicKey\\\",async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);let i=this.startAbortTimer(et.FIVE_SECONDS),s=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(i),await s.json()}catch(i){this.logger.warn(i)}}),Ms(this,\\\"persistPublicKey\\\",async i=>{this.logger.debug(\\\"persisting public key to local storage\\\",i),await this.store.setItem(this.storeKey,i),this.publicKey=i}),Ms(this,\\\"removePublicKey\\\",async()=>{this.logger.debug(\\\"removing verify v2 public key from storage\\\"),await this.store.removeItem(this.storeKey),this.publicKey=void 0}),Ms(this,\\\"isValidJwtAttestation\\\",async i=>{let s=await this.getPublicKey();try{if(s)return this.validateAttestation(i,s)}catch(a){this.logger.error(a),this.logger.warn(\\\"error validating attestation\\\")}let o=await this.fetchAndPersistPublicKey();try{if(o)return this.validateAttestation(i,o)}catch(a){this.logger.error(a),this.logger.warn(\\\"error validating attestation\\\")}}),Ms(this,\\\"getPublicKey\\\",async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey()),Ms(this,\\\"fetchAndPersistPublicKey\\\",async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async s=>{let o=await this.fetchPublicKey();o&&(await this.persistPublicKey(o),s(o))});let i=await this.fetchPromise;return this.fetchPromise=void 0,i}),Ms(this,\\\"validateAttestation\\\",(i,s)=>{let o=Rde(i,s.publicKey),a={hasExpired:(0,et.toMiliseconds)(o.exp)<Date.now(),payload:o};if(a.hasExpired)throw this.logger.warn(\\\"resolve: jwt attestation expired\\\"),new Error(\\\"JWT attestation expired\\\");return{origin:a.payload.origin,isScam:a.payload.isScam,isVerified:a.payload.isVerified}}),this.logger=rr(r,this.name),this.abortController=new AbortController,this.isDevEnv=P4(),this.init()}get storeKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+\\\"//verify:public:key\\\"}get context(){return Ir(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,et.toMiliseconds)(e))}},v$t=Object.defineProperty,x$t=(t,e,r)=>e in t?v$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pQe=(t,e,r)=>x$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Sfe=class extends Bz{constructor(e,r){super(e,r),this.projectId=e,this.logger=r,pQe(this,\\\"context\\\",FHt),pQe(this,\\\"registerDeviceToken\\\",async n=>{let{clientId:i,token:s,notificationType:o,enableEncrypted:a=!1}=n,c=`${jHt}/${this.projectId}/clients`;await fetch(c,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify({client_id:i,type:o,token:s,always_raw:a})})}),this.logger=rr(r,this.context)}},E$t=Object.defineProperty,hQe=Object.getOwnPropertySymbols,_$t=Object.prototype.hasOwnProperty,C$t=Object.prototype.propertyIsEnumerable,Afe=(t,e,r)=>e in t?E$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V7=(t,e)=>{for(var r in e||(e={}))_$t.call(e,r)&&Afe(t,r,e[r]);if(hQe)for(var r of hQe(e))C$t.call(e,r)&&Afe(t,r,e[r]);return t},Co=(t,e,r)=>Afe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Tfe=class extends Mz{constructor(e,r,n=!0){super(e,r,n),this.core=e,this.logger=r,Co(this,\\\"context\\\",qHt),Co(this,\\\"storagePrefix\\\",Ch),Co(this,\\\"storageVersion\\\",HHt),Co(this,\\\"events\\\",new Map),Co(this,\\\"shouldPersist\\\",!1),Co(this,\\\"init\\\",async()=>{if(!P4())try{let i={eventId:Zz(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:\\\"INIT\\\",type:\\\"\\\",properties:{client_id:await this.core.crypto.getClientId(),user_agent:Gz(this.core.relayer.protocol,this.core.relayer.version,efe)}}};await this.sendEvent([i])}catch(i){this.logger.warn(i)}}),Co(this,\\\"createEvent\\\",i=>{let{event:s=\\\"ERROR\\\",type:o=\\\"\\\",properties:{topic:a,trace:c}}=i,l=Zz(),d=this.core.projectId||\\\"\\\",f=Date.now(),p=V7({eventId:l,timestamp:f,props:{event:s,type:o,properties:{topic:a,trace:c}},bundleId:d,domain:this.getAppDomain()},this.setMethods(l));return this.telemetryEnabled&&(this.events.set(l,p),this.shouldPersist=!0),p}),Co(this,\\\"getEvent\\\",i=>{let{eventId:s,topic:o}=i;if(s)return this.events.get(s);let a=Array.from(this.events.values()).find(c=>c.props.properties.topic===o);if(a)return V7(V7({},a),this.setMethods(a.eventId))}),Co(this,\\\"deleteEvent\\\",i=>{let{eventId:s}=i;this.events.delete(s),this.shouldPersist=!0}),Co(this,\\\"setEventListeners\\\",()=>{this.core.heartbeat.on(sc.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(i=>{(0,et.fromMiliseconds)(Date.now())-(0,et.fromMiliseconds)(i.timestamp)>zHt&&(this.events.delete(i.eventId),this.shouldPersist=!0)})})}),Co(this,\\\"setMethods\\\",i=>({addTrace:s=>this.addTrace(i,s),setError:s=>this.setError(i,s)})),Co(this,\\\"addTrace\\\",(i,s)=>{let o=this.events.get(i);o&&(o.props.properties.trace.push(s),this.events.set(i,o),this.shouldPersist=!0)}),Co(this,\\\"setError\\\",(i,s)=>{let o=this.events.get(i);o&&(o.props.type=s,o.timestamp=Date.now(),this.events.set(i,o),this.shouldPersist=!0)}),Co(this,\\\"persist\\\",async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1}),Co(this,\\\"restore\\\",async()=>{try{let i=await this.core.storage.getItem(this.storageKey)||[];if(!i.length)return;i.forEach(s=>{this.events.set(s.eventId,V7(V7({},s),this.setMethods(s.eventId)))})}catch(i){this.logger.warn(i)}}),Co(this,\\\"submit\\\",async()=>{if(!this.telemetryEnabled||this.events.size===0)return;let i=[];for(let[s,o]of this.events)o.props.type&&i.push(o);if(i.length!==0)try{if((await this.sendEvent(i)).ok)for(let s of i)this.events.delete(s.eventId),this.shouldPersist=!0}catch(s){this.logger.warn(s)}}),Co(this,\\\"sendEvent\\\",async i=>{let s=this.getAppDomain()?\\\"\\\":\\\"&sp=desktop\\\";return await fetch(`${$Ht}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${efe}${s}`,{method:\\\"POST\\\",body:JSON.stringify(i)})}),Co(this,\\\"getAppDomain\\\",()=>Wz().url),this.logger=rr(r,this.context),this.telemetryEnabled=n,n?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+\\\"//\\\"+this.context}},S$t=Object.defineProperty,mQe=Object.getOwnPropertySymbols,A$t=Object.prototype.hasOwnProperty,T$t=Object.prototype.propertyIsEnumerable,Ife=(t,e,r)=>e in t?S$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,gQe=(t,e)=>{for(var r in e||(e={}))A$t.call(e,r)&&Ife(t,r,e[r]);if(mQe)for(var r of mQe(e))T$t.call(e,r)&&Ife(t,r,e[r]);return t},Mn=(t,e,r)=>Ife(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Rfe=class t extends Sz{constructor(e){var r;super(e),Mn(this,\\\"protocol\\\",bQe),Mn(this,\\\"version\\\",wQe),Mn(this,\\\"name\\\",v$),Mn(this,\\\"relayUrl\\\"),Mn(this,\\\"projectId\\\"),Mn(this,\\\"customStoragePrefix\\\"),Mn(this,\\\"events\\\",new D0.EventEmitter),Mn(this,\\\"logger\\\"),Mn(this,\\\"heartbeat\\\"),Mn(this,\\\"relayer\\\"),Mn(this,\\\"crypto\\\"),Mn(this,\\\"storage\\\"),Mn(this,\\\"history\\\"),Mn(this,\\\"expirer\\\"),Mn(this,\\\"pairing\\\"),Mn(this,\\\"verify\\\"),Mn(this,\\\"echoClient\\\"),Mn(this,\\\"linkModeSupportedApps\\\"),Mn(this,\\\"eventClient\\\"),Mn(this,\\\"initialized\\\",!1),Mn(this,\\\"logChunkController\\\"),Mn(this,\\\"on\\\",(a,c)=>this.events.on(a,c)),Mn(this,\\\"once\\\",(a,c)=>this.events.once(a,c)),Mn(this,\\\"off\\\",(a,c)=>this.events.off(a,c)),Mn(this,\\\"removeListener\\\",(a,c)=>this.events.removeListener(a,c)),Mn(this,\\\"dispatchEnvelope\\\",({topic:a,message:c,sessionExists:l})=>{if(!a||!c)return;let d={topic:a,message:c,publishedAt:Date.now(),transportType:Dn.link_mode};this.relayer.onLinkMessageEvent(d,{sessionExists:l})});let n=this.getGlobalCore(e?.customStoragePrefix);if(n)try{return this.customStoragePrefix=n.customStoragePrefix,this.logger=n.logger,this.heartbeat=n.heartbeat,this.crypto=n.crypto,this.history=n.history,this.expirer=n.expirer,this.storage=n.storage,this.relayer=n.relayer,this.pairing=n.pairing,this.verify=n.verify,this.echoClient=n.echoClient,this.linkModeSupportedApps=n.linkModeSupportedApps,this.eventClient=n.eventClient,this.initialized=n.initialized,this.logChunkController=n.logChunkController,n}catch(a){console.warn(\\\"Failed to copy global core\\\",a)}this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||vQe,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:\\\"\\\";let i=Ll({level:typeof e?.logger==\\\"string\\\"&&e.logger?e.logger:fHt.logger,name:v$}),{logger:s,chunkLoggerController:o}=P2({opts:i,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=o,(r=this.logChunkController)!=null&&r.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var a,c;(a=this.logChunkController)!=null&&a.downloadLogsBlobInBrowser&&((c=this.logChunkController)==null||c.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=rr(s,this.name),this.heartbeat=new VC,this.crypto=new ufe(this,this.logger,e?.keychain),this.history=new Efe(this,this.logger),this.expirer=new _fe(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new WC(gQe(gQe({},pHt),e?.storageOptions)),this.relayer=new wfe({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new xfe(this,this.logger),this.verify=new Cfe(this,this.logger,this.storage),this.echoClient=new Sfe(this.projectId||\\\"\\\",this.logger),this.linkModeSupportedApps=[],this.eventClient=new Tfe(this,this.logger,e?.telemetryEnabled),this.setGlobalCore(this)}static async init(e){let r=new t(e);await r.initialize();let n=await r.crypto.getClientId();return await r.storage.setItem(AHt,n),r}get context(){return Ir(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return(e=this.logChunkController)==null?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(ZZe,this.linkModeSupportedApps))}async initialize(){this.logger.trace(\\\"Initialized\\\");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.linkModeSupportedApps=await this.storage.getItem(ZZe)||[],this.initialized=!0,this.logger.info(\\\"Core Initialization Success\\\")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}getGlobalCore(e=\\\"\\\"){try{if(this.isGlobalCoreDisabled())return;let r=`_walletConnectCore_${e}`,n=`${r}_count`;return globalThis[n]=(globalThis[n]||0)+1,globalThis[n]>1&&console.warn(`WalletConnect Core is already initialized. This is probably a mistake and can lead to unexpected behavior. Init() was called ${globalThis[n]} times.`),globalThis[r]}catch(r){console.warn(\\\"Failed to get global WalletConnect core\\\",r);return}}setGlobalCore(e){var r;try{if(this.isGlobalCoreDisabled())return;let n=`_walletConnectCore_${((r=e.opts)==null?void 0:r.customStoragePrefix)||\\\"\\\"}`;globalThis[n]=e}catch(n){console.warn(\\\"Failed to set global WalletConnect core\\\",n)}}isGlobalCoreDisabled(){try{return typeof process<\\\"u\\\"&&process.env.DISABLE_GLOBAL_CORE===\\\"true\\\"}catch{return!0}}},NQe=Rfe});var VQe={};ue(VQe,{AUTH_CONTEXT:()=>HQe,AUTH_KEYS_CONTEXT:()=>qQe,AUTH_PAIRING_TOPIC_CONTEXT:()=>zQe,AUTH_PROTOCOL:()=>jQe,AUTH_PUBLIC_KEY_NAME:()=>Z7,AUTH_REQUEST_CONTEXT:()=>$Qe,AUTH_STORAGE_PREFIX:()=>Q7,AUTH_VERSION:()=>B$t,ENGINE_CONTEXT:()=>LQe,ENGINE_QUEUE_STATES:()=>Nf,ENGINE_RPC_OPTS:()=>Ys,HISTORY_CONTEXT:()=>O$t,HISTORY_EVENTS:()=>P$t,HISTORY_STORAGE_VERSION:()=>N$t,METHODS_TO_VERIFY:()=>FQe,PROPOSAL_CONTEXT:()=>MQe,PROPOSAL_EXPIRY:()=>k$t,PROPOSAL_EXPIRY_MESSAGE:()=>kfe,REQUEST_CONTEXT:()=>UQe,SESSION_CONTEXT:()=>DQe,SESSION_EXPIRY:()=>nx,SESSION_REQUEST_EXPIRY_BOUNDARIES:()=>_$,SIGN_CLIENT_CONTEXT:()=>Vfe,SIGN_CLIENT_DEFAULT:()=>E$,SIGN_CLIENT_EVENTS:()=>I$t,SIGN_CLIENT_PROTOCOL:()=>zfe,SIGN_CLIENT_STORAGE_OPTIONS:()=>R$t,SIGN_CLIENT_STORAGE_PREFIX:()=>T$,SIGN_CLIENT_VERSION:()=>$fe,SessionStore:()=>$$t,SignClient:()=>V$t,TVF_METHODS:()=>Bfe,WALLETCONNECT_DEEPLINK_CHOICE:()=>Nfe,default:()=>S$});var Ht,A$,zfe,$fe,Vfe,T$,E$,I$t,R$t,Nfe,P$t,O$t,N$t,MQe,k$t,kfe,DQe,nx,LQe,Ys,_$,Nf,Bfe,UQe,FQe,jQe,B$t,HQe,qQe,zQe,$Qe,Q7,Z7,M$t,D$t,L$t,BQe,U$t,F$t,Mfe,yn,dc,be,Dfe,Lfe,C$,Ufe,Ffe,jfe,Hfe,j$t,H$t,Ofe,qfe,q$t,z$t,ar,S$,$$t,V$t,WQe=x(()=>{u();kQe();C1();wue();Ht=Me(u0());y$();A$=Me(ho());oh();zfe=\\\"wc\\\",$fe=2,Vfe=\\\"client\\\",T$=`${zfe}@${$fe}:${Vfe}:`,E$={name:Vfe,logger:\\\"error\\\",controller:!1,relayUrl:\\\"wss://relay.walletconnect.org\\\"},I$t={session_proposal:\\\"session_proposal\\\",session_update:\\\"session_update\\\",session_extend:\\\"session_extend\\\",session_ping:\\\"session_ping\\\",session_delete:\\\"session_delete\\\",session_expire:\\\"session_expire\\\",session_request:\\\"session_request\\\",session_request_sent:\\\"session_request_sent\\\",session_event:\\\"session_event\\\",proposal_expire:\\\"proposal_expire\\\",session_authenticate:\\\"session_authenticate\\\",session_request_expire:\\\"session_request_expire\\\",session_connect:\\\"session_connect\\\"},R$t={database:\\\":memory:\\\"},Nfe=\\\"WALLETCONNECT_DEEPLINK_CHOICE\\\",P$t={created:\\\"history_created\\\",updated:\\\"history_updated\\\",deleted:\\\"history_deleted\\\",sync:\\\"history_sync\\\"},O$t=\\\"history\\\",N$t=\\\"0.3\\\",MQe=\\\"proposal\\\",k$t=Ht.THIRTY_DAYS,kfe=\\\"Proposal expired\\\",DQe=\\\"session\\\",nx=Ht.SEVEN_DAYS,LQe=\\\"engine\\\",Ys={wc_sessionPropose:{req:{ttl:Ht.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Ht.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Ht.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Ht.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Ht.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Ht.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Ht.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Ht.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Ht.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Ht.ONE_DAY,prompt:!1,tag:1114},res:{ttl:Ht.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:Ht.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:Ht.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:Ht.FIVE_MINUTES,prompt:!1,tag:1119}}},_$={min:Ht.FIVE_MINUTES,max:Ht.SEVEN_DAYS},Nf={idle:\\\"IDLE\\\",active:\\\"ACTIVE\\\"},Bfe={eth_sendTransaction:{key:\\\"\\\"},eth_sendRawTransaction:{key:\\\"\\\"},wallet_sendCalls:{key:\\\"\\\"},solana_signTransaction:{key:\\\"signature\\\"},solana_signAllTransactions:{key:\\\"transactions\\\"},solana_signAndSendTransaction:{key:\\\"signature\\\"}},UQe=\\\"request\\\",FQe=[\\\"wc_sessionPropose\\\",\\\"wc_sessionRequest\\\",\\\"wc_authRequest\\\",\\\"wc_sessionAuthenticate\\\"],jQe=\\\"wc\\\",B$t=1.5,HQe=\\\"auth\\\",qQe=\\\"authKeys\\\",zQe=\\\"pairingTopics\\\",$Qe=\\\"requests\\\",Q7=`${jQe}@${1.5}:${HQe}:`,Z7=`${Q7}:PUB_KEY`,M$t=Object.defineProperty,D$t=Object.defineProperties,L$t=Object.getOwnPropertyDescriptors,BQe=Object.getOwnPropertySymbols,U$t=Object.prototype.hasOwnProperty,F$t=Object.prototype.propertyIsEnumerable,Mfe=(t,e,r)=>e in t?M$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yn=(t,e)=>{for(var r in e||(e={}))U$t.call(e,r)&&Mfe(t,r,e[r]);if(BQe)for(var r of BQe(e))F$t.call(e,r)&&Mfe(t,r,e[r]);return t},dc=(t,e)=>D$t(t,L$t(e)),be=(t,e,r)=>Mfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Dfe=class extends Lz{constructor(e){super(e),be(this,\\\"name\\\",LQe),be(this,\\\"events\\\",new A$.default),be(this,\\\"initialized\\\",!1),be(this,\\\"requestQueue\\\",{state:Nf.idle,queue:[]}),be(this,\\\"sessionRequestQueue\\\",{state:Nf.idle,queue:[]}),be(this,\\\"requestQueueDelay\\\",Ht.ONE_SECOND),be(this,\\\"expectedPairingMethodMap\\\",new Map),be(this,\\\"recentlyDeletedMap\\\",new Map),be(this,\\\"recentlyDeletedLimit\\\",200),be(this,\\\"relayMessageCache\\\",[]),be(this,\\\"pendingSessions\\\",new Map),be(this,\\\"init\\\",async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(Ys)}),this.initialized=!0,setTimeout(async()=>{await this.processPendingMessageEvents(),this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,Ht.toMiliseconds)(this.requestQueueDelay)))}),be(this,\\\"connect\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();let n=dc(yn({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n),n.optionalNamespaces=Ode(n.requiredNamespaces,n.optionalNamespaces),n.requiredNamespaces={};let{pairingTopic:i,requiredNamespaces:s,optionalNamespaces:o,sessionProperties:a,scopedProperties:c,relays:l}=n,d=i,f,p=!1;try{if(d){let N=this.client.core.pairing.pairings.get(d);this.client.logger.warn(\\\"connect() with existing pairing topic is deprecated and will be removed in the next major release.\\\"),p=N.active}}catch(N){throw this.client.logger.error(`connect() -> pairing.get(${d}) failed`),N}if(!d||!p){let{topic:N,uri:O}=await this.client.core.pairing.create();d=N,f=O}if(!d){let{message:N}=Se(\\\"NO_MATCHING_KEY\\\",`connect() pairing topic: ${d}`);throw new Error(N)}let h=await this.client.core.crypto.generateKeyPair(),m=Ys.wc_sessionPropose.req.ttl||Ht.FIVE_MINUTES,g=ns(m),w=dc(yn(yn({requiredNamespaces:s,optionalNamespaces:o,relays:l??[{protocol:Pfe}],proposer:{publicKey:h,metadata:this.client.metadata},expiryTimestamp:g,pairingTopic:d},a&&{sessionProperties:a}),c&&{scopedProperties:c}),{id:hs()}),v=xr(\\\"session_connect\\\",w.id),{reject:b,resolve:_,done:S}=wh(m,kfe),T=({id:N})=>{N===w.id&&(this.client.events.off(\\\"proposal_expire\\\",T),this.pendingSessions.delete(w.id),this.events.emit(v,{error:{message:kfe,code:0}}))};return this.client.events.on(\\\"proposal_expire\\\",T),this.events.once(v,({error:N,session:O})=>{this.client.events.off(\\\"proposal_expire\\\",T),N?b(N):O&&_(O)}),await this.sendRequest({topic:d,method:\\\"wc_sessionPropose\\\",params:w,throwOnFailedPublish:!0,clientRpcId:w.id}),await this.setProposal(w.id,w),{uri:f,approval:S}}),be(this,\\\"pair\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(r)}catch(n){throw this.client.logger.error(\\\"pair() failed\\\"),n}}),be(this,\\\"approve\\\",async r=>{var n,i,s;let o=this.client.core.eventClient.createEvent({properties:{topic:(n=r?.id)==null?void 0:n.toString(),trace:[yd.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(B){throw o.setError(W1.no_internet_connection),B}try{await this.isValidProposalId(r?.id)}catch(B){throw this.client.logger.error(`approve() -> proposal.get(${r?.id}) failed`),o.setError(W1.proposal_not_found),B}try{await this.isValidApprove(r)}catch(B){throw this.client.logger.error(\\\"approve() -> isValidApprove() failed\\\"),o.setError(W1.session_approve_namespace_validation_failure),B}let{id:a,relayProtocol:c,namespaces:l,sessionProperties:d,scopedProperties:f,sessionConfig:p}=r,h=this.client.proposal.get(a);this.client.core.eventClient.deleteEvent({eventId:o.eventId});let{pairingTopic:m,proposer:g,requiredNamespaces:w,optionalNamespaces:v}=h,b=(i=this.client.core.eventClient)==null?void 0:i.getEvent({topic:m});b||(b=(s=this.client.core.eventClient)==null?void 0:s.createEvent({type:yd.session_approve_started,properties:{topic:m,trace:[yd.session_approve_started,yd.session_namespaces_validation_success]}}));let _=await this.client.core.crypto.generateKeyPair(),S=g.publicKey,T=await this.client.core.crypto.generateSharedKey(_,S),N=yn(yn(yn({relay:{protocol:c??\\\"irn\\\"},namespaces:l,controller:{publicKey:_,metadata:this.client.metadata},expiry:ns(nx)},d&&{sessionProperties:d}),f&&{scopedProperties:f}),p&&{sessionConfig:p}),O=Dn.relay;b.addTrace(yd.subscribing_session_topic);try{await this.client.core.relayer.subscribe(T,{transportType:O})}catch(B){throw b.setError(W1.subscribe_session_topic_failure),B}b.addTrace(yd.subscribe_session_topic_success);let L=dc(yn({},N),{topic:T,requiredNamespaces:w,optionalNamespaces:v,pairingTopic:m,acknowledged:!1,self:N.controller,peer:{publicKey:g.publicKey,metadata:g.metadata},controller:_,transportType:Dn.relay});await this.client.session.set(T,L),b.addTrace(yd.store_session);try{b.addTrace(yd.publishing_session_settle),await this.sendRequest({topic:T,method:\\\"wc_sessionSettle\\\",params:N,throwOnFailedPublish:!0}).catch(B=>{throw b?.setError(W1.session_settle_publish_failure),B}),b.addTrace(yd.session_settle_publish_success),b.addTrace(yd.publishing_session_approve),await this.sendResult({id:a,topic:m,result:{relay:{protocol:c??\\\"irn\\\"},responderPublicKey:_},throwOnFailedPublish:!0}).catch(B=>{throw b?.setError(W1.session_approve_publish_failure),B}),b.addTrace(yd.session_approve_publish_success)}catch(B){throw this.client.logger.error(B),this.client.session.delete(T,Jr(\\\"USER_DISCONNECTED\\\")),await this.client.core.relayer.unsubscribe(T),B}return this.client.core.eventClient.deleteEvent({eventId:b.eventId}),await this.client.core.pairing.updateMetadata({topic:m,metadata:g.metadata}),await this.client.proposal.delete(a,Jr(\\\"USER_DISCONNECTED\\\")),await this.client.core.pairing.activate({topic:m}),await this.setExpiry(T,ns(nx)),{topic:T,acknowledged:()=>Promise.resolve(this.client.session.get(T))}}),be(this,\\\"reject\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(r)}catch(o){throw this.client.logger.error(\\\"reject() -> isValidReject() failed\\\"),o}let{id:n,reason:i}=r,s;try{s=this.client.proposal.get(n).pairingTopic}catch(o){throw this.client.logger.error(`reject() -> proposal.get(${n}) failed`),o}s&&(await this.sendError({id:n,topic:s,error:i,rpcOpts:Ys.wc_sessionPropose.reject}),await this.client.proposal.delete(n,Jr(\\\"USER_DISCONNECTED\\\")))}),be(this,\\\"update\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(r)}catch(f){throw this.client.logger.error(\\\"update() -> isValidUpdate() failed\\\"),f}let{topic:n,namespaces:i}=r,{done:s,resolve:o,reject:a}=wh(),c=hs(),l=Vs().toString(),d=this.client.session.get(n).namespaces;return this.events.once(xr(\\\"session_update\\\",c),({error:f})=>{f?a(f):o()}),await this.client.session.update(n,{namespaces:i}),await this.sendRequest({topic:n,method:\\\"wc_sessionUpdate\\\",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:c,relayRpcId:l}).catch(f=>{this.client.logger.error(f),this.client.session.update(n,{namespaces:d}),a(f)}),{acknowledged:s}}),be(this,\\\"extend\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(r)}catch(c){throw this.client.logger.error(\\\"extend() -> isValidExtend() failed\\\"),c}let{topic:n}=r,i=hs(),{done:s,resolve:o,reject:a}=wh();return this.events.once(xr(\\\"session_extend\\\",i),({error:c})=>{c?a(c):o()}),await this.setExpiry(n,ns(nx)),this.sendRequest({topic:n,method:\\\"wc_sessionExtend\\\",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(c=>{a(c)}),{acknowledged:s}}),be(this,\\\"request\\\",async r=>{this.isInitialized();try{await this.isValidRequest(r)}catch(v){throw this.client.logger.error(\\\"request() -> isValidRequest() failed\\\"),v}let{chainId:n,request:i,topic:s,expiry:o=Ys.wc_sessionRequest.req.ttl}=r,a=this.client.session.get(s);a?.transportType===Dn.relay&&await this.confirmOnlineStateOrThrow();let c=hs(),l=Vs().toString(),{done:d,resolve:f,reject:p}=wh(o,\\\"Request expired. Please try again.\\\");this.events.once(xr(\\\"session_request\\\",c),({error:v,result:b})=>{v?p(v):f(b)});let h=\\\"wc_sessionRequest\\\",m=this.getAppLinkIfEnabled(a.peer.metadata,a.transportType);if(m)return await this.sendRequest({clientRpcId:c,relayRpcId:l,topic:s,method:h,params:{request:dc(yn({},i),{expiryTimestamp:ns(o)}),chainId:n},expiry:o,throwOnFailedPublish:!0,appLink:m}).catch(v=>p(v)),this.client.events.emit(\\\"session_request_sent\\\",{topic:s,request:i,chainId:n,id:c}),await d();let g={request:dc(yn({},i),{expiryTimestamp:ns(o)}),chainId:n},w=this.shouldSetTVF(h,g);return await Promise.all([new Promise(async v=>{await this.sendRequest(yn({clientRpcId:c,relayRpcId:l,topic:s,method:h,params:g,expiry:o,throwOnFailedPublish:!0},w&&{tvf:this.getTVFParams(c,g)})).catch(b=>p(b)),this.client.events.emit(\\\"session_request_sent\\\",{topic:s,request:i,chainId:n,id:c}),v()}),new Promise(async v=>{var b;if(!((b=a.sessionConfig)!=null&&b.disableDeepLink)){let _=await nde(this.client.core.storage,Nfe);await rde({id:c,topic:s,wcDeepLink:_})}v()}),d()]).then(v=>v[2])}),be(this,\\\"respond\\\",async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:s}=i,o=this.client.session.get(n);o.transportType===Dn.relay&&await this.confirmOnlineStateOrThrow();let a=this.getAppLinkIfEnabled(o.peer.metadata,o.transportType);Ii(i)?await this.sendResult({id:s,topic:n,result:i.result,throwOnFailedPublish:!0,appLink:a}):nn(i)&&await this.sendError({id:s,topic:n,error:i.error,appLink:a}),this.cleanupAfterResponse(r)}),be(this,\\\"ping\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(r)}catch(i){throw this.client.logger.error(\\\"ping() -> isValidPing() failed\\\"),i}let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=hs(),s=Vs().toString(),{done:o,resolve:a,reject:c}=wh();this.events.once(xr(\\\"session_ping\\\",i),({error:l})=>{l?c(l):a()}),await Promise.all([this.sendRequest({topic:n,method:\\\"wc_sessionPing\\\",params:{},throwOnFailedPublish:!0,clientRpcId:i,relayRpcId:s}),o()])}else this.client.core.pairing.pairings.keys.includes(n)&&(this.client.logger.warn(\\\"ping() on pairing topic is deprecated and will be removed in the next major release.\\\"),await this.client.core.pairing.ping({topic:n}))}),be(this,\\\"emit\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(r);let{topic:n,event:i,chainId:s}=r,o=Vs().toString(),a=hs();await this.sendRequest({topic:n,method:\\\"wc_sessionEvent\\\",params:{event:i,chainId:s},throwOnFailedPublish:!0,relayRpcId:o,clientRpcId:a})}),be(this,\\\"disconnect\\\",async r=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(r);let{topic:n}=r;if(this.client.session.keys.includes(n))await this.sendRequest({topic:n,method:\\\"wc_sessionDelete\\\",params:Jr(\\\"USER_DISCONNECTED\\\"),throwOnFailedPublish:!0}),await this.deleteSession({topic:n,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(n))await this.client.core.pairing.disconnect({topic:n});else{let{message:i}=Se(\\\"MISMATCHED_TOPIC\\\",`Session or pairing topic not found: ${n}`);throw new Error(i)}}),be(this,\\\"find\\\",r=>(this.isInitialized(),this.client.session.getAll().filter(n=>Nde(n,r)))),be(this,\\\"getPendingSessionRequests\\\",()=>this.client.pendingRequest.getAll()),be(this,\\\"authenticate\\\",async(r,n)=>{var i;this.isInitialized(),this.isValidAuthenticate(r);let s=n&&this.client.core.linkModeSupportedApps.includes(n)&&((i=this.client.metadata.redirect)==null?void 0:i.linkMode),o=s?Dn.link_mode:Dn.relay;o===Dn.relay&&await this.confirmOnlineStateOrThrow();let{chains:a,statement:c=\\\"\\\",uri:l,domain:d,nonce:f,type:p,exp:h,nbf:m,methods:g=[],expiry:w}=r,v=[...r.resources||[]],{topic:b,uri:_}=await this.client.core.pairing.create({methods:[\\\"wc_sessionAuthenticate\\\"],transportType:o});this.client.logger.info({message:\\\"Generated new pairing\\\",pairing:{topic:b,uri:_}});let S=await this.client.core.crypto.generateKeyPair(),T=J2(S);if(await Promise.all([this.client.auth.authKeys.set(Z7,{responseTopic:T,publicKey:S}),this.client.auth.pairingTopics.set(T,{topic:T,pairingTopic:b})]),await this.client.core.relayer.subscribe(T,{transportType:o}),this.client.logger.info(`sending request to new pairing topic: ${b}`),g.length>0){let{namespace:k}=K2(a[0]),U=dde(k,\\\"request\\\",g);$1(v)&&(U=pde(U,v.pop())),v.push(U)}let N=w&&w>Ys.wc_sessionAuthenticate.req.ttl?w:Ys.wc_sessionAuthenticate.req.ttl,O={authPayload:{type:p??\\\"caip122\\\",chains:a,statement:c,aud:l,domain:d,version:\\\"1\\\",nonce:f,iat:new Date().toISOString(),exp:h,nbf:m,resources:v},requester:{publicKey:S,metadata:this.client.metadata},expiryTimestamp:ns(N)},L={eip155:{chains:a,methods:[...new Set([\\\"personal_sign\\\",...g])],events:[\\\"chainChanged\\\",\\\"accountsChanged\\\"]}},B={requiredNamespaces:{},optionalNamespaces:L,relays:[{protocol:\\\"irn\\\"}],pairingTopic:b,proposer:{publicKey:S,metadata:this.client.metadata},expiryTimestamp:ns(Ys.wc_sessionPropose.req.ttl),id:hs()},{done:H,resolve:M,reject:F}=wh(N,\\\"Request expired\\\"),R=hs(),y=xr(\\\"session_connect\\\",B.id),E=xr(\\\"session_request\\\",R),C=async({error:k,session:U})=>{this.events.off(E,I),k?F(k):U&&M({session:U})},I=async k=>{var U,D,A;if(await this.deletePendingAuthRequest(R,{message:\\\"fulfilled\\\",code:0}),k.error){let ce=Jr(\\\"WC_METHOD_UNSUPPORTED\\\",\\\"wc_sessionAuthenticate\\\");return k.error.code===ce.code?void 0:(this.events.off(y,C),F(k.error.message))}await this.deleteProposal(B.id),this.events.off(y,C);let{cacaos:j,responder:K}=k.result,J=[],X=[];for(let ce of j){await Jz({cacao:ce,projectId:this.client.core.projectId})||(this.client.logger.error(ce,\\\"Signature verification failed\\\"),F(Jr(\\\"SESSION_SETTLEMENT_FAILED\\\",\\\"Signature verification failed\\\")));let{p:We}=ce,Ue=$1(We.resources),je=[U7(We.iss)],Lt=N4(We.iss);if(Ue){let pt=e$(Ue),Ct=t$(Ue);J.push(...pt),je.push(...Ct)}for(let pt of je)X.push(`${pt}:${Lt}`)}let re=await this.client.core.crypto.generateSharedKey(S,K.publicKey),fe;J.length>0&&(fe={topic:re,acknowledged:!0,self:{publicKey:S,metadata:this.client.metadata},peer:K,controller:K.publicKey,expiry:ns(nx),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\\\"irn\\\"},pairingTopic:b,namespaces:f$([...new Set(J)],[...new Set(X)]),transportType:o},await this.client.core.relayer.subscribe(re,{transportType:o}),await this.client.session.set(re,fe),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:K.metadata}),fe=this.client.session.get(re)),(U=this.client.metadata.redirect)!=null&&U.linkMode&&(D=K.metadata.redirect)!=null&&D.linkMode&&(A=K.metadata.redirect)!=null&&A.universal&&n&&(this.client.core.addLinkModeSupportedApp(K.metadata.redirect.universal),this.client.session.update(re,{transportType:Dn.link_mode})),M({auths:j,session:fe})};this.events.once(y,C),this.events.once(E,I);let P;try{if(s){let k=Ws(\\\"wc_sessionAuthenticate\\\",O,R);this.client.core.history.set(b,k);let U=await this.client.core.crypto.encode(\\\"\\\",k,{type:Q2,encoding:xh});P=D4(n,b,U)}else await Promise.all([this.sendRequest({topic:b,method:\\\"wc_sessionAuthenticate\\\",params:O,expiry:r.expiry,throwOnFailedPublish:!0,clientRpcId:R}),this.sendRequest({topic:b,method:\\\"wc_sessionPropose\\\",params:B,expiry:Ys.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:B.id})])}catch(k){throw this.events.off(y,C),this.events.off(E,I),k}return await this.setProposal(B.id,B),await this.setAuthRequest(R,{request:dc(yn({},O),{verifyContext:{}}),pairingTopic:b,transportType:o}),{uri:P??_,response:H}}),be(this,\\\"approveSessionAuthenticate\\\",async r=>{let{id:n,auths:i}=r,s=this.client.core.eventClient.createEvent({properties:{topic:n.toString(),trace:[G1.authenticated_session_approve_started]}});try{this.isInitialized()}catch(w){throw s.setError(j4.no_internet_connection),w}let o=this.getPendingAuthRequest(n);if(!o)throw s.setError(j4.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${n}`);let a=o.transportType||Dn.relay;a===Dn.relay&&await this.confirmOnlineStateOrThrow();let c=o.requester.publicKey,l=await this.client.core.crypto.generateKeyPair(),d=J2(c),f={type:md,receiverPublicKey:c,senderPublicKey:l},p=[],h=[];for(let w of i){if(!await Jz({cacao:w,projectId:this.client.core.projectId})){s.setError(j4.invalid_cacao);let T=Jr(\\\"SESSION_SETTLEMENT_FAILED\\\",\\\"Signature verification failed\\\");throw await this.sendError({id:n,topic:d,error:T,encodeOpts:f}),new Error(T.message)}s.addTrace(G1.cacaos_verified);let{p:v}=w,b=$1(v.resources),_=[U7(v.iss)],S=N4(v.iss);if(b){let T=e$(b),N=t$(b);p.push(...T),_.push(...N)}for(let T of _)h.push(`${T}:${S}`)}let m=await this.client.core.crypto.generateSharedKey(l,c);s.addTrace(G1.create_authenticated_session_topic);let g;if(p?.length>0){g={topic:m,acknowledged:!0,self:{publicKey:l,metadata:this.client.metadata},peer:{publicKey:c,metadata:o.requester.metadata},controller:c,expiry:ns(nx),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:\\\"irn\\\"},pairingTopic:o.pairingTopic,namespaces:f$([...new Set(p)],[...new Set(h)]),transportType:a},s.addTrace(G1.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(m,{transportType:a})}catch(w){throw s.setError(j4.subscribe_authenticated_session_topic_failure),w}s.addTrace(G1.subscribe_authenticated_session_topic_success),await this.client.session.set(m,g),s.addTrace(G1.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:o.pairingTopic,metadata:o.requester.metadata})}s.addTrace(G1.publishing_authenticated_session_approve);try{await this.sendResult({topic:d,id:n,result:{cacaos:i,responder:{publicKey:l,metadata:this.client.metadata}},encodeOpts:f,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(o.requester.metadata,a)})}catch(w){throw s.setError(j4.authenticated_session_approve_publish_failure),w}return await this.client.auth.requests.delete(n,{message:\\\"fulfilled\\\",code:0}),await this.client.core.pairing.activate({topic:o.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:s.eventId}),{session:g}}),be(this,\\\"rejectSessionAuthenticate\\\",async r=>{this.isInitialized();let{id:n,reason:i}=r,s=this.getPendingAuthRequest(n);if(!s)throw new Error(`Could not find pending auth request with id ${n}`);s.transportType===Dn.relay&&await this.confirmOnlineStateOrThrow();let o=s.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),c=J2(o),l={type:md,receiverPublicKey:o,senderPublicKey:a};await this.sendError({id:n,topic:c,error:i,encodeOpts:l,rpcOpts:Ys.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(s.requester.metadata,s.transportType)}),await this.client.auth.requests.delete(n,{message:\\\"rejected\\\",code:0}),await this.client.proposal.delete(n,Jr(\\\"USER_DISCONNECTED\\\"))}),be(this,\\\"formatAuthMessage\\\",r=>{this.isInitialized();let{request:n,iss:i}=r;return Yz(n,i)}),be(this,\\\"processRelayMessageCache\\\",()=>{setTimeout(async()=>{if(this.relayMessageCache.length!==0)for(;this.relayMessageCache.length>0;)try{let r=this.relayMessageCache.shift();r&&await this.onRelayMessage(r)}catch(r){this.client.logger.error(r)}},50)}),be(this,\\\"cleanupDuplicatePairings\\\",async r=>{if(r.pairingTopic)try{let n=this.client.core.pairing.pairings.get(r.pairingTopic),i=this.client.core.pairing.pairings.getAll().filter(s=>{var o,a;return((o=s.peerMetadata)==null?void 0:o.url)&&((a=s.peerMetadata)==null?void 0:a.url)===r.peer.metadata.url&&s.topic&&s.topic!==n.topic});if(i.length===0)return;this.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),await Promise.all(i.map(s=>this.client.core.pairing.disconnect({topic:s.topic}))),this.client.logger.info(\\\"Duplicate pairings clean up finished\\\")}catch(n){this.client.logger.error(n)}}),be(this,\\\"deleteSession\\\",async r=>{var n;let{topic:i,expirerHasDeleted:s=!1,emitEvent:o=!0,id:a=0}=r,{self:c}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),await this.client.session.delete(i,Jr(\\\"USER_DISCONNECTED\\\")),this.addToRecentlyDeleted(i,\\\"session\\\"),this.client.core.crypto.keychain.has(c.publicKey)&&await this.client.core.crypto.deleteKeyPair(c.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),s||this.client.core.expirer.del(i),this.client.core.storage.removeItem(Nfe).catch(l=>this.client.logger.warn(l)),this.getPendingSessionRequests().forEach(l=>{l.topic===i&&this.deletePendingSessionRequest(l.id,Jr(\\\"USER_DISCONNECTED\\\"))}),i===((n=this.sessionRequestQueue.queue[0])==null?void 0:n.topic)&&(this.sessionRequestQueue.state=Nf.idle),o&&this.client.events.emit(\\\"session_delete\\\",{id:a,topic:i})}),be(this,\\\"deleteProposal\\\",async(r,n)=>{if(n)try{let i=this.client.proposal.get(r);this.client.core.eventClient.getEvent({topic:i.pairingTopic})?.setError(W1.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(r,Jr(\\\"USER_DISCONNECTED\\\")),n?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,\\\"proposal\\\")}),be(this,\\\"deletePendingSessionRequest\\\",async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,\\\"request\\\"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(s=>s.id!==r),i&&(this.sessionRequestQueue.state=Nf.idle,this.client.events.emit(\\\"session_request_expire\\\",{id:r}))}),be(this,\\\"deletePendingAuthRequest\\\",async(r,n,i=!1)=>{await Promise.all([this.client.auth.requests.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])}),be(this,\\\"setExpiry\\\",async(r,n)=>{this.client.session.keys.includes(r)&&(this.client.core.expirer.set(r,n),await this.client.session.update(r,{expiry:n}))}),be(this,\\\"setProposal\\\",async(r,n)=>{this.client.core.expirer.set(r,ns(Ys.wc_sessionPropose.req.ttl)),await this.client.proposal.set(r,n)}),be(this,\\\"setAuthRequest\\\",async(r,n)=>{let{request:i,pairingTopic:s,transportType:o=Dn.relay}=n;this.client.core.expirer.set(r,i.expiryTimestamp),await this.client.auth.requests.set(r,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:r,pairingTopic:s,verifyContext:i.verifyContext,transportType:o})}),be(this,\\\"setPendingSessionRequest\\\",async r=>{let{id:n,topic:i,params:s,verifyContext:o}=r,a=s.request.expiryTimestamp||ns(Ys.wc_sessionRequest.req.ttl);this.client.core.expirer.set(n,a),await this.client.pendingRequest.set(n,{id:n,topic:i,params:s,verifyContext:o})}),be(this,\\\"sendRequest\\\",async r=>{let{topic:n,method:i,params:s,expiry:o,relayRpcId:a,clientRpcId:c,throwOnFailedPublish:l,appLink:d,tvf:f}=r,p=Ws(i,s,c),h,m=!!d;try{let v=m?xh:Xc;h=await this.client.core.crypto.encode(n,p,{encoding:v})}catch(v){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),v}let g;if(FQe.includes(i)){let v=Kl(JSON.stringify(p)),b=Kl(h);g=await this.client.core.verify.register({id:b,decryptedId:v})}let w=Ys[i].req;if(w.attestation=g,o&&(w.ttl=o),a&&(w.id=a),this.client.core.history.set(n,p),m){let v=D4(d,n,h);await globalThis.Linking.openURL(v,this.client.name)}else{let v=Ys[i].req;o&&(v.ttl=o),a&&(v.id=a),v.tvf=dc(yn({},f),{correlationId:p.id}),l?(v.internal=dc(yn({},v.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,h,v)):this.client.core.relayer.publish(n,h,v).catch(b=>this.client.logger.error(b))}return p.id}),be(this,\\\"sendResult\\\",async r=>{let{id:n,topic:i,result:s,throwOnFailedPublish:o,encodeOpts:a,appLink:c}=r,l=gf(n,s),d,f=c&&typeof globalThis?.Linking<\\\"u\\\";try{let m=f?xh:Xc;d=await this.client.core.crypto.encode(i,l,dc(yn({},a||{}),{encoding:m}))}catch(m){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),m}let p,h;try{p=await this.client.core.history.get(i,n);let m=p.request;try{this.shouldSetTVF(m.method,m.params)&&(h=this.getTVFParams(n,m.params,s))}catch(g){this.client.logger.warn(\\\"sendResult() -> getTVFParams() failed\\\",g)}}catch(m){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${n}) failed`),m}if(f){let m=D4(c,i,d);await globalThis.Linking.openURL(m,this.client.name)}else{let m=p.request.method,g=Ys[m].res;g.tvf=dc(yn({},h),{correlationId:n}),o?(g.internal=dc(yn({},g.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,d,g)):this.client.core.relayer.publish(i,d,g).catch(w=>this.client.logger.error(w))}await this.client.core.history.resolve(l)}),be(this,\\\"sendError\\\",async r=>{let{id:n,topic:i,error:s,encodeOpts:o,rpcOpts:a,appLink:c}=r,l=Ul(n,s),d,f=c&&typeof globalThis?.Linking<\\\"u\\\";try{let h=f?xh:Xc;d=await this.client.core.crypto.encode(i,l,dc(yn({},o||{}),{encoding:h}))}catch(h){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),h}let p;try{p=await this.client.core.history.get(i,n)}catch(h){throw this.client.logger.error(`sendError() -> history.get(${i}, ${n}) failed`),h}if(f){let h=D4(c,i,d);await globalThis.Linking.openURL(h,this.client.name)}else{let h=p.request.method,m=a||Ys[h].res;this.client.core.relayer.publish(i,d,m)}await this.client.core.history.resolve(l)}),be(this,\\\"cleanup\\\",async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{let s=!1;If(i.expiry)&&(s=!0),this.client.core.crypto.keychain.has(i.topic)||(s=!0),s&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{If(i.expiryTimestamp)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession({topic:i})),...n.map(i=>this.deleteProposal(i))])}),be(this,\\\"onProviderMessageEvent\\\",async r=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(r):await this.onRelayMessage(r)}),be(this,\\\"onRelayEventRequest\\\",async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()}),be(this,\\\"processRequestsQueue\\\",async()=>{if(this.requestQueue.state===Nf.active){this.client.logger.info(\\\"Request queue already active, skipping...\\\");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Nf.active;let r=this.requestQueue.queue.shift();if(r)try{await this.processRequest(r)}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=Nf.idle}),be(this,\\\"processRequest\\\",async r=>{let{topic:n,payload:i,attestation:s,transportType:o,encryptedId:a}=r,c=i.method;if(!this.shouldIgnorePairingRequest({topic:n,requestMethod:c}))switch(c){case\\\"wc_sessionPropose\\\":return await this.onSessionProposeRequest({topic:n,payload:i,attestation:s,encryptedId:a});case\\\"wc_sessionSettle\\\":return await this.onSessionSettleRequest(n,i);case\\\"wc_sessionUpdate\\\":return await this.onSessionUpdateRequest(n,i);case\\\"wc_sessionExtend\\\":return await this.onSessionExtendRequest(n,i);case\\\"wc_sessionPing\\\":return await this.onSessionPingRequest(n,i);case\\\"wc_sessionDelete\\\":return await this.onSessionDeleteRequest(n,i);case\\\"wc_sessionRequest\\\":return await this.onSessionRequest({topic:n,payload:i,attestation:s,encryptedId:a,transportType:o});case\\\"wc_sessionEvent\\\":return await this.onSessionEventRequest(n,i);case\\\"wc_sessionAuthenticate\\\":return await this.onSessionAuthenticateRequest({topic:n,payload:i,attestation:s,encryptedId:a,transportType:o});default:return this.client.logger.info(`Unsupported request method ${c}`)}}),be(this,\\\"onRelayEventResponse\\\",async r=>{let{topic:n,payload:i,transportType:s}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case\\\"wc_sessionPropose\\\":return this.onSessionProposeResponse(n,i,s);case\\\"wc_sessionSettle\\\":return this.onSessionSettleResponse(n,i);case\\\"wc_sessionUpdate\\\":return this.onSessionUpdateResponse(n,i);case\\\"wc_sessionExtend\\\":return this.onSessionExtendResponse(n,i);case\\\"wc_sessionPing\\\":return this.onSessionPingResponse(n,i);case\\\"wc_sessionRequest\\\":return this.onSessionRequestResponse(n,i);case\\\"wc_sessionAuthenticate\\\":return this.onSessionAuthenticateResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}}),be(this,\\\"onRelayEventUnknownPayload\\\",r=>{let{topic:n}=r,{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(i)}),be(this,\\\"shouldIgnorePairingRequest\\\",r=>{let{topic:n,requestMethod:i}=r,s=this.expectedPairingMethodMap.get(n);return!s||s.includes(i)?!1:!!(s.includes(\\\"wc_sessionAuthenticate\\\")&&this.client.events.listenerCount(\\\"session_authenticate\\\")>0)}),be(this,\\\"onSessionProposeRequest\\\",async r=>{let{topic:n,payload:i,attestation:s,encryptedId:o}=r,{params:a,id:c}=i;try{let l=this.client.core.eventClient.getEvent({topic:n});this.client.events.listenerCount(\\\"session_proposal\\\")===0&&(console.warn(\\\"No listener for session_proposal event\\\"),l?.setError(_h.proposal_listener_not_found)),this.isValidConnect(yn({},i.params));let d=a.expiryTimestamp||ns(Ys.wc_sessionPropose.req.ttl),f=yn({id:c,pairingTopic:n,expiryTimestamp:d},a);await this.setProposal(c,f);let p=await this.getVerifyContext({attestationId:s,hash:Kl(JSON.stringify(i)),encryptedId:o,metadata:f.proposer.metadata});l?.addTrace(Of.emit_session_proposal),this.client.events.emit(\\\"session_proposal\\\",{id:c,params:f,verifyContext:p})}catch(l){await this.sendError({id:c,topic:n,error:l,rpcOpts:Ys.wc_sessionPropose.autoReject}),this.client.logger.error(l)}}),be(this,\\\"onSessionProposeResponse\\\",async(r,n,i)=>{let{id:s}=n;if(Ii(n)){let{result:o}=n;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",result:o});let a=this.client.proposal.get(s);this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",proposal:a});let c=a.proposer.publicKey;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",selfPublicKey:c});let l=o.responderPublicKey;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",peerPublicKey:l});let d=await this.client.core.crypto.generateSharedKey(c,l);this.pendingSessions.set(s,{sessionTopic:d,pairingTopic:r,proposalId:s,publicKey:c});let f=await this.client.core.relayer.subscribe(d,{transportType:i});this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionProposeResponse\\\",subscriptionId:f}),await this.client.core.pairing.activate({topic:r})}else if(nn(n)){await this.client.proposal.delete(s,Jr(\\\"USER_DISCONNECTED\\\"));let o=xr(\\\"session_connect\\\",s);if(this.events.listenerCount(o)===0)throw new Error(`emitting ${o} without any listeners, 954`);this.events.emit(o,{error:n.error})}}),be(this,\\\"onSessionSettleRequest\\\",async(r,n)=>{let{id:i,params:s}=n;try{this.isValidSessionSettleRequest(s);let{relay:o,controller:a,expiry:c,namespaces:l,sessionProperties:d,scopedProperties:f,sessionConfig:p}=n.params,h=[...this.pendingSessions.values()].find(w=>w.sessionTopic===r);if(!h)return this.client.logger.error(`Pending session not found for topic ${r}`);let m=this.client.proposal.get(h.proposalId),g=dc(yn(yn(yn({topic:r,relay:o,expiry:c,namespaces:l,acknowledged:!0,pairingTopic:h.pairingTopic,requiredNamespaces:m.requiredNamespaces,optionalNamespaces:m.optionalNamespaces,controller:a.publicKey,self:{publicKey:h.publicKey,metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},d&&{sessionProperties:d}),f&&{scopedProperties:f}),p&&{sessionConfig:p}),{transportType:Dn.relay});await this.client.session.set(g.topic,g),await this.setExpiry(g.topic,g.expiry),await this.client.core.pairing.updateMetadata({topic:h.pairingTopic,metadata:g.peer.metadata}),this.client.events.emit(\\\"session_connect\\\",{session:g}),this.events.emit(xr(\\\"session_connect\\\",h.proposalId),{session:g}),this.pendingSessions.delete(h.proposalId),this.deleteProposal(h.proposalId,!1),this.cleanupDuplicatePairings(g),await this.sendResult({id:n.id,topic:r,result:!0,throwOnFailedPublish:!0})}catch(o){await this.sendError({id:i,topic:r,error:o}),this.client.logger.error(o)}}),be(this,\\\"onSessionSettleResponse\\\",async(r,n)=>{let{id:i}=n;Ii(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(xr(\\\"session_approve\\\",i),{})):nn(n)&&(await this.client.session.delete(r,Jr(\\\"USER_DISCONNECTED\\\")),this.events.emit(xr(\\\"session_approve\\\",i),{error:n.error}))}),be(this,\\\"onSessionUpdateRequest\\\",async(r,n)=>{let{params:i,id:s}=n;try{let o=`${r}_session_update`,a=M0.get(o);if(a&&this.isRequestOutOfSync(a,s)){this.client.logger.warn(`Discarding out of sync request - ${s}`),this.sendError({id:s,topic:r,error:Jr(\\\"INVALID_UPDATE_REQUEST\\\")});return}this.isValidUpdate(yn({topic:r},i));try{M0.set(o,s),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult({id:s,topic:r,result:!0,throwOnFailedPublish:!0})}catch(c){throw M0.delete(o),c}this.client.events.emit(\\\"session_update\\\",{id:s,topic:r,params:i})}catch(o){await this.sendError({id:s,topic:r,error:o}),this.client.logger.error(o)}}),be(this,\\\"isRequestOutOfSync\\\",(r,n)=>n.toString().slice(0,-3)<r.toString().slice(0,-3)),be(this,\\\"onSessionUpdateResponse\\\",(r,n)=>{let{id:i}=n,s=xr(\\\"session_update\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(xr(\\\"session_update\\\",i),{}):nn(n)&&this.events.emit(xr(\\\"session_update\\\",i),{error:n.error})}),be(this,\\\"onSessionExtendRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,ns(nx)),await this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\\\"session_extend\\\",{id:i,topic:r})}catch(s){await this.sendError({id:i,topic:r,error:s}),this.client.logger.error(s)}}),be(this,\\\"onSessionExtendResponse\\\",(r,n)=>{let{id:i}=n,s=xr(\\\"session_extend\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(xr(\\\"session_extend\\\",i),{}):nn(n)&&this.events.emit(xr(\\\"session_extend\\\",i),{error:n.error})}),be(this,\\\"onSessionPingRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit(\\\"session_ping\\\",{id:i,topic:r})}catch(s){await this.sendError({id:i,topic:r,error:s}),this.client.logger.error(s)}}),be(this,\\\"onSessionPingResponse\\\",(r,n)=>{let{id:i}=n,s=xr(\\\"session_ping\\\",i);setTimeout(()=>{if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners 2176`);Ii(n)?this.events.emit(xr(\\\"session_ping\\\",i),{}):nn(n)&&this.events.emit(xr(\\\"session_ping\\\",i),{error:n.error})},500)}),be(this,\\\"onSessionDeleteRequest\\\",async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),Promise.all([new Promise(s=>{this.client.core.relayer.once(Js.publish,async()=>{s(await this.deleteSession({topic:r,id:i}))})}),this.sendResult({id:i,topic:r,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:r,error:Jr(\\\"USER_DISCONNECTED\\\")})]).catch(s=>this.client.logger.error(s))}catch(s){this.client.logger.error(s)}}),be(this,\\\"onSessionRequest\\\",async r=>{var n,i,s;let{topic:o,payload:a,attestation:c,encryptedId:l,transportType:d}=r,{id:f,params:p}=a;try{await this.isValidRequest(yn({topic:o},p));let h=this.client.session.get(o),m=await this.getVerifyContext({attestationId:c,hash:Kl(JSON.stringify(Ws(\\\"wc_sessionRequest\\\",p,f))),encryptedId:l,metadata:h.peer.metadata,transportType:d}),g={id:f,topic:o,params:p,verifyContext:m};await this.setPendingSessionRequest(g),d===Dn.link_mode&&(n=h.peer.metadata.redirect)!=null&&n.universal&&this.client.core.addLinkModeSupportedApp((i=h.peer.metadata.redirect)==null?void 0:i.universal),(s=this.client.signConfig)!=null&&s.disableRequestQueue?this.emitSessionRequest(g):(this.addSessionRequestToSessionRequestQueue(g),this.processSessionRequestQueue())}catch(h){await this.sendError({id:f,topic:o,error:h}),this.client.logger.error(h)}}),be(this,\\\"onSessionRequestResponse\\\",(r,n)=>{let{id:i}=n,s=xr(\\\"session_request\\\",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ii(n)?this.events.emit(xr(\\\"session_request\\\",i),{result:n.result}):nn(n)&&this.events.emit(xr(\\\"session_request\\\",i),{error:n.error})}),be(this,\\\"onSessionEventRequest\\\",async(r,n)=>{let{id:i,params:s}=n;try{let o=`${r}_session_event_${s.event.name}`,a=M0.get(o);if(a&&this.isRequestOutOfSync(a,i)){this.client.logger.info(`Discarding out of sync request - ${i}`);return}this.isValidEmit(yn({topic:r},s)),this.client.events.emit(\\\"session_event\\\",{id:i,topic:r,params:s}),M0.set(o,i)}catch(o){await this.sendError({id:i,topic:r,error:o}),this.client.logger.error(o)}}),be(this,\\\"onSessionAuthenticateResponse\\\",(r,n)=>{let{id:i}=n;this.client.logger.trace({type:\\\"method\\\",method:\\\"onSessionAuthenticateResponse\\\",topic:r,payload:n}),Ii(n)?this.events.emit(xr(\\\"session_request\\\",i),{result:n.result}):nn(n)&&this.events.emit(xr(\\\"session_request\\\",i),{error:n.error})}),be(this,\\\"onSessionAuthenticateRequest\\\",async r=>{var n;let{topic:i,payload:s,attestation:o,encryptedId:a,transportType:c}=r;try{let{requester:l,authPayload:d,expiryTimestamp:f}=s.params,p=await this.getVerifyContext({attestationId:o,hash:Kl(JSON.stringify(s)),encryptedId:a,metadata:l.metadata,transportType:c}),h={requester:l,pairingTopic:i,id:s.id,authPayload:d,verifyContext:p,expiryTimestamp:f};await this.setAuthRequest(s.id,{request:h,pairingTopic:i,transportType:c}),c===Dn.link_mode&&(n=l.metadata.redirect)!=null&&n.universal&&this.client.core.addLinkModeSupportedApp(l.metadata.redirect.universal),this.client.events.emit(\\\"session_authenticate\\\",{topic:i,params:s.params,id:s.id,verifyContext:p})}catch(l){this.client.logger.error(l);let d=s.params.requester.publicKey,f=await this.client.core.crypto.generateKeyPair(),p=this.getAppLinkIfEnabled(s.params.requester.metadata,c),h={type:md,receiverPublicKey:d,senderPublicKey:f};await this.sendError({id:s.id,topic:i,error:l,encodeOpts:h,rpcOpts:Ys.wc_sessionAuthenticate.autoReject,appLink:p})}}),be(this,\\\"addSessionRequestToSessionRequestQueue\\\",r=>{this.sessionRequestQueue.queue.push(r)}),be(this,\\\"cleanupAfterResponse\\\",r=>{this.deletePendingSessionRequest(r.response.id,{message:\\\"fulfilled\\\",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=Nf.idle,this.processSessionRequestQueue()},(0,Ht.toMiliseconds)(this.requestQueueDelay))}),be(this,\\\"cleanupPendingSentRequestsForTopic\\\",({topic:r,error:n})=>{let i=this.client.core.history.pending;i.length>0&&i.filter(s=>s.topic===r&&s.request.method===\\\"wc_sessionRequest\\\").forEach(s=>{let o=s.request.id,a=xr(\\\"session_request\\\",o);if(this.events.listenerCount(a)===0)throw new Error(`emitting ${a} without any listeners`);this.events.emit(xr(\\\"session_request\\\",s.request.id),{error:n})})}),be(this,\\\"processSessionRequestQueue\\\",()=>{if(this.sessionRequestQueue.state===Nf.active){this.client.logger.info(\\\"session request queue is already active.\\\");return}let r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info(\\\"session request queue is empty.\\\");return}try{this.sessionRequestQueue.state=Nf.active,this.emitSessionRequest(r)}catch(n){this.client.logger.error(n)}}),be(this,\\\"emitSessionRequest\\\",r=>{this.client.events.emit(\\\"session_request\\\",r)}),be(this,\\\"onPairingCreated\\\",r=>{if(r.methods&&this.expectedPairingMethodMap.set(r.topic,r.methods),r.active)return;let n=this.client.proposal.getAll().find(i=>i.pairingTopic===r.topic);n&&this.onSessionProposeRequest({topic:r.topic,payload:Ws(\\\"wc_sessionPropose\\\",dc(yn({},n),{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties,scopedProperties:n.scopedProperties}),n.id)})}),be(this,\\\"isValidConnect\\\",async r=>{if(!na(r)){let{message:l}=Se(\\\"MISSING_OR_INVALID\\\",`connect() params: ${JSON.stringify(r)}`);throw new Error(l)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,scopedProperties:a,relays:c}=r;if(Bs(n)||await this.isValidPairingTopic(n),!Fde(c,!0)){let{message:l}=Se(\\\"MISSING_OR_INVALID\\\",`connect() relays: ${c}`);throw new Error(l)}if(!Bs(i)&&rx(i)!==0){let l=\\\"requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces\\\";[\\\"fatal\\\",\\\"error\\\",\\\"silent\\\"].includes(this.client.logger.level)?console.warn(l):this.client.logger.warn(l),this.validateNamespaces(i,\\\"requiredNamespaces\\\")}if(!Bs(s)&&rx(s)!==0&&this.validateNamespaces(s,\\\"optionalNamespaces\\\"),Bs(o)||this.validateSessionProps(o,\\\"sessionProperties\\\"),!Bs(a)){this.validateSessionProps(a,\\\"scopedProperties\\\");let l=Object.keys(i||{}).concat(Object.keys(s||{}));if(!Object.keys(a).every(d=>l.includes(d)))throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(a)}, required/optional namespaces: ${JSON.stringify(l)}`)}}),be(this,\\\"validateNamespaces\\\",(r,n)=>{let i=Ude(r,\\\"connect()\\\",n);if(i)throw new Error(i.message)}),be(this,\\\"isValidApprove\\\",async r=>{if(!na(r))throw new Error(Se(\\\"MISSING_OR_INVALID\\\",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:s,sessionProperties:o,scopedProperties:a}=r;this.checkRecentlyDeleted(n),await this.isValidProposalId(n);let c=this.client.proposal.get(n),l=L4(i,\\\"approve()\\\");if(l)throw new Error(l.message);let d=q7(c.requiredNamespaces,i,\\\"approve()\\\");if(d)throw new Error(d.message);if(!Hi(s,!0)){let{message:f}=Se(\\\"MISSING_OR_INVALID\\\",`approve() relayProtocol: ${s}`);throw new Error(f)}if(Bs(o)||this.validateSessionProps(o,\\\"sessionProperties\\\"),!Bs(a)){this.validateSessionProps(a,\\\"scopedProperties\\\");let f=new Set(Object.keys(i));if(!Object.keys(a).every(p=>f.has(p)))throw new Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(a)}, approved namespaces: ${Array.from(f).join(\\\", \\\")}`)}}),be(this,\\\"isValidReject\\\",async r=>{if(!na(r)){let{message:s}=Se(\\\"MISSING_OR_INVALID\\\",`reject() params: ${r}`);throw new Error(s)}let{id:n,reason:i}=r;if(this.checkRecentlyDeleted(n),await this.isValidProposalId(n),!Hde(i)){let{message:s}=Se(\\\"MISSING_OR_INVALID\\\",`reject() reason: ${JSON.stringify(i)}`);throw new Error(s)}}),be(this,\\\"isValidSessionSettleRequest\\\",r=>{if(!na(r)){let{message:l}=Se(\\\"MISSING_OR_INVALID\\\",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:s,expiry:o}=r;if(!h$(n)){let{message:l}=Se(\\\"MISSING_OR_INVALID\\\",\\\"onSessionSettleRequest() relay protocol should be a string\\\");throw new Error(l)}let a=Dde(i,\\\"onSessionSettleRequest()\\\");if(a)throw new Error(a.message);let c=L4(s,\\\"onSessionSettleRequest()\\\");if(c)throw new Error(c.message);if(If(o)){let{message:l}=Se(\\\"EXPIRED\\\",\\\"onSessionSettleRequest()\\\");throw new Error(l)}}),be(this,\\\"isValidUpdate\\\",async r=>{if(!na(r)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`update() params: ${r}`);throw new Error(c)}let{topic:n,namespaces:i}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n);let s=this.client.session.get(n),o=L4(i,\\\"update()\\\");if(o)throw new Error(o.message);let a=q7(s.requiredNamespaces,i,\\\"update()\\\");if(a)throw new Error(a.message)}),be(this,\\\"isValidExtend\\\",async r=>{if(!na(r)){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n)}),be(this,\\\"isValidRequest\\\",async r=>{if(!na(r)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`request() params: ${r}`);throw new Error(c)}let{topic:n,request:i,chainId:s,expiry:o}=r;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!m$(a,s)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`request() chainId: ${s}`);throw new Error(c)}if(!qde(i)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`request() ${JSON.stringify(i)}`);throw new Error(c)}if(!Vde(a,s,i.method)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`request() method: ${i.method}`);throw new Error(c)}if(o&&!Gde(o,_$)){let{message:c}=Se(\\\"MISSING_OR_INVALID\\\",`request() expiry: ${o}. Expiry must be a number (in seconds) between ${_$.min} and ${_$.max}`);throw new Error(c)}}),be(this,\\\"isValidRespond\\\",async r=>{var n;if(!na(r)){let{message:o}=Se(\\\"MISSING_OR_INVALID\\\",`respond() params: ${r}`);throw new Error(o)}let{topic:i,response:s}=r;try{await this.isValidSessionTopic(i)}catch(o){throw(n=r?.response)!=null&&n.id&&this.cleanupAfterResponse(r),o}if(!zde(s)){let{message:o}=Se(\\\"MISSING_OR_INVALID\\\",`respond() response: ${JSON.stringify(s)}`);throw new Error(o)}}),be(this,\\\"isValidPing\\\",async r=>{if(!na(r)){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}),be(this,\\\"isValidEmit\\\",async r=>{if(!na(r)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:s}=r;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!m$(o,s)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`emit() chainId: ${s}`);throw new Error(a)}if(!$de(i)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!Wde(o,s,i.name)){let{message:a}=Se(\\\"MISSING_OR_INVALID\\\",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}}),be(this,\\\"isValidDisconnect\\\",async r=>{if(!na(r)){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}),be(this,\\\"isValidAuthenticate\\\",r=>{let{chains:n,uri:i,domain:s,nonce:o}=r;if(!Array.isArray(n)||n.length===0)throw new Error(\\\"chains is required and must be a non-empty array\\\");if(!Hi(i,!1))throw new Error(\\\"uri is required parameter\\\");if(!Hi(s,!1))throw new Error(\\\"domain is required parameter\\\");if(!Hi(o,!1))throw new Error(\\\"nonce is required parameter\\\");if([...new Set(n.map(c=>K2(c).namespace))].length>1)throw new Error(\\\"Multi-namespace requests are not supported. Please request single namespace only.\\\");let{namespace:a}=K2(n[0]);if(a!==\\\"eip155\\\")throw new Error(\\\"Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.\\\")}),be(this,\\\"getVerifyContext\\\",async r=>{let{attestationId:n,hash:i,encryptedId:s,metadata:o,transportType:a}=r,c={verified:{verifyUrl:o.verifyUrl||F4,validation:\\\"UNKNOWN\\\",origin:o.url||\\\"\\\"}};try{if(a===Dn.link_mode){let d=this.getAppLinkIfEnabled(o,a);return c.verified.validation=d&&new URL(d).origin===new URL(o.url).origin?\\\"VALID\\\":\\\"INVALID\\\",c}let l=await this.client.core.verify.resolve({attestationId:n,hash:i,encryptedId:s,verifyUrl:o.verifyUrl});l&&(c.verified.origin=l.origin,c.verified.isScam=l.isScam,c.verified.validation=l.origin===new URL(o.url).origin?\\\"VALID\\\":\\\"INVALID\\\")}catch(l){this.client.logger.warn(l)}return this.client.logger.debug(`Verify context: ${JSON.stringify(c)}`),c}),be(this,\\\"validateSessionProps\\\",(r,n)=>{Object.values(r).forEach((i,s)=>{if(i==null){let{message:o}=Se(\\\"MISSING_OR_INVALID\\\",`${n} must contain an existing value for each key. Received: ${i} for key ${Object.keys(r)[s]}`);throw new Error(o)}})}),be(this,\\\"getPendingAuthRequest\\\",r=>{let n=this.client.auth.requests.get(r);return typeof n==\\\"object\\\"?n:void 0}),be(this,\\\"addToRecentlyDeleted\\\",(r,n)=>{if(this.recentlyDeletedMap.set(r,n),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let i=0,s=this.recentlyDeletedLimit/2;for(let o of this.recentlyDeletedMap.keys()){if(i++>=s)break;this.recentlyDeletedMap.delete(o)}}}),be(this,\\\"checkRecentlyDeleted\\\",r=>{let n=this.recentlyDeletedMap.get(r);if(n){let{message:i}=Se(\\\"MISSING_OR_INVALID\\\",`Record was recently deleted - ${n}: ${r}`);throw new Error(i)}}),be(this,\\\"isLinkModeEnabled\\\",(r,n)=>{var i,s,o,a,c,l,d,f,p;return!r||n!==Dn.link_mode?!1:((s=(i=this.client.metadata)==null?void 0:i.redirect)==null?void 0:s.linkMode)===!0&&((a=(o=this.client.metadata)==null?void 0:o.redirect)==null?void 0:a.universal)!==void 0&&((l=(c=this.client.metadata)==null?void 0:c.redirect)==null?void 0:l.universal)!==\\\"\\\"&&((d=r?.redirect)==null?void 0:d.universal)!==void 0&&((f=r?.redirect)==null?void 0:f.universal)!==\\\"\\\"&&((p=r?.redirect)==null?void 0:p.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(r.redirect.universal)&&typeof globalThis?.Linking<\\\"u\\\"}),be(this,\\\"getAppLinkIfEnabled\\\",(r,n)=>{var i;return this.isLinkModeEnabled(r,n)?(i=r?.redirect)==null?void 0:i.universal:void 0}),be(this,\\\"handleLinkModeMessage\\\",({url:r})=>{if(!r||!r.includes(\\\"wc_ev\\\")||!r.includes(\\\"topic\\\"))return;let n=Kz(r,\\\"topic\\\")||\\\"\\\",i=decodeURIComponent(Kz(r,\\\"wc_ev\\\")||\\\"\\\"),s=this.client.session.keys.includes(n);s&&this.client.session.update(n,{transportType:Dn.link_mode}),this.client.core.dispatchEnvelope({topic:n,message:i,sessionExists:s})}),be(this,\\\"registerLinkModeListeners\\\",async()=>{var r;if(P4()||bh()&&(r=this.client.metadata.redirect)!=null&&r.linkMode){let n=globalThis?.Linking;if(typeof n<\\\"u\\\"){n.addEventListener(\\\"url\\\",this.handleLinkModeMessage,this.client.name);let i=await n.getInitialURL();i&&setTimeout(()=>{this.handleLinkModeMessage({url:i})},50)}}}),be(this,\\\"shouldSetTVF\\\",(r,n)=>{if(!n||r!==\\\"wc_sessionRequest\\\")return!1;let{request:i}=n;return Object.keys(Bfe).includes(i.method)}),be(this,\\\"getTVFParams\\\",(r,n,i)=>{var s,o;try{let a=n.request.method,c=this.extractTxHashesFromResult(a,i);return dc(yn({correlationId:r,rpcMethods:[a],chainId:n.chainId},this.isValidContractData(n.request.params)&&{contractAddresses:[(o=(s=n.request.params)==null?void 0:s[0])==null?void 0:o.to]}),{txHashes:c})}catch(a){this.client.logger.warn(\\\"Error getting TVF params\\\",a)}return{}}),be(this,\\\"isValidContractData\\\",r=>{var n;if(!r)return!1;try{let i=r?.data||((n=r?.[0])==null?void 0:n.data);if(!i.startsWith(\\\"0x\\\"))return!1;let s=i.slice(2);return/^[0-9a-fA-F]*$/.test(s)?s.length%2===0:!1}catch{}return!1}),be(this,\\\"extractTxHashesFromResult\\\",(r,n)=>{try{let i=Bfe[r];if(typeof n==\\\"string\\\")return[n];let s=n[i.key];if(tx(s))return r===\\\"solana_signAllTransactions\\\"?s.map(o=>cde(o)):s;if(typeof s==\\\"string\\\")return[s]}catch(i){this.client.logger.warn(\\\"Error extracting tx hashes from result\\\",i)}return[]})}async processPendingMessageEvents(){try{let e=this.client.session.keys,r=this.client.core.relayer.messages.getWithoutAck(e);for(let[n,i]of Object.entries(r))for(let s of i)try{await this.onProviderMessageEvent({topic:n,message:s,publishedAt:Date.now()})}catch{this.client.logger.warn(`Error processing pending message event for topic: ${n}, message: ${s}`)}}catch(e){this.client.logger.warn(\\\"processPendingMessageEvents failed\\\",e)}}isInitialized(){if(!this.initialized){let{message:e}=Se(\\\"NOT_INITIALIZED\\\",this.name);throw new Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Js.message,e=>{this.onProviderMessageEvent(e)})}async onRelayMessage(e){let{topic:r,message:n,attestation:i,transportType:s}=e,{publicKey:o}=this.client.auth.authKeys.keys.includes(Z7)?this.client.auth.authKeys.get(Z7):{responseTopic:void 0,publicKey:void 0};try{let a=await this.client.core.crypto.decode(r,n,{receiverPublicKey:o,encoding:s===Dn.link_mode?xh:Xc});yf(a)?(this.client.core.history.set(r,a),await this.onRelayEventRequest({topic:r,payload:a,attestation:i,transportType:s,encryptedId:Kl(n)})):Fl(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a,transportType:s}),this.client.core.history.delete(r,a.id)):await this.onRelayEventUnknownPayload({topic:r,payload:a,transportType:s}),await this.client.core.relayer.messages.ack(r,n)}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(Jl.expired,async e=>{let{topic:r,id:n}=D7(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,Se(\\\"EXPIRED\\\"),!0);if(n&&this.client.auth.requests.keys.includes(n))return await this.deletePendingAuthRequest(n,Se(\\\"EXPIRED\\\"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession({topic:r,expirerHasDeleted:!0}),this.client.events.emit(\\\"session_expire\\\",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit(\\\"proposal_expire\\\",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(V1.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(V1.delete,e=>{this.addToRecentlyDeleted(e.topic,\\\"pairing\\\")})}isValidPairingTopic(e){if(!Hi(e,!1)){let{message:r}=Se(\\\"MISSING_OR_INVALID\\\",`pairing topic should be a string: ${e}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:r}=Se(\\\"NO_MATCHING_KEY\\\",`pairing topic doesn't exist: ${e}`);throw new Error(r)}if(If(this.client.core.pairing.pairings.get(e).expiry)){let{message:r}=Se(\\\"EXPIRED\\\",`pairing topic: ${e}`);throw new Error(r)}}async isValidSessionTopic(e){if(!Hi(e,!1)){let{message:r}=Se(\\\"MISSING_OR_INVALID\\\",`session topic should be a string: ${e}`);throw new Error(r)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:r}=Se(\\\"NO_MATCHING_KEY\\\",`session topic doesn't exist: ${e}`);throw new Error(r)}if(If(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:r}=Se(\\\"EXPIRED\\\",`session topic: ${e}`);throw new Error(r)}if(!this.client.core.crypto.keychain.has(e)){let{message:r}=Se(\\\"MISSING_OR_INVALID\\\",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(r)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(Hi(e,!1)){let{message:r}=Se(\\\"NO_MATCHING_KEY\\\",`session or pairing topic doesn't exist: ${e}`);throw new Error(r)}else{let{message:r}=Se(\\\"MISSING_OR_INVALID\\\",`session or pairing topic should be a string: ${e}`);throw new Error(r)}}async isValidProposalId(e){if(!jde(e)){let{message:r}=Se(\\\"MISSING_OR_INVALID\\\",`proposal id should be a number: ${e}`);throw new Error(r)}if(!this.client.proposal.keys.includes(e)){let{message:r}=Se(\\\"NO_MATCHING_KEY\\\",`proposal id doesn't exist: ${e}`);throw new Error(r)}if(If(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:r}=Se(\\\"EXPIRED\\\",`proposal id: ${e}`);throw new Error(r)}}},Lfe=class extends Sh{constructor(e,r){super(e,r,MQe,T$),this.core=e,this.logger=r}},C$=class extends Sh{constructor(e,r){super(e,r,DQe,T$),this.core=e,this.logger=r}},Ufe=class extends Sh{constructor(e,r){super(e,r,UQe,T$,n=>n.id),this.core=e,this.logger=r}},Ffe=class extends Sh{constructor(e,r){super(e,r,qQe,Q7,()=>Z7),this.core=e,this.logger=r}},jfe=class extends Sh{constructor(e,r){super(e,r,zQe,Q7),this.core=e,this.logger=r}},Hfe=class extends Sh{constructor(e,r){super(e,r,$Qe,Q7,n=>n.id),this.core=e,this.logger=r}},j$t=Object.defineProperty,H$t=(t,e,r)=>e in t?j$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ofe=(t,e,r)=>H$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),qfe=class{constructor(e,r){this.core=e,this.logger=r,Ofe(this,\\\"authKeys\\\"),Ofe(this,\\\"pairingTopics\\\"),Ofe(this,\\\"requests\\\"),this.authKeys=new Ffe(this.core,this.logger),this.pairingTopics=new jfe(this.core,this.logger),this.requests=new Hfe(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}},q$t=Object.defineProperty,z$t=(t,e,r)=>e in t?q$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ar=(t,e,r)=>z$t(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),S$=class t extends Dz{constructor(e){super(e),ar(this,\\\"protocol\\\",zfe),ar(this,\\\"version\\\",$fe),ar(this,\\\"name\\\",E$.name),ar(this,\\\"metadata\\\"),ar(this,\\\"core\\\"),ar(this,\\\"logger\\\"),ar(this,\\\"events\\\",new A$.EventEmitter),ar(this,\\\"engine\\\"),ar(this,\\\"session\\\"),ar(this,\\\"proposal\\\"),ar(this,\\\"pendingRequest\\\"),ar(this,\\\"auth\\\"),ar(this,\\\"signConfig\\\"),ar(this,\\\"on\\\",(n,i)=>this.events.on(n,i)),ar(this,\\\"once\\\",(n,i)=>this.events.once(n,i)),ar(this,\\\"off\\\",(n,i)=>this.events.off(n,i)),ar(this,\\\"removeListener\\\",(n,i)=>this.events.removeListener(n,i)),ar(this,\\\"removeAllListeners\\\",n=>this.events.removeAllListeners(n)),ar(this,\\\"connect\\\",async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"pair\\\",async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"approve\\\",async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"reject\\\",async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"update\\\",async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"extend\\\",async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"request\\\",async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"respond\\\",async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"ping\\\",async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"emit\\\",async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"disconnect\\\",async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"find\\\",n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"getPendingSessionRequests\\\",()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}}),ar(this,\\\"authenticate\\\",async(n,i)=>{try{return await this.engine.authenticate(n,i)}catch(s){throw this.logger.error(s.message),s}}),ar(this,\\\"formatAuthMessage\\\",n=>{try{return this.engine.formatAuthMessage(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"approveSessionAuthenticate\\\",async n=>{try{return await this.engine.approveSessionAuthenticate(n)}catch(i){throw this.logger.error(i.message),i}}),ar(this,\\\"rejectSessionAuthenticate\\\",async n=>{try{return await this.engine.rejectSessionAuthenticate(n)}catch(i){throw this.logger.error(i.message),i}}),this.name=e?.name||E$.name,this.metadata=Jue(e?.metadata),this.signConfig=e?.signConfig;let r=typeof e?.logger<\\\"u\\\"&&typeof e?.logger!=\\\"string\\\"?e.logger:(0,sh.default)(Ll({level:e?.logger||E$.logger}));this.core=e?.core||new NQe(e),this.logger=rr(r,this.name),this.session=new C$(this.core,this.logger),this.proposal=new Lfe(this.core,this.logger),this.pendingRequest=new Ufe(this.core,this.logger),this.engine=new Dfe(this),this.auth=new qfe(this.core,this.logger)}static async init(e){let r=new t(e);return await r.initialize(),r}get context(){return Ir(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace(\\\"Initialized\\\");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info(\\\"SignClient Initialization Success\\\"),setTimeout(()=>{this.engine.processRelayMessageCache()},(0,Ht.toMiliseconds)(Ht.ONE_SECOND))}catch(e){throw this.logger.info(\\\"SignClient Initialization Failure\\\"),this.logger.error(e.message),e}}},$$t=C$,V$t=S$});var J7=q(k$=>{\\\"use strict\\\";u();Object.defineProperty(k$,\\\"__esModule\\\",{value:!0});var W$t=(WQe(),mt(VQe)),Ds=(y$(),mt(WZe)),GQe=(C1(),mt(Sce)),aJe=(Mle(),mt(Ble)),kf=(l7(),mt(Bce)),cJe=(oh(),mt(Ra)),G$t=ho();function lpe(t){return t&&typeof t==\\\"object\\\"&&\\\"default\\\"in t?t:{default:t}}var K$t=lpe(W$t),Ah=lpe(aJe),Z$t=lpe(G$t),KQe=\\\"error\\\",Q$t=\\\"wss://relay.walletconnect.org\\\",J$t=\\\"wc\\\",Y$t=\\\"universal_provider\\\",I$=`${J$t}@2:${Y$t}:`,lJe=\\\"https://rpc.walletconnect.org/v1/\\\",Y4=\\\"generic\\\",X$t=`${lJe}bundler`,wd={DEFAULT_CHAIN_CHANGED:\\\"default_chain_changed\\\"};function eVt(){}function upe(t){return t==null||typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"}function dpe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function tVt(t){if(upe(t))return t;if(Array.isArray(t)||dpe(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<\\\"u\\\"&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t),r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n=new r(t.message);return n.stack=t.stack,n.name=t.name,n.cause=t.cause,n}if(typeof File<\\\"u\\\"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t==\\\"object\\\"){let n=Object.create(e);return Object.assign(n,t)}return t}function ZQe(t){return typeof t==\\\"object\\\"&&t!==null}function uJe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function dJe(t){return t==null?t===void 0?\\\"[object Undefined]\\\":\\\"[object Null]\\\":Object.prototype.toString.call(t)}var rVt=\\\"[object RegExp]\\\",fJe=\\\"[object String]\\\",pJe=\\\"[object Number]\\\",hJe=\\\"[object Boolean]\\\",mJe=\\\"[object Arguments]\\\",nVt=\\\"[object Symbol]\\\",iVt=\\\"[object Date]\\\",sVt=\\\"[object Map]\\\",oVt=\\\"[object Set]\\\",aVt=\\\"[object Array]\\\",cVt=\\\"[object ArrayBuffer]\\\",lVt=\\\"[object Object]\\\",uVt=\\\"[object DataView]\\\",dVt=\\\"[object Uint8Array]\\\",fVt=\\\"[object Uint8ClampedArray]\\\",pVt=\\\"[object Uint16Array]\\\",hVt=\\\"[object Uint32Array]\\\",mVt=\\\"[object Int8Array]\\\",gVt=\\\"[object Int16Array]\\\",yVt=\\\"[object Int32Array]\\\",bVt=\\\"[object Float32Array]\\\",wVt=\\\"[object Float64Array]\\\";function vVt(t,e){return X4(t,void 0,t,new Map,e)}function X4(t,e,r,n=new Map,i=void 0){let s=i?.(t,e,r,n);if(s!=null)return s;if(upe(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let o=new Array(t.length);n.set(t,o);for(let a=0;a<t.length;a++)o[a]=X4(t[a],a,r,n,i);return Object.hasOwn(t,\\\"index\\\")&&(o.index=t.index),Object.hasOwn(t,\\\"input\\\")&&(o.input=t.input),o}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let o=new RegExp(t.source,t.flags);return o.lastIndex=t.lastIndex,o}if(t instanceof Map){let o=new Map;n.set(t,o);for(let[a,c]of t)o.set(a,X4(c,a,r,n,i));return o}if(t instanceof Set){let o=new Set;n.set(t,o);for(let a of t)o.add(X4(a,void 0,r,n,i));return o}if(typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(t))return t.subarray();if(dpe(t)){let o=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,o);for(let a=0;a<t.length;a++)o[a]=X4(t[a],a,r,n,i);return o}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<\\\"u\\\"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let o=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,o),ix(o,t,r,n,i),o}if(typeof File<\\\"u\\\"&&t instanceof File){let o=new File([t],t.name,{type:t.type});return n.set(t,o),ix(o,t,r,n,i),o}if(t instanceof Blob){let o=new Blob([t],{type:t.type});return n.set(t,o),ix(o,t,r,n,i),o}if(t instanceof Error){let o=new t.constructor;return n.set(t,o),o.message=t.message,o.name=t.name,o.stack=t.stack,o.cause=t.cause,ix(o,t,r,n,i),o}if(typeof t==\\\"object\\\"&&xVt(t)){let o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),ix(o,t,r,n,i),o}return t}function ix(t,e,r=t,n,i){let s=[...Object.keys(e),...uJe(e)];for(let o=0;o<s.length;o++){let a=s[o],c=Object.getOwnPropertyDescriptor(t,a);(c==null||c.writable)&&(t[a]=X4(e[a],a,r,n,i))}}function xVt(t){switch(dJe(t)){case mJe:case aVt:case cVt:case uVt:case hJe:case iVt:case bVt:case wVt:case mVt:case gVt:case yVt:case sVt:case pJe:case lVt:case rVt:case oVt:case fJe:case nVt:case dVt:case fVt:case pVt:case hVt:return!0;default:return!1}}function EVt(t,e){return vVt(t,(r,n,i,s)=>{let o=e?.(r,n,i,s);if(o!=null)return o;if(typeof t==\\\"object\\\")switch(Object.prototype.toString.call(t)){case pJe:case fJe:case hJe:{let a=new t.constructor(t?.valueOf());return ix(a,t),a}case mJe:{let a={};return ix(a,t),a.length=t.length,a[Symbol.iterator]=t[Symbol.iterator],a}default:return}})}function QQe(t){return EVt(t)}function JQe(t){return t!==null&&typeof t==\\\"object\\\"&&dJe(t)===\\\"[object Arguments]\\\"}function _Vt(t){return dpe(t)}function CVt(t){if(typeof t!=\\\"object\\\"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!==\\\"[object Object]\\\"){let r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function SVt(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let s=0;s<r.length;s++){let o=r[s];i=Zfe(i,o,n,new Map)}return i}function Zfe(t,e,r,n){if(upe(t)&&(t=Object(t)),e==null||typeof e!=\\\"object\\\")return t;if(n.has(e))return tVt(n.get(e));if(n.set(e,t),Array.isArray(e)){e=e.slice();for(let s=0;s<e.length;s++)e[s]=e[s]??void 0}let i=[...Object.keys(e),...uJe(e)];for(let s=0;s<i.length;s++){let o=i[s],a=e[o],c=t[o];if(JQe(a)&&(a={...a}),JQe(c)&&(c={...c}),typeof globalThis.Buffer<\\\"u\\\"&&globalThis.Buffer.isBuffer(a)&&(a=QQe(a)),Array.isArray(a))if(typeof c==\\\"object\\\"&&c!=null){let d=[],f=Reflect.ownKeys(c);for(let p=0;p<f.length;p++){let h=f[p];d[h]=c[h]}c=d}else c=[];let l=r(c,a,o,t,e,n);l!=null?t[o]=l:Array.isArray(a)||ZQe(c)&&ZQe(a)?t[o]=Zfe(c,a,r,n):c==null&&CVt(a)?t[o]=Zfe({},a,r,n):c==null&&_Vt(a)?t[o]=QQe(a):(c===void 0||a!==void 0)&&(t[o]=a)}return t}function AVt(t,...e){return SVt(t,...e,eVt)}var TVt=Object.defineProperty,IVt=Object.defineProperties,RVt=Object.getOwnPropertyDescriptors,YQe=Object.getOwnPropertySymbols,PVt=Object.prototype.hasOwnProperty,OVt=Object.prototype.propertyIsEnumerable,XQe=(t,e,r)=>e in t?TVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R$=(t,e)=>{for(var r in e||(e={}))PVt.call(e,r)&&XQe(t,r,e[r]);if(YQe)for(var r of YQe(e))OVt.call(e,r)&&XQe(t,r,e[r]);return t},NVt=(t,e)=>IVt(t,RVt(e));function Yl(t,e,r){var n;let i=Ds.parseChainId(t);return((n=e.rpcMap)==null?void 0:n[i.reference])||`${lJe}?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function sx(t){return t.includes(\\\":\\\")?t.split(\\\":\\\")[1]:t}function gJe(t){return t.map(e=>`${e.split(\\\":\\\")[0]}:${e.split(\\\":\\\")[1]}`)}function kVt(t,e){let r=Object.keys(e.namespaces).filter(i=>i.includes(t));if(!r.length)return[];let n=[];return r.forEach(i=>{let s=e.namespaces[i].accounts;n.push(...s)}),n}function P$(t={},e={}){let r=eJe(t),n=eJe(e);return AVt(r,n)}function eJe(t){var e,r,n,i,s;let o={};if(!Ds.isValidObject(t))return o;for(let[a,c]of Object.entries(t)){let l=Ds.isCaipNamespace(a)?[a]:c.chains,d=c.methods||[],f=c.events||[],p=c.rpcMap||{},h=Ds.parseNamespaceKey(a);o[h]=NVt(R$(R$({},o[h]),c),{chains:Ds.mergeArrays(l,(e=o[h])==null?void 0:e.chains),methods:Ds.mergeArrays(d,(r=o[h])==null?void 0:r.methods),events:Ds.mergeArrays(f,(n=o[h])==null?void 0:n.events)}),(Ds.isValidObject(p)||Ds.isValidObject(((i=o[h])==null?void 0:i.rpcMap)||{}))&&(o[h].rpcMap=R$(R$({},p),(s=o[h])==null?void 0:s.rpcMap))}return o}function tJe(t){return t.includes(\\\":\\\")?t.split(\\\":\\\")[2]:t}function rJe(t){let e={};for(let[r,n]of Object.entries(t)){let i=n.methods||[],s=n.events||[],o=n.accounts||[],a=Ds.isCaipNamespace(r)?[r]:n.chains?n.chains:gJe(n.accounts);e[r]={chains:a,methods:i,events:s,accounts:o}}return e}function Wfe(t){return typeof t==\\\"number\\\"?t:t.includes(\\\"0x\\\")?parseInt(t,16):(t=t.includes(\\\":\\\")?t.split(\\\":\\\")[1]:t,isNaN(Number(t))?t:Number(t))}var yJe={},Br=t=>yJe[t],Gfe=(t,e)=>{yJe[t]=e},BVt=Object.defineProperty,MVt=(t,e,r)=>e in t?BVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,H4=(t,e,r)=>MVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Qfe=class{constructor(e){H4(this,\\\"name\\\",\\\"polkadot\\\"),H4(this,\\\"client\\\"),H4(this,\\\"httpProviders\\\"),H4(this,\\\"events\\\"),H4(this,\\\"namespace\\\"),H4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=sx(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},DVt=Object.defineProperty,LVt=Object.defineProperties,UVt=Object.getOwnPropertyDescriptors,nJe=Object.getOwnPropertySymbols,FVt=Object.prototype.hasOwnProperty,jVt=Object.prototype.propertyIsEnumerable,Jfe=(t,e,r)=>e in t?DVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,iJe=(t,e)=>{for(var r in e||(e={}))FVt.call(e,r)&&Jfe(t,r,e[r]);if(nJe)for(var r of nJe(e))jVt.call(e,r)&&Jfe(t,r,e[r]);return t},sJe=(t,e)=>LVt(t,UVt(e)),q4=(t,e,r)=>Jfe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Yfe=class{constructor(e){q4(this,\\\"name\\\",\\\"eip155\\\"),q4(this,\\\"client\\\"),q4(this,\\\"chainId\\\"),q4(this,\\\"namespace\\\"),q4(this,\\\"httpProviders\\\"),q4(this,\\\"events\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case\\\"eth_requestAccounts\\\":return this.getAccounts();case\\\"eth_accounts\\\":return this.getAccounts();case\\\"wallet_switchEthereumChain\\\":return await this.handleSwitchChain(e);case\\\"eth_chainId\\\":return parseInt(this.getDefaultChain());case\\\"wallet_getCapabilities\\\":return await this.getCapabilities(e);case\\\"wallet_getCallsStatus\\\":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(parseInt(e),r),this.chainId=parseInt(e),this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}createHttpProvider(e,r){let n=r||Yl(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new aJe.HttpConnection(n,Br(\\\"disableProviderPing\\\")))}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=parseInt(sx(r));e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}getHttpProvider(){let e=this.chainId,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}async handleSwitchChain(e){var r,n;let i=e.request.params?(r=e.request.params[0])==null?void 0:r.chainId:\\\"0x0\\\";i=i.startsWith(\\\"0x\\\")?i:`0x${i}`;let s=parseInt(i,16);if(this.isChainApproved(s))this.setDefaultChain(`${s}`);else if(this.namespace.methods.includes(\\\"wallet_switchEthereumChain\\\"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${s}`);else throw new Error(`Failed to switch to chain 'eip155:${s}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var r,n,i,s,o;let a=(n=(r=e.request)==null?void 0:r.params)==null?void 0:n[0],c=((s=(i=e.request)==null?void 0:i.params)==null?void 0:s[1])||[],l=`${a}${c.join(\\\",\\\")}`;if(!a)throw new Error(\\\"Missing address parameter in `wallet_getCapabilities` request\\\");let d=this.client.session.get(e.topic),f=((o=d?.sessionProperties)==null?void 0:o.capabilities)||{};if(f!=null&&f[l])return f?.[l];let p=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:sJe(iJe({},d.sessionProperties||{}),{capabilities:sJe(iJe({},f||{}),{[l]:p})})})}catch(h){console.warn(\\\"Failed to update session with capabilities\\\",h)}return p}async getCallStatus(e){var r,n;let i=this.client.session.get(e.topic),s=(r=i.sessionProperties)==null?void 0:r.bundler_name;if(s){let a=this.getBundlerUrl(e.chainId,s);try{return await this.getUserOperationReceipt(a,e)}catch(c){console.warn(\\\"Failed to fetch call status from bundler\\\",c,a)}}let o=(n=i.sessionProperties)==null?void 0:n.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,e)}catch(a){console.warn(\\\"Failed to fetch call status from custom bundler\\\",a,o)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw new Error(\\\"Fetching call status not approved by the wallet.\\\")}async getUserOperationReceipt(e,r){var n;let i=new URL(e),s=await fetch(i,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify(cJe.formatJsonRpcRequest(\\\"eth_getUserOperationReceipt\\\",[(n=r.request.params)==null?void 0:n[0]]))});if(!s.ok)throw new Error(`Failed to fetch user operation receipt - ${s.status}`);return await s.json()}getBundlerUrl(e,r){return`${X$t}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${r}`}},HVt=Object.defineProperty,qVt=(t,e,r)=>e in t?HVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,z4=(t,e,r)=>qVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),Xfe=class{constructor(e){z4(this,\\\"name\\\",\\\"solana\\\"),z4(this,\\\"client\\\"),z4(this,\\\"httpProviders\\\"),z4(this,\\\"events\\\"),z4(this,\\\"namespace\\\"),z4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=sx(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},zVt=Object.defineProperty,$Vt=(t,e,r)=>e in t?zVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$4=(t,e,r)=>$Vt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),epe=class{constructor(e){$4(this,\\\"name\\\",\\\"cosmos\\\"),$4(this,\\\"client\\\"),$4(this,\\\"httpProviders\\\"),$4(this,\\\"events\\\"),$4(this,\\\"namespace\\\"),$4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=sx(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},VVt=Object.defineProperty,WVt=(t,e,r)=>e in t?VVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V4=(t,e,r)=>WVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),tpe=class{constructor(e){V4(this,\\\"name\\\",\\\"algorand\\\"),V4(this,\\\"client\\\"),V4(this,\\\"httpProviders\\\"),V4(this,\\\"events\\\"),V4(this,\\\"namespace\\\"),V4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(!this.httpProviders[e]){let n=r||Yl(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;e[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);return typeof n>\\\"u\\\"?void 0:new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},GVt=Object.defineProperty,KVt=(t,e,r)=>e in t?GVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,W4=(t,e,r)=>KVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),rpe=class{constructor(e){W4(this,\\\"name\\\",\\\"cip34\\\"),W4(this,\\\"client\\\"),W4(this,\\\"httpProviders\\\"),W4(this,\\\"events\\\"),W4(this,\\\"namespace\\\"),W4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{let n=this.getCardanoRPCUrl(r),i=sx(r);e[i]=this.createHttpProvider(i,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}getCardanoRPCUrl(e){let r=this.namespace.rpcMap;if(r)return r[e]}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},ZVt=Object.defineProperty,QVt=(t,e,r)=>e in t?ZVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G4=(t,e,r)=>QVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),npe=class{constructor(e){G4(this,\\\"name\\\",\\\"elrond\\\"),G4(this,\\\"client\\\"),G4(this,\\\"httpProviders\\\"),G4(this,\\\"events\\\"),G4(this,\\\"namespace\\\"),G4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=sx(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},JVt=Object.defineProperty,YVt=(t,e,r)=>e in t?JVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,K4=(t,e,r)=>YVt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ipe=class{constructor(e){K4(this,\\\"name\\\",\\\"multiversx\\\"),K4(this,\\\"client\\\"),K4(this,\\\"httpProviders\\\"),K4(this,\\\"events\\\"),K4(this,\\\"namespace\\\"),K4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;let i=sx(r);e[i]=this.createHttpProvider(i,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},XVt=Object.defineProperty,eWt=(t,e,r)=>e in t?XVt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Z4=(t,e,r)=>eWt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),spe=class{constructor(e){Z4(this,\\\"name\\\",\\\"near\\\"),Z4(this,\\\"client\\\"),Z4(this,\\\"httpProviders\\\"),Z4(this,\\\"events\\\"),Z4(this,\\\"namespace\\\"),Z4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(this.chainId=e,!this.httpProviders[e]){let n=r||Yl(`${this.name}:${e}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{var n;e[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace);return typeof n>\\\"u\\\"?void 0:new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},tWt=Object.defineProperty,rWt=(t,e,r)=>e in t?tWt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q4=(t,e,r)=>rWt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ope=class{constructor(e){Q4(this,\\\"name\\\",\\\"tezos\\\"),Q4(this,\\\"client\\\"),Q4(this,\\\"httpProviders\\\"),Q4(this,\\\"events\\\"),Q4(this,\\\"namespace\\\"),Q4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,r){if(this.chainId=e,!this.httpProviders[e]){let n=r||Yl(`${this.name}:${e}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(r=>{e[r]=this.createHttpProvider(r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace);return typeof n>\\\"u\\\"?void 0:new kf.JsonRpcProvider(new Ah.default(n))}},nWt=Object.defineProperty,iWt=(t,e,r)=>e in t?nWt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,J4=(t,e,r)=>iWt(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),ape=class{constructor(e){J4(this,\\\"name\\\",Y4),J4(this,\\\"client\\\"),J4(this,\\\"httpProviders\\\"),J4(this,\\\"events\\\"),J4(this,\\\"namespace\\\"),J4(this,\\\"chainId\\\"),this.namespace=e.namespace,this.events=Br(\\\"events\\\"),this.client=Br(\\\"client\\\"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,r){this.httpProviders[e]||this.setHttpProvider(e,r),this.chainId=e,this.events.emit(wd.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error(\\\"ChainId not found\\\");return e.split(\\\":\\\")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(r=>r.split(\\\":\\\")[1]===this.chainId.toString()).map(r=>r.split(\\\":\\\")[2]))]:[]}createHttpProviders(){var e,r;let n={};return(r=(e=this.namespace)==null?void 0:e.accounts)==null||r.forEach(i=>{let s=Ds.parseChainId(i);n[`${s.namespace}:${s.reference}`]=this.createHttpProvider(i)}),n}getHttpProvider(e){let r=this.httpProviders[e];if(typeof r>\\\"u\\\")throw new Error(`JSON-RPC provider for ${e} not found`);return r}setHttpProvider(e,r){let n=this.createHttpProvider(e,r);n&&(this.httpProviders[e]=n)}createHttpProvider(e,r){let n=r||Yl(e,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);return new kf.JsonRpcProvider(new Ah.default(n,Br(\\\"disableProviderPing\\\")))}},sWt=Object.defineProperty,oWt=Object.defineProperties,aWt=Object.getOwnPropertyDescriptors,oJe=Object.getOwnPropertySymbols,cWt=Object.prototype.hasOwnProperty,lWt=Object.prototype.propertyIsEnumerable,cpe=(t,e,r)=>e in t?sWt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O$=(t,e)=>{for(var r in e||(e={}))cWt.call(e,r)&&cpe(t,r,e[r]);if(oJe)for(var r of oJe(e))lWt.call(e,r)&&cpe(t,r,e[r]);return t},Kfe=(t,e)=>oWt(t,aWt(e)),bd=(t,e,r)=>cpe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r),N$=class t{constructor(e){bd(this,\\\"client\\\"),bd(this,\\\"namespaces\\\"),bd(this,\\\"optionalNamespaces\\\"),bd(this,\\\"sessionProperties\\\"),bd(this,\\\"scopedProperties\\\"),bd(this,\\\"events\\\",new Z$t.default),bd(this,\\\"rpcProviders\\\",{}),bd(this,\\\"session\\\"),bd(this,\\\"providerOpts\\\"),bd(this,\\\"logger\\\"),bd(this,\\\"uri\\\"),bd(this,\\\"disableProviderPing\\\",!1),this.providerOpts=e,this.logger=typeof e?.logger<\\\"u\\\"&&typeof e?.logger!=\\\"string\\\"?e.logger:GQe.pino(GQe.getDefaultLoggerOptions({level:e?.logger||KQe})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let r=new t(e);return await r.initialize(),r}async request(e,r,n){let[i,s]=this.validateChain(r);if(!this.session)throw new Error(\\\"Please call connect() before request()\\\");return await this.getProvider(i).request({request:O$({},e),chainId:`${i}:${s}`,topic:this.session.topic,expiry:n})}sendAsync(e,r,n,i){let s=new Date().getTime();this.request(e,n,i).then(o=>r(null,cJe.formatJsonRpcResult(s,o))).catch(o=>r(o,void 0))}async enable(){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error(\\\"Please call connect() before enable()\\\");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:Ds.getSdkError(\\\"USER_DISCONNECTED\\\")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,r){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:n,response:i}=await this.client.authenticate(e,r);n&&(this.uri=n,this.events.emit(\\\"display_uri\\\",n));let s=await i();if(this.session=s.session,this.session){let o=rJe(this.session.namespaces);this.namespaces=P$(this.namespaces,o),await this.persist(\\\"namespaces\\\",this.namespaces),this.onConnect()}return s}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}removeListener(e,r){this.events.removeListener(e,r)}off(e,r){this.events.off(e,r)}get isWalletConnect(){return!0}async pair(e){let{uri:r,approval:n}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});r&&(this.uri=r,this.events.emit(\\\"display_uri\\\",r));let i=await n();this.session=i;let s=rJe(i.namespaces);return this.namespaces=P$(this.namespaces,s),await this.persist(\\\"namespaces\\\",this.namespaces),await this.persist(\\\"optionalNamespaces\\\",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(e,r){try{if(!this.session)return;let[n,i]=this.validateChain(e),s=this.getProvider(n);s.name===Y4?s.setDefaultChain(`${n}:${i}`,r):s.setDefaultChain(i,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info(\\\"Cleaning up inactive pairings...\\\");let r=this.client.pairing.getAll();if(Ds.isValidArray(r)){for(let n of r)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.logger.warn(\\\"abortPairingAttempt is deprecated. This is now a no-op.\\\")}async checkStorage(){this.namespaces=await this.getFromStore(\\\"namespaces\\\")||{},this.optionalNamespaces=await this.getFromStore(\\\"optionalNamespaces\\\")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace(\\\"Initialized\\\"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var e,r;if(this.client=this.providerOpts.client||await K$t.default.init({core:this.providerOpts.core,logger:this.providerOpts.logger||KQe,relayUrl:this.providerOpts.relayUrl||Q$t,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(n){throw this.logger.error(\\\"Failed to get session\\\",n),new Error(`The provided session: ${(r=(e=this.providerOpts)==null?void 0:e.session)==null?void 0:r.topic} doesn't exist in the Sign client`)}else{let n=this.client.session.getAll();this.session=n[0]}this.logger.trace(\\\"SignClient Initialized\\\")}createProviders(){if(!this.client)throw new Error(\\\"Sign Client not initialized\\\");if(!this.session)throw new Error(\\\"Session not initialized. Please call connect() before enable()\\\");let e=[...new Set(Object.keys(this.session.namespaces).map(r=>Ds.parseNamespaceKey(r)))];Gfe(\\\"client\\\",this.client),Gfe(\\\"events\\\",this.events),Gfe(\\\"disableProviderPing\\\",this.disableProviderPing),e.forEach(r=>{if(!this.session)return;let n=kVt(r,this.session),i=gJe(n),s=P$(this.namespaces,this.optionalNamespaces),o=Kfe(O$({},s[r]),{accounts:n,chains:i});switch(r){case\\\"eip155\\\":this.rpcProviders[r]=new Yfe({namespace:o});break;case\\\"algorand\\\":this.rpcProviders[r]=new tpe({namespace:o});break;case\\\"solana\\\":this.rpcProviders[r]=new Xfe({namespace:o});break;case\\\"cosmos\\\":this.rpcProviders[r]=new epe({namespace:o});break;case\\\"polkadot\\\":this.rpcProviders[r]=new Qfe({namespace:o});break;case\\\"cip34\\\":this.rpcProviders[r]=new rpe({namespace:o});break;case\\\"elrond\\\":this.rpcProviders[r]=new npe({namespace:o});break;case\\\"multiversx\\\":this.rpcProviders[r]=new ipe({namespace:o});break;case\\\"near\\\":this.rpcProviders[r]=new spe({namespace:o});break;case\\\"tezos\\\":this.rpcProviders[r]=new ope({namespace:o});break;default:this.rpcProviders[Y4]?this.rpcProviders[Y4].updateNamespace(o):this.rpcProviders[Y4]=new ape({namespace:o})}})}registerEventListeners(){if(typeof this.client>\\\"u\\\")throw new Error(\\\"Sign Client is not initialized\\\");this.client.on(\\\"session_ping\\\",e=>{var r;let{topic:n}=e;n===((r=this.session)==null?void 0:r.topic)&&this.events.emit(\\\"session_ping\\\",e)}),this.client.on(\\\"session_event\\\",e=>{var r;let{params:n,topic:i}=e;if(i!==((r=this.session)==null?void 0:r.topic))return;let{event:s}=n;if(s.name===\\\"accountsChanged\\\"){let o=s.data;o&&Ds.isValidArray(o)&&this.events.emit(\\\"accountsChanged\\\",o.map(tJe))}else if(s.name===\\\"chainChanged\\\"){let o=n.chainId,a=n.event.data,c=Ds.parseNamespaceKey(o),l=Wfe(o)!==Wfe(a)?`${c}:${Wfe(a)}`:o;this.onChainChanged(l)}else this.events.emit(s.name,s.data);this.events.emit(\\\"session_event\\\",e)}),this.client.on(\\\"session_update\\\",({topic:e,params:r})=>{var n,i;if(e!==((n=this.session)==null?void 0:n.topic))return;let{namespaces:s}=r,o=(i=this.client)==null?void 0:i.session.get(e);this.session=Kfe(O$({},o),{namespaces:s}),this.onSessionUpdate(),this.events.emit(\\\"session_update\\\",{topic:e,params:r})}),this.client.on(\\\"session_delete\\\",async e=>{var r;e.topic===((r=this.session)==null?void 0:r.topic)&&(await this.cleanup(),this.events.emit(\\\"session_delete\\\",e),this.events.emit(\\\"disconnect\\\",Kfe(O$({},Ds.getSdkError(\\\"USER_DISCONNECTED\\\")),{data:e.topic})))}),this.on(wd.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[Y4]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var r;this.getProvider(e).updateNamespace((r=this.session)==null?void 0:r.namespaces[e])})}setNamespaces(e){let{namespaces:r={},optionalNamespaces:n={},sessionProperties:i,scopedProperties:s}=e;this.optionalNamespaces=P$(r,n),this.sessionProperties=i,this.scopedProperties=s}validateChain(e){let[r,n]=e?.split(\\\":\\\")||[\\\"\\\",\\\"\\\"];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(o=>Ds.parseNamespaceKey(o)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];let i=Ds.parseNamespaceKey(Object.keys(this.namespaces)[0]),s=this.rpcProviders[i].getDefaultChain();return[i,s]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}async onChainChanged(e,r=!1){if(!this.namespaces)return;let[n,i]=this.validateChain(e);if(!i)return;this.updateNamespaceChain(n,i),this.events.emit(\\\"chainChanged\\\",i);let s=this.getProvider(n).getDefaultChain();r||this.getProvider(n).setDefaultChain(i),this.emitAccountsChangedOnChainChange({namespace:n,previousChainId:s,newChainId:e}),await this.persist(\\\"namespaces\\\",this.namespaces)}emitAccountsChangedOnChainChange({namespace:e,previousChainId:r,newChainId:n}){var i,s;try{if(r===n)return;let o=(s=(i=this.session)==null?void 0:i.namespaces[e])==null?void 0:s.accounts;if(!o)return;let a=o.filter(c=>c.includes(`${n}:`)).map(tJe);if(!Ds.isValidArray(a))return;this.events.emit(\\\"accountsChanged\\\",a)}catch(o){this.logger.warn(\\\"Failed to emit accountsChanged on chain change\\\",o)}}updateNamespaceChain(e,r){if(!this.namespaces)return;let n=this.namespaces[e]?e:`${e}:${r}`,i={chains:[],methods:[],events:[],defaultChain:r};this.namespaces[n]?this.namespaces[n]&&(this.namespaces[n].defaultChain=r):this.namespaces[n]=i}onConnect(){this.createProviders(),this.events.emit(\\\"connect\\\",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore(\\\"namespaces\\\"),await this.deleteFromStore(\\\"optionalNamespaces\\\"),await this.deleteFromStore(\\\"sessionProperties\\\"),this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(e,r){var n;let i=((n=this.session)==null?void 0:n.topic)||\\\"\\\";await this.client.core.storage.setItem(`${I$}/${e}${i}`,r)}async getFromStore(e){var r;let n=((r=this.session)==null?void 0:r.topic)||\\\"\\\";return await this.client.core.storage.getItem(`${I$}/${e}${n}`)}async deleteFromStore(e){var r;let n=((r=this.session)==null?void 0:r.topic)||\\\"\\\";await this.client.core.storage.removeItem(`${I$}/${e}${n}`)}async cleanupStorage(){var e;try{if(((e=this.client)==null?void 0:e.session.length)>0)return;let r=await this.client.core.storage.getKeys();for(let n of r)n.startsWith(I$)&&await this.client.core.storage.removeItem(n)}catch(r){this.logger.warn(\\\"Failed to cleanup storage\\\",r)}}},uWt=N$;k$.UniversalProvider=uWt,k$.default=N$});var F0n,vd,fpe=x(()=>{u();F0n=Me(J7(),1);Ri();xz();lc();ea();D1();ld();S0();j2();Kc();Sf();q2();Gc();vd={getSIWX(){return ee.state.siwx},async initializeIfEnabled(){let t=ee.state.siwx,e=z.getActiveCaipAddress();if(!(t&&e))return;let[r,n,i]=e.split(\\\":\\\");if(z.checkIfSupportedNetwork(r))try{if((await t.getSessions(`${r}:${n}`,i)).length)return;await Dt.open({view:\\\"SIWXSignMessage\\\"})}catch(s){console.error(\\\"SIWXUtil:initializeIfEnabled\\\",s),Xe.sendEvent({type:\\\"track\\\",event:\\\"SIWX_AUTH_ERROR\\\",properties:this.getSIWXEventProperties()}),await me._getClient()?.disconnect().catch(console.error),de.reset(\\\"Connect\\\"),wr.showError(\\\"A problem occurred while trying initialize authentication\\\")}},async requestSignMessage(){let t=ee.state.siwx,e=oe.getPlainAddress(z.getActiveCaipAddress()),r=z.getActiveCaipNetwork(),n=me._getClient();if(!t)throw new Error(\\\"SIWX is not enabled\\\");if(!e)throw new Error(\\\"No ActiveCaipAddress found\\\");if(!r)throw new Error(\\\"No ActiveCaipNetwork or client found\\\");if(!n)throw new Error(\\\"No ConnectionController client found\\\");try{let i=await t.createMessage({chainId:r.caipNetworkId,accountAddress:e}),s=i.toString();ie.getConnectorId(r.chainNamespace)===_e.CONNECTOR_ID.AUTH&&de.pushTransactionStack({});let a=await n.signMessage(s);await t.addSession({data:i,message:s,signature:a}),Dt.close(),Xe.sendEvent({type:\\\"track\\\",event:\\\"SIWX_AUTH_SUCCESS\\\",properties:this.getSIWXEventProperties()})}catch(i){let s=this.getSIWXEventProperties();(!Dt.state.open||de.state.view===\\\"ApproveTransaction\\\")&&await Dt.open({view:\\\"SIWXSignMessage\\\"}),s.isSmartAccount?wr.showError(\\\"This application might not support Smart Accounts\\\"):wr.showError(\\\"Signature declined\\\"),Xe.sendEvent({type:\\\"track\\\",event:\\\"SIWX_AUTH_ERROR\\\",properties:s}),console.error(\\\"SWIXUtil:requestSignMessage\\\",i)}},async cancelSignMessage(){try{this.getSIWX()?.getRequired?.()?await me.disconnect():Dt.close(),de.reset(\\\"Connect\\\"),Xe.sendEvent({event:\\\"CLICK_CANCEL_SIWX\\\",type:\\\"track\\\",properties:this.getSIWXEventProperties()})}catch(t){console.error(\\\"SIWXUtil:cancelSignMessage\\\",t)}},async getSessions(){let t=ee.state.siwx,e=oe.getPlainAddress(z.getActiveCaipAddress()),r=z.getActiveCaipNetwork();return t&&e&&r?t.getSessions(r.caipNetworkId,e):[]},async isSIWXCloseDisabled(){let t=this.getSIWX();if(t){let e=de.state.view===\\\"ApproveTransaction\\\",r=de.state.view===\\\"SIWXSignMessage\\\";if(e||r)return t.getRequired?.()&&(await this.getSessions()).length===0}return!1},async universalProviderAuthenticate({universalProvider:t,chains:e,methods:r}){let n=vd.getSIWX(),i=new Set(e.map(a=>a.split(\\\":\\\")[0]));if(!n||i.size!==1||!i.has(\\\"eip155\\\"))return!1;let s=await n.createMessage({chainId:z.getActiveCaipNetwork()?.caipNetworkId||\\\"\\\",accountAddress:\\\"\\\"}),o=await t.authenticate({nonce:s.nonce,domain:s.domain,uri:s.uri,exp:s.expirationTime,iat:s.issuedAt,nbf:s.notBefore,requestId:s.requestId,version:s.version,resources:s.resources,statement:s.statement,chainId:s.chainId,methods:r,chains:[s.chainId,...e.filter(a=>a!==s.chainId)]});if(wr.showLoading(\\\"Authenticating...\\\",{autoClose:!1}),Ie.setConnectedWalletInfo({...o.session.peer.metadata,name:o.session.peer.metadata.name,icon:o.session.peer.metadata.icons?.[0],type:\\\"WALLET_CONNECT\\\"},Array.from(i)[0]),o?.auths?.length){let a=o.auths.map(c=>{let l=t.client.formatAuthMessage({request:c.p,iss:c.p.iss});return{data:{...c.p,accountAddress:c.p.iss.split(\\\":\\\").slice(-1).join(\\\"\\\"),chainId:c.p.iss.split(\\\":\\\").slice(2,4).join(\\\":\\\"),uri:c.p.aud,version:c.p.version||s.version,expirationTime:c.p.exp,issuedAt:c.p.iat,notBefore:c.p.nbf},message:l,signature:c.s.s,cacao:c}});try{await n.setSessions(a),Xe.sendEvent({type:\\\"track\\\",event:\\\"SIWX_AUTH_SUCCESS\\\",properties:vd.getSIWXEventProperties()})}catch(c){throw console.error(\\\"SIWX:universalProviderAuth - failed to set sessions\\\",c),Xe.sendEvent({type:\\\"track\\\",event:\\\"SIWX_AUTH_ERROR\\\",properties:vd.getSIWXEventProperties()}),await t.disconnect().catch(console.error),c}finally{wr.hide()}}return!0},getSIWXEventProperties(){let t=z.state.activeChain;return{network:z.state.activeCaipNetwork?.caipNetworkId||\\\"\\\",isSmartAccount:Ie.state.preferredAccountTypes?.[t]===T0.ACCOUNT_TYPES.SMART_ACCOUNT}},async clearSessions(){let t=this.getSIWX();t&&await t.setSessions([])}}});var Y7,bJe=x(()=>{u();j2();Sf();fpe();Y7={isUnsupportedChainView(){return de.state.view===\\\"UnsupportedChain\\\"||de.state.view===\\\"SwitchNetwork\\\"&&de.state.history.includes(\\\"UnsupportedChain\\\")},async safeClose(){if(this.isUnsupportedChainView()){Dt.shake();return}if(await vd.isSIWXCloseDisabled()){Dt.shake();return}Dt.close()}}});var xt=x(()=>{u();j2();Sf();lc();ea();LGe();D1();ld();q2();g4();vz();hue();Kc();z2();Ez();S0();gue();UGe();HGe();fue();due();mh();Gc();_0();fpe();bJe()});function X7(t,e){return ie.getConnectorId(t)===e}var wJe=x(()=>{u();ld()});function ppe(t){let e=Array.from(z.state.chains.keys()),r=[];return t?(r.push([t,z.state.chains.get(t)]),X7(t,_e.CONNECTOR_ID.WALLET_CONNECT)?e.forEach(n=>{n!==t&&X7(n,_e.CONNECTOR_ID.WALLET_CONNECT)&&r.push([n,z.state.chains.get(n)])}):X7(t,_e.CONNECTOR_ID.AUTH)&&e.forEach(n=>{n!==t&&X7(n,_e.CONNECTOR_ID.AUTH)&&r.push([n,z.state.chains.get(n)])})):r=Array.from(z.state.chains.entries()),r}var vJe=x(()=>{u();Ri();ea();wJe()});var xJe=x(()=>{u();vJe()});var qi,B$=x(()=>{u();qi={METMASK_CONNECTOR_NAME:\\\"MetaMask\\\",TRUST_CONNECTOR_NAME:\\\"Trust Wallet\\\",SOLFLARE_CONNECTOR_NAME:\\\"Solflare\\\",PHANTOM_CONNECTOR_NAME:\\\"Phantom\\\",COIN98_CONNECTOR_NAME:\\\"Coin98\\\",MAGIC_EDEN_CONNECTOR_NAME:\\\"Magic Eden\\\",BACKPACK_CONNECTOR_NAME:\\\"Backpack\\\",BITGET_CONNECTOR_NAME:\\\"Bitget Wallet\\\",FRONTIER_CONNECTOR_NAME:\\\"Frontier\\\",XVERSE_CONNECTOR_NAME:\\\"Xverse Wallet\\\",LEATHER_CONNECTOR_NAME:\\\"Leather\\\",EIP155:\\\"eip155\\\",ADD_CHAIN_METHOD:\\\"wallet_addEthereumChain\\\",EIP6963_ANNOUNCE_EVENT:\\\"eip6963:announceProvider\\\",EIP6963_REQUEST_EVENT:\\\"eip6963:requestProvider\\\",CONNECTOR_RDNS_MAP:{coinbaseWallet:\\\"com.coinbase.wallet\\\",coinbaseWalletSDK:\\\"com.coinbase.wallet\\\"},CONNECTOR_TYPE_EXTERNAL:\\\"EXTERNAL\\\",CONNECTOR_TYPE_WALLET_CONNECT:\\\"WALLET_CONNECT\\\",CONNECTOR_TYPE_INJECTED:\\\"INJECTED\\\",CONNECTOR_TYPE_ANNOUNCED:\\\"ANNOUNCED\\\",CONNECTOR_TYPE_AUTH:\\\"AUTH\\\",CONNECTOR_TYPE_MULTI_CHAIN:\\\"MULTI_CHAIN\\\",CONNECTOR_TYPE_W3M_AUTH:\\\"ID_AUTH\\\"}});var K1,hpe=x(()=>{u();Ri();B$();K1={ConnectorExplorerIds:{[_e.CONNECTOR_ID.COINBASE]:\\\"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa\\\",[_e.CONNECTOR_ID.COINBASE_SDK]:\\\"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa\\\",[_e.CONNECTOR_ID.SAFE]:\\\"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f\\\",[_e.CONNECTOR_ID.LEDGER]:\\\"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927\\\",[_e.CONNECTOR_ID.OKX]:\\\"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709\\\",[qi.METMASK_CONNECTOR_NAME]:\\\"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96\\\",[qi.TRUST_CONNECTOR_NAME]:\\\"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0\\\",[qi.SOLFLARE_CONNECTOR_NAME]:\\\"1ca0bdd4747578705b1939af023d120677c64fe6ca76add81fda36e350605e79\\\",[qi.PHANTOM_CONNECTOR_NAME]:\\\"a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393\\\",[qi.COIN98_CONNECTOR_NAME]:\\\"2a3c89040ac3b723a1972a33a125b1db11e258a6975d3a61252cd64e6ea5ea01\\\",[qi.MAGIC_EDEN_CONNECTOR_NAME]:\\\"8b830a2b724a9c3fbab63af6f55ed29c9dfa8a55e732dc88c80a196a2ba136c6\\\",[qi.BACKPACK_CONNECTOR_NAME]:\\\"2bd8c14e035c2d48f184aaa168559e86b0e3433228d3c4075900a221785019b0\\\",[qi.BITGET_CONNECTOR_NAME]:\\\"38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662\\\",[qi.FRONTIER_CONNECTOR_NAME]:\\\"85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041\\\",[qi.XVERSE_CONNECTOR_NAME]:\\\"2a87d74ae02e10bdd1f51f7ce6c4e1cc53cd5f2c0b6b5ad0d7b3007d2b13de7b\\\",[qi.LEATHER_CONNECTOR_NAME]:\\\"483afe1df1df63daf313109971ff3ef8356ddf1cc4e45877d205eee0b7893a13\\\"},NetworkImageIds:{1:\\\"ba0ba0cd-17c6-4806-ad93-f9d174f17900\\\",42161:\\\"3bff954d-5cb0-47a0-9a23-d20192e74600\\\",43114:\\\"30c46e53-e989-45fb-4549-be3bd4eb3b00\\\",56:\\\"93564157-2e8e-4ce7-81df-b264dbee9b00\\\",250:\\\"06b26297-fe0c-4733-5d6b-ffa5498aac00\\\",10:\\\"ab9c186a-c52f-464b-2906-ca59d760a400\\\",137:\\\"41d04d42-da3b-4453-8506-668cc0727900\\\",5e3:\\\"e86fae9b-b770-4eea-e520-150e12c81100\\\",295:\\\"6a97d510-cac8-4e58-c7ce-e8681b044c00\\\",11155111:\\\"e909ea0a-f92a-4512-c8fc-748044ea6800\\\",84532:\\\"a18a7ecd-e307-4360-4746-283182228e00\\\",1301:\\\"4eeea7ef-0014-4649-5d1d-07271a80f600\\\",130:\\\"2257980a-3463-48c6-cbac-a42d2a956e00\\\",10143:\\\"0a728e83-bacb-46db-7844-948f05434900\\\",100:\\\"02b53f6a-e3d4-479e-1cb4-21178987d100\\\",9001:\\\"f926ff41-260d-4028-635e-91913fc28e00\\\",324:\\\"b310f07f-4ef7-49f3-7073-2a0a39685800\\\",314:\\\"5a73b3dd-af74-424e-cae0-0de859ee9400\\\",4689:\\\"34e68754-e536-40da-c153-6ef2e7188a00\\\",1088:\\\"3897a66d-40b9-4833-162f-a2c90531c900\\\",1284:\\\"161038da-44ae-4ec7-1208-0ea569454b00\\\",1285:\\\"f1d73bb6-5450-4e18-38f7-fb6484264a00\\\",7777777:\\\"845c60df-d429-4991-e687-91ae45791600\\\",42220:\\\"ab781bbc-ccc6-418d-d32d-789b15da1f00\\\",8453:\\\"7289c336-3981-4081-c5f4-efc26ac64a00\\\",1313161554:\\\"3ff73439-a619-4894-9262-4470c773a100\\\",2020:\\\"b8101fc0-9c19-4b6f-ec65-f6dfff106e00\\\",2021:\\\"b8101fc0-9c19-4b6f-ec65-f6dfff106e00\\\",80094:\\\"e329c2c9-59b0-4a02-83e4-212ff3779900\\\",2741:\\\"fc2427d1-5af9-4a9c-8da5-6f94627cd900\\\",\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\":\\\"a1b58899-f671-4276-6a5e-56ca5bd59700\\\",\\\"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\\\":\\\"a1b58899-f671-4276-6a5e-56ca5bd59700\\\",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:\\\"a1b58899-f671-4276-6a5e-56ca5bd59700\\\",\\\"000000000019d6689c085ae165831e93\\\":\\\"0b4838db-0161-4ffe-022d-532bf03dba00\\\",\\\"000000000933ea01ad0ee984209779ba\\\":\\\"39354064-d79b-420b-065d-f980c4b78200\\\"},ConnectorImageIds:{[_e.CONNECTOR_ID.COINBASE]:\\\"0c2840c3-5b04-4c44-9661-fbd4b49e1800\\\",[_e.CONNECTOR_ID.COINBASE_SDK]:\\\"0c2840c3-5b04-4c44-9661-fbd4b49e1800\\\",[_e.CONNECTOR_ID.SAFE]:\\\"461db637-8616-43ce-035a-d89b8a1d5800\\\",[_e.CONNECTOR_ID.LEDGER]:\\\"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300\\\",[_e.CONNECTOR_ID.WALLET_CONNECT]:\\\"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400\\\",[_e.CONNECTOR_ID.INJECTED]:\\\"07ba87ed-43aa-4adf-4540-9e6a2b9cae00\\\"},ConnectorNamesMap:{[_e.CONNECTOR_ID.INJECTED]:\\\"Browser Wallet\\\",[_e.CONNECTOR_ID.WALLET_CONNECT]:\\\"WalletConnect\\\",[_e.CONNECTOR_ID.COINBASE]:\\\"Coinbase\\\",[_e.CONNECTOR_ID.COINBASE_SDK]:\\\"Coinbase\\\",[_e.CONNECTOR_ID.LEDGER]:\\\"Ledger\\\",[_e.CONNECTOR_ID.SAFE]:\\\"Safe\\\"},ConnectorTypesMap:{[_e.CONNECTOR_ID.INJECTED]:\\\"INJECTED\\\",[_e.CONNECTOR_ID.WALLET_CONNECT]:\\\"WALLET_CONNECT\\\",[_e.CONNECTOR_ID.EIP6963]:\\\"ANNOUNCED\\\",[_e.CONNECTOR_ID.AUTH]:\\\"AUTH\\\"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]}});var ox,EJe=x(()=>{u();B$();ox={getCaipTokens(t){if(!t)return;let e={};return Object.entries(t).forEach(([r,n])=>{e[`${qi.EIP155}:${r}`]=n}),e},isLowerCaseMatch(t,e){return t?.toLowerCase()===e?.toLowerCase()}}});function fWt(){return typeof window<\\\"u\\\"}var dWt,Z1,_Je=x(()=>{u();dWt=new AbortController,Z1={EmbeddedWalletAbortController:dWt,UniversalProviderErrors:{UNAUTHORIZED_DOMAIN_NOT_ALLOWED:{message:\\\"Unauthorized: origin not allowed\\\",alertErrorKey:\\\"INVALID_APP_CONFIGURATION\\\"},JWT_VALIDATION_ERROR:{message:\\\"JWT validation error: JWT Token is not yet valid\\\",alertErrorKey:\\\"JWT_TOKEN_NOT_VALID\\\"},INVALID_KEY:{message:\\\"Unauthorized: invalid key\\\",alertErrorKey:\\\"INVALID_PROJECT_ID\\\"}},ALERT_ERRORS:{SWITCH_NETWORK_NOT_FOUND:{shortMessage:\\\"Network Not Found\\\",longMessage:\\\"Network not found - please make sure it is included in 'networks' array in createAppKit function\\\"},INVALID_APP_CONFIGURATION:{shortMessage:\\\"Invalid App Configuration\\\",longMessage:()=>`Origin ${fWt()?window.origin:\\\"unknown\\\"} not found on Allowlist - update configuration on cloud.reown.com`},IFRAME_LOAD_FAILED:{shortMessage:\\\"Network Error - Could not load embedded wallet\\\",longMessage:()=>\\\"There was an issue loading the embedded wallet. Please try again later.\\\"},IFRAME_REQUEST_TIMEOUT:{shortMessage:\\\"Embedded Wallet Request Timed Out\\\",longMessage:()=>\\\"There was an issue doing the request to the embedded wallet. Please try again later.\\\"},UNVERIFIED_DOMAIN:{shortMessage:\\\"Invalid App Configuration\\\",longMessage:()=>\\\"There was an issue loading the embedded wallet. Please verify that your domain is allowed at cloud.reown.com\\\"},JWT_TOKEN_NOT_VALID:{shortMessage:\\\"Session Expired\\\",longMessage:\\\"Invalid session found on UniversalProvider - please check your time settings and connect again\\\"},INVALID_PROJECT_ID:{shortMessage:\\\"Invalid App Configuration\\\",longMessage:\\\"Invalid Project ID - update configuration\\\"},PROJECT_ID_NOT_CONFIGURED:{shortMessage:\\\"Project ID Not Configured\\\",longMessage:\\\"Project ID Not Configured - update configuration on cloud.reown.com\\\"}}}});var mpe,CJe=x(()=>{u();C1();mpe={createLogger(t,e=\\\"error\\\"){let r=Ll({level:e}),{logger:n}=P2({opts:r});return n.error=(...i)=>{for(let s of i)if(s instanceof Error){t(s,...i);return}t(void 0,...i)},n}}});function ype(t,e){let r=new URL(\\\"https://rpc.walletconnect.org/v1/\\\");return r.searchParams.set(\\\"chainId\\\",t),r.searchParams.set(\\\"projectId\\\",e),r.toString()}var pWt,gpe,Q1,SJe=x(()=>{u();un();Ri();xt();hpe();pWt=\\\"rpc.walletconnect.org\\\";gpe=[\\\"near:mainnet\\\",\\\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",\\\"eip155:1101\\\",\\\"eip155:56\\\",\\\"eip155:42161\\\",\\\"eip155:7777777\\\",\\\"eip155:59144\\\",\\\"eip155:324\\\",\\\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\",\\\"eip155:5000\\\",\\\"solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz\\\",\\\"eip155:80084\\\",\\\"eip155:5003\\\",\\\"eip155:100\\\",\\\"eip155:8453\\\",\\\"eip155:42220\\\",\\\"eip155:1313161555\\\",\\\"eip155:17000\\\",\\\"eip155:1\\\",\\\"eip155:300\\\",\\\"eip155:1313161554\\\",\\\"eip155:1329\\\",\\\"eip155:84532\\\",\\\"eip155:421614\\\",\\\"eip155:11155111\\\",\\\"eip155:8217\\\",\\\"eip155:43114\\\",\\\"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\\\",\\\"eip155:999999999\\\",\\\"eip155:11155420\\\",\\\"eip155:80002\\\",\\\"eip155:97\\\",\\\"eip155:43113\\\",\\\"eip155:137\\\",\\\"eip155:10\\\",\\\"eip155:1301\\\",\\\"bip122:000000000019d6689c085ae165831e93\\\",\\\"bip122:000000000933ea01ad0ee984209779ba\\\"],Q1={extendRpcUrlWithProjectId(t,e){let r=!1;try{r=new URL(t).host===pWt}catch{r=!1}if(r){let n=new URL(t);return n.searchParams.has(\\\"projectId\\\")||n.searchParams.set(\\\"projectId\\\",e),n.toString()}return t},isCaipNetwork(t){return\\\"chainNamespace\\\"in t&&\\\"caipNetworkId\\\"in t},getChainNamespace(t){return this.isCaipNetwork(t)?t.chainNamespace:_e.CHAIN.EVM},getCaipNetworkId(t){return this.isCaipNetwork(t)?t.caipNetworkId:`${_e.CHAIN.EVM}:${t.id}`},getDefaultRpcUrl(t,e,r){let n=t.rpcUrls?.default?.http?.[0];return gpe.includes(e)?ype(e,r):n||\\\"\\\"},extendCaipNetwork(t,{customNetworkImageUrls:e,projectId:r,customRpcUrls:n}){let i=this.getChainNamespace(t),s=this.getCaipNetworkId(t),o=t.rpcUrls.default.http?.[0],a=this.getDefaultRpcUrl(t,s,r),c=t?.rpcUrls?.chainDefault?.http?.[0]||o,l=n?.[s]?.map(p=>p.url)||[],d=[...l,a],f=[...l];return c&&!f.includes(c)&&f.push(c),{...t,chainNamespace:i,caipNetworkId:s,assets:{imageId:K1.NetworkImageIds[t.id],imageUrl:e?.[t.id]},rpcUrls:{...t.rpcUrls,default:{http:d},chainDefault:{http:f}}}},extendCaipNetworks(t,{customNetworkImageUrls:e,projectId:r,customRpcUrls:n}){return t.map(i=>Q1.extendCaipNetwork(i,{customNetworkImageUrls:e,customRpcUrls:n,projectId:r}))},getViemTransport(t,e,r){let n=[];return r?.forEach(i=>{n.push(za(i.url,i.config))}),gpe.includes(t.caipNetworkId)&&n.push(za(ype(t.caipNetworkId,e),{fetchOptions:{headers:{\\\"Content-Type\\\":\\\"text/plain\\\"}}})),t?.rpcUrls?.default?.http?.forEach(i=>{n.push(za(i))}),ZB(n)},extendWagmiTransports(t,e,r){if(gpe.includes(t.caipNetworkId)){let n=this.getDefaultRpcUrl(t,t.caipNetworkId,e);return ZB([r,za(n)])}return r},getUnsupportedNetwork(t){return{id:t.split(\\\":\\\")[1],caipNetworkId:t,name:_e.UNSUPPORTED_NETWORK_NAME,chainNamespace:t.split(\\\":\\\")[0],nativeCurrency:{name:\\\"\\\",decimals:0,symbol:\\\"\\\"},rpcUrls:{default:{http:[]}}}},getCaipNetworkFromStorage(t){let e=Te.getActiveCaipNetworkId(),r=z.getAllRequestedCaipNetworks(),n=Array.from(z.state.chains?.keys()||[]),i=e?.split(\\\":\\\")[0],s=i?n.includes(i):!1,o=r?.find(c=>c.caipNetworkId===e);return s&&!o&&e?this.getUnsupportedNetwork(e):o||t||r?.[0]}}});var M$,tl,Qn,AJe=x(()=>{u();Kn();xo();M$={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0,cosmos:void 0},tl=ot({providers:{...M$},providerIds:{...M$}}),Qn={state:tl,subscribeKey(t,e){return lr(tl,t,e)},subscribe(t){return Lr(tl,()=>{t(tl)})},subscribeProviders(t){return Lr(tl.providers,()=>t(tl.providers))},setProvider(t,e){e&&(tl.providers[t]=$l(e))},getProvider(t){return tl.providers[t]},setProviderId(t,e){e&&(tl.providerIds[t]=e)},getProviderId(t){if(t)return tl.providerIds[t]},reset(){tl.providers={...M$},tl.providerIds={...M$}},resetChain(t){tl.providers[t]=void 0,tl.providerIds[t]=void 0}}});var ax=x(()=>{u();B$();hpe();EJe();_Je();CJe();SJe();AJe()});var Bf,eR=x(()=>{u();Bf={ACCOUNT_TABS:[{label:\\\"Tokens\\\"},{label:\\\"NFTs\\\"},{label:\\\"Activity\\\"}],SECURE_SITE_ORIGIN:(typeof process<\\\"u\\\"&&typeof process.env<\\\"u\\\"?process.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||\\\"https://secure.walletconnect.org\\\",VIEW_DIRECTION:{Next:\\\"next\\\",Prev:\\\"prev\\\"},DEFAULT_CONNECT_METHOD_ORDER:[\\\"email\\\",\\\"social\\\",\\\"wallet\\\"],ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}}});var Xl,cx=x(()=>{u();xt();ax();lx();eR();Xl={filterOutDuplicatesByRDNS(t){let e=ee.state.enableEIP6963?ie.state.connectors:[],r=Te.getRecentWallets(),n=e.map(a=>a.info?.rdns).filter(Boolean),i=r.map(a=>a.rdns).filter(Boolean),s=n.concat(i);if(s.includes(\\\"io.metamask.mobile\\\")&&oe.isMobile()){let a=s.indexOf(\\\"io.metamask.mobile\\\");s[a]=\\\"io.metamask\\\"}return t.filter(a=>!s.includes(String(a?.rdns)))},filterOutDuplicatesByIds(t){let e=ie.state.connectors.filter(a=>a.type===\\\"ANNOUNCED\\\"||a.type===\\\"INJECTED\\\"),r=Te.getRecentWallets(),n=e.map(a=>a.explorerId),i=r.map(a=>a.id),s=n.concat(i);return t.filter(a=>!s.includes(a?.id))},filterOutDuplicateWallets(t){let e=this.filterOutDuplicatesByRDNS(t);return this.filterOutDuplicatesByIds(e)},markWalletsAsInstalled(t){let{connectors:e}=ie.state,{featuredWalletIds:r}=ee.state,n=e.filter(o=>o.type===\\\"ANNOUNCED\\\").reduce((o,a)=>(a.info?.rdns&&(o[a.info.rdns]=!0),o),{});return t.map(o=>({...o,installed:!!o.rdns&&!!n[o.rdns??\\\"\\\"]})).sort((o,a)=>{let c=Number(a.installed)-Number(o.installed);if(c!==0)return c;if(r?.length){let l=r.indexOf(o.id),d=r.indexOf(a.id);if(l!==-1&&d!==-1)return l-d;if(l!==-1)return-1;if(d!==-1)return 1}return 0})},getConnectOrderMethod(t,e){let r=t?.connectMethodsOrder||ee.state.features?.connectMethodsOrder,n=e||ie.state.connectors;if(r)return r;let{injected:i,announced:s}=rl.getConnectorsByType(n,ye.state.recommended,ye.state.featured),o=i.filter(rl.showConnector),a=s.filter(rl.showConnector);return o.length||a.length?[\\\"wallet\\\",\\\"email\\\",\\\"social\\\"]:Bf.DEFAULT_CONNECT_METHOD_ORDER},isExcluded(t){let e=!!t.rdns&&ye.state.excludedWallets.some(n=>n.rdns===t.rdns),r=!!t.name&&ye.state.excludedWallets.some(n=>ox.isLowerCaseMatch(n.name,t.name));return e||r}}});var rl,lx=x(()=>{u();Ri();xt();ax();cx();rl={getConnectorsByType(t,e,r){let{customWallets:n}=ee.state,i=Te.getRecentWallets(),s=Xl.filterOutDuplicateWallets(e),o=Xl.filterOutDuplicateWallets(r),a=t.filter(f=>f.type===\\\"MULTI_CHAIN\\\"),c=t.filter(f=>f.type===\\\"ANNOUNCED\\\"),l=t.filter(f=>f.type===\\\"INJECTED\\\"),d=t.filter(f=>f.type===\\\"EXTERNAL\\\");return{custom:n,recent:i,external:d,multiChain:a,announced:c,injected:l,recommended:s,featured:o}},showConnector(t){let e=t.info?.rdns,r=!!e&&ye.state.excludedWallets.some(i=>!!i.rdns&&i.rdns===e),n=!!t.name&&ye.state.excludedWallets.some(i=>ox.isLowerCaseMatch(i.name,t.name));return!(t.type===\\\"INJECTED\\\"&&(t.name===\\\"Browser Wallet\\\"&&(!oe.isMobile()||oe.isMobile()&&!e&&!me.checkInstalled())||r||n)||(t.type===\\\"ANNOUNCED\\\"||t.type===\\\"EXTERNAL\\\")&&(r||n))},getIsConnectedWithWC(){return Array.from(z.state.chains.values()).some(r=>ie.getConnectorId(r.namespace)===_e.CONNECTOR_ID.WALLET_CONNECT)},getConnectorTypeOrder({recommended:t,featured:e,custom:r,recent:n,announced:i,injected:s,multiChain:o,external:a,overriddenConnectors:c=ee.state.features?.connectorTypeOrder??[]}){let l=rl.getIsConnectedWithWC(),p=[{type:\\\"walletConnect\\\",isEnabled:ee.state.enableWalletConnect&&!l},{type:\\\"recent\\\",isEnabled:n.length>0},{type:\\\"injected\\\",isEnabled:[...s,...i,...o].length>0},{type:\\\"featured\\\",isEnabled:e.length>0},{type:\\\"custom\\\",isEnabled:r&&r.length>0},{type:\\\"external\\\",isEnabled:a.length>0},{type:\\\"recommended\\\",isEnabled:t.length>0}].filter(w=>w.isEnabled),h=new Set(p.map(w=>w.type)),m=c.filter(w=>h.has(w)).map(w=>({type:w,isEnabled:!0})),g=p.filter(({type:w})=>!m.some(({type:b})=>b===w));return Array.from(new Set([...m,...g].map(({type:w})=>w)))}}});var TJe=x(()=>{u();lx();eR();cx()});var IJe=x(()=>{u()});var D$,L$,bpe,RJe,tR,nl,we,PJe,wpe,vpe=x(()=>{u();D$=globalThis,L$=D$.ShadowRoot&&(D$.ShadyCSS===void 0||D$.ShadyCSS.nativeShadow)&&\\\"adoptedStyleSheets\\\"in Document.prototype&&\\\"replace\\\"in CSSStyleSheet.prototype,bpe=Symbol(),RJe=new WeakMap,tR=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==bpe)throw Error(\\\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\\\");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(L$&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=RJe.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&RJe.set(r,e))}return e}toString(){return this.cssText}},nl=t=>new tR(typeof t==\\\"string\\\"?t:t+\\\"\\\",void 0,bpe),we=(t,...e)=>{let r=t.length===1?t[0]:e.reduce(((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o==\\\"number\\\")return o;throw Error(\\\"Value passed to 'css' function must be a 'css' function result: \\\"+o+\\\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\\\")})(i)+t[s+1]),t[0]);return new tR(r,t,bpe)},PJe=(t,e)=>{if(L$)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement(\\\"style\\\"),i=D$.litNonce;i!==void 0&&n.setAttribute(\\\"nonce\\\",i),n.textContent=r.cssText,t.appendChild(n)}},wpe=L$?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r=\\\"\\\";for(let n of e.cssRules)r+=n.cssText;return nl(r)})(t):t});var hWt,mWt,gWt,yWt,bWt,wWt,J1,OJe,vWt,xWt,rR,nR,U$,NJe,L0,iR=x(()=>{u();vpe();vpe();({is:hWt,defineProperty:mWt,getOwnPropertyDescriptor:gWt,getOwnPropertyNames:yWt,getOwnPropertySymbols:bWt,getPrototypeOf:wWt}=Object),J1=globalThis,OJe=J1.trustedTypes,vWt=OJe?OJe.emptyScript:\\\"\\\",xWt=J1.reactiveElementPolyfillSupport,rR=(t,e)=>t,nR={toAttribute(t,e){switch(e){case Boolean:t=t?vWt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},U$=(t,e)=>!hWt(t,e),NJe={attribute:!0,type:String,converter:nR,reflect:!1,useDefault:!1,hasChanged:U$};Symbol.metadata??(Symbol.metadata=Symbol(\\\"metadata\\\")),J1.litPropertyMetadata??(J1.litPropertyMetadata=new WeakMap);L0=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=NJe){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&mWt(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=gWt(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get:i,set(o){let a=i?.call(this);s?.call(this,o),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??NJe}static _$Ei(){if(this.hasOwnProperty(rR(\\\"elementProperties\\\")))return;let e=wWt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(rR(\\\"finalized\\\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rR(\\\"properties\\\"))){let r=this.properties,n=[...yWt(r),...bWt(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(wpe(i))}else e!==void 0&&r.push(wpe(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n==\\\"string\\\"?n:typeof e==\\\"string\\\"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return PJe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:nR).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),o=typeof s.converter==\\\"function\\\"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:nR;this._$Em=i;let a=o.fromAttribute(r,s.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){let i=this.constructor,s=this[e];if(n??(n=i.getPropertyOptions(e)),!((n.hasChanged??U$)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},o){n&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,o??r??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n){let{wrapped:o}=s,a=this[i];o!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,s,a)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};L0.elementStyles=[],L0.shadowRootOptions={mode:\\\"open\\\"},L0[rR(\\\"elementProperties\\\")]=new Map,L0[rR(\\\"finalized\\\")]=new Map,xWt?.({ReactiveElement:L0}),(J1.reactiveElementVersions??(J1.reactiveElementVersions=[])).push(\\\"2.1.1\\\")});function HJe(t,e){if(!Cpe(t)||!t.hasOwnProperty(\\\"raw\\\"))throw Error(\\\"invalid template strings array\\\");return kJe!==void 0?kJe.createHTML(e):e}function px(t,e,r=t,n){if(e===xd)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=cR(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),i!==void 0&&(e=px(t,i._$AS(t,e.values),i,n)),e}var oR,F$,kJe,Epe,U0,_pe,EWt,fx,aR,cR,Cpe,FJe,xpe,sR,BJe,MJe,ux,DJe,LJe,jJe,Spe,$,Y,Qyn,xd,zi,UJe,dx,qJe,lR,j$,e8,hx,H$,q$,z$,$$,zJe,_Wt,$Je,F0=x(()=>{u();oR=globalThis,F$=oR.trustedTypes,kJe=F$?F$.createPolicy(\\\"lit-html\\\",{createHTML:t=>t}):void 0,Epe=\\\"$lit$\\\",U0=`lit$${Math.random().toFixed(9).slice(2)}$`,_pe=\\\"?\\\"+U0,EWt=`<${_pe}>`,fx=document,aR=()=>fx.createComment(\\\"\\\"),cR=t=>t===null||typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\",Cpe=Array.isArray,FJe=t=>Cpe(t)||typeof t?.[Symbol.iterator]==\\\"function\\\",xpe=`[ \\t\\n\\\\f\\\\r]`,sR=/<(?:(!--|\\\\/[^a-zA-Z])|(\\\\/?[a-zA-Z][^>\\\\s]*)|(\\\\/?$))/g,BJe=/-->/g,MJe=/>/g,ux=RegExp(`>|${xpe}(?:([^\\\\\\\\s\\\"'>=/]+)(${xpe}*=${xpe}*(?:[^ \\t\\n\\\\f\\\\r\\\"'\\\\`<>=]|(\\\"|')|))|$)`,\\\"g\\\"),DJe=/'/g,LJe=/\\\"/g,jJe=/^(?:script|style|textarea|title)$/i,Spe=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),$=Spe(1),Y=Spe(2),Qyn=Spe(3),xd=Symbol.for(\\\"lit-noChange\\\"),zi=Symbol.for(\\\"lit-nothing\\\"),UJe=new WeakMap,dx=fx.createTreeWalker(fx,129);qJe=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?\\\"<svg>\\\":e===3?\\\"<math>\\\":\\\"\\\",o=sR;for(let a=0;a<r;a++){let c=t[a],l,d,f=-1,p=0;for(;p<c.length&&(o.lastIndex=p,d=o.exec(c),d!==null);)p=o.lastIndex,o===sR?d[1]===\\\"!--\\\"?o=BJe:d[1]!==void 0?o=MJe:d[2]!==void 0?(jJe.test(d[2])&&(i=RegExp(\\\"</\\\"+d[2],\\\"g\\\")),o=ux):d[3]!==void 0&&(o=ux):o===ux?d[0]===\\\">\\\"?(o=i??sR,f=-1):d[1]===void 0?f=-2:(f=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?ux:d[3]==='\\\"'?LJe:DJe):o===LJe||o===DJe?o=ux:o===BJe||o===MJe?o=sR:(o=ux,i=void 0);let h=o===ux&&t[a+1].startsWith(\\\"/>\\\")?\\\" \\\":\\\"\\\";s+=o===sR?c+EWt:f>=0?(n.push(l),c.slice(0,f)+Epe+c.slice(f)+U0+h):c+U0+(f===-2?a:h)}return[HJe(t,s+(t[r]||\\\"<?>\\\")+(e===2?\\\"</svg>\\\":e===3?\\\"</math>\\\":\\\"\\\")),n]},lR=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=e.length-1,c=this.parts,[l,d]=qJe(e,r);if(this.el=t.createElement(l,n),dx.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=dx.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Epe)){let p=d[o++],h=i.getAttribute(f).split(U0),m=/([.?@])?(.*)/.exec(p);c.push({type:1,index:s,name:m[2],strings:h,ctor:m[1]===\\\".\\\"?H$:m[1]===\\\"?\\\"?q$:m[1]===\\\"@\\\"?z$:hx}),i.removeAttribute(f)}else f.startsWith(U0)&&(c.push({type:6,index:s}),i.removeAttribute(f));if(jJe.test(i.tagName)){let f=i.textContent.split(U0),p=f.length-1;if(p>0){i.textContent=F$?F$.emptyScript:\\\"\\\";for(let h=0;h<p;h++)i.append(f[h],aR()),dx.nextNode(),c.push({type:2,index:++s});i.append(f[p],aR())}}}else if(i.nodeType===8)if(i.data===_pe)c.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(U0,f+1))!==-1;)c.push({type:7,index:s}),f+=U0.length-1}s++}}static createElement(e,r){let n=fx.createElement(\\\"template\\\");return n.innerHTML=e,n}};j$=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??fx).importNode(r,!0);dx.currentNode=i;let s=dx.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new e8(s,s.nextSibling,this,e):c.type===1?l=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(l=new $$(s,this,e)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(s=dx.nextNode(),o++)}return dx.currentNode=fx,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},e8=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=zi,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=px(this,e,r),cR(e)?e===zi||e==null||e===\\\"\\\"?(this._$AH!==zi&&this._$AR(),this._$AH=zi):e!==this._$AH&&e!==xd&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):FJe(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==zi&&cR(this._$AH)?this._$AA.nextSibling.data=e:this.T(fx.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n==\\\"number\\\"?this._$AC(e):(n.el===void 0&&(n.el=lR.createElement(HJe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new j$(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=UJe.get(e.strings);return r===void 0&&UJe.set(e.strings,r=new lR(e)),r}k(e){Cpe(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(aR()),this.O(aR()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},hx=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=zi,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==\\\"\\\"||n[1]!==\\\"\\\"?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=zi}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=px(this,e,r,0),o=!cR(e)||e!==this._$AH&&e!==xd,o&&(this._$AH=e);else{let a=e,c,l;for(e=s[0],c=0;c<s.length-1;c++)l=px(this,a[n+c],r,c),l===xd&&(l=this._$AH[c]),o||(o=!cR(l)||l!==this._$AH[c]),l===zi?e=zi:e!==zi&&(e+=(l??\\\"\\\")+s[c+1]),this._$AH[c]=l}o&&!i&&this.j(e)}j(e){e===zi?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??\\\"\\\")}},H$=class extends hx{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===zi?void 0:e}},q$=class extends hx{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==zi)}},z$=class extends hx{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=px(this,e,r,0)??zi)===xd)return;let n=this._$AH,i=e===zi&&n!==zi||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==zi&&(n===zi||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==\\\"function\\\"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},$$=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){px(this,e)}},zJe={M:Epe,P:U0,A:_pe,C:1,L:qJe,R:j$,D:FJe,V:px,I:e8,H:hx,N:q$,U:z$,B:H$,F:$$},_Wt=oR.litHtmlPolyfillSupport;_Wt?.(lR,e8),(oR.litHtmlVersions??(oR.litHtmlVersions=[])).push(\\\"3.3.1\\\");$Je=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new e8(e.insertBefore(aR(),s),s,void 0,r??{})}return i._$AI(t),i}});var uR,se,CWt,VJe=x(()=>{u();iR();iR();F0();F0();uR=globalThis,se=class extends L0{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;let e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$Je(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xd}};se._$litElement$=!0,se.finalized=!0,uR.litElementHydrateSupport?.({LitElement:se});CWt=uR.litElementPolyfillSupport;CWt?.({LitElement:se});(uR.litElementVersions??(uR.litElementVersions=[])).push(\\\"4.2.1\\\")});var WJe=x(()=>{u();});var Q=x(()=>{u();iR();F0();VJe();WJe()});function Ape(t,e){dR=document.createElement(\\\"style\\\"),Y1=document.createElement(\\\"style\\\"),X1=document.createElement(\\\"style\\\"),dR.textContent=t8(t).core.cssText,Y1.textContent=t8(t).dark.cssText,X1.textContent=t8(t).light.cssText,document.head.appendChild(dR),document.head.appendChild(Y1),document.head.appendChild(X1),V$(e)}function V$(t){Y1&&X1&&(t===\\\"light\\\"?(Y1.removeAttribute(\\\"media\\\"),X1.media=\\\"enabled\\\"):(X1.removeAttribute(\\\"media\\\"),Y1.media=\\\"enabled\\\"))}function Tpe(t){dR&&Y1&&X1&&(dR.textContent=t8(t).core.cssText,Y1.textContent=t8(t).dark.cssText,X1.textContent=t8(t).light.cssText)}function t8(t){return{core:we`\\n      @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');\\n      @keyframes w3m-shake {\\n        0% {\\n          transform: scale(1) rotate(0deg);\\n        }\\n        20% {\\n          transform: scale(1) rotate(-1deg);\\n        }\\n        40% {\\n          transform: scale(1) rotate(1.5deg);\\n        }\\n        60% {\\n          transform: scale(1) rotate(-1.5deg);\\n        }\\n        80% {\\n          transform: scale(1) rotate(1deg);\\n        }\\n        100% {\\n          transform: scale(1) rotate(0deg);\\n        }\\n      }\\n      @keyframes w3m-iframe-fade-out {\\n        0% {\\n          opacity: 1;\\n        }\\n        100% {\\n          opacity: 0;\\n        }\\n      }\\n      @keyframes w3m-iframe-zoom-in {\\n        0% {\\n          transform: translateY(50px);\\n          opacity: 0;\\n        }\\n        100% {\\n          transform: translateY(0px);\\n          opacity: 1;\\n        }\\n      }\\n      @keyframes w3m-iframe-zoom-in-mobile {\\n        0% {\\n          transform: scale(0.95);\\n          opacity: 0;\\n        }\\n        100% {\\n          transform: scale(1);\\n          opacity: 1;\\n        }\\n      }\\n      :root {\\n        --w3m-modal-width: 360px;\\n        --w3m-color-mix-strength: ${nl(t?.[\\\"--w3m-color-mix-strength\\\"]?`${t[\\\"--w3m-color-mix-strength\\\"]}%`:\\\"0%\\\")};\\n        --w3m-font-family: ${nl(t?.[\\\"--w3m-font-family\\\"]||\\\"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\\\")};\\n        --w3m-font-size-master: ${nl(t?.[\\\"--w3m-font-size-master\\\"]||\\\"10px\\\")};\\n        --w3m-border-radius-master: ${nl(t?.[\\\"--w3m-border-radius-master\\\"]||\\\"4px\\\")};\\n        --w3m-z-index: ${nl(t?.[\\\"--w3m-z-index\\\"]||999)};\\n\\n        --wui-font-family: var(--w3m-font-family);\\n\\n        --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);\\n        --wui-font-size-micro: var(--w3m-font-size-master);\\n        --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);\\n        --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);\\n        --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);\\n        --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8);\\n        --wui-font-size-large: calc(var(--w3m-font-size-master) * 2);\\n        --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);\\n        --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);\\n        --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);\\n\\n        --wui-border-radius-5xs: var(--w3m-border-radius-master);\\n        --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);\\n        --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);\\n        --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);\\n        --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);\\n        --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);\\n        --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);\\n        --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);\\n        --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);\\n\\n        --wui-font-weight-light: 400;\\n        --wui-font-weight-regular: 500;\\n        --wui-font-weight-medium: 600;\\n        --wui-font-weight-bold: 700;\\n\\n        --wui-letter-spacing-2xl: -1.6px;\\n        --wui-letter-spacing-medium-title: -0.96px;\\n        --wui-letter-spacing-title-6: -0.88px;\\n        --wui-letter-spacing-large: -0.8px;\\n        --wui-letter-spacing-medium: -0.72px;\\n        --wui-letter-spacing-paragraph: -0.64px;\\n        --wui-letter-spacing-small: -0.56px;\\n        --wui-letter-spacing-tiny: -0.48px;\\n        --wui-letter-spacing-micro: -0.2px;\\n        --wui-letter-spacing-mini: -0.16px;\\n\\n        --wui-spacing-0: 0px;\\n        --wui-spacing-4xs: 2px;\\n        --wui-spacing-3xs: 4px;\\n        --wui-spacing-xxs: 6px;\\n        --wui-spacing-2xs: 7px;\\n        --wui-spacing-xs: 8px;\\n        --wui-spacing-1xs: 10px;\\n        --wui-spacing-s: 12px;\\n        --wui-spacing-m: 14px;\\n        --wui-spacing-l: 16px;\\n        --wui-spacing-2l: 18px;\\n        --wui-spacing-xl: 20px;\\n        --wui-spacing-xxl: 24px;\\n        --wui-spacing-2xl: 32px;\\n        --wui-spacing-3xl: 40px;\\n        --wui-spacing-4xl: 90px;\\n        --wui-spacing-5xl: 95px;\\n\\n        --wui-icon-box-size-xxs: 14px;\\n        --wui-icon-box-size-xs: 20px;\\n        --wui-icon-box-size-sm: 24px;\\n        --wui-icon-box-size-md: 32px;\\n        --wui-icon-box-size-mdl: 36px;\\n        --wui-icon-box-size-lg: 40px;\\n        --wui-icon-box-size-2lg: 48px;\\n        --wui-icon-box-size-xl: 64px;\\n\\n        --wui-icon-size-inherit: inherit;\\n        --wui-icon-size-xxs: 10px;\\n        --wui-icon-size-xs: 12px;\\n        --wui-icon-size-sm: 14px;\\n        --wui-icon-size-md: 16px;\\n        --wui-icon-size-mdl: 18px;\\n        --wui-icon-size-lg: 20px;\\n        --wui-icon-size-xl: 24px;\\n        --wui-icon-size-xxl: 28px;\\n\\n        --wui-wallet-image-size-inherit: inherit;\\n        --wui-wallet-image-size-sm: 40px;\\n        --wui-wallet-image-size-md: 56px;\\n        --wui-wallet-image-size-lg: 80px;\\n\\n        --wui-visual-size-size-inherit: inherit;\\n        --wui-visual-size-sm: 40px;\\n        --wui-visual-size-md: 55px;\\n        --wui-visual-size-lg: 80px;\\n\\n        --wui-box-size-md: 100px;\\n        --wui-box-size-lg: 120px;\\n\\n        --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);\\n        --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);\\n\\n        --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);\\n        --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);\\n        --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);\\n\\n        --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);\\n\\n        --wui-duration-lg: 200ms;\\n        --wui-duration-md: 125ms;\\n        --wui-duration-sm: 75ms;\\n\\n        --wui-path-network-sm: path(\\n          'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z'\\n        );\\n\\n        --wui-path-network-md: path(\\n          'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z'\\n        );\\n\\n        --wui-path-network-lg: path(\\n          'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z'\\n        );\\n\\n        --wui-width-network-sm: 36px;\\n        --wui-width-network-md: 48px;\\n        --wui-width-network-lg: 86px;\\n\\n        --wui-height-network-sm: 40px;\\n        --wui-height-network-md: 54px;\\n        --wui-height-network-lg: 96px;\\n\\n        --wui-icon-size-network-xs: 12px;\\n        --wui-icon-size-network-sm: 16px;\\n        --wui-icon-size-network-md: 24px;\\n        --wui-icon-size-network-lg: 42px;\\n\\n        --wui-color-inherit: inherit;\\n\\n        --wui-color-inverse-100: #fff;\\n        --wui-color-inverse-000: #000;\\n\\n        --wui-cover: rgba(20, 20, 20, 0.8);\\n\\n        --wui-color-modal-bg: var(--wui-color-modal-bg-base);\\n\\n        --wui-color-accent-100: var(--wui-color-accent-base-100);\\n        --wui-color-accent-090: var(--wui-color-accent-base-090);\\n        --wui-color-accent-080: var(--wui-color-accent-base-080);\\n\\n        --wui-color-success-100: var(--wui-color-success-base-100);\\n        --wui-color-success-125: var(--wui-color-success-base-125);\\n\\n        --wui-color-warning-100: var(--wui-color-warning-base-100);\\n\\n        --wui-color-error-100: var(--wui-color-error-base-100);\\n        --wui-color-error-125: var(--wui-color-error-base-125);\\n\\n        --wui-color-blue-100: var(--wui-color-blue-base-100);\\n        --wui-color-blue-90: var(--wui-color-blue-base-90);\\n\\n        --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);\\n        --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);\\n        --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);\\n        --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);\\n\\n        --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100);\\n\\n        --wui-avatar-border: var(--wui-avatar-border-base);\\n\\n        --wui-thumbnail-border: var(--wui-thumbnail-border-base);\\n\\n        --wui-wallet-button-bg: var(--wui-wallet-button-bg-base);\\n\\n        --wui-box-shadow-blue: var(--wui-color-accent-glass-020);\\n      }\\n\\n      @supports (background: color-mix(in srgb, white 50%, black)) {\\n        :root {\\n          --wui-color-modal-bg: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-modal-bg-base)\\n          );\\n\\n          --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent);\\n\\n          --wui-color-accent-100: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 100%,\\n            transparent\\n          );\\n          --wui-color-accent-090: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 90%,\\n            transparent\\n          );\\n          --wui-color-accent-080: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 80%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-090: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 90%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-080: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 80%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-020: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 20%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-015: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 15%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-010: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 10%,\\n            transparent\\n          );\\n          --wui-color-accent-glass-005: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 5%,\\n            transparent\\n          );\\n          --wui-color-accent-002: color-mix(\\n            in srgb,\\n            var(--wui-color-accent-base-100) 2%,\\n            transparent\\n          );\\n\\n          --wui-color-fg-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-100)\\n          );\\n          --wui-color-fg-125: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-125)\\n          );\\n          --wui-color-fg-150: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-150)\\n          );\\n          --wui-color-fg-175: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-175)\\n          );\\n          --wui-color-fg-200: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-200)\\n          );\\n          --wui-color-fg-225: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-225)\\n          );\\n          --wui-color-fg-250: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-250)\\n          );\\n          --wui-color-fg-275: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-275)\\n          );\\n          --wui-color-fg-300: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-300)\\n          );\\n          --wui-color-fg-325: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-325)\\n          );\\n          --wui-color-fg-350: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-fg-350)\\n          );\\n\\n          --wui-color-bg-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-100)\\n          );\\n          --wui-color-bg-125: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-125)\\n          );\\n          --wui-color-bg-150: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-150)\\n          );\\n          --wui-color-bg-175: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-175)\\n          );\\n          --wui-color-bg-200: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-200)\\n          );\\n          --wui-color-bg-225: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-225)\\n          );\\n          --wui-color-bg-250: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-250)\\n          );\\n          --wui-color-bg-275: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-275)\\n          );\\n          --wui-color-bg-300: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-300)\\n          );\\n          --wui-color-bg-325: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-325)\\n          );\\n          --wui-color-bg-350: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-bg-350)\\n          );\\n\\n          --wui-color-success-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-success-base-100)\\n          );\\n          --wui-color-success-125: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-success-base-125)\\n          );\\n\\n          --wui-color-warning-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-warning-base-100)\\n          );\\n\\n          --wui-color-error-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-error-base-100)\\n          );\\n          --wui-color-blue-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-blue-base-100)\\n          );\\n          --wui-color-blue-90: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-blue-base-90)\\n          );\\n          --wui-color-error-125: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-color-error-base-125)\\n          );\\n\\n          --wui-icon-box-bg-error-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-icon-box-bg-error-base-100)\\n          );\\n          --wui-icon-box-bg-accent-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-icon-box-bg-blue-base-100)\\n          );\\n          --wui-icon-box-bg-success-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-icon-box-bg-success-base-100)\\n          );\\n          --wui-icon-box-bg-inverse-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-icon-box-bg-inverse-base-100)\\n          );\\n\\n          --wui-all-wallets-bg-100: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-all-wallets-bg-100)\\n          );\\n\\n          --wui-avatar-border: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-avatar-border-base)\\n          );\\n\\n          --wui-thumbnail-border: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-thumbnail-border-base)\\n          );\\n\\n          --wui-wallet-button-bg: color-mix(\\n            in srgb,\\n            var(--w3m-color-mix) var(--w3m-color-mix-strength),\\n            var(--wui-wallet-button-bg-base)\\n          );\\n        }\\n      }\\n    `,light:we`\\n      :root {\\n        --w3m-color-mix: ${nl(t?.[\\\"--w3m-color-mix\\\"]||\\\"#fff\\\")};\\n        --w3m-accent: ${nl(cd(t,\\\"dark\\\")[\\\"--w3m-accent\\\"])};\\n        --w3m-default: #fff;\\n\\n        --wui-color-modal-bg-base: ${nl(cd(t,\\\"dark\\\")[\\\"--w3m-background\\\"])};\\n        --wui-color-accent-base-100: var(--w3m-accent);\\n\\n        --wui-color-blueberry-100: hsla(230, 100%, 67%, 1);\\n        --wui-color-blueberry-090: hsla(231, 76%, 61%, 1);\\n        --wui-color-blueberry-080: hsla(230, 59%, 55%, 1);\\n        --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);\\n\\n        --wui-color-fg-100: #e4e7e7;\\n        --wui-color-fg-125: #d0d5d5;\\n        --wui-color-fg-150: #a8b1b1;\\n        --wui-color-fg-175: #a8b0b0;\\n        --wui-color-fg-200: #949e9e;\\n        --wui-color-fg-225: #868f8f;\\n        --wui-color-fg-250: #788080;\\n        --wui-color-fg-275: #788181;\\n        --wui-color-fg-300: #6e7777;\\n        --wui-color-fg-325: #9a9a9a;\\n        --wui-color-fg-350: #363636;\\n\\n        --wui-color-bg-100: #141414;\\n        --wui-color-bg-125: #191a1a;\\n        --wui-color-bg-150: #1e1f1f;\\n        --wui-color-bg-175: #222525;\\n        --wui-color-bg-200: #272a2a;\\n        --wui-color-bg-225: #2c3030;\\n        --wui-color-bg-250: #313535;\\n        --wui-color-bg-275: #363b3b;\\n        --wui-color-bg-300: #3b4040;\\n        --wui-color-bg-325: #252525;\\n        --wui-color-bg-350: #ffffff;\\n\\n        --wui-color-success-base-100: #26d962;\\n        --wui-color-success-base-125: #30a46b;\\n\\n        --wui-color-warning-base-100: #f3a13f;\\n\\n        --wui-color-error-base-100: #f25a67;\\n        --wui-color-error-base-125: #df4a34;\\n\\n        --wui-color-blue-base-100: rgba(102, 125, 255, 1);\\n        --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);\\n\\n        --wui-color-success-glass-001: rgba(38, 217, 98, 0.01);\\n        --wui-color-success-glass-002: rgba(38, 217, 98, 0.02);\\n        --wui-color-success-glass-005: rgba(38, 217, 98, 0.05);\\n        --wui-color-success-glass-010: rgba(38, 217, 98, 0.1);\\n        --wui-color-success-glass-015: rgba(38, 217, 98, 0.15);\\n        --wui-color-success-glass-020: rgba(38, 217, 98, 0.2);\\n        --wui-color-success-glass-025: rgba(38, 217, 98, 0.25);\\n        --wui-color-success-glass-030: rgba(38, 217, 98, 0.3);\\n        --wui-color-success-glass-060: rgba(38, 217, 98, 0.6);\\n        --wui-color-success-glass-080: rgba(38, 217, 98, 0.8);\\n\\n        --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);\\n\\n        --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);\\n\\n        --wui-color-error-glass-001: rgba(242, 90, 103, 0.01);\\n        --wui-color-error-glass-002: rgba(242, 90, 103, 0.02);\\n        --wui-color-error-glass-005: rgba(242, 90, 103, 0.05);\\n        --wui-color-error-glass-010: rgba(242, 90, 103, 0.1);\\n        --wui-color-error-glass-015: rgba(242, 90, 103, 0.15);\\n        --wui-color-error-glass-020: rgba(242, 90, 103, 0.2);\\n        --wui-color-error-glass-025: rgba(242, 90, 103, 0.25);\\n        --wui-color-error-glass-030: rgba(242, 90, 103, 0.3);\\n        --wui-color-error-glass-060: rgba(242, 90, 103, 0.6);\\n        --wui-color-error-glass-080: rgba(242, 90, 103, 0.8);\\n\\n        --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);\\n\\n        --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);\\n        --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);\\n        --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);\\n        --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);\\n        --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);\\n        --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);\\n        --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);\\n        --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);\\n        --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);\\n        --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);\\n        --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);\\n\\n        --wui-color-dark-glass-100: rgba(42, 42, 42, 1);\\n\\n        --wui-icon-box-bg-error-base-100: #3c2426;\\n        --wui-icon-box-bg-blue-base-100: #20303f;\\n        --wui-icon-box-bg-success-base-100: #1f3a28;\\n        --wui-icon-box-bg-inverse-base-100: #243240;\\n\\n        --wui-all-wallets-bg-100: #222b35;\\n\\n        --wui-avatar-border-base: #252525;\\n\\n        --wui-thumbnail-border-base: #252525;\\n\\n        --wui-wallet-button-bg-base: var(--wui-color-bg-125);\\n\\n        --w3m-card-embedded-shadow-color: rgb(17 17 18 / 25%);\\n      }\\n    `,dark:we`\\n      :root {\\n        --w3m-color-mix: ${nl(t?.[\\\"--w3m-color-mix\\\"]||\\\"#000\\\")};\\n        --w3m-accent: ${nl(cd(t,\\\"light\\\")[\\\"--w3m-accent\\\"])};\\n        --w3m-default: #000;\\n\\n        --wui-color-modal-bg-base: ${nl(cd(t,\\\"light\\\")[\\\"--w3m-background\\\"])};\\n        --wui-color-accent-base-100: var(--w3m-accent);\\n\\n        --wui-color-blueberry-100: hsla(231, 100%, 70%, 1);\\n        --wui-color-blueberry-090: hsla(231, 97%, 72%, 1);\\n        --wui-color-blueberry-080: hsla(231, 92%, 74%, 1);\\n\\n        --wui-color-fg-100: #141414;\\n        --wui-color-fg-125: #2d3131;\\n        --wui-color-fg-150: #474d4d;\\n        --wui-color-fg-175: #636d6d;\\n        --wui-color-fg-200: #798686;\\n        --wui-color-fg-225: #828f8f;\\n        --wui-color-fg-250: #8b9797;\\n        --wui-color-fg-275: #95a0a0;\\n        --wui-color-fg-300: #9ea9a9;\\n        --wui-color-fg-325: #9a9a9a;\\n        --wui-color-fg-350: #d0d0d0;\\n\\n        --wui-color-bg-100: #ffffff;\\n        --wui-color-bg-125: #f5fafa;\\n        --wui-color-bg-150: #f3f8f8;\\n        --wui-color-bg-175: #eef4f4;\\n        --wui-color-bg-200: #eaf1f1;\\n        --wui-color-bg-225: #e5eded;\\n        --wui-color-bg-250: #e1e9e9;\\n        --wui-color-bg-275: #dce7e7;\\n        --wui-color-bg-300: #d8e3e3;\\n        --wui-color-bg-325: #f3f3f3;\\n        --wui-color-bg-350: #202020;\\n\\n        --wui-color-success-base-100: #26b562;\\n        --wui-color-success-base-125: #30a46b;\\n\\n        --wui-color-warning-base-100: #f3a13f;\\n\\n        --wui-color-error-base-100: #f05142;\\n        --wui-color-error-base-125: #df4a34;\\n\\n        --wui-color-blue-base-100: rgba(102, 125, 255, 1);\\n        --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);\\n\\n        --wui-color-success-glass-001: rgba(38, 181, 98, 0.01);\\n        --wui-color-success-glass-002: rgba(38, 181, 98, 0.02);\\n        --wui-color-success-glass-005: rgba(38, 181, 98, 0.05);\\n        --wui-color-success-glass-010: rgba(38, 181, 98, 0.1);\\n        --wui-color-success-glass-015: rgba(38, 181, 98, 0.15);\\n        --wui-color-success-glass-020: rgba(38, 181, 98, 0.2);\\n        --wui-color-success-glass-025: rgba(38, 181, 98, 0.25);\\n        --wui-color-success-glass-030: rgba(38, 181, 98, 0.3);\\n        --wui-color-success-glass-060: rgba(38, 181, 98, 0.6);\\n        --wui-color-success-glass-080: rgba(38, 181, 98, 0.8);\\n\\n        --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);\\n\\n        --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);\\n\\n        --wui-color-error-glass-001: rgba(240, 81, 66, 0.01);\\n        --wui-color-error-glass-002: rgba(240, 81, 66, 0.02);\\n        --wui-color-error-glass-005: rgba(240, 81, 66, 0.05);\\n        --wui-color-error-glass-010: rgba(240, 81, 66, 0.1);\\n        --wui-color-error-glass-015: rgba(240, 81, 66, 0.15);\\n        --wui-color-error-glass-020: rgba(240, 81, 66, 0.2);\\n        --wui-color-error-glass-025: rgba(240, 81, 66, 0.25);\\n        --wui-color-error-glass-030: rgba(240, 81, 66, 0.3);\\n        --wui-color-error-glass-060: rgba(240, 81, 66, 0.6);\\n        --wui-color-error-glass-080: rgba(240, 81, 66, 0.8);\\n\\n        --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);\\n\\n        --wui-icon-box-bg-error-base-100: #f4dfdd;\\n        --wui-icon-box-bg-blue-base-100: #d9ecfb;\\n        --wui-icon-box-bg-success-base-100: #daf0e4;\\n        --wui-icon-box-bg-inverse-base-100: #dcecfc;\\n\\n        --wui-all-wallets-bg-100: #e8f1fa;\\n\\n        --wui-avatar-border-base: #f3f4f4;\\n\\n        --wui-thumbnail-border-base: #eaefef;\\n\\n        --wui-wallet-button-bg-base: var(--wui-color-bg-125);\\n\\n        --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);\\n        --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);\\n        --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);\\n        --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);\\n        --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);\\n        --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);\\n        --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);\\n        --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);\\n        --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);\\n        --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);\\n        --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);\\n\\n        --wui-color-dark-glass-100: rgba(233, 233, 233, 1);\\n\\n        --w3m-card-embedded-shadow-color: rgb(224 225 233 / 25%);\\n      }\\n    `}}var dR,Y1,X1,ze,dr,Th,Er=x(()=>{u();Q();Ri();ze=we`\\n  *,\\n  *::after,\\n  *::before,\\n  :host {\\n    margin: 0;\\n    padding: 0;\\n    box-sizing: border-box;\\n    font-style: normal;\\n    text-rendering: optimizeSpeed;\\n    -webkit-font-smoothing: antialiased;\\n    -moz-osx-font-smoothing: grayscale;\\n    -webkit-tap-highlight-color: transparent;\\n    font-family: var(--wui-font-family);\\n    backface-visibility: hidden;\\n  }\\n`,dr=we`\\n  button,\\n  a {\\n    cursor: pointer;\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    position: relative;\\n    transition:\\n      color var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      border var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);\\n    will-change: background-color, color, border, box-shadow, border-radius;\\n    outline: none;\\n    border: none;\\n    column-gap: var(--wui-spacing-3xs);\\n    background-color: transparent;\\n    text-decoration: none;\\n  }\\n\\n  wui-flex {\\n    transition: border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);\\n    will-change: border-radius;\\n  }\\n\\n  button:disabled > wui-wallet-image,\\n  button:disabled > wui-all-wallets-image,\\n  button:disabled > wui-network-image,\\n  button:disabled > wui-image,\\n  button:disabled > wui-transaction-visual,\\n  button:disabled > wui-logo {\\n    filter: grayscale(1);\\n  }\\n\\n  @media (hover: hover) and (pointer: fine) {\\n    button:hover:enabled {\\n      background-color: var(--wui-color-gray-glass-005);\\n    }\\n\\n    button:active:enabled {\\n      background-color: var(--wui-color-gray-glass-010);\\n    }\\n  }\\n\\n  button:disabled > wui-icon-box {\\n    opacity: 0.5;\\n  }\\n\\n  input {\\n    border: none;\\n    outline: none;\\n    appearance: none;\\n  }\\n`,Th=we`\\n  .wui-color-inherit {\\n    color: var(--wui-color-inherit);\\n  }\\n\\n  .wui-color-accent-100 {\\n    color: var(--wui-color-accent-100);\\n  }\\n\\n  .wui-color-error-100 {\\n    color: var(--wui-color-error-100);\\n  }\\n\\n  .wui-color-blue-100 {\\n    color: var(--wui-color-blue-100);\\n  }\\n\\n  .wui-color-blue-90 {\\n    color: var(--wui-color-blue-90);\\n  }\\n\\n  .wui-color-error-125 {\\n    color: var(--wui-color-error-125);\\n  }\\n\\n  .wui-color-success-100 {\\n    color: var(--wui-color-success-100);\\n  }\\n\\n  .wui-color-success-125 {\\n    color: var(--wui-color-success-125);\\n  }\\n\\n  .wui-color-inverse-100 {\\n    color: var(--wui-color-inverse-100);\\n  }\\n\\n  .wui-color-inverse-000 {\\n    color: var(--wui-color-inverse-000);\\n  }\\n\\n  .wui-color-fg-100 {\\n    color: var(--wui-color-fg-100);\\n  }\\n\\n  .wui-color-fg-200 {\\n    color: var(--wui-color-fg-200);\\n  }\\n\\n  .wui-color-fg-300 {\\n    color: var(--wui-color-fg-300);\\n  }\\n\\n  .wui-color-fg-325 {\\n    color: var(--wui-color-fg-325);\\n  }\\n\\n  .wui-color-fg-350 {\\n    color: var(--wui-color-fg-350);\\n  }\\n\\n  .wui-bg-color-inherit {\\n    background-color: var(--wui-color-inherit);\\n  }\\n\\n  .wui-bg-color-blue-100 {\\n    background-color: var(--wui-color-accent-100);\\n  }\\n\\n  .wui-bg-color-error-100 {\\n    background-color: var(--wui-color-error-100);\\n  }\\n\\n  .wui-bg-color-error-125 {\\n    background-color: var(--wui-color-error-125);\\n  }\\n\\n  .wui-bg-color-success-100 {\\n    background-color: var(--wui-color-success-100);\\n  }\\n\\n  .wui-bg-color-success-125 {\\n    background-color: var(--wui-color-success-100);\\n  }\\n\\n  .wui-bg-color-inverse-100 {\\n    background-color: var(--wui-color-inverse-100);\\n  }\\n\\n  .wui-bg-color-inverse-000 {\\n    background-color: var(--wui-color-inverse-000);\\n  }\\n\\n  .wui-bg-color-fg-100 {\\n    background-color: var(--wui-color-fg-100);\\n  }\\n\\n  .wui-bg-color-fg-200 {\\n    background-color: var(--wui-color-fg-200);\\n  }\\n\\n  .wui-bg-color-fg-300 {\\n    background-color: var(--wui-color-fg-300);\\n  }\\n\\n  .wui-color-fg-325 {\\n    background-color: var(--wui-color-fg-325);\\n  }\\n\\n  .wui-color-fg-350 {\\n    background-color: var(--wui-color-fg-350);\\n  }\\n`});var Pi,fR=x(()=>{u();Pi={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t==\\\"string\\\")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat(\\\"en-US\\\",{month:\\\"short\\\",day:\\\"numeric\\\"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return\\\"\\\"}},getTruncateString({string:t,charsStart:e,charsEnd:r,truncate:n}){return t.length<=e+r?t:n===\\\"end\\\"?`${t.substring(0,e)}...`:n===\\\"start\\\"?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(t){let r=t.toLowerCase().replace(/^0x/iu,\\\"\\\").replace(/[^a-f0-9]/gu,\\\"\\\").substring(0,6).padEnd(6,\\\"0\\\"),n=this.hexToRgb(r),i=getComputedStyle(document.documentElement).getPropertyValue(\\\"--w3m-border-radius-master\\\"),o=100-3*Number(i?.replace(\\\"px\\\",\\\"\\\")),a=`${o}% ${o}% at 65% 40%`,c=[];for(let l=0;l<5;l+=1){let d=this.tintColor(n,.15*l);c.push(`rgb(${d[0]}, ${d[1]}, ${d[2]})`)}return`\\n    --local-color-1: ${c[0]};\\n    --local-color-2: ${c[1]};\\n    --local-color-3: ${c[2]};\\n    --local-color-4: ${c[3]};\\n    --local-color-5: ${c[4]};\\n    --local-radial-circle: ${a}\\n   `},hexToRgb(t){let e=parseInt(t,16),r=e>>16&255,n=e>>8&255,i=e&255;return[r,n,i]},tintColor(t,e){let[r,n,i]=t,s=Math.round(r+(255-r)*e),o=Math.round(n+(255-n)*e),a=Math.round(i+(255-i)*e);return[s,o,a]},isNumber(t){return{number:/^[0-9]+$/u}.number.test(t)},getColorTheme(t){return t||(typeof window<\\\"u\\\"&&window.matchMedia?window.matchMedia(\\\"(prefers-color-scheme: dark)\\\")?.matches?\\\"dark\\\":\\\"light\\\":\\\"dark\\\")},splitBalance(t){let e=t.split(\\\".\\\");return e.length===2?[e[0],e[1]]:[\\\"0\\\",\\\"00\\\"]},roundNumber(t,e,r){return t.toString().length>=e?Number(t).toFixed(r):t},formatNumberToLocalString(t,e=2){return t===void 0?\\\"0.00\\\":typeof t==\\\"number\\\"?t.toLocaleString(\\\"en-US\\\",{maximumFractionDigits:e,minimumFractionDigits:e}):parseFloat(t).toLocaleString(\\\"en-US\\\",{maximumFractionDigits:e,minimumFractionDigits:e})}}});var GJe=x(()=>{u();fR()});function SWt(t,e){let{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(i){customElements.get(t)||customElements.define(t,i)}}}function AWt(t,e){return customElements.get(t)||customElements.define(t,e),e}function te(t){return function(r){return typeof r==\\\"function\\\"?AWt(t,r):SWt(t,r)}}var fr=x(()=>{u()});var pr=x(()=>{u();IJe();Er();fR();GJe();fr()});var mx,Ipe=x(()=>{u();mx={ERROR_CODE_UNRECOGNIZED_CHAIN_ID:4902,ERROR_CODE_DEFAULT:5e3,ERROR_INVALID_CHAIN_ID:32603,DEFAULT_ALLOWED_ANCESTORS:[\\\"http://localhost:*\\\",\\\"https://*.pages.dev\\\",\\\"https://*.vercel.app\\\",\\\"https://*.ngrok-free.app\\\",\\\"https://secure-mobile.walletconnect.com\\\",\\\"https://secure-mobile.walletconnect.org\\\"]}});function j0(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}var r8=x(()=>{u()});var Rpe,KJe=x(()=>{u();r8();Rpe=j0({id:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",name:\\\"Solana\\\",network:\\\"solana-mainnet\\\",nativeCurrency:{name:\\\"Solana\\\",symbol:\\\"SOL\\\",decimals:9},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}},blockExplorers:{default:{name:\\\"Solscan\\\",url:\\\"https://solscan.io\\\"}},testnet:!1,chainNamespace:\\\"solana\\\",caipNetworkId:\\\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",deprecatedCaipNetworkId:\\\"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ\\\"})});var Ppe,ZJe=x(()=>{u();r8();Ppe=j0({id:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\",name:\\\"Solana Devnet\\\",network:\\\"solana-devnet\\\",nativeCurrency:{name:\\\"Solana\\\",symbol:\\\"SOL\\\",decimals:9},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}},blockExplorers:{default:{name:\\\"Solscan\\\",url:\\\"https://solscan.io\\\"}},testnet:!0,chainNamespace:\\\"solana\\\",caipNetworkId:\\\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\",deprecatedCaipNetworkId:\\\"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K\\\"})});var $1n,QJe=x(()=>{u();r8();$1n=j0({id:\\\"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\\\",name:\\\"Solana Testnet\\\",network:\\\"solana-testnet\\\",nativeCurrency:{name:\\\"Solana\\\",symbol:\\\"SOL\\\",decimals:9},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}},blockExplorers:{default:{name:\\\"Solscan\\\",url:\\\"https://solscan.io\\\"}},testnet:!0,chainNamespace:\\\"solana\\\",caipNetworkId:\\\"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\\\"})});var JJe=x(()=>{u();KJe();ZJe();QJe()});var X1n,ebn,YJe=x(()=>{u();r8();X1n=j0({id:\\\"000000000019d6689c085ae165831e93\\\",caipNetworkId:\\\"bip122:000000000019d6689c085ae165831e93\\\",chainNamespace:\\\"bip122\\\",name:\\\"Bitcoin\\\",nativeCurrency:{name:\\\"Bitcoin\\\",symbol:\\\"BTC\\\",decimals:8},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}}}),ebn=j0({id:\\\"000000000933ea01ad0ee984209779ba\\\",caipNetworkId:\\\"bip122:000000000933ea01ad0ee984209779ba\\\",chainNamespace:\\\"bip122\\\",name:\\\"Bitcoin Testnet\\\",nativeCurrency:{name:\\\"Bitcoin\\\",symbol:\\\"BTC\\\",decimals:8},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}},testnet:!0})});var XJe=x(()=>{u();iX();JJe();YJe();r8()});var TWt,n8,eYe=x(()=>{u();xt();XJe();TWt={solana:[\\\"solana_signMessage\\\",\\\"solana_signTransaction\\\",\\\"solana_requestAccounts\\\",\\\"solana_getAccounts\\\",\\\"solana_signAllTransactions\\\",\\\"solana_signAndSendTransaction\\\"],eip155:[\\\"eth_accounts\\\",\\\"eth_requestAccounts\\\",\\\"eth_sendRawTransaction\\\",\\\"eth_sign\\\",\\\"eth_signTransaction\\\",\\\"eth_signTypedData\\\",\\\"eth_signTypedData_v3\\\",\\\"eth_signTypedData_v4\\\",\\\"eth_sendTransaction\\\",\\\"personal_sign\\\",\\\"wallet_switchEthereumChain\\\",\\\"wallet_addEthereumChain\\\",\\\"wallet_getPermissions\\\",\\\"wallet_requestPermissions\\\",\\\"wallet_registerOnboarding\\\",\\\"wallet_watchAsset\\\",\\\"wallet_scanQRCode\\\",\\\"wallet_getCallsStatus\\\",\\\"wallet_showCallsStatus\\\",\\\"wallet_sendCalls\\\",\\\"wallet_getCapabilities\\\",\\\"wallet_grantPermissions\\\",\\\"wallet_revokePermissions\\\",\\\"wallet_getAssets\\\"],bip122:[\\\"sendTransfer\\\",\\\"signMessage\\\",\\\"signPsbt\\\",\\\"getAccountAddresses\\\"]},n8={getMethodsByChainNamespace(t){return TWt[t]||[]},createDefaultNamespace(t){return{methods:this.getMethodsByChainNamespace(t),events:[\\\"accountsChanged\\\",\\\"chainChanged\\\"],chains:[],rpcMap:{}}},applyNamespaceOverrides(t,e){if(!e)return{...t};let r={...t},n=new Set;if(e.methods&&Object.keys(e.methods).forEach(i=>n.add(i)),e.chains&&Object.keys(e.chains).forEach(i=>n.add(i)),e.events&&Object.keys(e.events).forEach(i=>n.add(i)),e.rpcMap&&Object.keys(e.rpcMap).forEach(i=>{let[s]=i.split(\\\":\\\");s&&n.add(s)}),n.forEach(i=>{r[i]||(r[i]=this.createDefaultNamespace(i))}),e.methods&&Object.entries(e.methods).forEach(([i,s])=>{r[i]&&(r[i].methods=s)}),e.chains&&Object.entries(e.chains).forEach(([i,s])=>{r[i]&&(r[i].chains=s)}),e.events&&Object.entries(e.events).forEach(([i,s])=>{r[i]&&(r[i].events=s)}),e.rpcMap){let i=new Set;Object.entries(e.rpcMap).forEach(([s,o])=>{let[a,c]=s.split(\\\":\\\");!a||!c||!r[a]||(r[a].rpcMap||(r[a].rpcMap={}),i.has(a)||(r[a].rpcMap={},i.add(a)),r[a].rpcMap[c]=o)})}return r},createNamespaces(t,e){let r=t.reduce((n,i)=>{let{id:s,chainNamespace:o,rpcUrls:a}=i,c=a.default.http[0];n[o]||(n[o]=this.createDefaultNamespace(o));let l=`${o}:${s}`,d=n[o];switch(d.chains.push(l),l){case Rpe.caipNetworkId:d.chains.push(Rpe.deprecatedCaipNetworkId);break;case Ppe.caipNetworkId:d.chains.push(Ppe.deprecatedCaipNetworkId);break;default:}return d?.rpcMap&&c&&(d.rpcMap[s]=c),n},{});return this.applyNamespaceOverrides(r,e)},resolveReownName:async t=>{let e=await L1.resolveName(t);return(Object.values(e?.addresses)||[])[0]?.address||!1},getChainsFromNamespaces(t={}){return Object.values(t).flatMap(e=>{let r=e.chains||[],n=e.accounts.map(i=>{let[s,o]=i.split(\\\":\\\");return`${s}:${o}`});return Array.from(new Set([...r,...n]))})},isSessionEventData(t){return typeof t==\\\"object\\\"&&t!==null&&\\\"id\\\"in t&&\\\"topic\\\"in t&&\\\"params\\\"in t&&typeof t.params==\\\"object\\\"&&t.params!==null&&\\\"chainId\\\"in t.params&&\\\"event\\\"in t.params&&typeof t.params.event==\\\"object\\\"&&t.params.event!==null},isOriginAllowed(t,e,r){for(let n of[...e,...r])if(n.includes(\\\"*\\\")){let s=`^${n.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/gu,\\\"\\\\\\\\$&\\\").replace(/\\\\\\\\\\\\*/gu,\\\".*\\\")}$`;if(new RegExp(s,\\\"u\\\").test(t))return!0}else try{if(new URL(n).origin===t)return!0}catch{if(n===t)return!0}return!1}}});var tYe=x(()=>{u()});var Ope=x(()=>{u();Ipe();eYe();tYe()});var wbn,i8,IWt,Npe=x(()=>{u();wbn=Me(J7(),1);Ri();xt();ax();Ope();i8=class{constructor({provider:e,namespace:r}){this.id=_e.CONNECTOR_ID.WALLET_CONNECT,this.name=K1.ConnectorNamesMap[_e.CONNECTOR_ID.WALLET_CONNECT],this.type=\\\"WALLET_CONNECT\\\",this.imageId=K1.ConnectorImageIds[_e.CONNECTOR_ID.WALLET_CONNECT],this.getCaipNetworks=z.getCaipNetworks.bind(z),this.caipNetworks=this.getCaipNetworks(),this.provider=e,this.chain=r}get chains(){return this.getCaipNetworks()}async connectWalletConnect(){if(!await this.authenticate()){let r=this.getCaipNetworks(),n=ee.state.universalProviderConfigOverride,i=n8.createNamespaces(r,n);await this.provider.connect({optionalNamespaces:i})}return{clientId:await this.provider.client.core.crypto.getClientId(),session:this.provider.session}}async disconnect(){await this.provider.disconnect()}async authenticate(){let e=this.chains.map(r=>r.caipNetworkId);return vd.universalProviderAuthenticate({universalProvider:this.provider,chains:e,methods:IWt})}},IWt=[\\\"eth_accounts\\\",\\\"eth_requestAccounts\\\",\\\"eth_sendRawTransaction\\\",\\\"eth_sign\\\",\\\"eth_signTransaction\\\",\\\"eth_signTypedData\\\",\\\"eth_signTypedData_v3\\\",\\\"eth_signTypedData_v4\\\",\\\"eth_sendTransaction\\\",\\\"personal_sign\\\",\\\"wallet_switchEthereumChain\\\",\\\"wallet_addEthereumChain\\\",\\\"wallet_getPermissions\\\",\\\"wallet_requestPermissions\\\",\\\"wallet_registerOnboarding\\\",\\\"wallet_watchAsset\\\",\\\"wallet_scanQRCode\\\",\\\"wallet_getCallsStatus\\\",\\\"wallet_sendCalls\\\",\\\"wallet_getCapabilities\\\",\\\"wallet_grantPermissions\\\",\\\"wallet_revokePermissions\\\",\\\"wallet_getAssets\\\"]});var Tbn,W$,rYe=x(()=>{u();Tbn=Me(J7(),1);Ri();xt();ax();Npe();W$=class{constructor(e){this.availableConnectors=[],this.eventListeners=new Map,this.getCaipNetworks=r=>z.getCaipNetworks(r),e&&this.construct(e)}construct(e){this.projectId=e.projectId,this.namespace=e.namespace,this.adapterType=e.adapterType}get connectors(){return this.availableConnectors}get networks(){return this.getCaipNetworks(this.namespace)}setAuthProvider(e){this.addConnector({id:_e.CONNECTOR_ID.AUTH,type:\\\"AUTH\\\",name:_e.CONNECTOR_NAMES.AUTH,provider:e,imageId:K1.ConnectorImageIds[_e.CONNECTOR_ID.AUTH],chain:this.namespace,chains:[]})}addConnector(...e){let r=new Set;this.availableConnectors=[...e,...this.availableConnectors].filter(n=>r.has(n.id)?!1:(r.add(n.id),!0)),this.emit(\\\"connectors\\\",this.availableConnectors)}setStatus(e,r){Ie.setStatus(e,r)}on(e,r){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e)?.add(r)}off(e,r){let n=this.eventListeners.get(e);n&&n.delete(r)}removeAllEventListeners(){this.eventListeners.forEach(e=>{e.clear()})}emit(e,r){let n=this.eventListeners.get(e);n&&n.forEach(i=>i(r))}async connectWalletConnect(e){return{clientId:(await this.getWalletConnectConnector().connectWalletConnect()).clientId}}async switchNetwork(e){let{caipNetwork:r,providerType:n}=e;if(!e.provider)return;let i=\\\"provider\\\"in e.provider?e.provider.provider:e.provider;if(n===\\\"WALLET_CONNECT\\\"){i.setDefaultChain(r.caipNetworkId);return}if(i&&n===\\\"AUTH\\\"){let s=i,o=Ie.state.preferredAccountTypes?.[r.chainNamespace];await s.switchNetwork(r.caipNetworkId);let a=await s.getUser({chainId:r.caipNetworkId,preferredAccountType:o});this.emit(\\\"switchNetwork\\\",a)}}getWalletConnectConnector(){let e=this.connectors.find(r=>r instanceof i8);if(!e)throw new Error(\\\"WalletConnectConnector not found\\\");return e}}});var G$,nYe=x(()=>{u();xH();un();Ri();xt();rYe();Npe();Ipe();G$=class extends W${setUniversalProvider(e){this.addConnector(new i8({provider:e,caipNetworks:this.getCaipNetworks(),namespace:this.namespace}))}async connect(e){return Promise.resolve({id:\\\"WALLET_CONNECT\\\",type:\\\"WALLET_CONNECT\\\",chainId:Number(e.chainId),provider:this.provider,address:\\\"\\\"})}async disconnect(){try{await this.getWalletConnectConnector().disconnect()}catch(e){console.warn(\\\"UniversalAdapter:disconnect - error\\\",e)}}async getAccounts({namespace:e}){let n=this.provider?.session?.namespaces?.[e]?.accounts?.map(i=>{let[,,s]=i.split(\\\":\\\");return s}).filter((i,s,o)=>o.indexOf(i)===s)||[];return Promise.resolve({accounts:n.map(i=>oe.createAccount(e,i,e===\\\"bip122\\\"?\\\"payment\\\":\\\"eoa\\\"))})}async syncConnectors(){return Promise.resolve()}async getBalance(e){if(!(e.caipNetwork&&Rt.BALANCE_SUPPORTED_CHAINS.includes(e.caipNetwork?.chainNamespace))||e.caipNetwork?.testnet)return{balance:\\\"0.00\\\",symbol:e.caipNetwork?.nativeCurrency.symbol||\\\"\\\"};if(Ie.state.balanceLoading&&e.chainId===z.state.activeCaipNetwork?.id)return{balance:Ie.state.balance||\\\"0.00\\\",symbol:Ie.state.balanceSymbol||\\\"\\\"};let i=(await Ie.fetchTokenBalance()).find(s=>s.chainId===`${e.caipNetwork?.chainNamespace}:${e.chainId}`&&s.symbol===e.caipNetwork?.nativeCurrency.symbol);return{balance:i?.quantity.numeric||\\\"0.00\\\",symbol:i?.symbol||e.caipNetwork?.nativeCurrency.symbol||\\\"\\\"}}async signMessage(e){let{provider:r,message:n,address:i}=e;if(!r)throw new Error(\\\"UniversalAdapter:signMessage - provider is undefined\\\");let s=\\\"\\\";return z.state.activeCaipNetwork?.chainNamespace===_e.CHAIN.SOLANA?s=(await r.request({method:\\\"solana_signMessage\\\",params:{message:yC.encode(new TextEncoder().encode(n)),pubkey:i}},z.state.activeCaipNetwork?.caipNetworkId)).signature:s=await r.request({method:\\\"personal_sign\\\",params:[n,i]},z.state.activeCaipNetwork?.caipNetworkId),{signature:s}}async estimateGas(){return Promise.resolve({gas:BigInt(0)})}async sendTransaction(){return Promise.resolve({hash:\\\"\\\"})}walletGetAssets(e){return Promise.resolve({})}async writeContract(){return Promise.resolve({hash:\\\"\\\"})}parseUnits(){return 0n}formatUnits(){return\\\"0\\\"}async getCapabilities(){return Promise.resolve({})}async grantPermissions(){return Promise.resolve({})}async revokePermissions(){return Promise.resolve(\\\"0x\\\")}async syncConnection(){return Promise.resolve({id:\\\"WALLET_CONNECT\\\",type:\\\"WALLET_CONNECT\\\",chainId:1,provider:this.provider,address:\\\"\\\"})}async switchNetwork(e){let{caipNetwork:r}=e,n=this.getWalletConnectConnector();if(r.chainNamespace===_e.CHAIN.EVM)try{await n.provider?.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:He(r.id)}]})}catch(i){if(i.code===mx.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||i.code===mx.ERROR_INVALID_CHAIN_ID||i.code===mx.ERROR_CODE_DEFAULT||i?.data?.originalError?.code===mx.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)try{await n.provider?.request({method:\\\"wallet_addEthereumChain\\\",params:[{chainId:He(r.id),rpcUrls:[r?.rpcUrls.chainDefault?.http],chainName:r.name,nativeCurrency:r.nativeCurrency,blockExplorerUrls:[r.blockExplorers?.default.url]}]})}catch{throw new Error(\\\"Chain is not supported\\\")}}n.provider.setDefaultChain(r.caipNetworkId)}getWalletConnectProvider(){return this.connectors.find(n=>n.type===\\\"WALLET_CONNECT\\\")?.provider}}});var RWt,K$,iYe,sYe=x(()=>{u();xt();RWt=[\\\"email\\\",\\\"socials\\\",\\\"swaps\\\",\\\"onramp\\\",\\\"activity\\\",\\\"reownBranding\\\"],K$={email:{apiFeatureName:\\\"social_login\\\",localFeatureName:\\\"email\\\",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:t=>{if(!t?.config)return!1;let e=t.config;return!!t.isEnabled&&e.includes(\\\"email\\\")},processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.email:!!t},socials:{apiFeatureName:\\\"social_login\\\",localFeatureName:\\\"socials\\\",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:t=>{if(!t?.config)return!1;let e=t.config;return t.isEnabled&&e.length>0?e.filter(r=>r!==\\\"email\\\"):!1},processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.socials:typeof t==\\\"boolean\\\"?t?Rt.DEFAULT_REMOTE_FEATURES.socials:!1:t},swaps:{apiFeatureName:\\\"swap\\\",localFeatureName:\\\"swaps\\\",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:t=>{if(!t?.config)return!1;let e=t.config;return t.isEnabled&&e.length>0?e:!1},processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.swaps:typeof t==\\\"boolean\\\"?t?Rt.DEFAULT_REMOTE_FEATURES.swaps:!1:t},onramp:{apiFeatureName:\\\"onramp\\\",localFeatureName:\\\"onramp\\\",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:t=>{if(!t?.config)return!1;let e=t.config;return t.isEnabled&&e.length>0?e:!1},processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.onramp:typeof t==\\\"boolean\\\"?t?Rt.DEFAULT_REMOTE_FEATURES.onramp:!1:t},activity:{apiFeatureName:\\\"activity\\\",localFeatureName:\\\"history\\\",returnType:!1,isLegacy:!0,isAvailableOnBasic:!1,processApi:t=>!!t.isEnabled,processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.activity:!!t},reownBranding:{apiFeatureName:\\\"reown_branding\\\",localFeatureName:\\\"reownBranding\\\",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:t=>!!t.isEnabled,processFallback:t=>t===void 0?Rt.DEFAULT_REMOTE_FEATURES.reownBranding:!!t}},iYe={localSettingsOverridden:new Set,getApiConfig(t,e){return e?.find(r=>r.id===t)},addWarning(t,e){if(t!==void 0){let r=K$[e],n=r.isLegacy?`\\\"features.${r.localFeatureName}\\\" (now \\\"${e}\\\")`:`\\\"features.${e}\\\"`;this.localSettingsOverridden.add(n)}},processFeature(t,e,r,n,i){let s=K$[t],o=e[s.localFeatureName];if(i&&!s.isAvailableOnBasic)return!1;if(n){let a=this.getApiConfig(s.apiFeatureName,r);return a?.config===null?this.processFallbackFeature(t,o):a?.config?(o!==void 0&&this.addWarning(o,t),this.processApiFeature(t,a)):!1}return this.processFallbackFeature(t,o)},processApiFeature(t,e){return K$[t].processApi(e)},processFallbackFeature(t,e){return K$[t].processFallback(e)},async fetchRemoteFeatures(t){let e=t.basic??!1,r=t.features||{};this.localSettingsOverridden.clear();let n=null,i=!1;try{n=await ye.fetchProjectConfig(),i=n!=null}catch(o){console.warn(\\\"[Reown Config] Failed to fetch remote project configuration. Using local/default values.\\\",o)}let s=i&&!e?Rt.DEFAULT_REMOTE_FEATURES:Rt.DEFAULT_REMOTE_FEATURES_DISABLED;try{for(let o of RWt){let a=this.processFeature(o,r,n,i,e);Object.assign(s,{[o]:a})}}catch(o){return console.warn(\\\"[Reown Config] Failed to process the configuration from Cloud. Using default values.\\\",o),Rt.DEFAULT_REMOTE_FEATURES}if(i&&this.localSettingsOverridden.size>0){let o=`Your local configuration for ${Array.from(this.localSettingsOverridden).join(\\\", \\\")} was ignored because a remote configuration was successfully fetched. Please manage these features via your project dashboard on dashboard.reown.com.`;Xo.open({shortMessage:\\\"Local configuration ignored\\\",longMessage:`[Reown Config Notice] ${o}`},\\\"warning\\\")}return s}}});var oYe,Z$,aYe=x(()=>{u();oYe=Me(J7(),1);Ri();xt();xJe();TJe();pr();ax();ax();nYe();sYe();Ope();Z$=class{constructor(e){this.chainNamespaces=[],this.remoteFeatures={},this.reportedAlertErrors={},this.getCaipNetwork=(r,n)=>{if(r){let i=z.getNetworkData(r)?.requestedCaipNetworks?.find(a=>a.id===n);if(i)return i;let s=z.getNetworkData(r)?.caipNetwork;return s||z.getRequestedCaipNetworks(r).filter(a=>a.chainNamespace===r)?.[0]}return z.state.activeCaipNetwork||this.defaultCaipNetwork},this.getCaipNetworkId=()=>{let r=this.getCaipNetwork();if(r)return r.id},this.getCaipNetworks=r=>z.getCaipNetworks(r),this.getActiveChainNamespace=()=>z.state.activeChain,this.setRequestedCaipNetworks=(r,n)=>{z.setRequestedCaipNetworks(r,n)},this.getApprovedCaipNetworkIds=()=>z.getAllApprovedCaipNetworkIds(),this.getCaipAddress=r=>z.state.activeChain===r||!r?z.state.activeCaipAddress:z.getAccountProp(\\\"caipAddress\\\",r),this.setClientId=r=>{Qe.setClientId(r)},this.getProvider=r=>Qn.getProvider(r),this.getProviderType=r=>Qn.getProviderId(r),this.getPreferredAccountType=r=>Ie.state.preferredAccountTypes?.[r],this.setCaipAddress=(r,n)=>{Ie.setCaipAddress(r,n),r&&ee.state.enableEmbedded&&this.close()},this.setBalance=(r,n,i)=>{Ie.setBalance(r,n,i)},this.setProfileName=(r,n)=>{Ie.setProfileName(r,n)},this.setProfileImage=(r,n)=>{Ie.setProfileImage(r,n)},this.setUser=(r,n)=>{Ie.setUser(r,n)},this.resetAccount=r=>{Ie.resetAccount(r)},this.setCaipNetwork=r=>{z.setActiveCaipNetwork(r)},this.setCaipNetworkOfNamespace=(r,n)=>{z.setChainNetworkData(n,{caipNetwork:r})},this.setAllAccounts=(r,n)=>{Ie.setAllAccounts(r,n),ee.setHasMultipleAddresses(r?.length>1)},this.setStatus=(r,n)=>{Ie.setStatus(r,n),ie.isConnected()?Te.setConnectionStatus(\\\"connected\\\"):Te.setConnectionStatus(\\\"disconnected\\\")},this.getAddressByChainNamespace=r=>z.getAccountProp(\\\"address\\\",r),this.setConnectors=r=>{let n=[...ie.state.allConnectors,...r];ie.setConnectors(n)},this.setConnections=(r,n)=>{me.setConnections(r,n)},this.fetchIdentity=r=>Qe.fetchIdentity(r),this.getReownName=r=>L1.getNamesForAddress(r),this.getConnectors=()=>ie.getConnectors(),this.getConnectorImage=r=>sr.getConnectorImage(r),this.setConnectedWalletInfo=(r,n)=>{let i=Qn.getProviderId(n),s=r?{...r,type:i}:void 0;Ie.setConnectedWalletInfo(s,n)},this.getIsConnectedState=()=>!!z.state.activeCaipAddress,this.addAddressLabel=(r,n,i)=>{Ie.addAddressLabel(r,n,i)},this.removeAddressLabel=(r,n)=>{Ie.removeAddressLabel(r,n)},this.getAddress=r=>z.state.activeChain===r||!r?Ie.state.address:z.getAccountProp(\\\"address\\\",r),this.setApprovedCaipNetworksData=r=>z.setApprovedCaipNetworksData(r),this.resetNetwork=r=>{z.resetNetwork(r)},this.addConnector=r=>{ie.addConnector(r)},this.resetWcConnection=()=>{me.resetWcConnection()},this.setAddressExplorerUrl=(r,n)=>{Ie.setAddressExplorerUrl(r,n)},this.setSmartAccountDeployed=(r,n)=>{Ie.setSmartAccountDeployed(r,n)},this.setSmartAccountEnabledNetworks=(r,n)=>{z.setSmartAccountEnabledNetworks(r,n)},this.setPreferredAccountType=(r,n)=>{Ie.setPreferredAccountType(r,n)},this.setEIP6963Enabled=r=>{ee.setEIP6963Enabled(r)},this.handleUnsafeRPCRequest=()=>{if(this.isOpen()){if(this.isTransactionStackEmpty())return;this.redirect(\\\"ApproveTransaction\\\")}else this.open({view:\\\"ApproveTransaction\\\"})},this.options=e,this.version=e.sdkVersion,this.caipNetworks=this.extendCaipNetworks(e),this.chainNamespaces=this.getChainNamespacesSet(e.adapters,this.caipNetworks),this.defaultCaipNetwork=this.extendDefaultCaipNetwork(e),this.chainAdapters=this.createAdapters(e.adapters),this.readyPromise=this.initialize(e)}getChainNamespacesSet(e,r){let n=e?.map(s=>s.namespace).filter(s=>!!s);if(n?.length)return[...new Set(n)];let i=r?.map(s=>s.chainNamespace);return[...new Set(i)]}async initialize(e){this.initializeProjectSettings(e),this.initControllers(e),await this.initChainAdapters(),this.sendInitializeEvent(e),await this.syncExistingConnection(),this.remoteFeatures=await iYe.fetchRemoteFeatures(e),ee.setRemoteFeatures(this.remoteFeatures),this.remoteFeatures.onramp&&S7.setOnrampProviders(this.remoteFeatures.onramp),(ee.state.remoteFeatures?.email||Array.isArray(ee.state.remoteFeatures?.socials)&&ee.state.remoteFeatures?.socials.length>0)&&await this.checkAllowedOrigins()}async checkAllowedOrigins(){let e=await ye.fetchAllowedOrigins();if(e&&oe.isClient()){let r=window.location.origin;n8.isOriginAllowed(r,e,mx.DEFAULT_ALLOWED_ANCESTORS)||Xo.open(Z1.ALERT_ERRORS.INVALID_APP_CONFIGURATION,\\\"error\\\")}else Xo.open(Z1.ALERT_ERRORS.PROJECT_ID_NOT_CONFIGURED,\\\"error\\\")}sendInitializeEvent(e){let{...r}=e;delete r.adapters,delete r.universalProvider,Xe.sendEvent({type:\\\"track\\\",event:\\\"INITIALIZE\\\",properties:{...r,networks:e.networks.map(n=>n.id),siweConfig:{options:e.siweConfig?.options||{}}}})}initControllers(e){this.initializeOptionsController(e),this.initializeChainController(e),this.initializeThemeController(e),this.initializeConnectionController(e),this.initializeConnectorController()}initializeThemeController(e){e.themeMode&&ji.setThemeMode(e.themeMode),e.themeVariables&&ji.setThemeVariables(e.themeVariables)}initializeChainController(e){if(!this.connectionControllerClient||!this.networkControllerClient)throw new Error(\\\"ConnectionControllerClient and NetworkControllerClient must be set\\\");z.initialize(e.adapters??[],this.caipNetworks,{connectionControllerClient:this.connectionControllerClient,networkControllerClient:this.networkControllerClient});let r=this.getDefaultNetwork();r&&z.setActiveCaipNetwork(r)}initializeConnectionController(e){me.setWcBasic(e.basic??!1)}initializeConnectorController(){ie.initialize(this.chainNamespaces)}initializeProjectSettings(e){ee.setProjectId(e.projectId),ee.setSdkVersion(e.sdkVersion)}initializeOptionsController(e){ee.setDebug(e.debug!==!1),ee.setEnableWalletConnect(e.enableWalletConnect!==!1),ee.setEnableWalletGuide(e.enableWalletGuide!==!1),ee.setEnableWallets(e.enableWallets!==!1),ee.setEIP6963Enabled(e.enableEIP6963!==!1),ee.setEnableNetworkSwitch(e.enableNetworkSwitch!==!1),ee.setEnableAuthLogger(e.enableAuthLogger!==!1),ee.setCustomRpcUrls(e.customRpcUrls),ee.setEnableEmbedded(e.enableEmbedded),ee.setAllWallets(e.allWallets),ee.setIncludeWalletIds(e.includeWalletIds),ee.setExcludeWalletIds(e.excludeWalletIds),ee.setFeaturedWalletIds(e.featuredWalletIds),ee.setTokens(e.tokens),ee.setTermsConditionsUrl(e.termsConditionsUrl),ee.setPrivacyPolicyUrl(e.privacyPolicyUrl),ee.setCustomWallets(e.customWallets),ee.setFeatures(e.features),ee.setAllowUnsupportedChain(e.allowUnsupportedChain),ee.setUniversalProviderConfigOverride(e.universalProviderConfigOverride),ee.setPreferUniversalLinks(e.experimental_preferUniversalLinks),ee.setDefaultAccountTypes(e.defaultAccountTypes);let r=Te.getPreferredAccountTypes()||{},n={...ee.state.defaultAccountTypes,...r};Ie.setPreferredAccountTypes(n);let i=this.getDefaultMetaData();if(!e.metadata&&i&&(e.metadata=i),ee.setMetadata(e.metadata),ee.setDisableAppend(e.disableAppend),ee.setEnableEmbedded(e.enableEmbedded),ee.setSIWX(e.siwx),!e.projectId){Xo.open(Z1.ALERT_ERRORS.PROJECT_ID_NOT_CONFIGURED,\\\"error\\\");return}if(e.adapters?.find(o=>o.namespace===_e.CHAIN.EVM)&&e.siweConfig){if(e.siwx)throw new Error(\\\"Cannot set both `siweConfig` and `siwx` options\\\");ee.setSIWX(e.siweConfig.mapToSIWX())}}getDefaultMetaData(){return oe.isClient()?{name:document.getElementsByTagName(\\\"title\\\")?.[0]?.textContent||\\\"\\\",description:document.querySelector('meta[property=\\\"og:description\\\"]')?.content||\\\"\\\",url:window.location.origin,icons:[document.querySelector('link[rel~=\\\"icon\\\"]')?.href||\\\"\\\"]}:null}setUnsupportedNetwork(e){let r=this.getActiveChainNamespace();if(r){let n=Q1.getUnsupportedNetwork(`${r}:${e}`);z.setActiveCaipNetwork(n)}}getDefaultNetwork(){return Q1.getCaipNetworkFromStorage(this.defaultCaipNetwork)}extendCaipNetwork(e,r){return Q1.extendCaipNetwork(e,{customNetworkImageUrls:r.chainImages,projectId:r.projectId})}extendCaipNetworks(e){return Q1.extendCaipNetworks(e.networks,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId})}extendDefaultCaipNetwork(e){let r=e.networks.find(i=>i.id===e.defaultNetwork?.id);return r?Q1.extendCaipNetwork(r,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId}):void 0}async disconnectNamespace(e){try{let r=this.getAdapter(e),n=Qn.getProvider(e),i=Qn.getProviderId(e),{caipAddress:s}=z.getAccountData(e)||{};this.setLoading(!0,e),s&&r?.disconnect&&await r.disconnect({provider:n,providerType:i}),Te.removeConnectedNamespace(e),Qn.resetChain(e),this.setUser(void 0,e),this.setStatus(\\\"disconnected\\\",e),this.setConnectedWalletInfo(void 0,e),ie.removeConnectorId(e),z.resetAccount(e),z.resetNetwork(e),this.setLoading(!1,e)}catch(r){throw this.setLoading(!1,e),new Error(`Failed to disconnect chain ${e}: ${r.message}`)}}createClients(){this.connectionControllerClient={connectWalletConnect:async()=>{let e=z.state.activeChain,r=this.getAdapter(e),n=this.getCaipNetwork(e)?.id;if(!r)throw new Error(\\\"Adapter not found\\\");let i=await r.connectWalletConnect(n);this.close(),this.setClientId(i?.clientId||null),Te.setConnectedNamespaces([...z.state.chains.keys()]),this.chainNamespaces.forEach(s=>{ie.setConnectorId(qi.CONNECTOR_TYPE_WALLET_CONNECT,s)}),await this.syncWalletConnectAccount()},connectExternal:async({id:e,info:r,type:n,provider:i,chain:s,caipNetwork:o,socialUri:a})=>{let c=z.state.activeChain,l=s||c,d=this.getAdapter(l);if(s&&s!==c&&!o){let g=this.getCaipNetworks().find(w=>w.chainNamespace===s);g&&this.setCaipNetwork(g)}if(!d)throw new Error(\\\"Adapter not found\\\");let f=this.getCaipNetwork(l),p=await d.connect({id:e,info:r,type:n,provider:i,socialUri:a,chainId:o?.id||f?.id,rpcUrl:o?.rpcUrls?.default?.http?.[0]||f?.rpcUrls?.default?.http?.[0]});if(!p)return;Te.addConnectedNamespace(l),this.syncProvider({...p,chainNamespace:l});let h=Ie.state.allAccounts,{accounts:m}=h?.length>0?{accounts:[...h]}:await d.getAccounts({namespace:l,id:e});this.setAllAccounts(m,l),this.setStatus(\\\"connected\\\",l),this.syncConnectedWalletInfo(l)},reconnectExternal:async({id:e,info:r,type:n,provider:i})=>{let s=z.state.activeChain,o=this.getAdapter(s);o?.reconnect&&(await o?.reconnect({id:e,info:r,type:n,provider:i,chainId:this.getCaipNetwork()?.id}),Te.addConnectedNamespace(s),this.syncConnectedWalletInfo(s))},disconnect:async e=>{let r=ppe(e);try{let n=await Promise.allSettled(r.map(async([s])=>this.disconnectNamespace(s)));ur.resetSend(),me.resetWcConnection(),await vd.clearSessions(),ie.setFilterByNamespace(void 0);let i=n.filter(s=>s.status===\\\"rejected\\\");if(i.length>0)throw new Error(i.map(s=>s.reason.message).join(\\\", \\\"));Te.deleteConnectedSocialProvider(),Xe.sendEvent({type:\\\"track\\\",event:\\\"DISCONNECT_SUCCESS\\\",properties:{namespace:e||\\\"all\\\"}})}catch(n){throw new Error(`Failed to disconnect chains: ${n.message}`)}},checkInstalled:e=>e?e.some(r=>!!window.ethereum?.[String(r)]):!!window.ethereum,signMessage:async e=>(await this.getAdapter(z.state.activeChain)?.signMessage({message:e,address:Ie.state.address,provider:Qn.getProvider(z.state.activeChain)}))?.signature||\\\"\\\",sendTransaction:async e=>{let r=e.chainNamespace;if(Rt.SEND_SUPPORTED_NAMESPACES.includes(r)){let n=this.getAdapter(z.state.activeChain),i=Qn.getProvider(r);return(await n?.sendTransaction({...e,caipNetwork:this.getCaipNetwork(),provider:i}))?.hash||\\\"\\\"}return\\\"\\\"},estimateGas:async e=>{if(e.chainNamespace===_e.CHAIN.EVM){let r=this.getAdapter(z.state.activeChain),n=Qn.getProvider(z.state.activeChain),i=this.getCaipNetwork();if(!i)throw new Error(\\\"CaipNetwork is undefined\\\");return(await r?.estimateGas({...e,provider:n,caipNetwork:i}))?.gas||0n}return 0n},getEnsAvatar:async()=>(await this.syncIdentity({address:Ie.state.address,chainId:Number(this.getCaipNetwork()?.id),chainNamespace:z.state.activeChain}),Ie.state.profileImage||!1),getEnsAddress:async e=>await n8.resolveReownName(e),writeContract:async e=>{let r=this.getAdapter(z.state.activeChain),n=this.getCaipNetwork(),i=this.getCaipAddress(),s=Qn.getProvider(z.state.activeChain);if(!n||!i)throw new Error(\\\"CaipNetwork or CaipAddress is undefined\\\");return(await r?.writeContract({...e,caipNetwork:n,provider:s,caipAddress:i}))?.hash},parseUnits:(e,r)=>this.getAdapter(z.state.activeChain)?.parseUnits({value:e,decimals:r})??0n,formatUnits:(e,r)=>this.getAdapter(z.state.activeChain)?.formatUnits({value:e,decimals:r})??\\\"0\\\",getCapabilities:async e=>await this.getAdapter(z.state.activeChain)?.getCapabilities(e),grantPermissions:async e=>await this.getAdapter(z.state.activeChain)?.grantPermissions(e),revokePermissions:async e=>{let r=this.getAdapter(z.state.activeChain);return r?.revokePermissions?await r.revokePermissions(e):\\\"0x\\\"},walletGetAssets:async e=>await this.getAdapter(z.state.activeChain)?.walletGetAssets(e)??{},updateBalance:e=>{let r=this.getCaipNetwork(e);!r||!Ie.state.address||this.updateNativeBalance(Ie.state.address,r?.id,e)}},this.networkControllerClient={switchCaipNetwork:async e=>await this.switchCaipNetwork(e),getApprovedCaipNetworksData:async()=>this.getApprovedCaipNetworksData()},me.setClient(this.connectionControllerClient)}getApprovedCaipNetworksData(){if(Qn.getProviderId(z.state.activeChain)===qi.CONNECTOR_TYPE_WALLET_CONNECT){let r=this.universalProvider?.session?.namespaces;return{supportsAllNetworks:this.universalProvider?.session?.peer?.metadata.name===\\\"MetaMask Wallet\\\",approvedCaipNetworkIds:this.getChainsFromNamespaces(r)}}return{supportsAllNetworks:!0,approvedCaipNetworkIds:[]}}async switchCaipNetwork(e){if(!e)return;let r=e.chainNamespace;if(this.getAddressByChainNamespace(e.chainNamespace)){let i=Qn.getProvider(r),s=Qn.getProviderId(r);if(e.chainNamespace===z.state.activeChain)await this.getAdapter(r)?.switchNetwork({caipNetwork:e,provider:i,providerType:s});else if(this.setCaipNetwork(e),s===qi.CONNECTOR_TYPE_WALLET_CONNECT)this.syncWalletConnectAccount();else{let o=this.getAddressByChainNamespace(r);o&&this.syncAccount({address:o,chainId:e.id,chainNamespace:r})}}else this.setCaipNetwork(e)}getChainsFromNamespaces(e={}){return Object.values(e).flatMap(r=>{let n=r.chains||[],i=r.accounts.map(s=>{let{chainId:o,chainNamespace:a}=ph.parseCaipAddress(s);return`${a}:${o}`});return Array.from(new Set([...n,...i]))})}createAdapters(e){return this.createClients(),this.chainNamespaces.reduce((r,n)=>{let i=e?.find(s=>s.namespace===n);return i?(i.construct({namespace:n,projectId:this.options?.projectId,networks:this.getCaipNetworks()}),r[n]=i):r[n]=new G$({namespace:n,networks:this.getCaipNetworks()}),r},{})}async initChainAdapter(e){this.onConnectors(e),this.listenAdapter(e),await this.chainAdapters?.[e].syncConnectors(this.options,this),await this.createUniversalProviderForAdapter(e)}async initChainAdapters(){await Promise.all(this.chainNamespaces.map(async e=>{await this.initChainAdapter(e)}))}onConnectors(e){this.getAdapter(e)?.on(\\\"connectors\\\",this.setConnectors.bind(this))}listenAdapter(e){let r=this.getAdapter(e);if(!r)return;let n=Te.getConnectionStatus();n===\\\"connected\\\"?this.setStatus(\\\"connecting\\\",e):n===\\\"disconnected\\\"?(Te.clearAddressCache(),this.setStatus(n,e)):this.setStatus(n,e),r.on(\\\"switchNetwork\\\",({address:i,chainId:s})=>{let o=this.getCaipNetworks().find(l=>l.id===s||l.caipNetworkId===s),a=z.state.activeChain===e,c=z.getAccountProp(\\\"address\\\",e);if(o){let l=a&&i?i:c;l&&this.syncAccount({address:l,chainId:o.id,chainNamespace:e})}else this.setUnsupportedNetwork(s)}),r.on(\\\"disconnect\\\",this.disconnect.bind(this,e)),r.on(\\\"connections\\\",i=>{this.setConnections(i,e)}),r.on(\\\"pendingTransactions\\\",()=>{let i=Ie.state.address,s=z.state.activeCaipNetwork;!i||!s?.id||this.updateNativeBalance(i,s.id,s.chainNamespace)}),r.on(\\\"accountChanged\\\",({address:i,chainId:s})=>{let o=z.state.activeChain===e;o&&s?this.syncAccount({address:i,chainId:s,chainNamespace:e}):o&&z.state.activeCaipNetwork?.id?this.syncAccount({address:i,chainId:z.state.activeCaipNetwork?.id,chainNamespace:e}):this.syncAccountInfo(i,s,e),this.syncAllAccounts(e)})}async createUniversalProviderForAdapter(e){await this.getUniversalProvider(),this.universalProvider&&this.chainAdapters?.[e]?.setUniversalProvider?.(this.universalProvider)}async syncExistingConnection(){await Promise.allSettled(this.chainNamespaces.map(e=>this.syncNamespaceConnection(e)))}async syncNamespaceConnection(e){try{e===_e.CHAIN.EVM&&oe.isSafeApp()&&ie.setConnectorId(_e.CONNECTOR_ID.SAFE,e);let r=ie.getConnectorId(e);switch(this.setStatus(\\\"connecting\\\",e),r){case _e.CONNECTOR_ID.WALLET_CONNECT:await this.syncWalletConnectAccount();break;case _e.CONNECTOR_ID.AUTH:break;default:await this.syncAdapterConnection(e)}}catch(r){console.warn(\\\"AppKit couldn't sync existing connection\\\",r),this.setStatus(\\\"disconnected\\\",e)}}async syncAdapterConnection(e){let r=this.getAdapter(e),n=ie.getConnectorId(e),i=this.getCaipNetwork(e),o=ie.getConnectors(e).find(a=>a.id===n);try{if(!r||!o)throw new Error(`Adapter or connector not found for namespace ${e}`);if(!i?.id)throw new Error(\\\"CaipNetwork not found\\\");let a=await r?.syncConnection({namespace:e,id:o.id,chainId:i.id,rpcUrl:i?.rpcUrls?.default?.http?.[0]});if(a){let c=await r?.getAccounts({namespace:e,id:o.id});c&&c.accounts.length>0?this.setAllAccounts(c.accounts,e):this.setAllAccounts([oe.createAccount(e,a.address,\\\"eoa\\\")],e),this.syncProvider({...a,chainNamespace:e}),await this.syncAccount({...a,chainNamespace:e}),this.setStatus(\\\"connected\\\",e)}else this.setStatus(\\\"disconnected\\\",e)}catch{this.setStatus(\\\"disconnected\\\",e)}}async syncWalletConnectAccount(){let e=this.chainNamespaces.map(async r=>{let n=this.getAdapter(r),i=this.universalProvider?.session?.namespaces?.[r]?.accounts||[],s=z.state.activeCaipNetwork?.id,o=i.find(a=>{let{chainId:c}=ph.parseCaipAddress(a);return c===s?.toString()})||i[0];if(o){let a=ph.validateCaipAddress(o),{chainId:c,address:l}=ph.parseCaipAddress(a);if(Qn.setProviderId(r,qi.CONNECTOR_TYPE_WALLET_CONNECT),this.caipNetworks&&z.state.activeCaipNetwork&&n?.namespace!==_e.CHAIN.EVM){let d=n?.getWalletConnectProvider({caipNetworks:this.getCaipNetworks(),provider:this.universalProvider,activeCaipNetwork:z.state.activeCaipNetwork});Qn.setProvider(r,d)}else Qn.setProvider(r,this.universalProvider);ie.setConnectorId(_e.CONNECTOR_ID.WALLET_CONNECT,r),Te.addConnectedNamespace(r),this.syncWalletConnectAccounts(r),await this.syncAccount({address:l,chainId:c,chainNamespace:r})}else this.setStatus(\\\"disconnected\\\",r);this.syncConnectedWalletInfo(r),await z.setApprovedCaipNetworksData(r)});await Promise.all(e)}syncWalletConnectAccounts(e){let r=this.universalProvider?.session?.namespaces?.[e]?.accounts?.map(n=>{let{address:i}=ph.parseCaipAddress(n);return i}).filter((n,i,s)=>s.indexOf(n)===i);r&&this.setAllAccounts(r.map(n=>oe.createAccount(e,n,e===\\\"bip122\\\"?\\\"payment\\\":\\\"eoa\\\")),e)}syncProvider({type:e,provider:r,id:n,chainNamespace:i}){Qn.setProviderId(i,e),Qn.setProvider(i,r),ie.setConnectorId(n,i)}async syncAllAccounts(e){let r=ie.getConnectorId(e);if(!r)return;let i=await this.getAdapter(e)?.getAccounts({namespace:e,id:r});i&&i.accounts.length>0&&this.setAllAccounts(i.accounts,e)}async syncAccount(e){let r=e.chainNamespace===z.state.activeChain,n=z.getCaipNetworkByNamespace(e.chainNamespace,e.chainId),{address:i,chainId:s,chainNamespace:o}=e,{chainId:a}=Te.getActiveNetworkProps(),c=s||a,l=z.state.activeCaipNetwork?.name===_e.UNSUPPORTED_NETWORK_NAME,d=z.getNetworkProp(\\\"supportsAllNetworks\\\",o);if(this.setStatus(\\\"connected\\\",o),!(l&&!d)&&c){let f=this.getCaipNetworks().find(m=>m.id.toString()===c.toString()),p=this.getCaipNetworks().find(m=>m.chainNamespace===o);if(!d&&!f&&!p){let m=this.getApprovedCaipNetworkIds()||[],g=m.find(v=>ph.parseCaipNetworkId(v)?.chainId===c.toString()),w=m.find(v=>ph.parseCaipNetworkId(v)?.chainNamespace===o);f=this.getCaipNetworks().find(v=>v.caipNetworkId===g),p=this.getCaipNetworks().find(v=>v.caipNetworkId===w||\\\"deprecatedCaipNetworkId\\\"in v&&v.deprecatedCaipNetworkId===w)}let h=f||p;h?.chainNamespace===z.state.activeChain?ee.state.enableNetworkSwitch&&!ee.state.allowUnsupportedChain&&z.state.activeCaipNetwork?.name===_e.UNSUPPORTED_NETWORK_NAME?z.showUnsupportedChainUI():this.setCaipNetwork(h):r||n&&this.setCaipNetworkOfNamespace(n,o),this.syncConnectedWalletInfo(o),ox.isLowerCaseMatch(i,Ie.state.address)||this.syncAccountInfo(i,h?.id,o),r?await this.syncBalance({address:i,chainId:h?.id,chainNamespace:o}):await this.syncBalance({address:i,chainId:n?.id,chainNamespace:o})}}async syncAccountInfo(e,r,n){let i=this.getCaipAddress(n),s=r||i?.split(\\\":\\\")[1];if(!s)return;let o=`${n}:${s}:${e}`;this.setCaipAddress(o,n),await this.syncIdentity({address:e,chainId:s,chainNamespace:n})}async syncReownName(e,r){try{let n=await this.getReownName(e);if(n[0]){let i=n[0];this.setProfileName(i.name,r)}else this.setProfileName(null,r)}catch{this.setProfileName(null,r)}}syncConnectedWalletInfo(e){let r=ie.getConnectorId(e),n=Qn.getProviderId(e);if(n===qi.CONNECTOR_TYPE_ANNOUNCED||n===qi.CONNECTOR_TYPE_INJECTED){if(r){let i=this.getConnectors().find(s=>s.id===r);if(i){let{info:s,name:o,imageUrl:a}=i,c=a||this.getConnectorImage(i);this.setConnectedWalletInfo({name:o,icon:c,...s},e)}}}else if(n===qi.CONNECTOR_TYPE_WALLET_CONNECT){let i=Qn.getProvider(e);i?.session&&this.setConnectedWalletInfo({...i.session.peer.metadata,name:i.session.peer.metadata.name,icon:i.session.peer.metadata.icons?.[0]},e)}else if(r&&r===_e.CONNECTOR_ID.COINBASE){let i=this.getConnectors().find(s=>s.id===_e.CONNECTOR_ID.COINBASE);this.setConnectedWalletInfo({name:\\\"Coinbase Wallet\\\",icon:this.getConnectorImage(i)},e)}}async syncBalance(e){!b7.getNetworksByNamespace(this.getCaipNetworks(),e.chainNamespace).find(n=>n.id.toString()===e.chainId?.toString())||!e.chainId||await this.updateNativeBalance(e.address,e.chainId,e.chainNamespace)}async ready(){await this.readyPromise}async updateNativeBalance(e,r,n){let i=this.getAdapter(n),s=z.getCaipNetworkByNamespace(n,r);if(i){let o=await i.getBalance({address:e,chainId:r,caipNetwork:s,tokens:this.options.tokens});return this.setBalance(o.balance,o.symbol,n),o}}async initializeUniversalAdapter(){let e=mpe.createLogger((n,...i)=>{n&&this.handleAlertError(n),console.error(...i)}),r={projectId:this.options?.projectId,metadata:{name:this.options?.metadata?this.options?.metadata.name:\\\"\\\",description:this.options?.metadata?this.options?.metadata.description:\\\"\\\",url:this.options?.metadata?this.options?.metadata.url:\\\"\\\",icons:this.options?.metadata?this.options?.metadata.icons:[\\\"\\\"]},logger:e};ee.setManualWCControl(!!this.options?.manualWCControl),this.universalProvider=this.options.universalProvider??await oYe.default.init(r),this.listenWalletConnect()}listenWalletConnect(){this.universalProvider&&(this.universalProvider.on(\\\"display_uri\\\",e=>{me.setUri(e)}),this.universalProvider.on(\\\"connect\\\",me.finalizeWcConnection),this.universalProvider.on(\\\"disconnect\\\",()=>{this.chainNamespaces.forEach(e=>{this.resetAccount(e)}),me.resetWcConnection()}),this.universalProvider.on(\\\"chainChanged\\\",e=>{let r=this.getCaipNetworks().find(i=>i.id==e),n=this.getCaipNetwork();if(!r){this.setUnsupportedNetwork(e);return}n?.id!==r?.id&&this.setCaipNetwork(r)}),this.universalProvider.on(\\\"session_event\\\",e=>{if(n8.isSessionEventData(e)){let{name:r,data:n}=e.params.event;r===\\\"accountsChanged\\\"&&Array.isArray(n)&&oe.isCaipAddress(n[0])&&this.syncAccount(ph.parseCaipAddress(n[0]))}}))}createUniversalProvider(){return!this.universalProviderInitPromise&&oe.isClient()&&this.options?.projectId&&(this.universalProviderInitPromise=this.initializeUniversalAdapter()),this.universalProviderInitPromise}async getUniversalProvider(){if(!this.universalProvider)try{await this.createUniversalProvider()}catch(e){Xe.sendEvent({type:\\\"error\\\",event:\\\"INTERNAL_SDK_ERROR\\\",properties:{errorType:\\\"UniversalProviderInitError\\\",errorMessage:e instanceof Error?e.message:\\\"Unknown\\\",uncaught:!1}}),console.error(\\\"AppKit:getUniversalProvider - Cannot create provider\\\",e)}return this.universalProvider}handleAlertError(e){let r=Object.entries(Z1.UniversalProviderErrors).find(([,{message:a}])=>e.message.includes(a)),[n,i]=r??[],{message:s,alertErrorKey:o}=i??{};if(n&&s&&!this.reportedAlertErrors[n]){let a=Z1.ALERT_ERRORS[o];a&&(Xo.open(a,\\\"error\\\"),this.reportedAlertErrors[n]=!0)}}getAdapter(e){if(e)return this.chainAdapters?.[e]}createAdapter(e){if(!e)return;let r=e.namespace;if(!r)return;this.createClients();let n=e;n.namespace=r,n.construct({namespace:r,projectId:this.options?.projectId,networks:this.getCaipNetworks()}),this.chainNamespaces.includes(r)||this.chainNamespaces.push(r),this.chainAdapters&&(this.chainAdapters[r]=n)}async open(e){return await this.injectModalUi(),e?.uri&&me.setUri(e.uri),e?.arguments&&e?.view===\\\"Swap\\\"?Dt.open({...e,data:{swap:e.arguments}}):Dt.open(e)}async close(){await this.injectModalUi(),Dt.close()}setLoading(e,r){Dt.setLoading(e,r)}async disconnect(e){await me.disconnect(e)}getSIWX(){return ee.state.siwx}getError(){return\\\"\\\"}getChainId(){return z.state.activeCaipNetwork?.id}async switchNetwork(e){let r=this.getCaipNetworks().find(n=>n.id===e.id);if(!r){Xo.open(Z1.ALERT_ERRORS.SWITCH_NETWORK_NOT_FOUND,\\\"error\\\");return}await z.switchActiveNetwork(r)}getWalletProvider(){return z.state.activeChain?Qn.state.providers[z.state.activeChain]:null}getWalletProviderType(){return Qn.getProviderId(z.state.activeChain)}subscribeProviders(e){return Qn.subscribeProviders(e)}getThemeMode(){return ji.state.themeMode}getThemeVariables(){return ji.state.themeVariables}setThemeMode(e){ji.setThemeMode(e),V$(ji.state.themeMode)}setTermsConditionsUrl(e){ee.setTermsConditionsUrl(e)}setPrivacyPolicyUrl(e){ee.setPrivacyPolicyUrl(e)}setThemeVariables(e){ji.setThemeVariables(e),Tpe(ji.state.themeVariables)}subscribeTheme(e){return ji.subscribe(e)}getWalletInfo(){return Ie.state.connectedWalletInfo}getAccount(e){let r=ie.getAuthConnector(e),n=z.getAccountData(e),i=z.state.activeChain,s=Te.getConnectedConnectorId(e||i);if(n)return{allAccounts:n.allAccounts,caipAddress:n.caipAddress,address:oe.getPlainAddress(n.caipAddress),isConnected:!!n.caipAddress,status:n.status,embeddedWalletInfo:r&&s===_e.CONNECTOR_ID.AUTH?{user:n.user?{...n.user,username:Te.getConnectedSocialUsername()}:void 0,authProvider:n.socialProvider||\\\"email\\\",accountType:n.preferredAccountTypes?.[e||i],isSmartAccountDeployed:!!n.smartAccountDeployed}:void 0}}subscribeAccount(e,r){let n=()=>{let i=this.getAccount(r);i&&e(i)};r?z.subscribeChainProp(\\\"accountState\\\",n,r):z.subscribe(n),ie.subscribe(n)}subscribeNetwork(e){return z.subscribe(({activeCaipNetwork:r})=>{e({caipNetwork:r,chainId:r?.id,caipNetworkId:r?.caipNetworkId})})}subscribeWalletInfo(e){return Ie.subscribeKey(\\\"connectedWalletInfo\\\",e)}subscribeShouldUpdateToAddress(e){Ie.subscribeKey(\\\"shouldUpdateToAddress\\\",e)}subscribeCaipNetworkChange(e){z.subscribeKey(\\\"activeCaipNetwork\\\",e)}getState(){return ud.state}subscribeState(e){return ud.subscribe(e)}showErrorMessage(e){wr.showError(e)}showSuccessMessage(e){wr.showSuccess(e)}getEvent(){return{...Xe.state}}subscribeEvents(e){return Xe.subscribe(e)}replace(e){de.replace(e)}redirect(e){de.push(e)}popTransactionStack(e){de.popTransactionStack(e)}isOpen(){return Dt.state.open}isTransactionStackEmpty(){return de.state.transactionStack.length===0}static getInstance(){return this.instance}updateFeatures(e){ee.setFeatures(e)}updateRemoteFeatures(e){ee.setRemoteFeatures(e)}updateOptions(e){let n={...ee.state||{},...e};ee.setOptions(n)}setConnectMethodsOrder(e){ee.setConnectMethodsOrder(e)}setWalletFeaturesOrder(e){ee.setWalletFeaturesOrder(e)}setCollapseWallets(e){ee.setCollapseWallets(e)}setSocialsOrder(e){ee.setSocialsOrder(e)}getConnectMethodsOrder(){return Xl.getConnectOrderMethod(ee.state.features,ie.getConnectors())}addNetwork(e,r){if(this.chainAdapters&&!this.chainAdapters[e])throw new Error(`Adapter for namespace ${e} doesn't exist`);let n=this.extendCaipNetwork(r,this.options);this.getCaipNetworks().find(i=>i.id===n.id)||z.addNetwork(n)}removeNetwork(e,r){if(this.chainAdapters&&!this.chainAdapters[e])throw new Error(`Adapter for namespace ${e} doesn't exist`);this.getCaipNetworks().find(i=>i.id===r)&&z.removeNetwork(e,r)}}});var cYe=x(()=>{u();});function G(t){return(e,r)=>typeof r==\\\"object\\\"?OWt(t,e,r):((n,i,s)=>{let o=i.hasOwnProperty(s);return i.constructor.createProperty(s,n),o?Object.getOwnPropertyDescriptor(i,s):void 0})(t,e,r)}var PWt,OWt,kpe=x(()=>{u();iR();PWt={attribute:!0,type:String,converter:nR,reflect:!1,hasChanged:U$},OWt=(t=PWt,e,r)=>{let{kind:n,metadata:i}=r,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),n===\\\"setter\\\"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),n===\\\"accessor\\\"){let{name:o}=r;return{set(a){let c=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,c,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(n===\\\"setter\\\"){let{name:o}=r;return function(a){let c=this[o];e.call(this,a),this.requestUpdate(o,c,t)}}throw Error(\\\"Unsupported decorator location: \\\"+n)}});function xe(t){return G({...t,state:!0,attribute:!1})}var lYe=x(()=>{u();kpe();});var uYe=x(()=>{u();});var s8=x(()=>{u();});var dYe=x(()=>{u();s8();});var fYe=x(()=>{u();s8();});var pYe=x(()=>{u();s8();});var hYe=x(()=>{u();s8();});var mYe=x(()=>{u();s8();});var Ke=x(()=>{u();cYe();kpe();lYe();uYe();dYe();fYe();pYe();hYe();mYe()});var gYe,yYe=x(()=>{u();Q();gYe=we`\\n  :host {\\n    display: flex;\\n    width: inherit;\\n    height: inherit;\\n  }\\n`});var eu,fc,eb=x(()=>{u();Q();Ke();Er();fR();fr();yYe();eu=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},fc=class extends se{render(){return this.style.cssText=`\\n      flex-direction: ${this.flexDirection};\\n      flex-wrap: ${this.flexWrap};\\n      flex-basis: ${this.flexBasis};\\n      flex-grow: ${this.flexGrow};\\n      flex-shrink: ${this.flexShrink};\\n      align-items: ${this.alignItems};\\n      justify-content: ${this.justifyContent};\\n      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\\n      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\\n      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\\n      padding-top: ${this.padding&&Pi.getSpacingStyles(this.padding,0)};\\n      padding-right: ${this.padding&&Pi.getSpacingStyles(this.padding,1)};\\n      padding-bottom: ${this.padding&&Pi.getSpacingStyles(this.padding,2)};\\n      padding-left: ${this.padding&&Pi.getSpacingStyles(this.padding,3)};\\n      margin-top: ${this.margin&&Pi.getSpacingStyles(this.margin,0)};\\n      margin-right: ${this.margin&&Pi.getSpacingStyles(this.margin,1)};\\n      margin-bottom: ${this.margin&&Pi.getSpacingStyles(this.margin,2)};\\n      margin-left: ${this.margin&&Pi.getSpacingStyles(this.margin,3)};\\n    `,$`<slot></slot>`}};fc.styles=[ze,gYe];eu([G()],fc.prototype,\\\"flexDirection\\\",void 0);eu([G()],fc.prototype,\\\"flexWrap\\\",void 0);eu([G()],fc.prototype,\\\"flexBasis\\\",void 0);eu([G()],fc.prototype,\\\"flexGrow\\\",void 0);eu([G()],fc.prototype,\\\"flexShrink\\\",void 0);eu([G()],fc.prototype,\\\"alignItems\\\",void 0);eu([G()],fc.prototype,\\\"justifyContent\\\",void 0);eu([G()],fc.prototype,\\\"columnGap\\\",void 0);eu([G()],fc.prototype,\\\"rowGap\\\",void 0);eu([G()],fc.prototype,\\\"gap\\\",void 0);eu([G()],fc.prototype,\\\"padding\\\",void 0);eu([G()],fc.prototype,\\\"margin\\\",void 0);fc=eu([te(\\\"wui-flex\\\")],fc)});var is=x(()=>{u();eb()});var Re,bYe=x(()=>{u();F0();Re=t=>t??zi});var bn=x(()=>{u();bYe()});var dvn,wYe,vYe,Bpe=x(()=>{u();F0();({I:dvn}=zJe),wYe=t=>t===null||typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\",vYe=t=>t.strings===void 0});var J$,gx,o8,a8=x(()=>{u();J$={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gx=t=>(...e)=>({_$litDirective$:t,values:e}),o8=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}});function NWt(t){this._$AN!==void 0?(Y$(this),this._$AM=t,xYe(this)):this._$AM=t}function kWt(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let s=r;s<n.length;s++)pR(n[s],!1),Y$(n[s]);else n!=null&&(pR(n,!1),Y$(n));else pR(this,t)}var pR,Y$,xYe,BWt,c8,Mpe=x(()=>{u();Bpe();a8();a8();pR=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),pR(n,e);return!0},Y$=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},xYe=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),BWt(e)}};BWt=t=>{t.type==J$.CHILD&&(t._$AP??(t._$AP=kWt),t._$AQ??(t._$AQ=NWt))},c8=class extends o8{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),xYe(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(pR(this,e),Y$(this))}setValue(e){if(vYe(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var X$,eV,EYe=x(()=>{u();X$=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},eV=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??(this.Y=new Promise((e=>this.Z=e)))}resume(){this.Z?.(),this.Y=this.Z=void 0}}});var _Ye,CYe,Dpe,SYe,AYe=x(()=>{u();F0();Bpe();Mpe();EYe();a8();_Ye=t=>!wYe(t)&&typeof t.then==\\\"function\\\",CYe=1073741823,Dpe=class extends c8{constructor(){super(...arguments),this._$Cwt=CYe,this._$Cbt=[],this._$CK=new X$(this),this._$CX=new eV}render(...e){return e.find((r=>!_Ye(r)))??xd}update(e,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let c=r[a];if(!_Ye(c))return this._$Cwt=a,c;a<i&&c===n[a]||(this._$Cwt=CYe,i=0,Promise.resolve(c).then((async l=>{for(;o.get();)await o.get();let d=s.deref();if(d!==void 0){let f=d._$Cbt.indexOf(c);f>-1&&f<d._$Cwt&&(d._$Cwt=f,d.setValue(l))}})))}return xd}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},SYe=gx(Dpe)});var TYe=x(()=>{u();AYe()});var Lpe,tV,IYe=x(()=>{u();Lpe=class{constructor(){this.cache=new Map}set(e,r){this.cache.set(e,r)}get(e){return this.cache.get(e)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}},tV=new Lpe});var RYe,PYe=x(()=>{u();Q();RYe=we`\\n  :host {\\n    display: flex;\\n    aspect-ratio: var(--local-aspect-ratio);\\n    color: var(--local-color);\\n    width: var(--local-width);\\n  }\\n\\n  svg {\\n    width: inherit;\\n    height: inherit;\\n    object-fit: contain;\\n    object-position: center;\\n  }\\n\\n  .fallback {\\n    width: var(--local-width);\\n    height: var(--local-height);\\n  }\\n`});var OYe={};ue(OYe,{addSvg:()=>MWt});var MWt,NYe=x(()=>{u();Q();MWt=Y`<svg\\n  width=\\\"14\\\"\\n  height=\\\"14\\\"\\n  viewBox=\\\"0 0 14 14\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n>\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z\\\"\\n    fill=\\\"#667dff\\\"\\n  /></svg\\n>`});var kYe={};ue(kYe,{allWalletsSvg:()=>DWt});var DWt,BYe=x(()=>{u();Q();DWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 24 24\\\">\\n  <path\\n    style=\\\"fill: var(--wui-color-accent-100);\\\"\\n    d=\\\"M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z\\\"\\n  />\\n</svg>`});var MYe={};ue(MYe,{arrowBottomCircleSvg:()=>LWt});var LWt,DYe=x(()=>{u();Q();LWt=Y`<svg\\n  fill=\\\"none\\\"\\n  viewBox=\\\"0 0 21 20\\\"\\n>\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  /></svg\\n>`});var LYe={};ue(LYe,{appStoreSvg:()=>UWt});var UWt,UYe=x(()=>{u();Q();UWt=Y`\\n<svg width=\\\"36\\\" height=\\\"36\\\">\\n  <path\\n    d=\\\"M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z\\\"\\n    fill=\\\"url(#a)\\\"\\n  />\\n  <path\\n    d=\\\"m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z\\\"\\n    fill=\\\"#fff\\\"\\n  />\\n  <defs>\\n    <linearGradient id=\\\"a\\\" x1=\\\"18\\\" y1=\\\"0\\\" x2=\\\"18\\\" y2=\\\"36\\\" gradientUnits=\\\"userSpaceOnUse\\\">\\n      <stop stop-color=\\\"#18BFFB\\\" />\\n      <stop offset=\\\"1\\\" stop-color=\\\"#2072F3\\\" />\\n    </linearGradient>\\n  </defs>\\n</svg>`});var FYe={};ue(FYe,{appleSvg:()=>FWt});var FWt,jYe=x(()=>{u();Q();FWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <g clip-path=\\\"url(#b)\\\">\\n      <circle cx=\\\"20\\\" cy=\\\"19.89\\\" r=\\\"20\\\" fill=\\\"#000\\\" />\\n      <g clip-path=\\\"url(#c)\\\">\\n        <path\\n          fill=\\\"#fff\\\"\\n          d=\\\"M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z\\\"\\n        />\\n      </g>\\n    </g>\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><rect width=\\\"40\\\" height=\\\"40\\\" fill=\\\"#fff\\\" rx=\\\"20\\\" /></clipPath>\\n    <clipPath id=\\\"b\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h40v40H0z\\\" /></clipPath>\\n    <clipPath id=\\\"c\\\"><path fill=\\\"#fff\\\" d=\\\"M8 7.89h24v24H8z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var HYe={};ue(HYe,{arrowBottomSvg:()=>jWt});var jWt,qYe=x(()=>{u();Q();jWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var zYe={};ue(zYe,{arrowLeftSvg:()=>HWt});var HWt,$Ye=x(()=>{u();Q();HWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var VYe={};ue(VYe,{arrowRightSvg:()=>qWt});var qWt,WYe=x(()=>{u();Q();qWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var GYe={};ue(GYe,{arrowTopSvg:()=>zWt});var zWt,KYe=x(()=>{u();Q();zWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var ZYe={};ue(ZYe,{bankSvg:()=>$Wt});var $Wt,QYe=x(()=>{u();Q();$Wt=Y`<svg\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  width=\\\"12\\\"\\n  height=\\\"13\\\"\\n  viewBox=\\\"0 0 12 13\\\"\\n  fill=\\\"none\\\"\\n>\\n  <path\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z\\\"\\n    fill=\\\"currentColor\\\"\\n  /></svg\\n>`});var JYe={};ue(JYe,{browserSvg:()=>VWt});var VWt,YYe=x(()=>{u();Q();VWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var XYe={};ue(XYe,{cardSvg:()=>WWt});var WWt,eXe=x(()=>{u();Q();WWt=Y`<svg\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  width=\\\"12\\\"\\n  height=\\\"13\\\"\\n  viewBox=\\\"0 0 12 13\\\"\\n  fill=\\\"none\\\"\\n>\\n  <path\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.80916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z\\\"\\n    fill=\\\"currentColor\\\"\\n  /></svg\\n>`});var tXe={};ue(tXe,{checkmarkSvg:()=>GWt});var GWt,rXe=x(()=>{u();Q();GWt=Y`<svg\\n  width=\\\"28\\\"\\n  height=\\\"28\\\"\\n  viewBox=\\\"0 0 28 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n  <path\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M25.5297 4.92733C26.1221 5.4242 26.1996 6.30724 25.7027 6.89966L12.2836 22.8997C12.0316 23.2001 11.6652 23.3811 11.2735 23.3986C10.8817 23.4161 10.5006 23.2686 10.2228 22.9919L2.38218 15.1815C1.83439 14.6358 1.83268 13.7494 2.37835 13.2016C2.92403 12.6538 3.81046 12.6521 4.35825 13.1978L11.1183 19.9317L23.5573 5.10036C24.0542 4.50794 24.9372 4.43047 25.5297 4.92733Z\\\"\\n    fill=\\\"currentColor\\\"/>\\n</svg>\\n`});var nXe={};ue(nXe,{checkmarkBoldSvg:()=>KWt});var KWt,iXe=x(()=>{u();Q();KWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 14\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M12.9576 2.23383C13.3807 2.58873 13.4361 3.21947 13.0812 3.64263L6.37159 11.6426C6.19161 11.8572 5.92989 11.9865 5.65009 11.999C5.3703 12.0115 5.09808 11.9062 4.89965 11.7085L0.979321 7.80331C0.588042 7.41354 0.586817 6.78038 0.976585 6.3891C1.36635 5.99782 1.99952 5.99659 2.3908 6.38636L5.53928 9.52268L11.5488 2.35742C11.9037 1.93426 12.5344 1.87893 12.9576 2.23383Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var sXe={};ue(sXe,{chevronBottomSvg:()=>ZWt});var ZWt,oXe=x(()=>{u();Q();ZWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var aXe={};ue(aXe,{chevronLeftSvg:()=>QWt});var QWt,cXe=x(()=>{u();Q();QWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var lXe={};ue(lXe,{chevronRightSvg:()=>JWt});var JWt,uXe=x(()=>{u();Q();JWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var dXe={};ue(dXe,{chevronTopSvg:()=>YWt});var YWt,fXe=x(()=>{u();Q();YWt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var pXe={};ue(pXe,{chromeStoreSvg:()=>XWt});var XWt,hXe=x(()=>{u();Q();XWt=Y`<svg width=\\\"36\\\" height=\\\"36\\\" fill=\\\"none\\\">\\n  <path\\n    fill=\\\"#fff\\\"\\n    fill-opacity=\\\".05\\\"\\n    d=\\\"M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z\\\"\\n  />\\n  <path\\n    stroke=\\\"#fff\\\"\\n    stroke-opacity=\\\".05\\\"\\n    d=\\\"M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z\\\"\\n  />\\n  <path\\n    fill=\\\"url(#a)\\\"\\n    d=\\\"M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z\\\"\\n  />\\n  <path\\n    fill=\\\"url(#b)\\\"\\n    d=\\\"m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z\\\"\\n  />\\n  <path\\n    fill=\\\"url(#c)\\\"\\n    d=\\\"M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z\\\"\\n  />\\n  <path fill=\\\"#fff\\\" d=\\\"M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z\\\" />\\n  <path fill=\\\"#1A73E8\\\" d=\\\"M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z\\\" />\\n  <defs>\\n    <linearGradient\\n      id=\\\"a\\\"\\n      x1=\\\"6.294\\\"\\n      x2=\\\"41.1\\\"\\n      y1=\\\"5.995\\\"\\n      y2=\\\"5.995\\\"\\n      gradientUnits=\\\"userSpaceOnUse\\\"\\n    >\\n      <stop stop-color=\\\"#D93025\\\" />\\n      <stop offset=\\\"1\\\" stop-color=\\\"#EA4335\\\" />\\n    </linearGradient>\\n    <linearGradient\\n      id=\\\"b\\\"\\n      x1=\\\"20.953\\\"\\n      x2=\\\"37.194\\\"\\n      y1=\\\"32.143\\\"\\n      y2=\\\"2.701\\\"\\n      gradientUnits=\\\"userSpaceOnUse\\\"\\n    >\\n      <stop stop-color=\\\"#FCC934\\\" />\\n      <stop offset=\\\"1\\\" stop-color=\\\"#FBBC04\\\" />\\n    </linearGradient>\\n    <linearGradient\\n      id=\\\"c\\\"\\n      x1=\\\"25.873\\\"\\n      x2=\\\"9.632\\\"\\n      y1=\\\"31.2\\\"\\n      y2=\\\"1.759\\\"\\n      gradientUnits=\\\"userSpaceOnUse\\\"\\n    >\\n      <stop stop-color=\\\"#1E8E3E\\\" />\\n      <stop offset=\\\"1\\\" stop-color=\\\"#34A853\\\" />\\n    </linearGradient>\\n  </defs>\\n</svg>`});var mXe={};ue(mXe,{clockSvg:()=>eGt});var eGt,gXe=x(()=>{u();Q();eGt=Y`<svg width=\\\"14\\\" height=\\\"14\\\" viewBox=\\\"0 0 14 14\\\" fill=\\\"none\\\">\\n  <path \\n    fill-rule=\\\"evenodd\\\" \\n    clip-rule=\\\"evenodd\\\" \\n    d=\\\"M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z\\\" \\n    fill=\\\"currentColor\\\"\\n  />\\n</svg>`});var yXe={};ue(yXe,{closeSvg:()=>tGt});var tGt,bXe=x(()=>{u();Q();tGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var wXe={};ue(wXe,{compassSvg:()=>rGt});var rGt,vXe=x(()=>{u();Q();rGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var xXe={};ue(xXe,{coinPlaceholderSvg:()=>nGt});var nGt,EXe=x(()=>{u();Q();nGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var _Xe={};ue(_Xe,{copySvg:()=>iGt});var iGt,CXe=x(()=>{u();Q();iGt=Y`<svg\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  width=\\\"16\\\"\\n  height=\\\"16\\\"\\n  viewBox=\\\"0 0 16 16\\\"\\n  fill=\\\"none\\\"\\n>\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M9.21498 1.28565H10.5944C11.1458 1.28562 11.6246 1.2856 12.0182 1.32093C12.4353 1.35836 12.853 1.44155 13.2486 1.66724C13.7005 1.92498 14.0749 2.29935 14.3326 2.75122C14.5583 3.14689 14.6415 3.56456 14.6789 3.9817C14.7143 4.37531 14.7142 4.85403 14.7142 5.40545V6.78489C14.7142 7.33631 14.7143 7.81503 14.6789 8.20865C14.6415 8.62578 14.5583 9.04345 14.3326 9.43912C14.0749 9.89099 13.7005 10.2654 13.2486 10.5231C12.853 10.7488 12.4353 10.832 12.0182 10.8694C11.7003 10.8979 11.3269 10.9034 10.9045 10.9045C10.9034 11.3269 10.8979 11.7003 10.8694 12.0182C10.832 12.4353 10.7488 12.853 10.5231 13.2486C10.2654 13.7005 9.89099 14.0749 9.43912 14.3326C9.04345 14.5583 8.62578 14.6415 8.20865 14.6789C7.81503 14.7143 7.33631 14.7142 6.78489 14.7142H5.40545C4.85403 14.7142 4.37531 14.7143 3.9817 14.6789C3.56456 14.6415 3.14689 14.5583 2.75122 14.3326C2.29935 14.0749 1.92498 13.7005 1.66724 13.2486C1.44155 12.853 1.35836 12.4353 1.32093 12.0182C1.2856 11.6246 1.28562 11.1458 1.28565 10.5944V9.21498C1.28562 8.66356 1.2856 8.18484 1.32093 7.79122C1.35836 7.37409 1.44155 6.95642 1.66724 6.56074C1.92498 6.10887 2.29935 5.73451 2.75122 5.47677C3.14689 5.25108 3.56456 5.16789 3.9817 5.13045C4.2996 5.10192 4.67301 5.09645 5.09541 5.09541C5.09645 4.67302 5.10192 4.2996 5.13045 3.9817C5.16789 3.56456 5.25108 3.14689 5.47676 2.75122C5.73451 2.29935 6.10887 1.92498 6.56074 1.66724C6.95642 1.44155 7.37409 1.35836 7.79122 1.32093C8.18484 1.2856 8.66356 1.28562 9.21498 1.28565ZM5.09541 7.09552C4.68397 7.09667 4.39263 7.10161 4.16046 7.12245C3.88053 7.14757 3.78516 7.18949 3.74214 7.21403C3.60139 7.29431 3.48478 7.41091 3.4045 7.55166C3.37997 7.59468 3.33804 7.69005 3.31292 7.96999C3.28659 8.26345 3.28565 8.65147 3.28565 9.25708V10.5523C3.28565 11.1579 3.28659 11.5459 3.31292 11.8394C3.33804 12.1193 3.37997 12.2147 3.4045 12.2577C3.48478 12.3985 3.60139 12.5151 3.74214 12.5954C3.78516 12.6199 3.88053 12.6618 4.16046 12.6869C4.45393 12.7133 4.84195 12.7142 5.44755 12.7142H6.74279C7.3484 12.7142 7.73641 12.7133 8.02988 12.6869C8.30981 12.6618 8.40518 12.6199 8.44821 12.5954C8.58895 12.5151 8.70556 12.3985 8.78584 12.2577C8.81038 12.2147 8.8523 12.1193 8.87742 11.8394C8.89825 11.6072 8.90319 11.3159 8.90435 10.9045C8.48219 10.9034 8.10898 10.8979 7.79122 10.8694C7.37409 10.832 6.95641 10.7488 6.56074 10.5231C6.10887 10.2654 5.73451 9.89099 5.47676 9.43912C5.25108 9.04345 5.16789 8.62578 5.13045 8.20865C5.10194 7.89089 5.09645 7.51767 5.09541 7.09552ZM7.96999 3.31292C7.69005 3.33804 7.59468 3.37997 7.55166 3.4045C7.41091 3.48478 7.29431 3.60139 7.21403 3.74214C7.18949 3.78516 7.14757 3.88053 7.12245 4.16046C7.09611 4.45393 7.09517 4.84195 7.09517 5.44755V6.74279C7.09517 7.3484 7.09611 7.73641 7.12245 8.02988C7.14757 8.30981 7.18949 8.40518 7.21403 8.4482C7.29431 8.58895 7.41091 8.70556 7.55166 8.78584C7.59468 8.81038 7.69005 8.8523 7.96999 8.87742C8.26345 8.90376 8.65147 8.9047 9.25708 8.9047H10.5523C11.1579 8.9047 11.5459 8.90376 11.8394 8.87742C12.1193 8.8523 12.2147 8.81038 12.2577 8.78584C12.3985 8.70556 12.5151 8.58895 12.5954 8.4482C12.6199 8.40518 12.6618 8.30981 12.6869 8.02988C12.7133 7.73641 12.7142 7.3484 12.7142 6.74279V5.44755C12.7142 4.84195 12.7133 4.45393 12.6869 4.16046C12.6618 3.88053 12.6199 3.78516 12.5954 3.74214C12.5151 3.60139 12.3985 3.48478 12.2577 3.4045C12.2147 3.37997 12.1193 3.33804 11.8394 3.31292C11.5459 3.28659 11.1579 3.28565 10.5523 3.28565H9.25708C8.65147 3.28565 8.26345 3.28659 7.96999 3.31292Z\\\"\\n    fill=\\\"#788181\\\"\\n  /></svg\\n>`});var SXe={};ue(SXe,{cursorSvg:()=>sGt});var sGt,AXe=x(()=>{u();Q();sGt=Y` <svg fill=\\\"none\\\" viewBox=\\\"0 0 13 4\\\">\\n  <path fill=\\\"currentColor\\\" d=\\\"M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z\\\" />\\n</svg>`});var TXe={};ue(TXe,{cursorTransparentSvg:()=>oGt});var oGt,IXe=x(()=>{u();Q();oGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 6\\\">\\n  <path style=\\\"fill: var(--wui-color-bg-150);\\\" d=\\\"M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z\\\" />\\n  <path\\n    style=\\\"stroke: var(--wui-color-inverse-100);\\\"\\n    stroke-opacity=\\\".05\\\"\\n    d=\\\"M1.33 1.5h11.32L8.88 4.75l-.01.01a2.81 2.81 0 0 1-3.8 0l-.02-.01L1.33 1.5Z\\\"\\n  />\\n  <path\\n    style=\\\"fill: var(--wui-color-bg-150);\\\"\\n    d=\\\"M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z\\\"\\n  />\\n</svg> `});var RXe={};ue(RXe,{desktopSvg:()=>aGt});var aGt,PXe=x(()=>{u();Q();aGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n  <path fill=\\\"currentColor\\\" d=\\\"M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z\\\" />\\n</svg>`});var OXe={};ue(OXe,{disconnectSvg:()=>cGt});var cGt,NXe=x(()=>{u();Q();cGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var kXe={};ue(kXe,{discordSvg:()=>lGt});var lGt,BXe=x(()=>{u();Q();lGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <g clip-path=\\\"url(#b)\\\">\\n      <circle cx=\\\"20\\\" cy=\\\"19.89\\\" r=\\\"20\\\" fill=\\\"#5865F2\\\" />\\n      <path\\n        fill=\\\"#fff\\\"\\n        fill-rule=\\\"evenodd\\\"\\n        d=\\\"M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z\\\"\\n        clip-rule=\\\"evenodd\\\"\\n      />\\n    </g>\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><rect width=\\\"40\\\" height=\\\"40\\\" fill=\\\"#fff\\\" rx=\\\"20\\\" /></clipPath>\\n    <clipPath id=\\\"b\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h40v40H0z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var MXe={};ue(MXe,{etherscanSvg:()=>uGt});var uGt,DXe=x(()=>{u();Q();uGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z\\\"\\n  />\\n</svg>`});var LXe={};ue(LXe,{extensionSvg:()=>dGt});var dGt,UXe=x(()=>{u();Q();dGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var FXe={};ue(FXe,{externalLinkSvg:()=>fGt});var fGt,jXe=x(()=>{u();Q();fGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var HXe={};ue(HXe,{facebookSvg:()=>pGt});var pGt,qXe=x(()=>{u();Q();pGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <g clip-path=\\\"url(#b)\\\">\\n      <circle cx=\\\"20\\\" cy=\\\"19.89\\\" r=\\\"20\\\" fill=\\\"#1877F2\\\" />\\n      <g clip-path=\\\"url(#c)\\\">\\n        <path\\n          fill=\\\"#fff\\\"\\n          d=\\\"M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H21.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z\\\"\\n        />\\n      </g>\\n    </g>\\n    <path\\n      fill=\\\"#1877F2\\\"\\n      d=\\\"M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z\\\"\\n    />\\n    <path\\n      fill=\\\"#fff\\\"\\n      d=\\\"m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z\\\"\\n    />\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><rect width=\\\"40\\\" height=\\\"40\\\" fill=\\\"#fff\\\" rx=\\\"20\\\" /></clipPath>\\n    <clipPath id=\\\"b\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h40v40H0z\\\" /></clipPath>\\n    <clipPath id=\\\"c\\\"><path fill=\\\"#fff\\\" d=\\\"M8 7.89h24v24H8z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var zXe={};ue(zXe,{farcasterSvg:()=>hGt});var hGt,$Xe=x(()=>{u();Q();hGt=Y`<svg style=\\\"border-radius: 9999px; overflow: hidden;\\\"  fill=\\\"none\\\" viewBox=\\\"0 0 1000 1000\\\">\\n  <rect width=\\\"1000\\\" height=\\\"1000\\\" rx=\\\"9999\\\" ry=\\\"9999\\\" fill=\\\"#855DCD\\\"/>\\n  <path fill=\\\"#855DCD\\\" d=\\\"M0 0h1000v1000H0V0Z\\\" />\\n  <path\\n    fill=\\\"#fff\\\"\\n    d=\\\"M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z\\\"\\n  />\\n  <path\\n    fill=\\\"#fff\\\"\\n    d=\\\"m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z\\\"\\n  />\\n</svg>`});var VXe={};ue(VXe,{filtersSvg:()=>mGt});var mGt,WXe=x(()=>{u();Q();mGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var GXe={};ue(GXe,{githubSvg:()=>gGt});var gGt,KXe=x(()=>{u();Q();gGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <g clip-path=\\\"url(#b)\\\">\\n      <circle cx=\\\"20\\\" cy=\\\"19.89\\\" r=\\\"20\\\" fill=\\\"#1B1F23\\\" />\\n      <g clip-path=\\\"url(#c)\\\">\\n        <path\\n          fill=\\\"#fff\\\"\\n          d=\\\"M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z\\\"\\n        />\\n      </g>\\n    </g>\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><rect width=\\\"40\\\" height=\\\"40\\\" fill=\\\"#fff\\\" rx=\\\"20\\\" /></clipPath>\\n    <clipPath id=\\\"b\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h40v40H0z\\\" /></clipPath>\\n    <clipPath id=\\\"c\\\"><path fill=\\\"#fff\\\" d=\\\"M8 7.89h24v24H8z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var ZXe={};ue(ZXe,{googleSvg:()=>yGt});var yGt,QXe=x(()=>{u();Q();yGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <path\\n    fill=\\\"#4285F4\\\"\\n    d=\\\"M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z\\\"\\n  />\\n  <path\\n    fill=\\\"#34A853\\\"\\n    d=\\\"M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z\\\"\\n  />\\n  <path\\n    fill=\\\"#FBBC05\\\"\\n    d=\\\"M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z\\\"\\n  />\\n  <path\\n    fill=\\\"#EA4335\\\"\\n    d=\\\"M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z\\\"\\n  />\\n</svg>`});var JXe={};ue(JXe,{helpCircleSvg:()=>bGt});var bGt,YXe=x(()=>{u();Q();bGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z\\\"\\n  />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var XXe={};ue(XXe,{imageSvg:()=>wGt});var wGt,eet=x(()=>{u();Q();wGt=Y`<svg width=\\\"14\\\" height=\\\"14\\\" viewBox=\\\"0 0 14 14\\\" fill=\\\"none\\\">\\n  <path d=\\\"M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z\\\" fill=\\\"currentColor\\\"/>\\n  <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z\\\" fill=\\\"currentColor\\\"/>\\n</svg>`});var tet={};ue(tet,{idSvg:()=>vGt});var vGt,ret=x(()=>{u();Q();vGt=Y`<svg\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n width=\\\"28\\\"\\n height=\\\"28\\\"\\n viewBox=\\\"0 0 28 28\\\"\\n fill=\\\"none\\\">\\n  <path\\n    fill=\\\"#949E9E\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M7.974 2.975h12.052c1.248 0 2.296 0 3.143.092.89.096 1.723.307 2.461.844a4.9 4.9 0 0 1 1.084 1.084c.537.738.748 1.57.844 2.461.092.847.092 1.895.092 3.143v6.802c0 1.248 0 2.296-.092 3.143-.096.89-.307 1.723-.844 2.461a4.9 4.9 0 0 1-1.084 1.084c-.738.537-1.57.748-2.461.844-.847.092-1.895.092-3.143.092H7.974c-1.247 0-2.296 0-3.143-.092-.89-.096-1.723-.307-2.461-.844a4.901 4.901 0 0 1-1.084-1.084c-.537-.738-.748-1.571-.844-2.461C.35 19.697.35 18.649.35 17.4v-6.802c0-1.248 0-2.296.092-3.143.096-.89.307-1.723.844-2.461A4.9 4.9 0 0 1 2.37 3.91c.738-.537 1.571-.748 2.461-.844.847-.092 1.895-.092 3.143-.092ZM5.133 5.85c-.652.071-.936.194-1.117.326a2.1 2.1 0 0 0-.465.465c-.132.181-.255.465-.325 1.117-.074.678-.076 1.573-.076 2.917v6.65c0 1.344.002 2.239.076 2.917.07.652.193.936.325 1.117a2.1 2.1 0 0 0 .465.465c.181.132.465.255 1.117.326.678.073 1.574.075 2.917.075h11.9c1.344 0 2.239-.002 2.917-.075.652-.071.936-.194 1.117-.326.179-.13.335-.286.465-.465.132-.181.255-.465.326-1.117.073-.678.075-1.573.075-2.917v-6.65c0-1.344-.002-2.239-.075-2.917-.071-.652-.194-.936-.326-1.117a2.1 2.1 0 0 0-.465-.465c-.181-.132-.465-.255-1.117-.326-.678-.073-1.573-.075-2.917-.075H8.05c-1.343 0-2.239.002-2.917.075Zm.467 7.275a3.15 3.15 0 1 1 6.3 0 3.15 3.15 0 0 1-6.3 0Zm8.75-1.75a1.4 1.4 0 0 1 1.4-1.4h3.5a1.4 1.4 0 0 1 0 2.8h-3.5a1.4 1.4 0 0 1-1.4-1.4Zm0 5.25a1.4 1.4 0 0 1 1.4-1.4H21a1.4 1.4 0 1 1 0 2.8h-5.25a1.4 1.4 0 0 1-1.4-1.4Z\\\"\\n    clip-rule=\\\"evenodd\\\"/>\\n</svg>`});var net={};ue(net,{infoCircleSvg:()=>xGt});var xGt,iet=x(()=>{u();Q();xGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 15\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z\\\"\\n  />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var set={};ue(set,{lightbulbSvg:()=>EGt});var EGt,oet=x(()=>{u();Q();EGt=Y`<svg width=\\\"10\\\" height=\\\"10\\\" viewBox=\\\"0 0 10 10\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z\\\" fill=\\\"#949E9E\\\"/>\\n</svg>`});var aet={};ue(aet,{mailSvg:()=>_Gt});var _Gt,cet=x(()=>{u();Q();_Gt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var uet={};ue(uet,{mobileSvg:()=>CGt});var CGt,det=x(()=>{u();Q();CGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path fill=\\\"currentColor\\\" d=\\\"M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z\\\" />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var fet={};ue(fet,{moreSvg:()=>SGt});var SGt,pet=x(()=>{u();Q();SGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 41 40\\\">\\n  <path\\n    style=\\\"fill: var(--wui-color-fg-100);\\\"\\n    fill-opacity=\\\".05\\\"\\n    d=\\\"M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z\\\"\\n  />\\n  <path\\n    fill=\\\"#949E9E\\\"\\n    d=\\\"M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z\\\"\\n  />\\n</svg>`});var het={};ue(het,{networkPlaceholderSvg:()=>AGt});var AGt,met=x(()=>{u();Q();AGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 22 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var get={};ue(get,{nftPlaceholderSvg:()=>TGt});var TGt,yet=x(()=>{u();Q();TGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var bet={};ue(bet,{offSvg:()=>IGt});var IGt,wet=x(()=>{u();Q();IGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var vet={};ue(vet,{playStoreSvg:()=>RGt});var RGt,xet=x(()=>{u();Q();RGt=Y` <svg\\n  width=\\\"36\\\"\\n  height=\\\"36\\\"\\n  fill=\\\"none\\\"\\n>\\n  <path\\n    d=\\\"M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z\\\"\\n    fill=\\\"#fff\\\"\\n    fill-opacity=\\\".05\\\"\\n  />\\n  <path\\n    d=\\\"m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z\\\"\\n    fill=\\\"#EA4335\\\"\\n  />\\n  <path\\n    d=\\\"m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z\\\"\\n    fill=\\\"#FBBC04\\\"\\n  />\\n  <path\\n    d=\\\"M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z\\\"\\n    fill=\\\"#4285F4\\\"\\n  />\\n  <path\\n    d=\\\"m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z\\\"\\n    fill=\\\"#34A853\\\"\\n  />\\n  <path\\n    d=\\\"M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z\\\"\\n    stroke=\\\"#fff\\\"\\n    stroke-opacity=\\\".05\\\"\\n  />\\n</svg>`});var Eet={};ue(Eet,{plusSvg:()=>PGt});var PGt,_et=x(()=>{u();Q();PGt=Y`<svg\\n  width=\\\"13\\\"\\n  height=\\\"12\\\"\\n  viewBox=\\\"0 0 13 12\\\"\\n  fill=\\\"none\\\"\\n>\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z\\\"\\n  /></svg\\n>`});var Cet={};ue(Cet,{qrCodeIcon:()=>OGt});var OGt,Aet=x(()=>{u();Q();OGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z\\\"\\n  />\\n</svg>`});var Tet={};ue(Tet,{recycleHorizontalSvg:()=>NGt});var NGt,Iet=x(()=>{u();Q();NGt=Y`<svg\\n  fill=\\\"none\\\"\\n  viewBox=\\\"0 0 21 20\\\"\\n>\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z\\\"\\n  /></svg\\n>`});var Ret={};ue(Ret,{refreshSvg:()=>kGt});var kGt,Pet=x(()=>{u();Q();kGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var Oet={};ue(Oet,{searchSvg:()=>BGt});var BGt,Net=x(()=>{u();Q();BGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var ket={};ue(ket,{sendSvg:()=>MGt});var MGt,Bet=x(()=>{u();Q();MGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 21 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M14.3808 4.34812C13.72 4.47798 12.8501 4.7587 11.5748 5.17296L9.00869 6.00646C6.90631 6.68935 5.40679 7.17779 4.38121 7.63178C3.87166 7.85734 3.5351 8.05091 3.32022 8.22035C3.11183 8.38466 3.07011 8.48486 3.05969 8.51817C2.98058 8.77103 2.98009 9.04195 3.05831 9.29509C3.06861 9.32844 3.10998 9.42878 3.31777 9.59384C3.53205 9.76404 3.86792 9.95881 4.37667 10.1862C5.29287 10.5957 6.58844 11.0341 8.35529 11.6164L10.8876 8.59854C11.2426 8.17547 11.8733 8.12028 12.2964 8.47528C12.7195 8.83029 12.7746 9.46104 12.4196 9.88412L9.88738 12.9019C10.7676 14.5408 11.4244 15.7406 11.9867 16.5718C12.299 17.0333 12.5491 17.3303 12.7539 17.5117C12.9526 17.6877 13.0586 17.711 13.0932 17.7154C13.3561 17.7484 13.6228 17.7009 13.8581 17.5791C13.8891 17.563 13.9805 17.5046 14.1061 17.2708C14.2357 17.0298 14.3679 16.6647 14.5015 16.1237C14.7705 15.0349 14.9912 13.4733 15.2986 11.2843L15.6738 8.61249C15.8603 7.28456 15.9857 6.37917 15.9989 5.7059C16.012 5.03702 15.9047 4.8056 15.8145 4.69183C15.7044 4.55297 15.5673 4.43792 15.4114 4.35365C15.2837 4.28459 15.0372 4.2191 14.3808 4.34812ZM7.99373 13.603C6.11919 12.9864 4.6304 12.4902 3.5606 12.0121C2.98683 11.7557 2.4778 11.4808 2.07383 11.1599C1.66337 10.8339 1.31312 10.4217 1.14744 9.88551C0.949667 9.24541 0.950886 8.56035 1.15094 7.92096C1.31852 7.38534 1.67024 6.97442 2.08185 6.64985C2.48697 6.33041 2.99697 6.05734 3.57166 5.80295C4.70309 5.3021 6.30179 4.78283 8.32903 4.12437L11.0196 3.25042C12.2166 2.86159 13.2017 2.54158 13.9951 2.38566C14.8065 2.22618 15.6202 2.19289 16.3627 2.59437C16.7568 2.80747 17.1035 3.09839 17.3818 3.4495C17.9062 4.111 18.0147 4.91815 17.9985 5.74496C17.9827 6.55332 17.8386 7.57903 17.6636 8.82534L17.2701 11.6268C16.9737 13.7376 16.7399 15.4022 16.4432 16.6034C16.2924 17.2135 16.1121 17.7632 15.8678 18.2176C15.6197 18.6794 15.2761 19.0971 14.7777 19.3551C14.1827 19.6632 13.5083 19.7833 12.8436 19.6997C12.2867 19.6297 11.82 19.3563 11.4277 19.0087C11.0415 18.6666 10.6824 18.213 10.3302 17.6925C9.67361 16.722 8.92648 15.342 7.99373 13.603Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n  <svg\\n    xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n    width=\\\"21\\\"\\n    height=\\\"20\\\"\\n    viewBox=\\\"0 0 21 20\\\"\\n    fill=\\\"none\\\"\\n  ></svg></svg\\n>`});var Met={};ue(Met,{swapHorizontalSvg:()=>DGt});var DGt,Det=x(()=>{u();Q();DGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var Let={};ue(Let,{swapHorizontalMediumSvg:()=>LGt});var LGt,Uet=x(()=>{u();Q();LGt=Y`<svg\\n  width=\\\"14\\\"\\n  height=\\\"14\\\"\\n  viewBox=\\\"0 0 14 14\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n>\\n  <path\\n    fill-rule=\\\"evenodd\\\"\\n    clip-rule=\\\"evenodd\\\"\\n    d=\\\"M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z\\\"\\n    fill=\\\"currentColor\\\"\\n  />\\n</svg>\\n\\n`});var Fet={};ue(Fet,{swapHorizontalBoldSvg:()=>UGt});var UGt,jet=x(()=>{u();Q();UGt=Y`<svg width=\\\"10\\\" height=\\\"10\\\" viewBox=\\\"0 0 10 10\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var Het={};ue(Het,{swapHorizontalRoundedBoldSvg:()=>FGt});var FGt,qet=x(()=>{u();Q();FGt=Y`<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"none\\\">\\n  <path \\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\" \\n    clip-rule=\\\"evenodd\\\" \\n    d=\\\"M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z\\\" \\n  />\\n</svg>`});var zet={};ue(zet,{swapVerticalSvg:()=>jGt});var jGt,$et=x(()=>{u();Q();jGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 14\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var Vet={};ue(Vet,{telegramSvg:()=>HGt});var HGt,Wet=x(()=>{u();Q();HGt=Y`<svg width=\\\"32\\\" height=\\\"32\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <path fill=\\\"url(#b)\\\" d=\\\"M0 0h32v32H0z\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z\\\" fill=\\\"#fff\\\"/>\\n  </g>\\n  <path d=\\\"M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z\\\" stroke=\\\"#141414\\\" stroke-opacity=\\\".05\\\"/>\\n  <defs>\\n    <linearGradient id=\\\"b\\\" x1=\\\"1600\\\" y1=\\\"0\\\" x2=\\\"1600\\\" y2=\\\"3176.27\\\" gradientUnits=\\\"userSpaceOnUse\\\">\\n      <stop stop-color=\\\"#2AABEE\\\"/>\\n      <stop offset=\\\"1\\\" stop-color=\\\"#229ED9\\\"/>\\n    </linearGradient>\\n    <clipPath id=\\\"a\\\">\\n      <path d=\\\"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z\\\" fill=\\\"#fff\\\"/>\\n    </clipPath>\\n  </defs>\\n</svg>`});var Get={};ue(Get,{threeDotsSvg:()=>qGt});var qGt,Ket=x(()=>{u();Q();qGt=Y`<svg width=\\\"14\\\" height=\\\"15\\\" viewBox=\\\"0 0 14 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n  <path d=\\\"M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z\\\" fill=\\\"#949E9E\\\"/>\\n  <path d=\\\"M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z\\\" fill=\\\"#949E9E\\\"/>\\n  <path d=\\\"M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z\\\" fill=\\\"#949E9E\\\"/>\\n</svg>`});var Zet={};ue(Zet,{twitchSvg:()=>zGt});var zGt,Qet=x(()=>{u();Q();zGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 40 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <g clip-path=\\\"url(#b)\\\">\\n      <circle cx=\\\"20\\\" cy=\\\"19.89\\\" r=\\\"20\\\" fill=\\\"#5A3E85\\\" />\\n      <g clip-path=\\\"url(#c)\\\">\\n        <path\\n          fill=\\\"#fff\\\"\\n          d=\\\"M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z\\\"\\n        />\\n      </g>\\n    </g>\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><rect width=\\\"40\\\" height=\\\"40\\\" fill=\\\"#fff\\\" rx=\\\"20\\\" /></clipPath>\\n    <clipPath id=\\\"b\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h40v40H0z\\\" /></clipPath>\\n    <clipPath id=\\\"c\\\"><path fill=\\\"#fff\\\" d=\\\"M8 7.89h24v24H8z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var Upe={};ue(Upe,{xSvg:()=>$Gt});var $Gt,Fpe=x(()=>{u();Q();$Gt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 41 40\\\">\\n  <g clip-path=\\\"url(#a)\\\">\\n    <path fill=\\\"#000\\\" d=\\\"M.8 0h40v40H.8z\\\" />\\n    <path\\n      fill=\\\"#fff\\\"\\n      d=\\\"m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z\\\"\\n    />\\n  </g>\\n  <defs>\\n    <clipPath id=\\\"a\\\"><path fill=\\\"#fff\\\" d=\\\"M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z\\\" /></clipPath>\\n  </defs>\\n</svg>`});var Jet={};ue(Jet,{twitterIconSvg:()=>VGt});var VGt,Yet=x(()=>{u();Q();VGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 16 16\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z\\\"\\n  />\\n</svg>`});var Xet={};ue(Xet,{verifySvg:()=>WGt});var WGt,ett=x(()=>{u();Q();WGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 28 28\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var ttt={};ue(ttt,{verifyFilledSvg:()=>GGt});var GGt,rtt=x(()=>{u();Q();GGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 14 14\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var ntt={};ue(ntt,{walletSvg:()=>KGt});var KGt,itt=x(()=>{u();Q();KGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var rV={};ue(rV,{walletConnectBrownSvg:()=>JGt,walletConnectLightBrownSvg:()=>QGt,walletConnectSvg:()=>ZGt});var ZGt,QGt,JGt,nV=x(()=>{u();Q();ZGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 96 67\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z\\\"\\n  />\\n  <path\\n    stroke=\\\"#000\\\"\\n    stroke-opacity=\\\".1\\\"\\n    d=\\\"M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z\\\"\\n  />\\n</svg>`,QGt=Y`\\n<svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<g clip-path=\\\"url(#clip0_22274_4692)\\\">\\n<path d=\\\"M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z\\\" fill=\\\"#C7B994\\\"/>\\n<path d=\\\"M4.49038 5.76609C6.42869 3.86833 9.5713 3.86833 11.5096 5.76609L11.7429 5.99449C11.8398 6.08938 11.8398 6.24323 11.7429 6.33811L10.9449 7.11942C10.8964 7.16686 10.8179 7.16686 10.7694 7.11942L10.4484 6.80512C9.09617 5.48119 6.90381 5.48119 5.5516 6.80512L5.20782 7.14171C5.15936 7.18915 5.08079 7.18915 5.03234 7.14171L4.23434 6.3604C4.13742 6.26552 4.13742 6.11167 4.23434 6.01678L4.49038 5.76609ZM13.1599 7.38192L13.8702 8.07729C13.9671 8.17217 13.9671 8.32602 13.8702 8.4209L10.6677 11.5564C10.5708 11.6513 10.4137 11.6513 10.3168 11.5564L8.04388 9.33105C8.01965 9.30733 7.98037 9.30733 7.95614 9.33105L5.6833 11.5564C5.58638 11.6513 5.42925 11.6513 5.33234 11.5564L2.12982 8.42087C2.0329 8.32598 2.0329 8.17213 2.12982 8.07724L2.84004 7.38188C2.93695 7.28699 3.09408 7.28699 3.191 7.38188L5.46392 9.60726C5.48815 9.63098 5.52743 9.63098 5.55166 9.60726L7.82447 7.38188C7.92138 7.28699 8.07851 7.28699 8.17543 7.38187L10.4484 9.60726C10.4726 9.63098 10.5119 9.63098 10.5361 9.60726L12.809 7.38192C12.9059 7.28703 13.063 7.28703 13.1599 7.38192Z\\\" fill=\\\"#202020\\\"/>\\n</g>\\n<defs>\\n<clipPath id=\\\"clip0_22274_4692\\\">\\n<path d=\\\"M0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z\\\" fill=\\\"white\\\"/>\\n</clipPath>\\n</defs>\\n</svg>\\n`,JGt=Y`\\n<svg width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" transform=\\\"matrix(-1 0 0 1 23 1)\\\" fill=\\\"#202020\\\"/>\\n<circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11.5\\\" transform=\\\"matrix(-1 0 0 1 23 1)\\\" stroke=\\\"#C7B994\\\" stroke-opacity=\\\"0.7\\\"/>\\n<path d=\\\"M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z\\\" fill=\\\"#C7B994\\\"/>\\n<path d=\\\"M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z\\\" fill=\\\"#C7B994\\\"/>\\n</svg>\\n`});var stt={};ue(stt,{walletPlaceholderSvg:()=>YGt});var YGt,ott=x(()=>{u();Q();YGt=Y`\\n  <svg fill=\\\"none\\\" viewBox=\\\"0 0 48 44\\\">\\n    <path\\n      style=\\\"fill: var(--wui-color-bg-300);\\\"\\n      d=\\\"M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.05 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z\\\"\\n    />\\n    <path\\n      style=\\\"fill: var(--wui-color-fg-200);\\\"\\n      fill-rule=\\\"evenodd\\\"\\n      d=\\\"M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z\\\"\\n      clip-rule=\\\"evenodd\\\"\\n    />\\n  </svg>\\n`});var att={};ue(att,{warningCircleSvg:()=>XGt});var XGt,ctt=x(()=>{u();Q();XGt=Y`<svg fill=\\\"none\\\" viewBox=\\\"0 0 20 20\\\">\\n  <path\\n    fill=\\\"currentColor\\\"\\n    d=\\\"M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z\\\"\\n  />\\n  <path\\n    fill=\\\"currentColor\\\"\\n    fill-rule=\\\"evenodd\\\"\\n    d=\\\"M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z\\\"\\n    clip-rule=\\\"evenodd\\\"\\n  />\\n</svg>`});var ltt={};ue(ltt,{infoSvg:()=>eKt});var eKt,utt=x(()=>{u();Q();eKt=Y`<svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<path d=\\\"M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z\\\" fill=\\\"currentColor\\\"/>\\n</svg>`});var dtt={};ue(dtt,{exclamationTriangleSvg:()=>tKt});var tKt,ftt=x(()=>{u();Q();tKt=Y`<svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<path d=\\\"M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z\\\" fill=\\\"currentColor\\\"/>\\n</svg>\\n`});var ptt={};ue(ptt,{reownSvg:()=>rKt});var rKt,htt=x(()=>{u();Q();rKt=Y`<svg width=\\\"60\\\" height=\\\"16\\\" viewBox=\\\"0 0 60 16\\\" fill=\\\"none\\\"\\\">\\n  <path d=\\\"M9.3335 4.66667C9.3335 2.08934 11.4229 0 14.0002 0H20.6669C23.2442 0 25.3335 2.08934 25.3335 4.66667V11.3333C25.3335 13.9106 23.2442 16 20.6669 16H14.0002C11.4229 16 9.3335 13.9106 9.3335 11.3333V4.66667Z\\\" fill=\\\"#363636\\\"/>\\n  <path d=\\\"M15.6055 11.0003L17.9448 4.66699H18.6316L16.2923 11.0003H15.6055Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M0 4.33333C0 1.9401 1.9401 0 4.33333 0C6.72657 0 8.66669 1.9401 8.66669 4.33333V11.6667C8.66669 14.0599 6.72657 16 4.33333 16C1.9401 16 0 14.0599 0 11.6667V4.33333Z\\\" fill=\\\"#363636\\\"/>\\n  <path d=\\\"M3.9165 9.99934V9.16602H4.74983V9.99934H3.9165Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M26 8C26 3.58172 29.3517 0 33.4863 0H52.5137C56.6483 0 60 3.58172 60 8C60 12.4183 56.6483 16 52.5137 16H33.4863C29.3517 16 26 12.4183 26 8Z\\\" fill=\\\"#363636\\\"/>\\n  <path d=\\\"M49.3687 9.95834V6.26232H50.0213V6.81966C50.256 6.40899 50.7326 6.16699 51.2606 6.16699C52.0599 6.16699 52.6173 6.67299 52.6173 7.65566V9.95834H51.972V7.69234C51.972 7.04696 51.6053 6.70966 51.07 6.70966C50.4906 6.70966 50.0213 7.17168 50.0213 7.82433V9.95834H49.3687Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M45.2538 9.95773L44.5718 6.26172H45.1877L45.6717 9.31242L46.3098 7.30306H46.9184L47.5491 9.29041L48.0404 6.26172H48.6564L47.9744 9.95773H47.2411L46.6178 8.03641L45.9871 9.95773H45.2538Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M42.3709 10.0536C41.2489 10.0536 40.5889 9.21765 40.5889 8.1103C40.5889 7.01035 41.2489 6.16699 42.3709 6.16699C43.4929 6.16699 44.1529 7.01035 44.1529 8.1103C44.1529 9.21765 43.4929 10.0536 42.3709 10.0536ZM42.3709 9.51096C43.1775 9.51096 43.4856 8.82164 43.4856 8.10296C43.4856 7.39163 43.1775 6.70966 42.3709 6.70966C41.5642 6.70966 41.2562 7.39163 41.2562 8.10296C41.2562 8.82164 41.5642 9.51096 42.3709 9.51096Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M38.2805 10.0536C37.1952 10.0536 36.5132 9.22499 36.5132 8.1103C36.5132 7.00302 37.1952 6.16699 38.2805 6.16699C39.1972 6.16699 40.0038 6.68766 39.9159 8.27896H37.1805C37.2319 8.96103 37.5472 9.5183 38.2805 9.5183C38.7718 9.5183 39.0945 9.21765 39.2045 8.87299H39.8499C39.7472 9.48903 39.1679 10.0536 38.2805 10.0536ZM37.1952 7.78765H39.2852C39.2338 7.04696 38.8892 6.70232 38.2805 6.70232C37.6132 6.70232 37.2832 7.18635 37.1952 7.78765Z\\\" fill=\\\"#F6F6F6\\\"/>\\n  <path d=\\\"M33.3828 9.95773V6.26172H34.0501V6.88506C34.2848 6.47439 34.6882 6.26172 35.1061 6.26172H35.9935V6.88506H35.0548C34.4682 6.88506 34.0501 7.26638 34.0501 8.00706V9.95773H33.3828Z\\\" fill=\\\"#F6F6F6\\\"/>\\n</svg>`});async function nKt(t){if(tV.has(t))return tV.get(t);let r=(mtt[t]??mtt.copy)();return tV.set(t,r),r}var hR,mtt,yx,aa=x(()=>{u();Q();Ke();TYe();IYe();Er();fr();PYe();hR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},mtt={add:async()=>(await Promise.resolve().then(()=>(NYe(),OYe))).addSvg,allWallets:async()=>(await Promise.resolve().then(()=>(BYe(),kYe))).allWalletsSvg,arrowBottomCircle:async()=>(await Promise.resolve().then(()=>(DYe(),MYe))).arrowBottomCircleSvg,appStore:async()=>(await Promise.resolve().then(()=>(UYe(),LYe))).appStoreSvg,apple:async()=>(await Promise.resolve().then(()=>(jYe(),FYe))).appleSvg,arrowBottom:async()=>(await Promise.resolve().then(()=>(qYe(),HYe))).arrowBottomSvg,arrowLeft:async()=>(await Promise.resolve().then(()=>($Ye(),zYe))).arrowLeftSvg,arrowRight:async()=>(await Promise.resolve().then(()=>(WYe(),VYe))).arrowRightSvg,arrowTop:async()=>(await Promise.resolve().then(()=>(KYe(),GYe))).arrowTopSvg,bank:async()=>(await Promise.resolve().then(()=>(QYe(),ZYe))).bankSvg,browser:async()=>(await Promise.resolve().then(()=>(YYe(),JYe))).browserSvg,card:async()=>(await Promise.resolve().then(()=>(eXe(),XYe))).cardSvg,checkmark:async()=>(await Promise.resolve().then(()=>(rXe(),tXe))).checkmarkSvg,checkmarkBold:async()=>(await Promise.resolve().then(()=>(iXe(),nXe))).checkmarkBoldSvg,chevronBottom:async()=>(await Promise.resolve().then(()=>(oXe(),sXe))).chevronBottomSvg,chevronLeft:async()=>(await Promise.resolve().then(()=>(cXe(),aXe))).chevronLeftSvg,chevronRight:async()=>(await Promise.resolve().then(()=>(uXe(),lXe))).chevronRightSvg,chevronTop:async()=>(await Promise.resolve().then(()=>(fXe(),dXe))).chevronTopSvg,chromeStore:async()=>(await Promise.resolve().then(()=>(hXe(),pXe))).chromeStoreSvg,clock:async()=>(await Promise.resolve().then(()=>(gXe(),mXe))).clockSvg,close:async()=>(await Promise.resolve().then(()=>(bXe(),yXe))).closeSvg,compass:async()=>(await Promise.resolve().then(()=>(vXe(),wXe))).compassSvg,coinPlaceholder:async()=>(await Promise.resolve().then(()=>(EXe(),xXe))).coinPlaceholderSvg,copy:async()=>(await Promise.resolve().then(()=>(CXe(),_Xe))).copySvg,cursor:async()=>(await Promise.resolve().then(()=>(AXe(),SXe))).cursorSvg,cursorTransparent:async()=>(await Promise.resolve().then(()=>(IXe(),TXe))).cursorTransparentSvg,desktop:async()=>(await Promise.resolve().then(()=>(PXe(),RXe))).desktopSvg,disconnect:async()=>(await Promise.resolve().then(()=>(NXe(),OXe))).disconnectSvg,discord:async()=>(await Promise.resolve().then(()=>(BXe(),kXe))).discordSvg,etherscan:async()=>(await Promise.resolve().then(()=>(DXe(),MXe))).etherscanSvg,extension:async()=>(await Promise.resolve().then(()=>(UXe(),LXe))).extensionSvg,externalLink:async()=>(await Promise.resolve().then(()=>(jXe(),FXe))).externalLinkSvg,facebook:async()=>(await Promise.resolve().then(()=>(qXe(),HXe))).facebookSvg,farcaster:async()=>(await Promise.resolve().then(()=>($Xe(),zXe))).farcasterSvg,filters:async()=>(await Promise.resolve().then(()=>(WXe(),VXe))).filtersSvg,github:async()=>(await Promise.resolve().then(()=>(KXe(),GXe))).githubSvg,google:async()=>(await Promise.resolve().then(()=>(QXe(),ZXe))).googleSvg,helpCircle:async()=>(await Promise.resolve().then(()=>(YXe(),JXe))).helpCircleSvg,image:async()=>(await Promise.resolve().then(()=>(eet(),XXe))).imageSvg,id:async()=>(await Promise.resolve().then(()=>(ret(),tet))).idSvg,infoCircle:async()=>(await Promise.resolve().then(()=>(iet(),net))).infoCircleSvg,lightbulb:async()=>(await Promise.resolve().then(()=>(oet(),set))).lightbulbSvg,mail:async()=>(await Promise.resolve().then(()=>(cet(),aet))).mailSvg,mobile:async()=>(await Promise.resolve().then(()=>(det(),uet))).mobileSvg,more:async()=>(await Promise.resolve().then(()=>(pet(),fet))).moreSvg,networkPlaceholder:async()=>(await Promise.resolve().then(()=>(met(),het))).networkPlaceholderSvg,nftPlaceholder:async()=>(await Promise.resolve().then(()=>(yet(),get))).nftPlaceholderSvg,off:async()=>(await Promise.resolve().then(()=>(wet(),bet))).offSvg,playStore:async()=>(await Promise.resolve().then(()=>(xet(),vet))).playStoreSvg,plus:async()=>(await Promise.resolve().then(()=>(_et(),Eet))).plusSvg,qrCode:async()=>(await Promise.resolve().then(()=>(Aet(),Cet))).qrCodeIcon,recycleHorizontal:async()=>(await Promise.resolve().then(()=>(Iet(),Tet))).recycleHorizontalSvg,refresh:async()=>(await Promise.resolve().then(()=>(Pet(),Ret))).refreshSvg,search:async()=>(await Promise.resolve().then(()=>(Net(),Oet))).searchSvg,send:async()=>(await Promise.resolve().then(()=>(Bet(),ket))).sendSvg,swapHorizontal:async()=>(await Promise.resolve().then(()=>(Det(),Met))).swapHorizontalSvg,swapHorizontalMedium:async()=>(await Promise.resolve().then(()=>(Uet(),Let))).swapHorizontalMediumSvg,swapHorizontalBold:async()=>(await Promise.resolve().then(()=>(jet(),Fet))).swapHorizontalBoldSvg,swapHorizontalRoundedBold:async()=>(await Promise.resolve().then(()=>(qet(),Het))).swapHorizontalRoundedBoldSvg,swapVertical:async()=>(await Promise.resolve().then(()=>($et(),zet))).swapVerticalSvg,telegram:async()=>(await Promise.resolve().then(()=>(Wet(),Vet))).telegramSvg,threeDots:async()=>(await Promise.resolve().then(()=>(Ket(),Get))).threeDotsSvg,twitch:async()=>(await Promise.resolve().then(()=>(Qet(),Zet))).twitchSvg,twitter:async()=>(await Promise.resolve().then(()=>(Fpe(),Upe))).xSvg,twitterIcon:async()=>(await Promise.resolve().then(()=>(Yet(),Jet))).twitterIconSvg,verify:async()=>(await Promise.resolve().then(()=>(ett(),Xet))).verifySvg,verifyFilled:async()=>(await Promise.resolve().then(()=>(rtt(),ttt))).verifyFilledSvg,wallet:async()=>(await Promise.resolve().then(()=>(itt(),ntt))).walletSvg,walletConnect:async()=>(await Promise.resolve().then(()=>(nV(),rV))).walletConnectSvg,walletConnectLightBrown:async()=>(await Promise.resolve().then(()=>(nV(),rV))).walletConnectLightBrownSvg,walletConnectBrown:async()=>(await Promise.resolve().then(()=>(nV(),rV))).walletConnectBrownSvg,walletPlaceholder:async()=>(await Promise.resolve().then(()=>(ott(),stt))).walletPlaceholderSvg,warningCircle:async()=>(await Promise.resolve().then(()=>(ctt(),att))).warningCircleSvg,x:async()=>(await Promise.resolve().then(()=>(Fpe(),Upe))).xSvg,info:async()=>(await Promise.resolve().then(()=>(utt(),ltt))).infoSvg,exclamationTriangle:async()=>(await Promise.resolve().then(()=>(ftt(),dtt))).exclamationTriangleSvg,reown:async()=>(await Promise.resolve().then(()=>(htt(),ptt))).reownSvg};yx=class extends se{constructor(){super(...arguments),this.size=\\\"md\\\",this.name=\\\"copy\\\",this.color=\\\"fg-300\\\",this.aspectRatio=\\\"1 / 1\\\"}render(){return this.style.cssText=`\\n      --local-color: ${`var(--wui-color-${this.color});`}\\n      --local-width: ${`var(--wui-icon-size-${this.size});`}\\n      --local-aspect-ratio: ${this.aspectRatio}\\n    `,$`${SYe(nKt(this.name),$`<div class=\\\"fallback\\\"></div>`)}`}};yx.styles=[ze,Th,RYe];hR([G()],yx.prototype,\\\"size\\\",void 0);hR([G()],yx.prototype,\\\"name\\\",void 0);hR([G()],yx.prototype,\\\"color\\\",void 0);hR([G()],yx.prototype,\\\"aspectRatio\\\",void 0);yx=hR([te(\\\"wui-icon\\\")],yx)});var iV,gtt=x(()=>{u();F0();a8();iV=gx(class extends o8{constructor(t){if(super(t),t.type!==J$.ATTRIBUTE||t.name!==\\\"class\\\"||t.strings?.length>2)throw Error(\\\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\\\")}render(t){return\\\" \\\"+Object.keys(t).filter((e=>t[e])).join(\\\" \\\")+\\\" \\\"}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(\\\" \\\").split(/\\\\s/).filter((n=>n!==\\\"\\\"))));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return xd}})});var jpe=x(()=>{u();gtt()});var ytt,btt=x(()=>{u();Q();ytt=we`\\n  :host {\\n    display: inline-flex !important;\\n  }\\n\\n  slot {\\n    width: 100%;\\n    display: inline-block;\\n    font-style: normal;\\n    font-family: var(--wui-font-family);\\n    font-feature-settings:\\n      'tnum' on,\\n      'lnum' on,\\n      'case' on;\\n    line-height: 130%;\\n    font-weight: var(--wui-font-weight-regular);\\n    overflow: inherit;\\n    text-overflow: inherit;\\n    text-align: var(--local-align);\\n    color: var(--local-color);\\n  }\\n\\n  .wui-line-clamp-1 {\\n    overflow: hidden;\\n    display: -webkit-box;\\n    -webkit-box-orient: vertical;\\n    -webkit-line-clamp: 1;\\n  }\\n\\n  .wui-line-clamp-2 {\\n    overflow: hidden;\\n    display: -webkit-box;\\n    -webkit-box-orient: vertical;\\n    -webkit-line-clamp: 2;\\n  }\\n\\n  .wui-font-medium-400 {\\n    font-size: var(--wui-font-size-medium);\\n    font-weight: var(--wui-font-weight-light);\\n    letter-spacing: var(--wui-letter-spacing-medium);\\n  }\\n\\n  .wui-font-medium-600 {\\n    font-size: var(--wui-font-size-medium);\\n    letter-spacing: var(--wui-letter-spacing-medium);\\n  }\\n\\n  .wui-font-title-600 {\\n    font-size: var(--wui-font-size-title);\\n    letter-spacing: var(--wui-letter-spacing-title);\\n  }\\n\\n  .wui-font-title-6-600 {\\n    font-size: var(--wui-font-size-title-6);\\n    letter-spacing: var(--wui-letter-spacing-title-6);\\n  }\\n\\n  .wui-font-mini-700 {\\n    font-size: var(--wui-font-size-mini);\\n    letter-spacing: var(--wui-letter-spacing-mini);\\n    text-transform: uppercase;\\n  }\\n\\n  .wui-font-large-500,\\n  .wui-font-large-600,\\n  .wui-font-large-700 {\\n    font-size: var(--wui-font-size-large);\\n    letter-spacing: var(--wui-letter-spacing-large);\\n  }\\n\\n  .wui-font-2xl-500,\\n  .wui-font-2xl-600,\\n  .wui-font-2xl-700 {\\n    font-size: var(--wui-font-size-2xl);\\n    letter-spacing: var(--wui-letter-spacing-2xl);\\n  }\\n\\n  .wui-font-paragraph-400,\\n  .wui-font-paragraph-500,\\n  .wui-font-paragraph-600,\\n  .wui-font-paragraph-700 {\\n    font-size: var(--wui-font-size-paragraph);\\n    letter-spacing: var(--wui-letter-spacing-paragraph);\\n  }\\n\\n  .wui-font-small-400,\\n  .wui-font-small-500,\\n  .wui-font-small-600 {\\n    font-size: var(--wui-font-size-small);\\n    letter-spacing: var(--wui-letter-spacing-small);\\n  }\\n\\n  .wui-font-tiny-400,\\n  .wui-font-tiny-500,\\n  .wui-font-tiny-600 {\\n    font-size: var(--wui-font-size-tiny);\\n    letter-spacing: var(--wui-letter-spacing-tiny);\\n  }\\n\\n  .wui-font-micro-700,\\n  .wui-font-micro-600 {\\n    font-size: var(--wui-font-size-micro);\\n    letter-spacing: var(--wui-letter-spacing-micro);\\n    text-transform: uppercase;\\n  }\\n\\n  .wui-font-tiny-400,\\n  .wui-font-small-400,\\n  .wui-font-medium-400,\\n  .wui-font-paragraph-400 {\\n    font-weight: var(--wui-font-weight-light);\\n  }\\n\\n  .wui-font-large-700,\\n  .wui-font-paragraph-700,\\n  .wui-font-micro-700,\\n  .wui-font-mini-700 {\\n    font-weight: var(--wui-font-weight-bold);\\n  }\\n\\n  .wui-font-medium-600,\\n  .wui-font-medium-title-600,\\n  .wui-font-title-6-600,\\n  .wui-font-large-600,\\n  .wui-font-paragraph-600,\\n  .wui-font-small-600,\\n  .wui-font-tiny-600,\\n  .wui-font-micro-600 {\\n    font-weight: var(--wui-font-weight-medium);\\n  }\\n\\n  :host([disabled]) {\\n    opacity: 0.4;\\n  }\\n`});var mR,bx,tu=x(()=>{u();Q();Ke();jpe();Er();fr();btt();mR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},bx=class extends se{constructor(){super(...arguments),this.variant=\\\"paragraph-500\\\",this.color=\\\"fg-300\\\",this.align=\\\"left\\\",this.lineClamp=void 0}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=`\\n      --local-align: ${this.align};\\n      --local-color: var(--wui-color-${this.color});\\n    `,$`<slot class=${iV(e)}></slot>`}};bx.styles=[ze,ytt];mR([G()],bx.prototype,\\\"variant\\\",void 0);mR([G()],bx.prototype,\\\"color\\\",void 0);mR([G()],bx.prototype,\\\"align\\\",void 0);mR([G()],bx.prototype,\\\"lineClamp\\\",void 0);bx=mR([te(\\\"wui-text\\\")],bx)});var wtt,vtt=x(()=>{u();Q();wtt=we`\\n  :host {\\n    display: inline-flex;\\n    justify-content: center;\\n    align-items: center;\\n    position: relative;\\n    overflow: hidden;\\n    background-color: var(--wui-color-gray-glass-020);\\n    border-radius: var(--local-border-radius);\\n    border: var(--local-border);\\n    box-sizing: content-box;\\n    width: var(--local-size);\\n    height: var(--local-size);\\n    min-height: var(--local-size);\\n    min-width: var(--local-size);\\n  }\\n\\n  @supports (background: color-mix(in srgb, white 50%, black)) {\\n    :host {\\n      background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);\\n    }\\n  }\\n`});var H0,Mf,tb=x(()=>{u();Q();Ke();aa();Er();fr();vtt();H0=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Mf=class extends se{constructor(){super(...arguments),this.size=\\\"md\\\",this.backgroundColor=\\\"accent-100\\\",this.iconColor=\\\"accent-100\\\",this.background=\\\"transparent\\\",this.border=!1,this.borderColor=\\\"wui-color-bg-125\\\",this.icon=\\\"copy\\\"}render(){let e=this.iconSize||this.size,r=this.size===\\\"lg\\\",n=this.size===\\\"xl\\\",i=r?\\\"12%\\\":\\\"16%\\\",s=r?\\\"xxs\\\":n?\\\"s\\\":\\\"3xl\\\",o=this.background===\\\"gray\\\",a=this.background===\\\"opaque\\\",c=this.backgroundColor===\\\"accent-100\\\"&&a||this.backgroundColor===\\\"success-100\\\"&&a||this.backgroundColor===\\\"error-100\\\"&&a||this.backgroundColor===\\\"inverse-100\\\"&&a,l=`var(--wui-color-${this.backgroundColor})`;return c?l=`var(--wui-icon-box-bg-${this.backgroundColor})`:o&&(l=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=`\\n       --local-bg-value: ${l};\\n       --local-bg-mix: ${c||o?\\\"100%\\\":i};\\n       --local-border-radius: var(--wui-border-radius-${s});\\n       --local-size: var(--wui-icon-box-size-${this.size});\\n       --local-border: ${this.borderColor===\\\"wui-color-bg-125\\\"?\\\"2px\\\":\\\"1px\\\"} solid ${this.border?`var(--${this.borderColor})`:\\\"transparent\\\"}\\n   `,$` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};Mf.styles=[ze,dr,wtt];H0([G()],Mf.prototype,\\\"size\\\",void 0);H0([G()],Mf.prototype,\\\"backgroundColor\\\",void 0);H0([G()],Mf.prototype,\\\"iconColor\\\",void 0);H0([G()],Mf.prototype,\\\"iconSize\\\",void 0);H0([G()],Mf.prototype,\\\"background\\\",void 0);H0([G({type:Boolean})],Mf.prototype,\\\"border\\\",void 0);H0([G()],Mf.prototype,\\\"borderColor\\\",void 0);H0([G()],Mf.prototype,\\\"icon\\\",void 0);Mf=H0([te(\\\"wui-icon-box\\\")],Mf)});var xtt,Ett=x(()=>{u();Q();xtt=we`\\n  :host {\\n    display: block;\\n    width: var(--local-width);\\n    height: var(--local-height);\\n  }\\n\\n  img {\\n    display: block;\\n    width: 100%;\\n    height: 100%;\\n    object-fit: cover;\\n    object-position: center center;\\n    border-radius: inherit;\\n  }\\n`});var sV,l8,u8=x(()=>{u();Q();Ke();Er();fr();Ett();sV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},l8=class extends se{constructor(){super(...arguments),this.src=\\\"./path/to/image.jpg\\\",this.alt=\\\"Image\\\",this.size=void 0}render(){return this.style.cssText=`\\n      --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:\\\"100%\\\"};\\n      --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:\\\"100%\\\"};\\n      `,$`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent(\\\"onLoadError\\\",{bubbles:!0,composed:!0}))}};l8.styles=[ze,Th,xtt];sV([G()],l8.prototype,\\\"src\\\",void 0);sV([G()],l8.prototype,\\\"alt\\\",void 0);sV([G()],l8.prototype,\\\"size\\\",void 0);l8=sV([te(\\\"wui-image\\\")],l8)});var _tt,Ctt=x(()=>{u();Q();_tt=we`\\n  :host {\\n    position: relative;\\n    background-color: var(--wui-color-gray-glass-002);\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    width: var(--local-size);\\n    height: var(--local-size);\\n    border-radius: inherit;\\n    border-radius: var(--local-border-radius);\\n  }\\n\\n  :host > wui-flex {\\n    overflow: hidden;\\n    border-radius: inherit;\\n    border-radius: var(--local-border-radius);\\n  }\\n\\n  :host::after {\\n    content: '';\\n    position: absolute;\\n    top: 0;\\n    bottom: 0;\\n    left: 0;\\n    right: 0;\\n    border-radius: inherit;\\n    border: 1px solid var(--wui-color-gray-glass-010);\\n    pointer-events: none;\\n  }\\n\\n  :host([name='Extension'])::after {\\n    border: 1px solid var(--wui-color-accent-glass-010);\\n  }\\n\\n  :host([data-wallet-icon='allWallets']) {\\n    background-color: var(--wui-all-wallets-bg-100);\\n  }\\n\\n  :host([data-wallet-icon='allWallets'])::after {\\n    border: 1px solid var(--wui-color-accent-glass-010);\\n  }\\n\\n  wui-icon[data-parent-size='inherit'] {\\n    width: 75%;\\n    height: 75%;\\n    align-items: center;\\n  }\\n\\n  wui-icon[data-parent-size='sm'] {\\n    width: 18px;\\n    height: 18px;\\n  }\\n\\n  wui-icon[data-parent-size='md'] {\\n    width: 24px;\\n    height: 24px;\\n  }\\n\\n  wui-icon[data-parent-size='lg'] {\\n    width: 42px;\\n    height: 42px;\\n  }\\n\\n  wui-icon[data-parent-size='full'] {\\n    width: 100%;\\n    height: 100%;\\n  }\\n\\n  :host > wui-icon-box {\\n    position: absolute;\\n    overflow: hidden;\\n    right: -1px;\\n    bottom: -2px;\\n    z-index: 1;\\n    border: 2px solid var(--wui-color-bg-150, #1e1f1f);\\n    padding: 1px;\\n  }\\n`});var wx,q0,oV=x(()=>{u();Q();Ke();aa();u8();eb();Er();fr();tb();Ctt();wx=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},q0=class extends se{constructor(){super(...arguments),this.size=\\\"md\\\",this.name=\\\"\\\",this.installed=!1,this.badgeSize=\\\"xs\\\"}render(){let e=\\\"xxs\\\";return this.size===\\\"lg\\\"?e=\\\"m\\\":this.size===\\\"md\\\"?e=\\\"xs\\\":e=\\\"xxs\\\",this.style.cssText=`\\n       --local-border-radius: var(--wui-border-radius-${e});\\n       --local-size: var(--wui-wallet-image-size-${this.size});\\n   `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),$`\\n      <wui-flex justifyContent=\\\"center\\\" alignItems=\\\"center\\\"> ${this.templateVisual()} </wui-flex>\\n    `}templateVisual(){return this.imageSrc?$`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?$`<wui-icon\\n        data-parent-size=\\\"md\\\"\\n        size=\\\"md\\\"\\n        color=\\\"inherit\\\"\\n        name=${this.walletIcon}\\n      ></wui-icon>`:$`<wui-icon\\n      data-parent-size=${this.size}\\n      size=\\\"inherit\\\"\\n      color=\\\"inherit\\\"\\n      name=\\\"walletPlaceholder\\\"\\n    ></wui-icon>`}};q0.styles=[dr,ze,_tt];wx([G()],q0.prototype,\\\"size\\\",void 0);wx([G()],q0.prototype,\\\"name\\\",void 0);wx([G()],q0.prototype,\\\"imageSrc\\\",void 0);wx([G()],q0.prototype,\\\"walletIcon\\\",void 0);wx([G({type:Boolean})],q0.prototype,\\\"installed\\\",void 0);wx([G()],q0.prototype,\\\"badgeSize\\\",void 0);q0=wx([te(\\\"wui-wallet-image\\\")],q0)});var Stt,Att=x(()=>{u();Q();Stt=we`\\n  :host {\\n    position: relative;\\n    border-radius: var(--wui-border-radius-xxs);\\n    width: 40px;\\n    height: 40px;\\n    overflow: hidden;\\n    background: var(--wui-color-gray-glass-002);\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-wrap: wrap;\\n    gap: var(--wui-spacing-4xs);\\n    padding: 3.75px !important;\\n  }\\n\\n  :host::after {\\n    content: '';\\n    position: absolute;\\n    top: 0;\\n    bottom: 0;\\n    left: 0;\\n    right: 0;\\n    border-radius: inherit;\\n    border: 1px solid var(--wui-color-gray-glass-010);\\n    pointer-events: none;\\n  }\\n\\n  :host > wui-wallet-image {\\n    width: 14px;\\n    height: 14px;\\n    border-radius: var(--wui-border-radius-5xs);\\n  }\\n\\n  :host > wui-flex {\\n    padding: 2px;\\n    position: fixed;\\n    overflow: hidden;\\n    left: 34px;\\n    bottom: 8px;\\n    background: var(--dark-background-150, #1e1f1f);\\n    border-radius: 50%;\\n    z-index: 2;\\n    display: flex;\\n  }\\n`});var Ttt,Hpe,aV,Itt=x(()=>{u();Q();Ke();bn();eb();Er();fr();tb();oV();Att();Ttt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Hpe=4,aV=class extends se{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<Hpe;return $`${this.walletImages.slice(0,Hpe).map(({src:r,walletName:n})=>$`\\n            <wui-wallet-image\\n              size=\\\"inherit\\\"\\n              imageSrc=${r}\\n              name=${Re(n)}\\n            ></wui-wallet-image>\\n          `)}\\n      ${e?[...Array(Hpe-this.walletImages.length)].map(()=>$` <wui-wallet-image size=\\\"inherit\\\" name=\\\"\\\"></wui-wallet-image>`):null}\\n      <wui-flex>\\n        <wui-icon-box\\n          size=\\\"xxs\\\"\\n          iconSize=\\\"xxs\\\"\\n          iconcolor=\\\"success-100\\\"\\n          backgroundcolor=\\\"success-100\\\"\\n          icon=\\\"checkmark\\\"\\n          background=\\\"opaque\\\"\\n        ></wui-icon-box>\\n      </wui-flex>`}};aV.styles=[ze,Stt];Ttt([G({type:Array})],aV.prototype,\\\"walletImages\\\",void 0);aV=Ttt([te(\\\"wui-all-wallets-image\\\")],aV)});var Rtt,Ptt=x(()=>{u();Q();Rtt=we`\\n  :host {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    height: var(--wui-spacing-m);\\n    padding: 0 var(--wui-spacing-3xs) !important;\\n    border-radius: var(--wui-border-radius-5xs);\\n    transition:\\n      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);\\n    will-change: border-radius, background-color;\\n  }\\n\\n  :host > wui-text {\\n    transform: translateY(5%);\\n  }\\n\\n  :host([data-variant='main']) {\\n    background-color: var(--wui-color-accent-glass-015);\\n    color: var(--wui-color-accent-100);\\n  }\\n\\n  :host([data-variant='shade']) {\\n    background-color: var(--wui-color-gray-glass-010);\\n    color: var(--wui-color-fg-200);\\n  }\\n\\n  :host([data-variant='success']) {\\n    background-color: var(--wui-icon-box-bg-success-100);\\n    color: var(--wui-color-success-100);\\n  }\\n\\n  :host([data-variant='error']) {\\n    background-color: var(--wui-icon-box-bg-error-100);\\n    color: var(--wui-color-error-100);\\n  }\\n\\n  :host([data-size='lg']) {\\n    padding: 11px 5px !important;\\n  }\\n\\n  :host([data-size='lg']) > wui-text {\\n    transform: translateY(2%);\\n  }\\n`});var qpe,gR,zpe=x(()=>{u();Q();Ke();tu();Er();fr();Ptt();qpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},gR=class extends se{constructor(){super(...arguments),this.variant=\\\"main\\\",this.size=\\\"lg\\\"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e=this.size===\\\"md\\\"?\\\"mini-700\\\":\\\"micro-700\\\";return $`\\n      <wui-text data-variant=${this.variant} variant=${e} color=\\\"inherit\\\">\\n        <slot></slot>\\n      </wui-text>\\n    `}};gR.styles=[ze,Rtt];qpe([G()],gR.prototype,\\\"variant\\\",void 0);qpe([G()],gR.prototype,\\\"size\\\",void 0);gR=qpe([te(\\\"wui-tag\\\")],gR)});var Ott,Ntt=x(()=>{u();Q();Ott=we`\\n  button {\\n    column-gap: var(--wui-spacing-s);\\n    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);\\n    width: 100%;\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: var(--wui-border-radius-xs);\\n    color: var(--wui-color-fg-100);\\n  }\\n\\n  button > wui-text:nth-child(2) {\\n    display: flex;\\n    flex: 1;\\n  }\\n\\n  button:disabled {\\n    background-color: var(--wui-color-gray-glass-015);\\n    color: var(--wui-color-gray-glass-015);\\n  }\\n\\n  button:disabled > wui-tag {\\n    background-color: var(--wui-color-gray-glass-010);\\n    color: var(--wui-color-fg-300);\\n  }\\n\\n  wui-icon {\\n    color: var(--wui-color-fg-200) !important;\\n  }\\n`});var il,Na,ktt=x(()=>{u();Q();Ke();bn();aa();tu();tb();Er();fr();Itt();zpe();oV();Ntt();il=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Na=class extends se{constructor(){super(...arguments),this.walletImages=[],this.imageSrc=\\\"\\\",this.name=\\\"\\\",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor=\\\"accent-100\\\"}render(){return $`\\n      <button ?disabled=${this.disabled} tabindex=${Re(this.tabIdx)}>\\n        ${this.templateAllWallets()} ${this.templateWalletImage()}\\n        <wui-text variant=\\\"paragraph-500\\\" color=\\\"inherit\\\">${this.name}</wui-text>\\n        ${this.templateStatus()}\\n      </button>\\n    `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?$` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?$` <wui-wallet-image .walletIcon=${this.walletIcon} size=\\\"sm\\\"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?$`<wui-wallet-image\\n        size=\\\"sm\\\"\\n        imageSrc=${this.imageSrc}\\n        name=${this.name}\\n        .installed=${this.installed}\\n      ></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?$`<wui-wallet-image size=\\\"sm\\\" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.loading?$`<wui-loading-spinner\\n        size=\\\"lg\\\"\\n        color=${this.loadingSpinnerColor}\\n      ></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?$`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?$`<wui-icon color=\\\"inherit\\\" size=\\\"sm\\\" name=${this.icon}></wui-icon>`:null}};Na.styles=[ze,dr,Ott];il([G({type:Array})],Na.prototype,\\\"walletImages\\\",void 0);il([G()],Na.prototype,\\\"imageSrc\\\",void 0);il([G()],Na.prototype,\\\"name\\\",void 0);il([G()],Na.prototype,\\\"tagLabel\\\",void 0);il([G()],Na.prototype,\\\"tagVariant\\\",void 0);il([G()],Na.prototype,\\\"icon\\\",void 0);il([G()],Na.prototype,\\\"walletIcon\\\",void 0);il([G()],Na.prototype,\\\"tabIdx\\\",void 0);il([G({type:Boolean})],Na.prototype,\\\"installed\\\",void 0);il([G({type:Boolean})],Na.prototype,\\\"disabled\\\",void 0);il([G({type:Boolean})],Na.prototype,\\\"showAllWallets\\\",void 0);il([G({type:Boolean})],Na.prototype,\\\"loading\\\",void 0);il([G({type:String})],Na.prototype,\\\"loadingSpinnerColor\\\",void 0);Na=il([te(\\\"wui-list-wallet\\\")],Na)});var Df=x(()=>{u();ktt()});var d8,vx,Btt=x(()=>{u();Q();Ke();bn();xt();pr();Df();d8=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},vx=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.count=ye.state.count,this.filteredCount=ye.state.filteredWallets.length,this.isFetchingRecommendedWallets=ye.state.isFetchingRecommendedWallets,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e),ye.subscribeKey(\\\"count\\\",e=>this.count=e),ye.subscribeKey(\\\"filteredWallets\\\",e=>this.filteredCount=e.length),ye.subscribeKey(\\\"isFetchingRecommendedWallets\\\",e=>this.isFetchingRecommendedWallets=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(c=>c.id===\\\"walletConnect\\\"),{allWallets:r}=ee.state;if(!e||r===\\\"HIDE\\\"||r===\\\"ONLY_MOBILE\\\"&&!oe.isMobile())return null;let n=ye.state.featured.length,i=this.count+n,s=i<10?i:Math.floor(i/10)*10,o=this.filteredCount>0?this.filteredCount:s,a=`${o}`;return this.filteredCount>0?a=`${this.filteredCount}`:o<i&&(a=`${o}+`),$`\\n      <wui-list-wallet\\n        name=\\\"All Wallets\\\"\\n        walletIcon=\\\"allWallets\\\"\\n        showAllWallets\\n        @click=${this.onAllWallets.bind(this)}\\n        tagLabel=${a}\\n        tagVariant=\\\"shade\\\"\\n        data-testid=\\\"all-wallets\\\"\\n        tabIdx=${Re(this.tabIdx)}\\n        .loading=${this.isFetchingRecommendedWallets}\\n        loadingSpinnerColor=${this.isFetchingRecommendedWallets?\\\"fg-300\\\":\\\"accent-100\\\"}\\n      ></wui-list-wallet>\\n    `}onAllWallets(){Xe.sendEvent({type:\\\"track\\\",event:\\\"CLICK_ALL_WALLETS\\\"}),de.push(\\\"AllWallets\\\")}};d8([G()],vx.prototype,\\\"tabIdx\\\",void 0);d8([xe()],vx.prototype,\\\"connectors\\\",void 0);d8([xe()],vx.prototype,\\\"count\\\",void 0);d8([xe()],vx.prototype,\\\"filteredCount\\\",void 0);d8([xe()],vx.prototype,\\\"isFetchingRecommendedWallets\\\",void 0);vx=d8([te(\\\"w3m-all-wallets-widget\\\")],vx)});var $pe,cV,Mtt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();lx();$pe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},cV=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(r=>r.type===\\\"ANNOUNCED\\\");return e?.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${e.filter(rl.showConnector).map(r=>$`\\n              <wui-list-wallet\\n                imageSrc=${Re(sr.getConnectorImage(r))}\\n                name=${r.name??\\\"Unknown\\\"}\\n                @click=${()=>this.onConnector(r)}\\n                tagVariant=\\\"success\\\"\\n                tagLabel=\\\"installed\\\"\\n                data-testid=${`wallet-selector-${r.id}`}\\n                .installed=${!0}\\n                tabIdx=${Re(this.tabIdx)}\\n              >\\n              </wui-list-wallet>\\n            `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnector(e){e.id===\\\"walletConnect\\\"?oe.isMobile()?de.push(\\\"AllWallets\\\"):de.push(\\\"ConnectingWalletConnect\\\"):de.push(\\\"ConnectingExternal\\\",{connector:e})}};$pe([G()],cV.prototype,\\\"tabIdx\\\",void 0);$pe([xe()],cV.prototype,\\\"connectors\\\",void 0);cV=$pe([te(\\\"w3m-connect-announced-widget\\\")],cV)});var lV,yR,Dtt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();lV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},yR=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.loading=!1,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e)),oe.isTelegram()&&oe.isIos()&&(this.loading=!me.state.wcUri,this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=ee.state;if(!e?.length)return this.style.cssText=\\\"display: none\\\",null;let r=this.filterOutDuplicateWallets(e);return $`<wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n      ${r.map(n=>$`\\n          <wui-list-wallet\\n            imageSrc=${Re(sr.getWalletImage(n))}\\n            name=${n.name??\\\"Unknown\\\"}\\n            @click=${()=>this.onConnectWallet(n)}\\n            data-testid=${`wallet-selector-${n.id}`}\\n            tabIdx=${Re(this.tabIdx)}\\n            ?loading=${this.loading}\\n          >\\n          </wui-list-wallet>\\n        `)}\\n    </wui-flex>`}filterOutDuplicateWallets(e){let r=Te.getRecentWallets(),n=this.connectors.map(a=>a.info?.rdns).filter(Boolean),i=r.map(a=>a.rdns).filter(Boolean),s=n.concat(i);if(s.includes(\\\"io.metamask.mobile\\\")&&oe.isMobile()){let a=s.indexOf(\\\"io.metamask.mobile\\\");s[a]=\\\"io.metamask\\\"}return e.filter(a=>!s.includes(String(a?.rdns)))}onConnectWallet(e){this.loading||de.push(\\\"ConnectingWalletConnect\\\",{wallet:e})}};lV([G()],yR.prototype,\\\"tabIdx\\\",void 0);lV([xe()],yR.prototype,\\\"connectors\\\",void 0);lV([xe()],yR.prototype,\\\"loading\\\",void 0);yR=lV([te(\\\"w3m-connect-custom-widget\\\")],yR)});var Vpe,uV,Ltt=x(()=>{u();Q();Ke();bn();Ri();xt();pr();is();Df();lx();Vpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},uV=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let n=this.connectors.filter(i=>i.type===\\\"EXTERNAL\\\").filter(rl.showConnector).filter(i=>i.id!==_e.CONNECTOR_ID.COINBASE_SDK);return n?.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${n.map(i=>$`\\n            <wui-list-wallet\\n              imageSrc=${Re(sr.getConnectorImage(i))}\\n              .installed=${!0}\\n              name=${i.name??\\\"Unknown\\\"}\\n              data-testid=${`wallet-selector-external-${i.id}`}\\n              @click=${()=>this.onConnector(i)}\\n              tabIdx=${Re(this.tabIdx)}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnector(e){de.push(\\\"ConnectingExternal\\\",{connector:e})}};Vpe([G()],uV.prototype,\\\"tabIdx\\\",void 0);Vpe([xe()],uV.prototype,\\\"connectors\\\",void 0);uV=Vpe([te(\\\"w3m-connect-external-widget\\\")],uV)});var Wpe,dV,Utt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();Wpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},dV=class extends se{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${this.wallets.map(e=>$`\\n            <wui-list-wallet\\n              data-testid=${`wallet-selector-featured-${e.id}`}\\n              imageSrc=${Re(sr.getWalletImage(e))}\\n              name=${e.name??\\\"Unknown\\\"}\\n              @click=${()=>this.onConnectWallet(e)}\\n              tabIdx=${Re(this.tabIdx)}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnectWallet(e){ie.selectWalletConnector(e)}};Wpe([G()],dV.prototype,\\\"tabIdx\\\",void 0);Wpe([G()],dV.prototype,\\\"wallets\\\",void 0);dV=Wpe([te(\\\"w3m-connect-featured-widget\\\")],dV)});var Gpe,fV,Ftt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();lx();Gpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},fV=class extends se{constructor(){super(...arguments),this.tabIdx=void 0,this.connectors=[]}render(){let e=this.connectors.filter(rl.showConnector);return e.length===0?(this.style.cssText=\\\"display: none\\\",null):$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${e.map(r=>$`\\n            <wui-list-wallet\\n              imageSrc=${Re(sr.getConnectorImage(r))}\\n              .installed=${!0}\\n              name=${r.name??\\\"Unknown\\\"}\\n              tagVariant=\\\"success\\\"\\n              tagLabel=\\\"installed\\\"\\n              data-testid=${`wallet-selector-${r.id}`}\\n              @click=${()=>this.onConnector(r)}\\n              tabIdx=${Re(this.tabIdx)}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `}onConnector(e){ie.setActiveConnector(e),de.push(\\\"ConnectingExternal\\\",{connector:e})}};Gpe([G()],fV.prototype,\\\"tabIdx\\\",void 0);Gpe([G()],fV.prototype,\\\"connectors\\\",void 0);fV=Gpe([te(\\\"w3m-connect-injected-widget\\\")],fV)});var Kpe,pV,jtt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();Kpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},pV=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(r=>r.type===\\\"MULTI_CHAIN\\\"&&r.name!==\\\"WalletConnect\\\");return e?.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${e.map(r=>$`\\n            <wui-list-wallet\\n              imageSrc=${Re(sr.getConnectorImage(r))}\\n              .installed=${!0}\\n              name=${r.name??\\\"Unknown\\\"}\\n              tagVariant=\\\"shade\\\"\\n              tagLabel=\\\"multichain\\\"\\n              data-testid=${`wallet-selector-${r.id}`}\\n              @click=${()=>this.onConnector(r)}\\n              tabIdx=${Re(this.tabIdx)}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnector(e){ie.setActiveConnector(e),de.push(\\\"ConnectingMultiChain\\\")}};Kpe([G()],pV.prototype,\\\"tabIdx\\\",void 0);Kpe([xe()],pV.prototype,\\\"connectors\\\",void 0);pV=Kpe([te(\\\"w3m-connect-multi-chain-widget\\\")],pV)});var hV,bR,Htt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();cx();hV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},bR=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.loading=!1,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e)),oe.isTelegram()&&oe.isIos()&&(this.loading=!me.state.wcUri,this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",e=>this.loading=!e)))}render(){let r=Te.getRecentWallets().filter(n=>!Xl.isExcluded(n)).filter(n=>!this.hasWalletConnector(n)).filter(n=>this.isWalletCompatibleWithCurrentChain(n));return r.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${r.map(n=>$`\\n            <wui-list-wallet\\n              imageSrc=${Re(sr.getWalletImage(n))}\\n              name=${n.name??\\\"Unknown\\\"}\\n              @click=${()=>this.onConnectWallet(n)}\\n              tagLabel=\\\"recent\\\"\\n              tagVariant=\\\"shade\\\"\\n              tabIdx=${Re(this.tabIdx)}\\n              ?loading=${this.loading}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnectWallet(e){this.loading||ie.selectWalletConnector(e)}hasWalletConnector(e){return this.connectors.some(r=>r.id===e.id||r.name===e.name)}isWalletCompatibleWithCurrentChain(e){let r=z.state.activeChain;return r&&e.chains?e.chains.some(n=>{let i=n.split(\\\":\\\")[0];return r===i}):!0}};hV([G()],bR.prototype,\\\"tabIdx\\\",void 0);hV([xe()],bR.prototype,\\\"connectors\\\",void 0);hV([xe()],bR.prototype,\\\"loading\\\",void 0);bR=hV([te(\\\"w3m-connect-recent-widget\\\")],bR)});var mV,wR,qtt=x(()=>{u();Q();Ke();bn();xt();pr();is();Df();cx();mV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},wR=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,oe.isTelegram()&&oe.isIos()&&(this.loading=!me.state.wcUri,this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",e=>this.loading=!e)))}render(){let{connectors:e}=ie.state,{customWallets:r,featuredWalletIds:n}=ee.state,i=Te.getRecentWallets(),s=e.find(f=>f.id===\\\"walletConnect\\\"),a=e.filter(f=>f.type===\\\"INJECTED\\\"||f.type===\\\"ANNOUNCED\\\"||f.type===\\\"MULTI_CHAIN\\\").filter(f=>f.name!==\\\"Browser Wallet\\\");if(!s)return null;if(n||r||!this.wallets.length)return this.style.cssText=\\\"display: none\\\",null;let c=a.length+i.length,l=Math.max(0,2-c),d=Xl.filterOutDuplicateWallets(this.wallets).slice(0,l);return d.length?$`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\">\\n        ${d.map(f=>$`\\n            <wui-list-wallet\\n              imageSrc=${Re(sr.getWalletImage(f))}\\n              name=${f?.name??\\\"Unknown\\\"}\\n              @click=${()=>this.onConnectWallet(f)}\\n              tabIdx=${Re(this.tabIdx)}\\n              ?loading=${this.loading}\\n            >\\n            </wui-list-wallet>\\n          `)}\\n      </wui-flex>\\n    `:(this.style.cssText=\\\"display: none\\\",null)}onConnectWallet(e){if(this.loading)return;let r=ie.getConnector(e.id,e.rdns);r?de.push(\\\"ConnectingExternal\\\",{connector:r}):de.push(\\\"ConnectingWalletConnect\\\",{wallet:e})}};mV([G()],wR.prototype,\\\"tabIdx\\\",void 0);mV([G()],wR.prototype,\\\"wallets\\\",void 0);mV([xe()],wR.prototype,\\\"loading\\\",void 0);wR=mV([te(\\\"w3m-connect-recommended-widget\\\")],wR)});var gV,vR,ztt=x(()=>{u();Q();Ke();bn();xt();pr();Df();gV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},vR=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.connectorImages=Zs.state.connectorImages,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e),Zs.subscribeKey(\\\"connectorImages\\\",e=>this.connectorImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(oe.isMobile())return this.style.cssText=\\\"display: none\\\",null;let e=this.connectors.find(n=>n.id===\\\"walletConnect\\\");if(!e)return this.style.cssText=\\\"display: none\\\",null;let r=e.imageUrl||this.connectorImages[e?.imageId??\\\"\\\"];return $`\\n      <wui-list-wallet\\n        imageSrc=${Re(r)}\\n        name=${e.name??\\\"Unknown\\\"}\\n        @click=${()=>this.onConnector(e)}\\n        tagLabel=\\\"qr code\\\"\\n        tagVariant=\\\"main\\\"\\n        tabIdx=${Re(this.tabIdx)}\\n        data-testid=\\\"wallet-selector-walletconnect\\\"\\n      >\\n      </wui-list-wallet>\\n    `}onConnector(e){ie.setActiveConnector(e),de.push(\\\"ConnectingWalletConnect\\\")}};gV([G()],vR.prototype,\\\"tabIdx\\\",void 0);gV([xe()],vR.prototype,\\\"connectors\\\",void 0);gV([xe()],vR.prototype,\\\"connectorImages\\\",void 0);vR=gV([te(\\\"w3m-connect-walletconnect-widget\\\")],vR)});var $tt,Vtt=x(()=>{u();Q();$tt=we`\\n  :host {\\n    margin-top: var(--wui-spacing-3xs);\\n  }\\n  wui-separator {\\n    margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)\\n      calc(var(--wui-spacing-m) * -1);\\n    width: calc(100% + var(--wui-spacing-s) * 2);\\n  }\\n`});var xR,xx,Wtt=x(()=>{u();Q();Ke();bn();xt();pr();is();Mtt();Dtt();Ltt();Utt();Ftt();jtt();Htt();qtt();ztt();lx();Vtt();xR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},xx=class extends se{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=ie.state.connectors,this.recommended=ye.state.recommended,this.featured=ye.state.featured,this.unsubscribe.push(ie.subscribeKey(\\\"connectors\\\",e=>this.connectors=e),ye.subscribeKey(\\\"recommended\\\",e=>this.recommended=e),ye.subscribeKey(\\\"featured\\\",e=>this.featured=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return $`\\n      <wui-flex flexDirection=\\\"column\\\" gap=\\\"xs\\\"> ${this.connectorListTemplate()} </wui-flex>\\n    `}connectorListTemplate(){let{custom:e,recent:r,announced:n,injected:i,multiChain:s,recommended:o,featured:a,external:c}=rl.getConnectorsByType(this.connectors,this.recommended,this.featured);return rl.getConnectorTypeOrder({custom:e,recent:r,announced:n,injected:i,multiChain:s,recommended:o,featured:a,external:c}).map(d=>{switch(d){case\\\"injected\\\":return $`\\n            ${s.length?$`<w3m-connect-multi-chain-widget\\n                  tabIdx=${Re(this.tabIdx)}\\n                ></w3m-connect-multi-chain-widget>`:null}\\n            ${n.length?$`<w3m-connect-announced-widget\\n                  tabIdx=${Re(this.tabIdx)}\\n                ></w3m-connect-announced-widget>`:null}\\n            ${i.length?$`<w3m-connect-injected-widget\\n                  .connectors=${i}\\n                  tabIdx=${Re(this.tabIdx)}\\n                ></w3m-connect-injected-widget>`:null}\\n          `;case\\\"walletConnect\\\":return $`<w3m-connect-walletconnect-widget\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-walletconnect-widget>`;case\\\"recent\\\":return $`<w3m-connect-recent-widget\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-recent-widget>`;case\\\"featured\\\":return $`<w3m-connect-featured-widget\\n            .wallets=${a}\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-featured-widget>`;case\\\"custom\\\":return $`<w3m-connect-custom-widget\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-custom-widget>`;case\\\"external\\\":return $`<w3m-connect-external-widget\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-external-widget>`;case\\\"recommended\\\":return $`<w3m-connect-recommended-widget\\n            .wallets=${o}\\n            tabIdx=${Re(this.tabIdx)}\\n          ></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${d}`),null}})}};xx.styles=$tt;xR([G()],xx.prototype,\\\"tabIdx\\\",void 0);xR([xe()],xx.prototype,\\\"connectors\\\",void 0);xR([xe()],xx.prototype,\\\"recommended\\\",void 0);xR([xe()],xx.prototype,\\\"featured\\\",void 0);xx=xR([te(\\\"w3m-connector-list\\\")],xx)});var Gtt,Ktt=x(()=>{u();Q();Gtt=we`\\n  :host {\\n    display: inline-flex;\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: var(--wui-border-radius-3xl);\\n    padding: var(--wui-spacing-3xs);\\n    position: relative;\\n    height: 36px;\\n    min-height: 36px;\\n    overflow: hidden;\\n  }\\n\\n  :host::before {\\n    content: '';\\n    position: absolute;\\n    pointer-events: none;\\n    top: 4px;\\n    left: 4px;\\n    display: block;\\n    width: var(--local-tab-width);\\n    height: 28px;\\n    border-radius: var(--wui-border-radius-3xl);\\n    background-color: var(--wui-color-gray-glass-002);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\\n    transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));\\n    transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: background-color, opacity;\\n  }\\n\\n  :host([data-type='flex'])::before {\\n    left: 3px;\\n    transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));\\n  }\\n\\n  :host([data-type='flex']) {\\n    display: flex;\\n    padding: 0px 0px 0px 12px;\\n    gap: 4px;\\n  }\\n\\n  :host([data-type='flex']) > button > wui-text {\\n    position: absolute;\\n    left: 18px;\\n    opacity: 0;\\n  }\\n\\n  button[data-active='true'] > wui-icon,\\n  button[data-active='true'] > wui-text {\\n    color: var(--wui-color-fg-100);\\n  }\\n\\n  button[data-active='false'] > wui-icon,\\n  button[data-active='false'] > wui-text {\\n    color: var(--wui-color-fg-200);\\n  }\\n\\n  button[data-active='true']:disabled,\\n  button[data-active='false']:disabled {\\n    background-color: transparent;\\n    opacity: 0.5;\\n    cursor: not-allowed;\\n  }\\n\\n  button[data-active='true']:disabled > wui-text {\\n    color: var(--wui-color-fg-200);\\n  }\\n\\n  button[data-active='false']:disabled > wui-text {\\n    color: var(--wui-color-fg-300);\\n  }\\n\\n  button > wui-icon,\\n  button > wui-text {\\n    pointer-events: none;\\n    transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);\\n    will-change: color;\\n  }\\n\\n  button {\\n    width: var(--local-tab-width);\\n    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: background-color;\\n  }\\n\\n  :host([data-type='flex']) > button {\\n    width: 34px;\\n    position: relative;\\n    display: flex;\\n    justify-content: flex-start;\\n  }\\n\\n  button:hover:enabled,\\n  button:active:enabled {\\n    background-color: transparent !important;\\n  }\\n\\n  button:hover:enabled > wui-icon,\\n  button:active:enabled > wui-icon {\\n    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);\\n    color: var(--wui-color-fg-125);\\n  }\\n\\n  button:hover:enabled > wui-text,\\n  button:active:enabled > wui-text {\\n    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);\\n    color: var(--wui-color-fg-125);\\n  }\\n\\n  button {\\n    border-radius: var(--wui-border-radius-3xl);\\n  }\\n`});var rb,Ih,Ztt=x(()=>{u();Q();Ke();aa();tu();Er();fr();Ktt();rb=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ih=class extends se{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth=\\\"100px\\\",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\\n      --local-tab: ${this.activeTab};\\n      --local-tab-width: ${this.localTabWidth};\\n    `,this.dataset.type=this.isDense?\\\"flex\\\":\\\"block\\\",this.tabs.map((e,r)=>{let n=r===this.activeTab;return $`\\n        <button\\n          ?disabled=${this.disabled}\\n          @click=${()=>this.onTabClick(r)}\\n          data-active=${n}\\n          data-testid=\\\"tab-${e.label?.toLowerCase()}\\\"\\n        >\\n          ${this.iconTemplate(e)}\\n          <wui-text variant=\\\"small-600\\\" color=\\\"inherit\\\"> ${e.label} </wui-text>\\n        </button>\\n      `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll(\\\"button\\\")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?$`<wui-icon size=\\\"xs\\\" color=\\\"inherit\\\" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,r){let n=this.buttons[this.activeTab],i=this.buttons[e],s=n?.querySelector(\\\"wui-text\\\"),o=i?.querySelector(\\\"wui-text\\\"),a=i?.getBoundingClientRect(),c=o?.getBoundingClientRect();n&&s&&!r&&e!==this.activeTab&&(s.animate([{opacity:0}],{duration:50,easing:\\\"ease\\\",fill:\\\"forwards\\\"}),n.animate([{width:\\\"34px\\\"}],{duration:500,easing:\\\"ease\\\",fill:\\\"forwards\\\"})),i&&a&&c&&o&&(e!==this.activeTab||r)&&(this.localTabWidth=`${Math.round(a.width+c.width)+6}px`,i.animate([{width:`${a.width+c.width}px`}],{duration:r?0:500,fill:\\\"forwards\\\",easing:\\\"ease\\\"}),o.animate([{opacity:1}],{duration:r?0:125,delay:r?0:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}))}};Ih.styles=[ze,dr,Gtt];rb([G({type:Array})],Ih.prototype,\\\"tabs\\\",void 0);rb([G()],Ih.prototype,\\\"onTabChange\\\",void 0);rb([G({type:Array})],Ih.prototype,\\\"buttons\\\",void 0);rb([G({type:Boolean})],Ih.prototype,\\\"disabled\\\",void 0);rb([G()],Ih.prototype,\\\"localTabWidth\\\",void 0);rb([xe()],Ih.prototype,\\\"activeTab\\\",void 0);rb([xe()],Ih.prototype,\\\"isDense\\\",void 0);Ih=rb([te(\\\"wui-tabs\\\")],Ih)});var Qtt=x(()=>{u();Ztt()});var Zpe,yV,Jtt=x(()=>{u();Q();Ke();pr();is();Qtt();Zpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},yV=class extends se{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return $`\\n      <wui-flex justifyContent=\\\"center\\\" .padding=${[\\\"0\\\",\\\"0\\\",\\\"l\\\",\\\"0\\\"]}>\\n        <wui-tabs .tabs=${e} .onTabChange=${this.onTabChange.bind(this)}></wui-tabs>\\n      </wui-flex>\\n    `}generateTabs(){let e=this.platforms.map(r=>r===\\\"browser\\\"?{label:\\\"Browser\\\",icon:\\\"extension\\\",platform:\\\"browser\\\"}:r===\\\"mobile\\\"?{label:\\\"Mobile\\\",icon:\\\"mobile\\\",platform:\\\"mobile\\\"}:r===\\\"qrcode\\\"?{label:\\\"Mobile\\\",icon:\\\"mobile\\\",platform:\\\"qrcode\\\"}:r===\\\"web\\\"?{label:\\\"Webapp\\\",icon:\\\"browser\\\",platform:\\\"web\\\"}:r===\\\"desktop\\\"?{label:\\\"Desktop\\\",icon:\\\"desktop\\\",platform:\\\"desktop\\\"}:{label:\\\"Browser\\\",icon:\\\"extension\\\",platform:\\\"unsupported\\\"});return this.platformTabs=e.map(({platform:r})=>r),e}onTabChange(e){let r=this.platformTabs[e];r&&this.onSelectPlatfrom?.(r)}};Zpe([G({type:Array})],yV.prototype,\\\"platforms\\\",void 0);Zpe([G()],yV.prototype,\\\"onSelectPlatfrom\\\",void 0);yV=Zpe([te(\\\"w3m-connecting-header\\\")],yV)});var Ytt,Xtt=x(()=>{u();Q();Ytt=we`\\n  :host {\\n    display: flex;\\n  }\\n\\n  :host([data-size='sm']) > svg {\\n    width: 12px;\\n    height: 12px;\\n  }\\n\\n  :host([data-size='md']) > svg {\\n    width: 16px;\\n    height: 16px;\\n  }\\n\\n  :host([data-size='lg']) > svg {\\n    width: 24px;\\n    height: 24px;\\n  }\\n\\n  :host([data-size='xl']) > svg {\\n    width: 32px;\\n    height: 32px;\\n  }\\n\\n  svg {\\n    animation: rotate 2s linear infinite;\\n  }\\n\\n  circle {\\n    fill: none;\\n    stroke: var(--local-color);\\n    stroke-width: 4px;\\n    stroke-dasharray: 1, 124;\\n    stroke-dashoffset: 0;\\n    stroke-linecap: round;\\n    animation: dash 1.5s ease-in-out infinite;\\n  }\\n\\n  :host([data-size='md']) > svg > circle {\\n    stroke-width: 6px;\\n  }\\n\\n  :host([data-size='sm']) > svg > circle {\\n    stroke-width: 8px;\\n  }\\n\\n  @keyframes rotate {\\n    100% {\\n      transform: rotate(360deg);\\n    }\\n  }\\n\\n  @keyframes dash {\\n    0% {\\n      stroke-dasharray: 1, 124;\\n      stroke-dashoffset: 0;\\n    }\\n\\n    50% {\\n      stroke-dasharray: 90, 124;\\n      stroke-dashoffset: -35;\\n    }\\n\\n    100% {\\n      stroke-dashoffset: -125;\\n    }\\n  }\\n`});var Qpe,ER,_R=x(()=>{u();Q();Ke();Er();fr();Xtt();Qpe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ER=class extends se{constructor(){super(...arguments),this.color=\\\"accent-100\\\",this.size=\\\"lg\\\"}render(){return this.style.cssText=`--local-color: ${this.color===\\\"inherit\\\"?\\\"inherit\\\":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,$`<svg viewBox=\\\"25 25 50 50\\\">\\n      <circle r=\\\"20\\\" cy=\\\"50\\\" cx=\\\"50\\\"></circle>\\n    </svg>`}};ER.styles=[ze,Ytt];Qpe([G()],ER.prototype,\\\"color\\\",void 0);Qpe([G()],ER.prototype,\\\"size\\\",void 0);ER=Qpe([te(\\\"wui-loading-spinner\\\")],ER)});var ert,trt=x(()=>{u();Q();ert=we`\\n  :host {\\n    width: var(--local-width);\\n    position: relative;\\n  }\\n\\n  button {\\n    border: none;\\n    border-radius: var(--local-border-radius);\\n    width: var(--local-width);\\n    white-space: nowrap;\\n  }\\n\\n  /* -- Sizes --------------------------------------------------- */\\n  button[data-size='md'] {\\n    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);\\n    height: 36px;\\n  }\\n\\n  button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {\\n    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);\\n  }\\n\\n  button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {\\n    padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);\\n  }\\n\\n  button[data-size='lg'] {\\n    padding: var(--wui-spacing-m) var(--wui-spacing-2l);\\n    height: 48px;\\n  }\\n\\n  /* -- Variants --------------------------------------------------------- */\\n  button[data-variant='main'] {\\n    background-color: var(--wui-color-accent-100);\\n    color: var(--wui-color-inverse-100);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  button[data-variant='inverse'] {\\n    background-color: var(--wui-color-inverse-100);\\n    color: var(--wui-color-inverse-000);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  button[data-variant='accent'] {\\n    background-color: var(--wui-color-accent-glass-010);\\n    color: var(--wui-color-accent-100);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\\n  }\\n\\n  button[data-variant='accent-error'] {\\n    background: var(--wui-color-error-glass-015);\\n    color: var(--wui-color-error-100);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);\\n  }\\n\\n  button[data-variant='accent-success'] {\\n    background: var(--wui-color-success-glass-015);\\n    color: var(--wui-color-success-100);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);\\n  }\\n\\n  button[data-variant='neutral'] {\\n    background: transparent;\\n    color: var(--wui-color-fg-100);\\n    border: none;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\\n  }\\n\\n  /* -- Focus states --------------------------------------------------- */\\n  button[data-variant='main']:focus-visible:enabled {\\n    background-color: var(--wui-color-accent-090);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-accent-100),\\n      0 0 0 4px var(--wui-color-accent-glass-020);\\n  }\\n  button[data-variant='inverse']:focus-visible:enabled {\\n    background-color: var(--wui-color-inverse-100);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-gray-glass-010),\\n      0 0 0 4px var(--wui-color-accent-glass-020);\\n  }\\n  button[data-variant='accent']:focus-visible:enabled {\\n    background-color: var(--wui-color-accent-glass-010);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-accent-100),\\n      0 0 0 4px var(--wui-color-accent-glass-020);\\n  }\\n  button[data-variant='accent-error']:focus-visible:enabled {\\n    background: var(--wui-color-error-glass-015);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-error-100),\\n      0 0 0 4px var(--wui-color-error-glass-020);\\n  }\\n  button[data-variant='accent-success']:focus-visible:enabled {\\n    background: var(--wui-color-success-glass-015);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-success-100),\\n      0 0 0 4px var(--wui-color-success-glass-020);\\n  }\\n  button[data-variant='neutral']:focus-visible:enabled {\\n    background: var(--wui-color-gray-glass-005);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-gray-glass-010),\\n      0 0 0 4px var(--wui-color-gray-glass-002);\\n  }\\n\\n  /* -- Hover & Active states ----------------------------------------------------------- */\\n  @media (hover: hover) and (pointer: fine) {\\n    button[data-variant='main']:hover:enabled {\\n      background-color: var(--wui-color-accent-090);\\n    }\\n\\n    button[data-variant='main']:active:enabled {\\n      background-color: var(--wui-color-accent-080);\\n    }\\n\\n    button[data-variant='accent']:hover:enabled {\\n      background-color: var(--wui-color-accent-glass-015);\\n    }\\n\\n    button[data-variant='accent']:active:enabled {\\n      background-color: var(--wui-color-accent-glass-020);\\n    }\\n\\n    button[data-variant='accent-error']:hover:enabled {\\n      background: var(--wui-color-error-glass-020);\\n      color: var(--wui-color-error-100);\\n    }\\n\\n    button[data-variant='accent-error']:active:enabled {\\n      background: var(--wui-color-error-glass-030);\\n      color: var(--wui-color-error-100);\\n    }\\n\\n    button[data-variant='accent-success']:hover:enabled {\\n      background: var(--wui-color-success-glass-020);\\n      color: var(--wui-color-success-100);\\n    }\\n\\n    button[data-variant='accent-success']:active:enabled {\\n      background: var(--wui-color-success-glass-030);\\n      color: var(--wui-color-success-100);\\n    }\\n\\n    button[data-variant='neutral']:hover:enabled {\\n      background: var(--wui-color-gray-glass-002);\\n    }\\n\\n    button[data-variant='neutral']:active:enabled {\\n      background: var(--wui-color-gray-glass-005);\\n    }\\n\\n    button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {\\n      padding-left: var(--wui-spacing-m);\\n    }\\n\\n    button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {\\n      padding-right: var(--wui-spacing-m);\\n    }\\n  }\\n\\n  /* -- Disabled state --------------------------------------------------- */\\n  button:disabled {\\n    background-color: var(--wui-color-gray-glass-002);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\\n    color: var(--wui-color-gray-glass-020);\\n    cursor: not-allowed;\\n  }\\n\\n  button > wui-text {\\n    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: opacity;\\n    opacity: var(--local-opacity-100);\\n  }\\n\\n  ::slotted(*) {\\n    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: opacity;\\n    opacity: var(--local-opacity-100);\\n  }\\n\\n  wui-loading-spinner {\\n    position: absolute;\\n    left: 50%;\\n    top: 50%;\\n    transform: translate(-50%, -50%);\\n    opacity: var(--local-opacity-000);\\n  }\\n`});var Rh,rrt,iKt,sKt,Ed,nrt=x(()=>{u();Q();Ke();_R();tu();Er();fr();trt();Rh=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},rrt={main:\\\"inverse-100\\\",inverse:\\\"inverse-000\\\",accent:\\\"accent-100\\\",\\\"accent-error\\\":\\\"error-100\\\",\\\"accent-success\\\":\\\"success-100\\\",neutral:\\\"fg-100\\\",disabled:\\\"gray-glass-020\\\"},iKt={lg:\\\"paragraph-600\\\",md:\\\"small-600\\\"},sKt={lg:\\\"md\\\",md:\\\"md\\\"},Ed=class extends se{constructor(){super(...arguments),this.size=\\\"lg\\\",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant=\\\"main\\\",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius=\\\"m\\\"}render(){this.style.cssText=`\\n    --local-width: ${this.fullWidth?\\\"100%\\\":\\\"auto\\\"};\\n    --local-opacity-100: ${this.loading?0:1};\\n    --local-opacity-000: ${this.loading?1:0};\\n    --local-border-radius: var(--wui-border-radius-${this.borderRadius});\\n    `;let e=this.textVariant??iKt[this.size];return $`\\n      <button\\n        data-variant=${this.variant}\\n        data-icon-left=${this.hasIconLeft}\\n        data-icon-right=${this.hasIconRight}\\n        data-size=${this.size}\\n        ?disabled=${this.disabled}\\n      >\\n        ${this.loadingTemplate()}\\n        <slot name=\\\"iconLeft\\\" @slotchange=${()=>this.handleSlotLeftChange()}></slot>\\n        <wui-text variant=${e} color=\\\"inherit\\\">\\n          <slot></slot>\\n        </wui-text>\\n        <slot name=\\\"iconRight\\\" @slotchange=${()=>this.handleSlotRightChange()}></slot>\\n      </button>\\n    `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){let e=sKt[this.size],r=this.disabled?rrt.disabled:rrt[this.variant];return $`<wui-loading-spinner color=${r} size=${e}></wui-loading-spinner>`}return $``}};Ed.styles=[ze,dr,ert];Rh([G()],Ed.prototype,\\\"size\\\",void 0);Rh([G({type:Boolean})],Ed.prototype,\\\"disabled\\\",void 0);Rh([G({type:Boolean})],Ed.prototype,\\\"fullWidth\\\",void 0);Rh([G({type:Boolean})],Ed.prototype,\\\"loading\\\",void 0);Rh([G()],Ed.prototype,\\\"variant\\\",void 0);Rh([G({type:Boolean})],Ed.prototype,\\\"hasIconLeft\\\",void 0);Rh([G({type:Boolean})],Ed.prototype,\\\"hasIconRight\\\",void 0);Rh([G()],Ed.prototype,\\\"borderRadius\\\",void 0);Rh([G()],Ed.prototype,\\\"textVariant\\\",void 0);Ed=Rh([te(\\\"wui-button\\\")],Ed)});var irt=x(()=>{u();nrt()});var CR=x(()=>{u();aa()});var bV=x(()=>{u();tb()});var srt,ort=x(()=>{u();Q();srt=we`\\n  button {\\n    padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);\\n    border-radius: var(--wui-border-radius-3xs);\\n    background-color: transparent;\\n    color: var(--wui-color-accent-100);\\n  }\\n\\n  button:disabled {\\n    background-color: transparent;\\n    color: var(--wui-color-gray-glass-015);\\n  }\\n\\n  button:hover {\\n    background-color: var(--wui-color-gray-glass-005);\\n  }\\n`});var wV,f8,art=x(()=>{u();Q();Ke();bn();tu();Er();fr();ort();wV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},f8=class extends se{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color=\\\"inherit\\\"}render(){return $`\\n      <button ?disabled=${this.disabled} tabindex=${Re(this.tabIdx)}>\\n        <slot name=\\\"iconLeft\\\"></slot>\\n        <wui-text variant=\\\"small-600\\\" color=${this.color}>\\n          <slot></slot>\\n        </wui-text>\\n        <slot name=\\\"iconRight\\\"></slot>\\n      </button>\\n    `}};f8.styles=[ze,dr,srt];wV([G()],f8.prototype,\\\"tabIdx\\\",void 0);wV([G({type:Boolean})],f8.prototype,\\\"disabled\\\",void 0);wV([G()],f8.prototype,\\\"color\\\",void 0);f8=wV([te(\\\"wui-link\\\")],f8)});var Jpe=x(()=>{u();art()});var crt,lrt=x(()=>{u();Q();crt=we`\\n  :host {\\n    display: block;\\n    width: var(--wui-box-size-md);\\n    height: var(--wui-box-size-md);\\n  }\\n\\n  svg {\\n    width: var(--wui-box-size-md);\\n    height: var(--wui-box-size-md);\\n  }\\n\\n  rect {\\n    fill: none;\\n    stroke: var(--wui-color-accent-100);\\n    stroke-width: 4px;\\n    stroke-linecap: round;\\n    animation: dash 1s linear infinite;\\n  }\\n\\n  @keyframes dash {\\n    to {\\n      stroke-dashoffset: 0px;\\n    }\\n  }\\n`});var urt,vV,drt=x(()=>{u();Q();Ke();Er();fr();lrt();urt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},vV=class extends se{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,n=36-e,i=116+n,s=245+n,o=360+n*1.75;return $`\\n      <svg viewBox=\\\"0 0 110 110\\\" width=\\\"110\\\" height=\\\"110\\\">\\n        <rect\\n          x=\\\"2\\\"\\n          y=\\\"2\\\"\\n          width=\\\"106\\\"\\n          height=\\\"106\\\"\\n          rx=${e}\\n          stroke-dasharray=\\\"${i} ${s}\\\"\\n          stroke-dashoffset=${o}\\n        />\\n      </svg>\\n    `}};vV.styles=[ze,crt];urt([G({type:Number})],vV.prototype,\\\"radius\\\",void 0);vV=urt([te(\\\"wui-loading-thumbnail\\\")],vV)});var frt=x(()=>{u();drt()});var z0=x(()=>{u();tu()});var xV=x(()=>{u();oV()});var prt,hrt=x(()=>{u();Q();prt=we`\\n  button {\\n    border: none;\\n    border-radius: var(--wui-border-radius-3xl);\\n  }\\n\\n  button[data-variant='main'] {\\n    background-color: var(--wui-color-accent-100);\\n    color: var(--wui-color-inverse-100);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  button[data-variant='accent'] {\\n    background-color: var(--wui-color-accent-glass-010);\\n    color: var(--wui-color-accent-100);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\\n  }\\n\\n  button[data-variant='gray'] {\\n    background-color: transparent;\\n    color: var(--wui-color-fg-200);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  button[data-variant='shade'] {\\n    background-color: transparent;\\n    color: var(--wui-color-accent-100);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  button[data-size='sm'] {\\n    height: 32px;\\n    padding: 0 var(--wui-spacing-s);\\n  }\\n\\n  button[data-size='md'] {\\n    height: 40px;\\n    padding: 0 var(--wui-spacing-l);\\n  }\\n\\n  button[data-size='sm'] > wui-image {\\n    width: 16px;\\n    height: 16px;\\n  }\\n\\n  button[data-size='md'] > wui-image {\\n    width: 24px;\\n    height: 24px;\\n  }\\n\\n  button[data-size='sm'] > wui-icon {\\n    width: 12px;\\n    height: 12px;\\n  }\\n\\n  button[data-size='md'] > wui-icon {\\n    width: 14px;\\n    height: 14px;\\n  }\\n\\n  wui-image {\\n    border-radius: var(--wui-border-radius-3xl);\\n    overflow: hidden;\\n  }\\n\\n  button.disabled > wui-icon,\\n  button.disabled > wui-image {\\n    filter: grayscale(1);\\n  }\\n\\n  button[data-variant='main'] > wui-image {\\n    box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);\\n  }\\n\\n  button[data-variant='shade'] > wui-image,\\n  button[data-variant='gray'] > wui-image {\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\\n  }\\n\\n  @media (hover: hover) and (pointer: fine) {\\n    button[data-variant='main']:focus-visible {\\n      background-color: var(--wui-color-accent-090);\\n    }\\n\\n    button[data-variant='main']:hover:enabled {\\n      background-color: var(--wui-color-accent-090);\\n    }\\n\\n    button[data-variant='main']:active:enabled {\\n      background-color: var(--wui-color-accent-080);\\n    }\\n\\n    button[data-variant='accent']:hover:enabled {\\n      background-color: var(--wui-color-accent-glass-015);\\n    }\\n\\n    button[data-variant='accent']:active:enabled {\\n      background-color: var(--wui-color-accent-glass-020);\\n    }\\n\\n    button[data-variant='shade']:focus-visible,\\n    button[data-variant='gray']:focus-visible,\\n    button[data-variant='shade']:hover,\\n    button[data-variant='gray']:hover {\\n      background-color: var(--wui-color-gray-glass-002);\\n    }\\n\\n    button[data-variant='gray']:active,\\n    button[data-variant='shade']:active {\\n      background-color: var(--wui-color-gray-glass-005);\\n    }\\n  }\\n\\n  button.disabled {\\n    color: var(--wui-color-gray-glass-020);\\n    background-color: var(--wui-color-gray-glass-002);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\\n    pointer-events: none;\\n  }\\n`});var Ex,$0,mrt=x(()=>{u();Q();Ke();aa();u8();tu();Er();fr();hrt();Ex=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$0=class extends se{constructor(){super(...arguments),this.variant=\\\"accent\\\",this.imageSrc=\\\"\\\",this.disabled=!1,this.icon=\\\"externalLink\\\",this.size=\\\"md\\\",this.text=\\\"\\\"}render(){let e=this.size===\\\"sm\\\"?\\\"small-600\\\":\\\"paragraph-600\\\";return $`\\n      <button\\n        class=${this.disabled?\\\"disabled\\\":\\\"\\\"}\\n        data-variant=${this.variant}\\n        data-size=${this.size}\\n      >\\n        ${this.imageSrc?$`<wui-image src=${this.imageSrc}></wui-image>`:null}\\n        <wui-text variant=${e} color=\\\"inherit\\\"> ${this.text} </wui-text>\\n        <wui-icon name=${this.icon} color=\\\"inherit\\\" size=\\\"inherit\\\"></wui-icon>\\n      </button>\\n    `}};$0.styles=[ze,dr,prt];Ex([G()],$0.prototype,\\\"variant\\\",void 0);Ex([G()],$0.prototype,\\\"imageSrc\\\",void 0);Ex([G({type:Boolean})],$0.prototype,\\\"disabled\\\",void 0);Ex([G()],$0.prototype,\\\"icon\\\",void 0);Ex([G()],$0.prototype,\\\"size\\\",void 0);Ex([G()],$0.prototype,\\\"text\\\",void 0);$0=Ex([te(\\\"wui-chip-button\\\")],$0)});var grt,yrt=x(()=>{u();Q();grt=we`\\n  wui-flex {\\n    width: 100%;\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: var(--wui-border-radius-xs);\\n  }\\n`});var EV,p8,brt=x(()=>{u();Q();Ke();tu();mrt();eb();Er();fr();yrt();EV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},p8=class extends se{constructor(){super(...arguments),this.disabled=!1,this.label=\\\"\\\",this.buttonLabel=\\\"\\\"}render(){return $`\\n      <wui-flex\\n        justifyContent=\\\"space-between\\\"\\n        alignItems=\\\"center\\\"\\n        .padding=${[\\\"1xs\\\",\\\"2l\\\",\\\"1xs\\\",\\\"2l\\\"]}\\n      >\\n        <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-200\\\">${this.label}</wui-text>\\n        <wui-chip-button size=\\\"sm\\\" variant=\\\"shade\\\" text=${this.buttonLabel} icon=\\\"chevronRight\\\">\\n        </wui-chip-button>\\n      </wui-flex>\\n    `}};p8.styles=[ze,dr,grt];EV([G({type:Boolean})],p8.prototype,\\\"disabled\\\",void 0);EV([G()],p8.prototype,\\\"label\\\",void 0);EV([G()],p8.prototype,\\\"buttonLabel\\\",void 0);p8=EV([te(\\\"wui-cta-button\\\")],p8)});var wrt=x(()=>{u();brt()});var vrt,xrt=x(()=>{u();Q();vrt=we`\\n  :host {\\n    display: block;\\n    padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);\\n  }\\n`});var Ert,_V,CV=x(()=>{u();Q();Ke();xt();pr();wrt();xrt();Ert=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},_V=class extends se{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display=\\\"none\\\",null;let{name:e,app_store:r,play_store:n,chrome_store:i,homepage:s}=this.wallet,o=oe.isMobile(),a=oe.isIos(),c=oe.isAndroid(),l=[r,n,s,i].filter(Boolean).length>1,d=Pi.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:\\\"end\\\"});return l&&!o?$`\\n        <wui-cta-button\\n          label=${`Don't have ${d}?`}\\n          buttonLabel=\\\"Get\\\"\\n          @click=${()=>de.push(\\\"Downloads\\\",{wallet:this.wallet})}\\n        ></wui-cta-button>\\n      `:!l&&s?$`\\n        <wui-cta-button\\n          label=${`Don't have ${d}?`}\\n          buttonLabel=\\\"Get\\\"\\n          @click=${this.onHomePage.bind(this)}\\n        ></wui-cta-button>\\n      `:r&&a?$`\\n        <wui-cta-button\\n          label=${`Don't have ${d}?`}\\n          buttonLabel=\\\"Get\\\"\\n          @click=${this.onAppStore.bind(this)}\\n        ></wui-cta-button>\\n      `:n&&c?$`\\n        <wui-cta-button\\n          label=${`Don't have ${d}?`}\\n          buttonLabel=\\\"Get\\\"\\n          @click=${this.onPlayStore.bind(this)}\\n        ></wui-cta-button>\\n      `:(this.style.display=\\\"none\\\",null)}onAppStore(){this.wallet?.app_store&&oe.openHref(this.wallet.app_store,\\\"_blank\\\")}onPlayStore(){this.wallet?.play_store&&oe.openHref(this.wallet.play_store,\\\"_blank\\\")}onHomePage(){this.wallet?.homepage&&oe.openHref(this.wallet.homepage,\\\"_blank\\\")}};_V.styles=[vrt];Ert([G({type:Object})],_V.prototype,\\\"wallet\\\",void 0);_V=Ert([te(\\\"w3m-mobile-download-links\\\")],_V)});var _rt,Crt=x(()=>{u();Q();_rt=we`\\n  @keyframes shake {\\n    0% {\\n      transform: translateX(0);\\n    }\\n    25% {\\n      transform: translateX(3px);\\n    }\\n    50% {\\n      transform: translateX(-3px);\\n    }\\n    75% {\\n      transform: translateX(3px);\\n    }\\n    100% {\\n      transform: translateX(0);\\n    }\\n  }\\n\\n  wui-flex:first-child:not(:only-child) {\\n    position: relative;\\n  }\\n\\n  wui-loading-thumbnail {\\n    position: absolute;\\n  }\\n\\n  wui-icon-box {\\n    position: absolute;\\n    right: calc(var(--wui-spacing-3xs) * -1);\\n    bottom: calc(var(--wui-spacing-3xs) * -1);\\n    opacity: 0;\\n    transform: scale(0.5);\\n    transition-property: opacity, transform;\\n    transition-duration: var(--wui-duration-lg);\\n    transition-timing-function: var(--wui-ease-out-power-2);\\n    will-change: opacity, transform;\\n  }\\n\\n  wui-text[align='center'] {\\n    width: 100%;\\n    padding: 0px var(--wui-spacing-l);\\n  }\\n\\n  [data-error='true'] wui-icon-box {\\n    opacity: 1;\\n    transform: scale(1);\\n  }\\n\\n  [data-error='true'] > wui-flex:first-child {\\n    animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\\n  }\\n\\n  [data-retry='false'] wui-link {\\n    display: none;\\n  }\\n\\n  [data-retry='true'] wui-link {\\n    display: block;\\n    opacity: 1;\\n  }\\n`});var Ph,$i,h8=x(()=>{u();Q();Ke();bn();xt();irt();is();CR();bV();Jpe();frt();z0();xV();CV();Crt();Ph=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$i=class extends se{constructor(){super(),this.wallet=de.state.data?.wallet,this.connector=de.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon=\\\"refresh\\\",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=sr.getWalletImage(this.wallet)??sr.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??\\\"Wallet\\\",this.isRetrying=!1,this.uri=me.state.wcUri,this.error=me.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel=\\\"Try again\\\",this.secondaryLabel=\\\"Accept connection request in the wallet\\\",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),me.subscribeKey(\\\"wcError\\\",e=>this.error=e)),(oe.isTelegram()||oe.isSafari())&&oe.isIos()&&me.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),me.setWcError(!1),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?\\\"Connection can be declined if a previous request is still active\\\":this.secondaryLabel,r=`Continue in ${this.name}`;return this.error&&(r=\\\"Connection declined\\\"),$`\\n      <wui-flex\\n        data-error=${Re(this.error)}\\n        data-retry=${this.showRetry}\\n        flexDirection=\\\"column\\\"\\n        alignItems=\\\"center\\\"\\n        .padding=${[\\\"3xl\\\",\\\"xl\\\",\\\"xl\\\",\\\"xl\\\"]}\\n        gap=\\\"xl\\\"\\n      >\\n        <wui-flex justifyContent=\\\"center\\\" alignItems=\\\"center\\\">\\n          <wui-wallet-image size=\\\"lg\\\" imageSrc=${Re(this.imageSrc)}></wui-wallet-image>\\n\\n          ${this.error?null:this.loaderTemplate()}\\n\\n          <wui-icon-box\\n            backgroundColor=\\\"error-100\\\"\\n            background=\\\"opaque\\\"\\n            iconColor=\\\"error-100\\\"\\n            icon=\\\"close\\\"\\n            size=\\\"sm\\\"\\n            border\\n            borderColor=\\\"wui-color-bg-125\\\"\\n          ></wui-icon-box>\\n        </wui-flex>\\n\\n        <wui-flex flexDirection=\\\"column\\\" alignItems=\\\"center\\\" gap=\\\"xs\\\">\\n          <wui-text variant=\\\"paragraph-500\\\" color=${this.error?\\\"error-100\\\":\\\"fg-100\\\"}>\\n            ${r}\\n          </wui-text>\\n          <wui-text align=\\\"center\\\" variant=\\\"small-500\\\" color=\\\"fg-200\\\">${e}</wui-text>\\n        </wui-flex>\\n\\n        ${this.secondaryBtnLabel?$`\\n              <wui-button\\n                variant=\\\"accent\\\"\\n                size=\\\"md\\\"\\n                ?disabled=${this.isRetrying||this.isLoading}\\n                @click=${this.onTryAgain.bind(this)}\\n                data-testid=\\\"w3m-connecting-widget-secondary-button\\\"\\n              >\\n                <wui-icon color=\\\"inherit\\\" slot=\\\"iconLeft\\\" name=${this.secondaryBtnIcon}></wui-icon>\\n                ${this.secondaryBtnLabel}\\n              </wui-button>\\n            `:null}\\n      </wui-flex>\\n\\n      ${this.isWalletConnect?$`\\n            <wui-flex .padding=${[\\\"0\\\",\\\"xl\\\",\\\"xl\\\",\\\"xl\\\"]} justifyContent=\\\"center\\\">\\n              <wui-link @click=${this.onCopyUri} color=\\\"fg-200\\\" data-testid=\\\"wui-link-copy\\\">\\n                <wui-icon size=\\\"xs\\\" color=\\\"fg-200\\\" slot=\\\"iconLeft\\\" name=\\\"copy\\\"></wui-icon>\\n                Copy link\\n              </wui-link>\\n            </wui-flex>\\n          `:null}\\n\\n      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>\\n    `}onShowRetry(){this.error&&!this.showRetry&&(this.showRetry=!0,this.shadowRoot?.querySelector(\\\"wui-button\\\")?.animate([{opacity:0},{opacity:1}],{fill:\\\"forwards\\\",easing:\\\"ease\\\"}))}onTryAgain(){me.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.()}loaderTemplate(){let e=ji.state.themeVariables[\\\"--w3m-border-radius-master\\\"],r=e?parseInt(e.replace(\\\"px\\\",\\\"\\\"),10):4;return $`<wui-loading-thumbnail radius=${r*9}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(oe.copyToClopboard(this.uri),wr.showSuccess(\\\"Link copied\\\"))}catch{wr.showError(\\\"Failed to copy\\\")}}};$i.styles=_rt;Ph([xe()],$i.prototype,\\\"isRetrying\\\",void 0);Ph([xe()],$i.prototype,\\\"uri\\\",void 0);Ph([xe()],$i.prototype,\\\"error\\\",void 0);Ph([xe()],$i.prototype,\\\"ready\\\",void 0);Ph([xe()],$i.prototype,\\\"showRetry\\\",void 0);Ph([xe()],$i.prototype,\\\"secondaryBtnLabel\\\",void 0);Ph([xe()],$i.prototype,\\\"secondaryLabel\\\",void 0);Ph([xe()],$i.prototype,\\\"isLoading\\\",void 0);Ph([G({type:Boolean})],$i.prototype,\\\"isMobile\\\",void 0);Ph([G()],$i.prototype,\\\"onRetry\\\",void 0)});var oKt,Srt,Art=x(()=>{u();xt();pr();h8();oKt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Srt=class extends $i{constructor(){if(super(),!this.wallet)throw new Error(\\\"w3m-connecting-wc-browser: No wallet provided\\\");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet.name,platform:\\\"browser\\\"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=ie.state,r=e.find(n=>n.type===\\\"ANNOUNCED\\\"&&n.info?.rdns===this.wallet?.rdns||n.type===\\\"INJECTED\\\"||n.name===this.wallet?.name);if(r)await me.connectExternal(r,r.chain);else throw new Error(\\\"w3m-connecting-wc-browser: No connector found\\\");Dt.close(),Xe.sendEvent({type:\\\"track\\\",event:\\\"CONNECT_SUCCESS\\\",properties:{method:\\\"browser\\\",name:this.wallet?.name||\\\"Unknown\\\"}})}catch(e){Xe.sendEvent({type:\\\"track\\\",event:\\\"CONNECT_ERROR\\\",properties:{message:e?.message??\\\"Unknown\\\"}}),this.error=!0}}};Srt=oKt([te(\\\"w3m-connecting-wc-browser\\\")],Srt)});var aKt,Trt,Irt=x(()=>{u();xt();pr();h8();aKt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Trt=class extends $i{constructor(){if(super(),!this.wallet)throw new Error(\\\"w3m-connecting-wc-desktop: No wallet provided\\\");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet.name,platform:\\\"desktop\\\"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:r}=this.wallet,{redirect:n,href:i}=oe.formatNativeUrl(e,this.uri);me.setWcLinking({name:r,href:i}),me.setRecentWallet(this.wallet),oe.openHref(n,\\\"_blank\\\")}catch{this.error=!0}}};Trt=aKt([te(\\\"w3m-connecting-wc-desktop\\\")],Trt)});var m8,_x,Rrt=x(()=>{u();Ke();xt();pr();h8();m8=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},_x=class extends $i{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=ee.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,link_mode:r,name:n}=this.wallet,{redirect:i,redirectUniversalLink:s,href:o}=oe.formatNativeUrl(e,this.uri,r);this.redirectDeeplink=i,this.redirectUniversalLink=s,this.target=oe.isIframe()?\\\"_top\\\":\\\"_self\\\",me.setWcLinking({name:n,href:o}),me.setRecentWallet(this.wallet),this.preferUniversalLinks&&this.redirectUniversalLink?oe.openHref(this.redirectUniversalLink,this.target):oe.openHref(this.redirectDeeplink,this.target)}catch(e){Xe.sendEvent({type:\\\"track\\\",event:\\\"CONNECT_PROXY_ERROR\\\",properties:{message:e instanceof Error?e.message:\\\"Error parsing the deeplink\\\",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error(\\\"w3m-connecting-wc-mobile: No wallet provided\\\");this.secondaryBtnLabel=\\\"Open\\\",this.secondaryLabel=Rt.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon=\\\"externalLink\\\",this.onHandleURI(),this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",()=>{this.onHandleURI()})),Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet.name,platform:\\\"mobile\\\"}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){this.isLoading=!this.uri,!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onTryAgain(){me.setWcError(!1),this.onConnect?.()}};m8([xe()],_x.prototype,\\\"redirectDeeplink\\\",void 0);m8([xe()],_x.prototype,\\\"redirectUniversalLink\\\",void 0);m8([xe()],_x.prototype,\\\"target\\\",void 0);m8([xe()],_x.prototype,\\\"preferUniversalLinks\\\",void 0);m8([xe()],_x.prototype,\\\"isLoading\\\",void 0);_x=m8([te(\\\"w3m-connecting-wc-mobile\\\")],_x)});var Ort=q((lSn,Prt)=>{u();Prt.exports=function(){return typeof Promise==\\\"function\\\"&&Promise.prototype&&Promise.prototype.then}});var nb=q(Cx=>{u();var Ype,cKt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Cx.getSymbolSize=function(e){if(!e)throw new Error('\\\"version\\\" cannot be null or undefined');if(e<1||e>40)throw new Error('\\\"version\\\" should be in range from 1 to 40');return e*4+17};Cx.getSymbolTotalCodewords=function(e){return cKt[e]};Cx.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Cx.setToSJISFunction=function(e){if(typeof e!=\\\"function\\\")throw new Error('\\\"toSJISFunc\\\" is not a valid function.');Ype=e};Cx.isKanjiModeEnabled=function(){return typeof Ype<\\\"u\\\"};Cx.toSJIS=function(e){return Ype(e)}});var SV=q(_d=>{u();_d.L={bit:1};_d.M={bit:0};_d.Q={bit:3};_d.H={bit:2};function lKt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"Param is not a string\\\");switch(t.toLowerCase()){case\\\"l\\\":case\\\"low\\\":return _d.L;case\\\"m\\\":case\\\"medium\\\":return _d.M;case\\\"q\\\":case\\\"quartile\\\":return _d.Q;case\\\"h\\\":case\\\"high\\\":return _d.H;default:throw new Error(\\\"Unknown EC Level: \\\"+t)}}_d.isValid=function(e){return e&&typeof e.bit<\\\"u\\\"&&e.bit>=0&&e.bit<4};_d.from=function(e,r){if(_d.isValid(e))return e;try{return lKt(e)}catch{return r}}});var Brt=q((mSn,krt)=>{u();function Nrt(){this.buffer=[],this.length=0}Nrt.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};krt.exports=Nrt});var Drt=q((ySn,Mrt)=>{u();function SR(t){if(!t||t<1)throw new Error(\\\"BitMatrix size must be defined and greater than 0\\\");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}SR.prototype.set=function(t,e,r,n){let i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)};SR.prototype.get=function(t,e){return this.data[t*this.size+e]};SR.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};SR.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};Mrt.exports=SR});var Lrt=q(AV=>{u();var uKt=nb().getSymbolSize;AV.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=uKt(e),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,s=[n-7];for(let o=1;o<r-1;o++)s[o]=s[o-1]-i;return s.push(6),s.reverse()};AV.getPositions=function(e){let r=[],n=AV.getRowColCoords(e),i=n.length;for(let s=0;s<i;s++)for(let o=0;o<i;o++)s===0&&o===0||s===0&&o===i-1||s===i-1&&o===0||r.push([n[s],n[o]]);return r}});var jrt=q(Frt=>{u();var dKt=nb().getSymbolSize,Urt=7;Frt.getPositions=function(e){let r=dKt(e);return[[0,0],[r-Urt,0],[0,r-Urt]]}});var Hrt=q(Ln=>{u();Ln.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Sx={N1:3,N2:3,N3:40,N4:10};Ln.isValid=function(e){return e!=null&&e!==\\\"\\\"&&!isNaN(e)&&e>=0&&e<=7};Ln.from=function(e){return Ln.isValid(e)?parseInt(e,10):void 0};Ln.getPenaltyN1=function(e){let r=e.size,n=0,i=0,s=0,o=null,a=null;for(let c=0;c<r;c++){i=s=0,o=a=null;for(let l=0;l<r;l++){let d=e.get(c,l);d===o?i++:(i>=5&&(n+=Sx.N1+(i-5)),o=d,i=1),d=e.get(l,c),d===a?s++:(s>=5&&(n+=Sx.N1+(s-5)),a=d,s=1)}i>=5&&(n+=Sx.N1+(i-5)),s>=5&&(n+=Sx.N1+(s-5))}return n};Ln.getPenaltyN2=function(e){let r=e.size,n=0;for(let i=0;i<r-1;i++)for(let s=0;s<r-1;s++){let o=e.get(i,s)+e.get(i,s+1)+e.get(i+1,s)+e.get(i+1,s+1);(o===4||o===0)&&n++}return n*Sx.N2};Ln.getPenaltyN3=function(e){let r=e.size,n=0,i=0,s=0;for(let o=0;o<r;o++){i=s=0;for(let a=0;a<r;a++)i=i<<1&2047|e.get(o,a),a>=10&&(i===1488||i===93)&&n++,s=s<<1&2047|e.get(a,o),a>=10&&(s===1488||s===93)&&n++}return n*Sx.N3};Ln.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let s=0;s<n;s++)r+=e.data[s];return Math.abs(Math.ceil(r*100/n/5)-10)*Sx.N4};function fKt(t,e,r){switch(t){case Ln.Patterns.PATTERN000:return(e+r)%2===0;case Ln.Patterns.PATTERN001:return e%2===0;case Ln.Patterns.PATTERN010:return r%3===0;case Ln.Patterns.PATTERN011:return(e+r)%3===0;case Ln.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case Ln.Patterns.PATTERN101:return e*r%2+e*r%3===0;case Ln.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case Ln.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error(\\\"bad maskPattern:\\\"+t)}}Ln.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let s=0;s<n;s++)r.isReserved(s,i)||r.xor(s,i,fKt(e,s,i))};Ln.getBestMask=function(e,r){let n=Object.keys(Ln.Patterns).length,i=0,s=1/0;for(let o=0;o<n;o++){r(o),Ln.applyMask(o,e);let a=Ln.getPenaltyN1(e)+Ln.getPenaltyN2(e)+Ln.getPenaltyN3(e)+Ln.getPenaltyN4(e);Ln.applyMask(o,e),a<s&&(s=a,i=o)}return i}});var ehe=q(Xpe=>{u();var ib=SV(),TV=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],IV=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Xpe.getBlocksCount=function(e,r){switch(r){case ib.L:return TV[(e-1)*4+0];case ib.M:return TV[(e-1)*4+1];case ib.Q:return TV[(e-1)*4+2];case ib.H:return TV[(e-1)*4+3];default:return}};Xpe.getTotalCodewordsCount=function(e,r){switch(r){case ib.L:return IV[(e-1)*4+0];case ib.M:return IV[(e-1)*4+1];case ib.Q:return IV[(e-1)*4+2];case ib.H:return IV[(e-1)*4+3];default:return}}});var qrt=q(PV=>{u();var AR=new Uint8Array(512),RV=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)AR[r]=e,RV[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)AR[r]=AR[r-255]})();PV.log=function(e){if(e<1)throw new Error(\\\"log(\\\"+e+\\\")\\\");return RV[e]};PV.exp=function(e){return AR[e]};PV.mul=function(e,r){return e===0||r===0?0:AR[RV[e]+RV[r]]}});var zrt=q(TR=>{u();var the=qrt();TR.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let i=0;i<e.length;i++)for(let s=0;s<r.length;s++)n[i+s]^=the.mul(e[i],r[s]);return n};TR.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let i=n[0];for(let o=0;o<r.length;o++)n[o]^=the.mul(r[o],i);let s=0;for(;s<n.length&&n[s]===0;)s++;n=n.slice(s)}return n};TR.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=TR.mul(r,new Uint8Array([1,the.exp(n)]));return r}});var Wrt=q((OSn,Vrt)=>{u();var $rt=zrt();function rhe(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}rhe.prototype.initialize=function(e){this.degree=e,this.genPoly=$rt.generateECPolynomial(this.degree)};rhe.prototype.encode=function(e){if(!this.genPoly)throw new Error(\\\"Encoder not initialized\\\");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=$rt.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let s=new Uint8Array(this.degree);return s.set(n,i),s}return n};Vrt.exports=rhe});var nhe=q(Grt=>{u();Grt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var ihe=q(V0=>{u();var Krt=\\\"[0-9]+\\\",pKt=\\\"[A-Z $%*+\\\\\\\\-./:]+\\\",IR=\\\"(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+\\\";IR=IR.replace(/u/g,\\\"\\\\\\\\u\\\");var hKt=\\\"(?:(?![A-Z0-9 $%*+\\\\\\\\-./:]|\\\"+IR+`)(?:.|[\\\\r\\n]))+`;V0.KANJI=new RegExp(IR,\\\"g\\\");V0.BYTE_KANJI=new RegExp(\\\"[^A-Z0-9 $%*+\\\\\\\\-./:]+\\\",\\\"g\\\");V0.BYTE=new RegExp(hKt,\\\"g\\\");V0.NUMERIC=new RegExp(Krt,\\\"g\\\");V0.ALPHANUMERIC=new RegExp(pKt,\\\"g\\\");var mKt=new RegExp(\\\"^\\\"+IR+\\\"$\\\"),gKt=new RegExp(\\\"^\\\"+Krt+\\\"$\\\"),yKt=new RegExp(\\\"^[A-Z0-9 $%*+\\\\\\\\-./:]+$\\\");V0.testKanji=function(e){return mKt.test(e)};V0.testNumeric=function(e){return gKt.test(e)};V0.testAlphanumeric=function(e){return yKt.test(e)}});var sb=q(Ls=>{u();var bKt=nhe(),she=ihe();Ls.NUMERIC={id:\\\"Numeric\\\",bit:1,ccBits:[10,12,14]};Ls.ALPHANUMERIC={id:\\\"Alphanumeric\\\",bit:2,ccBits:[9,11,13]};Ls.BYTE={id:\\\"Byte\\\",bit:4,ccBits:[8,16,16]};Ls.KANJI={id:\\\"Kanji\\\",bit:8,ccBits:[8,10,12]};Ls.MIXED={bit:-1};Ls.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error(\\\"Invalid mode: \\\"+e);if(!bKt.isValid(r))throw new Error(\\\"Invalid version: \\\"+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};Ls.getBestModeForData=function(e){return she.testNumeric(e)?Ls.NUMERIC:she.testAlphanumeric(e)?Ls.ALPHANUMERIC:she.testKanji(e)?Ls.KANJI:Ls.BYTE};Ls.toString=function(e){if(e&&e.id)return e.id;throw new Error(\\\"Invalid mode\\\")};Ls.isValid=function(e){return e&&e.bit&&e.ccBits};function wKt(t){if(typeof t!=\\\"string\\\")throw new Error(\\\"Param is not a string\\\");switch(t.toLowerCase()){case\\\"numeric\\\":return Ls.NUMERIC;case\\\"alphanumeric\\\":return Ls.ALPHANUMERIC;case\\\"kanji\\\":return Ls.KANJI;case\\\"byte\\\":return Ls.BYTE;default:throw new Error(\\\"Unknown mode: \\\"+t)}}Ls.from=function(e,r){if(Ls.isValid(e))return e;try{return wKt(e)}catch{return r}}});var Xrt=q(Ax=>{u();var OV=nb(),vKt=ehe(),Zrt=SV(),ob=sb(),ohe=nhe(),Jrt=7973,Qrt=OV.getBCHDigit(Jrt);function xKt(t,e,r){for(let n=1;n<=40;n++)if(e<=Ax.getCapacity(n,r,t))return n}function Yrt(t,e){return ob.getCharCountIndicator(t,e)+4}function EKt(t,e){let r=0;return t.forEach(function(n){let i=Yrt(n.mode,e);r+=i+n.getBitsLength()}),r}function _Kt(t,e){for(let r=1;r<=40;r++)if(EKt(t,r)<=Ax.getCapacity(r,e,ob.MIXED))return r}Ax.from=function(e,r){return ohe.isValid(e)?parseInt(e,10):r};Ax.getCapacity=function(e,r,n){if(!ohe.isValid(e))throw new Error(\\\"Invalid QR Code version\\\");typeof n>\\\"u\\\"&&(n=ob.BYTE);let i=OV.getSymbolTotalCodewords(e),s=vKt.getTotalCodewordsCount(e,r),o=(i-s)*8;if(n===ob.MIXED)return o;let a=o-Yrt(n,e);switch(n){case ob.NUMERIC:return Math.floor(a/10*3);case ob.ALPHANUMERIC:return Math.floor(a/11*2);case ob.KANJI:return Math.floor(a/13);case ob.BYTE:default:return Math.floor(a/8)}};Ax.getBestVersionForData=function(e,r){let n,i=Zrt.from(r,Zrt.M);if(Array.isArray(e)){if(e.length>1)return _Kt(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return xKt(n.mode,n.getLength(),i)};Ax.getEncodedBits=function(e){if(!ohe.isValid(e)||e<7)throw new Error(\\\"Invalid QR Code version\\\");let r=e<<12;for(;OV.getBCHDigit(r)-Qrt>=0;)r^=Jrt<<OV.getBCHDigit(r)-Qrt;return e<<12|r}});var nnt=q(rnt=>{u();var ahe=nb(),tnt=1335,CKt=21522,ent=ahe.getBCHDigit(tnt);rnt.getEncodedBits=function(e,r){let n=e.bit<<3|r,i=n<<10;for(;ahe.getBCHDigit(i)-ent>=0;)i^=tnt<<ahe.getBCHDigit(i)-ent;return(n<<10|i)^CKt}});var snt=q((zSn,int)=>{u();var SKt=sb();function g8(t){this.mode=SKt.NUMERIC,this.data=t.toString()}g8.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};g8.prototype.getLength=function(){return this.data.length};g8.prototype.getBitsLength=function(){return g8.getBitsLength(this.data.length)};g8.prototype.write=function(e){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),e.put(i,10);let s=this.data.length-r;s>0&&(n=this.data.substr(r),i=parseInt(n,10),e.put(i,s*3+1))};int.exports=g8});var ant=q((VSn,ont)=>{u();var AKt=sb(),che=[\\\"0\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\",\\\"4\\\",\\\"5\\\",\\\"6\\\",\\\"7\\\",\\\"8\\\",\\\"9\\\",\\\"A\\\",\\\"B\\\",\\\"C\\\",\\\"D\\\",\\\"E\\\",\\\"F\\\",\\\"G\\\",\\\"H\\\",\\\"I\\\",\\\"J\\\",\\\"K\\\",\\\"L\\\",\\\"M\\\",\\\"N\\\",\\\"O\\\",\\\"P\\\",\\\"Q\\\",\\\"R\\\",\\\"S\\\",\\\"T\\\",\\\"U\\\",\\\"V\\\",\\\"W\\\",\\\"X\\\",\\\"Y\\\",\\\"Z\\\",\\\" \\\",\\\"$\\\",\\\"%\\\",\\\"*\\\",\\\"+\\\",\\\"-\\\",\\\".\\\",\\\"/\\\",\\\":\\\"];function y8(t){this.mode=AKt.ALPHANUMERIC,this.data=t}y8.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};y8.prototype.getLength=function(){return this.data.length};y8.prototype.getBitsLength=function(){return y8.getBitsLength(this.data.length)};y8.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=che.indexOf(this.data[r])*45;n+=che.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(che.indexOf(this.data[r]),6)};ont.exports=y8});var lnt=q((GSn,cnt)=>{\\\"use strict\\\";u();cnt.exports=function(e){for(var r=[],n=e.length,i=0;i<n;i++){var s=e.charCodeAt(i);if(s>=55296&&s<=56319&&n>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(s=(s-55296)*1024+o-56320+65536,i+=1)}if(s<128){r.push(s);continue}if(s<2048){r.push(s>>6|192),r.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128);continue}if(s>=65536&&s<=1114111){r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var dnt=q((ZSn,unt)=>{u();var TKt=lnt(),IKt=sb();function b8(t){this.mode=IKt.BYTE,typeof t==\\\"string\\\"&&(t=TKt(t)),this.data=new Uint8Array(t)}b8.getBitsLength=function(e){return e*8};b8.prototype.getLength=function(){return this.data.length};b8.prototype.getBitsLength=function(){return b8.getBitsLength(this.data.length)};b8.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};unt.exports=b8});var pnt=q((JSn,fnt)=>{u();var RKt=sb(),PKt=nb();function w8(t){this.mode=RKt.KANJI,this.data=t}w8.getBitsLength=function(e){return e*13};w8.prototype.getLength=function(){return this.data.length};w8.prototype.getBitsLength=function(){return w8.getBitsLength(this.data.length)};w8.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=PKt.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error(\\\"Invalid SJIS character: \\\"+this.data[e]+`\\nMake sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};fnt.exports=w8});var hnt=q((XSn,lhe)=>{\\\"use strict\\\";u();var RR={single_source_shortest_paths:function(t,e,r){var n={},i={};i[e]=0;var s=RR.PriorityQueue.make();s.push(e,0);for(var o,a,c,l,d,f,p,h,m;!s.empty();){o=s.pop(),a=o.value,l=o.cost,d=t[a]||{};for(c in d)d.hasOwnProperty(c)&&(f=d[c],p=l+f,h=i[c],m=typeof i[c]>\\\"u\\\",(m||h>p)&&(i[c]=p,s.push(c,p),n[c]=a))}if(typeof r<\\\"u\\\"&&typeof i[r]>\\\"u\\\"){var g=[\\\"Could not find a path from \\\",e,\\\" to \\\",r,\\\".\\\"].join(\\\"\\\");throw new Error(g)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,i;n;)r.push(n),i=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=RR.single_source_shortest_paths(t,e,r);return RR.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=RR.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof lhe<\\\"u\\\"&&(lhe.exports=RR)});var Ent=q(v8=>{u();var $r=sb(),ynt=snt(),bnt=ant(),wnt=dnt(),vnt=pnt(),PR=ihe(),NV=nb(),OKt=hnt();function mnt(t){return unescape(encodeURIComponent(t)).length}function OR(t,e,r){let n=[],i;for(;(i=t.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function xnt(t){let e=OR(PR.NUMERIC,$r.NUMERIC,t),r=OR(PR.ALPHANUMERIC,$r.ALPHANUMERIC,t),n,i;return NV.isKanjiModeEnabled()?(n=OR(PR.BYTE,$r.BYTE,t),i=OR(PR.KANJI,$r.KANJI,t)):(n=OR(PR.BYTE_KANJI,$r.BYTE,t),i=[]),e.concat(r,n,i).sort(function(o,a){return o.index-a.index}).map(function(o){return{data:o.data,mode:o.mode,length:o.length}})}function uhe(t,e){switch(e){case $r.NUMERIC:return ynt.getBitsLength(t);case $r.ALPHANUMERIC:return bnt.getBitsLength(t);case $r.KANJI:return vnt.getBitsLength(t);case $r.BYTE:return wnt.getBitsLength(t)}}function NKt(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function kKt(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case $r.NUMERIC:e.push([n,{data:n.data,mode:$r.ALPHANUMERIC,length:n.length},{data:n.data,mode:$r.BYTE,length:n.length}]);break;case $r.ALPHANUMERIC:e.push([n,{data:n.data,mode:$r.BYTE,length:n.length}]);break;case $r.KANJI:e.push([n,{data:n.data,mode:$r.BYTE,length:mnt(n.data)}]);break;case $r.BYTE:e.push([{data:n.data,mode:$r.BYTE,length:mnt(n.data)}])}}return e}function BKt(t,e){let r={},n={start:{}},i=[\\\"start\\\"];for(let s=0;s<t.length;s++){let o=t[s],a=[];for(let c=0;c<o.length;c++){let l=o[c],d=\\\"\\\"+s+c;a.push(d),r[d]={node:l,lastCount:0},n[d]={};for(let f=0;f<i.length;f++){let p=i[f];r[p]&&r[p].node.mode===l.mode?(n[p][d]=uhe(r[p].lastCount+l.length,l.mode)-uhe(r[p].lastCount,l.mode),r[p].lastCount+=l.length):(r[p]&&(r[p].lastCount=l.length),n[p][d]=uhe(l.length,l.mode)+4+$r.getCharCountIndicator(l.mode,e))}}i=a}for(let s=0;s<i.length;s++)n[i[s]].end=0;return{map:n,table:r}}function gnt(t,e){let r,n=$r.getBestModeForData(t);if(r=$r.from(e,n),r!==$r.BYTE&&r.bit<n.bit)throw new Error('\\\"'+t+'\\\" cannot be encoded with mode '+$r.toString(r)+`.\\n Suggested mode is: `+$r.toString(n));switch(r===$r.KANJI&&!NV.isKanjiModeEnabled()&&(r=$r.BYTE),r){case $r.NUMERIC:return new ynt(t);case $r.ALPHANUMERIC:return new bnt(t);case $r.KANJI:return new vnt(t);case $r.BYTE:return new wnt(t)}}v8.fromArray=function(e){return e.reduce(function(r,n){return typeof n==\\\"string\\\"?r.push(gnt(n,null)):n.data&&r.push(gnt(n.data,n.mode)),r},[])};v8.fromString=function(e,r){let n=xnt(e,NV.isKanjiModeEnabled()),i=kKt(n),s=BKt(i,r),o=OKt.find_path(s.map,\\\"start\\\",\\\"end\\\"),a=[];for(let c=1;c<o.length-1;c++)a.push(s.table[o[c]].node);return v8.fromArray(NKt(a))};v8.rawSplit=function(e){return v8.fromArray(xnt(e,NV.isKanjiModeEnabled()))}});var Cnt=q(_nt=>{u();var BV=nb(),dhe=SV(),MKt=Brt(),DKt=Drt(),LKt=Lrt(),UKt=jrt(),hhe=Hrt(),mhe=ehe(),FKt=Wrt(),kV=Xrt(),jKt=nnt(),HKt=sb(),fhe=Ent();function qKt(t,e){let r=t.size,n=UKt.getPositions(e);for(let i=0;i<n.length;i++){let s=n[i][0],o=n[i][1];for(let a=-1;a<=7;a++)if(!(s+a<=-1||r<=s+a))for(let c=-1;c<=7;c++)o+c<=-1||r<=o+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?t.set(s+a,o+c,!0,!0):t.set(s+a,o+c,!1,!0))}}function zKt(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function $Kt(t,e){let r=LKt.getPositions(e);for(let n=0;n<r.length;n++){let i=r[n][0],s=r[n][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?t.set(i+o,s+a,!0,!0):t.set(i+o,s+a,!1,!0)}}function VKt(t,e){let r=t.size,n=kV.getEncodedBits(e),i,s,o;for(let a=0;a<18;a++)i=Math.floor(a/3),s=a%3+r-8-3,o=(n>>a&1)===1,t.set(i,s,o,!0),t.set(s,i,o,!0)}function phe(t,e,r){let n=t.size,i=jKt.getEncodedBits(e,r),s,o;for(s=0;s<15;s++)o=(i>>s&1)===1,s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function WKt(t,e){let r=t.size,n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!t.isReserved(i,a-c)){let l=!1;o<e.length&&(l=(e[o]>>>s&1)===1),t.set(i,a-c,l),s--,s===-1&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function GKt(t,e,r){let n=new MKt;r.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),HKt.getCharCountIndicator(c.mode,t)),c.write(n)});let i=BV.getSymbolTotalCodewords(t),s=mhe.getTotalCodewordsCount(t,e),o=(i-s)*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(o-n.getLengthInBits())/8;for(let c=0;c<a;c++)n.put(c%2?17:236,8);return KKt(n,t,e)}function KKt(t,e,r){let n=BV.getSymbolTotalCodewords(e),i=mhe.getTotalCodewordsCount(e,r),s=n-i,o=mhe.getBlocksCount(e,r),a=n%o,c=o-a,l=Math.floor(n/o),d=Math.floor(s/o),f=d+1,p=l-d,h=new FKt(p),m=0,g=new Array(o),w=new Array(o),v=0,b=new Uint8Array(t.buffer);for(let O=0;O<o;O++){let L=O<c?d:f;g[O]=b.slice(m,m+L),w[O]=h.encode(g[O]),m+=L,v=Math.max(v,L)}let _=new Uint8Array(n),S=0,T,N;for(T=0;T<v;T++)for(N=0;N<o;N++)T<g[N].length&&(_[S++]=g[N][T]);for(T=0;T<p;T++)for(N=0;N<o;N++)_[S++]=w[N][T];return _}function ZKt(t,e,r,n){let i;if(Array.isArray(t))i=fhe.fromArray(t);else if(typeof t==\\\"string\\\"){let l=e;if(!l){let d=fhe.rawSplit(t);l=kV.getBestVersionForData(d,r)}i=fhe.fromString(t,l||40)}else throw new Error(\\\"Invalid data\\\");let s=kV.getBestVersionForData(i,r);if(!s)throw new Error(\\\"The amount of data is too big to be stored in a QR Code\\\");if(!e)e=s;else if(e<s)throw new Error(`\\nThe chosen QR Code version cannot contain this amount of data.\\nMinimum version required to store current data is: `+s+`.\\n`);let o=GKt(e,r,i),a=BV.getSymbolSize(e),c=new DKt(a);return qKt(c,e),zKt(c),$Kt(c,e),phe(c,r,0),e>=7&&VKt(c,e),WKt(c,o),isNaN(n)&&(n=hhe.getBestMask(c,phe.bind(null,c,r))),hhe.applyMask(n,c),phe(c,r,n),{modules:c,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}_nt.create=function(e,r){if(typeof e>\\\"u\\\"||e===\\\"\\\")throw new Error(\\\"No input text\\\");let n=dhe.M,i,s;return typeof r<\\\"u\\\"&&(n=dhe.from(r.errorCorrectionLevel,dhe.M),i=kV.from(r.version),s=hhe.from(r.maskPattern),r.toSJISFunc&&BV.setToSJISFunction(r.toSJISFunc)),ZKt(e,i,n,s)}});var ghe=q(Tx=>{u();function Snt(t){if(typeof t==\\\"number\\\"&&(t=t.toString()),typeof t!=\\\"string\\\")throw new Error(\\\"Color should be defined as hex string\\\");let e=t.slice().replace(\\\"#\\\",\\\"\\\").split(\\\"\\\");if(e.length<3||e.length===5||e.length>8)throw new Error(\\\"Invalid hex color: \\\"+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push(\\\"F\\\",\\\"F\\\");let r=parseInt(e.join(\\\"\\\"),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:\\\"#\\\"+e.slice(0,6).join(\\\"\\\")}}Tx.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>\\\"u\\\"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:Snt(e.color.dark||\\\"#000000ff\\\"),light:Snt(e.color.light||\\\"#ffffffff\\\")},type:e.type,rendererOpts:e.rendererOpts||{}}};Tx.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Tx.getImageWidth=function(e,r){let n=Tx.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Tx.qrToImageData=function(e,r,n){let i=r.modules.size,s=r.modules.data,o=Tx.getScale(i,n),a=Math.floor((i+n.margin*2)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let d=0;d<a;d++)for(let f=0;f<a;f++){let p=(d*a+f)*4,h=n.color.light;if(d>=c&&f>=c&&d<a-c&&f<a-c){let m=Math.floor((d-c)/o),g=Math.floor((f-c)/o);h=l[s[m*i+g]?1:0]}e[p++]=h.r,e[p++]=h.g,e[p++]=h.b,e[p]=h.a}}});var Ant=q(MV=>{u();var yhe=ghe();function QKt(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+\\\"px\\\",e.style.width=r+\\\"px\\\"}function JKt(){try{return document.createElement(\\\"canvas\\\")}catch{throw new Error(\\\"You need to specify a canvas element\\\")}}MV.render=function(e,r,n){let i=n,s=r;typeof i>\\\"u\\\"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(s=JKt()),i=yhe.getOptions(i);let o=yhe.getImageWidth(e.modules.size,i),a=s.getContext(\\\"2d\\\"),c=a.createImageData(o,o);return yhe.qrToImageData(c.data,e,i),QKt(a,s,o),a.putImageData(c,0,0),s};MV.renderToDataURL=function(e,r,n){let i=n;typeof i>\\\"u\\\"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let s=MV.render(e,r,i),o=i.type||\\\"image/png\\\",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}});var Rnt=q(Int=>{u();var YKt=ghe();function Tnt(t,e){let r=t.a/255,n=e+'=\\\"'+t.hex+'\\\"';return r<1?n+\\\" \\\"+e+'-opacity=\\\"'+r.toFixed(2).slice(1)+'\\\"':n}function bhe(t,e,r){let n=t+e;return typeof r<\\\"u\\\"&&(n+=\\\" \\\"+r),n}function XKt(t,e,r){let n=\\\"\\\",i=0,s=!1,o=0;for(let a=0;a<t.length;a++){let c=Math.floor(a%e),l=Math.floor(a/e);!c&&!s&&(s=!0),t[a]?(o++,a>0&&c>0&&t[a-1]||(n+=s?bhe(\\\"M\\\",c+r,.5+l+r):bhe(\\\"m\\\",i,0),i=0,s=!1),c+1<e&&t[a+1]||(n+=bhe(\\\"h\\\",o),o=0)):i++}return n}Int.render=function(e,r,n){let i=YKt.getOptions(r),s=e.modules.size,o=e.modules.data,a=s+i.margin*2,c=i.color.light.a?\\\"<path \\\"+Tnt(i.color.light,\\\"fill\\\")+' d=\\\"M0 0h'+a+\\\"v\\\"+a+'H0z\\\"/>':\\\"\\\",l=\\\"<path \\\"+Tnt(i.color.dark,\\\"stroke\\\")+' d=\\\"'+XKt(o,s,i.margin)+'\\\"/>',d='viewBox=\\\"0 0 '+a+\\\" \\\"+a+'\\\"',p='<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" '+(i.width?'width=\\\"'+i.width+'\\\" height=\\\"'+i.width+'\\\" ':\\\"\\\")+d+' shape-rendering=\\\"crispEdges\\\">'+c+l+`</svg>\\n`;return typeof n==\\\"function\\\"&&n(null,p),p}});var Ont=q(NR=>{u();var eZt=Ort(),whe=Cnt(),Pnt=Ant(),tZt=Rnt();function vhe(t,e,r,n,i){let s=[].slice.call(arguments,1),o=s.length,a=typeof s[o-1]==\\\"function\\\";if(!a&&!eZt())throw new Error(\\\"Callback required as last argument\\\");if(a){if(o<2)throw new Error(\\\"Too few arguments provided\\\");o===2?(i=r,r=e,e=n=void 0):o===3&&(e.getContext&&typeof i>\\\"u\\\"?(i=n,n=void 0):(i=n,n=r,r=e,e=void 0))}else{if(o<1)throw new Error(\\\"Too few arguments provided\\\");return o===1?(r=e,e=n=void 0):o===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(c,l){try{let d=whe.create(r,n);c(t(d,e,n))}catch(d){l(d)}})}try{let c=whe.create(r,n);i(null,t(c,e,n))}catch(c){i(c)}}NR.create=whe.create;NR.toCanvas=vhe.bind(null,Pnt.render);NR.toDataURL=vhe.bind(null,Pnt.renderToDataURL);NR.toString=vhe.bind(null,function(t,e,r){return tZt.render(t,r)})});function xhe(t,e,r){return t===e?!1:(t-e<0?e-t:t-e)<=r+rZt}function nZt(t,e){let r=Array.prototype.slice.call(knt.default.create(t,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(r.length);return r.reduce((i,s,o)=>(o%n===0?i.push([s]):i[i.length-1].push(s))&&i,[])}var knt,rZt,Nnt,W0,Bnt,Mnt=x(()=>{u();knt=Me(Ont(),1);Q();rZt=.1,Nnt=2.5,W0=7;Bnt={generate({uri:t,size:e,logoSize:r,dotColor:n=\\\"#141414\\\"}){let i=\\\"transparent\\\",o=[],a=nZt(t,\\\"Q\\\"),c=e/a.length,l=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];l.forEach(({x:g,y:w})=>{let v=(a.length-W0)*c*g,b=(a.length-W0)*c*w,_=.45;for(let S=0;S<l.length;S+=1){let T=c*(W0-S*2);o.push(Y`\\n            <rect\\n              fill=${S===2?n:i}\\n              width=${S===0?T-5:T}\\n              rx= ${S===0?(T-5)*_:T*_}\\n              ry= ${S===0?(T-5)*_:T*_}\\n              stroke=${n}\\n              stroke-width=${S===0?5:0}\\n              height=${S===0?T-5:T}\\n              x= ${S===0?b+c*S+5/2:b+c*S}\\n              y= ${S===0?v+c*S+5/2:v+c*S}\\n            />\\n          `)}});let d=Math.floor((r+25)/c),f=a.length/2-d/2,p=a.length/2+d/2-1,h=[];a.forEach((g,w)=>{g.forEach((v,b)=>{if(a[w][b]&&!(w<W0&&b<W0||w>a.length-(W0+1)&&b<W0||w<W0&&b>a.length-(W0+1))&&!(w>f&&w<p&&b>f&&b<p)){let _=w*c+c/2,S=b*c+c/2;h.push([_,S])}})});let m={};return h.forEach(([g,w])=>{m[g]?m[g]?.push(w):m[g]=[w]}),Object.entries(m).map(([g,w])=>{let v=w.filter(b=>w.every(_=>!xhe(b,_,c)));return[Number(g),v]}).forEach(([g,w])=>{w.forEach(v=>{o.push(Y`<circle cx=${g} cy=${v} fill=${n} r=${c/Nnt} />`)})}),Object.entries(m).filter(([g,w])=>w.length>1).map(([g,w])=>{let v=w.filter(b=>w.some(_=>xhe(b,_,c)));return[Number(g),v]}).map(([g,w])=>{w.sort((b,_)=>b<_?-1:1);let v=[];for(let b of w){let _=v.find(S=>S.some(T=>xhe(b,T,c)));_?_.push(b):v.push([b])}return[g,v.map(b=>[b[0],b[b.length-1]])]}).forEach(([g,w])=>{w.forEach(([v,b])=>{o.push(Y`\\n              <line\\n                x1=${g}\\n                x2=${g}\\n                y1=${v}\\n                y2=${b}\\n                stroke=${n}\\n                stroke-width=${c/(Nnt/2)}\\n                stroke-linecap=\\\"round\\\"\\n              />\\n            `)})}),o}}});var Dnt,Lnt=x(()=>{u();Q();Dnt=we`\\n  :host {\\n    position: relative;\\n    user-select: none;\\n    display: block;\\n    overflow: hidden;\\n    aspect-ratio: 1 / 1;\\n    width: var(--local-size);\\n  }\\n\\n  :host([data-theme='dark']) {\\n    border-radius: clamp(0px, var(--wui-border-radius-l), 40px);\\n    background-color: var(--wui-color-inverse-100);\\n    padding: var(--wui-spacing-l);\\n  }\\n\\n  :host([data-theme='light']) {\\n    box-shadow: 0 0 0 1px var(--wui-color-bg-125);\\n    background-color: var(--wui-color-bg-125);\\n  }\\n\\n  :host([data-clear='true']) > wui-icon {\\n    display: none;\\n  }\\n\\n  svg:first-child,\\n  wui-image,\\n  wui-icon {\\n    position: absolute;\\n    top: 50%;\\n    left: 50%;\\n    transform: translateY(-50%) translateX(-50%);\\n  }\\n\\n  wui-image {\\n    width: 25%;\\n    height: 25%;\\n    border-radius: var(--wui-border-radius-xs);\\n  }\\n\\n  wui-icon {\\n    width: 100%;\\n    height: 100%;\\n    color: var(--local-icon-color) !important;\\n    transform: translateY(-50%) translateX(-50%) scale(0.25);\\n  }\\n`});var G0,iZt,Lf,Unt=x(()=>{u();Q();Ke();aa();u8();Mnt();Er();fr();Lnt();G0=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},iZt=\\\"#3396ff\\\",Lf=class extends se{constructor(){super(...arguments),this.uri=\\\"\\\",this.size=0,this.theme=\\\"dark\\\",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`\\n     --local-size: ${this.size}px;\\n     --local-icon-color: ${this.color??iZt}\\n    `,$`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e=this.theme===\\\"light\\\"?this.size:this.size-32;return Y`\\n      <svg height=${e} width=${e}>\\n        ${Bnt.generate({uri:this.uri,size:e,logoSize:this.arenaClear?0:e/4,dotColor:this.color})}\\n      </svg>\\n    `}templateVisual(){return this.imageSrc?$`<wui-image src=${this.imageSrc} alt=${this.alt??\\\"logo\\\"}></wui-image>`:this.farcaster?$`<wui-icon\\n        class=\\\"farcaster\\\"\\n        size=\\\"inherit\\\"\\n        color=\\\"inherit\\\"\\n        name=\\\"farcaster\\\"\\n      ></wui-icon>`:$`<wui-icon size=\\\"inherit\\\" color=\\\"inherit\\\" name=\\\"walletConnect\\\"></wui-icon>`}};Lf.styles=[ze,Dnt];G0([G()],Lf.prototype,\\\"uri\\\",void 0);G0([G({type:Number})],Lf.prototype,\\\"size\\\",void 0);G0([G()],Lf.prototype,\\\"theme\\\",void 0);G0([G()],Lf.prototype,\\\"imageSrc\\\",void 0);G0([G()],Lf.prototype,\\\"alt\\\",void 0);G0([G()],Lf.prototype,\\\"color\\\",void 0);G0([G({type:Boolean})],Lf.prototype,\\\"arenaClear\\\",void 0);G0([G({type:Boolean})],Lf.prototype,\\\"farcaster\\\",void 0);Lf=G0([te(\\\"wui-qr-code\\\")],Lf)});var Fnt=x(()=>{u();Unt()});var jnt,Hnt=x(()=>{u();Q();jnt=we`\\n  :host {\\n    display: block;\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\\n    background: linear-gradient(\\n      120deg,\\n      var(--wui-color-bg-200) 5%,\\n      var(--wui-color-bg-200) 48%,\\n      var(--wui-color-bg-300) 55%,\\n      var(--wui-color-bg-300) 60%,\\n      var(--wui-color-bg-300) calc(60% + 10px),\\n      var(--wui-color-bg-200) calc(60% + 12px),\\n      var(--wui-color-bg-200) 100%\\n    );\\n    background-size: 250%;\\n    animation: shimmer 3s linear infinite reverse;\\n  }\\n\\n  :host([variant='light']) {\\n    background: linear-gradient(\\n      120deg,\\n      var(--wui-color-bg-150) 5%,\\n      var(--wui-color-bg-150) 48%,\\n      var(--wui-color-bg-200) 55%,\\n      var(--wui-color-bg-200) 60%,\\n      var(--wui-color-bg-200) calc(60% + 10px),\\n      var(--wui-color-bg-150) calc(60% + 12px),\\n      var(--wui-color-bg-150) 100%\\n    );\\n    background-size: 250%;\\n  }\\n\\n  @keyframes shimmer {\\n    from {\\n      background-position: -250% 0;\\n    }\\n    to {\\n      background-position: 250% 0;\\n    }\\n  }\\n`});var kR,Ix,Ehe=x(()=>{u();Q();Ke();fr();Hnt();kR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ix=class extends se{constructor(){super(...arguments),this.width=\\\"\\\",this.height=\\\"\\\",this.borderRadius=\\\"m\\\",this.variant=\\\"default\\\"}render(){return this.style.cssText=`\\n      width: ${this.width};\\n      height: ${this.height};\\n      border-radius: ${`clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px)`};\\n    `,$`<slot></slot>`}};Ix.styles=[jnt];kR([G()],Ix.prototype,\\\"width\\\",void 0);kR([G()],Ix.prototype,\\\"height\\\",void 0);kR([G()],Ix.prototype,\\\"borderRadius\\\",void 0);kR([G()],Ix.prototype,\\\"variant\\\",void 0);Ix=kR([te(\\\"wui-shimmer\\\")],Ix)});var _he=x(()=>{u();Ehe()});var qnt,znt=x(()=>{u();qnt=\\\"https://reown.com\\\"});var $nt,Vnt=x(()=>{u();Q();$nt=we`\\n  .reown-logo {\\n    height: var(--wui-spacing-xxl);\\n  }\\n\\n  a {\\n    text-decoration: none;\\n    cursor: pointer;\\n  }\\n\\n  a:hover {\\n    opacity: 0.9;\\n  }\\n`});var sZt,Che,Wnt=x(()=>{u();Q();aa();tu();eb();znt();Er();fr();Vnt();sZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Che=class extends se{render(){return $`\\n      <a\\n        data-testid=\\\"ux-branding-reown\\\"\\n        href=${qnt}\\n        rel=\\\"noreferrer\\\"\\n        target=\\\"_blank\\\"\\n        style=\\\"text-decoration: none;\\\"\\n      >\\n        <wui-flex\\n          justifyContent=\\\"center\\\"\\n          alignItems=\\\"center\\\"\\n          gap=\\\"xs\\\"\\n          .padding=${[\\\"0\\\",\\\"0\\\",\\\"l\\\",\\\"0\\\"]}\\n        >\\n          <wui-text variant=\\\"small-500\\\" color=\\\"fg-100\\\"> UX by </wui-text>\\n          <wui-icon name=\\\"reown\\\" size=\\\"xxxl\\\" class=\\\"reown-logo\\\"></wui-icon>\\n        </wui-flex>\\n      </a>\\n    `}};Che.styles=[ze,dr,$nt];Che=sZt([te(\\\"wui-ux-by-reown\\\")],Che)});var Gnt=x(()=>{u();Wnt()});var Knt,Znt=x(()=>{u();Q();Knt=we`\\n  @keyframes fadein {\\n    from {\\n      opacity: 0;\\n    }\\n    to {\\n      opacity: 1;\\n    }\\n  }\\n\\n  wui-shimmer {\\n    width: 100%;\\n    aspect-ratio: 1 / 1;\\n    border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;\\n  }\\n\\n  wui-qr-code {\\n    opacity: 0;\\n    animation-duration: 200ms;\\n    animation-timing-function: ease;\\n    animation-name: fadein;\\n    animation-fill-mode: forwards;\\n  }\\n`});var oZt,She,Qnt=x(()=>{u();Q();bn();xt();pr();is();CR();Jpe();Fnt();_he();z0();Gnt();h8();CV();Znt();oZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},She=class extends $i{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener(\\\"resize\\\",this.forceUpdate),Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet?.name??\\\"WalletConnect\\\",platform:\\\"qrcode\\\"}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach(e=>e()),window.removeEventListener(\\\"resize\\\",this.forceUpdate)}render(){return this.onRenderProxy(),$`\\n      <wui-flex\\n        flexDirection=\\\"column\\\"\\n        alignItems=\\\"center\\\"\\n        .padding=${[\\\"0\\\",\\\"xl\\\",\\\"xl\\\",\\\"xl\\\"]}\\n        gap=\\\"xl\\\"\\n      >\\n        <wui-shimmer borderRadius=\\\"l\\\" width=\\\"100%\\\"> ${this.qrCodeTemplate()} </wui-shimmer>\\n\\n        <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">\\n          Scan this QR Code with your phone\\n        </wui-text>\\n        ${this.copyTemplate()}\\n      </wui-flex>\\n      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>\\n    `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40,r=this.wallet?this.wallet.name:void 0;return me.setWcLinking(void 0),me.setRecentWallet(this.wallet),$` <wui-qr-code\\n      size=${e}\\n      theme=${ji.state.themeMode}\\n      uri=${this.uri}\\n      imageSrc=${Re(sr.getWalletImage(this.wallet))}\\n      color=${Re(ji.state.themeVariables[\\\"--w3m-qr-color\\\"])}\\n      alt=${Re(r)}\\n      data-testid=\\\"wui-qr-code\\\"\\n    ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return $`<wui-link\\n      .disabled=${e}\\n      @click=${this.onCopyUri}\\n      color=\\\"fg-200\\\"\\n      data-testid=\\\"copy-wc2-uri\\\"\\n    >\\n      <wui-icon size=\\\"xs\\\" color=\\\"fg-200\\\" slot=\\\"iconLeft\\\" name=\\\"copy\\\"></wui-icon>\\n      Copy link\\n    </wui-link>`}};She.styles=Knt;She=oZt([te(\\\"w3m-connecting-wc-qrcode\\\")],She)});var aZt,Jnt,Ynt=x(()=>{u();Q();bn();xt();pr();is();z0();xV();CV();aZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Jnt=class extends se{constructor(){if(super(),this.wallet=de.state.data?.wallet,!this.wallet)throw new Error(\\\"w3m-connecting-wc-unsupported: No wallet provided\\\");Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet.name,platform:\\\"browser\\\"}})}render(){return $`\\n      <wui-flex\\n        flexDirection=\\\"column\\\"\\n        alignItems=\\\"center\\\"\\n        .padding=${[\\\"3xl\\\",\\\"xl\\\",\\\"xl\\\",\\\"xl\\\"]}\\n        gap=\\\"xl\\\"\\n      >\\n        <wui-wallet-image\\n          size=\\\"lg\\\"\\n          imageSrc=${Re(sr.getWalletImage(this.wallet))}\\n        ></wui-wallet-image>\\n\\n        <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">Not Detected</wui-text>\\n      </wui-flex>\\n\\n      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>\\n    `}};Jnt=aZt([te(\\\"w3m-connecting-wc-unsupported\\\")],Jnt)});var Xnt,Ahe,eit=x(()=>{u();Ke();xt();pr();h8();Xnt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ahe=class extends $i{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error(\\\"w3m-connecting-wc-web: No wallet provided\\\");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel=\\\"Open\\\",this.secondaryLabel=Rt.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon=\\\"externalLink\\\",this.updateLoadingState(),this.unsubscribe.push(me.subscribeKey(\\\"wcUri\\\",()=>{this.updateLoadingState()})),Xe.sendEvent({type:\\\"track\\\",event:\\\"SELECT_WALLET\\\",properties:{name:this.wallet.name,platform:\\\"web\\\"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:r}=this.wallet,{redirect:n,href:i}=oe.formatUniversalUrl(e,this.uri);me.setWcLinking({name:r,href:i}),me.setRecentWallet(this.wallet),oe.openHref(n,\\\"_blank\\\")}catch{this.error=!0}}};Xnt([xe()],Ahe.prototype,\\\"isLoading\\\",void 0);Ahe=Xnt([te(\\\"w3m-connecting-wc-web\\\")],Ahe)});var BR,x8,tit=x(()=>{u();Q();Ke();xt();pr();Jtt();Art();Irt();Rrt();Qnt();Ynt();eit();BR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},x8=class extends se{constructor(){super(),this.wallet=de.state.data?.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!ee.state.siwx,this.remoteFeatures=ee.state.remoteFeatures,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(ee.subscribeKey(\\\"remoteFeatures\\\",e=>this.remoteFeatures=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return $`\\n      ${this.headerTemplate()}\\n      <div>${this.platformTemplate()}</div>\\n      ${this.reownBrandingTemplate()}\\n    `}reownBrandingTemplate(){return this.remoteFeatures?.reownBranding?$`<wui-ux-by-reown></wui-ux-by-reown>`:null}async initializeConnection(e=!1){if(!(this.platform===\\\"browser\\\"||ee.state.manualWCControl&&!e))try{let{wcPairingExpiry:r,status:n}=me.state;(e||ee.state.enableEmbedded||oe.isPairingExpired(r)||n===\\\"connecting\\\")&&(await me.connectWalletConnect(),this.isSiwxEnabled||Dt.close())}catch(r){Xe.sendEvent({type:\\\"track\\\",event:\\\"CONNECT_ERROR\\\",properties:{message:r?.message??\\\"Unknown\\\"}}),me.setWcError(!0),wr.showError(r.message??\\\"Connection error\\\"),me.resetWcConnection(),de.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push(\\\"qrcode\\\"),this.platform=\\\"qrcode\\\";return}if(this.platform)return;let{mobile_link:e,desktop_link:r,webapp_link:n,injected:i,rdns:s}=this.wallet,o=i?.map(({injected_id:m})=>m).filter(Boolean),a=[...s?[s]:o??[]],c=ee.state.isUniversalProvider?!1:a.length,l=e,d=n,f=me.checkInstalled(a),p=c&&f,h=r&&!oe.isMobile();p&&!z.state.noAdapters&&this.platforms.push(\\\"browser\\\"),l&&this.platforms.push(oe.isMobile()?\\\"mobile\\\":\\\"qrcode\\\"),d&&this.platforms.push(\\\"web\\\"),h&&this.platforms.push(\\\"desktop\\\"),!p&&c&&!z.state.noAdapters&&this.platforms.push(\\\"unsupported\\\"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case\\\"browser\\\":return $`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case\\\"web\\\":return $`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case\\\"desktop\\\":return $`\\n          <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>\\n          </w3m-connecting-wc-desktop>\\n        `;case\\\"mobile\\\":return $`\\n          <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>\\n          </w3m-connecting-wc-mobile>\\n        `;case\\\"qrcode\\\":return $`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return $`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?$`\\n      <w3m-connecting-header\\n        .platforms=${this.platforms}\\n        .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}\\n      >\\n      </w3m-connecting-header>\\n    `:null}async onSelectPlatform(e){let r=this.shadowRoot?.querySelector(\\\"div\\\");r&&(await r.animate([{opacity:1},{opacity:0}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}).finished,this.platform=e,r.animate([{opacity:0},{opacity:1}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}))}};BR([xe()],x8.prototype,\\\"platform\\\",void 0);BR([xe()],x8.prototype,\\\"platforms\\\",void 0);BR([xe()],x8.prototype,\\\"isSiwxEnabled\\\",void 0);BR([xe()],x8.prototype,\\\"remoteFeatures\\\",void 0);x8=BR([te(\\\"w3m-connecting-wc-view\\\")],x8)});var rit,DV,nit=x(()=>{u();Q();Ke();xt();pr();is();Btt();Wtt();tit();rit=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},DV=class extends se{constructor(){super(...arguments),this.isMobile=oe.isMobile()}render(){if(this.isMobile){let{featured:e,recommended:r}=ye.state,{customWallets:n}=ee.state,i=Te.getRecentWallets(),s=e.length||r.length||n?.length||i.length;return $`<wui-flex\\n        flexDirection=\\\"column\\\"\\n        gap=\\\"xs\\\"\\n        .margin=${[\\\"3xs\\\",\\\"s\\\",\\\"s\\\",\\\"s\\\"]}\\n      >\\n        ${s?$`<w3m-connector-list></w3m-connector-list>`:null}\\n        <w3m-all-wallets-widget></w3m-all-wallets-widget>\\n      </wui-flex>`}return $`<wui-flex flexDirection=\\\"column\\\" .padding=${[\\\"0\\\",\\\"0\\\",\\\"l\\\",\\\"0\\\"]}>\\n      <w3m-connecting-wc-view></w3m-connecting-wc-view>\\n      <wui-flex flexDirection=\\\"column\\\" .padding=${[\\\"0\\\",\\\"m\\\",\\\"0\\\",\\\"m\\\"]}>\\n        <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex\\n    ></wui-flex>`}};rit([xe()],DV.prototype,\\\"isMobile\\\",void 0);DV=rit([te(\\\"w3m-connecting-wc-basic-view\\\")],DV)});var E8,Ihe,The,_8,iit=x(()=>{u();F0();Mpe();a8();E8=()=>new Ihe,Ihe=class{},The=new WeakMap,_8=gx(class extends c8{render(t){return zi}update(t,[e]){let r=e!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),zi}rt(t){if(this.isConnected||(t=void 0),typeof this.G==\\\"function\\\"){let e=this.ht??globalThis,r=The.get(e);r===void 0&&(r=new WeakMap,The.set(e,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,t),t!==void 0&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return typeof this.G==\\\"function\\\"?The.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var LV=x(()=>{u();iit()});var sit,oit=x(()=>{u();Q();sit=we`\\n  :host {\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n  }\\n\\n  label {\\n    position: relative;\\n    display: inline-block;\\n    width: 32px;\\n    height: 22px;\\n  }\\n\\n  input {\\n    width: 0;\\n    height: 0;\\n    opacity: 0;\\n  }\\n\\n  span {\\n    position: absolute;\\n    cursor: pointer;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    background-color: var(--wui-color-blue-100);\\n    border-width: 1px;\\n    border-style: solid;\\n    border-color: var(--wui-color-gray-glass-002);\\n    border-radius: 999px;\\n    transition:\\n      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\\n      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);\\n    will-change: background-color, border-color;\\n  }\\n\\n  span:before {\\n    position: absolute;\\n    content: '';\\n    height: 16px;\\n    width: 16px;\\n    left: 3px;\\n    top: 2px;\\n    background-color: var(--wui-color-inverse-100);\\n    transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);\\n    will-change: transform;\\n    border-radius: 50%;\\n  }\\n\\n  input:checked + span {\\n    border-color: var(--wui-color-gray-glass-005);\\n    background-color: var(--wui-color-blue-100);\\n  }\\n\\n  input:not(:checked) + span {\\n    background-color: var(--wui-color-gray-glass-010);\\n  }\\n\\n  input:checked + span:before {\\n    transform: translateX(calc(100% - 7px));\\n  }\\n`});var ait,UV,cit=x(()=>{u();Q();Ke();bn();LV();Er();fr();oit();ait=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},UV=class extends se{constructor(){super(...arguments),this.inputElementRef=E8(),this.checked=void 0}render(){return $`\\n      <label>\\n        <input\\n          ${_8(this.inputElementRef)}\\n          type=\\\"checkbox\\\"\\n          ?checked=${Re(this.checked)}\\n          @change=${this.dispatchChangeEvent.bind(this)}\\n        />\\n        <span></span>\\n      </label>\\n    `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent(\\\"switchChange\\\",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};UV.styles=[ze,dr,Th,sit];ait([G({type:Boolean})],UV.prototype,\\\"checked\\\",void 0);UV=ait([te(\\\"wui-switch\\\")],UV)});var lit,uit=x(()=>{u();Q();lit=we`\\n  :host {\\n    height: 100%;\\n  }\\n\\n  button {\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    column-gap: var(--wui-spacing-1xs);\\n    padding: var(--wui-spacing-xs) var(--wui-spacing-s);\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: var(--wui-border-radius-xs);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\\n    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: background-color;\\n    cursor: pointer;\\n  }\\n\\n  wui-switch {\\n    pointer-events: none;\\n  }\\n`});var dit,FV,fit=x(()=>{u();Q();Ke();bn();aa();Er();fr();cit();uit();dit=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},FV=class extends se{constructor(){super(...arguments),this.checked=void 0}render(){return $`\\n      <button>\\n        <wui-icon size=\\\"xl\\\" name=\\\"walletConnectBrown\\\"></wui-icon>\\n        <wui-switch ?checked=${Re(this.checked)}></wui-switch>\\n      </button>\\n    `}};FV.styles=[ze,dr,lit];dit([G({type:Boolean})],FV.prototype,\\\"checked\\\",void 0);FV=dit([te(\\\"wui-certified-switch\\\")],FV)});var pit=x(()=>{u();fit()});var hit,mit=x(()=>{u();Q();hit=we`\\n  button {\\n    background-color: var(--wui-color-fg-300);\\n    border-radius: var(--wui-border-radius-4xs);\\n    width: 16px;\\n    height: 16px;\\n  }\\n\\n  button:disabled {\\n    background-color: var(--wui-color-bg-300);\\n  }\\n\\n  wui-icon {\\n    color: var(--wui-color-bg-200) !important;\\n  }\\n\\n  button:focus-visible {\\n    background-color: var(--wui-color-fg-250);\\n    border: 1px solid var(--wui-color-accent-100);\\n  }\\n\\n  @media (hover: hover) and (pointer: fine) {\\n    button:hover:enabled {\\n      background-color: var(--wui-color-fg-250);\\n    }\\n\\n    button:active:enabled {\\n      background-color: var(--wui-color-fg-225);\\n    }\\n  }\\n`});var git,jV,yit=x(()=>{u();Q();Ke();aa();Er();fr();mit();git=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jV=class extends se{constructor(){super(...arguments),this.icon=\\\"copy\\\"}render(){return $`\\n      <button>\\n        <wui-icon color=\\\"inherit\\\" size=\\\"xxs\\\" name=${this.icon}></wui-icon>\\n      </button>\\n    `}};jV.styles=[ze,dr,hit];git([G()],jV.prototype,\\\"icon\\\",void 0);jV=git([te(\\\"wui-input-element\\\")],jV)});var bit,wit=x(()=>{u();Q();bit=we`\\n  :host {\\n    position: relative;\\n    width: 100%;\\n    display: inline-block;\\n    color: var(--wui-color-fg-275);\\n  }\\n\\n  input {\\n    width: 100%;\\n    border-radius: var(--wui-border-radius-xs);\\n    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\\n    background: var(--wui-color-gray-glass-002);\\n    font-size: var(--wui-font-size-paragraph);\\n    letter-spacing: var(--wui-letter-spacing-paragraph);\\n    color: var(--wui-color-fg-100);\\n    transition:\\n      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\\n      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\\n      box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);\\n    will-change: background-color, border-color, box-shadow;\\n    caret-color: var(--wui-color-accent-100);\\n  }\\n\\n  input:disabled {\\n    cursor: not-allowed;\\n    border: 1px solid var(--wui-color-gray-glass-010);\\n  }\\n\\n  input:disabled::placeholder,\\n  input:disabled + wui-icon {\\n    color: var(--wui-color-fg-300);\\n  }\\n\\n  input::placeholder {\\n    color: var(--wui-color-fg-275);\\n  }\\n\\n  input:focus:enabled {\\n    background-color: var(--wui-color-gray-glass-005);\\n    -webkit-box-shadow:\\n      inset 0 0 0 1px var(--wui-color-accent-100),\\n      0px 0px 0px 4px var(--wui-box-shadow-blue);\\n    -moz-box-shadow:\\n      inset 0 0 0 1px var(--wui-color-accent-100),\\n      0px 0px 0px 4px var(--wui-box-shadow-blue);\\n    box-shadow:\\n      inset 0 0 0 1px var(--wui-color-accent-100),\\n      0px 0px 0px 4px var(--wui-box-shadow-blue);\\n  }\\n\\n  input:hover:enabled {\\n    background-color: var(--wui-color-gray-glass-005);\\n  }\\n\\n  wui-icon {\\n    position: absolute;\\n    top: 50%;\\n    transform: translateY(-50%);\\n    pointer-events: none;\\n  }\\n\\n  .wui-size-sm {\\n    padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);\\n  }\\n\\n  wui-icon + .wui-size-sm {\\n    padding: 9px var(--wui-spacing-m) 10px 36px;\\n  }\\n\\n  wui-icon[data-input='sm'] {\\n    left: var(--wui-spacing-s);\\n  }\\n\\n  .wui-size-md {\\n    padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);\\n  }\\n\\n  wui-icon + .wui-size-md,\\n  wui-loading-spinner + .wui-size-md {\\n    padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);\\n  }\\n\\n  wui-icon[data-input='md'] {\\n    left: var(--wui-spacing-l);\\n  }\\n\\n  .wui-size-lg {\\n    padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);\\n    letter-spacing: var(--wui-letter-spacing-medium-title);\\n    font-size: var(--wui-font-size-medium-title);\\n    font-weight: var(--wui-font-weight-light);\\n    line-height: 130%;\\n    color: var(--wui-color-fg-100);\\n    height: 64px;\\n  }\\n\\n  .wui-padding-right-xs {\\n    padding-right: var(--wui-spacing-xs);\\n  }\\n\\n  .wui-padding-right-s {\\n    padding-right: var(--wui-spacing-s);\\n  }\\n\\n  .wui-padding-right-m {\\n    padding-right: var(--wui-spacing-m);\\n  }\\n\\n  .wui-padding-right-l {\\n    padding-right: var(--wui-spacing-l);\\n  }\\n\\n  .wui-padding-right-xl {\\n    padding-right: var(--wui-spacing-xl);\\n  }\\n\\n  .wui-padding-right-2xl {\\n    padding-right: var(--wui-spacing-2xl);\\n  }\\n\\n  .wui-padding-right-3xl {\\n    padding-right: var(--wui-spacing-3xl);\\n  }\\n\\n  .wui-padding-right-4xl {\\n    padding-right: var(--wui-spacing-4xl);\\n  }\\n\\n  .wui-padding-right-5xl {\\n    padding-right: var(--wui-spacing-5xl);\\n  }\\n\\n  wui-icon + .wui-size-lg,\\n  wui-loading-spinner + .wui-size-lg {\\n    padding-left: 50px;\\n  }\\n\\n  wui-icon[data-input='lg'] {\\n    left: var(--wui-spacing-l);\\n  }\\n\\n  .wui-size-mdl {\\n    padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);\\n  }\\n  wui-icon + .wui-size-mdl,\\n  wui-loading-spinner + .wui-size-mdl {\\n    padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;\\n  }\\n  wui-icon[data-input='mdl'] {\\n    left: var(--wui-spacing-m);\\n  }\\n\\n  input:placeholder-shown ~ ::slotted(wui-input-element),\\n  input:placeholder-shown ~ ::slotted(wui-icon) {\\n    opacity: 0;\\n    pointer-events: none;\\n  }\\n\\n  input::-webkit-outer-spin-button,\\n  input::-webkit-inner-spin-button {\\n    -webkit-appearance: none;\\n    margin: 0;\\n  }\\n\\n  input[type='number'] {\\n    -moz-appearance: textfield;\\n  }\\n\\n  ::slotted(wui-input-element),\\n  ::slotted(wui-icon) {\\n    position: absolute;\\n    top: 50%;\\n    transform: translateY(-50%);\\n  }\\n\\n  ::slotted(wui-input-element) {\\n    right: var(--wui-spacing-m);\\n  }\\n\\n  ::slotted(wui-icon) {\\n    right: 0px;\\n  }\\n`});var Oh,Cd,vit=x(()=>{u();Q();Ke();jpe();bn();LV();aa();Er();fr();wit();Oh=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Cd=class extends se{constructor(){super(...arguments),this.inputElementRef=E8(),this.size=\\\"md\\\",this.disabled=!1,this.placeholder=\\\"\\\",this.type=\\\"text\\\",this.value=\\\"\\\"}render(){let e=`wui-padding-right-${this.inputRightPadding}`,n={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return $`${this.templateIcon()}\\n      <input\\n        data-testid=\\\"wui-input-text\\\"\\n        ${_8(this.inputElementRef)}\\n        class=${iV(n)}\\n        type=${this.type}\\n        enterkeyhint=${Re(this.enterKeyHint)}\\n        ?disabled=${this.disabled}\\n        placeholder=${this.placeholder}\\n        @input=${this.dispatchInputChangeEvent.bind(this)}\\n        .value=${this.value||\\\"\\\"}\\n        tabindex=${Re(this.tabIdx)}\\n      />\\n      <slot></slot>`}templateIcon(){return this.icon?$`<wui-icon\\n        data-input=${this.size}\\n        size=${this.size}\\n        color=\\\"inherit\\\"\\n        name=${this.icon}\\n      ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent(\\\"inputChange\\\",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};Cd.styles=[ze,dr,bit];Oh([G()],Cd.prototype,\\\"size\\\",void 0);Oh([G()],Cd.prototype,\\\"icon\\\",void 0);Oh([G({type:Boolean})],Cd.prototype,\\\"disabled\\\",void 0);Oh([G()],Cd.prototype,\\\"placeholder\\\",void 0);Oh([G()],Cd.prototype,\\\"type\\\",void 0);Oh([G()],Cd.prototype,\\\"keyHint\\\",void 0);Oh([G()],Cd.prototype,\\\"value\\\",void 0);Oh([G()],Cd.prototype,\\\"inputRightPadding\\\",void 0);Oh([G()],Cd.prototype,\\\"tabIdx\\\",void 0);Cd=Oh([te(\\\"wui-input-text\\\")],Cd)});var xit,Eit=x(()=>{u();Q();xit=we`\\n  :host {\\n    position: relative;\\n    display: inline-block;\\n    width: 100%;\\n  }\\n`});var cZt,Rhe,_it=x(()=>{u();Q();LV();yit();Er();fr();vit();Eit();cZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Rhe=class extends se{constructor(){super(...arguments),this.inputComponentRef=E8()}render(){return $`\\n      <wui-input-text\\n        ${_8(this.inputComponentRef)}\\n        placeholder=\\\"Search wallet\\\"\\n        icon=\\\"search\\\"\\n        type=\\\"search\\\"\\n        enterKeyHint=\\\"search\\\"\\n        size=\\\"sm\\\"\\n      >\\n        <wui-input-element @click=${this.clearValue} icon=\\\"close\\\"></wui-input-element>\\n      </wui-input-text>\\n    `}clearValue(){let r=this.inputComponentRef.value?.inputElementRef.value;r&&(r.value=\\\"\\\",r.focus(),r.dispatchEvent(new Event(\\\"input\\\")))}};Rhe.styles=[ze,xit];Rhe=cZt([te(\\\"wui-search-bar\\\")],Rhe)});var Cit=x(()=>{u();_it()});var Sit,Ait=x(()=>{u();Q();Sit=Y`<svg  viewBox=\\\"0 0 48 54\\\" fill=\\\"none\\\">\\n  <path\\n    d=\\\"M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z\\\"\\n  />\\n</svg>`});var Tit,Iit=x(()=>{u();Q();Tit=we`\\n  :host {\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    width: 104px;\\n    row-gap: var(--wui-spacing-xs);\\n    padding: var(--wui-spacing-xs) 10px;\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);\\n    position: relative;\\n  }\\n\\n  wui-shimmer[data-type='network'] {\\n    border: none;\\n    -webkit-clip-path: var(--wui-path-network);\\n    clip-path: var(--wui-path-network);\\n  }\\n\\n  svg {\\n    position: absolute;\\n    width: 48px;\\n    height: 54px;\\n    z-index: 1;\\n  }\\n\\n  svg > path {\\n    stroke: var(--wui-color-gray-glass-010);\\n    stroke-width: 1px;\\n  }\\n\\n  @media (max-width: 350px) {\\n    :host {\\n      width: 100%;\\n    }\\n  }\\n`});var Rit,HV,Pit=x(()=>{u();Q();Ke();Ait();Ehe();Er();fr();Iit();Rit=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},HV=class extends se{constructor(){super(...arguments),this.type=\\\"wallet\\\"}render(){return $`\\n      ${this.shimmerTemplate()}\\n      <wui-shimmer width=\\\"56px\\\" height=\\\"20px\\\" borderRadius=\\\"xs\\\"></wui-shimmer>\\n    `}shimmerTemplate(){return this.type===\\\"network\\\"?$` <wui-shimmer\\n          data-type=${this.type}\\n          width=\\\"48px\\\"\\n          height=\\\"54px\\\"\\n          borderRadius=\\\"xs\\\"\\n        ></wui-shimmer>\\n        ${Sit}`:$`<wui-shimmer width=\\\"56px\\\" height=\\\"56px\\\" borderRadius=\\\"xs\\\"></wui-shimmer>`}};HV.styles=[ze,dr,Tit];Rit([G()],HV.prototype,\\\"type\\\",void 0);HV=Rit([te(\\\"wui-card-select-loader\\\")],HV)});var Oit=x(()=>{u();Pit()});var Nit,kit=x(()=>{u();Q();Nit=we`\\n  :host {\\n    display: grid;\\n    width: inherit;\\n    height: inherit;\\n  }\\n`});var Sd,sl,Bit=x(()=>{u();Q();Ke();Er();fR();fr();kit();Sd=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},sl=class extends se{render(){return this.style.cssText=`\\n      grid-template-rows: ${this.gridTemplateRows};\\n      grid-template-columns: ${this.gridTemplateColumns};\\n      justify-items: ${this.justifyItems};\\n      align-items: ${this.alignItems};\\n      justify-content: ${this.justifyContent};\\n      align-content: ${this.alignContent};\\n      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\\n      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\\n      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\\n      padding-top: ${this.padding&&Pi.getSpacingStyles(this.padding,0)};\\n      padding-right: ${this.padding&&Pi.getSpacingStyles(this.padding,1)};\\n      padding-bottom: ${this.padding&&Pi.getSpacingStyles(this.padding,2)};\\n      padding-left: ${this.padding&&Pi.getSpacingStyles(this.padding,3)};\\n      margin-top: ${this.margin&&Pi.getSpacingStyles(this.margin,0)};\\n      margin-right: ${this.margin&&Pi.getSpacingStyles(this.margin,1)};\\n      margin-bottom: ${this.margin&&Pi.getSpacingStyles(this.margin,2)};\\n      margin-left: ${this.margin&&Pi.getSpacingStyles(this.margin,3)};\\n    `,$`<slot></slot>`}};sl.styles=[ze,Nit];Sd([G()],sl.prototype,\\\"gridTemplateRows\\\",void 0);Sd([G()],sl.prototype,\\\"gridTemplateColumns\\\",void 0);Sd([G()],sl.prototype,\\\"justifyItems\\\",void 0);Sd([G()],sl.prototype,\\\"alignItems\\\",void 0);Sd([G()],sl.prototype,\\\"justifyContent\\\",void 0);Sd([G()],sl.prototype,\\\"alignContent\\\",void 0);Sd([G()],sl.prototype,\\\"columnGap\\\",void 0);Sd([G()],sl.prototype,\\\"rowGap\\\",void 0);Sd([G()],sl.prototype,\\\"gap\\\",void 0);Sd([G()],sl.prototype,\\\"padding\\\",void 0);Sd([G()],sl.prototype,\\\"margin\\\",void 0);sl=Sd([te(\\\"wui-grid\\\")],sl)});var Phe=x(()=>{u();Bit()});var Mit,Dit=x(()=>{u();Q();Mit=we`\\n  button {\\n    display: flex;\\n    flex-direction: column;\\n    justify-content: center;\\n    align-items: center;\\n    cursor: pointer;\\n    width: 104px;\\n    row-gap: var(--wui-spacing-xs);\\n    padding: var(--wui-spacing-s) var(--wui-spacing-0);\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);\\n    transition:\\n      color var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);\\n    will-change: background-color, color, border-radius;\\n    outline: none;\\n    border: none;\\n  }\\n\\n  button > wui-flex > wui-text {\\n    color: var(--wui-color-fg-100);\\n    max-width: 86px;\\n    white-space: nowrap;\\n    overflow: hidden;\\n    text-overflow: ellipsis;\\n    justify-content: center;\\n  }\\n\\n  button > wui-flex > wui-text.certified {\\n    max-width: 66px;\\n  }\\n\\n  button:hover:enabled {\\n    background-color: var(--wui-color-gray-glass-005);\\n  }\\n\\n  button:disabled > wui-flex > wui-text {\\n    color: var(--wui-color-gray-glass-015);\\n  }\\n\\n  [data-selected='true'] {\\n    background-color: var(--wui-color-accent-glass-020);\\n  }\\n\\n  @media (hover: hover) and (pointer: fine) {\\n    [data-selected='true']:hover:enabled {\\n      background-color: var(--wui-color-accent-glass-015);\\n    }\\n  }\\n\\n  [data-selected='true']:active:enabled {\\n    background-color: var(--wui-color-accent-glass-010);\\n  }\\n\\n  @media (max-width: 350px) {\\n    button {\\n      width: 100%;\\n    }\\n  }\\n`});var MR,Rx,Ohe=x(()=>{u();Q();Ke();bn();xt();pr();is();CR();_he();z0();xV();Dit();MR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Rx=class extends se{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(r=>{r.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){let e=this.wallet?.badge_type===\\\"certified\\\";return $`\\n      <button>\\n        ${this.imageTemplate()}\\n        <wui-flex flexDirection=\\\"row\\\" alignItems=\\\"center\\\" justifyContent=\\\"center\\\" gap=\\\"3xs\\\">\\n          <wui-text\\n            variant=\\\"tiny-500\\\"\\n            color=\\\"inherit\\\"\\n            class=${Re(e?\\\"certified\\\":void 0)}\\n            >${this.wallet?.name}</wui-text\\n          >\\n          ${e?$`<wui-icon size=\\\"sm\\\" name=\\\"walletConnectBrown\\\"></wui-icon>`:null}\\n        </wui-flex>\\n      </button>\\n    `}imageTemplate(){return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():$`\\n      <wui-wallet-image\\n        size=\\\"md\\\"\\n        imageSrc=${Re(this.imageSrc)}\\n        name=${this.wallet?.name}\\n        .installed=${this.wallet?.installed}\\n        badgeSize=\\\"sm\\\"\\n      >\\n      </wui-wallet-image>\\n    `}shimmerTemplate(){return $`<wui-shimmer width=\\\"56px\\\" height=\\\"56px\\\" borderRadius=\\\"xs\\\"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=sr.getWalletImage(this.wallet),!this.imageSrc&&(this.imageLoading=!0,this.imageSrc=await sr.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};Rx.styles=Mit;MR([xe()],Rx.prototype,\\\"visible\\\",void 0);MR([xe()],Rx.prototype,\\\"imageSrc\\\",void 0);MR([xe()],Rx.prototype,\\\"imageLoading\\\",void 0);MR([G()],Rx.prototype,\\\"wallet\\\",void 0);Rx=MR([te(\\\"w3m-all-wallets-list-item\\\")],Rx)});var Lit,Uit=x(()=>{u();Q();Lit=we`\\n  wui-grid {\\n    max-height: clamp(360px, 400px, 80vh);\\n    overflow: scroll;\\n    scrollbar-width: none;\\n    grid-auto-rows: min-content;\\n    grid-template-columns: repeat(auto-fill, 104px);\\n  }\\n\\n  @media (max-width: 350px) {\\n    wui-grid {\\n      grid-template-columns: repeat(2, 1fr);\\n    }\\n  }\\n\\n  wui-grid[data-scroll='false'] {\\n    overflow: hidden;\\n  }\\n\\n  wui-grid::-webkit-scrollbar {\\n    display: none;\\n  }\\n\\n  wui-loading-spinner {\\n    padding-top: var(--wui-spacing-l);\\n    padding-bottom: var(--wui-spacing-l);\\n    justify-content: center;\\n    grid-column: 1 / span 4;\\n  }\\n`});var C8,Fit,ab,jit=x(()=>{u();Q();Ke();bn();xt();pr();Oit();Phe();cx();Ohe();Uit();C8=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Fit=\\\"local-paginator\\\",ab=class extends se{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!ye.state.wallets.length,this.wallets=ye.state.wallets,this.recommended=ye.state.recommended,this.featured=ye.state.featured,this.filteredWallets=ye.state.filteredWallets,this.unsubscribe.push(ye.subscribeKey(\\\"wallets\\\",e=>this.wallets=e),ye.subscribeKey(\\\"recommended\\\",e=>this.recommended=e),ye.subscribeKey(\\\"featured\\\",e=>this.featured=e),ye.subscribeKey(\\\"filteredWallets\\\",e=>this.filteredWallets=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return $`\\n      <wui-grid\\n        data-scroll=${!this.loading}\\n        .padding=${[\\\"0\\\",\\\"s\\\",\\\"s\\\",\\\"s\\\"]}\\n        columnGap=\\\"xxs\\\"\\n        rowGap=\\\"l\\\"\\n        justifyContent=\\\"space-between\\\"\\n      >\\n        ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}\\n        ${this.paginationLoaderTemplate()}\\n      </wui-grid>\\n    `}async initialFetch(){this.loading=!0;let e=this.shadowRoot?.querySelector(\\\"wui-grid\\\");e&&(await ye.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}))}shimmerTemplate(e,r){return[...Array(e)].map(()=>$`\\n        <wui-card-select-loader type=\\\"wallet\\\" id=${Re(r)}></wui-card-select-loader>\\n      `)}walletsTemplate(){let e=this.filteredWallets?.length>0?oe.uniqueBy([...this.featured,...this.recommended,...this.filteredWallets],\\\"id\\\"):oe.uniqueBy([...this.featured,...this.recommended,...this.wallets],\\\"id\\\");return Xl.markWalletsAsInstalled(e).map(n=>$`\\n        <w3m-all-wallets-list-item\\n          @click=${()=>this.onConnectWallet(n)}\\n          .wallet=${n}\\n        ></w3m-all-wallets-list-item>\\n      `)}paginationLoaderTemplate(){let{wallets:e,recommended:r,featured:n,count:i}=ye.state,s=window.innerWidth<352?3:4,o=e.length+r.length,c=Math.ceil(o/s)*s-o+s;return c-=e.length?n.length%s:0,i===0&&n.length>0?null:i===0||[...n,...e,...r].length<i?this.shimmerTemplate(c,Fit):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${Fit}`);e&&(this.paginationObserver=new IntersectionObserver(([r])=>{if(r?.isIntersecting&&!this.loading){let{page:n,count:i,wallets:s}=ye.state;s.length<i&&ye.fetchWalletsByPage({page:n+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){ie.selectWalletConnector(e)}};ab.styles=Lit;C8([xe()],ab.prototype,\\\"loading\\\",void 0);C8([xe()],ab.prototype,\\\"wallets\\\",void 0);C8([xe()],ab.prototype,\\\"recommended\\\",void 0);C8([xe()],ab.prototype,\\\"featured\\\",void 0);C8([xe()],ab.prototype,\\\"filteredWallets\\\",void 0);ab=C8([te(\\\"w3m-all-wallets-list\\\")],ab)});var Hit=x(()=>{u();_R()});var qit,zit=x(()=>{u();Q();qit=we`\\n  wui-grid,\\n  wui-loading-spinner,\\n  wui-flex {\\n    height: 360px;\\n  }\\n\\n  wui-grid {\\n    overflow: scroll;\\n    scrollbar-width: none;\\n    grid-auto-rows: min-content;\\n    grid-template-columns: repeat(auto-fill, 104px);\\n  }\\n\\n  wui-grid[data-scroll='false'] {\\n    overflow: hidden;\\n  }\\n\\n  wui-grid::-webkit-scrollbar {\\n    display: none;\\n  }\\n\\n  wui-loading-spinner {\\n    justify-content: center;\\n    align-items: center;\\n  }\\n\\n  @media (max-width: 350px) {\\n    wui-grid {\\n      grid-template-columns: repeat(2, 1fr);\\n    }\\n  }\\n`});var qV,S8,$it=x(()=>{u();Q();Ke();xt();pr();is();Phe();bV();Hit();z0();cx();Ohe();zit();qV=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},S8=class extends se{constructor(){super(...arguments),this.prevQuery=\\\"\\\",this.prevBadge=void 0,this.loading=!0,this.query=\\\"\\\"}render(){return this.onSearch(),this.loading?$`<wui-loading-spinner color=\\\"accent-100\\\"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await ye.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){let{search:e}=ye.state,r=Xl.markWalletsAsInstalled(e);return e.length?$`\\n      <wui-grid\\n        data-testid=\\\"wallet-list\\\"\\n        .padding=${[\\\"0\\\",\\\"s\\\",\\\"s\\\",\\\"s\\\"]}\\n        rowGap=\\\"l\\\"\\n        columnGap=\\\"xs\\\"\\n        justifyContent=\\\"space-between\\\"\\n      >\\n        ${r.map(n=>$`\\n            <w3m-all-wallets-list-item\\n              @click=${()=>this.onConnectWallet(n)}\\n              .wallet=${n}\\n              data-testid=\\\"wallet-search-item-${n.id}\\\"\\n            ></w3m-all-wallets-list-item>\\n          `)}\\n      </wui-grid>\\n    `:$`\\n        <wui-flex\\n          data-testid=\\\"no-wallet-found\\\"\\n          justifyContent=\\\"center\\\"\\n          alignItems=\\\"center\\\"\\n          gap=\\\"s\\\"\\n          flexDirection=\\\"column\\\"\\n        >\\n          <wui-icon-box\\n            size=\\\"lg\\\"\\n            iconColor=\\\"fg-200\\\"\\n            backgroundColor=\\\"fg-300\\\"\\n            icon=\\\"wallet\\\"\\n            background=\\\"transparent\\\"\\n          ></wui-icon-box>\\n          <wui-text data-testid=\\\"no-wallet-found-text\\\" color=\\\"fg-200\\\" variant=\\\"paragraph-500\\\">\\n            No Wallet found\\n          </wui-text>\\n        </wui-flex>\\n      `}onConnectWallet(e){ie.selectWalletConnector(e)}};S8.styles=qit;qV([xe()],S8.prototype,\\\"loading\\\",void 0);qV([G()],S8.prototype,\\\"query\\\",void 0);qV([G()],S8.prototype,\\\"badge\\\",void 0);S8=qV([te(\\\"w3m-all-wallets-search\\\")],S8)});var Nhe,DR,Vit=x(()=>{u();Q();Ke();bn();xt();pr();pit();is();bV();Cit();jit();$it();Nhe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},DR=class extends se{constructor(){super(...arguments),this.search=\\\"\\\",this.onDebouncedSearch=oe.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return $`\\n      <wui-flex .padding=${[\\\"0\\\",\\\"s\\\",\\\"s\\\",\\\"s\\\"]} gap=\\\"xs\\\">\\n        <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>\\n        <wui-certified-switch\\n          ?checked=${this.badge}\\n          @click=${this.onClick.bind(this)}\\n          data-testid=\\\"wui-certified-switch\\\"\\n        ></wui-certified-switch>\\n        ${this.qrButtonTemplate()}\\n      </wui-flex>\\n      ${e||this.badge?$`<w3m-all-wallets-search\\n            query=${this.search}\\n            badge=${Re(this.badge)}\\n          ></w3m-all-wallets-search>`:$`<w3m-all-wallets-list badge=${Re(this.badge)}></w3m-all-wallets-list>`}\\n    `}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if(this.badge===\\\"certified\\\"){this.badge=void 0;return}this.badge=\\\"certified\\\",wr.showSvg(\\\"Only WalletConnect certified\\\",{icon:\\\"walletConnectBrown\\\",iconColor:\\\"accent-100\\\"})}qrButtonTemplate(){return oe.isMobile()?$`\\n        <wui-icon-box\\n          size=\\\"lg\\\"\\n          iconSize=\\\"xl\\\"\\n          iconColor=\\\"accent-100\\\"\\n          backgroundColor=\\\"accent-100\\\"\\n          icon=\\\"qrCode\\\"\\n          background=\\\"transparent\\\"\\n          border\\n          borderColor=\\\"wui-accent-glass-010\\\"\\n          @click=${this.onWalletConnectQr.bind(this)}\\n        ></wui-icon-box>\\n      `:null}onWalletConnectQr(){de.push(\\\"ConnectingWalletConnect\\\")}};Nhe([xe()],DR.prototype,\\\"search\\\",void 0);Nhe([xe()],DR.prototype,\\\"badge\\\",void 0);DR=Nhe([te(\\\"w3m-all-wallets-view\\\")],DR)});var Wit,Git=x(()=>{u();Q();Wit=we`\\n  button {\\n    column-gap: var(--wui-spacing-s);\\n    padding: 11px 18px 11px var(--wui-spacing-s);\\n    width: 100%;\\n    background-color: var(--wui-color-gray-glass-002);\\n    border-radius: var(--wui-border-radius-xs);\\n    color: var(--wui-color-fg-250);\\n    transition:\\n      color var(--wui-ease-out-power-1) var(--wui-duration-md),\\n      background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: color, background-color;\\n  }\\n\\n  button[data-iconvariant='square'],\\n  button[data-iconvariant='square-blue'] {\\n    padding: 6px 18px 6px 9px;\\n  }\\n\\n  button > wui-flex {\\n    flex: 1;\\n  }\\n\\n  button > wui-image {\\n    width: 32px;\\n    height: 32px;\\n    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);\\n    border-radius: var(--wui-border-radius-3xl);\\n  }\\n\\n  button > wui-icon {\\n    width: 36px;\\n    height: 36px;\\n    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    will-change: opacity;\\n  }\\n\\n  button > wui-icon-box[data-variant='blue'] {\\n    box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);\\n  }\\n\\n  button > wui-icon-box[data-variant='overlay'] {\\n    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);\\n  }\\n\\n  button > wui-icon-box[data-variant='square-blue'] {\\n    border-radius: var(--wui-border-radius-3xs);\\n    position: relative;\\n    border: none;\\n    width: 36px;\\n    height: 36px;\\n  }\\n\\n  button > wui-icon-box[data-variant='square-blue']::after {\\n    content: '';\\n    position: absolute;\\n    top: 0;\\n    bottom: 0;\\n    left: 0;\\n    right: 0;\\n    border-radius: inherit;\\n    border: 1px solid var(--wui-color-accent-glass-010);\\n    pointer-events: none;\\n  }\\n\\n  button > wui-icon:last-child {\\n    width: 14px;\\n    height: 14px;\\n  }\\n\\n  button:disabled {\\n    color: var(--wui-color-gray-glass-020);\\n  }\\n\\n  button[data-loading='true'] > wui-icon {\\n    opacity: 0;\\n  }\\n\\n  wui-loading-spinner {\\n    position: absolute;\\n    right: 18px;\\n    top: 50%;\\n    transform: translateY(-50%);\\n  }\\n`});var Uf,ru,Kit=x(()=>{u();Q();Ke();bn();aa();u8();_R();tu();eb();Er();fr();tb();Git();Uf=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ru=class extends se{constructor(){super(...arguments),this.tabIdx=void 0,this.variant=\\\"icon\\\",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return $`\\n      <button\\n        ?disabled=${this.loading?!0:!!this.disabled}\\n        data-loading=${this.loading}\\n        data-iconvariant=${Re(this.iconVariant)}\\n        tabindex=${Re(this.tabIdx)}\\n      >\\n        ${this.loadingTemplate()} ${this.visualTemplate()}\\n        <wui-flex gap=\\\"3xs\\\">\\n          <slot></slot>\\n        </wui-flex>\\n        ${this.chevronTemplate()}\\n      </button>\\n    `}visualTemplate(){if(this.variant===\\\"image\\\"&&this.imageSrc)return $`<wui-image src=${this.imageSrc} alt=${this.alt??\\\"list item\\\"}></wui-image>`;if(this.iconVariant===\\\"square\\\"&&this.icon&&this.variant===\\\"icon\\\")return $`<wui-icon name=${this.icon}></wui-icon>`;if(this.variant===\\\"icon\\\"&&this.icon&&this.iconVariant){let e=[\\\"blue\\\",\\\"square-blue\\\"].includes(this.iconVariant)?\\\"accent-100\\\":\\\"fg-200\\\",r=this.iconVariant===\\\"square-blue\\\"?\\\"mdl\\\":\\\"md\\\",n=this.iconSize?this.iconSize:r;return $`\\n        <wui-icon-box\\n          data-variant=${this.iconVariant}\\n          icon=${this.icon}\\n          iconSize=${n}\\n          background=\\\"transparent\\\"\\n          iconColor=${e}\\n          backgroundColor=${e}\\n          size=${r}\\n        ></wui-icon-box>\\n      `}return null}loadingTemplate(){return this.loading?$`<wui-loading-spinner\\n        data-testid=\\\"wui-list-item-loading-spinner\\\"\\n        color=\\\"fg-300\\\"\\n      ></wui-loading-spinner>`:$``}chevronTemplate(){return this.chevron?$`<wui-icon size=\\\"inherit\\\" color=\\\"fg-200\\\" name=\\\"chevronRight\\\"></wui-icon>`:null}};ru.styles=[ze,dr,Wit];Uf([G()],ru.prototype,\\\"icon\\\",void 0);Uf([G()],ru.prototype,\\\"iconSize\\\",void 0);Uf([G()],ru.prototype,\\\"tabIdx\\\",void 0);Uf([G()],ru.prototype,\\\"variant\\\",void 0);Uf([G()],ru.prototype,\\\"iconVariant\\\",void 0);Uf([G({type:Boolean})],ru.prototype,\\\"disabled\\\",void 0);Uf([G()],ru.prototype,\\\"imageSrc\\\",void 0);Uf([G()],ru.prototype,\\\"alt\\\",void 0);Uf([G({type:Boolean})],ru.prototype,\\\"chevron\\\",void 0);Uf([G({type:Boolean})],ru.prototype,\\\"loading\\\",void 0);ru=Uf([te(\\\"wui-list-item\\\")],ru)});var Zit=x(()=>{u();Kit()});var lZt,khe,Qit=x(()=>{u();Q();xt();pr();is();Zit();z0();lZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},khe=class extends se{constructor(){super(...arguments),this.wallet=de.state.data?.wallet}render(){if(!this.wallet)throw new Error(\\\"w3m-downloads-view\\\");return $`\\n      <wui-flex gap=\\\"xs\\\" flexDirection=\\\"column\\\" .padding=${[\\\"s\\\",\\\"s\\\",\\\"l\\\",\\\"s\\\"]}>\\n        ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}\\n        ${this.homepageTemplate()}\\n      </wui-flex>\\n    `}chromeTemplate(){return this.wallet?.chrome_store?$`<wui-list-item\\n      variant=\\\"icon\\\"\\n      icon=\\\"chromeStore\\\"\\n      iconVariant=\\\"square\\\"\\n      @click=${this.onChromeStore.bind(this)}\\n      chevron\\n    >\\n      <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">Chrome Extension</wui-text>\\n    </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?$`<wui-list-item\\n      variant=\\\"icon\\\"\\n      icon=\\\"appStore\\\"\\n      iconVariant=\\\"square\\\"\\n      @click=${this.onAppStore.bind(this)}\\n      chevron\\n    >\\n      <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">iOS App</wui-text>\\n    </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?$`<wui-list-item\\n      variant=\\\"icon\\\"\\n      icon=\\\"playStore\\\"\\n      iconVariant=\\\"square\\\"\\n      @click=${this.onPlayStore.bind(this)}\\n      chevron\\n    >\\n      <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">Android App</wui-text>\\n    </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?$`\\n      <wui-list-item\\n        variant=\\\"icon\\\"\\n        icon=\\\"browser\\\"\\n        iconVariant=\\\"square-blue\\\"\\n        @click=${this.onHomePage.bind(this)}\\n        chevron\\n      >\\n        <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\">Website</wui-text>\\n      </wui-list-item>\\n    `:null}onChromeStore(){this.wallet?.chrome_store&&oe.openHref(this.wallet.chrome_store,\\\"_blank\\\")}onAppStore(){this.wallet?.app_store&&oe.openHref(this.wallet.app_store,\\\"_blank\\\")}onPlayStore(){this.wallet?.play_store&&oe.openHref(this.wallet.play_store,\\\"_blank\\\")}onHomePage(){this.wallet?.homepage&&oe.openHref(this.wallet.homepage,\\\"_blank\\\")}};khe=lZt([te(\\\"w3m-downloads-view\\\")],khe)});var Jit={};ue(Jit,{W3mAllWalletsView:()=>DR,W3mConnectingWcBasicView:()=>DV,W3mDownloadsView:()=>khe});var Yit=x(()=>{u();nit();Vit();Qit()});var Xit,est=x(()=>{u();Q();Xit=we`\\n  :host {\\n    display: block;\\n    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);\\n    box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);\\n    background-color: var(--wui-color-modal-bg);\\n    overflow: hidden;\\n  }\\n\\n  :host([data-embedded='true']) {\\n    box-shadow:\\n      0 0 0 1px var(--wui-color-gray-glass-005),\\n      0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);\\n  }\\n`});var uZt,Bhe,tst=x(()=>{u();Q();Er();fr();est();uZt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Bhe=class extends se{render(){return $`<slot></slot>`}};Bhe.styles=[ze,Xit];Bhe=uZt([te(\\\"wui-card\\\")],Bhe)});var rst=x(()=>{u();tst()});var nst,ist=x(()=>{u();Q();nst=we`\\n  :host {\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    padding: var(--wui-spacing-s);\\n    border-radius: var(--wui-border-radius-s);\\n    border: 1px solid var(--wui-color-dark-glass-100);\\n    box-sizing: border-box;\\n    background-color: var(--wui-color-bg-325);\\n    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);\\n  }\\n\\n  wui-flex {\\n    width: 100%;\\n  }\\n\\n  wui-text {\\n    word-break: break-word;\\n    flex: 1;\\n  }\\n\\n  .close {\\n    cursor: pointer;\\n  }\\n\\n  .icon-box {\\n    height: 40px;\\n    width: 40px;\\n    border-radius: var(--wui-border-radius-3xs);\\n    background-color: var(--local-icon-bg-value);\\n  }\\n`});var LR,Px,sst=x(()=>{u();Q();Ke();xt();aa();tu();eb();Er();fr();ist();LR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Px=class extends se{constructor(){super(...arguments),this.message=\\\"\\\",this.backgroundColor=\\\"accent-100\\\",this.iconColor=\\\"accent-100\\\",this.icon=\\\"info\\\"}render(){return this.style.cssText=`\\n      --local-icon-bg-value: var(--wui-color-${this.backgroundColor});\\n   `,$`\\n      <wui-flex flexDirection=\\\"row\\\" justifyContent=\\\"space-between\\\" alignItems=\\\"center\\\">\\n        <wui-flex columnGap=\\\"xs\\\" flexDirection=\\\"row\\\" alignItems=\\\"center\\\">\\n          <wui-flex\\n            flexDirection=\\\"row\\\"\\n            alignItems=\\\"center\\\"\\n            justifyContent=\\\"center\\\"\\n            class=\\\"icon-box\\\"\\n          >\\n            <wui-icon color=${this.iconColor} size=\\\"md\\\" name=${this.icon}></wui-icon>\\n          </wui-flex>\\n          <wui-text variant=\\\"small-500\\\" color=\\\"bg-350\\\" data-testid=\\\"wui-alertbar-text\\\"\\n            >${this.message}</wui-text\\n          >\\n        </wui-flex>\\n        <wui-icon\\n          class=\\\"close\\\"\\n          color=\\\"bg-350\\\"\\n          size=\\\"sm\\\"\\n          name=\\\"close\\\"\\n          @click=${this.onClose}\\n        ></wui-icon>\\n      </wui-flex>\\n    `}onClose(){Xo.close()}};Px.styles=[ze,nst];LR([G()],Px.prototype,\\\"message\\\",void 0);LR([G()],Px.prototype,\\\"backgroundColor\\\",void 0);LR([G()],Px.prototype,\\\"iconColor\\\",void 0);LR([G()],Px.prototype,\\\"icon\\\",void 0);Px=LR([te(\\\"wui-alertbar\\\")],Px)});var ost=x(()=>{u();sst()});var ast,cst=x(()=>{u();Q();ast=we`\\n  :host {\\n    display: block;\\n    position: absolute;\\n    top: var(--wui-spacing-s);\\n    left: var(--wui-spacing-l);\\n    right: var(--wui-spacing-l);\\n    opacity: 0;\\n    pointer-events: none;\\n  }\\n`});var lst,dZt,zV,ust=x(()=>{u();Q();Ke();xt();pr();ost();cst();lst=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},dZt={info:{backgroundColor:\\\"fg-350\\\",iconColor:\\\"fg-325\\\",icon:\\\"info\\\"},success:{backgroundColor:\\\"success-glass-reown-020\\\",iconColor:\\\"success-125\\\",icon:\\\"checkmark\\\"},warning:{backgroundColor:\\\"warning-glass-reown-020\\\",iconColor:\\\"warning-100\\\",icon:\\\"warningCircle\\\"},error:{backgroundColor:\\\"error-glass-reown-020\\\",iconColor:\\\"error-125\\\",icon:\\\"exclamationTriangle\\\"}},zV=class extends se{constructor(){super(),this.unsubscribe=[],this.open=Xo.state.open,this.onOpen(!0),this.unsubscribe.push(Xo.subscribeKey(\\\"open\\\",e=>{this.open=e,this.onOpen(!1)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:r}=Xo.state,n=dZt[r];return $`\\n      <wui-alertbar\\n        message=${e}\\n        backgroundColor=${n?.backgroundColor}\\n        iconColor=${n?.iconColor}\\n        icon=${n?.icon}\\n      ></wui-alertbar>\\n    `}onOpen(e){this.open?(this.animate([{opacity:0,transform:\\\"scale(0.85)\\\"},{opacity:1,transform:\\\"scale(1)\\\"}],{duration:150,fill:\\\"forwards\\\",easing:\\\"ease\\\"}),this.style.cssText=\\\"pointer-events: auto\\\"):e||(this.animate([{opacity:1,transform:\\\"scale(1)\\\"},{opacity:0,transform:\\\"scale(0.85)\\\"}],{duration:150,fill:\\\"forwards\\\",easing:\\\"ease\\\"}),this.style.cssText=\\\"pointer-events: none\\\")}};zV.styles=ast;lst([xe()],zV.prototype,\\\"open\\\",void 0);zV=lst([te(\\\"w3m-alertbar\\\")],zV)});var dst,fst=x(()=>{u();Q();dst=we`\\n  button {\\n    border-radius: var(--local-border-radius);\\n    color: var(--wui-color-fg-100);\\n    padding: var(--local-padding);\\n  }\\n\\n  @media (max-width: 700px) {\\n    button {\\n      padding: var(--wui-spacing-s);\\n    }\\n  }\\n\\n  button > wui-icon {\\n    pointer-events: none;\\n  }\\n\\n  button:disabled > wui-icon {\\n    color: var(--wui-color-bg-300) !important;\\n  }\\n\\n  button:disabled {\\n    background-color: transparent;\\n  }\\n`});var UR,Ox,pst=x(()=>{u();Q();Ke();aa();Er();fr();fst();UR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ox=class extends se{constructor(){super(...arguments),this.size=\\\"md\\\",this.disabled=!1,this.icon=\\\"copy\\\",this.iconColor=\\\"inherit\\\"}render(){let e=this.size===\\\"lg\\\"?\\\"--wui-border-radius-xs\\\":\\\"--wui-border-radius-xxs\\\",r=this.size===\\\"lg\\\"?\\\"--wui-spacing-1xs\\\":\\\"--wui-spacing-2xs\\\";return this.style.cssText=`\\n    --local-border-radius: var(${e});\\n    --local-padding: var(${r});\\n`,$`\\n      <button ?disabled=${this.disabled}>\\n        <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>\\n      </button>\\n    `}};Ox.styles=[ze,dr,Th,dst];UR([G()],Ox.prototype,\\\"size\\\",void 0);UR([G({type:Boolean})],Ox.prototype,\\\"disabled\\\",void 0);UR([G()],Ox.prototype,\\\"icon\\\",void 0);UR([G()],Ox.prototype,\\\"iconColor\\\",void 0);Ox=UR([te(\\\"wui-icon-link\\\")],Ox)});var hst=x(()=>{u();pst()});var mst,gst=x(()=>{u();Q();mst=we`\\n  button {\\n    display: block;\\n    display: flex;\\n    align-items: center;\\n    padding: var(--wui-spacing-xxs);\\n    gap: var(--wui-spacing-xxs);\\n    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);\\n    border-radius: var(--wui-border-radius-xxs);\\n  }\\n\\n  wui-image {\\n    border-radius: 100%;\\n    width: var(--wui-spacing-xl);\\n    height: var(--wui-spacing-xl);\\n  }\\n\\n  wui-icon-box {\\n    width: var(--wui-spacing-xl);\\n    height: var(--wui-spacing-xl);\\n  }\\n\\n  button:hover {\\n    background-color: var(--wui-color-gray-glass-002);\\n  }\\n\\n  button:active {\\n    background-color: var(--wui-color-gray-glass-005);\\n  }\\n`});var yst,$V,bst=x(()=>{u();Q();Ke();aa();u8();tb();Er();fr();gst();yst=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$V=class extends se{constructor(){super(...arguments),this.imageSrc=\\\"\\\"}render(){return $`<button>\\n      ${this.imageTemplate()}\\n      <wui-icon size=\\\"xs\\\" color=\\\"fg-200\\\" name=\\\"chevronBottom\\\"></wui-icon>\\n    </button>`}imageTemplate(){return this.imageSrc?$`<wui-image src=${this.imageSrc} alt=\\\"select visual\\\"></wui-image>`:$`<wui-icon-box\\n      size=\\\"xxs\\\"\\n      iconColor=\\\"fg-200\\\"\\n      backgroundColor=\\\"fg-100\\\"\\n      background=\\\"opaque\\\"\\n      icon=\\\"networkPlaceholder\\\"\\n    ></wui-icon-box>`}};$V.styles=[ze,dr,Th,mst];yst([G()],$V.prototype,\\\"imageSrc\\\",void 0);$V=yst([te(\\\"wui-select\\\")],$V)});var wst=x(()=>{u();bst()});var vst=x(()=>{u();zpe()});var xst,Est=x(()=>{u();Q();xst=we`\\n  :host {\\n    height: 64px;\\n  }\\n\\n  wui-text {\\n    text-transform: capitalize;\\n  }\\n\\n  wui-flex.w3m-header-title {\\n    transform: translateY(0);\\n    opacity: 1;\\n  }\\n\\n  wui-flex.w3m-header-title[view-direction='prev'] {\\n    animation:\\n      slide-down-out 120ms forwards var(--wui-ease-out-power-2),\\n      slide-down-in 120ms forwards var(--wui-ease-out-power-2);\\n    animation-delay: 0ms, 200ms;\\n  }\\n\\n  wui-flex.w3m-header-title[view-direction='next'] {\\n    animation:\\n      slide-up-out 120ms forwards var(--wui-ease-out-power-2),\\n      slide-up-in 120ms forwards var(--wui-ease-out-power-2);\\n    animation-delay: 0ms, 200ms;\\n  }\\n\\n  wui-icon-link[data-hidden='true'] {\\n    opacity: 0 !important;\\n    pointer-events: none;\\n  }\\n\\n  @keyframes slide-up-out {\\n    from {\\n      transform: translateY(0px);\\n      opacity: 1;\\n    }\\n    to {\\n      transform: translateY(3px);\\n      opacity: 0;\\n    }\\n  }\\n\\n  @keyframes slide-up-in {\\n    from {\\n      transform: translateY(-3px);\\n      opacity: 0;\\n    }\\n    to {\\n      transform: translateY(0);\\n      opacity: 1;\\n    }\\n  }\\n\\n  @keyframes slide-down-out {\\n    from {\\n      transform: translateY(0px);\\n      opacity: 1;\\n    }\\n    to {\\n      transform: translateY(-3px);\\n      opacity: 0;\\n    }\\n  }\\n\\n  @keyframes slide-down-in {\\n    from {\\n      transform: translateY(3px);\\n      opacity: 0;\\n    }\\n    to {\\n      transform: translateY(0);\\n      opacity: 1;\\n    }\\n  }\\n`});function Mhe(){let t=de.state.data?.connector?.name,e=de.state.data?.wallet?.name,r=de.state.data?.network?.name,n=e??t,i=ie.getConnectors();return{Connect:`Connect ${i.length===1&&i[0]?.id===\\\"w3m-email\\\"?\\\"Email\\\":\\\"\\\"} Wallet`,Create:\\\"Create Wallet\\\",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:\\\"All Wallets\\\",ApproveTransaction:\\\"Approve Transaction\\\",BuyInProgress:\\\"Buy\\\",ConnectingExternal:n??\\\"Connect Wallet\\\",ConnectingWalletConnect:n??\\\"WalletConnect\\\",ConnectingWalletConnectBasic:\\\"WalletConnect\\\",ConnectingSiwe:\\\"Sign In\\\",Convert:\\\"Convert\\\",ConvertSelectToken:\\\"Select token\\\",ConvertPreview:\\\"Preview convert\\\",Downloads:n?`Get ${n}`:\\\"Downloads\\\",EmailLogin:\\\"Email Login\\\",EmailVerifyOtp:\\\"Confirm Email\\\",EmailVerifyDevice:\\\"Register Device\\\",GetWallet:\\\"Get a wallet\\\",Networks:\\\"Choose Network\\\",OnRampProviders:\\\"Choose Provider\\\",OnRampActivity:\\\"Activity\\\",OnRampTokenSelect:\\\"Select Token\\\",OnRampFiatSelect:\\\"Select Currency\\\",Pay:\\\"How you pay\\\",Profile:void 0,SwitchNetwork:r??\\\"Switch Network\\\",SwitchAddress:\\\"Switch Address\\\",Transactions:\\\"Activity\\\",UnsupportedChain:\\\"Switch Network\\\",UpgradeEmailWallet:\\\"Upgrade your Wallet\\\",UpdateEmailWallet:\\\"Edit Email\\\",UpdateEmailPrimaryOtp:\\\"Confirm Current Email\\\",UpdateEmailSecondaryOtp:\\\"Confirm New Email\\\",WhatIsABuy:\\\"What is Buy?\\\",RegisterAccountName:\\\"Choose name\\\",RegisterAccountNameSuccess:\\\"\\\",WalletReceive:\\\"Receive\\\",WalletCompatibleNetworks:\\\"Compatible Networks\\\",Swap:\\\"Swap\\\",SwapSelectToken:\\\"Select token\\\",SwapPreview:\\\"Preview swap\\\",WalletSend:\\\"Send\\\",WalletSendPreview:\\\"Review send\\\",WalletSendSelectToken:\\\"Select Token\\\",WhatIsANetwork:\\\"What is a network?\\\",WhatIsAWallet:\\\"What is a wallet?\\\",ConnectWallets:\\\"Connect wallet\\\",ConnectSocials:\\\"All socials\\\",ConnectingSocial:Ie.state.socialProvider?Ie.state.socialProvider:\\\"Connect Social\\\",ConnectingMultiChain:\\\"Select chain\\\",ConnectingFarcaster:\\\"Farcaster\\\",SwitchActiveChain:\\\"Switch chain\\\",SmartSessionCreated:void 0,SmartSessionList:\\\"Smart Sessions\\\",SIWXSignMessage:\\\"Sign In\\\",PayLoading:\\\"Payment in progress\\\"}}var K0,fZt,Ff,_st=x(()=>{u();Q();Ke();bn();xt();pr();is();hst();wst();vst();z0();eR();Est();K0=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},fZt=[\\\"SmartSessionList\\\"];Ff=class extends se{constructor(){super(),this.unsubscribe=[],this.heading=Mhe()[de.state.view],this.network=z.state.activeCaipNetwork,this.networkImage=sr.getNetworkImage(this.network),this.showBack=!1,this.prevHistoryLength=1,this.view=de.state.view,this.viewDirection=\\\"\\\",this.headerText=Mhe()[de.state.view],this.unsubscribe.push(Zs.subscribeNetworkImages(()=>{this.networkImage=sr.getNetworkImage(this.network)}),de.subscribeKey(\\\"view\\\",e=>{setTimeout(()=>{this.view=e,this.headerText=Mhe()[e]},Bf.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),z.subscribeKey(\\\"activeCaipNetwork\\\",e=>{this.network=e,this.networkImage=sr.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return $`\\n      <wui-flex .padding=${this.getPadding()} justifyContent=\\\"space-between\\\" alignItems=\\\"center\\\">\\n        ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}\\n      </wui-flex>\\n    `}onWalletHelp(){Xe.sendEvent({type:\\\"track\\\",event:\\\"CLICK_WALLET_HELP\\\"}),de.push(\\\"WhatIsAWallet\\\")}async onClose(){await Y7.safeClose()}rightHeaderTemplate(){let e=ee?.state?.features?.smartSessions;return de.state.view!==\\\"Account\\\"||!e?this.closeButtonTemplate():$`<wui-flex>\\n      <wui-icon-link\\n        icon=\\\"clock\\\"\\n        @click=${()=>de.push(\\\"SmartSessionList\\\")}\\n        data-testid=\\\"w3m-header-smart-sessions\\\"\\n      ></wui-icon-link>\\n      ${this.closeButtonTemplate()}\\n    </wui-flex> `}closeButtonTemplate(){return $`\\n      <wui-icon-link\\n        icon=\\\"close\\\"\\n        @click=${this.onClose.bind(this)}\\n        data-testid=\\\"w3m-header-close\\\"\\n      ></wui-icon-link>\\n    `}titleTemplate(){let e=fZt.includes(this.view);return $`\\n      <wui-flex\\n        view-direction=\\\"${this.viewDirection}\\\"\\n        class=\\\"w3m-header-title\\\"\\n        alignItems=\\\"center\\\"\\n        gap=\\\"xs\\\"\\n      >\\n        <wui-text variant=\\\"paragraph-700\\\" color=\\\"fg-100\\\" data-testid=\\\"w3m-header-text\\\"\\n          >${this.headerText}</wui-text\\n        >\\n        ${e?$`<wui-tag variant=\\\"main\\\">Beta</wui-tag>`:null}\\n      </wui-flex>\\n    `}leftHeaderTemplate(){let{view:e}=de.state,r=e===\\\"Connect\\\",n=ee.state.enableEmbedded,i=e===\\\"ApproveTransaction\\\",s=e===\\\"ConnectingSiwe\\\",o=e===\\\"Account\\\",a=ee.state.enableNetworkSwitch,c=i||s||r&&n;return o&&a?$`<wui-select\\n        id=\\\"dynamic\\\"\\n        data-testid=\\\"w3m-account-select-network\\\"\\n        active-network=${Re(this.network?.name)}\\n        @click=${this.onNetworks.bind(this)}\\n        imageSrc=${Re(this.networkImage)}\\n      ></wui-select>`:this.showBack&&!c?$`<wui-icon-link\\n        data-testid=\\\"header-back\\\"\\n        id=\\\"dynamic\\\"\\n        icon=\\\"chevronLeft\\\"\\n        @click=${this.onGoBack.bind(this)}\\n      ></wui-icon-link>`:$`<wui-icon-link\\n      data-hidden=${!r}\\n      id=\\\"dynamic\\\"\\n      icon=\\\"helpCircle\\\"\\n      @click=${this.onWalletHelp.bind(this)}\\n    ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(Xe.sendEvent({type:\\\"track\\\",event:\\\"CLICK_NETWORKS\\\"}),de.push(\\\"Networks\\\"))}isAllowedNetworkSwitch(){let e=z.getAllRequestedCaipNetworks(),r=e?e.length>1:!1,n=e?.find(({id:i})=>i===this.network?.id);return r||!n}getPadding(){return this.heading?[\\\"l\\\",\\\"2l\\\",\\\"l\\\",\\\"2l\\\"]:[\\\"0\\\",\\\"2l\\\",\\\"0\\\",\\\"2l\\\"]}onViewChange(){let{history:e}=de.state,r=Bf.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(r=Bf.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=r}async onHistoryChange(){let{history:e}=de.state,r=this.shadowRoot?.querySelector(\\\"#dynamic\\\");e.length>1&&!this.showBack&&r?(await r.animate([{opacity:1},{opacity:0}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}).finished,this.showBack=!0,r.animate([{opacity:0},{opacity:1}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"})):e.length<=1&&this.showBack&&r&&(await r.animate([{opacity:1},{opacity:0}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}).finished,this.showBack=!1,r.animate([{opacity:0},{opacity:1}],{duration:200,fill:\\\"forwards\\\",easing:\\\"ease\\\"}))}onGoBack(){de.goBack()}};Ff.styles=xst;K0([xe()],Ff.prototype,\\\"heading\\\",void 0);K0([xe()],Ff.prototype,\\\"network\\\",void 0);K0([xe()],Ff.prototype,\\\"networkImage\\\",void 0);K0([xe()],Ff.prototype,\\\"showBack\\\",void 0);K0([xe()],Ff.prototype,\\\"prevHistoryLength\\\",void 0);K0([xe()],Ff.prototype,\\\"view\\\",void 0);K0([xe()],Ff.prototype,\\\"viewDirection\\\",void 0);K0([xe()],Ff.prototype,\\\"headerText\\\",void 0);Ff=K0([te(\\\"w3m-header\\\")],Ff)});var Cst,Sst=x(()=>{u();Q();Cst=we`\\n  :host {\\n    display: flex;\\n    column-gap: var(--wui-spacing-s);\\n    align-items: center;\\n    padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);\\n    border-radius: var(--wui-border-radius-s);\\n    border: 1px solid var(--wui-color-gray-glass-005);\\n    box-sizing: border-box;\\n    background-color: var(--wui-color-bg-175);\\n    box-shadow:\\n      0px 14px 64px -4px rgba(0, 0, 0, 0.15),\\n      0px 8px 22px -6px rgba(0, 0, 0, 0.15);\\n\\n    max-width: 300px;\\n  }\\n\\n  :host wui-loading-spinner {\\n    margin-left: var(--wui-spacing-3xs);\\n  }\\n`});var Nx,Z0,Ast=x(()=>{u();Q();Ke();aa();_R();tu();Er();fr();tb();Sst();Nx=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Z0=class extends se{constructor(){super(...arguments),this.backgroundColor=\\\"accent-100\\\",this.iconColor=\\\"accent-100\\\",this.icon=\\\"checkmark\\\",this.message=\\\"\\\",this.loading=!1,this.iconType=\\\"default\\\"}render(){return $`\\n      ${this.templateIcon()}\\n      <wui-text variant=\\\"paragraph-500\\\" color=\\\"fg-100\\\" data-testid=\\\"wui-snackbar-message\\\"\\n        >${this.message}</wui-text\\n      >\\n    `}templateIcon(){return this.loading?$`<wui-loading-spinner size=\\\"md\\\" color=\\\"accent-100\\\"></wui-loading-spinner>`:this.iconType===\\\"default\\\"?$`<wui-icon size=\\\"xl\\\" color=${this.iconColor} name=${this.icon}></wui-icon>`:$`<wui-icon-box\\n      size=\\\"sm\\\"\\n      iconSize=\\\"xs\\\"\\n      iconColor=${this.iconColor}\\n      backgroundColor=${this.backgroundColor}\\n      icon=${this.icon}\\n      background=\\\"opaque\\\"\\n    ></wui-icon-box>`}};Z0.styles=[ze,Cst];Nx([G()],Z0.prototype,\\\"backgroundColor\\\",void 0);Nx([G()],Z0.prototype,\\\"iconColor\\\",void 0);Nx([G()],Z0.prototype,\\\"icon\\\",void 0);Nx([G()],Z0.prototype,\\\"message\\\",void 0);Nx([G()],Z0.prototype,\\\"loading\\\",void 0);Nx([G()],Z0.prototype,\\\"iconType\\\",void 0);Z0=Nx([te(\\\"wui-snackbar\\\")],Z0)});var Tst=x(()=>{u();Ast()});var Ist,Rst=x(()=>{u();Q();Ist=we`\\n  :host {\\n    display: block;\\n    position: absolute;\\n    opacity: 0;\\n    pointer-events: none;\\n    top: 11px;\\n    left: 50%;\\n    width: max-content;\\n  }\\n`});var Pst,pZt,VV,Ost=x(()=>{u();Q();Ke();xt();pr();Tst();Rst();Pst=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},pZt={loading:void 0,success:{backgroundColor:\\\"success-100\\\",iconColor:\\\"success-100\\\",icon:\\\"checkmark\\\"},error:{backgroundColor:\\\"error-100\\\",iconColor:\\\"error-100\\\",icon:\\\"close\\\"}},VV=class extends se{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=wr.state.open,this.unsubscribe.push(wr.subscribeKey(\\\"open\\\",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:r,svg:n}=wr.state,i=pZt[r],{icon:s,iconColor:o}=n??i??{};return $`\\n      <wui-snackbar\\n        message=${e}\\n        backgroundColor=${i?.backgroundColor}\\n        iconColor=${o}\\n        icon=${s}\\n        .loading=${r===\\\"loading\\\"}\\n      ></wui-snackbar>\\n    `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:\\\"translateX(-50%) scale(0.85)\\\"},{opacity:1,transform:\\\"translateX(-50%) scale(1)\\\"}],{duration:150,fill:\\\"forwards\\\",easing:\\\"ease\\\"}),this.timeout&&clearTimeout(this.timeout),wr.state.autoClose&&(this.timeout=setTimeout(()=>wr.hide(),2500))):this.animate([{opacity:1,transform:\\\"translateX(-50%) scale(1)\\\"},{opacity:0,transform:\\\"translateX(-50%) scale(0.85)\\\"}],{duration:150,fill:\\\"forwards\\\",easing:\\\"ease\\\"})}};VV.styles=Ist;Pst([xe()],VV.prototype,\\\"open\\\",void 0);VV=Pst([te(\\\"w3m-snackbar\\\")],VV)});var Nst,kst=x(()=>{u();Q();Nst=we`\\n  :host {\\n    pointer-events: none;\\n  }\\n\\n  :host > wui-flex {\\n    display: var(--w3m-tooltip-display);\\n    opacity: var(--w3m-tooltip-opacity);\\n    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);\\n    border-radius: var(--wui-border-radius-xxs);\\n    color: var(--wui-color-bg-100);\\n    position: fixed;\\n    top: var(--w3m-tooltip-top);\\n    left: var(--w3m-tooltip-left);\\n    transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));\\n    max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));\\n    transition: opacity 0.2s var(--wui-ease-out-power-2);\\n    will-change: opacity;\\n  }\\n\\n  :host([data-variant='shade']) > wui-flex {\\n    background-color: var(--wui-color-bg-150);\\n    border: 1px solid var(--wui-color-gray-glass-005);\\n  }\\n\\n  :host([data-variant='shade']) > wui-flex > wui-text {\\n    color: var(--wui-color-fg-150);\\n  }\\n\\n  :host([data-variant='fill']) > wui-flex {\\n    background-color: var(--wui-color-fg-100);\\n    border: none;\\n  }\\n\\n  wui-icon {\\n    position: absolute;\\n    width: 12px !important;\\n    height: 4px !important;\\n    color: var(--wui-color-bg-150);\\n  }\\n\\n  wui-icon[data-placement='top'] {\\n    bottom: 0px;\\n    left: 50%;\\n    transform: translate(-50%, 95%);\\n  }\\n\\n  wui-icon[data-placement='bottom'] {\\n    top: 0;\\n    left: 50%;\\n    transform: translate(-50%, -95%) rotate(180deg);\\n  }\\n\\n  wui-icon[data-placement='right'] {\\n    top: 50%;\\n    left: 0;\\n    transform: translate(-65%, -50%) rotate(90deg);\\n  }\\n\\n  wui-icon[data-placement='left'] {\\n    top: 50%;\\n    right: 0%;\\n    transform: translate(65%, -50%) rotate(270deg);\\n  }\\n`});var FR,kx,Bst=x(()=>{u();Q();Ke();xt();pr();is();CR();z0();kst();FR=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},kx=class extends se{constructor(){super(),this.unsubscribe=[],this.open=I0.state.open,this.message=I0.state.message,this.triggerRect=I0.state.triggerRect,this.variant=I0.state.variant,this.unsubscribe.push(I0.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,r=this.triggerRect.left;return this.style.cssText=`\\n    --w3m-tooltip-top: ${e}px;\\n    --w3m-tooltip-left: ${r}px;\\n    --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;\\n    --w3m-tooltip-display: ${this.open?\\\"flex\\\":\\\"none\\\"};\\n    --w3m-tooltip-opacity: ${this.open?1:0};\\n    `,$`<wui-flex>\\n      <wui-icon data-placement=\\\"top\\\" color=\\\"fg-100\\\" size=\\\"inherit\\\" name=\\\"cursor\\\"></wui-icon>\\n      <wui-text color=\\\"inherit\\\" variant=\\\"small-500\\\">${this.message}</wui-text>\\n    </wui-flex>`}};kx.styles=[Nst];FR([xe()],kx.prototype,\\\"open\\\",void 0);FR([xe()],kx.prototype,\\\"message\\\",void 0);FR([xe()],kx.prototype,\\\"triggerRect\\\",void 0);FR([xe()],kx.prototype,\\\"variant\\\",void 0);kx=FR([te(\\\"w3m-tooltip\\\"),te(\\\"w3m-tooltip\\\")],kx)});var Mst,Dst=x(()=>{u();Q();Mst=we`\\n  :host {\\n    --prev-height: 0px;\\n    --new-height: 0px;\\n    display: block;\\n  }\\n\\n  div.w3m-router-container {\\n    transform: translateY(0);\\n    opacity: 1;\\n  }\\n\\n  div.w3m-router-container[view-direction='prev'] {\\n    animation:\\n      slide-left-out 150ms forwards ease,\\n      slide-left-in 150ms forwards ease;\\n    animation-delay: 0ms, 200ms;\\n  }\\n\\n  div.w3m-router-container[view-direction='next'] {\\n    animation:\\n      slide-right-out 150ms forwards ease,\\n      slide-right-in 150ms forwards ease;\\n    animation-delay: 0ms, 200ms;\\n  }\\n\\n  @keyframes slide-left-out {\\n    from {\\n      transform: translateX(0px);\\n      opacity: 1;\\n    }\\n    to {\\n      transform: translateX(10px);\\n      opacity: 0;\\n    }\\n  }\\n\\n  @keyframes slide-left-in {\\n    from {\\n      transform: translateX(-10px);\\n      opacity: 0;\\n    }\\n    to {\\n      transform: translateX(0);\\n      opacity: 1;\\n    }\\n  }\\n\\n  @keyframes slide-right-out {\\n    from {\\n      transform: translateX(0px);\\n      opacity: 1;\\n    }\\n    to {\\n      transform: translateX(-10px);\\n      opacity: 0;\\n    }\\n  }\\n\\n  @keyframes slide-right-in {\\n    from {\\n      transform: translateX(10px);\\n      opacity: 0;\\n    }\\n    to {\\n      transform: translateX(0);\\n      opacity: 1;\\n    }\\n  }\\n`});var Dhe,jR,Lst=x(()=>{u();Q();Ke();xt();pr();eR();Dst();Dhe=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jR=class extends se{constructor(){super(),this.resizeObserver=void 0,this.prevHeight=\\\"0px\\\",this.prevHistoryLength=1,this.unsubscribe=[],this.view=de.state.view,this.viewDirection=\\\"\\\",this.unsubscribe.push(de.subscribeKey(\\\"view\\\",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let r=`${e?.contentRect.height}px`;this.prevHeight!==\\\"0px\\\"&&(this.style.setProperty(\\\"--prev-height\\\",this.prevHeight),this.style.setProperty(\\\"--new-height\\\",r),this.style.animation=\\\"w3m-view-height 150ms forwards ease\\\",this.style.height=\\\"auto\\\"),setTimeout(()=>{this.prevHeight=r,this.style.animation=\\\"unset\\\"},Bf.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver?.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return $`<div class=\\\"w3m-router-container\\\" view-direction=\\\"${this.viewDirection}\\\">\\n      ${this.viewTemplate()}\\n    </div>`}viewTemplate(){switch(this.view){case\\\"AccountSettings\\\":return $`<w3m-account-settings-view></w3m-account-settings-view>`;case\\\"Account\\\":return $`<w3m-account-view></w3m-account-view>`;case\\\"AllWallets\\\":return $`<w3m-all-wallets-view></w3m-all-wallets-view>`;case\\\"ApproveTransaction\\\":return $`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case\\\"BuyInProgress\\\":return $`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case\\\"ChooseAccountName\\\":return $`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case\\\"Connect\\\":return $`<w3m-connect-view></w3m-connect-view>`;case\\\"Create\\\":return $`<w3m-connect-view walletGuide=\\\"explore\\\"></w3m-connect-view>`;case\\\"ConnectingWalletConnect\\\":return $`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case\\\"ConnectingWalletConnectBasic\\\":return $`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;case\\\"ConnectingExternal\\\":return $`<w3m-connecting-external-view></w3m-connecting-external-view>`;case\\\"ConnectingSiwe\\\":return $`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case\\\"ConnectWallets\\\":return $`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case\\\"ConnectSocials\\\":return $`<w3m-connect-socials-view></w3m-connect-socials-view>`;case\\\"ConnectingSocial\\\":return $`<w3m-connecting-social-view></w3m-connecting-social-view>`;case\\\"Downloads\\\":return $`<w3m-downloads-view></w3m-downloads-view>`;case\\\"EmailLogin\\\":return $`<w3m-email-login-view></w3m-email-login-view>`;case\\\"EmailVerifyOtp\\\":return $`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case\\\"EmailVerifyDevice\\\":return $`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case\\\"GetWallet\\\":return $`<w3m-get-wallet-view></w3m-get-wallet-view>`;case\\\"Networks\\\":return $`<w3m-networks-view></w3m-networks-view>`;case\\\"SwitchNetwork\\\":return $`<w3m-network-switch-view></w3m-network-switch-view>`;case\\\"Profile\\\":return $`<w3m-profile-view></w3m-profile-view>`;case\\\"SwitchAddress\\\":return $`<w3m-switch-address-view></w3m-switch-address-view>`;case\\\"Transactions\\\":return $`<w3m-transactions-view></w3m-transactions-view>`;case\\\"OnRampProviders\\\":return $`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case\\\"OnRampActivity\\\":return $`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case\\\"OnRampTokenSelect\\\":return $`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case\\\"OnRampFiatSelect\\\":return $`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case\\\"UpgradeEmailWallet\\\":return $`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case\\\"UpdateEmailWallet\\\":return $`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case\\\"UpdateEmailPrimaryOtp\\\":return $`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case\\\"UpdateEmailSecondaryOtp\\\":return $`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case\\\"UnsupportedChain\\\":return $`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case\\\"Swap\\\":return $`<w3m-swap-view></w3m-swap-view>`;case\\\"SwapSelectToken\\\":return $`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case\\\"SwapPreview\\\":return $`<w3m-swap-preview-view></w3m-swap-preview-view>`;case\\\"WalletSend\\\":return $`<w3m-wallet-send-view></w3m-wallet-send-view>`;case\\\"WalletSendSelectToken\\\":return $`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case\\\"WalletSendPreview\\\":return $`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case\\\"WhatIsABuy\\\":return $`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case\\\"WalletReceive\\\":return $`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case\\\"WalletCompatibleNetworks\\\":return $`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case\\\"WhatIsAWallet\\\":return $`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case\\\"ConnectingMultiChain\\\":return $`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case\\\"WhatIsANetwork\\\":return $`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case\\\"ConnectingFarcaster\\\":return $`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case\\\"SwitchActiveChain\\\":return $`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case\\\"RegisterAccountName\\\":return $`<w3m-register-account-name-view></w3m-register-account-name-view>`;case\\\"RegisterAccountNameSuccess\\\":return $`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case\\\"SmartSessionCreated\\\":return $`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case\\\"SmartSessionList\\\":return $`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case\\\"SIWXSignMessage\\\":return $`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;case\\\"Pay\\\":return $`<w3m-pay-view></w3m-pay-view>`;case\\\"PayLoading\\\":return $`<w3m-pay-loading-view></w3m-pay-loading-view>`;default:return $`<w3m-connect-view></w3m-connect-view>`}}onViewChange(e){I0.hide();let r=Bf.VIEW_DIRECTION.Next,{history:n}=de.state;n.length<this.prevHistoryLength&&(r=Bf.VIEW_DIRECTION.Prev),this.prevHistoryLength=n.length,this.viewDirection=r,setTimeout(()=>{this.view=e},Bf.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector(\\\"div\\\")}};jR.styles=Mst;Dhe([xe()],jR.prototype,\\\"view\\\",void 0);Dhe([xe()],jR.prototype,\\\"viewDirection\\\",void 0);jR=Dhe([te(\\\"w3m-router\\\")],jR)});var Ust,Fst=x(()=>{u();Q();Ust=we`\\n  :host {\\n    z-index: var(--w3m-z-index);\\n    display: block;\\n    backface-visibility: hidden;\\n    will-change: opacity;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    pointer-events: none;\\n    opacity: 0;\\n    background-color: var(--wui-cover);\\n    transition: opacity 0.2s var(--wui-ease-out-power-2);\\n    will-change: opacity;\\n  }\\n\\n  :host(.open) {\\n    opacity: 1;\\n  }\\n\\n  :host(.appkit-modal) {\\n    position: relative;\\n    pointer-events: unset;\\n    background: none;\\n    width: 100%;\\n    opacity: 1;\\n  }\\n\\n  wui-card {\\n    max-width: var(--w3m-modal-width);\\n    width: 100%;\\n    position: relative;\\n    animation: zoom-in 0.2s var(--wui-ease-out-power-2);\\n    animation-fill-mode: backwards;\\n    outline: none;\\n    transition:\\n      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),\\n      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);\\n    will-change: border-radius, background-color;\\n  }\\n\\n  :host(.appkit-modal) wui-card {\\n    max-width: 400px;\\n  }\\n\\n  wui-card[shake='true'] {\\n    animation:\\n      zoom-in 0.2s var(--wui-ease-out-power-2),\\n      w3m-shake 0.5s var(--wui-ease-out-power-2);\\n  }\\n\\n  wui-flex {\\n    overflow-x: hidden;\\n    overflow-y: auto;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    width: 100%;\\n    height: 100%;\\n  }\\n\\n  @media (max-height: 700px) and (min-width: 431px) {\\n    wui-flex {\\n      align-items: flex-start;\\n    }\\n\\n    wui-card {\\n      margin: var(--wui-spacing-xxl) 0px;\\n    }\\n  }\\n\\n  @media (max-width: 430px) {\\n    wui-flex {\\n      align-items: flex-end;\\n    }\\n\\n    wui-card {\\n      max-width: 100%;\\n      border-bottom-left-radius: var(--local-border-bottom-mobile-radius);\\n      border-bottom-right-radius: var(--local-border-bottom-mobile-radius);\\n      border-bottom: none;\\n      animation: slide-in 0.2s var(--wui-ease-out-power-2);\\n    }\\n\\n    wui-card[shake='true'] {\\n      animation:\\n        slide-in 0.2s var(--wui-ease-out-power-2),\\n        w3m-shake 0.5s var(--wui-ease-out-power-2);\\n    }\\n  }\\n\\n  @keyframes zoom-in {\\n    0% {\\n      transform: scale(0.95) translateY(0);\\n    }\\n    100% {\\n      transform: scale(1) translateY(0);\\n    }\\n  }\\n\\n  @keyframes slide-in {\\n    0% {\\n      transform: scale(1) translateY(50px);\\n    }\\n    100% {\\n      transform: scale(1) translateY(0);\\n    }\\n  }\\n\\n  @keyframes w3m-shake {\\n    0% {\\n      transform: scale(1) rotate(0deg);\\n    }\\n    20% {\\n      transform: scale(1) rotate(-1deg);\\n    }\\n    40% {\\n      transform: scale(1) rotate(1.5deg);\\n    }\\n    60% {\\n      transform: scale(1) rotate(-1.5deg);\\n    }\\n    80% {\\n      transform: scale(1) rotate(1deg);\\n    }\\n    100% {\\n      transform: scale(1) rotate(0deg);\\n    }\\n  }\\n\\n  @keyframes w3m-view-height {\\n    from {\\n      height: var(--prev-height);\\n    }\\n    to {\\n      height: var(--new-height);\\n    }\\n  }\\n`});var cb,jst,Ad,Lhe,Uhe,Hst=x(()=>{u();Q();Ke();bn();Ri();xt();pr();rst();is();ust();_st();Ost();Bst();Lst();Fst();cb=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect==\\\"object\\\"&&typeof Reflect.decorate==\\\"function\\\")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jst=\\\"scroll-lock\\\",Ad=class extends se{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=ee.state.enableEmbedded,this.open=Dt.state.open,this.caipAddress=z.state.activeCaipAddress,this.caipNetwork=z.state.activeCaipNetwork,this.shake=Dt.state.shake,this.filterByNamespace=ie.state.filterByNamespace,this.initializeTheming(),ye.prefetchAnalyticsConfig(),this.unsubscribe.push(Dt.subscribeKey(\\\"open\\\",e=>e?this.onOpen():this.onClose()),Dt.subscribeKey(\\\"shake\\\",e=>this.shake=e),z.subscribeKey(\\\"activeCaipNetwork\\\",e=>this.onNewNetwork(e)),z.subscribeKey(\\\"activeCaipAddress\\\",e=>this.onNewAddress(e)),ee.subscribeKey(\\\"enableEmbedded\\\",e=>this.enableEmbedded=e),ie.subscribeKey(\\\"filterByNamespace\\\",e=>{this.filterByNamespace!==e&&!z.getAccountData(e)?.caipAddress&&(ye.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded){Dt.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.style.cssText=`\\n      --local-border-bottom-mobile-radius: ${this.enableEmbedded?\\\"clamp(0px, var(--wui-border-radius-l), 44px)\\\":\\\"0px\\\"};\\n    `,this.enableEmbedded?$`${this.contentTemplate()}\\n        <w3m-tooltip></w3m-tooltip> `:this.open?$`\\n          <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid=\\\"w3m-modal-overlay\\\">\\n            ${this.contentTemplate()}\\n          </wui-flex>\\n          <w3m-tooltip></w3m-tooltip>\\n        `:null}contentTemplate(){return $` <wui-card\\n      shake=\\\"${this.shake}\\\"\\n      data-embedded=\\\"${Re(this.enableEmbedded)}\\\"\\n      role=\\\"alertdialog\\\"\\n      aria-modal=\\\"true\\\"\\n      tabindex=\\\"0\\\"\\n      data-testid=\\\"w3m-modal-card\\\"\\n    >\\n      <w3m-header></w3m-header>\\n      <w3m-router></w3m-router>\\n      <w3m-snackbar></w3m-snackbar>\\n      <w3m-alertbar></w3m-alertbar>\\n    </wui-card>`}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){await Y7.safeClose()}initializeTheming(){let{themeVariables:e,themeMode:r}=ji.state,n=Pi.getColorTheme(r);Ape(e,n)}onClose(){this.open=!1,this.classList.remove(\\\"open\\\"),this.onScrollUnlock(),wr.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add(\\\"open\\\"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){let e=document.createElement(\\\"style\\\");e.dataset.w3m=jst,e.textContent=`\\n      body {\\n        touch-action: none;\\n        overflow: hidden;\\n        overscroll-behavior: contain;\\n      }\\n      w3m-modal {\\n        pointer-events: auto;\\n      }\\n    `,document.head.appendChild(e)}onScrollUnlock(){let e=document.head.querySelector(`style[data-w3m=\\\"${jst}\\\"]`);e&&e.remove()}onAddKeyboardListener(){this.abortController=new AbortController;let e=this.shadowRoot?.querySelector(\\\"wui-card\\\");e?.focus(),window.addEventListener(\\\"keydown\\\",r=>{if(r.key===\\\"Escape\\\")this.handleClose();else if(r.key===\\\"Tab\\\"){let{tagName:n}=r.target;n&&!n.includes(\\\"W3M-\\\")&&!n.includes(\\\"WUI-\\\")&&e?.focus()}},this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAddress(e){let r=z.state.isSwitchingNamespace,n=oe.getPlainAddress(e);!n&&!r?Dt.close():r&&n&&de.goBack(),await vd.initializeIfEnabled(),this.caipAddress=e,z.setIsSwitchingNamespace(!1)}onNewNetwork(e){let r=this.caipNetwork,n=r?.caipNetworkId?.toString(),i=r?.chainNamespace,s=e?.caipNetworkId?.toString(),o=e?.chainNamespace,a=n!==s,l=a&&!(i!==o),d=r?.name===_e.UNSUPPORTED_NETWORK_NAME,f=de.state.view===\\\"ConnectingExternal\\\",p=!z.getAccountData(e?.chainNamespace)?.caipAddress,h=de.state.view===\\\"UnsupportedChain\\\",m=Dt.state.open,g=!1;m&&!f&&(p?a&&(g=!0):(h||l&&!d)&&(g=!0)),g&&de.state.view!==\\\"SIWXSignMessage\\\"&&de.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(ye.prefetch(),ye.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}};Ad.styles=Ust;cb([G({type:Boolean})],Ad.prototype,\\\"enableEmbedded\\\",void 0);cb([xe()],Ad.prototype,\\\"open\\\",void 0);cb([xe()],Ad.prototype,\\\"caipAddress\\\",void 0);cb([xe()],Ad.prototype,\\\"caipNetwork\\\",void 0);cb([xe()],Ad.prototype,\\\"shake\\\",void 0);cb([xe()],Ad.prototype,\\\"filterByNamespace\\\",void 0);Lhe=class extends Ad{};Lhe=cb([te(\\\"w3m-modal\\\")],Lhe);Uhe=class extends Ad{};Uhe=cb([te(\\\"appkit-modal\\\")],Uhe)});var qst={};ue(qst,{AppKitModal:()=>Uhe,W3mModal:()=>Lhe,W3mModalBase:()=>Ad});var zst=x(()=>{u();Hst()});var $st,HR,Vst=x(()=>{u();xt();aYe();$st=!1,HR=class extends Z${async open(e){ie.isConnected()||await super.open(e)}async close(){await super.close(),this.options.manualWCControl&&me.finalizeWcConnection()}async syncIdentity(e){return Promise.resolve()}async syncBalance(e){return Promise.resolve()}async injectModalUi(){if(!$st&&oe.isClient()){if(await Promise.resolve().then(()=>(Yit(),Jit)),await Promise.resolve().then(()=>(zst(),qst)),!document.querySelector(\\\"w3m-modal\\\")){let r=document.createElement(\\\"w3m-modal\\\");!ee.state.disableAppend&&!ee.state.enableEmbedded&&document.body.insertAdjacentElement(\\\"beforeend\\\",r)}$st=!0}}}});var Wst,Gst=x(()=>{u();Wst=\\\"1.7.8\\\"});var Kst={};ue(Kst,{AppKit:()=>HR,createAppKit:()=>hZt});function hZt(t){return new HR({...t,basic:!0,sdkVersion:`html-core-${Wst}`})}var Zst=x(()=>{u();Vst();Gst()});var not=q(lb=>{\\\"use strict\\\";u();Object.defineProperty(lb,\\\"__esModule\\\",{value:!0});var mZt=ho(),A8=(Y9(),mt(dce)),gZt=eGe();function yZt(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!==\\\"default\\\"){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var bZt=\\\"wc\\\",wZt=\\\"ethereum_provider\\\",vZt=`${bZt}@2:${wZt}:`,xZt=\\\"https://rpc.walletconnect.org/v1/\\\",GV=[\\\"eth_sendTransaction\\\",\\\"personal_sign\\\"],Xst=[\\\"eth_accounts\\\",\\\"eth_requestAccounts\\\",\\\"eth_sendRawTransaction\\\",\\\"eth_sign\\\",\\\"eth_signTransaction\\\",\\\"eth_signTypedData\\\",\\\"eth_signTypedData_v3\\\",\\\"eth_signTypedData_v4\\\",\\\"eth_sendTransaction\\\",\\\"personal_sign\\\",\\\"wallet_switchEthereumChain\\\",\\\"wallet_addEthereumChain\\\",\\\"wallet_getPermissions\\\",\\\"wallet_requestPermissions\\\",\\\"wallet_registerOnboarding\\\",\\\"wallet_watchAsset\\\",\\\"wallet_scanQRCode\\\",\\\"wallet_sendCalls\\\",\\\"wallet_getCapabilities\\\",\\\"wallet_getCallsStatus\\\",\\\"wallet_showCallsStatus\\\"],KV=[\\\"chainChanged\\\",\\\"accountsChanged\\\"],eot=[\\\"chainChanged\\\",\\\"accountsChanged\\\",\\\"message\\\",\\\"disconnect\\\",\\\"connect\\\"],EZt=async()=>{let{createAppKit:t}=await Promise.resolve().then(function(){return yZt((Zst(),mt(Kst)))});return t},_Zt=Object.defineProperty,CZt=Object.defineProperties,SZt=Object.getOwnPropertyDescriptors,Qst=Object.getOwnPropertySymbols,AZt=Object.prototype.hasOwnProperty,TZt=Object.prototype.propertyIsEnumerable,Fhe=(t,e,r)=>e in t?_Zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bx=(t,e)=>{for(var r in e||(e={}))AZt.call(e,r)&&Fhe(t,r,e[r]);if(Qst)for(var r of Qst(e))TZt.call(e,r)&&Fhe(t,r,e[r]);return t},qR=(t,e)=>CZt(t,SZt(e)),nu=(t,e,r)=>Fhe(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r);function ZV(t){return Number(t[0].split(\\\":\\\")[1])}function WV(t){return`0x${t.toString(16)}`}function IZt(t){let{chains:e,optionalChains:r,methods:n,optionalMethods:i,events:s,optionalEvents:o,rpcMap:a}=t;if(!A8.isValidArray(e))throw new Error(\\\"Invalid chains\\\");let c={chains:e,methods:n||GV,events:s||KV,rpcMap:Bx({},e.length?{[ZV(e)]:a[ZV(e)]}:{})},l=s?.filter(h=>!KV.includes(h)),d=n?.filter(h=>!GV.includes(h));if(!r&&!o&&!i&&!(l!=null&&l.length)&&!(d!=null&&d.length))return{required:e.length?c:void 0};let f=l?.length&&d?.length||!r,p={chains:[...new Set(f?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(i!=null&&i.length?i:Xst))],events:[...new Set(c.events.concat(o!=null&&o.length?o:eot))],rpcMap:a};return{required:e.length?c:void 0,optional:r.length?p:void 0}}var QV=class t{constructor(){nu(this,\\\"events\\\",new mZt.EventEmitter),nu(this,\\\"namespace\\\",\\\"eip155\\\"),nu(this,\\\"accounts\\\",[]),nu(this,\\\"signer\\\"),nu(this,\\\"chainId\\\",1),nu(this,\\\"modal\\\"),nu(this,\\\"rpc\\\"),nu(this,\\\"STORAGE_KEY\\\",vZt),nu(this,\\\"on\\\",(e,r)=>(this.events.on(e,r),this)),nu(this,\\\"once\\\",(e,r)=>(this.events.once(e,r),this)),nu(this,\\\"removeListener\\\",(e,r)=>(this.events.removeListener(e,r),this)),nu(this,\\\"off\\\",(e,r)=>(this.events.off(e,r),this)),nu(this,\\\"parseAccount\\\",e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e),this.signer={},this.rpc={}}static async init(e){let r=new t;return await r.initialize(e),r}async request(e,r){return await this.signer.request(e,this.formatChainId(this.chainId),r)}sendAsync(e,r,n){this.signer.sendAsync(e,r,this.formatChainId(this.chainId),n)}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:\\\"eth_requestAccounts\\\"})}async connect(e){var r;if(!this.signer.client)throw new Error(\\\"Provider not initialized. Call init() first\\\");this.loadConnectOpts(e);let{required:n,optional:i}=IZt(this.rpc);try{let s=await new Promise(async(a,c)=>{var l,d;this.rpc.showQrModal&&((l=this.modal)==null||l.open(),(d=this.modal)==null||d.subscribeState(p=>{!p.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),c(new Error(\\\"Connection request reset. Please try again.\\\")))}));let f=e!=null&&e.scopedProperties?{[this.namespace]:e.scopedProperties}:void 0;await this.signer.connect(qR(Bx({namespaces:Bx({},n&&{[this.namespace]:n})},i&&{optionalNamespaces:{[this.namespace]:i}}),{pairingTopic:e?.pairingTopic,scopedProperties:f})).then(p=>{a(p)}).catch(p=>{var h;(h=this.modal)==null||h.showErrorMessage(\\\"Unable to connect\\\"),c(new Error(p.message))})});if(!s)return;let o=A8.getAccountsFromNamespaces(s.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:o),this.setAccounts(o),this.events.emit(\\\"connect\\\",{chainId:WV(this.chainId)})}catch(s){throw this.signer.logger.error(s),s}finally{(r=this.modal)==null||r.close()}}async authenticate(e,r){var n;if(!this.signer.client)throw new Error(\\\"Provider not initialized. Call init() first\\\");this.loadConnectOpts({chains:e?.chains});try{let i=await new Promise(async(o,a)=>{var c,l;this.rpc.showQrModal&&((c=this.modal)==null||c.open(),(l=this.modal)==null||l.subscribeState(d=>{!d.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),a(new Error(\\\"Connection request reset. Please try again.\\\")))})),await this.signer.authenticate(qR(Bx({},e),{chains:this.rpc.chains}),r).then(d=>{o(d)}).catch(d=>{var f;(f=this.modal)==null||f.showErrorMessage(\\\"Unable to connect\\\"),a(new Error(d.message))})}),s=i.session;if(s){let o=A8.getAccountsFromNamespaces(s.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:o),this.setAccounts(o),this.events.emit(\\\"connect\\\",{chainId:WV(this.chainId)})}return i}catch(i){throw this.signer.logger.error(i),i}finally{(n=this.modal)==null||n.close()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on(\\\"session_event\\\",e=>{let{params:r}=e,{event:n}=r;n.name===\\\"accountsChanged\\\"?(this.accounts=this.parseAccounts(n.data),this.events.emit(\\\"accountsChanged\\\",this.accounts)):n.name===\\\"chainChanged\\\"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit(\\\"session_event\\\",e)}),this.signer.on(\\\"accountsChanged\\\",e=>{this.accounts=this.parseAccounts(e),this.events.emit(\\\"accountsChanged\\\",this.accounts)}),this.signer.on(\\\"chainChanged\\\",e=>{let r=parseInt(e);this.chainId=r,this.events.emit(\\\"chainChanged\\\",WV(this.chainId)),this.persist()}),this.signer.on(\\\"session_update\\\",e=>{this.events.emit(\\\"session_update\\\",e)}),this.signer.on(\\\"session_delete\\\",e=>{this.reset(),this.events.emit(\\\"session_delete\\\",e),this.events.emit(\\\"disconnect\\\",qR(Bx({},A8.getSdkError(\\\"USER_DISCONNECTED\\\")),{data:e.topic,name:\\\"USER_DISCONNECTED\\\"}))}),this.signer.on(\\\"display_uri\\\",e=>{this.events.emit(\\\"display_uri\\\",e)})}switchEthereumChain(e){this.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e==\\\"string\\\"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(\\\":\\\")[1])}setChainIds(e){let r=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit(\\\"chainChanged\\\",WV(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let r=this.parseChainId(e);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(e){let[r,n,i]=e.split(\\\":\\\");return{chainId:`${r}:${n}`,address:i}}setAccounts(e){this.accounts=e.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit(\\\"accountsChanged\\\",this.accounts)}getRpcConfig(e){var r,n;let i=(r=e?.chains)!=null?r:[],s=(n=e?.optionalChains)!=null?n:[],o=i.concat(s);if(!o.length)throw new Error(\\\"No chains specified in either `chains` or `optionalChains`\\\");let a=i.length?e?.methods||GV:[],c=i.length?e?.events||KV:[],l=e?.optionalMethods||[],d=e?.optionalEvents||[],f=e?.rpcMap||this.buildRpcMap(o,e.projectId),p=e?.qrModalOptions||void 0;return{chains:i?.map(h=>this.formatChainId(h)),optionalChains:s.map(h=>this.formatChainId(h)),methods:a,events:c,optionalMethods:l,optionalEvents:d,rpcMap:f,showQrModal:!!(e!=null&&e.showQrModal),qrModalOptions:p,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,r){let n={};return e.forEach(i=>{n[i]=this.getRpcUrl(i,r)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?ZV(this.rpc.chains):ZV(this.rpc.optionalChains),this.signer=await gZt.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storage:e.storage,storageOptions:e.storageOptions,customStoragePrefix:e.customStoragePrefix,telemetryEnabled:e.telemetryEnabled,logger:e.logger}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{let n=await EZt(),{convertWCMToAppKitOptions:i}=await Promise.resolve().then(function(){return FZt}),s=i(qR(Bx({},this.rpc.qrModalOptions),{chains:[...new Set([...this.rpc.chains,...this.rpc.optionalChains])],metadata:this.rpc.metadata,projectId:this.rpc.projectId}));if(!s.networks.length)throw new Error(\\\"No networks found for WalletConnect\\\\xB7\\\");r=n(qR(Bx({},s),{universalProvider:this.signer,manualWCControl:!0}))}catch(n){throw console.warn(n),new Error(\\\"To use QR modal, please install @reown/appkit package\\\")}if(r)try{this.modal=r}catch(n){throw this.signer.logger.error(n),new Error(\\\"Could not generate WalletConnectModal Instance\\\")}}}loadConnectOpts(e){if(!e)return;let{chains:r,optionalChains:n,rpcMap:i}=e;r&&A8.isValidArray(r)&&(this.rpc.chains=r.map(s=>this.formatChainId(s)),r.forEach(s=>{this.rpc.rpcMap[s]=i?.[s]||this.getRpcUrl(s)})),n&&A8.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(s=>this.formatChainId(s)),n.forEach(s=>{this.rpc.rpcMap[s]=i?.[s]||this.getRpcUrl(s)}))}getRpcUrl(e,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${xZt}?chainId=eip155:${e}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:r?.accounts),this.setAccounts(r?.accounts)}catch(e){this.signer.logger.error(\\\"Failed to load persisted session, clearing state...\\\"),this.signer.logger.error(e),await this.disconnect().catch(r=>this.signer.logger.warn(r))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e==\\\"string\\\"||e instanceof String?[this.parseAccount(e)]:e.map(r=>this.parseAccount(r))}},RZt=QV,PZt=Object.defineProperty,OZt=Object.defineProperties,NZt=Object.getOwnPropertyDescriptors,Jst=Object.getOwnPropertySymbols,kZt=Object.prototype.hasOwnProperty,BZt=Object.prototype.propertyIsEnumerable,Yst=(t,e,r)=>e in t?PZt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tot=(t,e)=>{for(var r in e||(e={}))kZt.call(e,r)&&Yst(t,r,e[r]);if(Jst)for(var r of Jst(e))BZt.call(e,r)&&Yst(t,r,e[r]);return t},MZt=(t,e)=>OZt(t,NZt(e));function DZt(t){if(t)return{\\\"--w3m-font-family\\\":t[\\\"--wcm-font-family\\\"],\\\"--w3m-accent\\\":t[\\\"--wcm-accent-color\\\"],\\\"--w3m-color-mix\\\":t[\\\"--wcm-background-color\\\"],\\\"--w3m-z-index\\\":t[\\\"--wcm-z-index\\\"]?Number(t[\\\"--wcm-z-index\\\"]):void 0,\\\"--w3m-qr-color\\\":t[\\\"--wcm-accent-color\\\"],\\\"--w3m-font-size-master\\\":t[\\\"--wcm-text-medium-regular-size\\\"],\\\"--w3m-border-radius-master\\\":t[\\\"--wcm-container-border-radius\\\"],\\\"--w3m-color-mix-strength\\\":0}}var LZt=t=>{let[e,r]=t.split(\\\":\\\");return rot({id:r,caipNetworkId:t,chainNamespace:e,name:\\\"\\\",nativeCurrency:{name:\\\"\\\",symbol:\\\"\\\",decimals:8},rpcUrls:{default:{http:[\\\"https://rpc.walletconnect.org/v1\\\"]}}})};function UZt(t){var e,r,n,i,s,o,a;let c=(e=t.chains)==null?void 0:e.map(LZt).filter(Boolean);if(c.length===0)throw new Error(\\\"At least one chain must be specified\\\");let l=c.find(f=>{var p;return f.id===((p=t.defaultChain)==null?void 0:p.id)}),d={projectId:t.projectId,networks:c,themeMode:t.themeMode,themeVariables:DZt(t.themeVariables),chainImages:t.chainImages,connectorImages:t.walletImages,defaultNetwork:l,metadata:MZt(tot({},t.metadata),{name:((r=t.metadata)==null?void 0:r.name)||\\\"WalletConnect\\\",description:((n=t.metadata)==null?void 0:n.description)||\\\"Connect to WalletConnect-compatible wallets\\\",url:((i=t.metadata)==null?void 0:i.url)||\\\"https://walletconnect.org\\\",icons:((s=t.metadata)==null?void 0:s.icons)||[\\\"https://walletconnect.org/walletconnect-logo.png\\\"]}),showWallets:!0,featuredWalletIds:t.explorerRecommendedWalletIds===\\\"NONE\\\"?[]:Array.isArray(t.explorerRecommendedWalletIds)?t.explorerRecommendedWalletIds:[],excludeWalletIds:t.explorerExcludedWalletIds===\\\"ALL\\\"?[]:Array.isArray(t.explorerExcludedWalletIds)?t.explorerExcludedWalletIds:[],enableEIP6963:!1,enableInjected:!1,enableCoinbase:!0,enableWalletConnect:!0,features:{email:!1,socials:!1}};if((o=t.mobileWallets)!=null&&o.length||(a=t.desktopWallets)!=null&&a.length){let f=[...(t.mobileWallets||[]).map(m=>({id:m.id,name:m.name,links:m.links})),...(t.desktopWallets||[]).map(m=>({id:m.id,name:m.name,links:{native:m.links.native,universal:m.links.universal}}))],p=[...d.featuredWalletIds||[],...d.excludeWalletIds||[]],h=f.filter(m=>!p.includes(m.id));h.length&&(d.customWallets=h)}return d}function rot(t){return tot({formatters:void 0,fees:void 0,serializers:void 0},t)}var FZt=Object.freeze({__proto__:null,convertWCMToAppKitOptions:UZt,defineChain:rot});lb.EthereumProvider=RZt,lb.OPTIONAL_EVENTS=eot,lb.OPTIONAL_METHODS=Xst,lb.REQUIRED_EVENTS=KV,lb.REQUIRED_METHODS=GV,lb.default=QV});u();var oot=Me(X1e(),1);u();var _s=Me(Vi(),1);un();u();u();var eT=Me(Vi(),1);u();u();u();u();u();u();u();var g6=\\\"2.22.1\\\";var s6e=()=>`@wagmi/core@${g6}`;var o6e=function(t,e,r,n){if(r===\\\"a\\\"&&!n)throw new TypeError(\\\"Private accessor was defined without a getter\\\");if(typeof e==\\\"function\\\"?t!==e||!n:!e.has(t))throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");return r===\\\"m\\\"?n:r===\\\"a\\\"?n.call(t):n?n.value:e.get(t)},YB,a6e,$a=class t extends Error{get docsBaseUrl(){return\\\"https://wagmi.sh/core\\\"}get version(){return s6e()}constructor(e,r={}){super(),YB.add(this),Object.defineProperty(this,\\\"details\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"docsPath\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"metaMessages\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"shortMessage\\\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"WagmiCoreError\\\"});let n=r.cause instanceof t?r.cause.details:r.cause?.message?r.cause.message:r.details,i=r.cause instanceof t&&r.cause.docsPath||r.docsPath;this.message=[e||\\\"An error occurred.\\\",\\\"\\\",...r.metaMessages?[...r.metaMessages,\\\"\\\"]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${r.docsSlug?`#${r.docsSlug}`:\\\"\\\"}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`\\n`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=i,this.metaMessages=r.metaMessages,this.shortMessage=e}walk(e){return o6e(this,YB,\\\"m\\\",a6e).call(this,this,e)}};YB=new WeakSet,a6e=function t(e,r){return r?.(e)?e:e.cause?o6e(this,YB,\\\"m\\\",t).call(this,e.cause,r):e};var ga=class extends $a{constructor(){super(\\\"Chain not configured.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ChainNotConfiguredError\\\"})}},y6=class extends $a{constructor(){super(\\\"Connector already connected.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ConnectorAlreadyConnectedError\\\"})}},JA=class extends $a{constructor(){super(\\\"Connector not connected.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ConnectorNotConnectedError\\\"})}};var b6=class extends $a{constructor({address:e,connector:r}){super(`Account \\\"${e}\\\" not found for connector \\\"${r.name}\\\".`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ConnectorAccountNotFoundError\\\"})}},w6=class extends $a{constructor({connectionChainId:e,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ConnectorChainMismatchError\\\"})}},v6=class extends $a{constructor({connector:e}){super(`Connector \\\"${e.name}\\\" unavailable while reconnecting.`,{details:[\\\"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.\\\",\\\"All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.\\\",\\\"This error commonly occurs for connectors that asynchronously inject after reconnection has already started.\\\"].join(\\\" \\\")}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ConnectorUnavailableReconnectingError\\\"})}};async function c6e(t,e){let r;if(typeof e.connector==\\\"function\\\"?r=t._internal.connectors.setup(e.connector):r=e.connector,r.uid===t.state.current)throw new y6;try{t.setState(o=>({...o,status:\\\"connecting\\\"})),r.emitter.emit(\\\"message\\\",{type:\\\"connecting\\\"});let{connector:n,...i}=e,s=await r.connect(i);return r.emitter.off(\\\"connect\\\",t._internal.events.connect),r.emitter.on(\\\"change\\\",t._internal.events.change),r.emitter.on(\\\"disconnect\\\",t._internal.events.disconnect),await t.storage?.setItem(\\\"recentConnectorId\\\",r.id),t.setState(o=>({...o,connections:new Map(o.connections).set(r.uid,{accounts:i.withCapabilities?s.accounts.map(a=>typeof a==\\\"object\\\"?a.address:a):s.accounts,chainId:s.chainId,connector:r}),current:r.uid,status:\\\"connected\\\"})),{accounts:i.withCapabilities?s.accounts.map(o=>typeof o==\\\"object\\\"?o:{address:o,capabilities:{}}):s.accounts,chainId:s.chainId}}catch(n){throw t.setState(i=>({...i,status:i.current?\\\"connected\\\":\\\"disconnected\\\"})),n}}u();un();Dw();async function l6e(t,e={}){let{assertChainId:r=!0}=e,n;if(e.connector){let{connector:d}=e;if(t.state.status===\\\"reconnecting\\\"&&!d.getAccounts&&!d.getChainId)throw new v6({connector:d});let[f,p]=await Promise.all([d.getAccounts().catch(h=>{if(e.account===null)return[];throw h}),d.getChainId()]);n={accounts:f,chainId:p,connector:d}}else n=t.state.connections.get(t.state.current);if(!n)throw new JA;let i=e.chainId??n.chainId,s=await n.connector.getChainId();if(r&&s!==i)throw new w6({connectionChainId:i,connectorChainId:s});let o=n.connector;if(o.getClient)return o.getClient({chainId:i});let a=Ze(e.account??n.accounts[0]);if(a&&(a.address=_r(a.address)),e.account&&!n.accounts.some(d=>d.toLowerCase()===a.address.toLowerCase()))throw new b6({address:a.address,connector:o});let c=t.chains.find(d=>d.id===i),l=await n.connector.getProvider({chainId:i});return Im({account:a,chain:c,name:\\\"Connector Client\\\",transport:d=>QA(l)({...d,retryCount:0})})}u();async function u6e(t,e={}){let r;if(e.connector)r=e.connector;else{let{connections:i,current:s}=t.state;r=i.get(s)?.connector}let n=t.state.connections;r&&(await r.disconnect(),r.emitter.off(\\\"change\\\",t._internal.events.change),r.emitter.off(\\\"disconnect\\\",t._internal.events.disconnect),r.emitter.on(\\\"connect\\\",t._internal.events.connect),n.delete(r.uid)),t.setState(i=>{if(n.size===0)return{...i,connections:new Map,current:null,status:\\\"disconnected\\\"};let s=n.values().next().value;return{...i,connections:new Map(n),current:s.connector.uid}});{let i=t.state.current;if(!i)return;let s=t.state.connections.get(i)?.connector;if(!s)return;await t.storage?.setItem(\\\"recentConnectorId\\\",s.id)}}u();function YA(t){let e=t.state.current,r=t.state.connections.get(e),n=r?.accounts,i=n?.[0],s=t.chains.find(a=>a.id===r?.chainId),o=t.state.status;switch(o){case\\\"connected\\\":return{address:i,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:o};case\\\"reconnecting\\\":return{address:i,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:o};case\\\"connecting\\\":return{address:i,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:o};case\\\"disconnected\\\":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:o}}}u();function XB(t){return t.state.chainId}u();u();function Pc(t,e){if(t===e)return!0;if(t&&e&&typeof t==\\\"object\\\"&&typeof e==\\\"object\\\"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)&&Array.isArray(e)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Pc(t[n],e[n]))return!1;return!0}if(typeof t.valueOf==\\\"function\\\"&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(typeof t.toString==\\\"function\\\"&&t.toString!==Object.prototype.toString)return t.toString()===e.toString();let i=Object.keys(t);if(r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.hasOwn(e,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(s&&!Pc(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}var KJ=[];function eM(t){let e=t.chains;return Pc(KJ,e)?KJ:(KJ=e,e)}u();var tM=[];function x6(t){let e=[...t.state.connections.values()];return t.state.status===\\\"reconnecting\\\"||Pc(tM,e)?tM:(tM=e,e)}u();var rM=[];function nM(t){let e=t.connectors;return rM.length===e.length&&rM.every((r,n)=>r===e[n])?rM:(rM=e,e)}u();un();async function d6e(t,e={}){return(await l6e(t,e)).extend(WJ)}u();var ZJ=!1;async function f6e(t,e={}){if(ZJ)return[];ZJ=!0,t.setState(l=>({...l,status:l.current?\\\"reconnecting\\\":\\\"connecting\\\"}));let r=[];if(e.connectors?.length)for(let l of e.connectors){let d;typeof l==\\\"function\\\"?d=t._internal.connectors.setup(l):d=l,r.push(d)}else r.push(...t.connectors);let n;try{n=await t.storage?.getItem(\\\"recentConnectorId\\\")}catch{}let i={};for(let[,l]of t.state.connections)i[l.connector.id]=1;n&&(i[n]=0);let s=Object.keys(i).length>0?[...r].sort((l,d)=>(i[l.id]??10)-(i[d.id]??10)):r,o=!1,a=[],c=[];for(let l of s){let d=await l.getProvider().catch(()=>{});if(!d||c.some(h=>h===d)||!await l.isAuthorized())continue;let p=await l.connect({isReconnecting:!0}).catch(()=>null);p&&(l.emitter.off(\\\"connect\\\",t._internal.events.connect),l.emitter.on(\\\"change\\\",t._internal.events.change),l.emitter.on(\\\"disconnect\\\",t._internal.events.disconnect),t.setState(h=>{let m=new Map(o?h.connections:new Map).set(l.uid,{accounts:p.accounts,chainId:p.chainId,connector:l});return{...h,current:o?h.current:l.uid,connections:m}}),a.push({accounts:p.accounts,chainId:p.chainId,connector:l}),c.push(d),o=!0)}return(t.state.status===\\\"reconnecting\\\"||t.state.status===\\\"connecting\\\")&&(o?t.setState(l=>({...l,status:\\\"connected\\\"})):t.setState(l=>({...l,connections:new Map,current:null,status:\\\"disconnected\\\"}))),ZJ=!1,a}u();u();var Oc=class extends $a{constructor(){super(\\\"Provider not found.\\\"),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"ProviderNotFoundError\\\"})}},E6=class extends $a{constructor({connector:e}){super(`\\\"${e.name}\\\" does not support programmatic chain switching.`),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"SwitchChainNotSupportedError\\\"})}};async function p6e(t,e){let{addEthereumChainParameter:r,chainId:n}=e,i=t.state.connections.get(e.connector?.uid??t.state.current);if(i){let o=i.connector;if(!o.switchChain)throw new E6({connector:o});return await o.switchChain({addEthereumChainParameter:r,chainId:n})}let s=t.chains.find(o=>o.id===n);if(!s)throw new ga;return t.setState(o=>({...o,chainId:n})),s}u();function QJ(t,e){let{onChange:r}=e;return t.subscribe(()=>YA(t),r,{equalityFn(n,i){let{connector:s,...o}=n,{connector:a,...c}=i;return Pc(o,c)&&s?.id===a?.id&&s?.uid===a?.uid}})}u();function JJ(t,e){let{onChange:r}=e;return t.subscribe(n=>n.chainId,r)}u();function YJ(t,e){let{onChange:r}=e;return t.subscribe(()=>x6(t),r,{equalityFn:Pc})}u();function XJ(t,e){let{onChange:r}=e;return t._internal.connectors.subscribe((n,i)=>{r(Object.values(n),i)})}u();un();Om.type=\\\"injected\\\";function Om(t={}){let{shimDisconnect:e=!0,unstable_shimAsyncInject:r}=t;function n(){let c=t.target;if(typeof c==\\\"function\\\"){let l=c();if(l)return l}return typeof c==\\\"object\\\"?c:typeof c==\\\"string\\\"?{...fpt[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:\\\"injected\\\",name:\\\"Injected\\\",provider(l){return l?.ethereum}}}let i,s,o,a;return c=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},get supportsSimulation(){return!0},type:Om.type,async setup(){let l=await this.getProvider();l?.on&&t.target&&(o||(o=this.onConnect.bind(this),l.on(\\\"connect\\\",o)),i||(i=this.onAccountsChanged.bind(this),l.on(\\\"accountsChanged\\\",i)))},async connect({chainId:l,isReconnecting:d,withCapabilities:f}={}){let p=await this.getProvider();if(!p)throw new Oc;let h=[];if(d)h=await this.getAccounts().catch(()=>[]);else if(e)try{h=(await p.request({method:\\\"wallet_requestPermissions\\\",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(g=>_r(g)),h.length>0&&(h=await this.getAccounts())}catch(m){let g=m;if(g.code===Cr.code)throw new Cr(g);if(g.code===Ld.code)throw g}try{!h?.length&&!d&&(h=(await p.request({method:\\\"eth_requestAccounts\\\"})).map(w=>_r(w))),o&&(p.removeListener(\\\"connect\\\",o),o=void 0),i||(i=this.onAccountsChanged.bind(this),p.on(\\\"accountsChanged\\\",i)),s||(s=this.onChainChanged.bind(this),p.on(\\\"chainChanged\\\",s)),a||(a=this.onDisconnect.bind(this),p.on(\\\"disconnect\\\",a));let m=await this.getChainId();return l&&m!==l&&(m=(await this.switchChain({chainId:l}).catch(w=>{if(w.code===Cr.code)throw w;return{id:m}}))?.id??m),e&&await c.storage?.removeItem(`${this.id}.disconnected`),t.target||await c.storage?.setItem(\\\"injected.connected\\\",!0),{accounts:f?h.map(g=>({address:g,capabilities:{}})):h,chainId:m}}catch(m){let g=m;throw g.code===Cr.code?new Cr(g):g.code===Ld.code?new Ld(g):g}},async disconnect(){let l=await this.getProvider();if(!l)throw new Oc;s&&(l.removeListener(\\\"chainChanged\\\",s),s=void 0),a&&(l.removeListener(\\\"disconnect\\\",a),a=void 0),o||(o=this.onConnect.bind(this),l.on(\\\"connect\\\",o));try{await DA(()=>l.request({method:\\\"wallet_revokePermissions\\\",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}e&&await c.storage?.setItem(`${this.id}.disconnected`,!0),t.target||await c.storage?.removeItem(\\\"injected.connected\\\")},async getAccounts(){let l=await this.getProvider();if(!l)throw new Oc;return(await l.request({method:\\\"eth_accounts\\\"})).map(f=>_r(f))},async getChainId(){let l=await this.getProvider();if(!l)throw new Oc;let d=await l.request({method:\\\"eth_chainId\\\"});return Number(d)},async getProvider(){if(typeof window>\\\"u\\\")return;let l,d=n();return typeof d.provider==\\\"function\\\"?l=d.provider(window):typeof d.provider==\\\"string\\\"?l=iM(window,d.provider):l=d.provider,l&&!l.removeListener&&(\\\"off\\\"in l&&typeof l.off==\\\"function\\\"?l.removeListener=l.off:l.removeListener=()=>{}),l},async isAuthorized(){try{if(e&&await c.storage?.getItem(`${this.id}.disconnected`)||!t.target&&!await c.storage?.getItem(\\\"injected.connected\\\"))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){let p=async()=>(typeof window<\\\"u\\\"&&window.removeEventListener(\\\"ethereum#initialized\\\",p),!!await this.getProvider()),h=typeof r==\\\"number\\\"?r:1e3;if(await Promise.race([...typeof window<\\\"u\\\"?[new Promise(g=>window.addEventListener(\\\"ethereum#initialized\\\",()=>g(p()),{once:!0}))]:[],new Promise(g=>setTimeout(()=>g(p()),h))]))return!0}throw new Oc}return!!(await hp(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:d}){let f=await this.getProvider();if(!f)throw new Oc;let p=c.chains.find(m=>m.id===d);if(!p)throw new Do(new ga);let h=new Promise(m=>{let g=(w=>{\\\"chainId\\\"in w&&w.chainId===d&&(c.emitter.off(\\\"change\\\",g),m())});c.emitter.on(\\\"change\\\",g)});try{return await Promise.all([f.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:Z(d)}]}).then(async()=>{await this.getChainId()===d&&c.emitter.emit(\\\"change\\\",{chainId:d})}),h]),p}catch(m){let g=m;if(g.code===4902||g?.data?.originalError?.code===4902)try{let{default:w,...v}=p.blockExplorers??{},b;l?.blockExplorerUrls?b=l.blockExplorerUrls:w&&(b=[w.url,...Object.values(v).map(T=>T.url)]);let _;l?.rpcUrls?.length?_=l.rpcUrls:_=[p.rpcUrls.default?.http[0]??\\\"\\\"];let S={blockExplorerUrls:b,chainId:Z(d),chainName:l?.chainName??p.name,iconUrls:l?.iconUrls,nativeCurrency:l?.nativeCurrency??p.nativeCurrency,rpcUrls:_};return await Promise.all([f.request({method:\\\"wallet_addEthereumChain\\\",params:[S]}).then(async()=>{if(await this.getChainId()===d)c.emitter.emit(\\\"change\\\",{chainId:d});else throw new Cr(new Error(\\\"User rejected switch after adding network.\\\"))}),h]),p}catch(w){throw new Cr(w)}throw g.code===Cr.code?new Cr(g):new Do(g)}},async onAccountsChanged(l){if(l.length===0)this.onDisconnect();else if(c.emitter.listenerCount(\\\"connect\\\")){let d=(await this.getChainId()).toString();this.onConnect({chainId:d}),e&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit(\\\"change\\\",{accounts:l.map(d=>_r(d))})},onChainChanged(l){let d=Number(l);c.emitter.emit(\\\"change\\\",{chainId:d})},async onConnect(l){let d=await this.getAccounts();if(d.length===0)return;let f=Number(l.chainId);c.emitter.emit(\\\"connect\\\",{accounts:d,chainId:f});let p=await this.getProvider();p&&(o&&(p.removeListener(\\\"connect\\\",o),o=void 0),i||(i=this.onAccountsChanged.bind(this),p.on(\\\"accountsChanged\\\",i)),s||(s=this.onChainChanged.bind(this),p.on(\\\"chainChanged\\\",s)),a||(a=this.onDisconnect.bind(this),p.on(\\\"disconnect\\\",a)))},async onDisconnect(l){let d=await this.getProvider();l&&l.code===1013&&d&&(await this.getAccounts()).length||(c.emitter.emit(\\\"disconnect\\\"),d&&(s&&(d.removeListener(\\\"chainChanged\\\",s),s=void 0),a&&(d.removeListener(\\\"disconnect\\\",a),a=void 0),o||(o=this.onConnect.bind(this),d.on(\\\"connect\\\",o))))}})}var fpt={coinbaseWallet:{id:\\\"coinbaseWallet\\\",name:\\\"Coinbase Wallet\\\",provider(t){return t?.coinbaseWalletExtension?t.coinbaseWalletExtension:iM(t,\\\"isCoinbaseWallet\\\")}},metaMask:{id:\\\"metaMask\\\",name:\\\"MetaMask\\\",provider(t){return iM(t,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;let r=[\\\"isApexWallet\\\",\\\"isAvalanche\\\",\\\"isBitKeep\\\",\\\"isBlockWallet\\\",\\\"isKuCoinWallet\\\",\\\"isMathWallet\\\",\\\"isOkxWallet\\\",\\\"isOKExWallet\\\",\\\"isOneInchIOSWallet\\\",\\\"isOneInchAndroidWallet\\\",\\\"isOpera\\\",\\\"isPhantom\\\",\\\"isPortal\\\",\\\"isRabby\\\",\\\"isTokenPocket\\\",\\\"isTokenary\\\",\\\"isUniswapWallet\\\",\\\"isZerion\\\"];for(let n of r)if(e[n])return!1;return!0})}},phantom:{id:\\\"phantom\\\",name:\\\"Phantom\\\",provider(t){return t?.phantom?.ethereum?t.phantom?.ethereum:iM(t,\\\"isPhantom\\\")}}};function iM(t,e){function r(i){return typeof e==\\\"function\\\"?e(i):typeof e==\\\"string\\\"?i[e]:!0}let n=t.ethereum;if(n?.providers)return n.providers.find(i=>r(i));if(n&&r(n))return n}u();y6e();un();u();var ppt=t=>(e,r,n)=>{let i=n.subscribe;return n.subscribe=(o,a,c)=>{let l=o;if(a){let d=c?.equalityFn||Object.is,f=o(n.getState());l=p=>{let h=o(p);if(!d(f,h)){let m=f;a(f=h,m)}},c?.fireImmediately&&a(f,f)}return i(l)},t(e,r,n)},b6e=ppt;function hpt(t,e){let r;try{r=t()}catch{return}return{getItem:i=>{var s;let o=c=>c===null?null:JSON.parse(c,e?.reviver),a=(s=r.getItem(i))!=null?s:null;return a instanceof Promise?a.then(o):o(a)},setItem:(i,s)=>r.setItem(i,JSON.stringify(s,e?.replacer)),removeItem:i=>r.removeItem(i)}}var tY=t=>e=>{try{let r=t(e);return r instanceof Promise?r:{then(n){return tY(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return tY(n)(r)}}}},mpt=(t,e)=>(r,n,i)=>{let s={storage:hpt(()=>localStorage),partialize:g=>g,version:0,merge:(g,w)=>({...w,...g}),...e},o=!1,a=new Set,c=new Set,l=s.storage;if(!l)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...g)},n,i);let d=()=>{let g=s.partialize({...n()});return l.setItem(s.name,{state:g,version:s.version})},f=i.setState;i.setState=(g,w)=>{f(g,w),d()};let p=t((...g)=>{r(...g),d()},n,i);i.getInitialState=()=>p;let h,m=()=>{var g,w;if(!l)return;o=!1,a.forEach(b=>{var _;return b((_=n())!=null?_:p)});let v=((w=s.onRehydrateStorage)==null?void 0:w.call(s,(g=n())!=null?g:p))||void 0;return tY(l.getItem.bind(l))(s.name).then(b=>{if(b)if(typeof b.version==\\\"number\\\"&&b.version!==s.version){if(s.migrate)return[!0,s.migrate(b.state,b.version)];console.error(\\\"State loaded from storage couldn't be migrated since no migrate function was provided\\\")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var _;let[S,T]=b;if(h=s.merge(T,(_=n())!=null?_:p),r(h,!0),S)return d()}).then(()=>{v?.(h,void 0),h=n(),o=!0,c.forEach(b=>b(h))}).catch(b=>{v?.(void 0,b)})};return i.persist={setOptions:g=>{s={...s,...g},g.storage&&(l=g.storage)},clearStorage:()=>{l?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(c.add(g),()=>{c.delete(g)})},s.skipHydration||m(),h||p},w6e=mpt;u();var v6e=t=>{let e,r=new Set,n=(l,d)=>{let f=typeof l==\\\"function\\\"?l(e):l;if(!Object.is(f,e)){let p=e;e=d??(typeof f!=\\\"object\\\"||f===null)?f:Object.assign({},e,f),r.forEach(h=>h(e,p))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=e=t(n,i,a);return a},sM=t=>t?v6e(t):v6e;u();aM();var nY=class{constructor(e){Object.defineProperty(this,\\\"uid\\\",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,\\\"_emitter\\\",{enumerable:!0,configurable:!0,writable:!0,value:new _6.default})}on(e,r){this._emitter.on(e,r)}once(e,r){this._emitter.once(e,r)}off(e,r){this._emitter.off(e,r)}emit(e,...r){let n=r[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}};function _6e(t){return new nY(t)}u();u();function iY(t,e){return JSON.parse(t,(r,n)=>{let i=n;return i?.__type===\\\"bigint\\\"&&(i=BigInt(i.value)),i?.__type===\\\"Map\\\"&&(i=new Map(i.value)),e?.(r,i)??i})}u();function C6e(t,e){return t.slice(0,e).join(\\\".\\\")||\\\".\\\"}function S6e(t,e){let{length:r}=t;for(let n=0;n<r;++n)if(t[n]===e)return n+1;return 0}function bpt(t,e){let r=typeof t==\\\"function\\\",n=typeof e==\\\"function\\\",i=[],s=[];return function(a,c){if(typeof c==\\\"object\\\")if(i.length){let l=S6e(i,this);l===0?i[i.length]=this:(i.splice(l),s.splice(l)),s[s.length]=a;let d=S6e(i,c);if(d!==0)return n?e.call(this,a,c,C6e(s,d)):`[ref=${C6e(s,d)}]`}else i[0]=c,s[0]=a;return r?t.call(this,a,c):c}}function sY(t,e,r,n){return JSON.stringify(t,bpt((i,s)=>{let o=s;return typeof o==\\\"bigint\\\"&&(o={__type:\\\"bigint\\\",value:s.toString()}),o instanceof Map&&(o={__type:\\\"Map\\\",value:Array.from(s.entries())}),e?.(i,o)??o},n),r??void 0)}function oY(t){let{deserialize:e=iY,key:r=\\\"wagmi\\\",serialize:n=sY,storage:i=aY}=t;function s(o){return o instanceof Promise?o.then(a=>a).catch(()=>null):o}return{...i,key:r,async getItem(o,a){let c=i.getItem(`${r}.${o}`),l=await s(c);return l?e(l)??null:a??null},async setItem(o,a){let c=`${r}.${o}`;a===null?await s(i.removeItem(c)):await s(i.setItem(c,n(a)))},async removeItem(o){await s(i.removeItem(`${r}.${o}`))}}}var aY={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function A6e(){let t=typeof window<\\\"u\\\"&&window.localStorage?window.localStorage:aY;return{getItem(e){return t.getItem(e)},removeItem(e){t.removeItem(e)},setItem(e,r){try{t.setItem(e,r)}catch{}}}}u();var cM=256,lM;function T6e(t=11){if(!lM||cM+t>256*2){lM=\\\"\\\",cM=0;for(let e=0;e<256;e++)lM+=(256+Math.random()*256|0).toString(16).substring(1)}return lM.substring(cM,cM+++t)}function uM(t){let{multiInjectedProviderDiscovery:e=!0,storage:r=oY({storage:A6e()}),syncConnectedChain:n=!0,ssr:i=!1,...s}=t,o=typeof window<\\\"u\\\"&&e?eY():void 0,a=sM(()=>s.chains),c=sM(()=>{let T=[],N=new Set;for(let O of s.connectors??[]){let L=l(O);if(T.push(L),!i&&L.rdns){let B=typeof L.rdns==\\\"string\\\"?[L.rdns]:L.rdns;for(let H of B)N.add(H)}}if(!i&&o){let O=o.getProviders();for(let L of O)N.has(L.info.rdns)||T.push(l(d(L)))}return T});function l(T){let N=_6e(T6e()),O={...T({emitter:N,chains:a.getState(),storage:r,transports:s.transports}),emitter:N,uid:N.uid};return N.on(\\\"connect\\\",_),O.setup?.(),O}function d(T){let{info:N}=T,O=T.provider;return Om({target:{...N,id:N.rdns,provider:O}})}let f=new Map;function p(T={}){let N=T.chainId??w.getState().chainId,O=a.getState().find(B=>B.id===N);if(T.chainId&&!O)throw new ga;{let B=f.get(w.getState().chainId);if(B&&!O)return B;if(!O)throw new ga}{let B=f.get(N);if(B)return B}let L;if(s.client)L=s.client({chain:O});else{let B=O.id,H=a.getState().map(R=>R.id),M={},F=Object.entries(s);for(let[R,y]of F)if(!(R===\\\"chains\\\"||R===\\\"client\\\"||R===\\\"connectors\\\"||R===\\\"transports\\\"))if(typeof y==\\\"object\\\")if(B in y)M[R]=y[B];else{if(H.some(C=>C in y))continue;M[R]=y}else M[R]=y;L=Im({...M,chain:O,batch:M.batch??{multicall:!0},transport:R=>s.transports[B]({...R,connectors:c})})}return f.set(N,L),L}function h(){return{chainId:a.getState()[0].id,connections:new Map,current:null,status:\\\"disconnected\\\"}}let m,g=\\\"0.0.0-canary-\\\";g6.startsWith(g)?m=Number.parseInt(g6.replace(g,\\\"\\\"),10):m=Number.parseInt(g6.split(\\\".\\\")[0]??\\\"0\\\",10);let w=sM(b6e(r?w6e(h,{migrate(T,N){if(N===m)return T;let O=h(),L=v(T,O.chainId);return{...O,chainId:L}},name:\\\"store\\\",partialize(T){return{connections:{__type:\\\"Map\\\",value:Array.from(T.connections.entries()).map(([N,O])=>{let{id:L,name:B,type:H,uid:M}=O.connector;return[N,{...O,connector:{id:L,name:B,type:H,uid:M}}]})},chainId:T.chainId,current:T.current}},merge(T,N){typeof T==\\\"object\\\"&&T&&\\\"status\\\"in T&&delete T.status;let O=v(T,N.chainId);return{...N,...T,chainId:O}},skipHydration:i,storage:r,version:m}):h));w.setState(h());function v(T,N){return T&&typeof T==\\\"object\\\"&&\\\"chainId\\\"in T&&typeof T.chainId==\\\"number\\\"&&a.getState().some(O=>O.id===T.chainId)?T.chainId:N}n&&w.subscribe(({connections:T,current:N})=>N?T.get(N)?.chainId:void 0,T=>{if(a.getState().some(O=>O.id===T))return w.setState(O=>({...O,chainId:T??O.chainId}))}),o?.subscribe(T=>{let N=new Set,O=new Set;for(let B of c.getState())if(N.add(B.id),B.rdns){let H=typeof B.rdns==\\\"string\\\"?[B.rdns]:B.rdns;for(let M of H)O.add(M)}let L=[];for(let B of T){if(O.has(B.info.rdns))continue;let H=l(d(B));N.has(H.id)||L.push(H)}r&&!w.persist.hasHydrated()||c.setState(B=>[...B,...L],!0)});function b(T){w.setState(N=>{let O=N.connections.get(T.uid);return O?{...N,connections:new Map(N.connections).set(T.uid,{accounts:T.accounts??O.accounts,chainId:T.chainId??O.chainId,connector:O.connector})}:N})}function _(T){w.getState().status===\\\"connecting\\\"||w.getState().status===\\\"reconnecting\\\"||w.setState(N=>{let O=c.getState().find(L=>L.uid===T.uid);return O?(O.emitter.listenerCount(\\\"connect\\\")&&O.emitter.off(\\\"connect\\\",b),O.emitter.listenerCount(\\\"change\\\")||O.emitter.on(\\\"change\\\",b),O.emitter.listenerCount(\\\"disconnect\\\")||O.emitter.on(\\\"disconnect\\\",S),{...N,connections:new Map(N.connections).set(T.uid,{accounts:T.accounts,chainId:T.chainId,connector:O}),current:T.uid,status:\\\"connected\\\"}):N})}function S(T){w.setState(N=>{let O=N.connections.get(T.uid);if(O){let B=O.connector;B.emitter.listenerCount(\\\"change\\\")&&O.connector.emitter.off(\\\"change\\\",b),B.emitter.listenerCount(\\\"disconnect\\\")&&O.connector.emitter.off(\\\"disconnect\\\",S),B.emitter.listenerCount(\\\"connect\\\")||O.connector.emitter.on(\\\"connect\\\",_)}if(N.connections.delete(T.uid),N.connections.size===0)return{...N,connections:new Map,current:null,status:\\\"disconnected\\\"};let L=N.connections.values().next().value;return{...N,connections:new Map(N.connections),current:L.connector.uid}})}return{get chains(){return a.getState()},get connectors(){return c.getState()},storage:r,getClient:p,get state(){return w.getState()},setState(T){let N;typeof T==\\\"function\\\"?N=T(w.getState()):N=T;let O=h();typeof N!=\\\"object\\\"&&(N=O),Object.keys(O).some(B=>!(B in N))&&(N=O),w.setState(N,!0)},subscribe(T,N,O){return w.subscribe(T,N,O?{...O,fireImmediately:O.emitImmediately}:void 0)},_internal:{mipd:o,async revalidate(){let T=w.getState(),N=T.connections,O=T.current;for(let[,L]of N){let B=L.connector;B.isAuthorized&&await B.isAuthorized()||(N.delete(B.uid),O===B.uid&&(O=null))}w.setState(L=>({...L,connections:N,current:O}))},store:w,ssr:!!i,syncConnectedChain:n,transports:s.transports,chains:{setState(T){let N=typeof T==\\\"function\\\"?T(a.getState()):T;if(N.length!==0)return a.setState(N,!0)},subscribe(T){return a.subscribe(T)}},connectors:{providerDetailToConnector:d,setup:l,setState(T){return c.setState(typeof T==\\\"function\\\"?T(c.getState()):T,!0)},subscribe(T){return c.subscribe(T)}},events:{change:b,connect:_,disconnect:S}}}}u();function cY(t,e){let{initialState:r,reconnectOnMount:n}=e;return r&&!t._internal.store.persist.hasHydrated()&&t.setState({...r,chainId:t.chains.some(i=>i.id===r.chainId)?r.chainId:t.chains[0].id,connections:n?r.connections:new Map,status:n?\\\"reconnecting\\\":\\\"disconnected\\\"}),{async onMount(){t._internal.ssr&&(await t._internal.store.persist.rehydrate(),t._internal.mipd&&t._internal.connectors.setState(i=>{let s=new Set;for(let c of i??[])if(c.rdns){let l=Array.isArray(c.rdns)?c.rdns:[c.rdns];for(let d of l)s.add(d)}let o=[],a=t._internal.mipd?.getProviders()??[];for(let c of a){if(s.has(c.info.rdns))continue;let l=t._internal.connectors.providerDetailToConnector(c),d=t._internal.connectors.setup(l);o.push(d)}return[...i,...o]})),n?f6e(t):t.storage&&t.setState(i=>({...i,connections:new Map}))}}}un();u();function lY(t){let{chain:e}=t,r=e.rpcUrls.default.http[0];if(!t.transports)return[r];let n=t.transports?.[e.id]?.({chain:e});return(n?.value?.transports||[n]).map(({value:s})=>s?.url||r)}var dM=Me(Vi(),1);function I6e(t){let{children:e,config:r,initialState:n,reconnectOnMount:i=!0}=t,{onMount:s}=cY(r,{initialState:n,reconnectOnMount:i});r._internal.ssr||s();let o=(0,dM.useRef)(!0);return(0,dM.useEffect)(()=>{if(o.current&&r._internal.ssr)return s(),()=>{o.current=!1}},[]),e}var tT=(0,eT.createContext)(void 0);function fM(t){let{children:e,config:r}=t,n={value:r};return(0,eT.createElement)(I6e,t,(0,eT.createElement)(tT.Provider,n,e))}u();u();u();var R6e=\\\"2.19.5\\\";var P6e=()=>`wagmi@${R6e}`;var pM=class extends $a{constructor(){super(...arguments),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"WagmiError\\\"})}get docsBaseUrl(){return\\\"https://wagmi.sh/react\\\"}get version(){return P6e()}};u();var hM=class extends pM{constructor(){super(\\\"`useConfig` must be used within `WagmiProvider`.\\\",{docsPath:\\\"/api/WagmiProvider\\\"}),Object.defineProperty(this,\\\"name\\\",{enumerable:!0,configurable:!0,writable:!0,value:\\\"WagmiProviderNotFoundError\\\"})}};u();u();var O6e=Me(Vi(),1);function oo(t={}){let e=t.config??(0,O6e.useContext)(tT);if(!e)throw new hM;return e}u();u();u();function uY(t,e){let{onChange:r}=e;return t._internal.chains.subscribe((n,i)=>{r(n,i)})}var gM=Me(Vi(),1),j6e=Me(F6e(),1),fY=t=>typeof t==\\\"object\\\"&&!Array.isArray(t);function H6e(t,e,r=e,n=Pc){let i=(0,gM.useRef)([]),s=(0,j6e.useSyncExternalStoreWithSelector)(t,e,r,o=>o,(o,a)=>{if(fY(o)&&fY(a)&&i.current.length){for(let c of i.current)if(!n(o[c],a[c]))return!1;return!0}return n(o,a)});return(0,gM.useMemo)(()=>{if(fY(s)){let o={...s},a={};for(let[c,l]of Object.entries(o))a={...a,[c]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(c)||i.current.push(c),l)}};return Object.defineProperties(o,a),o}return s},[s])}function rT(t={}){let e=oo(t);return H6e(r=>QJ(e,{onChange:r}),()=>YA(e))}u();u();u();u();u();var Pu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Fw,vy,S6,q6e,Upt=(q6e=class extends Pu{constructor(){super();Fe(this,Fw);Fe(this,vy);Fe(this,S6);Ae(this,S6,e=>{if(typeof window<\\\"u\\\"&&window.addEventListener){let r=()=>e();return window.addEventListener(\\\"visibilitychange\\\",r,!1),()=>{window.removeEventListener(\\\"visibilitychange\\\",r)}}})}onSubscribe(){V(this,vy)||this.setEventListener(V(this,S6))}onUnsubscribe(){var e;this.hasListeners()||((e=V(this,vy))==null||e.call(this),Ae(this,vy,void 0))}setEventListener(e){var r;Ae(this,S6,e),(r=V(this,vy))==null||r.call(this),Ae(this,vy,e(n=>{typeof n==\\\"boolean\\\"?this.setFocused(n):this.onFocus()}))}setFocused(e){V(this,Fw)!==e&&(Ae(this,Fw,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){return typeof V(this,Fw)==\\\"boolean\\\"?V(this,Fw):globalThis.document?.visibilityState!==\\\"hidden\\\"}},Fw=new WeakMap,vy=new WeakMap,S6=new WeakMap,q6e),A6=new Upt;u();u();u();var Fpt={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},xy,pY,z6e,jpt=(z6e=class{constructor(){Fe(this,xy,Fpt);Fe(this,pY,!1)}setTimeoutProvider(t){Ae(this,xy,t)}setTimeout(t,e){return V(this,xy).setTimeout(t,e)}clearTimeout(t){V(this,xy).clearTimeout(t)}setInterval(t,e){return V(this,xy).setInterval(t,e)}clearInterval(t){V(this,xy).clearInterval(t)}},xy=new WeakMap,pY=new WeakMap,z6e),gp=new jpt;function $6e(t){setTimeout(t,0)}var mY=typeof window>\\\"u\\\"||\\\"Deno\\\"in globalThis;function Ji(){}function G6e(t,e){return typeof t==\\\"function\\\"?t(e):t}function nT(t){return typeof t==\\\"number\\\"&&t>=0&&t!==1/0}function yM(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Kd(t,e){return typeof t==\\\"function\\\"?t(e):t}function Nc(t,e){return typeof t==\\\"function\\\"?t(e):t}function bM(t,e){let{type:r=\\\"all\\\",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=t;if(o){if(n){if(e.queryHash!==iT(o,e.options))return!1}else if(!jw(e.queryKey,o))return!1}if(r!==\\\"all\\\"){let c=e.isActive();if(r===\\\"active\\\"&&!c||r===\\\"inactive\\\"&&c)return!1}return!(typeof a==\\\"boolean\\\"&&e.isStale()!==a||i&&i!==e.state.fetchStatus||s&&!s(e))}function wM(t,e){let{exact:r,status:n,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(r){if(yp(e.options.mutationKey)!==yp(s))return!1}else if(!jw(e.options.mutationKey,s))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function iT(t,e){return(e?.queryKeyHashFn||yp)(t)}function yp(t){return JSON.stringify(t,(e,r)=>hY(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function jw(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t==\\\"object\\\"&&typeof e==\\\"object\\\"?Object.keys(e).every(r=>jw(t[r],e[r])):!1}var Hpt=Object.prototype.hasOwnProperty;function gY(t,e,r=0){if(t===e)return t;if(r>500)return e;let n=V6e(t)&&V6e(e);if(!n&&!(hY(t)&&hY(e)))return e;let s=(n?t:Object.keys(t)).length,o=n?e:Object.keys(e),a=o.length,c=n?new Array(a):{},l=0;for(let d=0;d<a;d++){let f=n?d:o[d],p=t[f],h=e[f];if(p===h){c[f]=p,(n?d<s:Hpt.call(t,f))&&l++;continue}if(p===null||h===null||typeof p!=\\\"object\\\"||typeof h!=\\\"object\\\"){c[f]=h;continue}let m=gY(p,h,r+1);c[f]=m,m===p&&l++}return s===a&&l===s?t:c}function T6(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0}function V6e(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function hY(t){if(!W6e(t))return!1;let e=t.constructor;if(e===void 0)return!0;let r=e.prototype;return!(!W6e(r)||!r.hasOwnProperty(\\\"isPrototypeOf\\\")||Object.getPrototypeOf(t)!==Object.prototype)}function W6e(t){return Object.prototype.toString.call(t)===\\\"[object Object]\\\"}function K6e(t){return new Promise(e=>{gp.setTimeout(e,t)})}function sT(t,e,r){return typeof r.structuralSharing==\\\"function\\\"?r.structuralSharing(t,e):r.structuralSharing!==!1?gY(t,e):e}function Z6e(t,e,r=0){let n=[...t,e];return r&&n.length>r?n.slice(1):n}function Q6e(t,e,r=0){let n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var I6=Symbol();function vM(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===I6?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function R6(t,e){return typeof t==\\\"function\\\"?t(...e):!!t}function J6e(t,e,r){let n=!1,i;return Object.defineProperty(t,\\\"signal\\\",{enumerable:!0,get:()=>(i??(i=e()),n||(n=!0,i.aborted?r():i.addEventListener(\\\"abort\\\",r,{once:!0})),i)}),t}var bp=(()=>{let t=()=>mY;return{isServer(){return t()},setIsServer(e){t=e}}})();u();function oT(){let t,e,r=new Promise((i,s)=>{t=i,e=s});r.status=\\\"pending\\\",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:\\\"fulfilled\\\",value:i}),t(i)},r.reject=i=>{n({status:\\\"rejected\\\",reason:i}),e(i)},r}u();u();var Y6e=$6e;function qpt(){let t=[],e=0,r=a=>{a()},n=a=>{a()},i=Y6e,s=a=>{e?t.push(a):i(()=>{r(a)})},o=()=>{let a=t;t=[],a.length&&i(()=>{n(()=>{a.forEach(c=>{r(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||o()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{i=a}}}var Gr=qpt();u();u();u();var P6,Ey,O6,X6e,zpt=(X6e=class extends Pu{constructor(){super();Fe(this,P6,!0);Fe(this,Ey);Fe(this,O6);Ae(this,O6,e=>{if(typeof window<\\\"u\\\"&&window.addEventListener){let r=()=>e(!0),n=()=>e(!1);return window.addEventListener(\\\"online\\\",r,!1),window.addEventListener(\\\"offline\\\",n,!1),()=>{window.removeEventListener(\\\"online\\\",r),window.removeEventListener(\\\"offline\\\",n)}}})}onSubscribe(){V(this,Ey)||this.setEventListener(V(this,O6))}onUnsubscribe(){var e;this.hasListeners()||((e=V(this,Ey))==null||e.call(this),Ae(this,Ey,void 0))}setEventListener(e){var r;Ae(this,O6,e),(r=V(this,Ey))==null||r.call(this),Ae(this,Ey,e(this.setOnline.bind(this)))}setOnline(e){V(this,P6)!==e&&(Ae(this,P6,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return V(this,P6)}},P6=new WeakMap,Ey=new WeakMap,O6=new WeakMap,X6e),N6=new zpt;function $pt(t){return Math.min(1e3*2**t,3e4)}function yY(t){return(t??\\\"online\\\")===\\\"online\\\"?N6.isOnline():!0}var xM=class extends Error{constructor(t){super(\\\"CancelledError\\\"),this.revert=t?.revert,this.silent=t?.silent}};function EM(t){let e=!1,r=0,n,i=oT(),s=()=>i.status!==\\\"pending\\\",o=g=>{if(!s()){let w=new xM(g);p(w),t.onCancel?.(w)}},a=()=>{e=!0},c=()=>{e=!1},l=()=>A6.isFocused()&&(t.networkMode===\\\"always\\\"||N6.isOnline())&&t.canRun(),d=()=>yY(t.networkMode)&&t.canRun(),f=g=>{s()||(n?.(),i.resolve(g))},p=g=>{s()||(n?.(),i.reject(g))},h=()=>new Promise(g=>{n=w=>{(s()||l())&&g(w)},t.onPause?.()}).then(()=>{n=void 0,s()||t.onContinue?.()}),m=()=>{if(s())return;let g,w=r===0?t.initialPromise:void 0;try{g=w??t.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(f).catch(v=>{if(s())return;let b=t.retry??(bp.isServer()?0:3),_=t.retryDelay??$pt,S=typeof _==\\\"function\\\"?_(r,v):_,T=b===!0||typeof b==\\\"number\\\"&&r<b||typeof b==\\\"function\\\"&&b(r,v);if(e||!T){p(v);return}r++,t.onFail?.(r,v),K6e(S).then(()=>l()?void 0:h()).then(()=>{e?p(v):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n?.(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?m():h().then(m),i)}}u();var Hw,e3e,_M=(e3e=class{constructor(){Fe(this,Hw)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nT(this.gcTime)&&Ae(this,Hw,gp.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bp.isServer()?1/0:300*1e3))}clearGcTimeout(){V(this,Hw)&&(gp.clearTimeout(V(this,Hw)),Ae(this,Hw,void 0))}},Hw=new WeakMap,e3e);var qw,k6,Ou,zw,ao,aT,$w,Al,s3e,Nm,n3e,i3e=(n3e=class extends _M{constructor(e){super();Fe(this,Al);Fe(this,qw);Fe(this,k6);Fe(this,Ou);Fe(this,zw);Fe(this,ao);Fe(this,aT);Fe(this,$w);Ae(this,$w,!1),Ae(this,aT,e.defaultOptions),this.setOptions(e.options),this.observers=[],Ae(this,zw,e.client),Ae(this,Ou,V(this,zw).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Ae(this,qw,r3e(this.options)),this.state=e.state??V(this,qw),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return V(this,ao)?.promise}setOptions(e){if(this.options={...V(this,aT),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=r3e(this.options);r.data!==void 0&&(this.setState(t3e(r.data,r.dataUpdatedAt)),Ae(this,qw,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===\\\"idle\\\"&&V(this,Ou).remove(this)}setData(e,r){let n=sT(this.state.data,e,this.options);return gt(this,Al,Nm).call(this,{data:n,type:\\\"success\\\",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e,r){gt(this,Al,Nm).call(this,{type:\\\"setState\\\",state:e,setStateOptions:r})}cancel(e){let r=V(this,ao)?.promise;return V(this,ao)?.cancel(e),r?r.then(Ji).catch(Ji):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return V(this,qw)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Nc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===I6||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Kd(e.options.staleTime,this)===\\\"static\\\"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===\\\"static\\\"?!1:this.state.isInvalidated?!0:!yM(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),V(this,ao)?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),V(this,ao)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),V(this,Ou).notify({type:\\\"observerAdded\\\",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(V(this,ao)&&(V(this,$w)||gt(this,Al,s3e).call(this)?V(this,ao).cancel({revert:!0}):V(this,ao).cancelRetry()),this.scheduleGc()),V(this,Ou).notify({type:\\\"observerRemoved\\\",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,Al,Nm).call(this,{type:\\\"invalidate\\\"})}async fetch(e,r){if(this.state.fetchStatus!==\\\"idle\\\"&&V(this,ao)?.status()!==\\\"rejected\\\"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(V(this,ao))return V(this,ao).continueRetry(),V(this,ao).promise}if(e&&this.setOptions(e),!this.options.queryFn){let c=this.observers.find(l=>l.options.queryFn);c&&this.setOptions(c.options)}let n=new AbortController,i=c=>{Object.defineProperty(c,\\\"signal\\\",{enumerable:!0,get:()=>(Ae(this,$w,!0),n.signal)})},s=()=>{let c=vM(this.options,r),d=(()=>{let f={client:V(this,zw),queryKey:this.queryKey,meta:this.meta};return i(f),f})();return Ae(this,$w,!1),this.options.persister?this.options.persister(c,d,this):c(d)},a=(()=>{let c={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:V(this,zw),state:this.state,fetchFn:s};return i(c),c})();this.options.behavior?.onFetch(a,this),Ae(this,k6,this.state),(this.state.fetchStatus===\\\"idle\\\"||this.state.fetchMeta!==a.fetchOptions?.meta)&&gt(this,Al,Nm).call(this,{type:\\\"fetch\\\",meta:a.fetchOptions?.meta}),Ae(this,ao,EM({initialPromise:r?.initialPromise,fn:a.fetchFn,onCancel:c=>{c instanceof xM&&c.revert&&this.setState({...V(this,k6),fetchStatus:\\\"idle\\\"}),n.abort()},onFail:(c,l)=>{gt(this,Al,Nm).call(this,{type:\\\"failed\\\",failureCount:c,error:l})},onPause:()=>{gt(this,Al,Nm).call(this,{type:\\\"pause\\\"})},onContinue:()=>{gt(this,Al,Nm).call(this,{type:\\\"continue\\\"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{let c=await V(this,ao).start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),V(this,Ou).config.onSuccess?.(c,this),V(this,Ou).config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof xM){if(c.silent)return V(this,ao).promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw gt(this,Al,Nm).call(this,{type:\\\"error\\\",error:c}),V(this,Ou).config.onError?.(c,this),V(this,Ou).config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}},qw=new WeakMap,k6=new WeakMap,Ou=new WeakMap,zw=new WeakMap,ao=new WeakMap,aT=new WeakMap,$w=new WeakMap,Al=new WeakSet,s3e=function(){return this.state.fetchStatus===\\\"paused\\\"&&this.state.status===\\\"pending\\\"},Nm=function(e){let r=n=>{switch(e.type){case\\\"failed\\\":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case\\\"pause\\\":return{...n,fetchStatus:\\\"paused\\\"};case\\\"continue\\\":return{...n,fetchStatus:\\\"fetching\\\"};case\\\"fetch\\\":return{...n,...bY(n.data,this.options),fetchMeta:e.meta??null};case\\\"success\\\":let i={...n,...t3e(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:\\\"idle\\\",fetchFailureCount:0,fetchFailureReason:null}};return Ae(this,k6,e.manual?i:void 0),i;case\\\"error\\\":let s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:\\\"idle\\\",status:\\\"error\\\",isInvalidated:!0};case\\\"invalidate\\\":return{...n,isInvalidated:!0};case\\\"setState\\\":return{...n,...e.state}}};this.state=r(this.state),Gr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),V(this,Ou).notify({query:this,type:\\\"updated\\\",action:e})})},n3e);function bY(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yY(e.networkMode)?\\\"fetching\\\":\\\"paused\\\",...t===void 0&&{error:null,status:\\\"pending\\\"}}}function t3e(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:\\\"success\\\"}}function r3e(t){let e=typeof t.initialData==\\\"function\\\"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt==\\\"function\\\"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?\\\"success\\\":\\\"pending\\\",fetchStatus:\\\"idle\\\"}}var kc,tr,lT,Wa,Vw,B6,km,_y,uT,M6,D6,Ww,Gw,Cy,L6,qr,cT,wY,vY,xY,EY,_Y,CY,SY,l3e,c3e,TY=(c3e=class extends Pu{constructor(e,r){super();Fe(this,qr);Fe(this,kc);Fe(this,tr);Fe(this,lT);Fe(this,Wa);Fe(this,Vw);Fe(this,B6);Fe(this,km);Fe(this,_y);Fe(this,uT);Fe(this,M6);Fe(this,D6);Fe(this,Ww);Fe(this,Gw);Fe(this,Cy);Fe(this,L6,new Set);this.options=r,Ae(this,kc,e),Ae(this,_y,null),Ae(this,km,oT()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,tr).addObserver(this),o3e(V(this,tr),this.options)?gt(this,qr,cT).call(this):this.updateResult(),gt(this,qr,EY).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return AY(V(this,tr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return AY(V(this,tr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,qr,_Y).call(this),gt(this,qr,CY).call(this),V(this,tr).removeObserver(this)}setOptions(e){let r=this.options,n=V(this,tr);if(this.options=V(this,kc).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=\\\"boolean\\\"&&typeof this.options.enabled!=\\\"function\\\"&&typeof Nc(this.options.enabled,V(this,tr))!=\\\"boolean\\\")throw new Error(\\\"Expected enabled to be a boolean or a callback that returns a boolean\\\");gt(this,qr,SY).call(this),V(this,tr).setOptions(this.options),r._defaulted&&!T6(this.options,r)&&V(this,kc).getQueryCache().notify({type:\\\"observerOptionsUpdated\\\",query:V(this,tr),observer:this});let i=this.hasListeners();i&&a3e(V(this,tr),n,this.options,r)&&gt(this,qr,cT).call(this),this.updateResult(),i&&(V(this,tr)!==n||Nc(this.options.enabled,V(this,tr))!==Nc(r.enabled,V(this,tr))||Kd(this.options.staleTime,V(this,tr))!==Kd(r.staleTime,V(this,tr)))&&gt(this,qr,wY).call(this);let s=gt(this,qr,vY).call(this);i&&(V(this,tr)!==n||Nc(this.options.enabled,V(this,tr))!==Nc(r.enabled,V(this,tr))||s!==V(this,Cy))&&gt(this,qr,xY).call(this,s)}getOptimisticResult(e){let r=V(this,kc).getQueryCache().build(V(this,kc),e),n=this.createResult(r,e);return Wpt(this,n)&&(Ae(this,Wa,n),Ae(this,B6,this.options),Ae(this,Vw,V(this,tr).state)),n}getCurrentResult(){return V(this,Wa)}trackResult(e,r){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),r?.(i),i===\\\"promise\\\"&&(this.trackProp(\\\"data\\\"),!this.options.experimental_prefetchInRender&&V(this,km).status===\\\"pending\\\"&&V(this,km).reject(new Error(\\\"experimental_prefetchInRender feature flag is not enabled\\\"))),Reflect.get(n,i))})}trackProp(e){V(this,L6).add(e)}getCurrentQuery(){return V(this,tr)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let r=V(this,kc).defaultQueryOptions(e),n=V(this,kc).getQueryCache().build(V(this,kc),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return gt(this,qr,cT).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,Wa)))}createResult(e,r){let n=V(this,tr),i=this.options,s=V(this,Wa),o=V(this,Vw),a=V(this,B6),l=e!==n?e.state:V(this,lT),{state:d}=e,f={...d},p=!1,h;if(r._optimisticResults){let B=this.hasListeners(),H=!B&&o3e(e,r),M=B&&a3e(e,n,r,i);(H||M)&&(f={...f,...bY(d.data,e.options)}),r._optimisticResults===\\\"isRestoring\\\"&&(f.fetchStatus=\\\"idle\\\")}let{error:m,errorUpdatedAt:g,status:w}=f;h=f.data;let v=!1;if(r.placeholderData!==void 0&&h===void 0&&w===\\\"pending\\\"){let B;s?.isPlaceholderData&&r.placeholderData===a?.placeholderData?(B=s.data,v=!0):B=typeof r.placeholderData==\\\"function\\\"?r.placeholderData(V(this,D6)?.state.data,V(this,D6)):r.placeholderData,B!==void 0&&(w=\\\"success\\\",h=sT(s?.data,B,r),p=!0)}if(r.select&&h!==void 0&&!v)if(s&&h===o?.data&&r.select===V(this,uT))h=V(this,M6);else try{Ae(this,uT,r.select),h=r.select(h),h=sT(s?.data,h,r),Ae(this,M6,h),Ae(this,_y,null)}catch(B){Ae(this,_y,B)}V(this,_y)&&(m=V(this,_y),h=V(this,M6),g=Date.now(),w=\\\"error\\\");let b=f.fetchStatus===\\\"fetching\\\",_=w===\\\"pending\\\",S=w===\\\"error\\\",T=_&&b,N=h!==void 0,L={status:w,fetchStatus:f.fetchStatus,isPending:_,isSuccess:w===\\\"success\\\",isError:S,isInitialLoading:T,isLoading:T,data:h,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!_,isLoadingError:S&&!N,isPaused:f.fetchStatus===\\\"paused\\\",isPlaceholderData:p,isRefetchError:S&&N,isStale:IY(e,r),refetch:this.refetch,promise:V(this,km),isEnabled:Nc(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let B=L.data!==void 0,H=L.status===\\\"error\\\"&&!B,M=y=>{H?y.reject(L.error):B&&y.resolve(L.data)},F=()=>{let y=Ae(this,km,L.promise=oT());M(y)},R=V(this,km);switch(R.status){case\\\"pending\\\":e.queryHash===n.queryHash&&M(R);break;case\\\"fulfilled\\\":(H||L.data!==R.value)&&F();break;case\\\"rejected\\\":(!H||L.error!==R.reason)&&F();break}}return L}updateResult(){let e=V(this,Wa),r=this.createResult(V(this,tr),this.options);if(Ae(this,Vw,V(this,tr).state),Ae(this,B6,this.options),V(this,Vw).data!==void 0&&Ae(this,D6,V(this,tr)),T6(r,e))return;Ae(this,Wa,r);let n=()=>{if(!e)return!0;let{notifyOnChangeProps:i}=this.options,s=typeof i==\\\"function\\\"?i():i;if(s===\\\"all\\\"||!s&&!V(this,L6).size)return!0;let o=new Set(s??V(this,L6));return this.options.throwOnError&&o.add(\\\"error\\\"),Object.keys(V(this,Wa)).some(a=>{let c=a;return V(this,Wa)[c]!==e[c]&&o.has(c)})};gt(this,qr,l3e).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&gt(this,qr,EY).call(this)}},kc=new WeakMap,tr=new WeakMap,lT=new WeakMap,Wa=new WeakMap,Vw=new WeakMap,B6=new WeakMap,km=new WeakMap,_y=new WeakMap,uT=new WeakMap,M6=new WeakMap,D6=new WeakMap,Ww=new WeakMap,Gw=new WeakMap,Cy=new WeakMap,L6=new WeakMap,qr=new WeakSet,cT=function(e){gt(this,qr,SY).call(this);let r=V(this,tr).fetch(this.options,e);return e?.throwOnError||(r=r.catch(Ji)),r},wY=function(){gt(this,qr,_Y).call(this);let e=Kd(this.options.staleTime,V(this,tr));if(bp.isServer()||V(this,Wa).isStale||!nT(e))return;let n=yM(V(this,Wa).dataUpdatedAt,e)+1;Ae(this,Ww,gp.setTimeout(()=>{V(this,Wa).isStale||this.updateResult()},n))},vY=function(){return(typeof this.options.refetchInterval==\\\"function\\\"?this.options.refetchInterval(V(this,tr)):this.options.refetchInterval)??!1},xY=function(e){gt(this,qr,CY).call(this),Ae(this,Cy,e),!(bp.isServer()||Nc(this.options.enabled,V(this,tr))===!1||!nT(V(this,Cy))||V(this,Cy)===0)&&Ae(this,Gw,gp.setInterval(()=>{(this.options.refetchIntervalInBackground||A6.isFocused())&&gt(this,qr,cT).call(this)},V(this,Cy)))},EY=function(){gt(this,qr,wY).call(this),gt(this,qr,xY).call(this,gt(this,qr,vY).call(this))},_Y=function(){V(this,Ww)&&(gp.clearTimeout(V(this,Ww)),Ae(this,Ww,void 0))},CY=function(){V(this,Gw)&&(gp.clearInterval(V(this,Gw)),Ae(this,Gw,void 0))},SY=function(){let e=V(this,kc).getQueryCache().build(V(this,kc),this.options);if(e===V(this,tr))return;let r=V(this,tr);Ae(this,tr,e),Ae(this,lT,e.state),this.hasListeners()&&(r?.removeObserver(this),e.addObserver(this))},l3e=function(e){Gr.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(V(this,Wa))}),V(this,kc).getQueryCache().notify({query:V(this,tr),type:\\\"observerResultsUpdated\\\"})})},c3e);function Vpt(t,e){return Nc(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status===\\\"error\\\"&&e.retryOnMount===!1)}function o3e(t,e){return Vpt(t,e)||t.state.data!==void 0&&AY(t,e,e.refetchOnMount)}function AY(t,e,r){if(Nc(e.enabled,t)!==!1&&Kd(e.staleTime,t)!==\\\"static\\\"){let n=typeof r==\\\"function\\\"?r(t):r;return n===\\\"always\\\"||n!==!1&&IY(t,e)}return!1}function a3e(t,e,r,n){return(t!==e||Nc(n.enabled,t)===!1)&&(!r.suspense||t.state.status!==\\\"error\\\")&&IY(t,r)}function IY(t,e){return Nc(e.enabled,t)!==!1&&t.isStaleByTime(Kd(e.staleTime,t))}function Wpt(t,e){return!T6(t.getCurrentResult(),e)}u();function RY(t){return{onFetch:(e,r)=>{let n=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],o=e.state.data?.pageParams||[],a={pages:[],pageParams:[]},c=0,l=async()=>{let d=!1,f=m=>{J6e(m,()=>e.signal,()=>d=!0)},p=vM(e.options,e.fetchOptions),h=async(m,g,w)=>{if(d)return Promise.reject();if(g==null&&m.pages.length)return Promise.resolve(m);let b=(()=>{let N={client:e.client,queryKey:e.queryKey,pageParam:g,direction:w?\\\"backward\\\":\\\"forward\\\",meta:e.options.meta};return f(N),N})(),_=await p(b),{maxPages:S}=e.options,T=w?Q6e:Z6e;return{pages:T(m.pages,_,S),pageParams:T(m.pageParams,g,S)}};if(i&&s.length){let m=i===\\\"backward\\\",g=m?Gpt:u3e,w={pages:s,pageParams:o},v=g(n,w);a=await h(w,v,m)}else{let m=t??s.length;do{let g=c===0?o[0]??n.initialPageParam:u3e(n,a);if(c>0&&g==null)break;a=await h(a,g),c++}while(c<m)}return a};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=l}}}function u3e(t,{pages:e,pageParams:r}){let n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function Gpt(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}u();u();var dT,wp,ba,Kw,vp,Sy,d3e,f3e=(d3e=class extends _M{constructor(e){super();Fe(this,vp);Fe(this,dT);Fe(this,wp);Fe(this,ba);Fe(this,Kw);Ae(this,dT,e.client),this.mutationId=e.mutationId,Ae(this,ba,e.mutationCache),Ae(this,wp,[]),this.state=e.state||PY(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){V(this,wp).includes(e)||(V(this,wp).push(e),this.clearGcTimeout(),V(this,ba).notify({type:\\\"observerAdded\\\",mutation:this,observer:e}))}removeObserver(e){Ae(this,wp,V(this,wp).filter(r=>r!==e)),this.scheduleGc(),V(this,ba).notify({type:\\\"observerRemoved\\\",mutation:this,observer:e})}optionalRemove(){V(this,wp).length||(this.state.status===\\\"pending\\\"?this.scheduleGc():V(this,ba).remove(this))}continue(){return V(this,Kw)?.continue()??this.execute(this.state.variables)}async execute(e){let r=()=>{gt(this,vp,Sy).call(this,{type:\\\"continue\\\"})},n={client:V(this,dT),meta:this.options.meta,mutationKey:this.options.mutationKey};Ae(this,Kw,EM({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error(\\\"No mutationFn found\\\")),onFail:(o,a)=>{gt(this,vp,Sy).call(this,{type:\\\"failed\\\",failureCount:o,error:a})},onPause:()=>{gt(this,vp,Sy).call(this,{type:\\\"pause\\\"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,ba).canRun(this)}));let i=this.state.status===\\\"pending\\\",s=!V(this,Kw).canStart();try{if(i)r();else{gt(this,vp,Sy).call(this,{type:\\\"pending\\\",variables:e,isPaused:s}),V(this,ba).config.onMutate&&await V(this,ba).config.onMutate(e,this,n);let a=await this.options.onMutate?.(e,n);a!==this.state.context&&gt(this,vp,Sy).call(this,{type:\\\"pending\\\",context:a,variables:e,isPaused:s})}let o=await V(this,Kw).start();return await V(this,ba).config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await V(this,ba).config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),gt(this,vp,Sy).call(this,{type:\\\"success\\\",data:o}),o}catch(o){try{await V(this,ba).config.onError?.(o,e,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(a){Promise.reject(a)}try{await V(this,ba).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(a){Promise.reject(a)}throw gt(this,vp,Sy).call(this,{type:\\\"error\\\",error:o}),o}finally{V(this,ba).runNext(this)}}},dT=new WeakMap,wp=new WeakMap,ba=new WeakMap,Kw=new WeakMap,vp=new WeakSet,Sy=function(e){let r=n=>{switch(e.type){case\\\"failed\\\":return{...n,failureCount:e.failureCount,failureReason:e.error};case\\\"pause\\\":return{...n,isPaused:!0};case\\\"continue\\\":return{...n,isPaused:!1};case\\\"pending\\\":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:\\\"pending\\\",variables:e.variables,submittedAt:Date.now()};case\\\"success\\\":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:\\\"success\\\",isPaused:!1};case\\\"error\\\":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:\\\"error\\\"}}};this.state=r(this.state),Gr.batch(()=>{V(this,wp).forEach(n=>{n.onMutationUpdate(e)}),V(this,ba).notify({mutation:this,type:\\\"updated\\\",action:e})})},d3e);function PY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:\\\"idle\\\",variables:void 0,submittedAt:0}}var Bm,Zd,fT,p3e,h3e=(p3e=class extends Pu{constructor(e={}){super();Fe(this,Bm);Fe(this,Zd);Fe(this,fT);this.config=e,Ae(this,Bm,new Set),Ae(this,Zd,new Map),Ae(this,fT,0)}build(e,r,n){let i=new f3e({client:e,mutationCache:this,mutationId:++T8(this,fT)._,options:e.defaultMutationOptions(r),state:n});return this.add(i),i}add(e){V(this,Bm).add(e);let r=CM(e);if(typeof r==\\\"string\\\"){let n=V(this,Zd).get(r);n?n.push(e):V(this,Zd).set(r,[e])}this.notify({type:\\\"added\\\",mutation:e})}remove(e){if(V(this,Bm).delete(e)){let r=CM(e);if(typeof r==\\\"string\\\"){let n=V(this,Zd).get(r);if(n)if(n.length>1){let i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&V(this,Zd).delete(r)}}this.notify({type:\\\"removed\\\",mutation:e})}canRun(e){let r=CM(e);if(typeof r==\\\"string\\\"){let i=V(this,Zd).get(r)?.find(s=>s.state.status===\\\"pending\\\");return!i||i===e}else return!0}runNext(e){let r=CM(e);return typeof r==\\\"string\\\"?V(this,Zd).get(r)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gr.batch(()=>{V(this,Bm).forEach(e=>{this.notify({type:\\\"removed\\\",mutation:e})}),V(this,Bm).clear(),V(this,Zd).clear()})}getAll(){return Array.from(V(this,Bm))}find(e){let r={exact:!0,...e};return this.getAll().find(n=>wM(r,n))}findAll(e={}){return this.getAll().filter(r=>wM(e,r))}notify(e){Gr.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){let e=this.getAll().filter(r=>r.state.isPaused);return Gr.batch(()=>Promise.all(e.map(r=>r.continue().catch(Ji))))}},Bm=new WeakMap,Zd=new WeakMap,fT=new WeakMap,p3e);function CM(t){return t.options.scope?.id}u();var Mm,Ay,Bc,Dm,Lm,SM,OY,m3e,NY=(m3e=class extends Pu{constructor(e,r){super();Fe(this,Lm);Fe(this,Mm);Fe(this,Ay);Fe(this,Bc);Fe(this,Dm);Ae(this,Mm,e),this.setOptions(r),this.bindMethods(),gt(this,Lm,SM).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let r=this.options;this.options=V(this,Mm).defaultMutationOptions(e),T6(this.options,r)||V(this,Mm).getMutationCache().notify({type:\\\"observerOptionsUpdated\\\",mutation:V(this,Bc),observer:this}),r?.mutationKey&&this.options.mutationKey&&yp(r.mutationKey)!==yp(this.options.mutationKey)?this.reset():V(this,Bc)?.state.status===\\\"pending\\\"&&V(this,Bc).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||V(this,Bc)?.removeObserver(this)}onMutationUpdate(e){gt(this,Lm,SM).call(this),gt(this,Lm,OY).call(this,e)}getCurrentResult(){return V(this,Ay)}reset(){V(this,Bc)?.removeObserver(this),Ae(this,Bc,void 0),gt(this,Lm,SM).call(this),gt(this,Lm,OY).call(this)}mutate(e,r){return Ae(this,Dm,r),V(this,Bc)?.removeObserver(this),Ae(this,Bc,V(this,Mm).getMutationCache().build(V(this,Mm),this.options)),V(this,Bc).addObserver(this),V(this,Bc).execute(e)}},Mm=new WeakMap,Ay=new WeakMap,Bc=new WeakMap,Dm=new WeakMap,Lm=new WeakSet,SM=function(){let e=V(this,Bc)?.state??PY();Ae(this,Ay,{...e,isPending:e.status===\\\"pending\\\",isSuccess:e.status===\\\"success\\\",isError:e.status===\\\"error\\\",isIdle:e.status===\\\"idle\\\",mutate:this.mutate,reset:this.reset})},OY=function(e){Gr.batch(()=>{if(V(this,Dm)&&this.hasListeners()){let r=V(this,Ay).variables,n=V(this,Ay).context,i={client:V(this,Mm),meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===\\\"success\\\"){try{V(this,Dm).onSuccess?.(e.data,r,n,i)}catch(s){Promise.reject(s)}try{V(this,Dm).onSettled?.(e.data,null,r,n,i)}catch(s){Promise.reject(s)}}else if(e?.type===\\\"error\\\"){try{V(this,Dm).onError?.(e.error,r,n,i)}catch(s){Promise.reject(s)}try{V(this,Dm).onSettled?.(void 0,e.error,r,n,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(r=>{r(V(this,Ay))})})},m3e);u();var xp,g3e,y3e=(g3e=class extends Pu{constructor(e={}){super();Fe(this,xp);this.config=e,Ae(this,xp,new Map)}build(e,r,n){let i=r.queryKey,s=r.queryHash??iT(i,r),o=this.get(s);return o||(o=new i3e({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){V(this,xp).has(e.queryHash)||(V(this,xp).set(e.queryHash,e),this.notify({type:\\\"added\\\",query:e}))}remove(e){let r=V(this,xp).get(e.queryHash);r&&(e.destroy(),r===e&&V(this,xp).delete(e.queryHash),this.notify({type:\\\"removed\\\",query:e}))}clear(){Gr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return V(this,xp).get(e)}getAll(){return[...V(this,xp).values()]}find(e){let r={exact:!0,...e};return this.getAll().find(n=>bM(r,n))}findAll(e={}){let r=this.getAll();return Object.keys(e).length>0?r.filter(n=>bM(e,n)):r}notify(e){Gr.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){Gr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xp=new WeakMap,g3e);u();var Yi,Ty,Iy,U6,F6,Ry,j6,H6,b3e,kY=(b3e=class{constructor(t={}){Fe(this,Yi);Fe(this,Ty);Fe(this,Iy);Fe(this,U6);Fe(this,F6);Fe(this,Ry);Fe(this,j6);Fe(this,H6);Ae(this,Yi,t.queryCache||new y3e),Ae(this,Ty,t.mutationCache||new h3e),Ae(this,Iy,t.defaultOptions||{}),Ae(this,U6,new Map),Ae(this,F6,new Map),Ae(this,Ry,0)}mount(){T8(this,Ry)._++,V(this,Ry)===1&&(Ae(this,j6,A6.subscribe(async t=>{t&&(await this.resumePausedMutations(),V(this,Yi).onFocus())})),Ae(this,H6,N6.subscribe(async t=>{t&&(await this.resumePausedMutations(),V(this,Yi).onOnline())})))}unmount(){var t,e;T8(this,Ry)._--,V(this,Ry)===0&&((t=V(this,j6))==null||t.call(this),Ae(this,j6,void 0),(e=V(this,H6))==null||e.call(this),Ae(this,H6,void 0))}isFetching(t){return V(this,Yi).findAll({...t,fetchStatus:\\\"fetching\\\"}).length}isMutating(t){return V(this,Ty).findAll({...t,status:\\\"pending\\\"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return V(this,Yi).get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),r=V(this,Yi).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Kd(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return V(this,Yi).findAll(t).map(({queryKey:e,state:r})=>{let n=r.data;return[e,n]})}setQueryData(t,e,r){let n=this.defaultQueryOptions({queryKey:t}),s=V(this,Yi).get(n.queryHash)?.state.data,o=G6e(e,s);if(o!==void 0)return V(this,Yi).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return Gr.batch(()=>V(this,Yi).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return V(this,Yi).get(e.queryHash)?.state}removeQueries(t){let e=V(this,Yi);Gr.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){let r=V(this,Yi);return Gr.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:\\\"active\\\",...t},e)))}cancelQueries(t,e={}){let r={revert:!0,...e},n=Gr.batch(()=>V(this,Yi).findAll(t).map(i=>i.cancel(r)));return Promise.all(n).then(Ji).catch(Ji)}invalidateQueries(t,e={}){return Gr.batch(()=>(V(this,Yi).findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType===\\\"none\\\"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??\\\"active\\\"},e)))}refetchQueries(t,e={}){let r={...e,cancelRefetch:e.cancelRefetch??!0},n=Gr.batch(()=>V(this,Yi).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ji)),i.state.fetchStatus===\\\"paused\\\"?Promise.resolve():s}));return Promise.all(n).then(Ji)}fetchQuery(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let r=V(this,Yi).build(this,e);return r.isStaleByTime(Kd(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ji).catch(Ji)}fetchInfiniteQuery(t){return t.behavior=RY(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ji).catch(Ji)}ensureInfiniteQueryData(t){return t.behavior=RY(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return N6.isOnline()?V(this,Ty).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Yi)}getMutationCache(){return V(this,Ty)}getDefaultOptions(){return V(this,Iy)}setDefaultOptions(t){Ae(this,Iy,t)}setQueryDefaults(t,e){V(this,U6).set(yp(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...V(this,U6).values()],r={};return e.forEach(n=>{jw(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){V(this,F6).set(yp(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...V(this,F6).values()],r={};return e.forEach(n=>{jw(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;let e={...V(this,Iy).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=iT(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!==\\\"always\\\"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode=\\\"offlineFirst\\\"),e.queryFn===I6&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...V(this,Iy).mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){V(this,Yi).clear(),V(this,Ty).clear()}},Yi=new WeakMap,Ty=new WeakMap,Iy=new WeakMap,U6=new WeakMap,F6=new WeakMap,Ry=new WeakMap,j6=new WeakMap,H6=new WeakMap,b3e);function BY(t){return JSON.stringify(t,(e,r)=>Kpt(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):typeof r==\\\"bigint\\\"?r.toString():r)}function Kpt(t){if(!w3e(t))return!1;let e=t.constructor;if(typeof e>\\\"u\\\")return!0;let r=e.prototype;return!(!w3e(r)||!r.hasOwnProperty(\\\"isPrototypeOf\\\"))}function w3e(t){return Object.prototype.toString.call(t)===\\\"[object Object]\\\"}function v3e(t){let{_defaulted:e,behavior:r,gcTime:n,initialData:i,initialDataUpdatedAt:s,maxPages:o,meta:a,networkMode:c,queryFn:l,queryHash:d,queryKey:f,queryKeyHashFn:p,retry:h,retryDelay:m,structuralSharing:g,getPreviousPageParam:w,getNextPageParam:v,initialPageParam:b,_optimisticResults:_,enabled:S,notifyOnChangeProps:T,placeholderData:N,refetchInterval:O,refetchIntervalInBackground:L,refetchOnMount:B,refetchOnReconnect:H,refetchOnWindowFocus:M,retryOnMount:F,select:R,staleTime:y,suspense:E,throwOnError:C,config:I,connector:P,query:k,...U}=t;return U}u();function MY(t){return{mutationFn(e){return c6e(t,e)},mutationKey:[\\\"connect\\\"]}}u();function DY(t){return{mutationFn(e){return u6e(t,e)},mutationKey:[\\\"disconnect\\\"]}}u();function LY(t,e={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=e,{connectorUid:i,scopeKey:s,...o}=r[1];return d6e(t,{...o,connector:n})},queryKey:x3e(e)}}function x3e(t={}){let{connector:e,...r}=t;return[\\\"walletClient\\\",{...v3e(r),connectorUid:e?.uid}]}u();function UY(t){return{mutationFn(e){return p6e(t,e)},mutationKey:[\\\"switchChain\\\"]}}u();u();u();var q6=Me(Vi(),1),S3e=Me(Tl(),1),FY=q6.createContext(void 0),Zw=t=>{let e=q6.useContext(FY);if(t)return t;if(!e)throw new Error(\\\"No QueryClient set, use QueryClientProvider to set one\\\");return e},jY=({client:t,children:e})=>(q6.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,S3e.jsx)(FY.Provider,{value:t,children:e}));u();var TM=Me(Vi(),1),A3e=TM.createContext(!1),T3e=()=>TM.useContext(A3e),ETr=A3e.Provider;u();var pT=Me(Vi(),1),Jpt=Me(Tl(),1);function Ypt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Xpt=pT.createContext(Ypt()),I3e=()=>pT.useContext(Xpt);u();var R3e=Me(Vi(),1);var P3e=(t,e,r)=>{let n=r?.state.error&&typeof t.throwOnError==\\\"function\\\"?R6(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||n)&&(e.isReset()||(t.retryOnMount=!1))},O3e=t=>{R3e.useEffect(()=>{t.clearReset()},[t])},N3e=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(i&&t.data===void 0||R6(r,[t.error,n]));u();var k3e=t=>{if(t.suspense){let r=i=>i===\\\"static\\\"?i:Math.max(i??1e3,1e3),n=t.staleTime;t.staleTime=typeof n==\\\"function\\\"?(...i)=>r(n(...i)):r(n),typeof t.gcTime==\\\"number\\\"&&(t.gcTime=Math.max(t.gcTime,1e3))}},B3e=(t,e)=>t.isLoading&&t.isFetching&&!e,M3e=(t,e)=>t?.suspense&&e.isPending,HY=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});u();u();var Py=Me(Vi(),1);function D3e(t,e,r){let n=T3e(),i=I3e(),s=Zw(r),o=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let a=s.getQueryCache().get(o.queryHash);o._optimisticResults=n?\\\"isRestoring\\\":\\\"optimistic\\\",k3e(o),P3e(o,i,a),O3e(i);let c=!s.getQueryCache().get(o.queryHash),[l]=Py.useState(()=>new e(s,o)),d=l.getOptimisticResult(o),f=!n&&t.subscribed!==!1;if(Py.useSyncExternalStore(Py.useCallback(p=>{let h=f?l.subscribe(Gr.batchCalls(p)):Ji;return l.updateResult(),h},[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Py.useEffect(()=>{l.setOptions(o)},[o,l]),M3e(o,d))throw HY(o,l,i);if(N3e({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw d.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!bp.isServer()&&B3e(d,n)&&(c?HY(o,l,i):a?.promise)?.catch(Ji).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?d:l.trackResult(d)}function qY(t,e){return D3e(t,TY,e)}u();var Um=Me(Vi(),1);function Oy(t,e){let r=Zw(e),[n]=Um.useState(()=>new NY(r,t));Um.useEffect(()=>{n.setOptions(t)},[n,t]);let i=Um.useSyncExternalStore(Um.useCallback(o=>n.subscribe(Gr.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=Um.useCallback((o,a)=>{n.mutate(o,a).catch(Ji)},[n]);if(i.error&&R6(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function L3e(t){let e=qY({...t,queryKeyHashFn:BY});return e.queryKey=t.queryKey,e}u();var U3e=Me(Vi(),1);function F3e(t={}){let e=oo(t);return(0,U3e.useSyncExternalStore)(r=>JJ(e,{onChange:r}),()=>XB(e),()=>XB(e))}u();var j3e=Me(Vi(),1);function H3e(t={}){let e=oo(t);return(0,j3e.useSyncExternalStore)(r=>uY(e,{onChange:r}),()=>eM(e),()=>eM(e))}u();var $3e=Me(Vi(),1);u();var q3e=Me(Vi(),1);function z3e(t={}){let e=oo(t);return(0,q3e.useSyncExternalStore)(r=>XJ(e,{onChange:r}),()=>nM(e),()=>nM(e))}function zY(t={}){let{mutation:e}=t,r=oo(t),n=MY(r),{mutate:i,mutateAsync:s,...o}=Oy({...e,...n});return(0,$3e.useEffect)(()=>r.subscribe(({status:a})=>a,(a,c)=>{c===\\\"connected\\\"&&a===\\\"disconnected\\\"&&o.reset()}),[r,o.reset]),{...o,connect:i,connectAsync:s,connectors:z3e({config:r})}}u();var V3e=Me(Vi(),1);function W3e(t={}){let e=oo(t);return(0,V3e.useSyncExternalStore)(r=>YJ(e,{onChange:r}),()=>x6(e),()=>x6(e))}u();function $Y(t={}){let{mutation:e}=t,r=oo(t),n=DY(r),{mutate:i,mutateAsync:s,...o}=Oy({...e,...n});return{...o,connectors:W3e({config:r}).map(a=>a.connector),disconnect:i,disconnectAsync:s}}u();function VY(t={}){let{mutation:e}=t,r=oo(t),n=UY(r),{mutate:i,mutateAsync:s,...o}=Oy({...e,...n});return{...o,chains:H3e({config:r}),switchChain:i,switchChainAsync:s}}u();var IM=Me(Vi(),1);function WY(t={}){let{query:e={},...r}=t,n=oo(r),i=Zw(),{address:s,connector:o,status:a}=rT({config:n}),c=F3e({config:n}),l=t.connector??o,{queryKey:d,...f}=LY(n,{...t,chainId:t.chainId??c,connector:t.connector??o}),p=!!((a===\\\"connected\\\"||a===\\\"reconnecting\\\"&&l?.getProvider)&&(e.enabled??!0)),h=(0,IM.useRef)(s);return(0,IM.useEffect)(()=>{let m=h.current;!s&&m?(i.removeQueries({queryKey:d}),h.current=void 0):s!==m&&(i.invalidateQueries({queryKey:d}),h.current=s)},[s,i]),L3e({...e,...f,queryKey:d,enabled:p,staleTime:Number.POSITIVE_INFINITY})}u();iX();var J_e={id:57073,name:\\\"Ink\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc-gel.inkonchain.com\\\"]}},blockExplorers:{default:{name:\\\"Ink Explorer\\\",url:\\\"https://explorer.inkonchain.com\\\"}}},Y_e={id:80094,name:\\\"Berachain\\\",nativeCurrency:{name:\\\"BERA\\\",symbol:\\\"BERA\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.berachain.com\\\"]}},blockExplorers:{default:{name:\\\"Berascan\\\",url:\\\"https://berascan.com\\\"}}},X_e={id:130,name:\\\"Unichain\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://mainnet.unichain.org\\\"]}},blockExplorers:{default:{name:\\\"Unichain Explorer\\\",url:\\\"https://explorer.unichain.org\\\"}}},eCe={id:9745,name:\\\"Plasma\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.plasma.io\\\"]}},blockExplorers:{default:{name:\\\"Plasma Explorer\\\",url:\\\"https://explorer.plasma.io\\\"}}},tCe={id:143,name:\\\"Monad\\\",nativeCurrency:{name:\\\"MON\\\",symbol:\\\"MON\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.monad.xyz\\\"]}},blockExplorers:{default:{name:\\\"Monad Explorer\\\",url:\\\"https://explorer.monad.xyz\\\"}}},rCe={id:196,name:\\\"XLayer\\\",nativeCurrency:{name:\\\"OKB\\\",symbol:\\\"OKB\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.xlayer.tech\\\"]}},blockExplorers:{default:{name:\\\"XLayer Explorer\\\",url:\\\"https://www.okx.com/explorer/xlayer\\\"}}},nCe={id:988,name:\\\"Stable\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.stable.io\\\"]}},blockExplorers:{default:{name:\\\"Stable Explorer\\\",url:\\\"https://explorer.stable.io\\\"}}},iCe={id:999,name:\\\"HyperEVM\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.hyperevm.xyz\\\"]}},blockExplorers:{default:{name:\\\"HyperEVM Explorer\\\",url:\\\"https://explorer.hyperevm.xyz\\\"}}},sCe={id:4326,name:\\\"MegaETH\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.megaeth.com\\\"]}},blockExplorers:{default:{name:\\\"MegaETH Explorer\\\",url:\\\"https://explorer.megaeth.com\\\"}}},oCe={id:21e6,name:\\\"Corn\\\",nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://rpc.corn.xyz\\\"]}},blockExplorers:{default:{name:\\\"Corn Explorer\\\",url:\\\"https://explorer.corn.xyz\\\"}}},aCe={id:8217,name:\\\"Kaia\\\",nativeCurrency:{name:\\\"KAIA\\\",symbol:\\\"KAIA\\\",decimals:18},rpcUrls:{default:{http:[\\\"https://public-en.node.kaia.io\\\"]}},blockExplorers:{default:{name:\\\"Kaiascan\\\",url:\\\"https://kaiascan.io\\\"}}},cCe={[tD.id]:tD,[Qw.id]:Qw,[LM.id]:LM,[sD.id]:sD,[aD.id]:aD,[$M.id]:$M,[FM.id]:FM,[JM.id]:JM,[GM.id]:GM,[ZM.id]:ZM,[XM.id]:XM,[uD.id]:uD,[xT.id]:xT,[rD.id]:rD,[qM.id]:qM,[iD.id]:iD,[hD.id]:hD,[QM.id]:QM,[lD.id]:lD,[fD.id]:fD,[KM.id]:KM,[J_e.id]:J_e,[Y_e.id]:Y_e,[X_e.id]:X_e,[eCe.id]:eCe,[tCe.id]:tCe,[rCe.id]:rCe,[nCe.id]:nCe,[iCe.id]:iCe,[sCe.id]:sCe,[oCe.id]:oCe,[aCe.id]:aCe,[pD.id]:pD,[yT.id]:yT,[UM.id]:UM,[oD.id]:oD,[cD.id]:cD,[VM.id]:VM,[jM.id]:jM,[eD.id]:eD,[dD.id]:dD,[ET.id]:ET,[nD.id]:nD,[zM.id]:zM,[gD.id]:gD};function lCe(t){return cCe[t]}function yht(t){return{id:t,name:`Chain ${t}`,nativeCurrency:{name:\\\"Ether\\\",symbol:\\\"ETH\\\",decimals:18},rpcUrls:{default:{http:[]}}}}function uCe(t){return cCe[t]??yht(t)}u();u();u();var CT={TransferWithAuthorization:[{name:\\\"from\\\",type:\\\"address\\\"},{name:\\\"to\\\",type:\\\"address\\\"},{name:\\\"value\\\",type:\\\"uint256\\\"},{name:\\\"validAfter\\\",type:\\\"uint256\\\"},{name:\\\"validBefore\\\",type:\\\"uint256\\\"},{name:\\\"nonce\\\",type:\\\"bytes32\\\"}]};u();u();gX();vD();function bX(t){return{base:8453,\\\"base-sepolia\\\":84532,ethereum:1,sepolia:11155111,polygon:137,\\\"polygon-amoy\\\":80002}[t]||1}function _D(){let t=(typeof globalThis.crypto<\\\"u\\\",globalThis.crypto);if(!t)throw new Error(\\\"Crypto API not available\\\");return IT(t.getRandomValues(new Uint8Array(32)))}u();var Aht=Object.defineProperty,Tht=(t,e,r)=>e in t?Aht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,RT=(t,e,r)=>Tht(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r);var wX=class{constructor(t){this.signer=t,RT(this,\\\"scheme\\\",\\\"exact\\\")}async createPaymentPayload(t,e){let r=_D(),n=Math.floor(Date.now()/1e3),i={from:this.signer.address,to:Jd(e.payTo),value:e.amount,validAfter:(n-600).toString(),validBefore:(n+e.maxTimeoutSeconds).toString(),nonce:r},s=await this.signAuthorization(i,e);return{t402Version:t,payload:{authorization:i,signature:s}}}async signAuthorization(t,e){let r=parseInt(e.network.split(\\\":\\\")[1]);if(!e.extra?.name||!e.extra?.version)throw new Error(`EIP-712 domain parameters (name, version) are required in payment requirements for asset ${e.asset}`);let{name:n,version:i}=e.extra,s={name:n,version:i,chainId:r,verifyingContract:Jd(e.asset)},o={from:Jd(t.from),to:Jd(t.to),value:BigInt(t.value),validAfter:BigInt(t.validAfter),validBefore:BigInt(t.validBefore),nonce:t.nonce};return await this.signer.signTypedData({domain:s,types:CT,primaryType:\\\"TransferWithAuthorization\\\",message:o})}};u();var SCe=[\\\"abstract\\\",\\\"abstract-testnet\\\",\\\"base-sepolia\\\",\\\"base\\\",\\\"avalanche-fuji\\\",\\\"avalanche\\\",\\\"iotex\\\",\\\"sei\\\",\\\"sei-testnet\\\",\\\"polygon\\\",\\\"polygon-amoy\\\",\\\"peaq\\\",\\\"story\\\",\\\"educhain\\\",\\\"skale-base-sepolia\\\"];u();var ACe=class{constructor(t){this.signer=t,RT(this,\\\"scheme\\\",\\\"exact\\\")}async createPaymentPayload(t,e){let r=e,n=_D(),i=Math.floor(Date.now()/1e3),s={from:this.signer.address,to:Jd(r.payTo),value:r.maxAmountRequired,validAfter:(i-600).toString(),validBefore:(i+r.maxTimeoutSeconds).toString(),nonce:n},o=await this.signAuthorization(s,r),a={authorization:s,signature:o};return{t402Version:t,scheme:r.scheme,network:r.network,payload:a}}async signAuthorization(t,e){let r=bX(e.network);if(!e.extra?.name||!e.extra?.version)throw new Error(`EIP-712 domain parameters (name, version) are required in payment requirements for asset ${e.asset}`);let{name:n,version:i}=e.extra,s={name:n,version:i,chainId:r,verifyingContract:Jd(e.asset)},o={from:Jd(t.from),to:Jd(t.to),value:BigInt(t.value),validAfter:BigInt(t.validAfter),validBefore:BigInt(t.validBefore),nonce:t.nonce};return await this.signer.signTypedData({domain:s,types:CT,primaryType:\\\"TransferWithAuthorization\\\",message:o})}};u();function TCe(t,e){return e.networks&&e.networks.length>0?e.networks.forEach(r=>{t.register(r,new wX(e.signer))}):t.register(\\\"eip155:*\\\",new wX(e.signer)),SCe.forEach(r=>{t.registerV1(r,new ACe(e.signer))}),e.policies&&e.policies.forEach(r=>{t.registerPolicy(r)}),t}u();u();u();u();var Iht=Object.defineProperty,Rht=(t,e,r)=>e in t?Iht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Hm=(t,e,r)=>Rht(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,r);var vX=2;u();u();var it={};ue(it,{BRAND:()=>tmt,DIRTY:()=>Yw,EMPTY_PATH:()=>kht,INVALID:()=>nt,NEVER:()=>Fmt,OK:()=>wa,ParseStatus:()=>jo,Schema:()=>kt,ZodAny:()=>My,ZodArray:()=>Vm,ZodBigInt:()=>ev,ZodBoolean:()=>tv,ZodBranded:()=>OT,ZodCatch:()=>fv,ZodDate:()=>rv,ZodDefault:()=>dv,ZodDiscriminatedUnion:()=>AD,ZodEffects:()=>Bu,ZodEnum:()=>lv,ZodError:()=>Mc,ZodFirstPartyTypeKind:()=>at,ZodFunction:()=>ID,ZodIntersection:()=>ov,ZodIssueCode:()=>ve,ZodLazy:()=>av,ZodLiteral:()=>cv,ZodMap:()=>Y6,ZodNaN:()=>e3,ZodNativeEnum:()=>uv,ZodNever:()=>Yd,ZodNull:()=>iv,ZodNullable:()=>Cp,ZodNumber:()=>Xw,ZodObject:()=>Dc,ZodOptional:()=>Nu,ZodParsedType:()=>Be,ZodPipeline:()=>NT,ZodPromise:()=>Dy,ZodReadonly:()=>pv,ZodRecord:()=>TD,ZodSchema:()=>kt,ZodSet:()=>X6,ZodString:()=>By,ZodSymbol:()=>Q6,ZodTransformer:()=>Bu,ZodTuple:()=>_p,ZodType:()=>kt,ZodUndefined:()=>nv,ZodUnion:()=>sv,ZodUnknown:()=>$m,ZodVoid:()=>J6,addIssueToContext:()=>Pe,any:()=>umt,array:()=>hmt,bigint:()=>smt,boolean:()=>UCe,coerce:()=>Umt,custom:()=>MCe,date:()=>omt,datetimeRegex:()=>kCe,defaultErrorMap:()=>qm,discriminatedUnion:()=>bmt,effect:()=>Pmt,enum:()=>Tmt,function:()=>Cmt,getErrorMap:()=>G6,getParsedType:()=>Ep,instanceof:()=>nmt,intersection:()=>wmt,isAborted:()=>CD,isAsync:()=>K6,isDirty:()=>SD,isValid:()=>ky,late:()=>rmt,lazy:()=>Smt,literal:()=>Amt,makeIssue:()=>PT,map:()=>Emt,nan:()=>imt,nativeEnum:()=>Imt,never:()=>fmt,null:()=>lmt,nullable:()=>Nmt,number:()=>LCe,object:()=>mmt,objectUtil:()=>xX,oboolean:()=>Lmt,onumber:()=>Dmt,optional:()=>Omt,ostring:()=>Mmt,pipeline:()=>Bmt,preprocess:()=>kmt,promise:()=>Rmt,quotelessJson:()=>Pht,record:()=>xmt,set:()=>_mt,setErrorMap:()=>Nht,strictObject:()=>gmt,string:()=>DCe,symbol:()=>amt,transformer:()=>Pmt,tuple:()=>vmt,undefined:()=>cmt,union:()=>ymt,unknown:()=>dmt,util:()=>Kt,void:()=>pmt});u();u();u();u();u();var Kt;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!=\\\"number\\\"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys==\\\"function\\\"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger==\\\"function\\\"?i=>Number.isInteger(i):i=>typeof i==\\\"number\\\"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=\\\" | \\\"){return i.map(o=>typeof o==\\\"string\\\"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s==\\\"bigint\\\"?s.toString():s})(Kt||(Kt={}));var xX;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(xX||(xX={}));var Be=Kt.arrayToEnum([\\\"string\\\",\\\"nan\\\",\\\"number\\\",\\\"integer\\\",\\\"float\\\",\\\"boolean\\\",\\\"date\\\",\\\"bigint\\\",\\\"symbol\\\",\\\"function\\\",\\\"undefined\\\",\\\"null\\\",\\\"array\\\",\\\"object\\\",\\\"unknown\\\",\\\"promise\\\",\\\"void\\\",\\\"never\\\",\\\"map\\\",\\\"set\\\"]),Ep=t=>{switch(typeof t){case\\\"undefined\\\":return Be.undefined;case\\\"string\\\":return Be.string;case\\\"number\\\":return Number.isNaN(t)?Be.nan:Be.number;case\\\"boolean\\\":return Be.boolean;case\\\"function\\\":return Be.function;case\\\"bigint\\\":return Be.bigint;case\\\"symbol\\\":return Be.symbol;case\\\"object\\\":return Array.isArray(t)?Be.array:t===null?Be.null:t.then&&typeof t.then==\\\"function\\\"&&t.catch&&typeof t.catch==\\\"function\\\"?Be.promise:typeof Map<\\\"u\\\"&&t instanceof Map?Be.map:typeof Set<\\\"u\\\"&&t instanceof Set?Be.set:typeof Date<\\\"u\\\"&&t instanceof Date?Be.date:Be.object;default:return Be.unknown}};var ve=Kt.arrayToEnum([\\\"invalid_type\\\",\\\"invalid_literal\\\",\\\"custom\\\",\\\"invalid_union\\\",\\\"invalid_union_discriminator\\\",\\\"invalid_enum_value\\\",\\\"unrecognized_keys\\\",\\\"invalid_arguments\\\",\\\"invalid_return_type\\\",\\\"invalid_date\\\",\\\"invalid_string\\\",\\\"too_small\\\",\\\"too_big\\\",\\\"invalid_intersection_types\\\",\\\"not_multiple_of\\\",\\\"not_finite\\\"]),Pht=t=>JSON.stringify(t,null,2).replace(/\\\"([^\\\"]+)\\\":/g,\\\"$1:\\\"),Mc=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name=\\\"ZodError\\\",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code===\\\"invalid_union\\\")o.unionErrors.map(i);else if(o.code===\\\"invalid_return_type\\\")i(o.returnTypeError);else if(o.code===\\\"invalid_arguments\\\")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return i(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Kt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Mc.create=t=>new Mc(t);var Oht=(t,e)=>{let r;switch(t.code){case ve.invalid_type:t.received===Be.undefined?r=\\\"Required\\\":r=`Expected ${t.expected}, received ${t.received}`;break;case ve.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Kt.jsonStringifyReplacer)}`;break;case ve.unrecognized_keys:r=`Unrecognized key(s) in object: ${Kt.joinValues(t.keys,\\\", \\\")}`;break;case ve.invalid_union:r=\\\"Invalid input\\\";break;case ve.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Kt.joinValues(t.options)}`;break;case ve.invalid_enum_value:r=`Invalid enum value. Expected ${Kt.joinValues(t.options)}, received '${t.received}'`;break;case ve.invalid_arguments:r=\\\"Invalid function arguments\\\";break;case ve.invalid_return_type:r=\\\"Invalid function return type\\\";break;case ve.invalid_date:r=\\\"Invalid date\\\";break;case ve.invalid_string:typeof t.validation==\\\"object\\\"?\\\"includes\\\"in t.validation?(r=`Invalid input: must include \\\"${t.validation.includes}\\\"`,typeof t.validation.position==\\\"number\\\"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):\\\"startsWith\\\"in t.validation?r=`Invalid input: must start with \\\"${t.validation.startsWith}\\\"`:\\\"endsWith\\\"in t.validation?r=`Invalid input: must end with \\\"${t.validation.endsWith}\\\"`:Kt.assertNever(t.validation):t.validation!==\\\"regex\\\"?r=`Invalid ${t.validation}`:r=\\\"Invalid\\\";break;case ve.too_small:t.type===\\\"array\\\"?r=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"more than\\\"} ${t.minimum} element(s)`:t.type===\\\"string\\\"?r=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"over\\\"} ${t.minimum} character(s)`:t.type===\\\"number\\\"?r=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"bigint\\\"?r=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"date\\\"?r=`Date must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${new Date(Number(t.minimum))}`:r=\\\"Invalid input\\\";break;case ve.too_big:t.type===\\\"array\\\"?r=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"less than\\\"} ${t.maximum} element(s)`:t.type===\\\"string\\\"?r=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"under\\\"} ${t.maximum} character(s)`:t.type===\\\"number\\\"?r=`Number must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"bigint\\\"?r=`BigInt must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"date\\\"?r=`Date must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"smaller than or equal to\\\":\\\"smaller than\\\"} ${new Date(Number(t.maximum))}`:r=\\\"Invalid input\\\";break;case ve.custom:r=\\\"Invalid input\\\";break;case ve.invalid_intersection_types:r=\\\"Intersection results could not be merged\\\";break;case ve.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ve.not_finite:r=\\\"Number must be finite\\\";break;default:r=e.defaultError,Kt.assertNever(t)}return{message:r}},qm=Oht;var ICe=qm;function Nht(t){ICe=t}function G6(){return ICe}u();var PT=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a=\\\"\\\",c=n.filter(l=>!!l).slice().reverse();for(let l of c)a=l(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},kht=[];function Pe(t,e){let r=G6(),n=PT({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===qm?void 0:qm].filter(i=>!!i)});t.common.issues.push(n)}var jo=class t{constructor(){this.value=\\\"valid\\\"}dirty(){this.value===\\\"valid\\\"&&(this.value=\\\"dirty\\\")}abort(){this.value!==\\\"aborted\\\"&&(this.value=\\\"aborted\\\")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status===\\\"aborted\\\")return nt;i.status===\\\"dirty\\\"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status===\\\"aborted\\\"||o.status===\\\"aborted\\\")return nt;s.status===\\\"dirty\\\"&&e.dirty(),o.status===\\\"dirty\\\"&&e.dirty(),s.value!==\\\"__proto__\\\"&&(typeof o.value<\\\"u\\\"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},nt=Object.freeze({status:\\\"aborted\\\"}),Yw=t=>({status:\\\"dirty\\\",value:t}),wa=t=>({status:\\\"valid\\\",value:t}),CD=t=>t.status===\\\"aborted\\\",SD=t=>t.status===\\\"dirty\\\",ky=t=>t.status===\\\"valid\\\",K6=t=>typeof Promise<\\\"u\\\"&&t instanceof Promise;u();u();var Ve;(function(t){t.errToObj=e=>typeof e==\\\"string\\\"?{message:e}:e||{},t.toString=e=>typeof e==\\\"string\\\"?e:e?.message})(Ve||(Ve={}));var ku=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},RCe=(t,e)=>{if(ky(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error(\\\"Validation failed but no issues detected.\\\");return{success:!1,get error(){if(this._error)return this._error;let r=new Mc(t.common.issues);return this._error=r,this._error}}};function Tt(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use \\\"invalid_type_error\\\" or \\\"required_error\\\" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code===\\\"invalid_enum_value\\\"?{message:c??a.defaultError}:typeof a.data>\\\"u\\\"?{message:c??n??a.defaultError}:o.code!==\\\"invalid_type\\\"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}var kt=class{get description(){return this._def.description}_getType(e){return Ep(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ep(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new jo,ctx:{common:e.parent.common,data:e.data,parsedType:Ep(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(K6(r))throw new Error(\\\"Synchronous parse encountered promise.\\\");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ep(e)},i=this._parseSync({data:e,path:n.path,parent:n});return RCe(n,i)}\\\"~validate\\\"(e){let r={common:{issues:[],async:!!this[\\\"~standard\\\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ep(e)};if(!this[\\\"~standard\\\"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return ky(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes(\\\"encountered\\\")&&(this[\\\"~standard\\\"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>ky(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ep(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(K6(i)?i:Promise.resolve(i));return RCe(n,s)}refine(e,r){let n=i=>typeof r==\\\"string\\\"||typeof r>\\\"u\\\"?{message:r}:typeof r==\\\"function\\\"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:ve.custom,...n(i)});return typeof Promise<\\\"u\\\"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r==\\\"function\\\"?r(n,i):r),!1))}_refinement(e){return new Bu({schema:this,typeName:at.ZodEffects,effect:{type:\\\"refinement\\\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\\\"~standard\\\"]={version:1,vendor:\\\"zod\\\",validate:r=>this[\\\"~validate\\\"](r)}}optional(){return Nu.create(this,this._def)}nullable(){return Cp.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vm.create(this)}promise(){return Dy.create(this,this._def)}or(e){return sv.create([this,e],this._def)}and(e){return ov.create(this,e,this._def)}transform(e){return new Bu({...Tt(this._def),schema:this,typeName:at.ZodEffects,effect:{type:\\\"transform\\\",transform:e}})}default(e){let r=typeof e==\\\"function\\\"?e:()=>e;return new dv({...Tt(this._def),innerType:this,defaultValue:r,typeName:at.ZodDefault})}brand(){return new OT({typeName:at.ZodBranded,type:this,...Tt(this._def)})}catch(e){let r=typeof e==\\\"function\\\"?e:()=>e;return new fv({...Tt(this._def),innerType:this,catchValue:r,typeName:at.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return NT.create(this,e)}readonly(){return pv.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Bht=/^c[^\\\\s-]{8,}$/i,Mht=/^[0-9a-z]+$/,Dht=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lht=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,Uht=/^[a-z0-9_-]{21}$/i,Fht=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,jht=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,Hht=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,qht=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\",EX,zht=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$ht=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,Vht=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Wht=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ght=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Kht=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,OCe=\\\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\\\",Zht=new RegExp(`^${OCe}$`);function NCe(t){let e=\\\"[0-5]\\\\\\\\d\\\";t.precision?e=`${e}\\\\\\\\.\\\\\\\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\\\\\\\.\\\\\\\\d+)?`);let r=t.precision?\\\"+\\\":\\\"?\\\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${e})${r}`}function Qht(t){return new RegExp(`^${NCe(t)}$`)}function kCe(t){let e=`${OCe}T${NCe(t)}`,r=[];return r.push(t.local?\\\"Z?\\\":\\\"Z\\\"),t.offset&&r.push(\\\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\\\"),e=`${e}(${r.join(\\\"|\\\")})`,new RegExp(`^${e}$`)}function Jht(t,e){return!!((e===\\\"v4\\\"||!e)&&zht.test(t)||(e===\\\"v6\\\"||!e)&&Vht.test(t))}function Yht(t,e){if(!Fht.test(t))return!1;try{let[r]=t.split(\\\".\\\");if(!r)return!1;let n=r.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(r.length+(4-r.length%4)%4,\\\"=\\\"),i=JSON.parse(atob(n));return!(typeof i!=\\\"object\\\"||i===null||\\\"typ\\\"in i&&i?.typ!==\\\"JWT\\\"||!i.alg||e&&i.alg!==e)}catch{return!1}}function Xht(t,e){return!!((e===\\\"v4\\\"||!e)&&$ht.test(t)||(e===\\\"v6\\\"||!e)&&Wht.test(t))}var By=class t extends kt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Be.string){let s=this._getOrReturnCtx(e);return Pe(s,{code:ve.invalid_type,expected:Be.string,received:s.parsedType}),nt}let n=new jo,i;for(let s of this._def.checks)if(s.kind===\\\"min\\\")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.too_small,minimum:s.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind===\\\"max\\\")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.too_big,maximum:s.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind===\\\"length\\\"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?Pe(i,{code:ve.too_big,maximum:s.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:s.message}):a&&Pe(i,{code:ve.too_small,minimum:s.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind===\\\"email\\\")Hht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"email\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"emoji\\\")EX||(EX=new RegExp(qht,\\\"u\\\")),EX.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"emoji\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"uuid\\\")Lht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"uuid\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"nanoid\\\")Uht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"nanoid\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"cuid\\\")Bht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"cuid\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"cuid2\\\")Mht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"cuid2\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"ulid\\\")Dht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"ulid\\\",code:ve.invalid_string,message:s.message}),n.dirty());else if(s.kind===\\\"url\\\")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"url\\\",code:ve.invalid_string,message:s.message}),n.dirty()}else s.kind===\\\"regex\\\"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"regex\\\",code:ve.invalid_string,message:s.message}),n.dirty())):s.kind===\\\"trim\\\"?e.data=e.data.trim():s.kind===\\\"includes\\\"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind===\\\"toLowerCase\\\"?e.data=e.data.toLowerCase():s.kind===\\\"toUpperCase\\\"?e.data=e.data.toUpperCase():s.kind===\\\"startsWith\\\"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind===\\\"endsWith\\\"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind===\\\"datetime\\\"?kCe(s).test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:\\\"datetime\\\",message:s.message}),n.dirty()):s.kind===\\\"date\\\"?Zht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:\\\"date\\\",message:s.message}),n.dirty()):s.kind===\\\"time\\\"?Qht(s).test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.invalid_string,validation:\\\"time\\\",message:s.message}),n.dirty()):s.kind===\\\"duration\\\"?jht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"duration\\\",code:ve.invalid_string,message:s.message}),n.dirty()):s.kind===\\\"ip\\\"?Jht(e.data,s.version)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"ip\\\",code:ve.invalid_string,message:s.message}),n.dirty()):s.kind===\\\"jwt\\\"?Yht(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"jwt\\\",code:ve.invalid_string,message:s.message}),n.dirty()):s.kind===\\\"cidr\\\"?Xht(e.data,s.version)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"cidr\\\",code:ve.invalid_string,message:s.message}),n.dirty()):s.kind===\\\"base64\\\"?Ght.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"base64\\\",code:ve.invalid_string,message:s.message}),n.dirty()):s.kind===\\\"base64url\\\"?Kht.test(e.data)||(i=this._getOrReturnCtx(e,i),Pe(i,{validation:\\\"base64url\\\",code:ve.invalid_string,message:s.message}),n.dirty()):Kt.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ve.invalid_string,...Ve.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\\\"email\\\",...Ve.errToObj(e)})}url(e){return this._addCheck({kind:\\\"url\\\",...Ve.errToObj(e)})}emoji(e){return this._addCheck({kind:\\\"emoji\\\",...Ve.errToObj(e)})}uuid(e){return this._addCheck({kind:\\\"uuid\\\",...Ve.errToObj(e)})}nanoid(e){return this._addCheck({kind:\\\"nanoid\\\",...Ve.errToObj(e)})}cuid(e){return this._addCheck({kind:\\\"cuid\\\",...Ve.errToObj(e)})}cuid2(e){return this._addCheck({kind:\\\"cuid2\\\",...Ve.errToObj(e)})}ulid(e){return this._addCheck({kind:\\\"ulid\\\",...Ve.errToObj(e)})}base64(e){return this._addCheck({kind:\\\"base64\\\",...Ve.errToObj(e)})}base64url(e){return this._addCheck({kind:\\\"base64url\\\",...Ve.errToObj(e)})}jwt(e){return this._addCheck({kind:\\\"jwt\\\",...Ve.errToObj(e)})}ip(e){return this._addCheck({kind:\\\"ip\\\",...Ve.errToObj(e)})}cidr(e){return this._addCheck({kind:\\\"cidr\\\",...Ve.errToObj(e)})}datetime(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"datetime\\\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\\\"datetime\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ve.errToObj(e?.message)})}date(e){return this._addCheck({kind:\\\"date\\\",message:e})}time(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"time\\\",precision:null,message:e}):this._addCheck({kind:\\\"time\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,...Ve.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\\\"duration\\\",...Ve.errToObj(e)})}regex(e,r){return this._addCheck({kind:\\\"regex\\\",regex:e,...Ve.errToObj(r)})}includes(e,r){return this._addCheck({kind:\\\"includes\\\",value:e,position:r?.position,...Ve.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:\\\"startsWith\\\",value:e,...Ve.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:\\\"endsWith\\\",value:e,...Ve.errToObj(r)})}min(e,r){return this._addCheck({kind:\\\"min\\\",value:e,...Ve.errToObj(r)})}max(e,r){return this._addCheck({kind:\\\"max\\\",value:e,...Ve.errToObj(r)})}length(e,r){return this._addCheck({kind:\\\"length\\\",value:e,...Ve.errToObj(r)})}nonempty(e){return this.min(1,Ve.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"trim\\\"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toLowerCase\\\"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toUpperCase\\\"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===\\\"datetime\\\")}get isDate(){return!!this._def.checks.find(e=>e.kind===\\\"date\\\")}get isTime(){return!!this._def.checks.find(e=>e.kind===\\\"time\\\")}get isDuration(){return!!this._def.checks.find(e=>e.kind===\\\"duration\\\")}get isEmail(){return!!this._def.checks.find(e=>e.kind===\\\"email\\\")}get isURL(){return!!this._def.checks.find(e=>e.kind===\\\"url\\\")}get isEmoji(){return!!this._def.checks.find(e=>e.kind===\\\"emoji\\\")}get isUUID(){return!!this._def.checks.find(e=>e.kind===\\\"uuid\\\")}get isNANOID(){return!!this._def.checks.find(e=>e.kind===\\\"nanoid\\\")}get isCUID(){return!!this._def.checks.find(e=>e.kind===\\\"cuid\\\")}get isCUID2(){return!!this._def.checks.find(e=>e.kind===\\\"cuid2\\\")}get isULID(){return!!this._def.checks.find(e=>e.kind===\\\"ulid\\\")}get isIP(){return!!this._def.checks.find(e=>e.kind===\\\"ip\\\")}get isCIDR(){return!!this._def.checks.find(e=>e.kind===\\\"cidr\\\")}get isBase64(){return!!this._def.checks.find(e=>e.kind===\\\"base64\\\")}get isBase64url(){return!!this._def.checks.find(e=>e.kind===\\\"base64url\\\")}get minLength(){let e=null;for(let r of this._def.checks)r.kind===\\\"min\\\"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value);return e}};By.create=t=>new By({checks:[],typeName:at.ZodString,coerce:t?.coerce??!1,...Tt(t)});function emt(t,e){let r=(t.toString().split(\\\".\\\")[1]||\\\"\\\").length,n=(e.toString().split(\\\".\\\")[1]||\\\"\\\").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(\\\".\\\",\\\"\\\")),o=Number.parseInt(e.toFixed(i).replace(\\\".\\\",\\\"\\\"));return s%o/10**i}var Xw=class t extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Be.number){let s=this._getOrReturnCtx(e);return Pe(s,{code:ve.invalid_type,expected:Be.number,received:s.parsedType}),nt}let n,i=new jo;for(let s of this._def.checks)s.kind===\\\"int\\\"?Kt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.invalid_type,expected:\\\"integer\\\",received:\\\"float\\\",message:s.message}),i.dirty()):s.kind===\\\"min\\\"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.too_small,minimum:s.value,type:\\\"number\\\",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===\\\"max\\\"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.too_big,maximum:s.value,type:\\\"number\\\",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===\\\"multipleOf\\\"?emt(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind===\\\"finite\\\"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.not_finite,message:s.message}),i.dirty()):Kt.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit(\\\"min\\\",e,!0,Ve.toString(r))}gt(e,r){return this.setLimit(\\\"min\\\",e,!1,Ve.toString(r))}lte(e,r){return this.setLimit(\\\"max\\\",e,!0,Ve.toString(r))}lt(e,r){return this.setLimit(\\\"max\\\",e,!1,Ve.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ve.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\\\"int\\\",message:Ve.toString(e)})}positive(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!1,message:Ve.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!1,message:Ve.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!0,message:Ve.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!0,message:Ve.toString(e)})}multipleOf(e,r){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:Ve.toString(r)})}finite(e){return this._addCheck({kind:\\\"finite\\\",message:Ve.toString(e)})}safe(e){return this._addCheck({kind:\\\"min\\\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ve.toString(e)})._addCheck({kind:\\\"max\\\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ve.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind===\\\"min\\\"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===\\\"int\\\"||e.kind===\\\"multipleOf\\\"&&Kt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind===\\\"finite\\\"||n.kind===\\\"int\\\"||n.kind===\\\"multipleOf\\\")return!0;n.kind===\\\"min\\\"?(r===null||n.value>r)&&(r=n.value):n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Xw.create=t=>new Xw({checks:[],typeName:at.ZodNumber,coerce:t?.coerce||!1,...Tt(t)});var ev=class t extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Be.bigint)return this._getInvalidInput(e);let n,i=new jo;for(let s of this._def.checks)s.kind===\\\"min\\\"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.too_small,type:\\\"bigint\\\",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===\\\"max\\\"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.too_big,type:\\\"bigint\\\",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===\\\"multipleOf\\\"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),Pe(n,{code:ve.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Kt.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return Pe(r,{code:ve.invalid_type,expected:Be.bigint,received:r.parsedType}),nt}gte(e,r){return this.setLimit(\\\"min\\\",e,!0,Ve.toString(r))}gt(e,r){return this.setLimit(\\\"min\\\",e,!1,Ve.toString(r))}lte(e,r){return this.setLimit(\\\"max\\\",e,!0,Ve.toString(r))}lt(e,r){return this.setLimit(\\\"max\\\",e,!1,Ve.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ve.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!1,message:Ve.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!1,message:Ve.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!0,message:Ve.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!0,message:Ve.toString(e)})}multipleOf(e,r){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:Ve.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind===\\\"min\\\"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value);return e}};ev.create=t=>new ev({checks:[],typeName:at.ZodBigInt,coerce:t?.coerce??!1,...Tt(t)});var tv=class extends kt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Be.boolean){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.boolean,received:n.parsedType}),nt}return wa(e.data)}};tv.create=t=>new tv({typeName:at.ZodBoolean,coerce:t?.coerce||!1,...Tt(t)});var rv=class t extends kt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Be.date){let s=this._getOrReturnCtx(e);return Pe(s,{code:ve.invalid_type,expected:Be.date,received:s.parsedType}),nt}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return Pe(s,{code:ve.invalid_date}),nt}let n=new jo,i;for(let s of this._def.checks)s.kind===\\\"min\\\"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:\\\"date\\\"}),n.dirty()):s.kind===\\\"max\\\"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),Pe(i,{code:ve.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:\\\"date\\\"}),n.dirty()):Kt.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:\\\"min\\\",value:e.getTime(),message:Ve.toString(r)})}max(e,r){return this._addCheck({kind:\\\"max\\\",value:e.getTime(),message:Ve.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind===\\\"min\\\"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};rv.create=t=>new rv({checks:[],coerce:t?.coerce||!1,typeName:at.ZodDate,...Tt(t)});var Q6=class extends kt{_parse(e){if(this._getType(e)!==Be.symbol){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.symbol,received:n.parsedType}),nt}return wa(e.data)}};Q6.create=t=>new Q6({typeName:at.ZodSymbol,...Tt(t)});var nv=class extends kt{_parse(e){if(this._getType(e)!==Be.undefined){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.undefined,received:n.parsedType}),nt}return wa(e.data)}};nv.create=t=>new nv({typeName:at.ZodUndefined,...Tt(t)});var iv=class extends kt{_parse(e){if(this._getType(e)!==Be.null){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.null,received:n.parsedType}),nt}return wa(e.data)}};iv.create=t=>new iv({typeName:at.ZodNull,...Tt(t)});var My=class extends kt{constructor(){super(...arguments),this._any=!0}_parse(e){return wa(e.data)}};My.create=t=>new My({typeName:at.ZodAny,...Tt(t)});var $m=class extends kt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return wa(e.data)}};$m.create=t=>new $m({typeName:at.ZodUnknown,...Tt(t)});var Yd=class extends kt{_parse(e){let r=this._getOrReturnCtx(e);return Pe(r,{code:ve.invalid_type,expected:Be.never,received:r.parsedType}),nt}};Yd.create=t=>new Yd({typeName:at.ZodNever,...Tt(t)});var J6=class extends kt{_parse(e){if(this._getType(e)!==Be.undefined){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.void,received:n.parsedType}),nt}return wa(e.data)}};J6.create=t=>new J6({typeName:at.ZodVoid,...Tt(t)});var Vm=class t extends kt{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==Be.array)return Pe(r,{code:ve.invalid_type,expected:Be.array,received:r.parsedType}),nt;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(Pe(r,{code:o?ve.too_big:ve.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:\\\"array\\\",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(Pe(r,{code:ve.too_small,minimum:i.minLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(Pe(r,{code:ve.too_big,maximum:i.maxLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ku(r,o,r.path,a)))).then(o=>jo.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ku(r,o,r.path,a)));return jo.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:Ve.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:Ve.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:Ve.toString(r)}})}nonempty(e){return this.min(1,e)}};Vm.create=(t,e)=>new Vm({type:t,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray,...Tt(e)});function Z6(t){if(t instanceof Dc){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Nu.create(Z6(n))}return new Dc({...t._def,shape:()=>e})}else return t instanceof Vm?new Vm({...t._def,type:Z6(t.element)}):t instanceof Nu?Nu.create(Z6(t.unwrap())):t instanceof Cp?Cp.create(Z6(t.unwrap())):t instanceof _p?_p.create(t.items.map(e=>Z6(e))):t}var Dc=class t extends kt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Kt.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==Be.object){let l=this._getOrReturnCtx(e);return Pe(l,{code:ve.invalid_type,expected:Be.object,received:l.parsedType}),nt}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Yd&&this._def.unknownKeys===\\\"strip\\\"))for(let l in i.data)o.includes(l)||a.push(l);let c=[];for(let l of o){let d=s[l],f=i.data[l];c.push({key:{status:\\\"valid\\\",value:l},value:d._parse(new ku(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Yd){let l=this._def.unknownKeys;if(l===\\\"passthrough\\\")for(let d of a)c.push({key:{status:\\\"valid\\\",value:d},value:{status:\\\"valid\\\",value:i.data[d]}});else if(l===\\\"strict\\\")a.length>0&&(Pe(i,{code:ve.unrecognized_keys,keys:a}),n.dirty());else if(l!==\\\"strip\\\")throw new Error(\\\"Internal ZodObject error: invalid unknownKeys value.\\\")}else{let l=this._def.catchall;for(let d of a){let f=i.data[d];c.push({key:{status:\\\"valid\\\",value:d},value:l._parse(new ku(i,f,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let d of c){let f=await d.key,p=await d.value;l.push({key:f,value:p,alwaysSet:d.alwaysSet})}return l}).then(l=>jo.mergeObjectSync(n,l)):jo.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return Ve.errToObj,new t({...this._def,unknownKeys:\\\"strict\\\",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code===\\\"unrecognized_keys\\\"?{message:Ve.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:\\\"strip\\\"})}passthrough(){return new t({...this._def,unknownKeys:\\\"passthrough\\\"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:at.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of Kt.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of Kt.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return Z6(this)}partial(e){let r={};for(let n of Kt.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of Kt.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Nu;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return BCe(Kt.objectKeys(this.shape))}};Dc.create=(t,e)=>new Dc({shape:()=>t,unknownKeys:\\\"strip\\\",catchall:Yd.create(),typeName:at.ZodObject,...Tt(e)});Dc.strictCreate=(t,e)=>new Dc({shape:()=>t,unknownKeys:\\\"strict\\\",catchall:Yd.create(),typeName:at.ZodObject,...Tt(e)});Dc.lazycreate=(t,e)=>new Dc({shape:t,unknownKeys:\\\"strip\\\",catchall:Yd.create(),typeName:at.ZodObject,...Tt(e)});var sv=class extends kt{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status===\\\"valid\\\")return a.result;for(let a of s)if(a.result.status===\\\"dirty\\\")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Mc(a.ctx.common.issues));return Pe(r,{code:ve.invalid_union,unionErrors:o}),nt}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:l});if(d.status===\\\"valid\\\")return d;d.status===\\\"dirty\\\"&&!s&&(s={result:d,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Mc(c));return Pe(r,{code:ve.invalid_union,unionErrors:a}),nt}}get options(){return this._def.options}};sv.create=(t,e)=>new sv({options:t,typeName:at.ZodUnion,...Tt(e)});var zm=t=>t instanceof av?zm(t.schema):t instanceof Bu?zm(t.innerType()):t instanceof cv?[t.value]:t instanceof lv?t.options:t instanceof uv?Kt.objectValues(t.enum):t instanceof dv?zm(t._def.innerType):t instanceof nv?[void 0]:t instanceof iv?[null]:t instanceof Nu?[void 0,...zm(t.unwrap())]:t instanceof Cp?[null,...zm(t.unwrap())]:t instanceof OT||t instanceof pv?zm(t.unwrap()):t instanceof fv?zm(t._def.innerType):[],AD=class t extends kt{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==Be.object)return Pe(r,{code:ve.invalid_type,expected:Be.object,received:r.parsedType}),nt;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(Pe(r,{code:ve.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),nt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=zm(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \\\\`${e}\\\\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:at.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Tt(n)})}};function _X(t,e){let r=Ep(t),n=Ep(e);if(t===e)return{valid:!0,data:t};if(r===Be.object&&n===Be.object){let i=Kt.objectKeys(e),s=Kt.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=_X(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===Be.array&&n===Be.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=_X(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===Be.date&&n===Be.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var ov=class extends kt{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(CD(s)||CD(o))return nt;let a=_X(s.value,o.value);return a.valid?((SD(s)||SD(o))&&r.dirty(),{status:r.value,value:a.data}):(Pe(n,{code:ve.invalid_intersection_types}),nt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ov.create=(t,e,r)=>new ov({left:t,right:e,typeName:at.ZodIntersection,...Tt(r)});var _p=class t extends kt{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.array)return Pe(n,{code:ve.invalid_type,expected:Be.array,received:n.parsedType}),nt;if(n.data.length<this._def.items.length)return Pe(n,{code:ve.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),nt;!this._def.rest&&n.data.length>this._def.items.length&&(Pe(n,{code:ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ku(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>jo.mergeArray(r,o)):jo.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_p.create=(t,e)=>{if(!Array.isArray(t))throw new Error(\\\"You must pass an array of schemas to z.tuple([ ... ])\\\");return new _p({items:t,typeName:at.ZodTuple,rest:null,...Tt(e)})};var TD=class t extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.object)return Pe(n,{code:ve.invalid_type,expected:Be.object,received:n.parsedType}),nt;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ku(n,a,n.path,a)),value:o._parse(new ku(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?jo.mergeObjectAsync(r,i):jo.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof kt?new t({keyType:e,valueType:r,typeName:at.ZodRecord,...Tt(n)}):new t({keyType:By.create(),valueType:e,typeName:at.ZodRecord,...Tt(r)})}},Y6=class extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.map)return Pe(n,{code:ve.invalid_type,expected:Be.map,received:n.parsedType}),nt;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],l)=>({key:i._parse(new ku(n,a,n.path,[l,\\\"key\\\"])),value:s._parse(new ku(n,c,n.path,[l,\\\"value\\\"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let l=await c.key,d=await c.value;if(l.status===\\\"aborted\\\"||d.status===\\\"aborted\\\")return nt;(l.status===\\\"dirty\\\"||d.status===\\\"dirty\\\")&&r.dirty(),a.set(l.value,d.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let l=c.key,d=c.value;if(l.status===\\\"aborted\\\"||d.status===\\\"aborted\\\")return nt;(l.status===\\\"dirty\\\"||d.status===\\\"dirty\\\")&&r.dirty(),a.set(l.value,d.value)}return{status:r.value,value:a}}}};Y6.create=(t,e,r)=>new Y6({valueType:e,keyType:t,typeName:at.ZodMap,...Tt(r)});var X6=class t extends kt{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.set)return Pe(n,{code:ve.invalid_type,expected:Be.set,received:n.parsedType}),nt;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(Pe(n,{code:ve.too_small,minimum:i.minSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(Pe(n,{code:ve.too_big,maximum:i.maxSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let l=new Set;for(let d of c){if(d.status===\\\"aborted\\\")return nt;d.status===\\\"dirty\\\"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((c,l)=>s._parse(new ku(n,c,n.path,l)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:Ve.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:Ve.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};X6.create=(t,e)=>new X6({valueType:t,minSize:null,maxSize:null,typeName:at.ZodSet,...Tt(e)});var ID=class t extends kt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==Be.function)return Pe(r,{code:ve.invalid_type,expected:Be.function,received:r.parsedType}),nt;function n(a,c){return PT({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,G6(),qm].filter(l=>!!l),issueData:{code:ve.invalid_arguments,argumentsError:c}})}function i(a,c){return PT({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,G6(),qm].filter(l=>!!l),issueData:{code:ve.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Dy){let a=this;return wa(async function(...c){let l=new Mc([]),d=await a._def.args.parseAsync(c,s).catch(h=>{throw l.addIssue(n(c,h)),l}),f=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(f,s).catch(h=>{throw l.addIssue(i(f,h)),l})})}else{let a=this;return wa(function(...c){let l=a._def.args.safeParse(c,s);if(!l.success)throw new Mc([n(c,l.error)]);let d=Reflect.apply(o,this,l.data),f=a._def.returns.safeParse(d,s);if(!f.success)throw new Mc([i(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_p.create(e).rest($m.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||_p.create([]).rest($m.create()),returns:r||$m.create(),typeName:at.ZodFunction,...Tt(n)})}},av=class extends kt{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};av.create=(t,e)=>new av({getter:t,typeName:at.ZodLazy,...Tt(e)});var cv=class extends kt{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return Pe(r,{received:r.data,code:ve.invalid_literal,expected:this._def.value}),nt}return{status:\\\"valid\\\",value:e.data}}get value(){return this._def.value}};cv.create=(t,e)=>new cv({value:t,typeName:at.ZodLiteral,...Tt(e)});function BCe(t,e){return new lv({values:t,typeName:at.ZodEnum,...Tt(e)})}var lv=class t extends kt{_parse(e){if(typeof e.data!=\\\"string\\\"){let r=this._getOrReturnCtx(e),n=this._def.values;return Pe(r,{expected:Kt.joinValues(n),received:r.parsedType,code:ve.invalid_type}),nt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return Pe(r,{received:r.data,code:ve.invalid_enum_value,options:n}),nt}return wa(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};lv.create=BCe;var uv=class extends kt{_parse(e){let r=Kt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Be.string&&n.parsedType!==Be.number){let i=Kt.objectValues(r);return Pe(n,{expected:Kt.joinValues(i),received:n.parsedType,code:ve.invalid_type}),nt}if(this._cache||(this._cache=new Set(Kt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=Kt.objectValues(r);return Pe(n,{received:n.data,code:ve.invalid_enum_value,options:i}),nt}return wa(e.data)}get enum(){return this._def.values}};uv.create=(t,e)=>new uv({values:t,typeName:at.ZodNativeEnum,...Tt(e)});var Dy=class extends kt{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==Be.promise&&r.common.async===!1)return Pe(r,{code:ve.invalid_type,expected:Be.promise,received:r.parsedType}),nt;let n=r.parsedType===Be.promise?r.data:Promise.resolve(r.data);return wa(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Dy.create=(t,e)=>new Dy({type:t,typeName:at.ZodPromise,...Tt(e)});var Bu=class extends kt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===at.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{Pe(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type===\\\"preprocess\\\"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value===\\\"aborted\\\")return nt;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status===\\\"aborted\\\"?nt:c.status===\\\"dirty\\\"?Yw(c.value):r.value===\\\"dirty\\\"?Yw(c.value):c});{if(r.value===\\\"aborted\\\")return nt;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status===\\\"aborted\\\"?nt:a.status===\\\"dirty\\\"?Yw(a.value):r.value===\\\"dirty\\\"?Yw(a.value):a}}if(i.type===\\\"refinement\\\"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error(\\\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\\\");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status===\\\"aborted\\\"?nt:(a.status===\\\"dirty\\\"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status===\\\"aborted\\\"?nt:(a.status===\\\"dirty\\\"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type===\\\"transform\\\")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ky(o))return nt;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error(\\\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\\\");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ky(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):nt);Kt.assertNever(i)}};Bu.create=(t,e,r)=>new Bu({schema:t,typeName:at.ZodEffects,effect:e,...Tt(r)});Bu.createWithPreprocess=(t,e,r)=>new Bu({schema:e,effect:{type:\\\"preprocess\\\",transform:t},typeName:at.ZodEffects,...Tt(r)});var Nu=class extends kt{_parse(e){return this._getType(e)===Be.undefined?wa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Nu.create=(t,e)=>new Nu({innerType:t,typeName:at.ZodOptional,...Tt(e)});var Cp=class extends kt{_parse(e){return this._getType(e)===Be.null?wa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Cp.create=(t,e)=>new Cp({innerType:t,typeName:at.ZodNullable,...Tt(e)});var dv=class extends kt{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===Be.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};dv.create=(t,e)=>new dv({innerType:t,typeName:at.ZodDefault,defaultValue:typeof e.default==\\\"function\\\"?e.default:()=>e.default,...Tt(e)});var fv=class extends kt{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return K6(i)?i.then(s=>({status:\\\"valid\\\",value:s.status===\\\"valid\\\"?s.value:this._def.catchValue({get error(){return new Mc(n.common.issues)},input:n.data})})):{status:\\\"valid\\\",value:i.status===\\\"valid\\\"?i.value:this._def.catchValue({get error(){return new Mc(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fv.create=(t,e)=>new fv({innerType:t,typeName:at.ZodCatch,catchValue:typeof e.catch==\\\"function\\\"?e.catch:()=>e.catch,...Tt(e)});var e3=class extends kt{_parse(e){if(this._getType(e)!==Be.nan){let n=this._getOrReturnCtx(e);return Pe(n,{code:ve.invalid_type,expected:Be.nan,received:n.parsedType}),nt}return{status:\\\"valid\\\",value:e.data}}};e3.create=t=>new e3({typeName:at.ZodNaN,...Tt(t)});var tmt=Symbol(\\\"zod_brand\\\"),OT=class extends kt{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},NT=class t extends kt{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status===\\\"aborted\\\"?nt:s.status===\\\"dirty\\\"?(r.dirty(),Yw(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status===\\\"aborted\\\"?nt:i.status===\\\"dirty\\\"?(r.dirty(),{status:\\\"dirty\\\",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:at.ZodPipeline})}},pv=class extends kt{_parse(e){let r=this._def.innerType._parse(e),n=i=>(ky(i)&&(i.value=Object.freeze(i.value)),i);return K6(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};pv.create=(t,e)=>new pv({innerType:t,typeName:at.ZodReadonly,...Tt(e)});function PCe(t,e){let r=typeof t==\\\"function\\\"?t(e):typeof t==\\\"string\\\"?{message:t}:t;return typeof r==\\\"string\\\"?{message:r}:r}function MCe(t,e={},r){return t?My.create().superRefine((n,i)=>{let s=t(n);if(s instanceof Promise)return s.then(o=>{if(!o){let a=PCe(e,n),c=a.fatal??r??!0;i.addIssue({code:\\\"custom\\\",...a,fatal:c})}});if(!s){let o=PCe(e,n),a=o.fatal??r??!0;i.addIssue({code:\\\"custom\\\",...o,fatal:a})}}):My.create()}var rmt={object:Dc.lazycreate},at;(function(t){t.ZodString=\\\"ZodString\\\",t.ZodNumber=\\\"ZodNumber\\\",t.ZodNaN=\\\"ZodNaN\\\",t.ZodBigInt=\\\"ZodBigInt\\\",t.ZodBoolean=\\\"ZodBoolean\\\",t.ZodDate=\\\"ZodDate\\\",t.ZodSymbol=\\\"ZodSymbol\\\",t.ZodUndefined=\\\"ZodUndefined\\\",t.ZodNull=\\\"ZodNull\\\",t.ZodAny=\\\"ZodAny\\\",t.ZodUnknown=\\\"ZodUnknown\\\",t.ZodNever=\\\"ZodNever\\\",t.ZodVoid=\\\"ZodVoid\\\",t.ZodArray=\\\"ZodArray\\\",t.ZodObject=\\\"ZodObject\\\",t.ZodUnion=\\\"ZodUnion\\\",t.ZodDiscriminatedUnion=\\\"ZodDiscriminatedUnion\\\",t.ZodIntersection=\\\"ZodIntersection\\\",t.ZodTuple=\\\"ZodTuple\\\",t.ZodRecord=\\\"ZodRecord\\\",t.ZodMap=\\\"ZodMap\\\",t.ZodSet=\\\"ZodSet\\\",t.ZodFunction=\\\"ZodFunction\\\",t.ZodLazy=\\\"ZodLazy\\\",t.ZodLiteral=\\\"ZodLiteral\\\",t.ZodEnum=\\\"ZodEnum\\\",t.ZodEffects=\\\"ZodEffects\\\",t.ZodNativeEnum=\\\"ZodNativeEnum\\\",t.ZodOptional=\\\"ZodOptional\\\",t.ZodNullable=\\\"ZodNullable\\\",t.ZodDefault=\\\"ZodDefault\\\",t.ZodCatch=\\\"ZodCatch\\\",t.ZodPromise=\\\"ZodPromise\\\",t.ZodBranded=\\\"ZodBranded\\\",t.ZodPipeline=\\\"ZodPipeline\\\",t.ZodReadonly=\\\"ZodReadonly\\\"})(at||(at={}));var nmt=(t,e={message:`Input not instance of ${t.name}`})=>MCe(r=>r instanceof t,e),DCe=By.create,LCe=Xw.create,imt=e3.create,smt=ev.create,UCe=tv.create,omt=rv.create,amt=Q6.create,cmt=nv.create,lmt=iv.create,umt=My.create,dmt=$m.create,fmt=Yd.create,pmt=J6.create,hmt=Vm.create,mmt=Dc.create,gmt=Dc.strictCreate,ymt=sv.create,bmt=AD.create,wmt=ov.create,vmt=_p.create,xmt=TD.create,Emt=Y6.create,_mt=X6.create,Cmt=ID.create,Smt=av.create,Amt=cv.create,Tmt=lv.create,Imt=uv.create,Rmt=Dy.create,Pmt=Bu.create,Omt=Nu.create,Nmt=Cp.create,kmt=Bu.createWithPreprocess,Bmt=NT.create,Mmt=()=>DCe().optional(),Dmt=()=>LCe().optional(),Lmt=()=>UCe().optional(),Umt={string:(t=>By.create({...t,coerce:!0})),number:(t=>Xw.create({...t,coerce:!0})),boolean:(t=>tv.create({...t,coerce:!0})),bigint:(t=>ev.create({...t,coerce:!0})),date:(t=>rv.create({...t,coerce:!0}))};var Fmt=nt;var FCe=it.string().regex(/^[a-z0-9-]+:[a-zA-Z0-9-]+$/,{message:\\\"Network must be in CAIP-2 format (e.g., 'eip155:1', 'solana:mainnet')\\\"}),jCe=it.object({url:it.string().url({message:\\\"Resource URL must be a valid URL\\\"}),description:it.string().optional(),mimeType:it.string().optional()}),HCe=it.object({scheme:it.string().min(1,{message:\\\"Scheme is required\\\"}),network:FCe,asset:it.string().min(1,{message:\\\"Asset address is required\\\"}),amount:it.string().regex(/^\\\\d+$/,{message:\\\"Amount must be a non-negative integer string\\\"}),payTo:it.string().min(1,{message:\\\"PayTo address is required\\\"}),maxTimeoutSeconds:it.number().int().positive({message:\\\"maxTimeoutSeconds must be a positive integer\\\"}),extra:it.record(it.unknown())}),jmt=it.object({t402Version:it.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),error:it.string().optional(),resource:jCe,accepts:it.array(HCe).min(1,{message:\\\"At least one payment option is required\\\"}),extensions:it.record(it.unknown()).optional()}),Hmt=it.object({t402Version:it.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),resource:jCe.optional(),accepted:HCe,payload:it.record(it.unknown()),extensions:it.record(it.unknown()).optional()}),YBr=it.object({isValid:it.boolean(),invalidReason:it.string().optional(),payer:it.string().optional()}),qmt=it.object({success:it.boolean(),transaction:it.string(),network:FCe,errorReason:it.string().optional(),payer:it.string().optional(),confirmations:it.string().optional()}),zmt=it.object({scheme:it.string().min(1),network:it.string().min(1),asset:it.string().min(1),amount:it.string().regex(/^\\\\d+$/),payTo:it.string().min(1),maxTimeoutSeconds:it.number().int().positive(),extra:it.record(it.unknown()).optional()}),XBr=it.object({t402Version:it.literal(1).optional(),accepted:zmt,payload:it.record(it.unknown())});u();var CX=(t,e)=>{let r=t.get(e);if(!r)for(let[n,i]of t.entries()){let s=n.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\\\"\\\\\\\\$&\\\").replace(/\\\\\\\\\\\\*/g,\\\".*\\\");if(new RegExp(`^${s}$`).test(e)){r=i;break}}return r},qCe=(t,e,r)=>CX(t,r)?.get(e);var zCe=class $Ce{constructor(e){Hm(this,\\\"paymentRequirementsSelector\\\"),Hm(this,\\\"registeredClientSchemes\\\",new Map),Hm(this,\\\"policies\\\",[]),Hm(this,\\\"beforePaymentCreationHooks\\\",[]),Hm(this,\\\"afterPaymentCreationHooks\\\",[]),Hm(this,\\\"onPaymentCreationFailureHooks\\\",[]),this.paymentRequirementsSelector=e||((r,n)=>n[0])}static fromConfig(e){let r=new $Ce(e.paymentRequirementsSelector);return e.schemes.forEach(n=>{n.t402Version===1?r.registerV1(n.network,n.client):r.register(n.network,n.client)}),e.policies?.forEach(n=>{r.registerPolicy(n)}),r}register(e,r){return this._registerScheme(vX,e,r)}registerV1(e,r){return this._registerScheme(1,e,r)}registerPolicy(e){return this.policies.push(e),this}onBeforePaymentCreation(e){return this.beforePaymentCreationHooks.push(e),this}onAfterPaymentCreation(e){return this.afterPaymentCreationHooks.push(e),this}onPaymentCreationFailure(e){return this.onPaymentCreationFailureHooks.push(e),this}async createPaymentPayload(e){let r=this.registeredClientSchemes.get(e.t402Version);if(!r)throw new Error(`No client registered for t402 version: ${e.t402Version}`);let n=this.selectPaymentRequirements(e.t402Version,e.accepts),i={paymentRequired:e,selectedRequirements:n};for(let s of this.beforePaymentCreationHooks){let o=await s(i);if(o&&\\\"abort\\\"in o&&o.abort)throw new Error(`Payment creation aborted: ${o.reason}`)}try{let s=qCe(r,n.scheme,n.network);if(!s)throw new Error(`No client registered for scheme: ${n.scheme} and network: ${n.network}`);let o=await s.createPaymentPayload(e.t402Version,n),a;o.t402Version===1?a=o:a={...o,extensions:e.extensions,resource:e.resource,accepted:n};let c={...i,paymentPayload:a};for(let l of this.afterPaymentCreationHooks)await l(c);return a}catch(s){let o={...i,error:s};for(let a of this.onPaymentCreationFailureHooks){let c=await a(o);if(c&&\\\"recovered\\\"in c&&c.recovered)return c.payload}throw s}}selectPaymentRequirements(e,r){let n=this.registeredClientSchemes.get(e);if(!n)throw new Error(`No client registered for t402 version: ${e}`);let i=r.filter(o=>{let a=CX(n,o.network);return a?a.has(o.scheme):!1});if(i.length===0)throw new Error(`No network/scheme registered for t402 version: ${e} which comply with the payment requirements. ${JSON.stringify({t402Version:e,paymentRequirements:r,t402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(n.keys()),schemes:Array.from(n.values()).map(o=>Array.from(o.keys())).flat()})}`);let s=i;for(let o of this.policies)if(s=o(e,s),s.length===0)throw new Error(`All payment requirements were filtered out by policies for t402 version: ${e}`);return this.paymentRequirementsSelector(e,s)}_registerScheme(e,r,n){this.registeredClientSchemes.has(e)||this.registeredClientSchemes.set(e,new Map);let i=this.registeredClientSchemes.get(e);i.has(r)||i.set(r,new Map);let s=i.get(r);return s.has(n.scheme)||s.set(n.scheme,n),this}};u();var $mt={1:\\\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\\\",8453:\\\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\\\",84532:\\\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\\\"},Vmt=[{name:\\\"balanceOf\\\",type:\\\"function\\\",stateMutability:\\\"view\\\",inputs:[{name:\\\"account\\\",type:\\\"address\\\"}],outputs:[{name:\\\"balance\\\",type:\\\"uint256\\\"}]}];async function SX(t,e){let r=t.chain?.id;if(!r)return 0n;let n=$mt[r];if(!n)return 0n;try{return await t.readContract({address:n,abi:Vmt,functionName:\\\"balanceOf\\\",args:[e]})}catch(i){return console.error(\\\"Failed to fetch USDC balance:\\\",i),0n}}u();var AX=Me(Tl(),1);function VCe({className:t=\\\"\\\"}){return(0,AX.jsx)(\\\"div\\\",{className:`spinner ${t}`,children:(0,AX.jsx)(\\\"div\\\",{})})}u();var Wmt={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"},Gmt=new Set([11155111,84532,421614,11155420,80002,97,43113,59141,534351,300,5003,168587773,999999999]);var WCe={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},GCe={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},RD={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},KCe={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},TX={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},ZCe={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function QCe(t){return t.startsWith(\\\"eip155:\\\")}function JCe(t){if(t.startsWith(\\\"eip155:\\\")){let e=parseInt(t.split(\\\":\\\")[1]);return Wmt[e]??`Chain ${e}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===WCe.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===GCe.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let e=t.split(\\\":\\\")[1];return e===RD.NILE?\\\"TRON Nile Testnet\\\":e===RD.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===KCe.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let e=t.split(\\\":\\\")[1];return e===TX.NOBLE_MAINNET?\\\"Noble\\\":e===TX.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${e}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===ZCe.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}function YCe(t){if(t.startsWith(\\\"eip155:\\\")){let e=parseInt(t.split(\\\":\\\")[1]);return Gmt.has(e)}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===WCe.DEVNET;if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===GCe.TESTNET;if(t.startsWith(\\\"tron:\\\")){let e=t.split(\\\":\\\")[1];return e===RD.NILE||e===RD.SHASTA}return t.startsWith(\\\"stacks:\\\")?t.split(\\\":\\\")[1]===KCe.TESTNET:t.startsWith(\\\"cosmos:\\\")?t.split(\\\":\\\")[1]===TX.NOBLE_TESTNET:t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===ZCe.TESTNET:!1}u();function XCe(t){if(!t.account)throw new Error(\\\"Wallet client must have an account\\\");return{address:t.account.address,signTypedData:async e=>await t.signTypedData({account:t.account,domain:e.domain,types:e.types,primaryType:e.primaryType,message:e.message})}}u();var Lc=Me(Tl(),1),kT=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function Kmt(t){return kT.findIndex(e=>e.key===t)}function Zmt(){return(0,Lc.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Lc.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function Qmt(){return(0,Lc.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Lc.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function e4e({currentStep:t,isProcessing:e=!1,hasError:r=!1}){let n=Kmt(t);return(0,Lc.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":n+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":kT.length,\\\"aria-label\\\":`Payment progress: ${kT[n].label}`,children:kT.map((i,s)=>{let o=s<n,a=s===n,c=s>n,l=\\\"progress-step\\\";return o&&(l+=\\\" completed\\\"),a&&(l+=\\\" current\\\"),a&&e&&(l+=\\\" processing\\\"),a&&r&&(l+=\\\" error\\\"),c&&(l+=\\\" pending\\\"),(0,Lc.jsxs)(\\\"div\\\",{className:l,children:[(0,Lc.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:o?(0,Lc.jsx)(Zmt,{}):a&&e?(0,Lc.jsx)(Qmt,{}):(0,Lc.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:s+1})}),(0,Lc.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:i.label}),s<kT.length-1&&(0,Lc.jsx)(\\\"div\\\",{className:`progress-connector ${o?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},i.key)})})}var zt=Me(Tl(),1);function t4e({paymentRequired:t,onSuccessfulResponse:e}){let{address:r,isConnected:n,chainId:i}=rT(),{switchChainAsync:s}=VY(),{data:o}=WY(),{connectors:a,connect:c}=zY(),{disconnect:l}=$Y(),[d,f]=(0,_s.useState)(\\\"\\\"),[p,h]=(0,_s.useState)(null),[m,g]=(0,_s.useState)(!1),[w,v]=(0,_s.useState)(\\\"\\\"),[b,_]=(0,_s.useState)(!0),[S,T]=(0,_s.useState)(\\\"\\\"),[N,O]=(0,_s.useState)(\\\"connect\\\"),[L,B]=(0,_s.useState)(!1),H=window.t402,M=H.amount,F=t.accepts[0];if(!F)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let R=F.network,y=JCe(R),E=YCe(R),C=parseInt(R.split(\\\":\\\")[1]),I=lCe(C);if(!I)throw new Error(`Unsupported chain ID: ${C}. Add it to evmChains.ts if needed.`);let P=(0,_s.useMemo)(()=>ZA({chain:I,transport:za()}).extend(h6),[I]),k=(0,_s.useCallback)(async()=>{if(!r)return;let A=await SX(P,r),j=cm(A,6);v(j)},[r,P]),U=(0,_s.useCallback)(async()=>{if(!p)try{f(\\\"\\\"),await s({chainId:C}),await new Promise(A=>setTimeout(A,100))}catch(A){f(A instanceof Error?A.message:\\\"Failed to switch network\\\")}},[s,C,p]);(0,_s.useEffect)(()=>{r&&(U(),k())},[r,U,k]),(0,_s.useEffect)(()=>{n&&C===i?(h(!0),f(\\\"\\\")):n&&C!==i?(h(!1),f(`On the wrong network. Please switch to ${y}.`)):(h(null),f(\\\"\\\"))},[C,i,n,y]),(0,_s.useEffect)(()=>{!S&&a.length===1&&T(a[0].id)},[a,S]),(0,_s.useEffect)(()=>{n?N===\\\"connect\\\"&&O(\\\"sign\\\"):O(\\\"connect\\\")},[n,N]);let D=(0,_s.useCallback)(async()=>{if(!r||!H)return;if(await U(),!o){f(\\\"Wallet client not available. Please reconnect your wallet.\\\");return}let A=o.extend(h6);g(!0),B(!0);try{if(f(\\\"Checking USDC balance...\\\"),await SX(P,r)===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${y}`);O(\\\"sign\\\"),f(\\\"Creating payment signature...\\\");let K=XCe(A),J=new zCe;TCe(J,{signer:K});let X=await J.createPaymentPayload(t),re=btoa(JSON.stringify(X));O(\\\"submit\\\"),f(\\\"Requesting content with payment...\\\");let fe=await fetch(H.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":re,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(fe.ok)O(\\\"confirm\\\"),B(!1),await e(fe);else throw new Error(`Request failed: ${fe.status} ${fe.statusText}`)}catch(j){f(j instanceof Error?j.message:\\\"Payment failed\\\"),B(!1)}finally{g(!1)}},[r,H,t,U,o,P,y,e]);return H?(0,zt.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,zt.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,zt.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,zt.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",M,\\\" \\\",y,\\\" USDC.\\\"]}),E&&(0,zt.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"Need \\\",y,\\\" USDC?\\\",\\\" \\\",(0,zt.jsxs)(\\\"a\\\",{href:\\\"https://faucet.circle.com/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:[\\\"Get some \\\",(0,zt.jsx)(\\\"u\\\",{children:\\\"here\\\"}),\\\".\\\"]})]})]}),(0,zt.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[n?(0,zt.jsx)(\\\"div\\\",{className:\\\"cta-container\\\",children:(0,zt.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:()=>l(),children:\\\"Disconnect\\\"})}):(0,zt.jsxs)(\\\"div\\\",{className:\\\"cta-container\\\",children:[(0,zt.jsxs)(\\\"select\\\",{className:\\\"input\\\",value:S,onChange:A=>T(A.target.value),children:[(0,zt.jsx)(\\\"option\\\",{value:\\\"\\\",disabled:!0,children:\\\"Select a wallet\\\"}),a.map(A=>(0,zt.jsx)(\\\"option\\\",{value:A.id,children:A.name},A.id))]}),(0,zt.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:()=>{let A=a.find(j=>j.id===S);A&&c({connector:A})},disabled:!S,children:\\\"Connect wallet\\\"})]}),n&&(0,zt.jsxs)(\\\"div\\\",{id:\\\"payment-section\\\",children:[(0,zt.jsx)(e4e,{currentStep:N,isProcessing:L,hasError:!!d&&!m}),(0,zt.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,zt.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:r?`${r.slice(0,6)}...${r.slice(-4)}`:\\\"Loading...\\\"})]}),(0,zt.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:(0,zt.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>_(A=>!A),children:w&&!b?`$${w} USDC`:\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\\\"})})]}),(0,zt.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,zt.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",M,\\\" USDC\\\"]})]}),(0,zt.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,zt.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:y})]})]}),(0,zt.jsx)(\\\"div\\\",{className:\\\"cta-container\\\",children:p?(0,zt.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:D,disabled:m,children:m?(0,zt.jsx)(VCe,{}):\\\"Pay now\\\"}):(0,zt.jsxs)(\\\"button\\\",{className:\\\"button button-primary w-full\\\",onClick:U,children:[\\\"Switch to \\\",y]})})]}),d&&(0,zt.jsx)(\\\"div\\\",{className:\\\"status\\\",children:d})]})]}):null}u();u();u();un();lC.type=\\\"coinbaseWallet\\\";function lC(t={}){return t.version===\\\"3\\\"||t.headlessMode?jAt(t):FAt(t)}function FAt(t){let e,r,n,i;return s=>({id:\\\"coinbaseWalletSDK\\\",name:\\\"Coinbase Wallet\\\",rdns:\\\"com.coinbase.wallet\\\",type:lC.type,async connect({chainId:o,withCapabilities:a,...c}={}){try{let l=await this.getProvider(),d=(await l.request({method:\\\"eth_requestAccounts\\\",params:\\\"instantOnboarding\\\"in c&&c.instantOnboarding?[{onboarding:\\\"instant\\\"}]:[]})).map(p=>_r(p));r||(r=this.onAccountsChanged.bind(this),l.on(\\\"accountsChanged\\\",r)),n||(n=this.onChainChanged.bind(this),l.on(\\\"chainChanged\\\",n)),i||(i=this.onDisconnect.bind(this),l.on(\\\"disconnect\\\",i));let f=await this.getChainId();return o&&f!==o&&(f=(await this.switchChain({chainId:o}).catch(h=>{if(h.code===Cr.code)throw h;return{id:f}}))?.id??f),{accounts:a?d.map(p=>({address:p,capabilities:{}})):d,chainId:f}}catch(l){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(l.message)?new Cr(l):l}},async disconnect(){let o=await this.getProvider();r&&(o.removeListener(\\\"accountsChanged\\\",r),r=void 0),n&&(o.removeListener(\\\"chainChanged\\\",n),n=void 0),i&&(o.removeListener(\\\"disconnect\\\",i),i=void 0),o.disconnect(),o.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:\\\"eth_accounts\\\"})).map(a=>_r(a))},async getChainId(){let a=await(await this.getProvider()).request({method:\\\"eth_chainId\\\"});return Number(a)},async getProvider(){if(!e){let o=typeof t.preference==\\\"string\\\"?{options:t.preference}:{...t.preference,options:t.preference?.options??\\\"all\\\"},{createCoinbaseWalletSDK:a}=await Promise.resolve().then(()=>(N7e(),O7e));e=a({...t,appChainIds:s.chains.map(l=>l.id),preference:o}).getProvider()}return e},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:o,chainId:a}){let c=s.chains.find(d=>d.id===a);if(!c)throw new Do(new ga);let l=await this.getProvider();try{return await l.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:Z(c.id)}]}),c}catch(d){if(d.code===4902)try{let f;o?.blockExplorerUrls?f=o.blockExplorerUrls:f=c.blockExplorers?.default.url?[c.blockExplorers?.default.url]:[];let p;o?.rpcUrls?.length?p=o.rpcUrls:p=[c.rpcUrls.default?.http[0]??\\\"\\\"];let h={blockExplorerUrls:f,chainId:Z(a),chainName:o?.chainName??c.name,iconUrls:o?.iconUrls,nativeCurrency:o?.nativeCurrency??c.nativeCurrency,rpcUrls:p};return await l.request({method:\\\"wallet_addEthereumChain\\\",params:[h]}),c}catch(f){throw new Cr(f)}throw new Do(d)}},onAccountsChanged(o){o.length===0?this.onDisconnect():s.emitter.emit(\\\"change\\\",{accounts:o.map(a=>_r(a))})},onChainChanged(o){let a=Number(o);s.emitter.emit(\\\"change\\\",{chainId:a})},async onDisconnect(o){s.emitter.emit(\\\"disconnect\\\");let a=await this.getProvider();r&&(a.removeListener(\\\"accountsChanged\\\",r),r=void 0),n&&(a.removeListener(\\\"chainChanged\\\",n),n=void 0),i&&(a.removeListener(\\\"disconnect\\\",i),i=void 0)}})}function jAt(t){let r,n,i,s,o;return a=>({id:\\\"coinbaseWalletSDK\\\",name:\\\"Coinbase Wallet\\\",rdns:\\\"com.coinbase.wallet\\\",type:lC.type,async connect({chainId:c,withCapabilities:l}={}){try{let d=await this.getProvider(),f=(await d.request({method:\\\"eth_requestAccounts\\\"})).map(h=>_r(h));i||(i=this.onAccountsChanged.bind(this),d.on(\\\"accountsChanged\\\",i)),s||(s=this.onChainChanged.bind(this),d.on(\\\"chainChanged\\\",s)),o||(o=this.onDisconnect.bind(this),d.on(\\\"disconnect\\\",o));let p=await this.getChainId();return c&&p!==c&&(p=(await this.switchChain({chainId:c}).catch(m=>{if(m.code===Cr.code)throw m;return{id:p}}))?.id??p),{accounts:l?f.map(h=>({address:h,capabilities:{}})):f,chainId:p}}catch(d){throw/(user closed modal|accounts received is empty|user denied account)/i.test(d.message)?new Cr(d):d}},async disconnect(){let c=await this.getProvider();i&&(c.removeListener(\\\"accountsChanged\\\",i),i=void 0),s&&(c.removeListener(\\\"chainChanged\\\",s),s=void 0),o&&(c.removeListener(\\\"disconnect\\\",o),o=void 0),c.disconnect(),c.close()},async getAccounts(){return(await(await this.getProvider()).request({method:\\\"eth_accounts\\\"})).map(l=>_r(l))},async getChainId(){let l=await(await this.getProvider()).request({method:\\\"eth_chainId\\\"});return Number(l)},async getProvider(){if(!n){let c=await(async()=>{let{default:h}=await Promise.resolve().then(()=>Me(jFe(),1));return typeof h!=\\\"function\\\"&&typeof h.default==\\\"function\\\"?h.default:h})();r=new c({...t,reloadOnDisconnect:!1});let l=r.walletExtension?.getChainId(),d=a.chains.find(h=>t.chainId?h.id===t.chainId:h.id===l)||a.chains[0],f=t.chainId||d?.id,p=t.jsonRpcUrl||d?.rpcUrls.default.http[0];n=r.makeWeb3Provider(p,f)}return n},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:c,chainId:l}){let d=a.chains.find(p=>p.id===l);if(!d)throw new Do(new ga);let f=await this.getProvider();try{return await f.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:Z(d.id)}]}),d}catch(p){if(p.code===4902)try{let h;c?.blockExplorerUrls?h=c.blockExplorerUrls:h=d.blockExplorers?.default.url?[d.blockExplorers?.default.url]:[];let m;c?.rpcUrls?.length?m=c.rpcUrls:m=[d.rpcUrls.default?.http[0]??\\\"\\\"];let g={blockExplorerUrls:h,chainId:Z(l),chainName:c?.chainName??d.name,iconUrls:c?.iconUrls,nativeCurrency:c?.nativeCurrency??d.nativeCurrency,rpcUrls:m};return await f.request({method:\\\"wallet_addEthereumChain\\\",params:[g]}),d}catch(h){throw new Cr(h)}throw new Do(p)}},onAccountsChanged(c){c.length===0?this.onDisconnect():a.emitter.emit(\\\"change\\\",{accounts:c.map(l=>_r(l))})},onChainChanged(c){let l=Number(c);a.emitter.emit(\\\"change\\\",{chainId:l})},async onDisconnect(c){a.emitter.emit(\\\"disconnect\\\");let l=await this.getProvider();i&&(l.removeListener(\\\"accountsChanged\\\",i),i=void 0),s&&(l.removeListener(\\\"chainChanged\\\",s),s=void 0),o&&(l.removeListener(\\\"disconnect\\\",o),o=void 0)}})}u();un();zR.type=\\\"walletConnect\\\";function zR(t){let e=t.isNewChainsStale??!0,r,n,i=\\\"eip155\\\",s,o,a,c,l,d;return f=>({id:\\\"walletConnect\\\",name:\\\"WalletConnect\\\",type:zR.type,async setup(){let p=await this.getProvider().catch(()=>null);p&&(a||(a=this.onConnect.bind(this),p.on(\\\"connect\\\",a)),l||(l=this.onSessionDelete.bind(this),p.on(\\\"session_delete\\\",l)))},async connect({chainId:p,withCapabilities:h,...m}={}){try{let g=await this.getProvider();if(!g)throw new Oc;c||(c=this.onDisplayUri,g.on(\\\"display_uri\\\",c));let w=p;if(!w){let S=await f.storage?.getItem(\\\"state\\\")??{};f.chains.some(N=>N.id===S.chainId)?w=S.chainId:w=f.chains[0]?.id}if(!w)throw new Error(\\\"No chains found on connector.\\\");let v=await this.isChainsStale();if(g.session&&v&&await g.disconnect(),!g.session||v){let S=f.chains.filter(T=>T.id!==w).map(T=>T.id);await g.connect({optionalChains:[w,...S],...\\\"pairingTopic\\\"in m?{pairingTopic:m.pairingTopic}:{}}),this.setRequestedChainsIds(f.chains.map(T=>T.id))}let b=(await g.enable()).map(S=>_r(S)),_=await this.getChainId();return p&&_!==p&&(_=(await this.switchChain({chainId:p}).catch(T=>{if(T.code===Cr.code&&T.cause?.message!==\\\"Missing or invalid. request() method: wallet_addEthereumChain\\\")throw T;return{id:_}}))?.id??_),c&&(g.removeListener(\\\"display_uri\\\",c),c=void 0),a&&(g.removeListener(\\\"connect\\\",a),a=void 0),s||(s=this.onAccountsChanged.bind(this),g.on(\\\"accountsChanged\\\",s)),o||(o=this.onChainChanged.bind(this),g.on(\\\"chainChanged\\\",o)),d||(d=this.onDisconnect.bind(this),g.on(\\\"disconnect\\\",d)),l||(l=this.onSessionDelete.bind(this),g.on(\\\"session_delete\\\",l)),{accounts:h?b.map(S=>({address:S,capabilities:{}})):b,chainId:_}}catch(g){throw/(user rejected|connection request reset)/i.test(g?.message)?new Cr(g):g}},async disconnect(){let p=await this.getProvider();try{await p?.disconnect()}catch(h){if(!/No matching key/i.test(h.message))throw h}finally{o&&(p?.removeListener(\\\"chainChanged\\\",o),o=void 0),d&&(p?.removeListener(\\\"disconnect\\\",d),d=void 0),a||(a=this.onConnect.bind(this),p?.on(\\\"connect\\\",a)),s&&(p?.removeListener(\\\"accountsChanged\\\",s),s=void 0),l&&(p?.removeListener(\\\"session_delete\\\",l),l=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(h=>_r(h))},async getProvider({chainId:p}={}){async function h(){let m=f.chains.map(w=>w.id);if(!m.length)return;let{EthereumProvider:g}=await Promise.resolve().then(()=>Me(not(),1));return await g.init({...t,disableProviderPing:!0,optionalChains:m,projectId:t.projectId,rpcMap:Object.fromEntries(f.chains.map(w=>{let[v]=lY({chain:w,transports:f.transports});return[w.id,v]})),showQrModal:t.showQrModal??!0})}return r||(n||(n=h()),r=await n,r?.events.setMaxListeners(Number.POSITIVE_INFINITY)),p&&await this.switchChain?.({chainId:p}),r},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[p,h]=await Promise.all([this.getAccounts(),this.getProvider()]);return p.length?await this.isChainsStale()&&h.session?(await h.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:h}){let m=await this.getProvider();if(!m)throw new Oc;let g=f.chains.find(w=>w.id===h);if(!g)throw new Do(new ga);try{await Promise.all([new Promise(v=>{let b=({chainId:_})=>{_===h&&(f.emitter.off(\\\"change\\\",b),v())};f.emitter.on(\\\"change\\\",b)}),m.request({method:\\\"wallet_switchEthereumChain\\\",params:[{chainId:Z(h)}]})]);let w=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...w,h]),g}catch(w){let v=w;if(/(user rejected)/i.test(v.message))throw new Cr(v);try{let b;p?.blockExplorerUrls?b=p.blockExplorerUrls:b=g.blockExplorers?.default.url?[g.blockExplorers?.default.url]:[];let _;p?.rpcUrls?.length?_=p.rpcUrls:_=[...g.rpcUrls.default.http];let S={blockExplorerUrls:b,chainId:Z(h),chainName:p?.chainName??g.name,iconUrls:p?.iconUrls,nativeCurrency:p?.nativeCurrency??g.nativeCurrency,rpcUrls:_};await m.request({method:\\\"wallet_addEthereumChain\\\",params:[S]});let T=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...T,h]),g}catch(b){throw new Cr(b)}}},onAccountsChanged(p){p.length===0?this.onDisconnect():f.emitter.emit(\\\"change\\\",{accounts:p.map(h=>_r(h))})},onChainChanged(p){let h=Number(p);f.emitter.emit(\\\"change\\\",{chainId:h})},async onConnect(p){let h=Number(p.chainId),m=await this.getAccounts();f.emitter.emit(\\\"connect\\\",{accounts:m,chainId:h})},async onDisconnect(p){this.setRequestedChainsIds([]),f.emitter.emit(\\\"disconnect\\\");let h=await this.getProvider();s&&(h.removeListener(\\\"accountsChanged\\\",s),s=void 0),o&&(h.removeListener(\\\"chainChanged\\\",o),o=void 0),d&&(h.removeListener(\\\"disconnect\\\",d),d=void 0),l&&(h.removeListener(\\\"session_delete\\\",l),l=void 0),a||(a=this.onConnect.bind(this),h.on(\\\"connect\\\",a))},onDisplayUri(p){f.emitter.emit(\\\"message\\\",{type:\\\"display_uri\\\",data:p})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){return r?r.session?.namespaces[i]?.accounts?.map(h=>Number.parseInt(h.split(\\\":\\\")[1]||\\\"\\\",10))??[]:[]},async getRequestedChainsIds(){return await f.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!e)return!1;let p=f.chains.map(g=>g.id),h=this.getNamespaceChainsIds();if(h.length&&!h.some(g=>p.includes(g)))return!1;let m=await this.getRequestedChainsIds();return!p.every(g=>m.includes(g))},async setRequestedChainsIds(p){await f.storage?.setItem(this.requestedChainsStorageKey,p)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}u();function iot(){return typeof window>\\\"u\\\"||typeof navigator>\\\"u\\\"?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent)}var jhe=Me(Tl(),1),jZt=new kY;function sot({children:t}){let{paymentRequired:e}=window.t402,r=Qw;if(e?.accepts?.[0]){let c=e.accepts[0].network;if(QCe(c)){let l=parseInt(c.split(\\\":\\\")[1]);r=uCe(l)}}let n=window.t402.appName||\\\"t402 Paywall\\\",i=window.t402.walletConnectProjectId,s=[];s.push(Om()),s.push(lC({appName:n})),i&&s.push(zR({projectId:i,showQrModal:!iot(),metadata:{name:n,description:\\\"Pay with crypto\\\",url:window.location.origin,icons:window.t402.appLogo?[window.t402.appLogo]:[]}}));let o=uM({chains:[r],connectors:s,transports:{[r.id]:za()}});return(0,jhe.jsx)(fM,{config:o,children:(0,jhe.jsx)(jY,{client:jZt,children:t})})}var Hhe=Me(Tl(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let r=window.t402.paymentRequired;if(!r?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,oot.createRoot)(t).render((0,Hhe.jsx)(sot,{children:(0,Hhe.jsx)(t4e,{paymentRequired:r,onSuccessfulResponse:async i=>{let s=i.headers.get(\\\"content-type\\\");if(s&&s.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await i.text();else{let o=await i.blob(),a=window.URL.createObjectURL(o);window.location.href=a}}})}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/hashes/esm/utils.js:\\n@noble/hashes/utils.js:\\n@noble/hashes/esm/utils.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\n@noble/curves/esm/abstract/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n@walletconnect/utils/dist/index.es.js:\\n@walletconnect/utils/dist/index.es.js:\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim.production.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim/with-selector.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@scure/bip39/esm/index.js:\\n  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)\\n\\nsafe-buffer/index.js:\\n  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\ntslib/tslib.js:\\n  (*! *****************************************************************************\\n  Copyright (c) Microsoft Corporation.\\n  \\n  Permission to use, copy, modify, and/or distribute this software for any\\n  purpose with or without fee is hereby granted.\\n  \\n  THE SOFTWARE IS PROVIDED \\\"AS IS\\\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\\n  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\\n  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\\n  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\\n  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\\n  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\\n  PERFORMANCE OF THIS SOFTWARE.\\n  ***************************************************************************** *)\\n\\n@walletconnect/relay-auth/dist/index.es.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\n@lit/reactive-element/css-tag.js:\\n  (**\\n   * @license\\n   * Copyright 2019 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n\\n@lit/reactive-element/reactive-element.js:\\nlit-html/lit-html.js:\\nlit-element/lit-element.js:\\n@lit/reactive-element/decorators/custom-element.js:\\n@lit/reactive-element/decorators/property.js:\\n@lit/reactive-element/decorators/state.js:\\n@lit/reactive-element/decorators/event-options.js:\\n@lit/reactive-element/decorators/base.js:\\n@lit/reactive-element/decorators/query.js:\\n@lit/reactive-element/decorators/query-all.js:\\n@lit/reactive-element/decorators/query-async.js:\\n@lit/reactive-element/decorators/query-assigned-nodes.js:\\nlit-html/directive.js:\\nlit-html/async-directive.js:\\nlit-html/directives/until.js:\\n  (**\\n   * @license\\n   * Copyright 2017 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n\\nlit-html/is-server.js:\\n  (**\\n   * @license\\n   * Copyright 2022 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n\\n@lit/reactive-element/decorators/query-assigned-elements.js:\\nlit-html/directives/private-async-helpers.js:\\n  (**\\n   * @license\\n   * Copyright 2021 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n\\nlit-html/directives/if-defined.js:\\nlit-html/directives/class-map.js:\\n  (**\\n   * @license\\n   * Copyright 2018 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n\\nlit-html/directive-helpers.js:\\nlit-html/directives/ref.js:\\n  (**\\n   * @license\\n   * Copyright 2020 Google LLC\\n   * SPDX-License-Identifier: BSD-3-Clause\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for EVM paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const EVM_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/evm.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/evm.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline SVM paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const SVM_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var Ry=Object.create;var Tc=Object.defineProperty;var Ty=Object.getOwnPropertyDescriptor;var Sy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,Ny=Object.prototype.hasOwnProperty;var Iy=(e,t,n)=>t in e?Tc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hu=(e,t)=>()=>(e&&(t=e(e=0)),t);var At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oy=(e,t)=>{for(var n in t)Tc(e,n,{get:t[n],enumerable:!0})},vy=(e,t,n,r)=>{if(t&&typeof t==\\\"object\\\"||typeof t==\\\"function\\\")for(let a of Sy(t))!Ny.call(e,a)&&a!==n&&Tc(e,a,{get:()=>t[a],enumerable:!(r=Ty(t,a))||r.enumerable});return e};var Ke=(e,t,n)=>(n=e!=null?Ry(yy(e)):{},vy(t||!e||!e.__esModule?Tc(n,\\\"default\\\",{value:e,enumerable:!0}):n,e));var Wu=(e,t,n)=>Iy(e,typeof t!=\\\"symbol\\\"?t+\\\"\\\":t,n);var vg=At(Sc=>{\\\"use strict\\\";h();Sc.byteLength=Dy;Sc.toByteArray=My;Sc.fromByteArray=Ly;var rn=[],Ct=[],Cy=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,ju=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(Ur=0,Ig=ju.length;Ur<Ig;++Ur)rn[Ur]=ju[Ur],Ct[ju.charCodeAt(Ur)]=Ur;var Ur,Ig;Ct[45]=62;Ct[95]=63;function Og(e){var t=e.length;if(t%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var n=e.indexOf(\\\"=\\\");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Dy(e){var t=Og(e),n=t[0],r=t[1];return(n+r)*3/4-r}function by(e,t,n){return(t+n)*3/4-n}function My(e){var t,n=Og(e),r=n[0],a=n[1],o=new Cy(by(e,r,a)),i=0,c=a>0?r-4:r,s;for(s=0;s<c;s+=4)t=Ct[e.charCodeAt(s)]<<18|Ct[e.charCodeAt(s+1)]<<12|Ct[e.charCodeAt(s+2)]<<6|Ct[e.charCodeAt(s+3)],o[i++]=t>>16&255,o[i++]=t>>8&255,o[i++]=t&255;return a===2&&(t=Ct[e.charCodeAt(s)]<<2|Ct[e.charCodeAt(s+1)]>>4,o[i++]=t&255),a===1&&(t=Ct[e.charCodeAt(s)]<<10|Ct[e.charCodeAt(s+1)]<<4|Ct[e.charCodeAt(s+2)]>>2,o[i++]=t>>8&255,o[i++]=t&255),o}function wy(e){return rn[e>>18&63]+rn[e>>12&63]+rn[e>>6&63]+rn[e&63]}function xy(e,t,n){for(var r,a=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),a.push(wy(r));return a.join(\\\"\\\")}function Ly(e){for(var t,n=e.length,r=n%3,a=[],o=16383,i=0,c=n-r;i<c;i+=o)a.push(xy(e,i,i+o>c?c:i+o));return r===1?(t=e[n-1],a.push(rn[t>>2]+rn[t<<4&63]+\\\"==\\\")):r===2&&(t=(e[n-2]<<8)+e[n-1],a.push(rn[t>>10]+rn[t>>4&63]+rn[t<<2&63]+\\\"=\\\")),a.join(\\\"\\\")}});var Cg=At(Yu=>{h();Yu.read=function(e,t,n,r,a){var o,i,c=a*8-r-1,s=(1<<c)-1,u=s>>1,l=-7,d=n?a-1:0,m=n?-1:1,A=e[t+d];for(d+=m,o=A&(1<<-l)-1,A>>=-l,l+=c;l>0;o=o*256+e[t+d],d+=m,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=r;l>0;i=i*256+e[t+d],d+=m,l-=8);if(o===0)o=1-u;else{if(o===s)return i?NaN:(A?-1:1)*(1/0);i=i+Math.pow(2,r),o=o-u}return(A?-1:1)*i*Math.pow(2,o-r)};Yu.write=function(e,t,n,r,a,o){var i,c,s,u=o*8-a-1,l=(1<<u)-1,d=l>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=r?0:o-1,S=r?1:-1,O=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),i+d>=1?t+=m/s:t+=m*Math.pow(2,1-d),t*s>=2&&(i++,s/=2),i+d>=l?(c=0,i=l):i+d>=1?(c=(t*s-1)*Math.pow(2,a),i=i+d):(c=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[n+A]=c&255,A+=S,c/=256,a-=8);for(i=i<<a|c,u+=a;u>0;e[n+A]=i&255,A+=S,i/=256,u-=8);e[n+A-S]|=O*128}});var jg=At(Ma=>{\\\"use strict\\\";h();var qu=vg(),Da=Cg(),Dg=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Ma.Buffer=p;Ma.SlowBuffer=ky;Ma.INSPECT_MAX_BYTES=50;var yc=2147483647;Ma.kMaxLength=yc;p.TYPED_ARRAY_SUPPORT=Uy();!p.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function Uy(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function Rn(e){if(e>yc)throw new RangeError('The value \\\"'+e+'\\\" is invalid for option \\\"size\\\"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if(typeof e==\\\"number\\\"){if(typeof t==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return $u(e)}return xg(e,t,n)}p.poolSize=8192;function xg(e,t,n){if(typeof e==\\\"string\\\")return By(e,t);if(ArrayBuffer.isView(e))return Py(e);if(e==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof e);if(an(e,ArrayBuffer)||e&&an(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(an(e,SharedArrayBuffer)||e&&an(e.buffer,SharedArrayBuffer)))return Zu(e,t,n);if(typeof e==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return p.from(r,t,n);let a=Fy(e);if(a)return a;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==\\\"function\\\")return p.from(e[Symbol.toPrimitive](\\\"string\\\"),t,n);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof e)}p.from=function(e,t,n){return xg(e,t,n)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);function Lg(e){if(typeof e!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(e<0)throw new RangeError('The value \\\"'+e+'\\\" is invalid for option \\\"size\\\"')}function zy(e,t,n){return Lg(e),e<=0?Rn(e):t!==void 0?typeof n==\\\"string\\\"?Rn(e).fill(t,n):Rn(e).fill(t):Rn(e)}p.alloc=function(e,t,n){return zy(e,t,n)};function $u(e){return Lg(e),Rn(e<0?0:Qu(e)|0)}p.allocUnsafe=function(e){return $u(e)};p.allocUnsafeSlow=function(e){return $u(e)};function By(e,t){if((typeof t!=\\\"string\\\"||t===\\\"\\\")&&(t=\\\"utf8\\\"),!p.isEncoding(t))throw new TypeError(\\\"Unknown encoding: \\\"+t);let n=Ug(e,t)|0,r=Rn(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}function Ku(e){let t=e.length<0?0:Qu(e.length)|0,n=Rn(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function Py(e){if(an(e,Uint8Array)){let t=new Uint8Array(e);return Zu(t.buffer,t.byteOffset,t.byteLength)}return Ku(e)}function Zu(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let r;return t===void 0&&n===void 0?r=new Uint8Array(e):n===void 0?r=new Uint8Array(e,t):r=new Uint8Array(e,t,n),Object.setPrototypeOf(r,p.prototype),r}function Fy(e){if(p.isBuffer(e)){let t=Qu(e.length)|0,n=Rn(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=\\\"number\\\"||el(e.length)?Rn(0):Ku(e);if(e.type===\\\"Buffer\\\"&&Array.isArray(e.data))return Ku(e.data)}function Qu(e){if(e>=yc)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+yc.toString(16)+\\\" bytes\\\");return e|0}function ky(e){return+e!=e&&(e=0),p.alloc(+e)}p.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==p.prototype};p.compare=function(t,n){if(an(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),an(n,Uint8Array)&&(n=p.from(n,n.offset,n.byteLength)),!p.isBuffer(t)||!p.isBuffer(n))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;let r=t.length,a=n.length;for(let o=0,i=Math.min(r,a);o<i;++o)if(t[o]!==n[o]){r=t[o],a=n[o];break}return r<a?-1:a<r?1:0};p.isEncoding=function(t){switch(String(t).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};p.concat=function(t,n){if(!Array.isArray(t))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(t.length===0)return p.alloc(0);let r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;let a=p.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){let i=t[r];if(an(i,Uint8Array))o+i.length>a.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(a,o)):Uint8Array.prototype.set.call(a,i,o);else if(p.isBuffer(i))i.copy(a,o);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');o+=i.length}return a};function Ug(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||an(e,ArrayBuffer))return e.byteLength;if(typeof e!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let a=!1;for(;;)switch(t){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return n;case\\\"utf8\\\":case\\\"utf-8\\\":return Xu(e).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return n*2;case\\\"hex\\\":return n>>>1;case\\\"base64\\\":return Wg(e).length;default:if(a)return r?-1:Xu(e).length;t=(\\\"\\\"+t).toLowerCase(),a=!0}}p.byteLength=Ug;function Gy(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return\\\"\\\";for(e||(e=\\\"utf8\\\");;)switch(e){case\\\"hex\\\":return $y(this,t,n);case\\\"utf8\\\":case\\\"utf-8\\\":return Bg(this,t,n);case\\\"ascii\\\":return Zy(this,t,n);case\\\"latin1\\\":case\\\"binary\\\":return Xy(this,t,n);case\\\"base64\\\":return qy(this,t,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Qy(this,t,n);default:if(r)throw new TypeError(\\\"Unknown encoding: \\\"+e);e=(e+\\\"\\\").toLowerCase(),r=!0}}p.prototype._isBuffer=!0;function zr(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}p.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let n=0;n<t;n+=2)zr(this,n,n+1);return this};p.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let n=0;n<t;n+=4)zr(this,n,n+3),zr(this,n+1,n+2);return this};p.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let n=0;n<t;n+=8)zr(this,n,n+7),zr(this,n+1,n+6),zr(this,n+2,n+5),zr(this,n+3,n+4);return this};p.prototype.toString=function(){let t=this.length;return t===0?\\\"\\\":arguments.length===0?Bg(this,0,t):Gy.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===t?!0:p.compare(this,t)===0};p.prototype.inspect=function(){let t=\\\"\\\",n=Ma.INSPECT_MAX_BYTES;return t=this.toString(\\\"hex\\\",0,n).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>n&&(t+=\\\" ... \\\"),\\\"<Buffer \\\"+t+\\\">\\\"};Dg&&(p.prototype[Dg]=p.prototype.inspect);p.prototype.compare=function(t,n,r,a,o){if(an(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),n<0||r>t.length||a<0||o>this.length)throw new RangeError(\\\"out of range index\\\");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===t)return 0;let i=o-a,c=r-n,s=Math.min(i,c),u=this.slice(a,o),l=t.slice(n,r);for(let d=0;d<s;++d)if(u[d]!==l[d]){i=u[d],c=l[d];break}return i<c?-1:c<i?1:0};function zg(e,t,n,r,a){if(e.length===0)return-1;if(typeof n==\\\"string\\\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,el(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof t==\\\"string\\\"&&(t=p.from(t,r)),p.isBuffer(t))return t.length===0?-1:bg(e,t,n,r,a);if(typeof t==\\\"number\\\")return t=t&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):bg(e,[t],n,r,a);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function bg(e,t,n,r,a){let o=1,i=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===\\\"ucs2\\\"||r===\\\"ucs-2\\\"||r===\\\"utf16le\\\"||r===\\\"utf-16le\\\")){if(e.length<2||t.length<2)return-1;o=2,i/=2,c/=2,n/=2}function s(l,d){return o===1?l[d]:l.readUInt16BE(d*o)}let u;if(a){let l=-1;for(u=n;u<i;u++)if(s(e,u)===s(t,l===-1?0:u-l)){if(l===-1&&(l=u),u-l+1===c)return l*o}else l!==-1&&(u-=u-l),l=-1}else for(n+c>i&&(n=i-c),u=n;u>=0;u--){let l=!0;for(let d=0;d<c;d++)if(s(e,u+d)!==s(t,d)){l=!1;break}if(l)return u}return-1}p.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1};p.prototype.indexOf=function(t,n,r){return zg(this,t,n,r,!0)};p.prototype.lastIndexOf=function(t,n,r){return zg(this,t,n,r,!1)};function Vy(e,t,n,r){n=Number(n)||0;let a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;let o=t.length;r>o/2&&(r=o/2);let i;for(i=0;i<r;++i){let c=parseInt(t.substr(i*2,2),16);if(el(c))return i;e[n+i]=c}return i}function Hy(e,t,n,r){return Nc(Xu(t,e.length-n),e,n,r)}function Wy(e,t,n,r){return Nc(nN(t),e,n,r)}function jy(e,t,n,r){return Nc(Wg(t),e,n,r)}function Yy(e,t,n,r){return Nc(rN(t,e.length-n),e,n,r)}p.prototype.write=function(t,n,r,a){if(n===void 0)a=\\\"utf8\\\",r=this.length,n=0;else if(r===void 0&&typeof n==\\\"string\\\")a=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,a===void 0&&(a=\\\"utf8\\\")):(a=r,r=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");a||(a=\\\"utf8\\\");let i=!1;for(;;)switch(a){case\\\"hex\\\":return Vy(this,t,n,r);case\\\"utf8\\\":case\\\"utf-8\\\":return Hy(this,t,n,r);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return Wy(this,t,n,r);case\\\"base64\\\":return jy(this,t,n,r);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Yy(this,t,n,r);default:if(i)throw new TypeError(\\\"Unknown encoding: \\\"+a);a=(\\\"\\\"+a).toLowerCase(),i=!0}};p.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function qy(e,t,n){return t===0&&n===e.length?qu.fromByteArray(e):qu.fromByteArray(e.slice(t,n))}function Bg(e,t,n){n=Math.min(e.length,n);let r=[],a=t;for(;a<n;){let o=e[a],i=null,c=o>239?4:o>223?3:o>191?2:1;if(a+c<=n){let s,u,l,d;switch(c){case 1:o<128&&(i=o);break;case 2:s=e[a+1],(s&192)===128&&(d=(o&31)<<6|s&63,d>127&&(i=d));break;case 3:s=e[a+1],u=e[a+2],(s&192)===128&&(u&192)===128&&(d=(o&15)<<12|(s&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(i=d));break;case 4:s=e[a+1],u=e[a+2],l=e[a+3],(s&192)===128&&(u&192)===128&&(l&192)===128&&(d=(o&15)<<18|(s&63)<<12|(u&63)<<6|l&63,d>65535&&d<1114112&&(i=d))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|i&1023),r.push(i),a+=c}return Ky(r)}var Mg=4096;function Ky(e){let t=e.length;if(t<=Mg)return String.fromCharCode.apply(String,e);let n=\\\"\\\",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Mg));return n}function Zy(e,t,n){let r=\\\"\\\";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function Xy(e,t,n){let r=\\\"\\\";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function $y(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let a=\\\"\\\";for(let o=t;o<n;++o)a+=aN[e[o]];return a}function Qy(e,t,n){let r=e.slice(t,n),a=\\\"\\\";for(let o=0;o<r.length-1;o+=2)a+=String.fromCharCode(r[o]+r[o+1]*256);return a}p.prototype.slice=function(t,n){let r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);let a=this.subarray(t,n);return Object.setPrototypeOf(a,p.prototype),a};function ze(e,t,n){if(e%1!==0||e<0)throw new RangeError(\\\"offset is not uint\\\");if(e+t>n)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}p.prototype.readUintLE=p.prototype.readUIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||ze(t,n,this.length);let a=this[t],o=1,i=0;for(;++i<n&&(o*=256);)a+=this[t+i]*o;return a};p.prototype.readUintBE=p.prototype.readUIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||ze(t,n,this.length);let a=this[t+--n],o=1;for(;n>0&&(o*=256);)a+=this[t+--n]*o;return a};p.prototype.readUint8=p.prototype.readUInt8=function(t,n){return t=t>>>0,n||ze(t,1,this.length),this[t]};p.prototype.readUint16LE=p.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||ze(t,2,this.length),this[t]|this[t+1]<<8};p.prototype.readUint16BE=p.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||ze(t,2,this.length),this[t]<<8|this[t+1]};p.prototype.readUint32LE=p.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};p.prototype.readBigUInt64LE=Qn(function(t){t=t>>>0,ba(t,\\\"offset\\\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Vo(t,this.length-8);let a=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(a)+(BigInt(o)<<BigInt(32))});p.prototype.readBigUInt64BE=Qn(function(t){t=t>>>0,ba(t,\\\"offset\\\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Vo(t,this.length-8);let a=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(a)<<BigInt(32))+BigInt(o)});p.prototype.readIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||ze(t,n,this.length);let a=this[t],o=1,i=0;for(;++i<n&&(o*=256);)a+=this[t+i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a};p.prototype.readIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||ze(t,n,this.length);let a=n,o=1,i=this[t+--a];for(;a>0&&(o*=256);)i+=this[t+--a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i};p.prototype.readInt8=function(t,n){return t=t>>>0,n||ze(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};p.prototype.readInt16LE=function(t,n){t=t>>>0,n||ze(t,2,this.length);let r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};p.prototype.readInt16BE=function(t,n){t=t>>>0,n||ze(t,2,this.length);let r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};p.prototype.readInt32LE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};p.prototype.readInt32BE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};p.prototype.readBigInt64LE=Qn(function(t){t=t>>>0,ba(t,\\\"offset\\\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Vo(t,this.length-8);let a=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(a)<<BigInt(32))+BigInt(n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});p.prototype.readBigInt64BE=Qn(function(t){t=t>>>0,ba(t,\\\"offset\\\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Vo(t,this.length-8);let a=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(a)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r)});p.prototype.readFloatLE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),Da.read(this,t,!0,23,4)};p.prototype.readFloatBE=function(t,n){return t=t>>>0,n||ze(t,4,this.length),Da.read(this,t,!1,23,4)};p.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||ze(t,8,this.length),Da.read(this,t,!0,52,8)};p.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||ze(t,8,this.length),Da.read(this,t,!1,52,8)};function tt(e,t,n,r,a,o){if(!p.isBuffer(e))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('\\\"value\\\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\\\"Index out of range\\\")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(t,n,r,a){if(t=+t,n=n>>>0,r=r>>>0,!a){let c=Math.pow(2,8*r)-1;tt(this,t,n,r,c,0)}let o=1,i=0;for(this[n]=t&255;++i<r&&(o*=256);)this[n+i]=t/o&255;return n+r};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(t,n,r,a){if(t=+t,n=n>>>0,r=r>>>0,!a){let c=Math.pow(2,8*r)-1;tt(this,t,n,r,c,0)}let o=r-1,i=1;for(this[n+o]=t&255;--o>=0&&(i*=256);)this[n+o]=t/i&255;return n+r};p.prototype.writeUint8=p.prototype.writeUInt8=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,1,255,0),this[n]=t&255,n+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function Pg(e,t,n,r,a){Hg(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i,n}function Fg(e,t,n,r,a){Hg(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o=o>>8,e[n+6]=o,o=o>>8,e[n+5]=o,o=o>>8,e[n+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=i,i=i>>8,e[n+2]=i,i=i>>8,e[n+1]=i,i=i>>8,e[n]=i,n+8}p.prototype.writeBigUInt64LE=Qn(function(t,n=0){return Pg(this,t,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});p.prototype.writeBigUInt64BE=Qn(function(t,n=0){return Fg(this,t,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});p.prototype.writeIntLE=function(t,n,r,a){if(t=+t,n=n>>>0,!a){let s=Math.pow(2,8*r-1);tt(this,t,n,r,s-1,-s)}let o=0,i=1,c=0;for(this[n]=t&255;++o<r&&(i*=256);)t<0&&c===0&&this[n+o-1]!==0&&(c=1),this[n+o]=(t/i>>0)-c&255;return n+r};p.prototype.writeIntBE=function(t,n,r,a){if(t=+t,n=n>>>0,!a){let s=Math.pow(2,8*r-1);tt(this,t,n,r,s-1,-s)}let o=r-1,i=1,c=0;for(this[n+o]=t&255;--o>=0&&(i*=256);)t<0&&c===0&&this[n+o+1]!==0&&(c=1),this[n+o]=(t/i>>0)-c&255;return n+r};p.prototype.writeInt8=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};p.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};p.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};p.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};p.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||tt(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};p.prototype.writeBigInt64LE=Qn(function(t,n=0){return Pg(this,t,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});p.prototype.writeBigInt64BE=Qn(function(t,n=0){return Fg(this,t,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function kg(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError(\\\"Index out of range\\\");if(n<0)throw new RangeError(\\\"Index out of range\\\")}function Gg(e,t,n,r,a){return t=+t,n=n>>>0,a||kg(e,t,n,4,34028234663852886e22,-34028234663852886e22),Da.write(e,t,n,r,23,4),n+4}p.prototype.writeFloatLE=function(t,n,r){return Gg(this,t,n,!0,r)};p.prototype.writeFloatBE=function(t,n,r){return Gg(this,t,n,!1,r)};function Vg(e,t,n,r,a){return t=+t,n=n>>>0,a||kg(e,t,n,8,17976931348623157e292,-17976931348623157e292),Da.write(e,t,n,r,52,8),n+8}p.prototype.writeDoubleLE=function(t,n,r){return Vg(this,t,n,!0,r)};p.prototype.writeDoubleBE=function(t,n,r){return Vg(this,t,n,!1,r)};p.prototype.copy=function(t,n,r,a){if(!p.isBuffer(t))throw new TypeError(\\\"argument should be a Buffer\\\");if(r||(r=0),!a&&a!==0&&(a=this.length),n>=t.length&&(n=t.length),n||(n=0),a>0&&a<r&&(a=r),a===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(r<0||r>=this.length)throw new RangeError(\\\"Index out of range\\\");if(a<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");a>this.length&&(a=this.length),t.length-n<a-r&&(a=t.length-n+r);let o=a-r;return this===t&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(n,r,a):Uint8Array.prototype.set.call(t,this.subarray(r,a),n),o};p.prototype.fill=function(t,n,r,a){if(typeof t==\\\"string\\\"){if(typeof n==\\\"string\\\"?(a=n,n=0,r=this.length):typeof r==\\\"string\\\"&&(a=r,r=this.length),a!==void 0&&typeof a!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof a==\\\"string\\\"&&!p.isEncoding(a))throw new TypeError(\\\"Unknown encoding: \\\"+a);if(t.length===1){let i=t.charCodeAt(0);(a===\\\"utf8\\\"&&i<128||a===\\\"latin1\\\")&&(t=i)}}else typeof t==\\\"number\\\"?t=t&255:typeof t==\\\"boolean\\\"&&(t=Number(t));if(n<0||this.length<n||this.length<r)throw new RangeError(\\\"Out of range index\\\");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let o;if(typeof t==\\\"number\\\")for(o=n;o<r;++o)this[o]=t;else{let i=p.isBuffer(t)?t:p.from(t,a),c=i.length;if(c===0)throw new TypeError('The value \\\"'+t+'\\\" is invalid for argument \\\"value\\\"');for(o=0;o<r-n;++o)this[o+n]=i[o%c]}return this};var Ca={};function Ju(e,t,n){Ca[e]=class extends n{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(a){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Ju(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(e){return e?`${e} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);Ju(\\\"ERR_INVALID_ARG_TYPE\\\",function(e,t){return`The \\\"${e}\\\" argument must be of type number. Received type ${typeof t}`},TypeError);Ju(\\\"ERR_OUT_OF_RANGE\\\",function(e,t,n){let r=`The value of \\\"${e}\\\" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=wg(String(n)):typeof n==\\\"bigint\\\"&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=wg(a)),a+=\\\"n\\\"),r+=` It must be ${t}. Received ${a}`,r},RangeError);function wg(e){let t=\\\"\\\",n=e.length,r=e[0]===\\\"-\\\"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Jy(e,t,n){ba(t,\\\"offset\\\"),(e[t]===void 0||e[t+n]===void 0)&&Vo(t,e.length-(n+1))}function Hg(e,t,n,r,a,o){if(e>n||e<t){let i=typeof t==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",c;throw o>3?t===0||t===BigInt(0)?c=`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:c=`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:c=`>= ${t}${i} and <= ${n}${i}`,new Ca.ERR_OUT_OF_RANGE(\\\"value\\\",c,e)}Jy(r,a,o)}function ba(e,t){if(typeof e!=\\\"number\\\")throw new Ca.ERR_INVALID_ARG_TYPE(t,\\\"number\\\",e)}function Vo(e,t,n){throw Math.floor(e)!==e?(ba(e,n),new Ca.ERR_OUT_OF_RANGE(n||\\\"offset\\\",\\\"an integer\\\",e)):t<0?new Ca.ERR_BUFFER_OUT_OF_BOUNDS:new Ca.ERR_OUT_OF_RANGE(n||\\\"offset\\\",`>= ${n?1:0} and <= ${t}`,e)}var eN=/[^+/0-9A-Za-z-_]/g;function tN(e){if(e=e.split(\\\"=\\\")[0],e=e.trim().replace(eN,\\\"\\\"),e.length<2)return\\\"\\\";for(;e.length%4!==0;)e=e+\\\"=\\\";return e}function Xu(e,t){t=t||1/0;let n,r=e.length,a=null,o=[];for(let i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\\\"Invalid code point\\\")}return o}function nN(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function rN(e,t){let n,r,a,o=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function Wg(e){return qu.toByteArray(tN(e))}function Nc(e,t,n,r){let a;for(a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function an(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function el(e){return e!==e}var aN=(function(){let e=\\\"0123456789abcdef\\\",t=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t})();function Qn(e){return typeof BigInt>\\\"u\\\"?oN:e}function oN(){throw new Error(\\\"BigInt not supported\\\")}});var Yg,h=Hu(()=>{\\\"use strict\\\";Yg=Ke(jg(),1);globalThis.Buffer=Yg.Buffer});var nA=At(_e=>{\\\"use strict\\\";h();function al(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<Ic(a,t))e[r]=t,e[n]=a,n=r;else break e}}function on(e){return e.length===0?null:e[0]}function vc(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var i=2*(r+1)-1,c=e[i],s=i+1,u=e[s];if(0>Ic(c,n))s<a&&0>Ic(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[i]=n,r=i);else if(s<a&&0>Ic(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function Ic(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}_e.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(qg=performance,_e.unstable_now=function(){return qg.now()}):(tl=Date,Kg=tl.now(),_e.unstable_now=function(){return tl.now()-Kg});var qg,tl,Kg,Tn=[],Jn=[],iN=1,Dt=null,Ze=3,ol=!1,Ho=!1,Wo=!1,il=!1,$g=typeof setTimeout==\\\"function\\\"?setTimeout:null,Qg=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,Zg=typeof setImmediate<\\\"u\\\"?setImmediate:null;function Oc(e){for(var t=on(Jn);t!==null;){if(t.callback===null)vc(Jn);else if(t.startTime<=e)vc(Jn),t.sortIndex=t.expirationTime,al(Tn,t);else break;t=on(Jn)}}function cl(e){if(Wo=!1,Oc(e),!Ho)if(on(Tn)!==null)Ho=!0,xa||(xa=!0,wa());else{var t=on(Jn);t!==null&&sl(cl,t.startTime-e)}}var xa=!1,jo=-1,Jg=5,eA=-1;function tA(){return il?!0:!(_e.unstable_now()-eA<Jg)}function nl(){if(il=!1,xa){var e=_e.unstable_now();eA=e;var t=!0;try{e:{Ho=!1,Wo&&(Wo=!1,Qg(jo),jo=-1),ol=!0;var n=Ze;try{t:{for(Oc(e),Dt=on(Tn);Dt!==null&&!(Dt.expirationTime>e&&tA());){var r=Dt.callback;if(typeof r==\\\"function\\\"){Dt.callback=null,Ze=Dt.priorityLevel;var a=r(Dt.expirationTime<=e);if(e=_e.unstable_now(),typeof a==\\\"function\\\"){Dt.callback=a,Oc(e),t=!0;break t}Dt===on(Tn)&&vc(Tn),Oc(e)}else vc(Tn);Dt=on(Tn)}if(Dt!==null)t=!0;else{var o=on(Jn);o!==null&&sl(cl,o.startTime-e),t=!1}}break e}finally{Dt=null,Ze=n,ol=!1}t=void 0}}finally{t?wa():xa=!1}}}var wa;typeof Zg==\\\"function\\\"?wa=function(){Zg(nl)}:typeof MessageChannel<\\\"u\\\"?(rl=new MessageChannel,Xg=rl.port2,rl.port1.onmessage=nl,wa=function(){Xg.postMessage(null)}):wa=function(){$g(nl,0)};var rl,Xg;function sl(e,t){jo=$g(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):Jg=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return Ze};_e.unstable_next=function(e){switch(Ze){case 1:case 2:case 3:var t=3;break;default:t=Ze}var n=Ze;Ze=t;try{return e()}finally{Ze=n}};_e.unstable_requestPaint=function(){il=!0};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ze;Ze=e;try{return t()}finally{Ze=n}};_e.unstable_scheduleCallback=function(e,t,n){var r=_e.unstable_now();switch(typeof n==\\\"object\\\"&&n!==null?(n=n.delay,n=typeof n==\\\"number\\\"&&0<n?r+n:r):n=r,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:iN++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>r?(e.sortIndex=n,al(Jn,e),on(Tn)===null&&e===on(Jn)&&(Wo?(Qg(jo),jo=-1):Wo=!0,sl(cl,n-r))):(e.sortIndex=a,al(Tn,e),Ho||ol||(Ho=!0,xa||(xa=!0,wa()))),e};_e.unstable_shouldYield=tA;_e.unstable_wrapCallback=function(e){var t=Ze;return function(){var n=Ze;Ze=t;try{return e.apply(this,arguments)}finally{Ze=n}}}});var aA=At((ax,rA)=>{\\\"use strict\\\";h();rA.exports=nA()});var AA=At(B=>{\\\"use strict\\\";h();var dl=Symbol.for(\\\"react.transitional.element\\\"),cN=Symbol.for(\\\"react.portal\\\"),sN=Symbol.for(\\\"react.fragment\\\"),uN=Symbol.for(\\\"react.strict_mode\\\"),lN=Symbol.for(\\\"react.profiler\\\"),dN=Symbol.for(\\\"react.consumer\\\"),fN=Symbol.for(\\\"react.context\\\"),mN=Symbol.for(\\\"react.forward_ref\\\"),gN=Symbol.for(\\\"react.suspense\\\"),AN=Symbol.for(\\\"react.memo\\\"),uA=Symbol.for(\\\"react.lazy\\\"),_N=Symbol.for(\\\"react.activity\\\"),oA=Symbol.iterator;function hN(e){return e===null||typeof e!=\\\"object\\\"?null:(e=oA&&e[oA]||e[\\\"@@iterator\\\"],typeof e==\\\"function\\\"?e:null)}var lA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dA=Object.assign,fA={};function Ua(e,t,n){this.props=e,this.context=t,this.refs=fA,this.updater=n||lA}Ua.prototype.isReactComponent={};Ua.prototype.setState=function(e,t){if(typeof e!=\\\"object\\\"&&typeof e!=\\\"function\\\"&&e!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,e,t,\\\"setState\\\")};Ua.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\\\"forceUpdate\\\")};function mA(){}mA.prototype=Ua.prototype;function fl(e,t,n){this.props=e,this.context=t,this.refs=fA,this.updater=n||lA}var ml=fl.prototype=new mA;ml.constructor=fl;dA(ml,Ua.prototype);ml.isPureReactComponent=!0;var iA=Array.isArray;function ll(){}var le={H:null,A:null,T:null,S:null},gA=Object.prototype.hasOwnProperty;function gl(e,t,n){var r=n.ref;return{$$typeof:dl,type:e,key:t,ref:r!==void 0?r:null,props:n}}function pN(e,t){return gl(e.type,t,e.props)}function Al(e){return typeof e==\\\"object\\\"&&e!==null&&e.$$typeof===dl}function EN(e){var t={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+e.replace(/[=:]/g,function(n){return t[n]})}var cA=/\\\\/+/g;function ul(e,t){return typeof e==\\\"object\\\"&&e!==null&&e.key!=null?EN(\\\"\\\"+e.key):t.toString(36)}function RN(e){switch(e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw e.reason;default:switch(typeof e.status==\\\"string\\\"?e.then(ll,ll):(e.status=\\\"pending\\\",e.then(function(t){e.status===\\\"pending\\\"&&(e.status=\\\"fulfilled\\\",e.value=t)},function(t){e.status===\\\"pending\\\"&&(e.status=\\\"rejected\\\",e.reason=t)})),e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw e.reason}}throw e}function La(e,t,n,r,a){var o=typeof e;(o===\\\"undefined\\\"||o===\\\"boolean\\\")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":i=!0;break;case\\\"object\\\":switch(e.$$typeof){case dl:case cN:i=!0;break;case uA:return i=e._init,La(i(e._payload),t,n,r,a)}}if(i)return a=a(e),i=r===\\\"\\\"?\\\".\\\"+ul(e,0):r,iA(a)?(n=\\\"\\\",i!=null&&(n=i.replace(cA,\\\"$&/\\\")+\\\"/\\\"),La(a,t,n,\\\"\\\",function(u){return u})):a!=null&&(Al(a)&&(a=pN(a,n+(a.key==null||e&&e.key===a.key?\\\"\\\":(\\\"\\\"+a.key).replace(cA,\\\"$&/\\\")+\\\"/\\\")+i)),t.push(a)),1;i=0;var c=r===\\\"\\\"?\\\".\\\":r+\\\":\\\";if(iA(e))for(var s=0;s<e.length;s++)r=e[s],o=c+ul(r,s),i+=La(r,t,n,o,a);else if(s=hN(e),typeof s==\\\"function\\\")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,o=c+ul(r,s++),i+=La(r,t,n,o,a);else if(o===\\\"object\\\"){if(typeof e.then==\\\"function\\\")return La(RN(e),t,n,r,a);throw t=String(e),Error(\\\"Objects are not valid as a React child (found: \\\"+(t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(e).join(\\\", \\\")+\\\"}\\\":t)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return i}function Cc(e,t,n){if(e==null)return e;var r=[],a=0;return La(e,r,\\\"\\\",\\\"\\\",function(o){return t.call(n,o,a++)}),r}function TN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var sA=typeof reportError==\\\"function\\\"?reportError:function(e){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var t=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof e==\\\"object\\\"&&e!==null&&typeof e.message==\\\"string\\\"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",e);return}console.error(e)},SN={map:Cc,forEach:function(e,t,n){Cc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cc(e,function(){t++}),t},toArray:function(e){return Cc(e,function(t){return t})||[]},only:function(e){if(!Al(e))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return e}};B.Activity=_N;B.Children=SN;B.Component=Ua;B.Fragment=sN;B.Profiler=lN;B.PureComponent=fl;B.StrictMode=uN;B.Suspense=gN;B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le;B.__COMPILER_RUNTIME={__proto__:null,c:function(e){return le.H.useMemoCache(e)}};B.cache=function(e){return function(){return e.apply(null,arguments)}};B.cacheSignal=function(){return null};B.cloneElement=function(e,t,n){if(e==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+e+\\\".\\\");var r=dA({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=\\\"\\\"+t.key),t)!gA.call(t,o)||o===\\\"key\\\"||o===\\\"__self\\\"||o===\\\"__source\\\"||o===\\\"ref\\\"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var i=Array(o),c=0;c<o;c++)i[c]=arguments[c+2];r.children=i}return gl(e.type,a,r)};B.createContext=function(e){return e={$$typeof:fN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:dN,_context:e},e};B.createElement=function(e,t,n){var r,a={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=\\\"\\\"+t.key),t)gA.call(t,r)&&r!==\\\"key\\\"&&r!==\\\"__self\\\"&&r!==\\\"__source\\\"&&(a[r]=t[r]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)a[r]===void 0&&(a[r]=i[r]);return gl(e,o,a)};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:mN,render:e}};B.isValidElement=Al;B.lazy=function(e){return{$$typeof:uA,_payload:{_status:-1,_result:e},_init:TN}};B.memo=function(e,t){return{$$typeof:AN,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=le.T,n={};le.T=n;try{var r=e(),a=le.S;a!==null&&a(n,r),typeof r==\\\"object\\\"&&r!==null&&typeof r.then==\\\"function\\\"&&r.then(ll,sA)}catch(o){sA(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),le.T=t}};B.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()};B.use=function(e){return le.H.use(e)};B.useActionState=function(e,t,n){return le.H.useActionState(e,t,n)};B.useCallback=function(e,t){return le.H.useCallback(e,t)};B.useContext=function(e){return le.H.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e,t){return le.H.useDeferredValue(e,t)};B.useEffect=function(e,t){return le.H.useEffect(e,t)};B.useEffectEvent=function(e){return le.H.useEffectEvent(e)};B.useId=function(){return le.H.useId()};B.useImperativeHandle=function(e,t,n){return le.H.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return le.H.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return le.H.useLayoutEffect(e,t)};B.useMemo=function(e,t){return le.H.useMemo(e,t)};B.useOptimistic=function(e,t){return le.H.useOptimistic(e,t)};B.useReducer=function(e,t,n){return le.H.useReducer(e,t,n)};B.useRef=function(e){return le.H.useRef(e)};B.useState=function(e){return le.H.useState(e)};B.useSyncExternalStore=function(e,t,n){return le.H.useSyncExternalStore(e,t,n)};B.useTransition=function(){return le.H.useTransition()};B.version=\\\"19.2.4\\\"});var Sn=At((sx,_A)=>{\\\"use strict\\\";h();_A.exports=AA()});var pA=At(Qe=>{\\\"use strict\\\";h();var yN=Sn();function hA(e){var t=\\\"https://react.dev/errors/\\\"+e;if(1<arguments.length){t+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+e+\\\"; visit \\\"+t+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function er(){}var $e={d:{f:er,r:function(){throw Error(hA(522))},D:er,C:er,L:er,m:er,X:er,S:er,M:er},p:0,findDOMNode:null},NN=Symbol.for(\\\"react.portal\\\");function IN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:NN,key:r==null?null:\\\"\\\"+r,children:e,containerInfo:t,implementation:n}}var Yo=yN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Dc(e,t){if(e===\\\"font\\\")return\\\"\\\";if(typeof t==\\\"string\\\")return t===\\\"use-credentials\\\"?t:\\\"\\\"}Qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$e;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(hA(299));return IN(e,t,null,n)};Qe.flushSync=function(e){var t=Yo.T,n=$e.p;try{if(Yo.T=null,$e.p=2,e)return e()}finally{Yo.T=t,$e.p=n,$e.d.f()}};Qe.preconnect=function(e,t){typeof e==\\\"string\\\"&&(t?(t=t.crossOrigin,t=typeof t==\\\"string\\\"?t===\\\"use-credentials\\\"?t:\\\"\\\":void 0):t=null,$e.d.C(e,t))};Qe.prefetchDNS=function(e){typeof e==\\\"string\\\"&&$e.d.D(e)};Qe.preinit=function(e,t){if(typeof e==\\\"string\\\"&&t&&typeof t.as==\\\"string\\\"){var n=t.as,r=Dc(n,t.crossOrigin),a=typeof t.integrity==\\\"string\\\"?t.integrity:void 0,o=typeof t.fetchPriority==\\\"string\\\"?t.fetchPriority:void 0;n===\\\"style\\\"?$e.d.S(e,typeof t.precedence==\\\"string\\\"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===\\\"script\\\"&&$e.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==\\\"string\\\"?t.nonce:void 0})}};Qe.preinitModule=function(e,t){if(typeof e==\\\"string\\\")if(typeof t==\\\"object\\\"&&t!==null){if(t.as==null||t.as===\\\"script\\\"){var n=Dc(t.as,t.crossOrigin);$e.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==\\\"string\\\"?t.integrity:void 0,nonce:typeof t.nonce==\\\"string\\\"?t.nonce:void 0})}}else t==null&&$e.d.M(e)};Qe.preload=function(e,t){if(typeof e==\\\"string\\\"&&typeof t==\\\"object\\\"&&t!==null&&typeof t.as==\\\"string\\\"){var n=t.as,r=Dc(n,t.crossOrigin);$e.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==\\\"string\\\"?t.integrity:void 0,nonce:typeof t.nonce==\\\"string\\\"?t.nonce:void 0,type:typeof t.type==\\\"string\\\"?t.type:void 0,fetchPriority:typeof t.fetchPriority==\\\"string\\\"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==\\\"string\\\"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==\\\"string\\\"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==\\\"string\\\"?t.imageSizes:void 0,media:typeof t.media==\\\"string\\\"?t.media:void 0})}};Qe.preloadModule=function(e,t){if(typeof e==\\\"string\\\")if(t){var n=Dc(t.as,t.crossOrigin);$e.d.m(e,{as:typeof t.as==\\\"string\\\"&&t.as!==\\\"script\\\"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==\\\"string\\\"?t.integrity:void 0})}else $e.d.m(e)};Qe.requestFormReset=function(e){$e.d.r(e)};Qe.unstable_batchedUpdates=function(e,t){return e(t)};Qe.useFormState=function(e,t,n){return Yo.H.useFormState(e,t,n)};Qe.useFormStatus=function(){return Yo.H.useHostTransitionStatus()};Qe.version=\\\"19.2.4\\\"});var TA=At((fx,RA)=>{\\\"use strict\\\";h();function EA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(EA)}catch(e){console.error(e)}}EA(),RA.exports=pA()});var xE=At(eu=>{\\\"use strict\\\";h();var we=aA(),q_=Sn(),ON=TA();function R(e){var t=\\\"https://react.dev/errors/\\\"+e;if(1<arguments.length){t+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+e+\\\"; visit \\\"+t+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function K_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Z_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function X_(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function SA(e){if(wi(e)!==e)throw Error(R(188))}function vN(e){var t=e.alternate;if(!t){if(t=wi(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return SA(a),e;if(o===r)return SA(a),t;o=o.sibling}throw Error(R(188))}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,r=o;break}if(c===r){i=!0,r=a,n=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===n){i=!0,n=o,r=a;break}if(c===r){i=!0,r=o,n=a;break}c=c.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function $_(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=$_(e),t!==null)return t;e=e.sibling}return null}var me=Object.assign,CN=Symbol.for(\\\"react.element\\\"),bc=Symbol.for(\\\"react.transitional.element\\\"),ei=Symbol.for(\\\"react.portal\\\"),Ga=Symbol.for(\\\"react.fragment\\\"),Q_=Symbol.for(\\\"react.strict_mode\\\"),Zl=Symbol.for(\\\"react.profiler\\\"),J_=Symbol.for(\\\"react.consumer\\\"),bn=Symbol.for(\\\"react.context\\\"),Wd=Symbol.for(\\\"react.forward_ref\\\"),Xl=Symbol.for(\\\"react.suspense\\\"),$l=Symbol.for(\\\"react.suspense_list\\\"),jd=Symbol.for(\\\"react.memo\\\"),tr=Symbol.for(\\\"react.lazy\\\"),Ql=Symbol.for(\\\"react.activity\\\"),DN=Symbol.for(\\\"react.memo_cache_sentinel\\\"),yA=Symbol.iterator;function qo(e){return e===null||typeof e!=\\\"object\\\"?null:(e=yA&&e[yA]||e[\\\"@@iterator\\\"],typeof e==\\\"function\\\"?e:null)}var bN=Symbol.for(\\\"react.client.reference\\\");function Jl(e){if(e==null)return null;if(typeof e==\\\"function\\\")return e.$$typeof===bN?null:e.displayName||e.name||null;if(typeof e==\\\"string\\\")return e;switch(e){case Ga:return\\\"Fragment\\\";case Zl:return\\\"Profiler\\\";case Q_:return\\\"StrictMode\\\";case Xl:return\\\"Suspense\\\";case $l:return\\\"SuspenseList\\\";case Ql:return\\\"Activity\\\"}if(typeof e==\\\"object\\\")switch(e.$$typeof){case ei:return\\\"Portal\\\";case bn:return e.displayName||\\\"Context\\\";case J_:return(e._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case Wd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||\\\"\\\",e=e!==\\\"\\\"?\\\"ForwardRef(\\\"+e+\\\")\\\":\\\"ForwardRef\\\"),e;case jd:return t=e.displayName||null,t!==null?t:Jl(e.type)||\\\"Memo\\\";case tr:t=e._payload,e=e._init;try{return Jl(e(t))}catch{}}return null}var ti=Array.isArray,L=q_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=ON.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vr={pending:!1,data:null,method:null,action:null},ed=[],Va=-1;function dn(e){return{current:e}}function Fe(e){0>Va||(e.current=ed[Va],ed[Va]=null,Va--)}function ue(e,t){Va++,ed[Va]=e.current,e.current=t}var ln=dn(null),pi=dn(null),fr=dn(null),us=dn(null);function ls(e,t){switch(ue(fr,t),ue(pi,e),ue(ln,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?b_(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=b_(t),e=EE(t,e);else switch(e){case\\\"svg\\\":e=1;break;case\\\"math\\\":e=2;break;default:e=0}}Fe(ln),ue(ln,e)}function io(){Fe(ln),Fe(pi),Fe(fr)}function td(e){e.memoizedState!==null&&ue(us,e);var t=ln.current,n=EE(t,e.type);t!==n&&(ue(pi,e),ue(ln,n))}function ds(e){pi.current===e&&(Fe(ln),Fe(pi)),us.current===e&&(Fe(us),Di._currentValue=Vr)}var _l,NA;function Pr(e){if(_l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\\\n( *(at )?)/);_l=t&&t[1]||\\\"\\\",NA=-1<n.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<n.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+_l+e+NA}var hl=!1;function pl(e,t){if(!e||hl)return\\\"\\\";hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(d,[])}catch(A){var m=A}Reflect.construct(e,[],d)}else{try{d.call()}catch(A){m=A}e.call(d.prototype)}}else{try{throw Error()}catch(A){m=A}(d=e())&&typeof d.catch==\\\"function\\\"&&d.catch(function(){})}}catch(A){if(A&&m&&typeof A.stack==\\\"string\\\")return[A.stack,m.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,\\\"name\\\");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var o=r.DetermineComponentFrameRoot(),i=o[0],c=o[1];if(i&&c){var s=i.split(`\\n`),u=c.split(`\\n`);for(a=r=0;r<s.length&&!s[r].includes(\\\"DetermineComponentFrameRoot\\\");)r++;for(;a<u.length&&!u[a].includes(\\\"DetermineComponentFrameRoot\\\");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var l=`\\n`+s[r].replace(\\\" at new \\\",\\\" at \\\");return e.displayName&&l.includes(\\\"<anonymous>\\\")&&(l=l.replace(\\\"<anonymous>\\\",e.displayName)),l}while(1<=r&&0<=a);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:\\\"\\\")?Pr(n):\\\"\\\"}function MN(e,t){switch(e.tag){case 26:case 27:case 5:return Pr(e.type);case 16:return Pr(\\\"Lazy\\\");case 13:return e.child!==t&&t!==null?Pr(\\\"Suspense Fallback\\\"):Pr(\\\"Suspense\\\");case 19:return Pr(\\\"SuspenseList\\\");case 0:case 15:return pl(e.type,!1);case 11:return pl(e.type.render,!1);case 1:return pl(e.type,!0);case 31:return Pr(\\\"Activity\\\");default:return\\\"\\\"}}function IA(e){try{var t=\\\"\\\",n=null;do t+=MN(e,n),n=e,e=e.return;while(e);return t}catch(r){return`\\nError generating stack: `+r.message+`\\n`+r.stack}}var nd=Object.prototype.hasOwnProperty,Yd=we.unstable_scheduleCallback,El=we.unstable_cancelCallback,wN=we.unstable_shouldYield,xN=we.unstable_requestPaint,Rt=we.unstable_now,LN=we.unstable_getCurrentPriorityLevel,eh=we.unstable_ImmediatePriority,th=we.unstable_UserBlockingPriority,fs=we.unstable_NormalPriority,UN=we.unstable_LowPriority,nh=we.unstable_IdlePriority,zN=we.log,BN=we.unstable_setDisableYieldValue,xi=null,Tt=null;function cr(e){if(typeof zN==\\\"function\\\"&&BN(e),Tt&&typeof Tt.setStrictMode==\\\"function\\\")try{Tt.setStrictMode(xi,e)}catch{}}var St=Math.clz32?Math.clz32:kN,PN=Math.log,FN=Math.LN2;function kN(e){return e>>>=0,e===0?32:31-(PN(e)/FN|0)|0}var Mc=256,wc=262144,xc=4194304;function Fr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ps(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var c=r&134217727;return c!==0?(r=c&~o,r!==0?a=Fr(r):(i&=c,i!==0?a=Fr(i):n||(n=c&~e,n!==0&&(a=Fr(n))))):(c=r&~o,c!==0?a=Fr(c):i!==0?a=Fr(i):n||(n=r&~e,n!==0&&(a=Fr(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function GN(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rh(){var e=xc;return xc<<=1,(xc&62914560)===0&&(xc=4194304),e}function Rl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VN(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var c=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var l=31-St(n),d=1<<l;c[l]=0,s[l]=-1;var m=u[l];if(m!==null)for(u[l]=null,l=0;l<m.length;l++){var A=m[l];A!==null&&(A.lane&=-536870913)}n&=~d}r!==0&&ah(e,r,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function ah(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-St(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function oh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function ih(e,t){var n=t&-t;return n=(n&42)!==0?1:qd(n),(n&(e.suspendedLanes|t))!==0?0:n}function qd(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ch(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:bE(e.type))}function OA(e,t){var n=te.p;try{return te.p=e,t()}finally{te.p=n}}var Ir=Math.random().toString(36).slice(2),Ve=\\\"__reactFiber$\\\"+Ir,ct=\\\"__reactProps$\\\"+Ir,po=\\\"__reactContainer$\\\"+Ir,rd=\\\"__reactEvents$\\\"+Ir,HN=\\\"__reactListeners$\\\"+Ir,WN=\\\"__reactHandles$\\\"+Ir,vA=\\\"__reactResources$\\\"+Ir,zi=\\\"__reactMarker$\\\"+Ir;function Zd(e){delete e[Ve],delete e[ct],delete e[rd],delete e[HN],delete e[WN]}function Ha(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=U_(e);e!==null;){if(n=e[Ve])return n;e=U_(e)}return t}e=n,n=e.parentNode}return null}function Eo(e){if(e=e[Ve]||e[po]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function Ja(e){var t=e[vA];return t||(t=e[vA]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[zi]=!0}var sh=new Set,uh={};function Qr(e,t){co(e,t),co(e+\\\"Capture\\\",t)}function co(e,t){for(uh[e]=t,e=0;e<t.length;e++)sh.add(t[e])}var jN=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),CA={},DA={};function YN(e){return nd.call(DA,e)?!0:nd.call(CA,e)?!1:jN.test(e)?DA[e]=!0:(CA[e]=!0,!1)}function Kc(e,t,n){if(YN(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":e.removeAttribute(t);return;case\\\"boolean\\\":var r=t.toLowerCase().slice(0,5);if(r!==\\\"data-\\\"&&r!==\\\"aria-\\\"){e.removeAttribute(t);return}}e.setAttribute(t,\\\"\\\"+n)}}function Lc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":e.removeAttribute(t);return}e.setAttribute(t,\\\"\\\"+n)}}function yn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":e.removeAttribute(n);return}e.setAttributeNS(t,n,\\\"\\\"+r)}}function Mt(e){switch(typeof e){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return e;case\\\"object\\\":return e;default:return\\\"\\\"}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===\\\"input\\\"&&(t===\\\"checkbox\\\"||t===\\\"radio\\\")}function qN(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<\\\"u\\\"&&typeof r.get==\\\"function\\\"&&typeof r.set==\\\"function\\\"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=\\\"\\\"+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=\\\"\\\"+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ad(e){if(!e._valueTracker){var t=lh(e)?\\\"checked\\\":\\\"value\\\";e._valueTracker=qN(e,t,\\\"\\\"+e[t])}}function dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\\\"\\\";return e&&(r=lh(e)?e.checked?\\\"true\\\":\\\"false\\\":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ms(e){if(e=e||(typeof document<\\\"u\\\"?document:void 0),typeof e>\\\"u\\\")return null;try{return e.activeElement||e.body}catch{return e.body}}var KN=/[\\\\n\\\"\\\\\\\\]/g;function Lt(e){return e.replace(KN,function(t){return\\\"\\\\\\\\\\\"+t.charCodeAt(0).toString(16)+\\\" \\\"})}function od(e,t,n,r,a,o,i,c){e.name=\\\"\\\",i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"?e.type=i:e.removeAttribute(\\\"type\\\"),t!=null?i===\\\"number\\\"?(t===0&&e.value===\\\"\\\"||e.value!=t)&&(e.value=\\\"\\\"+Mt(t)):e.value!==\\\"\\\"+Mt(t)&&(e.value=\\\"\\\"+Mt(t)):i!==\\\"submit\\\"&&i!==\\\"reset\\\"||e.removeAttribute(\\\"value\\\"),t!=null?id(e,i,Mt(t)):n!=null?id(e,i,Mt(n)):r!=null&&e.removeAttribute(\\\"value\\\"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"),c!=null&&typeof c!=\\\"function\\\"&&typeof c!=\\\"symbol\\\"&&typeof c!=\\\"boolean\\\"?e.name=\\\"\\\"+Mt(c):e.removeAttribute(\\\"name\\\")}function fh(e,t,n,r,a,o,i,c){if(o!=null&&typeof o!=\\\"function\\\"&&typeof o!=\\\"symbol\\\"&&typeof o!=\\\"boolean\\\"&&(e.type=o),t!=null||n!=null){if(!(o!==\\\"submit\\\"&&o!==\\\"reset\\\"||t!=null)){ad(e);return}n=n!=null?\\\"\\\"+Mt(n):\\\"\\\",t=t!=null?\\\"\\\"+Mt(t):n,c||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"&&!!r,e.checked=c?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"&&(e.name=i),ad(e)}function id(e,t,n){t===\\\"number\\\"&&ms(e.ownerDocument)===e||e.defaultValue===\\\"\\\"+n||(e.defaultValue=\\\"\\\"+n)}function eo(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t[\\\"$\\\"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty(\\\"$\\\"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=\\\"\\\"+Mt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function mh(e,t,n){if(t!=null&&(t=\\\"\\\"+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?\\\"\\\"+Mt(n):\\\"\\\"}function gh(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(R(92));if(ti(r)){if(1<r.length)throw Error(R(93));r=r[0]}n=r}n==null&&(n=\\\"\\\"),t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==\\\"\\\"&&r!==null&&(e.value=r),ad(e)}function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ZN=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function bA(e,t,n){var r=t.indexOf(\\\"--\\\")===0;n==null||typeof n==\\\"boolean\\\"||n===\\\"\\\"?r?e.setProperty(t,\\\"\\\"):t===\\\"float\\\"?e.cssFloat=\\\"\\\":e[t]=\\\"\\\":r?e.setProperty(t,n):typeof n!=\\\"number\\\"||n===0||ZN.has(t)?t===\\\"float\\\"?e.cssFloat=n:e[t]=(\\\"\\\"+n).trim():e[t]=n+\\\"px\\\"}function Ah(e,t,n){if(t!=null&&typeof t!=\\\"object\\\")throw Error(R(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(\\\"--\\\")===0?e.setProperty(r,\\\"\\\"):r===\\\"float\\\"?e.cssFloat=\\\"\\\":e[r]=\\\"\\\");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&bA(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&bA(e,o,t[o])}function Xd(e){if(e.indexOf(\\\"-\\\")===-1)return!1;switch(e){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var XN=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),$N=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function Zc(e){return $N.test(\\\"\\\"+e)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":e}function Mn(){}var cd=null;function $d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wa=null,to=null;function MA(e){var t=Eo(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;e:switch(e=t.stateNode,t.type){case\\\"input\\\":if(od(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===\\\"radio\\\"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\\\"'+Lt(\\\"\\\"+t)+'\\\"][type=\\\"radio\\\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ct]||null;if(!a)throw Error(R(90));od(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&dh(r)}break e;case\\\"textarea\\\":mh(e,n.value,n.defaultValue);break e;case\\\"select\\\":t=n.value,t!=null&&eo(e,!!n.multiple,t,!1)}}}var Tl=!1;function _h(e,t,n){if(Tl)return e(t,n);Tl=!0;try{var r=e(t);return r}finally{if(Tl=!1,(Wa!==null||to!==null)&&(Xs(),Wa&&(t=Wa,e=to,to=Wa=null,MA(t),e)))for(t=0;t<e.length;t++)MA(e[t])}}function Ei(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ct]||null;if(r===null)return null;n=r[t];e:switch(t){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(r=!r.disabled)||(e=e.type,r=!(e===\\\"button\\\"||e===\\\"input\\\"||e===\\\"select\\\"||e===\\\"textarea\\\")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!=\\\"function\\\")throw Error(R(231,t,typeof n));return n}var zn=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),sd=!1;if(zn)try{za={},Object.defineProperty(za,\\\"passive\\\",{get:function(){sd=!0}}),window.addEventListener(\\\"test\\\",za,za),window.removeEventListener(\\\"test\\\",za,za)}catch{sd=!1}var za,sr=null,Qd=null,Xc=null;function hh(){if(Xc)return Xc;var e,t=Qd,n=t.length,r,a=\\\"value\\\"in sr?sr.value:sr.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[o-r];r++);return Xc=a.slice(e,1<r?1-r:void 0)}function $c(e){var t=e.keyCode;return\\\"charCode\\\"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Uc(){return!0}function wA(){return!1}function st(e){function t(n,r,a,o,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Uc:wA,this.isPropagationStopped=wA,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\\\"unknown\\\"&&(n.returnValue=!1),this.isDefaultPrevented=Uc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\\\"unknown\\\"&&(n.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),t}var Jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=st(Jr),Bi=me({},Jr,{view:0,detail:0}),QN=st(Bi),Sl,yl,Ko,ks=me({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\\\"movementX\\\"in e?e.movementX:(e!==Ko&&(Ko&&e.type===\\\"mousemove\\\"?(Sl=e.screenX-Ko.screenX,yl=e.screenY-Ko.screenY):yl=Sl=0,Ko=e),Sl)},movementY:function(e){return\\\"movementY\\\"in e?e.movementY:yl}}),xA=st(ks),JN=me({},ks,{dataTransfer:0}),eI=st(JN),tI=me({},Bi,{relatedTarget:0}),Nl=st(tI),nI=me({},Jr,{animationName:0,elapsedTime:0,pseudoElement:0}),rI=st(nI),aI=me({},Jr,{clipboardData:function(e){return\\\"clipboardData\\\"in e?e.clipboardData:window.clipboardData}}),oI=st(aI),iI=me({},Jr,{data:0}),LA=st(iI),cI={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},sI={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},uI={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function lI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uI[e])?!!t[e]:!1}function Jd(){return lI}var dI=me({},Bi,{key:function(e){if(e.key){var t=cI[e.key]||e.key;if(t!==\\\"Unidentified\\\")return t}return e.type===\\\"keypress\\\"?(e=$c(e),e===13?\\\"Enter\\\":String.fromCharCode(e)):e.type===\\\"keydown\\\"||e.type===\\\"keyup\\\"?sI[e.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jd,charCode:function(e){return e.type===\\\"keypress\\\"?$c(e):0},keyCode:function(e){return e.type===\\\"keydown\\\"||e.type===\\\"keyup\\\"?e.keyCode:0},which:function(e){return e.type===\\\"keypress\\\"?$c(e):e.type===\\\"keydown\\\"||e.type===\\\"keyup\\\"?e.keyCode:0}}),fI=st(dI),mI=me({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UA=st(mI),gI=me({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jd}),AI=st(gI),_I=me({},Jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),hI=st(_I),pI=me({},ks,{deltaX:function(e){return\\\"deltaX\\\"in e?e.deltaX:\\\"wheelDeltaX\\\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\\\"deltaY\\\"in e?e.deltaY:\\\"wheelDeltaY\\\"in e?-e.wheelDeltaY:\\\"wheelDelta\\\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),EI=st(pI),RI=me({},Jr,{newState:0,oldState:0}),TI=st(RI),SI=[9,13,27,32],ef=zn&&\\\"CompositionEvent\\\"in window,oi=null;zn&&\\\"documentMode\\\"in document&&(oi=document.documentMode);var yI=zn&&\\\"TextEvent\\\"in window&&!oi,ph=zn&&(!ef||oi&&8<oi&&11>=oi),zA=\\\" \\\",BA=!1;function Eh(e,t){switch(e){case\\\"keyup\\\":return SI.indexOf(t.keyCode)!==-1;case\\\"keydown\\\":return t.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function Rh(e){return e=e.detail,typeof e==\\\"object\\\"&&\\\"data\\\"in e?e.data:null}var ja=!1;function NI(e,t){switch(e){case\\\"compositionend\\\":return Rh(t);case\\\"keypress\\\":return t.which!==32?null:(BA=!0,zA);case\\\"textInput\\\":return e=t.data,e===zA&&BA?null:e;default:return null}}function II(e,t){if(ja)return e===\\\"compositionend\\\"||!ef&&Eh(e,t)?(e=hh(),Xc=Qd=sr=null,ja=!1,e):null;switch(e){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\\\"compositionend\\\":return ph&&t.locale!==\\\"ko\\\"?null:t.data;default:return null}}var OI={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function PA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===\\\"input\\\"?!!OI[e.type]:t===\\\"textarea\\\"}function Th(e,t,n,r){Wa?to?to.push(r):to=[r]:Wa=r,t=Ms(t,\\\"onChange\\\"),0<t.length&&(n=new Fs(\\\"onChange\\\",\\\"change\\\",null,n,r),e.push({event:n,listeners:t}))}var ii=null,Ri=null;function vI(e){_E(e,0)}function Gs(e){var t=ni(e);if(dh(t))return e}function FA(e,t){if(e===\\\"change\\\")return t}var Sh=!1;zn&&(zn?(Bc=\\\"oninput\\\"in document,Bc||(Il=document.createElement(\\\"div\\\"),Il.setAttribute(\\\"oninput\\\",\\\"return;\\\"),Bc=typeof Il.oninput==\\\"function\\\"),zc=Bc):zc=!1,Sh=zc&&(!document.documentMode||9<document.documentMode));var zc,Bc,Il;function kA(){ii&&(ii.detachEvent(\\\"onpropertychange\\\",yh),Ri=ii=null)}function yh(e){if(e.propertyName===\\\"value\\\"&&Gs(Ri)){var t=[];Th(t,Ri,e,$d(e)),_h(vI,t)}}function CI(e,t,n){e===\\\"focusin\\\"?(kA(),ii=t,Ri=n,ii.attachEvent(\\\"onpropertychange\\\",yh)):e===\\\"focusout\\\"&&kA()}function DI(e){if(e===\\\"selectionchange\\\"||e===\\\"keyup\\\"||e===\\\"keydown\\\")return Gs(Ri)}function bI(e,t){if(e===\\\"click\\\")return Gs(t)}function MI(e,t){if(e===\\\"input\\\"||e===\\\"change\\\")return Gs(t)}function wI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is==\\\"function\\\"?Object.is:wI;function Ti(e,t){if(Nt(e,t))return!0;if(typeof e!=\\\"object\\\"||e===null||typeof t!=\\\"object\\\"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!nd.call(t,a)||!Nt(e[a],t[a]))return!1}return!0}function GA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function VA(e,t){var n=GA(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=GA(n)}}function Nh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nh(e,t.parentNode):\\\"contains\\\"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ms(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==\\\"string\\\"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ms(e.document)}return t}function tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===\\\"input\\\"&&(e.type===\\\"text\\\"||e.type===\\\"search\\\"||e.type===\\\"tel\\\"||e.type===\\\"url\\\"||e.type===\\\"password\\\")||t===\\\"textarea\\\"||e.contentEditable===\\\"true\\\")}var xI=zn&&\\\"documentMode\\\"in document&&11>=document.documentMode,Ya=null,ud=null,ci=null,ld=!1;function HA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ld||Ya==null||Ya!==ms(r)||(r=Ya,\\\"selectionStart\\\"in r&&tf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ci&&Ti(ci,r)||(ci=r,r=Ms(ud,\\\"onSelect\\\"),0<r.length&&(t=new Fs(\\\"onSelect\\\",\\\"select\\\",null,t,n),e.push({event:t,listeners:r}),t.target=Ya)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\\\"Webkit\\\"+e]=\\\"webkit\\\"+t,n[\\\"Moz\\\"+e]=\\\"moz\\\"+t,n}var qa={animationend:Br(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:Br(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:Br(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:Br(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:Br(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:Br(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:Br(\\\"Transition\\\",\\\"TransitionEnd\\\")},Ol={},Oh={};zn&&(Oh=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),\\\"TransitionEvent\\\"in window||delete qa.transitionend.transition);function ea(e){if(Ol[e])return Ol[e];if(!qa[e])return e;var t=qa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Oh)return Ol[e]=t[n];return e}var vh=ea(\\\"animationend\\\"),Ch=ea(\\\"animationiteration\\\"),Dh=ea(\\\"animationstart\\\"),LI=ea(\\\"transitionrun\\\"),UI=ea(\\\"transitionstart\\\"),zI=ea(\\\"transitioncancel\\\"),bh=ea(\\\"transitionend\\\"),Mh=new Map,dd=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");dd.push(\\\"scrollEnd\\\");function Xt(e,t){Mh.set(e,t),Qr(t,[e])}var gs=typeof reportError==\\\"function\\\"?reportError:function(e){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var t=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof e==\\\"object\\\"&&e!==null&&typeof e.message==\\\"string\\\"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",e);return}console.error(e)},bt=[],Ka=0,nf=0;function Vs(){for(var e=Ka,t=nf=Ka=0;t<e;){var n=bt[t];bt[t++]=null;var r=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var o=bt[t];if(bt[t++]=null,r!==null&&a!==null){var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}o!==0&&wh(n,a,o)}}function Hs(e,t,n,r){bt[Ka++]=e,bt[Ka++]=t,bt[Ka++]=n,bt[Ka++]=r,nf|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function rf(e,t,n,r){return Hs(e,t,n,r),As(e)}function ta(e,t){return Hs(e,null,null,t),As(e)}function wh(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-St(n),e=o.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),o):null}function As(e){if(50<_i)throw _i=0,wd=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function BI(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new BI(e,t,n,r)}function af(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function xh(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Qc(e,t,n,r,a,o){var i=0;if(r=e,typeof e==\\\"function\\\")af(e)&&(i=1);else if(typeof e==\\\"string\\\")i=kO(e,n,ln.current)?26:e===\\\"html\\\"||e===\\\"head\\\"||e===\\\"body\\\"?27:5;else e:switch(e){case Ql:return e=pt(31,n,t,a),e.elementType=Ql,e.lanes=o,e;case Ga:return Hr(n.children,a,o,t);case Q_:i=8,a|=24;break;case Zl:return e=pt(12,n,t,a|2),e.elementType=Zl,e.lanes=o,e;case Xl:return e=pt(13,n,t,a),e.elementType=Xl,e.lanes=o,e;case $l:return e=pt(19,n,t,a),e.elementType=$l,e.lanes=o,e;default:if(typeof e==\\\"object\\\"&&e!==null)switch(e.$$typeof){case bn:i=10;break e;case J_:i=9;break e;case Wd:i=11;break e;case jd:i=14;break e;case tr:i=16,r=null;break e}i=29,n=Error(R(130,e===null?\\\"null\\\":typeof e,\\\"\\\")),r=null}return t=pt(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function vl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Lh(e){var t=pt(18,null,null,0);return t.stateNode=e,t}function Cl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var WA=new WeakMap;function Ut(e,t){if(typeof e==\\\"object\\\"&&e!==null){var n=WA.get(e);return n!==void 0?n:(t={value:e,source:t,stack:IA(t)},WA.set(e,t),t)}return{value:e,source:t,stack:IA(t)}}var Xa=[],$a=0,_s=null,Si=0,wt=[],xt=0,Tr=null,cn=1,sn=\\\"\\\";function Cn(e,t){Xa[$a++]=Si,Xa[$a++]=_s,_s=e,Si=t}function Uh(e,t,n){wt[xt++]=cn,wt[xt++]=sn,wt[xt++]=Tr,Tr=e;var r=cn;e=sn;var a=32-St(r)-1;r&=~(1<<a),n+=1;var o=32-St(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,cn=1<<32-St(t)+a|n<<a|r,sn=o+e}else cn=1<<o|n<<a|r,sn=e}function of(e){e.return!==null&&(Cn(e,1),Uh(e,1,0))}function cf(e){for(;e===_s;)_s=Xa[--$a],Xa[$a]=null,Si=Xa[--$a],Xa[$a]=null;for(;e===Tr;)Tr=wt[--xt],wt[xt]=null,sn=wt[--xt],wt[xt]=null,cn=wt[--xt],wt[xt]=null}function zh(e,t){wt[xt++]=cn,wt[xt++]=sn,wt[xt++]=Tr,cn=t.id,sn=t.overflow,Tr=e}var He=null,fe=null,Q=!1,mr=null,zt=!1,fd=Error(R(519));function Sr(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw yi(Ut(t,e)),fd}function jA(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ve]=e,t[ct]=r,n){case\\\"dialog\\\":j(\\\"cancel\\\",t),j(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":j(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<vi.length;n++)j(vi[n],t);break;case\\\"source\\\":j(\\\"error\\\",t);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":j(\\\"error\\\",t),j(\\\"load\\\",t);break;case\\\"details\\\":j(\\\"toggle\\\",t);break;case\\\"input\\\":j(\\\"invalid\\\",t),fh(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case\\\"select\\\":j(\\\"invalid\\\",t);break;case\\\"textarea\\\":j(\\\"invalid\\\",t),gh(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=\\\"string\\\"&&typeof n!=\\\"number\\\"&&typeof n!=\\\"bigint\\\"||t.textContent===\\\"\\\"+n||r.suppressHydrationWarning===!0||pE(t.textContent,n)?(r.popover!=null&&(j(\\\"beforetoggle\\\",t),j(\\\"toggle\\\",t)),r.onScroll!=null&&j(\\\"scroll\\\",t),r.onScrollEnd!=null&&j(\\\"scrollend\\\",t),r.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||Sr(e,!0)}function YA(e){for(He=e.return;He;)switch(He.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:He=He.return}}function Ba(e){if(e!==He)return!1;if(!Q)return YA(e),Q=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==\\\"form\\\"&&n!==\\\"button\\\")||Bd(e.type,e.memoizedProps)),n=!n),n&&fe&&Sr(e),YA(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));fe=L_(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));fe=L_(e)}else t===27?(t=fe,Or(e.type)?(e=Gd,Gd=null,fe=e):fe=t):fe=He?Pt(e.stateNode.nextSibling):null;return!0}function qr(){fe=He=null,Q=!1}function Dl(){var e=mr;return e!==null&&(ot===null?ot=e:ot.push.apply(ot,e),mr=null),e}function yi(e){mr===null?mr=[e]:mr.push(e)}var md=dn(null),na=null,wn=null;function rr(e,t,n){ue(md,t._currentValue),t._currentValue=n}function Ln(e){e._currentValue=md.current,Fe(md)}function gd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ad(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var i=a.child;o=o.firstContext;e:for(;o!==null;){var c=o;o=a;for(var s=0;s<t.length;s++)if(c.context===t[s]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),gd(o.return,n,e),r||(i=null);break e}o=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(R(341));i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),gd(i,n,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Ro(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(R(387));if(i=i.memoizedProps,i!==null){var c=a.type;Nt(a.pendingProps.value,i.value)||(e!==null?e.push(c):e=[c])}}else if(a===us.current){if(i=a.alternate,i===null)throw Error(R(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Di):e=[Di])}a=a.return}e!==null&&Ad(t,e,n,r),t.flags|=262144}function hs(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kr(e){na=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return Bh(na,e)}function Pc(e,t){return na===null&&Kr(e),Bh(e,t)}function Bh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wn===null){if(e===null)throw Error(R(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return n}var PI=typeof AbortController<\\\"u\\\"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},FI=we.unstable_scheduleCallback,kI=we.unstable_NormalPriority,Ce={$$typeof:bn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sf(){return{controller:new PI,data:new Map,refCount:0}}function Pi(e){e.refCount--,e.refCount===0&&FI(kI,function(){e.controller.abort()})}var si=null,_d=0,uo=0,no=null;function GI(e,t){if(si===null){var n=si=[];_d=0,uo=xf(),no={status:\\\"pending\\\",value:void 0,then:function(r){n.push(r)}}}return _d++,t.then(qA,qA),t}function qA(){if(--_d===0&&si!==null){no!==null&&(no.status=\\\"fulfilled\\\");var e=si;si=null,uo=0,no=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function VI(e,t){var n=[],r={status:\\\"pending\\\",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status=\\\"fulfilled\\\",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status=\\\"rejected\\\",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var KA=L.S;L.S=function(e,t){$p=Rt(),typeof t==\\\"object\\\"&&t!==null&&typeof t.then==\\\"function\\\"&&GI(e,t),KA!==null&&KA(e,t)};var Wr=dn(null);function uf(){var e=Wr.current;return e!==null?e:ie.pooledCache}function Jc(e,t){t===null?ue(Wr,Wr.current):ue(Wr,t.pool)}function Ph(){var e=uf();return e===null?null:{parent:Ce._currentValue,pool:e}}var To=Error(R(460)),lf=Error(R(474)),Ws=Error(R(542)),ps={then:function(){}};function ZA(e){return e=e.status,e===\\\"fulfilled\\\"||e===\\\"rejected\\\"}function Fh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Mn,Mn),t=n),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw e=t.reason,$A(e),e;default:if(typeof t.status==\\\"string\\\")t.then(Mn,Mn);else{if(e=ie,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status=\\\"pending\\\",e.then(function(r){if(t.status===\\\"pending\\\"){var a=t;a.status=\\\"fulfilled\\\",a.value=r}},function(r){if(t.status===\\\"pending\\\"){var a=t;a.status=\\\"rejected\\\",a.reason=r}})}switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw e=t.reason,$A(e),e}throw jr=t,To}}function kr(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?(jr=n,To):n}}var jr=null;function XA(){if(jr===null)throw Error(R(459));var e=jr;return jr=null,e}function $A(e){if(e===To||e===Ws)throw Error(R(483))}var ro=null,Ni=0;function Fc(e){var t=Ni;return Ni+=1,ro===null&&(ro=[]),Fh(ro,e,t)}function Zo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kc(e,t){throw t.$$typeof===CN?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":e)))}function kh(e){function t(g,f){if(e){var _=g.deletions;_===null?(g.deletions=[f],g.flags|=16):_.push(f)}}function n(g,f){if(!e)return null;for(;f!==null;)t(g,f),f=f.sibling;return null}function r(g){for(var f=new Map;g!==null;)g.key!==null?f.set(g.key,g):f.set(g.index,g),g=g.sibling;return f}function a(g,f){return g=xn(g,f),g.index=0,g.sibling=null,g}function o(g,f,_){return g.index=_,e?(_=g.alternate,_!==null?(_=_.index,_<f?(g.flags|=67108866,f):_):(g.flags|=67108866,f)):(g.flags|=1048576,f)}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function c(g,f,_,E){return f===null||f.tag!==6?(f=vl(_,g.mode,E),f.return=g,f):(f=a(f,_),f.return=g,f)}function s(g,f,_,E){var D=_.type;return D===Ga?l(g,f,_.props.children,E,_.key):f!==null&&(f.elementType===D||typeof D==\\\"object\\\"&&D!==null&&D.$$typeof===tr&&kr(D)===f.type)?(f=a(f,_.props),Zo(f,_),f.return=g,f):(f=Qc(_.type,_.key,_.props,null,g.mode,E),Zo(f,_),f.return=g,f)}function u(g,f,_,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==_.containerInfo||f.stateNode.implementation!==_.implementation?(f=Cl(_,g.mode,E),f.return=g,f):(f=a(f,_.children||[]),f.return=g,f)}function l(g,f,_,E,D){return f===null||f.tag!==7?(f=Hr(_,g.mode,E,D),f.return=g,f):(f=a(f,_),f.return=g,f)}function d(g,f,_){if(typeof f==\\\"string\\\"&&f!==\\\"\\\"||typeof f==\\\"number\\\"||typeof f==\\\"bigint\\\")return f=vl(\\\"\\\"+f,g.mode,_),f.return=g,f;if(typeof f==\\\"object\\\"&&f!==null){switch(f.$$typeof){case bc:return _=Qc(f.type,f.key,f.props,null,g.mode,_),Zo(_,f),_.return=g,_;case ei:return f=Cl(f,g.mode,_),f.return=g,f;case tr:return f=kr(f),d(g,f,_)}if(ti(f)||qo(f))return f=Hr(f,g.mode,_,null),f.return=g,f;if(typeof f.then==\\\"function\\\")return d(g,Fc(f),_);if(f.$$typeof===bn)return d(g,Pc(g,f),_);kc(g,f)}return null}function m(g,f,_,E){var D=f!==null?f.key:null;if(typeof _==\\\"string\\\"&&_!==\\\"\\\"||typeof _==\\\"number\\\"||typeof _==\\\"bigint\\\")return D!==null?null:c(g,f,\\\"\\\"+_,E);if(typeof _==\\\"object\\\"&&_!==null){switch(_.$$typeof){case bc:return _.key===D?s(g,f,_,E):null;case ei:return _.key===D?u(g,f,_,E):null;case tr:return _=kr(_),m(g,f,_,E)}if(ti(_)||qo(_))return D!==null?null:l(g,f,_,E,null);if(typeof _.then==\\\"function\\\")return m(g,f,Fc(_),E);if(_.$$typeof===bn)return m(g,f,Pc(g,_),E);kc(g,_)}return null}function A(g,f,_,E,D){if(typeof E==\\\"string\\\"&&E!==\\\"\\\"||typeof E==\\\"number\\\"||typeof E==\\\"bigint\\\")return g=g.get(_)||null,c(f,g,\\\"\\\"+E,D);if(typeof E==\\\"object\\\"&&E!==null){switch(E.$$typeof){case bc:return g=g.get(E.key===null?_:E.key)||null,s(f,g,E,D);case ei:return g=g.get(E.key===null?_:E.key)||null,u(f,g,E,D);case tr:return E=kr(E),A(g,f,_,E,D)}if(ti(E)||qo(E))return g=g.get(_)||null,l(f,g,E,D,null);if(typeof E.then==\\\"function\\\")return A(g,f,_,Fc(E),D);if(E.$$typeof===bn)return A(g,f,_,Pc(f,E),D);kc(f,E)}return null}function S(g,f,_,E){for(var D=null,$=null,v=f,U=f=0,W=null;v!==null&&U<_.length;U++){v.index>U?(W=v,v=null):W=v.sibling;var G=m(g,v,_[U],E);if(G===null){v===null&&(v=W);break}e&&v&&G.alternate===null&&t(g,v),f=o(G,f,U),$===null?D=G:$.sibling=G,$=G,v=W}if(U===_.length)return n(g,v),Q&&Cn(g,U),D;if(v===null){for(;U<_.length;U++)v=d(g,_[U],E),v!==null&&(f=o(v,f,U),$===null?D=v:$.sibling=v,$=v);return Q&&Cn(g,U),D}for(v=r(v);U<_.length;U++)W=A(v,g,U,_[U],E),W!==null&&(e&&W.alternate!==null&&v.delete(W.key===null?U:W.key),f=o(W,f,U),$===null?D=W:$.sibling=W,$=W);return e&&v.forEach(function(vt){return t(g,vt)}),Q&&Cn(g,U),D}function O(g,f,_,E){if(_==null)throw Error(R(151));for(var D=null,$=null,v=f,U=f=0,W=null,G=_.next();v!==null&&!G.done;U++,G=_.next()){v.index>U?(W=v,v=null):W=v.sibling;var vt=m(g,v,G.value,E);if(vt===null){v===null&&(v=W);break}e&&v&&vt.alternate===null&&t(g,v),f=o(vt,f,U),$===null?D=vt:$.sibling=vt,$=vt,v=W}if(G.done)return n(g,v),Q&&Cn(g,U),D;if(v===null){for(;!G.done;U++,G=_.next())G=d(g,G.value,E),G!==null&&(f=o(G,f,U),$===null?D=G:$.sibling=G,$=G);return Q&&Cn(g,U),D}for(v=r(v);!G.done;U++,G=_.next())G=A(v,g,U,G.value,E),G!==null&&(e&&G.alternate!==null&&v.delete(G.key===null?U:G.key),f=o(G,f,U),$===null?D=G:$.sibling=G,$=G);return e&&v.forEach(function(pc){return t(g,pc)}),Q&&Cn(g,U),D}function X(g,f,_,E){if(typeof _==\\\"object\\\"&&_!==null&&_.type===Ga&&_.key===null&&(_=_.props.children),typeof _==\\\"object\\\"&&_!==null){switch(_.$$typeof){case bc:e:{for(var D=_.key;f!==null;){if(f.key===D){if(D=_.type,D===Ga){if(f.tag===7){n(g,f.sibling),E=a(f,_.props.children),E.return=g,g=E;break e}}else if(f.elementType===D||typeof D==\\\"object\\\"&&D!==null&&D.$$typeof===tr&&kr(D)===f.type){n(g,f.sibling),E=a(f,_.props),Zo(E,_),E.return=g,g=E;break e}n(g,f);break}else t(g,f);f=f.sibling}_.type===Ga?(E=Hr(_.props.children,g.mode,E,_.key),E.return=g,g=E):(E=Qc(_.type,_.key,_.props,null,g.mode,E),Zo(E,_),E.return=g,g=E)}return i(g);case ei:e:{for(D=_.key;f!==null;){if(f.key===D)if(f.tag===4&&f.stateNode.containerInfo===_.containerInfo&&f.stateNode.implementation===_.implementation){n(g,f.sibling),E=a(f,_.children||[]),E.return=g,g=E;break e}else{n(g,f);break}else t(g,f);f=f.sibling}E=Cl(_,g.mode,E),E.return=g,g=E}return i(g);case tr:return _=kr(_),X(g,f,_,E)}if(ti(_))return S(g,f,_,E);if(qo(_)){if(D=qo(_),typeof D!=\\\"function\\\")throw Error(R(150));return _=D.call(_),O(g,f,_,E)}if(typeof _.then==\\\"function\\\")return X(g,f,Fc(_),E);if(_.$$typeof===bn)return X(g,f,Pc(g,_),E);kc(g,_)}return typeof _==\\\"string\\\"&&_!==\\\"\\\"||typeof _==\\\"number\\\"||typeof _==\\\"bigint\\\"?(_=\\\"\\\"+_,f!==null&&f.tag===6?(n(g,f.sibling),E=a(f,_),E.return=g,g=E):(n(g,f),E=vl(_,g.mode,E),E.return=g,g=E),i(g)):n(g,f)}return function(g,f,_,E){try{Ni=0;var D=X(g,f,_,E);return ro=null,D}catch(v){if(v===To||v===Ws)throw v;var $=pt(29,v,null,g.mode);return $.lanes=E,$.return=g,$}}}var Zr=kh(!0),Gh=kh(!1),nr=!1;function df(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ar(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ee&2)!==0){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=As(e),wh(e,null,n),t}return Hs(e,r,t,n),As(e)}function ui(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oh(e,n)}}function bl(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var pd=!1;function li(){if(pd){var e=no;if(e!==null)throw e}}function di(e,t,n,r){pd=!1;var a=e.updateQueue;nr=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var s=c,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var l=e.alternate;l!==null&&(l=l.updateQueue,c=l.lastBaseUpdate,c!==i&&(c===null?l.firstBaseUpdate=u:c.next=u,l.lastBaseUpdate=s))}if(o!==null){var d=a.baseState;i=0,l=u=s=null,c=o;do{var m=c.lane&-536870913,A=m!==c.lane;if(A?(K&m)===m:(r&m)===m){m!==0&&m===uo&&(pd=!0),l!==null&&(l=l.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var S=e,O=c;m=t;var X=n;switch(O.tag){case 1:if(S=O.payload,typeof S==\\\"function\\\"){d=S.call(X,d,m);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=O.payload,m=typeof S==\\\"function\\\"?S.call(X,d,m):S,m==null)break e;d=me({},d,m);break e;case 2:nr=!0}}m=c.callback,m!==null&&(e.flags|=64,A&&(e.flags|=8192),A=a.callbacks,A===null?a.callbacks=[m]:A.push(m))}else A={lane:m,tag:c.tag,payload:c.payload,callback:c.callback,next:null},l===null?(u=l=A,s=d):l=l.next=A,i|=m;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;A=c,c=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);l===null&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=l,o===null&&(a.shared.lanes=0),Nr|=i,e.lanes=i,e.memoizedState=d}}function Vh(e,t){if(typeof e!=\\\"function\\\")throw Error(R(191,e));e.call(t)}function Hh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Vh(n[e],t)}var lo=dn(null),Es=dn(0);function QA(e,t){e=kn,ue(Es,e),ue(lo,t),kn=e|t.baseLanes}function Ed(){ue(Es,kn),ue(lo,lo.current)}function ff(){kn=Es.current,Fe(lo),Fe(Es)}var It=dn(null),Bt=null;function ar(e){var t=e.alternate;ue(Ne,Ne.current&1),ue(It,e),Bt===null&&(t===null||lo.current!==null||t.memoizedState!==null)&&(Bt=e)}function Rd(e){ue(Ne,Ne.current),ue(It,e),Bt===null&&(Bt=e)}function Wh(e){e.tag===22?(ue(Ne,Ne.current),ue(It,e),Bt===null&&(Bt=e)):or(e)}function or(){ue(Ne,Ne.current),ue(It,It.current)}function ht(e){Fe(It),Bt===e&&(Bt=null),Fe(Ne)}var Ne=dn(0);function Rs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fd(n)||kd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===\\\"forwards\\\"||t.memoizedProps.revealOrder===\\\"backwards\\\"||t.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||t.memoizedProps.revealOrder===\\\"together\\\")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bn=0,P=null,oe=null,Oe=null,Ts=!1,ao=!1,Xr=!1,Ss=0,Ii=0,oo=null,HI=0;function Se(){throw Error(R(321))}function mf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function gf(e,t,n,r,a,o){return Bn=o,P=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Tp:If,Xr=!1,o=n(r,a),Xr=!1,ao&&(o=Yh(t,n,r,a)),jh(e),o}function jh(e){L.H=Oi;var t=oe!==null&&oe.next!==null;if(Bn=0,Oe=oe=P=null,Ts=!1,Ii=0,oo=null,t)throw Error(R(300));e===null||De||(e=e.dependencies,e!==null&&hs(e)&&(De=!0))}function Yh(e,t,n,r){P=e;var a=0;do{if(ao&&(oo=null),Ii=0,ao=!1,25<=a)throw Error(R(301));if(a+=1,Oe=oe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=Sp,o=t(n,r)}while(ao);return o}function WI(){var e=L.H,t=e.useState()[0];return t=typeof t.then==\\\"function\\\"?Fi(t):t,e=e.useState()[0],(oe!==null?oe.memoizedState:null)!==e&&(P.flags|=1024),t}function Af(){var e=Ss!==0;return Ss=0,e}function _f(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function hf(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}Bn=0,Oe=oe=P=null,ao=!1,Ii=Ss=0,oo=null}function Je(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?P.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function Ie(){if(oe===null){var e=P.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=Oe===null?P.memoizedState:Oe.next;if(t!==null)Oe=t,oe=e;else{if(e===null)throw P.alternate===null?Error(R(467)):Error(R(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},Oe===null?P.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function js(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fi(e){var t=Ii;return Ii+=1,oo===null&&(oo=[]),e=Fh(oo,e,t),t=P,(Oe===null?t.memoizedState:Oe.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Tp:If),e}function Ys(e){if(e!==null&&typeof e==\\\"object\\\"){if(typeof e.then==\\\"function\\\")return Fi(e);if(e.$$typeof===bn)return We(e)}throw Error(R(438,String(e)))}function pf(e){var t=null,n=P.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=P.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=js(),P.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=DN;return t.index++,n}function Pn(e,t){return typeof t==\\\"function\\\"?t(e):t}function es(e){var t=Ie();return Ef(t,oe,e)}function Ef(e,t,n){var r=e.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=i=null,s=null,u=t,l=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(K&d)===d:(Bn&d)===d){var m=u.revertLane;if(m===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===uo&&(l=!0);else if((Bn&m)===m){u=u.next,m===uo&&(l=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(c=s=d,i=o):s=s.next=d,P.lanes|=m,Nr|=m;d=u.action,Xr&&n(o,d),o=u.hasEagerState?u.eagerState:n(o,d)}else m={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(c=s=m,i=o):s=s.next=m,P.lanes|=d,Nr|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=c,!Nt(o,e.memoizedState)&&(De=!0,l&&(n=no,n!==null)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=s,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ml(e){var t=Ie(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Nt(o,t.memoizedState)||(De=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function qh(e,t,n){var r=P,a=Ie(),o=Q;if(o){if(n===void 0)throw Error(R(407));n=n()}else n=t();var i=!Nt((oe||a).memoizedState,n);if(i&&(a.memoizedState=n,De=!0),a=a.queue,Rf(Xh.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||Oe!==null&&Oe.memoizedState.tag&1){if(r.flags|=2048,fo(9,{destroy:void 0},Zh.bind(null,r,a,n,t),null),ie===null)throw Error(R(349));o||(Bn&127)!==0||Kh(r,t,n)}return n}function Kh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=P.updateQueue,t===null?(t=js(),P.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zh(e,t,n,r){t.value=n,t.getSnapshot=r,$h(t)&&Qh(e)}function Xh(e,t,n){return n(function(){$h(t)&&Qh(e)})}function $h(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Qh(e){var t=ta(e,2);t!==null&&it(t,e,2)}function Td(e){var t=Je();if(typeof e==\\\"function\\\"){var n=e;if(e=n(),Xr){cr(!0);try{n()}finally{cr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},t}function Jh(e,t,n,r){return e.baseState=n,Ef(e,oe,typeof r==\\\"function\\\"?r:Pn)}function jI(e,t,n,r,a){if(Ks(e))throw Error(R(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};L.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,ep(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ep(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=L.T,i={};L.T=i;try{var c=n(a,r),s=L.S;s!==null&&s(i,c),JA(e,t,c)}catch(u){Sd(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),L.T=o}}else try{o=n(a,r),JA(e,t,o)}catch(u){Sd(e,t,u)}}function JA(e,t,n){n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?n.then(function(r){e_(e,t,r)},function(r){return Sd(e,t,r)}):e_(e,t,n)}function e_(e,t,n){t.status=\\\"fulfilled\\\",t.value=n,tp(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ep(e,n)))}function Sd(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=\\\"rejected\\\",t.reason=n,tp(t),t=t.next;while(t!==r)}e.action=null}function tp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function np(e,t){return t}function t_(e,t){if(Q){var n=ie.formState;if(n!==null){e:{var r=P;if(Q){if(fe){t:{for(var a=fe,o=zt;a.nodeType!==8;){if(!o){a=null;break t}if(a=Pt(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o===\\\"F!\\\"||o===\\\"F\\\"?a:null}if(a){fe=Pt(a.nextSibling),r=a.data===\\\"F!\\\";break e}}Sr(r)}r=!1}r&&(t=n[0])}}return n=Je(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:np,lastRenderedState:t},n.queue=r,n=pp.bind(null,P,r),r.dispatch=n,r=Td(!1),o=Nf.bind(null,P,!1,r.queue),r=Je(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=jI.bind(null,P,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function n_(e){var t=Ie();return rp(t,oe,e)}function rp(e,t,n){if(t=Ef(e,t,np)[0],e=es(Pn)[0],typeof t==\\\"object\\\"&&t!==null&&typeof t.then==\\\"function\\\")try{var r=Fi(t)}catch(i){throw i===To?Ws:i}else r=t;t=Ie();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(P.flags|=2048,fo(9,{destroy:void 0},YI.bind(null,a,n),null)),[r,o,e]}function YI(e,t){e.action=t}function r_(e){var t=Ie(),n=oe;if(n!==null)return rp(t,n,e);Ie(),t=t.memoizedState,n=Ie();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function fo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=P.updateQueue,t===null&&(t=js(),P.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ap(){return Ie().memoizedState}function ts(e,t,n,r){var a=Je();P.flags|=e,a.memoizedState=fo(1|t,{destroy:void 0},n,r===void 0?null:r)}function qs(e,t,n,r){var a=Ie();r=r===void 0?null:r;var o=a.memoizedState.inst;oe!==null&&r!==null&&mf(r,oe.memoizedState.deps)?a.memoizedState=fo(t,o,n,r):(P.flags|=e,a.memoizedState=fo(1|t,o,n,r))}function a_(e,t){ts(8390656,8,e,t)}function Rf(e,t){qs(2048,8,e,t)}function qI(e){P.flags|=4;var t=P.updateQueue;if(t===null)t=js(),P.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function op(e){var t=Ie().memoizedState;return qI({ref:t,nextImpl:e}),function(){if((ee&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function ip(e,t){return qs(4,2,e,t)}function cp(e,t){return qs(4,4,e,t)}function sp(e,t){if(typeof t==\\\"function\\\"){e=e();var n=t(e);return function(){typeof n==\\\"function\\\"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function up(e,t,n){n=n!=null?n.concat([e]):null,qs(4,4,sp.bind(null,t,e),n)}function Tf(){}function lp(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&mf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dp(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&mf(t,r[1]))return r[0];if(r=e(),Xr){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[r,t],r}function Sf(e,t,n){return n===void 0||(Bn&1073741824)!==0&&(K&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Jp(),P.lanes|=e,Nr|=e,n)}function fp(e,t,n,r){return Nt(n,t)?n:lo.current!==null?(e=Sf(e,n,r),Nt(e,t)||(De=!0),e):(Bn&42)===0||(Bn&1073741824)!==0&&(K&261930)===0?(De=!0,e.memoizedState=n):(e=Jp(),P.lanes|=e,Nr|=e,t)}function mp(e,t,n,r,a){var o=te.p;te.p=o!==0&&8>o?o:8;var i=L.T,c={};L.T=c,Nf(e,!1,t,n);try{var s=a(),u=L.S;if(u!==null&&u(c,s),s!==null&&typeof s==\\\"object\\\"&&typeof s.then==\\\"function\\\"){var l=VI(s,r);fi(e,t,l,yt(e))}else fi(e,t,r,yt(e))}catch(d){fi(e,t,{then:function(){},status:\\\"rejected\\\",reason:d},yt())}finally{te.p=o,i!==null&&c.types!==null&&(i.types=c.types),L.T=i}}function KI(){}function yd(e,t,n,r){if(e.tag!==5)throw Error(R(476));var a=gp(e).queue;mp(e,a,t,Vr,n===null?KI:function(){return Ap(e),n(r)})}function gp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vr,baseState:Vr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:Vr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ap(e){var t=gp(e);t.next===null&&(t=e.alternate.memoizedState),fi(e,t.next.queue,{},yt())}function yf(){return We(Di)}function _p(){return Ie().memoizedState}function hp(){return Ie().memoizedState}function ZI(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yt();e=gr(n);var r=Ar(t,e,n);r!==null&&(it(r,t,n),ui(r,t,n)),t={cache:sf()},e.payload=t;return}t=t.return}}function XI(e,t,n){var r=yt();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ks(e)?Ep(t,n):(n=rf(e,t,n,r),n!==null&&(it(n,e,r),Rp(n,t,r)))}function pp(e,t,n){var r=yt();fi(e,t,n,r)}function fi(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ks(e))Ep(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(a.hasEagerState=!0,a.eagerState=c,Nt(c,i))return Hs(e,t,a,0),ie===null&&Vs(),!1}catch{}if(n=rf(e,t,a,r),n!==null)return it(n,e,r),Rp(n,t,r),!0}return!1}function Nf(e,t,n,r){if(r={lane:2,revertLane:xf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ks(e)){if(t)throw Error(R(479))}else t=rf(e,n,r,2),t!==null&&it(t,e,2)}function Ks(e){var t=e.alternate;return e===P||t!==null&&t===P}function Ep(e,t){ao=Ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rp(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oh(e,n)}}var Oi={readContext:We,use:Ys,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se};Oi.useEffectEvent=Se;var Tp={readContext:We,use:Ys,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:a_,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ts(4194308,4,sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Je();t=t===void 0?null:t;var r=e();if(Xr){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Je();if(n!==void 0){var a=n(t);if(Xr){cr(!0);try{n(t)}finally{cr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=XI.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:function(e){e=Td(e);var t=e.queue,n=pp.bind(null,P,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Tf,useDeferredValue:function(e,t){var n=Je();return Sf(n,e,t)},useTransition:function(){var e=Td(!1);return e=mp.bind(null,P,e.queue,!0,!1),Je().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=P,a=Je();if(Q){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ie===null)throw Error(R(349));(K&127)!==0||Kh(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,a_(Xh.bind(null,r,o,e),[e]),r.flags|=2048,fo(9,{destroy:void 0},Zh.bind(null,r,o,n,t),null),n},useId:function(){var e=Je(),t=ie.identifierPrefix;if(Q){var n=sn,r=cn;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=\\\"_\\\"+t+\\\"R_\\\"+n,n=Ss++,0<n&&(t+=\\\"H\\\"+n.toString(32)),t+=\\\"_\\\"}else n=HI++,t=\\\"_\\\"+t+\\\"r_\\\"+n.toString(32)+\\\"_\\\";return e.memoizedState=t},useHostTransitionStatus:yf,useFormState:t_,useActionState:t_,useOptimistic:function(e){var t=Je();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Nf.bind(null,P,!0,n),n.dispatch=t,[e,t]},useMemoCache:pf,useCacheRefresh:function(){return Je().memoizedState=ZI.bind(null,P)},useEffectEvent:function(e){var t=Je(),n={impl:e};return t.memoizedState=n,function(){if((ee&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},If={readContext:We,use:Ys,useCallback:lp,useContext:We,useEffect:Rf,useImperativeHandle:up,useInsertionEffect:ip,useLayoutEffect:cp,useMemo:dp,useReducer:es,useRef:ap,useState:function(){return es(Pn)},useDebugValue:Tf,useDeferredValue:function(e,t){var n=Ie();return fp(n,oe.memoizedState,e,t)},useTransition:function(){var e=es(Pn)[0],t=Ie().memoizedState;return[typeof e==\\\"boolean\\\"?e:Fi(e),t]},useSyncExternalStore:qh,useId:_p,useHostTransitionStatus:yf,useFormState:n_,useActionState:n_,useOptimistic:function(e,t){var n=Ie();return Jh(n,oe,e,t)},useMemoCache:pf,useCacheRefresh:hp};If.useEffectEvent=op;var Sp={readContext:We,use:Ys,useCallback:lp,useContext:We,useEffect:Rf,useImperativeHandle:up,useInsertionEffect:ip,useLayoutEffect:cp,useMemo:dp,useReducer:Ml,useRef:ap,useState:function(){return Ml(Pn)},useDebugValue:Tf,useDeferredValue:function(e,t){var n=Ie();return oe===null?Sf(n,e,t):fp(n,oe.memoizedState,e,t)},useTransition:function(){var e=Ml(Pn)[0],t=Ie().memoizedState;return[typeof e==\\\"boolean\\\"?e:Fi(e),t]},useSyncExternalStore:qh,useId:_p,useHostTransitionStatus:yf,useFormState:r_,useActionState:r_,useOptimistic:function(e,t){var n=Ie();return oe!==null?Jh(n,oe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:pf,useCacheRefresh:hp};Sp.useEffectEvent=op;function wl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Nd={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),a=gr(r);a.payload=t,n!=null&&(a.callback=n),t=Ar(e,a,r),t!==null&&(it(t,e,r),ui(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),a=gr(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ar(e,a,r),t!==null&&(it(t,e,r),ui(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=gr(n);r.tag=2,t!=null&&(r.callback=t),t=Ar(e,r,n),t!==null&&(it(t,e,n),ui(t,e,n))}};function o_(e,t,n,r,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate==\\\"function\\\"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Ti(n,r)||!Ti(a,o):!0}function i_(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==\\\"function\\\"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Nd.enqueueReplaceState(t,t.state,null)}function $r(e,t){var n=t;if(\\\"ref\\\"in t){n={};for(var r in t)r!==\\\"ref\\\"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=me({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function yp(e){gs(e)}function Np(e){console.error(e)}function Ip(e){gs(e)}function ys(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function c_(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Id(e,t,n){return n=gr(n),n.tag=3,n.payload={element:null},n.callback=function(){ys(e,t)},n}function Op(e){return e=gr(e),e.tag=3,e}function vp(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a==\\\"function\\\"){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){c_(t,n,r)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch==\\\"function\\\"&&(e.callback=function(){c_(t,n,r),typeof a!=\\\"function\\\"&&(_r===null?_r=new Set([this]):_r.add(this));var c=r.stack;this.componentDidCatch(r.value,{componentStack:c!==null?c:\\\"\\\"})})}function $I(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r==\\\"object\\\"&&typeof r.then==\\\"function\\\"){if(t=n.alternate,t!==null&&Ro(t,n,a,!0),n=It.current,n!==null){switch(n.tag){case 31:case 13:return Bt===null?Cs():n.alternate===null&&ye===0&&(ye=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ps?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Hl(e,r,a)),!1;case 22:return n.flags|=65536,r===ps?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Hl(e,r,a)),!1}throw Error(R(435,n.tag))}return Hl(e,r,a),Cs(),!1}if(Q)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==fd&&(e=Error(R(422),{cause:r}),yi(Ut(e,n)))):(r!==fd&&(t=Error(R(423),{cause:r}),yi(Ut(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ut(r,n),a=Id(e.stateNode,r,a),bl(e,a),ye!==4&&(ye=2)),!1;var o=Error(R(520),{cause:r});if(o=Ut(o,n),Ai===null?Ai=[o]:Ai.push(o),ye!==4&&(ye=2),t===null)return!0;r=Ut(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Id(n.stateNode,r,e),bl(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError==\\\"function\\\"||o!==null&&typeof o.componentDidCatch==\\\"function\\\"&&(_r===null||!_r.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Op(a),vp(a,e,n,r),bl(n,a),!1}n=n.return}while(n!==null);return!1}var Of=Error(R(461)),De=!1;function Ge(e,t,n,r){t.child=e===null?Gh(t,null,n,r):Zr(t,e.child,n,r)}function s_(e,t,n,r,a){n=n.render;var o=t.ref;if(\\\"ref\\\"in r){var i={};for(var c in r)c!==\\\"ref\\\"&&(i[c]=r[c])}else i=r;return Kr(t),r=gf(e,t,n,i,o,a),c=Af(),e!==null&&!De?(_f(e,t,a),Fn(e,t,a)):(Q&&c&&of(t),t.flags|=1,Ge(e,t,r,a),t.child)}function u_(e,t,n,r,a){if(e===null){var o=n.type;return typeof o==\\\"function\\\"&&!af(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Cp(e,t,o,r,a)):(e=Qc(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!vf(e,a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ti,n(i,r)&&e.ref===t.ref)return Fn(e,t,a)}return t.flags|=1,e=xn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Cp(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(Ti(o,r)&&e.ref===t.ref)if(De=!1,t.pendingProps=r=o,vf(e,a))(e.flags&131072)!==0&&(De=!0);else return t.lanes=e.lanes,Fn(e,t,a)}return Od(e,t,n,r,a)}function Dp(e,t,n,r){var a=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===\\\"hidden\\\"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~o}else r=0,t.child=null;return l_(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jc(t,o!==null?o.cachePool:null),o!==null?QA(t,o):Ed(),Wh(t);else return r=t.lanes=536870912,l_(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(Jc(t,o.cachePool),QA(t,o),or(t),t.memoizedState=null):(e!==null&&Jc(t,null),Ed(),or(t));return Ge(e,t,a,n),t.child}function ri(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function l_(e,t,n,r,a){var o=uf();return o=o===null?null:{parent:Ce._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Jc(t,null),Ed(),Wh(t),e!==null&&Ro(e,t,r,!0),t.childLanes=a,null}function ns(e,t){return t=Ns({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function d_(e,t,n){return Zr(t,e.child,null,n),e=ns(t,t.pendingProps),e.flags|=2,ht(t),t.memoizedState=null,e}function QI(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Q){if(r.mode===\\\"hidden\\\")return e=ns(t,r),t.lanes=536870912,ri(null,e);if(Rd(t),(e=fe)?(e=TE(e,zt),e=e!==null&&e.data===\\\"&\\\"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tr!==null?{id:cn,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=Lh(e),n.return=t,t.child=n,He=t,fe=null)):e=null,e===null)throw Sr(t);return t.lanes=536870912,null}return ns(t,r)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(Rd(t),a)if(t.flags&256)t.flags&=-257,t=d_(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(De||Ro(e,t,n,!1),a=(n&e.childLanes)!==0,De||a){if(r=ie,r!==null&&(i=ih(r,n),i!==0&&i!==o.retryLane))throw o.retryLane=i,ta(e,i),it(r,e,i),Of;Cs(),t=d_(e,t,n)}else e=o.treeContext,fe=Pt(i.nextSibling),He=t,Q=!0,mr=null,zt=!1,e!==null&&zh(t,e),t=ns(t,r),t.flags|=4096;return t}return e=xn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=\\\"function\\\"&&typeof n!=\\\"object\\\")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Od(e,t,n,r,a){return Kr(t),n=gf(e,t,n,r,void 0,a),r=Af(),e!==null&&!De?(_f(e,t,a),Fn(e,t,a)):(Q&&r&&of(t),t.flags|=1,Ge(e,t,n,a),t.child)}function f_(e,t,n,r,a,o){return Kr(t),t.updateQueue=null,n=Yh(t,r,n,a),jh(e),r=Af(),e!==null&&!De?(_f(e,t,o),Fn(e,t,o)):(Q&&r&&of(t),t.flags|=1,Ge(e,t,n,o),t.child)}function m_(e,t,n,r,a){if(Kr(t),t.stateNode===null){var o=Za,i=n.contextType;typeof i==\\\"object\\\"&&i!==null&&(o=We(i)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Nd,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},df(t),i=n.contextType,o.context=typeof i==\\\"object\\\"&&i!==null?We(i):Za,o.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i==\\\"function\\\"&&(wl(t,n,i,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps==\\\"function\\\"||typeof o.getSnapshotBeforeUpdate==\\\"function\\\"||typeof o.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof o.componentWillMount!=\\\"function\\\"||(i=o.state,typeof o.componentWillMount==\\\"function\\\"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==\\\"function\\\"&&o.UNSAFE_componentWillMount(),i!==o.state&&Nd.enqueueReplaceState(o,o.state,null),di(t,r,o,a),li(),o.state=t.memoizedState),typeof o.componentDidMount==\\\"function\\\"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var c=t.memoizedProps,s=$r(n,c);o.props=s;var u=o.context,l=n.contextType;i=Za,typeof l==\\\"object\\\"&&l!==null&&(i=We(l));var d=n.getDerivedStateFromProps;l=typeof d==\\\"function\\\"||typeof o.getSnapshotBeforeUpdate==\\\"function\\\",c=t.pendingProps!==c,l||typeof o.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof o.componentWillReceiveProps!=\\\"function\\\"||(c||u!==i)&&i_(t,o,r,i),nr=!1;var m=t.memoizedState;o.state=m,di(t,r,o,a),li(),u=t.memoizedState,c||m!==u||nr?(typeof d==\\\"function\\\"&&(wl(t,n,d,r),u=t.memoizedState),(s=nr||o_(t,n,s,r,m,u,i))?(l||typeof o.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof o.componentWillMount!=\\\"function\\\"||(typeof o.componentWillMount==\\\"function\\\"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==\\\"function\\\"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==\\\"function\\\"&&(t.flags|=4194308)):(typeof o.componentDidMount==\\\"function\\\"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=i,r=s):(typeof o.componentDidMount==\\\"function\\\"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,hd(e,t),i=t.memoizedProps,l=$r(n,i),o.props=l,d=t.pendingProps,m=o.context,u=n.contextType,s=Za,typeof u==\\\"object\\\"&&u!==null&&(s=We(u)),c=n.getDerivedStateFromProps,(u=typeof c==\\\"function\\\"||typeof o.getSnapshotBeforeUpdate==\\\"function\\\")||typeof o.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof o.componentWillReceiveProps!=\\\"function\\\"||(i!==d||m!==s)&&i_(t,o,r,s),nr=!1,m=t.memoizedState,o.state=m,di(t,r,o,a),li();var A=t.memoizedState;i!==d||m!==A||nr||e!==null&&e.dependencies!==null&&hs(e.dependencies)?(typeof c==\\\"function\\\"&&(wl(t,n,c,r),A=t.memoizedState),(l=nr||o_(t,n,l,r,m,A,s)||e!==null&&e.dependencies!==null&&hs(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof o.componentWillUpdate!=\\\"function\\\"||(typeof o.componentWillUpdate==\\\"function\\\"&&o.componentWillUpdate(r,A,s),typeof o.UNSAFE_componentWillUpdate==\\\"function\\\"&&o.UNSAFE_componentWillUpdate(r,A,s)),typeof o.componentDidUpdate==\\\"function\\\"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==\\\"function\\\"&&(t.flags|=1024)):(typeof o.componentDidUpdate!=\\\"function\\\"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=\\\"function\\\"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=A),o.props=r,o.state=A,o.context=s,r=l):(typeof o.componentDidUpdate!=\\\"function\\\"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=\\\"function\\\"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,rs(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=\\\"function\\\"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Zr(t,e.child,null,a),t.child=Zr(t,null,n,a)):Ge(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Fn(e,t,a),e}function g_(e,t,n,r){return qr(),t.flags|=256,Ge(e,t,n,r),t.child}var xl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ll(e){return{baseLanes:e,cachePool:Ph()}}function Ul(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Et),e}function bp(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(Ne.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Q){if(a?ar(t):or(t),(e=fe)?(e=TE(e,zt),e=e!==null&&e.data!==\\\"&\\\"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tr!==null?{id:cn,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=Lh(e),n.return=t,t.child=n,He=t,fe=null)):e=null,e===null)throw Sr(t);return kd(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(or(t),a=t.mode,c=Ns({mode:\\\"hidden\\\",children:c},a),r=Hr(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Ll(n),r.childLanes=Ul(e,i,n),t.memoizedState=xl,ri(null,r)):(ar(t),vd(t,c))}var s=e.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(o)t.flags&256?(ar(t),t.flags&=-257,t=zl(e,t,n)):t.memoizedState!==null?(or(t),t.child=e.child,t.flags|=128,t=null):(or(t),c=r.fallback,a=t.mode,r=Ns({mode:\\\"visible\\\",children:r.children},a),c=Hr(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Zr(t,e.child,null,n),r=t.child,r.memoizedState=Ll(n),r.childLanes=Ul(e,i,n),t.memoizedState=xl,t=ri(null,r));else if(ar(t),kd(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var u=i.dgst;i=u,r=Error(R(419)),r.stack=\\\"\\\",r.digest=i,yi({value:r,source:null,stack:null}),t=zl(e,t,n)}else if(De||Ro(e,t,n,!1),i=(n&e.childLanes)!==0,De||i){if(i=ie,i!==null&&(r=ih(i,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,ta(e,r),it(i,e,r),Of;Fd(c)||Cs(),t=zl(e,t,n)}else Fd(c)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,fe=Pt(c.nextSibling),He=t,Q=!0,mr=null,zt=!1,e!==null&&zh(t,e),t=vd(t,r.children),t.flags|=4096);return t}return a?(or(t),c=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=xn(s,{mode:\\\"hidden\\\",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?c=xn(u,c):(c=Hr(c,a,n,null),c.flags|=2),c.return=t,r.return=t,r.sibling=c,t.child=r,ri(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Ll(n):(a=c.cachePool,a!==null?(s=Ce._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=Ph(),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Ul(e,i,n),t.memoizedState=xl,ri(e.child,r)):(ar(t),n=e.child,e=n.sibling,n=xn(n,{mode:\\\"visible\\\",children:r.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function vd(e,t){return t=Ns({mode:\\\"visible\\\",children:t},e.mode),t.return=e,e.child=t}function Ns(e,t){return e=pt(22,e,null,t),e.lanes=0,e}function zl(e,t,n){return Zr(t,e.child,null,n),e=vd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function A_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gd(e.return,t,n)}function Bl(e,t,n,r,a,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=o)}function Mp(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;r=r.children;var i=Ne.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,ue(Ne,i),Ge(e,t,r,n),r=Q?Si:0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&A_(e,n,t);else if(e.tag===19)A_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case\\\"forwards\\\":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Rs(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Bl(t,!1,a,n,o,r);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Rs(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Bl(t,!0,n,null,o,r);break;case\\\"together\\\":Bl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ro(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hs(e)))}function JI(e,t,n){switch(t.tag){case 3:ls(t,t.stateNode.containerInfo),rr(t,Ce,e.memoizedState.cache),qr();break;case 27:case 5:td(t);break;case 4:ls(t,t.stateNode.containerInfo);break;case 10:rr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Rd(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ar(t),t.flags|=128,null):(n&t.child.childLanes)!==0?bp(e,t,n):(ar(t),e=Fn(e,t,n),e!==null?e.sibling:null);ar(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Ro(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return Mp(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ue(Ne,Ne.current),r)break;return null;case 22:return t.lanes=0,Dp(e,t,n,t.pendingProps);case 24:rr(t,Ce,e.memoizedState.cache)}return Fn(e,t,n)}function wp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)De=!0;else{if(!vf(e,n)&&(t.flags&128)===0)return De=!1,JI(e,t,n);De=(e.flags&131072)!==0}else De=!1,Q&&(t.flags&1048576)!==0&&Uh(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=kr(t.elementType),t.type=e,typeof e==\\\"function\\\")af(e)?(r=$r(e,r),t.tag=1,t=m_(null,t,e,r,n)):(t.tag=0,t=Od(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Wd){t.tag=11,t=s_(null,t,e,r,n);break e}else if(a===jd){t.tag=14,t=u_(null,t,e,r,n);break e}}throw t=Jl(e)||e,Error(R(306,t,\\\"\\\"))}}return t;case 0:return Od(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=$r(r,t.pendingProps),m_(e,t,r,a,n);case 3:e:{if(ls(t,t.stateNode.containerInfo),e===null)throw Error(R(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,hd(e,t),di(t,r,null,n);var i=t.memoizedState;if(r=i.cache,rr(t,Ce,r),r!==o.cache&&Ad(t,[Ce],n,!0),li(),r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=g_(e,t,r,n);break e}else if(r!==a){a=Ut(Error(R(424)),t),yi(a),t=g_(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e,fe=Pt(e.firstChild),He=t,Q=!0,mr=null,zt=!0,n=Gh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qr(),r===a){t=Fn(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 26:return rs(e,t),e===null?(n=B_(t.type,null,t.pendingProps,null))?t.memoizedState=n:Q||(n=t.type,e=t.pendingProps,r=ws(fr.current).createElement(n),r[Ve]=t,r[ct]=e,je(r,n,e),Pe(r),t.stateNode=r):t.memoizedState=B_(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return td(t),e===null&&Q&&(r=t.stateNode=SE(t.type,t.pendingProps,fr.current),He=t,zt=!0,a=fe,Or(t.type)?(Gd=a,fe=Pt(r.firstChild)):fe=a),Ge(e,t,t.pendingProps.children,n),rs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Q&&((a=r=fe)&&(r=vO(r,t.type,t.pendingProps,zt),r!==null?(t.stateNode=r,He=t,fe=Pt(r.firstChild),zt=!1,a=!0):a=!1),a||Sr(t)),td(t),a=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,r=o.children,Bd(a,o)?r=null:i!==null&&Bd(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=gf(e,t,WI,null,null,n),Di._currentValue=a),rs(e,t),Ge(e,t,r,n),t.child;case 6:return e===null&&Q&&((e=n=fe)&&(n=CO(n,t.pendingProps,zt),n!==null?(t.stateNode=n,He=t,fe=null,e=!0):e=!1),e||Sr(t)),null;case 13:return bp(e,t,n);case 4:return ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return s_(e,t,t.type,t.pendingProps,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,rr(t,t.type,r.value),Ge(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Kr(t),a=We(a),r=r(a),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return u_(e,t,t.type,t.pendingProps,n);case 15:return Cp(e,t,t.type,t.pendingProps,n);case 19:return Mp(e,t,n);case 31:return QI(e,t,n);case 22:return Dp(e,t,n,t.pendingProps);case 24:return Kr(t),r=We(Ce),e===null?(a=uf(),a===null&&(a=ie,o=sf(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},df(t),rr(t,Ce,a)):((e.lanes&n)!==0&&(hd(e,t),di(t,null,null,n),li()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),rr(t,Ce,r)):(r=o.cache,rr(t,Ce,r),r!==a.cache&&Ad(t,[Ce],n,!0))),Ge(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function Nn(e){e.flags|=4}function Pl(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(nE())e.flags|=8192;else throw jr=ps,lf}else e.flags&=-16777217}function __(e,t){if(t.type!==\\\"stylesheet\\\"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!IE(t))if(nE())e.flags|=8192;else throw jr=ps,lf}function Gc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rh():536870912,e.lanes|=t,mo|=t)}function Xo(e,t){if(!Q)switch(e.tailMode){case\\\"hidden\\\":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case\\\"collapsed\\\":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function de(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eO(e,t,n){var r=t.pendingProps;switch(cf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return de(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ln(Ce),io(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ba(t)?Nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dl())),de(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nn(t),o!==null?(de(t),__(t,o)):(de(t),Pl(t,a,null,r,n))):o?o!==e.memoizedState?(Nn(t),de(t),__(t,o)):(de(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Nn(t),de(t),Pl(t,a,e,r,n)),null;case 27:if(ds(t),n=fr.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nn(t);else{if(!r){if(t.stateNode===null)throw Error(R(166));return de(t),null}e=ln.current,Ba(t)?jA(t,e):(e=SE(a,r,n),t.stateNode=e,Nn(t))}return de(t),null;case 5:if(ds(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nn(t);else{if(!r){if(t.stateNode===null)throw Error(R(166));return de(t),null}if(o=ln.current,Ba(t))jA(t,o);else{var i=ws(fr.current);switch(o){case 1:o=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case 2:o=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;default:switch(a){case\\\"svg\\\":o=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case\\\"math\\\":o=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;case\\\"script\\\":o=i.createElement(\\\"div\\\"),o.innerHTML=\\\"<script><\\\\/script>\\\",o=o.removeChild(o.firstChild);break;case\\\"select\\\":o=typeof r.is==\\\"string\\\"?i.createElement(\\\"select\\\",{is:r.is}):i.createElement(\\\"select\\\"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==\\\"string\\\"?i.createElement(a,{is:r.is}):i.createElement(a)}}o[Ve]=t,o[ct]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(je(o,a,r),a){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":r=!!r.autoFocus;break e;case\\\"img\\\":r=!0;break e;default:r=!1}r&&Nn(t)}}return de(t),Pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nn(t);else{if(typeof r!=\\\"string\\\"&&t.stateNode===null)throw Error(R(166));if(e=fr.current,Ba(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=He,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ve]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||pE(e.nodeValue,n)),e||Sr(t,!0)}else e=ws(e).createTextNode(r),e[Ve]=t,t.stateNode=e}return de(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ba(t),n!==null){if(e===null){if(!r)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[Ve]=t}else qr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;de(t),e=!1}else n=Dl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ht(t),t):(ht(t),null);if((t.flags&128)!==0)throw Error(R(558))}return de(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ba(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(R(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(R(317));a[Ve]=t}else qr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;de(t),a=!1}else a=Dl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ht(t),t):(ht(t),null)}return ht(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Gc(t,t.updateQueue),de(t),null);case 4:return io(),e===null&&Lf(t.stateNode.containerInfo),de(t),null;case 10:return Ln(t.type),de(t),null;case 19:if(Fe(Ne),r=t.memoizedState,r===null)return de(t),null;if(a=(t.flags&128)!==0,o=r.rendering,o===null)if(a)Xo(r,!1);else{if(ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Rs(e),o!==null){for(t.flags|=128,Xo(r,!1),e=o.updateQueue,t.updateQueue=e,Gc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)xh(n,e),n=n.sibling;return ue(Ne,Ne.current&1|2),Q&&Cn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Rt()>Os&&(t.flags|=128,a=!0,Xo(r,!1),t.lanes=4194304)}else{if(!a)if(e=Rs(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Gc(t,e),Xo(r,!0),r.tail===null&&r.tailMode===\\\"hidden\\\"&&!o.alternate&&!Q)return de(t),null}else 2*Rt()-r.renderingStartTime>Os&&n!==536870912&&(t.flags|=128,a=!0,Xo(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Rt(),e.sibling=null,n=Ne.current,ue(Ne,a?n&1|2:n&1),Q&&Cn(t,r.treeForkCount),e):(de(t),null);case 22:case 23:return ht(t),ff(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),n=t.updateQueue,n!==null&&Gc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Fe(Wr),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ln(Ce),de(t),null;case 25:return null;case 30:return null}throw Error(R(156,t.tag))}function tO(e,t){switch(cf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(Ce),io(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ds(t),null;case 31:if(t.memoizedState!==null){if(ht(t),t.alternate===null)throw Error(R(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Ne),null;case 4:return io(),null;case 10:return Ln(t.type),null;case 22:case 23:return ht(t),ff(),e!==null&&Fe(Wr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ln(Ce),null;case 25:return null;default:return null}}function xp(e,t){switch(cf(t),t.tag){case 3:Ln(Ce),io();break;case 26:case 27:case 5:ds(t);break;case 4:io();break;case 31:t.memoizedState!==null&&ht(t);break;case 13:ht(t);break;case 19:Fe(Ne);break;case 10:Ln(t.type);break;case 22:case 23:ht(t),ff(),e!==null&&Fe(Wr);break;case 24:Ln(Ce)}}function ki(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(c){re(t,t.return,c)}}function yr(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=t;var s=n,u=c;try{u()}catch(l){re(a,s,l)}}}r=r.next}while(r!==o)}}catch(l){re(t,t.return,l)}}function Lp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Hh(t,n)}catch(r){re(e,e.return,r)}}}function Up(e,t,n){n.props=$r(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){re(e,t,r)}}function mi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==\\\"function\\\"?e.refCleanup=n(r):n.current=r}}catch(a){re(e,t,a)}}function un(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==\\\"function\\\")try{r()}catch(a){re(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==\\\"function\\\")try{n(null)}catch(a){re(e,t,a)}else n.current=null}function zp(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n.autoFocus&&r.focus();break e;case\\\"img\\\":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){re(e,e.return,a)}}function Fl(e,t,n){try{var r=e.stateNode;TO(r,e.type,n,t),r[ct]=t}catch(a){re(e,e.return,a)}}function Bp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Or(e.type)||e.tag===4}function kl(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Or(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mn));else if(r!==4&&(r===27&&Or(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Cd(e,t,n),e=e.sibling;e!==null;)Cd(e,t,n),e=e.sibling}function Is(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Or(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Is(e,t,n),e=e.sibling;e!==null;)Is(e,t,n),e=e.sibling}function Pp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);je(t,r,n),t[Ve]=e,t[ct]=n}catch(o){re(e,e.return,o)}}var Dn=!1,ve=!1,Gl=!1,h_=typeof WeakSet==\\\"function\\\"?WeakSet:Set,Be=null;function nO(e,t){if(e=e.containerInfo,Ud=zs,e=Ih(e),tf(e)){if(\\\"selectionStart\\\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,c=-1,s=-1,u=0,l=0,d=e,m=null;t:for(;;){for(var A;d!==n||a!==0&&d.nodeType!==3||(c=i+a),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(A=d.firstChild)!==null;)m=d,d=A;for(;;){if(d===e)break t;if(m===n&&++u===a&&(c=i),m===o&&++l===r&&(s=i),(A=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=A}n=c===-1||s===-1?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},zs=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){switch(t=Be,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var S=$r(n.type,a);e=r.getSnapshotBeforeUpdate(S,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(O){re(n,n.return,O)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Pd(e);else if(n===1)switch(e.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":Pd(e);break;default:e.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(R(163))}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}}function Fp(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:On(e,n),r&4&&ki(5,n);break;case 1:if(On(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){re(n,n.return,i)}else{var a=$r(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){re(n,n.return,i)}}r&64&&Lp(n),r&512&&mi(n,n.return);break;case 3:if(On(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Hh(e,t)}catch(i){re(n,n.return,i)}}break;case 27:t===null&&r&4&&Pp(n);case 26:case 5:On(e,n),t===null&&r&4&&zp(n),r&512&&mi(n,n.return);break;case 12:On(e,n);break;case 31:On(e,n),r&4&&Vp(e,n);break;case 13:On(e,n),r&4&&Hp(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=dO.bind(null,n),DO(e,n))));break;case 22:if(r=n.memoizedState!==null||Dn,!r){t=t!==null&&t.memoizedState!==null||ve,a=Dn;var o=ve;Dn=r,(ve=t)&&!o?vn(e,n,(n.subtreeFlags&8772)!==0):On(e,n),Dn=a,ve=o}break;case 30:break;default:On(e,n)}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var he=null,at=!1;function In(e,t,n){for(n=n.child;n!==null;)Gp(e,t,n),n=n.sibling}function Gp(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount==\\\"function\\\")try{Tt.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 26:ve||un(n,t),In(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ve||un(n,t);var r=he,a=at;Or(n.type)&&(he=n.stateNode,at=!1),In(e,t,n),hi(n.stateNode),he=r,at=a;break;case 5:ve||un(n,t);case 6:if(r=he,a=at,he=null,In(e,t,n),he=r,at=a,he!==null)if(at)try{(he.nodeType===9?he.body:he.nodeName===\\\"HTML\\\"?he.ownerDocument.body:he).removeChild(n.stateNode)}catch(o){re(n,t,o)}else try{he.removeChild(n.stateNode)}catch(o){re(n,t,o)}break;case 18:he!==null&&(at?(e=he,w_(e.nodeType===9?e.body:e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e,n.stateNode),ho(e)):w_(he,n.stateNode));break;case 4:r=he,a=at,he=n.stateNode.containerInfo,at=!0,In(e,t,n),he=r,at=a;break;case 0:case 11:case 14:case 15:yr(2,n,t),ve||yr(4,n,t),In(e,t,n);break;case 1:ve||(un(n,t),r=n.stateNode,typeof r.componentWillUnmount==\\\"function\\\"&&Up(n,t,r)),In(e,t,n);break;case 21:In(e,t,n);break;case 22:ve=(r=ve)||n.memoizedState!==null,In(e,t,n),ve=r;break;default:In(e,t,n)}}function Vp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ho(e)}catch(n){re(t,t.return,n)}}}function Hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ho(e)}catch(n){re(t,t.return,n)}}function rO(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new h_),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new h_),t;default:throw Error(R(435,e.tag))}}function Vc(e,t){var n=rO(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=fO.bind(null,e,r);r.then(a,a)}})}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 27:if(Or(c.type)){he=c.stateNode,at=!1;break e}break;case 5:he=c.stateNode,at=!1;break e;case 3:case 4:he=c.stateNode.containerInfo,at=!0;break e}c=c.return}if(he===null)throw Error(R(160));Gp(o,i,a),he=null,at=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wp(t,e),t=t.sibling}var Zt=null;function Wp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nt(t,e),rt(e),r&4&&(yr(3,e,e.return),ki(3,e),yr(5,e,e.return));break;case 1:nt(t,e),rt(e),r&512&&(ve||n===null||un(n,n.return)),r&64&&Dn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Zt;if(nt(t,e),rt(e),r&512&&(ve||n===null||un(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case\\\"title\\\":o=a.getElementsByTagName(\\\"title\\\")[0],(!o||o[zi]||o[Ve]||o.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||o.hasAttribute(\\\"itemprop\\\"))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(\\\"head > title\\\"))),je(o,r,n),o[Ve]=e,Pe(o),r=o;break e;case\\\"link\\\":var i=F_(\\\"link\\\",\\\"href\\\",a).get(r+(n.href||\\\"\\\"));if(i){for(var c=0;c<i.length;c++)if(o=i[c],o.getAttribute(\\\"href\\\")===(n.href==null||n.href===\\\"\\\"?null:n.href)&&o.getAttribute(\\\"rel\\\")===(n.rel==null?null:n.rel)&&o.getAttribute(\\\"title\\\")===(n.title==null?null:n.title)&&o.getAttribute(\\\"crossorigin\\\")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(c,1);break t}}o=a.createElement(r),je(o,r,n),a.head.appendChild(o);break;case\\\"meta\\\":if(i=F_(\\\"meta\\\",\\\"content\\\",a).get(r+(n.content||\\\"\\\"))){for(c=0;c<i.length;c++)if(o=i[c],o.getAttribute(\\\"content\\\")===(n.content==null?null:\\\"\\\"+n.content)&&o.getAttribute(\\\"name\\\")===(n.name==null?null:n.name)&&o.getAttribute(\\\"property\\\")===(n.property==null?null:n.property)&&o.getAttribute(\\\"http-equiv\\\")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(\\\"charset\\\")===(n.charSet==null?null:n.charSet)){i.splice(c,1);break t}}o=a.createElement(r),je(o,r,n),a.head.appendChild(o);break;default:throw Error(R(468,r))}o[Ve]=e,Pe(o),r=o}e.stateNode=r}else k_(a,e.type,e.stateNode);else e.stateNode=P_(a,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?k_(a,e.type,e.stateNode):P_(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Fl(e,e.memoizedProps,n.memoizedProps)}break;case 27:nt(t,e),rt(e),r&512&&(ve||n===null||un(n,n.return)),n!==null&&r&4&&Fl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(nt(t,e),rt(e),r&512&&(ve||n===null||un(n,n.return)),e.flags&32){a=e.stateNode;try{so(a,\\\"\\\")}catch(S){re(e,e.return,S)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Fl(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Gl=!0);break;case 6:if(nt(t,e),rt(e),r&4){if(e.stateNode===null)throw Error(R(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(S){re(e,e.return,S)}}break;case 3:if(is=null,a=Zt,Zt=xs(t.containerInfo),nt(t,e),Zt=a,rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ho(t.containerInfo)}catch(S){re(e,e.return,S)}Gl&&(Gl=!1,jp(e));break;case 4:r=Zt,Zt=xs(e.stateNode.containerInfo),nt(t,e),rt(e),Zt=r;break;case 12:nt(t,e),rt(e);break;case 31:nt(t,e),rt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vc(e,r)));break;case 13:nt(t,e),rt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zs=Rt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vc(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Dn,l=ve;if(Dn=u||a,ve=l||s,nt(t,e),ve=l,Dn=u,rt(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Dn||ve||Gr(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(o=s.stateNode,a)i=o.style,typeof i.setProperty==\\\"function\\\"?i.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):i.display=\\\"none\\\";else{c=s.stateNode;var d=s.memoizedProps.style,m=d!=null&&d.hasOwnProperty(\\\"display\\\")?d.display:null;c.style.display=m==null||typeof m==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+m).trim()}}catch(S){re(s,s.return,S)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?\\\"\\\":s.memoizedProps}catch(S){re(s,s.return,S)}}}else if(t.tag===18){if(n===null){s=t;try{var A=s.stateNode;a?x_(A,!0):x_(s.stateNode,!1)}catch(S){re(s,s.return,S)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Vc(e,n))));break;case 19:nt(t,e),rt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vc(e,r)));break;case 30:break;case 21:break;default:nt(t,e),rt(e)}}function rt(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Bp(r)){n=r;break}r=r.return}if(n==null)throw Error(R(160));switch(n.tag){case 27:var a=n.stateNode,o=kl(e);Is(e,o,a);break;case 5:var i=n.stateNode;n.flags&32&&(so(i,\\\"\\\"),n.flags&=-33);var c=kl(e);Is(e,c,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=kl(e);Cd(e,u,s);break;default:throw Error(R(161))}}catch(l){re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function On(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fp(e,t.alternate,t),t=t.sibling}function Gr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yr(4,t,t.return),Gr(t);break;case 1:un(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==\\\"function\\\"&&Up(t,t.return,n),Gr(t);break;case 27:hi(t.stateNode);case 26:case 5:un(t,t.return),Gr(t);break;case 22:t.memoizedState===null&&Gr(t);break;case 30:Gr(t);break;default:Gr(t)}e=e.sibling}}function vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:vn(a,o,n),ki(4,o);break;case 1:if(vn(a,o,n),r=o,a=r.stateNode,typeof a.componentDidMount==\\\"function\\\")try{a.componentDidMount()}catch(u){re(r,r.return,u)}if(r=o,a=r.updateQueue,a!==null){var c=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)Vh(s[a],c)}catch(u){re(r,r.return,u)}}n&&i&64&&Lp(o),mi(o,o.return);break;case 27:Pp(o);case 26:case 5:vn(a,o,n),n&&r===null&&i&4&&zp(o),mi(o,o.return);break;case 12:vn(a,o,n);break;case 31:vn(a,o,n),n&&i&4&&Vp(a,o);break;case 13:vn(a,o,n),n&&i&4&&Hp(a,o);break;case 22:o.memoizedState===null&&vn(a,o,n),mi(o,o.return);break;case 30:break;default:vn(a,o,n)}t=t.sibling}}function Cf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Pi(n))}function Df(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e))}function Kt(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yp(e,t,n,r),t=t.sibling}function Yp(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,n,r),a&2048&&ki(9,t);break;case 1:Kt(e,t,n,r);break;case 3:Kt(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e)));break;case 12:if(a&2048){Kt(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,c=o.onPostCommit;typeof c==\\\"function\\\"&&c(i,t.alternate===null?\\\"mount\\\":\\\"update\\\",e.passiveEffectDuration,-0)}catch(s){re(t,t.return,s)}}else Kt(e,t,n,r);break;case 31:Kt(e,t,n,r);break;case 13:Kt(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?Kt(e,t,n,r):gi(e,t):o._visibility&2?Kt(e,t,n,r):(o._visibility|=2,Fa(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Cf(i,t);break;case 24:Kt(e,t,n,r),a&2048&&Df(t.alternate,t);break;default:Kt(e,t,n,r)}}function Fa(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,c=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Fa(o,i,c,s,a),ki(8,i);break;case 23:break;case 22:var l=i.stateNode;i.memoizedState!==null?l._visibility&2?Fa(o,i,c,s,a):gi(o,i):(l._visibility|=2,Fa(o,i,c,s,a)),a&&u&2048&&Cf(i.alternate,i);break;case 24:Fa(o,i,c,s,a),a&&u&2048&&Df(i.alternate,i);break;default:Fa(o,i,c,s,a)}t=t.sibling}}function gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:gi(n,r),a&2048&&Cf(r.alternate,r);break;case 24:gi(n,r),a&2048&&Df(r.alternate,r);break;default:gi(n,r)}t=t.sibling}}var ai=8192;function Pa(e,t,n){if(e.subtreeFlags&ai)for(e=e.child;e!==null;)qp(e,t,n),e=e.sibling}function qp(e,t,n){switch(e.tag){case 26:Pa(e,t,n),e.flags&ai&&e.memoizedState!==null&&GO(n,Zt,e.memoizedState,e.memoizedProps);break;case 5:Pa(e,t,n);break;case 3:case 4:var r=Zt;Zt=xs(e.stateNode.containerInfo),Pa(e,t,n),Zt=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ai,ai=16777216,Pa(e,t,n),ai=r):Pa(e,t,n));break;default:Pa(e,t,n)}}function Kp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $o(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Be=r,Xp(r,e)}Kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zp(e),e=e.sibling}function Zp(e){switch(e.tag){case 0:case 11:case 15:$o(e),e.flags&2048&&yr(9,e,e.return);break;case 3:$o(e);break;case 12:$o(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):$o(e);break;default:$o(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Be=r,Xp(r,e)}Kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yr(8,t,t.return),as(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function Xp(e,t){for(;Be!==null;){var n=Be;switch(n.tag){case 0:case 11:case 15:yr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Pi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Be=r;else e:for(n=e;Be!==null;){r=Be;var a=r.sibling,o=r.return;if(kp(r),r===n){Be=null;break e}if(a!==null){a.return=o,Be=a;break e}Be=o}}}var aO={getCacheForType:function(e){var t=We(Ce),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return We(Ce).controller.signal}},oO=typeof WeakMap==\\\"function\\\"?WeakMap:Map,ee=0,ie=null,Y=null,K=0,ne=0,_t=null,ur=!1,So=!1,bf=!1,kn=0,ye=0,Nr=0,Yr=0,Mf=0,Et=0,mo=0,Ai=null,ot=null,Dd=!1,Zs=0,$p=0,Os=1/0,vs=null,_r=null,Me=0,hr=null,go=null,Un=0,bd=0,Md=null,Qp=null,_i=0,wd=null;function yt(){return(ee&2)!==0&&K!==0?K&-K:L.T!==null?xf():ch()}function Jp(){if(Et===0)if((K&536870912)===0||Q){var e=wc;wc<<=1,(wc&3932160)===0&&(wc=262144),Et=e}else Et=536870912;return e=It.current,e!==null&&(e.flags|=32),Et}function it(e,t,n){(e===ie&&(ne===2||ne===9)||e.cancelPendingCommit!==null)&&(Ao(e,0),lr(e,K,Et,!1)),Ui(e,n),((ee&2)===0||e!==ie)&&(e===ie&&((ee&2)===0&&(Yr|=n),ye===4&&lr(e,K,Et,!1)),fn(e))}function eE(e,t,n){if((ee&6)!==0)throw Error(R(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Li(e,t),a=r?sO(e,t):Vl(e,t,!0),o=r;do{if(a===0){So&&!r&&lr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!iO(n)){a=Vl(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var c=e;a=Ai;var s=c.current.memoizedState.isDehydrated;if(s&&(Ao(c,i).flags|=256),i=Vl(c,i,!1),i!==2){if(bf&&!s){c.errorRecoveryDisabledLanes|=o,Yr|=o,a=4;break e}o=ot,ot=a,o!==null&&(ot===null?ot=o:ot.push.apply(ot,o))}a=i}if(o=!1,a!==2)continue}}if(a===1){Ao(e,0),lr(e,t,0,!0);break}e:{switch(r=e,o=a,o){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t)break;case 6:lr(r,t,Et,!ur);break e;case 2:ot=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(a=Zs+300-Rt(),10<a)){if(lr(r,t,Et,!ur),Ps(r,0,!0)!==0)break e;Un=t,r.timeoutHandle=RE(p_.bind(null,r,n,ot,vs,Dd,t,Et,Yr,mo,ur,o,\\\"Throttled\\\",-0,0),a);break e}p_(r,n,ot,vs,Dd,t,Et,Yr,mo,ur,o,null,-0,0)}}break}while(!0);fn(e)}function p_(e,t,n,r,a,o,i,c,s,u,l,d,m,A){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},qp(t,o,d);var S=(o&62914560)===o?Zs-Rt():(o&4194048)===o?$p-Rt():0;if(S=VO(d,S),S!==null){Un=o,e.cancelPendingCommit=S(R_.bind(null,e,t,o,n,r,a,i,c,s,l,d,null,m,A)),lr(e,o,i,!u);return}}R_(e,t,o,n,r,a,i,c,s)}function iO(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Nt(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lr(e,t,n,r){t&=~Mf,t&=~Yr,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-St(a),i=1<<o;r[o]=-1,a&=~i}n!==0&&ah(e,n,t)}function Xs(){return(ee&6)===0?(Gi(0,!1),!1):!0}function wf(){if(Y!==null){if(ne===0)var e=Y.return;else e=Y,wn=na=null,hf(e),ro=null,Ni=0,e=Y;for(;e!==null;)xp(e.alternate,e),e=e.return;Y=null}}function Ao(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,NO(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Un=0,wf(),ie=e,Y=n=xn(e.current,null),K=t,ne=0,_t=null,ur=!1,So=Li(e,t),bf=!1,mo=Et=Mf=Yr=Nr=ye=0,ot=Ai=null,Dd=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-St(r),o=1<<a;t|=e[a],r&=~o}return kn=t,Vs(),n}function tE(e,t){P=null,L.H=Oi,t===To||t===Ws?(t=XA(),ne=3):t===lf?(t=XA(),ne=4):ne=t===Of?8:t!==null&&typeof t==\\\"object\\\"&&typeof t.then==\\\"function\\\"?6:1,_t=t,Y===null&&(ye=1,ys(e,Ut(t,e.current)))}function nE(){var e=It.current;return e===null?!0:(K&4194048)===K?Bt===null:(K&62914560)===K||(K&536870912)!==0?e===Bt:!1}function rE(){var e=L.H;return L.H=Oi,e===null?Oi:e}function aE(){var e=L.A;return L.A=aO,e}function Cs(){ye=4,ur||(K&4194048)!==K&&It.current!==null||(So=!0),(Nr&134217727)===0&&(Yr&134217727)===0||ie===null||lr(ie,K,Et,!1)}function Vl(e,t,n){var r=ee;ee|=2;var a=rE(),o=aE();(ie!==e||K!==t)&&(vs=null,Ao(e,t)),t=!1;var i=ye;e:do try{if(ne!==0&&Y!==null){var c=Y,s=_t;switch(ne){case 8:wf(),i=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var u=ne;if(ne=0,_t=null,Qa(e,c,s,u),n&&So){i=0;break e}break;default:u=ne,ne=0,_t=null,Qa(e,c,s,u)}}cO(),i=ye;break}catch(l){tE(e,l)}while(!0);return t&&e.shellSuspendCounter++,wn=na=null,ee=r,L.H=a,L.A=o,Y===null&&(ie=null,K=0,Vs()),i}function cO(){for(;Y!==null;)oE(Y)}function sO(e,t){var n=ee;ee|=2;var r=rE(),a=aE();ie!==e||K!==t?(vs=null,Os=Rt()+500,Ao(e,t)):So=Li(e,t);e:do try{if(ne!==0&&Y!==null){t=Y;var o=_t;t:switch(ne){case 1:ne=0,_t=null,Qa(e,t,o,1);break;case 2:case 9:if(ZA(o)){ne=0,_t=null,E_(t);break}t=function(){ne!==2&&ne!==9||ie!==e||(ne=7),fn(e)},o.then(t,t);break e;case 3:ne=7;break e;case 4:ne=5;break e;case 7:ZA(o)?(ne=0,_t=null,E_(t)):(ne=0,_t=null,Qa(e,t,o,7));break;case 5:var i=null;switch(Y.tag){case 26:i=Y.memoizedState;case 5:case 27:var c=Y;if(i?IE(i):c.stateNode.complete){ne=0,_t=null;var s=c.sibling;if(s!==null)Y=s;else{var u=c.return;u!==null?(Y=u,$s(u)):Y=null}break t}}ne=0,_t=null,Qa(e,t,o,5);break;case 6:ne=0,_t=null,Qa(e,t,o,6);break;case 8:wf(),ye=6;break e;default:throw Error(R(462))}}uO();break}catch(l){tE(e,l)}while(!0);return wn=na=null,L.H=r,L.A=a,ee=n,Y!==null?0:(ie=null,K=0,Vs(),ye)}function uO(){for(;Y!==null&&!wN();)oE(Y)}function oE(e){var t=wp(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?$s(e):Y=t}function E_(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=f_(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=f_(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:hf(t);default:xp(n,t),t=Y=xh(t,kn),t=wp(n,t,kn)}e.memoizedProps=e.pendingProps,t===null?$s(e):Y=t}function Qa(e,t,n,r){wn=na=null,hf(t),ro=null,Ni=0;var a=t.return;try{if($I(e,a,t,n,K)){ye=1,ys(e,Ut(n,e.current)),Y=null;return}}catch(o){if(a!==null)throw Y=a,o;ye=1,ys(e,Ut(n,e.current)),Y=null;return}t.flags&32768?(Q||r===1?e=!0:So||(K&536870912)!==0?e=!1:(ur=e=!0,(r===2||r===9||r===3||r===6)&&(r=It.current,r!==null&&r.tag===13&&(r.flags|=16384))),iE(t,e)):$s(t)}function $s(e){var t=e;do{if((t.flags&32768)!==0){iE(t,ur);return}e=t.return;var n=eO(t.alternate,t,kn);if(n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ye===0&&(ye=5)}function iE(e,t){do{var n=tO(e.alternate,e);if(n!==null){n.flags&=32767,Y=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=n}while(e!==null);ye=6,Y=null}function R_(e,t,n,r,a,o,i,c,s){e.cancelPendingCommit=null;do Qs();while(Me!==0);if((ee&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));if(o=t.lanes|t.childLanes,o|=nf,VN(e,n,o,i,c,s),e===ie&&(Y=ie=null,K=0),go=t,hr=e,Un=n,bd=o,Md=a,Qp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mO(fs,function(){return dE(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null,a=te.p,te.p=2,i=ee,ee|=4;try{nO(e,t,n)}finally{ee=i,te.p=a,L.T=r}}Me=1,cE(),sE(),uE()}}function cE(){if(Me===1){Me=0;var e=hr,t=go,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var r=te.p;te.p=2;var a=ee;ee|=4;try{Wp(t,e);var o=zd,i=Ih(e.containerInfo),c=o.focusedElem,s=o.selectionRange;if(i!==c&&c&&c.ownerDocument&&Nh(c.ownerDocument.documentElement,c)){if(s!==null&&tf(c)){var u=s.start,l=s.end;if(l===void 0&&(l=u),\\\"selectionStart\\\"in c)c.selectionStart=u,c.selectionEnd=Math.min(l,c.value.length);else{var d=c.ownerDocument||document,m=d&&d.defaultView||window;if(m.getSelection){var A=m.getSelection(),S=c.textContent.length,O=Math.min(s.start,S),X=s.end===void 0?O:Math.min(s.end,S);!A.extend&&O>X&&(i=X,X=O,O=i);var g=VA(c,O),f=VA(c,X);if(g&&f&&(A.rangeCount!==1||A.anchorNode!==g.node||A.anchorOffset!==g.offset||A.focusNode!==f.node||A.focusOffset!==f.offset)){var _=d.createRange();_.setStart(g.node,g.offset),A.removeAllRanges(),O>X?(A.addRange(_),A.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),A.addRange(_))}}}}for(d=[],A=c;A=A.parentNode;)A.nodeType===1&&d.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof c.focus==\\\"function\\\"&&c.focus(),c=0;c<d.length;c++){var E=d[c];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}zs=!!Ud,zd=Ud=null}finally{ee=a,te.p=r,L.T=n}}e.current=t,Me=2}}function sE(){if(Me===2){Me=0;var e=hr,t=go,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var r=te.p;te.p=2;var a=ee;ee|=4;try{Fp(e,t.alternate,t)}finally{ee=a,te.p=r,L.T=n}}Me=3}}function uE(){if(Me===4||Me===3){Me=0,xN();var e=hr,t=go,n=Un,r=Qp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Me=5:(Me=0,go=hr=null,lE(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(_r=null),Kd(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot==\\\"function\\\")try{Tt.onCommitFiberRoot(xi,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=L.T,a=te.p,te.p=2,L.T=null;try{for(var o=e.onRecoverableError,i=0;i<r.length;i++){var c=r[i];o(c.value,{componentStack:c.stack})}}finally{L.T=t,te.p=a}}(Un&3)!==0&&Qs(),fn(e),a=e.pendingLanes,(n&261930)!==0&&(a&42)!==0?e===wd?_i++:(_i=0,wd=e):_i=0,Gi(0,!1)}}function lE(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function Qs(){return cE(),sE(),uE(),dE()}function dE(){if(Me!==5)return!1;var e=hr,t=bd;bd=0;var n=Kd(Un),r=L.T,a=te.p;try{te.p=32>n?32:n,L.T=null,n=Md,Md=null;var o=hr,i=Un;if(Me=0,go=hr=null,Un=0,(ee&6)!==0)throw Error(R(331));var c=ee;if(ee|=4,Zp(o.current),Yp(o,o.current,i,n),ee=c,Gi(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot==\\\"function\\\")try{Tt.onPostCommitFiberRoot(xi,o)}catch{}return!0}finally{te.p=a,L.T=r,lE(e,t)}}function T_(e,t,n){t=Ut(n,t),t=Id(e.stateNode,t,2),e=Ar(e,t,2),e!==null&&(Ui(e,2),fn(e))}function re(e,t,n){if(e.tag===3)T_(e,e,n);else for(;t!==null;){if(t.tag===3){T_(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==\\\"function\\\"||typeof r.componentDidCatch==\\\"function\\\"&&(_r===null||!_r.has(r))){e=Ut(n,e),n=Op(2),r=Ar(t,n,2),r!==null&&(vp(n,r,t,e),Ui(r,2),fn(r));break}}t=t.return}}function Hl(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new oO;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(bf=!0,a.add(n),e=lO.bind(null,e,t,n),t.then(e,e))}function lO(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ie===e&&(K&n)===n&&(ye===4||ye===3&&(K&62914560)===K&&300>Rt()-Zs?(ee&2)===0&&Ao(e,0):Mf|=n,mo===K&&(mo=0)),fn(e)}function fE(e,t){t===0&&(t=rh()),e=ta(e,t),e!==null&&(Ui(e,t),fn(e))}function dO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fE(e,n)}function fO(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(R(314))}r!==null&&r.delete(t),fE(e,n)}function mO(e,t){return Yd(e,t)}var Ds=null,ka=null,xd=!1,bs=!1,Wl=!1,dr=0;function fn(e){e!==ka&&e.next===null&&(ka===null?Ds=ka=e:ka=ka.next=e),bs=!0,xd||(xd=!0,AO())}function Gi(e,t){if(!Wl&&bs){Wl=!0;do for(var n=!1,r=Ds;r!==null;){if(!t)if(e!==0){var a=r.pendingLanes;if(a===0)var o=0;else{var i=r.suspendedLanes,c=r.pingedLanes;o=(1<<31-St(42|e)+1)-1,o&=a&~(i&~c),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,S_(r,o))}else o=K,o=Ps(r,r===ie?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Li(r,o)||(n=!0,S_(r,o));r=r.next}while(n);Wl=!1}}function gO(){mE()}function mE(){bs=xd=!1;var e=0;dr!==0&&yO()&&(e=dr);for(var t=Rt(),n=null,r=Ds;r!==null;){var a=r.next,o=gE(r,t);o===0?(r.next=null,n===null?Ds=a:n.next=a,a===null&&(ka=n)):(n=r,(e!==0||(o&3)!==0)&&(bs=!0)),r=a}Me!==0&&Me!==5||Gi(e,!1),dr!==0&&(dr=0)}function gE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-St(o),c=1<<i,s=a[i];s===-1?((c&n)===0||(c&r)!==0)&&(a[i]=GN(c,t)):s<=t&&(e.expiredLanes|=c),o&=~c}if(t=ie,n=K,n=Ps(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ne===2||ne===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&El(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Li(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&El(r),Kd(n)){case 2:case 8:n=th;break;case 32:n=fs;break;case 268435456:n=nh;break;default:n=fs}return r=AE.bind(null,e),n=Yd(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&El(r),e.callbackPriority=2,e.callbackNode=null,2}function AE(e,t){if(Me!==0&&Me!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qs()&&e.callbackNode!==n)return null;var r=K;return r=Ps(e,e===ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(eE(e,r,t),gE(e,Rt()),e.callbackNode!=null&&e.callbackNode===n?AE.bind(null,e):null)}function S_(e,t){if(Qs())return null;eE(e,t,!0)}function AO(){IO(function(){(ee&6)!==0?Yd(eh,gO):mE()})}function xf(){if(dr===0){var e=uo;e===0&&(e=Mc,Mc<<=1,(Mc&261888)===0&&(Mc=256)),dr=e}return dr}function y_(e){return e==null||typeof e==\\\"symbol\\\"||typeof e==\\\"boolean\\\"?null:typeof e==\\\"function\\\"?e:Zc(\\\"\\\"+e)}function N_(e,t){var n=t.ownerDocument.createElement(\\\"input\\\");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(\\\"form\\\",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _O(e,t,n,r,a){if(t===\\\"submit\\\"&&n&&n.stateNode===a){var o=y_((a[ct]||null).action),i=r.submitter;i&&(t=(t=i[ct]||null)?y_(t.formAction):i.getAttribute(\\\"formAction\\\"),t!==null&&(o=t,i=null));var c=new Fs(\\\"action\\\",\\\"action\\\",null,r,a);e.push({event:c,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(dr!==0){var s=i?N_(a,i):new FormData(a);yd(n,{pending:!0,data:s,method:a.method,action:o},null,s)}}else typeof o==\\\"function\\\"&&(c.preventDefault(),s=i?N_(a,i):new FormData(a),yd(n,{pending:!0,data:s,method:a.method,action:o},o,s))},currentTarget:a}]})}}for(Hc=0;Hc<dd.length;Hc++)Wc=dd[Hc],I_=Wc.toLowerCase(),O_=Wc[0].toUpperCase()+Wc.slice(1),Xt(I_,\\\"on\\\"+O_);var Wc,I_,O_,Hc;Xt(vh,\\\"onAnimationEnd\\\");Xt(Ch,\\\"onAnimationIteration\\\");Xt(Dh,\\\"onAnimationStart\\\");Xt(\\\"dblclick\\\",\\\"onDoubleClick\\\");Xt(\\\"focusin\\\",\\\"onFocus\\\");Xt(\\\"focusout\\\",\\\"onBlur\\\");Xt(LI,\\\"onTransitionRun\\\");Xt(UI,\\\"onTransitionStart\\\");Xt(zI,\\\"onTransitionCancel\\\");Xt(bh,\\\"onTransitionEnd\\\");co(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);co(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);co(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);co(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);Qr(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));Qr(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));Qr(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);Qr(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));Qr(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));Qr(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var vi=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),hO=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(vi));function _E(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var c=r[i],s=c.instance,u=c.currentTarget;if(c=c.listener,s!==o&&a.isPropagationStopped())break e;o=c,a.currentTarget=u;try{o(a)}catch(l){gs(l)}a.currentTarget=null,o=s}else for(i=0;i<r.length;i++){if(c=r[i],s=c.instance,u=c.currentTarget,c=c.listener,s!==o&&a.isPropagationStopped())break e;o=c,a.currentTarget=u;try{o(a)}catch(l){gs(l)}a.currentTarget=null,o=s}}}}function j(e,t){var n=t[rd];n===void 0&&(n=t[rd]=new Set);var r=e+\\\"__bubble\\\";n.has(r)||(hE(t,e,2,!1),n.add(r))}function jl(e,t,n){var r=0;t&&(r|=4),hE(n,e,r,t)}var jc=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function Lf(e){if(!e[jc]){e[jc]=!0,sh.forEach(function(n){n!==\\\"selectionchange\\\"&&(hO.has(n)||jl(n,!1,e),jl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,jl(\\\"selectionchange\\\",!1,t))}}function hE(e,t,n,r){switch(bE(t)){case 2:var a=jO;break;case 8:a=YO;break;default:a=Pf}n=a.bind(null,t,n,e),a=void 0,!sd||t!==\\\"touchstart\\\"&&t!==\\\"touchmove\\\"&&t!==\\\"wheel\\\"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Yl(e,t,n,r,a){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var c=r.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=Ha(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){r=o=i;continue e}c=c.parentNode}}r=r.return}_h(function(){var u=o,l=$d(n),d=[];e:{var m=Mh.get(e);if(m!==void 0){var A=Fs,S=e;switch(e){case\\\"keypress\\\":if($c(n)===0)break e;case\\\"keydown\\\":case\\\"keyup\\\":A=fI;break;case\\\"focusin\\\":S=\\\"focus\\\",A=Nl;break;case\\\"focusout\\\":S=\\\"blur\\\",A=Nl;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":A=Nl;break;case\\\"click\\\":if(n.button===2)break e;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":A=xA;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":A=eI;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":A=AI;break;case vh:case Ch:case Dh:A=rI;break;case bh:A=hI;break;case\\\"scroll\\\":case\\\"scrollend\\\":A=QN;break;case\\\"wheel\\\":A=EI;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":A=oI;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":A=UA;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":A=TI}var O=(t&4)!==0,X=!O&&(e===\\\"scroll\\\"||e===\\\"scrollend\\\"),g=O?m!==null?m+\\\"Capture\\\":null:m;O=[];for(var f=u,_;f!==null;){var E=f;if(_=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||_===null||g===null||(E=Ei(f,g),E!=null&&O.push(Ci(f,E,_))),X)break;f=f.return}0<O.length&&(m=new A(m,S,null,n,l),d.push({event:m,listeners:O}))}}if((t&7)===0){e:{if(m=e===\\\"mouseover\\\"||e===\\\"pointerover\\\",A=e===\\\"mouseout\\\"||e===\\\"pointerout\\\",m&&n!==cd&&(S=n.relatedTarget||n.fromElement)&&(Ha(S)||S[po]))break e;if((A||m)&&(m=l.window===l?l:(m=l.ownerDocument)?m.defaultView||m.parentWindow:window,A?(S=n.relatedTarget||n.toElement,A=u,S=S?Ha(S):null,S!==null&&(X=wi(S),O=S.tag,S!==X||O!==5&&O!==27&&O!==6)&&(S=null)):(A=null,S=u),A!==S)){if(O=xA,E=\\\"onMouseLeave\\\",g=\\\"onMouseEnter\\\",f=\\\"mouse\\\",(e===\\\"pointerout\\\"||e===\\\"pointerover\\\")&&(O=UA,E=\\\"onPointerLeave\\\",g=\\\"onPointerEnter\\\",f=\\\"pointer\\\"),X=A==null?m:ni(A),_=S==null?m:ni(S),m=new O(E,f+\\\"leave\\\",A,n,l),m.target=X,m.relatedTarget=_,E=null,Ha(l)===u&&(O=new O(g,f+\\\"enter\\\",S,n,l),O.target=_,O.relatedTarget=X,E=O),X=E,A&&S)t:{for(O=pO,g=A,f=S,_=0,E=g;E;E=O(E))_++;E=0;for(var D=f;D;D=O(D))E++;for(;0<_-E;)g=O(g),_--;for(;0<E-_;)f=O(f),E--;for(;_--;){if(g===f||f!==null&&g===f.alternate){O=g;break t}g=O(g),f=O(f)}O=null}else O=null;A!==null&&v_(d,m,A,O,!1),S!==null&&X!==null&&v_(d,X,S,O,!0)}}e:{if(m=u?ni(u):window,A=m.nodeName&&m.nodeName.toLowerCase(),A===\\\"select\\\"||A===\\\"input\\\"&&m.type===\\\"file\\\")var $=FA;else if(PA(m))if(Sh)$=MI;else{$=DI;var v=CI}else A=m.nodeName,!A||A.toLowerCase()!==\\\"input\\\"||m.type!==\\\"checkbox\\\"&&m.type!==\\\"radio\\\"?u&&Xd(u.elementType)&&($=FA):$=bI;if($&&($=$(e,u))){Th(d,$,n,l);break e}v&&v(e,m,u),e===\\\"focusout\\\"&&u&&m.type===\\\"number\\\"&&u.memoizedProps.value!=null&&id(m,\\\"number\\\",m.value)}switch(v=u?ni(u):window,e){case\\\"focusin\\\":(PA(v)||v.contentEditable===\\\"true\\\")&&(Ya=v,ud=u,ci=null);break;case\\\"focusout\\\":ci=ud=Ya=null;break;case\\\"mousedown\\\":ld=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":ld=!1,HA(d,n,l);break;case\\\"selectionchange\\\":if(xI)break;case\\\"keydown\\\":case\\\"keyup\\\":HA(d,n,l)}var U;if(ef)e:{switch(e){case\\\"compositionstart\\\":var W=\\\"onCompositionStart\\\";break e;case\\\"compositionend\\\":W=\\\"onCompositionEnd\\\";break e;case\\\"compositionupdate\\\":W=\\\"onCompositionUpdate\\\";break e}W=void 0}else ja?Eh(e,n)&&(W=\\\"onCompositionEnd\\\"):e===\\\"keydown\\\"&&n.keyCode===229&&(W=\\\"onCompositionStart\\\");W&&(ph&&n.locale!==\\\"ko\\\"&&(ja||W!==\\\"onCompositionStart\\\"?W===\\\"onCompositionEnd\\\"&&ja&&(U=hh()):(sr=l,Qd=\\\"value\\\"in sr?sr.value:sr.textContent,ja=!0)),v=Ms(u,W),0<v.length&&(W=new LA(W,e,null,n,l),d.push({event:W,listeners:v}),U?W.data=U:(U=Rh(n),U!==null&&(W.data=U)))),(U=yI?NI(e,n):II(e,n))&&(W=Ms(u,\\\"onBeforeInput\\\"),0<W.length&&(v=new LA(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,n,l),d.push({event:v,listeners:W}),v.data=U)),_O(d,e,u,n,l)}_E(d,t)})}function Ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ms(e,t){for(var n=t+\\\"Capture\\\",r=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=Ei(e,n),a!=null&&r.unshift(Ci(e,a,o)),a=Ei(e,t),a!=null&&r.push(Ci(e,a,o))),e.tag===3)return r;e=e.return}return[]}function pO(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function v_(e,t,n,r,a){for(var o=t._reactName,i=[];n!==null&&n!==r;){var c=n,s=c.alternate,u=c.stateNode;if(c=c.tag,s!==null&&s===r)break;c!==5&&c!==26&&c!==27||u===null||(s=u,a?(u=Ei(n,o),u!=null&&i.unshift(Ci(n,u,s))):a||(u=Ei(n,o),u!=null&&i.push(Ci(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var EO=/\\\\r\\\\n?/g,RO=/\\\\u0000|\\\\uFFFD/g;function C_(e){return(typeof e==\\\"string\\\"?e:\\\"\\\"+e).replace(EO,`\\n`).replace(RO,\\\"\\\")}function pE(e,t){return t=C_(t),C_(e)===t}function ae(e,t,n,r,a,o){switch(n){case\\\"children\\\":typeof r==\\\"string\\\"?t===\\\"body\\\"||t===\\\"textarea\\\"&&r===\\\"\\\"||so(e,r):(typeof r==\\\"number\\\"||typeof r==\\\"bigint\\\")&&t!==\\\"body\\\"&&so(e,\\\"\\\"+r);break;case\\\"className\\\":Lc(e,\\\"class\\\",r);break;case\\\"tabIndex\\\":Lc(e,\\\"tabindex\\\",r);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":Lc(e,n,r);break;case\\\"style\\\":Ah(e,r,o);break;case\\\"data\\\":if(t!==\\\"object\\\"){Lc(e,\\\"data\\\",r);break}case\\\"src\\\":case\\\"href\\\":if(r===\\\"\\\"&&(t!==\\\"a\\\"||n!==\\\"href\\\")){e.removeAttribute(n);break}if(r==null||typeof r==\\\"function\\\"||typeof r==\\\"symbol\\\"||typeof r==\\\"boolean\\\"){e.removeAttribute(n);break}r=Zc(\\\"\\\"+r),e.setAttribute(n,r);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof r==\\\"function\\\"){e.setAttribute(n,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof o==\\\"function\\\"&&(n===\\\"formAction\\\"?(t!==\\\"input\\\"&&ae(e,t,\\\"name\\\",a.name,a,null),ae(e,t,\\\"formEncType\\\",a.formEncType,a,null),ae(e,t,\\\"formMethod\\\",a.formMethod,a,null),ae(e,t,\\\"formTarget\\\",a.formTarget,a,null)):(ae(e,t,\\\"encType\\\",a.encType,a,null),ae(e,t,\\\"method\\\",a.method,a,null),ae(e,t,\\\"target\\\",a.target,a,null)));if(r==null||typeof r==\\\"symbol\\\"||typeof r==\\\"boolean\\\"){e.removeAttribute(n);break}r=Zc(\\\"\\\"+r),e.setAttribute(n,r);break;case\\\"onClick\\\":r!=null&&(e.onclick=Mn);break;case\\\"onScroll\\\":r!=null&&j(\\\"scroll\\\",e);break;case\\\"onScrollEnd\\\":r!=null&&j(\\\"scrollend\\\",e);break;case\\\"dangerouslySetInnerHTML\\\":if(r!=null){if(typeof r!=\\\"object\\\"||!(\\\"__html\\\"in r))throw Error(R(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(R(60));e.innerHTML=n}}break;case\\\"multiple\\\":e.multiple=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\";break;case\\\"muted\\\":e.muted=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(r==null||typeof r==\\\"function\\\"||typeof r==\\\"boolean\\\"||typeof r==\\\"symbol\\\"){e.removeAttribute(\\\"xlink:href\\\");break}n=Zc(\\\"\\\"+r),e.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",n);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?e.setAttribute(n,\\\"\\\"+r):e.removeAttribute(n);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?e.setAttribute(n,\\\"\\\"):e.removeAttribute(n);break;case\\\"capture\\\":case\\\"download\\\":r===!0?e.setAttribute(n,\\\"\\\"):r!==!1&&r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?e.setAttribute(n,r):e.removeAttribute(n);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case\\\"rowSpan\\\":case\\\"start\\\":r==null||typeof r==\\\"function\\\"||typeof r==\\\"symbol\\\"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case\\\"popover\\\":j(\\\"beforetoggle\\\",e),j(\\\"toggle\\\",e),Kc(e,\\\"popover\\\",r);break;case\\\"xlinkActuate\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",r);break;case\\\"xlinkArcrole\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",r);break;case\\\"xlinkRole\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",r);break;case\\\"xlinkShow\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",r);break;case\\\"xlinkTitle\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",r);break;case\\\"xlinkType\\\":yn(e,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",r);break;case\\\"xmlBase\\\":yn(e,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",r);break;case\\\"xmlLang\\\":yn(e,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",r);break;case\\\"xmlSpace\\\":yn(e,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",r);break;case\\\"is\\\":Kc(e,\\\"is\\\",r);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<n.length)||n[0]!==\\\"o\\\"&&n[0]!==\\\"O\\\"||n[1]!==\\\"n\\\"&&n[1]!==\\\"N\\\")&&(n=XN.get(n)||n,Kc(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case\\\"style\\\":Ah(e,r,o);break;case\\\"dangerouslySetInnerHTML\\\":if(r!=null){if(typeof r!=\\\"object\\\"||!(\\\"__html\\\"in r))throw Error(R(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(R(60));e.innerHTML=n}}break;case\\\"children\\\":typeof r==\\\"string\\\"?so(e,r):(typeof r==\\\"number\\\"||typeof r==\\\"bigint\\\")&&so(e,\\\"\\\"+r);break;case\\\"onScroll\\\":r!=null&&j(\\\"scroll\\\",e);break;case\\\"onScrollEnd\\\":r!=null&&j(\\\"scrollend\\\",e);break;case\\\"onClick\\\":r!=null&&(e.onclick=Mn);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!uh.hasOwnProperty(n))e:{if(n[0]===\\\"o\\\"&&n[1]===\\\"n\\\"&&(a=n.endsWith(\\\"Capture\\\"),t=n.slice(2,a?n.length-7:void 0),o=e[ct]||null,o=o!=null?o[n]:null,typeof o==\\\"function\\\"&&e.removeEventListener(t,o,a),typeof r==\\\"function\\\")){typeof o!=\\\"function\\\"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,\\\"\\\"):Kc(e,n,r)}}}function je(e,t,n){switch(t){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":j(\\\"error\\\",e),j(\\\"load\\\",e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var i=n[o];if(i!=null)switch(o){case\\\"src\\\":r=!0;break;case\\\"srcSet\\\":a=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(R(137,t));default:ae(e,t,o,i,n,null)}}a&&ae(e,t,\\\"srcSet\\\",n.srcSet,n,null),r&&ae(e,t,\\\"src\\\",n.src,n,null);return;case\\\"input\\\":j(\\\"invalid\\\",e);var c=o=i=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(l!=null)switch(r){case\\\"name\\\":a=l;break;case\\\"type\\\":i=l;break;case\\\"checked\\\":s=l;break;case\\\"defaultChecked\\\":u=l;break;case\\\"value\\\":o=l;break;case\\\"defaultValue\\\":c=l;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(l!=null)throw Error(R(137,t));break;default:ae(e,t,r,l,n,null)}}fh(e,o,c,s,u,i,a,!1);return;case\\\"select\\\":j(\\\"invalid\\\",e),r=i=o=null;for(a in n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case\\\"value\\\":o=c;break;case\\\"defaultValue\\\":i=c;break;case\\\"multiple\\\":r=c;default:ae(e,t,a,c,n,null)}t=o,n=i,e.multiple=!!r,t!=null?eo(e,!!r,t,!1):n!=null&&eo(e,!!r,n,!0);return;case\\\"textarea\\\":j(\\\"invalid\\\",e),o=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case\\\"value\\\":r=c;break;case\\\"defaultValue\\\":a=c;break;case\\\"children\\\":o=c;break;case\\\"dangerouslySetInnerHTML\\\":if(c!=null)throw Error(R(91));break;default:ae(e,t,i,c,n,null)}gh(e,r,a,o);return;case\\\"option\\\":for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null)&&(s===\\\"selected\\\"?e.selected=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\":ae(e,t,s,r,n,null));return;case\\\"dialog\\\":j(\\\"beforetoggle\\\",e),j(\\\"toggle\\\",e),j(\\\"cancel\\\",e),j(\\\"close\\\",e);break;case\\\"iframe\\\":case\\\"object\\\":j(\\\"load\\\",e);break;case\\\"video\\\":case\\\"audio\\\":for(r=0;r<vi.length;r++)j(vi[r],e);break;case\\\"image\\\":j(\\\"error\\\",e),j(\\\"load\\\",e);break;case\\\"details\\\":j(\\\"toggle\\\",e);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":j(\\\"error\\\",e),j(\\\"load\\\",e);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(R(137,t));default:ae(e,t,u,r,n,null)}return;default:if(Xd(t)){for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!==void 0&&Ld(e,t,l,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ae(e,t,c,r,n,null))}function TO(e,t,n,r){switch(t){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var a=null,o=null,i=null,c=null,s=null,u=null,l=null;for(A in n){var d=n[A];if(n.hasOwnProperty(A)&&d!=null)switch(A){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":s=d;default:r.hasOwnProperty(A)||ae(e,t,A,null,r,d)}}for(var m in r){var A=r[m];if(d=n[m],r.hasOwnProperty(m)&&(A!=null||d!=null))switch(m){case\\\"type\\\":o=A;break;case\\\"name\\\":a=A;break;case\\\"checked\\\":u=A;break;case\\\"defaultChecked\\\":l=A;break;case\\\"value\\\":i=A;break;case\\\"defaultValue\\\":c=A;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(A!=null)throw Error(R(137,t));break;default:A!==d&&ae(e,t,m,A,r,d)}}od(e,i,c,s,u,l,o,a);return;case\\\"select\\\":A=i=c=m=null;for(o in n)if(s=n[o],n.hasOwnProperty(o)&&s!=null)switch(o){case\\\"value\\\":break;case\\\"multiple\\\":A=s;default:r.hasOwnProperty(o)||ae(e,t,o,null,r,s)}for(a in r)if(o=r[a],s=n[a],r.hasOwnProperty(a)&&(o!=null||s!=null))switch(a){case\\\"value\\\":m=o;break;case\\\"defaultValue\\\":c=o;break;case\\\"multiple\\\":i=o;default:o!==s&&ae(e,t,a,o,r,s)}t=c,n=i,r=A,m!=null?eo(e,!!n,m,!1):!!r!=!!n&&(t!=null?eo(e,!!n,t,!0):eo(e,!!n,n?[]:\\\"\\\",!1));return;case\\\"textarea\\\":A=m=null;for(c in n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case\\\"value\\\":break;case\\\"children\\\":break;default:ae(e,t,c,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(a!=null||o!=null))switch(i){case\\\"value\\\":m=a;break;case\\\"defaultValue\\\":A=a;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null)throw Error(R(91));break;default:a!==o&&ae(e,t,i,a,r,o)}mh(e,m,A);return;case\\\"option\\\":for(var S in n)m=n[S],n.hasOwnProperty(S)&&m!=null&&!r.hasOwnProperty(S)&&(S===\\\"selected\\\"?e.selected=!1:ae(e,t,S,null,r,m));for(s in r)m=r[s],A=n[s],r.hasOwnProperty(s)&&m!==A&&(m!=null||A!=null)&&(s===\\\"selected\\\"?e.selected=m&&typeof m!=\\\"function\\\"&&typeof m!=\\\"symbol\\\":ae(e,t,s,m,r,A));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var O in n)m=n[O],n.hasOwnProperty(O)&&m!=null&&!r.hasOwnProperty(O)&&ae(e,t,O,null,r,m);for(u in r)if(m=r[u],A=n[u],r.hasOwnProperty(u)&&m!==A&&(m!=null||A!=null))switch(u){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(m!=null)throw Error(R(137,t));break;default:ae(e,t,u,m,r,A)}return;default:if(Xd(t)){for(var X in n)m=n[X],n.hasOwnProperty(X)&&m!==void 0&&!r.hasOwnProperty(X)&&Ld(e,t,X,void 0,r,m);for(l in r)m=r[l],A=n[l],!r.hasOwnProperty(l)||m===A||m===void 0&&A===void 0||Ld(e,t,l,m,r,A);return}}for(var g in n)m=n[g],n.hasOwnProperty(g)&&m!=null&&!r.hasOwnProperty(g)&&ae(e,t,g,null,r,m);for(d in r)m=r[d],A=n[d],!r.hasOwnProperty(d)||m===A||m==null&&A==null||ae(e,t,d,m,r,A)}function D_(e){switch(e){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function SO(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var e=0,t=0,n=performance.getEntriesByType(\\\"resource\\\"),r=0;r<n.length;r++){var a=n[r],o=a.transferSize,i=a.initiatorType,c=a.duration;if(o&&c&&D_(i)){for(i=0,c=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>c)break;var l=s.transferSize,d=s.initiatorType;l&&D_(d)&&(s=s.responseEnd,i+=l*(s<c?1:(c-u)/(s-u)))}if(--r,t+=8*(o+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==\\\"number\\\")?e:5}var Ud=null,zd=null;function ws(e){return e.nodeType===9?e:e.ownerDocument}function b_(e){switch(e){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function EE(e,t){if(e===0)switch(t){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return e===1&&t===\\\"foreignObject\\\"?0:e}function Bd(e,t){return e===\\\"textarea\\\"||e===\\\"noscript\\\"||typeof t.children==\\\"string\\\"||typeof t.children==\\\"number\\\"||typeof t.children==\\\"bigint\\\"||typeof t.dangerouslySetInnerHTML==\\\"object\\\"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ql=null;function yO(){var e=window.event;return e&&e.type===\\\"popstate\\\"?e===ql?!1:(ql=e,!0):(ql=null,!1)}var RE=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,NO=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,M_=typeof Promise==\\\"function\\\"?Promise:void 0,IO=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof M_<\\\"u\\\"?function(e){return M_.resolve(null).then(e).catch(OO)}:RE;function OO(e){setTimeout(function(){throw e})}function Or(e){return e===\\\"head\\\"}function w_(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n===\\\"/$\\\"||n===\\\"/&\\\"){if(r===0){e.removeChild(a),ho(t);return}r--}else if(n===\\\"$\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"$!\\\"||n===\\\"&\\\")r++;else if(n===\\\"html\\\")hi(e.ownerDocument.documentElement);else if(n===\\\"head\\\"){n=e.ownerDocument.head,hi(n);for(var o=n.firstChild;o;){var i=o.nextSibling,c=o.nodeName;o[zi]||c===\\\"SCRIPT\\\"||c===\\\"STYLE\\\"||c===\\\"LINK\\\"&&o.rel.toLowerCase()===\\\"stylesheet\\\"||n.removeChild(o),o=i}}else n===\\\"body\\\"&&hi(e.ownerDocument.body);n=a}while(n);ho(t)}function x_(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=\\\"none\\\"):(n.style.display=n._stashedDisplay||\\\"\\\",n.getAttribute(\\\"style\\\")===\\\"\\\"&&n.removeAttribute(\\\"style\\\")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=\\\"\\\"):n.nodeValue=n._stashedText||\\\"\\\"),r&&r.nodeType===8)if(n=r.data,n===\\\"/$\\\"){if(e===0)break;e--}else n!==\\\"$\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"$!\\\"||e++;n=r}while(n)}function Pd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":Pd(n),Zd(n);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(n.rel.toLowerCase()===\\\"stylesheet\\\")continue}e.removeChild(n)}}function vO(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==\\\"INPUT\\\"||e.type!==\\\"hidden\\\"))break}else if(r){if(!e[zi])switch(t){case\\\"meta\\\":if(!e.hasAttribute(\\\"itemprop\\\"))break;return e;case\\\"link\\\":if(o=e.getAttribute(\\\"rel\\\"),o===\\\"stylesheet\\\"&&e.hasAttribute(\\\"data-precedence\\\"))break;if(o!==a.rel||e.getAttribute(\\\"href\\\")!==(a.href==null||a.href===\\\"\\\"?null:a.href)||e.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute(\\\"title\\\")!==(a.title==null?null:a.title))break;return e;case\\\"style\\\":if(e.hasAttribute(\\\"data-precedence\\\"))break;return e;case\\\"script\\\":if(o=e.getAttribute(\\\"src\\\"),(o!==(a.src==null?null:a.src)||e.getAttribute(\\\"type\\\")!==(a.type==null?null:a.type)||e.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute(\\\"async\\\")&&!e.hasAttribute(\\\"itemprop\\\"))break;return e;default:return e}}else if(t===\\\"input\\\"&&e.type===\\\"hidden\\\"){var o=a.name==null?null:\\\"\\\"+a.name;if(a.type===\\\"hidden\\\"&&e.getAttribute(\\\"name\\\")===o)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function CO(e,t,n){if(t===\\\"\\\")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==\\\"INPUT\\\"||e.type!==\\\"hidden\\\")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function TE(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==\\\"INPUT\\\"||e.type!==\\\"hidden\\\")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function Fd(e){return e.data===\\\"$?\\\"||e.data===\\\"$~\\\"}function kd(e){return e.data===\\\"$!\\\"||e.data===\\\"$?\\\"&&e.ownerDocument.readyState!==\\\"loading\\\"}function DO(e,t){var n=e.ownerDocument;if(e.data===\\\"$~\\\")e._reactRetry=t;else if(e.data!==\\\"$?\\\"||n.readyState!==\\\"loading\\\")t();else{var r=function(){t(),n.removeEventListener(\\\"DOMContentLoaded\\\",r)};n.addEventListener(\\\"DOMContentLoaded\\\",r),e._reactRetry=r}}function Pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===\\\"$\\\"||t===\\\"$!\\\"||t===\\\"$?\\\"||t===\\\"$~\\\"||t===\\\"&\\\"||t===\\\"F!\\\"||t===\\\"F\\\")break;if(t===\\\"/$\\\"||t===\\\"/&\\\")return null}}return e}var Gd=null;function L_(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\\\"/$\\\"||n===\\\"/&\\\"){if(t===0)return Pt(e.nextSibling);t--}else n!==\\\"$\\\"&&n!==\\\"$!\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"&\\\"||t++}e=e.nextSibling}return null}function U_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\\\"$\\\"||n===\\\"$!\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"&\\\"){if(t===0)return e;t--}else n!==\\\"/$\\\"&&n!==\\\"/&\\\"||t++}e=e.previousSibling}return null}function SE(e,t,n){switch(t=ws(n),e){case\\\"html\\\":if(e=t.documentElement,!e)throw Error(R(452));return e;case\\\"head\\\":if(e=t.head,!e)throw Error(R(453));return e;case\\\"body\\\":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zd(e)}var Ft=new Map,z_=new Set;function xs(e){return typeof e.getRootNode==\\\"function\\\"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=te.d;te.d={f:bO,r:MO,D:wO,C:xO,L:LO,m:UO,X:BO,S:zO,M:PO};function bO(){var e=Gn.f(),t=Xs();return e||t}function MO(e){var t=Eo(e);t!==null&&t.tag===5&&t.type===\\\"form\\\"?Ap(t):Gn.r(e)}var yo=typeof document>\\\"u\\\"?null:document;function yE(e,t,n){var r=yo;if(r&&typeof t==\\\"string\\\"&&t){var a=Lt(t);a='link[rel=\\\"'+e+'\\\"][href=\\\"'+a+'\\\"]',typeof n==\\\"string\\\"&&(a+='[crossorigin=\\\"'+n+'\\\"]'),z_.has(a)||(z_.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement(\\\"link\\\"),je(t,\\\"link\\\",e),Pe(t),r.head.appendChild(t)))}}function wO(e){Gn.D(e),yE(\\\"dns-prefetch\\\",e,null)}function xO(e,t){Gn.C(e,t),yE(\\\"preconnect\\\",e,t)}function LO(e,t,n){Gn.L(e,t,n);var r=yo;if(r&&e&&t){var a='link[rel=\\\"preload\\\"][as=\\\"'+Lt(t)+'\\\"]';t===\\\"image\\\"&&n&&n.imageSrcSet?(a+='[imagesrcset=\\\"'+Lt(n.imageSrcSet)+'\\\"]',typeof n.imageSizes==\\\"string\\\"&&(a+='[imagesizes=\\\"'+Lt(n.imageSizes)+'\\\"]')):a+='[href=\\\"'+Lt(e)+'\\\"]';var o=a;switch(t){case\\\"style\\\":o=_o(e);break;case\\\"script\\\":o=No(e)}Ft.has(o)||(e=me({rel:\\\"preload\\\",href:t===\\\"image\\\"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ft.set(o,e),r.querySelector(a)!==null||t===\\\"style\\\"&&r.querySelector(Vi(o))||t===\\\"script\\\"&&r.querySelector(Hi(o))||(t=r.createElement(\\\"link\\\"),je(t,\\\"link\\\",e),Pe(t),r.head.appendChild(t)))}}function UO(e,t){Gn.m(e,t);var n=yo;if(n&&e){var r=t&&typeof t.as==\\\"string\\\"?t.as:\\\"script\\\",a='link[rel=\\\"modulepreload\\\"][as=\\\"'+Lt(r)+'\\\"][href=\\\"'+Lt(e)+'\\\"]',o=a;switch(r){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":o=No(e)}if(!Ft.has(o)&&(e=me({rel:\\\"modulepreload\\\",href:e},t),Ft.set(o,e),n.querySelector(a)===null)){switch(r){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(n.querySelector(Hi(o)))return}r=n.createElement(\\\"link\\\"),je(r,\\\"link\\\",e),Pe(r),n.head.appendChild(r)}}}function zO(e,t,n){Gn.S(e,t,n);var r=yo;if(r&&e){var a=Ja(r).hoistableStyles,o=_o(e);t=t||\\\"default\\\";var i=a.get(o);if(!i){var c={loading:0,preload:null};if(i=r.querySelector(Vi(o)))c.loading=5;else{e=me({rel:\\\"stylesheet\\\",href:e,\\\"data-precedence\\\":t},n),(n=Ft.get(o))&&Uf(e,n);var s=i=r.createElement(\\\"link\\\");Pe(s),je(s,\\\"link\\\",e),s._p=new Promise(function(u,l){s.onload=u,s.onerror=l}),s.addEventListener(\\\"load\\\",function(){c.loading|=1}),s.addEventListener(\\\"error\\\",function(){c.loading|=2}),c.loading|=4,os(i,t,r)}i={type:\\\"stylesheet\\\",instance:i,count:1,state:c},a.set(o,i)}}}function BO(e,t){Gn.X(e,t);var n=yo;if(n&&e){var r=Ja(n).hoistableScripts,a=No(e),o=r.get(a);o||(o=n.querySelector(Hi(a)),o||(e=me({src:e,async:!0},t),(t=Ft.get(a))&&zf(e,t),o=n.createElement(\\\"script\\\"),Pe(o),je(o,\\\"link\\\",e),n.head.appendChild(o)),o={type:\\\"script\\\",instance:o,count:1,state:null},r.set(a,o))}}function PO(e,t){Gn.M(e,t);var n=yo;if(n&&e){var r=Ja(n).hoistableScripts,a=No(e),o=r.get(a);o||(o=n.querySelector(Hi(a)),o||(e=me({src:e,async:!0,type:\\\"module\\\"},t),(t=Ft.get(a))&&zf(e,t),o=n.createElement(\\\"script\\\"),Pe(o),je(o,\\\"link\\\",e),n.head.appendChild(o)),o={type:\\\"script\\\",instance:o,count:1,state:null},r.set(a,o))}}function B_(e,t,n,r){var a=(a=fr.current)?xs(a):null;if(!a)throw Error(R(446));switch(e){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof n.precedence==\\\"string\\\"&&typeof n.href==\\\"string\\\"?(t=_o(n.href),n=Ja(a).hoistableStyles,r=n.get(t),r||(r={type:\\\"style\\\",instance:null,count:0,state:null},n.set(t,r)),r):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(n.rel===\\\"stylesheet\\\"&&typeof n.href==\\\"string\\\"&&typeof n.precedence==\\\"string\\\"){e=_o(n.href);var o=Ja(a).hoistableStyles,i=o.get(e);if(i||(a=a.ownerDocument||a,i={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=a.querySelector(Vi(e)))&&!o._p&&(i.instance=o,i.state.loading=5),Ft.has(e)||(n={rel:\\\"preload\\\",as:\\\"style\\\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ft.set(e,n),o||FO(a,e,n,i.state))),t&&r===null)throw Error(R(528,\\\"\\\"));return i}if(t&&r!==null)throw Error(R(529,\\\"\\\"));return null;case\\\"script\\\":return t=n.async,n=n.src,typeof n==\\\"string\\\"&&t&&typeof t!=\\\"function\\\"&&typeof t!=\\\"symbol\\\"?(t=No(n),n=Ja(a).hoistableScripts,r=n.get(t),r||(r={type:\\\"script\\\",instance:null,count:0,state:null},n.set(t,r)),r):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function _o(e){return'href=\\\"'+Lt(e)+'\\\"'}function Vi(e){return'link[rel=\\\"stylesheet\\\"]['+e+\\\"]\\\"}function NE(e){return me({},e,{\\\"data-precedence\\\":e.precedence,precedence:null})}function FO(e,t,n,r){e.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+t+\\\"]\\\")?r.loading=1:(t=e.createElement(\\\"link\\\"),r.preload=t,t.addEventListener(\\\"load\\\",function(){return r.loading|=1}),t.addEventListener(\\\"error\\\",function(){return r.loading|=2}),je(t,\\\"link\\\",n),Pe(t),e.head.appendChild(t))}function No(e){return'[src=\\\"'+Lt(e)+'\\\"]'}function Hi(e){return\\\"script[async]\\\"+e}function P_(e,t,n){if(t.count++,t.instance===null)switch(t.type){case\\\"style\\\":var r=e.querySelector('style[data-href~=\\\"'+Lt(n.href)+'\\\"]');if(r)return t.instance=r,Pe(r),r;var a=me({},n,{\\\"data-href\\\":n.href,\\\"data-precedence\\\":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(\\\"style\\\"),Pe(r),je(r,\\\"style\\\",a),os(r,n.precedence,e),t.instance=r;case\\\"stylesheet\\\":a=_o(n.href);var o=e.querySelector(Vi(a));if(o)return t.state.loading|=4,t.instance=o,Pe(o),o;r=NE(n),(a=Ft.get(a))&&Uf(r,a),o=(e.ownerDocument||e).createElement(\\\"link\\\"),Pe(o);var i=o;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),je(o,\\\"link\\\",r),t.state.loading|=4,os(o,n.precedence,e),t.instance=o;case\\\"script\\\":return o=No(n.src),(a=e.querySelector(Hi(o)))?(t.instance=a,Pe(a),a):(r=n,(a=Ft.get(o))&&(r=me({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(\\\"script\\\"),Pe(a),je(a,\\\"link\\\",r),e.head.appendChild(a),t.instance=a);case\\\"void\\\":return null;default:throw Error(R(443,t.type))}else t.type===\\\"stylesheet\\\"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,os(r,n.precedence,e));return t.instance}function os(e,t,n){for(var r=n.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var c=r[i];if(c.dataset.precedence===t)o=c;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var is=null;function F_(e,t,n){if(is===null){var r=new Map,a=is=new Map;a.set(n,r)}else a=is,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[zi]||o[Ve]||e===\\\"link\\\"&&o.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&o.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var i=o.getAttribute(t)||\\\"\\\";i=e+i;var c=r.get(i);c?c.push(o):r.set(i,[o])}}return r}function k_(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===\\\"title\\\"?e.querySelector(\\\"head > title\\\"):null)}function kO(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof t.precedence!=\\\"string\\\"||typeof t.href!=\\\"string\\\"||t.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof t.rel!=\\\"string\\\"||typeof t.href!=\\\"string\\\"||t.href===\\\"\\\"||t.onLoad||t.onError)break;return t.rel===\\\"stylesheet\\\"?(e=t.disabled,typeof t.precedence==\\\"string\\\"&&e==null):!0;case\\\"script\\\":if(t.async&&typeof t.async!=\\\"function\\\"&&typeof t.async!=\\\"symbol\\\"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==\\\"string\\\")return!0}return!1}function IE(e){return!(e.type===\\\"stylesheet\\\"&&(e.state.loading&3)===0)}function GO(e,t,n,r){if(n.type===\\\"stylesheet\\\"&&(typeof r.media!=\\\"string\\\"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=_o(r.href),o=t.querySelector(Vi(a));if(o){t=o._p,t!==null&&typeof t==\\\"object\\\"&&typeof t.then==\\\"function\\\"&&(e.count++,e=Ls.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Pe(o);return}o=t.ownerDocument||t,r=NE(r),(a=Ft.get(a))&&Uf(r,a),o=o.createElement(\\\"link\\\"),Pe(o);var i=o;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),je(o,\\\"link\\\",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ls.bind(e),t.addEventListener(\\\"load\\\",n),t.addEventListener(\\\"error\\\",n))}}var Kl=0;function VO(e,t){return e.stylesheets&&e.count===0&&cs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&cs(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Kl===0&&(Kl=62500*SO());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cs(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Kl?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Ls(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Us=null;function cs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Us=new Map,t.forEach(HO,e),Us=null,Ls.call(e))}function HO(e,t){if(!(t.state.loading&4)){var n=Us.get(e);if(n)var r=n.get(null);else{n=new Map,Us.set(e,n);for(var a=e.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),o=0;o<a.length;o++){var i=a[o];(i.nodeName===\\\"LINK\\\"||i.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}a=t.instance,i=a.getAttribute(\\\"data-precedence\\\"),o=n.get(i)||r,o===r&&n.set(null,a),n.set(i,a),this.count++,r=Ls.bind(this),a.addEventListener(\\\"load\\\",r),a.addEventListener(\\\"error\\\",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Di={$$typeof:bn,Provider:null,Consumer:null,_currentValue:Vr,_currentValue2:Vr,_threadCount:0};function WO(e,t,n,r,a,o,i,c,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rl(0),this.hiddenUpdates=Rl(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function OE(e,t,n,r,a,o,i,c,s,u,l,d){return e=new WO(e,t,n,i,s,u,l,d,c),t=1,o===!0&&(t|=24),o=pt(3,null,null,t),e.current=o,o.stateNode=e,t=sf(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},df(o),e}function vE(e){return e?(e=Za,e):Za}function CE(e,t,n,r,a,o){a=vE(a),r.context===null?r.context=a:r.pendingContext=a,r=gr(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=Ar(e,r,t),n!==null&&(it(n,e,t),ui(n,e,t))}function G_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bf(e,t){G_(e,t),(e=e.alternate)&&G_(e,t)}function DE(e){if(e.tag===13||e.tag===31){var t=ta(e,67108864);t!==null&&it(t,e,67108864),Bf(e,67108864)}}function V_(e){if(e.tag===13||e.tag===31){var t=yt();t=qd(t);var n=ta(e,t);n!==null&&it(n,e,t),Bf(e,t)}}var zs=!0;function jO(e,t,n,r){var a=L.T;L.T=null;var o=te.p;try{te.p=2,Pf(e,t,n,r)}finally{te.p=o,L.T=a}}function YO(e,t,n,r){var a=L.T;L.T=null;var o=te.p;try{te.p=8,Pf(e,t,n,r)}finally{te.p=o,L.T=a}}function Pf(e,t,n,r){if(zs){var a=Vd(r);if(a===null)Yl(e,t,r,Bs,n),H_(e,r);else if(KO(a,e,t,n,r))r.stopPropagation();else if(H_(e,r),t&4&&-1<qO.indexOf(e)){for(;a!==null;){var o=Eo(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=Fr(o.pendingLanes);if(i!==0){var c=o;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-St(i);c.entanglements[1]|=s,i&=~s}fn(o),(ee&6)===0&&(Os=Rt()+500,Gi(0,!1))}}break;case 31:case 13:c=ta(o,2),c!==null&&it(c,o,2),Xs(),Bf(o,2)}if(o=Vd(r),o===null&&Yl(e,t,r,Bs,n),o===a)break;a=o}a!==null&&r.stopPropagation()}else Yl(e,t,r,null,n)}}function Vd(e){return e=$d(e),Ff(e)}var Bs=null;function Ff(e){if(Bs=null,e=Ha(e),e!==null){var t=wi(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Z_(t),e!==null)return e;e=null}else if(n===31){if(e=X_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bs=e,null}function bE(e){switch(e){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(LN()){case eh:return 2;case th:return 8;case fs:case UN:return 32;case nh:return 268435456;default:return 32}default:return 32}}var Hd=!1,pr=null,Er=null,Rr=null,bi=new Map,Mi=new Map,ir=[],qO=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function H_(e,t){switch(e){case\\\"focusin\\\":case\\\"focusout\\\":pr=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":Er=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":Rr=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":bi.delete(t.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":Mi.delete(t.pointerId)}}function Qo(e,t,n,r,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Eo(t),t!==null&&DE(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function KO(e,t,n,r,a){switch(t){case\\\"focusin\\\":return pr=Qo(pr,e,t,n,r,a),!0;case\\\"dragenter\\\":return Er=Qo(Er,e,t,n,r,a),!0;case\\\"mouseover\\\":return Rr=Qo(Rr,e,t,n,r,a),!0;case\\\"pointerover\\\":var o=a.pointerId;return bi.set(o,Qo(bi.get(o)||null,e,t,n,r,a)),!0;case\\\"gotpointercapture\\\":return o=a.pointerId,Mi.set(o,Qo(Mi.get(o)||null,e,t,n,r,a)),!0}return!1}function ME(e){var t=Ha(e.target);if(t!==null){var n=wi(t);if(n!==null){if(t=n.tag,t===13){if(t=Z_(n),t!==null){e.blockedOn=t,OA(e.priority,function(){V_(n)});return}}else if(t===31){if(t=X_(n),t!==null){e.blockedOn=t,OA(e.priority,function(){V_(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vd(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cd=r,n.target.dispatchEvent(r),cd=null}else return t=Eo(n),t!==null&&DE(t),e.blockedOn=n,!1;t.shift()}return!0}function W_(e,t,n){ss(e)&&n.delete(t)}function ZO(){Hd=!1,pr!==null&&ss(pr)&&(pr=null),Er!==null&&ss(Er)&&(Er=null),Rr!==null&&ss(Rr)&&(Rr=null),bi.forEach(W_),Mi.forEach(W_)}function Yc(e,t){e.blockedOn===t&&(e.blockedOn=null,Hd||(Hd=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,ZO)))}var qc=null;function j_(e){qc!==e&&(qc=e,we.unstable_scheduleCallback(we.unstable_NormalPriority,function(){qc===e&&(qc=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!=\\\"function\\\"){if(Ff(r||n)===null)continue;break}var o=Eo(n);o!==null&&(e.splice(t,3),t-=3,yd(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function ho(e){function t(s){return Yc(s,e)}pr!==null&&Yc(pr,e),Er!==null&&Yc(Er,e),Rr!==null&&Yc(Rr,e),bi.forEach(t),Mi.forEach(t);for(var n=0;n<ir.length;n++){var r=ir[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)ME(n),n.blockedOn===null&&ir.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[ct]||null;if(typeof o==\\\"function\\\")i||j_(n);else if(i){var c=null;if(o&&o.hasAttribute(\\\"formAction\\\")){if(a=o,i=o[ct]||null)c=i.formAction;else if(Ff(a)!==null)continue}else c=i.action;typeof c==\\\"function\\\"?n[r+1]=c:(n.splice(r,3),r-=3),j_(n)}}}function wE(){function e(o){o.canIntercept&&o.info===\\\"react-transition\\\"&&o.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var r=!1,a=null;return navigation.addEventListener(\\\"navigate\\\",e),navigation.addEventListener(\\\"navigatesuccess\\\",t),navigation.addEventListener(\\\"navigateerror\\\",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(\\\"navigate\\\",e),navigation.removeEventListener(\\\"navigatesuccess\\\",t),navigation.removeEventListener(\\\"navigateerror\\\",t),a!==null&&(a(),a=null)}}}function kf(e){this._internalRoot=e}Js.prototype.render=kf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,r=yt();CE(n,r,e,t,null,null)};Js.prototype.unmount=kf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;CE(e.current,2,null,e,null,null),Xs(),t[po]=null}};function Js(e){this._internalRoot=e}Js.prototype.unstable_scheduleHydration=function(e){if(e){var t=ch();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ir.length&&t!==0&&t<ir[n].priority;n++);ir.splice(n,0,e),n===0&&ME(e)}};var Y_=q_.version;if(Y_!==\\\"19.2.4\\\")throw Error(R(527,Y_,\\\"19.2.4\\\"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==\\\"function\\\"?Error(R(188)):(e=Object.keys(e).join(\\\",\\\"),Error(R(268,e)));return e=vN(t),e=e!==null?$_(e):null,e=e===null?null:e.stateNode,e};var XO={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:L,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(Jo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Jo.isDisabled&&Jo.supportsFiber))try{xi=Jo.inject(XO),Tt=Jo}catch{}var Jo;eu.createRoot=function(e,t){if(!K_(e))throw Error(R(299));var n=!1,r=\\\"\\\",a=yp,o=Np,i=Ip;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=OE(e,1,!1,null,null,n,r,null,a,o,i,wE),e[po]=t.current,Lf(e),new kf(t)};eu.hydrateRoot=function(e,t,n){if(!K_(e))throw Error(R(299));var r=!1,a=\\\"\\\",o=yp,i=Np,c=Ip,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(c=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=OE(e,1,!0,t,n??null,r,a,s,o,i,c,wE),t.context=vE(null),n=t.current,r=yt(),r=qd(r),a=gr(r),a.callback=null,Ar(n,a,r),n=r,t.current.lanes=n,Ui(t,n),fn(t),e[po]=t.current,Lf(e),new Js(t)};eu.version=\\\"19.2.4\\\"});var zE=At((_x,UE)=>{\\\"use strict\\\";h();function LE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LE)}catch(e){console.error(e)}}LE(),UE.exports=xE()});var nM,rM,sc,uc=Hu(()=>{\\\"use strict\\\";h();nM=Object.defineProperty,rM=(e,t,n)=>t in e?nM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t,n)=>rM(e,typeof t!=\\\"symbol\\\"?t+\\\"\\\":t,n)});var kS=At(Bu=>{\\\"use strict\\\";h();var Dw=Symbol.for(\\\"react.transitional.element\\\"),bw=Symbol.for(\\\"react.fragment\\\");function FS(e,t,n){var r=null;if(n!==void 0&&(r=\\\"\\\"+n),t.key!==void 0&&(r=\\\"\\\"+t.key),\\\"key\\\"in t){n={};for(var a in t)a!==\\\"key\\\"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:Dw,type:e,key:r,ref:t!==void 0?t:null,props:n}}Bu.Fragment=bw;Bu.jsx=FS;Bu.jsxs=FS});var Xn=At((c4,GS)=>{\\\"use strict\\\";h();GS.exports=kS()});function yg(e,t){let n=e.toString(),r=n.startsWith(\\\"-\\\");r&&(n=n.slice(1)),n=n.padStart(t,\\\"0\\\");let[a,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,\\\"\\\"),`${r?\\\"-\\\":\\\"\\\"}${a||\\\"0\\\"}${o?`.${o}`:\\\"\\\"}`}var ey=Hu(()=>{h()});h();var gy=Ke(zE(),1);h();var Ue=Ke(Sn(),1);h();h();h();h();h();var $O=1,QO=2,JO=3,e1=4,t1=5,n1=6,r1=7,a1=8,o1=9,BE=10,i1=11,c1=12,PE=-32700,FE=-32603,kE=-32602,GE=-32601,VE=-32600,s1=-32019,u1=-32018,l1=-32017,d1=-32016,HE=-32015,WE=-32014,f1=-32013,jE=-32012,m1=-32011,YE=-32010,qE=-32009,g1=-32008,KE=-32007,ZE=-32006,A1=-32005,XE=-32004,_1=-32003,Gf=-32002,$E=-32001,Vf=28e5,Hf=2800001,h1=2800002,QE=2800003,JE=2800004,eR=2800005,Wf=2800006,jf=2800007,tu=2800008,Yf=2800009,tR=2800010,nR=2800011,qf=323e4,rR=32300001,Kf=3230002,aR=3230003,oR=3230004,Zf=361e4,Xf=3610001,iR=3610002,cR=3610003,sR=3610004,uR=3610005,lR=3610006,p1=3610007,dR=3611e3,E1=3704e3,R1=3704001,T1=3704002,S1=3704003,y1=3704004,N1=4128e3,I1=4128001,O1=4128002,fR=4615e3,v1=4615001,C1=4615002,D1=4615003,b1=4615004,M1=4615005,w1=4615006,x1=4615007,L1=4615008,U1=4615009,z1=4615010,B1=4615011,P1=4615012,F1=4615013,k1=4615014,G1=4615015,V1=4615016,H1=4615017,W1=4615018,j1=4615019,Y1=4615020,q1=4615021,K1=4615022,Z1=4615023,X1=4615024,$1=4615025,mR=4615026,Q1=4615027,J1=4615028,e0=4615029,t0=4615030,n0=4615031,r0=4615032,a0=4615033,o0=4615034,i0=4615035,c0=4615036,s0=4615037,u0=4615038,l0=4615039,d0=4615040,f0=4615041,m0=4615042,g0=4615043,A0=4615044,_0=4615045,h0=4615046,p0=4615047,E0=4615048,R0=4615049,T0=4615050,S0=4615051,y0=4615052,N0=4615053,I0=4615054,$f=5508e3,gR=5508001,AR=5508002,_R=5508003,hR=5508004,pR=5508005,ER=5508006,RR=5508007,TR=5508008,SR=5508009,yR=5508010,O0=5508011,v0=5508012,C0=5607e3,D0=5607001,b0=5607002,M0=5607003,w0=5607004,x0=5607005,L0=5607006,U0=5607007,z0=5607008,B0=5607009,P0=5607010,F0=5607011,k0=5607012,G0=5607013,V0=5607014,H0=5607015,W0=5607016,j0=5607017,nu=5663e3,Io=5663001,Qf=5663002,Jf=5663003,em=5663004,NR=5663005,IR=5663006,OR=5663007,vR=5663008,CR=5663009,Y0=5663010,q0=5663011,DR=5663012,K0=5663013,Z0=5663014,bR=5663015,tm=5663016,ru=5663017,MR=5663018,wR=5663019,xR=5663020,vr=5663021,LR=5663022,nm=5663023,rm=5663024,am=5663025,om=5663026,im=5663027,UR=5663028,zR=5663029,BR=5663030,PR=5663031,Wi=5663032,ji=5663033,Yi=5663034,qi=5663035,FR=705e4,X0=7050001,$0=7050002,Q0=7050003,J0=7050004,ev=7050005,tv=7050006,nv=7050007,rv=7050008,av=7050009,ov=7050010,iv=7050011,cv=7050012,sv=7050013,uv=7050014,lv=7050015,dv=7050016,fv=7050017,mv=7050018,gv=7050019,Av=7050020,_v=7050021,hv=7050022,pv=7050023,Ev=7050024,Rv=7050025,Tv=7050026,Sv=7050027,yv=7050028,Nv=7050029,kR=7050030,GR=7050031,Iv=7050032,Ov=7050033,vv=7050034,VR=7050035,Cv=7050036,Dv=7618e3,bv=7618001,Mv=7618002,wv=7618003,xv=7618004,Lv=7618005,Uv=7618006,zv=7618007,Bv=7618008,Pv=7618009,cm=8078e3,sm=8078001,um=8078002,HR=8078003,lm=8078004,dm=8078005,fm=8078006,mm=8078007,gm=8078008,WR=8078009,jR=8078010,Am=8078011,ra=8078012,Ki=8078013,_m=8078014,YR=8078015,qR=8078016,hm=8078017,pm=8078018,Fv=8078019,KR=8078020,ZR=8078021,Em=8078022,XR=8078023,Rm=8078024,$R=8078025,Tm=81e5,QR=8100001,Sm=8100002,ym=8100003,kv=819e4,Gv=8190001,Vv=8190002,Hv=8190003,Wv=8190004,JR=85e5,Nm=8500001,Im=8500002,jv=8500003,Yv=8500004,qv=8500005,eT=8500006,Kv=99e5,Zv=9900001,Xv=9900002,$v=9900003,Qv=9900004,Jv=9900005,eC=9900006;function tT(e){return Array.isArray(e)?\\\"%5B\\\"+e.map(tT).join(\\\"%2C%20\\\")+\\\"%5D\\\":typeof e==\\\"bigint\\\"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function tC([e,t]){return`${e}=${tT(t)}`}function nC(e){let t=Object.entries(e).map(tC).join(\\\"&\\\");return btoa(t)}var px={[qf]:\\\"Account not found at address: $address\\\",[oR]:\\\"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.\\\",[aR]:\\\"Expected decoded account at address: $address\\\",[Kf]:\\\"Failed to decode account data at address: $address\\\",[rR]:\\\"Accounts not found at addresses: $addresses\\\",[Yf]:\\\"Unable to find a viable program address bump seed.\\\",[h1]:\\\"$putativeAddress is not a base58-encoded address.\\\",[Vf]:\\\"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.\\\",[QE]:\\\"The `CryptoKey` must be an `Ed25519` public key.\\\",[nR]:\\\"$putativeOffCurveAddress is not a base58-encoded off-curve address.\\\",[tu]:\\\"Invalid seeds; point must fall off the Ed25519 curve.\\\",[JE]:\\\"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].\\\",[Wf]:\\\"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.\\\",[jf]:\\\"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.\\\",[eR]:\\\"Expected program derived address bump to be in the range [0, 255], got: $bump.\\\",[tR]:\\\"Program address cannot end with PDA marker.\\\",[Hf]:\\\"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.\\\",[e1]:\\\"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.\\\",[$O]:\\\"The network has progressed past the last block for which this transaction could have been committed.\\\",[cm]:\\\"Codec [$codecDescription] cannot decode empty byte arrays.\\\",[Em]:\\\"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.\\\",[KR]:\\\"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].\\\",[dm]:\\\"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].\\\",[fm]:\\\"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].\\\",[lm]:\\\"Encoder and decoder must either both be fixed-size or variable-size.\\\",[gm]:\\\"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.\\\",[um]:\\\"Expected a fixed-size codec, got a variable-size one.\\\",[Ki]:\\\"Codec [$codecDescription] expected a positive byte length, got $bytesLength.\\\",[HR]:\\\"Expected a variable-size codec, got a fixed-size one.\\\",[Fv]:\\\"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].\\\",[sm]:\\\"Codec [$codecDescription] expected $expected bytes, got $bytesLength.\\\",[pm]:\\\"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].\\\",[WR]:\\\"Invalid discriminated union variant. Expected one of [$variants], got $value.\\\",[jR]:\\\"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.\\\",[YR]:\\\"Invalid literal union variant. Expected one of [$variants], got $value.\\\",[mm]:\\\"Expected [$codecDescription] to have $expected items, got $actual.\\\",[ra]:\\\"Invalid value $value for base $base with alphabet $alphabet.\\\",[qR]:\\\"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.\\\",[Am]:\\\"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.\\\",[_m]:\\\"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.\\\",[ZR]:\\\"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].\\\",[hm]:\\\"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.\\\",[XR]:\\\"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?\\\",[Rm]:\\\"Invalid pattern match value. The provided value does not match any of the specified patterns.\\\",[$R]:\\\"Invalid pattern match bytes. The provided byte array does not match any of the specified patterns.\\\",[dR]:\\\"No random values implementation could be found.\\\",[i1]:\\\"Failed to send transaction$causeMessage\\\",[c1]:\\\"Failed to send transactions$causeMessages\\\",[U1]:\\\"Instruction requires an uninitialized account\\\",[Z1]:\\\"Instruction tries to borrow reference for an account which is already borrowed\\\",[X1]:\\\"Instruction left account with an outstanding borrowed reference\\\",[q1]:\\\"Program other than the account's owner changed the size of the account data\\\",[M1]:\\\"Account data too small for instruction\\\",[K1]:\\\"Instruction expected an executable account\\\",[h0]:\\\"An account does not have enough lamports to be rent-exempt\\\",[E0]:\\\"Program arithmetic overflowed\\\",[_0]:\\\"Failed to serialize or deserialize account data\\\",[I0]:\\\"Builtin programs must consume compute units\\\",[r0]:\\\"Cross-program invocation call depth too deep\\\",[u0]:\\\"Computational budget exceeded\\\",[mR]:\\\"Custom program error: #$code\\\",[H1]:\\\"Instruction contains duplicate accounts\\\",[$1]:\\\"Instruction modifications of multiply-passed account differ\\\",[t0]:\\\"Executable accounts must be rent exempt\\\",[J1]:\\\"Instruction changed executable accounts data\\\",[e0]:\\\"Instruction changed the balance of an executable account\\\",[W1]:\\\"Instruction changed executable bit of an account\\\",[k1]:\\\"Instruction modified data of an account it does not own\\\",[F1]:\\\"Instruction spent from the balance of an account it does not own\\\",[v1]:\\\"Generic instruction error\\\",[T0]:\\\"Provided owner is not allowed\\\",[g0]:\\\"Account is immutable\\\",[A0]:\\\"Incorrect authority provided\\\",[x1]:\\\"Incorrect program id for instruction\\\",[w1]:\\\"Insufficient funds for instruction\\\",[b1]:\\\"Invalid account data for instruction\\\",[p0]:\\\"Invalid account owner\\\",[C1]:\\\"Invalid program argument\\\",[Q1]:\\\"Program returned invalid error code\\\",[D1]:\\\"Invalid instruction data\\\",[s0]:\\\"Failed to reallocate account data\\\",[c0]:\\\"Provided seeds do not result in a valid address\\\",[S0]:\\\"Accounts data allocations exceeded the maximum allowed per transaction\\\",[y0]:\\\"Max accounts exceeded\\\",[N0]:\\\"Max instruction trace length exceeded\\\",[i0]:\\\"Length of the seed is too long for address generation\\\",[a0]:\\\"An account required by the instruction is missing\\\",[L1]:\\\"Missing required signature for instruction\\\",[P1]:\\\"Instruction illegally modified the program id of an account\\\",[Y1]:\\\"Insufficient account keys for instruction\\\",[l0]:\\\"Cross-program invocation with unauthorized signer or writable account\\\",[d0]:\\\"Failed to create program execution environment\\\",[m0]:\\\"Program failed to compile\\\",[f0]:\\\"Program failed to complete\\\",[V1]:\\\"Instruction modified data of a read-only account\\\",[G1]:\\\"Instruction changed the balance of a read-only account\\\",[o0]:\\\"Cross-program invocation reentrancy not allowed for this instruction\\\",[j1]:\\\"Instruction modified rent epoch of an account\\\",[B1]:\\\"Sum of account balances before and after instruction do not match\\\",[z1]:\\\"Instruction requires an initialized account\\\",[fR]:\\\"The instruction failed with the error: $errorName\\\",[n0]:\\\"Unsupported program id\\\",[R0]:\\\"Unsupported sysvar\\\",[Jv]:\\\"Invalid instruction plan kind: $kind.\\\",[Mv]:\\\"The provided instruction plan is empty.\\\",[Lv]:\\\"No failed transaction plan result was found in the provided transaction plan result.\\\",[xv]:\\\"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved \\\\u2014 e.g. by targetting RPCs that support transaction bundles.\\\",[wv]:\\\"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.\\\",[Dv]:\\\"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).\\\",[eC]:\\\"Invalid transaction plan kind: $kind.\\\",[bv]:\\\"No more instructions to pack; the message packer has completed the instruction plan.\\\",[Uv]:\\\"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.\\\",[zv]:\\\"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.\\\",[Bv]:\\\"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.\\\",[Pv]:\\\"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.\\\",[N1]:\\\"The instruction does not have any accounts.\\\",[I1]:\\\"The instruction does not have any data.\\\",[O1]:\\\"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.\\\",[t1]:\\\"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.\\\",[QO]:\\\"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`\\\",[Xv]:\\\"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\\\",[Qv]:\\\"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.\\\",[Zv]:\\\"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\\\",[Kv]:\\\"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\\\",[$v]:\\\"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\\\",[FE]:\\\"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)\\\",[kE]:\\\"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)\\\",[VE]:\\\"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)\\\",[GE]:\\\"JSON-RPC error: The method does not exist / is not available ($__serverMessage)\\\",[PE]:\\\"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)\\\",[jE]:\\\"$__serverMessage\\\",[$E]:\\\"$__serverMessage\\\",[XE]:\\\"$__serverMessage\\\",[WE]:\\\"$__serverMessage\\\",[l1]:\\\"Epoch rewards period still active at slot $slot\\\",[YE]:\\\"$__serverMessage\\\",[qE]:\\\"$__serverMessage\\\",[s1]:\\\"Failed to query long-term storage; please try again\\\",[d1]:\\\"Minimum context slot has not been reached\\\",[A1]:\\\"Node is unhealthy; behind by $numSlotsBehind slots\\\",[g1]:\\\"No snapshot\\\",[Gf]:\\\"Transaction simulation failed\\\",[u1]:\\\"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage\\\",[KE]:\\\"$__serverMessage\\\",[m1]:\\\"Transaction history is not available from this node\\\",[ZE]:\\\"$__serverMessage\\\",[f1]:\\\"Transaction signature length mismatch\\\",[_1]:\\\"Transaction signature verification failure\\\",[HE]:\\\"$__serverMessage\\\",[E1]:\\\"Key pair bytes must be of length 64, got $byteLength.\\\",[R1]:\\\"Expected private key bytes with length 32. Actual length: $actualLength.\\\",[T1]:\\\"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.\\\",[y1]:\\\"The provided private key does not match the provided public key.\\\",[S1]:\\\"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.\\\",[n1]:\\\"Lamports value must be in the range [0, 2e64-1]\\\",[r1]:\\\"`$value` cannot be parsed as a `BigInt`\\\",[BE]:\\\"$message\\\",[a1]:\\\"`$value` cannot be parsed as a `Number`\\\",[JO]:\\\"No nonce account could be found at address `$nonceAccountAddress`\\\",[M0]:\\\"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.\\\",[G0]:\\\"Attempted to sign an offchain message with an address that is not a signer for it\\\",[b0]:\\\"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.\\\",[k0]:\\\"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.\\\",[C0]:\\\"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes\\\",[U0]:\\\"Expected message format $expectedMessageFormat, got $actualMessageFormat\\\",[z0]:\\\"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.\\\",[B0]:\\\"Offchain message content must be non-empty\\\",[x0]:\\\"Offchain message must specify the address of at least one required signer\\\",[P0]:\\\"Offchain message envelope must reserve space for at least one signature\\\",[w0]:\\\"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.\\\",[H0]:\\\"The signatories of this offchain message must be listed in lexicographical order\\\",[W0]:\\\"An address must be listed no more than once among the signatories of an offchain message\\\",[F0]:\\\"Offchain message is missing signatures for addresses: $addresses.\\\",[j0]:\\\"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]\\\",[D0]:\\\"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\\\\\\\x20-\\\\\\\\x7e].\\\",[V0]:\\\"Expected offchain message version $expectedVersion. Got $actualVersion.\\\",[L0]:\\\"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.\\\",[eT]:\\\"The provided account could not be identified as an account from the $programName program.\\\",[Im]:\\\"The provided instruction could not be identified as an instruction from the $programName program.\\\",[JR]:\\\"The provided instruction is missing some accounts. Expected at least $expectedAccountMetas account(s), got $actualAccountMetas.\\\",[Yv]:\\\"Expected resolved instruction input '$inputName' to be non-null.\\\",[jv]:\\\"Expected resolved instruction input '$inputName' to be of type `$expectedType`.\\\",[qv]:\\\"Unrecognized account type '$accountType' for the $programName program.\\\",[Nm]:\\\"Unrecognized instruction type '$instructionType' for the $programName program.\\\",[kv]:\\\"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.\\\",[Vv]:\\\"WebSocket was closed before payload could be added to the send buffer\\\",[Hv]:\\\"WebSocket connection closed\\\",[Wv]:\\\"WebSocket failed to connect\\\",[Gv]:\\\"Failed to obtain a subscription id from the server\\\",[ym]:\\\"Could not find an API plan for RPC method: `$method`\\\",[Tm]:\\\"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.\\\",[Sm]:\\\"HTTP error ($statusCode): $message\\\",[QR]:\\\"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.\\\",[$f]:\\\"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.\\\",[gR]:\\\"The provided value does not implement the `KeyPairSigner` interface\\\",[_R]:\\\"The provided value does not implement the `MessageModifyingSigner` interface\\\",[hR]:\\\"The provided value does not implement the `MessagePartialSigner` interface\\\",[AR]:\\\"The provided value does not implement any of the `MessageSigner` interfaces\\\",[ER]:\\\"The provided value does not implement the `TransactionModifyingSigner` interface\\\",[RR]:\\\"The provided value does not implement the `TransactionPartialSigner` interface\\\",[TR]:\\\"The provided value does not implement the `TransactionSendingSigner` interface\\\",[pR]:\\\"The provided value does not implement any of the `TransactionSigner` interfaces\\\",[SR]:\\\"More than one `TransactionSendingSigner` was identified.\\\",[yR]:\\\"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.\\\",[v0]:\\\"The wallet account $address cannot be used to create a transaction signer because it does not implement either the `solana:signTransaction` or `solana:signAndSendTransaction` feature. At least one of these features is required. The account supports the following features: $supportedFeatures.\\\",[O0]:\\\"Wallet account signers do not support signing multiple messages/transactions in a single operation\\\",[p1]:\\\"Cannot export a non-extractable key.\\\",[Xf]:\\\"No digest implementation could be found.\\\",[Zf]:\\\"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.\\\",[iR]:`This runtime does not support the generation of Ed25519 key pairs.\\n\\nInstall @solana/webcrypto-ed25519-polyfill and call its \\\\`install\\\\` function before generating keys in environments that do not support Ed25519.\\n\\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[cR]:\\\"No signature verification implementation could be found.\\\",[sR]:\\\"No key generation implementation could be found.\\\",[uR]:\\\"No signing implementation could be found.\\\",[lR]:\\\"No key export implementation could be found.\\\",[o1]:\\\"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given\\\",[dv]:\\\"Transaction processing left an account with an outstanding borrowed reference\\\",[X0]:\\\"Account in use\\\",[$0]:\\\"Account loaded twice\\\",[Q0]:\\\"Attempt to debit an account but found no record of a prior credit.\\\",[pv]:\\\"Transaction loads an address table account that doesn't exist\\\",[nv]:\\\"This transaction has already been processed\\\",[rv]:\\\"Blockhash not found\\\",[av]:\\\"Loader call chain is too deep\\\",[lv]:\\\"Transactions are currently disabled due to cluster maintenance\\\",[kR]:\\\"Transaction contains a duplicate instruction ($index) that is not allowed\\\",[ev]:\\\"Insufficient funds for fee\\\",[GR]:\\\"Transaction results in an account ($accountIndex) with insufficient funds for rent\\\",[tv]:\\\"This account may not be used to pay transaction fees\\\",[iv]:\\\"Transaction contains an invalid account reference\\\",[Rv]:\\\"Transaction loads an address table account with invalid data\\\",[Tv]:\\\"Transaction address table lookup uses an invalid index\\\",[Ev]:\\\"Transaction loads an address table account with an invalid owner\\\",[Ov]:\\\"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.\\\",[sv]:\\\"This program may not be used for executing instructions\\\",[Sv]:\\\"Transaction leaves an account with a lower balance than rent-exempt minimum\\\",[gv]:\\\"Transaction loads a writable account that cannot be written\\\",[Iv]:\\\"Transaction exceeded max loaded accounts data size cap\\\",[ov]:\\\"Transaction requires a fee but has no signature present\\\",[J0]:\\\"Attempt to load a program that does not exist\\\",[VR]:\\\"Execution of the program referenced by account at index $accountIndex is temporarily restricted.\\\",[vv]:\\\"ResanitizationNeeded\\\",[uv]:\\\"Transaction failed to sanitize accounts offsets correctly\\\",[cv]:\\\"Transaction did not pass signature verification\\\",[hv]:\\\"Transaction locked too many accounts\\\",[Cv]:\\\"Sum of account balances before and after transaction do not match\\\",[FR]:\\\"The transaction failed with the error `$errorName`\\\",[mv]:\\\"Transaction version is unsupported\\\",[_v]:\\\"Transaction would exceed account data limit within the block\\\",[Nv]:\\\"Transaction would exceed total account data limit\\\",[Av]:\\\"Transaction would exceed max account limit within the block\\\",[fv]:\\\"Transaction would exceed max Block Cost Limit\\\",[yv]:\\\"Transaction would exceed max Vote Cost Limit\\\",[bR]:\\\"Attempted to sign a transaction with an address that is not a signer for it\\\",[Y0]:\\\"Transaction is missing an address at index: $index.\\\",[tm]:\\\"Transaction has no expected signers therefore it cannot be encoded\\\",[xR]:\\\"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes\\\",[Qf]:\\\"Transaction does not have a blockhash lifetime\\\",[Jf]:\\\"Transaction is not a durable nonce transaction\\\",[NR]:\\\"Contents of these address lookup tables unknown: $lookupTableAddresses\\\",[IR]:\\\"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved\\\",[vR]:\\\"No fee payer set in CompiledTransaction\\\",[OR]:\\\"Could not find program address at index $index\\\",[MR]:\\\"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more\\\",[wR]:\\\"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more\\\",[q0]:\\\"Transaction is missing a fee payer.\\\",[DR]:\\\"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.\\\",[Z0]:\\\"Transaction first instruction is not advance nonce account instruction.\\\",[K0]:\\\"Transaction with no instructions cannot be durable nonce transaction.\\\",[nu]:\\\"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees\\\",[Io]:\\\"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable\\\",[ru]:\\\"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.\\\",[CR]:\\\"Transaction is missing signatures for addresses: $addresses.\\\",[em]:\\\"Transaction version must be in the range [0, 127]. `$actualVersion` given\\\",[vr]:\\\"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 1.\\\",[LR]:\\\"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction.\\\",[UR]:\\\"Invalid transaction config mask: $mask. Bits 0 and 1 must match (both set or both unset)\\\",[nm]:\\\"Transaction message bytes are malformed: $messageBytes\\\",[rm]:\\\"Transaction message bytes are empty, so the transaction cannot be encoded\\\",[am]:\\\"Transaction bytes are empty, so no transaction can be decoded\\\",[om]:\\\"Transaction version 0 must be encoded with signatures first. This transaction was encoded with first byte $firstByte, which is expected to be a signature count for v0 transactions.\\\",[im]:\\\"The provided transaction bytes expect that there should be $numExpectedSignatures signatures, but the bytes are not long enough to contain a transaction message with this many signatures. The provided bytes are $transactionBytesLength bytes long.\\\",[zR]:\\\"The transaction has a durable nonce lifetime, but the nonce account index is invalid. Expected a nonce account index less than $numberOfStaticAccounts, got $nonceAccountIndex.\\\",[BR]:\\\"The transaction config value for $configName has the incorrect kind. Expected $expectedKind, got $actualKind.\\\",[PR]:\\\"The transaction does not have the same number of instruction headers and instruction payloads. Got $numInstructionHeaders instruction headers, and $numInstructionPayloads instruction payloads.\\\",[Wi]:\\\"Transaction has $actualCount unique signer addresses but the maximum allowed is $maxAllowed\\\",[ji]:\\\"Transaction has $actualCount unique account addresses but the maximum allowed is $maxAllowed\\\",[Yi]:\\\"Transaction has $actualCount instructions but the maximum allowed is $maxAllowed\\\",[qi]:\\\"The instruction at index $instructionIndex has $actualCount account references but the maximum allowed is $maxAllowed\\\"};function rC(e,t={}){{let n=`Solana error #${e}; Decode this error by running \\\\`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${nC(t)}'`),`${n}\\\\``}}function Om(e,t){return e instanceof Error&&e.name===\\\"SolanaError\\\"?t!==void 0?e.context.__code===t:!0:!1}var y=class extends Error{constructor(...[t,n]){let r,a;n&&Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([i,c])=>{i===\\\"cause\\\"?a={cause:c.value}:(r===void 0&&(r={__code:t}),Object.defineProperty(r,i,c))});let o=rC(t,r);super(o,a);Wu(this,\\\"cause\\\",this.cause);Wu(this,\\\"context\\\");this.context=Object.freeze(r===void 0?{__code:t}:r),this.name=\\\"SolanaError\\\"}};function au(...e){\\\"captureStackTrace\\\"in Error&&typeof Error.captureStackTrace==\\\"function\\\"&&Error.captureStackTrace(...e)}function nT({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},a){let o,i;typeof r==\\\"string\\\"?o=r:(o=Object.keys(r)[0],i=r[o]);let c=n.indexOf(o),s=e+c,u=t(s,o,i),l=new y(s,u);return au(l,a),l}var aC=[\\\"GenericError\\\",\\\"InvalidArgument\\\",\\\"InvalidInstructionData\\\",\\\"InvalidAccountData\\\",\\\"AccountDataTooSmall\\\",\\\"InsufficientFunds\\\",\\\"IncorrectProgramId\\\",\\\"MissingRequiredSignature\\\",\\\"AccountAlreadyInitialized\\\",\\\"UninitializedAccount\\\",\\\"UnbalancedInstruction\\\",\\\"ModifiedProgramId\\\",\\\"ExternalAccountLamportSpend\\\",\\\"ExternalAccountDataModified\\\",\\\"ReadonlyLamportChange\\\",\\\"ReadonlyDataModified\\\",\\\"DuplicateAccountIndex\\\",\\\"ExecutableModified\\\",\\\"RentEpochModified\\\",\\\"NotEnoughAccountKeys\\\",\\\"AccountDataSizeChanged\\\",\\\"AccountNotExecutable\\\",\\\"AccountBorrowFailed\\\",\\\"AccountBorrowOutstanding\\\",\\\"DuplicateAccountOutOfSync\\\",\\\"Custom\\\",\\\"InvalidError\\\",\\\"ExecutableDataModified\\\",\\\"ExecutableLamportChange\\\",\\\"ExecutableAccountNotRentExempt\\\",\\\"UnsupportedProgramId\\\",\\\"CallDepth\\\",\\\"MissingAccount\\\",\\\"ReentrancyNotAllowed\\\",\\\"MaxSeedLengthExceeded\\\",\\\"InvalidSeeds\\\",\\\"InvalidRealloc\\\",\\\"ComputationalBudgetExceeded\\\",\\\"PrivilegeEscalation\\\",\\\"ProgramEnvironmentSetupFailure\\\",\\\"ProgramFailedToComplete\\\",\\\"ProgramFailedToCompile\\\",\\\"Immutable\\\",\\\"IncorrectAuthority\\\",\\\"BorshIoError\\\",\\\"AccountNotRentExempt\\\",\\\"InvalidAccountOwner\\\",\\\"ArithmeticOverflow\\\",\\\"UnsupportedSysvar\\\",\\\"IllegalOwner\\\",\\\"MaxAccountsDataAllocationsExceeded\\\",\\\"MaxAccountsExceeded\\\",\\\"MaxInstructionTraceLengthExceeded\\\",\\\"BuiltinProgramsMustConsumeComputeUnits\\\"];function rT(e,t){let n=Number(e);return nT({errorCodeBaseOffset:4615001,getErrorContext(r,a,o){return r===fR?{errorName:a,index:n,...o!==void 0?{instructionErrorContext:o}:null}:r===mR?{code:Number(o),index:n}:{index:n}},orderedErrorNames:aC,rpcEnumError:t},rT)}var oC=[\\\"AccountInUse\\\",\\\"AccountLoadedTwice\\\",\\\"AccountNotFound\\\",\\\"ProgramAccountNotFound\\\",\\\"InsufficientFundsForFee\\\",\\\"InvalidAccountForFee\\\",\\\"AlreadyProcessed\\\",\\\"BlockhashNotFound\\\",\\\"CallChainTooDeep\\\",\\\"MissingSignatureForFee\\\",\\\"InvalidAccountIndex\\\",\\\"SignatureFailure\\\",\\\"InvalidProgramForExecution\\\",\\\"SanitizeFailure\\\",\\\"ClusterMaintenance\\\",\\\"AccountBorrowOutstanding\\\",\\\"WouldExceedMaxBlockCostLimit\\\",\\\"UnsupportedVersion\\\",\\\"InvalidWritableAccount\\\",\\\"WouldExceedMaxAccountCostLimit\\\",\\\"WouldExceedAccountDataBlockLimit\\\",\\\"TooManyAccountLocks\\\",\\\"AddressLookupTableNotFound\\\",\\\"InvalidAddressLookupTableOwner\\\",\\\"InvalidAddressLookupTableData\\\",\\\"InvalidAddressLookupTableIndex\\\",\\\"InvalidRentPayingAccount\\\",\\\"WouldExceedMaxVoteCostLimit\\\",\\\"WouldExceedAccountDataTotalLimit\\\",\\\"DuplicateInstruction\\\",\\\"InsufficientFundsForRent\\\",\\\"MaxLoadedAccountsDataSizeExceeded\\\",\\\"InvalidLoadedAccountsDataSizeLimit\\\",\\\"ResanitizationNeeded\\\",\\\"ProgramExecutionTemporarilyRestricted\\\",\\\"UnbalancedTransaction\\\"];function vm(e){return typeof e==\\\"object\\\"&&\\\"InstructionError\\\"in e?rT(...e.InstructionError):nT({errorCodeBaseOffset:7050001,getErrorContext(t,n,r){if(t===FR)return{errorName:n,...r!==void 0?{transactionErrorContext:r}:null};if(t===kR)return{index:Number(r)};if(t===GR||t===VR)return{accountIndex:Number(r.account_index)}},orderedErrorNames:oC,rpcEnumError:e},vm)}function ou(e){let t;if(iC(e)){let{code:n,data:r,message:a}=e,o=Number(n);if(o===Gf){let{err:i,...c}=r,s=i?{cause:vm(i)}:null;t=new y(Gf,{...c,...s})}else{let i;switch(o){case FE:case kE:case VE:case GE:case PE:case jE:case $E:case XE:case WE:case YE:case qE:case KE:case ZE:case HE:i={__serverMessage:a};break;default:typeof r==\\\"object\\\"&&!Array.isArray(r)&&(i=r)}t=new y(o,i)}}else{let n=typeof e==\\\"object\\\"&&e!==null&&\\\"message\\\"in e&&typeof e.message==\\\"string\\\"?e.message:\\\"Malformed JSON-RPC error with no message attribute\\\";t=new y(BE,{error:e,message:n})}return au(t,ou),t}function iC(e){return typeof e==\\\"object\\\"&&e!==null&&\\\"code\\\"in e&&\\\"message\\\"in e&&(typeof e.code==\\\"number\\\"||typeof e.code==\\\"bigint\\\")&&typeof e.message==\\\"string\\\"}h();h();function cC(e,t){if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n}var sC=(e,t)=>cC(e.length<=t?e:e.slice(0,t),t);function aa(e,t,n){let r=(n===0||n<=-e.byteLength)&&e.length===t.length?e:e.slice(n,n+t.length);return Cm(r,t)}function Cm(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function Vn(e,t){return\\\"fixedSize\\\"in t?t.fixedSize:t.getSizeFromValue(e)}function ce(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(Vn(t,e));return e.write(t,n,0),n}})}function se(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function pe(e){return\\\"fixedSize\\\"in e&&typeof e.fixedSize==\\\"number\\\"}function cu(e){if(!pe(e))throw new y(um)}function uC(e){return!pe(e)}function $t(e,t){if(pe(e)!==pe(t))throw new y(lm);if(pe(e)&&pe(t)&&e.fixedSize!==t.fixedSize)throw new y(dm,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!pe(e)&&!pe(t)&&e.maxSize!==t.maxSize)throw new y(fm,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function aT(e,t,n=0){if(t.length-n<=0)throw new y(cm,{codecDescription:e})}function Zi(e,t,n,r=0){let a=n.length-r;if(a<t)throw new y(sm,{bytesLength:a,codecDescription:e,expected:t})}function iu(e,t,n){if(t<0||t>n)throw new y(_m,{bytesLength:n,codecDescription:e,offset:t})}function su(e,t){let n=((i,c,s)=>{let u=e.encode(i);return s=t.write(u.length,c,s),c.set(u,s),s+u.length});if(pe(t)&&pe(e))return ce({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let r=pe(t)?t.fixedSize:t.maxSize??null,a=pe(e)?e.fixedSize:e.maxSize??null,o=r!==null&&a!==null?r+a:null;return ce({...e,...o!==null?{maxSize:o}:{},getSizeFromValue:i=>{let c=Vn(i,e);return Vn(c,t)+c},write:n})}function Z(e,t){let n=((i,c)=>{let[s,u]=t.read(i,c),l=Number(s);return c=u,(c>0||i.length>l)&&(i=i.slice(c,c+l)),Zi(\\\"addDecoderSizePrefix\\\",l,i),[e.decode(i),c+l]});if(pe(t)&&pe(e))return se({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let r=pe(t)?t.fixedSize:t.maxSize??null,a=pe(e)?e.fixedSize:e.maxSize??null,o=r!==null&&a!==null?r+a:null;return se({...e,...o!==null?{maxSize:o}:{},read:n})}function oT(e,t,n){let r=e.byteOffset+(t??0),a=n??e.byteLength,o;return typeof SharedArrayBuffer>\\\"u\\\"?o=e.buffer:e.buffer instanceof SharedArrayBuffer?(o=new ArrayBuffer(e.length),new Uint8Array(o).set(new Uint8Array(e))):o=e.buffer,(r===0||r===-e.byteLength)&&a===e.byteLength?o:o.slice(r,r+a)}function Qt(e,t){return ce({fixedSize:t,write:(n,r,a)=>{let o=e.encode(n),i=o.length>t?o.slice(0,t):o;return r.set(i,a),a+t}})}function kt(e,t){return se({fixedSize:t,read:(n,r)=>{Zi(\\\"fixCodecSize\\\",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),pe(e)&&(n=sC(n,e.fixedSize));let[a]=e.read(n,0);return[a,r+t]}})}function lC(e,t){return ce({...e,write:(n,r,a)=>{let o=u=>iT(u,r.length),i=t.preOffset?t.preOffset({bytes:r,preOffset:a,wrapBytes:o}):a;iu(\\\"offsetEncoder\\\",i,r.length);let c=e.write(n,r,i),s=t.postOffset?t.postOffset({bytes:r,newPreOffset:i,postOffset:c,preOffset:a,wrapBytes:o}):c;return iu(\\\"offsetEncoder\\\",s,r.length),s}})}function dC(e,t){return se({...e,read:(n,r)=>{let a=u=>iT(u,n.length),o=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:a}):r;iu(\\\"offsetDecoder\\\",o,n.length);let[i,c]=e.read(n,o),s=t.postOffset?t.postOffset({bytes:n,newPreOffset:o,postOffset:c,preOffset:r,wrapBytes:a}):c;return iu(\\\"offsetDecoder\\\",s,n.length),[i,s]}})}function iT(e,t){return t===0?0:(e%t+t)%t}function fC(e,t){if(pe(e)){let n=t(e.fixedSize);if(n<0)throw new y(Ki,{bytesLength:n,codecDescription:\\\"resizeEncoder\\\"});return ce({...e,fixedSize:n})}return ce({...e,getSizeFromValue:n=>{let r=t(e.getSizeFromValue(n));if(r<0)throw new y(Ki,{bytesLength:r,codecDescription:\\\"resizeEncoder\\\"});return r}})}function mC(e,t){if(pe(e)){let n=t(e.fixedSize);if(n<0)throw new y(Ki,{bytesLength:n,codecDescription:\\\"resizeDecoder\\\"});return se({...e,fixedSize:n})}return e}function cT(e,t){return lC(fC(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function sT(e,t){return dC(mC(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function Ee(e,t){return ce({...uC(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,a)=>e.write(t(n),r,a)})}function ut(e,t){return se({...e,read:(n,r)=>{let[a,o]=e.read(n,r);return[t(a,n,r),o]}})}function gC(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new y(ra,{alphabet:e,base:e.length,value:n})}var AC=e=>ce({getSizeFromValue:t=>{let[n,r]=uT(t,e[0]);if(!r)return t.length;let a=lT(r,e);return n.length+Math.ceil(a.toString(16).length/2)},write(t,n,r){if(gC(e,t),t===\\\"\\\")return r;let[a,o]=uT(t,e[0]);if(!o)return n.set(new Uint8Array(a.length).fill(0),r),r+a.length;let i=lT(o,e),c=[];for(;i>0n;)c.unshift(Number(i%256n)),i/=256n;let s=[...Array(a.length).fill(0),...c];return n.set(s,r),r+s.length}}),_C=e=>se({read(t,n){let r=n===0||n<=-t.byteLength?t:t.slice(n);if(r.length===0)return[\\\"\\\",0];let a=r.findIndex(s=>s!==0);a=a===-1?r.length:a;let o=e[0].repeat(a);if(a===r.length)return[o,t.length];let i=r.slice(a).reduce((s,u)=>s*256n+BigInt(u),0n),c=hC(i,e);return[o+c,t.length]}});function uT(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function lT(e,t){let n=BigInt(t.length),r=0n;for(let a of e)r*=n,r+=BigInt(t.indexOf(a));return r}function hC(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join(\\\"\\\")}var fT=\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\",Dm=()=>AC(fT),bm=()=>_C(fT);var dT=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",Mm=()=>ce({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new y(ra,{alphabet:dT,base:64,value:e})}},write(e,t,n){try{let r=atob(e).split(\\\"\\\").map(a=>a.charCodeAt(0));return t.set(r,n),r.length+n}catch{throw new y(ra,{alphabet:dT,base:64,value:e})}}}),mT=()=>se({read(e,t=0){let n=e.slice(t);return[btoa(String.fromCharCode(...n)),e.length]}});var pC=e=>e.replace(/\\\\u0000/g,\\\"\\\");var EC=globalThis.TextDecoder,Cx=globalThis.TextEncoder;var oa=()=>{let e;return se({read(t,n){let r=(e||(e=new EC)).decode(t.slice(n));return[pC(r),t.length]}})};function Xi(e,t){try{return\\\"exists\\\"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new y(Kf,{address:e.address})}}function RC(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=Mm().encode(t.data[0]);return Object.freeze({...TC(t),address:e,data:n,exists:!0})}function TC(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function $i(e,t,n={}){let{abortSignal:r,...a}=n,o=await e.getAccountInfo(t,{...a,encoding:\\\"base64\\\"}).send({abortSignal:r});return RC(t,o.value)}function wm(e){if(!e.exists)throw new y(qf,{address:e.address})}h();h();function SC(){if(!globalThis.isSecureContext)throw new y(Zf)}function gT(){if(SC(),typeof globalThis.crypto>\\\"u\\\"||typeof globalThis.crypto.subtle?.digest!=\\\"function\\\")throw new y(Xf)}var xm,Lm;function Um(){return xm||(xm=Dm()),xm}function yC(){return Lm||(Lm=bm()),Lm}function zm(e){if(e.length<32||e.length>44)return!1;let t=Um();try{return t.encode(e).byteLength===32}catch{return!1}}function Bm(e){if(e.length<32||e.length>44)throw new y(Hf,{actualLength:e.length});let r=Um().encode(e).byteLength;if(r!==32)throw new y(Vf,{actualLength:r})}function Qi(e){return Bm(e),e}function Vt(){return Ee(Qt(Um(),32),e=>Qi(e))}function z(){return kt(yC(),32)}function NC(){return $t(Vt(),z())}function Ji(){return new Intl.Collator(\\\"en\\\",{caseFirst:\\\"lower\\\",ignorePunctuation:!1,localeMatcher:\\\"best fit\\\",numeric:!1,sensitivity:\\\"variant\\\",usage:\\\"sort\\\"}).compare}var IC=37095705934669439343138083508754565189542113879843219016388785533085940283555n,et=57896044618658097711785492504343953926634992332820282019728792003956564819949n,AT=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function Gt(e){let t=e%et;return t>=0n?t:et+t}function mn(e,t){let n=e;for(;t-- >0n;)n*=n,n%=et;return n}function OC(e){let n=e*e%et*e%et,r=mn(n,2n)*n%et,a=mn(r,1n)*e%et,o=mn(a,5n)*a%et,i=mn(o,10n)*o%et,c=mn(i,20n)*i%et,s=mn(c,40n)*c%et,u=mn(s,80n)*s%et,l=mn(u,80n)*s%et,d=mn(l,10n)*o%et;return mn(d,2n)*e%et}function vC(e,t){let n=Gt(t*t*t),r=Gt(n*n*t),a=OC(e*r),o=Gt(e*n*a),i=Gt(t*o*o),c=o,s=Gt(o*AT),u=i===e,l=i===Gt(-e),d=i===Gt(-e*AT);return u&&(o=c),(l||d)&&(o=s),(Gt(o)&1n)===1n&&(o=Gt(-o)),!u&&!l?null:o}function CC(e,t){let n=Gt(e*e),r=Gt(n-1n),a=Gt(IC*n+1n),o=vC(r,a);if(o===null)return!1;let i=(t&128)!==0;return!(o===0n&&i)}function DC(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function bC(e){let n=`0x${e.reduce((r,a,o)=>`${DC(o===31?a&-129:a)}${r}`,\\\"\\\")}`;return BigInt(n)}function MC(e){if(e.byteLength!==32)return!1;let t=bC(e);return CC(t,e[31])}var _T=32,hT=16,wC=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function xC({programAddress:e,seeds:t}){if(gT(),t.length>hT)throw new y(Wf,{actual:t.length,maxSeeds:hT});let n,r=t.reduce((s,u,l)=>{let d=typeof u==\\\"string\\\"?(n||(n=new TextEncoder)).encode(u):u;if(d.byteLength>_T)throw new y(jf,{actual:d.byteLength,index:l,maxSeedLength:_T});return s.push(...d),s},[]),a=NC(),o=a.encode(e),i=await crypto.subtle.digest(\\\"SHA-256\\\",new Uint8Array([...r,...o,...wC])),c=new Uint8Array(i);if(MC(c))throw new y(tu);return a.decode(c)}async function Pm({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return[await xC({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(r){if(Om(r,tu))n--;else throw r}throw new y(Yf)}h();h();function pT(e,t,n,r){if(r<t||r>n)throw new y(Am,{codecDescription:e,max:n,min:t,value:r})}function ET(e){return e?.endian!==1}function uu(e){return ce({fixedSize:e.size,write(t,n,r){e.range&&pT(e.name,e.range[0],e.range[1],t);let a=new ArrayBuffer(e.size);return e.set(new DataView(a),t,ET(e.config)),n.set(new Uint8Array(a),r),r+e.size}})}function Oo(e){return se({fixedSize:e.size,read(t,n=0){aT(e.name,t,n),Zi(e.name,e.size,t,n);let r=new DataView(oT(t,n,e.size));return[e.get(r,ET(e.config)),n+e.size]}})}var Fm=(e={})=>Oo({config:e,get:(t,n)=>t.getFloat64(0,n),name:\\\"f64\\\",size:8});var km=(e={})=>Oo({config:e,get:(t,n)=>t.getInt16(0,n),name:\\\"i16\\\",size:2});var Jt=()=>ce({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{pT(\\\"shortU16\\\",0,65535,e);let r=[0];for(let a=0;;a+=1){let o=Number(e)>>a*7;if(o===0)break;let i=127&o;r[a]=i,a>0&&(r[a-1]|=128)}return t.set(r,n),n+r.length}}),lu=()=>se({maxSize:3,read:(e,t)=>{let n=0,r=0;for(;++r;){let a=r-1,o=e[t+a],i=127&o;if(n|=i<<a*7,(o&128)===0)break}return[n,t+r]}});var Gm=(e={})=>uu({config:e,name:\\\"u16\\\",range:[0,+\\\"0xffff\\\"],set:(t,n,r)=>t.setUint16(0,Number(n),r),size:2}),J=(e={})=>Oo({config:e,get:(t,n)=>t.getUint16(0,n),name:\\\"u16\\\",size:2});var Hn=(e={})=>uu({config:e,name:\\\"u32\\\",range:[0,+\\\"0xffffffff\\\"],set:(t,n,r)=>t.setUint32(0,Number(n),r),size:4}),xe=(e={})=>Oo({config:e,get:(t,n)=>t.getUint32(0,n),name:\\\"u32\\\",size:4});var ia=(e={})=>uu({config:e,name:\\\"u64\\\",range:[0n,BigInt(\\\"0xffffffffffffffff\\\")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),ge=(e={})=>Oo({config:e,get:(t,n)=>t.getBigUint64(0,n),name:\\\"u64\\\",size:8});var Re=()=>uu({name:\\\"u8\\\",range:[0,+\\\"0xff\\\"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),Ot=()=>Oo({get:e=>e.getUint8(0),name:\\\"u8\\\",size:1});function RT(e,t,n){if(t!==n)throw new y(mm,{actual:n,codecDescription:e,expected:t})}function LC(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function Cr(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function vo(e){return pe(e)?e.fixedSize:null}function ca(e){return pe(e)?e.fixedSize:e.maxSize??null}function ke(e,t={}){let n=t.size??Hn(),r=du(n,vo(e)),a=du(n,ca(e))??void 0;return ce({...r!==null?{fixedSize:r}:{getSizeFromValue:o=>(typeof n==\\\"object\\\"?Vn(o.length,n):0)+[...o].reduce((c,s)=>c+Vn(s,e),0),maxSize:a},write:(o,i,c)=>(typeof n==\\\"number\\\"&&RT(t.description??\\\"array\\\",n,o.length),typeof n==\\\"object\\\"&&(c=n.write(o.length,i,c)),o.forEach(s=>{c=e.write(s,i,c)}),c)})}function en(e,t={}){let n=t.size??xe(),r=vo(e),a=du(n,r),o=du(n,ca(e))??void 0;return se({...a!==null?{fixedSize:a}:{maxSize:o},read:(i,c)=>{let s=[];if(typeof n==\\\"object\\\"&&i.slice(c).length===0)return[s,c];if(n===\\\"remainder\\\"){for(;c<i.length;){let[d,m]=e.read(i,c);c=m,s.push(d)}return[s,c]}let[u,l]=typeof n==\\\"number\\\"?[n,c]:n.read(i,c);c=l;for(let d=0;d<u;d+=1){let[m,A]=e.read(i,c);c=A,s.push(m)}return[s,c]}})}function du(e,t){return typeof e!=\\\"number\\\"?null:e===0?0:t===null?null:t*e}function mu(e={}){return Ee(e.size??Re(),t=>t?1:0)}function lt(e={}){return ut(e.size??Ot(),t=>Number(t)===1)}function gn(){return ce({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function Wn(){return se({read:(e,t)=>{let n=e.slice(t);return[n,t+n.length]}})}var UC=()=>se({read(e,t){return[e.slice(t).reduce((r,a)=>r+a.toString(16).padStart(2,\\\"0\\\"),\\\"\\\"),e.length]}});function Hm(e){return ce({fixedSize:e.length,write:(t,n,r)=>(n.set(e,r),r+e.length)})}function tc(e){return se({fixedSize:e.length,read:(t,n)=>{let r=UC();if(!aa(t,e,n))throw new y(pm,{constant:e,data:t,hexConstant:r.decode(e),hexData:r.decode(t),offset:n});return[void 0,n+e.length]}})}function fu(e,t){let n=Cr(e.map(vo)),r=Cr(e.map(ca))??void 0;return ce({...n===null?{getSizeFromValue:a=>e.map((o,i)=>Vn(a[i],o)).reduce((o,i)=>o+i,0),maxSize:r}:{fixedSize:n},write:(a,o,i)=>(RT(t?.description??\\\"tuple\\\",e.length,a.length),e.forEach((c,s)=>{i=c.write(a[s],o,i)}),i)})}function An(e){let t=Cr(e.map(vo)),n=Cr(e.map(ca))??void 0;return se({...t===null?{maxSize:n}:{fixedSize:t},read:(r,a)=>{let o=[];return e.forEach(i=>{let[c,s]=i.read(r,a);o.push(c),a=s}),[o,a]}})}function gu(e,t){let n=TT(e),r=(o,i,c)=>{let s=t(o);return Vm(e,s),e[s].write(o,i,c)};if(n!==null)return ce({fixedSize:n,write:r});let a=ST(e);return ce({...a!==null?{maxSize:a}:{},getSizeFromValue:o=>{let i=t(o);return Vm(e,i),Vn(o,e[i])},write:r})}function Au(e,t){let n=TT(e),r=(o,i)=>{let c=t(o,i);return Vm(e,c),e[c].read(o,i)};if(n!==null)return se({fixedSize:n,read:r});let a=ST(e);return se({...a!==null?{maxSize:a}:{},read:r})}function Vm(e,t){if(typeof e[t]>\\\"u\\\")throw new y(hm,{maxRange:e.length-1,minRange:0,variant:t})}function TT(e){if(e.length===0)return 0;if(!pe(e[0]))return null;let t=e[0].fixedSize;return e.every(r=>pe(r)&&r.fixedSize===t)?t:null}function ST(e){return LC(e.map(t=>ca(t)))}function yT(e,t={}){let n=t.discriminator??\\\"__kind\\\",r=t.size??Ot();return Au(e.map(([a,o])=>ut(An([r,o]),([,i])=>({[n]:a,...i}))),(a,o)=>Number(r.read(a,o)[0]))}function zC(e){let t=[...new Set(Object.values(e).filter(i=>typeof i==\\\"number\\\"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),r=Object.keys(n),a=Object.values(n),o=[...new Set([...r,...a.filter(i=>typeof i==\\\"string\\\")])];return{enumKeys:r,enumRecord:n,enumValues:a,numericalValues:t,stringValues:o}}function BC({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:r}){return r?PC(n,a=>a===e):e>=0&&e<t.length?e:-1}function PC(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function FC(e){if(e.length===0)return\\\"\\\";let t=[e[0],e[0]],n=[];for(let r=1;r<e.length;r++){let a=e[r];t[1]+1===a?t[1]=a:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[a,a])}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(\\\", \\\")}function _u(e,t={}){let n=t.size??Ot(),r=t.useValuesAsDiscriminators??!1,{enumKeys:a,enumValues:o,numericalValues:i}=zC(e);if(r&&o.some(c=>typeof c==\\\"string\\\"))throw new y(Em,{stringValues:o.filter(c=>typeof c==\\\"string\\\")});return ut(n,c=>{let s=Number(c),u=BC({discriminator:s,enumKeys:a,enumValues:o,useValuesAsDiscriminators:r});if(u<0){let l=r?i:[...Array(a.length).keys()];throw new y(gm,{discriminator:s,formattedValidDiscriminators:FC(l),validDiscriminators:l})}return o[u]})}function Wm(e,t){return ut(An([...t,e]),n=>n[n.length-1])}function NT(e,t,n={}){return ut(en(An([e,t]),n),r=>new Map(r))}function ec(){return ce({fixedSize:0,write:(e,t,n)=>n})}function sa(){return se({fixedSize:0,read:(e,t)=>[void 0,t]})}function IT(e,t={}){let n=t.prefix===null?Ee(ec(),a=>{}):mu({size:t.prefix??Re()}),r=t.noneValue===\\\"zeroes\\\"?(cu(e),Qt(ec(),e.fixedSize)):t.noneValue?Hm(t.noneValue):ec();return gu([Ee(fu([n,r]),a=>[!1,void 0]),Ee(fu([n,e]),a=>[!0,a])],a=>+(a!==null))}function jm(e){return gu(e.map(([,t])=>t),t=>{let n=e.findIndex(([r])=>r(t));if(n===-1)throw new y(Rm);return n})}function OT(e,t,n){return gu([t,n],r=>e(r)?0:1)}function vT(e,t,n){return Au([t,n],r=>e(r)?0:1)}function Le(e){let t=e.map(([,a])=>a),n=Cr(t.map(vo)),r=Cr(t.map(ca))??void 0;return ce({...n===null?{getSizeFromValue:a=>e.map(([o,i])=>Vn(a[o],i)).reduce((o,i)=>o+i,0),maxSize:r}:{fixedSize:n},write:(a,o,i)=>(e.forEach(([c,s])=>{i=s.write(a[c],o,i)}),i)})}function V(e){let t=e.map(([,a])=>a),n=Cr(t.map(vo)),r=Cr(t.map(ca))??void 0;return se({...n===null?{maxSize:r}:{fixedSize:n},read:(a,o)=>{let i={};return e.forEach(([c,s])=>{let[u,l]=s.read(a,o);o=l,i[c]=u}),[i,o]}})}h();var kC=e=>({__option:\\\"Some\\\",value:e}),Ym=()=>({__option:\\\"None\\\"});function Ae(e,t={}){let n=t.prefix===null?ut(sa(),()=>!1):lt({size:t.prefix??Ot()}),r=t.noneValue===\\\"zeroes\\\"?(cu(e),kt(sa(),e.fixedSize)):t.noneValue?tc(t.noneValue):sa();return Au([ut(An([n,r]),()=>Ym()),ut(An([n,e]),([,a])=>kC(a))],(a,o)=>{if(t.prefix===null&&!t.noneValue)return+(o<a.length);if(t.prefix===null&&t.noneValue!=null){let i=t.noneValue===\\\"zeroes\\\"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return aa(a,i,o)?0:1}return Number(n.read(a,o)[0])})}h();function tn(e,...t){return t.reduce((n,r)=>r(n),e)}h();var Ye=(e=>(e[e.WRITABLE_SIGNER=3]=\\\"WRITABLE_SIGNER\\\",e[e.READONLY_SIGNER=2]=\\\"READONLY_SIGNER\\\",e[e.WRITABLE=1]=\\\"WRITABLE\\\",e[e.READONLY=0]=\\\"READONLY\\\",e))(Ye||{}),GC=2,VC=1;function Ht(e){return e>=2}function _n(e){return(e&VC)!==0}function hu(e,t){return e|t}function CT(e){return e|GC}h();h();function DT(e){return zm(e)}function LT(e){return\\\"lifetimeConstraint\\\"in e&&typeof e.lifetimeConstraint.blockhash==\\\"string\\\"&&typeof e.lifetimeConstraint.lastValidBlockHeight==\\\"bigint\\\"&&DT(e.lifetimeConstraint.blockhash)}function pu(e,t){return\\\"lifetimeConstraint\\\"in t&&t.lifetimeConstraint&&\\\"blockhash\\\"in t.lifetimeConstraint&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?t:Object.freeze({...t,lifetimeConstraint:Object.freeze(e)})}var Qm=1,qm;function Km(){return qm||(qm=Re()),qm}function Jm(){return Le([[\\\"numSignerAccounts\\\",Km()],[\\\"numReadonlySignerAccounts\\\",Km()],[\\\"numReadonlyNonSignerAccounts\\\",Km()]])}var Zm;function UT(){return Zm||(Zm=Ee(Le([[\\\"programAddressIndex\\\",Re()],[\\\"accountIndices\\\",ke(Re(),{size:Jt()})],[\\\"data\\\",su(gn(),Jt())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),Zm}function HC(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new y(ra,{alphabet:e,base:e.length,value:n})}var WC=e=>ce({getSizeFromValue:t=>{let[n,r]=bT(t,e[0]);if(!r)return t.length;let a=MT(r,e);return n.length+Math.ceil(a.toString(16).length/2)},write(t,n,r){if(HC(e,t),t===\\\"\\\")return r;let[a,o]=bT(t,e[0]);if(!o)return n.set(new Uint8Array(a.length).fill(0),r),r+a.length;let i=MT(o,e),c=[];for(;i>0n;)c.unshift(Number(i%256n)),i/=256n;let s=[...Array(a.length).fill(0),...c];return n.set(s,r),r+s.length}});function bT(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function MT(e,t){let n=BigInt(t.length),r=0n;for(let a of e)r*=n,r+=BigInt(t.indexOf(a));return r}var jC=\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\",YC=()=>WC(jC);function eg(){return Ee(IT(Qt(YC(),32),{noneValue:\\\"zeroes\\\",prefix:null}),e=>e??null)}function qC(){return Ee(Le([[\\\"header\\\",Jm()],[\\\"staticAccounts\\\",ke(Vt(),{size:Jt()})],[\\\"lifetimeToken\\\",eg()],[\\\"instructions\\\",ke(UT(),{size:Jt()})]]),e=>({...e,lifetimeToken:\\\"lifetimeToken\\\"in e?e.lifetimeToken:void 0}))}var $m=128;function zT(){return ce({getSizeFromValue:e=>e===\\\"legacy\\\"?0:1,maxSize:1,write:(e,t,n)=>{if(e===\\\"legacy\\\")return n;if(e<0||e>127)throw new y(em,{actualVersion:e});if(e>Qm)throw new y(vr,{unsupportedVersion:e});return t.set([e|$m],n),n+1}})}function tg(){return se({maxSize:1,read:(e,t)=>{let n=e[t];if((n&$m)===0)return[\\\"legacy\\\",t];{let r=n^$m;if(r>Qm)throw new y(vr,{unsupportedVersion:r});return[r,t+1]}}})}var Xm;function KC(){if(!Xm){let e=ke(Re(),{size:Jt()});Xm=Le([[\\\"lookupTableAddress\\\",Vt()],[\\\"writableIndexes\\\",e],[\\\"readonlyIndexes\\\",e]])}return Xm}function ZC(){return Ee(Le([[\\\"version\\\",zT()],[\\\"header\\\",Jm()],[\\\"staticAccounts\\\",ke(Vt(),{size:Jt()})],[\\\"lifetimeToken\\\",eg()],[\\\"instructions\\\",ke(UT(),{size:Jt()})],[\\\"addressTableLookups\\\",ke(KC(),{size:Jt()})]]),e=>({...e,addressTableLookups:e.addressTableLookups??[],lifetimeToken:\\\"lifetimeToken\\\"in e?e.lifetimeToken:void 0}))}var XC=3,$C=4,QC=8,JC=16;function eD(){return jm([[e=>e.kind===\\\"u32\\\",Le([[\\\"value\\\",Hn()]])],[e=>e.kind===\\\"u64\\\",Le([[\\\"value\\\",ia()]])]])}function tD(){return ke(eD(),{size:\\\"remainder\\\"})}function nD(){return Le([[\\\"programAccountIndex\\\",Re()],[\\\"numInstructionAccounts\\\",Re()],[\\\"numInstructionDataBytes\\\",Gm()]])}function rD(){return Le([[\\\"instructionAccountIndices\\\",ke(Re(),{size:\\\"remainder\\\"})],[\\\"instructionData\\\",gn()]])}function aD(){return Ee(Le([[\\\"version\\\",zT()],[\\\"header\\\",Jm()],[\\\"configMask\\\",Hn()],[\\\"lifetimeToken\\\",eg()],[\\\"numInstructions\\\",Re()],[\\\"numStaticAccounts\\\",Re()],[\\\"staticAccounts\\\",ke(Vt(),{size:\\\"remainder\\\"})],[\\\"configValues\\\",tD()],[\\\"instructionHeaders\\\",ke(nD(),{size:\\\"remainder\\\"})],[\\\"instructionPayloads\\\",ke(rD(),{size:\\\"remainder\\\"})]]),e=>({...e,lifetimeToken:\\\"lifetimeToken\\\"in e?e.lifetimeToken:void 0}))}function BT(){return Ee(jm([[e=>e.version===\\\"legacy\\\",qC()],[e=>e.version===0,ZC()],[e=>e.version===1,aD()]]),e=>{if(e.version!==\\\"legacy\\\"&&e.version>Qm)throw new y(vr,{unsupportedVersion:e.version});return e})}function wT(e,t,n){e[t]=n(e[t]??{role:Ye.READONLY})}var dt=Symbol(\\\"AddressMapTypeProperty\\\");function PT(e,t){let n={[e]:{[dt]:0,role:Ye.WRITABLE_SIGNER}},r=new Set;for(let a of t)if(wT(n,a.programAddress,o=>{if(r.add(a.programAddress),dt in o){if(_n(o.role))throw o[dt]===0?new y(nu,{programAddress:a.programAddress}):new y(Io,{programAddress:a.programAddress});if(o[dt]===1)return o}return{[dt]:1,role:Ye.READONLY}}),!!a.accounts)for(let o of a.accounts)wT(n,o.address,i=>{let{address:c,...s}=o;if(dt in i)switch(i[dt]){case 0:return i;case 1:{let u=hu(i.role,s.role);if(r.has(o.address)){if(_n(s.role))throw new y(Io,{programAddress:o.address});return i.role!==u?{...i,role:u}:i}else return i.role!==u?{...i,role:u}:i}}return{...s,[dt]:1}});return n}function FT(e){let t;return Object.entries(e).sort(([r,a],[o,i])=>{if(a[dt]!==i[dt]){if(a[dt]===0)return-1;if(i[dt]===0)return 1;if(a[dt]===1)return-1;if(i[dt]===1)return 1}let c=Ht(a.role);if(c!==Ht(i.role))return c?-1:1;let s=_n(a.role);return s!==_n(i.role)?s?-1:1:(t||(t=Ji()),t(r,o))}).map(([r,a])=>({address:r,...a}))}function ng(e){let t=0,n=0,r=0;for(let a of e){if(\\\"lookupTableAddress\\\"in a)break;let o=_n(a.role);Ht(a.role)?(r++,o||n++):o||t++}return{numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:r}}function kT(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function oD(e,t){let n=kT(t);return e.map(({accounts:r,data:a,programAddress:o})=>({programAddressIndex:n[o],...r?{accountIndices:r.map(({address:i})=>n[i])}:null,...a?{data:a}:null}))}function rg(e){return\\\"nonce\\\"in e?e.nonce:e.blockhash}function iD(e){let t=PT(e.feePayer.address,e.instructions),n=FT(t),r=n.length;if(r>64)throw new y(ji,{actualCount:r,maxAllowed:64});let a=n.filter(c=>Ht(c.role)).length;if(a>12)throw new y(Wi,{actualCount:a,maxAllowed:12});let o=e.instructions.length;if(o>64)throw new y(Yi,{actualCount:o,maxAllowed:64});for(let c=0;c<e.instructions.length;c++){let s=e.instructions[c].accounts?.length??0;if(s>255)throw new y(qi,{actualCount:s,instructionIndex:c,maxAllowed:255})}let i=e.lifetimeConstraint;return{...i?{lifetimeToken:rg(i)}:null,header:ng(n),instructions:oD(e.instructions,n),staticAccounts:n.map(c=>c.address),version:e.version}}function xT(e,t,n){e[t]=n(e[t]??{role:Ye.READONLY})}var be=Symbol(\\\"AddressMapTypeProperty\\\");function cD(e,t){let n={[e]:{[be]:0,role:Ye.WRITABLE_SIGNER}},r=new Set;for(let a of t){xT(n,a.programAddress,i=>{if(r.add(a.programAddress),be in i){if(_n(i.role))throw i[be]===0?new y(nu,{programAddress:a.programAddress}):new y(Io,{programAddress:a.programAddress});if(i[be]===2)return i}return{[be]:2,role:Ye.READONLY}});let o;if(a.accounts)for(let i of a.accounts)xT(n,i.address,c=>{let{address:s,...u}=i;if(be in c)switch(c[be]){case 0:return c;case 1:{let l=hu(c.role,u.role);if(\\\"lookupTableAddress\\\"in u){if(c.lookupTableAddress!==u.lookupTableAddress&&(o||(o=Ji()))(u.lookupTableAddress,c.lookupTableAddress)<0)return{[be]:1,...u,role:l}}else if(Ht(u.role))return{[be]:2,role:l};return c.role!==l?{...c,role:l}:c}case 2:{let l=hu(c.role,u.role);if(r.has(i.address)){if(_n(u.role))throw new y(Io,{programAddress:i.address});return c.role!==l?{...c,role:l}:c}else return\\\"lookupTableAddress\\\"in u&&!Ht(c.role)?{...u,[be]:1,role:l}:c.role!==l?{...c,role:l}:c}}return\\\"lookupTableAddress\\\"in u?{...u,[be]:1}:{...u,[be]:2}})}return n}function sD(e){let t;return Object.entries(e).sort(([r,a],[o,i])=>{if(a[be]!==i[be]){if(a[be]===0)return-1;if(i[be]===0)return 1;if(a[be]===2)return-1;if(i[be]===2)return 1}let c=Ht(a.role);if(c!==Ht(i.role))return c?-1:1;let s=_n(a.role);return s!==_n(i.role)?s?-1:1:(t||(t=Ji()),a[be]===1&&i[be]===1&&a.lookupTableAddress!==i.lookupTableAddress?t(a.lookupTableAddress,i.lookupTableAddress):t(r,o))}).map(([r,a])=>({address:r,...a}))}function uD(e){var n;let t={};for(let r of e){if(!(\\\"lookupTableAddress\\\"in r))continue;let a=t[n=r.lookupTableAddress]||(t[n]={readonlyIndexes:[],writableIndexes:[]});r.role===Ye.WRITABLE?a.writableIndexes.push(r.addressIndex):a.readonlyIndexes.push(r.addressIndex)}return Object.keys(t).sort(Ji()).map(r=>({lookupTableAddress:r,...t[r]}))}function lD(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function dD(e,t){let n=lD(t);return e.map(({accounts:r,data:a,programAddress:o})=>({programAddressIndex:n[o],...r?{accountIndices:r.map(({address:i})=>n[i])}:null,...a?{data:a}:null}))}function fD(e){let t=e.findIndex(r=>\\\"lookupTableAddress\\\"in r);return(t===-1?e:e.slice(0,t)).map(({address:r})=>r)}function mD(e){let t=cD(e.feePayer.address,e.instructions),n=sD(t),r=n.length;if(r>64)throw new y(ji,{actualCount:r,maxAllowed:64});let a=n.filter(c=>Ht(c.role)).length;if(a>12)throw new y(Wi,{actualCount:a,maxAllowed:12});let o=e.instructions.length;if(o>64)throw new y(Yi,{actualCount:o,maxAllowed:64});for(let c=0;c<e.instructions.length;c++){let s=e.instructions[c].accounts?.length??0;if(s>255)throw new y(qi,{actualCount:s,instructionIndex:c,maxAllowed:255})}let i=e.lifetimeConstraint;return{addressTableLookups:uD(n),...i?{lifetimeToken:rg(i)}:null,header:ng(n),instructions:dD(e.instructions,n),staticAccounts:fD(n),version:e.version}}function gD(e){let t=0;return e.priorityFeeLamports!==void 0&&(t|=XC),e.computeUnitLimit!==void 0&&(t|=$C),e.loadedAccountsDataSizeLimit!==void 0&&(t|=QC),e.heapSize!==void 0&&(t|=JC),t}function AD(e){let t=[];return e.priorityFeeLamports!==void 0&&t.push({kind:\\\"u64\\\",value:e.priorityFeeLamports}),e.computeUnitLimit!==void 0&&t.push({kind:\\\"u32\\\",value:e.computeUnitLimit}),e.loadedAccountsDataSizeLimit!==void 0&&t.push({kind:\\\"u32\\\",value:e.loadedAccountsDataSizeLimit}),e.heapSize!==void 0&&t.push({kind:\\\"u32\\\",value:e.heapSize}),t}function _D(e,t){return{numInstructionAccounts:e.accounts?.length??0,numInstructionDataBytes:e.data?.byteLength??0,programAccountIndex:t[e.programAddress]}}function hD(e,t){return{instructionAccountIndices:e.accounts?.map(({address:n})=>t[n])??[],instructionData:e.data??new Uint8Array}}function pD(e){let t=PT(e.feePayer.address,e.instructions),n=FT(t),r=n.length;if(r>64)throw new y(ji,{actualCount:r,maxAllowed:64});let a=n.filter(s=>Ht(s.role)).length;if(a>12)throw new y(Wi,{actualCount:a,maxAllowed:12});let o=e.instructions.length;if(o>64)throw new y(Yi,{actualCount:o,maxAllowed:64});for(let s=0;s<e.instructions.length;s++){let u=e.instructions[s].accounts?.length??0;if(u>255)throw new y(qi,{actualCount:u,instructionIndex:s,maxAllowed:255})}let i=kT(n),c=e.lifetimeConstraint;return{version:1,...c?{lifetimeToken:rg(c)}:null,configMask:gD(e.config??{}),configValues:AD(e.config??{}),header:ng(n),instructionHeaders:e.instructions.map(s=>_D(s,i)),instructionPayloads:e.instructions.map(s=>hD(s,i)),numInstructions:e.instructions.length,numStaticAccounts:n.length,staticAccounts:n.map(s=>s.address)}}function GT(e){let t=e.version;if(t===\\\"legacy\\\")return iD(e);if(t===0)return mD(e);if(t===1)return pD(e);throw new y(vr,{version:t})}function VT(e,t){return nc([e],t)}function nc(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function Eu(e,t){return ED([e],t)}function ED(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function Ru(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}function Tu(e,t){if(\\\"feePayer\\\"in t&&e===t.feePayer?.address&&RD(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function RD(e){return!!e&&\\\"address\\\"in e&&typeof e.address==\\\"string\\\"&&Object.keys(e).length===1}var TD=\\\"SysvarRecentB1ockHashes11111111111111111111\\\",SD=\\\"11111111111111111111111111111111\\\";function yD(e){return e.programAddress===SD&&e.data!=null&&ND(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===Ye.WRITABLE&&e.accounts[1].address===TD&&e.accounts[1].role===Ye.READONLY&&e.accounts[2].address!=null&&Ht(e.accounts[2].role)}function ND(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function ag(e){return\\\"lifetimeConstraint\\\"in e&&typeof e.lifetimeConstraint.nonce==\\\"string\\\"&&e.instructions[0]!=null&&yD(e.instructions[0])}h();function HT(e){let t=Object.values(e);if(t.length===0)throw new y(tm);return t.map(n=>n||new Uint8Array(64).fill(0))}function ID(){return Ee(ke(Qt(gn(),64),{size:Jt()}),HT)}function OD(e){return Ee(ke(Qt(gn(),64),{description:\\\"signatures\\\",size:e}),HT)}var vD=128,CD=127;function DD(e){if(e.length===0)throw new y(rm);return tg().decode(e)===1?\\\"messageFirst\\\":\\\"signaturesFirst\\\"}function bD(e){if(e.length===0)throw new y(am);let t=e[0];if((t&vD)===0)return\\\"signaturesFirst\\\";let n=t&CD;if(n===0)throw new y(om,{firstByte:t,transactionBytes:e});if(n===1)return\\\"messageFirst\\\";throw new y(vr,{unsupportedVersion:n})}function ig(){return OT(e=>DD(e.messageBytes)===\\\"signaturesFirst\\\",MD(),wD())}function MD(){return Le([[\\\"signatures\\\",ID()],[\\\"messageBytes\\\",gn()]])}function og(e,t){if(e.length<t+2)throw new y(nm,{messageBytes:e});return e[t+1]}function wD(){let e=gn();return ce({getSizeFromValue:t=>{let n=og(t.messageBytes,0);return t.messageBytes.length+n*64},write:(t,n,r)=>{r=e.write(t.messageBytes,n,r);let a=og(t.messageBytes,0);return r=OD(a).write(t.signatures,n,r),r}})}function cg(){return vT(e=>bD(e)===\\\"signaturesFirst\\\",xD(),LD())}function xD(){return ut(V([[\\\"signatures\\\",en(kt(Wn(),64),{size:lu()})],[\\\"messageBytes\\\",Wn()]]),zD)}function LD(){return ut(UD(),BD)}function UD(){return se({read(e,t){let n=og(e,t),r=n*64,a=e.length-t-r;if(a<0)throw new y(im,{numExpectedSignatures:n,transactionBytes:e.subarray(t),transactionBytesLength:e.length-t});let o=e.subarray(t,t+a),[i,c]=en(kt(Wn(),64),{size:n}).read(e,t+a);return[{messageBytes:o,signatures:i},c]}})}function zD(e){let{messageBytes:t,signatures:n}=e,r=An([tg(),sT(Ot(),2),en(z(),{size:lu()})]),[a,o,i]=r.decode(t),c=i.slice(0,o);if(c.length!==n.length)throw new y(ru,{numRequiredSignatures:o,signaturesLength:n.length,signerAddresses:c});let s=WT(c,n);return{messageBytes:t,signatures:Object.freeze(s)}}function BD(e){let{messageBytes:t,signatures:n}=e,r=t[1],o=en(z(),{size:r}).decode(t,42);if(o.length!==n.length)throw new y(ru,{numRequiredSignatures:r,signaturesLength:n.length,signerAddresses:o});let i=WT(o,n);return{messageBytes:t,signatures:i}}function WT(e,t){let n={};return e.forEach((r,a)=>{let o=t[a];o.every(i=>i===0)?n[r]=null:n[r]=o}),Object.freeze(n)}function sg(e){let t=GT(e),n=BT().encode(t),r=t.staticAccounts.slice(0,t.header.numSignerAccounts),a={};for(let i of r)a[i]=null;let o;return LT(e)?o={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:ag(e)&&(o={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address}),Object.freeze({...o?{lifetimeConstraint:o}:void 0,messageBytes:n,signatures:Object.freeze(a)})}function rc(e){let t=ig().encode(e);return mT().decode(t)}var PD=1280,FD=48,bL=PD-FD;h();h();h();h();function YT(e){return JSON.parse(kD(e),(t,n)=>WD(n)?HD(n):n)}function kD(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let a=!1;if(e[r]===\\\"\\\\\\\\\\\"&&(t.push(e[r++]),a=!a),e[r]==='\\\"'){t.push(e[r]),a||(n=!n);continue}if(!n){let o=GD(e,r);if(o?.length){r+=o.length-1,o.match(/\\\\.|[eE]-/)?t.push(o):t.push(VD(o));continue}}t.push(e[r])}return t.join(\\\"\\\")}function GD(e,t){let n=/^-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?/;if(!e[t]?.match(/[-\\\\d]/))return null;let r=e.slice(t).match(n);return r?r[0]:null}function VD(e){return`{\\\"$n\\\":\\\"${e}\\\"}`}function HD({$n:e}){if(e.match(/[eE]/)){let[t,n]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(n)}return BigInt(e)}function WD(e){return!!e&&typeof e==\\\"object\\\"&&\\\"$n\\\"in e&&typeof e.$n==\\\"string\\\"}var jT=0n;function jD(){let e=jT;return jT++,e.toString()}function qT(e){return{id:jD(),jsonrpc:\\\"2.0\\\",method:e.methodName,params:e.params}}function KT(e,t){return qD(JSON.stringify(e,(n,r)=>typeof r==\\\"bigint\\\"?YD(r):r,t))}function YD(e){return{$n:`${e}`}}function qD(e){return e.replace(/\\\\{\\\\s*\\\"\\\\$n\\\"\\\\s*:\\\\s*\\\"(-?\\\\d+)\\\"\\\\s*\\\\}/g,\\\"$1\\\")}function ZT(e){return KD(e)}function KD(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,n,r){if(n!==\\\"then\\\")return function(...a){let o=n.toString(),i=Reflect.get(t,o,r);if(!i)throw new y(ym,{method:o,params:a});let c=i(...a);return ZD(e,c)}}})}function ZD({transport:e},t){return{async send(n){return await t.execute({signal:n?.abortSignal,transport:e})}}}function XT(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[n,r]=t,a=r.toString();return function(...o){let i=Object.freeze({methodName:a,params:o}),c=e?.requestTransformer?e?.requestTransformer(i):i;return Object.freeze({execute:async({signal:s,transport:u})=>{let l=qT(c),d=await u({payload:l,signal:s});return e?.responseTransformer?e.responseTransformer(d,c):d}})}}})}function Su(e){return e==null||typeof e!=\\\"object\\\"||Array.isArray(e)?!1:\\\"jsonrpc\\\"in e&&e.jsonrpc===\\\"2.0\\\"&&\\\"method\\\"in e&&typeof e.method==\\\"string\\\"&&\\\"params\\\"in e}h();function XD(e){return typeof e==\\\"bigint\\\"?Number(e):e}var b={};function $T(e){return function t(n,r){if(Array.isArray(n))return n.map((a,o)=>{let i={...r,keyPath:[...r.keyPath,o]};return t(a,i)});if(typeof n==\\\"object\\\"&&n!==null){let a={};for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;let i={...r,keyPath:[...r.keyPath,o]};a[o]=t(n[o],i)}return a}else return e.reduce((a,o)=>o(a,r),n)}}function QT(e,t){return n=>{let r=$T(e);return Object.freeze({...n,params:r(n.params,t)})}}function JT(e,t){return n=>$T(e)(n,t)}function $D(){return QT([XD],{keyPath:[]})}function QD({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:n,overrideCommitment:r}){let a=t[n];if(a===void 0||a&&typeof a==\\\"object\\\"&&!Array.isArray(a)){if(a&&e in a){if(!a[e]||a[e]===\\\"finalized\\\"){let o=[...t],{[e]:i,...c}=a;return Object.keys(c).length>0?o[n]=c:n===o.length-1?o.length--:o[n]=void 0,o}}else if(r!==\\\"finalized\\\"){let o=[...t];return o[n]={...a,[e]:r},o}}return t}function JD({defaultCommitment:e,optionsObjectPositionByMethod:t}){return n=>{let{params:r,methodName:a}=n;if(!Array.isArray(r))return n;let o=t[a];return o==null?n:Object.freeze({methodName:a,params:QD({commitmentPropertyName:a===\\\"sendTransaction\\\"?\\\"preflightCommitment\\\":\\\"commitment\\\",optionsObjectPositionInParams:o,overrideCommitment:e,params:r})})}}function eb(e){return(t,{keyPath:n})=>(typeof t==\\\"bigint\\\"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(n,t),t)}function tb(e){return t=>QT([eb((...r)=>e(t,...r))],{keyPath:[]})(t)}var nb={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function eS(e){let t=e?.onIntegerOverflow;return n=>tn(n,t?tb(t):r=>r,$D(),JD({defaultCommitment:e?.defaultCommitment,optionsObjectPositionByMethod:nb}))}function tS(e){return function(n,{keyPath:r}){return typeof n==\\\"number\\\"&&Number.isInteger(n)||typeof n==\\\"bigint\\\"?rb(r,e)?Number(n):BigInt(n):n}}function rb(e,t){return t.some(n=>{if(n.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--){let a=e[r],o=n[r];if(o!==a&&(o!==b||typeof a!=\\\"number\\\"))return!1}return!0})}function ab(e){return JT([tS(e)],{keyPath:[]})}function ob(){return e=>e.result}var yu=[[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"tokenAmount\\\",\\\"decimals\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"tokenAmount\\\",\\\"uiAmount\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"rentExemptReserve\\\",\\\"decimals\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"rentExemptReserve\\\",\\\"uiAmount\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"delegatedAmount\\\",\\\"decimals\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"delegatedAmount\\\",\\\"uiAmount\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"extensions\\\",b,\\\"state\\\",\\\"olderTransferFee\\\",\\\"transferFeeBasisPoints\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"extensions\\\",b,\\\"state\\\",\\\"newerTransferFee\\\",\\\"transferFeeBasisPoints\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"extensions\\\",b,\\\"state\\\",\\\"preUpdateAverageRate\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"extensions\\\",b,\\\"state\\\",\\\"currentRate\\\"]],Co=[...yu,[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"lastExtendedSlotStartIndex\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"slashPenalty\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"warmupCooldownRate\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"decimals\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"numRequiredSigners\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"numValidSigners\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"stake\\\",\\\"delegation\\\",\\\"warmupCooldownRate\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"exemptionThreshold\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"burnPercent\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"commission\\\"],[\\\"data\\\",\\\"parsed\\\",\\\"info\\\",\\\"votes\\\",b,\\\"confirmationCount\\\"]],ac=[[\\\"index\\\"],[\\\"instructions\\\",b,\\\"accounts\\\",b],[\\\"instructions\\\",b,\\\"programIdIndex\\\"],[\\\"instructions\\\",b,\\\"stackHeight\\\"]],ug=[[\\\"addressTableLookups\\\",b,\\\"writableIndexes\\\",b],[\\\"addressTableLookups\\\",b,\\\"readonlyIndexes\\\",b],[\\\"header\\\",\\\"numReadonlySignedAccounts\\\"],[\\\"header\\\",\\\"numReadonlyUnsignedAccounts\\\"],[\\\"header\\\",\\\"numRequiredSignatures\\\"],[\\\"instructions\\\",b,\\\"accounts\\\",b],[\\\"instructions\\\",b,\\\"programIdIndex\\\"],[\\\"instructions\\\",b,\\\"stackHeight\\\"]];function ib(){return[[\\\"loadedAccountsDataSize\\\"],...Co.map(e=>[\\\"accounts\\\",b,...e]),...ac.map(e=>[\\\"innerInstructions\\\",b,...e])]}function cb(){return(e,t)=>{let n=e;if(\\\"error\\\"in n){let{error:r}=n;if(r&&typeof r==\\\"object\\\"&&\\\"code\\\"in r&&(r.code===-32002||r.code===-32002n)&&\\\"data\\\"in r&&r.data){let i=JT([tS(ib())],{keyPath:[]})(r.data,t),c={...r,data:i};throw ou(c)}throw ou(n.error)}return n}}function nS(e){return(t,n)=>{let r=n.methodName,a=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return tn(t,o=>cb()(o,n),o=>ob()(o,n),o=>ab(a??[])(o,n))}}function rS(e){return XT({requestTransformer:eS(e),responseTransformer:nS({allowedNumericKeyPaths:sb()})})}var lg;function sb(){return lg||(lg={getAccountInfo:Co.map(e=>[\\\"value\\\",...e]),getBlock:[[\\\"transactions\\\",b,\\\"meta\\\",\\\"preTokenBalances\\\",b,\\\"accountIndex\\\"],[\\\"transactions\\\",b,\\\"meta\\\",\\\"preTokenBalances\\\",b,\\\"uiTokenAmount\\\",\\\"decimals\\\"],[\\\"transactions\\\",b,\\\"meta\\\",\\\"postTokenBalances\\\",b,\\\"accountIndex\\\"],[\\\"transactions\\\",b,\\\"meta\\\",\\\"postTokenBalances\\\",b,\\\"uiTokenAmount\\\",\\\"decimals\\\"],[\\\"transactions\\\",b,\\\"meta\\\",\\\"rewards\\\",b,\\\"commission\\\"],...ac.map(e=>[\\\"transactions\\\",b,\\\"meta\\\",\\\"innerInstructions\\\",b,...e]),...ug.map(e=>[\\\"transactions\\\",b,\\\"transaction\\\",\\\"message\\\",...e]),[\\\"rewards\\\",b,\\\"commission\\\"]],getClusterNodes:[[b,\\\"featureSet\\\"],[b,\\\"shredVersion\\\"]],getInflationGovernor:[[\\\"initial\\\"],[\\\"foundation\\\"],[\\\"foundationTerm\\\"],[\\\"taper\\\"],[\\\"terminal\\\"]],getInflationRate:[[\\\"foundation\\\"],[\\\"total\\\"],[\\\"validator\\\"]],getInflationReward:[[b,\\\"commission\\\"]],getMultipleAccounts:Co.map(e=>[\\\"value\\\",b,...e]),getProgramAccounts:Co.flatMap(e=>[[\\\"value\\\",b,\\\"account\\\",...e],[b,\\\"account\\\",...e]]),getRecentPerformanceSamples:[[b,\\\"samplePeriodSecs\\\"]],getTokenAccountBalance:[[\\\"value\\\",\\\"decimals\\\"],[\\\"value\\\",\\\"uiAmount\\\"]],getTokenAccountsByDelegate:yu.map(e=>[\\\"value\\\",b,\\\"account\\\",...e]),getTokenAccountsByOwner:yu.map(e=>[\\\"value\\\",b,\\\"account\\\",...e]),getTokenLargestAccounts:[[\\\"value\\\",b,\\\"decimals\\\"],[\\\"value\\\",b,\\\"uiAmount\\\"]],getTokenSupply:[[\\\"value\\\",\\\"decimals\\\"],[\\\"value\\\",\\\"uiAmount\\\"]],getTransaction:[[\\\"meta\\\",\\\"preTokenBalances\\\",b,\\\"accountIndex\\\"],[\\\"meta\\\",\\\"preTokenBalances\\\",b,\\\"uiTokenAmount\\\",\\\"decimals\\\"],[\\\"meta\\\",\\\"postTokenBalances\\\",b,\\\"accountIndex\\\"],[\\\"meta\\\",\\\"postTokenBalances\\\",b,\\\"uiTokenAmount\\\",\\\"decimals\\\"],[\\\"meta\\\",\\\"rewards\\\",b,\\\"commission\\\"],...ac.map(e=>[\\\"meta\\\",\\\"innerInstructions\\\",b,...e]),...ug.map(e=>[\\\"transaction\\\",\\\"message\\\",...e])],getVersion:[[\\\"feature-set\\\"]],getVoteAccounts:[[\\\"current\\\",b,\\\"commission\\\"],[\\\"delinquent\\\",b,\\\"commission\\\"]],simulateTransaction:[[\\\"value\\\",\\\"loadedAccountsDataSize\\\"],...Co.map(e=>[\\\"value\\\",\\\"accounts\\\",b,...e]),...ac.map(e=>[\\\"value\\\",\\\"innerInstructions\\\",b,...e])]}),lg}h();function ub(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function lb(e){let{fromJson:t,headers:n,toJson:r,url:a}=e,o,i=n&&ub(n);return async function({payload:s,signal:u}){let l=r?r(s):JSON.stringify(s),d={...o,body:l,headers:{...i,accept:\\\"application/json\\\",\\\"content-length\\\":l.length.toString(),\\\"content-type\\\":\\\"application/json; charset=utf-8\\\"},method:\\\"POST\\\",signal:u},m=await fetch(a,d);if(!m.ok)throw new y(Sm,{headers:m.headers,message:m.statusText,statusCode:m.status});return t?t(await m.text(),s):await m.json()}}var db=[\\\"getAccountInfo\\\",\\\"getBalance\\\",\\\"getBlock\\\",\\\"getBlockCommitment\\\",\\\"getBlockHeight\\\",\\\"getBlockProduction\\\",\\\"getBlocks\\\",\\\"getBlocksWithLimit\\\",\\\"getBlockTime\\\",\\\"getClusterNodes\\\",\\\"getEpochInfo\\\",\\\"getEpochSchedule\\\",\\\"getFeeForMessage\\\",\\\"getFirstAvailableBlock\\\",\\\"getGenesisHash\\\",\\\"getHealth\\\",\\\"getHighestSnapshotSlot\\\",\\\"getIdentity\\\",\\\"getInflationGovernor\\\",\\\"getInflationRate\\\",\\\"getInflationReward\\\",\\\"getLargestAccounts\\\",\\\"getLatestBlockhash\\\",\\\"getLeaderSchedule\\\",\\\"getMaxRetransmitSlot\\\",\\\"getMaxShredInsertSlot\\\",\\\"getMinimumBalanceForRentExemption\\\",\\\"getMultipleAccounts\\\",\\\"getProgramAccounts\\\",\\\"getRecentPerformanceSamples\\\",\\\"getRecentPrioritizationFees\\\",\\\"getSignaturesForAddress\\\",\\\"getSignatureStatuses\\\",\\\"getSlot\\\",\\\"getSlotLeader\\\",\\\"getSlotLeaders\\\",\\\"getStakeMinimumDelegation\\\",\\\"getSupply\\\",\\\"getTokenAccountBalance\\\",\\\"getTokenAccountsByDelegate\\\",\\\"getTokenAccountsByOwner\\\",\\\"getTokenLargestAccounts\\\",\\\"getTokenSupply\\\",\\\"getTransaction\\\",\\\"getTransactionCount\\\",\\\"getVersion\\\",\\\"getVoteAccounts\\\",\\\"index\\\",\\\"isBlockhashValid\\\",\\\"minimumLedgerSlot\\\",\\\"requestAirdrop\\\",\\\"sendTransaction\\\",\\\"simulateTransaction\\\"];function aS(e){return Su(e)&&db.includes(e.method)}function oS(e){return lb({...e,fromJson:(t,n)=>aS(n)?YT(t):JSON.parse(t),toJson:t=>aS(t)?KT(t):JSON.stringify(t)})}h();var fb=Object.prototype.toString,mb=Object.keys||function(e){let t=[];for(let n in e)t.push(n);return t};function oc(e,t){let n,r,a,o,i,c,s;if(e===!0)return\\\"true\\\";if(e===!1)return\\\"false\\\";switch(typeof e){case\\\"object\\\":if(e===null)return null;if(\\\"toJSON\\\"in e&&typeof e.toJSON==\\\"function\\\")return oc(e.toJSON(),t);if(s=fb.call(e),s===\\\"[object Array]\\\"){for(a=\\\"[\\\",r=e.length-1,n=0;n<r;n++)a+=oc(e[n],!0)+\\\",\\\";return r>-1&&(a+=oc(e[n],!0)),a+\\\"]\\\"}else if(s===\\\"[object Object]\\\"){for(o=mb(e).sort(),r=o.length,a=\\\"\\\",n=0;n<r;)i=o[n],c=oc(e[i],!1),c!==void 0&&(a&&(a+=\\\",\\\"),a+=JSON.stringify(i)+\\\":\\\"+c),n++;return\\\"{\\\"+a+\\\"}\\\"}else return JSON.stringify(e);case\\\"function\\\":case\\\"undefined\\\":return t?null:void 0;case\\\"bigint\\\":return`${e.toString()}n`;case\\\"string\\\":return JSON.stringify(e);default:return isFinite(e)?e:null}}function iS(e){let t=oc(e,!1);if(t!==void 0)return\\\"\\\"+t}function uS(e,t,n){let r=\\\"\\\";if(typeof t[0]==\\\"number\\\"){let i=t[0]+1,c=i%10,s=i%100;c==1&&s!=11?r=i+\\\"st\\\":c==2&&s!=12?r=i+\\\"nd\\\":c==3&&s!=13?r=i+\\\"rd\\\":r=i+\\\"th\\\"}else r=`\\\\`${t[0].toString()}\\\\``;let a=t.length>1?t.slice(1).map(i=>typeof i==\\\"number\\\"?`[${i}]`:i).join(\\\".\\\"):void 0,o=new y(Tm,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:a?` at path \\\\`${a}\\\\``:\\\"\\\",value:n,...a!==void 0?{path:a}:void 0});return au(o,uS),o}var gb={defaultCommitment:\\\"confirmed\\\",onIntegerOverflow(e,t,n){throw uS(e.methodName,t,n)}},Ab=globalThis.AbortController,cS;function sS(){return{}}function _b(e,t){let n;return async function(a){let{payload:o,signal:i}=a,c=t(o);if(c===void 0)return await e(a);if(n||(queueMicrotask(()=>{n=void 0}),n={}),n[c]==null){let u=new Ab,l=(async()=>{try{return await e({...a,signal:u.signal})}catch(d){if(d===(cS||(cS=sS())))return;throw d}})();n[c]={abortController:u,numConsumers:0,responsePromise:l}}let s=n[c];if(s.numConsumers++,i){let u=s.responsePromise;return await new Promise((l,d)=>{let m=A=>{i.removeEventListener(\\\"abort\\\",m),s.numConsumers-=1,queueMicrotask(()=>{s.numConsumers===0&&s.abortController.abort(cS||(cS=sS()))}),d(A.target.reason)};i.addEventListener(\\\"abort\\\",m),u.then(l).catch(d).finally(()=>{i.removeEventListener(\\\"abort\\\",m)})})}else return await s.responsePromise}}function hb(e){return Su(e)?iS([e.method,e.params]):void 0}function pb(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function Eb(e){return tn(oS({...e,headers:{...e.headers?pb(e.headers):void 0,\\\"solana-client\\\":\\\"js/6.7.0\\\"}}),t=>_b(t,hb))}function ua(e,t){return Rb(Eb({url:e,...t}))}function Rb(e){return ZT({api:rS(gb),transport:e})}h();function dg(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(!Tb(t[n.address],n))throw new y($f,{address:n.address})}),Object.values(t)}function Tb(e,t){if(e===t)return!0;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length!==r.length?!1:n.every(a=>{if(!(a in t))return!1;let o=e[a],i=t[a];return typeof o==\\\"function\\\"&&typeof i==\\\"function\\\"?o.toString()===i.toString():o===i})}function ic(e){return\\\"modifyAndSignTransactions\\\"in e&&typeof e.modifyAndSignTransactions==\\\"function\\\"}function Do(e){return\\\"signTransactions\\\"in e&&typeof e.signTransactions==\\\"function\\\"}function lS(e){return\\\"signAndSendTransactions\\\"in e&&typeof e.signAndSendTransactions==\\\"function\\\"}function fg(e){return Do(e)||ic(e)||lS(e)}function Sb(e){return dg((e.accounts??[]).flatMap(t=>\\\"signer\\\"in t?t.signer:[]))}function yb(e){return dg([...e.feePayer&&fg(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(Sb)])}async function Nu(e,t){return await Nb(yb(e).filter(n=>ic(n)||Do(n)),sg(e),t)}async function Nb(e,t,n){let{partialSigners:r,modifyingSigners:a}=Ib(dg(e),{identifySendingSigner:!1});return await Cb(t,a,r,n)}function Ib(e,t={}){let r=t.identifySendingSigner??!0?Ob(e):null,a=e.filter(c=>c!==r&&(ic(c)||Do(c))),o=vb(a),i=a.filter(Do).filter(c=>!o.includes(c));return Object.freeze({modifyingSigners:o,partialSigners:i,sendingSigner:r})}function Ob(e){let t=e.filter(lS);if(t.length===0)return null;let n=t.filter(r=>!ic(r)&&!Do(r));return n.length>0?n[0]:t[0]}function vb(e){let t=e.filter(ic);if(t.length===0)return[];let n=t.filter(r=>!Do(r));return n.length>0?n:[t[0]]}async function Cb(e,t=[],n=[],r){let a=await t.reduce(async(i,c)=>{r?.abortSignal?.throwIfAborted();let[s]=await c.modifyAndSignTransactions([await i],r);return Object.freeze(s)},Promise.resolve(e));r?.abortSignal?.throwIfAborted();let o=await Promise.all(n.map(async i=>{let[c]=await i.signTransactions([a],r);return c}));return Object.freeze({...a,signatures:Object.freeze(o.reduce((i,c)=>({...i,...c}),a.signatures??{}))})}var gU=globalThis.TextEncoder;h();var dS=(e=>(e[e.Uninitialized=0]=\\\"Uninitialized\\\",e[e.Initialized=1]=\\\"Initialized\\\",e[e.Frozen=2]=\\\"Frozen\\\",e))(dS||{});function zb(){return _u(dS)}function Bb(){return V([[\\\"mint\\\",z()],[\\\"owner\\\",z()],[\\\"amount\\\",ge()],[\\\"delegate\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"state\\\",zb()],[\\\"isNative\\\",Ae(ge(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"delegatedAmount\\\",ge()],[\\\"closeAuthority\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})]])}function Pb(e){return Xi(e,Bb())}async function fS(e,t,n){let r=await $i(e,t,n);return Pb(r)}var bo=\\\"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\\\";h();var AS=(e=>(e[e.Uninitialized=0]=\\\"Uninitialized\\\",e[e.Initialized=1]=\\\"Initialized\\\",e[e.Frozen=2]=\\\"Frozen\\\",e))(AS||{});function _S(){return _u(AS)}function Fb(){return kt(Wn(),36)}function cc(){return kt(Wn(),64)}function hS(){return yT([[\\\"Uninitialized\\\",sa()],[\\\"TransferFeeConfig\\\",Z(V([[\\\"transferFeeConfigAuthority\\\",z()],[\\\"withdrawWithheldAuthority\\\",z()],[\\\"withheldAmount\\\",ge()],[\\\"olderTransferFee\\\",mS()],[\\\"newerTransferFee\\\",mS()]]),J())],[\\\"TransferFeeAmount\\\",Z(V([[\\\"withheldAmount\\\",ge()]]),J())],[\\\"MintCloseAuthority\\\",Z(V([[\\\"closeAuthority\\\",z()]]),J())],[\\\"ConfidentialTransferMint\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"autoApproveNewAccounts\\\",lt()],[\\\"auditorElgamalPubkey\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})]]),J())],[\\\"ConfidentialTransferAccount\\\",Z(V([[\\\"approved\\\",lt()],[\\\"elgamalPubkey\\\",z()],[\\\"pendingBalanceLow\\\",cc()],[\\\"pendingBalanceHigh\\\",cc()],[\\\"availableBalance\\\",cc()],[\\\"decryptableAvailableBalance\\\",Fb()],[\\\"allowConfidentialCredits\\\",lt()],[\\\"allowNonConfidentialCredits\\\",lt()],[\\\"pendingBalanceCreditCounter\\\",ge()],[\\\"maximumPendingBalanceCreditCounter\\\",ge()],[\\\"expectedPendingBalanceCreditCounter\\\",ge()],[\\\"actualPendingBalanceCreditCounter\\\",ge()]]),J())],[\\\"DefaultAccountState\\\",Z(V([[\\\"state\\\",_S()]]),J())],[\\\"ImmutableOwner\\\",Z(V([]),J())],[\\\"MemoTransfer\\\",Z(V([[\\\"requireIncomingTransferMemos\\\",lt()]]),J())],[\\\"NonTransferable\\\",Z(V([]),J())],[\\\"InterestBearingConfig\\\",Z(V([[\\\"rateAuthority\\\",z()],[\\\"initializationTimestamp\\\",ge()],[\\\"preUpdateAverageRate\\\",km()],[\\\"lastUpdateTimestamp\\\",ge()],[\\\"currentRate\\\",km()]]),J())],[\\\"CpiGuard\\\",Z(V([[\\\"lockCpi\\\",lt()]]),J())],[\\\"PermanentDelegate\\\",Z(V([[\\\"delegate\\\",z()]]),J())],[\\\"NonTransferableAccount\\\",Z(V([]),J())],[\\\"TransferHook\\\",Z(V([[\\\"authority\\\",z()],[\\\"programId\\\",z()]]),J())],[\\\"TransferHookAccount\\\",Z(V([[\\\"transferring\\\",lt()]]),J())],[\\\"ConfidentialTransferFee\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"elgamalPubkey\\\",z()],[\\\"harvestToMintEnabled\\\",lt()],[\\\"withheldAmount\\\",cc()]]),J())],[\\\"ConfidentialTransferFeeAmount\\\",Z(V([[\\\"withheldAmount\\\",cc()]]),J())],[\\\"MetadataPointer\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"metadataAddress\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})]]),J())],[\\\"TokenMetadata\\\",Z(V([[\\\"updateAuthority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"mint\\\",z()],[\\\"name\\\",Z(oa(),xe())],[\\\"symbol\\\",Z(oa(),xe())],[\\\"uri\\\",Z(oa(),xe())],[\\\"additionalMetadata\\\",NT(Z(oa(),xe()),Z(oa(),xe()))]]),J())],[\\\"GroupPointer\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"groupAddress\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})]]),J())],[\\\"TokenGroup\\\",Z(V([[\\\"updateAuthority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"mint\\\",z()],[\\\"size\\\",ge()],[\\\"maxSize\\\",ge()]]),J())],[\\\"GroupMemberPointer\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"memberAddress\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})]]),J())],[\\\"TokenGroupMember\\\",Z(V([[\\\"mint\\\",z()],[\\\"group\\\",z()],[\\\"memberNumber\\\",ge()]]),J())],[\\\"ConfidentialMintBurn\\\",Z(V([]),J())],[\\\"ScaledUiAmountConfig\\\",Z(V([[\\\"authority\\\",z()],[\\\"multiplier\\\",Fm()],[\\\"newMultiplierEffectiveTimestamp\\\",ge()],[\\\"newMultiplier\\\",Fm()]]),J())],[\\\"PausableConfig\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})],[\\\"paused\\\",lt()]]),J())],[\\\"PausableAccount\\\",Z(V([]),J())],[\\\"PermissionedBurn\\\",Z(V([[\\\"authority\\\",Ae(z(),{prefix:null,noneValue:\\\"zeroes\\\"})]]),J())]],{size:J()})}function mS(){return V([[\\\"epoch\\\",ge()],[\\\"maximumFee\\\",ge()],[\\\"transferFeeBasisPoints\\\",J()]])}function kb(){return V([[\\\"mintAuthority\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"supply\\\",ge()],[\\\"decimals\\\",Ot()],[\\\"isInitialized\\\",lt()],[\\\"freezeAuthority\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"extensions\\\",Ae(Wm(en(hS(),{size:\\\"remainder\\\"}),[tc(cT(Re(),83).encode(1))]),{prefix:null})]])}function Gb(e){return Xi(e,kb())}async function Mo(e,t,n){let r=await Vb(e,t,n);return wm(r),r}async function Vb(e,t,n){let r=await $i(e,t,n);return Gb(r)}function Hb(){return V([[\\\"mint\\\",z()],[\\\"owner\\\",z()],[\\\"amount\\\",ge()],[\\\"delegate\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"state\\\",_S()],[\\\"isNative\\\",Ae(ge(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"delegatedAmount\\\",ge()],[\\\"closeAuthority\\\",Ae(z(),{prefix:xe(),noneValue:\\\"zeroes\\\"})],[\\\"extensions\\\",Ae(Wm(en(hS(),{size:\\\"remainder\\\"}),[tc(Re().encode(2))]),{prefix:null})]])}function Wb(e){return Xi(e,Hb())}async function pS(e,t,n){let r=await $i(e,t,n);return Wb(r)}function jb(e){if(!e)throw new Error(\\\"Expected a Address.\\\");return typeof e==\\\"object\\\"&&\\\"address\\\"in e?e.address:Array.isArray(e)?e[0]:e}function Yb(e,t){return n=>{if(!n.value)return Object.freeze({address:e,role:Ye.READONLY});let r=n.isWritable?Ye.WRITABLE:Ye.READONLY;return Object.freeze({address:jb(n.value),role:gS(n.value)?CT(r):r,...gS(n.value)?{signer:n.value}:{}})}}function gS(e){return!!e&&typeof e==\\\"object\\\"&&\\\"address\\\"in e&&fg(e)}async function Dr(e,t={}){let{programAddress:n=\\\"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL\\\"}=t;return await Pm({programAddress:n,seeds:[Vt().encode(e.owner),Vt().encode(e.tokenProgram),Vt().encode(e.mint)]})}var zU=new Uint8Array([250,166,180,250,13,12,184,70]);var BU=new Uint8Array([121,113,108,39,54,51,0,4]);var PU=new Uint8Array([152,32,222,176,223,237,116,134]);var FU=new Uint8Array([210,225,30,162,88,184,77,141]);var kU=new Uint8Array([234,18,32,56,89,141,37,181]);var qb=12;function Kb(){return Ee(Le([[\\\"discriminator\\\",Re()],[\\\"amount\\\",ia()],[\\\"decimals\\\",Re()]]),e=>({...e,discriminator:qb}))}function Iu(e,t){let n=t?.programAddress??la,a={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},o={...e},i=(o.multiSigners??[]).map(s=>({address:s.address,role:Ye.READONLY_SIGNER,signer:s})),c=Yb(n);return Object.freeze({accounts:[c(a.source),c(a.mint),c(a.destination),c(a.authority),...i],data:Kb().encode(o),programAddress:n})}var GU=new Uint8Array([108,37,171,143,248,30,18,110]);var VU=new Uint8Array([161,105,88,1,237,221,216,203]);var HU=new Uint8Array([221,233,49,45,181,202,220,200]);var WU=new Uint8Array([215,228,166,228,84,100,86,123]);var la=\\\"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\\\";var jU=3600*24*365.24;var $b=\\\"https://api.devnet.solana.com\\\",Qb=\\\"https://api.testnet.solana.com\\\",Jb=\\\"https://api.mainnet-beta.solana.com\\\";var Ou=1;var vu=6500;var mg=\\\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",gg=\\\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\",Ag=\\\"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\\\",eM={solana:mg,\\\"solana-devnet\\\":gg,\\\"solana-testnet\\\":Ag};function tM(e){if(e.includes(\\\":\\\")){if(![mg,gg,Ag].includes(e))throw new Error(`Unsupported SVM network: ${e}`);return e}let t=eM[e];if(!t)throw new Error(`Unsupported SVM network: ${e}`);return t}function Cu(e,t){switch(tM(e)){case gg:return ua(t||$b);case Ag:return ua(t||Qb);case mg:return ua(t||Jb);default:throw new Error(`Unsupported network: ${e}`)}}uc();h();var ES=\\\"ComputeBudget111111111111111111111111111111\\\";var aM=2;function oM(){return Ee(Le([[\\\"discriminator\\\",Re()],[\\\"units\\\",Hn()]]),e=>({...e,discriminator:aM}))}function Du(e,t){let n=t?.programAddress??ES,r={...e};return Object.freeze({data:oM().encode(r),programAddress:n})}var iM=3;function cM(){return Ee(Le([[\\\"discriminator\\\",Re()],[\\\"microLamports\\\",ia()]]),e=>({...e,discriminator:iM}))}function sM(e,t){let n=t?.programAddress??ES,r={...e};return Object.freeze({data:cM().encode(r),programAddress:n})}function bu(e,t){return VT(sM({microLamports:e}),t)}var _g=class{constructor(e,t){this.signer=e,this.config=t,sc(this,\\\"scheme\\\",\\\"exact\\\")}async createPaymentPayload(e,t){let n=Cu(t.network,this.config?.rpcUrl),r=await Mo(n,t.asset),a=r.programAddress;if(a.toString()!==bo.toString()&&a.toString()!==la.toString())throw new Error(\\\"Asset was not created by a known token program\\\");let[o]=await Dr({mint:t.asset,owner:this.signer.address,tokenProgram:a}),[i]=await Dr({mint:t.asset,owner:t.payTo,tokenProgram:a}),c=Iu({source:o,mint:t.asset,destination:i,authority:this.signer,amount:BigInt(t.amount),decimals:r.data.decimals},{programAddress:a}),s=t.extra?.feePayer;if(!s)throw new Error(\\\"feePayer is required in paymentRequirements.extra for SVM transactions\\\");let{value:u}=await n.getLatestBlockhash().send(),l=tn(Ru({version:0}),S=>bu(Ou,S),S=>Tu(s,S),S=>Eu(Du({units:vu}),S),S=>nc([c],S),S=>pu(u,S)),d=await Nu(l),A={transaction:rc(d)};return{t402Version:e,payload:A}}};h();var RS=[\\\"solana\\\",\\\"solana-devnet\\\",\\\"solana-testnet\\\"];h();uc();var TS=class{constructor(e,t){this.signer=e,this.config=t,sc(this,\\\"scheme\\\",\\\"exact\\\")}async createPaymentPayload(e,t){let n=t,r=Cu(n.network,this.config?.rpcUrl),a=await Mo(r,n.asset),o=a.programAddress;if(o.toString()!==bo.toString()&&o.toString()!==la.toString())throw new Error(\\\"Asset was not created by a known token program\\\");let[i]=await Dr({mint:n.asset,owner:this.signer.address,tokenProgram:o}),[c]=await Dr({mint:n.asset,owner:n.payTo,tokenProgram:o}),s=Iu({source:i,mint:n.asset,destination:c,authority:this.signer,amount:BigInt(n.maxAmountRequired),decimals:a.data.decimals},{programAddress:o}),u=n.extra?.feePayer;if(!u)throw new Error(\\\"feePayer is required in paymentRequirements.extra for SVM transactions\\\");let{value:l}=await r.getLatestBlockhash().send(),d=tn(Ru({version:0}),O=>bu(Ou,O),O=>Tu(u,O),O=>Eu(Du({units:vu}),O),O=>nc([s],O),O=>pu(l,O)),m=await Nu(d),S={transaction:rc(m)};return{t402Version:e,scheme:n.scheme,network:n.network,payload:S}}};h();uc();h();h();var Mu=(e,t)=>{let n=e.get(t);if(!n)for(let[r,a]of e.entries()){let o=r.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\\\"\\\\\\\\$&\\\").replace(/\\\\\\\\\\\\*/g,\\\".*\\\");if(new RegExp(`^${o}$`).test(t)){n=a;break}}return n},hg=(e,t,n)=>Mu(e,n)?.get(t);h();var uM=Object.defineProperty,lM=(e,t,n)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jn=(e,t,n)=>lM(e,typeof t!=\\\"symbol\\\"?t+\\\"\\\":t,n);uc();function SS(e,t){return t.networks&&t.networks.length>0?t.networks.forEach(n=>{e.register(n,new _g(t.signer))}):e.register(\\\"solana:*\\\",new _g(t.signer)),RS.forEach(n=>{e.registerV1(n,new TS(t.signer))}),t.policies&&t.policies.forEach(n=>{e.registerPolicy(n)}),e}h();h();h();var pg=2;h();h();var w={};Oy(w,{BRAND:()=>kM,DIRTY:()=>da,EMPTY_PATH:()=>pM,INVALID:()=>M,NEVER:()=>Nw,OK:()=>Xe,ParseStatus:()=>qe,Schema:()=>k,ZodAny:()=>wr,ZodArray:()=>Zn,ZodBigInt:()=>ma,ZodBoolean:()=>ga,ZodBranded:()=>dc,ZodCatch:()=>Ia,ZodDate:()=>Aa,ZodDefault:()=>Na,ZodDiscriminatedUnion:()=>Lu,ZodEffects:()=>Yt,ZodEnum:()=>Sa,ZodError:()=>ft,ZodFirstPartyTypeKind:()=>x,ZodFunction:()=>zu,ZodIntersection:()=>Ea,ZodIssueCode:()=>T,ZodLazy:()=>Ra,ZodLiteral:()=>Ta,ZodMap:()=>Bo,ZodNaN:()=>Fo,ZodNativeEnum:()=>ya,ZodNever:()=>nn,ZodNull:()=>ha,ZodNullable:()=>En,ZodNumber:()=>fa,ZodObject:()=>mt,ZodOptional:()=>Wt,ZodParsedType:()=>I,ZodPipeline:()=>fc,ZodPromise:()=>xr,ZodReadonly:()=>Oa,ZodRecord:()=>Uu,ZodSchema:()=>k,ZodSet:()=>Po,ZodString:()=>Mr,ZodSymbol:()=>Uo,ZodTransformer:()=>Yt,ZodTuple:()=>pn,ZodType:()=>k,ZodUndefined:()=>_a,ZodUnion:()=>pa,ZodUnknown:()=>Kn,ZodVoid:()=>zo,addIssueToContext:()=>N,any:()=>ZM,array:()=>JM,bigint:()=>WM,boolean:()=>xS,coerce:()=>yw,custom:()=>bS,date:()=>jM,datetimeRegex:()=>CS,defaultErrorMap:()=>Yn,discriminatedUnion:()=>rw,effect:()=>Aw,enum:()=>fw,function:()=>uw,getErrorMap:()=>wo,getParsedType:()=>hn,instanceof:()=>VM,intersection:()=>aw,isAborted:()=>wu,isAsync:()=>xo,isDirty:()=>xu,isValid:()=>br,late:()=>GM,lazy:()=>lw,literal:()=>dw,makeIssue:()=>lc,map:()=>cw,nan:()=>HM,nativeEnum:()=>mw,never:()=>$M,null:()=>KM,nullable:()=>hw,number:()=>wS,object:()=>ew,objectUtil:()=>Eg,oboolean:()=>Sw,onumber:()=>Tw,optional:()=>_w,ostring:()=>Rw,pipeline:()=>Ew,preprocess:()=>pw,promise:()=>gw,quotelessJson:()=>AM,record:()=>iw,set:()=>sw,setErrorMap:()=>hM,strictObject:()=>tw,string:()=>MS,symbol:()=>YM,transformer:()=>Aw,tuple:()=>ow,undefined:()=>qM,union:()=>nw,unknown:()=>XM,util:()=>q,void:()=>QM});h();h();h();h();h();var q;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{let o={};for(let i of a)o[i]=i;return o},e.getValidEnumValues=a=>{let o=e.objectKeys(a).filter(c=>typeof a[a[c]]!=\\\"number\\\"),i={};for(let c of o)i[c]=a[c];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys==\\\"function\\\"?a=>Object.keys(a):a=>{let o=[];for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&o.push(i);return o},e.find=(a,o)=>{for(let i of a)if(o(i))return i},e.isInteger=typeof Number.isInteger==\\\"function\\\"?a=>Number.isInteger(a):a=>typeof a==\\\"number\\\"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,o=\\\" | \\\"){return a.map(i=>typeof i==\\\"string\\\"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(a,o)=>typeof o==\\\"bigint\\\"?o.toString():o})(q||(q={}));var Eg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Eg||(Eg={}));var I=q.arrayToEnum([\\\"string\\\",\\\"nan\\\",\\\"number\\\",\\\"integer\\\",\\\"float\\\",\\\"boolean\\\",\\\"date\\\",\\\"bigint\\\",\\\"symbol\\\",\\\"function\\\",\\\"undefined\\\",\\\"null\\\",\\\"array\\\",\\\"object\\\",\\\"unknown\\\",\\\"promise\\\",\\\"void\\\",\\\"never\\\",\\\"map\\\",\\\"set\\\"]),hn=e=>{switch(typeof e){case\\\"undefined\\\":return I.undefined;case\\\"string\\\":return I.string;case\\\"number\\\":return Number.isNaN(e)?I.nan:I.number;case\\\"boolean\\\":return I.boolean;case\\\"function\\\":return I.function;case\\\"bigint\\\":return I.bigint;case\\\"symbol\\\":return I.symbol;case\\\"object\\\":return Array.isArray(e)?I.array:e===null?I.null:e.then&&typeof e.then==\\\"function\\\"&&e.catch&&typeof e.catch==\\\"function\\\"?I.promise:typeof Map<\\\"u\\\"&&e instanceof Map?I.map:typeof Set<\\\"u\\\"&&e instanceof Set?I.set:typeof Date<\\\"u\\\"&&e instanceof Date?I.date:I.object;default:return I.unknown}};var T=q.arrayToEnum([\\\"invalid_type\\\",\\\"invalid_literal\\\",\\\"custom\\\",\\\"invalid_union\\\",\\\"invalid_union_discriminator\\\",\\\"invalid_enum_value\\\",\\\"unrecognized_keys\\\",\\\"invalid_arguments\\\",\\\"invalid_return_type\\\",\\\"invalid_date\\\",\\\"invalid_string\\\",\\\"too_small\\\",\\\"too_big\\\",\\\"invalid_intersection_types\\\",\\\"not_multiple_of\\\",\\\"not_finite\\\"]),AM=e=>JSON.stringify(e,null,2).replace(/\\\"([^\\\"]+)\\\":/g,\\\"$1:\\\"),ft=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\\\"ZodError\\\",this.issues=t}format(t){let n=t||function(o){return o.message},r={_errors:[]},a=o=>{for(let i of o.issues)if(i.code===\\\"invalid_union\\\")i.unionErrors.map(a);else if(i.code===\\\"invalid_return_type\\\")a(i.returnTypeError);else if(i.code===\\\"invalid_arguments\\\")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let c=r,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(n(i))):c[u]=c[u]||{_errors:[]},c=c[u],s++}}};return a(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,q.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let a of this.issues)if(a.path.length>0){let o=a.path[0];n[o]=n[o]||[],n[o].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};ft.create=e=>new ft(e);var _M=(e,t)=>{let n;switch(e.code){case T.invalid_type:e.received===I.undefined?n=\\\"Required\\\":n=`Expected ${e.expected}, received ${e.received}`;break;case T.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,q.jsonStringifyReplacer)}`;break;case T.unrecognized_keys:n=`Unrecognized key(s) in object: ${q.joinValues(e.keys,\\\", \\\")}`;break;case T.invalid_union:n=\\\"Invalid input\\\";break;case T.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${q.joinValues(e.options)}`;break;case T.invalid_enum_value:n=`Invalid enum value. Expected ${q.joinValues(e.options)}, received '${e.received}'`;break;case T.invalid_arguments:n=\\\"Invalid function arguments\\\";break;case T.invalid_return_type:n=\\\"Invalid function return type\\\";break;case T.invalid_date:n=\\\"Invalid date\\\";break;case T.invalid_string:typeof e.validation==\\\"object\\\"?\\\"includes\\\"in e.validation?(n=`Invalid input: must include \\\"${e.validation.includes}\\\"`,typeof e.validation.position==\\\"number\\\"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):\\\"startsWith\\\"in e.validation?n=`Invalid input: must start with \\\"${e.validation.startsWith}\\\"`:\\\"endsWith\\\"in e.validation?n=`Invalid input: must end with \\\"${e.validation.endsWith}\\\"`:q.assertNever(e.validation):e.validation!==\\\"regex\\\"?n=`Invalid ${e.validation}`:n=\\\"Invalid\\\";break;case T.too_small:e.type===\\\"array\\\"?n=`Array must contain ${e.exact?\\\"exactly\\\":e.inclusive?\\\"at least\\\":\\\"more than\\\"} ${e.minimum} element(s)`:e.type===\\\"string\\\"?n=`String must contain ${e.exact?\\\"exactly\\\":e.inclusive?\\\"at least\\\":\\\"over\\\"} ${e.minimum} character(s)`:e.type===\\\"number\\\"?n=`Number must be ${e.exact?\\\"exactly equal to \\\":e.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${e.minimum}`:e.type===\\\"bigint\\\"?n=`Number must be ${e.exact?\\\"exactly equal to \\\":e.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${e.minimum}`:e.type===\\\"date\\\"?n=`Date must be ${e.exact?\\\"exactly equal to \\\":e.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${new Date(Number(e.minimum))}`:n=\\\"Invalid input\\\";break;case T.too_big:e.type===\\\"array\\\"?n=`Array must contain ${e.exact?\\\"exactly\\\":e.inclusive?\\\"at most\\\":\\\"less than\\\"} ${e.maximum} element(s)`:e.type===\\\"string\\\"?n=`String must contain ${e.exact?\\\"exactly\\\":e.inclusive?\\\"at most\\\":\\\"under\\\"} ${e.maximum} character(s)`:e.type===\\\"number\\\"?n=`Number must be ${e.exact?\\\"exactly\\\":e.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${e.maximum}`:e.type===\\\"bigint\\\"?n=`BigInt must be ${e.exact?\\\"exactly\\\":e.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${e.maximum}`:e.type===\\\"date\\\"?n=`Date must be ${e.exact?\\\"exactly\\\":e.inclusive?\\\"smaller than or equal to\\\":\\\"smaller than\\\"} ${new Date(Number(e.maximum))}`:n=\\\"Invalid input\\\";break;case T.custom:n=\\\"Invalid input\\\";break;case T.invalid_intersection_types:n=\\\"Intersection results could not be merged\\\";break;case T.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case T.not_finite:n=\\\"Number must be finite\\\";break;default:n=t.defaultError,q.assertNever(e)}return{message:n}},Yn=_M;var yS=Yn;function hM(e){yS=e}function wo(){return yS}h();var lc=e=>{let{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],i={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let c=\\\"\\\",s=r.filter(u=>!!u).slice().reverse();for(let u of s)c=u(i,{data:t,defaultError:c}).message;return{...a,path:o,message:c}},pM=[];function N(e,t){let n=wo(),r=lc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Yn?void 0:Yn].filter(a=>!!a)});e.common.issues.push(r)}var qe=class e{constructor(){this.value=\\\"valid\\\"}dirty(){this.value===\\\"valid\\\"&&(this.value=\\\"dirty\\\")}abort(){this.value!==\\\"aborted\\\"&&(this.value=\\\"aborted\\\")}static mergeArray(t,n){let r=[];for(let a of n){if(a.status===\\\"aborted\\\")return M;a.status===\\\"dirty\\\"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let a of n){let o=await a.key,i=await a.value;r.push({key:o,value:i})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let a of n){let{key:o,value:i}=a;if(o.status===\\\"aborted\\\"||i.status===\\\"aborted\\\")return M;o.status===\\\"dirty\\\"&&t.dirty(),i.status===\\\"dirty\\\"&&t.dirty(),o.value!==\\\"__proto__\\\"&&(typeof i.value<\\\"u\\\"||a.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}},M=Object.freeze({status:\\\"aborted\\\"}),da=e=>({status:\\\"dirty\\\",value:e}),Xe=e=>({status:\\\"valid\\\",value:e}),wu=e=>e.status===\\\"aborted\\\",xu=e=>e.status===\\\"dirty\\\",br=e=>e.status===\\\"valid\\\",xo=e=>typeof Promise<\\\"u\\\"&&e instanceof Promise;h();h();var C;(function(e){e.errToObj=t=>typeof t==\\\"string\\\"?{message:t}:t||{},e.toString=t=>typeof t==\\\"string\\\"?t:t?.message})(C||(C={}));var jt=class{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},NS=(e,t)=>{if(br(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(\\\"Validation failed but no issues detected.\\\");return{success:!1,get error(){if(this._error)return this._error;let n=new ft(e.common.issues);return this._error=n,this._error}}};function F(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use \\\"invalid_type_error\\\" or \\\"required_error\\\" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,c)=>{let{message:s}=e;return i.code===\\\"invalid_enum_value\\\"?{message:s??c.defaultError}:typeof c.data>\\\"u\\\"?{message:s??r??c.defaultError}:i.code!==\\\"invalid_type\\\"?{message:c.defaultError}:{message:s??n??c.defaultError}},description:a}}var k=class{get description(){return this._def.description}_getType(t){return hn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:hn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new qe,ctx:{common:t.parent.common,data:t.data,parsedType:hn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(xo(n))throw new Error(\\\"Synchronous parse encountered promise.\\\");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hn(t)},a=this._parseSync({data:t,path:r.path,parent:r});return NS(r,a)}\\\"~validate\\\"(t){let n={common:{issues:[],async:!!this[\\\"~standard\\\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hn(t)};if(!this[\\\"~standard\\\"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return br(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\\\"encountered\\\")&&(this[\\\"~standard\\\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>br(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hn(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(xo(a)?a:Promise.resolve(a));return NS(r,o)}refine(t,n){let r=a=>typeof n==\\\"string\\\"||typeof n>\\\"u\\\"?{message:n}:typeof n==\\\"function\\\"?n(a):n;return this._refinement((a,o)=>{let i=t(a),c=()=>o.addIssue({code:T.custom,...r(a)});return typeof Promise<\\\"u\\\"&&i instanceof Promise?i.then(s=>s?!0:(c(),!1)):i?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n==\\\"function\\\"?n(r,a):n),!1))}_refinement(t){return new Yt({schema:this,typeName:x.ZodEffects,effect:{type:\\\"refinement\\\",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\\\"~standard\\\"]={version:1,vendor:\\\"zod\\\",validate:n=>this[\\\"~validate\\\"](n)}}optional(){return Wt.create(this,this._def)}nullable(){return En.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zn.create(this)}promise(){return xr.create(this,this._def)}or(t){return pa.create([this,t],this._def)}and(t){return Ea.create(this,t,this._def)}transform(t){return new Yt({...F(this._def),schema:this,typeName:x.ZodEffects,effect:{type:\\\"transform\\\",transform:t}})}default(t){let n=typeof t==\\\"function\\\"?t:()=>t;return new Na({...F(this._def),innerType:this,defaultValue:n,typeName:x.ZodDefault})}brand(){return new dc({typeName:x.ZodBranded,type:this,...F(this._def)})}catch(t){let n=typeof t==\\\"function\\\"?t:()=>t;return new Ia({...F(this._def),innerType:this,catchValue:n,typeName:x.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return fc.create(this,t)}readonly(){return Oa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},EM=/^c[^\\\\s-]{8,}$/i,RM=/^[0-9a-z]+$/,TM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,SM=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,yM=/^[a-z0-9_-]{21}$/i,NM=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,IM=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,OM=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,vM=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\",Rg,CM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,DM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,bM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,MM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,OS=\\\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\\\",LM=new RegExp(`^${OS}$`);function vS(e){let t=\\\"[0-5]\\\\\\\\d\\\";e.precision?t=`${t}\\\\\\\\.\\\\\\\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\\\\\\\.\\\\\\\\d+)?`);let n=e.precision?\\\"+\\\":\\\"?\\\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${t})${n}`}function UM(e){return new RegExp(`^${vS(e)}$`)}function CS(e){let t=`${OS}T${vS(e)}`,n=[];return n.push(e.local?\\\"Z?\\\":\\\"Z\\\"),e.offset&&n.push(\\\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\\\"),t=`${t}(${n.join(\\\"|\\\")})`,new RegExp(`^${t}$`)}function zM(e,t){return!!((t===\\\"v4\\\"||!t)&&CM.test(e)||(t===\\\"v6\\\"||!t)&&bM.test(e))}function BM(e,t){if(!NM.test(e))return!1;try{let[n]=e.split(\\\".\\\");if(!n)return!1;let r=n.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(n.length+(4-n.length%4)%4,\\\"=\\\"),a=JSON.parse(atob(r));return!(typeof a!=\\\"object\\\"||a===null||\\\"typ\\\"in a&&a?.typ!==\\\"JWT\\\"||!a.alg||t&&a.alg!==t)}catch{return!1}}function PM(e,t){return!!((t===\\\"v4\\\"||!t)&&DM.test(e)||(t===\\\"v6\\\"||!t)&&MM.test(e))}var Mr=class e extends k{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==I.string){let o=this._getOrReturnCtx(t);return N(o,{code:T.invalid_type,expected:I.string,received:o.parsedType}),M}let r=new qe,a;for(let o of this._def.checks)if(o.kind===\\\"min\\\")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),N(a,{code:T.too_small,minimum:o.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind===\\\"max\\\")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),N(a,{code:T.too_big,maximum:o.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind===\\\"length\\\"){let i=t.data.length>o.value,c=t.data.length<o.value;(i||c)&&(a=this._getOrReturnCtx(t,a),i?N(a,{code:T.too_big,maximum:o.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:o.message}):c&&N(a,{code:T.too_small,minimum:o.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind===\\\"email\\\")OM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"email\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"emoji\\\")Rg||(Rg=new RegExp(vM,\\\"u\\\")),Rg.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"emoji\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"uuid\\\")SM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"uuid\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"nanoid\\\")yM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"nanoid\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"cuid\\\")EM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"cuid\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"cuid2\\\")RM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"cuid2\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"ulid\\\")TM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"ulid\\\",code:T.invalid_string,message:o.message}),r.dirty());else if(o.kind===\\\"url\\\")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"url\\\",code:T.invalid_string,message:o.message}),r.dirty()}else o.kind===\\\"regex\\\"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"regex\\\",code:T.invalid_string,message:o.message}),r.dirty())):o.kind===\\\"trim\\\"?t.data=t.data.trim():o.kind===\\\"includes\\\"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind===\\\"toLowerCase\\\"?t.data=t.data.toLowerCase():o.kind===\\\"toUpperCase\\\"?t.data=t.data.toUpperCase():o.kind===\\\"startsWith\\\"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind===\\\"endsWith\\\"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind===\\\"datetime\\\"?CS(o).test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:\\\"datetime\\\",message:o.message}),r.dirty()):o.kind===\\\"date\\\"?LM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:\\\"date\\\",message:o.message}),r.dirty()):o.kind===\\\"time\\\"?UM(o).test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{code:T.invalid_string,validation:\\\"time\\\",message:o.message}),r.dirty()):o.kind===\\\"duration\\\"?IM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"duration\\\",code:T.invalid_string,message:o.message}),r.dirty()):o.kind===\\\"ip\\\"?zM(t.data,o.version)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"ip\\\",code:T.invalid_string,message:o.message}),r.dirty()):o.kind===\\\"jwt\\\"?BM(t.data,o.alg)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"jwt\\\",code:T.invalid_string,message:o.message}),r.dirty()):o.kind===\\\"cidr\\\"?PM(t.data,o.version)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"cidr\\\",code:T.invalid_string,message:o.message}),r.dirty()):o.kind===\\\"base64\\\"?wM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"base64\\\",code:T.invalid_string,message:o.message}),r.dirty()):o.kind===\\\"base64url\\\"?xM.test(t.data)||(a=this._getOrReturnCtx(t,a),N(a,{validation:\\\"base64url\\\",code:T.invalid_string,message:o.message}),r.dirty()):q.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:T.invalid_string,...C.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:\\\"email\\\",...C.errToObj(t)})}url(t){return this._addCheck({kind:\\\"url\\\",...C.errToObj(t)})}emoji(t){return this._addCheck({kind:\\\"emoji\\\",...C.errToObj(t)})}uuid(t){return this._addCheck({kind:\\\"uuid\\\",...C.errToObj(t)})}nanoid(t){return this._addCheck({kind:\\\"nanoid\\\",...C.errToObj(t)})}cuid(t){return this._addCheck({kind:\\\"cuid\\\",...C.errToObj(t)})}cuid2(t){return this._addCheck({kind:\\\"cuid2\\\",...C.errToObj(t)})}ulid(t){return this._addCheck({kind:\\\"ulid\\\",...C.errToObj(t)})}base64(t){return this._addCheck({kind:\\\"base64\\\",...C.errToObj(t)})}base64url(t){return this._addCheck({kind:\\\"base64url\\\",...C.errToObj(t)})}jwt(t){return this._addCheck({kind:\\\"jwt\\\",...C.errToObj(t)})}ip(t){return this._addCheck({kind:\\\"ip\\\",...C.errToObj(t)})}cidr(t){return this._addCheck({kind:\\\"cidr\\\",...C.errToObj(t)})}datetime(t){return typeof t==\\\"string\\\"?this._addCheck({kind:\\\"datetime\\\",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:\\\"datetime\\\",precision:typeof t?.precision>\\\"u\\\"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...C.errToObj(t?.message)})}date(t){return this._addCheck({kind:\\\"date\\\",message:t})}time(t){return typeof t==\\\"string\\\"?this._addCheck({kind:\\\"time\\\",precision:null,message:t}):this._addCheck({kind:\\\"time\\\",precision:typeof t?.precision>\\\"u\\\"?null:t?.precision,...C.errToObj(t?.message)})}duration(t){return this._addCheck({kind:\\\"duration\\\",...C.errToObj(t)})}regex(t,n){return this._addCheck({kind:\\\"regex\\\",regex:t,...C.errToObj(n)})}includes(t,n){return this._addCheck({kind:\\\"includes\\\",value:t,position:n?.position,...C.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:\\\"startsWith\\\",value:t,...C.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:\\\"endsWith\\\",value:t,...C.errToObj(n)})}min(t,n){return this._addCheck({kind:\\\"min\\\",value:t,...C.errToObj(n)})}max(t,n){return this._addCheck({kind:\\\"max\\\",value:t,...C.errToObj(n)})}length(t,n){return this._addCheck({kind:\\\"length\\\",value:t,...C.errToObj(n)})}nonempty(t){return this.min(1,C.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:\\\"trim\\\"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\\\"toLowerCase\\\"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\\\"toUpperCase\\\"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind===\\\"datetime\\\")}get isDate(){return!!this._def.checks.find(t=>t.kind===\\\"date\\\")}get isTime(){return!!this._def.checks.find(t=>t.kind===\\\"time\\\")}get isDuration(){return!!this._def.checks.find(t=>t.kind===\\\"duration\\\")}get isEmail(){return!!this._def.checks.find(t=>t.kind===\\\"email\\\")}get isURL(){return!!this._def.checks.find(t=>t.kind===\\\"url\\\")}get isEmoji(){return!!this._def.checks.find(t=>t.kind===\\\"emoji\\\")}get isUUID(){return!!this._def.checks.find(t=>t.kind===\\\"uuid\\\")}get isNANOID(){return!!this._def.checks.find(t=>t.kind===\\\"nanoid\\\")}get isCUID(){return!!this._def.checks.find(t=>t.kind===\\\"cuid\\\")}get isCUID2(){return!!this._def.checks.find(t=>t.kind===\\\"cuid2\\\")}get isULID(){return!!this._def.checks.find(t=>t.kind===\\\"ulid\\\")}get isIP(){return!!this._def.checks.find(t=>t.kind===\\\"ip\\\")}get isCIDR(){return!!this._def.checks.find(t=>t.kind===\\\"cidr\\\")}get isBase64(){return!!this._def.checks.find(t=>t.kind===\\\"base64\\\")}get isBase64url(){return!!this._def.checks.find(t=>t.kind===\\\"base64url\\\")}get minLength(){let t=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(t===null||n.value<t)&&(t=n.value);return t}};Mr.create=e=>new Mr({checks:[],typeName:x.ZodString,coerce:e?.coerce??!1,...F(e)});function FM(e,t){let n=(e.toString().split(\\\".\\\")[1]||\\\"\\\").length,r=(t.toString().split(\\\".\\\")[1]||\\\"\\\").length,a=n>r?n:r,o=Number.parseInt(e.toFixed(a).replace(\\\".\\\",\\\"\\\")),i=Number.parseInt(t.toFixed(a).replace(\\\".\\\",\\\"\\\"));return o%i/10**a}var fa=class e extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==I.number){let o=this._getOrReturnCtx(t);return N(o,{code:T.invalid_type,expected:I.number,received:o.parsedType}),M}let r,a=new qe;for(let o of this._def.checks)o.kind===\\\"int\\\"?q.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),N(r,{code:T.invalid_type,expected:\\\"integer\\\",received:\\\"float\\\",message:o.message}),a.dirty()):o.kind===\\\"min\\\"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.too_small,minimum:o.value,type:\\\"number\\\",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind===\\\"max\\\"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.too_big,maximum:o.value,type:\\\"number\\\",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind===\\\"multipleOf\\\"?FM(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind===\\\"finite\\\"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),N(r,{code:T.not_finite,message:o.message}),a.dirty()):q.assertNever(o);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit(\\\"min\\\",t,!0,C.toString(n))}gt(t,n){return this.setLimit(\\\"min\\\",t,!1,C.toString(n))}lte(t,n){return this.setLimit(\\\"max\\\",t,!0,C.toString(n))}lt(t,n){return this.setLimit(\\\"max\\\",t,!1,C.toString(n))}setLimit(t,n,r,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:C.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:\\\"int\\\",message:C.toString(t)})}positive(t){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!1,message:C.toString(t)})}negative(t){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!1,message:C.toString(t)})}nonpositive(t){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!0,message:C.toString(t)})}nonnegative(t){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!0,message:C.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\\\"multipleOf\\\",value:t,message:C.toString(n)})}finite(t){return this._addCheck({kind:\\\"finite\\\",message:C.toString(t)})}safe(t){return this._addCheck({kind:\\\"min\\\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:C.toString(t)})._addCheck({kind:\\\"max\\\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:C.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind===\\\"int\\\"||t.kind===\\\"multipleOf\\\"&&q.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind===\\\"finite\\\"||r.kind===\\\"int\\\"||r.kind===\\\"multipleOf\\\")return!0;r.kind===\\\"min\\\"?(n===null||r.value>n)&&(n=r.value):r.kind===\\\"max\\\"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};fa.create=e=>new fa({checks:[],typeName:x.ZodNumber,coerce:e?.coerce||!1,...F(e)});var ma=class e extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==I.bigint)return this._getInvalidInput(t);let r,a=new qe;for(let o of this._def.checks)o.kind===\\\"min\\\"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.too_small,type:\\\"bigint\\\",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind===\\\"max\\\"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.too_big,type:\\\"bigint\\\",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind===\\\"multipleOf\\\"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),N(r,{code:T.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):q.assertNever(o);return{status:a.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return N(n,{code:T.invalid_type,expected:I.bigint,received:n.parsedType}),M}gte(t,n){return this.setLimit(\\\"min\\\",t,!0,C.toString(n))}gt(t,n){return this.setLimit(\\\"min\\\",t,!1,C.toString(n))}lte(t,n){return this.setLimit(\\\"max\\\",t,!0,C.toString(n))}lt(t,n){return this.setLimit(\\\"max\\\",t,!1,C.toString(n))}setLimit(t,n,r,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:C.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!1,message:C.toString(t)})}negative(t){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!1,message:C.toString(t)})}nonpositive(t){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!0,message:C.toString(t)})}nonnegative(t){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!0,message:C.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\\\"multipleOf\\\",value:t,message:C.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(t===null||n.value<t)&&(t=n.value);return t}};ma.create=e=>new ma({checks:[],typeName:x.ZodBigInt,coerce:e?.coerce??!1,...F(e)});var ga=class extends k{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==I.boolean){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.boolean,received:r.parsedType}),M}return Xe(t.data)}};ga.create=e=>new ga({typeName:x.ZodBoolean,coerce:e?.coerce||!1,...F(e)});var Aa=class e extends k{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==I.date){let o=this._getOrReturnCtx(t);return N(o,{code:T.invalid_type,expected:I.date,received:o.parsedType}),M}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return N(o,{code:T.invalid_date}),M}let r=new qe,a;for(let o of this._def.checks)o.kind===\\\"min\\\"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),N(a,{code:T.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:\\\"date\\\"}),r.dirty()):o.kind===\\\"max\\\"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),N(a,{code:T.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:\\\"date\\\"}),r.dirty()):q.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:\\\"min\\\",value:t.getTime(),message:C.toString(n)})}max(t,n){return this._addCheck({kind:\\\"max\\\",value:t.getTime(),message:C.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Aa.create=e=>new Aa({checks:[],coerce:e?.coerce||!1,typeName:x.ZodDate,...F(e)});var Uo=class extends k{_parse(t){if(this._getType(t)!==I.symbol){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.symbol,received:r.parsedType}),M}return Xe(t.data)}};Uo.create=e=>new Uo({typeName:x.ZodSymbol,...F(e)});var _a=class extends k{_parse(t){if(this._getType(t)!==I.undefined){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.undefined,received:r.parsedType}),M}return Xe(t.data)}};_a.create=e=>new _a({typeName:x.ZodUndefined,...F(e)});var ha=class extends k{_parse(t){if(this._getType(t)!==I.null){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.null,received:r.parsedType}),M}return Xe(t.data)}};ha.create=e=>new ha({typeName:x.ZodNull,...F(e)});var wr=class extends k{constructor(){super(...arguments),this._any=!0}_parse(t){return Xe(t.data)}};wr.create=e=>new wr({typeName:x.ZodAny,...F(e)});var Kn=class extends k{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xe(t.data)}};Kn.create=e=>new Kn({typeName:x.ZodUnknown,...F(e)});var nn=class extends k{_parse(t){let n=this._getOrReturnCtx(t);return N(n,{code:T.invalid_type,expected:I.never,received:n.parsedType}),M}};nn.create=e=>new nn({typeName:x.ZodNever,...F(e)});var zo=class extends k{_parse(t){if(this._getType(t)!==I.undefined){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.void,received:r.parsedType}),M}return Xe(t.data)}};zo.create=e=>new zo({typeName:x.ZodVoid,...F(e)});var Zn=class e extends k{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==I.array)return N(n,{code:T.invalid_type,expected:I.array,received:n.parsedType}),M;if(a.exactLength!==null){let i=n.data.length>a.exactLength.value,c=n.data.length<a.exactLength.value;(i||c)&&(N(n,{code:i?T.too_big:T.too_small,minimum:c?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:\\\"array\\\",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(N(n,{code:T.too_small,minimum:a.minLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(N(n,{code:T.too_big,maximum:a.maxLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,c)=>a.type._parseAsync(new jt(n,i,n.path,c)))).then(i=>qe.mergeArray(r,i));let o=[...n.data].map((i,c)=>a.type._parseSync(new jt(n,i,n.path,c)));return qe.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:C.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:C.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:C.toString(n)}})}nonempty(t){return this.min(1,t)}};Zn.create=(e,t)=>new Zn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:x.ZodArray,...F(t)});function Lo(e){if(e instanceof mt){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Wt.create(Lo(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Zn?new Zn({...e._def,type:Lo(e.element)}):e instanceof Wt?Wt.create(Lo(e.unwrap())):e instanceof En?En.create(Lo(e.unwrap())):e instanceof pn?pn.create(e.items.map(t=>Lo(t))):e}var mt=class e extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=q.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==I.object){let u=this._getOrReturnCtx(t);return N(u,{code:T.invalid_type,expected:I.object,received:u.parsedType}),M}let{status:r,ctx:a}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),c=[];if(!(this._def.catchall instanceof nn&&this._def.unknownKeys===\\\"strip\\\"))for(let u in a.data)i.includes(u)||c.push(u);let s=[];for(let u of i){let l=o[u],d=a.data[u];s.push({key:{status:\\\"valid\\\",value:u},value:l._parse(new jt(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof nn){let u=this._def.unknownKeys;if(u===\\\"passthrough\\\")for(let l of c)s.push({key:{status:\\\"valid\\\",value:l},value:{status:\\\"valid\\\",value:a.data[l]}});else if(u===\\\"strict\\\")c.length>0&&(N(a,{code:T.unrecognized_keys,keys:c}),r.dirty());else if(u!==\\\"strip\\\")throw new Error(\\\"Internal ZodObject error: invalid unknownKeys value.\\\")}else{let u=this._def.catchall;for(let l of c){let d=a.data[l];s.push({key:{status:\\\"valid\\\",value:l},value:u._parse(new jt(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of s){let d=await l.key,m=await l.value;u.push({key:d,value:m,alwaysSet:l.alwaysSet})}return u}).then(u=>qe.mergeObjectSync(r,u)):qe.mergeObjectSync(r,s)}get shape(){return this._def.shape()}strict(t){return C.errToObj,new e({...this._def,unknownKeys:\\\"strict\\\",...t!==void 0?{errorMap:(n,r)=>{let a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\\\"unrecognized_keys\\\"?{message:C.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new e({...this._def,unknownKeys:\\\"strip\\\"})}passthrough(){return new e({...this._def,unknownKeys:\\\"passthrough\\\"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:x.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of q.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of q.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Lo(this)}partial(t){let n={};for(let r of q.objectKeys(this.shape)){let a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of q.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Wt;)o=o._def.innerType;n[r]=o}return new e({...this._def,shape:()=>n})}keyof(){return DS(q.objectKeys(this.shape))}};mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:\\\"strip\\\",catchall:nn.create(),typeName:x.ZodObject,...F(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:\\\"strict\\\",catchall:nn.create(),typeName:x.ZodObject,...F(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:\\\"strip\\\",catchall:nn.create(),typeName:x.ZodObject,...F(t)});var pa=class extends k{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function a(o){for(let c of o)if(c.result.status===\\\"valid\\\")return c.result;for(let c of o)if(c.result.status===\\\"dirty\\\")return n.common.issues.push(...c.ctx.common.issues),c.result;let i=o.map(c=>new ft(c.ctx.common.issues));return N(n,{code:T.invalid_union,unionErrors:i}),M}if(n.common.async)return Promise.all(r.map(async o=>{let i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let o,i=[];for(let s of r){let u={...n,common:{...n.common,issues:[]},parent:null},l=s._parseSync({data:n.data,path:n.path,parent:u});if(l.status===\\\"valid\\\")return l;l.status===\\\"dirty\\\"&&!o&&(o={result:l,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;let c=i.map(s=>new ft(s));return N(n,{code:T.invalid_union,unionErrors:c}),M}}get options(){return this._def.options}};pa.create=(e,t)=>new pa({options:e,typeName:x.ZodUnion,...F(t)});var qn=e=>e instanceof Ra?qn(e.schema):e instanceof Yt?qn(e.innerType()):e instanceof Ta?[e.value]:e instanceof Sa?e.options:e instanceof ya?q.objectValues(e.enum):e instanceof Na?qn(e._def.innerType):e instanceof _a?[void 0]:e instanceof ha?[null]:e instanceof Wt?[void 0,...qn(e.unwrap())]:e instanceof En?[null,...qn(e.unwrap())]:e instanceof dc||e instanceof Oa?qn(e.unwrap()):e instanceof Ia?qn(e._def.innerType):[],Lu=class e extends k{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==I.object)return N(n,{code:T.invalid_type,expected:I.object,received:n.parsedType}),M;let r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(N(n,{code:T.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),M)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let a=new Map;for(let o of n){let i=qn(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \\\\`${t}\\\\` could not be extracted from all schema options`);for(let c of i){if(a.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);a.set(c,o)}}return new e({typeName:x.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...F(r)})}};function Tg(e,t){let n=hn(e),r=hn(t);if(e===t)return{valid:!0,data:e};if(n===I.object&&r===I.object){let a=q.objectKeys(t),o=q.objectKeys(e).filter(c=>a.indexOf(c)!==-1),i={...e,...t};for(let c of o){let s=Tg(e[c],t[c]);if(!s.valid)return{valid:!1};i[c]=s.data}return{valid:!0,data:i}}else if(n===I.array&&r===I.array){if(e.length!==t.length)return{valid:!1};let a=[];for(let o=0;o<e.length;o++){let i=e[o],c=t[o],s=Tg(i,c);if(!s.valid)return{valid:!1};a.push(s.data)}return{valid:!0,data:a}}else return n===I.date&&r===I.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ea=class extends k{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),a=(o,i)=>{if(wu(o)||wu(i))return M;let c=Tg(o.value,i.value);return c.valid?((xu(o)||xu(i))&&n.dirty(),{status:n.value,value:c.data}):(N(r,{code:T.invalid_intersection_types}),M)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>a(o,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Ea.create=(e,t,n)=>new Ea({left:e,right:t,typeName:x.ZodIntersection,...F(n)});var pn=class e extends k{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==I.array)return N(r,{code:T.invalid_type,expected:I.array,received:r.parsedType}),M;if(r.data.length<this._def.items.length)return N(r,{code:T.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),M;!this._def.rest&&r.data.length>this._def.items.length&&(N(r,{code:T.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),n.dirty());let o=[...r.data].map((i,c)=>{let s=this._def.items[c]||this._def.rest;return s?s._parse(new jt(r,i,r.path,c)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>qe.mergeArray(n,i)):qe.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};pn.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\\\"You must pass an array of schemas to z.tuple([ ... ])\\\");return new pn({items:e,typeName:x.ZodTuple,rest:null,...F(t)})};var Uu=class e extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==I.object)return N(r,{code:T.invalid_type,expected:I.object,received:r.parsedType}),M;let a=[],o=this._def.keyType,i=this._def.valueType;for(let c in r.data)a.push({key:o._parse(new jt(r,c,r.path,c)),value:i._parse(new jt(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?qe.mergeObjectAsync(n,a):qe.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof k?new e({keyType:t,valueType:n,typeName:x.ZodRecord,...F(r)}):new e({keyType:Mr.create(),valueType:t,typeName:x.ZodRecord,...F(n)})}},Bo=class extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==I.map)return N(r,{code:T.invalid_type,expected:I.map,received:r.parsedType}),M;let a=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([c,s],u)=>({key:a._parse(new jt(r,c,r.path,[u,\\\"key\\\"])),value:o._parse(new jt(r,s,r.path,[u,\\\"value\\\"]))}));if(r.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let s of i){let u=await s.key,l=await s.value;if(u.status===\\\"aborted\\\"||l.status===\\\"aborted\\\")return M;(u.status===\\\"dirty\\\"||l.status===\\\"dirty\\\")&&n.dirty(),c.set(u.value,l.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let s of i){let u=s.key,l=s.value;if(u.status===\\\"aborted\\\"||l.status===\\\"aborted\\\")return M;(u.status===\\\"dirty\\\"||l.status===\\\"dirty\\\")&&n.dirty(),c.set(u.value,l.value)}return{status:n.value,value:c}}}};Bo.create=(e,t,n)=>new Bo({valueType:t,keyType:e,typeName:x.ZodMap,...F(n)});var Po=class e extends k{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==I.set)return N(r,{code:T.invalid_type,expected:I.set,received:r.parsedType}),M;let a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(N(r,{code:T.too_small,minimum:a.minSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(N(r,{code:T.too_big,maximum:a.maxSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());let o=this._def.valueType;function i(s){let u=new Set;for(let l of s){if(l.status===\\\"aborted\\\")return M;l.status===\\\"dirty\\\"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}let c=[...r.data.values()].map((s,u)=>o._parse(new jt(r,s,r.path,u)));return r.common.async?Promise.all(c).then(s=>i(s)):i(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:C.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:C.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Po.create=(e,t)=>new Po({valueType:e,minSize:null,maxSize:null,typeName:x.ZodSet,...F(t)});var zu=class e extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==I.function)return N(n,{code:T.invalid_type,expected:I.function,received:n.parsedType}),M;function r(c,s){return lc({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,wo(),Yn].filter(u=>!!u),issueData:{code:T.invalid_arguments,argumentsError:s}})}function a(c,s){return lc({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,wo(),Yn].filter(u=>!!u),issueData:{code:T.invalid_return_type,returnTypeError:s}})}let o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof xr){let c=this;return Xe(async function(...s){let u=new ft([]),l=await c._def.args.parseAsync(s,o).catch(A=>{throw u.addIssue(r(s,A)),u}),d=await Reflect.apply(i,this,l);return await c._def.returns._def.type.parseAsync(d,o).catch(A=>{throw u.addIssue(a(d,A)),u})})}else{let c=this;return Xe(function(...s){let u=c._def.args.safeParse(s,o);if(!u.success)throw new ft([r(s,u.error)]);let l=Reflect.apply(i,this,u.data),d=c._def.returns.safeParse(l,o);if(!d.success)throw new ft([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:pn.create(t).rest(Kn.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||pn.create([]).rest(Kn.create()),returns:n||Kn.create(),typeName:x.ZodFunction,...F(r)})}},Ra=class extends k{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ra.create=(e,t)=>new Ra({getter:e,typeName:x.ZodLazy,...F(t)});var Ta=class extends k{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return N(n,{received:n.data,code:T.invalid_literal,expected:this._def.value}),M}return{status:\\\"valid\\\",value:t.data}}get value(){return this._def.value}};Ta.create=(e,t)=>new Ta({value:e,typeName:x.ZodLiteral,...F(t)});function DS(e,t){return new Sa({values:e,typeName:x.ZodEnum,...F(t)})}var Sa=class e extends k{_parse(t){if(typeof t.data!=\\\"string\\\"){let n=this._getOrReturnCtx(t),r=this._def.values;return N(n,{expected:q.joinValues(r),received:n.parsedType,code:T.invalid_type}),M}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return N(n,{received:n.data,code:T.invalid_enum_value,options:r}),M}return Xe(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Sa.create=DS;var ya=class extends k{_parse(t){let n=q.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==I.string&&r.parsedType!==I.number){let a=q.objectValues(n);return N(r,{expected:q.joinValues(a),received:r.parsedType,code:T.invalid_type}),M}if(this._cache||(this._cache=new Set(q.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let a=q.objectValues(n);return N(r,{received:r.data,code:T.invalid_enum_value,options:a}),M}return Xe(t.data)}get enum(){return this._def.values}};ya.create=(e,t)=>new ya({values:e,typeName:x.ZodNativeEnum,...F(t)});var xr=class extends k{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==I.promise&&n.common.async===!1)return N(n,{code:T.invalid_type,expected:I.promise,received:n.parsedType}),M;let r=n.parsedType===I.promise?n.data:Promise.resolve(n.data);return Xe(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}};xr.create=(e,t)=>new xr({type:e,typeName:x.ZodPromise,...F(t)});var Yt=class extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===x.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:i=>{N(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),a.type===\\\"preprocess\\\"){let i=a.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async c=>{if(n.value===\\\"aborted\\\")return M;let s=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return s.status===\\\"aborted\\\"?M:s.status===\\\"dirty\\\"?da(s.value):n.value===\\\"dirty\\\"?da(s.value):s});{if(n.value===\\\"aborted\\\")return M;let c=this._def.schema._parseSync({data:i,path:r.path,parent:r});return c.status===\\\"aborted\\\"?M:c.status===\\\"dirty\\\"?da(c.value):n.value===\\\"dirty\\\"?da(c.value):c}}if(a.type===\\\"refinement\\\"){let i=c=>{let s=a.refinement(c,o);if(r.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error(\\\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\\\");return c};if(r.common.async===!1){let c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status===\\\"aborted\\\"?M:(c.status===\\\"dirty\\\"&&n.dirty(),i(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status===\\\"aborted\\\"?M:(c.status===\\\"dirty\\\"&&n.dirty(),i(c.value).then(()=>({status:n.value,value:c.value}))))}if(a.type===\\\"transform\\\")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!br(i))return M;let c=a.transform(i.value,o);if(c instanceof Promise)throw new Error(\\\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\\\");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>br(i)?Promise.resolve(a.transform(i.value,o)).then(c=>({status:n.value,value:c})):M);q.assertNever(a)}};Yt.create=(e,t,n)=>new Yt({schema:e,typeName:x.ZodEffects,effect:t,...F(n)});Yt.createWithPreprocess=(e,t,n)=>new Yt({schema:t,effect:{type:\\\"preprocess\\\",transform:e},typeName:x.ZodEffects,...F(n)});var Wt=class extends k{_parse(t){return this._getType(t)===I.undefined?Xe(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wt.create=(e,t)=>new Wt({innerType:e,typeName:x.ZodOptional,...F(t)});var En=class extends k{_parse(t){return this._getType(t)===I.null?Xe(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};En.create=(e,t)=>new En({innerType:e,typeName:x.ZodNullable,...F(t)});var Na=class extends k{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===I.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Na.create=(e,t)=>new Na({innerType:e,typeName:x.ZodDefault,defaultValue:typeof t.default==\\\"function\\\"?t.default:()=>t.default,...F(t)});var Ia=class extends k{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return xo(a)?a.then(o=>({status:\\\"valid\\\",value:o.status===\\\"valid\\\"?o.value:this._def.catchValue({get error(){return new ft(r.common.issues)},input:r.data})})):{status:\\\"valid\\\",value:a.status===\\\"valid\\\"?a.value:this._def.catchValue({get error(){return new ft(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Ia.create=(e,t)=>new Ia({innerType:e,typeName:x.ZodCatch,catchValue:typeof t.catch==\\\"function\\\"?t.catch:()=>t.catch,...F(t)});var Fo=class extends k{_parse(t){if(this._getType(t)!==I.nan){let r=this._getOrReturnCtx(t);return N(r,{code:T.invalid_type,expected:I.nan,received:r.parsedType}),M}return{status:\\\"valid\\\",value:t.data}}};Fo.create=e=>new Fo({typeName:x.ZodNaN,...F(e)});var kM=Symbol(\\\"zod_brand\\\"),dc=class extends k{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},fc=class e extends k{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status===\\\"aborted\\\"?M:o.status===\\\"dirty\\\"?(n.dirty(),da(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{let a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status===\\\"aborted\\\"?M:a.status===\\\"dirty\\\"?(n.dirty(),{status:\\\"dirty\\\",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:x.ZodPipeline})}},Oa=class extends k{_parse(t){let n=this._def.innerType._parse(t),r=a=>(br(a)&&(a.value=Object.freeze(a.value)),a);return xo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}};Oa.create=(e,t)=>new Oa({innerType:e,typeName:x.ZodReadonly,...F(t)});function IS(e,t){let n=typeof e==\\\"function\\\"?e(t):typeof e==\\\"string\\\"?{message:e}:e;return typeof n==\\\"string\\\"?{message:n}:n}function bS(e,t={},n){return e?wr.create().superRefine((r,a)=>{let o=e(r);if(o instanceof Promise)return o.then(i=>{if(!i){let c=IS(t,r),s=c.fatal??n??!0;a.addIssue({code:\\\"custom\\\",...c,fatal:s})}});if(!o){let i=IS(t,r),c=i.fatal??n??!0;a.addIssue({code:\\\"custom\\\",...i,fatal:c})}}):wr.create()}var GM={object:mt.lazycreate},x;(function(e){e.ZodString=\\\"ZodString\\\",e.ZodNumber=\\\"ZodNumber\\\",e.ZodNaN=\\\"ZodNaN\\\",e.ZodBigInt=\\\"ZodBigInt\\\",e.ZodBoolean=\\\"ZodBoolean\\\",e.ZodDate=\\\"ZodDate\\\",e.ZodSymbol=\\\"ZodSymbol\\\",e.ZodUndefined=\\\"ZodUndefined\\\",e.ZodNull=\\\"ZodNull\\\",e.ZodAny=\\\"ZodAny\\\",e.ZodUnknown=\\\"ZodUnknown\\\",e.ZodNever=\\\"ZodNever\\\",e.ZodVoid=\\\"ZodVoid\\\",e.ZodArray=\\\"ZodArray\\\",e.ZodObject=\\\"ZodObject\\\",e.ZodUnion=\\\"ZodUnion\\\",e.ZodDiscriminatedUnion=\\\"ZodDiscriminatedUnion\\\",e.ZodIntersection=\\\"ZodIntersection\\\",e.ZodTuple=\\\"ZodTuple\\\",e.ZodRecord=\\\"ZodRecord\\\",e.ZodMap=\\\"ZodMap\\\",e.ZodSet=\\\"ZodSet\\\",e.ZodFunction=\\\"ZodFunction\\\",e.ZodLazy=\\\"ZodLazy\\\",e.ZodLiteral=\\\"ZodLiteral\\\",e.ZodEnum=\\\"ZodEnum\\\",e.ZodEffects=\\\"ZodEffects\\\",e.ZodNativeEnum=\\\"ZodNativeEnum\\\",e.ZodOptional=\\\"ZodOptional\\\",e.ZodNullable=\\\"ZodNullable\\\",e.ZodDefault=\\\"ZodDefault\\\",e.ZodCatch=\\\"ZodCatch\\\",e.ZodPromise=\\\"ZodPromise\\\",e.ZodBranded=\\\"ZodBranded\\\",e.ZodPipeline=\\\"ZodPipeline\\\",e.ZodReadonly=\\\"ZodReadonly\\\"})(x||(x={}));var VM=(e,t={message:`Input not instance of ${e.name}`})=>bS(n=>n instanceof e,t),MS=Mr.create,wS=fa.create,HM=Fo.create,WM=ma.create,xS=ga.create,jM=Aa.create,YM=Uo.create,qM=_a.create,KM=ha.create,ZM=wr.create,XM=Kn.create,$M=nn.create,QM=zo.create,JM=Zn.create,ew=mt.create,tw=mt.strictCreate,nw=pa.create,rw=Lu.create,aw=Ea.create,ow=pn.create,iw=Uu.create,cw=Bo.create,sw=Po.create,uw=zu.create,lw=Ra.create,dw=Ta.create,fw=Sa.create,mw=ya.create,gw=xr.create,Aw=Yt.create,_w=Wt.create,hw=En.create,pw=Yt.createWithPreprocess,Ew=fc.create,Rw=()=>MS().optional(),Tw=()=>wS().optional(),Sw=()=>xS().optional(),yw={string:(e=>Mr.create({...e,coerce:!0})),number:(e=>fa.create({...e,coerce:!0})),boolean:(e=>ga.create({...e,coerce:!0})),bigint:(e=>ma.create({...e,coerce:!0})),date:(e=>Aa.create({...e,coerce:!0}))};var Nw=M;var LS=w.string().regex(/^[a-z0-9-]+:[a-zA-Z0-9-]+$/,{message:\\\"Network must be in CAIP-2 format (e.g., 'eip155:1', 'solana:mainnet')\\\"}),US=w.object({url:w.string().url({message:\\\"Resource URL must be a valid URL\\\"}),description:w.string().optional(),mimeType:w.string().optional()}),zS=w.object({scheme:w.string().min(1,{message:\\\"Scheme is required\\\"}),network:LS,asset:w.string().min(1,{message:\\\"Asset address is required\\\"}),amount:w.string().regex(/^\\\\d+$/,{message:\\\"Amount must be a non-negative integer string\\\"}),payTo:w.string().min(1,{message:\\\"PayTo address is required\\\"}),maxTimeoutSeconds:w.number().int().positive({message:\\\"maxTimeoutSeconds must be a positive integer\\\"}),extra:w.record(w.unknown())}),Iw=w.object({t402Version:w.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),error:w.string().optional(),resource:US,accepts:w.array(zS).min(1,{message:\\\"At least one payment option is required\\\"}),extensions:w.record(w.unknown()).optional()}),Ow=w.object({t402Version:w.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),resource:US.optional(),accepted:zS,payload:w.record(w.unknown()),extensions:w.record(w.unknown()).optional()}),FB=w.object({isValid:w.boolean(),invalidReason:w.string().optional(),payer:w.string().optional()}),vw=w.object({success:w.boolean(),transaction:w.string(),network:LS,errorReason:w.string().optional(),payer:w.string().optional(),confirmations:w.string().optional()}),Cw=w.object({scheme:w.string().min(1),network:w.string().min(1),asset:w.string().min(1),amount:w.string().regex(/^\\\\d+$/),payTo:w.string().min(1),maxTimeoutSeconds:w.number().int().positive(),extra:w.record(w.unknown()).optional()}),kB=w.object({t402Version:w.literal(1).optional(),accepted:Cw,payload:w.record(w.unknown())});var BS=class PS{constructor(t){jn(this,\\\"paymentRequirementsSelector\\\"),jn(this,\\\"registeredClientSchemes\\\",new Map),jn(this,\\\"policies\\\",[]),jn(this,\\\"beforePaymentCreationHooks\\\",[]),jn(this,\\\"afterPaymentCreationHooks\\\",[]),jn(this,\\\"onPaymentCreationFailureHooks\\\",[]),this.paymentRequirementsSelector=t||((n,r)=>r[0])}static fromConfig(t){let n=new PS(t.paymentRequirementsSelector);return t.schemes.forEach(r=>{r.t402Version===1?n.registerV1(r.network,r.client):n.register(r.network,r.client)}),t.policies?.forEach(r=>{n.registerPolicy(r)}),n}register(t,n){return this._registerScheme(pg,t,n)}registerV1(t,n){return this._registerScheme(1,t,n)}registerPolicy(t){return this.policies.push(t),this}onBeforePaymentCreation(t){return this.beforePaymentCreationHooks.push(t),this}onAfterPaymentCreation(t){return this.afterPaymentCreationHooks.push(t),this}onPaymentCreationFailure(t){return this.onPaymentCreationFailureHooks.push(t),this}async createPaymentPayload(t){let n=this.registeredClientSchemes.get(t.t402Version);if(!n)throw new Error(`No client registered for t402 version: ${t.t402Version}`);let r=this.selectPaymentRequirements(t.t402Version,t.accepts),a={paymentRequired:t,selectedRequirements:r};for(let o of this.beforePaymentCreationHooks){let i=await o(a);if(i&&\\\"abort\\\"in i&&i.abort)throw new Error(`Payment creation aborted: ${i.reason}`)}try{let o=hg(n,r.scheme,r.network);if(!o)throw new Error(`No client registered for scheme: ${r.scheme} and network: ${r.network}`);let i=await o.createPaymentPayload(t.t402Version,r),c;i.t402Version===1?c=i:c={...i,extensions:t.extensions,resource:t.resource,accepted:r};let s={...a,paymentPayload:c};for(let u of this.afterPaymentCreationHooks)await u(s);return c}catch(o){let i={...a,error:o};for(let c of this.onPaymentCreationFailureHooks){let s=await c(i);if(s&&\\\"recovered\\\"in s&&s.recovered)return s.payload}throw o}}selectPaymentRequirements(t,n){let r=this.registeredClientSchemes.get(t);if(!r)throw new Error(`No client registered for t402 version: ${t}`);let a=n.filter(i=>{let c=Mu(r,i.network);return c?c.has(i.scheme):!1});if(a.length===0)throw new Error(`No network/scheme registered for t402 version: ${t} which comply with the payment requirements. ${JSON.stringify({t402Version:t,paymentRequirements:n,t402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(r.keys()),schemes:Array.from(r.values()).map(i=>Array.from(i.keys())).flat()})}`);let o=a;for(let i of this.policies)if(o=i(t,o),o.length===0)throw new Error(`All payment requirements were filtered out by policies for t402 version: ${t}`);return this.paymentRequirementsSelector(t,o)}_registerScheme(t,n,r){this.registeredClientSchemes.has(t)||this.registeredClientSchemes.set(t,new Map);let a=this.registeredClientSchemes.get(t);a.has(n)||a.set(n,new Map);let o=a.get(n);return o.has(r.scheme)||o.set(r.scheme,r),this}};h();var Sg=Ke(Xn(),1);function VS({className:e=\\\"\\\"}){return(0,Sg.jsx)(\\\"div\\\",{className:`spinner ${e}`,children:(0,Sg.jsx)(\\\"div\\\",{})})}h();var Mw={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var mc={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},ww={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},HS={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},xw={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},WS={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},Lw={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function jS(e){if(e.startsWith(\\\"eip155:\\\")){let t=parseInt(e.split(\\\":\\\")[1]);return Mw[t]??`Chain ${t}`}if(e.startsWith(\\\"solana:\\\"))return e.split(\\\":\\\")[1]===mc.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(e.startsWith(\\\"ton:\\\"))return e.split(\\\":\\\")[1]===ww.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(e.startsWith(\\\"tron:\\\")){let t=e.split(\\\":\\\")[1];return t===HS.NILE?\\\"TRON Nile Testnet\\\":t===HS.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(e.startsWith(\\\"stacks:\\\"))return e.split(\\\":\\\")[1]===xw.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(e.startsWith(\\\"cosmos:\\\")){let t=e.split(\\\":\\\")[1];return t===WS.NOBLE_MAINNET?\\\"Noble\\\":t===WS.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${t}`}return e.startsWith(\\\"near:\\\")?e.split(\\\":\\\")[1]===Lw.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":e}h();var gt=Ke(Xn(),1),gc=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function Uw(e){return gc.findIndex(t=>t.key===e)}function zw(){return(0,gt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,gt.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function Bw(){return(0,gt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,gt.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function YS({currentStep:e,isProcessing:t=!1,hasError:n=!1}){let r=Uw(e);return(0,gt.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":r+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":gc.length,\\\"aria-label\\\":`Payment progress: ${gc[r].label}`,children:gc.map((a,o)=>{let i=o<r,c=o===r,s=o>r,u=\\\"progress-step\\\";return i&&(u+=\\\" completed\\\"),c&&(u+=\\\" current\\\"),c&&t&&(u+=\\\" processing\\\"),c&&n&&(u+=\\\" error\\\"),s&&(u+=\\\" pending\\\"),(0,gt.jsxs)(\\\"div\\\",{className:u,children:[(0,gt.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:i?(0,gt.jsx)(zw,{}):c&&t?(0,gt.jsx)(Bw,{}):(0,gt.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:o+1})}),(0,gt.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:a.label}),o<gc.length-1&&(0,gt.jsx)(\\\"div\\\",{className:`progress-connector ${i?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},a.key)})})}h();h();var qS=\\\"standard:connect\\\";h();var KS=\\\"standard:disconnect\\\";h();var ZS=\\\"standard:events\\\";h();var Ac=\\\"solana:signTransaction\\\";var XS=e=>Ac in e.features,$S=e=>e.features[Ac],Pu=e=>e.features[qS],QS=e=>e.features[ZS],JS=e=>e.features[KS];h();var $n=Ke(Sn(),1);h();ey();h();var Pw=\\\"https://api.devnet.solana.com\\\",Fw=\\\"https://api.mainnet-beta.solana.com\\\";function kw(e){return ua(e?e:Pw)}function Gw(e){return ua(e?e:Fw)}function ty(e,t){if(!e.startsWith(\\\"solana:\\\"))throw new Error(`Invalid network format. Expected CAIP-2 format (solana:reference), got: ${e}`);return e.split(\\\":\\\")[1]===mc.DEVNET?kw(t):Gw(t)}function ny({activeAccount:e,paymentRequired:t,onStatus:n}){let[r,a]=(0,$n.useState)(null),[o,i]=(0,$n.useState)(\\\"\\\"),[c,s]=(0,$n.useState)(!1),u=t.accepts[0],l=(0,$n.useCallback)(()=>{a(null),i(\\\"\\\")},[]),d=(0,$n.useCallback)(async(m=e)=>{if(!m||!u)return l(),null;try{s(!0);let A=ty(u.network),S=await Mo(A,u.asset),O=S.programAddress,[X]=await Dr({mint:u.asset,owner:Qi(m.address),tokenProgram:O}),g=0n;if(O.toString()===bo.toString()){let f=await fS(A,X);f.exists&&(g=f.data.amount)}else if(O.toString()===la.toString()){let f=await pS(A,X);f.exists&&(g=f.data.amount)}return a(g),i(yg(g,S.data.decimals)),g}catch(A){return console.error(\\\"Failed to fetch Solana USDC balance\\\",A),n(\\\"Unable to read your USDC balance. Please retry.\\\"),l(),null}finally{s(!1)}},[e,u,n,l]);return(0,$n.useEffect)(()=>{e&&d()},[e,d]),{usdcBalance:r,formattedBalance:o,isFetchingBalance:c,refreshBalance:d,resetBalance:l}}h();var ry=Ke(Sn(),1);function ay({activeWallet:e,activeAccount:t,targetChain:n}){return(0,ry.useMemo)(()=>{if(!e||!t)return null;let r=$S(e);if(!r)return null;let a=Qi(t.address),o=ig(),i=cg();return{address:a,async signTransactions(c){let s=[];for(let u of c){let l=new Uint8Array(o.encode(u)),[d]=await r.signTransaction({account:t,transaction:l,chain:n}),A=i.decode(new Uint8Array(d.signedTransaction)).signatures[a];if(!A)throw new Error(\\\"Wallet did not return a signature for the selected account.\\\");s.push(Object.freeze({[a]:A}))}return s}}},[e,t,n])}h();var oy=Ke(Sn(),1);function iy({activeWallet:e,targetChain:t,chainName:n,setActiveWallet:r,setActiveAccount:a,setSelectedWalletValue:o,setStatus:i,resetBalance:c,refreshBalance:s}){(0,oy.useEffect)(()=>{if(!e)return;let u=QS(e);if(!u)return;let l=u.on(\\\"change\\\",d=>{if(d.features&&!(Ac in d.features)){r(null),a(null),o(\\\"\\\"),c(),i(\\\"Selected wallet no longer supports Solana signing. Please reconnect.\\\");return}if(d.accounts){if(!d.accounts.length){a(null),c(),i(\\\"Wallet disconnected. Select a wallet to reconnect.\\\");return}let m=d.accounts.find(A=>A.chains?.includes(t))??d.accounts[0]??null;if(a(m),!m){i(\\\"No authorized Solana accounts available. Reconnect your wallet.\\\"),c();return}m.chains?.includes(t)?i(\\\"\\\"):i(`Switch your wallet to ${n} to continue.`),s(m)}});return()=>{l()}},[e,t,n,r,a,o,i,c,s])}h();var Gu=Ke(Sn(),1);h();var Vw=function(e,t,n,r){if(n===\\\"a\\\"&&!r)throw new TypeError(\\\"Private accessor was defined without a getter\\\");if(typeof t==\\\"function\\\"?e!==t||!r:!t.has(e))throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");return n===\\\"m\\\"?r:n===\\\"a\\\"?r.call(e):r?r.value:t.get(e)},Hw=function(e,t,n,r,a){if(r===\\\"m\\\")throw new TypeError(\\\"Private method is not writable\\\");if(r===\\\"a\\\"&&!a)throw new TypeError(\\\"Private accessor was defined without a setter\\\");if(typeof t==\\\"function\\\"?e!==t||!a:!t.has(e))throw new TypeError(\\\"Cannot write private member to an object whose class did not declare it\\\");return r===\\\"a\\\"?a.call(e,n):a?a.value=n:t.set(e,n),n},Fu,_c,ku=new Set;function Ww(e){hc=void 0,ku.add(e)}function jw(e){hc=void 0,ku.delete(e)}var ko={};function uy(){if(_c||(_c=Object.freeze({register:cy,get:Yw,on:qw}),typeof window>\\\"u\\\"))return _c;let e=Object.freeze({register:cy});try{window.addEventListener(\\\"wallet-standard:register-wallet\\\",({detail:t})=>t(e))}catch(t){console.error(`wallet-standard:register-wallet event listener could not be added\\n`,t)}try{window.dispatchEvent(new Ng(e))}catch(t){console.error(`wallet-standard:app-ready event could not be dispatched\\n`,t)}return _c}function cy(...e){return e=e.filter(t=>!ku.has(t)),e.length?(e.forEach(t=>Ww(t)),ko.register?.forEach(t=>sy(()=>t(...e))),function(){e.forEach(n=>jw(n)),ko.unregister?.forEach(n=>sy(()=>n(...e)))}):()=>{}}var hc;function Yw(){return hc||(hc=[...ku]),hc}function qw(e,t){return ko[e]?.push(t)||(ko[e]=[t]),function(){ko[e]=ko[e]?.filter(r=>t!==r)}}function sy(e){try{e()}catch(t){console.error(t)}}var Ng=class extends Event{get detail(){return Vw(this,Fu,\\\"f\\\")}get type(){return\\\"wallet-standard:app-ready\\\"}constructor(t){super(\\\"wallet-standard:app-ready\\\",{bubbles:!1,cancelable:!1,composed:!1}),Fu.set(this,void 0),Hw(this,Fu,t,\\\"f\\\")}preventDefault(){throw new Error(\\\"preventDefault cannot be called\\\")}stopImmediatePropagation(){throw new Error(\\\"stopImmediatePropagation cannot be called\\\")}stopPropagation(){throw new Error(\\\"stopPropagation cannot be called\\\")}};Fu=new WeakMap;function ly(){let[e,t]=(0,Gu.useState)([]);return(0,Gu.useEffect)(()=>{let n=uy(),r=()=>n.get().filter(XS).map(i=>({value:i.name,wallet:i}));t(r());let a=n.on(\\\"register\\\",()=>{t(r())}),o=n.on(\\\"unregister\\\",()=>{t(r())});return()=>{a(),o()}},[]),e}h();var dy=Ke(Sn(),1);function fy({walletOptions:e,activeWallet:t,targetChain:n,attemptedSilentConnectWalletsRef:r,setSelectedWalletValue:a,setActiveWallet:o,setActiveAccount:i,refreshBalance:c,setStatus:s}){(0,dy.useEffect)(()=>{if(!t)for(let u of e){if(r.current.has(u.value))continue;r.current.add(u.value);let l=Pu(u.wallet);l&&(async()=>{try{let{accounts:d}=await l.connect({silent:!0});if(!d?.length)return;let m=d.find(A=>A.chains?.includes(n))??d[0];if(!m)return;a(u.value),o(u.wallet),i(m),s(\\\"\\\"),await c(m)}catch{}})()}},[e,t,n,r,a,o,i,c,s])}var H=Ke(Xn(),1);function my({paymentRequired:e,onSuccessfulResponse:t}){let[n,r]=(0,Ue.useState)(\\\"\\\"),[a,o]=(0,Ue.useState)(!1),i=ly(),[c,s]=(0,Ue.useState)(\\\"\\\"),[u,l]=(0,Ue.useState)(null),[d,m]=(0,Ue.useState)(null),[A,S]=(0,Ue.useState)(!0),O=(0,Ue.useRef)(new Set),[X,g]=(0,Ue.useState)(\\\"connect\\\"),[f,_]=(0,Ue.useState)(!1),E=window.t402,D=E.amount,$=e.accepts[0];if(!$)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let v=$.network,U=jS(v),G=v.includes(mc.MAINNET)?\\\"solana:mainnet\\\":\\\"solana:devnet\\\",{usdcBalance:vt,formattedBalance:pc,isFetchingBalance:_y,refreshBalance:va,resetBalance:Go}=ny({activeAccount:d,paymentRequired:e,onStatus:r}),Vu=ay({activeWallet:u,activeAccount:d,targetChain:G});(0,Ue.useEffect)(()=>{!c&&i.length===1&&s(i[0].value)},[i,c]),(0,Ue.useEffect)(()=>{d?X===\\\"connect\\\"&&g(\\\"sign\\\"):g(\\\"connect\\\")},[d,X]),(0,Ue.useEffect)(()=>{u&&(i.some(Te=>Te.wallet===u)||(l(null),m(null),s(\\\"\\\"),Go()))},[i,u,Go]),fy({walletOptions:i,activeWallet:u,targetChain:G,attemptedSilentConnectWalletsRef:O,setSelectedWalletValue:s,setActiveWallet:l,setActiveAccount:m,refreshBalance:va,setStatus:r}),iy({activeWallet:u,targetChain:G,chainName:U,setActiveWallet:l,setActiveAccount:m,setSelectedWalletValue:s,setStatus:r,resetBalance:Go,refreshBalance:va});let hy=(0,Ue.useCallback)(async()=>{let Te=i.find(qt=>qt.value===c)?.wallet;if(!Te){r(\\\"Select a Solana wallet to continue.\\\");return}let Ec=Pu(Te);if(!Ec){r(\\\"Selected wallet does not support standard connect.\\\");return}try{r(\\\"Connecting to wallet...\\\");let{accounts:qt}=await Ec.connect();if(!qt?.length)throw new Error(\\\"Wallet did not provide any accounts.\\\");let Lr=qt.find(Rc=>Rc.chains?.includes(G))??qt[0];l(Te),m(Lr),r(\\\"\\\"),await va(Lr)}catch(qt){console.error(\\\"Failed to connect wallet\\\",qt),r(qt instanceof Error?qt.message:\\\"Failed to connect wallet.\\\")}},[i,c,G,va]),py=(0,Ue.useCallback)(async()=>{let Te=u&&JS(u);Te&&await Te.disconnect().catch(console.error),l(null),m(null),Go(),r(\\\"\\\")},[u,Go]),Ey=(0,Ue.useCallback)(async()=>{if(E){if(!Vu||!d){r(\\\"Connect a Solana wallet before paying.\\\");return}o(!0),_(!0);try{if(vt===null||vt===0n){r(\\\"Checking USDC balance...\\\");let Rc=await va();if(!Rc||Rc===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${U}.`)}g(\\\"sign\\\"),r(\\\"Creating payment signature...\\\");let Te=new BS;SS(Te,{signer:Vu});let Ec=await Te.createPaymentPayload(e),qt=btoa(JSON.stringify(Ec));g(\\\"submit\\\"),r(\\\"Requesting content with payment...\\\");let Lr=await fetch(E.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":qt,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(Lr.ok)g(\\\"confirm\\\"),_(!1),await t(Lr);else throw new Error(`Request failed: ${Lr.status} ${Lr.statusText}`)}catch(Te){r(Te instanceof Error?Te.message:\\\"Payment failed.\\\"),_(!1)}finally{o(!1)}}},[E,Vu,d,vt,va,U,e,t]);return(0,H.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,H.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,H.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,H.jsxs)(\\\"p\\\",{children:[e.resource?.description&&`${e.resource.description}.`,\\\" To access this content, please pay $\\\",D,\\\" \\\",U,\\\" USDC.\\\"]}),String(v).includes(\\\"devnet\\\")&&(0,H.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"Need Solana Devnet USDC?\\\",\\\" \\\",(0,H.jsxs)(\\\"a\\\",{href:\\\"https://faucet.circle.com/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:[\\\"Request some \\\",(0,H.jsx)(\\\"u\\\",{children:\\\"here\\\"}),\\\".\\\"]})]})]}),(0,H.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[d&&(0,H.jsx)(YS,{currentStep:X,isProcessing:f,hasError:!!n&&!a}),(0,H.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,H.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,H.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,H.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:d?`${d.address.slice(0,6)}...${d.address.slice(-4)}`:\\\"-\\\"})]}),(0,H.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,H.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,H.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:d?(0,H.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>S(Te=>!Te),children:!A&&pc?`$${pc} USDC`:_y?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\\\"}):\\\"-\\\"})]}),(0,H.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,H.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,H.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",D,\\\" USDC\\\"]})]}),(0,H.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,H.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,H.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:U})]})]}),(0,H.jsxs)(\\\"div\\\",{className:\\\"cta-container\\\",children:[d?(0,H.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:py,children:\\\"Disconnect\\\"}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(\\\"select\\\",{className:\\\"input\\\",value:c,onChange:Te=>s(Te.target.value),children:[(0,H.jsx)(\\\"option\\\",{value:\\\"\\\",disabled:!0,children:\\\"Select a wallet\\\"}),i.map(Te=>(0,H.jsx)(\\\"option\\\",{value:Te.value,children:Te.wallet.name},Te.value))]}),(0,H.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:hy,disabled:!c,children:\\\"Connect wallet\\\"})]}),d&&(0,H.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:Ey,disabled:a,children:a?(0,H.jsx)(VS,{}):\\\"Pay now\\\"})]}),!i.length&&(0,H.jsx)(\\\"div\\\",{className:\\\"status\\\",children:\\\"Install a Solana wallet such as Phantom to continue, then refresh this page.\\\"}),n&&(0,H.jsx)(\\\"div\\\",{className:\\\"status\\\",children:n})]})]})}var Ay=Ke(Xn(),1);window.addEventListener(\\\"load\\\",()=>{let e=document.getElementById(\\\"root\\\");if(!e){console.error(\\\"Root element not found\\\");return}let n=window.t402.paymentRequired;if(!n?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,gy.createRoot)(e).render((0,Ay.jsx)(my,{paymentRequired:n,onSuccessfulResponse:async a=>{let o=a.headers.get(\\\"content-type\\\");if(o&&o.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await a.text();else{let i=await a.blob(),c=window.URL.createObjectURL(i);window.location.href=c}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for SVM paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const SVM_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/svm.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/svm.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline TON paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const TON_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var eN=Object.create;var dv=Object.defineProperty;var tN=Object.getOwnPropertyDescriptor;var nN=Object.getOwnPropertyNames;var rN=Object.getPrototypeOf,iN=Object.prototype.hasOwnProperty;var dh=(t=>typeof require<\\\"u\\\"?require:typeof Proxy<\\\"u\\\"?new Proxy(t,{get:(e,n)=>(typeof require<\\\"u\\\"?require:e)[n]}):t)(function(t){if(typeof require<\\\"u\\\")return require.apply(this,arguments);throw Error('Dynamic require of \\\"'+t+'\\\" is not supported')});var Dl=(t,e)=>()=>(t&&(e=t(t=0)),e);var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),E_=(t,e)=>{for(var n in e)dv(t,n,{get:e[n],enumerable:!0})},aN=(t,e,n,r)=>{if(e&&typeof e==\\\"object\\\"||typeof e==\\\"function\\\")for(let i of nN(e))!iN.call(t,i)&&i!==n&&dv(t,i,{get:()=>e[i],enumerable:!(r=tN(e,i))||r.enumerable});return t};var Tn=(t,e,n)=>(n=t!=null?eN(rN(t)):{},aN(e||!t||!t.__esModule?dv(n,\\\"default\\\",{value:t,enumerable:!0}):n,t));var B_=V(Lg=>{\\\"use strict\\\";b();Lg.byteLength=sN;Lg.toByteArray=cN;Lg.fromByteArray=fN;var za=[],Fi=[],oN=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,fv=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(Ll=0,A_=fv.length;Ll<A_;++Ll)za[Ll]=fv[Ll],Fi[fv.charCodeAt(Ll)]=Ll;var Ll,A_;Fi[45]=62;Fi[95]=63;function k_(t){var e=t.length;if(e%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var n=t.indexOf(\\\"=\\\");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function sN(t){var e=k_(t),n=e[0],r=e[1];return(n+r)*3/4-r}function lN(t,e,n){return(e+n)*3/4-n}function cN(t){var e,n=k_(t),r=n[0],i=n[1],a=new oN(lN(t,r,i)),o=0,s=i>0?r-4:r,l;for(l=0;l<s;l+=4)e=Fi[t.charCodeAt(l)]<<18|Fi[t.charCodeAt(l+1)]<<12|Fi[t.charCodeAt(l+2)]<<6|Fi[t.charCodeAt(l+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=Fi[t.charCodeAt(l)]<<2|Fi[t.charCodeAt(l+1)]>>4,a[o++]=e&255),i===1&&(e=Fi[t.charCodeAt(l)]<<10|Fi[t.charCodeAt(l+1)]<<4|Fi[t.charCodeAt(l+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function uN(t){return za[t>>18&63]+za[t>>12&63]+za[t>>6&63]+za[t&63]}function dN(t,e,n){for(var r,i=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(uN(r));return i.join(\\\"\\\")}function fN(t){for(var e,n=t.length,r=n%3,i=[],a=16383,o=0,s=n-r;o<s;o+=a)i.push(dN(t,o,o+a>s?s:o+a));return r===1?(e=t[n-1],i.push(za[e>>2]+za[e<<4&63]+\\\"==\\\")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(za[e>>10]+za[e>>4&63]+za[e<<2&63]+\\\"=\\\")),i.join(\\\"\\\")}});var M_=V(hv=>{b();hv.read=function(t,e,n,r,i){var a,o,s=i*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,g=t[e+d];for(d+=h,a=g&(1<<-u)-1,g>>=-u,u+=s;u>0;a=a*256+t[e+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+t[e+d],d+=h,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(g?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-c}return(g?-1:1)*o*Math.pow(2,a-r)};hv.write=function(t,e,n,r,i,a){var o,s,l,c=a*8-i-1,u=(1<<c)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:a-1,y=r?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?e+=h/l:e+=h*Math.pow(2,1-d),e*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(e*l-1)*Math.pow(2,i),o=o+d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;t[n+g]=s&255,g+=y,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[n+g]=o&255,g+=y,o/=256,c-=8);t[n+g-y]|=E*128}});var K_=V(Su=>{\\\"use strict\\\";b();var gv=B_(),_u=M_(),R_=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Su.Buffer=ae;Su.SlowBuffer=bN;Su.INSPECT_MAX_BYTES=50;var qg=2147483647;Su.kMaxLength=qg;ae.TYPED_ARRAY_SUPPORT=hN();!ae.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function hN(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(ae.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(ae.isBuffer(this))return this.buffer}});Object.defineProperty(ae.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(ae.isBuffer(this))return this.byteOffset}});function _o(t){if(t>qg)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,ae.prototype),e}function ae(t,e,n){if(typeof t==\\\"number\\\"){if(typeof e==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return bv(t)}return N_(t,e,n)}ae.poolSize=8192;function N_(t,e,n){if(typeof t==\\\"string\\\")return pN(t,e);if(ArrayBuffer.isView(t))return mN(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(Da(t,ArrayBuffer)||t&&Da(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(Da(t,SharedArrayBuffer)||t&&Da(t.buffer,SharedArrayBuffer)))return mv(t,e,n);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let r=t.valueOf&&t.valueOf();if(r!=null&&r!==t)return ae.from(r,e,n);let i=yN(t);if(i)return i;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return ae.from(t[Symbol.toPrimitive](\\\"string\\\"),e,n);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}ae.from=function(t,e,n){return N_(t,e,n)};Object.setPrototypeOf(ae.prototype,Uint8Array.prototype);Object.setPrototypeOf(ae,Uint8Array);function P_(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function gN(t,e,n){return P_(t),t<=0?_o(t):e!==void 0?typeof n==\\\"string\\\"?_o(t).fill(e,n):_o(t).fill(e):_o(t)}ae.alloc=function(t,e,n){return gN(t,e,n)};function bv(t){return P_(t),_o(t<0?0:vv(t)|0)}ae.allocUnsafe=function(t){return bv(t)};ae.allocUnsafeSlow=function(t){return bv(t)};function pN(t,e){if((typeof e!=\\\"string\\\"||e===\\\"\\\")&&(e=\\\"utf8\\\"),!ae.isEncoding(e))throw new TypeError(\\\"Unknown encoding: \\\"+e);let n=j_(t,e)|0,r=_o(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}function pv(t){let e=t.length<0?0:vv(t.length)|0,n=_o(e);for(let r=0;r<e;r+=1)n[r]=t[r]&255;return n}function mN(t){if(Da(t,Uint8Array)){let e=new Uint8Array(t);return mv(e.buffer,e.byteOffset,e.byteLength)}return pv(t)}function mv(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let r;return e===void 0&&n===void 0?r=new Uint8Array(t):n===void 0?r=new Uint8Array(t,e):r=new Uint8Array(t,e,n),Object.setPrototypeOf(r,ae.prototype),r}function yN(t){if(ae.isBuffer(t)){let e=vv(t.length)|0,n=_o(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||xv(t.length)?_o(0):pv(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return pv(t.data)}function vv(t){if(t>=qg)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+qg.toString(16)+\\\" bytes\\\");return t|0}function bN(t){return+t!=t&&(t=0),ae.alloc(+t)}ae.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ae.prototype};ae.compare=function(e,n){if(Da(e,Uint8Array)&&(e=ae.from(e,e.offset,e.byteLength)),Da(n,Uint8Array)&&(n=ae.from(n,n.offset,n.byteLength)),!ae.isBuffer(e)||!ae.isBuffer(n))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let r=e.length,i=n.length;for(let a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==n[a]){r=e[a],i=n[a];break}return r<i?-1:i<r?1:0};ae.isEncoding=function(e){switch(String(e).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};ae.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(e.length===0)return ae.alloc(0);let r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;let i=ae.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){let o=e[r];if(Da(o,Uint8Array))a+o.length>i.length?(ae.isBuffer(o)||(o=ae.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ae.isBuffer(o))o.copy(i,a);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');a+=o.length}return i};function j_(t,e){if(ae.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Da(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let n=t.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(e){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return n;case\\\"utf8\\\":case\\\"utf-8\\\":return yv(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return n*2;case\\\"hex\\\":return n>>>1;case\\\"base64\\\":return $_(t).length;default:if(i)return r?-1:yv(t).length;e=(\\\"\\\"+e).toLowerCase(),i=!0}}ae.byteLength=j_;function vN(t,e,n){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return BN(this,e,n);case\\\"utf8\\\":case\\\"utf-8\\\":return D_(this,e,n);case\\\"ascii\\\":return AN(this,e,n);case\\\"latin1\\\":case\\\"binary\\\":return kN(this,e,n);case\\\"base64\\\":return TN(this,e,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return MN(this,e,n);default:if(r)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),r=!0}}ae.prototype._isBuffer=!0;function ql(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}ae.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let n=0;n<e;n+=2)ql(this,n,n+1);return this};ae.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let n=0;n<e;n+=4)ql(this,n,n+3),ql(this,n+1,n+2);return this};ae.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let n=0;n<e;n+=8)ql(this,n,n+7),ql(this,n+1,n+6),ql(this,n+2,n+5),ql(this,n+3,n+4);return this};ae.prototype.toString=function(){let e=this.length;return e===0?\\\"\\\":arguments.length===0?D_(this,0,e):vN.apply(this,arguments)};ae.prototype.toLocaleString=ae.prototype.toString;ae.prototype.equals=function(e){if(!ae.isBuffer(e))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===e?!0:ae.compare(this,e)===0};ae.prototype.inspect=function(){let e=\\\"\\\",n=Su.INSPECT_MAX_BYTES;return e=this.toString(\\\"hex\\\",0,n).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>n&&(e+=\\\" ... \\\"),\\\"<Buffer \\\"+e+\\\">\\\"};R_&&(ae.prototype[R_]=ae.prototype.inspect);ae.prototype.compare=function(e,n,r,i,a){if(Da(e,Uint8Array)&&(e=ae.from(e,e.offset,e.byteLength)),!ae.isBuffer(e))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),n<0||r>e.length||i<0||a>this.length)throw new RangeError(\\\"out of range index\\\");if(i>=a&&n>=r)return 0;if(i>=a)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;let o=a-i,s=r-n,l=Math.min(o,s),c=this.slice(i,a),u=e.slice(n,r);for(let d=0;d<l;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0};function z_(t,e,n,r,i){if(t.length===0)return-1;if(typeof n==\\\"string\\\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,xv(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof e==\\\"string\\\"&&(e=ae.from(e,r)),ae.isBuffer(e))return e.length===0?-1:O_(t,e,n,r,i);if(typeof e==\\\"number\\\")return e=e&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O_(t,[e],n,r,i);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function O_(t,e,n,r,i){let a=1,o=t.length,s=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===\\\"ucs2\\\"||r===\\\"ucs-2\\\"||r===\\\"utf16le\\\"||r===\\\"utf-16le\\\")){if(t.length<2||e.length<2)return-1;a=2,o/=2,s/=2,n/=2}function l(u,d){return a===1?u[d]:u.readUInt16BE(d*a)}let c;if(i){let u=-1;for(c=n;c<o;c++)if(l(t,c)===l(e,u===-1?0:c-u)){if(u===-1&&(u=c),c-u+1===s)return u*a}else u!==-1&&(c-=c-u),u=-1}else for(n+s>o&&(n=o-s),c=n;c>=0;c--){let u=!0;for(let d=0;d<s;d++)if(l(t,c+d)!==l(e,d)){u=!1;break}if(u)return c}return-1}ae.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1};ae.prototype.indexOf=function(e,n,r){return z_(this,e,n,r,!0)};ae.prototype.lastIndexOf=function(e,n,r){return z_(this,e,n,r,!1)};function wN(t,e,n,r){n=Number(n)||0;let i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=e.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let s=parseInt(e.substr(o*2,2),16);if(xv(s))return o;t[n+o]=s}return o}function xN(t,e,n,r){return Vg(yv(e,t.length-n),t,n,r)}function _N(t,e,n,r){return Vg(UN(e),t,n,r)}function CN(t,e,n,r){return Vg($_(e),t,n,r)}function SN(t,e,n,r){return Vg(NN(e,t.length-n),t,n,r)}ae.prototype.write=function(e,n,r,i){if(n===void 0)i=\\\"utf8\\\",r=this.length,n=0;else if(r===void 0&&typeof n==\\\"string\\\")i=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,i===void 0&&(i=\\\"utf8\\\")):(i=r,r=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let a=this.length-n;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");i||(i=\\\"utf8\\\");let o=!1;for(;;)switch(i){case\\\"hex\\\":return wN(this,e,n,r);case\\\"utf8\\\":case\\\"utf-8\\\":return xN(this,e,n,r);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return _N(this,e,n,r);case\\\"base64\\\":return CN(this,e,n,r);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return SN(this,e,n,r);default:if(o)throw new TypeError(\\\"Unknown encoding: \\\"+i);i=(\\\"\\\"+i).toLowerCase(),o=!0}};ae.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function TN(t,e,n){return e===0&&n===t.length?gv.fromByteArray(t):gv.fromByteArray(t.slice(e,n))}function D_(t,e,n){n=Math.min(t.length,n);let r=[],i=e;for(;i<n;){let a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){let l,c,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],(l&192)===128&&(d=(a&31)<<6|l&63,d>127&&(o=d));break;case 3:l=t[i+1],c=t[i+2],(l&192)===128&&(c&192)===128&&(d=(a&15)<<12|(l&63)<<6|c&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:l=t[i+1],c=t[i+2],u=t[i+3],(l&192)===128&&(c&192)===128&&(u&192)===128&&(d=(a&15)<<18|(l&63)<<12|(c&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return EN(r)}var I_=4096;function EN(t){let e=t.length;if(e<=I_)return String.fromCharCode.apply(String,t);let n=\\\"\\\",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=I_));return n}function AN(t,e,n){let r=\\\"\\\";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]&127);return r}function kN(t,e,n){let r=\\\"\\\";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function BN(t,e,n){let r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i=\\\"\\\";for(let a=e;a<n;++a)i+=PN[t[a]];return i}function MN(t,e,n){let r=t.slice(e,n),i=\\\"\\\";for(let a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}ae.prototype.slice=function(e,n){let r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);let i=this.subarray(e,n);return Object.setPrototypeOf(i,ae.prototype),i};function yr(t,e,n){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+e>n)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}ae.prototype.readUintLE=ae.prototype.readUIntLE=function(e,n,r){e=e>>>0,n=n>>>0,r||yr(e,n,this.length);let i=this[e],a=1,o=0;for(;++o<n&&(a*=256);)i+=this[e+o]*a;return i};ae.prototype.readUintBE=ae.prototype.readUIntBE=function(e,n,r){e=e>>>0,n=n>>>0,r||yr(e,n,this.length);let i=this[e+--n],a=1;for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i};ae.prototype.readUint8=ae.prototype.readUInt8=function(e,n){return e=e>>>0,n||yr(e,1,this.length),this[e]};ae.prototype.readUint16LE=ae.prototype.readUInt16LE=function(e,n){return e=e>>>0,n||yr(e,2,this.length),this[e]|this[e+1]<<8};ae.prototype.readUint16BE=ae.prototype.readUInt16BE=function(e,n){return e=e>>>0,n||yr(e,2,this.length),this[e]<<8|this[e+1]};ae.prototype.readUint32LE=ae.prototype.readUInt32LE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};ae.prototype.readUint32BE=ae.prototype.readUInt32BE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};ae.prototype.readBigUInt64LE=Ts(function(e){e=e>>>0,Cu(e,\\\"offset\\\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&fh(e,this.length-8);let i=n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(i)+(BigInt(a)<<BigInt(32))});ae.prototype.readBigUInt64BE=Ts(function(e){e=e>>>0,Cu(e,\\\"offset\\\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&fh(e,this.length-8);let i=n*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(i)<<BigInt(32))+BigInt(a)});ae.prototype.readIntLE=function(e,n,r){e=e>>>0,n=n>>>0,r||yr(e,n,this.length);let i=this[e],a=1,o=0;for(;++o<n&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*n)),i};ae.prototype.readIntBE=function(e,n,r){e=e>>>0,n=n>>>0,r||yr(e,n,this.length);let i=n,a=1,o=this[e+--i];for(;i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*n)),o};ae.prototype.readInt8=function(e,n){return e=e>>>0,n||yr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};ae.prototype.readInt16LE=function(e,n){e=e>>>0,n||yr(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};ae.prototype.readInt16BE=function(e,n){e=e>>>0,n||yr(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};ae.prototype.readInt32LE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};ae.prototype.readInt32BE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};ae.prototype.readBigInt64LE=Ts(function(e){e=e>>>0,Cu(e,\\\"offset\\\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&fh(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});ae.prototype.readBigInt64BE=Ts(function(e){e=e>>>0,Cu(e,\\\"offset\\\");let n=this[e],r=this[e+7];(n===void 0||r===void 0)&&fh(e,this.length-8);let i=(n<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)});ae.prototype.readFloatLE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),_u.read(this,e,!0,23,4)};ae.prototype.readFloatBE=function(e,n){return e=e>>>0,n||yr(e,4,this.length),_u.read(this,e,!1,23,4)};ae.prototype.readDoubleLE=function(e,n){return e=e>>>0,n||yr(e,8,this.length),_u.read(this,e,!0,52,8)};ae.prototype.readDoubleBE=function(e,n){return e=e>>>0,n||yr(e,8,this.length),_u.read(this,e,!1,52,8)};function ai(t,e,n,r,i,a){if(!ae.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('\\\"value\\\" argument is out of bounds');if(n+r>t.length)throw new RangeError(\\\"Index out of range\\\")}ae.prototype.writeUintLE=ae.prototype.writeUIntLE=function(e,n,r,i){if(e=+e,n=n>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;ai(this,e,n,r,s,0)}let a=1,o=0;for(this[n]=e&255;++o<r&&(a*=256);)this[n+o]=e/a&255;return n+r};ae.prototype.writeUintBE=ae.prototype.writeUIntBE=function(e,n,r,i){if(e=+e,n=n>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;ai(this,e,n,r,s,0)}let a=r-1,o=1;for(this[n+a]=e&255;--a>=0&&(o*=256);)this[n+a]=e/o&255;return n+r};ae.prototype.writeUint8=ae.prototype.writeUInt8=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,1,255,0),this[n]=e&255,n+1};ae.prototype.writeUint16LE=ae.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,2,65535,0),this[n]=e&255,this[n+1]=e>>>8,n+2};ae.prototype.writeUint16BE=ae.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=e&255,n+2};ae.prototype.writeUint32LE=ae.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255,n+4};ae.prototype.writeUint32BE=ae.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};function L_(t,e,n,r,i){F_(e,r,i,t,n,7);let a=Number(e&BigInt(4294967295));t[n++]=a,a=a>>8,t[n++]=a,a=a>>8,t[n++]=a,a=a>>8,t[n++]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=o,o=o>>8,t[n++]=o,o=o>>8,t[n++]=o,o=o>>8,t[n++]=o,n}function q_(t,e,n,r,i){F_(e,r,i,t,n,7);let a=Number(e&BigInt(4294967295));t[n+7]=a,a=a>>8,t[n+6]=a,a=a>>8,t[n+5]=a,a=a>>8,t[n+4]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=o,o=o>>8,t[n+2]=o,o=o>>8,t[n+1]=o,o=o>>8,t[n]=o,n+8}ae.prototype.writeBigUInt64LE=Ts(function(e,n=0){return L_(this,e,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});ae.prototype.writeBigUInt64BE=Ts(function(e,n=0){return q_(this,e,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});ae.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n=n>>>0,!i){let l=Math.pow(2,8*r-1);ai(this,e,n,r,l-1,-l)}let a=0,o=1,s=0;for(this[n]=e&255;++a<r&&(o*=256);)e<0&&s===0&&this[n+a-1]!==0&&(s=1),this[n+a]=(e/o>>0)-s&255;return n+r};ae.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n=n>>>0,!i){let l=Math.pow(2,8*r-1);ai(this,e,n,r,l-1,-l)}let a=r-1,o=1,s=0;for(this[n+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[n+a+1]!==0&&(s=1),this[n+a]=(e/o>>0)-s&255;return n+r};ae.prototype.writeInt8=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=e&255,n+1};ae.prototype.writeInt16LE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,2,32767,-32768),this[n]=e&255,this[n+1]=e>>>8,n+2};ae.prototype.writeInt16BE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=e&255,n+2};ae.prototype.writeInt32LE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,4,2147483647,-2147483648),this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4};ae.prototype.writeInt32BE=function(e,n,r){return e=+e,n=n>>>0,r||ai(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};ae.prototype.writeBigInt64LE=Ts(function(e,n=0){return L_(this,e,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});ae.prototype.writeBigInt64BE=Ts(function(e,n=0){return q_(this,e,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function V_(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError(\\\"Index out of range\\\");if(n<0)throw new RangeError(\\\"Index out of range\\\")}function H_(t,e,n,r,i){return e=+e,n=n>>>0,i||V_(t,e,n,4,34028234663852886e22,-34028234663852886e22),_u.write(t,e,n,r,23,4),n+4}ae.prototype.writeFloatLE=function(e,n,r){return H_(this,e,n,!0,r)};ae.prototype.writeFloatBE=function(e,n,r){return H_(this,e,n,!1,r)};function W_(t,e,n,r,i){return e=+e,n=n>>>0,i||V_(t,e,n,8,17976931348623157e292,-17976931348623157e292),_u.write(t,e,n,r,52,8),n+8}ae.prototype.writeDoubleLE=function(e,n,r){return W_(this,e,n,!0,r)};ae.prototype.writeDoubleBE=function(e,n,r){return W_(this,e,n,!1,r)};ae.prototype.copy=function(e,n,r,i){if(!ae.isBuffer(e))throw new TypeError(\\\"argument should be a Buffer\\\");if(r||(r=0),!i&&i!==0&&(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(r<0||r>=this.length)throw new RangeError(\\\"Index out of range\\\");if(i<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);let a=i-r;return this===e&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(n,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),n),a};ae.prototype.fill=function(e,n,r,i){if(typeof e==\\\"string\\\"){if(typeof n==\\\"string\\\"?(i=n,n=0,r=this.length):typeof r==\\\"string\\\"&&(i=r,r=this.length),i!==void 0&&typeof i!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof i==\\\"string\\\"&&!ae.isEncoding(i))throw new TypeError(\\\"Unknown encoding: \\\"+i);if(e.length===1){let o=e.charCodeAt(0);(i===\\\"utf8\\\"&&o<128||i===\\\"latin1\\\")&&(e=o)}}else typeof e==\\\"number\\\"?e=e&255:typeof e==\\\"boolean\\\"&&(e=Number(e));if(n<0||this.length<n||this.length<r)throw new RangeError(\\\"Out of range index\\\");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let a;if(typeof e==\\\"number\\\")for(a=n;a<r;++a)this[a]=e;else{let o=ae.isBuffer(e)?e:ae.from(e,i),s=o.length;if(s===0)throw new TypeError('The value \\\"'+e+'\\\" is invalid for argument \\\"value\\\"');for(a=0;a<r-n;++a)this[a+n]=o[a%s]}return this};var xu={};function wv(t,e,n){xu[t]=class extends n{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}wv(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);wv(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,e){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof e}`},TypeError);wv(\\\"ERR_OUT_OF_RANGE\\\",function(t,e,n){let r=`The value of \\\"${t}\\\" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U_(String(n)):typeof n==\\\"bigint\\\"&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U_(i)),i+=\\\"n\\\"),r+=` It must be ${e}. Received ${i}`,r},RangeError);function U_(t){let e=\\\"\\\",n=t.length,r=t[0]===\\\"-\\\"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function RN(t,e,n){Cu(e,\\\"offset\\\"),(t[e]===void 0||t[e+n]===void 0)&&fh(e,t.length-(n+1))}function F_(t,e,n,r,i,a){if(t>n||t<e){let o=typeof e==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",s;throw a>3?e===0||e===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${e}${o} and <= ${n}${o}`,new xu.ERR_OUT_OF_RANGE(\\\"value\\\",s,t)}RN(r,i,a)}function Cu(t,e){if(typeof t!=\\\"number\\\")throw new xu.ERR_INVALID_ARG_TYPE(e,\\\"number\\\",t)}function fh(t,e,n){throw Math.floor(t)!==t?(Cu(t,n),new xu.ERR_OUT_OF_RANGE(n||\\\"offset\\\",\\\"an integer\\\",t)):e<0?new xu.ERR_BUFFER_OUT_OF_BOUNDS:new xu.ERR_OUT_OF_RANGE(n||\\\"offset\\\",`>= ${n?1:0} and <= ${e}`,t)}var ON=/[^+/0-9A-Za-z-_]/g;function IN(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace(ON,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function yv(t,e){e=e||1/0;let n,r=t.length,i=null,a=[];for(let o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\\\"Invalid code point\\\")}return a}function UN(t){let e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function NN(t,e){let n,r,i,a=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function $_(t){return gv.toByteArray(IN(t))}function Vg(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Da(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function xv(t){return t!==t}var PN=(function(){let t=\\\"0123456789abcdef\\\",e=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e})();function Ts(t){return typeof BigInt>\\\"u\\\"?jN:t}function jN(){throw new Error(\\\"BigInt not supported\\\")}});var Z_,b=Dl(()=>{\\\"use strict\\\";Z_=Tn(K_(),1);globalThis.Buffer=Z_.Buffer});var i8=V(Vn=>{\\\"use strict\\\";b();function Tv(t,e){var n=t.length;t.push(e);e:for(;0<n;){var r=n-1>>>1,i=t[r];if(0<Hg(i,e))t[r]=e,t[n]=i,n=r;else break e}}function La(t){return t.length===0?null:t[0]}function Fg(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;e:for(var r=0,i=t.length,a=i>>>1;r<a;){var o=2*(r+1)-1,s=t[o],l=o+1,c=t[l];if(0>Hg(s,n))l<i&&0>Hg(c,s)?(t[r]=c,t[l]=n,r=l):(t[r]=s,t[o]=n,r=o);else if(l<i&&0>Hg(c,n))t[r]=c,t[l]=n,r=l;else break e}}return e}function Hg(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Vn.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(Y_=performance,Vn.unstable_now=function(){return Y_.now()}):(_v=Date,G_=_v.now(),Vn.unstable_now=function(){return _v.now()-G_});var Y_,_v,G_,Co=[],Es=[],zN=1,$i=null,Nr=3,Ev=!1,hh=!1,gh=!1,Av=!1,J_=typeof setTimeout==\\\"function\\\"?setTimeout:null,e8=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,Q_=typeof setImmediate<\\\"u\\\"?setImmediate:null;function Wg(t){for(var e=La(Es);e!==null;){if(e.callback===null)Fg(Es);else if(e.startTime<=t)Fg(Es),e.sortIndex=e.expirationTime,Tv(Co,e);else break;e=La(Es)}}function kv(t){if(gh=!1,Wg(t),!hh)if(La(Co)!==null)hh=!0,Eu||(Eu=!0,Tu());else{var e=La(Es);e!==null&&Bv(kv,e.startTime-t)}}var Eu=!1,ph=-1,t8=5,n8=-1;function r8(){return Av?!0:!(Vn.unstable_now()-n8<t8)}function Cv(){if(Av=!1,Eu){var t=Vn.unstable_now();n8=t;var e=!0;try{e:{hh=!1,gh&&(gh=!1,e8(ph),ph=-1),Ev=!0;var n=Nr;try{t:{for(Wg(t),$i=La(Co);$i!==null&&!($i.expirationTime>t&&r8());){var r=$i.callback;if(typeof r==\\\"function\\\"){$i.callback=null,Nr=$i.priorityLevel;var i=r($i.expirationTime<=t);if(t=Vn.unstable_now(),typeof i==\\\"function\\\"){$i.callback=i,Wg(t),e=!0;break t}$i===La(Co)&&Fg(Co),Wg(t)}else Fg(Co);$i=La(Co)}if($i!==null)e=!0;else{var a=La(Es);a!==null&&Bv(kv,a.startTime-t),e=!1}}break e}finally{$i=null,Nr=n,Ev=!1}e=void 0}}finally{e?Tu():Eu=!1}}}var Tu;typeof Q_==\\\"function\\\"?Tu=function(){Q_(Cv)}:typeof MessageChannel<\\\"u\\\"?(Sv=new MessageChannel,X_=Sv.port2,Sv.port1.onmessage=Cv,Tu=function(){X_.postMessage(null)}):Tu=function(){J_(Cv,0)};var Sv,X_;function Bv(t,e){ph=J_(function(){t(Vn.unstable_now())},e)}Vn.unstable_IdlePriority=5;Vn.unstable_ImmediatePriority=1;Vn.unstable_LowPriority=4;Vn.unstable_NormalPriority=3;Vn.unstable_Profiling=null;Vn.unstable_UserBlockingPriority=2;Vn.unstable_cancelCallback=function(t){t.callback=null};Vn.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):t8=0<t?Math.floor(1e3/t):5};Vn.unstable_getCurrentPriorityLevel=function(){return Nr};Vn.unstable_next=function(t){switch(Nr){case 1:case 2:case 3:var e=3;break;default:e=Nr}var n=Nr;Nr=e;try{return t()}finally{Nr=n}};Vn.unstable_requestPaint=function(){Av=!0};Vn.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Nr;Nr=t;try{return e()}finally{Nr=n}};Vn.unstable_scheduleCallback=function(t,e,n){var r=Vn.unstable_now();switch(typeof n==\\\"object\\\"&&n!==null?(n=n.delay,n=typeof n==\\\"number\\\"&&0<n?r+n:r):n=r,t){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,t={id:zN++,callback:e,priorityLevel:t,startTime:n,expirationTime:i,sortIndex:-1},n>r?(t.sortIndex=n,Tv(Es,t),La(Co)===null&&t===La(Es)&&(gh?(e8(ph),ph=-1):gh=!0,Bv(kv,n-r))):(t.sortIndex=i,Tv(Co,t),hh||Ev||(hh=!0,Eu||(Eu=!0,Tu()))),t};Vn.unstable_shouldYield=r8;Vn.unstable_wrapCallback=function(t){var e=Nr;return function(){var n=Nr;Nr=e;try{return t.apply(this,arguments)}finally{Nr=n}}}});var o8=V((qoe,a8)=>{\\\"use strict\\\";b();a8.exports=i8()});var y8=V(Ct=>{\\\"use strict\\\";b();var Ov=Symbol.for(\\\"react.transitional.element\\\"),DN=Symbol.for(\\\"react.portal\\\"),LN=Symbol.for(\\\"react.fragment\\\"),qN=Symbol.for(\\\"react.strict_mode\\\"),VN=Symbol.for(\\\"react.profiler\\\"),HN=Symbol.for(\\\"react.consumer\\\"),WN=Symbol.for(\\\"react.context\\\"),FN=Symbol.for(\\\"react.forward_ref\\\"),$N=Symbol.for(\\\"react.suspense\\\"),KN=Symbol.for(\\\"react.memo\\\"),d8=Symbol.for(\\\"react.lazy\\\"),ZN=Symbol.for(\\\"react.activity\\\"),s8=Symbol.iterator;function YN(t){return t===null||typeof t!=\\\"object\\\"?null:(t=s8&&t[s8]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var f8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h8=Object.assign,g8={};function ku(t,e,n){this.props=t,this.context=e,this.refs=g8,this.updater=n||f8}ku.prototype.isReactComponent={};ku.prototype.setState=function(t,e){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,e,\\\"setState\\\")};ku.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function p8(){}p8.prototype=ku.prototype;function Iv(t,e,n){this.props=t,this.context=e,this.refs=g8,this.updater=n||f8}var Uv=Iv.prototype=new p8;Uv.constructor=Iv;h8(Uv,ku.prototype);Uv.isPureReactComponent=!0;var l8=Array.isArray;function Rv(){}var Pn={H:null,A:null,T:null,S:null},m8=Object.prototype.hasOwnProperty;function Nv(t,e,n){var r=n.ref;return{$$typeof:Ov,type:t,key:e,ref:r!==void 0?r:null,props:n}}function GN(t,e){return Nv(t.type,e,t.props)}function Pv(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===Ov}function QN(t){var e={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(n){return e[n]})}var c8=/\\\\/+/g;function Mv(t,e){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?QN(\\\"\\\"+t.key):e.toString(36)}function XN(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(Rv,Rv):(t.status=\\\"pending\\\",t.then(function(e){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=e)},function(e){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=e)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function Au(t,e,n,r,i){var a=typeof t;(a===\\\"undefined\\\"||a===\\\"boolean\\\")&&(t=null);var o=!1;if(t===null)o=!0;else switch(a){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":o=!0;break;case\\\"object\\\":switch(t.$$typeof){case Ov:case DN:o=!0;break;case d8:return o=t._init,Au(o(t._payload),e,n,r,i)}}if(o)return i=i(t),o=r===\\\"\\\"?\\\".\\\"+Mv(t,0):r,l8(i)?(n=\\\"\\\",o!=null&&(n=o.replace(c8,\\\"$&/\\\")+\\\"/\\\"),Au(i,e,n,\\\"\\\",function(c){return c})):i!=null&&(Pv(i)&&(i=GN(i,n+(i.key==null||t&&t.key===i.key?\\\"\\\":(\\\"\\\"+i.key).replace(c8,\\\"$&/\\\")+\\\"/\\\")+o)),e.push(i)),1;o=0;var s=r===\\\"\\\"?\\\".\\\":r+\\\":\\\";if(l8(t))for(var l=0;l<t.length;l++)r=t[l],a=s+Mv(r,l),o+=Au(r,e,n,a,i);else if(l=YN(t),typeof l==\\\"function\\\")for(t=l.call(t),l=0;!(r=t.next()).done;)r=r.value,a=s+Mv(r,l++),o+=Au(r,e,n,a,i);else if(a===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Au(XN(t),e,n,r,i);throw e=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(e===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":e)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return o}function $g(t,e,n){if(t==null)return t;var r=[],i=0;return Au(t,r,\\\"\\\",\\\"\\\",function(a){return e.call(n,a,i++)}),r}function JN(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var u8=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},eP={map:$g,forEach:function(t,e,n){$g(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return $g(t,function(){e++}),e},toArray:function(t){return $g(t,function(e){return e})||[]},only:function(t){if(!Pv(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};Ct.Activity=ZN;Ct.Children=eP;Ct.Component=ku;Ct.Fragment=LN;Ct.Profiler=VN;Ct.PureComponent=Iv;Ct.StrictMode=qN;Ct.Suspense=$N;Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pn;Ct.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Pn.H.useMemoCache(t)}};Ct.cache=function(t){return function(){return t.apply(null,arguments)}};Ct.cacheSignal=function(){return null};Ct.cloneElement=function(t,e,n){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var r=h8({},t.props),i=t.key;if(e!=null)for(a in e.key!==void 0&&(i=\\\"\\\"+e.key),e)!m8.call(e,a)||a===\\\"key\\\"||a===\\\"__self\\\"||a===\\\"__source\\\"||a===\\\"ref\\\"&&e.ref===void 0||(r[a]=e[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return Nv(t.type,i,r)};Ct.createContext=function(t){return t={$$typeof:WN,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:HN,_context:t},t};Ct.createElement=function(t,e,n){var r,i={},a=null;if(e!=null)for(r in e.key!==void 0&&(a=\\\"\\\"+e.key),e)m8.call(e,r)&&r!==\\\"key\\\"&&r!==\\\"__self\\\"&&r!==\\\"__source\\\"&&(i[r]=e[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(t&&t.defaultProps)for(r in o=t.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return Nv(t,a,i)};Ct.createRef=function(){return{current:null}};Ct.forwardRef=function(t){return{$$typeof:FN,render:t}};Ct.isValidElement=Pv;Ct.lazy=function(t){return{$$typeof:d8,_payload:{_status:-1,_result:t},_init:JN}};Ct.memo=function(t,e){return{$$typeof:KN,type:t,compare:e===void 0?null:e}};Ct.startTransition=function(t){var e=Pn.T,n={};Pn.T=n;try{var r=t(),i=Pn.S;i!==null&&i(n,r),typeof r==\\\"object\\\"&&r!==null&&typeof r.then==\\\"function\\\"&&r.then(Rv,u8)}catch(a){u8(a)}finally{e!==null&&n.types!==null&&(e.types=n.types),Pn.T=e}};Ct.unstable_useCacheRefresh=function(){return Pn.H.useCacheRefresh()};Ct.use=function(t){return Pn.H.use(t)};Ct.useActionState=function(t,e,n){return Pn.H.useActionState(t,e,n)};Ct.useCallback=function(t,e){return Pn.H.useCallback(t,e)};Ct.useContext=function(t){return Pn.H.useContext(t)};Ct.useDebugValue=function(){};Ct.useDeferredValue=function(t,e){return Pn.H.useDeferredValue(t,e)};Ct.useEffect=function(t,e){return Pn.H.useEffect(t,e)};Ct.useEffectEvent=function(t){return Pn.H.useEffectEvent(t)};Ct.useId=function(){return Pn.H.useId()};Ct.useImperativeHandle=function(t,e,n){return Pn.H.useImperativeHandle(t,e,n)};Ct.useInsertionEffect=function(t,e){return Pn.H.useInsertionEffect(t,e)};Ct.useLayoutEffect=function(t,e){return Pn.H.useLayoutEffect(t,e)};Ct.useMemo=function(t,e){return Pn.H.useMemo(t,e)};Ct.useOptimistic=function(t,e){return Pn.H.useOptimistic(t,e)};Ct.useReducer=function(t,e,n){return Pn.H.useReducer(t,e,n)};Ct.useRef=function(t){return Pn.H.useRef(t)};Ct.useState=function(t){return Pn.H.useState(t)};Ct.useSyncExternalStore=function(t,e,n){return Pn.H.useSyncExternalStore(t,e,n)};Ct.useTransition=function(){return Pn.H.useTransition()};Ct.version=\\\"19.2.4\\\"});var Vl=V((Foe,b8)=>{\\\"use strict\\\";b();b8.exports=y8()});var w8=V(Fr=>{\\\"use strict\\\";b();var tP=Vl();function v8(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function As(){}var Wr={d:{f:As,r:function(){throw Error(v8(522))},D:As,C:As,L:As,m:As,X:As,S:As,M:As},p:0,findDOMNode:null},nP=Symbol.for(\\\"react.portal\\\");function rP(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nP,key:r==null?null:\\\"\\\"+r,children:t,containerInfo:e,implementation:n}}var mh=tP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Kg(t,e){if(t===\\\"font\\\")return\\\"\\\";if(typeof e==\\\"string\\\")return e===\\\"use-credentials\\\"?e:\\\"\\\"}Fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Wr;Fr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(v8(299));return rP(t,e,null,n)};Fr.flushSync=function(t){var e=mh.T,n=Wr.p;try{if(mh.T=null,Wr.p=2,t)return t()}finally{mh.T=e,Wr.p=n,Wr.d.f()}};Fr.preconnect=function(t,e){typeof t==\\\"string\\\"&&(e?(e=e.crossOrigin,e=typeof e==\\\"string\\\"?e===\\\"use-credentials\\\"?e:\\\"\\\":void 0):e=null,Wr.d.C(t,e))};Fr.prefetchDNS=function(t){typeof t==\\\"string\\\"&&Wr.d.D(t)};Fr.preinit=function(t,e){if(typeof t==\\\"string\\\"&&e&&typeof e.as==\\\"string\\\"){var n=e.as,r=Kg(n,e.crossOrigin),i=typeof e.integrity==\\\"string\\\"?e.integrity:void 0,a=typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0;n===\\\"style\\\"?Wr.d.S(t,typeof e.precedence==\\\"string\\\"?e.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):n===\\\"script\\\"&&Wr.d.X(t,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}};Fr.preinitModule=function(t,e){if(typeof t==\\\"string\\\")if(typeof e==\\\"object\\\"&&e!==null){if(e.as==null||e.as===\\\"script\\\"){var n=Kg(e.as,e.crossOrigin);Wr.d.M(t,{crossOrigin:n,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}}else e==null&&Wr.d.M(t)};Fr.preload=function(t,e){if(typeof t==\\\"string\\\"&&typeof e==\\\"object\\\"&&e!==null&&typeof e.as==\\\"string\\\"){var n=e.as,r=Kg(n,e.crossOrigin);Wr.d.L(t,n,{crossOrigin:r,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0,type:typeof e.type==\\\"string\\\"?e.type:void 0,fetchPriority:typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy==\\\"string\\\"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet==\\\"string\\\"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes==\\\"string\\\"?e.imageSizes:void 0,media:typeof e.media==\\\"string\\\"?e.media:void 0})}};Fr.preloadModule=function(t,e){if(typeof t==\\\"string\\\")if(e){var n=Kg(e.as,e.crossOrigin);Wr.d.m(t,{as:typeof e.as==\\\"string\\\"&&e.as!==\\\"script\\\"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0})}else Wr.d.m(t)};Fr.requestFormReset=function(t){Wr.d.r(t)};Fr.unstable_batchedUpdates=function(t,e){return t(e)};Fr.useFormState=function(t,e,n){return mh.H.useFormState(t,e,n)};Fr.useFormStatus=function(){return mh.H.useHostTransitionStatus()};Fr.version=\\\"19.2.4\\\"});var C8=V((Yoe,_8)=>{\\\"use strict\\\";b();function x8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x8)}catch(t){console.error(t)}}x8(),_8.exports=w8()});var N7=V(bm=>{\\\"use strict\\\";b();var pr=o8(),YC=Vl(),iP=C8();function de(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function GC(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function n0(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function QC(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function XC(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S8(t){if(n0(t)!==t)throw Error(de(188))}function aP(t){var e=t.alternate;if(!e){if(e=n0(t),e===null)throw Error(de(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return S8(i),t;if(a===r)return S8(i),e;a=a.sibling}throw Error(de(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(de(189))}}if(n.alternate!==r)throw Error(de(190))}if(n.tag!==3)throw Error(de(188));return n.stateNode.current===n?t:e}function JC(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=JC(t),e!==null)return e;t=t.sibling}return null}var Dn=Object.assign,oP=Symbol.for(\\\"react.element\\\"),Zg=Symbol.for(\\\"react.transitional.element\\\"),Sh=Symbol.for(\\\"react.portal\\\"),Uu=Symbol.for(\\\"react.fragment\\\"),eS=Symbol.for(\\\"react.strict_mode\\\"),m2=Symbol.for(\\\"react.profiler\\\"),tS=Symbol.for(\\\"react.consumer\\\"),Ro=Symbol.for(\\\"react.context\\\"),dw=Symbol.for(\\\"react.forward_ref\\\"),y2=Symbol.for(\\\"react.suspense\\\"),b2=Symbol.for(\\\"react.suspense_list\\\"),fw=Symbol.for(\\\"react.memo\\\"),ks=Symbol.for(\\\"react.lazy\\\"),v2=Symbol.for(\\\"react.activity\\\"),sP=Symbol.for(\\\"react.memo_cache_sentinel\\\"),T8=Symbol.iterator;function yh(t){return t===null||typeof t!=\\\"object\\\"?null:(t=T8&&t[T8]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var lP=Symbol.for(\\\"react.client.reference\\\");function w2(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===lP?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case Uu:return\\\"Fragment\\\";case m2:return\\\"Profiler\\\";case eS:return\\\"StrictMode\\\";case y2:return\\\"Suspense\\\";case b2:return\\\"SuspenseList\\\";case v2:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case Sh:return\\\"Portal\\\";case Ro:return t.displayName||\\\"Context\\\";case tS:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case dw:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case fw:return e=t.displayName||null,e!==null?e:w2(t.type)||\\\"Memo\\\";case ks:e=t._payload,t=t._init;try{return w2(t(e))}catch{}}return null}var Th=Array.isArray,dt=YC.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fn=iP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Zl={pending:!1,data:null,method:null,action:null},x2=[],Nu=-1;function Fa(t){return{current:t}}function wr(t){0>Nu||(t.current=x2[Nu],x2[Nu]=null,Nu--)}function Rn(t,e){Nu++,x2[Nu]=t.current,t.current=e}var Wa=Fa(null),Vh=Fa(null),Ds=Fa(null),Ap=Fa(null);function kp(t,e){switch(Rn(Ds,e),Rn(Vh,t),Rn(Wa,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?OC(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=OC(e),t=x7(e,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}wr(Wa),Rn(Wa,t)}function Ju(){wr(Wa),wr(Vh),wr(Ds)}function _2(t){t.memoizedState!==null&&Rn(Ap,t);var e=Wa.current,n=x7(e,t.type);e!==n&&(Rn(Vh,t),Rn(Wa,n))}function Bp(t){Vh.current===t&&(wr(Wa),wr(Vh)),Ap.current===t&&(wr(Ap),Jh._currentValue=Zl)}var jv,E8;function Wl(t){if(jv===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\\\\n( *(at )?)/);jv=e&&e[1]||\\\"\\\",E8=-1<n.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<n.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+jv+t+E8}var zv=!1;function Dv(t,e){if(!t||zv)return\\\"\\\";zv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(e){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(d,[])}catch(g){var h=g}Reflect.construct(t,[],d)}else{try{d.call()}catch(g){h=g}t.call(d.prototype)}}else{try{throw Error()}catch(g){h=g}(d=t())&&typeof d.catch==\\\"function\\\"&&d.catch(function(){})}}catch(g){if(g&&h&&typeof g.stack==\\\"string\\\")return[g.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,\\\"name\\\");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split(`\\n`),c=s.split(`\\n`);for(i=r=0;r<l.length&&!l[r].includes(\\\"DetermineComponentFrameRoot\\\");)r++;for(;i<c.length&&!c[i].includes(\\\"DetermineComponentFrameRoot\\\");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(r!==1||i!==1)do if(r--,i--,0>i||l[r]!==c[i]){var u=`\\n`+l[r].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&u.includes(\\\"<anonymous>\\\")&&(u=u.replace(\\\"<anonymous>\\\",t.displayName)),u}while(1<=r&&0<=i);break}}}finally{zv=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:\\\"\\\")?Wl(n):\\\"\\\"}function cP(t,e){switch(t.tag){case 26:case 27:case 5:return Wl(t.type);case 16:return Wl(\\\"Lazy\\\");case 13:return t.child!==e&&e!==null?Wl(\\\"Suspense Fallback\\\"):Wl(\\\"Suspense\\\");case 19:return Wl(\\\"SuspenseList\\\");case 0:case 15:return Dv(t.type,!1);case 11:return Dv(t.type.render,!1);case 1:return Dv(t.type,!0);case 31:return Wl(\\\"Activity\\\");default:return\\\"\\\"}}function A8(t){try{var e=\\\"\\\",n=null;do e+=cP(t,n),n=t,t=t.return;while(t);return e}catch(r){return`\\nError generating stack: `+r.message+`\\n`+r.stack}}var C2=Object.prototype.hasOwnProperty,hw=pr.unstable_scheduleCallback,Lv=pr.unstable_cancelCallback,uP=pr.unstable_shouldYield,dP=pr.unstable_requestPaint,Oi=pr.unstable_now,fP=pr.unstable_getCurrentPriorityLevel,nS=pr.unstable_ImmediatePriority,rS=pr.unstable_UserBlockingPriority,Mp=pr.unstable_NormalPriority,hP=pr.unstable_LowPriority,iS=pr.unstable_IdlePriority,gP=pr.log,pP=pr.unstable_setDisableYieldValue,r0=null,Ii=null;function Us(t){if(typeof gP==\\\"function\\\"&&pP(t),Ii&&typeof Ii.setStrictMode==\\\"function\\\")try{Ii.setStrictMode(r0,t)}catch{}}var Ui=Math.clz32?Math.clz32:bP,mP=Math.log,yP=Math.LN2;function bP(t){return t>>>=0,t===0?32:31-(mP(t)/yP|0)|0}var Yg=256,Gg=262144,Qg=4194304;function Fl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function nm(t,e,n){var r=t.pendingLanes;if(r===0)return 0;var i=0,a=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var s=r&134217727;return s!==0?(r=s&~a,r!==0?i=Fl(r):(o&=s,o!==0?i=Fl(o):n||(n=s&~t,n!==0&&(i=Fl(n))))):(s=r&~a,s!==0?i=Fl(s):o!==0?i=Fl(o):n||(n=r&~t,n!==0&&(i=Fl(n)))),i===0?0:e!==0&&e!==i&&(e&a)===0&&(a=i&-i,n=e&-e,a>=n||a===32&&(n&4194048)!==0)?e:i}function i0(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function vP(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function aS(){var t=Qg;return Qg<<=1,(Qg&62914560)===0&&(Qg=4194304),t}function qv(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function a0(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wP(t,e,n,r,i,a){var o=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,c=t.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ui(n),d=1<<u;s[u]=0,l[u]=-1;var h=c[u];if(h!==null)for(c[u]=null,u=0;u<h.length;u++){var g=h[u];g!==null&&(g.lane&=-536870913)}n&=~d}r!==0&&oS(t,r,0),a!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=a&~(o&~e))}function oS(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var r=31-Ui(e);t.entangledLanes|=e,t.entanglements[r]=t.entanglements[r]|1073741824|n&261930}function sS(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Ui(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}function lS(t,e){var n=e&-e;return n=(n&42)!==0?1:gw(n),(n&(t.suspendedLanes|e))!==0?0:n}function gw(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function pw(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function cS(){var t=fn.p;return t!==0?t:(t=window.event,t===void 0?32:O7(t.type))}function k8(t,e){var n=fn.p;try{return fn.p=t,e()}finally{fn.p=n}}var Xs=Math.random().toString(36).slice(2),Tr=\\\"__reactFiber$\\\"+Xs,di=\\\"__reactProps$\\\"+Xs,ud=\\\"__reactContainer$\\\"+Xs,S2=\\\"__reactEvents$\\\"+Xs,xP=\\\"__reactListeners$\\\"+Xs,_P=\\\"__reactHandles$\\\"+Xs,B8=\\\"__reactResources$\\\"+Xs,o0=\\\"__reactMarker$\\\"+Xs;function mw(t){delete t[Tr],delete t[di],delete t[S2],delete t[xP],delete t[_P]}function Pu(t){var e=t[Tr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ud]||n[Tr]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=jC(t);t!==null;){if(n=t[Tr])return n;t=jC(t)}return e}t=n,n=t.parentNode}return null}function dd(t){if(t=t[Tr]||t[ud]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Eh(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(de(33))}function $u(t){var e=t[B8];return e||(e=t[B8]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function vr(t){t[o0]=!0}var uS=new Set,dS={};function ic(t,e){ed(t,e),ed(t+\\\"Capture\\\",e)}function ed(t,e){for(dS[t]=e,t=0;t<e.length;t++)uS.add(e[t])}var CP=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),M8={},R8={};function SP(t){return C2.call(R8,t)?!0:C2.call(M8,t)?!1:CP.test(t)?R8[t]=!0:(M8[t]=!0,!1)}function fp(t,e,n){if(SP(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(e);return;case\\\"boolean\\\":var r=e.toLowerCase().slice(0,5);if(r!==\\\"data-\\\"&&r!==\\\"aria-\\\"){t.removeAttribute(e);return}}t.setAttribute(e,\\\"\\\"+n)}}function Xg(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(e);return}t.setAttribute(e,\\\"\\\"+n)}}function So(t,e,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(n);return}t.setAttributeNS(e,n,\\\"\\\"+r)}}function Zi(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function fS(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(e===\\\"checkbox\\\"||e===\\\"radio\\\")}function TP(t,e,n){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof r<\\\"u\\\"&&typeof r.get==\\\"function\\\"&&typeof r.set==\\\"function\\\"){var i=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=\\\"\\\"+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=\\\"\\\"+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function T2(t){if(!t._valueTracker){var e=fS(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=TP(t,e,\\\"\\\"+t[e])}}function hS(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r=\\\"\\\";return t&&(r=fS(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Rp(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var EP=/[\\\\n\\\"\\\\\\\\]/g;function Qi(t){return t.replace(EP,function(e){return\\\"\\\\\\\\\\\"+e.charCodeAt(0).toString(16)+\\\" \\\"})}function E2(t,e,n,r,i,a,o,s){t.name=\\\"\\\",o!=null&&typeof o!=\\\"function\\\"&&typeof o!=\\\"symbol\\\"&&typeof o!=\\\"boolean\\\"?t.type=o:t.removeAttribute(\\\"type\\\"),e!=null?o===\\\"number\\\"?(e===0&&t.value===\\\"\\\"||t.value!=e)&&(t.value=\\\"\\\"+Zi(e)):t.value!==\\\"\\\"+Zi(e)&&(t.value=\\\"\\\"+Zi(e)):o!==\\\"submit\\\"&&o!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),e!=null?A2(t,o,Zi(e)):n!=null?A2(t,o,Zi(n)):r!=null&&t.removeAttribute(\\\"value\\\"),i==null&&a!=null&&(t.defaultChecked=!!a),i!=null&&(t.checked=i&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"),s!=null&&typeof s!=\\\"function\\\"&&typeof s!=\\\"symbol\\\"&&typeof s!=\\\"boolean\\\"?t.name=\\\"\\\"+Zi(s):t.removeAttribute(\\\"name\\\")}function gS(t,e,n,r,i,a,o,s){if(a!=null&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"&&typeof a!=\\\"boolean\\\"&&(t.type=a),e!=null||n!=null){if(!(a!==\\\"submit\\\"&&a!==\\\"reset\\\"||e!=null)){T2(t);return}n=n!=null?\\\"\\\"+Zi(n):\\\"\\\",e=e!=null?\\\"\\\"+Zi(e):n,s||e===t.value||(t.value=e),t.defaultValue=e}r=r??i,r=typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"&&!!r,t.checked=s?t.checked:!!r,t.defaultChecked=!!r,o!=null&&typeof o!=\\\"function\\\"&&typeof o!=\\\"symbol\\\"&&typeof o!=\\\"boolean\\\"&&(t.name=o),T2(t)}function A2(t,e,n){e===\\\"number\\\"&&Rp(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+n||(t.defaultValue=\\\"\\\"+n)}function Ku(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e[\\\"$\\\"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty(\\\"$\\\"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=\\\"\\\"+Zi(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function pS(t,e,n){if(e!=null&&(e=\\\"\\\"+Zi(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?\\\"\\\"+Zi(n):\\\"\\\"}function mS(t,e,n,r){if(e==null){if(r!=null){if(n!=null)throw Error(de(92));if(Th(r)){if(1<r.length)throw Error(de(93));r=r[0]}n=r}n==null&&(n=\\\"\\\"),e=n}n=Zi(e),t.defaultValue=n,r=t.textContent,r===n&&r!==\\\"\\\"&&r!==null&&(t.value=r),T2(t)}function td(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var AP=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function O8(t,e,n){var r=e.indexOf(\\\"--\\\")===0;n==null||typeof n==\\\"boolean\\\"||n===\\\"\\\"?r?t.setProperty(e,\\\"\\\"):e===\\\"float\\\"?t.cssFloat=\\\"\\\":t[e]=\\\"\\\":r?t.setProperty(e,n):typeof n!=\\\"number\\\"||n===0||AP.has(e)?e===\\\"float\\\"?t.cssFloat=n:t[e]=(\\\"\\\"+n).trim():t[e]=n+\\\"px\\\"}function yS(t,e,n){if(e!=null&&typeof e!=\\\"object\\\")throw Error(de(62));if(t=t.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||e!=null&&e.hasOwnProperty(r)||(r.indexOf(\\\"--\\\")===0?t.setProperty(r,\\\"\\\"):r===\\\"float\\\"?t.cssFloat=\\\"\\\":t[r]=\\\"\\\");for(var i in e)r=e[i],e.hasOwnProperty(i)&&n[i]!==r&&O8(t,i,r)}else for(var a in e)e.hasOwnProperty(a)&&O8(t,a,e[a])}function yw(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var kP=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),BP=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function hp(t){return BP.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function Oo(){}var k2=null;function bw(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ju=null,Zu=null;function I8(t){var e=dd(t);if(e&&(t=e.stateNode)){var n=t[di]||null;e:switch(t=e.stateNode,e.type){case\\\"input\\\":if(E2(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type===\\\"radio\\\"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\\\"'+Qi(\\\"\\\"+e)+'\\\"][type=\\\"radio\\\"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=r[di]||null;if(!i)throw Error(de(90));E2(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)r=n[e],r.form===t.form&&hS(r)}break e;case\\\"textarea\\\":pS(t,n.value,n.defaultValue);break e;case\\\"select\\\":e=n.value,e!=null&&Ku(t,!!n.multiple,e,!1)}}}var Vv=!1;function bS(t,e,n){if(Vv)return t(e,n);Vv=!0;try{var r=t(e);return r}finally{if(Vv=!1,(ju!==null||Zu!==null)&&(gm(),ju&&(e=ju,t=Zu,Zu=ju=null,I8(e),t)))for(e=0;e<t.length;e++)I8(t[e])}}function Hh(t,e){var n=t.stateNode;if(n===null)return null;var r=n[di]||null;if(r===null)return null;n=r[e];e:switch(e){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(r=!r.disabled)||(t=t.type,r=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!=\\\"function\\\")throw Error(de(231,e,typeof n));return n}var jo=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),B2=!1;if(jo)try{Bu={},Object.defineProperty(Bu,\\\"passive\\\",{get:function(){B2=!0}}),window.addEventListener(\\\"test\\\",Bu,Bu),window.removeEventListener(\\\"test\\\",Bu,Bu)}catch{B2=!1}var Bu,Ns=null,vw=null,gp=null;function vS(){if(gp)return gp;var t,e=vw,n=e.length,r,i=\\\"value\\\"in Ns?Ns.value:Ns.textContent,a=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[a-r];r++);return gp=i.slice(t,1<r?1-r:void 0)}function pp(t){var e=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Jg(){return!0}function U8(){return!1}function fi(t){function e(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Jg:U8,this.isPropagationStopped=U8,this}return Dn(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\\\"unknown\\\"&&(n.returnValue=!1),this.isDefaultPrevented=Jg)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\\\"unknown\\\"&&(n.cancelBubble=!0),this.isPropagationStopped=Jg)},persist:function(){},isPersistent:Jg}),e}var ac={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rm=fi(ac),s0=Dn({},ac,{view:0,detail:0}),MP=fi(s0),Hv,Wv,bh,im=Dn({},s0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ww,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==bh&&(bh&&t.type===\\\"mousemove\\\"?(Hv=t.screenX-bh.screenX,Wv=t.screenY-bh.screenY):Wv=Hv=0,bh=t),Hv)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:Wv}}),N8=fi(im),RP=Dn({},im,{dataTransfer:0}),OP=fi(RP),IP=Dn({},s0,{relatedTarget:0}),Fv=fi(IP),UP=Dn({},ac,{animationName:0,elapsedTime:0,pseudoElement:0}),NP=fi(UP),PP=Dn({},ac,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),jP=fi(PP),zP=Dn({},ac,{data:0}),P8=fi(zP),DP={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},LP={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},qP={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function VP(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=qP[t])?!!e[t]:!1}function ww(){return VP}var HP=Dn({},s0,{key:function(t){if(t.key){var e=DP[t.key]||t.key;if(e!==\\\"Unidentified\\\")return e}return t.type===\\\"keypress\\\"?(t=pp(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?LP[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ww,charCode:function(t){return t.type===\\\"keypress\\\"?pp(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?pp(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),WP=fi(HP),FP=Dn({},im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j8=fi(FP),$P=Dn({},s0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ww}),KP=fi($P),ZP=Dn({},ac,{propertyName:0,elapsedTime:0,pseudoElement:0}),YP=fi(ZP),GP=Dn({},im,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),QP=fi(GP),XP=Dn({},ac,{newState:0,oldState:0}),JP=fi(XP),ej=[9,13,27,32],xw=jo&&\\\"CompositionEvent\\\"in window,Bh=null;jo&&\\\"documentMode\\\"in document&&(Bh=document.documentMode);var tj=jo&&\\\"TextEvent\\\"in window&&!Bh,wS=jo&&(!xw||Bh&&8<Bh&&11>=Bh),z8=\\\" \\\",D8=!1;function xS(t,e){switch(t){case\\\"keyup\\\":return ej.indexOf(e.keyCode)!==-1;case\\\"keydown\\\":return e.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function _S(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var zu=!1;function nj(t,e){switch(t){case\\\"compositionend\\\":return _S(e);case\\\"keypress\\\":return e.which!==32?null:(D8=!0,z8);case\\\"textInput\\\":return t=e.data,t===z8&&D8?null:t;default:return null}}function rj(t,e){if(zu)return t===\\\"compositionend\\\"||!xw&&xS(t,e)?(t=vS(),gp=vw=Ns=null,zu=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case\\\"compositionend\\\":return wS&&e.locale!==\\\"ko\\\"?null:e.data;default:return null}}var ij={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function L8(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e===\\\"input\\\"?!!ij[t.type]:e===\\\"textarea\\\"}function CS(t,e,n,r){ju?Zu?Zu.push(r):Zu=[r]:ju=r,e=Yp(e,\\\"onChange\\\"),0<e.length&&(n=new rm(\\\"onChange\\\",\\\"change\\\",null,n,r),t.push({event:n,listeners:e}))}var Mh=null,Wh=null;function aj(t){b7(t,0)}function am(t){var e=Eh(t);if(hS(e))return t}function q8(t,e){if(t===\\\"change\\\")return e}var SS=!1;jo&&(jo?(tp=\\\"oninput\\\"in document,tp||($v=document.createElement(\\\"div\\\"),$v.setAttribute(\\\"oninput\\\",\\\"return;\\\"),tp=typeof $v.oninput==\\\"function\\\"),ep=tp):ep=!1,SS=ep&&(!document.documentMode||9<document.documentMode));var ep,tp,$v;function V8(){Mh&&(Mh.detachEvent(\\\"onpropertychange\\\",TS),Wh=Mh=null)}function TS(t){if(t.propertyName===\\\"value\\\"&&am(Wh)){var e=[];CS(e,Wh,t,bw(t)),bS(aj,e)}}function oj(t,e,n){t===\\\"focusin\\\"?(V8(),Mh=e,Wh=n,Mh.attachEvent(\\\"onpropertychange\\\",TS)):t===\\\"focusout\\\"&&V8()}function sj(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return am(Wh)}function lj(t,e){if(t===\\\"click\\\")return am(e)}function cj(t,e){if(t===\\\"input\\\"||t===\\\"change\\\")return am(e)}function uj(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Pi=typeof Object.is==\\\"function\\\"?Object.is:uj;function Fh(t,e){if(Pi(t,e))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof e!=\\\"object\\\"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!C2.call(e,i)||!Pi(t[i],e[i]))return!1}return!0}function H8(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function W8(t,e){var n=H8(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=H8(n)}}function ES(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ES(t,e.parentNode):\\\"contains\\\"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function AS(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Rp(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href==\\\"string\\\"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Rp(t.document)}return e}function _w(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||e===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var dj=jo&&\\\"documentMode\\\"in document&&11>=document.documentMode,Du=null,M2=null,Rh=null,R2=!1;function F8(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;R2||Du==null||Du!==Rp(r)||(r=Du,\\\"selectionStart\\\"in r&&_w(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rh&&Fh(Rh,r)||(Rh=r,r=Yp(M2,\\\"onSelect\\\"),0<r.length&&(e=new rm(\\\"onSelect\\\",\\\"select\\\",null,e,n),t.push({event:e,listeners:r}),e.target=Du)))}function Hl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\\\"Webkit\\\"+t]=\\\"webkit\\\"+e,n[\\\"Moz\\\"+t]=\\\"moz\\\"+e,n}var Lu={animationend:Hl(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:Hl(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:Hl(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:Hl(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:Hl(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:Hl(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:Hl(\\\"Transition\\\",\\\"TransitionEnd\\\")},Kv={},kS={};jo&&(kS=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete Lu.animationend.animation,delete Lu.animationiteration.animation,delete Lu.animationstart.animation),\\\"TransitionEvent\\\"in window||delete Lu.transitionend.transition);function oc(t){if(Kv[t])return Kv[t];if(!Lu[t])return t;var e=Lu[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in kS)return Kv[t]=e[n];return t}var BS=oc(\\\"animationend\\\"),MS=oc(\\\"animationiteration\\\"),RS=oc(\\\"animationstart\\\"),fj=oc(\\\"transitionrun\\\"),hj=oc(\\\"transitionstart\\\"),gj=oc(\\\"transitioncancel\\\"),OS=oc(\\\"transitionend\\\"),IS=new Map,O2=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");O2.push(\\\"scrollEnd\\\");function Sa(t,e){IS.set(t,e),ic(e,[t])}var Op=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},Ki=[],qu=0,Cw=0;function om(){for(var t=qu,e=Cw=qu=0;e<t;){var n=Ki[e];Ki[e++]=null;var r=Ki[e];Ki[e++]=null;var i=Ki[e];Ki[e++]=null;var a=Ki[e];if(Ki[e++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&US(n,i,a)}}function sm(t,e,n,r){Ki[qu++]=t,Ki[qu++]=e,Ki[qu++]=n,Ki[qu++]=r,Cw|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function Sw(t,e,n,r){return sm(t,e,n,r),Ip(t)}function sc(t,e){return sm(t,null,null,e),Ip(t)}function US(t,e,n){t.lanes|=n;var r=t.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=t.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(t=a.stateNode,t===null||t._visibility&1||(i=!0)),t=a,a=a.return;return t.tag===3?(a=t.stateNode,i&&e!==null&&(i=31-Ui(n),t=a.hiddenUpdates,r=t[i],r===null?t[i]=[e]:r.push(e),e.lane=n|536870912),a):null}function Ip(t){if(50<Lh)throw Lh=0,J2=null,Error(de(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Vu={};function pj(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(t,e,n,r){return new pj(t,e,n,r)}function Tw(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Uo(t,e){var n=t.alternate;return n===null?(n=Mi(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function NS(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function mp(t,e,n,r,i,a){var o=0;if(r=t,typeof t==\\\"function\\\")Tw(t)&&(o=1);else if(typeof t==\\\"string\\\")o=bz(t,n,Wa.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else e:switch(t){case v2:return t=Mi(31,n,e,i),t.elementType=v2,t.lanes=a,t;case Uu:return Yl(n.children,i,a,e);case eS:o=8,i|=24;break;case m2:return t=Mi(12,n,e,i|2),t.elementType=m2,t.lanes=a,t;case y2:return t=Mi(13,n,e,i),t.elementType=y2,t.lanes=a,t;case b2:return t=Mi(19,n,e,i),t.elementType=b2,t.lanes=a,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case Ro:o=10;break e;case tS:o=9;break e;case dw:o=11;break e;case fw:o=14;break e;case ks:o=16,r=null;break e}o=29,n=Error(de(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),r=null}return e=Mi(o,n,e,i),e.elementType=t,e.type=r,e.lanes=a,e}function Yl(t,e,n,r){return t=Mi(7,t,r,e),t.lanes=n,t}function Zv(t,e,n){return t=Mi(6,t,null,e),t.lanes=n,t}function PS(t){var e=Mi(18,null,null,0);return e.stateNode=t,e}function Yv(t,e,n){return e=Mi(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var $8=new WeakMap;function Xi(t,e){if(typeof t==\\\"object\\\"&&t!==null){var n=$8.get(t);return n!==void 0?n:(e={value:t,source:e,stack:A8(e)},$8.set(t,e),e)}return{value:t,source:e,stack:A8(e)}}var Hu=[],Wu=0,Up=null,$h=0,Yi=[],Gi=0,Zs=null,qa=1,Va=\\\"\\\";function Bo(t,e){Hu[Wu++]=$h,Hu[Wu++]=Up,Up=t,$h=e}function jS(t,e,n){Yi[Gi++]=qa,Yi[Gi++]=Va,Yi[Gi++]=Zs,Zs=t;var r=qa;t=Va;var i=32-Ui(r)-1;r&=~(1<<i),n+=1;var a=32-Ui(e)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qa=1<<32-Ui(e)+i|n<<i|r,Va=a+t}else qa=1<<a|n<<i|r,Va=t}function Ew(t){t.return!==null&&(Bo(t,1),jS(t,1,0))}function Aw(t){for(;t===Up;)Up=Hu[--Wu],Hu[Wu]=null,$h=Hu[--Wu],Hu[Wu]=null;for(;t===Zs;)Zs=Yi[--Gi],Yi[Gi]=null,Va=Yi[--Gi],Yi[Gi]=null,qa=Yi[--Gi],Yi[Gi]=null}function zS(t,e){Yi[Gi++]=qa,Yi[Gi++]=Va,Yi[Gi++]=Zs,qa=e.id,Va=e.overflow,Zs=t}var Er=null,zn=null,Qt=!1,Ls=null,Ji=!1,I2=Error(de(519));function Ys(t){var e=Error(de(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw Kh(Xi(e,t)),I2}function K8(t){var e=t.stateNode,n=t.type,r=t.memoizedProps;switch(e[Tr]=t,e[di]=r,n){case\\\"dialog\\\":Wt(\\\"cancel\\\",e),Wt(\\\"close\\\",e);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":Wt(\\\"load\\\",e);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<Qh.length;n++)Wt(Qh[n],e);break;case\\\"source\\\":Wt(\\\"error\\\",e);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":Wt(\\\"error\\\",e),Wt(\\\"load\\\",e);break;case\\\"details\\\":Wt(\\\"toggle\\\",e);break;case\\\"input\\\":Wt(\\\"invalid\\\",e),gS(e,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case\\\"select\\\":Wt(\\\"invalid\\\",e);break;case\\\"textarea\\\":Wt(\\\"invalid\\\",e),mS(e,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=\\\"string\\\"&&typeof n!=\\\"number\\\"&&typeof n!=\\\"bigint\\\"||e.textContent===\\\"\\\"+n||r.suppressHydrationWarning===!0||w7(e.textContent,n)?(r.popover!=null&&(Wt(\\\"beforetoggle\\\",e),Wt(\\\"toggle\\\",e)),r.onScroll!=null&&Wt(\\\"scroll\\\",e),r.onScrollEnd!=null&&Wt(\\\"scrollend\\\",e),r.onClick!=null&&(e.onclick=Oo),e=!0):e=!1,e||Ys(t,!0)}function Z8(t){for(Er=t.return;Er;)switch(Er.tag){case 5:case 31:case 13:Ji=!1;return;case 27:case 3:Ji=!0;return;default:Er=Er.return}}function Mu(t){if(t!==Er)return!1;if(!Qt)return Z8(t),Qt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!==\\\"form\\\"&&n!==\\\"button\\\")||iw(t.type,t.memoizedProps)),n=!n),n&&zn&&Ys(t),Z8(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(de(317));zn=PC(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(de(317));zn=PC(t)}else e===27?(e=zn,Js(t.type)?(t=lw,lw=null,zn=t):zn=e):zn=Er?ta(t.stateNode.nextSibling):null;return!0}function Jl(){zn=Er=null,Qt=!1}function Gv(){var t=Ls;return t!==null&&(ci===null?ci=t:ci.push.apply(ci,t),Ls=null),t}function Kh(t){Ls===null?Ls=[t]:Ls.push(t)}var U2=Fa(null),lc=null,Io=null;function Ms(t,e,n){Rn(U2,e._currentValue),e._currentValue=n}function No(t){t._currentValue=U2.current,wr(U2)}function N2(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function P2(t,e,n,r){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;e:for(;a!==null;){var s=a;a=i;for(var l=0;l<e.length;l++)if(s.context===e[l]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),N2(a.return,n,t),r||(o=null);break e}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(de(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),N2(o,n,t),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function fd(t,e,n,r){t=null;for(var i=e,a=!1;i!==null;){if(!a){if((i.flags&524288)!==0)a=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(de(387));if(o=o.memoizedProps,o!==null){var s=i.type;Pi(i.pendingProps.value,o.value)||(t!==null?t.push(s):t=[s])}}else if(i===Ap.current){if(o=i.alternate,o===null)throw Error(de(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(Jh):t=[Jh])}i=i.return}t!==null&&P2(e,t,n,r),e.flags|=262144}function Np(t){for(t=t.firstContext;t!==null;){if(!Pi(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ec(t){lc=t,Io=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ar(t){return DS(lc,t)}function np(t,e){return lc===null&&ec(t),DS(t,e)}function DS(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Io===null){if(t===null)throw Error(de(308));Io=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Io=Io.next=e;return n}var mj=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,r){t.push(r)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},yj=pr.unstable_scheduleCallback,bj=pr.unstable_NormalPriority,lr={$$typeof:Ro,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kw(){return{controller:new mj,data:new Map,refCount:0}}function l0(t){t.refCount--,t.refCount===0&&yj(bj,function(){t.controller.abort()})}var Oh=null,j2=0,nd=0,Yu=null;function vj(t,e){if(Oh===null){var n=Oh=[];j2=0,nd=Jw(),Yu={status:\\\"pending\\\",value:void 0,then:function(r){n.push(r)}}}return j2++,e.then(Y8,Y8),e}function Y8(){if(--j2===0&&Oh!==null){Yu!==null&&(Yu.status=\\\"fulfilled\\\");var t=Oh;Oh=null,nd=0,Yu=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function wj(t,e){var n=[],r={status:\\\"pending\\\",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){r.status=\\\"fulfilled\\\",r.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(r.status=\\\"rejected\\\",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var G8=dt.S;dt.S=function(t,e){J9=Oi(),typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\"&&vj(t,e),G8!==null&&G8(t,e)};var Gl=Fa(null);function Bw(){var t=Gl.current;return t!==null?t:En.pooledCache}function yp(t,e){e===null?Rn(Gl,Gl.current):Rn(Gl,e.pool)}function LS(){var t=Bw();return t===null?null:{parent:lr._currentValue,pool:t}}var hd=Error(de(460)),Mw=Error(de(474)),lm=Error(de(542)),Pp={then:function(){}};function Q8(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function qS(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Oo,Oo),e=n),e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,J8(t),t;default:if(typeof e.status==\\\"string\\\")e.then(Oo,Oo);else{if(t=En,t!==null&&100<t.shellSuspendCounter)throw Error(de(482));t=e,t.status=\\\"pending\\\",t.then(function(r){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"fulfilled\\\",i.value=r}},function(r){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"rejected\\\",i.reason=r}})}switch(e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,J8(t),t}throw Ql=e,hd}}function $l(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?(Ql=n,hd):n}}var Ql=null;function X8(){if(Ql===null)throw Error(de(459));var t=Ql;return Ql=null,t}function J8(t){if(t===hd||t===lm)throw Error(de(483))}var Gu=null,Zh=0;function rp(t){var e=Zh;return Zh+=1,Gu===null&&(Gu=[]),qS(Gu,t,e)}function vh(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ip(t,e){throw e.$$typeof===oP?Error(de(525)):(t=Object.prototype.toString.call(e),Error(de(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(e).join(\\\", \\\")+\\\"}\\\":t)))}function VS(t){function e(_,v){if(t){var T=_.deletions;T===null?(_.deletions=[v],_.flags|=16):T.push(v)}}function n(_,v){if(!t)return null;for(;v!==null;)e(_,v),v=v.sibling;return null}function r(_){for(var v=new Map;_!==null;)_.key!==null?v.set(_.key,_):v.set(_.index,_),_=_.sibling;return v}function i(_,v){return _=Uo(_,v),_.index=0,_.sibling=null,_}function a(_,v,T){return _.index=T,t?(T=_.alternate,T!==null?(T=T.index,T<v?(_.flags|=67108866,v):T):(_.flags|=67108866,v)):(_.flags|=1048576,v)}function o(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function s(_,v,T,R){return v===null||v.tag!==6?(v=Zv(T,_.mode,R),v.return=_,v):(v=i(v,T),v.return=_,v)}function l(_,v,T,R){var U=T.type;return U===Uu?u(_,v,T.props.children,R,T.key):v!==null&&(v.elementType===U||typeof U==\\\"object\\\"&&U!==null&&U.$$typeof===ks&&$l(U)===v.type)?(v=i(v,T.props),vh(v,T),v.return=_,v):(v=mp(T.type,T.key,T.props,null,_.mode,R),vh(v,T),v.return=_,v)}function c(_,v,T,R){return v===null||v.tag!==4||v.stateNode.containerInfo!==T.containerInfo||v.stateNode.implementation!==T.implementation?(v=Yv(T,_.mode,R),v.return=_,v):(v=i(v,T.children||[]),v.return=_,v)}function u(_,v,T,R,U){return v===null||v.tag!==7?(v=Yl(T,_.mode,R,U),v.return=_,v):(v=i(v,T),v.return=_,v)}function d(_,v,T){if(typeof v==\\\"string\\\"&&v!==\\\"\\\"||typeof v==\\\"number\\\"||typeof v==\\\"bigint\\\")return v=Zv(\\\"\\\"+v,_.mode,T),v.return=_,v;if(typeof v==\\\"object\\\"&&v!==null){switch(v.$$typeof){case Zg:return T=mp(v.type,v.key,v.props,null,_.mode,T),vh(T,v),T.return=_,T;case Sh:return v=Yv(v,_.mode,T),v.return=_,v;case ks:return v=$l(v),d(_,v,T)}if(Th(v)||yh(v))return v=Yl(v,_.mode,T,null),v.return=_,v;if(typeof v.then==\\\"function\\\")return d(_,rp(v),T);if(v.$$typeof===Ro)return d(_,np(_,v),T);ip(_,v)}return null}function h(_,v,T,R){var U=v!==null?v.key:null;if(typeof T==\\\"string\\\"&&T!==\\\"\\\"||typeof T==\\\"number\\\"||typeof T==\\\"bigint\\\")return U!==null?null:s(_,v,\\\"\\\"+T,R);if(typeof T==\\\"object\\\"&&T!==null){switch(T.$$typeof){case Zg:return T.key===U?l(_,v,T,R):null;case Sh:return T.key===U?c(_,v,T,R):null;case ks:return T=$l(T),h(_,v,T,R)}if(Th(T)||yh(T))return U!==null?null:u(_,v,T,R,null);if(typeof T.then==\\\"function\\\")return h(_,v,rp(T),R);if(T.$$typeof===Ro)return h(_,v,np(_,T),R);ip(_,T)}return null}function g(_,v,T,R,U){if(typeof R==\\\"string\\\"&&R!==\\\"\\\"||typeof R==\\\"number\\\"||typeof R==\\\"bigint\\\")return _=_.get(T)||null,s(v,_,\\\"\\\"+R,U);if(typeof R==\\\"object\\\"&&R!==null){switch(R.$$typeof){case Zg:return _=_.get(R.key===null?T:R.key)||null,l(v,_,R,U);case Sh:return _=_.get(R.key===null?T:R.key)||null,c(v,_,R,U);case ks:return R=$l(R),g(_,v,T,R,U)}if(Th(R)||yh(R))return _=_.get(T)||null,u(v,_,R,U,null);if(typeof R.then==\\\"function\\\")return g(_,v,T,rp(R),U);if(R.$$typeof===Ro)return g(_,v,T,np(v,R),U);ip(v,R)}return null}function y(_,v,T,R){for(var U=null,X=null,k=v,q=v=0,z=null;k!==null&&q<T.length;q++){k.index>q?(z=k,k=null):z=k.sibling;var $=h(_,k,T[q],R);if($===null){k===null&&(k=z);break}t&&k&&$.alternate===null&&e(_,k),v=a($,v,q),X===null?U=$:X.sibling=$,X=$,k=z}if(q===T.length)return n(_,k),Qt&&Bo(_,q),U;if(k===null){for(;q<T.length;q++)k=d(_,T[q],R),k!==null&&(v=a(k,v,q),X===null?U=k:X.sibling=k,X=k);return Qt&&Bo(_,q),U}for(k=r(k);q<T.length;q++)z=g(k,_,q,T[q],R),z!==null&&(t&&z.alternate!==null&&k.delete(z.key===null?q:z.key),v=a(z,v,q),X===null?U=z:X.sibling=z,X=z);return t&&k.forEach(function(L){return e(_,L)}),Qt&&Bo(_,q),U}function E(_,v,T,R){if(T==null)throw Error(de(151));for(var U=null,X=null,k=v,q=v=0,z=null,$=T.next();k!==null&&!$.done;q++,$=T.next()){k.index>q?(z=k,k=null):z=k.sibling;var L=h(_,k,$.value,R);if(L===null){k===null&&(k=z);break}t&&k&&L.alternate===null&&e(_,k),v=a(L,v,q),X===null?U=L:X.sibling=L,X=L,k=z}if($.done)return n(_,k),Qt&&Bo(_,q),U;if(k===null){for(;!$.done;q++,$=T.next())$=d(_,$.value,R),$!==null&&(v=a($,v,q),X===null?U=$:X.sibling=$,X=$);return Qt&&Bo(_,q),U}for(k=r(k);!$.done;q++,$=T.next())$=g(k,_,q,$.value,R),$!==null&&(t&&$.alternate!==null&&k.delete($.key===null?q:$.key),v=a($,v,q),X===null?U=$:X.sibling=$,X=$);return t&&k.forEach(function(P){return e(_,P)}),Qt&&Bo(_,q),U}function N(_,v,T,R){if(typeof T==\\\"object\\\"&&T!==null&&T.type===Uu&&T.key===null&&(T=T.props.children),typeof T==\\\"object\\\"&&T!==null){switch(T.$$typeof){case Zg:e:{for(var U=T.key;v!==null;){if(v.key===U){if(U=T.type,U===Uu){if(v.tag===7){n(_,v.sibling),R=i(v,T.props.children),R.return=_,_=R;break e}}else if(v.elementType===U||typeof U==\\\"object\\\"&&U!==null&&U.$$typeof===ks&&$l(U)===v.type){n(_,v.sibling),R=i(v,T.props),vh(R,T),R.return=_,_=R;break e}n(_,v);break}else e(_,v);v=v.sibling}T.type===Uu?(R=Yl(T.props.children,_.mode,R,T.key),R.return=_,_=R):(R=mp(T.type,T.key,T.props,null,_.mode,R),vh(R,T),R.return=_,_=R)}return o(_);case Sh:e:{for(U=T.key;v!==null;){if(v.key===U)if(v.tag===4&&v.stateNode.containerInfo===T.containerInfo&&v.stateNode.implementation===T.implementation){n(_,v.sibling),R=i(v,T.children||[]),R.return=_,_=R;break e}else{n(_,v);break}else e(_,v);v=v.sibling}R=Yv(T,_.mode,R),R.return=_,_=R}return o(_);case ks:return T=$l(T),N(_,v,T,R)}if(Th(T))return y(_,v,T,R);if(yh(T)){if(U=yh(T),typeof U!=\\\"function\\\")throw Error(de(150));return T=U.call(T),E(_,v,T,R)}if(typeof T.then==\\\"function\\\")return N(_,v,rp(T),R);if(T.$$typeof===Ro)return N(_,v,np(_,T),R);ip(_,T)}return typeof T==\\\"string\\\"&&T!==\\\"\\\"||typeof T==\\\"number\\\"||typeof T==\\\"bigint\\\"?(T=\\\"\\\"+T,v!==null&&v.tag===6?(n(_,v.sibling),R=i(v,T),R.return=_,_=R):(n(_,v),R=Zv(T,_.mode,R),R.return=_,_=R),o(_)):n(_,v)}return function(_,v,T,R){try{Zh=0;var U=N(_,v,T,R);return Gu=null,U}catch(k){if(k===hd||k===lm)throw k;var X=Mi(29,k,null,_.mode);return X.lanes=R,X.return=_,X}}}var tc=VS(!0),HS=VS(!1),Bs=!1;function Rw(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function z2(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function qs(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Vs(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(dn&2)!==0){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,e=Ip(t),US(t,null,n),e}return sm(t,r,e,n),Ip(t)}function Ih(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sS(t,n)}}function Qv(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=e:a=a.next=e}else i=a=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var D2=!1;function Uh(){if(D2){var t=Yu;if(t!==null)throw t}}function Nh(t,e,n,r){D2=!1;var i=t.updateQueue;Bs=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var h=s.lane&-536870913,g=h!==s.lane;if(g?(Zt&h)===h:(r&h)===h){h!==0&&h===nd&&(D2=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var y=t,E=s;h=e;var N=n;switch(E.tag){case 1:if(y=E.payload,typeof y==\\\"function\\\"){d=y.call(N,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=E.payload,h=typeof y==\\\"function\\\"?y.call(N,d,h):y,h==null)break e;d=Dn({},d,h);break e;case 2:Bs=!0}}h=s.callback,h!==null&&(t.flags|=64,g&&(t.flags|=8192),g=i.callbacks,g===null?i.callbacks=[h]:g.push(h))}else g={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=d):u=u.next=g,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;g=s,s=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Qs|=o,t.lanes=o,t.memoizedState=d}}function WS(t,e){if(typeof t!=\\\"function\\\")throw Error(de(191,t));t.call(e)}function FS(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)WS(n[t],e)}var rd=Fa(null),jp=Fa(0);function eC(t,e){t=qo,Rn(jp,t),Rn(rd,e),qo=t|e.baseLanes}function L2(){Rn(jp,qo),Rn(rd,rd.current)}function Ow(){qo=jp.current,wr(rd),wr(jp)}var ji=Fa(null),ea=null;function Rs(t){var e=t.alternate;Rn(rr,rr.current&1),Rn(ji,t),ea===null&&(e===null||rd.current!==null||e.memoizedState!==null)&&(ea=t)}function q2(t){Rn(rr,rr.current),Rn(ji,t),ea===null&&(ea=t)}function $S(t){t.tag===22?(Rn(rr,rr.current),Rn(ji,t),ea===null&&(ea=t)):Os(t)}function Os(){Rn(rr,rr.current),Rn(ji,ji.current)}function Bi(t){wr(ji),ea===t&&(ea=null),wr(rr)}var rr=Fa(0);function zp(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ow(n)||sw(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder===\\\"forwards\\\"||e.memoizedProps.revealOrder===\\\"backwards\\\"||e.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||e.memoizedProps.revealOrder===\\\"together\\\")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var zo=0,Bt=null,Cn=null,or=null,Dp=!1,Qu=!1,nc=!1,Lp=0,Yh=0,Xu=null,xj=0;function Jn(){throw Error(de(321))}function Iw(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Pi(t[n],e[n]))return!1;return!0}function Uw(t,e,n,r,i,a){return zo=a,Bt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,dt.H=t===null||t.memoizedState===null?C9:Fw,nc=!1,a=n(r,i),nc=!1,Qu&&(a=ZS(e,n,r,i)),KS(t),a}function KS(t){dt.H=Gh;var e=Cn!==null&&Cn.next!==null;if(zo=0,or=Cn=Bt=null,Dp=!1,Yh=0,Xu=null,e)throw Error(de(300));t===null||cr||(t=t.dependencies,t!==null&&Np(t)&&(cr=!0))}function ZS(t,e,n,r){Bt=t;var i=0;do{if(Qu&&(Xu=null),Yh=0,Qu=!1,25<=i)throw Error(de(301));if(i+=1,or=Cn=null,t.updateQueue!=null){var a=t.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}dt.H=S9,a=e(n,r)}while(Qu);return a}function _j(){var t=dt.H,e=t.useState()[0];return e=typeof e.then==\\\"function\\\"?c0(e):e,t=t.useState()[0],(Cn!==null?Cn.memoizedState:null)!==t&&(Bt.flags|=1024),e}function Nw(){var t=Lp!==0;return Lp=0,t}function Pw(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function jw(t){if(Dp){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Dp=!1}zo=0,or=Cn=Bt=null,Qu=!1,Yh=Lp=0,Xu=null}function $r(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return or===null?Bt.memoizedState=or=t:or=or.next=t,or}function ir(){if(Cn===null){var t=Bt.alternate;t=t!==null?t.memoizedState:null}else t=Cn.next;var e=or===null?Bt.memoizedState:or.next;if(e!==null)or=e,Cn=t;else{if(t===null)throw Bt.alternate===null?Error(de(467)):Error(de(310));Cn=t,t={memoizedState:Cn.memoizedState,baseState:Cn.baseState,baseQueue:Cn.baseQueue,queue:Cn.queue,next:null},or===null?Bt.memoizedState=or=t:or=or.next=t}return or}function cm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function c0(t){var e=Yh;return Yh+=1,Xu===null&&(Xu=[]),t=qS(Xu,t,e),e=Bt,(or===null?e.memoizedState:or.next)===null&&(e=e.alternate,dt.H=e===null||e.memoizedState===null?C9:Fw),t}function um(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return c0(t);if(t.$$typeof===Ro)return Ar(t)}throw Error(de(438,String(t)))}function zw(t){var e=null,n=Bt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var r=Bt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(e={data:r.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=cm(),Bt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),r=0;r<t;r++)n[r]=sP;return e.index++,n}function Do(t,e){return typeof e==\\\"function\\\"?e(t):e}function bp(t){var e=ir();return Dw(e,Cn,t)}function Dw(t,e,n){var r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=n;var i=t.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}e.baseQueue=i=a,r.pending=null}if(a=t.baseState,i===null)t.memoizedState=a;else{e=i.next;var s=o=null,l=null,c=e,u=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Zt&d)===d:(zo&d)===d){var h=c.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===nd&&(u=!0);else if((zo&h)===h){c=c.next,h===nd&&(u=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=d,o=a):l=l.next=d,Bt.lanes|=h,Qs|=h;d=c.action,nc&&n(a,d),a=c.hasEagerState?c.eagerState:n(a,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=h,o=a):l=l.next=h,Bt.lanes|=d,Qs|=d;c=c.next}while(c!==null&&c!==e);if(l===null?o=a:l.next=s,!Pi(a,t.memoizedState)&&(cr=!0,u&&(n=Yu,n!==null)))throw n;t.memoizedState=a,t.baseState=o,t.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function Xv(t){var e=ir(),n=e.queue;if(n===null)throw Error(de(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=t(a,o.action),o=o.next;while(o!==i);Pi(a,e.memoizedState)||(cr=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function YS(t,e,n){var r=Bt,i=ir(),a=Qt;if(a){if(n===void 0)throw Error(de(407));n=n()}else n=e();var o=!Pi((Cn||i).memoizedState,n);if(o&&(i.memoizedState=n,cr=!0),i=i.queue,Lw(XS.bind(null,r,i,t),[t]),i.getSnapshot!==e||o||or!==null&&or.memoizedState.tag&1){if(r.flags|=2048,id(9,{destroy:void 0},QS.bind(null,r,i,n,e),null),En===null)throw Error(de(349));a||(zo&127)!==0||GS(r,e,n)}return n}function GS(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Bt.updateQueue,e===null?(e=cm(),Bt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function QS(t,e,n,r){e.value=n,e.getSnapshot=r,JS(e)&&e9(t)}function XS(t,e,n){return n(function(){JS(e)&&e9(t)})}function JS(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Pi(t,n)}catch{return!0}}function e9(t){var e=sc(t,2);e!==null&&ui(e,t,2)}function V2(t){var e=$r();if(typeof t==\\\"function\\\"){var n=t;if(t=n(),nc){Us(!0);try{n()}finally{Us(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:t},e}function t9(t,e,n,r){return t.baseState=n,Dw(t,Cn,typeof r==\\\"function\\\"?r:Do)}function Cj(t,e,n,r,i){if(fm(t))throw Error(de(485));if(t=e.action,t!==null){var a={payload:i,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};dt.T!==null?n(!0):a.isTransition=!1,r(a),n=e.pending,n===null?(a.next=e.pending=a,n9(e,a)):(a.next=n.next,e.pending=n.next=a)}}function n9(t,e){var n=e.action,r=e.payload,i=t.state;if(e.isTransition){var a=dt.T,o={};dt.T=o;try{var s=n(i,r),l=dt.S;l!==null&&l(o,s),tC(t,e,s)}catch(c){H2(t,e,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),dt.T=a}}else try{a=n(i,r),tC(t,e,a)}catch(c){H2(t,e,c)}}function tC(t,e,n){n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?n.then(function(r){nC(t,e,r)},function(r){return H2(t,e,r)}):nC(t,e,n)}function nC(t,e,n){e.status=\\\"fulfilled\\\",e.value=n,r9(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,n9(t,n)))}function H2(t,e,n){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do e.status=\\\"rejected\\\",e.reason=n,r9(e),e=e.next;while(e!==r)}t.action=null}function r9(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function i9(t,e){return e}function rC(t,e){if(Qt){var n=En.formState;if(n!==null){e:{var r=Bt;if(Qt){if(zn){t:{for(var i=zn,a=Ji;i.nodeType!==8;){if(!a){i=null;break t}if(i=ta(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a===\\\"F!\\\"||a===\\\"F\\\"?i:null}if(i){zn=ta(i.nextSibling),r=i.data===\\\"F!\\\";break e}}Ys(r)}r=!1}r&&(e=n[0])}}return n=$r(),n.memoizedState=n.baseState=e,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i9,lastRenderedState:e},n.queue=r,n=w9.bind(null,Bt,r),r.dispatch=n,r=V2(!1),a=Ww.bind(null,Bt,!1,r.queue),r=$r(),i={state:e,dispatch:null,action:t,pending:null},r.queue=i,n=Cj.bind(null,Bt,i,a,n),i.dispatch=n,r.memoizedState=t,[e,n,!1]}function iC(t){var e=ir();return a9(e,Cn,t)}function a9(t,e,n){if(e=Dw(t,e,i9)[0],t=bp(Do)[0],typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\")try{var r=c0(e)}catch(o){throw o===hd?lm:o}else r=e;e=ir();var i=e.queue,a=i.dispatch;return n!==e.memoizedState&&(Bt.flags|=2048,id(9,{destroy:void 0},Sj.bind(null,i,n),null)),[r,a,t]}function Sj(t,e){t.action=e}function aC(t){var e=ir(),n=Cn;if(n!==null)return a9(e,n,t);ir(),e=e.memoizedState,n=ir();var r=n.queue.dispatch;return n.memoizedState=t,[e,r,!1]}function id(t,e,n,r){return t={tag:t,create:n,deps:r,inst:e,next:null},e=Bt.updateQueue,e===null&&(e=cm(),Bt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function o9(){return ir().memoizedState}function vp(t,e,n,r){var i=$r();Bt.flags|=t,i.memoizedState=id(1|e,{destroy:void 0},n,r===void 0?null:r)}function dm(t,e,n,r){var i=ir();r=r===void 0?null:r;var a=i.memoizedState.inst;Cn!==null&&r!==null&&Iw(r,Cn.memoizedState.deps)?i.memoizedState=id(e,a,n,r):(Bt.flags|=t,i.memoizedState=id(1|e,a,n,r))}function oC(t,e){vp(8390656,8,t,e)}function Lw(t,e){dm(2048,8,t,e)}function Tj(t){Bt.flags|=4;var e=Bt.updateQueue;if(e===null)e=cm(),Bt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function s9(t){var e=ir().memoizedState;return Tj({ref:e,nextImpl:t}),function(){if((dn&2)!==0)throw Error(de(440));return e.impl.apply(void 0,arguments)}}function l9(t,e){return dm(4,2,t,e)}function c9(t,e){return dm(4,4,t,e)}function u9(t,e){if(typeof e==\\\"function\\\"){t=t();var n=e(t);return function(){typeof n==\\\"function\\\"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function d9(t,e,n){n=n!=null?n.concat([t]):null,dm(4,4,u9.bind(null,e,t),n)}function qw(){}function f9(t,e){var n=ir();e=e===void 0?null:e;var r=n.memoizedState;return e!==null&&Iw(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function h9(t,e){var n=ir();e=e===void 0?null:e;var r=n.memoizedState;if(e!==null&&Iw(e,r[1]))return r[0];if(r=t(),nc){Us(!0);try{t()}finally{Us(!1)}}return n.memoizedState=[r,e],r}function Vw(t,e,n){return n===void 0||(zo&1073741824)!==0&&(Zt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=t7(),Bt.lanes|=t,Qs|=t,n)}function g9(t,e,n,r){return Pi(n,e)?n:rd.current!==null?(t=Vw(t,n,r),Pi(t,e)||(cr=!0),t):(zo&42)===0||(zo&1073741824)!==0&&(Zt&261930)===0?(cr=!0,t.memoizedState=n):(t=t7(),Bt.lanes|=t,Qs|=t,e)}function p9(t,e,n,r,i){var a=fn.p;fn.p=a!==0&&8>a?a:8;var o=dt.T,s={};dt.T=s,Ww(t,!1,e,n);try{var l=i(),c=dt.S;if(c!==null&&c(s,l),l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"){var u=wj(l,r);Ph(t,e,u,Ni(t))}else Ph(t,e,r,Ni(t))}catch(d){Ph(t,e,{then:function(){},status:\\\"rejected\\\",reason:d},Ni())}finally{fn.p=a,o!==null&&s.types!==null&&(o.types=s.types),dt.T=o}}function Ej(){}function W2(t,e,n,r){if(t.tag!==5)throw Error(de(476));var i=m9(t).queue;p9(t,i,e,Zl,n===null?Ej:function(){return y9(t),n(r)})}function m9(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Zl,baseState:Zl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:Zl},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function y9(t){var e=m9(t);e.next===null&&(e=t.alternate.memoizedState),Ph(t,e.next.queue,{},Ni())}function Hw(){return Ar(Jh)}function b9(){return ir().memoizedState}function v9(){return ir().memoizedState}function Aj(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ni();t=qs(n);var r=Vs(e,t,n);r!==null&&(ui(r,e,n),Ih(r,e,n)),e={cache:kw()},t.payload=e;return}e=e.return}}function kj(t,e,n){var r=Ni();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fm(t)?x9(e,n):(n=Sw(t,e,n,r),n!==null&&(ui(n,t,r),_9(n,e,r)))}function w9(t,e,n){var r=Ni();Ph(t,e,n,r)}function Ph(t,e,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fm(t))x9(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pi(s,o))return sm(t,e,i,0),En===null&&om(),!1}catch{}if(n=Sw(t,e,i,r),n!==null)return ui(n,t,r),_9(n,e,r),!0}return!1}function Ww(t,e,n,r){if(r={lane:2,revertLane:Jw(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fm(t)){if(e)throw Error(de(479))}else e=Sw(t,n,r,2),e!==null&&ui(e,t,2)}function fm(t){var e=t.alternate;return t===Bt||e!==null&&e===Bt}function x9(t,e){Qu=Dp=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function _9(t,e,n){if((n&4194048)!==0){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sS(t,n)}}var Gh={readContext:Ar,use:um,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useLayoutEffect:Jn,useInsertionEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useSyncExternalStore:Jn,useId:Jn,useHostTransitionStatus:Jn,useFormState:Jn,useActionState:Jn,useOptimistic:Jn,useMemoCache:Jn,useCacheRefresh:Jn};Gh.useEffectEvent=Jn;var C9={readContext:Ar,use:um,useCallback:function(t,e){return $r().memoizedState=[t,e===void 0?null:e],t},useContext:Ar,useEffect:oC,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,vp(4194308,4,u9.bind(null,e,t),n)},useLayoutEffect:function(t,e){return vp(4194308,4,t,e)},useInsertionEffect:function(t,e){vp(4,2,t,e)},useMemo:function(t,e){var n=$r();e=e===void 0?null:e;var r=t();if(nc){Us(!0);try{t()}finally{Us(!1)}}return n.memoizedState=[r,e],r},useReducer:function(t,e,n){var r=$r();if(n!==void 0){var i=n(e);if(nc){Us(!0);try{n(e)}finally{Us(!1)}}}else i=e;return r.memoizedState=r.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},r.queue=t,t=t.dispatch=kj.bind(null,Bt,t),[r.memoizedState,t]},useRef:function(t){var e=$r();return t={current:t},e.memoizedState=t},useState:function(t){t=V2(t);var e=t.queue,n=w9.bind(null,Bt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:qw,useDeferredValue:function(t,e){var n=$r();return Vw(n,t,e)},useTransition:function(){var t=V2(!1);return t=p9.bind(null,Bt,t.queue,!0,!1),$r().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var r=Bt,i=$r();if(Qt){if(n===void 0)throw Error(de(407));n=n()}else{if(n=e(),En===null)throw Error(de(349));(Zt&127)!==0||GS(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,oC(XS.bind(null,r,a,t),[t]),r.flags|=2048,id(9,{destroy:void 0},QS.bind(null,r,a,n,e),null),n},useId:function(){var t=$r(),e=En.identifierPrefix;if(Qt){var n=Va,r=qa;n=(r&~(1<<32-Ui(r)-1)).toString(32)+n,e=\\\"_\\\"+e+\\\"R_\\\"+n,n=Lp++,0<n&&(e+=\\\"H\\\"+n.toString(32)),e+=\\\"_\\\"}else n=xj++,e=\\\"_\\\"+e+\\\"r_\\\"+n.toString(32)+\\\"_\\\";return t.memoizedState=e},useHostTransitionStatus:Hw,useFormState:rC,useActionState:rC,useOptimistic:function(t){var e=$r();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ww.bind(null,Bt,!0,n),n.dispatch=e,[t,e]},useMemoCache:zw,useCacheRefresh:function(){return $r().memoizedState=Aj.bind(null,Bt)},useEffectEvent:function(t){var e=$r(),n={impl:t};return e.memoizedState=n,function(){if((dn&2)!==0)throw Error(de(440));return n.impl.apply(void 0,arguments)}}},Fw={readContext:Ar,use:um,useCallback:f9,useContext:Ar,useEffect:Lw,useImperativeHandle:d9,useInsertionEffect:l9,useLayoutEffect:c9,useMemo:h9,useReducer:bp,useRef:o9,useState:function(){return bp(Do)},useDebugValue:qw,useDeferredValue:function(t,e){var n=ir();return g9(n,Cn.memoizedState,t,e)},useTransition:function(){var t=bp(Do)[0],e=ir().memoizedState;return[typeof t==\\\"boolean\\\"?t:c0(t),e]},useSyncExternalStore:YS,useId:b9,useHostTransitionStatus:Hw,useFormState:iC,useActionState:iC,useOptimistic:function(t,e){var n=ir();return t9(n,Cn,t,e)},useMemoCache:zw,useCacheRefresh:v9};Fw.useEffectEvent=s9;var S9={readContext:Ar,use:um,useCallback:f9,useContext:Ar,useEffect:Lw,useImperativeHandle:d9,useInsertionEffect:l9,useLayoutEffect:c9,useMemo:h9,useReducer:Xv,useRef:o9,useState:function(){return Xv(Do)},useDebugValue:qw,useDeferredValue:function(t,e){var n=ir();return Cn===null?Vw(n,t,e):g9(n,Cn.memoizedState,t,e)},useTransition:function(){var t=Xv(Do)[0],e=ir().memoizedState;return[typeof t==\\\"boolean\\\"?t:c0(t),e]},useSyncExternalStore:YS,useId:b9,useHostTransitionStatus:Hw,useFormState:aC,useActionState:aC,useOptimistic:function(t,e){var n=ir();return Cn!==null?t9(n,Cn,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:zw,useCacheRefresh:v9};S9.useEffectEvent=s9;function Jv(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Dn({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var F2={enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ni(),i=qs(r);i.payload=e,n!=null&&(i.callback=n),e=Vs(t,i,r),e!==null&&(ui(e,t,r),Ih(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ni(),i=qs(r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Vs(t,i,r),e!==null&&(ui(e,t,r),Ih(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ni(),r=qs(n);r.tag=2,e!=null&&(r.callback=e),e=Vs(t,r,n),e!==null&&(ui(e,t,n),Ih(e,t,n))}};function sC(t,e,n,r,i,a,o){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(r,a,o):e.prototype&&e.prototype.isPureReactComponent?!Fh(n,r)||!Fh(i,a):!0}function lC(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps==\\\"function\\\"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&F2.enqueueReplaceState(e,e.state,null)}function rc(t,e){var n=e;if(\\\"ref\\\"in e){n={};for(var r in e)r!==\\\"ref\\\"&&(n[r]=e[r])}if(t=t.defaultProps){n===e&&(n=Dn({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function T9(t){Op(t)}function E9(t){console.error(t)}function A9(t){Op(t)}function qp(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(r){setTimeout(function(){throw r})}}function cC(t,e,n){try{var r=t.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function $2(t,e,n){return n=qs(n),n.tag=3,n.payload={element:null},n.callback=function(){qp(t,e)},n}function k9(t){return t=qs(t),t.tag=3,t}function B9(t,e,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==\\\"function\\\"){var a=r.value;t.payload=function(){return i(a)},t.callback=function(){cC(e,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==\\\"function\\\"&&(t.callback=function(){cC(e,n,r),typeof i!=\\\"function\\\"&&(Hs===null?Hs=new Set([this]):Hs.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:\\\"\\\"})})}function Bj(t,e,n,r,i){if(n.flags|=32768,r!==null&&typeof r==\\\"object\\\"&&typeof r.then==\\\"function\\\"){if(e=n.alternate,e!==null&&fd(e,n,i,!0),n=ji.current,n!==null){switch(n.tag){case 31:case 13:return ea===null?$p():n.alternate===null&&er===0&&(er=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Pp?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([r]):e.add(r),u2(t,r,i)),!1;case 22:return n.flags|=65536,r===Pp?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([r]):n.add(r)),u2(t,r,i)),!1}throw Error(de(435,n.tag))}return u2(t,r,i),$p(),!1}if(Qt)return e=ji.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,r!==I2&&(t=Error(de(422),{cause:r}),Kh(Xi(t,n)))):(r!==I2&&(e=Error(de(423),{cause:r}),Kh(Xi(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,r=Xi(r,n),i=$2(t.stateNode,r,i),Qv(t,i),er!==4&&(er=2)),!1;var a=Error(de(520),{cause:r});if(a=Xi(a,n),Dh===null?Dh=[a]:Dh.push(a),er!==4&&(er=2),e===null)return!0;r=Xi(r,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=$2(n.stateNode,r,t),Qv(n,t),!1;case 1:if(e=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError==\\\"function\\\"||a!==null&&typeof a.componentDidCatch==\\\"function\\\"&&(Hs===null||!Hs.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=k9(i),B9(i,t,n,r),Qv(n,i),!1}n=n.return}while(n!==null);return!1}var $w=Error(de(461)),cr=!1;function Sr(t,e,n,r){e.child=t===null?HS(e,null,n,r):tc(e,t.child,n,r)}function uC(t,e,n,r,i){n=n.render;var a=e.ref;if(\\\"ref\\\"in r){var o={};for(var s in r)s!==\\\"ref\\\"&&(o[s]=r[s])}else o=r;return ec(e),r=Uw(t,e,n,o,a,i),s=Nw(),t!==null&&!cr?(Pw(t,e,i),Lo(t,e,i)):(Qt&&s&&Ew(e),e.flags|=1,Sr(t,e,r,i),e.child)}function dC(t,e,n,r,i){if(t===null){var a=n.type;return typeof a==\\\"function\\\"&&!Tw(a)&&a.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=a,M9(t,e,a,r,i)):(t=mp(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!Kw(t,i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Fh,n(o,r)&&t.ref===e.ref)return Lo(t,e,i)}return e.flags|=1,t=Uo(a,r),t.ref=e.ref,t.return=e,e.child=t}function M9(t,e,n,r,i){if(t!==null){var a=t.memoizedProps;if(Fh(a,r)&&t.ref===e.ref)if(cr=!1,e.pendingProps=r=a,Kw(t,i))(t.flags&131072)!==0&&(cr=!0);else return e.lanes=t.lanes,Lo(t,e,i)}return K2(t,e,n,r,i)}function R9(t,e,n,r){var i=r.children,a=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===\\\"hidden\\\"){if((e.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,t!==null){for(r=e.child=t.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,e.child=null;return fC(t,e,a,n,r)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&yp(e,a!==null?a.cachePool:null),a!==null?eC(e,a):L2(),$S(e);else return r=e.lanes=536870912,fC(t,e,a!==null?a.baseLanes|n:n,n,r)}else a!==null?(yp(e,a.cachePool),eC(e,a),Os(e),e.memoizedState=null):(t!==null&&yp(e,null),L2(),Os(e));return Sr(t,e,i,n),e.child}function Ah(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fC(t,e,n,r,i){var a=Bw();return a=a===null?null:{parent:lr._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&yp(e,null),L2(),$S(e),t!==null&&fd(t,e,r,!0),e.childLanes=i,null}function wp(t,e){return e=Vp({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function hC(t,e,n){return tc(e,t.child,null,n),t=wp(e,e.pendingProps),t.flags|=2,Bi(e),e.memoizedState=null,t}function Mj(t,e,n){var r=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Qt){if(r.mode===\\\"hidden\\\")return t=wp(e,r),e.lanes=536870912,Ah(null,t);if(q2(e),(t=zn)?(t=C7(t,Ji),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zs!==null?{id:qa,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},n=PS(t),n.return=e,e.child=n,Er=e,zn=null)):t=null,t===null)throw Ys(e);return e.lanes=536870912,null}return wp(e,r)}var a=t.memoizedState;if(a!==null){var o=a.dehydrated;if(q2(e),i)if(e.flags&256)e.flags&=-257,e=hC(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(de(558));else if(cr||fd(t,e,n,!1),i=(n&t.childLanes)!==0,cr||i){if(r=En,r!==null&&(o=lS(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,sc(t,o),ui(r,t,o),$w;$p(),e=hC(t,e,n)}else t=a.treeContext,zn=ta(o.nextSibling),Er=e,Qt=!0,Ls=null,Ji=!1,t!==null&&zS(e,t),e=wp(e,r),e.flags|=4096;return e}return t=Uo(t.child,{mode:r.mode,children:r.children}),t.ref=e.ref,e.child=t,t.return=e,t}function xp(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!=\\\"function\\\"&&typeof n!=\\\"object\\\")throw Error(de(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function K2(t,e,n,r,i){return ec(e),n=Uw(t,e,n,r,void 0,i),r=Nw(),t!==null&&!cr?(Pw(t,e,i),Lo(t,e,i)):(Qt&&r&&Ew(e),e.flags|=1,Sr(t,e,n,i),e.child)}function gC(t,e,n,r,i,a){return ec(e),e.updateQueue=null,n=ZS(e,r,n,i),KS(t),r=Nw(),t!==null&&!cr?(Pw(t,e,a),Lo(t,e,a)):(Qt&&r&&Ew(e),e.flags|=1,Sr(t,e,n,a),e.child)}function pC(t,e,n,r,i){if(ec(e),e.stateNode===null){var a=Vu,o=n.contextType;typeof o==\\\"object\\\"&&o!==null&&(a=Ar(o)),a=new n(r,a),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=F2,e.stateNode=a,a._reactInternals=e,a=e.stateNode,a.props=r,a.state=e.memoizedState,a.refs={},Rw(e),o=n.contextType,a.context=typeof o==\\\"object\\\"&&o!==null?Ar(o):Vu,a.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o==\\\"function\\\"&&(Jv(e,n,o,r),a.state=e.memoizedState),typeof n.getDerivedStateFromProps==\\\"function\\\"||typeof a.getSnapshotBeforeUpdate==\\\"function\\\"||typeof a.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof a.componentWillMount!=\\\"function\\\"||(o=a.state,typeof a.componentWillMount==\\\"function\\\"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==\\\"function\\\"&&a.UNSAFE_componentWillMount(),o!==a.state&&F2.enqueueReplaceState(a,a.state,null),Nh(e,r,a,i),Uh(),a.state=e.memoizedState),typeof a.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),r=!0}else if(t===null){a=e.stateNode;var s=e.memoizedProps,l=rc(n,s);a.props=l;var c=a.context,u=n.contextType;o=Vu,typeof u==\\\"object\\\"&&u!==null&&(o=Ar(u));var d=n.getDerivedStateFromProps;u=typeof d==\\\"function\\\"||typeof a.getSnapshotBeforeUpdate==\\\"function\\\",s=e.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof a.componentWillReceiveProps!=\\\"function\\\"||(s||c!==o)&&lC(e,a,r,o),Bs=!1;var h=e.memoizedState;a.state=h,Nh(e,r,a,i),Uh(),c=e.memoizedState,s||h!==c||Bs?(typeof d==\\\"function\\\"&&(Jv(e,n,d,r),c=e.memoizedState),(l=Bs||sC(e,n,l,r,h,c,o))?(u||typeof a.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof a.componentWillMount!=\\\"function\\\"||(typeof a.componentWillMount==\\\"function\\\"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==\\\"function\\\"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==\\\"function\\\"&&(e.flags|=4194308)):(typeof a.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=o,r=l):(typeof a.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,z2(t,e),o=e.memoizedProps,u=rc(n,o),a.props=u,d=e.pendingProps,h=a.context,c=n.contextType,l=Vu,typeof c==\\\"object\\\"&&c!==null&&(l=Ar(c)),s=n.getDerivedStateFromProps,(c=typeof s==\\\"function\\\"||typeof a.getSnapshotBeforeUpdate==\\\"function\\\")||typeof a.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof a.componentWillReceiveProps!=\\\"function\\\"||(o!==d||h!==l)&&lC(e,a,r,l),Bs=!1,h=e.memoizedState,a.state=h,Nh(e,r,a,i),Uh();var g=e.memoizedState;o!==d||h!==g||Bs||t!==null&&t.dependencies!==null&&Np(t.dependencies)?(typeof s==\\\"function\\\"&&(Jv(e,n,s,r),g=e.memoizedState),(u=Bs||sC(e,n,u,r,h,g,l)||t!==null&&t.dependencies!==null&&Np(t.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof a.componentWillUpdate!=\\\"function\\\"||(typeof a.componentWillUpdate==\\\"function\\\"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate==\\\"function\\\"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate==\\\"function\\\"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate==\\\"function\\\"&&(e.flags|=1024)):(typeof a.componentDidUpdate!=\\\"function\\\"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!=\\\"function\\\"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!=\\\"function\\\"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!=\\\"function\\\"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return a=r,xp(t,e),r=(e.flags&128)!==0,a||r?(a=e.stateNode,n=r&&typeof n.getDerivedStateFromError!=\\\"function\\\"?null:a.render(),e.flags|=1,t!==null&&r?(e.child=tc(e,t.child,null,i),e.child=tc(e,null,n,i)):Sr(t,e,n,i),e.memoizedState=a.state,t=e.child):t=Lo(t,e,i),t}function mC(t,e,n,r){return Jl(),e.flags|=256,Sr(t,e,n,r),e.child}var e2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function t2(t){return{baseLanes:t,cachePool:LS()}}function n2(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ri),t}function O9(t,e,n){var r=e.pendingProps,i=!1,a=(e.flags&128)!==0,o;if((o=a)||(o=t!==null&&t.memoizedState===null?!1:(rr.current&2)!==0),o&&(i=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(Qt){if(i?Rs(e):Os(e),(t=zn)?(t=C7(t,Ji),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zs!==null?{id:qa,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},n=PS(t),n.return=e,e.child=n,Er=e,zn=null)):t=null,t===null)throw Ys(e);return sw(t)?e.lanes=32:e.lanes=536870912,null}var s=r.children;return r=r.fallback,i?(Os(e),i=e.mode,s=Vp({mode:\\\"hidden\\\",children:s},i),r=Yl(r,i,n,null),s.return=e,r.return=e,s.sibling=r,e.child=s,r=e.child,r.memoizedState=t2(n),r.childLanes=n2(t,o,n),e.memoizedState=e2,Ah(null,r)):(Rs(e),Z2(e,s))}var l=t.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(a)e.flags&256?(Rs(e),e.flags&=-257,e=r2(t,e,n)):e.memoizedState!==null?(Os(e),e.child=t.child,e.flags|=128,e=null):(Os(e),s=r.fallback,i=e.mode,r=Vp({mode:\\\"visible\\\",children:r.children},i),s=Yl(s,i,n,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,tc(e,t.child,null,n),r=e.child,r.memoizedState=t2(n),r.childLanes=n2(t,o,n),e.memoizedState=e2,e=Ah(null,r));else if(Rs(e),sw(s)){if(o=s.nextSibling&&s.nextSibling.dataset,o)var c=o.dgst;o=c,r=Error(de(419)),r.stack=\\\"\\\",r.digest=o,Kh({value:r,source:null,stack:null}),e=r2(t,e,n)}else if(cr||fd(t,e,n,!1),o=(n&t.childLanes)!==0,cr||o){if(o=En,o!==null&&(r=lS(o,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,sc(t,r),ui(o,t,r),$w;ow(s)||$p(),e=r2(t,e,n)}else ow(s)?(e.flags|=192,e.child=t.child,e=null):(t=l.treeContext,zn=ta(s.nextSibling),Er=e,Qt=!0,Ls=null,Ji=!1,t!==null&&zS(e,t),e=Z2(e,r.children),e.flags|=4096);return e}return i?(Os(e),s=r.fallback,i=e.mode,l=t.child,c=l.sibling,r=Uo(l,{mode:\\\"hidden\\\",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?s=Uo(c,s):(s=Yl(s,i,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,Ah(null,r),r=e.child,s=t.child.memoizedState,s===null?s=t2(n):(i=s.cachePool,i!==null?(l=lr._currentValue,i=i.parent!==l?{parent:l,pool:l}:i):i=LS(),s={baseLanes:s.baseLanes|n,cachePool:i}),r.memoizedState=s,r.childLanes=n2(t,o,n),e.memoizedState=e2,Ah(t.child,r)):(Rs(e),n=t.child,t=n.sibling,n=Uo(n,{mode:\\\"visible\\\",children:r.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n)}function Z2(t,e){return e=Vp({mode:\\\"visible\\\",children:e},t.mode),e.return=t,t.child=e}function Vp(t,e){return t=Mi(22,t,null,e),t.lanes=0,t}function r2(t,e,n){return tc(e,t.child,null,n),t=Z2(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function yC(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),N2(t.return,e,n)}function i2(t,e,n,r,i,a){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function I9(t,e,n){var r=e.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=rr.current,s=(o&2)!==0;if(s?(o=o&1|2,e.flags|=128):o&=1,Rn(rr,o),Sr(t,e,r,n),r=Qt?$h:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&yC(t,n,e);else if(t.tag===19)yC(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case\\\"forwards\\\":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&zp(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),i2(e,!1,i,n,a,r);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&zp(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}i2(e,!0,n,null,a,r);break;case\\\"together\\\":i2(e,!1,null,null,void 0,r);break;default:e.memoizedState=null}return e.child}function Lo(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Qs|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(fd(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(de(153));if(e.child!==null){for(t=e.child,n=Uo(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Uo(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Kw(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Np(t)))}function Rj(t,e,n){switch(e.tag){case 3:kp(e,e.stateNode.containerInfo),Ms(e,lr,t.memoizedState.cache),Jl();break;case 27:case 5:_2(e);break;case 4:kp(e,e.stateNode.containerInfo);break;case 10:Ms(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,q2(e),null;break;case 13:var r=e.memoizedState;if(r!==null)return r.dehydrated!==null?(Rs(e),e.flags|=128,null):(n&e.child.childLanes)!==0?O9(t,e,n):(Rs(e),t=Lo(t,e,n),t!==null?t.sibling:null);Rs(e);break;case 19:var i=(t.flags&128)!==0;if(r=(n&e.childLanes)!==0,r||(fd(t,e,n,!1),r=(n&e.childLanes)!==0),i){if(r)return I9(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Rn(rr,rr.current),r)break;return null;case 22:return e.lanes=0,R9(t,e,n,e.pendingProps);case 24:Ms(e,lr,t.memoizedState.cache)}return Lo(t,e,n)}function U9(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)cr=!0;else{if(!Kw(t,n)&&(e.flags&128)===0)return cr=!1,Rj(t,e,n);cr=(t.flags&131072)!==0}else cr=!1,Qt&&(e.flags&1048576)!==0&&jS(e,$h,e.index);switch(e.lanes=0,e.tag){case 16:e:{var r=e.pendingProps;if(t=$l(e.elementType),e.type=t,typeof t==\\\"function\\\")Tw(t)?(r=rc(t,r),e.tag=1,e=pC(null,e,t,r,n)):(e.tag=0,e=K2(null,e,t,r,n));else{if(t!=null){var i=t.$$typeof;if(i===dw){e.tag=11,e=uC(null,e,t,r,n);break e}else if(i===fw){e.tag=14,e=dC(null,e,t,r,n);break e}}throw e=w2(t)||t,Error(de(306,e,\\\"\\\"))}}return e;case 0:return K2(t,e,e.type,e.pendingProps,n);case 1:return r=e.type,i=rc(r,e.pendingProps),pC(t,e,r,i,n);case 3:e:{if(kp(e,e.stateNode.containerInfo),t===null)throw Error(de(387));r=e.pendingProps;var a=e.memoizedState;i=a.element,z2(t,e),Nh(e,r,null,n);var o=e.memoizedState;if(r=o.cache,Ms(e,lr,r),r!==a.cache&&P2(e,[lr],n,!0),Uh(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){e=mC(t,e,r,n);break e}else if(r!==i){i=Xi(Error(de(424)),e),Kh(i),e=mC(t,e,r,n);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,zn=ta(t.firstChild),Er=e,Qt=!0,Ls=null,Ji=!0,n=HS(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jl(),r===i){e=Lo(t,e,n);break e}Sr(t,e,r,n)}e=e.child}return e;case 26:return xp(t,e),t===null?(n=DC(e.type,null,e.pendingProps,null))?e.memoizedState=n:Qt||(n=e.type,t=e.pendingProps,r=Gp(Ds.current).createElement(n),r[Tr]=e,r[di]=t,kr(r,n,t),vr(r),e.stateNode=r):e.memoizedState=DC(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return _2(e),t===null&&Qt&&(r=e.stateNode=S7(e.type,e.pendingProps,Ds.current),Er=e,Ji=!0,i=zn,Js(e.type)?(lw=i,zn=ta(r.firstChild)):zn=i),Sr(t,e,e.pendingProps.children,n),xp(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Qt&&((i=r=zn)&&(r=az(r,e.type,e.pendingProps,Ji),r!==null?(e.stateNode=r,Er=e,zn=ta(r.firstChild),Ji=!1,i=!0):i=!1),i||Ys(e)),_2(e),i=e.type,a=e.pendingProps,o=t!==null?t.memoizedProps:null,r=a.children,iw(i,a)?r=null:o!==null&&iw(i,o)&&(e.flags|=32),e.memoizedState!==null&&(i=Uw(t,e,_j,null,null,n),Jh._currentValue=i),xp(t,e),Sr(t,e,r,n),e.child;case 6:return t===null&&Qt&&((t=n=zn)&&(n=oz(n,e.pendingProps,Ji),n!==null?(e.stateNode=n,Er=e,zn=null,t=!0):t=!1),t||Ys(e)),null;case 13:return O9(t,e,n);case 4:return kp(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=tc(e,null,r,n):Sr(t,e,r,n),e.child;case 11:return uC(t,e,e.type,e.pendingProps,n);case 7:return Sr(t,e,e.pendingProps,n),e.child;case 8:return Sr(t,e,e.pendingProps.children,n),e.child;case 12:return Sr(t,e,e.pendingProps.children,n),e.child;case 10:return r=e.pendingProps,Ms(e,e.type,r.value),Sr(t,e,r.children,n),e.child;case 9:return i=e.type._context,r=e.pendingProps.children,ec(e),i=Ar(i),r=r(i),e.flags|=1,Sr(t,e,r,n),e.child;case 14:return dC(t,e,e.type,e.pendingProps,n);case 15:return M9(t,e,e.type,e.pendingProps,n);case 19:return I9(t,e,n);case 31:return Mj(t,e,n);case 22:return R9(t,e,n,e.pendingProps);case 24:return ec(e),r=Ar(lr),t===null?(i=Bw(),i===null&&(i=En,a=kw(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),e.memoizedState={parent:r,cache:i},Rw(e),Ms(e,lr,i)):((t.lanes&n)!==0&&(z2(t,e),Nh(e,null,null,n),Uh()),i=t.memoizedState,a=e.memoizedState,i.parent!==r?(i={parent:r,cache:r},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Ms(e,lr,r)):(r=a.cache,Ms(e,lr,r),r!==i.cache&&P2(e,[lr],n,!0))),Sr(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(de(156,e.tag))}function To(t){t.flags|=4}function a2(t,e,n,r,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(i7())t.flags|=8192;else throw Ql=Pp,Mw}else t.flags&=-16777217}function bC(t,e){if(e.type!==\\\"stylesheet\\\"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!A7(e))if(i7())t.flags|=8192;else throw Ql=Pp,Mw}function ap(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?aS():536870912,t.lanes|=e,ad|=e)}function wh(t,e){if(!Qt)switch(t.tailMode){case\\\"hidden\\\":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case\\\"collapsed\\\":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function jn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Oj(t,e,n){var r=e.pendingProps;switch(Aw(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(e),null;case 1:return jn(e),null;case 3:return n=e.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),No(lr),Ju(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Mu(e)?To(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Gv())),jn(e),null;case 26:var i=e.type,a=e.memoizedState;return t===null?(To(e),a!==null?(jn(e),bC(e,a)):(jn(e),a2(e,i,null,r,n))):a?a!==t.memoizedState?(To(e),jn(e),bC(e,a)):(jn(e),e.flags&=-16777217):(t=t.memoizedProps,t!==r&&To(e),jn(e),a2(e,i,t,r,n)),null;case 27:if(Bp(e),n=Ds.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&To(e);else{if(!r){if(e.stateNode===null)throw Error(de(166));return jn(e),null}t=Wa.current,Mu(e)?K8(e,t):(t=S7(i,r,n),e.stateNode=t,To(e))}return jn(e),null;case 5:if(Bp(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&To(e);else{if(!r){if(e.stateNode===null)throw Error(de(166));return jn(e),null}if(a=Wa.current,Mu(e))K8(e,a);else{var o=Gp(Ds.current);switch(a){case 1:a=o.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case 2:a=o.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;default:switch(i){case\\\"svg\\\":a=o.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case\\\"math\\\":a=o.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;case\\\"script\\\":a=o.createElement(\\\"div\\\"),a.innerHTML=\\\"<script><\\\\/script>\\\",a=a.removeChild(a.firstChild);break;case\\\"select\\\":a=typeof r.is==\\\"string\\\"?o.createElement(\\\"select\\\",{is:r.is}):o.createElement(\\\"select\\\"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==\\\"string\\\"?o.createElement(i,{is:r.is}):o.createElement(i)}}a[Tr]=e,a[di]=r;e:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break e;for(;o.sibling===null;){if(o.return===null||o.return===e)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=a;e:switch(kr(a,i,r),i){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":r=!!r.autoFocus;break e;case\\\"img\\\":r=!0;break e;default:r=!1}r&&To(e)}}return jn(e),a2(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&To(e);else{if(typeof r!=\\\"string\\\"&&e.stateNode===null)throw Error(de(166));if(t=Ds.current,Mu(e)){if(t=e.stateNode,n=e.memoizedProps,r=null,i=Er,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}t[Tr]=e,t=!!(t.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||w7(t.nodeValue,n)),t||Ys(e,!0)}else t=Gp(t).createTextNode(r),t[Tr]=e,e.stateNode=t}return jn(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(r=Mu(e),n!==null){if(t===null){if(!r)throw Error(de(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(de(557));t[Tr]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jn(e),t=!1}else n=Gv(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Bi(e),e):(Bi(e),null);if((e.flags&128)!==0)throw Error(de(558))}return jn(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Mu(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(de(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(de(317));i[Tr]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jn(e),i=!1}else i=Gv(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Bi(e),e):(Bi(e),null)}return Bi(e),(e.flags&128)!==0?(e.lanes=n,e):(n=r!==null,t=t!==null&&t.memoizedState!==null,n&&(r=e.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ap(e,e.updateQueue),jn(e),null);case 4:return Ju(),t===null&&e5(e.stateNode.containerInfo),jn(e),null;case 10:return No(e.type),jn(e),null;case 19:if(wr(rr),r=e.memoizedState,r===null)return jn(e),null;if(i=(e.flags&128)!==0,a=r.rendering,a===null)if(i)wh(r,!1);else{if(er!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=zp(t),a!==null){for(e.flags|=128,wh(r,!1),t=a.updateQueue,e.updateQueue=t,ap(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)NS(n,t),n=n.sibling;return Rn(rr,rr.current&1|2),Qt&&Bo(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&Oi()>Wp&&(e.flags|=128,i=!0,wh(r,!1),e.lanes=4194304)}else{if(!i)if(t=zp(a),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,ap(e,t),wh(r,!0),r.tail===null&&r.tailMode===\\\"hidden\\\"&&!a.alternate&&!Qt)return jn(e),null}else 2*Oi()-r.renderingStartTime>Wp&&n!==536870912&&(e.flags|=128,i=!0,wh(r,!1),e.lanes=4194304);r.isBackwards?(a.sibling=e.child,e.child=a):(t=r.last,t!==null?t.sibling=a:e.child=a,r.last=a)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Oi(),t.sibling=null,n=rr.current,Rn(rr,i?n&1|2:n&1),Qt&&Bo(e,r.treeForkCount),t):(jn(e),null);case 22:case 23:return Bi(e),Ow(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?(n&536870912)!==0&&(e.flags&128)===0&&(jn(e),e.subtreeFlags&6&&(e.flags|=8192)):jn(e),n=e.updateQueue,n!==null&&ap(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==n&&(e.flags|=2048),t!==null&&wr(Gl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),No(lr),jn(e),null;case 25:return null;case 30:return null}throw Error(de(156,e.tag))}function Ij(t,e){switch(Aw(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return No(lr),Ju(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Bp(e),null;case 31:if(e.memoizedState!==null){if(Bi(e),e.alternate===null)throw Error(de(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Bi(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(de(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return wr(rr),null;case 4:return Ju(),null;case 10:return No(e.type),null;case 22:case 23:return Bi(e),Ow(),t!==null&&wr(Gl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return No(lr),null;case 25:return null;default:return null}}function N9(t,e){switch(Aw(e),e.tag){case 3:No(lr),Ju();break;case 26:case 27:case 5:Bp(e);break;case 4:Ju();break;case 31:e.memoizedState!==null&&Bi(e);break;case 13:Bi(e);break;case 19:wr(rr);break;case 10:No(e.type);break;case 22:case 23:Bi(e),Ow(),t!==null&&wr(Gl);break;case 24:No(lr)}}function u0(t,e){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(s){bn(e,e.return,s)}}function Gs(t,e,n){try{var r=e.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&t)===t){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=e;var l=n,c=s;try{c()}catch(u){bn(i,l,u)}}}r=r.next}while(r!==a)}}catch(u){bn(e,e.return,u)}}function P9(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{FS(e,n)}catch(r){bn(t,t.return,r)}}}function j9(t,e,n){n.props=rc(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(r){bn(t,e,r)}}function jh(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof n==\\\"function\\\"?t.refCleanup=n(r):n.current=r}}catch(i){bn(t,e,i)}}function Ha(t,e){var n=t.ref,r=t.refCleanup;if(n!==null)if(typeof r==\\\"function\\\")try{r()}catch(i){bn(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n==\\\"function\\\")try{n(null)}catch(i){bn(t,e,i)}else n.current=null}function z9(t){var e=t.type,n=t.memoizedProps,r=t.stateNode;try{e:switch(e){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n.autoFocus&&r.focus();break e;case\\\"img\\\":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){bn(t,t.return,i)}}function o2(t,e,n){try{var r=t.stateNode;Jj(r,t.type,n,e),r[di]=e}catch(i){bn(t,t.return,i)}}function D9(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Js(t.type)||t.tag===4}function s2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||D9(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Js(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Y2(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Oo));else if(r!==4&&(r===27&&Js(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Y2(t,e,n),t=t.sibling;t!==null;)Y2(t,e,n),t=t.sibling}function Hp(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(r===27&&Js(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Hp(t,e,n),t=t.sibling;t!==null;)Hp(t,e,n),t=t.sibling}function L9(t){var e=t.stateNode,n=t.memoizedProps;try{for(var r=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);kr(e,r,n),e[Tr]=t,e[di]=n}catch(a){bn(t,t.return,a)}}var Mo=!1,sr=!1,l2=!1,vC=typeof WeakSet==\\\"function\\\"?WeakSet:Set,br=null;function Uj(t,e){if(t=t.containerInfo,nw=em,t=AS(t),_w(t)){if(\\\"selectionStart\\\"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=t,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===t)break t;if(h===n&&++c===i&&(s=o),h===a&&++u===r&&(l=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(rw={focusedElem:t,selectionRange:n},em=!1,br=e;br!==null;)if(e=br,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,br=t;else for(;br!==null;){switch(e=br,a=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&a!==null){t=void 0,n=e,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var y=rc(n.type,i);t=r.getSnapshotBeforeUpdate(y,a),r.__reactInternalSnapshotBeforeUpdate=t}catch(E){bn(n,n.return,E)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)aw(t);else if(n===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":aw(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(de(163))}if(t=e.sibling,t!==null){t.return=e.return,br=t;break}br=e.return}}function q9(t,e,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ao(t,n),r&4&&u0(5,n);break;case 1:if(Ao(t,n),r&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(o){bn(n,n.return,o)}else{var i=rc(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){bn(n,n.return,o)}}r&64&&P9(n),r&512&&jh(n,n.return);break;case 3:if(Ao(t,n),r&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{FS(t,e)}catch(o){bn(n,n.return,o)}}break;case 27:e===null&&r&4&&L9(n);case 26:case 5:Ao(t,n),e===null&&r&4&&z9(n),r&512&&jh(n,n.return);break;case 12:Ao(t,n);break;case 31:Ao(t,n),r&4&&W9(t,n);break;case 13:Ao(t,n),r&4&&F9(t,n),r&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Hj.bind(null,n),sz(t,n))));break;case 22:if(r=n.memoizedState!==null||Mo,!r){e=e!==null&&e.memoizedState!==null||sr,i=Mo;var a=sr;Mo=r,(sr=e)&&!a?ko(t,n,(n.subtreeFlags&8772)!==0):Ao(t,n),Mo=i,sr=a}break;case 30:break;default:Ao(t,n)}}function V9(t){var e=t.alternate;e!==null&&(t.alternate=null,V9(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&mw(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Hn=null,li=!1;function Eo(t,e,n){for(n=n.child;n!==null;)H9(t,e,n),n=n.sibling}function H9(t,e,n){if(Ii&&typeof Ii.onCommitFiberUnmount==\\\"function\\\")try{Ii.onCommitFiberUnmount(r0,n)}catch{}switch(n.tag){case 26:sr||Ha(n,e),Eo(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sr||Ha(n,e);var r=Hn,i=li;Js(n.type)&&(Hn=n.stateNode,li=!1),Eo(t,e,n),qh(n.stateNode),Hn=r,li=i;break;case 5:sr||Ha(n,e);case 6:if(r=Hn,i=li,Hn=null,Eo(t,e,n),Hn=r,li=i,Hn!==null)if(li)try{(Hn.nodeType===9?Hn.body:Hn.nodeName===\\\"HTML\\\"?Hn.ownerDocument.body:Hn).removeChild(n.stateNode)}catch(a){bn(n,e,a)}else try{Hn.removeChild(n.stateNode)}catch(a){bn(n,e,a)}break;case 18:Hn!==null&&(li?(t=Hn,UC(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,n.stateNode),cd(t)):UC(Hn,n.stateNode));break;case 4:r=Hn,i=li,Hn=n.stateNode.containerInfo,li=!0,Eo(t,e,n),Hn=r,li=i;break;case 0:case 11:case 14:case 15:Gs(2,n,e),sr||Gs(4,n,e),Eo(t,e,n);break;case 1:sr||(Ha(n,e),r=n.stateNode,typeof r.componentWillUnmount==\\\"function\\\"&&j9(n,e,r)),Eo(t,e,n);break;case 21:Eo(t,e,n);break;case 22:sr=(r=sr)||n.memoizedState!==null,Eo(t,e,n),sr=r;break;default:Eo(t,e,n)}}function W9(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{cd(t)}catch(n){bn(e,e.return,n)}}}function F9(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{cd(t)}catch(n){bn(e,e.return,n)}}function Nj(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new vC),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new vC),e;default:throw Error(de(435,t.tag))}}function op(t,e){var n=Nj(t);e.forEach(function(r){if(!n.has(r)){n.add(r);var i=Wj.bind(null,t,r);r.then(i,i)}})}function oi(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 27:if(Js(s.type)){Hn=s.stateNode,li=!1;break e}break;case 5:Hn=s.stateNode,li=!1;break e;case 3:case 4:Hn=s.stateNode.containerInfo,li=!0;break e}s=s.return}if(Hn===null)throw Error(de(160));H9(a,o,i),Hn=null,li=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)$9(e,t),e=e.sibling}var Ca=null;function $9(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oi(e,t),si(t),r&4&&(Gs(3,t,t.return),u0(3,t),Gs(5,t,t.return));break;case 1:oi(e,t),si(t),r&512&&(sr||n===null||Ha(n,n.return)),r&64&&Mo&&(t=t.updateQueue,t!==null&&(r=t.callbacks,r!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Ca;if(oi(e,t),si(t),r&512&&(sr||n===null||Ha(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=t.memoizedState,n===null)if(r===null)if(t.stateNode===null){e:{r=t.type,n=t.memoizedProps,i=i.ownerDocument||i;t:switch(r){case\\\"title\\\":a=i.getElementsByTagName(\\\"title\\\")[0],(!a||a[o0]||a[Tr]||a.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||a.hasAttribute(\\\"itemprop\\\"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(\\\"head > title\\\"))),kr(a,r,n),a[Tr]=t,vr(a),r=a;break e;case\\\"link\\\":var o=qC(\\\"link\\\",\\\"href\\\",i).get(r+(n.href||\\\"\\\"));if(o){for(var s=0;s<o.length;s++)if(a=o[s],a.getAttribute(\\\"href\\\")===(n.href==null||n.href===\\\"\\\"?null:n.href)&&a.getAttribute(\\\"rel\\\")===(n.rel==null?null:n.rel)&&a.getAttribute(\\\"title\\\")===(n.title==null?null:n.title)&&a.getAttribute(\\\"crossorigin\\\")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break t}}a=i.createElement(r),kr(a,r,n),i.head.appendChild(a);break;case\\\"meta\\\":if(o=qC(\\\"meta\\\",\\\"content\\\",i).get(r+(n.content||\\\"\\\"))){for(s=0;s<o.length;s++)if(a=o[s],a.getAttribute(\\\"content\\\")===(n.content==null?null:\\\"\\\"+n.content)&&a.getAttribute(\\\"name\\\")===(n.name==null?null:n.name)&&a.getAttribute(\\\"property\\\")===(n.property==null?null:n.property)&&a.getAttribute(\\\"http-equiv\\\")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(\\\"charset\\\")===(n.charSet==null?null:n.charSet)){o.splice(s,1);break t}}a=i.createElement(r),kr(a,r,n),i.head.appendChild(a);break;default:throw Error(de(468,r))}a[Tr]=t,vr(a),r=a}t.stateNode=r}else VC(i,t.type,t.stateNode);else t.stateNode=LC(i,r,t.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?VC(i,t.type,t.stateNode):LC(i,r,t.memoizedProps)):r===null&&t.stateNode!==null&&o2(t,t.memoizedProps,n.memoizedProps)}break;case 27:oi(e,t),si(t),r&512&&(sr||n===null||Ha(n,n.return)),n!==null&&r&4&&o2(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oi(e,t),si(t),r&512&&(sr||n===null||Ha(n,n.return)),t.flags&32){i=t.stateNode;try{td(i,\\\"\\\")}catch(y){bn(t,t.return,y)}}r&4&&t.stateNode!=null&&(i=t.memoizedProps,o2(t,i,n!==null?n.memoizedProps:i)),r&1024&&(l2=!0);break;case 6:if(oi(e,t),si(t),r&4){if(t.stateNode===null)throw Error(de(162));r=t.memoizedProps,n=t.stateNode;try{n.nodeValue=r}catch(y){bn(t,t.return,y)}}break;case 3:if(Sp=null,i=Ca,Ca=Qp(e.containerInfo),oi(e,t),Ca=i,si(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cd(e.containerInfo)}catch(y){bn(t,t.return,y)}l2&&(l2=!1,K9(t));break;case 4:r=Ca,Ca=Qp(t.stateNode.containerInfo),oi(e,t),si(t),Ca=r;break;case 12:oi(e,t),si(t);break;case 31:oi(e,t),si(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,op(t,r)));break;case 13:oi(e,t),si(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hm=Oi()),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,op(t,r)));break;case 22:i=t.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Mo,u=sr;if(Mo=c||i,sr=u||l,oi(e,t),sr=u,Mo=c,si(t),r&8192)e:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||l||Mo||sr||Kl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){l=n=e;try{if(a=l.stateNode,i)o=a.style,typeof o.setProperty==\\\"function\\\"?o.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):o.display=\\\"none\\\";else{s=l.stateNode;var d=l.memoizedProps.style,h=d!=null&&d.hasOwnProperty(\\\"display\\\")?d.display:null;s.style.display=h==null||typeof h==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+h).trim()}}catch(y){bn(l,l.return,y)}}}else if(e.tag===6){if(n===null){l=e;try{l.stateNode.nodeValue=i?\\\"\\\":l.memoizedProps}catch(y){bn(l,l.return,y)}}}else if(e.tag===18){if(n===null){l=e;try{var g=l.stateNode;i?NC(g,!0):NC(l.stateNode,!1)}catch(y){bn(l,l.return,y)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}r&4&&(r=t.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,op(t,n))));break;case 19:oi(e,t),si(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,op(t,r)));break;case 30:break;case 21:break;default:oi(e,t),si(t)}}function si(t){var e=t.flags;if(e&2){try{for(var n,r=t.return;r!==null;){if(D9(r)){n=r;break}r=r.return}if(n==null)throw Error(de(160));switch(n.tag){case 27:var i=n.stateNode,a=s2(t);Hp(t,a,i);break;case 5:var o=n.stateNode;n.flags&32&&(td(o,\\\"\\\"),n.flags&=-33);var s=s2(t);Hp(t,s,o);break;case 3:case 4:var l=n.stateNode.containerInfo,c=s2(t);Y2(t,c,l);break;default:throw Error(de(161))}}catch(u){bn(t,t.return,u)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function K9(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;K9(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ao(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)q9(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Gs(4,e,e.return),Kl(e);break;case 1:Ha(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==\\\"function\\\"&&j9(e,e.return,n),Kl(e);break;case 27:qh(e.stateNode);case 26:case 5:Ha(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function ko(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var r=e.alternate,i=t,a=e,o=a.flags;switch(a.tag){case 0:case 11:case 15:ko(i,a,n),u0(4,a);break;case 1:if(ko(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==\\\"function\\\")try{i.componentDidMount()}catch(c){bn(r,r.return,c)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)WS(l[i],s)}catch(c){bn(r,r.return,c)}}n&&o&64&&P9(a),jh(a,a.return);break;case 27:L9(a);case 26:case 5:ko(i,a,n),n&&r===null&&o&4&&z9(a),jh(a,a.return);break;case 12:ko(i,a,n);break;case 31:ko(i,a,n),n&&o&4&&W9(i,a);break;case 13:ko(i,a,n),n&&o&4&&F9(i,a);break;case 22:a.memoizedState===null&&ko(i,a,n),jh(a,a.return);break;case 30:break;default:ko(i,a,n)}e=e.sibling}}function Zw(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&l0(n))}function Yw(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&l0(t))}function _a(t,e,n,r){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Z9(t,e,n,r),e=e.sibling}function Z9(t,e,n,r){var i=e.flags;switch(e.tag){case 0:case 11:case 15:_a(t,e,n,r),i&2048&&u0(9,e);break;case 1:_a(t,e,n,r);break;case 3:_a(t,e,n,r),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&l0(t)));break;case 12:if(i&2048){_a(t,e,n,r),t=e.stateNode;try{var a=e.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==\\\"function\\\"&&s(o,e.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(l){bn(e,e.return,l)}}else _a(t,e,n,r);break;case 31:_a(t,e,n,r);break;case 13:_a(t,e,n,r);break;case 23:break;case 22:a=e.stateNode,o=e.alternate,e.memoizedState!==null?a._visibility&2?_a(t,e,n,r):zh(t,e):a._visibility&2?_a(t,e,n,r):(a._visibility|=2,Ou(t,e,n,r,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Zw(o,e);break;case 24:_a(t,e,n,r),i&2048&&Yw(e.alternate,e);break;default:_a(t,e,n,r)}}function Ou(t,e,n,r,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var a=t,o=e,s=n,l=r,c=o.flags;switch(o.tag){case 0:case 11:case 15:Ou(a,o,s,l,i),u0(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState!==null?u._visibility&2?Ou(a,o,s,l,i):zh(a,o):(u._visibility|=2,Ou(a,o,s,l,i)),i&&c&2048&&Zw(o.alternate,o);break;case 24:Ou(a,o,s,l,i),i&&c&2048&&Yw(o.alternate,o);break;default:Ou(a,o,s,l,i)}e=e.sibling}}function zh(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,r=e,i=r.flags;switch(r.tag){case 22:zh(n,r),i&2048&&Zw(r.alternate,r);break;case 24:zh(n,r),i&2048&&Yw(r.alternate,r);break;default:zh(n,r)}e=e.sibling}}var kh=8192;function Ru(t,e,n){if(t.subtreeFlags&kh)for(t=t.child;t!==null;)Y9(t,e,n),t=t.sibling}function Y9(t,e,n){switch(t.tag){case 26:Ru(t,e,n),t.flags&kh&&t.memoizedState!==null&&vz(n,Ca,t.memoizedState,t.memoizedProps);break;case 5:Ru(t,e,n);break;case 3:case 4:var r=Ca;Ca=Qp(t.stateNode.containerInfo),Ru(t,e,n),Ca=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=kh,kh=16777216,Ru(t,e,n),kh=r):Ru(t,e,n));break;default:Ru(t,e,n)}}function G9(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function xh(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];br=r,X9(r,t)}G9(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Q9(t),t=t.sibling}function Q9(t){switch(t.tag){case 0:case 11:case 15:xh(t),t.flags&2048&&Gs(9,t,t.return);break;case 3:xh(t);break;case 12:xh(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_p(t)):xh(t);break;default:xh(t)}}function _p(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];br=r,X9(r,t)}G9(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Gs(8,e,e.return),_p(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,_p(e));break;default:_p(e)}t=t.sibling}}function X9(t,e){for(;br!==null;){var n=br;switch(n.tag){case 0:case 11:case 15:Gs(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:l0(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,br=r;else e:for(n=t;br!==null;){r=br;var i=r.sibling,a=r.return;if(V9(r),r===n){br=null;break e}if(i!==null){i.return=a,br=i;break e}br=a}}}var Pj={getCacheForType:function(t){var e=Ar(lr),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Ar(lr).controller.signal}},jj=typeof WeakMap==\\\"function\\\"?WeakMap:Map,dn=0,En=null,Ft=null,Zt=0,yn=0,ki=null,Ps=!1,gd=!1,Gw=!1,qo=0,er=0,Qs=0,Xl=0,Qw=0,Ri=0,ad=0,Dh=null,ci=null,G2=!1,hm=0,J9=0,Wp=1/0,Fp=null,Hs=null,gr=0,Ws=null,od=null,Po=0,Q2=0,X2=null,e7=null,Lh=0,J2=null;function Ni(){return(dn&2)!==0&&Zt!==0?Zt&-Zt:dt.T!==null?Jw():cS()}function t7(){if(Ri===0)if((Zt&536870912)===0||Qt){var t=Gg;Gg<<=1,(Gg&3932160)===0&&(Gg=262144),Ri=t}else Ri=536870912;return t=ji.current,t!==null&&(t.flags|=32),Ri}function ui(t,e,n){(t===En&&(yn===2||yn===9)||t.cancelPendingCommit!==null)&&(sd(t,0),js(t,Zt,Ri,!1)),a0(t,n),((dn&2)===0||t!==En)&&(t===En&&((dn&2)===0&&(Xl|=n),er===4&&js(t,Zt,Ri,!1)),$a(t))}function n7(t,e,n){if((dn&6)!==0)throw Error(de(327));var r=!n&&(e&127)===0&&(e&t.expiredLanes)===0||i0(t,e),i=r?Lj(t,e):c2(t,e,!0),a=r;do{if(i===0){gd&&!r&&js(t,e,0,!1);break}else{if(n=t.current.alternate,a&&!zj(n)){i=c2(t,e,!1),a=!1;continue}if(i===2){if(a=e,t.errorRecoveryDisabledLanes&a)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;e:{var s=t;i=Dh;var l=s.current.memoizedState.isDehydrated;if(l&&(sd(s,o).flags|=256),o=c2(s,o,!1),o!==2){if(Gw&&!l){s.errorRecoveryDisabledLanes|=a,Xl|=a,i=4;break e}a=ci,ci=i,a!==null&&(ci===null?ci=a:ci.push.apply(ci,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){sd(t,0),js(t,e,0,!0);break}e:{switch(r=t,a=i,a){case 0:case 1:throw Error(de(345));case 4:if((e&4194048)!==e)break;case 6:js(r,e,Ri,!Ps);break e;case 2:ci=null;break;case 3:case 5:break;default:throw Error(de(329))}if((e&62914560)===e&&(i=hm+300-Oi(),10<i)){if(js(r,e,Ri,!Ps),nm(r,0,!0)!==0)break e;Po=e,r.timeoutHandle=_7(wC.bind(null,r,n,ci,Fp,G2,e,Ri,Xl,ad,Ps,a,\\\"Throttled\\\",-0,0),i);break e}wC(r,n,ci,Fp,G2,e,Ri,Xl,ad,Ps,a,null,-0,0)}}break}while(!0);$a(t)}function wC(t,e,n,r,i,a,o,s,l,c,u,d,h,g){if(t.timeoutHandle=-1,d=e.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Oo},Y9(e,a,d);var y=(a&62914560)===a?hm-Oi():(a&4194048)===a?J9-Oi():0;if(y=wz(d,y),y!==null){Po=a,t.cancelPendingCommit=y(_C.bind(null,t,e,a,n,r,i,o,s,l,u,d,null,h,g)),js(t,a,o,!c);return}}_C(t,e,a,n,r,i,o,s,l)}function zj(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pi(a(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function js(t,e,n,r){e&=~Qw,e&=~Xl,t.suspendedLanes|=e,t.pingedLanes&=~e,r&&(t.warmLanes|=e),r=t.expirationTimes;for(var i=e;0<i;){var a=31-Ui(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&oS(t,n,e)}function gm(){return(dn&6)===0?(d0(0,!1),!1):!0}function Xw(){if(Ft!==null){if(yn===0)var t=Ft.return;else t=Ft,Io=lc=null,jw(t),Gu=null,Zh=0,t=Ft;for(;t!==null;)N9(t.alternate,t),t=t.return;Ft=null}}function sd(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,nz(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Po=0,Xw(),En=t,Ft=n=Uo(t.current,null),Zt=e,yn=0,ki=null,Ps=!1,gd=i0(t,e),Gw=!1,ad=Ri=Qw=Xl=Qs=er=0,ci=Dh=null,G2=!1,(e&8)!==0&&(e|=e&32);var r=t.entangledLanes;if(r!==0)for(t=t.entanglements,r&=e;0<r;){var i=31-Ui(r),a=1<<i;e|=t[i],r&=~a}return qo=e,om(),n}function r7(t,e){Bt=null,dt.H=Gh,e===hd||e===lm?(e=X8(),yn=3):e===Mw?(e=X8(),yn=4):yn=e===$w?8:e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?6:1,ki=e,Ft===null&&(er=1,qp(t,Xi(e,t.current)))}function i7(){var t=ji.current;return t===null?!0:(Zt&4194048)===Zt?ea===null:(Zt&62914560)===Zt||(Zt&536870912)!==0?t===ea:!1}function a7(){var t=dt.H;return dt.H=Gh,t===null?Gh:t}function o7(){var t=dt.A;return dt.A=Pj,t}function $p(){er=4,Ps||(Zt&4194048)!==Zt&&ji.current!==null||(gd=!0),(Qs&134217727)===0&&(Xl&134217727)===0||En===null||js(En,Zt,Ri,!1)}function c2(t,e,n){var r=dn;dn|=2;var i=a7(),a=o7();(En!==t||Zt!==e)&&(Fp=null,sd(t,e)),e=!1;var o=er;e:do try{if(yn!==0&&Ft!==null){var s=Ft,l=ki;switch(yn){case 8:Xw(),o=6;break e;case 3:case 2:case 9:case 6:ji.current===null&&(e=!0);var c=yn;if(yn=0,ki=null,Fu(t,s,l,c),n&&gd){o=0;break e}break;default:c=yn,yn=0,ki=null,Fu(t,s,l,c)}}Dj(),o=er;break}catch(u){r7(t,u)}while(!0);return e&&t.shellSuspendCounter++,Io=lc=null,dn=r,dt.H=i,dt.A=a,Ft===null&&(En=null,Zt=0,om()),o}function Dj(){for(;Ft!==null;)s7(Ft)}function Lj(t,e){var n=dn;dn|=2;var r=a7(),i=o7();En!==t||Zt!==e?(Fp=null,Wp=Oi()+500,sd(t,e)):gd=i0(t,e);e:do try{if(yn!==0&&Ft!==null){e=Ft;var a=ki;t:switch(yn){case 1:yn=0,ki=null,Fu(t,e,a,1);break;case 2:case 9:if(Q8(a)){yn=0,ki=null,xC(e);break}e=function(){yn!==2&&yn!==9||En!==t||(yn=7),$a(t)},a.then(e,e);break e;case 3:yn=7;break e;case 4:yn=5;break e;case 7:Q8(a)?(yn=0,ki=null,xC(e)):(yn=0,ki=null,Fu(t,e,a,7));break;case 5:var o=null;switch(Ft.tag){case 26:o=Ft.memoizedState;case 5:case 27:var s=Ft;if(o?A7(o):s.stateNode.complete){yn=0,ki=null;var l=s.sibling;if(l!==null)Ft=l;else{var c=s.return;c!==null?(Ft=c,pm(c)):Ft=null}break t}}yn=0,ki=null,Fu(t,e,a,5);break;case 6:yn=0,ki=null,Fu(t,e,a,6);break;case 8:Xw(),er=6;break e;default:throw Error(de(462))}}qj();break}catch(u){r7(t,u)}while(!0);return Io=lc=null,dt.H=r,dt.A=i,dn=n,Ft!==null?0:(En=null,Zt=0,om(),er)}function qj(){for(;Ft!==null&&!uP();)s7(Ft)}function s7(t){var e=U9(t.alternate,t,qo);t.memoizedProps=t.pendingProps,e===null?pm(t):Ft=e}function xC(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=gC(n,e,e.pendingProps,e.type,void 0,Zt);break;case 11:e=gC(n,e,e.pendingProps,e.type.render,e.ref,Zt);break;case 5:jw(e);default:N9(n,e),e=Ft=NS(e,qo),e=U9(n,e,qo)}t.memoizedProps=t.pendingProps,e===null?pm(t):Ft=e}function Fu(t,e,n,r){Io=lc=null,jw(e),Gu=null,Zh=0;var i=e.return;try{if(Bj(t,i,e,n,Zt)){er=1,qp(t,Xi(n,t.current)),Ft=null;return}}catch(a){if(i!==null)throw Ft=i,a;er=1,qp(t,Xi(n,t.current)),Ft=null;return}e.flags&32768?(Qt||r===1?t=!0:gd||(Zt&536870912)!==0?t=!1:(Ps=t=!0,(r===2||r===9||r===3||r===6)&&(r=ji.current,r!==null&&r.tag===13&&(r.flags|=16384))),l7(e,t)):pm(e)}function pm(t){var e=t;do{if((e.flags&32768)!==0){l7(e,Ps);return}t=e.return;var n=Oj(e.alternate,e,qo);if(n!==null){Ft=n;return}if(e=e.sibling,e!==null){Ft=e;return}Ft=e=t}while(e!==null);er===0&&(er=5)}function l7(t,e){do{var n=Ij(t.alternate,t);if(n!==null){n.flags&=32767,Ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Ft=t;return}Ft=t=n}while(t!==null);er=6,Ft=null}function _C(t,e,n,r,i,a,o,s,l){t.cancelPendingCommit=null;do mm();while(gr!==0);if((dn&6)!==0)throw Error(de(327));if(e!==null){if(e===t.current)throw Error(de(177));if(a=e.lanes|e.childLanes,a|=Cw,wP(t,n,a,o,s,l),t===En&&(Ft=En=null,Zt=0),od=e,Ws=t,Po=n,Q2=a,X2=i,e7=r,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Fj(Mp,function(){return h7(),null})):(t.callbackNode=null,t.callbackPriority=0),r=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||r){r=dt.T,dt.T=null,i=fn.p,fn.p=2,o=dn,dn|=4;try{Uj(t,e,n)}finally{dn=o,fn.p=i,dt.T=r}}gr=1,c7(),u7(),d7()}}function c7(){if(gr===1){gr=0;var t=Ws,e=od,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=dt.T,dt.T=null;var r=fn.p;fn.p=2;var i=dn;dn|=4;try{$9(e,t);var a=rw,o=AS(t.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&ES(s.ownerDocument.documentElement,s)){if(l!==null&&_w(s)){var c=l.start,u=l.end;if(u===void 0&&(u=c),\\\"selectionStart\\\"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var g=h.getSelection(),y=s.textContent.length,E=Math.min(l.start,y),N=l.end===void 0?E:Math.min(l.end,y);!g.extend&&E>N&&(o=N,N=E,E=o);var _=W8(s,E),v=W8(s,N);if(_&&v&&(g.rangeCount!==1||g.anchorNode!==_.node||g.anchorOffset!==_.offset||g.focusNode!==v.node||g.focusOffset!==v.offset)){var T=d.createRange();T.setStart(_.node,_.offset),g.removeAllRanges(),E>N?(g.addRange(T),g.extend(v.node,v.offset)):(T.setEnd(v.node,v.offset),g.addRange(T))}}}}for(d=[],g=s;g=g.parentNode;)g.nodeType===1&&d.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof s.focus==\\\"function\\\"&&s.focus(),s=0;s<d.length;s++){var R=d[s];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}em=!!nw,rw=nw=null}finally{dn=i,fn.p=r,dt.T=n}}t.current=e,gr=2}}function u7(){if(gr===2){gr=0;var t=Ws,e=od,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=dt.T,dt.T=null;var r=fn.p;fn.p=2;var i=dn;dn|=4;try{q9(t,e.alternate,e)}finally{dn=i,fn.p=r,dt.T=n}}gr=3}}function d7(){if(gr===4||gr===3){gr=0,dP();var t=Ws,e=od,n=Po,r=e7;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?gr=5:(gr=0,od=Ws=null,f7(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Hs=null),pw(n),e=e.stateNode,Ii&&typeof Ii.onCommitFiberRoot==\\\"function\\\")try{Ii.onCommitFiberRoot(r0,e,void 0,(e.current.flags&128)===128)}catch{}if(r!==null){e=dt.T,i=fn.p,fn.p=2,dt.T=null;try{for(var a=t.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{dt.T=e,fn.p=i}}(Po&3)!==0&&mm(),$a(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===J2?Lh++:(Lh=0,J2=t):Lh=0,d0(0,!1)}}function f7(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,l0(e)))}function mm(){return c7(),u7(),d7(),h7()}function h7(){if(gr!==5)return!1;var t=Ws,e=Q2;Q2=0;var n=pw(Po),r=dt.T,i=fn.p;try{fn.p=32>n?32:n,dt.T=null,n=X2,X2=null;var a=Ws,o=Po;if(gr=0,od=Ws=null,Po=0,(dn&6)!==0)throw Error(de(331));var s=dn;if(dn|=4,Q9(a.current),Z9(a,a.current,o,n),dn=s,d0(0,!1),Ii&&typeof Ii.onPostCommitFiberRoot==\\\"function\\\")try{Ii.onPostCommitFiberRoot(r0,a)}catch{}return!0}finally{fn.p=i,dt.T=r,f7(t,e)}}function CC(t,e,n){e=Xi(n,e),e=$2(t.stateNode,e,2),t=Vs(t,e,2),t!==null&&(a0(t,2),$a(t))}function bn(t,e,n){if(t.tag===3)CC(t,t,n);else for(;e!==null;){if(e.tag===3){CC(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError==\\\"function\\\"||typeof r.componentDidCatch==\\\"function\\\"&&(Hs===null||!Hs.has(r))){t=Xi(n,t),n=k9(2),r=Vs(e,n,2),r!==null&&(B9(n,r,e,t),a0(r,2),$a(r));break}}e=e.return}}function u2(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new jj;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(Gw=!0,i.add(n),t=Vj.bind(null,t,e,n),e.then(t,t))}function Vj(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,En===t&&(Zt&n)===n&&(er===4||er===3&&(Zt&62914560)===Zt&&300>Oi()-hm?(dn&2)===0&&sd(t,0):Qw|=n,ad===Zt&&(ad=0)),$a(t)}function g7(t,e){e===0&&(e=aS()),t=sc(t,e),t!==null&&(a0(t,e),$a(t))}function Hj(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),g7(t,n)}function Wj(t,e){var n=0;switch(t.tag){case 31:case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(de(314))}r!==null&&r.delete(e),g7(t,n)}function Fj(t,e){return hw(t,e)}var Kp=null,Iu=null,ew=!1,Zp=!1,d2=!1,zs=0;function $a(t){t!==Iu&&t.next===null&&(Iu===null?Kp=Iu=t:Iu=Iu.next=t),Zp=!0,ew||(ew=!0,Kj())}function d0(t,e){if(!d2&&Zp){d2=!0;do for(var n=!1,r=Kp;r!==null;){if(!e)if(t!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ui(42|t)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,SC(r,a))}else a=Zt,a=nm(r,r===En?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(a&3)===0||i0(r,a)||(n=!0,SC(r,a));r=r.next}while(n);d2=!1}}function $j(){p7()}function p7(){Zp=ew=!1;var t=0;zs!==0&&tz()&&(t=zs);for(var e=Oi(),n=null,r=Kp;r!==null;){var i=r.next,a=m7(r,e);a===0?(r.next=null,n===null?Kp=i:n.next=i,i===null&&(Iu=n)):(n=r,(t!==0||(a&3)!==0)&&(Zp=!0)),r=i}gr!==0&&gr!==5||d0(t,!1),zs!==0&&(zs=0)}function m7(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,a=t.pendingLanes&-62914561;0<a;){var o=31-Ui(a),s=1<<o,l=i[o];l===-1?((s&n)===0||(s&r)!==0)&&(i[o]=vP(s,e)):l<=e&&(t.expiredLanes|=s),a&=~s}if(e=En,n=Zt,n=nm(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,n===0||t===e&&(yn===2||yn===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&Lv(r),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||i0(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(r!==null&&Lv(r),pw(n)){case 2:case 8:n=rS;break;case 32:n=Mp;break;case 268435456:n=iS;break;default:n=Mp}return r=y7.bind(null,t),n=hw(n,r),t.callbackPriority=e,t.callbackNode=n,e}return r!==null&&r!==null&&Lv(r),t.callbackPriority=2,t.callbackNode=null,2}function y7(t,e){if(gr!==0&&gr!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(mm()&&t.callbackNode!==n)return null;var r=Zt;return r=nm(t,t===En?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:(n7(t,r,e),m7(t,Oi()),t.callbackNode!=null&&t.callbackNode===n?y7.bind(null,t):null)}function SC(t,e){if(mm())return null;n7(t,e,!0)}function Kj(){rz(function(){(dn&6)!==0?hw(nS,$j):p7()})}function Jw(){if(zs===0){var t=nd;t===0&&(t=Yg,Yg<<=1,(Yg&261888)===0&&(Yg=256)),zs=t}return zs}function TC(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:hp(\\\"\\\"+t)}function EC(t,e){var n=e.ownerDocument.createElement(\\\"input\\\");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute(\\\"form\\\",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Zj(t,e,n,r,i){if(e===\\\"submit\\\"&&n&&n.stateNode===i){var a=TC((i[di]||null).action),o=r.submitter;o&&(e=(e=o[di]||null)?TC(e.formAction):o.getAttribute(\\\"formAction\\\"),e!==null&&(a=e,o=null));var s=new rm(\\\"action\\\",\\\"action\\\",null,r,i);t.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(zs!==0){var l=o?EC(i,o):new FormData(i);W2(n,{pending:!0,data:l,method:i.method,action:a},null,l)}}else typeof a==\\\"function\\\"&&(s.preventDefault(),l=o?EC(i,o):new FormData(i),W2(n,{pending:!0,data:l,method:i.method,action:a},a,l))},currentTarget:i}]})}}for(sp=0;sp<O2.length;sp++)lp=O2[sp],AC=lp.toLowerCase(),kC=lp[0].toUpperCase()+lp.slice(1),Sa(AC,\\\"on\\\"+kC);var lp,AC,kC,sp;Sa(BS,\\\"onAnimationEnd\\\");Sa(MS,\\\"onAnimationIteration\\\");Sa(RS,\\\"onAnimationStart\\\");Sa(\\\"dblclick\\\",\\\"onDoubleClick\\\");Sa(\\\"focusin\\\",\\\"onFocus\\\");Sa(\\\"focusout\\\",\\\"onBlur\\\");Sa(fj,\\\"onTransitionRun\\\");Sa(hj,\\\"onTransitionStart\\\");Sa(gj,\\\"onTransitionCancel\\\");Sa(OS,\\\"onTransitionEnd\\\");ed(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);ed(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);ed(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);ed(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);ic(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));ic(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));ic(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);ic(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));ic(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));ic(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var Qh=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),Yj=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(Qh));function b7(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var a=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){Op(u)}i.currentTarget=null,a=l}else for(o=0;o<r.length;o++){if(s=r[o],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){Op(u)}i.currentTarget=null,a=l}}}}function Wt(t,e){var n=e[S2];n===void 0&&(n=e[S2]=new Set);var r=t+\\\"__bubble\\\";n.has(r)||(v7(e,t,2,!1),n.add(r))}function f2(t,e,n){var r=0;e&&(r|=4),v7(n,t,r,e)}var cp=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function e5(t){if(!t[cp]){t[cp]=!0,uS.forEach(function(n){n!==\\\"selectionchange\\\"&&(Yj.has(n)||f2(n,!1,t),f2(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[cp]||(e[cp]=!0,f2(\\\"selectionchange\\\",!1,e))}}function v7(t,e,n,r){switch(O7(e)){case 2:var i=Cz;break;case 8:i=Sz;break;default:i=i5}n=i.bind(null,e,n,t),i=void 0,!B2||e!==\\\"touchstart\\\"&&e!==\\\"touchmove\\\"&&e!==\\\"wheel\\\"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function h2(t,e,n,r,i){var a=r;if((e&1)===0&&(e&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Pu(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue e}s=s.parentNode}}r=r.return}bS(function(){var c=a,u=bw(n),d=[];e:{var h=IS.get(t);if(h!==void 0){var g=rm,y=t;switch(t){case\\\"keypress\\\":if(pp(n)===0)break e;case\\\"keydown\\\":case\\\"keyup\\\":g=WP;break;case\\\"focusin\\\":y=\\\"focus\\\",g=Fv;break;case\\\"focusout\\\":y=\\\"blur\\\",g=Fv;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":g=Fv;break;case\\\"click\\\":if(n.button===2)break e;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":g=N8;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":g=OP;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":g=KP;break;case BS:case MS:case RS:g=NP;break;case OS:g=YP;break;case\\\"scroll\\\":case\\\"scrollend\\\":g=MP;break;case\\\"wheel\\\":g=QP;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":g=jP;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":g=j8;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":g=JP}var E=(e&4)!==0,N=!E&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),_=E?h!==null?h+\\\"Capture\\\":null:h;E=[];for(var v=c,T;v!==null;){var R=v;if(T=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||T===null||_===null||(R=Hh(v,_),R!=null&&E.push(Xh(v,R,T))),N)break;v=v.return}0<E.length&&(h=new g(h,y,null,n,u),d.push({event:h,listeners:E}))}}if((e&7)===0){e:{if(h=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",g=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",h&&n!==k2&&(y=n.relatedTarget||n.fromElement)&&(Pu(y)||y[ud]))break e;if((g||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?Pu(y):null,y!==null&&(N=n0(y),E=y.tag,y!==N||E!==5&&E!==27&&E!==6)&&(y=null)):(g=null,y=c),g!==y)){if(E=N8,R=\\\"onMouseLeave\\\",_=\\\"onMouseEnter\\\",v=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(E=j8,R=\\\"onPointerLeave\\\",_=\\\"onPointerEnter\\\",v=\\\"pointer\\\"),N=g==null?h:Eh(g),T=y==null?h:Eh(y),h=new E(R,v+\\\"leave\\\",g,n,u),h.target=N,h.relatedTarget=T,R=null,Pu(u)===c&&(E=new E(_,v+\\\"enter\\\",y,n,u),E.target=T,E.relatedTarget=N,R=E),N=R,g&&y)t:{for(E=Gj,_=g,v=y,T=0,R=_;R;R=E(R))T++;R=0;for(var U=v;U;U=E(U))R++;for(;0<T-R;)_=E(_),T--;for(;0<R-T;)v=E(v),R--;for(;T--;){if(_===v||v!==null&&_===v.alternate){E=_;break t}_=E(_),v=E(v)}E=null}else E=null;g!==null&&BC(d,h,g,E,!1),y!==null&&N!==null&&BC(d,N,y,E,!0)}}e:{if(h=c?Eh(c):window,g=h.nodeName&&h.nodeName.toLowerCase(),g===\\\"select\\\"||g===\\\"input\\\"&&h.type===\\\"file\\\")var X=q8;else if(L8(h))if(SS)X=cj;else{X=sj;var k=oj}else g=h.nodeName,!g||g.toLowerCase()!==\\\"input\\\"||h.type!==\\\"checkbox\\\"&&h.type!==\\\"radio\\\"?c&&yw(c.elementType)&&(X=q8):X=lj;if(X&&(X=X(t,c))){CS(d,X,n,u);break e}k&&k(t,h,c),t===\\\"focusout\\\"&&c&&h.type===\\\"number\\\"&&c.memoizedProps.value!=null&&A2(h,\\\"number\\\",h.value)}switch(k=c?Eh(c):window,t){case\\\"focusin\\\":(L8(k)||k.contentEditable===\\\"true\\\")&&(Du=k,M2=c,Rh=null);break;case\\\"focusout\\\":Rh=M2=Du=null;break;case\\\"mousedown\\\":R2=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":R2=!1,F8(d,n,u);break;case\\\"selectionchange\\\":if(dj)break;case\\\"keydown\\\":case\\\"keyup\\\":F8(d,n,u)}var q;if(xw)e:{switch(t){case\\\"compositionstart\\\":var z=\\\"onCompositionStart\\\";break e;case\\\"compositionend\\\":z=\\\"onCompositionEnd\\\";break e;case\\\"compositionupdate\\\":z=\\\"onCompositionUpdate\\\";break e}z=void 0}else zu?xS(t,n)&&(z=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&n.keyCode===229&&(z=\\\"onCompositionStart\\\");z&&(wS&&n.locale!==\\\"ko\\\"&&(zu||z!==\\\"onCompositionStart\\\"?z===\\\"onCompositionEnd\\\"&&zu&&(q=vS()):(Ns=u,vw=\\\"value\\\"in Ns?Ns.value:Ns.textContent,zu=!0)),k=Yp(c,z),0<k.length&&(z=new P8(z,t,null,n,u),d.push({event:z,listeners:k}),q?z.data=q:(q=_S(n),q!==null&&(z.data=q)))),(q=tj?nj(t,n):rj(t,n))&&(z=Yp(c,\\\"onBeforeInput\\\"),0<z.length&&(k=new P8(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,n,u),d.push({event:k,listeners:z}),k.data=q)),Zj(d,t,c,n,u)}b7(d,e)})}function Xh(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Yp(t,e){for(var n=e+\\\"Capture\\\",r=[];t!==null;){var i=t,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Hh(t,n),i!=null&&r.unshift(Xh(t,i,a)),i=Hh(t,e),i!=null&&r.push(Xh(t,i,a))),t.tag===3)return r;t=t.return}return[]}function Gj(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function BC(t,e,n,r,i){for(var a=e._reactName,o=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,l!==null&&l===r)break;s!==5&&s!==26&&s!==27||c===null||(l=c,i?(c=Hh(n,a),c!=null&&o.unshift(Xh(n,c,l))):i||(c=Hh(n,a),c!=null&&o.push(Xh(n,c,l)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Qj=/\\\\r\\\\n?/g,Xj=/\\\\u0000|\\\\uFFFD/g;function MC(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(Qj,`\\n`).replace(Xj,\\\"\\\")}function w7(t,e){return e=MC(e),MC(t)===e}function _n(t,e,n,r,i,a){switch(n){case\\\"children\\\":typeof r==\\\"string\\\"?e===\\\"body\\\"||e===\\\"textarea\\\"&&r===\\\"\\\"||td(t,r):(typeof r==\\\"number\\\"||typeof r==\\\"bigint\\\")&&e!==\\\"body\\\"&&td(t,\\\"\\\"+r);break;case\\\"className\\\":Xg(t,\\\"class\\\",r);break;case\\\"tabIndex\\\":Xg(t,\\\"tabindex\\\",r);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":Xg(t,n,r);break;case\\\"style\\\":yS(t,r,a);break;case\\\"data\\\":if(e!==\\\"object\\\"){Xg(t,\\\"data\\\",r);break}case\\\"src\\\":case\\\"href\\\":if(r===\\\"\\\"&&(e!==\\\"a\\\"||n!==\\\"href\\\")){t.removeAttribute(n);break}if(r==null||typeof r==\\\"function\\\"||typeof r==\\\"symbol\\\"||typeof r==\\\"boolean\\\"){t.removeAttribute(n);break}r=hp(\\\"\\\"+r),t.setAttribute(n,r);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof r==\\\"function\\\"){t.setAttribute(n,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof a==\\\"function\\\"&&(n===\\\"formAction\\\"?(e!==\\\"input\\\"&&_n(t,e,\\\"name\\\",i.name,i,null),_n(t,e,\\\"formEncType\\\",i.formEncType,i,null),_n(t,e,\\\"formMethod\\\",i.formMethod,i,null),_n(t,e,\\\"formTarget\\\",i.formTarget,i,null)):(_n(t,e,\\\"encType\\\",i.encType,i,null),_n(t,e,\\\"method\\\",i.method,i,null),_n(t,e,\\\"target\\\",i.target,i,null)));if(r==null||typeof r==\\\"symbol\\\"||typeof r==\\\"boolean\\\"){t.removeAttribute(n);break}r=hp(\\\"\\\"+r),t.setAttribute(n,r);break;case\\\"onClick\\\":r!=null&&(t.onclick=Oo);break;case\\\"onScroll\\\":r!=null&&Wt(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":r!=null&&Wt(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(r!=null){if(typeof r!=\\\"object\\\"||!(\\\"__html\\\"in r))throw Error(de(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(de(60));t.innerHTML=n}}break;case\\\"multiple\\\":t.multiple=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(r==null||typeof r==\\\"function\\\"||typeof r==\\\"boolean\\\"||typeof r==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}n=hp(\\\"\\\"+r),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",n);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"+r):t.removeAttribute(n);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"):t.removeAttribute(n);break;case\\\"capture\\\":case\\\"download\\\":r===!0?t.setAttribute(n,\\\"\\\"):r!==!1&&r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"?t.setAttribute(n,r):t.removeAttribute(n);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"&&!isNaN(r)&&1<=r?t.setAttribute(n,r):t.removeAttribute(n);break;case\\\"rowSpan\\\":case\\\"start\\\":r==null||typeof r==\\\"function\\\"||typeof r==\\\"symbol\\\"||isNaN(r)?t.removeAttribute(n):t.setAttribute(n,r);break;case\\\"popover\\\":Wt(\\\"beforetoggle\\\",t),Wt(\\\"toggle\\\",t),fp(t,\\\"popover\\\",r);break;case\\\"xlinkActuate\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",r);break;case\\\"xlinkArcrole\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",r);break;case\\\"xlinkRole\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",r);break;case\\\"xlinkShow\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",r);break;case\\\"xlinkTitle\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",r);break;case\\\"xlinkType\\\":So(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",r);break;case\\\"xmlBase\\\":So(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",r);break;case\\\"xmlLang\\\":So(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",r);break;case\\\"xmlSpace\\\":So(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",r);break;case\\\"is\\\":fp(t,\\\"is\\\",r);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<n.length)||n[0]!==\\\"o\\\"&&n[0]!==\\\"O\\\"||n[1]!==\\\"n\\\"&&n[1]!==\\\"N\\\")&&(n=kP.get(n)||n,fp(t,n,r))}}function tw(t,e,n,r,i,a){switch(n){case\\\"style\\\":yS(t,r,a);break;case\\\"dangerouslySetInnerHTML\\\":if(r!=null){if(typeof r!=\\\"object\\\"||!(\\\"__html\\\"in r))throw Error(de(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(de(60));t.innerHTML=n}}break;case\\\"children\\\":typeof r==\\\"string\\\"?td(t,r):(typeof r==\\\"number\\\"||typeof r==\\\"bigint\\\")&&td(t,\\\"\\\"+r);break;case\\\"onScroll\\\":r!=null&&Wt(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":r!=null&&Wt(\\\"scrollend\\\",t);break;case\\\"onClick\\\":r!=null&&(t.onclick=Oo);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!dS.hasOwnProperty(n))e:{if(n[0]===\\\"o\\\"&&n[1]===\\\"n\\\"&&(i=n.endsWith(\\\"Capture\\\"),e=n.slice(2,i?n.length-7:void 0),a=t[di]||null,a=a!=null?a[n]:null,typeof a==\\\"function\\\"&&t.removeEventListener(e,a,i),typeof r==\\\"function\\\")){typeof a!=\\\"function\\\"&&a!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,r,i);break e}n in t?t[n]=r:r===!0?t.setAttribute(n,\\\"\\\"):fp(t,n,r)}}}function kr(t,e,n){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case\\\"src\\\":r=!0;break;case\\\"srcSet\\\":i=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(de(137,e));default:_n(t,e,a,o,n,null)}}i&&_n(t,e,\\\"srcSet\\\",n.srcSet,n,null),r&&_n(t,e,\\\"src\\\",n.src,n,null);return;case\\\"input\\\":Wt(\\\"invalid\\\",t);var s=a=o=i=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case\\\"name\\\":i=u;break;case\\\"type\\\":o=u;break;case\\\"checked\\\":l=u;break;case\\\"defaultChecked\\\":c=u;break;case\\\"value\\\":a=u;break;case\\\"defaultValue\\\":s=u;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(u!=null)throw Error(de(137,e));break;default:_n(t,e,r,u,n,null)}}gS(t,a,s,l,c,o,i,!1);return;case\\\"select\\\":Wt(\\\"invalid\\\",t),r=o=a=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case\\\"value\\\":a=s;break;case\\\"defaultValue\\\":o=s;break;case\\\"multiple\\\":r=s;default:_n(t,e,i,s,n,null)}e=a,n=o,t.multiple=!!r,e!=null?Ku(t,!!r,e,!1):n!=null&&Ku(t,!!r,n,!0);return;case\\\"textarea\\\":Wt(\\\"invalid\\\",t),a=i=r=null;for(o in n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case\\\"value\\\":r=s;break;case\\\"defaultValue\\\":i=s;break;case\\\"children\\\":a=s;break;case\\\"dangerouslySetInnerHTML\\\":if(s!=null)throw Error(de(91));break;default:_n(t,e,o,s,n,null)}mS(t,r,i,a);return;case\\\"option\\\":for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null)&&(l===\\\"selected\\\"?t.selected=r&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\":_n(t,e,l,r,n,null));return;case\\\"dialog\\\":Wt(\\\"beforetoggle\\\",t),Wt(\\\"toggle\\\",t),Wt(\\\"cancel\\\",t),Wt(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":Wt(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(r=0;r<Qh.length;r++)Wt(Qh[r],t);break;case\\\"image\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);break;case\\\"details\\\":Wt(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":Wt(\\\"error\\\",t),Wt(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(de(137,e));default:_n(t,e,c,r,n,null)}return;default:if(yw(e)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&tw(t,e,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&_n(t,e,s,r,n,null))}function Jj(t,e,n,r){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var i=null,a=null,o=null,s=null,l=null,c=null,u=null;for(g in n){var d=n[g];if(n.hasOwnProperty(g)&&d!=null)switch(g){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":l=d;default:r.hasOwnProperty(g)||_n(t,e,g,null,r,d)}}for(var h in r){var g=r[h];if(d=n[h],r.hasOwnProperty(h)&&(g!=null||d!=null))switch(h){case\\\"type\\\":a=g;break;case\\\"name\\\":i=g;break;case\\\"checked\\\":c=g;break;case\\\"defaultChecked\\\":u=g;break;case\\\"value\\\":o=g;break;case\\\"defaultValue\\\":s=g;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(g!=null)throw Error(de(137,e));break;default:g!==d&&_n(t,e,h,g,r,d)}}E2(t,o,s,l,c,u,a,i);return;case\\\"select\\\":g=o=s=h=null;for(a in n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case\\\"value\\\":break;case\\\"multiple\\\":g=l;default:r.hasOwnProperty(a)||_n(t,e,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case\\\"value\\\":h=a;break;case\\\"defaultValue\\\":s=a;break;case\\\"multiple\\\":o=a;default:a!==l&&_n(t,e,i,a,r,l)}e=s,n=o,r=g,h!=null?Ku(t,!!n,h,!1):!!r!=!!n&&(e!=null?Ku(t,!!n,e,!0):Ku(t,!!n,n?[]:\\\"\\\",!1));return;case\\\"textarea\\\":g=h=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case\\\"value\\\":break;case\\\"children\\\":break;default:_n(t,e,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case\\\"value\\\":h=i;break;case\\\"defaultValue\\\":g=i;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(i!=null)throw Error(de(91));break;default:i!==a&&_n(t,e,o,i,r,a)}pS(t,h,g);return;case\\\"option\\\":for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&(y===\\\"selected\\\"?t.selected=!1:_n(t,e,y,null,r,h));for(l in r)h=r[l],g=n[l],r.hasOwnProperty(l)&&h!==g&&(h!=null||g!=null)&&(l===\\\"selected\\\"?t.selected=h&&typeof h!=\\\"function\\\"&&typeof h!=\\\"symbol\\\":_n(t,e,l,h,r,g));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var E in n)h=n[E],n.hasOwnProperty(E)&&h!=null&&!r.hasOwnProperty(E)&&_n(t,e,E,null,r,h);for(c in r)if(h=r[c],g=n[c],r.hasOwnProperty(c)&&h!==g&&(h!=null||g!=null))switch(c){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(h!=null)throw Error(de(137,e));break;default:_n(t,e,c,h,r,g)}return;default:if(yw(e)){for(var N in n)h=n[N],n.hasOwnProperty(N)&&h!==void 0&&!r.hasOwnProperty(N)&&tw(t,e,N,void 0,r,h);for(u in r)h=r[u],g=n[u],!r.hasOwnProperty(u)||h===g||h===void 0&&g===void 0||tw(t,e,u,h,r,g);return}}for(var _ in n)h=n[_],n.hasOwnProperty(_)&&h!=null&&!r.hasOwnProperty(_)&&_n(t,e,_,null,r,h);for(d in r)h=r[d],g=n[d],!r.hasOwnProperty(d)||h===g||h==null&&g==null||_n(t,e,d,h,r,g)}function RC(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function ez(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,e=0,n=performance.getEntriesByType(\\\"resource\\\"),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&RC(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&RC(d)&&(l=l.responseEnd,o+=u*(l<s?1:(s-c)/(l-c)))}if(--r,e+=8*(a+o)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var nw=null,rw=null;function Gp(t){return t.nodeType===9?t:t.ownerDocument}function OC(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function x7(t,e){if(t===0)switch(e){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&e===\\\"foreignObject\\\"?0:t}function iw(t,e){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof e.children==\\\"string\\\"||typeof e.children==\\\"number\\\"||typeof e.children==\\\"bigint\\\"||typeof e.dangerouslySetInnerHTML==\\\"object\\\"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var g2=null;function tz(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===g2?!1:(g2=t,!0):(g2=null,!1)}var _7=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,nz=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,IC=typeof Promise==\\\"function\\\"?Promise:void 0,rz=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof IC<\\\"u\\\"?function(t){return IC.resolve(null).then(t).catch(iz)}:_7;function iz(t){setTimeout(function(){throw t})}function Js(t){return t===\\\"head\\\"}function UC(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===\\\"/$\\\"||n===\\\"/&\\\"){if(r===0){t.removeChild(i),cd(e);return}r--}else if(n===\\\"$\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"$!\\\"||n===\\\"&\\\")r++;else if(n===\\\"html\\\")qh(t.ownerDocument.documentElement);else if(n===\\\"head\\\"){n=t.ownerDocument.head,qh(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[o0]||s===\\\"SCRIPT\\\"||s===\\\"STYLE\\\"||s===\\\"LINK\\\"&&a.rel.toLowerCase()===\\\"stylesheet\\\"||n.removeChild(a),a=o}}else n===\\\"body\\\"&&qh(t.ownerDocument.body);n=i}while(n);cd(e)}function NC(t,e){var n=t;t=0;do{var r=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display=\\\"none\\\"):(n.style.display=n._stashedDisplay||\\\"\\\",n.getAttribute(\\\"style\\\")===\\\"\\\"&&n.removeAttribute(\\\"style\\\")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=\\\"\\\"):n.nodeValue=n._stashedText||\\\"\\\"),r&&r.nodeType===8)if(n=r.data,n===\\\"/$\\\"){if(t===0)break;t--}else n!==\\\"$\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"$!\\\"||t++;n=r}while(n)}function aw(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":aw(n),mw(n);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(n.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(n)}}function az(t,e,n,r){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!r&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(r){if(!t[o0])switch(e){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(a=t.getAttribute(\\\"rel\\\"),a===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(a!==i.rel||t.getAttribute(\\\"href\\\")!==(i.href==null||i.href===\\\"\\\"?null:i.href)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute(\\\"title\\\")!==(i.title==null?null:i.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(a=t.getAttribute(\\\"src\\\"),(a!==(i.src==null?null:i.src)||t.getAttribute(\\\"type\\\")!==(i.type==null?null:i.type)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(e===\\\"input\\\"&&t.type===\\\"hidden\\\"){var a=i.name==null?null:\\\"\\\"+i.name;if(i.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===a)return t}else return t;if(t=ta(t.nextSibling),t===null)break}return null}function oz(t,e,n){if(e===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!n||(t=ta(t.nextSibling),t===null))return null;return t}function C7(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!e||(t=ta(t.nextSibling),t===null))return null;return t}function ow(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function sw(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function sz(t,e){var n=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=e;else if(t.data!==\\\"$?\\\"||n.readyState!==\\\"loading\\\")e();else{var r=function(){e(),n.removeEventListener(\\\"DOMContentLoaded\\\",r)};n.addEventListener(\\\"DOMContentLoaded\\\",r),t._reactRetry=r}}function ta(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e===\\\"$\\\"||e===\\\"$!\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"&\\\"||e===\\\"F!\\\"||e===\\\"F\\\")break;if(e===\\\"/$\\\"||e===\\\"/&\\\")return null}}return t}var lw=null;function PC(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"/$\\\"||n===\\\"/&\\\"){if(e===0)return ta(t.nextSibling);e--}else n!==\\\"$\\\"&&n!==\\\"$!\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"&\\\"||e++}t=t.nextSibling}return null}function jC(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"$\\\"||n===\\\"$!\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"&\\\"){if(e===0)return t;e--}else n!==\\\"/$\\\"&&n!==\\\"/&\\\"||e++}t=t.previousSibling}return null}function S7(t,e,n){switch(e=Gp(n),t){case\\\"html\\\":if(t=e.documentElement,!t)throw Error(de(452));return t;case\\\"head\\\":if(t=e.head,!t)throw Error(de(453));return t;case\\\"body\\\":if(t=e.body,!t)throw Error(de(454));return t;default:throw Error(de(451))}}function qh(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);mw(t)}var na=new Map,zC=new Set;function Qp(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vo=fn.d;fn.d={f:lz,r:cz,D:uz,C:dz,L:fz,m:hz,X:pz,S:gz,M:mz};function lz(){var t=Vo.f(),e=gm();return t||e}function cz(t){var e=dd(t);e!==null&&e.tag===5&&e.type===\\\"form\\\"?y9(e):Vo.r(t)}var pd=typeof document>\\\"u\\\"?null:document;function T7(t,e,n){var r=pd;if(r&&typeof e==\\\"string\\\"&&e){var i=Qi(e);i='link[rel=\\\"'+t+'\\\"][href=\\\"'+i+'\\\"]',typeof n==\\\"string\\\"&&(i+='[crossorigin=\\\"'+n+'\\\"]'),zC.has(i)||(zC.add(i),t={rel:t,crossOrigin:n,href:e},r.querySelector(i)===null&&(e=r.createElement(\\\"link\\\"),kr(e,\\\"link\\\",t),vr(e),r.head.appendChild(e)))}}function uz(t){Vo.D(t),T7(\\\"dns-prefetch\\\",t,null)}function dz(t,e){Vo.C(t,e),T7(\\\"preconnect\\\",t,e)}function fz(t,e,n){Vo.L(t,e,n);var r=pd;if(r&&t&&e){var i='link[rel=\\\"preload\\\"][as=\\\"'+Qi(e)+'\\\"]';e===\\\"image\\\"&&n&&n.imageSrcSet?(i+='[imagesrcset=\\\"'+Qi(n.imageSrcSet)+'\\\"]',typeof n.imageSizes==\\\"string\\\"&&(i+='[imagesizes=\\\"'+Qi(n.imageSizes)+'\\\"]')):i+='[href=\\\"'+Qi(t)+'\\\"]';var a=i;switch(e){case\\\"style\\\":a=ld(t);break;case\\\"script\\\":a=md(t)}na.has(a)||(t=Dn({rel:\\\"preload\\\",href:e===\\\"image\\\"&&n&&n.imageSrcSet?void 0:t,as:e},n),na.set(a,t),r.querySelector(i)!==null||e===\\\"style\\\"&&r.querySelector(f0(a))||e===\\\"script\\\"&&r.querySelector(h0(a))||(e=r.createElement(\\\"link\\\"),kr(e,\\\"link\\\",t),vr(e),r.head.appendChild(e)))}}function hz(t,e){Vo.m(t,e);var n=pd;if(n&&t){var r=e&&typeof e.as==\\\"string\\\"?e.as:\\\"script\\\",i='link[rel=\\\"modulepreload\\\"][as=\\\"'+Qi(r)+'\\\"][href=\\\"'+Qi(t)+'\\\"]',a=i;switch(r){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":a=md(t)}if(!na.has(a)&&(t=Dn({rel:\\\"modulepreload\\\",href:t},e),na.set(a,t),n.querySelector(i)===null)){switch(r){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(n.querySelector(h0(a)))return}r=n.createElement(\\\"link\\\"),kr(r,\\\"link\\\",t),vr(r),n.head.appendChild(r)}}}function gz(t,e,n){Vo.S(t,e,n);var r=pd;if(r&&t){var i=$u(r).hoistableStyles,a=ld(t);e=e||\\\"default\\\";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(f0(a)))s.loading=5;else{t=Dn({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":e},n),(n=na.get(a))&&t5(t,n);var l=o=r.createElement(\\\"link\\\");vr(l),kr(l,\\\"link\\\",t),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener(\\\"load\\\",function(){s.loading|=1}),l.addEventListener(\\\"error\\\",function(){s.loading|=2}),s.loading|=4,Cp(o,e,r)}o={type:\\\"stylesheet\\\",instance:o,count:1,state:s},i.set(a,o)}}}function pz(t,e){Vo.X(t,e);var n=pd;if(n&&t){var r=$u(n).hoistableScripts,i=md(t),a=r.get(i);a||(a=n.querySelector(h0(i)),a||(t=Dn({src:t,async:!0},e),(e=na.get(i))&&n5(t,e),a=n.createElement(\\\"script\\\"),vr(a),kr(a,\\\"link\\\",t),n.head.appendChild(a)),a={type:\\\"script\\\",instance:a,count:1,state:null},r.set(i,a))}}function mz(t,e){Vo.M(t,e);var n=pd;if(n&&t){var r=$u(n).hoistableScripts,i=md(t),a=r.get(i);a||(a=n.querySelector(h0(i)),a||(t=Dn({src:t,async:!0,type:\\\"module\\\"},e),(e=na.get(i))&&n5(t,e),a=n.createElement(\\\"script\\\"),vr(a),kr(a,\\\"link\\\",t),n.head.appendChild(a)),a={type:\\\"script\\\",instance:a,count:1,state:null},r.set(i,a))}}function DC(t,e,n,r){var i=(i=Ds.current)?Qp(i):null;if(!i)throw Error(de(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof n.precedence==\\\"string\\\"&&typeof n.href==\\\"string\\\"?(e=ld(n.href),n=$u(i).hoistableStyles,r=n.get(e),r||(r={type:\\\"style\\\",instance:null,count:0,state:null},n.set(e,r)),r):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(n.rel===\\\"stylesheet\\\"&&typeof n.href==\\\"string\\\"&&typeof n.precedence==\\\"string\\\"){t=ld(n.href);var a=$u(i).hoistableStyles,o=a.get(t);if(o||(i=i.ownerDocument||i,o={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},a.set(t,o),(a=i.querySelector(f0(t)))&&!a._p&&(o.instance=a,o.state.loading=5),na.has(t)||(n={rel:\\\"preload\\\",as:\\\"style\\\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},na.set(t,n),a||yz(i,t,n,o.state))),e&&r===null)throw Error(de(528,\\\"\\\"));return o}if(e&&r!==null)throw Error(de(529,\\\"\\\"));return null;case\\\"script\\\":return e=n.async,n=n.src,typeof n==\\\"string\\\"&&e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?(e=md(n),n=$u(i).hoistableScripts,r=n.get(e),r||(r={type:\\\"script\\\",instance:null,count:0,state:null},n.set(e,r)),r):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(de(444,t))}}function ld(t){return'href=\\\"'+Qi(t)+'\\\"'}function f0(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function E7(t){return Dn({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function yz(t,e,n,r){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+e+\\\"]\\\")?r.loading=1:(e=t.createElement(\\\"link\\\"),r.preload=e,e.addEventListener(\\\"load\\\",function(){return r.loading|=1}),e.addEventListener(\\\"error\\\",function(){return r.loading|=2}),kr(e,\\\"link\\\",n),vr(e),t.head.appendChild(e))}function md(t){return'[src=\\\"'+Qi(t)+'\\\"]'}function h0(t){return\\\"script[async]\\\"+t}function LC(t,e,n){if(e.count++,e.instance===null)switch(e.type){case\\\"style\\\":var r=t.querySelector('style[data-href~=\\\"'+Qi(n.href)+'\\\"]');if(r)return e.instance=r,vr(r),r;var i=Dn({},n,{\\\"data-href\\\":n.href,\\\"data-precedence\\\":n.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement(\\\"style\\\"),vr(r),kr(r,\\\"style\\\",i),Cp(r,n.precedence,t),e.instance=r;case\\\"stylesheet\\\":i=ld(n.href);var a=t.querySelector(f0(i));if(a)return e.state.loading|=4,e.instance=a,vr(a),a;r=E7(n),(i=na.get(i))&&t5(r,i),a=(t.ownerDocument||t).createElement(\\\"link\\\"),vr(a);var o=a;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),kr(a,\\\"link\\\",r),e.state.loading|=4,Cp(a,n.precedence,t),e.instance=a;case\\\"script\\\":return a=md(n.src),(i=t.querySelector(h0(a)))?(e.instance=i,vr(i),i):(r=n,(i=na.get(a))&&(r=Dn({},n),n5(r,i)),t=t.ownerDocument||t,i=t.createElement(\\\"script\\\"),vr(i),kr(i,\\\"link\\\",r),t.head.appendChild(i),e.instance=i);case\\\"void\\\":return null;default:throw Error(de(443,e.type))}else e.type===\\\"stylesheet\\\"&&(e.state.loading&4)===0&&(r=e.instance,e.state.loading|=4,Cp(r,n.precedence,t));return e.instance}function Cp(t,e,n){for(var r=n.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===e)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(t,a.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function t5(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function n5(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Sp=null;function qC(t,e,n){if(Sp===null){var r=new Map,i=Sp=new Map;i.set(n,r)}else i=Sp,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(t))return r;for(r.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var a=n[i];if(!(a[o0]||a[Tr]||t===\\\"link\\\"&&a.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&a.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var o=a.getAttribute(e)||\\\"\\\";o=t+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function VC(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function bz(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof e.precedence!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof e.rel!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\"||e.onLoad||e.onError)break;return e.rel===\\\"stylesheet\\\"?(t=e.disabled,typeof e.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(e.async&&typeof e.async!=\\\"function\\\"&&typeof e.async!=\\\"symbol\\\"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src==\\\"string\\\")return!0}return!1}function A7(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function vz(t,e,n,r){if(n.type===\\\"stylesheet\\\"&&(typeof r.media!=\\\"string\\\"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ld(r.href),a=e.querySelector(f0(i));if(a){e=a._p,e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"&&(t.count++,t=Xp.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=a,vr(a);return}a=e.ownerDocument||e,r=E7(r),(i=na.get(i))&&t5(r,i),a=a.createElement(\\\"link\\\"),vr(a);var o=a;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),kr(a,\\\"link\\\",r),n.instance=a}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Xp.bind(t),e.addEventListener(\\\"load\\\",n),e.addEventListener(\\\"error\\\",n))}}var p2=0;function wz(t,e){return t.stylesheets&&t.count===0&&Tp(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var r=setTimeout(function(){if(t.stylesheets&&Tp(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4+e);0<t.imgBytes&&p2===0&&(p2=62500*ez());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Tp(t,t.stylesheets),t.unsuspend)){var a=t.unsuspend;t.unsuspend=null,a()}},(t.imgBytes>p2?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tp(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Jp=null;function Tp(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Jp=new Map,e.forEach(xz,t),Jp=null,Xp.call(t))}function xz(t,e){if(!(e.state.loading&4)){var n=Jp.get(t);if(n)var r=n.get(null);else{n=new Map,Jp.set(t,n);for(var i=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),a=0;a<i.length;a++){var o=i[a];(o.nodeName===\\\"LINK\\\"||o.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=e.instance,o=i.getAttribute(\\\"data-precedence\\\"),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xp.bind(this),i.addEventListener(\\\"load\\\",r),i.addEventListener(\\\"error\\\",r),a?a.parentNode.insertBefore(i,a.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var Jh={$$typeof:Ro,Provider:null,Consumer:null,_currentValue:Zl,_currentValue2:Zl,_threadCount:0};function _z(t,e,n,r,i,a,o,s,l){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qv(0),this.hiddenUpdates=qv(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function k7(t,e,n,r,i,a,o,s,l,c,u,d){return t=new _z(t,e,n,o,l,c,u,d,s),e=1,a===!0&&(e|=24),a=Mi(3,null,null,e),t.current=a,a.stateNode=t,e=kw(),e.refCount++,t.pooledCache=e,e.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:e},Rw(a),t}function B7(t){return t?(t=Vu,t):Vu}function M7(t,e,n,r,i,a){i=B7(i),r.context===null?r.context=i:r.pendingContext=i,r=qs(e),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Vs(t,r,e),n!==null&&(ui(n,t,e),Ih(n,t,e))}function HC(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function r5(t,e){HC(t,e),(t=t.alternate)&&HC(t,e)}function R7(t){if(t.tag===13||t.tag===31){var e=sc(t,67108864);e!==null&&ui(e,t,67108864),r5(t,67108864)}}function WC(t){if(t.tag===13||t.tag===31){var e=Ni();e=gw(e);var n=sc(t,e);n!==null&&ui(n,t,e),r5(t,e)}}var em=!0;function Cz(t,e,n,r){var i=dt.T;dt.T=null;var a=fn.p;try{fn.p=2,i5(t,e,n,r)}finally{fn.p=a,dt.T=i}}function Sz(t,e,n,r){var i=dt.T;dt.T=null;var a=fn.p;try{fn.p=8,i5(t,e,n,r)}finally{fn.p=a,dt.T=i}}function i5(t,e,n,r){if(em){var i=cw(r);if(i===null)h2(t,e,r,tm,n),FC(t,r);else if(Ez(i,t,e,n,r))r.stopPropagation();else if(FC(t,r),e&4&&-1<Tz.indexOf(t)){for(;i!==null;){var a=dd(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Fl(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-Ui(o);s.entanglements[1]|=l,o&=~l}$a(a),(dn&6)===0&&(Wp=Oi()+500,d0(0,!1))}}break;case 31:case 13:s=sc(a,2),s!==null&&ui(s,a,2),gm(),r5(a,2)}if(a=cw(r),a===null&&h2(t,e,r,tm,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else h2(t,e,r,null,n)}}function cw(t){return t=bw(t),a5(t)}var tm=null;function a5(t){if(tm=null,t=Pu(t),t!==null){var e=n0(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=QC(e),t!==null)return t;t=null}else if(n===31){if(t=XC(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tm=t,null}function O7(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(fP()){case nS:return 2;case rS:return 8;case Mp:case hP:return 32;case iS:return 268435456;default:return 32}default:return 32}}var uw=!1,Fs=null,$s=null,Ks=null,e0=new Map,t0=new Map,Is=[],Tz=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function FC(t,e){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":Fs=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":$s=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":Ks=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":e0.delete(e.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":t0.delete(e.pointerId)}}function _h(t,e,n,r,i,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},e!==null&&(e=dd(e),e!==null&&R7(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Ez(t,e,n,r,i){switch(e){case\\\"focusin\\\":return Fs=_h(Fs,t,e,n,r,i),!0;case\\\"dragenter\\\":return $s=_h($s,t,e,n,r,i),!0;case\\\"mouseover\\\":return Ks=_h(Ks,t,e,n,r,i),!0;case\\\"pointerover\\\":var a=i.pointerId;return e0.set(a,_h(e0.get(a)||null,t,e,n,r,i)),!0;case\\\"gotpointercapture\\\":return a=i.pointerId,t0.set(a,_h(t0.get(a)||null,t,e,n,r,i)),!0}return!1}function I7(t){var e=Pu(t.target);if(e!==null){var n=n0(e);if(n!==null){if(e=n.tag,e===13){if(e=QC(n),e!==null){t.blockedOn=e,k8(t.priority,function(){WC(n)});return}}else if(e===31){if(e=XC(n),e!==null){t.blockedOn=e,k8(t.priority,function(){WC(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ep(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=cw(t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);k2=r,n.target.dispatchEvent(r),k2=null}else return e=dd(n),e!==null&&R7(e),t.blockedOn=n,!1;e.shift()}return!0}function $C(t,e,n){Ep(t)&&n.delete(e)}function Az(){uw=!1,Fs!==null&&Ep(Fs)&&(Fs=null),$s!==null&&Ep($s)&&($s=null),Ks!==null&&Ep(Ks)&&(Ks=null),e0.forEach($C),t0.forEach($C)}function up(t,e){t.blockedOn===e&&(t.blockedOn=null,uw||(uw=!0,pr.unstable_scheduleCallback(pr.unstable_NormalPriority,Az)))}var dp=null;function KC(t){dp!==t&&(dp=t,pr.unstable_scheduleCallback(pr.unstable_NormalPriority,function(){dp===t&&(dp=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if(typeof r!=\\\"function\\\"){if(a5(r||n)===null)continue;break}var a=dd(n);a!==null&&(t.splice(e,3),e-=3,W2(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function cd(t){function e(l){return up(l,t)}Fs!==null&&up(Fs,t),$s!==null&&up($s,t),Ks!==null&&up(Ks,t),e0.forEach(e),t0.forEach(e);for(var n=0;n<Is.length;n++){var r=Is[n];r.blockedOn===t&&(r.blockedOn=null)}for(;0<Is.length&&(n=Is[0],n.blockedOn===null);)I7(n),n.blockedOn===null&&Is.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[di]||null;if(typeof a==\\\"function\\\")o||KC(n);else if(o){var s=null;if(a&&a.hasAttribute(\\\"formAction\\\")){if(i=a,o=a[di]||null)s=o.formAction;else if(a5(i)!==null)continue}else s=o.action;typeof s==\\\"function\\\"?n[r+1]=s:(n.splice(r,3),r-=3),KC(n)}}}function U7(){function t(a){a.canIntercept&&a.info===\\\"react-transition\\\"&&a.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function e(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var r=!1,i=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",e),navigation.addEventListener(\\\"navigateerror\\\",e),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",e),navigation.removeEventListener(\\\"navigateerror\\\",e),i!==null&&(i(),i=null)}}}function o5(t){this._internalRoot=t}ym.prototype.render=o5.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(de(409));var n=e.current,r=Ni();M7(n,r,t,e,null,null)};ym.prototype.unmount=o5.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;M7(t.current,2,null,t,null,null),gm(),e[ud]=null}};function ym(t){this._internalRoot=t}ym.prototype.unstable_scheduleHydration=function(t){if(t){var e=cS();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Is.length&&e!==0&&e<Is[n].priority;n++);Is.splice(n,0,t),n===0&&I7(t)}};var ZC=YC.version;if(ZC!==\\\"19.2.4\\\")throw Error(de(527,ZC,\\\"19.2.4\\\"));fn.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render==\\\"function\\\"?Error(de(188)):(t=Object.keys(t).join(\\\",\\\"),Error(de(268,t)));return t=aP(e),t=t!==null?JC(t):null,t=t===null?null:t.stateNode,t};var kz={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:dt,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(Ch=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ch.isDisabled&&Ch.supportsFiber))try{r0=Ch.inject(kz),Ii=Ch}catch{}var Ch;bm.createRoot=function(t,e){if(!GC(t))throw Error(de(299));var n=!1,r=\\\"\\\",i=T9,a=E9,o=A9;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(a=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=k7(t,1,!1,null,null,n,r,null,i,a,o,U7),t[ud]=e.current,e5(t),new o5(e)};bm.hydrateRoot=function(t,e,n){if(!GC(t))throw Error(de(299));var r=!1,i=\\\"\\\",a=T9,o=E9,s=A9,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),e=k7(t,1,!0,e,n??null,r,i,l,a,o,s,U7),e.context=B7(null),n=e.current,r=Ni(),r=gw(r),i=qs(r),i.callback=null,Vs(n,i,r),n=r,e.current.lanes=n,a0(e,n),$a(e),t[ud]=e.current,e5(t),new ym(e)};bm.version=\\\"19.2.4\\\"});var z7=V((Joe,j7)=>{\\\"use strict\\\";b();function P7(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P7)}catch(t){console.error(t)}}P7(),j7.exports=N7()});var cc=V(vm=>{\\\"use strict\\\";b();Object.defineProperty(vm,\\\"__esModule\\\",{value:!0});vm.inspectSymbol=void 0;vm.inspectSymbol=Symbol.for(\\\"nodejs.util.inspect.custom\\\")});var xm=V(wm=>{\\\"use strict\\\";b();Object.defineProperty(wm,\\\"__esModule\\\",{value:!0});wm.crc16=void 0;function Bz(t){let n=0,r=globalThis.Buffer.alloc(t.length+2);r.set(t);for(let i of r){let a=128;for(;a>0;)n<<=1,i&a&&(n+=1),a>>=1,n>65535&&(n&=65535,n^=4129)}return globalThis.Buffer.from([Math.floor(n/256),n%256])}wm.crc16=Bz});var Ho=V(yd=>{\\\"use strict\\\";b();var L7;Object.defineProperty(yd,\\\"__esModule\\\",{value:!0});yd.address=yd.Address=void 0;var Mz=cc(),q7=xm(),s5=17,V7=81,l5=128;function D7(t){if(typeof t==\\\"string\\\"&&!g0.isFriendly(t))throw new Error(\\\"Unknown address type\\\");let e=globalThis.Buffer.isBuffer(t)?t:globalThis.Buffer.from(t,\\\"base64\\\");if(e.length!==36)throw new Error(\\\"Unknown address type: byte length is not equal to 36\\\");let n=e.subarray(0,34),r=e.subarray(34,36),i=(0,q7.crc16)(n);if(!(i[0]===r[0]&&i[1]===r[1]))throw new Error(\\\"Invalid checksum: \\\"+t);let a=n[0],o=!1,s=!1;if(a&l5&&(o=!0,a=a^l5),a!==s5&&a!==V7)throw\\\"Unknown address tag\\\";s=a===s5;let l=null;n[1]===255?l=-1:l=n[1];let c=n.subarray(2,34);return{isTestOnly:o,isBounceable:s,workchain:l,hashPart:c}}var g0=class t{static isAddress(e){return e instanceof t}static isFriendly(e){return!(e.length!==48||!/^[A-Za-z0-9+/_-]+$/.test(e))}static isRaw(e){if(e.indexOf(\\\":\\\")===-1)return!1;let[n,r]=e.split(\\\":\\\");return!(!Number.isInteger(parseFloat(n))||!/[a-f0-9]+/.test(r.toLowerCase())||r.length!==64)}static normalize(e){return typeof e==\\\"string\\\"?t.parse(e).toString():e.toString()}static parse(e){if(t.isFriendly(e))return this.parseFriendly(e).address;if(t.isRaw(e))return this.parseRaw(e);throw new Error(\\\"Unknown address type: \\\"+e)}static parseRaw(e){let n=parseInt(e.split(\\\":\\\")[0]),r=globalThis.Buffer.from(e.split(\\\":\\\")[1],\\\"hex\\\");return new t(n,r)}static parseFriendly(e){if(globalThis.Buffer.isBuffer(e)){let n=D7(e);return{isBounceable:n.isBounceable,isTestOnly:n.isTestOnly,address:new t(n.workchain,n.hashPart)}}else{let n=e.replace(/\\\\-/g,\\\"+\\\").replace(/_/g,\\\"/\\\"),r=D7(n);return{isBounceable:r.isBounceable,isTestOnly:r.isTestOnly,address:new t(r.workchain,r.hashPart)}}}constructor(e,n){if(this.toRawString=()=>this.workChain+\\\":\\\"+this.hash.toString(\\\"hex\\\"),this.toRaw=()=>{let r=globalThis.Buffer.alloc(36);return r.set(this.hash),r.set([this.workChain,this.workChain,this.workChain,this.workChain],32),r},this.toStringBuffer=r=>{let i=r&&r.testOnly!==void 0?r.testOnly:!1,o=(r&&r.bounceable!==void 0?r.bounceable:!0)?s5:V7;i&&(o|=l5);let s=globalThis.Buffer.alloc(34);s[0]=o,s[1]=this.workChain,s.set(this.hash,2);let l=globalThis.Buffer.alloc(36);return l.set(s),l.set((0,q7.crc16)(s),34),l},this.toString=r=>{let i=r&&r.urlSafe!==void 0?r.urlSafe:!0,a=this.toStringBuffer(r);return i?a.toString(\\\"base64\\\").replace(/\\\\+/g,\\\"-\\\").replace(/\\\\//g,\\\"_\\\"):a.toString(\\\"base64\\\")},this[L7]=()=>this.toString(),n.length!==32)throw new Error(\\\"Invalid address hash length: \\\"+n.length);this.workChain=e,this.hash=n,Object.freeze(this)}equals(e){return e.workChain!==this.workChain?!1:e.hash.equals(this.hash)}};yd.Address=g0;L7=Mz.inspectSymbol;function Rz(t){return g0.parse(t)}yd.address=Rz});var Cm=V(_m=>{\\\"use strict\\\";b();var H7;Object.defineProperty(_m,\\\"__esModule\\\",{value:!0});_m.ExternalAddress=void 0;var Oz=cc(),c5=class t{static isAddress(e){return e instanceof t}constructor(e,n){this[H7]=()=>this.toString(),this.value=e,this.bits=n}toString(){return`External<${this.bits}:${this.value}>`}};_m.ExternalAddress=c5;H7=Oz.inspectSymbol});var d5=V(bd=>{\\\"use strict\\\";b();Object.defineProperty(bd,\\\"__esModule\\\",{value:!0});bd.base32Decode=bd.base32Encode=void 0;var u5=\\\"abcdefghijklmnopqrstuvwxyz234567\\\";function Iz(t){let e=t.byteLength,n=0,r=0,i=\\\"\\\";for(let a=0;a<e;a++)for(r=r<<8|t[a],n+=8;n>=5;)i+=u5[r>>>n-5&31],n-=5;return n>0&&(i+=u5[r<<5-n&31]),i}bd.base32Encode=Iz;function Uz(t,e){let n=t.indexOf(e);if(n===-1)throw new Error(\\\"Invalid character found: \\\"+e);return n}function Nz(t){let e;e=t.toLowerCase();let{length:n}=e,r=0,i=0,a=0,o=globalThis.Buffer.alloc(n*5/8|0);for(let s=0;s<n;s++)i=i<<5|Uz(u5,e[s]),r+=5,r>=8&&(o[a++]=i>>>r-8&255,r-=8);return o}bd.base32Decode=Nz});var K7=V(Sm=>{\\\"use strict\\\";b();var $7;Object.defineProperty(Sm,\\\"__esModule\\\",{value:!0});Sm.ADNLAddress=void 0;var Pz=cc(),W7=d5(),F7=xm(),f5=class t{static parseFriendly(e){if(e.length!==55)throw Error(\\\"Invalid address\\\");e=\\\"f\\\"+e;let n=(0,W7.base32Decode)(e);if(n[0]!==45)throw Error(\\\"Invalid address\\\");let r=n.slice(33);if(!(0,F7.crc16)(n.slice(0,33)).equals(r))throw Error(\\\"Invalid address\\\");return new t(n.slice(1,33))}static parseRaw(e){let n=globalThis.Buffer.from(e,\\\"base64\\\");return new t(n)}constructor(e){if(this.toRaw=()=>this.address.toString(\\\"hex\\\").toUpperCase(),this.toString=()=>{let n=globalThis.Buffer.concat([globalThis.Buffer.from([45]),this.address]),r=(0,F7.crc16)(n);return n=globalThis.Buffer.concat([n,r]),(0,W7.base32Encode)(n).slice(1)},this[$7]=()=>this.toString(),e.length!==32)throw Error(\\\"Invalid address\\\");this.address=e}equals(e){return this.address.equals(e.address)}};Sm.ADNLAddress=f5;$7=Pz.inspectSymbol});var p0=V(vd=>{\\\"use strict\\\";b();Object.defineProperty(vd,\\\"__esModule\\\",{value:!0});vd.paddedBufferToBits=vd.bitsToPaddedBuffer=void 0;var jz=m0(),zz=Wo();function Dz(t){let e=new jz.BitBuilder(Math.ceil(t.length/8)*8);e.writeBits(t);let n=Math.ceil(t.length/8)*8-t.length;for(let r=0;r<n;r++)r===0?e.writeBit(1):e.writeBit(0);return e.buffer()}vd.bitsToPaddedBuffer=Dz;function Lz(t){let e=0;for(let n=t.length-1;n>=0;n--)if(t[n]!==0){let r=t[n],i=r&-r;(i&1)==0&&(i=Math.log2(i)+1),n>0&&(e=n<<3),e+=8-i;break}return new zz.BitString(t,0,e)}vd.paddedBufferToBits=Lz});var Wo=V(Tm=>{\\\"use strict\\\";b();var Z7;Object.defineProperty(Tm,\\\"__esModule\\\",{value:!0});Tm.BitString=void 0;var qz=p0(),Vz=cc(),y0=class t{static isBitString(e){return e instanceof t}constructor(e,n,r){if(this[Z7]=()=>this.toString(),r<0)throw new Error(`Length ${r} is out of bounds`);this._length=r,this._data=e,this._offset=n}get length(){return this._length}at(e){if(e>=this._length)throw new Error(`Index ${e} > ${this._length} is out of bounds`);if(e<0)throw new Error(`Index ${e} < 0 is out of bounds`);let n=this._offset+e>>3,r=7-(this._offset+e)%8;return(this._data[n]&1<<r)!==0}substring(e,n){if(e>this._length)throw new Error(`Offset(${e}) > ${this._length} is out of bounds`);if(e<0)throw new Error(`Offset(${e}) < 0 is out of bounds`);if(n===0)return t.EMPTY;if(e+n>this._length)throw new Error(`Offset ${e} + Length ${n} > ${this._length} is out of bounds`);return new t(this._data,this._offset+e,n)}subbuffer(e,n){if(e>this._length)throw new Error(`Offset ${e} is out of bounds`);if(e<0)throw new Error(`Offset ${e} is out of bounds`);if(e+n>this._length)throw new Error(`Offset + Length = ${e+n} is out of bounds`);if(n%8!==0||(this._offset+e)%8!==0)return null;let r=this._offset+e>>3,i=r+(n>>3);return this._data.subarray(r,i)}equals(e){if(this._length!==e._length)return!1;for(let n=0;n<this._length;n++)if(this.at(n)!==e.at(n))return!1;return!0}toString(){let e=(0,qz.bitsToPaddedBuffer)(this);if(this._length%4===0){let n=e.subarray(0,Math.ceil(this._length/8)).toString(\\\"hex\\\").toUpperCase();return this._length%8===0?n:n.substring(0,n.length-1)}else{let n=e.toString(\\\"hex\\\").toUpperCase();return this._length%8<=4?n.substring(0,n.length-1)+\\\"_\\\":n+\\\"_\\\"}}};Tm.BitString=y0;Z7=Vz.inspectSymbol;y0.EMPTY=new y0(globalThis.Buffer.alloc(0),0,0)});var m0=V(Em=>{\\\"use strict\\\";b();Object.defineProperty(Em,\\\"__esModule\\\",{value:!0});Em.BitBuilder=void 0;var Hz=Ho(),Wz=Cm(),Fz=Wo(),h5=class{constructor(e=1023){this._buffer=globalThis.Buffer.alloc(Math.ceil(e/8)),this._length=0}get length(){return this._length}writeBit(e){let n=this._length;if(n>this._buffer.length*8)throw new Error(\\\"BitBuilder overflow\\\");(typeof e==\\\"boolean\\\"&&e===!0||typeof e==\\\"number\\\"&&e>0)&&(this._buffer[n/8|0]|=1<<7-n%8),this._length++}writeBits(e){for(let n=0;n<e.length;n++)this.writeBit(e.at(n))}writeBuffer(e){if(this._length%8===0){if(this._length+e.length*8>this._buffer.length*8)throw new Error(\\\"BitBuilder overflow\\\");e.copy(this._buffer,this._length/8),this._length+=e.length*8}else for(let n=0;n<e.length;n++)this.writeUint(e[n],8)}writeUint(e,n){if(n<0||!Number.isSafeInteger(n))throw Error(`invalid bit length. Got ${n}`);let r=BigInt(e);if(n===0){if(r!==0n)throw Error(`value is not zero for ${n} bits. Got ${e}`);return}let i=1n<<BigInt(n);if(r<0||r>=i)throw Error(`bitLength is too small for a value ${e}. Got ${n}`);if(this._length+n>this._buffer.length*8)throw new Error(\\\"BitBuilder overflow\\\");let a=8-this._length%8;if(a>0){let o=Math.floor(this._length/8);if(n<a){let s=Number(r);this._buffer[o]|=s<<a-n,this._length+=n}else{let s=Number(r>>BigInt(n-a));this._buffer[o]|=s,this._length+=a}}for(n-=a;n>0;)n>=8?(this._buffer[this._length/8]=Number(r>>BigInt(n-8)&0xffn),this._length+=8,n-=8):(this._buffer[this._length/8]=Number(r<<BigInt(8-n)&0xffn),this._length+=n,n=0)}writeInt(e,n){let r=BigInt(e);if(n<0||!Number.isSafeInteger(n))throw Error(`invalid bit length. Got ${n}`);if(n===0){if(r!==0n)throw Error(`value is not zero for ${n} bits. Got ${e}`);return}if(n===1){if(r!==-1n&&r!==0n)throw Error(`value is not zero or -1 for ${n} bits. Got ${e}`);this.writeBit(r===-1n);return}let i=1n<<BigInt(n)-1n;if(r<-i||r>=i)throw Error(`value is out of range for ${n} bits. Got ${e}`);r<0?(this.writeBit(!0),r=i+r):this.writeBit(!1),this.writeUint(r,n-1)}writeVarUint(e,n){let r=BigInt(e);if(n<0||!Number.isSafeInteger(n))throw Error(`invalid bit length. Got ${n}`);if(r<0)throw Error(`value is negative. Got ${e}`);if(r===0n){this.writeUint(0,n);return}let i=Math.ceil(r.toString(2).length/8),a=i*8;this.writeUint(i,n),this.writeUint(r,a)}writeVarInt(e,n){let r=BigInt(e);if(n<0||!Number.isSafeInteger(n))throw Error(`invalid bit length. Got ${n}`);if(r===0n){this.writeUint(0,n);return}let i=r>0?r:-r,a=Math.ceil((i.toString(2).length+1)/8),o=a*8;this.writeUint(a,n),this.writeInt(r,o)}writeCoins(e){this.writeVarUint(e,4)}writeAddress(e){if(e==null){this.writeUint(0,2);return}if(Hz.Address.isAddress(e)){this.writeUint(2,2),this.writeUint(0,1),this.writeInt(e.workChain,8),this.writeBuffer(e.hash);return}if(Wz.ExternalAddress.isAddress(e)){this.writeUint(1,2),this.writeUint(e.bits,9),this.writeUint(e.value,e.bits);return}throw Error(`Invalid address. Got ${e}`)}build(){return new Fz.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!==0)throw new Error(\\\"BitBuilder buffer is not byte aligned\\\");return this._buffer.subarray(0,this._length/8)}};Em.BitBuilder=h5});var wd=V(Am=>{\\\"use strict\\\";b();Object.defineProperty(Am,\\\"__esModule\\\",{value:!0});Am.CellType=void 0;var Y7;(function(t){t[t.Ordinary=-1]=\\\"Ordinary\\\",t[t.PrunedBranch=1]=\\\"PrunedBranch\\\",t[t.Library=2]=\\\"Library\\\",t[t.MerkleProof=3]=\\\"MerkleProof\\\",t[t.MerkleUpdate=4]=\\\"MerkleUpdate\\\"})(Y7||(Am.CellType=Y7={}))});var G7=V(km=>{\\\"use strict\\\";b();Object.defineProperty(km,\\\"__esModule\\\",{value:!0});km.readUnaryLength=void 0;function $z(t){let e=0;for(;t.loadBit();)e++;return e}km.readUnaryLength=$z});var Fo=V(Bm=>{\\\"use strict\\\";b();Object.defineProperty(Bm,\\\"__esModule\\\",{value:!0});Bm.BitReader=void 0;var Kz=Ho(),Zz=Cm(),g5=class t{constructor(e,n=0){this._checkpoints=[],this._bits=e,this._offset=n}get offset(){return this._offset}get remaining(){return this._bits.length-this._offset}skip(e){if(e<0||this._offset+e>this._bits.length)throw new Error(`Index ${this._offset+e} is out of bounds`);this._offset+=e}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let e=this._bits.at(this._offset);return this._offset++,e}preloadBit(){return this._bits.at(this._offset)}loadBits(e){let n=this._bits.substring(this._offset,e);return this._offset+=e,n}preloadBits(e){return this._bits.substring(this._offset,e)}loadBuffer(e){let n=this._preloadBuffer(e,this._offset);return this._offset+=e*8,n}preloadBuffer(e){return this._preloadBuffer(e,this._offset)}loadUint(e){return this._toSafeInteger(this.loadUintBig(e),\\\"loadUintBig\\\")}loadUintBig(e){let n=this.preloadUintBig(e);return this._offset+=e,n}preloadUint(e){return this._toSafeInteger(this._preloadUint(e,this._offset),\\\"preloadUintBig\\\")}preloadUintBig(e){return this._preloadUint(e,this._offset)}loadInt(e){let n=this._preloadInt(e,this._offset);return this._offset+=e,this._toSafeInteger(n,\\\"loadUintBig\\\")}loadIntBig(e){let n=this._preloadInt(e,this._offset);return this._offset+=e,n}preloadInt(e){return this._toSafeInteger(this._preloadInt(e,this._offset),\\\"preloadIntBig\\\")}preloadIntBig(e){return this._preloadInt(e,this._offset)}loadVarUint(e){let n=Number(this.loadUint(e));return this._toSafeInteger(this.loadUintBig(n*8),\\\"loadVarUintBig\\\")}loadVarUintBig(e){let n=Number(this.loadUint(e));return this.loadUintBig(n*8)}preloadVarUint(e){let n=Number(this._preloadUint(e,this._offset));return this._toSafeInteger(this._preloadUint(n*8,this._offset+e),\\\"preloadVarUintBig\\\")}preloadVarUintBig(e){let n=Number(this._preloadUint(e,this._offset));return this._preloadUint(n*8,this._offset+e)}loadVarInt(e){let n=Number(this.loadUint(e));return this._toSafeInteger(this.loadIntBig(n*8),\\\"loadVarIntBig\\\")}loadVarIntBig(e){let n=Number(this.loadUint(e));return this.loadIntBig(n*8)}preloadVarInt(e){let n=Number(this._preloadUint(e,this._offset));return this._toSafeInteger(this._preloadInt(n*8,this._offset+e),\\\"preloadVarIntBig\\\")}preloadVarIntBig(e){let n=Number(this._preloadUint(e,this._offset));return this._preloadInt(n*8,this._offset+e)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let e=Number(this._preloadUint(2,this._offset));if(e===2)return this._loadInternalAddress();throw new Error(\\\"Invalid address: \\\"+e)}loadMaybeAddress(){let e=Number(this._preloadUint(2,this._offset));if(e===0)return this._offset+=2,null;if(e===2)return this._loadInternalAddress();throw new Error(\\\"Invalid address\\\")}loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))===1)return this._loadExternalAddress();throw new Error(\\\"Invalid address\\\")}loadMaybeExternalAddress(){let e=Number(this._preloadUint(2,this._offset));if(e===0)return this._offset+=2,null;if(e===1)return this._loadExternalAddress();throw new Error(\\\"Invalid address\\\")}loadAddressAny(){let e=Number(this._preloadUint(2,this._offset));if(e===0)return this._offset+=2,null;if(e===2)return this._loadInternalAddress();if(e===1)return this._loadExternalAddress();throw Error(e===3?\\\"Unsupported\\\":\\\"Unreachable\\\")}loadPaddedBits(e){if(e%8!==0)throw new Error(\\\"Invalid number of bits\\\");let n=e;for(;;)if(this._bits.at(this._offset+n-1)){n--;break}else n--;let r=this._bits.substring(this._offset,n);return this._offset+=e,r}clone(){return new t(this._bits,this._offset)}_preloadInt(e,n){if(e==0)return 0n;let r=this._bits.at(n),i=0n;for(let a=0;a<e-1;a++)this._bits.at(n+1+a)&&(i+=1n<<BigInt(e-a-1-1));return r&&(i=i-(1n<<BigInt(e-1))),i}_preloadUint(e,n){if(e==0)return 0n;let r=0n;for(let i=0;i<e;i++)this._bits.at(n+i)&&(r+=1n<<BigInt(e-i-1));return r}_preloadBuffer(e,n){let r=this._bits.subbuffer(n,e*8);if(r)return r;let i=globalThis.Buffer.alloc(e);for(let a=0;a<e;a++)i[a]=Number(this._preloadUint(8,n+a*8));return i}_loadInternalAddress(){if(Number(this._preloadUint(2,this._offset))!==2)throw Error(\\\"Invalid address\\\");let n,r;this._preloadUint(1,this._offset+2)!==0n&&(r=Number(this._preloadUint(5,this._offset+3)),n=this._preloadUint(r,this._offset+8),this._offset+=5+r);let i=Number(this._preloadInt(8,this._offset+3)),a=this._preloadBuffer(32,this._offset+11);if(r!==void 0&&n!==void 0){let o=Number(n),s=0,l=0,c=r;for(;c>0;){let u=Math.min(8-l,c),d=(1<<u)-1<<8-l-u,h=(o>>c-u&(1<<u)-1)<<8-l-u;a[s]=a[s]&~d|h,c-=u,l+=u,l===8&&(s++,l=0)}}return this._offset+=267,new Kz.Address(i,a)}_loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))!==1)throw Error(\\\"Invalid address\\\");let n=Number(this._preloadUint(9,this._offset+2)),r=this._preloadUint(n,this._offset+11);return this._offset+=11+n,new Zz.ExternalAddress(r,n)}_toSafeInteger(e,n){if(BigInt(Number.MAX_SAFE_INTEGER)<e||e<BigInt(Number.MIN_SAFE_INTEGER))throw new TypeError(`${e} is out of safe integer range. Use ${n} instead`);return Number(e)}};Bm.BitReader=g5});var b0=V(xd=>{\\\"use strict\\\";b();Object.defineProperty(xd,\\\"__esModule\\\",{value:!0});xd.convertToMerkleProof=xd.exoticMerkleProof=void 0;var Yz=Fo(),Gz=tr();function Qz(t,e){let n=new Yz.BitReader(t);if(t.length!==280)throw new Error(`Merkle Proof cell must have exactly (8 + 256 + 16) bits, got \\\"${t.length}\\\"`);if(e.length!==1)throw new Error(`Merkle Proof cell must have exactly 1 ref, got \\\"${e.length}\\\"`);let i=n.loadUint(8);if(i!==3)throw new Error(`Merkle Proof cell must have type 3, got \\\"${i}\\\"`);let a=n.loadBuffer(32),o=n.loadUint(16),s=e[0].hash(0),l=e[0].depth(0);if(o!==l)throw new Error(`Merkle Proof cell ref depth must be exactly \\\"${o}\\\", got \\\"${l}\\\"`);if(!a.equals(s))throw new Error(`Merkle Proof cell ref hash must be exactly \\\"${a.toString(\\\"hex\\\")}\\\", got \\\"${s.toString(\\\"hex\\\")}\\\"`);return{proofDepth:o,proofHash:a}}xd.exoticMerkleProof=Qz;function Xz(t){return(0,Gz.beginCell)().storeUint(3,8).storeBuffer(t.hash(0)).storeUint(t.depth(0),16).storeRef(t).endCell({exotic:!0})}xd.convertToMerkleProof=Xz});var Mm=V(_d=>{\\\"use strict\\\";b();Object.defineProperty(_d,\\\"__esModule\\\",{value:!0});_d.generateMerkleProof=_d.generateMerkleProofDirect=void 0;var m5=tr(),Jz=G7(),eD=b0();function tD(t){return(0,m5.beginCell)().storeUint(1,8).storeUint(1,8).storeBuffer(t.hash(0)).storeUint(t.depth(0),16).endCell({exotic:!0})}function p5(t,e,n,r){let i=e.asCell();if(r.length==0)return tD(i);let a=e.loadBit()?1:0,o=0,s=t;if(a===0){o=(0,Jz.readUnaryLength)(e);for(let l=0;l<o;l++)s+=e.loadBit()?\\\"1\\\":\\\"0\\\"}else if((e.loadBit()?1:0)===0){o=e.loadUint(Math.ceil(Math.log2(n+1)));for(let c=0;c<o;c++)s+=e.loadBit()?\\\"1\\\":\\\"0\\\"}else{let c=e.loadBit()?\\\"1\\\":\\\"0\\\";o=e.loadUint(Math.ceil(Math.log2(n+1)));for(let u=0;u<o;u++)s+=c}if(n-o===0)return i;{let l=i.beginParse(),c=l.loadRef(),u=l.loadRef();if(!c.isExotic){let d=r.filter(h=>s+\\\"0\\\"===h.slice(0,s.length+1));c=p5(s+\\\"0\\\",c.beginParse(),n-o-1,d)}if(!u.isExotic){let d=r.filter(h=>s+\\\"1\\\"===h.slice(0,s.length+1));u=p5(s+\\\"1\\\",u.beginParse(),n-o-1,d)}return(0,m5.beginCell)().storeSlice(l).storeRef(c).storeRef(u).endCell()}}function Q7(t,e,n){e.forEach(i=>{if(!t.has(i))throw new Error(`Trying to generate merkle proof for a missing key \\\"${i}\\\"`)});let r=(0,m5.beginCell)().storeDictDirect(t).asSlice();return p5(\\\"\\\",r,n.bits,e.map(i=>n.serialize(i).toString(2).padStart(n.bits,\\\"0\\\")))}_d.generateMerkleProofDirect=Q7;function nD(t,e,n){return(0,eD.convertToMerkleProof)(Q7(t,e,n))}_d.generateMerkleProof=nD});var y5=V(Rm=>{\\\"use strict\\\";b();Object.defineProperty(Rm,\\\"__esModule\\\",{value:!0});Rm.generateMerkleUpdate=void 0;var rD=tr(),X7=Mm();function iD(t,e){return(0,rD.beginCell)().storeUint(4,8).storeBuffer(t.hash(0)).storeBuffer(e.hash(0)).storeUint(t.depth(0),16).storeUint(e.depth(0),16).storeRef(t).storeRef(e).endCell({exotic:!0})}function aD(t,e,n,r){let i=(0,X7.generateMerkleProof)(t,[e],n).refs[0];t.set(e,r);let a=(0,X7.generateMerkleProof)(t,[e],n).refs[0];return iD(i,a)}Rm.generateMerkleUpdate=aD});var J7=V(Om=>{\\\"use strict\\\";b();Object.defineProperty(Om,\\\"__esModule\\\",{value:!0});Om.parseDict=void 0;function oD(t){let e=0;for(;t.loadBit();)e++;return e}function b5(t,e,n,r,i){let a=e.loadBit()?1:0,o=0,s=t;if(a===0){o=oD(e);for(let l=0;l<o;l++)s+=e.loadBit()?\\\"1\\\":\\\"0\\\"}else if((e.loadBit()?1:0)===0){o=e.loadUint(Math.ceil(Math.log2(n+1)));for(let c=0;c<o;c++)s+=e.loadBit()?\\\"1\\\":\\\"0\\\"}else{let c=e.loadBit()?\\\"1\\\":\\\"0\\\";o=e.loadUint(Math.ceil(Math.log2(n+1)));for(let u=0;u<o;u++)s+=c}if(n-o===0)r.set(BigInt(\\\"0b\\\"+s),i(e));else{let l=e.loadRef(),c=e.loadRef();l.isExotic||b5(s+\\\"0\\\",l.beginParse(),n-o-1,r,i),c.isExotic||b5(s+\\\"1\\\",c.beginParse(),n-o-1,r,i)}}function sD(t,e,n){let r=new Map;return t&&b5(\\\"\\\",t,e,r,n),r}Om.parseDict=sD});var eT=V(Im=>{\\\"use strict\\\";b();Object.defineProperty(Im,\\\"__esModule\\\",{value:!0});Im.findCommonPrefix=void 0;function lD(t,e=0){if(t.length===0)return\\\"\\\";let n=t[0].slice(e);for(let r=1;r<t.length;r++){let i=t[r];for(;i.indexOf(n,e)!==e;)if(n=n.substring(0,n.length-1),n===\\\"\\\")return n}return n}Im.findCommonPrefix=lD});var sT=V(hi=>{\\\"use strict\\\";b();Object.defineProperty(hi,\\\"__esModule\\\",{value:!0});hi.serializeDict=hi.detectLabelType=hi.writeLabelSame=hi.writeLabelLong=hi.writeLabelShort=hi.buildTree=void 0;var tT=tr(),cD=eT();function uD(t,e){for(;t.length<e;)t=\\\"0\\\"+t;return t}function dD(t,e){if(t.size===0)throw Error(\\\"Internal inconsistency\\\");let n=new Map,r=new Map;for(let[i,a]of t.entries())i[e]===\\\"0\\\"?n.set(i,a):r.set(i,a);if(n.size===0)throw Error(\\\"Internal inconsistency. Left emtpy.\\\");if(r.size===0)throw Error(\\\"Internal inconsistency. Right emtpy.\\\");return{left:n,right:r}}function fD(t,e){if(t.size===0)throw Error(\\\"Internal inconsistency\\\");if(t.size===1)return{type:\\\"leaf\\\",value:Array.from(t.values())[0]};let{left:n,right:r}=dD(t,e);return{type:\\\"fork\\\",left:v5(n,e+1),right:v5(r,e+1)}}function v5(t,e=0){if(t.size===0)throw Error(\\\"Internal inconsistency\\\");let n=(0,cD.findCommonPrefix)(Array.from(t.keys()),e);return{label:n,node:fD(t,n.length+e)}}function nT(t,e){let n=new Map;for(let r of Array.from(t.keys())){let i=uD(r.toString(2),e);n.set(i,t.get(r))}return v5(n)}hi.buildTree=nT;function rT(t,e){e.storeBit(0);for(let n=0;n<t.length;n++)e.storeBit(1);return e.storeBit(0),t.length>0&&e.storeUint(BigInt(\\\"0b\\\"+t),t.length),e}hi.writeLabelShort=rT;function hD(t){return 1+t.length+1+t.length}function iT(t,e,n){n.storeBit(1),n.storeBit(0);let r=Math.ceil(Math.log2(e+1));return n.storeUint(t.length,r),t.length>0&&n.storeUint(BigInt(\\\"0b\\\"+t),t.length),n}hi.writeLabelLong=iT;function gD(t,e){return 2+Math.ceil(Math.log2(e+1))+t.length}function aT(t,e,n,r){r.storeBit(1),r.storeBit(1),r.storeBit(t);let i=Math.ceil(Math.log2(n+1));r.storeUint(e,i)}hi.writeLabelSame=aT;function pD(t){return 3+Math.ceil(Math.log2(t+1))}function mD(t){if(t.length===0||t.length===1)return!0;for(let e=1;e<t.length;e++)if(t[e]!==t[0])return!1;return!0}function oT(t,e){let n=\\\"short\\\",r=hD(t),i=gD(t,e);if(i<r&&(r=i,n=\\\"long\\\"),mD(t)){let a=pD(e);a<r&&(r=a,n=\\\"same\\\")}return n}hi.detectLabelType=oT;function yD(t,e,n){let r=oT(t,e);r===\\\"short\\\"?rT(t,n):r===\\\"long\\\"?iT(t,e,n):r===\\\"same\\\"&&aT(t[0]===\\\"1\\\",t.length,e,n)}function bD(t,e,n,r){if(t.type===\\\"leaf\\\"&&n(t.value,r),t.type===\\\"fork\\\"){let i=(0,tT.beginCell)(),a=(0,tT.beginCell)();w5(t.left,e-1,n,i),w5(t.right,e-1,n,a),r.storeRef(i),r.storeRef(a)}}function w5(t,e,n,r){yD(t.label,e,r),bD(t.node,e-t.label.length,n,r)}function vD(t,e,n,r){let i=nT(t,e);w5(i,e,n,r)}hi.serializeDict=vD});var cT=V(Cd=>{\\\"use strict\\\";b();Object.defineProperty(Cd,\\\"__esModule\\\",{value:!0});Cd.deserializeInternalKey=Cd.serializeInternalKey=void 0;var lT=Ho(),x5=Wo(),wD=p0();function xD(t){if(typeof t==\\\"number\\\"){if(!Number.isSafeInteger(t))throw Error(\\\"Invalid key type: not a safe integer: \\\"+t);return\\\"n:\\\"+t.toString(10)}else{if(typeof t==\\\"bigint\\\")return\\\"b:\\\"+t.toString(10);if(lT.Address.isAddress(t))return\\\"a:\\\"+t.toString();if(globalThis.Buffer.isBuffer(t))return\\\"f:\\\"+t.toString(\\\"hex\\\");if(x5.BitString.isBitString(t))return\\\"B:\\\"+t.toString();throw Error(\\\"Invalid key type\\\")}}Cd.serializeInternalKey=xD;function _D(t){let e=t.slice(0,2),n=t.slice(2);if(e===\\\"n:\\\")return parseInt(n,10);if(e===\\\"b:\\\")return BigInt(n);if(e===\\\"a:\\\")return lT.Address.parse(n);if(e===\\\"f:\\\")return globalThis.Buffer.from(n,\\\"hex\\\");if(e===\\\"B:\\\"){let r=n.slice(-1)==\\\"_\\\";if(r||n.length%2!=0){let a=r?n.length-1:n.length,o=n.substr(0,a)+\\\"0\\\";return!r&&(a&1)!==0?new x5.BitString(globalThis.Buffer.from(o,\\\"hex\\\"),0,a<<2):(0,wD.paddedBufferToBits)(globalThis.Buffer.from(o,\\\"hex\\\"))}else return new x5.BitString(globalThis.Buffer.from(n,\\\"hex\\\"),0,n.length<<2)}throw Error(\\\"Invalid key type: \\\"+e)}Cd.deserializeInternalKey=_D});var Ko=V(Um=>{\\\"use strict\\\";b();Object.defineProperty(Um,\\\"__esModule\\\",{value:!0});Um.Dictionary=void 0;var CD=Ho(),Kr=tr(),uT=el(),SD=Wo(),dT=Mm(),TD=y5(),ED=J7(),fT=sT(),$o=cT(),Sd=class t{static empty(e,n){return e&&n?new t(new Map,e,n):new t(new Map,null,null)}static load(e,n,r){let i;if(r instanceof uT.Cell){if(r.isExotic)return t.empty(e,n);i=r.beginParse()}else i=r;let a=i.loadMaybeRef();return a&&!a.isExotic?t.loadDirect(e,n,a.beginParse()):t.empty(e,n)}static loadDirect(e,n,r){if(!r)return t.empty(e,n);let i;r instanceof uT.Cell?i=r.beginParse():i=r;let a=(0,ED.parseDict)(i,e.bits,n.parse),o=new Map;for(let[s,l]of a)o.set((0,$o.serializeInternalKey)(e.parse(s)),l);return new t(o,e,n)}constructor(e,n,r){this._key=n,this._value=r,this._map=e}get size(){return this._map.size}get(e){return this._map.get((0,$o.serializeInternalKey)(e))}has(e){return this._map.has((0,$o.serializeInternalKey)(e))}set(e,n){return this._map.set((0,$o.serializeInternalKey)(e),n),this}delete(e){let n=(0,$o.serializeInternalKey)(e);return this._map.delete(n)}clear(){this._map.clear()}*[Symbol.iterator](){for(let[e,n]of this._map)yield[(0,$o.deserializeInternalKey)(e),n]}keys(){return Array.from(this._map.keys()).map(e=>(0,$o.deserializeInternalKey)(e))}values(){return Array.from(this._map.values())}store(e,n,r){if(this._map.size===0)e.storeBit(0);else{let i=this._key;n!=null&&(i=n);let a=this._value;if(r!=null&&(a=r),!i)throw Error(\\\"Key serializer is not defined\\\");if(!a)throw Error(\\\"Value serializer is not defined\\\");let o=new Map;for(let[l,c]of this._map)o.set(i.serialize((0,$o.deserializeInternalKey)(l)),c);e.storeBit(1);let s=(0,Kr.beginCell)();(0,fT.serializeDict)(o,i.bits,a.serialize,s),e.storeRef(s.endCell())}}storeDirect(e,n,r){if(this._map.size===0)throw Error(\\\"Cannot store empty dictionary directly\\\");let i=this._key;n!=null&&(i=n);let a=this._value;if(r!=null&&(a=r),!i)throw Error(\\\"Key serializer is not defined\\\");if(!a)throw Error(\\\"Value serializer is not defined\\\");let o=new Map;for(let[s,l]of this._map)o.set(i.serialize((0,$o.deserializeInternalKey)(s)),l);(0,fT.serializeDict)(o,i.bits,a.serialize,e)}generateMerkleProof(e){return(0,dT.generateMerkleProof)(this,e,this._key)}generateMerkleProofDirect(e){return(0,dT.generateMerkleProofDirect)(this,e,this._key)}generateMerkleUpdate(e,n){return(0,TD.generateMerkleUpdate)(this,e,this._key,n)}};Um.Dictionary=Sd;Sd.Keys={Address:()=>AD(),BigInt:t=>kD(t),Int:t=>BD(t),BigUint:t=>MD(t),Uint:t=>RD(t),Buffer:t=>OD(t),BitString:t=>ID(t)};Sd.Values={BigInt:t=>ND(t),Int:t=>UD(t),BigVarInt:t=>PD(t),BigUint:t=>DD(t),Uint:t=>zD(t),BigVarUint:t=>jD(t),Bool:()=>LD(),Address:()=>qD(),Cell:()=>VD(),Buffer:t=>WD(t),BitString:t=>FD(t),Dictionary:(t,e)=>HD(t,e)};function AD(){return{bits:267,serialize:t=>{if(!CD.Address.isAddress(t))throw Error(\\\"Key is not an address\\\");return(0,Kr.beginCell)().storeAddress(t).endCell().beginParse().preloadUintBig(267)},parse:t=>(0,Kr.beginCell)().storeUint(t,267).endCell().beginParse().loadAddress()}}function kD(t){return{bits:t,serialize:e=>{if(typeof e!=\\\"bigint\\\")throw Error(\\\"Key is not a bigint\\\");return(0,Kr.beginCell)().storeInt(e,t).endCell().beginParse().loadUintBig(t)},parse:e=>(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadIntBig(t)}}function BD(t){return{bits:t,serialize:e=>{if(typeof e!=\\\"number\\\")throw Error(\\\"Key is not a number\\\");if(!Number.isSafeInteger(e))throw Error(\\\"Key is not a safe integer: \\\"+e);return(0,Kr.beginCell)().storeInt(e,t).endCell().beginParse().loadUintBig(t)},parse:e=>(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadInt(t)}}function MD(t){return{bits:t,serialize:e=>{if(typeof e!=\\\"bigint\\\")throw Error(\\\"Key is not a bigint\\\");if(e<0)throw Error(\\\"Key is negative: \\\"+e);return(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadUintBig(t)},parse:e=>(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadUintBig(t)}}function RD(t){return{bits:t,serialize:e=>{if(typeof e!=\\\"number\\\")throw Error(\\\"Key is not a number\\\");if(!Number.isSafeInteger(e))throw Error(\\\"Key is not a safe integer: \\\"+e);if(e<0)throw Error(\\\"Key is negative: \\\"+e);return(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadUintBig(t)},parse:e=>Number((0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadUint(t))}}function OD(t){return{bits:t*8,serialize:e=>{if(!globalThis.Buffer.isBuffer(e))throw Error(\\\"Key is not a buffer\\\");return(0,Kr.beginCell)().storeBuffer(e).endCell().beginParse().loadUintBig(t*8)},parse:e=>(0,Kr.beginCell)().storeUint(e,t*8).endCell().beginParse().loadBuffer(t)}}function ID(t){return{bits:t,serialize:e=>{if(!SD.BitString.isBitString(e))throw Error(\\\"Key is not a BitString\\\");return(0,Kr.beginCell)().storeBits(e).endCell().beginParse().loadUintBig(t)},parse:e=>(0,Kr.beginCell)().storeUint(e,t).endCell().beginParse().loadBits(t)}}function UD(t){return{serialize:(e,n)=>{n.storeInt(e,t)},parse:e=>{let n=e.loadInt(t);return e.endParse(),n}}}function ND(t){return{serialize:(e,n)=>{n.storeInt(e,t)},parse:e=>{let n=e.loadIntBig(t);return e.endParse(),n}}}function PD(t){return{serialize:(e,n)=>{n.storeVarInt(e,t)},parse:e=>{let n=e.loadVarIntBig(t);return e.endParse(),n}}}function jD(t){return{serialize:(e,n)=>{n.storeVarUint(e,t)},parse:e=>{let n=e.loadVarUintBig(t);return e.endParse(),n}}}function zD(t){return{serialize:(e,n)=>{n.storeUint(e,t)},parse:e=>{let n=e.loadUint(t);return e.endParse(),n}}}function DD(t){return{serialize:(e,n)=>{n.storeUint(e,t)},parse:e=>{let n=e.loadUintBig(t);return e.endParse(),n}}}function LD(){return{serialize:(t,e)=>{e.storeBit(t)},parse:t=>{let e=t.loadBit();return t.endParse(),e}}}function qD(){return{serialize:(t,e)=>{e.storeAddress(t)},parse:t=>{let e=t.loadAddress();return t.endParse(),e}}}function VD(){return{serialize:(t,e)=>{e.storeRef(t)},parse:t=>{let e=t.loadRef();return t.endParse(),e}}}function HD(t,e){return{serialize:(n,r)=>{n.store(r)},parse:n=>{let r=Sd.load(t,e,n);return n.endParse(),r}}}function WD(t){return{serialize:(e,n)=>{if(e.length!==t)throw Error(\\\"Invalid buffer size\\\");n.storeBuffer(e)},parse:e=>{let n=e.loadBuffer(t);return e.endParse(),n}}}function FD(t){return{serialize:(e,n)=>{if(e.length!==t)throw Error(\\\"Invalid BitString size\\\");n.storeBits(e)},parse:e=>{let n=e.loadBits(t);return e.endParse(),n}}}});var C5=V(tl=>{\\\"use strict\\\";b();Object.defineProperty(tl,\\\"__esModule\\\",{value:!0});tl.writeString=tl.stringToCell=tl.readString=void 0;var hT=tr();function gT(t){if(t.remainingBits%8!==0)throw new Error(`Invalid string length: ${t.remainingBits}`);if(t.remainingRefs!==0&&t.remainingRefs!==1)throw new Error(`invalid number of refs: ${t.remainingRefs}`);let e;return t.remainingBits===0?e=globalThis.Buffer.alloc(0):e=t.loadBuffer(t.remainingBits/8),t.remainingRefs===1&&(e=globalThis.Buffer.concat([e,gT(t.loadRef().beginParse())])),e}function $D(t){return gT(t).toString()}tl.readString=$D;function _5(t,e){if(t.length>0){let n=Math.floor(e.availableBits/8);if(t.length>n){let r=t.subarray(0,n),i=t.subarray(n);e=e.storeBuffer(r);let a=(0,hT.beginCell)();_5(i,a),e=e.storeRef(a.endCell())}else e=e.storeBuffer(t)}}function KD(t){let e=(0,hT.beginCell)();return _5(globalThis.Buffer.from(t),e),e.endCell()}tl.stringToCell=KD;function ZD(t,e){_5(globalThis.Buffer.from(t),e)}tl.writeString=ZD});var jm=V(Pm=>{\\\"use strict\\\";b();var yT;Object.defineProperty(Pm,\\\"__esModule\\\",{value:!0});Pm.Slice=void 0;var YD=cc(),pT=Ko(),mT=tr(),Nm=C5(),S5=class t{constructor(e,n){this[yT]=()=>this.toString(),this._reader=e.clone(),this._refs=[...n],this._refsOffset=0}get remainingBits(){return this._reader.remaining}get offsetBits(){return this._reader.offset}get remainingRefs(){return this._refs.length-this._refsOffset}get offsetRefs(){return this._refsOffset}skip(e){return this._reader.skip(e),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(e){return this._reader.loadBits(e)}preloadBits(e){return this._reader.preloadBits(e)}loadUint(e){return this._reader.loadUint(e)}loadUintBig(e){return this._reader.loadUintBig(e)}preloadUint(e){return this._reader.preloadUint(e)}preloadUintBig(e){return this._reader.preloadUintBig(e)}loadMaybeUint(e){return this.loadBit()?this.loadUint(e):null}loadMaybeUintBig(e){return this.loadBit()?this.loadUintBig(e):null}loadInt(e){return this._reader.loadInt(e)}loadIntBig(e){return this._reader.loadIntBig(e)}preloadInt(e){return this._reader.preloadInt(e)}preloadIntBig(e){return this._reader.preloadIntBig(e)}loadMaybeInt(e){return this.loadBit()?this.loadInt(e):null}loadMaybeIntBig(e){return this.loadBit()?this.loadIntBig(e):null}loadVarUint(e){return this._reader.loadVarUint(e)}loadVarUintBig(e){return this._reader.loadVarUintBig(e)}preloadVarUint(e){return this._reader.preloadVarUint(e)}preloadVarUintBig(e){return this._reader.preloadVarUintBig(e)}loadVarInt(e){return this._reader.loadVarInt(e)}loadVarIntBig(e){return this._reader.loadVarIntBig(e)}preloadVarInt(e){return this._reader.preloadVarInt(e)}preloadVarIntBig(e){return this._reader.preloadVarIntBig(e)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refsOffset>=this._refs.length)throw new Error(\\\"No more references\\\");return this._refs[this._refsOffset++]}preloadRef(){if(this._refsOffset>=this._refs.length)throw new Error(\\\"No more references\\\");return this._refs[this._refsOffset]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(e){return this._reader.loadBuffer(e)}preloadBuffer(e){return this._reader.preloadBuffer(e)}loadStringTail(){return(0,Nm.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,Nm.readString)(this):null}loadStringRefTail(){return(0,Nm.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){let e=this.loadMaybeRef();return e?(0,Nm.readString)(e.beginParse()):null}loadDict(e,n){return pT.Dictionary.load(e,n,this)}loadDictDirect(e,n){return pT.Dictionary.loadDirect(e,n,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error(\\\"Slice is not empty\\\")}asCell(){return(0,mT.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,mT.beginCell)().storeSlice(this)}clone(e=!1){if(e){let n=this._reader.clone();return n.reset(),new t(n,this._refs)}else{let n=new t(this._reader,this._refs);return n._refsOffset=this._refsOffset,n}}toString(){return this.asCell().toString()}};Pm.Slice=S5;yT=YD.inspectSymbol});var T5=V(zm=>{\\\"use strict\\\";b();Object.defineProperty(zm,\\\"__esModule\\\",{value:!0});zm.exoticLibrary=void 0;var GD=Fo();function QD(t,e){let n=new GD.BitReader(t);if(t.length!==264)throw new Error(`Library cell must have exactly (8 + 256) bits, got \\\"${t.length}\\\"`);let i=n.loadUint(8);if(i!==2)throw new Error(`Library cell must have type 2, got \\\"${i}\\\"`);return{}}zm.exoticLibrary=QD});var Lm=V(Dm=>{\\\"use strict\\\";b();Object.defineProperty(Dm,\\\"__esModule\\\",{value:!0});Dm.exoticMerkleUpdate=void 0;var XD=Fo();function JD(t,e){let n=new XD.BitReader(t),r=8+2*272;if(t.length!==r)throw new Error(`Merkle Update cell must have exactly (8 + (2 * (256 + 16))) bits, got \\\"${t.length}\\\"`);if(e.length!==2)throw new Error(`Merkle Update cell must have exactly 2 refs, got \\\"${e.length}\\\"`);let i=n.loadUint(8);if(i!==4)throw new Error(`Merkle Update cell type must be exactly 4, got \\\"${i}\\\"`);let a=n.loadBuffer(32),o=n.loadBuffer(32),s=n.loadUint(16),l=n.loadUint(16);if(s!==e[0].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly \\\"${s}\\\", got \\\"${e[0].depth(0)}\\\"`);if(!a.equals(e[0].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly \\\"${a.toString(\\\"hex\\\")}\\\", got \\\"${e[0].hash(0).toString(\\\"hex\\\")}\\\"`);if(l!==e[1].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly \\\"${l}\\\", got \\\"${e[1].depth(0)}\\\"`);if(!o.equals(e[1].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly \\\"${o.toString(\\\"hex\\\")}\\\", got \\\"${e[1].hash(0).toString(\\\"hex\\\")}\\\"`);return{proofDepth1:s,proofDepth2:l,proofHash1:a,proofHash2:o}}Dm.exoticMerkleUpdate=JD});var Vm=V(qm=>{\\\"use strict\\\";b();Object.defineProperty(qm,\\\"__esModule\\\",{value:!0});qm.LevelMask=void 0;var E5=class t{constructor(e=0){this._mask=0,this._mask=e,this._hashIndex=eL(this._mask),this._hashCount=this._hashIndex+1}get value(){return this._mask}get level(){return 32-Math.clz32(this._mask)}get hashIndex(){return this._hashIndex}get hashCount(){return this._hashCount}apply(e){return new t(this._mask&(1<<e)-1)}isSignificant(e){return e===0||(this._mask>>e-1)%2!==0}};qm.LevelMask=E5;function eL(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),(t+(t>>4)&252645135)*16843009>>24}});var Wm=V(Hm=>{\\\"use strict\\\";b();Object.defineProperty(Hm,\\\"__esModule\\\",{value:!0});Hm.exoticPruned=void 0;var tL=Fo(),bT=Vm();function nL(t,e){let n=new tL.BitReader(t),r=n.loadUint(8);if(r!==1)throw new Error(`Pruned branch cell must have type 1, got \\\"${r}\\\"`);if(e.length!==0)throw new Error(`Pruned Branch cell can't has refs, got \\\"${e.length}\\\"`);let i;if(t.length===280)i=new bT.LevelMask(1);else{if(i=new bT.LevelMask(n.loadUint(8)),i.level<1||i.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got \\\"${i.level}/${i.value}\\\"`);let l=16+i.apply(i.level-1).hashCount*272;if(t.length!==l)throw new Error(`Pruned branch cell must have exactly ${l} bits, got \\\"${t.length}\\\"`)}let a=[],o=[],s=[];for(let l=0;l<i.level;l++)o.push(n.loadBuffer(32));for(let l=0;l<i.level;l++)s.push(n.loadUint(16));for(let l=0;l<i.level;l++)a.push({depth:s[l],hash:o[l]});return{mask:i.value,pruned:a}}Hm.exoticPruned=nL});var vT=V(Km=>{\\\"use strict\\\";b();Object.defineProperty(Km,\\\"__esModule\\\",{value:!0});Km.resolveExotic=void 0;var rL=Fo(),Fm=wd(),iL=T5(),aL=b0(),oL=Lm(),sL=Wm(),$m=Vm();function lL(t,e){let n=(0,sL.exoticPruned)(t,e),r=[],i=[],a=new $m.LevelMask(n.mask);for(let o=0;o<n.pruned.length;o++)r.push(n.pruned[o].depth),i.push(n.pruned[o].hash);return{type:Fm.CellType.PrunedBranch,depths:r,hashes:i,mask:a}}function cL(t,e){let n=(0,iL.exoticLibrary)(t,e),r=[],i=[],a=new $m.LevelMask;return{type:Fm.CellType.Library,depths:r,hashes:i,mask:a}}function uL(t,e){let n=(0,aL.exoticMerkleProof)(t,e),r=[],i=[],a=new $m.LevelMask(e[0].level()>>1);return{type:Fm.CellType.MerkleProof,depths:r,hashes:i,mask:a}}function dL(t,e){let n=(0,oL.exoticMerkleUpdate)(t,e),r=[],i=[],a=new $m.LevelMask((e[0].level()|e[1].level())>>1);return{type:Fm.CellType.MerkleUpdate,depths:r,hashes:i,mask:a}}function fL(t,e){let r=new rL.BitReader(t).preloadUint(8);if(r===1)return lL(t,e);if(r===2)return cL(t,e);if(r===3)return uL(t,e);if(r===4)return dL(t,e);throw Error(\\\"Invalid exotic cell type: \\\"+r)}Km.resolveExotic=fL});var A5=V(nl=>{\\\"use strict\\\";b();Object.defineProperty(nl,\\\"__esModule\\\",{value:!0});nl.getRepr=nl.getBitsDescriptor=nl.getRefsDescriptor=void 0;var v0=wd(),hL=p0();function wT(t,e,n){return t.length+(n!==v0.CellType.Ordinary?1:0)*8+e*32}nl.getRefsDescriptor=wT;function xT(t){let e=t.length;return Math.ceil(e/8)+Math.floor(e/8)}nl.getBitsDescriptor=xT;function gL(t,e,n,r,i,a){let o=Math.ceil(e.length/8),s=globalThis.Buffer.alloc(2+o+34*n.length),l=0;s[l++]=wT(n,i,a),s[l++]=xT(t),(0,hL.bitsToPaddedBuffer)(e).copy(s,l),l+=o;for(let c of n){let u;a==v0.CellType.MerkleProof||a==v0.CellType.MerkleUpdate?u=c.depth(r+1):u=c.depth(r),s[l++]=Math.floor(u/256),s[l++]=u%256}for(let c of n){let u;a==v0.CellType.MerkleProof||a==v0.CellType.MerkleUpdate?u=c.hash(r+1):u=c.hash(r),u.copy(s,l),l+=32}return s}nl.getRepr=gL});var Zm=V((k5,B5)=>{b();(function(t,e){typeof k5==\\\"object\\\"&&typeof B5<\\\"u\\\"?B5.exports=e():typeof define==\\\"function\\\"&&define.amd?define(e):(t=typeof globalThis<\\\"u\\\"?globalThis:t||self).jsSHA=e()})(k5,(function(){\\\"use strict\\\";var t=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";function e(D,S,I,j){var H,B,Q,ee=S||[0],te=(I=I||0)>>>3,me=j===-1?3:0;for(H=0;H<D.length;H+=1)B=(Q=H+te)>>>2,ee.length<=B&&ee.push(0),ee[B]|=D[H]<<8*(me+j*(Q%4));return{value:ee,binLen:8*D.length+I}}function n(D,S,I){switch(S){case\\\"UTF8\\\":case\\\"UTF16BE\\\":case\\\"UTF16LE\\\":break;default:throw new Error(\\\"encoding must be UTF8, UTF16BE, or UTF16LE\\\")}switch(D){case\\\"HEX\\\":return function(j,H,B){return(function(Q,ee,te,me){var Pe,_e,be,Ae;if(Q.length%2!=0)throw new Error(\\\"String of HEX type must be in byte increments\\\");var we=ee||[0],Tt=(te=te||0)>>>3,It=me===-1?3:0;for(Pe=0;Pe<Q.length;Pe+=2){if(_e=parseInt(Q.substr(Pe,2),16),isNaN(_e))throw new Error(\\\"String of HEX type contains invalid characters\\\");for(be=(Ae=(Pe>>>1)+Tt)>>>2;we.length<=be;)we.push(0);we[be]|=_e<<8*(It+me*(Ae%4))}return{value:we,binLen:4*Q.length+te}})(j,H,B,I)};case\\\"TEXT\\\":return function(j,H,B){return(function(Q,ee,te,me,Pe){var _e,be,Ae,we,Tt,It,cn,Mn,xa=0,Kn=te||[0],fr=(me=me||0)>>>3;if(ee===\\\"UTF8\\\")for(cn=Pe===-1?3:0,Ae=0;Ae<Q.length;Ae+=1)for(be=[],128>(_e=Q.charCodeAt(Ae))?be.push(_e):2048>_e?(be.push(192|_e>>>6),be.push(128|63&_e)):55296>_e||57344<=_e?be.push(224|_e>>>12,128|_e>>>6&63,128|63&_e):(Ae+=1,_e=65536+((1023&_e)<<10|1023&Q.charCodeAt(Ae)),be.push(240|_e>>>18,128|_e>>>12&63,128|_e>>>6&63,128|63&_e)),we=0;we<be.length;we+=1){for(Tt=(It=xa+fr)>>>2;Kn.length<=Tt;)Kn.push(0);Kn[Tt]|=be[we]<<8*(cn+Pe*(It%4)),xa+=1}else for(cn=Pe===-1?2:0,Mn=ee===\\\"UTF16LE\\\"&&Pe!==1||ee!==\\\"UTF16LE\\\"&&Pe===1,Ae=0;Ae<Q.length;Ae+=1){for(_e=Q.charCodeAt(Ae),Mn===!0&&(_e=(we=255&_e)<<8|_e>>>8),Tt=(It=xa+fr)>>>2;Kn.length<=Tt;)Kn.push(0);Kn[Tt]|=_e<<8*(cn+Pe*(It%4)),xa+=2}return{value:Kn,binLen:8*xa+me}})(j,S,H,B,I)};case\\\"B64\\\":return function(j,H,B){return(function(Q,ee,te,me){var Pe,_e,be,Ae,we,Tt,It=0,cn=ee||[0],Mn=(te=te||0)>>>3,xa=me===-1?3:0,Kn=Q.indexOf(\\\"=\\\");if(Q.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error(\\\"Invalid character in base-64 string\\\");if(Q=Q.replace(/=/g,\\\"\\\"),Kn!==-1&&Kn<Q.length)throw new Error(\\\"Invalid '=' found in base-64 string\\\");for(Pe=0;Pe<Q.length;Pe+=4){for(Ae=Q.substr(Pe,4),be=0,_e=0;_e<Ae.length;_e+=1)be|=t.indexOf(Ae.charAt(_e))<<18-6*_e;for(_e=0;_e<Ae.length-1;_e+=1){for(we=(Tt=It+Mn)>>>2;cn.length<=we;)cn.push(0);cn[we]|=(be>>>16-8*_e&255)<<8*(xa+me*(Tt%4)),It+=1}}return{value:cn,binLen:8*It+te}})(j,H,B,I)};case\\\"BYTES\\\":return function(j,H,B){return(function(Q,ee,te,me){var Pe,_e,be,Ae,we=ee||[0],Tt=(te=te||0)>>>3,It=me===-1?3:0;for(_e=0;_e<Q.length;_e+=1)Pe=Q.charCodeAt(_e),be=(Ae=_e+Tt)>>>2,we.length<=be&&we.push(0),we[be]|=Pe<<8*(It+me*(Ae%4));return{value:we,binLen:8*Q.length+te}})(j,H,B,I)};case\\\"ARRAYBUFFER\\\":try{new ArrayBuffer(0)}catch{throw new Error(\\\"ARRAYBUFFER not supported by this environment\\\")}return function(j,H,B){return(function(Q,ee,te,me){return e(new Uint8Array(Q),ee,te,me)})(j,H,B,I)};case\\\"UINT8ARRAY\\\":try{new Uint8Array(0)}catch{throw new Error(\\\"UINT8ARRAY not supported by this environment\\\")}return function(j,H,B){return e(j,H,B,I)};default:throw new Error(\\\"format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY\\\")}}function r(D,S,I,j){switch(D){case\\\"HEX\\\":return function(H){return(function(B,Q,ee,te){var me,Pe,_e=\\\"\\\",be=Q/8,Ae=ee===-1?3:0;for(me=0;me<be;me+=1)Pe=B[me>>>2]>>>8*(Ae+ee*(me%4)),_e+=\\\"0123456789abcdef\\\".charAt(Pe>>>4&15)+\\\"0123456789abcdef\\\".charAt(15&Pe);return te.outputUpper?_e.toUpperCase():_e})(H,S,I,j)};case\\\"B64\\\":return function(H){return(function(B,Q,ee,te){var me,Pe,_e,be,Ae,we=\\\"\\\",Tt=Q/8,It=ee===-1?3:0;for(me=0;me<Tt;me+=3)for(be=me+1<Tt?B[me+1>>>2]:0,Ae=me+2<Tt?B[me+2>>>2]:0,_e=(B[me>>>2]>>>8*(It+ee*(me%4))&255)<<16|(be>>>8*(It+ee*((me+1)%4))&255)<<8|Ae>>>8*(It+ee*((me+2)%4))&255,Pe=0;Pe<4;Pe+=1)we+=8*me+6*Pe<=Q?t.charAt(_e>>>6*(3-Pe)&63):te.b64Pad;return we})(H,S,I,j)};case\\\"BYTES\\\":return function(H){return(function(B,Q,ee){var te,me,Pe=\\\"\\\",_e=Q/8,be=ee===-1?3:0;for(te=0;te<_e;te+=1)me=B[te>>>2]>>>8*(be+ee*(te%4))&255,Pe+=String.fromCharCode(me);return Pe})(H,S,I)};case\\\"ARRAYBUFFER\\\":try{new ArrayBuffer(0)}catch{throw new Error(\\\"ARRAYBUFFER not supported by this environment\\\")}return function(H){return(function(B,Q,ee){var te,me=Q/8,Pe=new ArrayBuffer(me),_e=new Uint8Array(Pe),be=ee===-1?3:0;for(te=0;te<me;te+=1)_e[te]=B[te>>>2]>>>8*(be+ee*(te%4))&255;return Pe})(H,S,I)};case\\\"UINT8ARRAY\\\":try{new Uint8Array(0)}catch{throw new Error(\\\"UINT8ARRAY not supported by this environment\\\")}return function(H){return(function(B,Q,ee){var te,me=Q/8,Pe=ee===-1?3:0,_e=new Uint8Array(me);for(te=0;te<me;te+=1)_e[te]=B[te>>>2]>>>8*(Pe+ee*(te%4))&255;return _e})(H,S,I)};default:throw new Error(\\\"format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY\\\")}}var i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],o=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=\\\"Chosen SHA variant is not supported\\\";function l(D,S){var I,j,H=D.binLen>>>3,B=S.binLen>>>3,Q=H<<3,ee=4-H<<3;if(H%4!=0){for(I=0;I<B;I+=4)j=H+I>>>2,D.value[j]|=S.value[I>>>2]<<Q,D.value.push(0),D.value[j+1]|=S.value[I>>>2]>>>ee;return(D.value.length<<2)-4>=B+H&&D.value.pop(),{value:D.value,binLen:D.binLen+S.binLen}}return{value:D.value.concat(S.value),binLen:D.binLen+S.binLen}}function c(D){var S={outputUpper:!1,b64Pad:\\\"=\\\",outputLen:-1},I=D||{},j=\\\"Output length must be a multiple of 8\\\";if(S.outputUpper=I.outputUpper||!1,I.b64Pad&&(S.b64Pad=I.b64Pad),I.outputLen){if(I.outputLen%8!=0)throw new Error(j);S.outputLen=I.outputLen}else if(I.shakeLen){if(I.shakeLen%8!=0)throw new Error(j);S.outputLen=I.shakeLen}if(typeof S.outputUpper!=\\\"boolean\\\")throw new Error(\\\"Invalid outputUpper formatting option\\\");if(typeof S.b64Pad!=\\\"string\\\")throw new Error(\\\"Invalid b64Pad formatting option\\\");return S}function u(D,S,I,j){var H=D+\\\" must include a value and format\\\";if(!S){if(!j)throw new Error(H);return j}if(S.value===void 0||!S.format)throw new Error(H);return n(S.format,S.encoding||\\\"UTF8\\\",I)(S.value)}var d=(function(){function D(S,I,j){var H=j||{};if(this.t=I,this.i=H.encoding||\\\"UTF8\\\",this.numRounds=H.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error(\\\"numRounds must a integer >= 1\\\");this.o=S,this.u=[],this.s=0,this.h=!1,this.v=0,this.A=!1,this.l=[],this.H=[]}return D.prototype.update=function(S){var I,j=0,H=this.S>>>5,B=this.p(S,this.u,this.s),Q=B.binLen,ee=B.value,te=Q>>>5;for(I=0;I<te;I+=H)j+this.S<=Q&&(this.m=this.R(ee.slice(I,I+H),this.m),j+=this.S);this.v+=j,this.u=ee.slice(j>>>5),this.s=Q%this.S,this.h=!0},D.prototype.getHash=function(S,I){var j,H,B=this.U,Q=c(I);if(this.T){if(Q.outputLen===-1)throw new Error(\\\"Output length must be specified in options\\\");B=Q.outputLen}var ee=r(S,B,this.C,Q);if(this.A&&this.F)return ee(this.F(Q));for(H=this.K(this.u.slice(),this.s,this.v,this.B(this.m),B),j=1;j<this.numRounds;j+=1)this.T&&B%32!=0&&(H[H.length-1]&=16777215>>>24-B%32),H=this.K(H,B,0,this.L(this.o),B);return ee(H)},D.prototype.setHMACKey=function(S,I,j){if(!this.g)throw new Error(\\\"Variant does not support HMAC\\\");if(this.h)throw new Error(\\\"Cannot set MAC key after calling update\\\");var H=n(I,(j||{}).encoding||\\\"UTF8\\\",this.C);this.k(H(S))},D.prototype.k=function(S){var I,j=this.S>>>3,H=j/4-1;if(this.numRounds!==1)throw new Error(\\\"Cannot set numRounds with MAC\\\");if(this.A)throw new Error(\\\"MAC key already set\\\");for(j<S.binLen/8&&(S.value=this.K(S.value,S.binLen,0,this.L(this.o),this.U));S.value.length<=H;)S.value.push(0);for(I=0;I<=H;I+=1)this.l[I]=909522486^S.value[I],this.H[I]=1549556828^S.value[I];this.m=this.R(this.l,this.m),this.v=this.S,this.A=!0},D.prototype.getHMAC=function(S,I){var j=c(I);return r(S,this.U,this.C,j)(this.Y())},D.prototype.Y=function(){var S;if(!this.A)throw new Error(\\\"Cannot call getHMAC without first setting MAC key\\\");var I=this.K(this.u.slice(),this.s,this.v,this.B(this.m),this.U);return S=this.R(this.H,this.L(this.o)),S=this.K(I,this.U,this.S,S,this.U)},D})(),h=function(D,S){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,j){I.__proto__=j}||function(I,j){for(var H in j)Object.prototype.hasOwnProperty.call(j,H)&&(I[H]=j[H])})(D,S)};function g(D,S){function I(){this.constructor=D}h(D,S),D.prototype=S===null?Object.create(S):(I.prototype=S.prototype,new I)}function y(D,S){return D<<S|D>>>32-S}function E(D,S){return D>>>S|D<<32-S}function N(D,S){return D>>>S}function _(D,S,I){return D^S^I}function v(D,S,I){return D&S^~D&I}function T(D,S,I){return D&S^D&I^S&I}function R(D){return E(D,2)^E(D,13)^E(D,22)}function U(D,S){var I=(65535&D)+(65535&S);return(65535&(D>>>16)+(S>>>16)+(I>>>16))<<16|65535&I}function X(D,S,I,j){var H=(65535&D)+(65535&S)+(65535&I)+(65535&j);return(65535&(D>>>16)+(S>>>16)+(I>>>16)+(j>>>16)+(H>>>16))<<16|65535&H}function k(D,S,I,j,H){var B=(65535&D)+(65535&S)+(65535&I)+(65535&j)+(65535&H);return(65535&(D>>>16)+(S>>>16)+(I>>>16)+(j>>>16)+(H>>>16)+(B>>>16))<<16|65535&B}function q(D){return E(D,7)^E(D,18)^N(D,3)}function z(D){return E(D,6)^E(D,11)^E(D,25)}function $(D){return[1732584193,4023233417,2562383102,271733878,3285377520]}function L(D,S){var I,j,H,B,Q,ee,te,me=[];for(I=S[0],j=S[1],H=S[2],B=S[3],Q=S[4],te=0;te<80;te+=1)me[te]=te<16?D[te]:y(me[te-3]^me[te-8]^me[te-14]^me[te-16],1),ee=te<20?k(y(I,5),v(j,H,B),Q,1518500249,me[te]):te<40?k(y(I,5),_(j,H,B),Q,1859775393,me[te]):te<60?k(y(I,5),T(j,H,B),Q,2400959708,me[te]):k(y(I,5),_(j,H,B),Q,3395469782,me[te]),Q=B,B=H,H=y(j,30),j=I,I=ee;return S[0]=U(I,S[0]),S[1]=U(j,S[1]),S[2]=U(H,S[2]),S[3]=U(B,S[3]),S[4]=U(Q,S[4]),S}function P(D,S,I,j){for(var H,B=15+(S+65>>>9<<4),Q=S+I;D.length<=B;)D.push(0);for(D[S>>>5]|=128<<24-S%32,D[B]=4294967295&Q,D[B-1]=Q/4294967296|0,H=0;H<D.length;H+=16)j=L(D.slice(H,H+16),j);return j}var pe=(function(D){function S(I,j,H){var B=this;if(I!==\\\"SHA-1\\\")throw new Error(s);var Q=H||{};return(B=D.call(this,I,j,H)||this).g=!0,B.F=B.Y,B.C=-1,B.p=n(B.t,B.i,B.C),B.R=L,B.B=function(ee){return ee.slice()},B.L=$,B.K=P,B.m=[1732584193,4023233417,2562383102,271733878,3285377520],B.S=512,B.U=160,B.T=!1,Q.hmacKey&&B.k(u(\\\"hmacKey\\\",Q.hmacKey,B.C)),B}return g(S,D),S})(d);function le(D){return D==\\\"SHA-224\\\"?a.slice():o.slice()}function se(D,S){var I,j,H,B,Q,ee,te,me,Pe,_e,be,Ae,we=[];for(I=S[0],j=S[1],H=S[2],B=S[3],Q=S[4],ee=S[5],te=S[6],me=S[7],be=0;be<64;be+=1)we[be]=be<16?D[be]:X(E(Ae=we[be-2],17)^E(Ae,19)^N(Ae,10),we[be-7],q(we[be-15]),we[be-16]),Pe=k(me,z(Q),v(Q,ee,te),i[be],we[be]),_e=U(R(I),T(I,j,H)),me=te,te=ee,ee=Q,Q=U(B,Pe),B=H,H=j,j=I,I=U(Pe,_e);return S[0]=U(I,S[0]),S[1]=U(j,S[1]),S[2]=U(H,S[2]),S[3]=U(B,S[3]),S[4]=U(Q,S[4]),S[5]=U(ee,S[5]),S[6]=U(te,S[6]),S[7]=U(me,S[7]),S}var Le=(function(D){function S(I,j,H){var B=this;if(I!==\\\"SHA-224\\\"&&I!==\\\"SHA-256\\\")throw new Error(s);var Q=H||{};return(B=D.call(this,I,j,H)||this).F=B.Y,B.g=!0,B.C=-1,B.p=n(B.t,B.i,B.C),B.R=se,B.B=function(ee){return ee.slice()},B.L=le,B.K=function(ee,te,me,Pe){return(function(_e,be,Ae,we,Tt){for(var It,cn=15+(be+65>>>9<<4),Mn=be+Ae;_e.length<=cn;)_e.push(0);for(_e[be>>>5]|=128<<24-be%32,_e[cn]=4294967295&Mn,_e[cn-1]=Mn/4294967296|0,It=0;It<_e.length;It+=16)we=se(_e.slice(It,It+16),we);return Tt===\\\"SHA-224\\\"?[we[0],we[1],we[2],we[3],we[4],we[5],we[6]]:we})(ee,te,me,Pe,I)},B.m=le(I),B.S=512,B.U=I===\\\"SHA-224\\\"?224:256,B.T=!1,Q.hmacKey&&B.k(u(\\\"hmacKey\\\",Q.hmacKey,B.C)),B}return g(S,D),S})(d),O=function(D,S){this.N=D,this.I=S};function Ze(D,S){var I;return S>32?(I=64-S,new O(D.I<<S|D.N>>>I,D.N<<S|D.I>>>I)):S!==0?(I=32-S,new O(D.N<<S|D.I>>>I,D.I<<S|D.N>>>I)):D}function rt(D,S){var I;return S<32?(I=32-S,new O(D.N>>>S|D.I<<I,D.I>>>S|D.N<<I)):(I=64-S,new O(D.I>>>S|D.N<<I,D.N>>>S|D.I<<I))}function St(D,S){return new O(D.N>>>S,D.I>>>S|D.N<<32-S)}function Xt(D,S,I){return new O(D.N&S.N^~D.N&I.N,D.I&S.I^~D.I&I.I)}function Jt(D,S,I){return new O(D.N&S.N^D.N&I.N^S.N&I.N,D.I&S.I^D.I&I.I^S.I&I.I)}function pn(D){var S=rt(D,28),I=rt(D,34),j=rt(D,39);return new O(S.N^I.N^j.N,S.I^I.I^j.I)}function He(D,S){var I,j;I=(65535&D.I)+(65535&S.I);var H=(65535&(j=(D.I>>>16)+(S.I>>>16)+(I>>>16)))<<16|65535&I;return I=(65535&D.N)+(65535&S.N)+(j>>>16),j=(D.N>>>16)+(S.N>>>16)+(I>>>16),new O((65535&j)<<16|65535&I,H)}function Fn(D,S,I,j){var H,B;H=(65535&D.I)+(65535&S.I)+(65535&I.I)+(65535&j.I);var Q=(65535&(B=(D.I>>>16)+(S.I>>>16)+(I.I>>>16)+(j.I>>>16)+(H>>>16)))<<16|65535&H;return H=(65535&D.N)+(65535&S.N)+(65535&I.N)+(65535&j.N)+(B>>>16),B=(D.N>>>16)+(S.N>>>16)+(I.N>>>16)+(j.N>>>16)+(H>>>16),new O((65535&B)<<16|65535&H,Q)}function Cr(D,S,I,j,H){var B,Q;B=(65535&D.I)+(65535&S.I)+(65535&I.I)+(65535&j.I)+(65535&H.I);var ee=(65535&(Q=(D.I>>>16)+(S.I>>>16)+(I.I>>>16)+(j.I>>>16)+(H.I>>>16)+(B>>>16)))<<16|65535&B;return B=(65535&D.N)+(65535&S.N)+(65535&I.N)+(65535&j.N)+(65535&H.N)+(Q>>>16),Q=(D.N>>>16)+(S.N>>>16)+(I.N>>>16)+(j.N>>>16)+(H.N>>>16)+(B>>>16),new O((65535&Q)<<16|65535&B,ee)}function Ei(D,S){return new O(D.N^S.N,D.I^S.I)}function oe(D){var S=rt(D,1),I=rt(D,8),j=St(D,7);return new O(S.N^I.N^j.N,S.I^I.I^j.I)}function ce(D){var S=rt(D,14),I=rt(D,18),j=rt(D,41);return new O(S.N^I.N^j.N,S.I^I.I^j.I)}var ie=[new O(i[0],3609767458),new O(i[1],602891725),new O(i[2],3964484399),new O(i[3],2173295548),new O(i[4],4081628472),new O(i[5],3053834265),new O(i[6],2937671579),new O(i[7],3664609560),new O(i[8],2734883394),new O(i[9],1164996542),new O(i[10],1323610764),new O(i[11],3590304994),new O(i[12],4068182383),new O(i[13],991336113),new O(i[14],633803317),new O(i[15],3479774868),new O(i[16],2666613458),new O(i[17],944711139),new O(i[18],2341262773),new O(i[19],2007800933),new O(i[20],1495990901),new O(i[21],1856431235),new O(i[22],3175218132),new O(i[23],2198950837),new O(i[24],3999719339),new O(i[25],766784016),new O(i[26],2566594879),new O(i[27],3203337956),new O(i[28],1034457026),new O(i[29],2466948901),new O(i[30],3758326383),new O(i[31],168717936),new O(i[32],1188179964),new O(i[33],1546045734),new O(i[34],1522805485),new O(i[35],2643833823),new O(i[36],2343527390),new O(i[37],1014477480),new O(i[38],1206759142),new O(i[39],344077627),new O(i[40],1290863460),new O(i[41],3158454273),new O(i[42],3505952657),new O(i[43],106217008),new O(i[44],3606008344),new O(i[45],1432725776),new O(i[46],1467031594),new O(i[47],851169720),new O(i[48],3100823752),new O(i[49],1363258195),new O(i[50],3750685593),new O(i[51],3785050280),new O(i[52],3318307427),new O(i[53],3812723403),new O(i[54],2003034995),new O(i[55],3602036899),new O(i[56],1575990012),new O(i[57],1125592928),new O(i[58],2716904306),new O(i[59],442776044),new O(i[60],593698344),new O(i[61],3733110249),new O(i[62],2999351573),new O(i[63],3815920427),new O(3391569614,3928383900),new O(3515267271,566280711),new O(3940187606,3454069534),new O(4118630271,4000239992),new O(116418474,1914138554),new O(174292421,2731055270),new O(289380356,3203993006),new O(460393269,320620315),new O(685471733,587496836),new O(852142971,1086792851),new O(1017036298,365543100),new O(1126000580,2618297676),new O(1288033470,3409855158),new O(1501505948,4234509866),new O(1607167915,987167468),new O(1816402316,1246189591)];function ue(D){return D===\\\"SHA-384\\\"?[new O(3418070365,a[0]),new O(1654270250,a[1]),new O(2438529370,a[2]),new O(355462360,a[3]),new O(1731405415,a[4]),new O(41048885895,a[5]),new O(3675008525,a[6]),new O(1203062813,a[7])]:[new O(o[0],4089235720),new O(o[1],2227873595),new O(o[2],4271175723),new O(o[3],1595750129),new O(o[4],2917565137),new O(o[5],725511199),new O(o[6],4215389547),new O(o[7],327033209)]}function ye(D,S){var I,j,H,B,Q,ee,te,me,Pe,_e,be,Ae,we,Tt,It,cn,Mn=[];for(I=S[0],j=S[1],H=S[2],B=S[3],Q=S[4],ee=S[5],te=S[6],me=S[7],be=0;be<80;be+=1)be<16?(Ae=2*be,Mn[be]=new O(D[Ae],D[Ae+1])):Mn[be]=Fn((we=Mn[be-2],Tt=void 0,It=void 0,cn=void 0,Tt=rt(we,19),It=rt(we,61),cn=St(we,6),new O(Tt.N^It.N^cn.N,Tt.I^It.I^cn.I)),Mn[be-7],oe(Mn[be-15]),Mn[be-16]),Pe=Cr(me,ce(Q),Xt(Q,ee,te),ie[be],Mn[be]),_e=He(pn(I),Jt(I,j,H)),me=te,te=ee,ee=Q,Q=He(B,Pe),B=H,H=j,j=I,I=He(Pe,_e);return S[0]=He(I,S[0]),S[1]=He(j,S[1]),S[2]=He(H,S[2]),S[3]=He(B,S[3]),S[4]=He(Q,S[4]),S[5]=He(ee,S[5]),S[6]=He(te,S[6]),S[7]=He(me,S[7]),S}var Ue=(function(D){function S(I,j,H){var B=this;if(I!==\\\"SHA-384\\\"&&I!==\\\"SHA-512\\\")throw new Error(s);var Q=H||{};return(B=D.call(this,I,j,H)||this).F=B.Y,B.g=!0,B.C=-1,B.p=n(B.t,B.i,B.C),B.R=ye,B.B=function(ee){return ee.slice()},B.L=ue,B.K=function(ee,te,me,Pe){return(function(_e,be,Ae,we,Tt){for(var It,cn=31+(be+129>>>10<<5),Mn=be+Ae;_e.length<=cn;)_e.push(0);for(_e[be>>>5]|=128<<24-be%32,_e[cn]=4294967295&Mn,_e[cn-1]=Mn/4294967296|0,It=0;It<_e.length;It+=32)we=ye(_e.slice(It,It+32),we);return Tt===\\\"SHA-384\\\"?[(we=we)[0].N,we[0].I,we[1].N,we[1].I,we[2].N,we[2].I,we[3].N,we[3].I,we[4].N,we[4].I,we[5].N,we[5].I]:[we[0].N,we[0].I,we[1].N,we[1].I,we[2].N,we[2].I,we[3].N,we[3].I,we[4].N,we[4].I,we[5].N,we[5].I,we[6].N,we[6].I,we[7].N,we[7].I]})(ee,te,me,Pe,I)},B.m=ue(I),B.S=1024,B.U=I===\\\"SHA-384\\\"?384:512,B.T=!1,Q.hmacKey&&B.k(u(\\\"hmacKey\\\",Q.hmacKey,B.C)),B}return g(S,D),S})(d),it=[new O(0,1),new O(0,32898),new O(2147483648,32906),new O(2147483648,2147516416),new O(0,32907),new O(0,2147483649),new O(2147483648,2147516545),new O(2147483648,32777),new O(0,138),new O(0,136),new O(0,2147516425),new O(0,2147483658),new O(0,2147516555),new O(2147483648,139),new O(2147483648,32905),new O(2147483648,32771),new O(2147483648,32770),new O(2147483648,128),new O(0,32778),new O(2147483648,2147483658),new O(2147483648,2147516545),new O(2147483648,32896),new O(0,2147483649),new O(2147483648,2147516424)],tt=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Ht(D){var S,I=[];for(S=0;S<5;S+=1)I[S]=[new O(0,0),new O(0,0),new O(0,0),new O(0,0),new O(0,0)];return I}function Sn(D){var S,I=[];for(S=0;S<5;S+=1)I[S]=D[S].slice();return I}function $e(D,S){var I,j,H,B,Q,ee,te,me,Pe,_e=[],be=[];if(D!==null)for(j=0;j<D.length;j+=2)S[(j>>>1)%5][(j>>>1)/5|0]=Ei(S[(j>>>1)%5][(j>>>1)/5|0],new O(D[j+1],D[j]));for(I=0;I<24;I+=1){for(B=Ht(),j=0;j<5;j+=1)_e[j]=(Q=S[j][0],ee=S[j][1],te=S[j][2],me=S[j][3],Pe=S[j][4],new O(Q.N^ee.N^te.N^me.N^Pe.N,Q.I^ee.I^te.I^me.I^Pe.I));for(j=0;j<5;j+=1)be[j]=Ei(_e[(j+4)%5],Ze(_e[(j+1)%5],1));for(j=0;j<5;j+=1)for(H=0;H<5;H+=1)S[j][H]=Ei(S[j][H],be[j]);for(j=0;j<5;j+=1)for(H=0;H<5;H+=1)B[H][(2*j+3*H)%5]=Ze(S[j][H],tt[j][H]);for(j=0;j<5;j+=1)for(H=0;H<5;H+=1)S[j][H]=Ei(B[j][H],new O(~B[(j+1)%5][H].N&B[(j+2)%5][H].N,~B[(j+1)%5][H].I&B[(j+2)%5][H].I));S[0][0]=Ei(S[0][0],it[I])}return S}function Yn(D){var S,I,j=0,H=[0,0],B=[4294967295&D,D/4294967296&2097151];for(S=6;S>=0;S--)(I=B[S>>2]>>>8*S&255)===0&&j===0||(H[j+1>>2]|=I<<8*(j+1),j+=1);return j=j!==0?j:1,H[0]|=j,{value:j+1>4?H:[H[0]],binLen:8+8*j}}function $n(D){return l(Yn(D.binLen),D)}function Hr(D,S){var I,j=Yn(S),H=S>>>2,B=(H-(j=l(j,D)).value.length%H)%H;for(I=0;I<B;I++)j.value.push(0);return j.value}var ii=(function(D){function S(I,j,H){var B=this,Q=6,ee=0,te=H||{};if((B=D.call(this,I,j,H)||this).numRounds!==1){if(te.kmacKey||te.hmacKey)throw new Error(\\\"Cannot set numRounds with MAC\\\");if(B.o===\\\"CSHAKE128\\\"||B.o===\\\"CSHAKE256\\\")throw new Error(\\\"Cannot set numRounds for CSHAKE variants\\\")}switch(B.C=1,B.p=n(B.t,B.i,B.C),B.R=$e,B.B=Sn,B.L=Ht,B.m=Ht(),B.T=!1,I){case\\\"SHA3-224\\\":B.S=ee=1152,B.U=224,B.g=!0,B.F=B.Y;break;case\\\"SHA3-256\\\":B.S=ee=1088,B.U=256,B.g=!0,B.F=B.Y;break;case\\\"SHA3-384\\\":B.S=ee=832,B.U=384,B.g=!0,B.F=B.Y;break;case\\\"SHA3-512\\\":B.S=ee=576,B.U=512,B.g=!0,B.F=B.Y;break;case\\\"SHAKE128\\\":Q=31,B.S=ee=1344,B.U=-1,B.T=!0,B.g=!1,B.F=null;break;case\\\"SHAKE256\\\":Q=31,B.S=ee=1088,B.U=-1,B.T=!0,B.g=!1,B.F=null;break;case\\\"KMAC128\\\":Q=4,B.S=ee=1344,B.M(H),B.U=-1,B.T=!0,B.g=!1,B.F=B.X;break;case\\\"KMAC256\\\":Q=4,B.S=ee=1088,B.M(H),B.U=-1,B.T=!0,B.g=!1,B.F=B.X;break;case\\\"CSHAKE128\\\":B.S=ee=1344,Q=B.O(H),B.U=-1,B.T=!0,B.g=!1,B.F=null;break;case\\\"CSHAKE256\\\":B.S=ee=1088,Q=B.O(H),B.U=-1,B.T=!0,B.g=!1,B.F=null;break;default:throw new Error(s)}return B.K=function(me,Pe,_e,be,Ae){return(function(we,Tt,It,cn,Mn,xa,Kn){var fr,ja,Ss=0,xo=[],zl=Mn>>>5,uv=Tt>>>5;for(fr=0;fr<uv&&Tt>=Mn;fr+=zl)cn=$e(we.slice(fr,fr+zl),cn),Tt-=Mn;for(we=we.slice(fr),Tt%=Mn;we.length<zl;)we.push(0);for(we[(fr=Tt>>>3)>>2]^=xa<<fr%4*8,we[zl-1]^=2147483648,cn=$e(we,cn);32*xo.length<Kn&&(ja=cn[Ss%5][Ss/5|0],xo.push(ja.I),!(32*xo.length>=Kn));)xo.push(ja.N),64*(Ss+=1)%Mn==0&&($e(null,cn),Ss=0);return xo})(me,Pe,0,be,ee,Q,Ae)},te.hmacKey&&B.k(u(\\\"hmacKey\\\",te.hmacKey,B.C)),B}return g(S,D),S.prototype.O=function(I,j){var H=(function(te){var me=te||{};return{funcName:u(\\\"funcName\\\",me.funcName,1,{value:[],binLen:0}),customization:u(\\\"Customization\\\",me.customization,1,{value:[],binLen:0})}})(I||{});j&&(H.funcName=j);var B=l($n(H.funcName),$n(H.customization));if(H.customization.binLen!==0||H.funcName.binLen!==0){for(var Q=Hr(B,this.S>>>3),ee=0;ee<Q.length;ee+=this.S>>>5)this.m=this.R(Q.slice(ee,ee+(this.S>>>5)),this.m),this.v+=this.S;return 4}return 31},S.prototype.M=function(I){var j=(function(Q){var ee=Q||{};return{kmacKey:u(\\\"kmacKey\\\",ee.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:u(\\\"Customization\\\",ee.customization,1,{value:[],binLen:0})}})(I||{});this.O(I,j.funcName);for(var H=Hr($n(j.kmacKey),this.S>>>3),B=0;B<H.length;B+=this.S>>>5)this.m=this.R(H.slice(B,B+(this.S>>>5)),this.m),this.v+=this.S;this.A=!0},S.prototype.X=function(I){var j=l({value:this.u.slice(),binLen:this.s},(function(H){var B,Q,ee=0,te=[0,0],me=[4294967295&H,H/4294967296&2097151];for(B=6;B>=0;B--)(Q=me[B>>2]>>>8*B&255)==0&&ee===0||(te[ee>>2]|=Q<<8*ee,ee+=1);return te[(ee=ee!==0?ee:1)>>2]|=ee<<8*ee,{value:ee+1>4?te:[te[0]],binLen:8+8*ee}})(I.outputLen));return this.K(j.value,j.binLen,this.v,this.B(this.m),I.outputLen)},S})(d);return(function(){function D(S,I,j){if(S==\\\"SHA-1\\\")this.j=new pe(S,I,j);else if(S==\\\"SHA-224\\\"||S==\\\"SHA-256\\\")this.j=new Le(S,I,j);else if(S==\\\"SHA-384\\\"||S==\\\"SHA-512\\\")this.j=new Ue(S,I,j);else{if(S!=\\\"SHA3-224\\\"&&S!=\\\"SHA3-256\\\"&&S!=\\\"SHA3-384\\\"&&S!=\\\"SHA3-512\\\"&&S!=\\\"SHAKE128\\\"&&S!=\\\"SHAKE256\\\"&&S!=\\\"CSHAKE128\\\"&&S!=\\\"CSHAKE256\\\"&&S!=\\\"KMAC128\\\"&&S!=\\\"KMAC256\\\")throw new Error(s);this.j=new ii(S,I,j)}}return D.prototype.update=function(S){this.j.update(S)},D.prototype.getHash=function(S,I){return this.j.getHash(S,I)},D.prototype.setHMACKey=function(S,I,j){this.j.setHMACKey(S,I,j)},D.prototype.getHMAC=function(S,I){return this.j.getHMAC(S,I)},D})()}))});var _T=V(Td=>{\\\"use strict\\\";b();Object.defineProperty(Td,\\\"__esModule\\\",{value:!0});Td.getSecureRandomWords=Td.getSecureRandomBytes=void 0;function pL(t){return globalThis.Buffer.from(window.crypto.getRandomValues(new Uint8Array(t)))}Td.getSecureRandomBytes=pL;function mL(t){return window.crypto.getRandomValues(new Uint16Array(t))}Td.getSecureRandomWords=mL});var CT=V(Ym=>{\\\"use strict\\\";b();Object.defineProperty(Ym,\\\"__esModule\\\",{value:!0});Ym.hmac_sha512=void 0;async function yL(t,e){let n=typeof t==\\\"string\\\"?globalThis.Buffer.from(t,\\\"utf-8\\\"):t,r=typeof e==\\\"string\\\"?globalThis.Buffer.from(e,\\\"utf-8\\\"):e,i={name:\\\"HMAC\\\",hash:\\\"SHA-512\\\"},a=await window.crypto.subtle.importKey(\\\"raw\\\",n,i,!1,[\\\"sign\\\"]);return globalThis.Buffer.from(await crypto.subtle.sign(i,a,r))}Ym.hmac_sha512=yL});var ST=V(Gm=>{\\\"use strict\\\";b();Object.defineProperty(Gm,\\\"__esModule\\\",{value:!0});Gm.pbkdf2_sha512=void 0;async function bL(t,e,n,r){let i=typeof t==\\\"string\\\"?globalThis.Buffer.from(t,\\\"utf-8\\\"):t,a=typeof e==\\\"string\\\"?globalThis.Buffer.from(e,\\\"utf-8\\\"):e,o=await window.crypto.subtle.importKey(\\\"raw\\\",i,{name:\\\"PBKDF2\\\"},!1,[\\\"deriveBits\\\"]),s=await window.crypto.subtle.deriveBits({name:\\\"PBKDF2\\\",hash:\\\"SHA-512\\\",salt:a,iterations:n},o,r*8);return globalThis.Buffer.from(s)}Gm.pbkdf2_sha512=bL});var TT=V(Qm=>{\\\"use strict\\\";b();Object.defineProperty(Qm,\\\"__esModule\\\",{value:!0});Qm.sha256=void 0;async function vL(t){return typeof t==\\\"string\\\"?globalThis.Buffer.from(await crypto.subtle.digest(\\\"SHA-256\\\",globalThis.Buffer.from(t,\\\"utf-8\\\"))):globalThis.Buffer.from(await crypto.subtle.digest(\\\"SHA-256\\\",t))}Qm.sha256=vL});var ET=V(Xm=>{\\\"use strict\\\";b();Object.defineProperty(Xm,\\\"__esModule\\\",{value:!0});Xm.sha512=void 0;async function wL(t){return typeof t==\\\"string\\\"?globalThis.Buffer.from(await crypto.subtle.digest(\\\"SHA-512\\\",globalThis.Buffer.from(t,\\\"utf-8\\\"))):globalThis.Buffer.from(await crypto.subtle.digest(\\\"SHA-512\\\",t))}Xm.sha512=wL});var Ed=V(gi=>{\\\"use strict\\\";b();Object.defineProperty(gi,\\\"__esModule\\\",{value:!0});gi.sha512=gi.sha256=gi.pbkdf2_sha512=gi.hmac_sha512=gi.getSecureRandomWords=gi.getSecureRandomBytes=void 0;var AT=_T();Object.defineProperty(gi,\\\"getSecureRandomBytes\\\",{enumerable:!0,get:function(){return AT.getSecureRandomBytes}});Object.defineProperty(gi,\\\"getSecureRandomWords\\\",{enumerable:!0,get:function(){return AT.getSecureRandomWords}});var xL=CT();Object.defineProperty(gi,\\\"hmac_sha512\\\",{enumerable:!0,get:function(){return xL.hmac_sha512}});var _L=ST();Object.defineProperty(gi,\\\"pbkdf2_sha512\\\",{enumerable:!0,get:function(){return _L.pbkdf2_sha512}});var CL=TT();Object.defineProperty(gi,\\\"sha256\\\",{enumerable:!0,get:function(){return CL.sha256}});var SL=ET();Object.defineProperty(gi,\\\"sha512\\\",{enumerable:!0,get:function(){return SL.sha512}})});var BT=V(Ka=>{\\\"use strict\\\";b();var TL=Ka&&Ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ka,\\\"__esModule\\\",{value:!0});Ka.sha256=Ka.sha256_fallback=Ka.sha256_sync=void 0;var EL=TL(Zm()),AL=Ed();function kT(t){let e;typeof t==\\\"string\\\"?e=globalThis.Buffer.from(t,\\\"utf-8\\\").toString(\\\"hex\\\"):e=t.toString(\\\"hex\\\");let n=new EL.default(\\\"SHA-256\\\",\\\"HEX\\\");n.update(e);let r=n.getHash(\\\"HEX\\\");return globalThis.Buffer.from(r,\\\"hex\\\")}Ka.sha256_sync=kT;async function kL(t){return kT(t)}Ka.sha256_fallback=kL;function BL(t){return(0,AL.sha256)(t)}Ka.sha256=BL});var RT=V(Za=>{\\\"use strict\\\";b();var ML=Za&&Za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,\\\"__esModule\\\",{value:!0});Za.sha512=Za.sha512_fallback=Za.sha512_sync=void 0;var RL=ML(Zm()),OL=Ed();function MT(t){let e;typeof t==\\\"string\\\"?e=globalThis.Buffer.from(t,\\\"utf-8\\\").toString(\\\"hex\\\"):e=t.toString(\\\"hex\\\");let n=new RL.default(\\\"SHA-512\\\",\\\"HEX\\\");n.update(e);let r=n.getHash(\\\"HEX\\\");return globalThis.Buffer.from(r,\\\"hex\\\")}Za.sha512_sync=MT;async function IL(t){return MT(t)}Za.sha512_fallback=IL;async function UL(t){return(0,OL.sha512)(t)}Za.sha512=UL});var M5=V(Jm=>{\\\"use strict\\\";b();Object.defineProperty(Jm,\\\"__esModule\\\",{value:!0});Jm.pbkdf2_sha512=void 0;var NL=Ed();function PL(t,e,n,r){return(0,NL.pbkdf2_sha512)(t,e,n,r)}Jm.pbkdf2_sha512=PL});var Ad=V(rl=>{\\\"use strict\\\";b();var jL=rl&&rl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rl,\\\"__esModule\\\",{value:!0});rl.hmac_sha512=rl.hmac_sha512_fallback=void 0;var zL=jL(Zm()),DL=Ed();async function LL(t,e){let n=typeof t==\\\"string\\\"?globalThis.Buffer.from(t,\\\"utf-8\\\"):t,r=typeof e==\\\"string\\\"?globalThis.Buffer.from(e,\\\"utf-8\\\"):e,i=new zL.default(\\\"SHA-512\\\",\\\"HEX\\\",{hmacKey:{value:n.toString(\\\"hex\\\"),format:\\\"HEX\\\"}});i.update(r.toString(\\\"hex\\\"));let a=i.getHash(\\\"HEX\\\");return globalThis.Buffer.from(a,\\\"hex\\\")}rl.hmac_sha512_fallback=LL;function qL(t,e){return(0,DL.hmac_sha512)(t,e)}rl.hmac_sha512=qL});var e1=V(il=>{\\\"use strict\\\";b();Object.defineProperty(il,\\\"__esModule\\\",{value:!0});il.getSecureRandomNumber=il.getSecureRandomWords=il.getSecureRandomBytes=void 0;var VL=Ed();async function OT(t){return(0,VL.getSecureRandomBytes)(t)}il.getSecureRandomBytes=OT;async function IT(t){return IT(t)}il.getSecureRandomWords=IT;async function HL(t,e){let n=e-t;var r=Math.ceil(Math.log2(n));if(r>53)throw new Error(\\\"Range is too large\\\");for(var i=Math.ceil(r/8),a=Math.pow(2,r)-1;;){let s=await OT(r),l=(i-1)*8,c=0;for(var o=0;o<i;o++)c+=s[o]*Math.pow(2,l),l-=8;if(c=c&a,!(c>=n))return t+c}}il.getSecureRandomNumber=HL});var UT=V(t1=>{\\\"use strict\\\";b();Object.defineProperty(t1,\\\"__esModule\\\",{value:!0});t1.wordlist=void 0;t1.wordlist=[\\\"abacus\\\",\\\"abdomen\\\",\\\"abdominal\\\",\\\"abide\\\",\\\"abiding\\\",\\\"ability\\\",\\\"ablaze\\\",\\\"able\\\",\\\"abnormal\\\",\\\"abrasion\\\",\\\"abrasive\\\",\\\"abreast\\\",\\\"abridge\\\",\\\"abroad\\\",\\\"abruptly\\\",\\\"absence\\\",\\\"absentee\\\",\\\"absently\\\",\\\"absinthe\\\",\\\"absolute\\\",\\\"absolve\\\",\\\"abstain\\\",\\\"abstract\\\",\\\"absurd\\\",\\\"accent\\\",\\\"acclaim\\\",\\\"acclimate\\\",\\\"accompany\\\",\\\"account\\\",\\\"accuracy\\\",\\\"accurate\\\",\\\"accustom\\\",\\\"acetone\\\",\\\"achiness\\\",\\\"aching\\\",\\\"acid\\\",\\\"acorn\\\",\\\"acquaint\\\",\\\"acquire\\\",\\\"acre\\\",\\\"acrobat\\\",\\\"acronym\\\",\\\"acting\\\",\\\"action\\\",\\\"activate\\\",\\\"activator\\\",\\\"active\\\",\\\"activism\\\",\\\"activist\\\",\\\"activity\\\",\\\"actress\\\",\\\"acts\\\",\\\"acutely\\\",\\\"acuteness\\\",\\\"aeration\\\",\\\"aerobics\\\",\\\"aerosol\\\",\\\"aerospace\\\",\\\"afar\\\",\\\"affair\\\",\\\"affected\\\",\\\"affecting\\\",\\\"affection\\\",\\\"affidavit\\\",\\\"affiliate\\\",\\\"affirm\\\",\\\"affix\\\",\\\"afflicted\\\",\\\"affluent\\\",\\\"afford\\\",\\\"affront\\\",\\\"aflame\\\",\\\"afloat\\\",\\\"aflutter\\\",\\\"afoot\\\",\\\"afraid\\\",\\\"afterglow\\\",\\\"afterlife\\\",\\\"aftermath\\\",\\\"aftermost\\\",\\\"afternoon\\\",\\\"aged\\\",\\\"ageless\\\",\\\"agency\\\",\\\"agenda\\\",\\\"agent\\\",\\\"aggregate\\\",\\\"aghast\\\",\\\"agile\\\",\\\"agility\\\",\\\"aging\\\",\\\"agnostic\\\",\\\"agonize\\\",\\\"agonizing\\\",\\\"agony\\\",\\\"agreeable\\\",\\\"agreeably\\\",\\\"agreed\\\",\\\"agreeing\\\",\\\"agreement\\\",\\\"aground\\\",\\\"ahead\\\",\\\"ahoy\\\",\\\"aide\\\",\\\"aids\\\",\\\"aim\\\",\\\"ajar\\\",\\\"alabaster\\\",\\\"alarm\\\",\\\"albatross\\\",\\\"album\\\",\\\"alfalfa\\\",\\\"algebra\\\",\\\"algorithm\\\",\\\"alias\\\",\\\"alibi\\\",\\\"alienable\\\",\\\"alienate\\\",\\\"aliens\\\",\\\"alike\\\",\\\"alive\\\",\\\"alkaline\\\",\\\"alkalize\\\",\\\"almanac\\\",\\\"almighty\\\",\\\"almost\\\",\\\"aloe\\\",\\\"aloft\\\",\\\"aloha\\\",\\\"alone\\\",\\\"alongside\\\",\\\"aloof\\\",\\\"alphabet\\\",\\\"alright\\\",\\\"although\\\",\\\"altitude\\\",\\\"alto\\\",\\\"aluminum\\\",\\\"alumni\\\",\\\"always\\\",\\\"amaretto\\\",\\\"amaze\\\",\\\"amazingly\\\",\\\"amber\\\",\\\"ambiance\\\",\\\"ambiguity\\\",\\\"ambiguous\\\",\\\"ambition\\\",\\\"ambitious\\\",\\\"ambulance\\\",\\\"ambush\\\",\\\"amendable\\\",\\\"amendment\\\",\\\"amends\\\",\\\"amenity\\\",\\\"amiable\\\",\\\"amicably\\\",\\\"amid\\\",\\\"amigo\\\",\\\"amino\\\",\\\"amiss\\\",\\\"ammonia\\\",\\\"ammonium\\\",\\\"amnesty\\\",\\\"amniotic\\\",\\\"among\\\",\\\"amount\\\",\\\"amperage\\\",\\\"ample\\\",\\\"amplifier\\\",\\\"amplify\\\",\\\"amply\\\",\\\"amuck\\\",\\\"amulet\\\",\\\"amusable\\\",\\\"amused\\\",\\\"amusement\\\",\\\"amuser\\\",\\\"amusing\\\",\\\"anaconda\\\",\\\"anaerobic\\\",\\\"anagram\\\",\\\"anatomist\\\",\\\"anatomy\\\",\\\"anchor\\\",\\\"anchovy\\\",\\\"ancient\\\",\\\"android\\\",\\\"anemia\\\",\\\"anemic\\\",\\\"aneurism\\\",\\\"anew\\\",\\\"angelfish\\\",\\\"angelic\\\",\\\"anger\\\",\\\"angled\\\",\\\"angler\\\",\\\"angles\\\",\\\"angling\\\",\\\"angrily\\\",\\\"angriness\\\",\\\"anguished\\\",\\\"angular\\\",\\\"animal\\\",\\\"animate\\\",\\\"animating\\\",\\\"animation\\\",\\\"animator\\\",\\\"anime\\\",\\\"animosity\\\",\\\"ankle\\\",\\\"annex\\\",\\\"annotate\\\",\\\"announcer\\\",\\\"annoying\\\",\\\"annually\\\",\\\"annuity\\\",\\\"anointer\\\",\\\"another\\\",\\\"answering\\\",\\\"antacid\\\",\\\"antarctic\\\",\\\"anteater\\\",\\\"antelope\\\",\\\"antennae\\\",\\\"anthem\\\",\\\"anthill\\\",\\\"anthology\\\",\\\"antibody\\\",\\\"antics\\\",\\\"antidote\\\",\\\"antihero\\\",\\\"antiquely\\\",\\\"antiques\\\",\\\"antiquity\\\",\\\"antirust\\\",\\\"antitoxic\\\",\\\"antitrust\\\",\\\"antiviral\\\",\\\"antivirus\\\",\\\"antler\\\",\\\"antonym\\\",\\\"antsy\\\",\\\"anvil\\\",\\\"anybody\\\",\\\"anyhow\\\",\\\"anymore\\\",\\\"anyone\\\",\\\"anyplace\\\",\\\"anything\\\",\\\"anytime\\\",\\\"anyway\\\",\\\"anywhere\\\",\\\"aorta\\\",\\\"apache\\\",\\\"apostle\\\",\\\"appealing\\\",\\\"appear\\\",\\\"appease\\\",\\\"appeasing\\\",\\\"appendage\\\",\\\"appendix\\\",\\\"appetite\\\",\\\"appetizer\\\",\\\"applaud\\\",\\\"applause\\\",\\\"apple\\\",\\\"appliance\\\",\\\"applicant\\\",\\\"applied\\\",\\\"apply\\\",\\\"appointee\\\",\\\"appraisal\\\",\\\"appraiser\\\",\\\"apprehend\\\",\\\"approach\\\",\\\"approval\\\",\\\"approve\\\",\\\"apricot\\\",\\\"april\\\",\\\"apron\\\",\\\"aptitude\\\",\\\"aptly\\\",\\\"aqua\\\",\\\"aqueduct\\\",\\\"arbitrary\\\",\\\"arbitrate\\\",\\\"ardently\\\",\\\"area\\\",\\\"arena\\\",\\\"arguable\\\",\\\"arguably\\\",\\\"argue\\\",\\\"arise\\\",\\\"armadillo\\\",\\\"armband\\\",\\\"armchair\\\",\\\"armed\\\",\\\"armful\\\",\\\"armhole\\\",\\\"arming\\\",\\\"armless\\\",\\\"armoire\\\",\\\"armored\\\",\\\"armory\\\",\\\"armrest\\\",\\\"army\\\",\\\"aroma\\\",\\\"arose\\\",\\\"around\\\",\\\"arousal\\\",\\\"arrange\\\",\\\"array\\\",\\\"arrest\\\",\\\"arrival\\\",\\\"arrive\\\",\\\"arrogance\\\",\\\"arrogant\\\",\\\"arson\\\",\\\"art\\\",\\\"ascend\\\",\\\"ascension\\\",\\\"ascent\\\",\\\"ascertain\\\",\\\"ashamed\\\",\\\"ashen\\\",\\\"ashes\\\",\\\"ashy\\\",\\\"aside\\\",\\\"askew\\\",\\\"asleep\\\",\\\"asparagus\\\",\\\"aspect\\\",\\\"aspirate\\\",\\\"aspire\\\",\\\"aspirin\\\",\\\"astonish\\\",\\\"astound\\\",\\\"astride\\\",\\\"astrology\\\",\\\"astronaut\\\",\\\"astronomy\\\",\\\"astute\\\",\\\"atlantic\\\",\\\"atlas\\\",\\\"atom\\\",\\\"atonable\\\",\\\"atop\\\",\\\"atrium\\\",\\\"atrocious\\\",\\\"atrophy\\\",\\\"attach\\\",\\\"attain\\\",\\\"attempt\\\",\\\"attendant\\\",\\\"attendee\\\",\\\"attention\\\",\\\"attentive\\\",\\\"attest\\\",\\\"attic\\\",\\\"attire\\\",\\\"attitude\\\",\\\"attractor\\\",\\\"attribute\\\",\\\"atypical\\\",\\\"auction\\\",\\\"audacious\\\",\\\"audacity\\\",\\\"audible\\\",\\\"audibly\\\",\\\"audience\\\",\\\"audio\\\",\\\"audition\\\",\\\"augmented\\\",\\\"august\\\",\\\"authentic\\\",\\\"author\\\",\\\"autism\\\",\\\"autistic\\\",\\\"autograph\\\",\\\"automaker\\\",\\\"automated\\\",\\\"automatic\\\",\\\"autopilot\\\",\\\"available\\\",\\\"avalanche\\\",\\\"avatar\\\",\\\"avenge\\\",\\\"avenging\\\",\\\"avenue\\\",\\\"average\\\",\\\"aversion\\\",\\\"avert\\\",\\\"aviation\\\",\\\"aviator\\\",\\\"avid\\\",\\\"avoid\\\",\\\"await\\\",\\\"awaken\\\",\\\"award\\\",\\\"aware\\\",\\\"awhile\\\",\\\"awkward\\\",\\\"awning\\\",\\\"awoke\\\",\\\"awry\\\",\\\"axis\\\",\\\"babble\\\",\\\"babbling\\\",\\\"babied\\\",\\\"baboon\\\",\\\"backache\\\",\\\"backboard\\\",\\\"backboned\\\",\\\"backdrop\\\",\\\"backed\\\",\\\"backer\\\",\\\"backfield\\\",\\\"backfire\\\",\\\"backhand\\\",\\\"backing\\\",\\\"backlands\\\",\\\"backlash\\\",\\\"backless\\\",\\\"backlight\\\",\\\"backlit\\\",\\\"backlog\\\",\\\"backpack\\\",\\\"backpedal\\\",\\\"backrest\\\",\\\"backroom\\\",\\\"backshift\\\",\\\"backside\\\",\\\"backslid\\\",\\\"backspace\\\",\\\"backspin\\\",\\\"backstab\\\",\\\"backstage\\\",\\\"backtalk\\\",\\\"backtrack\\\",\\\"backup\\\",\\\"backward\\\",\\\"backwash\\\",\\\"backwater\\\",\\\"backyard\\\",\\\"bacon\\\",\\\"bacteria\\\",\\\"bacterium\\\",\\\"badass\\\",\\\"badge\\\",\\\"badland\\\",\\\"badly\\\",\\\"badness\\\",\\\"baffle\\\",\\\"baffling\\\",\\\"bagel\\\",\\\"bagful\\\",\\\"baggage\\\",\\\"bagged\\\",\\\"baggie\\\",\\\"bagginess\\\",\\\"bagging\\\",\\\"baggy\\\",\\\"bagpipe\\\",\\\"baguette\\\",\\\"baked\\\",\\\"bakery\\\",\\\"bakeshop\\\",\\\"baking\\\",\\\"balance\\\",\\\"balancing\\\",\\\"balcony\\\",\\\"balmy\\\",\\\"balsamic\\\",\\\"bamboo\\\",\\\"banana\\\",\\\"banish\\\",\\\"banister\\\",\\\"banjo\\\",\\\"bankable\\\",\\\"bankbook\\\",\\\"banked\\\",\\\"banker\\\",\\\"banking\\\",\\\"banknote\\\",\\\"bankroll\\\",\\\"banner\\\",\\\"bannister\\\",\\\"banshee\\\",\\\"banter\\\",\\\"barbecue\\\",\\\"barbed\\\",\\\"barbell\\\",\\\"barber\\\",\\\"barcode\\\",\\\"barge\\\",\\\"bargraph\\\",\\\"barista\\\",\\\"baritone\\\",\\\"barley\\\",\\\"barmaid\\\",\\\"barman\\\",\\\"barn\\\",\\\"barometer\\\",\\\"barrack\\\",\\\"barracuda\\\",\\\"barrel\\\",\\\"barrette\\\",\\\"barricade\\\",\\\"barrier\\\",\\\"barstool\\\",\\\"bartender\\\",\\\"barterer\\\",\\\"bash\\\",\\\"basically\\\",\\\"basics\\\",\\\"basil\\\",\\\"basin\\\",\\\"basis\\\",\\\"basket\\\",\\\"batboy\\\",\\\"batch\\\",\\\"bath\\\",\\\"baton\\\",\\\"bats\\\",\\\"battalion\\\",\\\"battered\\\",\\\"battering\\\",\\\"battery\\\",\\\"batting\\\",\\\"battle\\\",\\\"bauble\\\",\\\"bazooka\\\",\\\"blabber\\\",\\\"bladder\\\",\\\"blade\\\",\\\"blah\\\",\\\"blame\\\",\\\"blaming\\\",\\\"blanching\\\",\\\"blandness\\\",\\\"blank\\\",\\\"blaspheme\\\",\\\"blasphemy\\\",\\\"blast\\\",\\\"blatancy\\\",\\\"blatantly\\\",\\\"blazer\\\",\\\"blazing\\\",\\\"bleach\\\",\\\"bleak\\\",\\\"bleep\\\",\\\"blemish\\\",\\\"blend\\\",\\\"bless\\\",\\\"blighted\\\",\\\"blimp\\\",\\\"bling\\\",\\\"blinked\\\",\\\"blinker\\\",\\\"blinking\\\",\\\"blinks\\\",\\\"blip\\\",\\\"blissful\\\",\\\"blitz\\\",\\\"blizzard\\\",\\\"bloated\\\",\\\"bloating\\\",\\\"blob\\\",\\\"blog\\\",\\\"bloomers\\\",\\\"blooming\\\",\\\"blooper\\\",\\\"blot\\\",\\\"blouse\\\",\\\"blubber\\\",\\\"bluff\\\",\\\"bluish\\\",\\\"blunderer\\\",\\\"blunt\\\",\\\"blurb\\\",\\\"blurred\\\",\\\"blurry\\\",\\\"blurt\\\",\\\"blush\\\",\\\"blustery\\\",\\\"boaster\\\",\\\"boastful\\\",\\\"boasting\\\",\\\"boat\\\",\\\"bobbed\\\",\\\"bobbing\\\",\\\"bobble\\\",\\\"bobcat\\\",\\\"bobsled\\\",\\\"bobtail\\\",\\\"bodacious\\\",\\\"body\\\",\\\"bogged\\\",\\\"boggle\\\",\\\"bogus\\\",\\\"boil\\\",\\\"bok\\\",\\\"bolster\\\",\\\"bolt\\\",\\\"bonanza\\\",\\\"bonded\\\",\\\"bonding\\\",\\\"bondless\\\",\\\"boned\\\",\\\"bonehead\\\",\\\"boneless\\\",\\\"bonelike\\\",\\\"boney\\\",\\\"bonfire\\\",\\\"bonnet\\\",\\\"bonsai\\\",\\\"bonus\\\",\\\"bony\\\",\\\"boogeyman\\\",\\\"boogieman\\\",\\\"book\\\",\\\"boondocks\\\",\\\"booted\\\",\\\"booth\\\",\\\"bootie\\\",\\\"booting\\\",\\\"bootlace\\\",\\\"bootleg\\\",\\\"boots\\\",\\\"boozy\\\",\\\"borax\\\",\\\"boring\\\",\\\"borough\\\",\\\"borrower\\\",\\\"borrowing\\\",\\\"boss\\\",\\\"botanical\\\",\\\"botanist\\\",\\\"botany\\\",\\\"botch\\\",\\\"both\\\",\\\"bottle\\\",\\\"bottling\\\",\\\"bottom\\\",\\\"bounce\\\",\\\"bouncing\\\",\\\"bouncy\\\",\\\"bounding\\\",\\\"boundless\\\",\\\"bountiful\\\",\\\"bovine\\\",\\\"boxcar\\\",\\\"boxer\\\",\\\"boxing\\\",\\\"boxlike\\\",\\\"boxy\\\",\\\"breach\\\",\\\"breath\\\",\\\"breeches\\\",\\\"breeching\\\",\\\"breeder\\\",\\\"breeding\\\",\\\"breeze\\\",\\\"breezy\\\",\\\"brethren\\\",\\\"brewery\\\",\\\"brewing\\\",\\\"briar\\\",\\\"bribe\\\",\\\"brick\\\",\\\"bride\\\",\\\"bridged\\\",\\\"brigade\\\",\\\"bright\\\",\\\"brilliant\\\",\\\"brim\\\",\\\"bring\\\",\\\"brink\\\",\\\"brisket\\\",\\\"briskly\\\",\\\"briskness\\\",\\\"bristle\\\",\\\"brittle\\\",\\\"broadband\\\",\\\"broadcast\\\",\\\"broaden\\\",\\\"broadly\\\",\\\"broadness\\\",\\\"broadside\\\",\\\"broadways\\\",\\\"broiler\\\",\\\"broiling\\\",\\\"broken\\\",\\\"broker\\\",\\\"bronchial\\\",\\\"bronco\\\",\\\"bronze\\\",\\\"bronzing\\\",\\\"brook\\\",\\\"broom\\\",\\\"brought\\\",\\\"browbeat\\\",\\\"brownnose\\\",\\\"browse\\\",\\\"browsing\\\",\\\"bruising\\\",\\\"brunch\\\",\\\"brunette\\\",\\\"brunt\\\",\\\"brush\\\",\\\"brussels\\\",\\\"brute\\\",\\\"brutishly\\\",\\\"bubble\\\",\\\"bubbling\\\",\\\"bubbly\\\",\\\"buccaneer\\\",\\\"bucked\\\",\\\"bucket\\\",\\\"buckle\\\",\\\"buckshot\\\",\\\"buckskin\\\",\\\"bucktooth\\\",\\\"buckwheat\\\",\\\"buddhism\\\",\\\"buddhist\\\",\\\"budding\\\",\\\"buddy\\\",\\\"budget\\\",\\\"buffalo\\\",\\\"buffed\\\",\\\"buffer\\\",\\\"buffing\\\",\\\"buffoon\\\",\\\"buggy\\\",\\\"bulb\\\",\\\"bulge\\\",\\\"bulginess\\\",\\\"bulgur\\\",\\\"bulk\\\",\\\"bulldog\\\",\\\"bulldozer\\\",\\\"bullfight\\\",\\\"bullfrog\\\",\\\"bullhorn\\\",\\\"bullion\\\",\\\"bullish\\\",\\\"bullpen\\\",\\\"bullring\\\",\\\"bullseye\\\",\\\"bullwhip\\\",\\\"bully\\\",\\\"bunch\\\",\\\"bundle\\\",\\\"bungee\\\",\\\"bunion\\\",\\\"bunkbed\\\",\\\"bunkhouse\\\",\\\"bunkmate\\\",\\\"bunny\\\",\\\"bunt\\\",\\\"busboy\\\",\\\"bush\\\",\\\"busily\\\",\\\"busload\\\",\\\"bust\\\",\\\"busybody\\\",\\\"buzz\\\",\\\"cabana\\\",\\\"cabbage\\\",\\\"cabbie\\\",\\\"cabdriver\\\",\\\"cable\\\",\\\"caboose\\\",\\\"cache\\\",\\\"cackle\\\",\\\"cacti\\\",\\\"cactus\\\",\\\"caddie\\\",\\\"caddy\\\",\\\"cadet\\\",\\\"cadillac\\\",\\\"cadmium\\\",\\\"cage\\\",\\\"cahoots\\\",\\\"cake\\\",\\\"calamari\\\",\\\"calamity\\\",\\\"calcium\\\",\\\"calculate\\\",\\\"calculus\\\",\\\"caliber\\\",\\\"calibrate\\\",\\\"calm\\\",\\\"caloric\\\",\\\"calorie\\\",\\\"calzone\\\",\\\"camcorder\\\",\\\"cameo\\\",\\\"camera\\\",\\\"camisole\\\",\\\"camper\\\",\\\"campfire\\\",\\\"camping\\\",\\\"campsite\\\",\\\"campus\\\",\\\"canal\\\",\\\"canary\\\",\\\"cancel\\\",\\\"candied\\\",\\\"candle\\\",\\\"candy\\\",\\\"cane\\\",\\\"canine\\\",\\\"canister\\\",\\\"cannabis\\\",\\\"canned\\\",\\\"canning\\\",\\\"cannon\\\",\\\"cannot\\\",\\\"canola\\\",\\\"canon\\\",\\\"canopener\\\",\\\"canopy\\\",\\\"canteen\\\",\\\"canyon\\\",\\\"capable\\\",\\\"capably\\\",\\\"capacity\\\",\\\"cape\\\",\\\"capillary\\\",\\\"capital\\\",\\\"capitol\\\",\\\"capped\\\",\\\"capricorn\\\",\\\"capsize\\\",\\\"capsule\\\",\\\"caption\\\",\\\"captivate\\\",\\\"captive\\\",\\\"captivity\\\",\\\"capture\\\",\\\"caramel\\\",\\\"carat\\\",\\\"caravan\\\",\\\"carbon\\\",\\\"cardboard\\\",\\\"carded\\\",\\\"cardiac\\\",\\\"cardigan\\\",\\\"cardinal\\\",\\\"cardstock\\\",\\\"carefully\\\",\\\"caregiver\\\",\\\"careless\\\",\\\"caress\\\",\\\"caretaker\\\",\\\"cargo\\\",\\\"caring\\\",\\\"carless\\\",\\\"carload\\\",\\\"carmaker\\\",\\\"carnage\\\",\\\"carnation\\\",\\\"carnival\\\",\\\"carnivore\\\",\\\"carol\\\",\\\"carpenter\\\",\\\"carpentry\\\",\\\"carpool\\\",\\\"carport\\\",\\\"carried\\\",\\\"carrot\\\",\\\"carrousel\\\",\\\"carry\\\",\\\"cartel\\\",\\\"cartload\\\",\\\"carton\\\",\\\"cartoon\\\",\\\"cartridge\\\",\\\"cartwheel\\\",\\\"carve\\\",\\\"carving\\\",\\\"carwash\\\",\\\"cascade\\\",\\\"case\\\",\\\"cash\\\",\\\"casing\\\",\\\"casino\\\",\\\"casket\\\",\\\"cassette\\\",\\\"casually\\\",\\\"casualty\\\",\\\"catacomb\\\",\\\"catalog\\\",\\\"catalyst\\\",\\\"catalyze\\\",\\\"catapult\\\",\\\"cataract\\\",\\\"catatonic\\\",\\\"catcall\\\",\\\"catchable\\\",\\\"catcher\\\",\\\"catching\\\",\\\"catchy\\\",\\\"caterer\\\",\\\"catering\\\",\\\"catfight\\\",\\\"catfish\\\",\\\"cathedral\\\",\\\"cathouse\\\",\\\"catlike\\\",\\\"catnap\\\",\\\"catnip\\\",\\\"catsup\\\",\\\"cattail\\\",\\\"cattishly\\\",\\\"cattle\\\",\\\"catty\\\",\\\"catwalk\\\",\\\"caucasian\\\",\\\"caucus\\\",\\\"causal\\\",\\\"causation\\\",\\\"cause\\\",\\\"causing\\\",\\\"cauterize\\\",\\\"caution\\\",\\\"cautious\\\",\\\"cavalier\\\",\\\"cavalry\\\",\\\"caviar\\\",\\\"cavity\\\",\\\"cedar\\\",\\\"celery\\\",\\\"celestial\\\",\\\"celibacy\\\",\\\"celibate\\\",\\\"celtic\\\",\\\"cement\\\",\\\"census\\\",\\\"ceramics\\\",\\\"ceremony\\\",\\\"certainly\\\",\\\"certainty\\\",\\\"certified\\\",\\\"certify\\\",\\\"cesarean\\\",\\\"cesspool\\\",\\\"chafe\\\",\\\"chaffing\\\",\\\"chain\\\",\\\"chair\\\",\\\"chalice\\\",\\\"challenge\\\",\\\"chamber\\\",\\\"chamomile\\\",\\\"champion\\\",\\\"chance\\\",\\\"change\\\",\\\"channel\\\",\\\"chant\\\",\\\"chaos\\\",\\\"chaperone\\\",\\\"chaplain\\\",\\\"chapped\\\",\\\"chaps\\\",\\\"chapter\\\",\\\"character\\\",\\\"charbroil\\\",\\\"charcoal\\\",\\\"charger\\\",\\\"charging\\\",\\\"chariot\\\",\\\"charity\\\",\\\"charm\\\",\\\"charred\\\",\\\"charter\\\",\\\"charting\\\",\\\"chase\\\",\\\"chasing\\\",\\\"chaste\\\",\\\"chastise\\\",\\\"chastity\\\",\\\"chatroom\\\",\\\"chatter\\\",\\\"chatting\\\",\\\"chatty\\\",\\\"cheating\\\",\\\"cheddar\\\",\\\"cheek\\\",\\\"cheer\\\",\\\"cheese\\\",\\\"cheesy\\\",\\\"chef\\\",\\\"chemicals\\\",\\\"chemist\\\",\\\"chemo\\\",\\\"cherisher\\\",\\\"cherub\\\",\\\"chess\\\",\\\"chest\\\",\\\"chevron\\\",\\\"chevy\\\",\\\"chewable\\\",\\\"chewer\\\",\\\"chewing\\\",\\\"chewy\\\",\\\"chief\\\",\\\"chihuahua\\\",\\\"childcare\\\",\\\"childhood\\\",\\\"childish\\\",\\\"childless\\\",\\\"childlike\\\",\\\"chili\\\",\\\"chill\\\",\\\"chimp\\\",\\\"chip\\\",\\\"chirping\\\",\\\"chirpy\\\",\\\"chitchat\\\",\\\"chivalry\\\",\\\"chive\\\",\\\"chloride\\\",\\\"chlorine\\\",\\\"choice\\\",\\\"chokehold\\\",\\\"choking\\\",\\\"chomp\\\",\\\"chooser\\\",\\\"choosing\\\",\\\"choosy\\\",\\\"chop\\\",\\\"chosen\\\",\\\"chowder\\\",\\\"chowtime\\\",\\\"chrome\\\",\\\"chubby\\\",\\\"chuck\\\",\\\"chug\\\",\\\"chummy\\\",\\\"chump\\\",\\\"chunk\\\",\\\"churn\\\",\\\"chute\\\",\\\"cider\\\",\\\"cilantro\\\",\\\"cinch\\\",\\\"cinema\\\",\\\"cinnamon\\\",\\\"circle\\\",\\\"circling\\\",\\\"circular\\\",\\\"circulate\\\",\\\"circus\\\",\\\"citable\\\",\\\"citadel\\\",\\\"citation\\\",\\\"citizen\\\",\\\"citric\\\",\\\"citrus\\\",\\\"city\\\",\\\"civic\\\",\\\"civil\\\",\\\"clad\\\",\\\"claim\\\",\\\"clambake\\\",\\\"clammy\\\",\\\"clamor\\\",\\\"clamp\\\",\\\"clamshell\\\",\\\"clang\\\",\\\"clanking\\\",\\\"clapped\\\",\\\"clapper\\\",\\\"clapping\\\",\\\"clarify\\\",\\\"clarinet\\\",\\\"clarity\\\",\\\"clash\\\",\\\"clasp\\\",\\\"class\\\",\\\"clatter\\\",\\\"clause\\\",\\\"clavicle\\\",\\\"claw\\\",\\\"clay\\\",\\\"clean\\\",\\\"clear\\\",\\\"cleat\\\",\\\"cleaver\\\",\\\"cleft\\\",\\\"clench\\\",\\\"clergyman\\\",\\\"clerical\\\",\\\"clerk\\\",\\\"clever\\\",\\\"clicker\\\",\\\"client\\\",\\\"climate\\\",\\\"climatic\\\",\\\"cling\\\",\\\"clinic\\\",\\\"clinking\\\",\\\"clip\\\",\\\"clique\\\",\\\"cloak\\\",\\\"clobber\\\",\\\"clock\\\",\\\"clone\\\",\\\"cloning\\\",\\\"closable\\\",\\\"closure\\\",\\\"clothes\\\",\\\"clothing\\\",\\\"cloud\\\",\\\"clover\\\",\\\"clubbed\\\",\\\"clubbing\\\",\\\"clubhouse\\\",\\\"clump\\\",\\\"clumsily\\\",\\\"clumsy\\\",\\\"clunky\\\",\\\"clustered\\\",\\\"clutch\\\",\\\"clutter\\\",\\\"coach\\\",\\\"coagulant\\\",\\\"coastal\\\",\\\"coaster\\\",\\\"coasting\\\",\\\"coastland\\\",\\\"coastline\\\",\\\"coat\\\",\\\"coauthor\\\",\\\"cobalt\\\",\\\"cobbler\\\",\\\"cobweb\\\",\\\"cocoa\\\",\\\"coconut\\\",\\\"cod\\\",\\\"coeditor\\\",\\\"coerce\\\",\\\"coexist\\\",\\\"coffee\\\",\\\"cofounder\\\",\\\"cognition\\\",\\\"cognitive\\\",\\\"cogwheel\\\",\\\"coherence\\\",\\\"coherent\\\",\\\"cohesive\\\",\\\"coil\\\",\\\"coke\\\",\\\"cola\\\",\\\"cold\\\",\\\"coleslaw\\\",\\\"coliseum\\\",\\\"collage\\\",\\\"collapse\\\",\\\"collar\\\",\\\"collected\\\",\\\"collector\\\",\\\"collide\\\",\\\"collie\\\",\\\"collision\\\",\\\"colonial\\\",\\\"colonist\\\",\\\"colonize\\\",\\\"colony\\\",\\\"colossal\\\",\\\"colt\\\",\\\"coma\\\",\\\"come\\\",\\\"comfort\\\",\\\"comfy\\\",\\\"comic\\\",\\\"coming\\\",\\\"comma\\\",\\\"commence\\\",\\\"commend\\\",\\\"comment\\\",\\\"commerce\\\",\\\"commode\\\",\\\"commodity\\\",\\\"commodore\\\",\\\"common\\\",\\\"commotion\\\",\\\"commute\\\",\\\"commuting\\\",\\\"compacted\\\",\\\"compacter\\\",\\\"compactly\\\",\\\"compactor\\\",\\\"companion\\\",\\\"company\\\",\\\"compare\\\",\\\"compel\\\",\\\"compile\\\",\\\"comply\\\",\\\"component\\\",\\\"composed\\\",\\\"composer\\\",\\\"composite\\\",\\\"compost\\\",\\\"composure\\\",\\\"compound\\\",\\\"compress\\\",\\\"comprised\\\",\\\"computer\\\",\\\"computing\\\",\\\"comrade\\\",\\\"concave\\\",\\\"conceal\\\",\\\"conceded\\\",\\\"concept\\\",\\\"concerned\\\",\\\"concert\\\",\\\"conch\\\",\\\"concierge\\\",\\\"concise\\\",\\\"conclude\\\",\\\"concrete\\\",\\\"concur\\\",\\\"condense\\\",\\\"condiment\\\",\\\"condition\\\",\\\"condone\\\",\\\"conducive\\\",\\\"conductor\\\",\\\"conduit\\\",\\\"cone\\\",\\\"confess\\\",\\\"confetti\\\",\\\"confidant\\\",\\\"confident\\\",\\\"confider\\\",\\\"confiding\\\",\\\"configure\\\",\\\"confined\\\",\\\"confining\\\",\\\"confirm\\\",\\\"conflict\\\",\\\"conform\\\",\\\"confound\\\",\\\"confront\\\",\\\"confused\\\",\\\"confusing\\\",\\\"confusion\\\",\\\"congenial\\\",\\\"congested\\\",\\\"congrats\\\",\\\"congress\\\",\\\"conical\\\",\\\"conjoined\\\",\\\"conjure\\\",\\\"conjuror\\\",\\\"connected\\\",\\\"connector\\\",\\\"consensus\\\",\\\"consent\\\",\\\"console\\\",\\\"consoling\\\",\\\"consonant\\\",\\\"constable\\\",\\\"constant\\\",\\\"constrain\\\",\\\"constrict\\\",\\\"construct\\\",\\\"consult\\\",\\\"consumer\\\",\\\"consuming\\\",\\\"contact\\\",\\\"container\\\",\\\"contempt\\\",\\\"contend\\\",\\\"contented\\\",\\\"contently\\\",\\\"contents\\\",\\\"contest\\\",\\\"context\\\",\\\"contort\\\",\\\"contour\\\",\\\"contrite\\\",\\\"control\\\",\\\"contusion\\\",\\\"convene\\\",\\\"convent\\\",\\\"copartner\\\",\\\"cope\\\",\\\"copied\\\",\\\"copier\\\",\\\"copilot\\\",\\\"coping\\\",\\\"copious\\\",\\\"copper\\\",\\\"copy\\\",\\\"coral\\\",\\\"cork\\\",\\\"cornball\\\",\\\"cornbread\\\",\\\"corncob\\\",\\\"cornea\\\",\\\"corned\\\",\\\"corner\\\",\\\"cornfield\\\",\\\"cornflake\\\",\\\"cornhusk\\\",\\\"cornmeal\\\",\\\"cornstalk\\\",\\\"corny\\\",\\\"coronary\\\",\\\"coroner\\\",\\\"corporal\\\",\\\"corporate\\\",\\\"corral\\\",\\\"correct\\\",\\\"corridor\\\",\\\"corrode\\\",\\\"corroding\\\",\\\"corrosive\\\",\\\"corsage\\\",\\\"corset\\\",\\\"cortex\\\",\\\"cosigner\\\",\\\"cosmetics\\\",\\\"cosmic\\\",\\\"cosmos\\\",\\\"cosponsor\\\",\\\"cost\\\",\\\"cottage\\\",\\\"cotton\\\",\\\"couch\\\",\\\"cough\\\",\\\"could\\\",\\\"countable\\\",\\\"countdown\\\",\\\"counting\\\",\\\"countless\\\",\\\"country\\\",\\\"county\\\",\\\"courier\\\",\\\"covenant\\\",\\\"cover\\\",\\\"coveted\\\",\\\"coveting\\\",\\\"coyness\\\",\\\"cozily\\\",\\\"coziness\\\",\\\"cozy\\\",\\\"crabbing\\\",\\\"crabgrass\\\",\\\"crablike\\\",\\\"crabmeat\\\",\\\"cradle\\\",\\\"cradling\\\",\\\"crafter\\\",\\\"craftily\\\",\\\"craftsman\\\",\\\"craftwork\\\",\\\"crafty\\\",\\\"cramp\\\",\\\"cranberry\\\",\\\"crane\\\",\\\"cranial\\\",\\\"cranium\\\",\\\"crank\\\",\\\"crate\\\",\\\"crave\\\",\\\"craving\\\",\\\"crawfish\\\",\\\"crawlers\\\",\\\"crawling\\\",\\\"crayfish\\\",\\\"crayon\\\",\\\"crazed\\\",\\\"crazily\\\",\\\"craziness\\\",\\\"crazy\\\",\\\"creamed\\\",\\\"creamer\\\",\\\"creamlike\\\",\\\"crease\\\",\\\"creasing\\\",\\\"creatable\\\",\\\"create\\\",\\\"creation\\\",\\\"creative\\\",\\\"creature\\\",\\\"credible\\\",\\\"credibly\\\",\\\"credit\\\",\\\"creed\\\",\\\"creme\\\",\\\"creole\\\",\\\"crepe\\\",\\\"crept\\\",\\\"crescent\\\",\\\"crested\\\",\\\"cresting\\\",\\\"crestless\\\",\\\"crevice\\\",\\\"crewless\\\",\\\"crewman\\\",\\\"crewmate\\\",\\\"crib\\\",\\\"cricket\\\",\\\"cried\\\",\\\"crier\\\",\\\"crimp\\\",\\\"crimson\\\",\\\"cringe\\\",\\\"cringing\\\",\\\"crinkle\\\",\\\"crinkly\\\",\\\"crisped\\\",\\\"crisping\\\",\\\"crisply\\\",\\\"crispness\\\",\\\"crispy\\\",\\\"criteria\\\",\\\"critter\\\",\\\"croak\\\",\\\"crock\\\",\\\"crook\\\",\\\"croon\\\",\\\"crop\\\",\\\"cross\\\",\\\"crouch\\\",\\\"crouton\\\",\\\"crowbar\\\",\\\"crowd\\\",\\\"crown\\\",\\\"crucial\\\",\\\"crudely\\\",\\\"crudeness\\\",\\\"cruelly\\\",\\\"cruelness\\\",\\\"cruelty\\\",\\\"crumb\\\",\\\"crummiest\\\",\\\"crummy\\\",\\\"crumpet\\\",\\\"crumpled\\\",\\\"cruncher\\\",\\\"crunching\\\",\\\"crunchy\\\",\\\"crusader\\\",\\\"crushable\\\",\\\"crushed\\\",\\\"crusher\\\",\\\"crushing\\\",\\\"crust\\\",\\\"crux\\\",\\\"crying\\\",\\\"cryptic\\\",\\\"crystal\\\",\\\"cubbyhole\\\",\\\"cube\\\",\\\"cubical\\\",\\\"cubicle\\\",\\\"cucumber\\\",\\\"cuddle\\\",\\\"cuddly\\\",\\\"cufflink\\\",\\\"culinary\\\",\\\"culminate\\\",\\\"culpable\\\",\\\"culprit\\\",\\\"cultivate\\\",\\\"cultural\\\",\\\"culture\\\",\\\"cupbearer\\\",\\\"cupcake\\\",\\\"cupid\\\",\\\"cupped\\\",\\\"cupping\\\",\\\"curable\\\",\\\"curator\\\",\\\"curdle\\\",\\\"cure\\\",\\\"curfew\\\",\\\"curing\\\",\\\"curled\\\",\\\"curler\\\",\\\"curliness\\\",\\\"curling\\\",\\\"curly\\\",\\\"curry\\\",\\\"curse\\\",\\\"cursive\\\",\\\"cursor\\\",\\\"curtain\\\",\\\"curtly\\\",\\\"curtsy\\\",\\\"curvature\\\",\\\"curve\\\",\\\"curvy\\\",\\\"cushy\\\",\\\"cusp\\\",\\\"cussed\\\",\\\"custard\\\",\\\"custodian\\\",\\\"custody\\\",\\\"customary\\\",\\\"customer\\\",\\\"customize\\\",\\\"customs\\\",\\\"cut\\\",\\\"cycle\\\",\\\"cyclic\\\",\\\"cycling\\\",\\\"cyclist\\\",\\\"cylinder\\\",\\\"cymbal\\\",\\\"cytoplasm\\\",\\\"cytoplast\\\",\\\"dab\\\",\\\"dad\\\",\\\"daffodil\\\",\\\"dagger\\\",\\\"daily\\\",\\\"daintily\\\",\\\"dainty\\\",\\\"dairy\\\",\\\"daisy\\\",\\\"dallying\\\",\\\"dance\\\",\\\"dancing\\\",\\\"dandelion\\\",\\\"dander\\\",\\\"dandruff\\\",\\\"dandy\\\",\\\"danger\\\",\\\"dangle\\\",\\\"dangling\\\",\\\"daredevil\\\",\\\"dares\\\",\\\"daringly\\\",\\\"darkened\\\",\\\"darkening\\\",\\\"darkish\\\",\\\"darkness\\\",\\\"darkroom\\\",\\\"darling\\\",\\\"darn\\\",\\\"dart\\\",\\\"darwinism\\\",\\\"dash\\\",\\\"dastardly\\\",\\\"data\\\",\\\"datebook\\\",\\\"dating\\\",\\\"daughter\\\",\\\"daunting\\\",\\\"dawdler\\\",\\\"dawn\\\",\\\"daybed\\\",\\\"daybreak\\\",\\\"daycare\\\",\\\"daydream\\\",\\\"daylight\\\",\\\"daylong\\\",\\\"dayroom\\\",\\\"daytime\\\",\\\"dazzler\\\",\\\"dazzling\\\",\\\"deacon\\\",\\\"deafening\\\",\\\"deafness\\\",\\\"dealer\\\",\\\"dealing\\\",\\\"dealmaker\\\",\\\"dealt\\\",\\\"dean\\\",\\\"debatable\\\",\\\"debate\\\",\\\"debating\\\",\\\"debit\\\",\\\"debrief\\\",\\\"debtless\\\",\\\"debtor\\\",\\\"debug\\\",\\\"debunk\\\",\\\"decade\\\",\\\"decaf\\\",\\\"decal\\\",\\\"decathlon\\\",\\\"decay\\\",\\\"deceased\\\",\\\"deceit\\\",\\\"deceiver\\\",\\\"deceiving\\\",\\\"december\\\",\\\"decency\\\",\\\"decent\\\",\\\"deception\\\",\\\"deceptive\\\",\\\"decibel\\\",\\\"decidable\\\",\\\"decimal\\\",\\\"decimeter\\\",\\\"decipher\\\",\\\"deck\\\",\\\"declared\\\",\\\"decline\\\",\\\"decode\\\",\\\"decompose\\\",\\\"decorated\\\",\\\"decorator\\\",\\\"decoy\\\",\\\"decrease\\\",\\\"decree\\\",\\\"dedicate\\\",\\\"dedicator\\\",\\\"deduce\\\",\\\"deduct\\\",\\\"deed\\\",\\\"deem\\\",\\\"deepen\\\",\\\"deeply\\\",\\\"deepness\\\",\\\"deface\\\",\\\"defacing\\\",\\\"defame\\\",\\\"default\\\",\\\"defeat\\\",\\\"defection\\\",\\\"defective\\\",\\\"defendant\\\",\\\"defender\\\",\\\"defense\\\",\\\"defensive\\\",\\\"deferral\\\",\\\"deferred\\\",\\\"defiance\\\",\\\"defiant\\\",\\\"defile\\\",\\\"defiling\\\",\\\"define\\\",\\\"definite\\\",\\\"deflate\\\",\\\"deflation\\\",\\\"deflator\\\",\\\"deflected\\\",\\\"deflector\\\",\\\"defog\\\",\\\"deforest\\\",\\\"defraud\\\",\\\"defrost\\\",\\\"deftly\\\",\\\"defuse\\\",\\\"defy\\\",\\\"degraded\\\",\\\"degrading\\\",\\\"degrease\\\",\\\"degree\\\",\\\"dehydrate\\\",\\\"deity\\\",\\\"dejected\\\",\\\"delay\\\",\\\"delegate\\\",\\\"delegator\\\",\\\"delete\\\",\\\"deletion\\\",\\\"delicacy\\\",\\\"delicate\\\",\\\"delicious\\\",\\\"delighted\\\",\\\"delirious\\\",\\\"delirium\\\",\\\"deliverer\\\",\\\"delivery\\\",\\\"delouse\\\",\\\"delta\\\",\\\"deluge\\\",\\\"delusion\\\",\\\"deluxe\\\",\\\"demanding\\\",\\\"demeaning\\\",\\\"demeanor\\\",\\\"demise\\\",\\\"democracy\\\",\\\"democrat\\\",\\\"demote\\\",\\\"demotion\\\",\\\"demystify\\\",\\\"denatured\\\",\\\"deniable\\\",\\\"denial\\\",\\\"denim\\\",\\\"denote\\\",\\\"dense\\\",\\\"density\\\",\\\"dental\\\",\\\"dentist\\\",\\\"denture\\\",\\\"deny\\\",\\\"deodorant\\\",\\\"deodorize\\\",\\\"departed\\\",\\\"departure\\\",\\\"depict\\\",\\\"deplete\\\",\\\"depletion\\\",\\\"deplored\\\",\\\"deploy\\\",\\\"deport\\\",\\\"depose\\\",\\\"depraved\\\",\\\"depravity\\\",\\\"deprecate\\\",\\\"depress\\\",\\\"deprive\\\",\\\"depth\\\",\\\"deputize\\\",\\\"deputy\\\",\\\"derail\\\",\\\"deranged\\\",\\\"derby\\\",\\\"derived\\\",\\\"desecrate\\\",\\\"deserve\\\",\\\"deserving\\\",\\\"designate\\\",\\\"designed\\\",\\\"designer\\\",\\\"designing\\\",\\\"deskbound\\\",\\\"desktop\\\",\\\"deskwork\\\",\\\"desolate\\\",\\\"despair\\\",\\\"despise\\\",\\\"despite\\\",\\\"destiny\\\",\\\"destitute\\\",\\\"destruct\\\",\\\"detached\\\",\\\"detail\\\",\\\"detection\\\",\\\"detective\\\",\\\"detector\\\",\\\"detention\\\",\\\"detergent\\\",\\\"detest\\\",\\\"detonate\\\",\\\"detonator\\\",\\\"detoxify\\\",\\\"detract\\\",\\\"deuce\\\",\\\"devalue\\\",\\\"deviancy\\\",\\\"deviant\\\",\\\"deviate\\\",\\\"deviation\\\",\\\"deviator\\\",\\\"device\\\",\\\"devious\\\",\\\"devotedly\\\",\\\"devotee\\\",\\\"devotion\\\",\\\"devourer\\\",\\\"devouring\\\",\\\"devoutly\\\",\\\"dexterity\\\",\\\"dexterous\\\",\\\"diabetes\\\",\\\"diabetic\\\",\\\"diabolic\\\",\\\"diagnoses\\\",\\\"diagnosis\\\",\\\"diagram\\\",\\\"dial\\\",\\\"diameter\\\",\\\"diaper\\\",\\\"diaphragm\\\",\\\"diary\\\",\\\"dice\\\",\\\"dicing\\\",\\\"dictate\\\",\\\"dictation\\\",\\\"dictator\\\",\\\"difficult\\\",\\\"diffused\\\",\\\"diffuser\\\",\\\"diffusion\\\",\\\"diffusive\\\",\\\"dig\\\",\\\"dilation\\\",\\\"diligence\\\",\\\"diligent\\\",\\\"dill\\\",\\\"dilute\\\",\\\"dime\\\",\\\"diminish\\\",\\\"dimly\\\",\\\"dimmed\\\",\\\"dimmer\\\",\\\"dimness\\\",\\\"dimple\\\",\\\"diner\\\",\\\"dingbat\\\",\\\"dinghy\\\",\\\"dinginess\\\",\\\"dingo\\\",\\\"dingy\\\",\\\"dining\\\",\\\"dinner\\\",\\\"diocese\\\",\\\"dioxide\\\",\\\"diploma\\\",\\\"dipped\\\",\\\"dipper\\\",\\\"dipping\\\",\\\"directed\\\",\\\"direction\\\",\\\"directive\\\",\\\"directly\\\",\\\"directory\\\",\\\"direness\\\",\\\"dirtiness\\\",\\\"disabled\\\",\\\"disagree\\\",\\\"disallow\\\",\\\"disarm\\\",\\\"disarray\\\",\\\"disaster\\\",\\\"disband\\\",\\\"disbelief\\\",\\\"disburse\\\",\\\"discard\\\",\\\"discern\\\",\\\"discharge\\\",\\\"disclose\\\",\\\"discolor\\\",\\\"discount\\\",\\\"discourse\\\",\\\"discover\\\",\\\"discuss\\\",\\\"disdain\\\",\\\"disengage\\\",\\\"disfigure\\\",\\\"disgrace\\\",\\\"dish\\\",\\\"disinfect\\\",\\\"disjoin\\\",\\\"disk\\\",\\\"dislike\\\",\\\"disliking\\\",\\\"dislocate\\\",\\\"dislodge\\\",\\\"disloyal\\\",\\\"dismantle\\\",\\\"dismay\\\",\\\"dismiss\\\",\\\"dismount\\\",\\\"disobey\\\",\\\"disorder\\\",\\\"disown\\\",\\\"disparate\\\",\\\"disparity\\\",\\\"dispatch\\\",\\\"dispense\\\",\\\"dispersal\\\",\\\"dispersed\\\",\\\"disperser\\\",\\\"displace\\\",\\\"display\\\",\\\"displease\\\",\\\"disposal\\\",\\\"dispose\\\",\\\"disprove\\\",\\\"dispute\\\",\\\"disregard\\\",\\\"disrupt\\\",\\\"dissuade\\\",\\\"distance\\\",\\\"distant\\\",\\\"distaste\\\",\\\"distill\\\",\\\"distinct\\\",\\\"distort\\\",\\\"distract\\\",\\\"distress\\\",\\\"district\\\",\\\"distrust\\\",\\\"ditch\\\",\\\"ditto\\\",\\\"ditzy\\\",\\\"dividable\\\",\\\"divided\\\",\\\"dividend\\\",\\\"dividers\\\",\\\"dividing\\\",\\\"divinely\\\",\\\"diving\\\",\\\"divinity\\\",\\\"divisible\\\",\\\"divisibly\\\",\\\"division\\\",\\\"divisive\\\",\\\"divorcee\\\",\\\"dizziness\\\",\\\"dizzy\\\",\\\"doable\\\",\\\"docile\\\",\\\"dock\\\",\\\"doctrine\\\",\\\"document\\\",\\\"dodge\\\",\\\"dodgy\\\",\\\"doily\\\",\\\"doing\\\",\\\"dole\\\",\\\"dollar\\\",\\\"dollhouse\\\",\\\"dollop\\\",\\\"dolly\\\",\\\"dolphin\\\",\\\"domain\\\",\\\"domelike\\\",\\\"domestic\\\",\\\"dominion\\\",\\\"dominoes\\\",\\\"donated\\\",\\\"donation\\\",\\\"donator\\\",\\\"donor\\\",\\\"donut\\\",\\\"doodle\\\",\\\"doorbell\\\",\\\"doorframe\\\",\\\"doorknob\\\",\\\"doorman\\\",\\\"doormat\\\",\\\"doornail\\\",\\\"doorpost\\\",\\\"doorstep\\\",\\\"doorstop\\\",\\\"doorway\\\",\\\"doozy\\\",\\\"dork\\\",\\\"dormitory\\\",\\\"dorsal\\\",\\\"dosage\\\",\\\"dose\\\",\\\"dotted\\\",\\\"doubling\\\",\\\"douche\\\",\\\"dove\\\",\\\"down\\\",\\\"dowry\\\",\\\"doze\\\",\\\"drab\\\",\\\"dragging\\\",\\\"dragonfly\\\",\\\"dragonish\\\",\\\"dragster\\\",\\\"drainable\\\",\\\"drainage\\\",\\\"drained\\\",\\\"drainer\\\",\\\"drainpipe\\\",\\\"dramatic\\\",\\\"dramatize\\\",\\\"drank\\\",\\\"drapery\\\",\\\"drastic\\\",\\\"draw\\\",\\\"dreaded\\\",\\\"dreadful\\\",\\\"dreadlock\\\",\\\"dreamboat\\\",\\\"dreamily\\\",\\\"dreamland\\\",\\\"dreamless\\\",\\\"dreamlike\\\",\\\"dreamt\\\",\\\"dreamy\\\",\\\"drearily\\\",\\\"dreary\\\",\\\"drench\\\",\\\"dress\\\",\\\"drew\\\",\\\"dribble\\\",\\\"dried\\\",\\\"drier\\\",\\\"drift\\\",\\\"driller\\\",\\\"drilling\\\",\\\"drinkable\\\",\\\"drinking\\\",\\\"dripping\\\",\\\"drippy\\\",\\\"drivable\\\",\\\"driven\\\",\\\"driver\\\",\\\"driveway\\\",\\\"driving\\\",\\\"drizzle\\\",\\\"drizzly\\\",\\\"drone\\\",\\\"drool\\\",\\\"droop\\\",\\\"drop-down\\\",\\\"dropbox\\\",\\\"dropkick\\\",\\\"droplet\\\",\\\"dropout\\\",\\\"dropper\\\",\\\"drove\\\",\\\"drown\\\",\\\"drowsily\\\",\\\"drudge\\\",\\\"drum\\\",\\\"dry\\\",\\\"dubbed\\\",\\\"dubiously\\\",\\\"duchess\\\",\\\"duckbill\\\",\\\"ducking\\\",\\\"duckling\\\",\\\"ducktail\\\",\\\"ducky\\\",\\\"duct\\\",\\\"dude\\\",\\\"duffel\\\",\\\"dugout\\\",\\\"duh\\\",\\\"duke\\\",\\\"duller\\\",\\\"dullness\\\",\\\"duly\\\",\\\"dumping\\\",\\\"dumpling\\\",\\\"dumpster\\\",\\\"duo\\\",\\\"dupe\\\",\\\"duplex\\\",\\\"duplicate\\\",\\\"duplicity\\\",\\\"durable\\\",\\\"durably\\\",\\\"duration\\\",\\\"duress\\\",\\\"during\\\",\\\"dusk\\\",\\\"dust\\\",\\\"dutiful\\\",\\\"duty\\\",\\\"duvet\\\",\\\"dwarf\\\",\\\"dweeb\\\",\\\"dwelled\\\",\\\"dweller\\\",\\\"dwelling\\\",\\\"dwindle\\\",\\\"dwindling\\\",\\\"dynamic\\\",\\\"dynamite\\\",\\\"dynasty\\\",\\\"dyslexia\\\",\\\"dyslexic\\\",\\\"each\\\",\\\"eagle\\\",\\\"earache\\\",\\\"eardrum\\\",\\\"earflap\\\",\\\"earful\\\",\\\"earlobe\\\",\\\"early\\\",\\\"earmark\\\",\\\"earmuff\\\",\\\"earphone\\\",\\\"earpiece\\\",\\\"earplugs\\\",\\\"earring\\\",\\\"earshot\\\",\\\"earthen\\\",\\\"earthlike\\\",\\\"earthling\\\",\\\"earthly\\\",\\\"earthworm\\\",\\\"earthy\\\",\\\"earwig\\\",\\\"easeful\\\",\\\"easel\\\",\\\"easiest\\\",\\\"easily\\\",\\\"easiness\\\",\\\"easing\\\",\\\"eastbound\\\",\\\"eastcoast\\\",\\\"easter\\\",\\\"eastward\\\",\\\"eatable\\\",\\\"eaten\\\",\\\"eatery\\\",\\\"eating\\\",\\\"eats\\\",\\\"ebay\\\",\\\"ebony\\\",\\\"ebook\\\",\\\"ecard\\\",\\\"eccentric\\\",\\\"echo\\\",\\\"eclair\\\",\\\"eclipse\\\",\\\"ecologist\\\",\\\"ecology\\\",\\\"economic\\\",\\\"economist\\\",\\\"economy\\\",\\\"ecosphere\\\",\\\"ecosystem\\\",\\\"edge\\\",\\\"edginess\\\",\\\"edging\\\",\\\"edgy\\\",\\\"edition\\\",\\\"editor\\\",\\\"educated\\\",\\\"education\\\",\\\"educator\\\",\\\"eel\\\",\\\"effective\\\",\\\"effects\\\",\\\"efficient\\\",\\\"effort\\\",\\\"eggbeater\\\",\\\"egging\\\",\\\"eggnog\\\",\\\"eggplant\\\",\\\"eggshell\\\",\\\"egomaniac\\\",\\\"egotism\\\",\\\"egotistic\\\",\\\"either\\\",\\\"eject\\\",\\\"elaborate\\\",\\\"elastic\\\",\\\"elated\\\",\\\"elbow\\\",\\\"eldercare\\\",\\\"elderly\\\",\\\"eldest\\\",\\\"electable\\\",\\\"election\\\",\\\"elective\\\",\\\"elephant\\\",\\\"elevate\\\",\\\"elevating\\\",\\\"elevation\\\",\\\"elevator\\\",\\\"eleven\\\",\\\"elf\\\",\\\"eligible\\\",\\\"eligibly\\\",\\\"eliminate\\\",\\\"elite\\\",\\\"elitism\\\",\\\"elixir\\\",\\\"elk\\\",\\\"ellipse\\\",\\\"elliptic\\\",\\\"elm\\\",\\\"elongated\\\",\\\"elope\\\",\\\"eloquence\\\",\\\"eloquent\\\",\\\"elsewhere\\\",\\\"elude\\\",\\\"elusive\\\",\\\"elves\\\",\\\"email\\\",\\\"embargo\\\",\\\"embark\\\",\\\"embassy\\\",\\\"embattled\\\",\\\"embellish\\\",\\\"ember\\\",\\\"embezzle\\\",\\\"emblaze\\\",\\\"emblem\\\",\\\"embody\\\",\\\"embolism\\\",\\\"emboss\\\",\\\"embroider\\\",\\\"emcee\\\",\\\"emerald\\\",\\\"emergency\\\",\\\"emission\\\",\\\"emit\\\",\\\"emote\\\",\\\"emoticon\\\",\\\"emotion\\\",\\\"empathic\\\",\\\"empathy\\\",\\\"emperor\\\",\\\"emphases\\\",\\\"emphasis\\\",\\\"emphasize\\\",\\\"emphatic\\\",\\\"empirical\\\",\\\"employed\\\",\\\"employee\\\",\\\"employer\\\",\\\"emporium\\\",\\\"empower\\\",\\\"emptier\\\",\\\"emptiness\\\",\\\"empty\\\",\\\"emu\\\",\\\"enable\\\",\\\"enactment\\\",\\\"enamel\\\",\\\"enchanted\\\",\\\"enchilada\\\",\\\"encircle\\\",\\\"enclose\\\",\\\"enclosure\\\",\\\"encode\\\",\\\"encore\\\",\\\"encounter\\\",\\\"encourage\\\",\\\"encroach\\\",\\\"encrust\\\",\\\"encrypt\\\",\\\"endanger\\\",\\\"endeared\\\",\\\"endearing\\\",\\\"ended\\\",\\\"ending\\\",\\\"endless\\\",\\\"endnote\\\",\\\"endocrine\\\",\\\"endorphin\\\",\\\"endorse\\\",\\\"endowment\\\",\\\"endpoint\\\",\\\"endurable\\\",\\\"endurance\\\",\\\"enduring\\\",\\\"energetic\\\",\\\"energize\\\",\\\"energy\\\",\\\"enforced\\\",\\\"enforcer\\\",\\\"engaged\\\",\\\"engaging\\\",\\\"engine\\\",\\\"engorge\\\",\\\"engraved\\\",\\\"engraver\\\",\\\"engraving\\\",\\\"engross\\\",\\\"engulf\\\",\\\"enhance\\\",\\\"enigmatic\\\",\\\"enjoyable\\\",\\\"enjoyably\\\",\\\"enjoyer\\\",\\\"enjoying\\\",\\\"enjoyment\\\",\\\"enlarged\\\",\\\"enlarging\\\",\\\"enlighten\\\",\\\"enlisted\\\",\\\"enquirer\\\",\\\"enrage\\\",\\\"enrich\\\",\\\"enroll\\\",\\\"enslave\\\",\\\"ensnare\\\",\\\"ensure\\\",\\\"entail\\\",\\\"entangled\\\",\\\"entering\\\",\\\"entertain\\\",\\\"enticing\\\",\\\"entire\\\",\\\"entitle\\\",\\\"entity\\\",\\\"entomb\\\",\\\"entourage\\\",\\\"entrap\\\",\\\"entree\\\",\\\"entrench\\\",\\\"entrust\\\",\\\"entryway\\\",\\\"entwine\\\",\\\"enunciate\\\",\\\"envelope\\\",\\\"enviable\\\",\\\"enviably\\\",\\\"envious\\\",\\\"envision\\\",\\\"envoy\\\",\\\"envy\\\",\\\"enzyme\\\",\\\"epic\\\",\\\"epidemic\\\",\\\"epidermal\\\",\\\"epidermis\\\",\\\"epidural\\\",\\\"epilepsy\\\",\\\"epileptic\\\",\\\"epilogue\\\",\\\"epiphany\\\",\\\"episode\\\",\\\"equal\\\",\\\"equate\\\",\\\"equation\\\",\\\"equator\\\",\\\"equinox\\\",\\\"equipment\\\",\\\"equity\\\",\\\"equivocal\\\",\\\"eradicate\\\",\\\"erasable\\\",\\\"erased\\\",\\\"eraser\\\",\\\"erasure\\\",\\\"ergonomic\\\",\\\"errand\\\",\\\"errant\\\",\\\"erratic\\\",\\\"error\\\",\\\"erupt\\\",\\\"escalate\\\",\\\"escalator\\\",\\\"escapable\\\",\\\"escapade\\\",\\\"escapist\\\",\\\"escargot\\\",\\\"eskimo\\\",\\\"esophagus\\\",\\\"espionage\\\",\\\"espresso\\\",\\\"esquire\\\",\\\"essay\\\",\\\"essence\\\",\\\"essential\\\",\\\"establish\\\",\\\"estate\\\",\\\"esteemed\\\",\\\"estimate\\\",\\\"estimator\\\",\\\"estranged\\\",\\\"estrogen\\\",\\\"etching\\\",\\\"eternal\\\",\\\"eternity\\\",\\\"ethanol\\\",\\\"ether\\\",\\\"ethically\\\",\\\"ethics\\\",\\\"euphemism\\\",\\\"evacuate\\\",\\\"evacuee\\\",\\\"evade\\\",\\\"evaluate\\\",\\\"evaluator\\\",\\\"evaporate\\\",\\\"evasion\\\",\\\"evasive\\\",\\\"even\\\",\\\"everglade\\\",\\\"evergreen\\\",\\\"everybody\\\",\\\"everyday\\\",\\\"everyone\\\",\\\"evict\\\",\\\"evidence\\\",\\\"evident\\\",\\\"evil\\\",\\\"evoke\\\",\\\"evolution\\\",\\\"evolve\\\",\\\"exact\\\",\\\"exalted\\\",\\\"example\\\",\\\"excavate\\\",\\\"excavator\\\",\\\"exceeding\\\",\\\"exception\\\",\\\"excess\\\",\\\"exchange\\\",\\\"excitable\\\",\\\"exciting\\\",\\\"exclaim\\\",\\\"exclude\\\",\\\"excluding\\\",\\\"exclusion\\\",\\\"exclusive\\\",\\\"excretion\\\",\\\"excretory\\\",\\\"excursion\\\",\\\"excusable\\\",\\\"excusably\\\",\\\"excuse\\\",\\\"exemplary\\\",\\\"exemplify\\\",\\\"exemption\\\",\\\"exerciser\\\",\\\"exert\\\",\\\"exes\\\",\\\"exfoliate\\\",\\\"exhale\\\",\\\"exhaust\\\",\\\"exhume\\\",\\\"exile\\\",\\\"existing\\\",\\\"exit\\\",\\\"exodus\\\",\\\"exonerate\\\",\\\"exorcism\\\",\\\"exorcist\\\",\\\"expand\\\",\\\"expanse\\\",\\\"expansion\\\",\\\"expansive\\\",\\\"expectant\\\",\\\"expedited\\\",\\\"expediter\\\",\\\"expel\\\",\\\"expend\\\",\\\"expenses\\\",\\\"expensive\\\",\\\"expert\\\",\\\"expire\\\",\\\"expiring\\\",\\\"explain\\\",\\\"expletive\\\",\\\"explicit\\\",\\\"explode\\\",\\\"exploit\\\",\\\"explore\\\",\\\"exploring\\\",\\\"exponent\\\",\\\"exporter\\\",\\\"exposable\\\",\\\"expose\\\",\\\"exposure\\\",\\\"express\\\",\\\"expulsion\\\",\\\"exquisite\\\",\\\"extended\\\",\\\"extending\\\",\\\"extent\\\",\\\"extenuate\\\",\\\"exterior\\\",\\\"external\\\",\\\"extinct\\\",\\\"extortion\\\",\\\"extradite\\\",\\\"extras\\\",\\\"extrovert\\\",\\\"extrude\\\",\\\"extruding\\\",\\\"exuberant\\\",\\\"fable\\\",\\\"fabric\\\",\\\"fabulous\\\",\\\"facebook\\\",\\\"facecloth\\\",\\\"facedown\\\",\\\"faceless\\\",\\\"facelift\\\",\\\"faceplate\\\",\\\"faceted\\\",\\\"facial\\\",\\\"facility\\\",\\\"facing\\\",\\\"facsimile\\\",\\\"faction\\\",\\\"factoid\\\",\\\"factor\\\",\\\"factsheet\\\",\\\"factual\\\",\\\"faculty\\\",\\\"fade\\\",\\\"fading\\\",\\\"failing\\\",\\\"falcon\\\",\\\"fall\\\",\\\"false\\\",\\\"falsify\\\",\\\"fame\\\",\\\"familiar\\\",\\\"family\\\",\\\"famine\\\",\\\"famished\\\",\\\"fanatic\\\",\\\"fancied\\\",\\\"fanciness\\\",\\\"fancy\\\",\\\"fanfare\\\",\\\"fang\\\",\\\"fanning\\\",\\\"fantasize\\\",\\\"fantastic\\\",\\\"fantasy\\\",\\\"fascism\\\",\\\"fastball\\\",\\\"faster\\\",\\\"fasting\\\",\\\"fastness\\\",\\\"faucet\\\",\\\"favorable\\\",\\\"favorably\\\",\\\"favored\\\",\\\"favoring\\\",\\\"favorite\\\",\\\"fax\\\",\\\"feast\\\",\\\"federal\\\",\\\"fedora\\\",\\\"feeble\\\",\\\"feed\\\",\\\"feel\\\",\\\"feisty\\\",\\\"feline\\\",\\\"felt-tip\\\",\\\"feminine\\\",\\\"feminism\\\",\\\"feminist\\\",\\\"feminize\\\",\\\"femur\\\",\\\"fence\\\",\\\"fencing\\\",\\\"fender\\\",\\\"ferment\\\",\\\"fernlike\\\",\\\"ferocious\\\",\\\"ferocity\\\",\\\"ferret\\\",\\\"ferris\\\",\\\"ferry\\\",\\\"fervor\\\",\\\"fester\\\",\\\"festival\\\",\\\"festive\\\",\\\"festivity\\\",\\\"fetal\\\",\\\"fetch\\\",\\\"fever\\\",\\\"fiber\\\",\\\"fiction\\\",\\\"fiddle\\\",\\\"fiddling\\\",\\\"fidelity\\\",\\\"fidgeting\\\",\\\"fidgety\\\",\\\"fifteen\\\",\\\"fifth\\\",\\\"fiftieth\\\",\\\"fifty\\\",\\\"figment\\\",\\\"figure\\\",\\\"figurine\\\",\\\"filing\\\",\\\"filled\\\",\\\"filler\\\",\\\"filling\\\",\\\"film\\\",\\\"filter\\\",\\\"filth\\\",\\\"filtrate\\\",\\\"finale\\\",\\\"finalist\\\",\\\"finalize\\\",\\\"finally\\\",\\\"finance\\\",\\\"financial\\\",\\\"finch\\\",\\\"fineness\\\",\\\"finer\\\",\\\"finicky\\\",\\\"finished\\\",\\\"finisher\\\",\\\"finishing\\\",\\\"finite\\\",\\\"finless\\\",\\\"finlike\\\",\\\"fiscally\\\",\\\"fit\\\",\\\"five\\\",\\\"flaccid\\\",\\\"flagman\\\",\\\"flagpole\\\",\\\"flagship\\\",\\\"flagstick\\\",\\\"flagstone\\\",\\\"flail\\\",\\\"flakily\\\",\\\"flaky\\\",\\\"flame\\\",\\\"flammable\\\",\\\"flanked\\\",\\\"flanking\\\",\\\"flannels\\\",\\\"flap\\\",\\\"flaring\\\",\\\"flashback\\\",\\\"flashbulb\\\",\\\"flashcard\\\",\\\"flashily\\\",\\\"flashing\\\",\\\"flashy\\\",\\\"flask\\\",\\\"flatbed\\\",\\\"flatfoot\\\",\\\"flatly\\\",\\\"flatness\\\",\\\"flatten\\\",\\\"flattered\\\",\\\"flatterer\\\",\\\"flattery\\\",\\\"flattop\\\",\\\"flatware\\\",\\\"flatworm\\\",\\\"flavored\\\",\\\"flavorful\\\",\\\"flavoring\\\",\\\"flaxseed\\\",\\\"fled\\\",\\\"fleshed\\\",\\\"fleshy\\\",\\\"flick\\\",\\\"flier\\\",\\\"flight\\\",\\\"flinch\\\",\\\"fling\\\",\\\"flint\\\",\\\"flip\\\",\\\"flirt\\\",\\\"float\\\",\\\"flock\\\",\\\"flogging\\\",\\\"flop\\\",\\\"floral\\\",\\\"florist\\\",\\\"floss\\\",\\\"flounder\\\",\\\"flyable\\\",\\\"flyaway\\\",\\\"flyer\\\",\\\"flying\\\",\\\"flyover\\\",\\\"flypaper\\\",\\\"foam\\\",\\\"foe\\\",\\\"fog\\\",\\\"foil\\\",\\\"folic\\\",\\\"folk\\\",\\\"follicle\\\",\\\"follow\\\",\\\"fondling\\\",\\\"fondly\\\",\\\"fondness\\\",\\\"fondue\\\",\\\"font\\\",\\\"food\\\",\\\"fool\\\",\\\"footage\\\",\\\"football\\\",\\\"footbath\\\",\\\"footboard\\\",\\\"footer\\\",\\\"footgear\\\",\\\"foothill\\\",\\\"foothold\\\",\\\"footing\\\",\\\"footless\\\",\\\"footman\\\",\\\"footnote\\\",\\\"footpad\\\",\\\"footpath\\\",\\\"footprint\\\",\\\"footrest\\\",\\\"footsie\\\",\\\"footsore\\\",\\\"footwear\\\",\\\"footwork\\\",\\\"fossil\\\",\\\"foster\\\",\\\"founder\\\",\\\"founding\\\",\\\"fountain\\\",\\\"fox\\\",\\\"foyer\\\",\\\"fraction\\\",\\\"fracture\\\",\\\"fragile\\\",\\\"fragility\\\",\\\"fragment\\\",\\\"fragrance\\\",\\\"fragrant\\\",\\\"frail\\\",\\\"frame\\\",\\\"framing\\\",\\\"frantic\\\",\\\"fraternal\\\",\\\"frayed\\\",\\\"fraying\\\",\\\"frays\\\",\\\"freckled\\\",\\\"freckles\\\",\\\"freebase\\\",\\\"freebee\\\",\\\"freebie\\\",\\\"freedom\\\",\\\"freefall\\\",\\\"freehand\\\",\\\"freeing\\\",\\\"freeload\\\",\\\"freely\\\",\\\"freemason\\\",\\\"freeness\\\",\\\"freestyle\\\",\\\"freeware\\\",\\\"freeway\\\",\\\"freewill\\\",\\\"freezable\\\",\\\"freezing\\\",\\\"freight\\\",\\\"french\\\",\\\"frenzied\\\",\\\"frenzy\\\",\\\"frequency\\\",\\\"frequent\\\",\\\"fresh\\\",\\\"fretful\\\",\\\"fretted\\\",\\\"friction\\\",\\\"friday\\\",\\\"fridge\\\",\\\"fried\\\",\\\"friend\\\",\\\"frighten\\\",\\\"frightful\\\",\\\"frigidity\\\",\\\"frigidly\\\",\\\"frill\\\",\\\"fringe\\\",\\\"frisbee\\\",\\\"frisk\\\",\\\"fritter\\\",\\\"frivolous\\\",\\\"frolic\\\",\\\"from\\\",\\\"front\\\",\\\"frostbite\\\",\\\"frosted\\\",\\\"frostily\\\",\\\"frosting\\\",\\\"frostlike\\\",\\\"frosty\\\",\\\"froth\\\",\\\"frown\\\",\\\"frozen\\\",\\\"fructose\\\",\\\"frugality\\\",\\\"frugally\\\",\\\"fruit\\\",\\\"frustrate\\\",\\\"frying\\\",\\\"gab\\\",\\\"gaffe\\\",\\\"gag\\\",\\\"gainfully\\\",\\\"gaining\\\",\\\"gains\\\",\\\"gala\\\",\\\"gallantly\\\",\\\"galleria\\\",\\\"gallery\\\",\\\"galley\\\",\\\"gallon\\\",\\\"gallows\\\",\\\"gallstone\\\",\\\"galore\\\",\\\"galvanize\\\",\\\"gambling\\\",\\\"game\\\",\\\"gaming\\\",\\\"gamma\\\",\\\"gander\\\",\\\"gangly\\\",\\\"gangrene\\\",\\\"gangway\\\",\\\"gap\\\",\\\"garage\\\",\\\"garbage\\\",\\\"garden\\\",\\\"gargle\\\",\\\"garland\\\",\\\"garlic\\\",\\\"garment\\\",\\\"garnet\\\",\\\"garnish\\\",\\\"garter\\\",\\\"gas\\\",\\\"gatherer\\\",\\\"gathering\\\",\\\"gating\\\",\\\"gauging\\\",\\\"gauntlet\\\",\\\"gauze\\\",\\\"gave\\\",\\\"gawk\\\",\\\"gazing\\\",\\\"gear\\\",\\\"gecko\\\",\\\"geek\\\",\\\"geiger\\\",\\\"gem\\\",\\\"gender\\\",\\\"generic\\\",\\\"generous\\\",\\\"genetics\\\",\\\"genre\\\",\\\"gentile\\\",\\\"gentleman\\\",\\\"gently\\\",\\\"gents\\\",\\\"geography\\\",\\\"geologic\\\",\\\"geologist\\\",\\\"geology\\\",\\\"geometric\\\",\\\"geometry\\\",\\\"geranium\\\",\\\"gerbil\\\",\\\"geriatric\\\",\\\"germicide\\\",\\\"germinate\\\",\\\"germless\\\",\\\"germproof\\\",\\\"gestate\\\",\\\"gestation\\\",\\\"gesture\\\",\\\"getaway\\\",\\\"getting\\\",\\\"getup\\\",\\\"giant\\\",\\\"gibberish\\\",\\\"giblet\\\",\\\"giddily\\\",\\\"giddiness\\\",\\\"giddy\\\",\\\"gift\\\",\\\"gigabyte\\\",\\\"gigahertz\\\",\\\"gigantic\\\",\\\"giggle\\\",\\\"giggling\\\",\\\"giggly\\\",\\\"gigolo\\\",\\\"gilled\\\",\\\"gills\\\",\\\"gimmick\\\",\\\"girdle\\\",\\\"giveaway\\\",\\\"given\\\",\\\"giver\\\",\\\"giving\\\",\\\"gizmo\\\",\\\"gizzard\\\",\\\"glacial\\\",\\\"glacier\\\",\\\"glade\\\",\\\"gladiator\\\",\\\"gladly\\\",\\\"glamorous\\\",\\\"glamour\\\",\\\"glance\\\",\\\"glancing\\\",\\\"glandular\\\",\\\"glare\\\",\\\"glaring\\\",\\\"glass\\\",\\\"glaucoma\\\",\\\"glazing\\\",\\\"gleaming\\\",\\\"gleeful\\\",\\\"glider\\\",\\\"gliding\\\",\\\"glimmer\\\",\\\"glimpse\\\",\\\"glisten\\\",\\\"glitch\\\",\\\"glitter\\\",\\\"glitzy\\\",\\\"gloater\\\",\\\"gloating\\\",\\\"gloomily\\\",\\\"gloomy\\\",\\\"glorified\\\",\\\"glorifier\\\",\\\"glorify\\\",\\\"glorious\\\",\\\"glory\\\",\\\"gloss\\\",\\\"glove\\\",\\\"glowing\\\",\\\"glowworm\\\",\\\"glucose\\\",\\\"glue\\\",\\\"gluten\\\",\\\"glutinous\\\",\\\"glutton\\\",\\\"gnarly\\\",\\\"gnat\\\",\\\"goal\\\",\\\"goatskin\\\",\\\"goes\\\",\\\"goggles\\\",\\\"going\\\",\\\"goldfish\\\",\\\"goldmine\\\",\\\"goldsmith\\\",\\\"golf\\\",\\\"goliath\\\",\\\"gonad\\\",\\\"gondola\\\",\\\"gone\\\",\\\"gong\\\",\\\"good\\\",\\\"gooey\\\",\\\"goofball\\\",\\\"goofiness\\\",\\\"goofy\\\",\\\"google\\\",\\\"goon\\\",\\\"gopher\\\",\\\"gore\\\",\\\"gorged\\\",\\\"gorgeous\\\",\\\"gory\\\",\\\"gosling\\\",\\\"gossip\\\",\\\"gothic\\\",\\\"gotten\\\",\\\"gout\\\",\\\"gown\\\",\\\"grab\\\",\\\"graceful\\\",\\\"graceless\\\",\\\"gracious\\\",\\\"gradation\\\",\\\"graded\\\",\\\"grader\\\",\\\"gradient\\\",\\\"grading\\\",\\\"gradually\\\",\\\"graduate\\\",\\\"graffiti\\\",\\\"grafted\\\",\\\"grafting\\\",\\\"grain\\\",\\\"granddad\\\",\\\"grandkid\\\",\\\"grandly\\\",\\\"grandma\\\",\\\"grandpa\\\",\\\"grandson\\\",\\\"granite\\\",\\\"granny\\\",\\\"granola\\\",\\\"grant\\\",\\\"granular\\\",\\\"grape\\\",\\\"graph\\\",\\\"grapple\\\",\\\"grappling\\\",\\\"grasp\\\",\\\"grass\\\",\\\"gratified\\\",\\\"gratify\\\",\\\"grating\\\",\\\"gratitude\\\",\\\"gratuity\\\",\\\"gravel\\\",\\\"graveness\\\",\\\"graves\\\",\\\"graveyard\\\",\\\"gravitate\\\",\\\"gravity\\\",\\\"gravy\\\",\\\"gray\\\",\\\"grazing\\\",\\\"greasily\\\",\\\"greedily\\\",\\\"greedless\\\",\\\"greedy\\\",\\\"green\\\",\\\"greeter\\\",\\\"greeting\\\",\\\"grew\\\",\\\"greyhound\\\",\\\"grid\\\",\\\"grief\\\",\\\"grievance\\\",\\\"grieving\\\",\\\"grievous\\\",\\\"grill\\\",\\\"grimace\\\",\\\"grimacing\\\",\\\"grime\\\",\\\"griminess\\\",\\\"grimy\\\",\\\"grinch\\\",\\\"grinning\\\",\\\"grip\\\",\\\"gristle\\\",\\\"grit\\\",\\\"groggily\\\",\\\"groggy\\\",\\\"groin\\\",\\\"groom\\\",\\\"groove\\\",\\\"grooving\\\",\\\"groovy\\\",\\\"grope\\\",\\\"ground\\\",\\\"grouped\\\",\\\"grout\\\",\\\"grove\\\",\\\"grower\\\",\\\"growing\\\",\\\"growl\\\",\\\"grub\\\",\\\"grudge\\\",\\\"grudging\\\",\\\"grueling\\\",\\\"gruffly\\\",\\\"grumble\\\",\\\"grumbling\\\",\\\"grumbly\\\",\\\"grumpily\\\",\\\"grunge\\\",\\\"grunt\\\",\\\"guacamole\\\",\\\"guidable\\\",\\\"guidance\\\",\\\"guide\\\",\\\"guiding\\\",\\\"guileless\\\",\\\"guise\\\",\\\"gulf\\\",\\\"gullible\\\",\\\"gully\\\",\\\"gulp\\\",\\\"gumball\\\",\\\"gumdrop\\\",\\\"gumminess\\\",\\\"gumming\\\",\\\"gummy\\\",\\\"gurgle\\\",\\\"gurgling\\\",\\\"guru\\\",\\\"gush\\\",\\\"gusto\\\",\\\"gusty\\\",\\\"gutless\\\",\\\"guts\\\",\\\"gutter\\\",\\\"guy\\\",\\\"guzzler\\\",\\\"gyration\\\",\\\"habitable\\\",\\\"habitant\\\",\\\"habitat\\\",\\\"habitual\\\",\\\"hacked\\\",\\\"hacker\\\",\\\"hacking\\\",\\\"hacksaw\\\",\\\"had\\\",\\\"haggler\\\",\\\"haiku\\\",\\\"half\\\",\\\"halogen\\\",\\\"halt\\\",\\\"halved\\\",\\\"halves\\\",\\\"hamburger\\\",\\\"hamlet\\\",\\\"hammock\\\",\\\"hamper\\\",\\\"hamster\\\",\\\"hamstring\\\",\\\"handbag\\\",\\\"handball\\\",\\\"handbook\\\",\\\"handbrake\\\",\\\"handcart\\\",\\\"handclap\\\",\\\"handclasp\\\",\\\"handcraft\\\",\\\"handcuff\\\",\\\"handed\\\",\\\"handful\\\",\\\"handgrip\\\",\\\"handgun\\\",\\\"handheld\\\",\\\"handiness\\\",\\\"handiwork\\\",\\\"handlebar\\\",\\\"handled\\\",\\\"handler\\\",\\\"handling\\\",\\\"handmade\\\",\\\"handoff\\\",\\\"handpick\\\",\\\"handprint\\\",\\\"handrail\\\",\\\"handsaw\\\",\\\"handset\\\",\\\"handsfree\\\",\\\"handshake\\\",\\\"handstand\\\",\\\"handwash\\\",\\\"handwork\\\",\\\"handwoven\\\",\\\"handwrite\\\",\\\"handyman\\\",\\\"hangnail\\\",\\\"hangout\\\",\\\"hangover\\\",\\\"hangup\\\",\\\"hankering\\\",\\\"hankie\\\",\\\"hanky\\\",\\\"haphazard\\\",\\\"happening\\\",\\\"happier\\\",\\\"happiest\\\",\\\"happily\\\",\\\"happiness\\\",\\\"happy\\\",\\\"harbor\\\",\\\"hardcopy\\\",\\\"hardcore\\\",\\\"hardcover\\\",\\\"harddisk\\\",\\\"hardened\\\",\\\"hardener\\\",\\\"hardening\\\",\\\"hardhat\\\",\\\"hardhead\\\",\\\"hardiness\\\",\\\"hardly\\\",\\\"hardness\\\",\\\"hardship\\\",\\\"hardware\\\",\\\"hardwired\\\",\\\"hardwood\\\",\\\"hardy\\\",\\\"harmful\\\",\\\"harmless\\\",\\\"harmonica\\\",\\\"harmonics\\\",\\\"harmonize\\\",\\\"harmony\\\",\\\"harness\\\",\\\"harpist\\\",\\\"harsh\\\",\\\"harvest\\\",\\\"hash\\\",\\\"hassle\\\",\\\"haste\\\",\\\"hastily\\\",\\\"hastiness\\\",\\\"hasty\\\",\\\"hatbox\\\",\\\"hatchback\\\",\\\"hatchery\\\",\\\"hatchet\\\",\\\"hatching\\\",\\\"hatchling\\\",\\\"hate\\\",\\\"hatless\\\",\\\"hatred\\\",\\\"haunt\\\",\\\"haven\\\",\\\"hazard\\\",\\\"hazelnut\\\",\\\"hazily\\\",\\\"haziness\\\",\\\"hazing\\\",\\\"hazy\\\",\\\"headache\\\",\\\"headband\\\",\\\"headboard\\\",\\\"headcount\\\",\\\"headdress\\\",\\\"headed\\\",\\\"header\\\",\\\"headfirst\\\",\\\"headgear\\\",\\\"heading\\\",\\\"headlamp\\\",\\\"headless\\\",\\\"headlock\\\",\\\"headphone\\\",\\\"headpiece\\\",\\\"headrest\\\",\\\"headroom\\\",\\\"headscarf\\\",\\\"headset\\\",\\\"headsman\\\",\\\"headstand\\\",\\\"headstone\\\",\\\"headway\\\",\\\"headwear\\\",\\\"heap\\\",\\\"heat\\\",\\\"heave\\\",\\\"heavily\\\",\\\"heaviness\\\",\\\"heaving\\\",\\\"hedge\\\",\\\"hedging\\\",\\\"heftiness\\\",\\\"hefty\\\",\\\"helium\\\",\\\"helmet\\\",\\\"helper\\\",\\\"helpful\\\",\\\"helping\\\",\\\"helpless\\\",\\\"helpline\\\",\\\"hemlock\\\",\\\"hemstitch\\\",\\\"hence\\\",\\\"henchman\\\",\\\"henna\\\",\\\"herald\\\",\\\"herbal\\\",\\\"herbicide\\\",\\\"herbs\\\",\\\"heritage\\\",\\\"hermit\\\",\\\"heroics\\\",\\\"heroism\\\",\\\"herring\\\",\\\"herself\\\",\\\"hertz\\\",\\\"hesitancy\\\",\\\"hesitant\\\",\\\"hesitate\\\",\\\"hexagon\\\",\\\"hexagram\\\",\\\"hubcap\\\",\\\"huddle\\\",\\\"huddling\\\",\\\"huff\\\",\\\"hug\\\",\\\"hula\\\",\\\"hulk\\\",\\\"hull\\\",\\\"human\\\",\\\"humble\\\",\\\"humbling\\\",\\\"humbly\\\",\\\"humid\\\",\\\"humiliate\\\",\\\"humility\\\",\\\"humming\\\",\\\"hummus\\\",\\\"humongous\\\",\\\"humorist\\\",\\\"humorless\\\",\\\"humorous\\\",\\\"humpback\\\",\\\"humped\\\",\\\"humvee\\\",\\\"hunchback\\\",\\\"hundredth\\\",\\\"hunger\\\",\\\"hungrily\\\",\\\"hungry\\\",\\\"hunk\\\",\\\"hunter\\\",\\\"hunting\\\",\\\"huntress\\\",\\\"huntsman\\\",\\\"hurdle\\\",\\\"hurled\\\",\\\"hurler\\\",\\\"hurling\\\",\\\"hurray\\\",\\\"hurricane\\\",\\\"hurried\\\",\\\"hurry\\\",\\\"hurt\\\",\\\"husband\\\",\\\"hush\\\",\\\"husked\\\",\\\"huskiness\\\",\\\"hut\\\",\\\"hybrid\\\",\\\"hydrant\\\",\\\"hydrated\\\",\\\"hydration\\\",\\\"hydrogen\\\",\\\"hydroxide\\\",\\\"hyperlink\\\",\\\"hypertext\\\",\\\"hyphen\\\",\\\"hypnoses\\\",\\\"hypnosis\\\",\\\"hypnotic\\\",\\\"hypnotism\\\",\\\"hypnotist\\\",\\\"hypnotize\\\",\\\"hypocrisy\\\",\\\"hypocrite\\\",\\\"ibuprofen\\\",\\\"ice\\\",\\\"iciness\\\",\\\"icing\\\",\\\"icky\\\",\\\"icon\\\",\\\"icy\\\",\\\"idealism\\\",\\\"idealist\\\",\\\"idealize\\\",\\\"ideally\\\",\\\"idealness\\\",\\\"identical\\\",\\\"identify\\\",\\\"identity\\\",\\\"ideology\\\",\\\"idiocy\\\",\\\"idiom\\\",\\\"idly\\\",\\\"igloo\\\",\\\"ignition\\\",\\\"ignore\\\",\\\"iguana\\\",\\\"illicitly\\\",\\\"illusion\\\",\\\"illusive\\\",\\\"image\\\",\\\"imaginary\\\",\\\"imagines\\\",\\\"imaging\\\",\\\"imbecile\\\",\\\"imitate\\\",\\\"imitation\\\",\\\"immature\\\",\\\"immerse\\\",\\\"immersion\\\",\\\"imminent\\\",\\\"immobile\\\",\\\"immodest\\\",\\\"immorally\\\",\\\"immortal\\\",\\\"immovable\\\",\\\"immovably\\\",\\\"immunity\\\",\\\"immunize\\\",\\\"impaired\\\",\\\"impale\\\",\\\"impart\\\",\\\"impatient\\\",\\\"impeach\\\",\\\"impeding\\\",\\\"impending\\\",\\\"imperfect\\\",\\\"imperial\\\",\\\"impish\\\",\\\"implant\\\",\\\"implement\\\",\\\"implicate\\\",\\\"implicit\\\",\\\"implode\\\",\\\"implosion\\\",\\\"implosive\\\",\\\"imply\\\",\\\"impolite\\\",\\\"important\\\",\\\"importer\\\",\\\"impose\\\",\\\"imposing\\\",\\\"impotence\\\",\\\"impotency\\\",\\\"impotent\\\",\\\"impound\\\",\\\"imprecise\\\",\\\"imprint\\\",\\\"imprison\\\",\\\"impromptu\\\",\\\"improper\\\",\\\"improve\\\",\\\"improving\\\",\\\"improvise\\\",\\\"imprudent\\\",\\\"impulse\\\",\\\"impulsive\\\",\\\"impure\\\",\\\"impurity\\\",\\\"iodine\\\",\\\"iodize\\\",\\\"ion\\\",\\\"ipad\\\",\\\"iphone\\\",\\\"ipod\\\",\\\"irate\\\",\\\"irk\\\",\\\"iron\\\",\\\"irregular\\\",\\\"irrigate\\\",\\\"irritable\\\",\\\"irritably\\\",\\\"irritant\\\",\\\"irritate\\\",\\\"islamic\\\",\\\"islamist\\\",\\\"isolated\\\",\\\"isolating\\\",\\\"isolation\\\",\\\"isotope\\\",\\\"issue\\\",\\\"issuing\\\",\\\"italicize\\\",\\\"italics\\\",\\\"item\\\",\\\"itinerary\\\",\\\"itunes\\\",\\\"ivory\\\",\\\"ivy\\\",\\\"jab\\\",\\\"jackal\\\",\\\"jacket\\\",\\\"jackknife\\\",\\\"jackpot\\\",\\\"jailbird\\\",\\\"jailbreak\\\",\\\"jailer\\\",\\\"jailhouse\\\",\\\"jalapeno\\\",\\\"jam\\\",\\\"janitor\\\",\\\"january\\\",\\\"jargon\\\",\\\"jarring\\\",\\\"jasmine\\\",\\\"jaundice\\\",\\\"jaunt\\\",\\\"java\\\",\\\"jawed\\\",\\\"jawless\\\",\\\"jawline\\\",\\\"jaws\\\",\\\"jaybird\\\",\\\"jaywalker\\\",\\\"jazz\\\",\\\"jeep\\\",\\\"jeeringly\\\",\\\"jellied\\\",\\\"jelly\\\",\\\"jersey\\\",\\\"jester\\\",\\\"jet\\\",\\\"jiffy\\\",\\\"jigsaw\\\",\\\"jimmy\\\",\\\"jingle\\\",\\\"jingling\\\",\\\"jinx\\\",\\\"jitters\\\",\\\"jittery\\\",\\\"job\\\",\\\"jockey\\\",\\\"jockstrap\\\",\\\"jogger\\\",\\\"jogging\\\",\\\"john\\\",\\\"joining\\\",\\\"jokester\\\",\\\"jokingly\\\",\\\"jolliness\\\",\\\"jolly\\\",\\\"jolt\\\",\\\"jot\\\",\\\"jovial\\\",\\\"joyfully\\\",\\\"joylessly\\\",\\\"joyous\\\",\\\"joyride\\\",\\\"joystick\\\",\\\"jubilance\\\",\\\"jubilant\\\",\\\"judge\\\",\\\"judgingly\\\",\\\"judicial\\\",\\\"judiciary\\\",\\\"judo\\\",\\\"juggle\\\",\\\"juggling\\\",\\\"jugular\\\",\\\"juice\\\",\\\"juiciness\\\",\\\"juicy\\\",\\\"jujitsu\\\",\\\"jukebox\\\",\\\"july\\\",\\\"jumble\\\",\\\"jumbo\\\",\\\"jump\\\",\\\"junction\\\",\\\"juncture\\\",\\\"june\\\",\\\"junior\\\",\\\"juniper\\\",\\\"junkie\\\",\\\"junkman\\\",\\\"junkyard\\\",\\\"jurist\\\",\\\"juror\\\",\\\"jury\\\",\\\"justice\\\",\\\"justifier\\\",\\\"justify\\\",\\\"justly\\\",\\\"justness\\\",\\\"juvenile\\\",\\\"kabob\\\",\\\"kangaroo\\\",\\\"karaoke\\\",\\\"karate\\\",\\\"karma\\\",\\\"kebab\\\",\\\"keenly\\\",\\\"keenness\\\",\\\"keep\\\",\\\"keg\\\",\\\"kelp\\\",\\\"kennel\\\",\\\"kept\\\",\\\"kerchief\\\",\\\"kerosene\\\",\\\"kettle\\\",\\\"kick\\\",\\\"kiln\\\",\\\"kilobyte\\\",\\\"kilogram\\\",\\\"kilometer\\\",\\\"kilowatt\\\",\\\"kilt\\\",\\\"kimono\\\",\\\"kindle\\\",\\\"kindling\\\",\\\"kindly\\\",\\\"kindness\\\",\\\"kindred\\\",\\\"kinetic\\\",\\\"kinfolk\\\",\\\"king\\\",\\\"kinship\\\",\\\"kinsman\\\",\\\"kinswoman\\\",\\\"kissable\\\",\\\"kisser\\\",\\\"kissing\\\",\\\"kitchen\\\",\\\"kite\\\",\\\"kitten\\\",\\\"kitty\\\",\\\"kiwi\\\",\\\"kleenex\\\",\\\"knapsack\\\",\\\"knee\\\",\\\"knelt\\\",\\\"knickers\\\",\\\"knoll\\\",\\\"koala\\\",\\\"kooky\\\",\\\"kosher\\\",\\\"krypton\\\",\\\"kudos\\\",\\\"kung\\\",\\\"labored\\\",\\\"laborer\\\",\\\"laboring\\\",\\\"laborious\\\",\\\"labrador\\\",\\\"ladder\\\",\\\"ladies\\\",\\\"ladle\\\",\\\"ladybug\\\",\\\"ladylike\\\",\\\"lagged\\\",\\\"lagging\\\",\\\"lagoon\\\",\\\"lair\\\",\\\"lake\\\",\\\"lance\\\",\\\"landed\\\",\\\"landfall\\\",\\\"landfill\\\",\\\"landing\\\",\\\"landlady\\\",\\\"landless\\\",\\\"landline\\\",\\\"landlord\\\",\\\"landmark\\\",\\\"landmass\\\",\\\"landmine\\\",\\\"landowner\\\",\\\"landscape\\\",\\\"landside\\\",\\\"landslide\\\",\\\"language\\\",\\\"lankiness\\\",\\\"lanky\\\",\\\"lantern\\\",\\\"lapdog\\\",\\\"lapel\\\",\\\"lapped\\\",\\\"lapping\\\",\\\"laptop\\\",\\\"lard\\\",\\\"large\\\",\\\"lark\\\",\\\"lash\\\",\\\"lasso\\\",\\\"last\\\",\\\"latch\\\",\\\"late\\\",\\\"lather\\\",\\\"latitude\\\",\\\"latrine\\\",\\\"latter\\\",\\\"latticed\\\",\\\"launch\\\",\\\"launder\\\",\\\"laundry\\\",\\\"laurel\\\",\\\"lavender\\\",\\\"lavish\\\",\\\"laxative\\\",\\\"lazily\\\",\\\"laziness\\\",\\\"lazy\\\",\\\"lecturer\\\",\\\"left\\\",\\\"legacy\\\",\\\"legal\\\",\\\"legend\\\",\\\"legged\\\",\\\"leggings\\\",\\\"legible\\\",\\\"legibly\\\",\\\"legislate\\\",\\\"lego\\\",\\\"legroom\\\",\\\"legume\\\",\\\"legwarmer\\\",\\\"legwork\\\",\\\"lemon\\\",\\\"lend\\\",\\\"length\\\",\\\"lens\\\",\\\"lent\\\",\\\"leotard\\\",\\\"lesser\\\",\\\"letdown\\\",\\\"lethargic\\\",\\\"lethargy\\\",\\\"letter\\\",\\\"lettuce\\\",\\\"level\\\",\\\"leverage\\\",\\\"levers\\\",\\\"levitate\\\",\\\"levitator\\\",\\\"liability\\\",\\\"liable\\\",\\\"liberty\\\",\\\"librarian\\\",\\\"library\\\",\\\"licking\\\",\\\"licorice\\\",\\\"lid\\\",\\\"life\\\",\\\"lifter\\\",\\\"lifting\\\",\\\"liftoff\\\",\\\"ligament\\\",\\\"likely\\\",\\\"likeness\\\",\\\"likewise\\\",\\\"liking\\\",\\\"lilac\\\",\\\"lilly\\\",\\\"lily\\\",\\\"limb\\\",\\\"limeade\\\",\\\"limelight\\\",\\\"limes\\\",\\\"limit\\\",\\\"limping\\\",\\\"limpness\\\",\\\"line\\\",\\\"lingo\\\",\\\"linguini\\\",\\\"linguist\\\",\\\"lining\\\",\\\"linked\\\",\\\"linoleum\\\",\\\"linseed\\\",\\\"lint\\\",\\\"lion\\\",\\\"lip\\\",\\\"liquefy\\\",\\\"liqueur\\\",\\\"liquid\\\",\\\"lisp\\\",\\\"list\\\",\\\"litigate\\\",\\\"litigator\\\",\\\"litmus\\\",\\\"litter\\\",\\\"little\\\",\\\"livable\\\",\\\"lived\\\",\\\"lively\\\",\\\"liver\\\",\\\"livestock\\\",\\\"lividly\\\",\\\"living\\\",\\\"lizard\\\",\\\"lubricant\\\",\\\"lubricate\\\",\\\"lucid\\\",\\\"luckily\\\",\\\"luckiness\\\",\\\"luckless\\\",\\\"lucrative\\\",\\\"ludicrous\\\",\\\"lugged\\\",\\\"lukewarm\\\",\\\"lullaby\\\",\\\"lumber\\\",\\\"luminance\\\",\\\"luminous\\\",\\\"lumpiness\\\",\\\"lumping\\\",\\\"lumpish\\\",\\\"lunacy\\\",\\\"lunar\\\",\\\"lunchbox\\\",\\\"luncheon\\\",\\\"lunchroom\\\",\\\"lunchtime\\\",\\\"lung\\\",\\\"lurch\\\",\\\"lure\\\",\\\"luridness\\\",\\\"lurk\\\",\\\"lushly\\\",\\\"lushness\\\",\\\"luster\\\",\\\"lustfully\\\",\\\"lustily\\\",\\\"lustiness\\\",\\\"lustrous\\\",\\\"lusty\\\",\\\"luxurious\\\",\\\"luxury\\\",\\\"lying\\\",\\\"lyrically\\\",\\\"lyricism\\\",\\\"lyricist\\\",\\\"lyrics\\\",\\\"macarena\\\",\\\"macaroni\\\",\\\"macaw\\\",\\\"mace\\\",\\\"machine\\\",\\\"machinist\\\",\\\"magazine\\\",\\\"magenta\\\",\\\"maggot\\\",\\\"magical\\\",\\\"magician\\\",\\\"magma\\\",\\\"magnesium\\\",\\\"magnetic\\\",\\\"magnetism\\\",\\\"magnetize\\\",\\\"magnifier\\\",\\\"magnify\\\",\\\"magnitude\\\",\\\"magnolia\\\",\\\"mahogany\\\",\\\"maimed\\\",\\\"majestic\\\",\\\"majesty\\\",\\\"majorette\\\",\\\"majority\\\",\\\"makeover\\\",\\\"maker\\\",\\\"makeshift\\\",\\\"making\\\",\\\"malformed\\\",\\\"malt\\\",\\\"mama\\\",\\\"mammal\\\",\\\"mammary\\\",\\\"mammogram\\\",\\\"manager\\\",\\\"managing\\\",\\\"manatee\\\",\\\"mandarin\\\",\\\"mandate\\\",\\\"mandatory\\\",\\\"mandolin\\\",\\\"manger\\\",\\\"mangle\\\",\\\"mango\\\",\\\"mangy\\\",\\\"manhandle\\\",\\\"manhole\\\",\\\"manhood\\\",\\\"manhunt\\\",\\\"manicotti\\\",\\\"manicure\\\",\\\"manifesto\\\",\\\"manila\\\",\\\"mankind\\\",\\\"manlike\\\",\\\"manliness\\\",\\\"manly\\\",\\\"manmade\\\",\\\"manned\\\",\\\"mannish\\\",\\\"manor\\\",\\\"manpower\\\",\\\"mantis\\\",\\\"mantra\\\",\\\"manual\\\",\\\"many\\\",\\\"map\\\",\\\"marathon\\\",\\\"marauding\\\",\\\"marbled\\\",\\\"marbles\\\",\\\"marbling\\\",\\\"march\\\",\\\"mardi\\\",\\\"margarine\\\",\\\"margarita\\\",\\\"margin\\\",\\\"marigold\\\",\\\"marina\\\",\\\"marine\\\",\\\"marital\\\",\\\"maritime\\\",\\\"marlin\\\",\\\"marmalade\\\",\\\"maroon\\\",\\\"married\\\",\\\"marrow\\\",\\\"marry\\\",\\\"marshland\\\",\\\"marshy\\\",\\\"marsupial\\\",\\\"marvelous\\\",\\\"marxism\\\",\\\"mascot\\\",\\\"masculine\\\",\\\"mashed\\\",\\\"mashing\\\",\\\"massager\\\",\\\"masses\\\",\\\"massive\\\",\\\"mastiff\\\",\\\"matador\\\",\\\"matchbook\\\",\\\"matchbox\\\",\\\"matcher\\\",\\\"matching\\\",\\\"matchless\\\",\\\"material\\\",\\\"maternal\\\",\\\"maternity\\\",\\\"math\\\",\\\"mating\\\",\\\"matriarch\\\",\\\"matrimony\\\",\\\"matrix\\\",\\\"matron\\\",\\\"matted\\\",\\\"matter\\\",\\\"maturely\\\",\\\"maturing\\\",\\\"maturity\\\",\\\"mauve\\\",\\\"maverick\\\",\\\"maximize\\\",\\\"maximum\\\",\\\"maybe\\\",\\\"mayday\\\",\\\"mayflower\\\",\\\"moaner\\\",\\\"moaning\\\",\\\"mobile\\\",\\\"mobility\\\",\\\"mobilize\\\",\\\"mobster\\\",\\\"mocha\\\",\\\"mocker\\\",\\\"mockup\\\",\\\"modified\\\",\\\"modify\\\",\\\"modular\\\",\\\"modulator\\\",\\\"module\\\",\\\"moisten\\\",\\\"moistness\\\",\\\"moisture\\\",\\\"molar\\\",\\\"molasses\\\",\\\"mold\\\",\\\"molecular\\\",\\\"molecule\\\",\\\"molehill\\\",\\\"mollusk\\\",\\\"mom\\\",\\\"monastery\\\",\\\"monday\\\",\\\"monetary\\\",\\\"monetize\\\",\\\"moneybags\\\",\\\"moneyless\\\",\\\"moneywise\\\",\\\"mongoose\\\",\\\"mongrel\\\",\\\"monitor\\\",\\\"monkhood\\\",\\\"monogamy\\\",\\\"monogram\\\",\\\"monologue\\\",\\\"monopoly\\\",\\\"monorail\\\",\\\"monotone\\\",\\\"monotype\\\",\\\"monoxide\\\",\\\"monsieur\\\",\\\"monsoon\\\",\\\"monstrous\\\",\\\"monthly\\\",\\\"monument\\\",\\\"moocher\\\",\\\"moodiness\\\",\\\"moody\\\",\\\"mooing\\\",\\\"moonbeam\\\",\\\"mooned\\\",\\\"moonlight\\\",\\\"moonlike\\\",\\\"moonlit\\\",\\\"moonrise\\\",\\\"moonscape\\\",\\\"moonshine\\\",\\\"moonstone\\\",\\\"moonwalk\\\",\\\"mop\\\",\\\"morale\\\",\\\"morality\\\",\\\"morally\\\",\\\"morbidity\\\",\\\"morbidly\\\",\\\"morphine\\\",\\\"morphing\\\",\\\"morse\\\",\\\"mortality\\\",\\\"mortally\\\",\\\"mortician\\\",\\\"mortified\\\",\\\"mortify\\\",\\\"mortuary\\\",\\\"mosaic\\\",\\\"mossy\\\",\\\"most\\\",\\\"mothball\\\",\\\"mothproof\\\",\\\"motion\\\",\\\"motivate\\\",\\\"motivator\\\",\\\"motive\\\",\\\"motocross\\\",\\\"motor\\\",\\\"motto\\\",\\\"mountable\\\",\\\"mountain\\\",\\\"mounted\\\",\\\"mounting\\\",\\\"mourner\\\",\\\"mournful\\\",\\\"mouse\\\",\\\"mousiness\\\",\\\"moustache\\\",\\\"mousy\\\",\\\"mouth\\\",\\\"movable\\\",\\\"move\\\",\\\"movie\\\",\\\"moving\\\",\\\"mower\\\",\\\"mowing\\\",\\\"much\\\",\\\"muck\\\",\\\"mud\\\",\\\"mug\\\",\\\"mulberry\\\",\\\"mulch\\\",\\\"mule\\\",\\\"mulled\\\",\\\"mullets\\\",\\\"multiple\\\",\\\"multiply\\\",\\\"multitask\\\",\\\"multitude\\\",\\\"mumble\\\",\\\"mumbling\\\",\\\"mumbo\\\",\\\"mummified\\\",\\\"mummify\\\",\\\"mummy\\\",\\\"mumps\\\",\\\"munchkin\\\",\\\"mundane\\\",\\\"municipal\\\",\\\"muppet\\\",\\\"mural\\\",\\\"murkiness\\\",\\\"murky\\\",\\\"murmuring\\\",\\\"muscular\\\",\\\"museum\\\",\\\"mushily\\\",\\\"mushiness\\\",\\\"mushroom\\\",\\\"mushy\\\",\\\"music\\\",\\\"musket\\\",\\\"muskiness\\\",\\\"musky\\\",\\\"mustang\\\",\\\"mustard\\\",\\\"muster\\\",\\\"mustiness\\\",\\\"musty\\\",\\\"mutable\\\",\\\"mutate\\\",\\\"mutation\\\",\\\"mute\\\",\\\"mutilated\\\",\\\"mutilator\\\",\\\"mutiny\\\",\\\"mutt\\\",\\\"mutual\\\",\\\"muzzle\\\",\\\"myself\\\",\\\"myspace\\\",\\\"mystified\\\",\\\"mystify\\\",\\\"myth\\\",\\\"nacho\\\",\\\"nag\\\",\\\"nail\\\",\\\"name\\\",\\\"naming\\\",\\\"nanny\\\",\\\"nanometer\\\",\\\"nape\\\",\\\"napkin\\\",\\\"napped\\\",\\\"napping\\\",\\\"nappy\\\",\\\"narrow\\\",\\\"nastily\\\",\\\"nastiness\\\",\\\"national\\\",\\\"native\\\",\\\"nativity\\\",\\\"natural\\\",\\\"nature\\\",\\\"naturist\\\",\\\"nautical\\\",\\\"navigate\\\",\\\"navigator\\\",\\\"navy\\\",\\\"nearby\\\",\\\"nearest\\\",\\\"nearly\\\",\\\"nearness\\\",\\\"neatly\\\",\\\"neatness\\\",\\\"nebula\\\",\\\"nebulizer\\\",\\\"nectar\\\",\\\"negate\\\",\\\"negation\\\",\\\"negative\\\",\\\"neglector\\\",\\\"negligee\\\",\\\"negligent\\\",\\\"negotiate\\\",\\\"nemeses\\\",\\\"nemesis\\\",\\\"neon\\\",\\\"nephew\\\",\\\"nerd\\\",\\\"nervous\\\",\\\"nervy\\\",\\\"nest\\\",\\\"net\\\",\\\"neurology\\\",\\\"neuron\\\",\\\"neurosis\\\",\\\"neurotic\\\",\\\"neuter\\\",\\\"neutron\\\",\\\"never\\\",\\\"next\\\",\\\"nibble\\\",\\\"nickname\\\",\\\"nicotine\\\",\\\"niece\\\",\\\"nifty\\\",\\\"nimble\\\",\\\"nimbly\\\",\\\"nineteen\\\",\\\"ninetieth\\\",\\\"ninja\\\",\\\"nintendo\\\",\\\"ninth\\\",\\\"nuclear\\\",\\\"nuclei\\\",\\\"nucleus\\\",\\\"nugget\\\",\\\"nullify\\\",\\\"number\\\",\\\"numbing\\\",\\\"numbly\\\",\\\"numbness\\\",\\\"numeral\\\",\\\"numerate\\\",\\\"numerator\\\",\\\"numeric\\\",\\\"numerous\\\",\\\"nuptials\\\",\\\"nursery\\\",\\\"nursing\\\",\\\"nurture\\\",\\\"nutcase\\\",\\\"nutlike\\\",\\\"nutmeg\\\",\\\"nutrient\\\",\\\"nutshell\\\",\\\"nuttiness\\\",\\\"nutty\\\",\\\"nuzzle\\\",\\\"nylon\\\",\\\"oaf\\\",\\\"oak\\\",\\\"oasis\\\",\\\"oat\\\",\\\"obedience\\\",\\\"obedient\\\",\\\"obituary\\\",\\\"object\\\",\\\"obligate\\\",\\\"obliged\\\",\\\"oblivion\\\",\\\"oblivious\\\",\\\"oblong\\\",\\\"obnoxious\\\",\\\"oboe\\\",\\\"obscure\\\",\\\"obscurity\\\",\\\"observant\\\",\\\"observer\\\",\\\"observing\\\",\\\"obsessed\\\",\\\"obsession\\\",\\\"obsessive\\\",\\\"obsolete\\\",\\\"obstacle\\\",\\\"obstinate\\\",\\\"obstruct\\\",\\\"obtain\\\",\\\"obtrusive\\\",\\\"obtuse\\\",\\\"obvious\\\",\\\"occultist\\\",\\\"occupancy\\\",\\\"occupant\\\",\\\"occupier\\\",\\\"occupy\\\",\\\"ocean\\\",\\\"ocelot\\\",\\\"octagon\\\",\\\"octane\\\",\\\"october\\\",\\\"octopus\\\",\\\"ogle\\\",\\\"oil\\\",\\\"oink\\\",\\\"ointment\\\",\\\"okay\\\",\\\"old\\\",\\\"olive\\\",\\\"olympics\\\",\\\"omega\\\",\\\"omen\\\",\\\"ominous\\\",\\\"omission\\\",\\\"omit\\\",\\\"omnivore\\\",\\\"onboard\\\",\\\"oncoming\\\",\\\"ongoing\\\",\\\"onion\\\",\\\"online\\\",\\\"onlooker\\\",\\\"only\\\",\\\"onscreen\\\",\\\"onset\\\",\\\"onshore\\\",\\\"onslaught\\\",\\\"onstage\\\",\\\"onto\\\",\\\"onward\\\",\\\"onyx\\\",\\\"oops\\\",\\\"ooze\\\",\\\"oozy\\\",\\\"opacity\\\",\\\"opal\\\",\\\"open\\\",\\\"operable\\\",\\\"operate\\\",\\\"operating\\\",\\\"operation\\\",\\\"operative\\\",\\\"operator\\\",\\\"opium\\\",\\\"opossum\\\",\\\"opponent\\\",\\\"oppose\\\",\\\"opposing\\\",\\\"opposite\\\",\\\"oppressed\\\",\\\"oppressor\\\",\\\"opt\\\",\\\"opulently\\\",\\\"osmosis\\\",\\\"other\\\",\\\"otter\\\",\\\"ouch\\\",\\\"ought\\\",\\\"ounce\\\",\\\"outage\\\",\\\"outback\\\",\\\"outbid\\\",\\\"outboard\\\",\\\"outbound\\\",\\\"outbreak\\\",\\\"outburst\\\",\\\"outcast\\\",\\\"outclass\\\",\\\"outcome\\\",\\\"outdated\\\",\\\"outdoors\\\",\\\"outer\\\",\\\"outfield\\\",\\\"outfit\\\",\\\"outflank\\\",\\\"outgoing\\\",\\\"outgrow\\\",\\\"outhouse\\\",\\\"outing\\\",\\\"outlast\\\",\\\"outlet\\\",\\\"outline\\\",\\\"outlook\\\",\\\"outlying\\\",\\\"outmatch\\\",\\\"outmost\\\",\\\"outnumber\\\",\\\"outplayed\\\",\\\"outpost\\\",\\\"outpour\\\",\\\"output\\\",\\\"outrage\\\",\\\"outrank\\\",\\\"outreach\\\",\\\"outright\\\",\\\"outscore\\\",\\\"outsell\\\",\\\"outshine\\\",\\\"outshoot\\\",\\\"outsider\\\",\\\"outskirts\\\",\\\"outsmart\\\",\\\"outsource\\\",\\\"outspoken\\\",\\\"outtakes\\\",\\\"outthink\\\",\\\"outward\\\",\\\"outweigh\\\",\\\"outwit\\\",\\\"oval\\\",\\\"ovary\\\",\\\"oven\\\",\\\"overact\\\",\\\"overall\\\",\\\"overarch\\\",\\\"overbid\\\",\\\"overbill\\\",\\\"overbite\\\",\\\"overblown\\\",\\\"overboard\\\",\\\"overbook\\\",\\\"overbuilt\\\",\\\"overcast\\\",\\\"overcoat\\\",\\\"overcome\\\",\\\"overcook\\\",\\\"overcrowd\\\",\\\"overdraft\\\",\\\"overdrawn\\\",\\\"overdress\\\",\\\"overdrive\\\",\\\"overdue\\\",\\\"overeager\\\",\\\"overeater\\\",\\\"overexert\\\",\\\"overfed\\\",\\\"overfeed\\\",\\\"overfill\\\",\\\"overflow\\\",\\\"overfull\\\",\\\"overgrown\\\",\\\"overhand\\\",\\\"overhang\\\",\\\"overhaul\\\",\\\"overhead\\\",\\\"overhear\\\",\\\"overheat\\\",\\\"overhung\\\",\\\"overjoyed\\\",\\\"overkill\\\",\\\"overlabor\\\",\\\"overlaid\\\",\\\"overlap\\\",\\\"overlay\\\",\\\"overload\\\",\\\"overlook\\\",\\\"overlord\\\",\\\"overlying\\\",\\\"overnight\\\",\\\"overpass\\\",\\\"overpay\\\",\\\"overplant\\\",\\\"overplay\\\",\\\"overpower\\\",\\\"overprice\\\",\\\"overrate\\\",\\\"overreach\\\",\\\"overreact\\\",\\\"override\\\",\\\"overripe\\\",\\\"overrule\\\",\\\"overrun\\\",\\\"overshoot\\\",\\\"overshot\\\",\\\"oversight\\\",\\\"oversized\\\",\\\"oversleep\\\",\\\"oversold\\\",\\\"overspend\\\",\\\"overstate\\\",\\\"overstay\\\",\\\"overstep\\\",\\\"overstock\\\",\\\"overstuff\\\",\\\"oversweet\\\",\\\"overtake\\\",\\\"overthrow\\\",\\\"overtime\\\",\\\"overtly\\\",\\\"overtone\\\",\\\"overture\\\",\\\"overturn\\\",\\\"overuse\\\",\\\"overvalue\\\",\\\"overview\\\",\\\"overwrite\\\",\\\"owl\\\",\\\"oxford\\\",\\\"oxidant\\\",\\\"oxidation\\\",\\\"oxidize\\\",\\\"oxidizing\\\",\\\"oxygen\\\",\\\"oxymoron\\\",\\\"oyster\\\",\\\"ozone\\\",\\\"paced\\\",\\\"pacemaker\\\",\\\"pacific\\\",\\\"pacifier\\\",\\\"pacifism\\\",\\\"pacifist\\\",\\\"pacify\\\",\\\"padded\\\",\\\"padding\\\",\\\"paddle\\\",\\\"paddling\\\",\\\"padlock\\\",\\\"pagan\\\",\\\"pager\\\",\\\"paging\\\",\\\"pajamas\\\",\\\"palace\\\",\\\"palatable\\\",\\\"palm\\\",\\\"palpable\\\",\\\"palpitate\\\",\\\"paltry\\\",\\\"pampered\\\",\\\"pamperer\\\",\\\"pampers\\\",\\\"pamphlet\\\",\\\"panama\\\",\\\"pancake\\\",\\\"pancreas\\\",\\\"panda\\\",\\\"pandemic\\\",\\\"pang\\\",\\\"panhandle\\\",\\\"panic\\\",\\\"panning\\\",\\\"panorama\\\",\\\"panoramic\\\",\\\"panther\\\",\\\"pantomime\\\",\\\"pantry\\\",\\\"pants\\\",\\\"pantyhose\\\",\\\"paparazzi\\\",\\\"papaya\\\",\\\"paper\\\",\\\"paprika\\\",\\\"papyrus\\\",\\\"parabola\\\",\\\"parachute\\\",\\\"parade\\\",\\\"paradox\\\",\\\"paragraph\\\",\\\"parakeet\\\",\\\"paralegal\\\",\\\"paralyses\\\",\\\"paralysis\\\",\\\"paralyze\\\",\\\"paramedic\\\",\\\"parameter\\\",\\\"paramount\\\",\\\"parasail\\\",\\\"parasite\\\",\\\"parasitic\\\",\\\"parcel\\\",\\\"parched\\\",\\\"parchment\\\",\\\"pardon\\\",\\\"parish\\\",\\\"parka\\\",\\\"parking\\\",\\\"parkway\\\",\\\"parlor\\\",\\\"parmesan\\\",\\\"parole\\\",\\\"parrot\\\",\\\"parsley\\\",\\\"parsnip\\\",\\\"partake\\\",\\\"parted\\\",\\\"parting\\\",\\\"partition\\\",\\\"partly\\\",\\\"partner\\\",\\\"partridge\\\",\\\"party\\\",\\\"passable\\\",\\\"passably\\\",\\\"passage\\\",\\\"passcode\\\",\\\"passenger\\\",\\\"passerby\\\",\\\"passing\\\",\\\"passion\\\",\\\"passive\\\",\\\"passivism\\\",\\\"passover\\\",\\\"passport\\\",\\\"password\\\",\\\"pasta\\\",\\\"pasted\\\",\\\"pastel\\\",\\\"pastime\\\",\\\"pastor\\\",\\\"pastrami\\\",\\\"pasture\\\",\\\"pasty\\\",\\\"patchwork\\\",\\\"patchy\\\",\\\"paternal\\\",\\\"paternity\\\",\\\"path\\\",\\\"patience\\\",\\\"patient\\\",\\\"patio\\\",\\\"patriarch\\\",\\\"patriot\\\",\\\"patrol\\\",\\\"patronage\\\",\\\"patronize\\\",\\\"pauper\\\",\\\"pavement\\\",\\\"paver\\\",\\\"pavestone\\\",\\\"pavilion\\\",\\\"paving\\\",\\\"pawing\\\",\\\"payable\\\",\\\"payback\\\",\\\"paycheck\\\",\\\"payday\\\",\\\"payee\\\",\\\"payer\\\",\\\"paying\\\",\\\"payment\\\",\\\"payphone\\\",\\\"payroll\\\",\\\"pebble\\\",\\\"pebbly\\\",\\\"pecan\\\",\\\"pectin\\\",\\\"peculiar\\\",\\\"peddling\\\",\\\"pediatric\\\",\\\"pedicure\\\",\\\"pedigree\\\",\\\"pedometer\\\",\\\"pegboard\\\",\\\"pelican\\\",\\\"pellet\\\",\\\"pelt\\\",\\\"pelvis\\\",\\\"penalize\\\",\\\"penalty\\\",\\\"pencil\\\",\\\"pendant\\\",\\\"pending\\\",\\\"penholder\\\",\\\"penknife\\\",\\\"pennant\\\",\\\"penniless\\\",\\\"penny\\\",\\\"penpal\\\",\\\"pension\\\",\\\"pentagon\\\",\\\"pentagram\\\",\\\"pep\\\",\\\"perceive\\\",\\\"percent\\\",\\\"perch\\\",\\\"percolate\\\",\\\"perennial\\\",\\\"perfected\\\",\\\"perfectly\\\",\\\"perfume\\\",\\\"periscope\\\",\\\"perish\\\",\\\"perjurer\\\",\\\"perjury\\\",\\\"perkiness\\\",\\\"perky\\\",\\\"perm\\\",\\\"peroxide\\\",\\\"perpetual\\\",\\\"perplexed\\\",\\\"persecute\\\",\\\"persevere\\\",\\\"persuaded\\\",\\\"persuader\\\",\\\"pesky\\\",\\\"peso\\\",\\\"pessimism\\\",\\\"pessimist\\\",\\\"pester\\\",\\\"pesticide\\\",\\\"petal\\\",\\\"petite\\\",\\\"petition\\\",\\\"petri\\\",\\\"petroleum\\\",\\\"petted\\\",\\\"petticoat\\\",\\\"pettiness\\\",\\\"petty\\\",\\\"petunia\\\",\\\"phantom\\\",\\\"phobia\\\",\\\"phoenix\\\",\\\"phonebook\\\",\\\"phoney\\\",\\\"phonics\\\",\\\"phoniness\\\",\\\"phony\\\",\\\"phosphate\\\",\\\"photo\\\",\\\"phrase\\\",\\\"phrasing\\\",\\\"placard\\\",\\\"placate\\\",\\\"placidly\\\",\\\"plank\\\",\\\"planner\\\",\\\"plant\\\",\\\"plasma\\\",\\\"plaster\\\",\\\"plastic\\\",\\\"plated\\\",\\\"platform\\\",\\\"plating\\\",\\\"platinum\\\",\\\"platonic\\\",\\\"platter\\\",\\\"platypus\\\",\\\"plausible\\\",\\\"plausibly\\\",\\\"playable\\\",\\\"playback\\\",\\\"player\\\",\\\"playful\\\",\\\"playgroup\\\",\\\"playhouse\\\",\\\"playing\\\",\\\"playlist\\\",\\\"playmaker\\\",\\\"playmate\\\",\\\"playoff\\\",\\\"playpen\\\",\\\"playroom\\\",\\\"playset\\\",\\\"plaything\\\",\\\"playtime\\\",\\\"plaza\\\",\\\"pleading\\\",\\\"pleat\\\",\\\"pledge\\\",\\\"plentiful\\\",\\\"plenty\\\",\\\"plethora\\\",\\\"plexiglas\\\",\\\"pliable\\\",\\\"plod\\\",\\\"plop\\\",\\\"plot\\\",\\\"plow\\\",\\\"ploy\\\",\\\"pluck\\\",\\\"plug\\\",\\\"plunder\\\",\\\"plunging\\\",\\\"plural\\\",\\\"plus\\\",\\\"plutonium\\\",\\\"plywood\\\",\\\"poach\\\",\\\"pod\\\",\\\"poem\\\",\\\"poet\\\",\\\"pogo\\\",\\\"pointed\\\",\\\"pointer\\\",\\\"pointing\\\",\\\"pointless\\\",\\\"pointy\\\",\\\"poise\\\",\\\"poison\\\",\\\"poker\\\",\\\"poking\\\",\\\"polar\\\",\\\"police\\\",\\\"policy\\\",\\\"polio\\\",\\\"polish\\\",\\\"politely\\\",\\\"polka\\\",\\\"polo\\\",\\\"polyester\\\",\\\"polygon\\\",\\\"polygraph\\\",\\\"polymer\\\",\\\"poncho\\\",\\\"pond\\\",\\\"pony\\\",\\\"popcorn\\\",\\\"pope\\\",\\\"poplar\\\",\\\"popper\\\",\\\"poppy\\\",\\\"popsicle\\\",\\\"populace\\\",\\\"popular\\\",\\\"populate\\\",\\\"porcupine\\\",\\\"pork\\\",\\\"porous\\\",\\\"porridge\\\",\\\"portable\\\",\\\"portal\\\",\\\"portfolio\\\",\\\"porthole\\\",\\\"portion\\\",\\\"portly\\\",\\\"portside\\\",\\\"poser\\\",\\\"posh\\\",\\\"posing\\\",\\\"possible\\\",\\\"possibly\\\",\\\"possum\\\",\\\"postage\\\",\\\"postal\\\",\\\"postbox\\\",\\\"postcard\\\",\\\"posted\\\",\\\"poster\\\",\\\"posting\\\",\\\"postnasal\\\",\\\"posture\\\",\\\"postwar\\\",\\\"pouch\\\",\\\"pounce\\\",\\\"pouncing\\\",\\\"pound\\\",\\\"pouring\\\",\\\"pout\\\",\\\"powdered\\\",\\\"powdering\\\",\\\"powdery\\\",\\\"power\\\",\\\"powwow\\\",\\\"pox\\\",\\\"praising\\\",\\\"prance\\\",\\\"prancing\\\",\\\"pranker\\\",\\\"prankish\\\",\\\"prankster\\\",\\\"prayer\\\",\\\"praying\\\",\\\"preacher\\\",\\\"preaching\\\",\\\"preachy\\\",\\\"preamble\\\",\\\"precinct\\\",\\\"precise\\\",\\\"precision\\\",\\\"precook\\\",\\\"precut\\\",\\\"predator\\\",\\\"predefine\\\",\\\"predict\\\",\\\"preface\\\",\\\"prefix\\\",\\\"preflight\\\",\\\"preformed\\\",\\\"pregame\\\",\\\"pregnancy\\\",\\\"pregnant\\\",\\\"preheated\\\",\\\"prelaunch\\\",\\\"prelaw\\\",\\\"prelude\\\",\\\"premiere\\\",\\\"premises\\\",\\\"premium\\\",\\\"prenatal\\\",\\\"preoccupy\\\",\\\"preorder\\\",\\\"prepaid\\\",\\\"prepay\\\",\\\"preplan\\\",\\\"preppy\\\",\\\"preschool\\\",\\\"prescribe\\\",\\\"preseason\\\",\\\"preset\\\",\\\"preshow\\\",\\\"president\\\",\\\"presoak\\\",\\\"press\\\",\\\"presume\\\",\\\"presuming\\\",\\\"preteen\\\",\\\"pretended\\\",\\\"pretender\\\",\\\"pretense\\\",\\\"pretext\\\",\\\"pretty\\\",\\\"pretzel\\\",\\\"prevail\\\",\\\"prevalent\\\",\\\"prevent\\\",\\\"preview\\\",\\\"previous\\\",\\\"prewar\\\",\\\"prewashed\\\",\\\"prideful\\\",\\\"pried\\\",\\\"primal\\\",\\\"primarily\\\",\\\"primary\\\",\\\"primate\\\",\\\"primer\\\",\\\"primp\\\",\\\"princess\\\",\\\"print\\\",\\\"prior\\\",\\\"prism\\\",\\\"prison\\\",\\\"prissy\\\",\\\"pristine\\\",\\\"privacy\\\",\\\"private\\\",\\\"privatize\\\",\\\"prize\\\",\\\"proactive\\\",\\\"probable\\\",\\\"probably\\\",\\\"probation\\\",\\\"probe\\\",\\\"probing\\\",\\\"probiotic\\\",\\\"problem\\\",\\\"procedure\\\",\\\"process\\\",\\\"proclaim\\\",\\\"procreate\\\",\\\"procurer\\\",\\\"prodigal\\\",\\\"prodigy\\\",\\\"produce\\\",\\\"product\\\",\\\"profane\\\",\\\"profanity\\\",\\\"professed\\\",\\\"professor\\\",\\\"profile\\\",\\\"profound\\\",\\\"profusely\\\",\\\"progeny\\\",\\\"prognosis\\\",\\\"program\\\",\\\"progress\\\",\\\"projector\\\",\\\"prologue\\\",\\\"prolonged\\\",\\\"promenade\\\",\\\"prominent\\\",\\\"promoter\\\",\\\"promotion\\\",\\\"prompter\\\",\\\"promptly\\\",\\\"prone\\\",\\\"prong\\\",\\\"pronounce\\\",\\\"pronto\\\",\\\"proofing\\\",\\\"proofread\\\",\\\"proofs\\\",\\\"propeller\\\",\\\"properly\\\",\\\"property\\\",\\\"proponent\\\",\\\"proposal\\\",\\\"propose\\\",\\\"props\\\",\\\"prorate\\\",\\\"protector\\\",\\\"protegee\\\",\\\"proton\\\",\\\"prototype\\\",\\\"protozoan\\\",\\\"protract\\\",\\\"protrude\\\",\\\"proud\\\",\\\"provable\\\",\\\"proved\\\",\\\"proven\\\",\\\"provided\\\",\\\"provider\\\",\\\"providing\\\",\\\"province\\\",\\\"proving\\\",\\\"provoke\\\",\\\"provoking\\\",\\\"provolone\\\",\\\"prowess\\\",\\\"prowler\\\",\\\"prowling\\\",\\\"proximity\\\",\\\"proxy\\\",\\\"prozac\\\",\\\"prude\\\",\\\"prudishly\\\",\\\"prune\\\",\\\"pruning\\\",\\\"pry\\\",\\\"psychic\\\",\\\"public\\\",\\\"publisher\\\",\\\"pucker\\\",\\\"pueblo\\\",\\\"pug\\\",\\\"pull\\\",\\\"pulmonary\\\",\\\"pulp\\\",\\\"pulsate\\\",\\\"pulse\\\",\\\"pulverize\\\",\\\"puma\\\",\\\"pumice\\\",\\\"pummel\\\",\\\"punch\\\",\\\"punctual\\\",\\\"punctuate\\\",\\\"punctured\\\",\\\"pungent\\\",\\\"punisher\\\",\\\"punk\\\",\\\"pupil\\\",\\\"puppet\\\",\\\"puppy\\\",\\\"purchase\\\",\\\"pureblood\\\",\\\"purebred\\\",\\\"purely\\\",\\\"pureness\\\",\\\"purgatory\\\",\\\"purge\\\",\\\"purging\\\",\\\"purifier\\\",\\\"purify\\\",\\\"purist\\\",\\\"puritan\\\",\\\"purity\\\",\\\"purple\\\",\\\"purplish\\\",\\\"purposely\\\",\\\"purr\\\",\\\"purse\\\",\\\"pursuable\\\",\\\"pursuant\\\",\\\"pursuit\\\",\\\"purveyor\\\",\\\"pushcart\\\",\\\"pushchair\\\",\\\"pusher\\\",\\\"pushiness\\\",\\\"pushing\\\",\\\"pushover\\\",\\\"pushpin\\\",\\\"pushup\\\",\\\"pushy\\\",\\\"putdown\\\",\\\"putt\\\",\\\"puzzle\\\",\\\"puzzling\\\",\\\"pyramid\\\",\\\"pyromania\\\",\\\"python\\\",\\\"quack\\\",\\\"quadrant\\\",\\\"quail\\\",\\\"quaintly\\\",\\\"quake\\\",\\\"quaking\\\",\\\"qualified\\\",\\\"qualifier\\\",\\\"qualify\\\",\\\"quality\\\",\\\"qualm\\\",\\\"quantum\\\",\\\"quarrel\\\",\\\"quarry\\\",\\\"quartered\\\",\\\"quarterly\\\",\\\"quarters\\\",\\\"quartet\\\",\\\"quench\\\",\\\"query\\\",\\\"quicken\\\",\\\"quickly\\\",\\\"quickness\\\",\\\"quicksand\\\",\\\"quickstep\\\",\\\"quiet\\\",\\\"quill\\\",\\\"quilt\\\",\\\"quintet\\\",\\\"quintuple\\\",\\\"quirk\\\",\\\"quit\\\",\\\"quiver\\\",\\\"quizzical\\\",\\\"quotable\\\",\\\"quotation\\\",\\\"quote\\\",\\\"rabid\\\",\\\"race\\\",\\\"racing\\\",\\\"racism\\\",\\\"rack\\\",\\\"racoon\\\",\\\"radar\\\",\\\"radial\\\",\\\"radiance\\\",\\\"radiantly\\\",\\\"radiated\\\",\\\"radiation\\\",\\\"radiator\\\",\\\"radio\\\",\\\"radish\\\",\\\"raffle\\\",\\\"raft\\\",\\\"rage\\\",\\\"ragged\\\",\\\"raging\\\",\\\"ragweed\\\",\\\"raider\\\",\\\"railcar\\\",\\\"railing\\\",\\\"railroad\\\",\\\"railway\\\",\\\"raisin\\\",\\\"rake\\\",\\\"raking\\\",\\\"rally\\\",\\\"ramble\\\",\\\"rambling\\\",\\\"ramp\\\",\\\"ramrod\\\",\\\"ranch\\\",\\\"rancidity\\\",\\\"random\\\",\\\"ranged\\\",\\\"ranger\\\",\\\"ranging\\\",\\\"ranked\\\",\\\"ranking\\\",\\\"ransack\\\",\\\"ranting\\\",\\\"rants\\\",\\\"rare\\\",\\\"rarity\\\",\\\"rascal\\\",\\\"rash\\\",\\\"rasping\\\",\\\"ravage\\\",\\\"raven\\\",\\\"ravine\\\",\\\"raving\\\",\\\"ravioli\\\",\\\"ravishing\\\",\\\"reabsorb\\\",\\\"reach\\\",\\\"reacquire\\\",\\\"reaction\\\",\\\"reactive\\\",\\\"reactor\\\",\\\"reaffirm\\\",\\\"ream\\\",\\\"reanalyze\\\",\\\"reappear\\\",\\\"reapply\\\",\\\"reappoint\\\",\\\"reapprove\\\",\\\"rearrange\\\",\\\"rearview\\\",\\\"reason\\\",\\\"reassign\\\",\\\"reassure\\\",\\\"reattach\\\",\\\"reawake\\\",\\\"rebalance\\\",\\\"rebate\\\",\\\"rebel\\\",\\\"rebirth\\\",\\\"reboot\\\",\\\"reborn\\\",\\\"rebound\\\",\\\"rebuff\\\",\\\"rebuild\\\",\\\"rebuilt\\\",\\\"reburial\\\",\\\"rebuttal\\\",\\\"recall\\\",\\\"recant\\\",\\\"recapture\\\",\\\"recast\\\",\\\"recede\\\",\\\"recent\\\",\\\"recess\\\",\\\"recharger\\\",\\\"recipient\\\",\\\"recital\\\",\\\"recite\\\",\\\"reckless\\\",\\\"reclaim\\\",\\\"recliner\\\",\\\"reclining\\\",\\\"recluse\\\",\\\"reclusive\\\",\\\"recognize\\\",\\\"recoil\\\",\\\"recollect\\\",\\\"recolor\\\",\\\"reconcile\\\",\\\"reconfirm\\\",\\\"reconvene\\\",\\\"recopy\\\",\\\"record\\\",\\\"recount\\\",\\\"recoup\\\",\\\"recovery\\\",\\\"recreate\\\",\\\"rectal\\\",\\\"rectangle\\\",\\\"rectified\\\",\\\"rectify\\\",\\\"recycled\\\",\\\"recycler\\\",\\\"recycling\\\",\\\"reemerge\\\",\\\"reenact\\\",\\\"reenter\\\",\\\"reentry\\\",\\\"reexamine\\\",\\\"referable\\\",\\\"referee\\\",\\\"reference\\\",\\\"refill\\\",\\\"refinance\\\",\\\"refined\\\",\\\"refinery\\\",\\\"refining\\\",\\\"refinish\\\",\\\"reflected\\\",\\\"reflector\\\",\\\"reflex\\\",\\\"reflux\\\",\\\"refocus\\\",\\\"refold\\\",\\\"reforest\\\",\\\"reformat\\\",\\\"reformed\\\",\\\"reformer\\\",\\\"reformist\\\",\\\"refract\\\",\\\"refrain\\\",\\\"refreeze\\\",\\\"refresh\\\",\\\"refried\\\",\\\"refueling\\\",\\\"refund\\\",\\\"refurbish\\\",\\\"refurnish\\\",\\\"refusal\\\",\\\"refuse\\\",\\\"refusing\\\",\\\"refutable\\\",\\\"refute\\\",\\\"regain\\\",\\\"regalia\\\",\\\"regally\\\",\\\"reggae\\\",\\\"regime\\\",\\\"region\\\",\\\"register\\\",\\\"registrar\\\",\\\"registry\\\",\\\"regress\\\",\\\"regretful\\\",\\\"regroup\\\",\\\"regular\\\",\\\"regulate\\\",\\\"regulator\\\",\\\"rehab\\\",\\\"reheat\\\",\\\"rehire\\\",\\\"rehydrate\\\",\\\"reimburse\\\",\\\"reissue\\\",\\\"reiterate\\\",\\\"rejoice\\\",\\\"rejoicing\\\",\\\"rejoin\\\",\\\"rekindle\\\",\\\"relapse\\\",\\\"relapsing\\\",\\\"relatable\\\",\\\"related\\\",\\\"relation\\\",\\\"relative\\\",\\\"relax\\\",\\\"relay\\\",\\\"relearn\\\",\\\"release\\\",\\\"relenting\\\",\\\"reliable\\\",\\\"reliably\\\",\\\"reliance\\\",\\\"reliant\\\",\\\"relic\\\",\\\"relieve\\\",\\\"relieving\\\",\\\"relight\\\",\\\"relish\\\",\\\"relive\\\",\\\"reload\\\",\\\"relocate\\\",\\\"relock\\\",\\\"reluctant\\\",\\\"rely\\\",\\\"remake\\\",\\\"remark\\\",\\\"remarry\\\",\\\"rematch\\\",\\\"remedial\\\",\\\"remedy\\\",\\\"remember\\\",\\\"reminder\\\",\\\"remindful\\\",\\\"remission\\\",\\\"remix\\\",\\\"remnant\\\",\\\"remodeler\\\",\\\"remold\\\",\\\"remorse\\\",\\\"remote\\\",\\\"removable\\\",\\\"removal\\\",\\\"removed\\\",\\\"remover\\\",\\\"removing\\\",\\\"rename\\\",\\\"renderer\\\",\\\"rendering\\\",\\\"rendition\\\",\\\"renegade\\\",\\\"renewable\\\",\\\"renewably\\\",\\\"renewal\\\",\\\"renewed\\\",\\\"renounce\\\",\\\"renovate\\\",\\\"renovator\\\",\\\"rentable\\\",\\\"rental\\\",\\\"rented\\\",\\\"renter\\\",\\\"reoccupy\\\",\\\"reoccur\\\",\\\"reopen\\\",\\\"reorder\\\",\\\"repackage\\\",\\\"repacking\\\",\\\"repaint\\\",\\\"repair\\\",\\\"repave\\\",\\\"repaying\\\",\\\"repayment\\\",\\\"repeal\\\",\\\"repeated\\\",\\\"repeater\\\",\\\"repent\\\",\\\"rephrase\\\",\\\"replace\\\",\\\"replay\\\",\\\"replica\\\",\\\"reply\\\",\\\"reporter\\\",\\\"repose\\\",\\\"repossess\\\",\\\"repost\\\",\\\"repressed\\\",\\\"reprimand\\\",\\\"reprint\\\",\\\"reprise\\\",\\\"reproach\\\",\\\"reprocess\\\",\\\"reproduce\\\",\\\"reprogram\\\",\\\"reps\\\",\\\"reptile\\\",\\\"reptilian\\\",\\\"repugnant\\\",\\\"repulsion\\\",\\\"repulsive\\\",\\\"repurpose\\\",\\\"reputable\\\",\\\"reputably\\\",\\\"request\\\",\\\"require\\\",\\\"requisite\\\",\\\"reroute\\\",\\\"rerun\\\",\\\"resale\\\",\\\"resample\\\",\\\"rescuer\\\",\\\"reseal\\\",\\\"research\\\",\\\"reselect\\\",\\\"reseller\\\",\\\"resemble\\\",\\\"resend\\\",\\\"resent\\\",\\\"reset\\\",\\\"reshape\\\",\\\"reshoot\\\",\\\"reshuffle\\\",\\\"residence\\\",\\\"residency\\\",\\\"resident\\\",\\\"residual\\\",\\\"residue\\\",\\\"resigned\\\",\\\"resilient\\\",\\\"resistant\\\",\\\"resisting\\\",\\\"resize\\\",\\\"resolute\\\",\\\"resolved\\\",\\\"resonant\\\",\\\"resonate\\\",\\\"resort\\\",\\\"resource\\\",\\\"respect\\\",\\\"resubmit\\\",\\\"result\\\",\\\"resume\\\",\\\"resupply\\\",\\\"resurface\\\",\\\"resurrect\\\",\\\"retail\\\",\\\"retainer\\\",\\\"retaining\\\",\\\"retake\\\",\\\"retaliate\\\",\\\"retention\\\",\\\"rethink\\\",\\\"retinal\\\",\\\"retired\\\",\\\"retiree\\\",\\\"retiring\\\",\\\"retold\\\",\\\"retool\\\",\\\"retorted\\\",\\\"retouch\\\",\\\"retrace\\\",\\\"retract\\\",\\\"retrain\\\",\\\"retread\\\",\\\"retreat\\\",\\\"retrial\\\",\\\"retrieval\\\",\\\"retriever\\\",\\\"retry\\\",\\\"return\\\",\\\"retying\\\",\\\"retype\\\",\\\"reunion\\\",\\\"reunite\\\",\\\"reusable\\\",\\\"reuse\\\",\\\"reveal\\\",\\\"reveler\\\",\\\"revenge\\\",\\\"revenue\\\",\\\"reverb\\\",\\\"revered\\\",\\\"reverence\\\",\\\"reverend\\\",\\\"reversal\\\",\\\"reverse\\\",\\\"reversing\\\",\\\"reversion\\\",\\\"revert\\\",\\\"revisable\\\",\\\"revise\\\",\\\"revision\\\",\\\"revisit\\\",\\\"revivable\\\",\\\"revival\\\",\\\"reviver\\\",\\\"reviving\\\",\\\"revocable\\\",\\\"revoke\\\",\\\"revolt\\\",\\\"revolver\\\",\\\"revolving\\\",\\\"reward\\\",\\\"rewash\\\",\\\"rewind\\\",\\\"rewire\\\",\\\"reword\\\",\\\"rework\\\",\\\"rewrap\\\",\\\"rewrite\\\",\\\"rhyme\\\",\\\"ribbon\\\",\\\"ribcage\\\",\\\"rice\\\",\\\"riches\\\",\\\"richly\\\",\\\"richness\\\",\\\"rickety\\\",\\\"ricotta\\\",\\\"riddance\\\",\\\"ridden\\\",\\\"ride\\\",\\\"riding\\\",\\\"rifling\\\",\\\"rift\\\",\\\"rigging\\\",\\\"rigid\\\",\\\"rigor\\\",\\\"rimless\\\",\\\"rimmed\\\",\\\"rind\\\",\\\"rink\\\",\\\"rinse\\\",\\\"rinsing\\\",\\\"riot\\\",\\\"ripcord\\\",\\\"ripeness\\\",\\\"ripening\\\",\\\"ripping\\\",\\\"ripple\\\",\\\"rippling\\\",\\\"riptide\\\",\\\"rise\\\",\\\"rising\\\",\\\"risk\\\",\\\"risotto\\\",\\\"ritalin\\\",\\\"ritzy\\\",\\\"rival\\\",\\\"riverbank\\\",\\\"riverbed\\\",\\\"riverboat\\\",\\\"riverside\\\",\\\"riveter\\\",\\\"riveting\\\",\\\"roamer\\\",\\\"roaming\\\",\\\"roast\\\",\\\"robbing\\\",\\\"robe\\\",\\\"robin\\\",\\\"robotics\\\",\\\"robust\\\",\\\"rockband\\\",\\\"rocker\\\",\\\"rocket\\\",\\\"rockfish\\\",\\\"rockiness\\\",\\\"rocking\\\",\\\"rocklike\\\",\\\"rockslide\\\",\\\"rockstar\\\",\\\"rocky\\\",\\\"rogue\\\",\\\"roman\\\",\\\"romp\\\",\\\"rope\\\",\\\"roping\\\",\\\"roster\\\",\\\"rosy\\\",\\\"rotten\\\",\\\"rotting\\\",\\\"rotunda\\\",\\\"roulette\\\",\\\"rounding\\\",\\\"roundish\\\",\\\"roundness\\\",\\\"roundup\\\",\\\"roundworm\\\",\\\"routine\\\",\\\"routing\\\",\\\"rover\\\",\\\"roving\\\",\\\"royal\\\",\\\"rubbed\\\",\\\"rubber\\\",\\\"rubbing\\\",\\\"rubble\\\",\\\"rubdown\\\",\\\"ruby\\\",\\\"ruckus\\\",\\\"rudder\\\",\\\"rug\\\",\\\"ruined\\\",\\\"rule\\\",\\\"rumble\\\",\\\"rumbling\\\",\\\"rummage\\\",\\\"rumor\\\",\\\"runaround\\\",\\\"rundown\\\",\\\"runner\\\",\\\"running\\\",\\\"runny\\\",\\\"runt\\\",\\\"runway\\\",\\\"rupture\\\",\\\"rural\\\",\\\"ruse\\\",\\\"rush\\\",\\\"rust\\\",\\\"rut\\\",\\\"sabbath\\\",\\\"sabotage\\\",\\\"sacrament\\\",\\\"sacred\\\",\\\"sacrifice\\\",\\\"sadden\\\",\\\"saddlebag\\\",\\\"saddled\\\",\\\"saddling\\\",\\\"sadly\\\",\\\"sadness\\\",\\\"safari\\\",\\\"safeguard\\\",\\\"safehouse\\\",\\\"safely\\\",\\\"safeness\\\",\\\"saffron\\\",\\\"saga\\\",\\\"sage\\\",\\\"sagging\\\",\\\"saggy\\\",\\\"said\\\",\\\"saint\\\",\\\"sake\\\",\\\"salad\\\",\\\"salami\\\",\\\"salaried\\\",\\\"salary\\\",\\\"saline\\\",\\\"salon\\\",\\\"saloon\\\",\\\"salsa\\\",\\\"salt\\\",\\\"salutary\\\",\\\"salute\\\",\\\"salvage\\\",\\\"salvaging\\\",\\\"salvation\\\",\\\"same\\\",\\\"sample\\\",\\\"sampling\\\",\\\"sanction\\\",\\\"sanctity\\\",\\\"sanctuary\\\",\\\"sandal\\\",\\\"sandbag\\\",\\\"sandbank\\\",\\\"sandbar\\\",\\\"sandblast\\\",\\\"sandbox\\\",\\\"sanded\\\",\\\"sandfish\\\",\\\"sanding\\\",\\\"sandlot\\\",\\\"sandpaper\\\",\\\"sandpit\\\",\\\"sandstone\\\",\\\"sandstorm\\\",\\\"sandworm\\\",\\\"sandy\\\",\\\"sanitary\\\",\\\"sanitizer\\\",\\\"sank\\\",\\\"santa\\\",\\\"sapling\\\",\\\"sappiness\\\",\\\"sappy\\\",\\\"sarcasm\\\",\\\"sarcastic\\\",\\\"sardine\\\",\\\"sash\\\",\\\"sasquatch\\\",\\\"sassy\\\",\\\"satchel\\\",\\\"satiable\\\",\\\"satin\\\",\\\"satirical\\\",\\\"satisfied\\\",\\\"satisfy\\\",\\\"saturate\\\",\\\"saturday\\\",\\\"sauciness\\\",\\\"saucy\\\",\\\"sauna\\\",\\\"savage\\\",\\\"savanna\\\",\\\"saved\\\",\\\"savings\\\",\\\"savior\\\",\\\"savor\\\",\\\"saxophone\\\",\\\"say\\\",\\\"scabbed\\\",\\\"scabby\\\",\\\"scalded\\\",\\\"scalding\\\",\\\"scale\\\",\\\"scaling\\\",\\\"scallion\\\",\\\"scallop\\\",\\\"scalping\\\",\\\"scam\\\",\\\"scandal\\\",\\\"scanner\\\",\\\"scanning\\\",\\\"scant\\\",\\\"scapegoat\\\",\\\"scarce\\\",\\\"scarcity\\\",\\\"scarecrow\\\",\\\"scared\\\",\\\"scarf\\\",\\\"scarily\\\",\\\"scariness\\\",\\\"scarring\\\",\\\"scary\\\",\\\"scavenger\\\",\\\"scenic\\\",\\\"schedule\\\",\\\"schematic\\\",\\\"scheme\\\",\\\"scheming\\\",\\\"schilling\\\",\\\"schnapps\\\",\\\"scholar\\\",\\\"science\\\",\\\"scientist\\\",\\\"scion\\\",\\\"scoff\\\",\\\"scolding\\\",\\\"scone\\\",\\\"scoop\\\",\\\"scooter\\\",\\\"scope\\\",\\\"scorch\\\",\\\"scorebook\\\",\\\"scorecard\\\",\\\"scored\\\",\\\"scoreless\\\",\\\"scorer\\\",\\\"scoring\\\",\\\"scorn\\\",\\\"scorpion\\\",\\\"scotch\\\",\\\"scoundrel\\\",\\\"scoured\\\",\\\"scouring\\\",\\\"scouting\\\",\\\"scouts\\\",\\\"scowling\\\",\\\"scrabble\\\",\\\"scraggly\\\",\\\"scrambled\\\",\\\"scrambler\\\",\\\"scrap\\\",\\\"scratch\\\",\\\"scrawny\\\",\\\"screen\\\",\\\"scribble\\\",\\\"scribe\\\",\\\"scribing\\\",\\\"scrimmage\\\",\\\"script\\\",\\\"scroll\\\",\\\"scrooge\\\",\\\"scrounger\\\",\\\"scrubbed\\\",\\\"scrubber\\\",\\\"scruffy\\\",\\\"scrunch\\\",\\\"scrutiny\\\",\\\"scuba\\\",\\\"scuff\\\",\\\"sculptor\\\",\\\"sculpture\\\",\\\"scurvy\\\",\\\"scuttle\\\",\\\"secluded\\\",\\\"secluding\\\",\\\"seclusion\\\",\\\"second\\\",\\\"secrecy\\\",\\\"secret\\\",\\\"sectional\\\",\\\"sector\\\",\\\"secular\\\",\\\"securely\\\",\\\"security\\\",\\\"sedan\\\",\\\"sedate\\\",\\\"sedation\\\",\\\"sedative\\\",\\\"sediment\\\",\\\"seduce\\\",\\\"seducing\\\",\\\"segment\\\",\\\"seismic\\\",\\\"seizing\\\",\\\"seldom\\\",\\\"selected\\\",\\\"selection\\\",\\\"selective\\\",\\\"selector\\\",\\\"self\\\",\\\"seltzer\\\",\\\"semantic\\\",\\\"semester\\\",\\\"semicolon\\\",\\\"semifinal\\\",\\\"seminar\\\",\\\"semisoft\\\",\\\"semisweet\\\",\\\"senate\\\",\\\"senator\\\",\\\"send\\\",\\\"senior\\\",\\\"senorita\\\",\\\"sensation\\\",\\\"sensitive\\\",\\\"sensitize\\\",\\\"sensually\\\",\\\"sensuous\\\",\\\"sepia\\\",\\\"september\\\",\\\"septic\\\",\\\"septum\\\",\\\"sequel\\\",\\\"sequence\\\",\\\"sequester\\\",\\\"series\\\",\\\"sermon\\\",\\\"serotonin\\\",\\\"serpent\\\",\\\"serrated\\\",\\\"serve\\\",\\\"service\\\",\\\"serving\\\",\\\"sesame\\\",\\\"sessions\\\",\\\"setback\\\",\\\"setting\\\",\\\"settle\\\",\\\"settling\\\",\\\"setup\\\",\\\"sevenfold\\\",\\\"seventeen\\\",\\\"seventh\\\",\\\"seventy\\\",\\\"severity\\\",\\\"shabby\\\",\\\"shack\\\",\\\"shaded\\\",\\\"shadily\\\",\\\"shadiness\\\",\\\"shading\\\",\\\"shadow\\\",\\\"shady\\\",\\\"shaft\\\",\\\"shakable\\\",\\\"shakily\\\",\\\"shakiness\\\",\\\"shaking\\\",\\\"shaky\\\",\\\"shale\\\",\\\"shallot\\\",\\\"shallow\\\",\\\"shame\\\",\\\"shampoo\\\",\\\"shamrock\\\",\\\"shank\\\",\\\"shanty\\\",\\\"shape\\\",\\\"shaping\\\",\\\"share\\\",\\\"sharpener\\\",\\\"sharper\\\",\\\"sharpie\\\",\\\"sharply\\\",\\\"sharpness\\\",\\\"shawl\\\",\\\"sheath\\\",\\\"shed\\\",\\\"sheep\\\",\\\"sheet\\\",\\\"shelf\\\",\\\"shell\\\",\\\"shelter\\\",\\\"shelve\\\",\\\"shelving\\\",\\\"sherry\\\",\\\"shield\\\",\\\"shifter\\\",\\\"shifting\\\",\\\"shiftless\\\",\\\"shifty\\\",\\\"shimmer\\\",\\\"shimmy\\\",\\\"shindig\\\",\\\"shine\\\",\\\"shingle\\\",\\\"shininess\\\",\\\"shining\\\",\\\"shiny\\\",\\\"ship\\\",\\\"shirt\\\",\\\"shivering\\\",\\\"shock\\\",\\\"shone\\\",\\\"shoplift\\\",\\\"shopper\\\",\\\"shopping\\\",\\\"shoptalk\\\",\\\"shore\\\",\\\"shortage\\\",\\\"shortcake\\\",\\\"shortcut\\\",\\\"shorten\\\",\\\"shorter\\\",\\\"shorthand\\\",\\\"shortlist\\\",\\\"shortly\\\",\\\"shortness\\\",\\\"shorts\\\",\\\"shortwave\\\",\\\"shorty\\\",\\\"shout\\\",\\\"shove\\\",\\\"showbiz\\\",\\\"showcase\\\",\\\"showdown\\\",\\\"shower\\\",\\\"showgirl\\\",\\\"showing\\\",\\\"showman\\\",\\\"shown\\\",\\\"showoff\\\",\\\"showpiece\\\",\\\"showplace\\\",\\\"showroom\\\",\\\"showy\\\",\\\"shrank\\\",\\\"shrapnel\\\",\\\"shredder\\\",\\\"shredding\\\",\\\"shrewdly\\\",\\\"shriek\\\",\\\"shrill\\\",\\\"shrimp\\\",\\\"shrine\\\",\\\"shrink\\\",\\\"shrivel\\\",\\\"shrouded\\\",\\\"shrubbery\\\",\\\"shrubs\\\",\\\"shrug\\\",\\\"shrunk\\\",\\\"shucking\\\",\\\"shudder\\\",\\\"shuffle\\\",\\\"shuffling\\\",\\\"shun\\\",\\\"shush\\\",\\\"shut\\\",\\\"shy\\\",\\\"siamese\\\",\\\"siberian\\\",\\\"sibling\\\",\\\"siding\\\",\\\"sierra\\\",\\\"siesta\\\",\\\"sift\\\",\\\"sighing\\\",\\\"silenced\\\",\\\"silencer\\\",\\\"silent\\\",\\\"silica\\\",\\\"silicon\\\",\\\"silk\\\",\\\"silliness\\\",\\\"silly\\\",\\\"silo\\\",\\\"silt\\\",\\\"silver\\\",\\\"similarly\\\",\\\"simile\\\",\\\"simmering\\\",\\\"simple\\\",\\\"simplify\\\",\\\"simply\\\",\\\"sincere\\\",\\\"sincerity\\\",\\\"singer\\\",\\\"singing\\\",\\\"single\\\",\\\"singular\\\",\\\"sinister\\\",\\\"sinless\\\",\\\"sinner\\\",\\\"sinuous\\\",\\\"sip\\\",\\\"siren\\\",\\\"sister\\\",\\\"sitcom\\\",\\\"sitter\\\",\\\"sitting\\\",\\\"situated\\\",\\\"situation\\\",\\\"sixfold\\\",\\\"sixteen\\\",\\\"sixth\\\",\\\"sixties\\\",\\\"sixtieth\\\",\\\"sixtyfold\\\",\\\"sizable\\\",\\\"sizably\\\",\\\"size\\\",\\\"sizing\\\",\\\"sizzle\\\",\\\"sizzling\\\",\\\"skater\\\",\\\"skating\\\",\\\"skedaddle\\\",\\\"skeletal\\\",\\\"skeleton\\\",\\\"skeptic\\\",\\\"sketch\\\",\\\"skewed\\\",\\\"skewer\\\",\\\"skid\\\",\\\"skied\\\",\\\"skier\\\",\\\"skies\\\",\\\"skiing\\\",\\\"skilled\\\",\\\"skillet\\\",\\\"skillful\\\",\\\"skimmed\\\",\\\"skimmer\\\",\\\"skimming\\\",\\\"skimpily\\\",\\\"skincare\\\",\\\"skinhead\\\",\\\"skinless\\\",\\\"skinning\\\",\\\"skinny\\\",\\\"skintight\\\",\\\"skipper\\\",\\\"skipping\\\",\\\"skirmish\\\",\\\"skirt\\\",\\\"skittle\\\",\\\"skydiver\\\",\\\"skylight\\\",\\\"skyline\\\",\\\"skype\\\",\\\"skyrocket\\\",\\\"skyward\\\",\\\"slab\\\",\\\"slacked\\\",\\\"slacker\\\",\\\"slacking\\\",\\\"slackness\\\",\\\"slacks\\\",\\\"slain\\\",\\\"slam\\\",\\\"slander\\\",\\\"slang\\\",\\\"slapping\\\",\\\"slapstick\\\",\\\"slashed\\\",\\\"slashing\\\",\\\"slate\\\",\\\"slather\\\",\\\"slaw\\\",\\\"sled\\\",\\\"sleek\\\",\\\"sleep\\\",\\\"sleet\\\",\\\"sleeve\\\",\\\"slept\\\",\\\"sliceable\\\",\\\"sliced\\\",\\\"slicer\\\",\\\"slicing\\\",\\\"slick\\\",\\\"slider\\\",\\\"slideshow\\\",\\\"sliding\\\",\\\"slighted\\\",\\\"slighting\\\",\\\"slightly\\\",\\\"slimness\\\",\\\"slimy\\\",\\\"slinging\\\",\\\"slingshot\\\",\\\"slinky\\\",\\\"slip\\\",\\\"slit\\\",\\\"sliver\\\",\\\"slobbery\\\",\\\"slogan\\\",\\\"sloped\\\",\\\"sloping\\\",\\\"sloppily\\\",\\\"sloppy\\\",\\\"slot\\\",\\\"slouching\\\",\\\"slouchy\\\",\\\"sludge\\\",\\\"slug\\\",\\\"slum\\\",\\\"slurp\\\",\\\"slush\\\",\\\"sly\\\",\\\"small\\\",\\\"smartly\\\",\\\"smartness\\\",\\\"smasher\\\",\\\"smashing\\\",\\\"smashup\\\",\\\"smell\\\",\\\"smelting\\\",\\\"smile\\\",\\\"smilingly\\\",\\\"smirk\\\",\\\"smite\\\",\\\"smith\\\",\\\"smitten\\\",\\\"smock\\\",\\\"smog\\\",\\\"smoked\\\",\\\"smokeless\\\",\\\"smokiness\\\",\\\"smoking\\\",\\\"smoky\\\",\\\"smolder\\\",\\\"smooth\\\",\\\"smother\\\",\\\"smudge\\\",\\\"smudgy\\\",\\\"smuggler\\\",\\\"smuggling\\\",\\\"smugly\\\",\\\"smugness\\\",\\\"snack\\\",\\\"snagged\\\",\\\"snaking\\\",\\\"snap\\\",\\\"snare\\\",\\\"snarl\\\",\\\"snazzy\\\",\\\"sneak\\\",\\\"sneer\\\",\\\"sneeze\\\",\\\"sneezing\\\",\\\"snide\\\",\\\"sniff\\\",\\\"snippet\\\",\\\"snipping\\\",\\\"snitch\\\",\\\"snooper\\\",\\\"snooze\\\",\\\"snore\\\",\\\"snoring\\\",\\\"snorkel\\\",\\\"snort\\\",\\\"snout\\\",\\\"snowbird\\\",\\\"snowboard\\\",\\\"snowbound\\\",\\\"snowcap\\\",\\\"snowdrift\\\",\\\"snowdrop\\\",\\\"snowfall\\\",\\\"snowfield\\\",\\\"snowflake\\\",\\\"snowiness\\\",\\\"snowless\\\",\\\"snowman\\\",\\\"snowplow\\\",\\\"snowshoe\\\",\\\"snowstorm\\\",\\\"snowsuit\\\",\\\"snowy\\\",\\\"snub\\\",\\\"snuff\\\",\\\"snuggle\\\",\\\"snugly\\\",\\\"snugness\\\",\\\"speak\\\",\\\"spearfish\\\",\\\"spearhead\\\",\\\"spearman\\\",\\\"spearmint\\\",\\\"species\\\",\\\"specimen\\\",\\\"specked\\\",\\\"speckled\\\",\\\"specks\\\",\\\"spectacle\\\",\\\"spectator\\\",\\\"spectrum\\\",\\\"speculate\\\",\\\"speech\\\",\\\"speed\\\",\\\"spellbind\\\",\\\"speller\\\",\\\"spelling\\\",\\\"spendable\\\",\\\"spender\\\",\\\"spending\\\",\\\"spent\\\",\\\"spew\\\",\\\"sphere\\\",\\\"spherical\\\",\\\"sphinx\\\",\\\"spider\\\",\\\"spied\\\",\\\"spiffy\\\",\\\"spill\\\",\\\"spilt\\\",\\\"spinach\\\",\\\"spinal\\\",\\\"spindle\\\",\\\"spinner\\\",\\\"spinning\\\",\\\"spinout\\\",\\\"spinster\\\",\\\"spiny\\\",\\\"spiral\\\",\\\"spirited\\\",\\\"spiritism\\\",\\\"spirits\\\",\\\"spiritual\\\",\\\"splashed\\\",\\\"splashing\\\",\\\"splashy\\\",\\\"splatter\\\",\\\"spleen\\\",\\\"splendid\\\",\\\"splendor\\\",\\\"splice\\\",\\\"splicing\\\",\\\"splinter\\\",\\\"splotchy\\\",\\\"splurge\\\",\\\"spoilage\\\",\\\"spoiled\\\",\\\"spoiler\\\",\\\"spoiling\\\",\\\"spoils\\\",\\\"spoken\\\",\\\"spokesman\\\",\\\"sponge\\\",\\\"spongy\\\",\\\"sponsor\\\",\\\"spoof\\\",\\\"spookily\\\",\\\"spooky\\\",\\\"spool\\\",\\\"spoon\\\",\\\"spore\\\",\\\"sporting\\\",\\\"sports\\\",\\\"sporty\\\",\\\"spotless\\\",\\\"spotlight\\\",\\\"spotted\\\",\\\"spotter\\\",\\\"spotting\\\",\\\"spotty\\\",\\\"spousal\\\",\\\"spouse\\\",\\\"spout\\\",\\\"sprain\\\",\\\"sprang\\\",\\\"sprawl\\\",\\\"spray\\\",\\\"spree\\\",\\\"sprig\\\",\\\"spring\\\",\\\"sprinkled\\\",\\\"sprinkler\\\",\\\"sprint\\\",\\\"sprite\\\",\\\"sprout\\\",\\\"spruce\\\",\\\"sprung\\\",\\\"spry\\\",\\\"spud\\\",\\\"spur\\\",\\\"sputter\\\",\\\"spyglass\\\",\\\"squabble\\\",\\\"squad\\\",\\\"squall\\\",\\\"squander\\\",\\\"squash\\\",\\\"squatted\\\",\\\"squatter\\\",\\\"squatting\\\",\\\"squeak\\\",\\\"squealer\\\",\\\"squealing\\\",\\\"squeamish\\\",\\\"squeegee\\\",\\\"squeeze\\\",\\\"squeezing\\\",\\\"squid\\\",\\\"squiggle\\\",\\\"squiggly\\\",\\\"squint\\\",\\\"squire\\\",\\\"squirt\\\",\\\"squishier\\\",\\\"squishy\\\",\\\"stability\\\",\\\"stabilize\\\",\\\"stable\\\",\\\"stack\\\",\\\"stadium\\\",\\\"staff\\\",\\\"stage\\\",\\\"staging\\\",\\\"stagnant\\\",\\\"stagnate\\\",\\\"stainable\\\",\\\"stained\\\",\\\"staining\\\",\\\"stainless\\\",\\\"stalemate\\\",\\\"staleness\\\",\\\"stalling\\\",\\\"stallion\\\",\\\"stamina\\\",\\\"stammer\\\",\\\"stamp\\\",\\\"stand\\\",\\\"stank\\\",\\\"staple\\\",\\\"stapling\\\",\\\"starboard\\\",\\\"starch\\\",\\\"stardom\\\",\\\"stardust\\\",\\\"starfish\\\",\\\"stargazer\\\",\\\"staring\\\",\\\"stark\\\",\\\"starless\\\",\\\"starlet\\\",\\\"starlight\\\",\\\"starlit\\\",\\\"starring\\\",\\\"starry\\\",\\\"starship\\\",\\\"starter\\\",\\\"starting\\\",\\\"startle\\\",\\\"startling\\\",\\\"startup\\\",\\\"starved\\\",\\\"starving\\\",\\\"stash\\\",\\\"state\\\",\\\"static\\\",\\\"statistic\\\",\\\"statue\\\",\\\"stature\\\",\\\"status\\\",\\\"statute\\\",\\\"statutory\\\",\\\"staunch\\\",\\\"stays\\\",\\\"steadfast\\\",\\\"steadier\\\",\\\"steadily\\\",\\\"steadying\\\",\\\"steam\\\",\\\"steed\\\",\\\"steep\\\",\\\"steerable\\\",\\\"steering\\\",\\\"steersman\\\",\\\"stegosaur\\\",\\\"stellar\\\",\\\"stem\\\",\\\"stench\\\",\\\"stencil\\\",\\\"step\\\",\\\"stereo\\\",\\\"sterile\\\",\\\"sterility\\\",\\\"sterilize\\\",\\\"sterling\\\",\\\"sternness\\\",\\\"sternum\\\",\\\"stew\\\",\\\"stick\\\",\\\"stiffen\\\",\\\"stiffly\\\",\\\"stiffness\\\",\\\"stifle\\\",\\\"stifling\\\",\\\"stillness\\\",\\\"stilt\\\",\\\"stimulant\\\",\\\"stimulate\\\",\\\"stimuli\\\",\\\"stimulus\\\",\\\"stinger\\\",\\\"stingily\\\",\\\"stinging\\\",\\\"stingray\\\",\\\"stingy\\\",\\\"stinking\\\",\\\"stinky\\\",\\\"stipend\\\",\\\"stipulate\\\",\\\"stir\\\",\\\"stitch\\\",\\\"stock\\\",\\\"stoic\\\",\\\"stoke\\\",\\\"stole\\\",\\\"stomp\\\",\\\"stonewall\\\",\\\"stoneware\\\",\\\"stonework\\\",\\\"stoning\\\",\\\"stony\\\",\\\"stood\\\",\\\"stooge\\\",\\\"stool\\\",\\\"stoop\\\",\\\"stoplight\\\",\\\"stoppable\\\",\\\"stoppage\\\",\\\"stopped\\\",\\\"stopper\\\",\\\"stopping\\\",\\\"stopwatch\\\",\\\"storable\\\",\\\"storage\\\",\\\"storeroom\\\",\\\"storewide\\\",\\\"storm\\\",\\\"stout\\\",\\\"stove\\\",\\\"stowaway\\\",\\\"stowing\\\",\\\"straddle\\\",\\\"straggler\\\",\\\"strained\\\",\\\"strainer\\\",\\\"straining\\\",\\\"strangely\\\",\\\"stranger\\\",\\\"strangle\\\",\\\"strategic\\\",\\\"strategy\\\",\\\"stratus\\\",\\\"straw\\\",\\\"stray\\\",\\\"streak\\\",\\\"stream\\\",\\\"street\\\",\\\"strength\\\",\\\"strenuous\\\",\\\"strep\\\",\\\"stress\\\",\\\"stretch\\\",\\\"strewn\\\",\\\"stricken\\\",\\\"strict\\\",\\\"stride\\\",\\\"strife\\\",\\\"strike\\\",\\\"striking\\\",\\\"strive\\\",\\\"striving\\\",\\\"strobe\\\",\\\"strode\\\",\\\"stroller\\\",\\\"strongbox\\\",\\\"strongly\\\",\\\"strongman\\\",\\\"struck\\\",\\\"structure\\\",\\\"strudel\\\",\\\"struggle\\\",\\\"strum\\\",\\\"strung\\\",\\\"strut\\\",\\\"stubbed\\\",\\\"stubble\\\",\\\"stubbly\\\",\\\"stubborn\\\",\\\"stucco\\\",\\\"stuck\\\",\\\"student\\\",\\\"studied\\\",\\\"studio\\\",\\\"study\\\",\\\"stuffed\\\",\\\"stuffing\\\",\\\"stuffy\\\",\\\"stumble\\\",\\\"stumbling\\\",\\\"stump\\\",\\\"stung\\\",\\\"stunned\\\",\\\"stunner\\\",\\\"stunning\\\",\\\"stunt\\\",\\\"stupor\\\",\\\"sturdily\\\",\\\"sturdy\\\",\\\"styling\\\",\\\"stylishly\\\",\\\"stylist\\\",\\\"stylized\\\",\\\"stylus\\\",\\\"suave\\\",\\\"subarctic\\\",\\\"subatomic\\\",\\\"subdivide\\\",\\\"subdued\\\",\\\"subduing\\\",\\\"subfloor\\\",\\\"subgroup\\\",\\\"subheader\\\",\\\"subject\\\",\\\"sublease\\\",\\\"sublet\\\",\\\"sublevel\\\",\\\"sublime\\\",\\\"submarine\\\",\\\"submerge\\\",\\\"submersed\\\",\\\"submitter\\\",\\\"subpanel\\\",\\\"subpar\\\",\\\"subplot\\\",\\\"subprime\\\",\\\"subscribe\\\",\\\"subscript\\\",\\\"subsector\\\",\\\"subside\\\",\\\"subsiding\\\",\\\"subsidize\\\",\\\"subsidy\\\",\\\"subsoil\\\",\\\"subsonic\\\",\\\"substance\\\",\\\"subsystem\\\",\\\"subtext\\\",\\\"subtitle\\\",\\\"subtly\\\",\\\"subtotal\\\",\\\"subtract\\\",\\\"subtype\\\",\\\"suburb\\\",\\\"subway\\\",\\\"subwoofer\\\",\\\"subzero\\\",\\\"succulent\\\",\\\"such\\\",\\\"suction\\\",\\\"sudden\\\",\\\"sudoku\\\",\\\"suds\\\",\\\"sufferer\\\",\\\"suffering\\\",\\\"suffice\\\",\\\"suffix\\\",\\\"suffocate\\\",\\\"suffrage\\\",\\\"sugar\\\",\\\"suggest\\\",\\\"suing\\\",\\\"suitable\\\",\\\"suitably\\\",\\\"suitcase\\\",\\\"suitor\\\",\\\"sulfate\\\",\\\"sulfide\\\",\\\"sulfite\\\",\\\"sulfur\\\",\\\"sulk\\\",\\\"sullen\\\",\\\"sulphate\\\",\\\"sulphuric\\\",\\\"sultry\\\",\\\"superbowl\\\",\\\"superglue\\\",\\\"superhero\\\",\\\"superior\\\",\\\"superjet\\\",\\\"superman\\\",\\\"supermom\\\",\\\"supernova\\\",\\\"supervise\\\",\\\"supper\\\",\\\"supplier\\\",\\\"supply\\\",\\\"support\\\",\\\"supremacy\\\",\\\"supreme\\\",\\\"surcharge\\\",\\\"surely\\\",\\\"sureness\\\",\\\"surface\\\",\\\"surfacing\\\",\\\"surfboard\\\",\\\"surfer\\\",\\\"surgery\\\",\\\"surgical\\\",\\\"surging\\\",\\\"surname\\\",\\\"surpass\\\",\\\"surplus\\\",\\\"surprise\\\",\\\"surreal\\\",\\\"surrender\\\",\\\"surrogate\\\",\\\"surround\\\",\\\"survey\\\",\\\"survival\\\",\\\"survive\\\",\\\"surviving\\\",\\\"survivor\\\",\\\"sushi\\\",\\\"suspect\\\",\\\"suspend\\\",\\\"suspense\\\",\\\"sustained\\\",\\\"sustainer\\\",\\\"swab\\\",\\\"swaddling\\\",\\\"swagger\\\",\\\"swampland\\\",\\\"swan\\\",\\\"swapping\\\",\\\"swarm\\\",\\\"sway\\\",\\\"swear\\\",\\\"sweat\\\",\\\"sweep\\\",\\\"swell\\\",\\\"swept\\\",\\\"swerve\\\",\\\"swifter\\\",\\\"swiftly\\\",\\\"swiftness\\\",\\\"swimmable\\\",\\\"swimmer\\\",\\\"swimming\\\",\\\"swimsuit\\\",\\\"swimwear\\\",\\\"swinger\\\",\\\"swinging\\\",\\\"swipe\\\",\\\"swirl\\\",\\\"switch\\\",\\\"swivel\\\",\\\"swizzle\\\",\\\"swooned\\\",\\\"swoop\\\",\\\"swoosh\\\",\\\"swore\\\",\\\"sworn\\\",\\\"swung\\\",\\\"sycamore\\\",\\\"sympathy\\\",\\\"symphonic\\\",\\\"symphony\\\",\\\"symptom\\\",\\\"synapse\\\",\\\"syndrome\\\",\\\"synergy\\\",\\\"synopses\\\",\\\"synopsis\\\",\\\"synthesis\\\",\\\"synthetic\\\",\\\"syrup\\\",\\\"system\\\",\\\"t-shirt\\\",\\\"tabasco\\\",\\\"tabby\\\",\\\"tableful\\\",\\\"tables\\\",\\\"tablet\\\",\\\"tableware\\\",\\\"tabloid\\\",\\\"tackiness\\\",\\\"tacking\\\",\\\"tackle\\\",\\\"tackling\\\",\\\"tacky\\\",\\\"taco\\\",\\\"tactful\\\",\\\"tactical\\\",\\\"tactics\\\",\\\"tactile\\\",\\\"tactless\\\",\\\"tadpole\\\",\\\"taekwondo\\\",\\\"tag\\\",\\\"tainted\\\",\\\"take\\\",\\\"taking\\\",\\\"talcum\\\",\\\"talisman\\\",\\\"tall\\\",\\\"talon\\\",\\\"tamale\\\",\\\"tameness\\\",\\\"tamer\\\",\\\"tamper\\\",\\\"tank\\\",\\\"tanned\\\",\\\"tannery\\\",\\\"tanning\\\",\\\"tantrum\\\",\\\"tapeless\\\",\\\"tapered\\\",\\\"tapering\\\",\\\"tapestry\\\",\\\"tapioca\\\",\\\"tapping\\\",\\\"taps\\\",\\\"tarantula\\\",\\\"target\\\",\\\"tarmac\\\",\\\"tarnish\\\",\\\"tarot\\\",\\\"tartar\\\",\\\"tartly\\\",\\\"tartness\\\",\\\"task\\\",\\\"tassel\\\",\\\"taste\\\",\\\"tastiness\\\",\\\"tasting\\\",\\\"tasty\\\",\\\"tattered\\\",\\\"tattle\\\",\\\"tattling\\\",\\\"tattoo\\\",\\\"taunt\\\",\\\"tavern\\\",\\\"thank\\\",\\\"that\\\",\\\"thaw\\\",\\\"theater\\\",\\\"theatrics\\\",\\\"thee\\\",\\\"theft\\\",\\\"theme\\\",\\\"theology\\\",\\\"theorize\\\",\\\"thermal\\\",\\\"thermos\\\",\\\"thesaurus\\\",\\\"these\\\",\\\"thesis\\\",\\\"thespian\\\",\\\"thicken\\\",\\\"thicket\\\",\\\"thickness\\\",\\\"thieving\\\",\\\"thievish\\\",\\\"thigh\\\",\\\"thimble\\\",\\\"thing\\\",\\\"think\\\",\\\"thinly\\\",\\\"thinner\\\",\\\"thinness\\\",\\\"thinning\\\",\\\"thirstily\\\",\\\"thirsting\\\",\\\"thirsty\\\",\\\"thirteen\\\",\\\"thirty\\\",\\\"thong\\\",\\\"thorn\\\",\\\"those\\\",\\\"thousand\\\",\\\"thrash\\\",\\\"thread\\\",\\\"threaten\\\",\\\"threefold\\\",\\\"thrift\\\",\\\"thrill\\\",\\\"thrive\\\",\\\"thriving\\\",\\\"throat\\\",\\\"throbbing\\\",\\\"throng\\\",\\\"throttle\\\",\\\"throwaway\\\",\\\"throwback\\\",\\\"thrower\\\",\\\"throwing\\\",\\\"thud\\\",\\\"thumb\\\",\\\"thumping\\\",\\\"thursday\\\",\\\"thus\\\",\\\"thwarting\\\",\\\"thyself\\\",\\\"tiara\\\",\\\"tibia\\\",\\\"tidal\\\",\\\"tidbit\\\",\\\"tidiness\\\",\\\"tidings\\\",\\\"tidy\\\",\\\"tiger\\\",\\\"tighten\\\",\\\"tightly\\\",\\\"tightness\\\",\\\"tightrope\\\",\\\"tightwad\\\",\\\"tigress\\\",\\\"tile\\\",\\\"tiling\\\",\\\"till\\\",\\\"tilt\\\",\\\"timid\\\",\\\"timing\\\",\\\"timothy\\\",\\\"tinderbox\\\",\\\"tinfoil\\\",\\\"tingle\\\",\\\"tingling\\\",\\\"tingly\\\",\\\"tinker\\\",\\\"tinkling\\\",\\\"tinsel\\\",\\\"tinsmith\\\",\\\"tint\\\",\\\"tinwork\\\",\\\"tiny\\\",\\\"tipoff\\\",\\\"tipped\\\",\\\"tipper\\\",\\\"tipping\\\",\\\"tiptoeing\\\",\\\"tiptop\\\",\\\"tiring\\\",\\\"tissue\\\",\\\"trace\\\",\\\"tracing\\\",\\\"track\\\",\\\"traction\\\",\\\"tractor\\\",\\\"trade\\\",\\\"trading\\\",\\\"tradition\\\",\\\"traffic\\\",\\\"tragedy\\\",\\\"trailing\\\",\\\"trailside\\\",\\\"train\\\",\\\"traitor\\\",\\\"trance\\\",\\\"tranquil\\\",\\\"transfer\\\",\\\"transform\\\",\\\"translate\\\",\\\"transpire\\\",\\\"transport\\\",\\\"transpose\\\",\\\"trapdoor\\\",\\\"trapeze\\\",\\\"trapezoid\\\",\\\"trapped\\\",\\\"trapper\\\",\\\"trapping\\\",\\\"traps\\\",\\\"trash\\\",\\\"travel\\\",\\\"traverse\\\",\\\"travesty\\\",\\\"tray\\\",\\\"treachery\\\",\\\"treading\\\",\\\"treadmill\\\",\\\"treason\\\",\\\"treat\\\",\\\"treble\\\",\\\"tree\\\",\\\"trekker\\\",\\\"tremble\\\",\\\"trembling\\\",\\\"tremor\\\",\\\"trench\\\",\\\"trend\\\",\\\"trespass\\\",\\\"triage\\\",\\\"trial\\\",\\\"triangle\\\",\\\"tribesman\\\",\\\"tribunal\\\",\\\"tribune\\\",\\\"tributary\\\",\\\"tribute\\\",\\\"triceps\\\",\\\"trickery\\\",\\\"trickily\\\",\\\"tricking\\\",\\\"trickle\\\",\\\"trickster\\\",\\\"tricky\\\",\\\"tricolor\\\",\\\"tricycle\\\",\\\"trident\\\",\\\"tried\\\",\\\"trifle\\\",\\\"trifocals\\\",\\\"trillion\\\",\\\"trilogy\\\",\\\"trimester\\\",\\\"trimmer\\\",\\\"trimming\\\",\\\"trimness\\\",\\\"trinity\\\",\\\"trio\\\",\\\"tripod\\\",\\\"tripping\\\",\\\"triumph\\\",\\\"trivial\\\",\\\"trodden\\\",\\\"trolling\\\",\\\"trombone\\\",\\\"trophy\\\",\\\"tropical\\\",\\\"tropics\\\",\\\"trouble\\\",\\\"troubling\\\",\\\"trough\\\",\\\"trousers\\\",\\\"trout\\\",\\\"trowel\\\",\\\"truce\\\",\\\"truck\\\",\\\"truffle\\\",\\\"trump\\\",\\\"trunks\\\",\\\"trustable\\\",\\\"trustee\\\",\\\"trustful\\\",\\\"trusting\\\",\\\"trustless\\\",\\\"truth\\\",\\\"try\\\",\\\"tubby\\\",\\\"tubeless\\\",\\\"tubular\\\",\\\"tucking\\\",\\\"tuesday\\\",\\\"tug\\\",\\\"tuition\\\",\\\"tulip\\\",\\\"tumble\\\",\\\"tumbling\\\",\\\"tummy\\\",\\\"turban\\\",\\\"turbine\\\",\\\"turbofan\\\",\\\"turbojet\\\",\\\"turbulent\\\",\\\"turf\\\",\\\"turkey\\\",\\\"turmoil\\\",\\\"turret\\\",\\\"turtle\\\",\\\"tusk\\\",\\\"tutor\\\",\\\"tutu\\\",\\\"tux\\\",\\\"tweak\\\",\\\"tweed\\\",\\\"tweet\\\",\\\"tweezers\\\",\\\"twelve\\\",\\\"twentieth\\\",\\\"twenty\\\",\\\"twerp\\\",\\\"twice\\\",\\\"twiddle\\\",\\\"twiddling\\\",\\\"twig\\\",\\\"twilight\\\",\\\"twine\\\",\\\"twins\\\",\\\"twirl\\\",\\\"twistable\\\",\\\"twisted\\\",\\\"twister\\\",\\\"twisting\\\",\\\"twisty\\\",\\\"twitch\\\",\\\"twitter\\\",\\\"tycoon\\\",\\\"tying\\\",\\\"tyke\\\",\\\"udder\\\",\\\"ultimate\\\",\\\"ultimatum\\\",\\\"ultra\\\",\\\"umbilical\\\",\\\"umbrella\\\",\\\"umpire\\\",\\\"unabashed\\\",\\\"unable\\\",\\\"unadorned\\\",\\\"unadvised\\\",\\\"unafraid\\\",\\\"unaired\\\",\\\"unaligned\\\",\\\"unaltered\\\",\\\"unarmored\\\",\\\"unashamed\\\",\\\"unaudited\\\",\\\"unawake\\\",\\\"unaware\\\",\\\"unbaked\\\",\\\"unbalance\\\",\\\"unbeaten\\\",\\\"unbend\\\",\\\"unbent\\\",\\\"unbiased\\\",\\\"unbitten\\\",\\\"unblended\\\",\\\"unblessed\\\",\\\"unblock\\\",\\\"unbolted\\\",\\\"unbounded\\\",\\\"unboxed\\\",\\\"unbraided\\\",\\\"unbridle\\\",\\\"unbroken\\\",\\\"unbuckled\\\",\\\"unbundle\\\",\\\"unburned\\\",\\\"unbutton\\\",\\\"uncanny\\\",\\\"uncapped\\\",\\\"uncaring\\\",\\\"uncertain\\\",\\\"unchain\\\",\\\"unchanged\\\",\\\"uncharted\\\",\\\"uncheck\\\",\\\"uncivil\\\",\\\"unclad\\\",\\\"unclaimed\\\",\\\"unclamped\\\",\\\"unclasp\\\",\\\"uncle\\\",\\\"unclip\\\",\\\"uncloak\\\",\\\"unclog\\\",\\\"unclothed\\\",\\\"uncoated\\\",\\\"uncoiled\\\",\\\"uncolored\\\",\\\"uncombed\\\",\\\"uncommon\\\",\\\"uncooked\\\",\\\"uncork\\\",\\\"uncorrupt\\\",\\\"uncounted\\\",\\\"uncouple\\\",\\\"uncouth\\\",\\\"uncover\\\",\\\"uncross\\\",\\\"uncrown\\\",\\\"uncrushed\\\",\\\"uncured\\\",\\\"uncurious\\\",\\\"uncurled\\\",\\\"uncut\\\",\\\"undamaged\\\",\\\"undated\\\",\\\"undaunted\\\",\\\"undead\\\",\\\"undecided\\\",\\\"undefined\\\",\\\"underage\\\",\\\"underarm\\\",\\\"undercoat\\\",\\\"undercook\\\",\\\"undercut\\\",\\\"underdog\\\",\\\"underdone\\\",\\\"underfed\\\",\\\"underfeed\\\",\\\"underfoot\\\",\\\"undergo\\\",\\\"undergrad\\\",\\\"underhand\\\",\\\"underline\\\",\\\"underling\\\",\\\"undermine\\\",\\\"undermost\\\",\\\"underpaid\\\",\\\"underpass\\\",\\\"underpay\\\",\\\"underrate\\\",\\\"undertake\\\",\\\"undertone\\\",\\\"undertook\\\",\\\"undertow\\\",\\\"underuse\\\",\\\"underwear\\\",\\\"underwent\\\",\\\"underwire\\\",\\\"undesired\\\",\\\"undiluted\\\",\\\"undivided\\\",\\\"undocked\\\",\\\"undoing\\\",\\\"undone\\\",\\\"undrafted\\\",\\\"undress\\\",\\\"undrilled\\\",\\\"undusted\\\",\\\"undying\\\",\\\"unearned\\\",\\\"unearth\\\",\\\"unease\\\",\\\"uneasily\\\",\\\"uneasy\\\",\\\"uneatable\\\",\\\"uneaten\\\",\\\"unedited\\\",\\\"unelected\\\",\\\"unending\\\",\\\"unengaged\\\",\\\"unenvied\\\",\\\"unequal\\\",\\\"unethical\\\",\\\"uneven\\\",\\\"unexpired\\\",\\\"unexposed\\\",\\\"unfailing\\\",\\\"unfair\\\",\\\"unfasten\\\",\\\"unfazed\\\",\\\"unfeeling\\\",\\\"unfiled\\\",\\\"unfilled\\\",\\\"unfitted\\\",\\\"unfitting\\\",\\\"unfixable\\\",\\\"unfixed\\\",\\\"unflawed\\\",\\\"unfocused\\\",\\\"unfold\\\",\\\"unfounded\\\",\\\"unframed\\\",\\\"unfreeze\\\",\\\"unfrosted\\\",\\\"unfrozen\\\",\\\"unfunded\\\",\\\"unglazed\\\",\\\"ungloved\\\",\\\"unglue\\\",\\\"ungodly\\\",\\\"ungraded\\\",\\\"ungreased\\\",\\\"unguarded\\\",\\\"unguided\\\",\\\"unhappily\\\",\\\"unhappy\\\",\\\"unharmed\\\",\\\"unhealthy\\\",\\\"unheard\\\",\\\"unhearing\\\",\\\"unheated\\\",\\\"unhelpful\\\",\\\"unhidden\\\",\\\"unhinge\\\",\\\"unhitched\\\",\\\"unholy\\\",\\\"unhook\\\",\\\"unicorn\\\",\\\"unicycle\\\",\\\"unified\\\",\\\"unifier\\\",\\\"uniformed\\\",\\\"uniformly\\\",\\\"unify\\\",\\\"unimpeded\\\",\\\"uninjured\\\",\\\"uninstall\\\",\\\"uninsured\\\",\\\"uninvited\\\",\\\"union\\\",\\\"uniquely\\\",\\\"unisexual\\\",\\\"unison\\\",\\\"unissued\\\",\\\"unit\\\",\\\"universal\\\",\\\"universe\\\",\\\"unjustly\\\",\\\"unkempt\\\",\\\"unkind\\\",\\\"unknotted\\\",\\\"unknowing\\\",\\\"unknown\\\",\\\"unlaced\\\",\\\"unlatch\\\",\\\"unlawful\\\",\\\"unleaded\\\",\\\"unlearned\\\",\\\"unleash\\\",\\\"unless\\\",\\\"unleveled\\\",\\\"unlighted\\\",\\\"unlikable\\\",\\\"unlimited\\\",\\\"unlined\\\",\\\"unlinked\\\",\\\"unlisted\\\",\\\"unlit\\\",\\\"unlivable\\\",\\\"unloaded\\\",\\\"unloader\\\",\\\"unlocked\\\",\\\"unlocking\\\",\\\"unlovable\\\",\\\"unloved\\\",\\\"unlovely\\\",\\\"unloving\\\",\\\"unluckily\\\",\\\"unlucky\\\",\\\"unmade\\\",\\\"unmanaged\\\",\\\"unmanned\\\",\\\"unmapped\\\",\\\"unmarked\\\",\\\"unmasked\\\",\\\"unmasking\\\",\\\"unmatched\\\",\\\"unmindful\\\",\\\"unmixable\\\",\\\"unmixed\\\",\\\"unmolded\\\",\\\"unmoral\\\",\\\"unmovable\\\",\\\"unmoved\\\",\\\"unmoving\\\",\\\"unnamable\\\",\\\"unnamed\\\",\\\"unnatural\\\",\\\"unneeded\\\",\\\"unnerve\\\",\\\"unnerving\\\",\\\"unnoticed\\\",\\\"unopened\\\",\\\"unopposed\\\",\\\"unpack\\\",\\\"unpadded\\\",\\\"unpaid\\\",\\\"unpainted\\\",\\\"unpaired\\\",\\\"unpaved\\\",\\\"unpeeled\\\",\\\"unpicked\\\",\\\"unpiloted\\\",\\\"unpinned\\\",\\\"unplanned\\\",\\\"unplanted\\\",\\\"unpleased\\\",\\\"unpledged\\\",\\\"unplowed\\\",\\\"unplug\\\",\\\"unpopular\\\",\\\"unproven\\\",\\\"unquote\\\",\\\"unranked\\\",\\\"unrated\\\",\\\"unraveled\\\",\\\"unreached\\\",\\\"unread\\\",\\\"unreal\\\",\\\"unreeling\\\",\\\"unrefined\\\",\\\"unrelated\\\",\\\"unrented\\\",\\\"unrest\\\",\\\"unretired\\\",\\\"unrevised\\\",\\\"unrigged\\\",\\\"unripe\\\",\\\"unrivaled\\\",\\\"unroasted\\\",\\\"unrobed\\\",\\\"unroll\\\",\\\"unruffled\\\",\\\"unruly\\\",\\\"unrushed\\\",\\\"unsaddle\\\",\\\"unsafe\\\",\\\"unsaid\\\",\\\"unsalted\\\",\\\"unsaved\\\",\\\"unsavory\\\",\\\"unscathed\\\",\\\"unscented\\\",\\\"unscrew\\\",\\\"unsealed\\\",\\\"unseated\\\",\\\"unsecured\\\",\\\"unseeing\\\",\\\"unseemly\\\",\\\"unseen\\\",\\\"unselect\\\",\\\"unselfish\\\",\\\"unsent\\\",\\\"unsettled\\\",\\\"unshackle\\\",\\\"unshaken\\\",\\\"unshaved\\\",\\\"unshaven\\\",\\\"unsheathe\\\",\\\"unshipped\\\",\\\"unsightly\\\",\\\"unsigned\\\",\\\"unskilled\\\",\\\"unsliced\\\",\\\"unsmooth\\\",\\\"unsnap\\\",\\\"unsocial\\\",\\\"unsoiled\\\",\\\"unsold\\\",\\\"unsolved\\\",\\\"unsorted\\\",\\\"unspoiled\\\",\\\"unspoken\\\",\\\"unstable\\\",\\\"unstaffed\\\",\\\"unstamped\\\",\\\"unsteady\\\",\\\"unsterile\\\",\\\"unstirred\\\",\\\"unstitch\\\",\\\"unstopped\\\",\\\"unstuck\\\",\\\"unstuffed\\\",\\\"unstylish\\\",\\\"unsubtle\\\",\\\"unsubtly\\\",\\\"unsuited\\\",\\\"unsure\\\",\\\"unsworn\\\",\\\"untagged\\\",\\\"untainted\\\",\\\"untaken\\\",\\\"untamed\\\",\\\"untangled\\\",\\\"untapped\\\",\\\"untaxed\\\",\\\"unthawed\\\",\\\"unthread\\\",\\\"untidy\\\",\\\"untie\\\",\\\"until\\\",\\\"untimed\\\",\\\"untimely\\\",\\\"untitled\\\",\\\"untoasted\\\",\\\"untold\\\",\\\"untouched\\\",\\\"untracked\\\",\\\"untrained\\\",\\\"untreated\\\",\\\"untried\\\",\\\"untrimmed\\\",\\\"untrue\\\",\\\"untruth\\\",\\\"unturned\\\",\\\"untwist\\\",\\\"untying\\\",\\\"unusable\\\",\\\"unused\\\",\\\"unusual\\\",\\\"unvalued\\\",\\\"unvaried\\\",\\\"unvarying\\\",\\\"unveiled\\\",\\\"unveiling\\\",\\\"unvented\\\",\\\"unviable\\\",\\\"unvisited\\\",\\\"unvocal\\\",\\\"unwanted\\\",\\\"unwarlike\\\",\\\"unwary\\\",\\\"unwashed\\\",\\\"unwatched\\\",\\\"unweave\\\",\\\"unwed\\\",\\\"unwelcome\\\",\\\"unwell\\\",\\\"unwieldy\\\",\\\"unwilling\\\",\\\"unwind\\\",\\\"unwired\\\",\\\"unwitting\\\",\\\"unwomanly\\\",\\\"unworldly\\\",\\\"unworn\\\",\\\"unworried\\\",\\\"unworthy\\\",\\\"unwound\\\",\\\"unwoven\\\",\\\"unwrapped\\\",\\\"unwritten\\\",\\\"unzip\\\",\\\"upbeat\\\",\\\"upchuck\\\",\\\"upcoming\\\",\\\"upcountry\\\",\\\"update\\\",\\\"upfront\\\",\\\"upgrade\\\",\\\"upheaval\\\",\\\"upheld\\\",\\\"uphill\\\",\\\"uphold\\\",\\\"uplifted\\\",\\\"uplifting\\\",\\\"upload\\\",\\\"upon\\\",\\\"upper\\\",\\\"upright\\\",\\\"uprising\\\",\\\"upriver\\\",\\\"uproar\\\",\\\"uproot\\\",\\\"upscale\\\",\\\"upside\\\",\\\"upstage\\\",\\\"upstairs\\\",\\\"upstart\\\",\\\"upstate\\\",\\\"upstream\\\",\\\"upstroke\\\",\\\"upswing\\\",\\\"uptake\\\",\\\"uptight\\\",\\\"uptown\\\",\\\"upturned\\\",\\\"upward\\\",\\\"upwind\\\",\\\"uranium\\\",\\\"urban\\\",\\\"urchin\\\",\\\"urethane\\\",\\\"urgency\\\",\\\"urgent\\\",\\\"urging\\\",\\\"urologist\\\",\\\"urology\\\",\\\"usable\\\",\\\"usage\\\",\\\"useable\\\",\\\"used\\\",\\\"uselessly\\\",\\\"user\\\",\\\"usher\\\",\\\"usual\\\",\\\"utensil\\\",\\\"utility\\\",\\\"utilize\\\",\\\"utmost\\\",\\\"utopia\\\",\\\"utter\\\",\\\"vacancy\\\",\\\"vacant\\\",\\\"vacate\\\",\\\"vacation\\\",\\\"vagabond\\\",\\\"vagrancy\\\",\\\"vagrantly\\\",\\\"vaguely\\\",\\\"vagueness\\\",\\\"valiant\\\",\\\"valid\\\",\\\"valium\\\",\\\"valley\\\",\\\"valuables\\\",\\\"value\\\",\\\"vanilla\\\",\\\"vanish\\\",\\\"vanity\\\",\\\"vanquish\\\",\\\"vantage\\\",\\\"vaporizer\\\",\\\"variable\\\",\\\"variably\\\",\\\"varied\\\",\\\"variety\\\",\\\"various\\\",\\\"varmint\\\",\\\"varnish\\\",\\\"varsity\\\",\\\"varying\\\",\\\"vascular\\\",\\\"vaseline\\\",\\\"vastly\\\",\\\"vastness\\\",\\\"veal\\\",\\\"vegan\\\",\\\"veggie\\\",\\\"vehicular\\\",\\\"velcro\\\",\\\"velocity\\\",\\\"velvet\\\",\\\"vendetta\\\",\\\"vending\\\",\\\"vendor\\\",\\\"veneering\\\",\\\"vengeful\\\",\\\"venomous\\\",\\\"ventricle\\\",\\\"venture\\\",\\\"venue\\\",\\\"venus\\\",\\\"verbalize\\\",\\\"verbally\\\",\\\"verbose\\\",\\\"verdict\\\",\\\"verify\\\",\\\"verse\\\",\\\"version\\\",\\\"versus\\\",\\\"vertebrae\\\",\\\"vertical\\\",\\\"vertigo\\\",\\\"very\\\",\\\"vessel\\\",\\\"vest\\\",\\\"veteran\\\",\\\"veto\\\",\\\"vexingly\\\",\\\"viability\\\",\\\"viable\\\",\\\"vibes\\\",\\\"vice\\\",\\\"vicinity\\\",\\\"victory\\\",\\\"video\\\",\\\"viewable\\\",\\\"viewer\\\",\\\"viewing\\\",\\\"viewless\\\",\\\"viewpoint\\\",\\\"vigorous\\\",\\\"village\\\",\\\"villain\\\",\\\"vindicate\\\",\\\"vineyard\\\",\\\"vintage\\\",\\\"violate\\\",\\\"violation\\\",\\\"violator\\\",\\\"violet\\\",\\\"violin\\\",\\\"viper\\\",\\\"viral\\\",\\\"virtual\\\",\\\"virtuous\\\",\\\"virus\\\",\\\"visa\\\",\\\"viscosity\\\",\\\"viscous\\\",\\\"viselike\\\",\\\"visible\\\",\\\"visibly\\\",\\\"vision\\\",\\\"visiting\\\",\\\"visitor\\\",\\\"visor\\\",\\\"vista\\\",\\\"vitality\\\",\\\"vitalize\\\",\\\"vitally\\\",\\\"vitamins\\\",\\\"vivacious\\\",\\\"vividly\\\",\\\"vividness\\\",\\\"vixen\\\",\\\"vocalist\\\",\\\"vocalize\\\",\\\"vocally\\\",\\\"vocation\\\",\\\"voice\\\",\\\"voicing\\\",\\\"void\\\",\\\"volatile\\\",\\\"volley\\\",\\\"voltage\\\",\\\"volumes\\\",\\\"voter\\\",\\\"voting\\\",\\\"voucher\\\",\\\"vowed\\\",\\\"vowel\\\",\\\"voyage\\\",\\\"wackiness\\\",\\\"wad\\\",\\\"wafer\\\",\\\"waffle\\\",\\\"waged\\\",\\\"wager\\\",\\\"wages\\\",\\\"waggle\\\",\\\"wagon\\\",\\\"wake\\\",\\\"waking\\\",\\\"walk\\\",\\\"walmart\\\",\\\"walnut\\\",\\\"walrus\\\",\\\"waltz\\\",\\\"wand\\\",\\\"wannabe\\\",\\\"wanted\\\",\\\"wanting\\\",\\\"wasabi\\\",\\\"washable\\\",\\\"washbasin\\\",\\\"washboard\\\",\\\"washbowl\\\",\\\"washcloth\\\",\\\"washday\\\",\\\"washed\\\",\\\"washer\\\",\\\"washhouse\\\",\\\"washing\\\",\\\"washout\\\",\\\"washroom\\\",\\\"washstand\\\",\\\"washtub\\\",\\\"wasp\\\",\\\"wasting\\\",\\\"watch\\\",\\\"water\\\",\\\"waviness\\\",\\\"waving\\\",\\\"wavy\\\",\\\"whacking\\\",\\\"whacky\\\",\\\"wham\\\",\\\"wharf\\\",\\\"wheat\\\",\\\"whenever\\\",\\\"whiff\\\",\\\"whimsical\\\",\\\"whinny\\\",\\\"whiny\\\",\\\"whisking\\\",\\\"whoever\\\",\\\"whole\\\",\\\"whomever\\\",\\\"whoopee\\\",\\\"whooping\\\",\\\"whoops\\\",\\\"why\\\",\\\"wick\\\",\\\"widely\\\",\\\"widen\\\",\\\"widget\\\",\\\"widow\\\",\\\"width\\\",\\\"wieldable\\\",\\\"wielder\\\",\\\"wife\\\",\\\"wifi\\\",\\\"wikipedia\\\",\\\"wildcard\\\",\\\"wildcat\\\",\\\"wilder\\\",\\\"wildfire\\\",\\\"wildfowl\\\",\\\"wildland\\\",\\\"wildlife\\\",\\\"wildly\\\",\\\"wildness\\\",\\\"willed\\\",\\\"willfully\\\",\\\"willing\\\",\\\"willow\\\",\\\"willpower\\\",\\\"wilt\\\",\\\"wimp\\\",\\\"wince\\\",\\\"wincing\\\",\\\"wind\\\",\\\"wing\\\",\\\"winking\\\",\\\"winner\\\",\\\"winnings\\\",\\\"winter\\\",\\\"wipe\\\",\\\"wired\\\",\\\"wireless\\\",\\\"wiring\\\",\\\"wiry\\\",\\\"wisdom\\\",\\\"wise\\\",\\\"wish\\\",\\\"wisplike\\\",\\\"wispy\\\",\\\"wistful\\\",\\\"wizard\\\",\\\"wobble\\\",\\\"wobbling\\\",\\\"wobbly\\\",\\\"wok\\\",\\\"wolf\\\",\\\"wolverine\\\",\\\"womanhood\\\",\\\"womankind\\\",\\\"womanless\\\",\\\"womanlike\\\",\\\"womanly\\\",\\\"womb\\\",\\\"woof\\\",\\\"wooing\\\",\\\"wool\\\",\\\"woozy\\\",\\\"word\\\",\\\"work\\\",\\\"worried\\\",\\\"worrier\\\",\\\"worrisome\\\",\\\"worry\\\",\\\"worsening\\\",\\\"worshiper\\\",\\\"worst\\\",\\\"wound\\\",\\\"woven\\\",\\\"wow\\\",\\\"wrangle\\\",\\\"wrath\\\",\\\"wreath\\\",\\\"wreckage\\\",\\\"wrecker\\\",\\\"wrecking\\\",\\\"wrench\\\",\\\"wriggle\\\",\\\"wriggly\\\",\\\"wrinkle\\\",\\\"wrinkly\\\",\\\"wrist\\\",\\\"writing\\\",\\\"written\\\",\\\"wrongdoer\\\",\\\"wronged\\\",\\\"wrongful\\\",\\\"wrongly\\\",\\\"wrongness\\\",\\\"wrought\\\",\\\"xbox\\\",\\\"xerox\\\",\\\"yahoo\\\",\\\"yam\\\",\\\"yanking\\\",\\\"yapping\\\",\\\"yard\\\",\\\"yarn\\\",\\\"yeah\\\",\\\"yearbook\\\",\\\"yearling\\\",\\\"yearly\\\",\\\"yearning\\\",\\\"yeast\\\",\\\"yelling\\\",\\\"yelp\\\",\\\"yen\\\",\\\"yesterday\\\",\\\"yiddish\\\",\\\"yield\\\",\\\"yin\\\",\\\"yippee\\\",\\\"yo-yo\\\",\\\"yodel\\\",\\\"yoga\\\",\\\"yogurt\\\",\\\"yonder\\\",\\\"yoyo\\\",\\\"yummy\\\",\\\"zap\\\",\\\"zealous\\\",\\\"zebra\\\",\\\"zen\\\",\\\"zeppelin\\\",\\\"zero\\\",\\\"zestfully\\\",\\\"zesty\\\",\\\"zigzagged\\\",\\\"zipfile\\\",\\\"zipping\\\",\\\"zippy\\\",\\\"zips\\\",\\\"zit\\\",\\\"zodiac\\\",\\\"zombie\\\",\\\"zone\\\",\\\"zoning\\\",\\\"zookeeper\\\",\\\"zoologist\\\",\\\"zoology\\\",\\\"zoom\\\"]});var PT=V(n1=>{\\\"use strict\\\";b();Object.defineProperty(n1,\\\"__esModule\\\",{value:!0});n1.newSecureWords=void 0;var WL=e1(),NT=UT();async function FL(t=6){let e=[];for(let n=0;n<t;n++)e.push(NT.wordlist[await(0,WL.getSecureRandomNumber)(0,NT.wordlist.length)]);return e}n1.newSecureWords=FL});var jT=V(r1=>{\\\"use strict\\\";b();Object.defineProperty(r1,\\\"__esModule\\\",{value:!0});r1.newSecurePassphrase=void 0;var $L=uc();async function KL(t=6){return(await(0,$L.newSecureWords)(t)).join(\\\"-\\\")}r1.newSecurePassphrase=KL});var a1=V((Ole,i1)=>{b();(function(t){\\\"use strict\\\";var e=function(m){var x,w=new Float64Array(16);if(m)for(x=0;x<m.length;x++)w[x]=m[x];return w},n=function(){throw new Error(\\\"no PRNG\\\")},r=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=e(),o=e([1]),s=e([56129,1]),l=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function g(m,x,w,f){m[x]=w>>24&255,m[x+1]=w>>16&255,m[x+2]=w>>8&255,m[x+3]=w&255,m[x+4]=f>>24&255,m[x+5]=f>>16&255,m[x+6]=f>>8&255,m[x+7]=f&255}function y(m,x,w,f,C){var W,Z=0;for(W=0;W<C;W++)Z|=m[x+W]^w[f+W];return(1&Z-1>>>8)-1}function E(m,x,w,f){return y(m,x,w,f,16)}function N(m,x,w,f){return y(m,x,w,f,32)}function _(m,x,w,f){for(var C=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,W=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,Z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,he=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,ke=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,Ye=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,je=x[0]&255|(x[1]&255)<<8|(x[2]&255)<<16|(x[3]&255)<<24,rn=x[4]&255|(x[5]&255)<<8|(x[6]&255)<<16|(x[7]&255)<<24,Ve=x[8]&255|(x[9]&255)<<8|(x[10]&255)<<16|(x[11]&255)<<24,ht=x[12]&255|(x[13]&255)<<8|(x[14]&255)<<16|(x[15]&255)<<24,pt=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,Et=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,_t=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,mt=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,bt=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,yt=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,We=C,nt=W,De=Z,Fe=he,Ke=ke,Ne=Ye,ne=je,re=rn,xe=Ve,fe=ht,ge=pt,Se=Et,ot=_t,At=mt,Ut=bt,kt=yt,M,Lt=0;Lt<20;Lt+=2)M=We+ot|0,Ke^=M<<7|M>>>25,M=Ke+We|0,xe^=M<<9|M>>>23,M=xe+Ke|0,ot^=M<<13|M>>>19,M=ot+xe|0,We^=M<<18|M>>>14,M=Ne+nt|0,fe^=M<<7|M>>>25,M=fe+Ne|0,At^=M<<9|M>>>23,M=At+fe|0,nt^=M<<13|M>>>19,M=nt+At|0,Ne^=M<<18|M>>>14,M=ge+ne|0,Ut^=M<<7|M>>>25,M=Ut+ge|0,De^=M<<9|M>>>23,M=De+Ut|0,ne^=M<<13|M>>>19,M=ne+De|0,ge^=M<<18|M>>>14,M=kt+Se|0,Fe^=M<<7|M>>>25,M=Fe+kt|0,re^=M<<9|M>>>23,M=re+Fe|0,Se^=M<<13|M>>>19,M=Se+re|0,kt^=M<<18|M>>>14,M=We+Fe|0,nt^=M<<7|M>>>25,M=nt+We|0,De^=M<<9|M>>>23,M=De+nt|0,Fe^=M<<13|M>>>19,M=Fe+De|0,We^=M<<18|M>>>14,M=Ne+Ke|0,ne^=M<<7|M>>>25,M=ne+Ne|0,re^=M<<9|M>>>23,M=re+ne|0,Ke^=M<<13|M>>>19,M=Ke+re|0,Ne^=M<<18|M>>>14,M=ge+fe|0,Se^=M<<7|M>>>25,M=Se+ge|0,xe^=M<<9|M>>>23,M=xe+Se|0,fe^=M<<13|M>>>19,M=fe+xe|0,ge^=M<<18|M>>>14,M=kt+Ut|0,ot^=M<<7|M>>>25,M=ot+kt|0,At^=M<<9|M>>>23,M=At+ot|0,Ut^=M<<13|M>>>19,M=Ut+At|0,kt^=M<<18|M>>>14;We=We+C|0,nt=nt+W|0,De=De+Z|0,Fe=Fe+he|0,Ke=Ke+ke|0,Ne=Ne+Ye|0,ne=ne+je|0,re=re+rn|0,xe=xe+Ve|0,fe=fe+ht|0,ge=ge+pt|0,Se=Se+Et|0,ot=ot+_t|0,At=At+mt|0,Ut=Ut+bt|0,kt=kt+yt|0,m[0]=We>>>0&255,m[1]=We>>>8&255,m[2]=We>>>16&255,m[3]=We>>>24&255,m[4]=nt>>>0&255,m[5]=nt>>>8&255,m[6]=nt>>>16&255,m[7]=nt>>>24&255,m[8]=De>>>0&255,m[9]=De>>>8&255,m[10]=De>>>16&255,m[11]=De>>>24&255,m[12]=Fe>>>0&255,m[13]=Fe>>>8&255,m[14]=Fe>>>16&255,m[15]=Fe>>>24&255,m[16]=Ke>>>0&255,m[17]=Ke>>>8&255,m[18]=Ke>>>16&255,m[19]=Ke>>>24&255,m[20]=Ne>>>0&255,m[21]=Ne>>>8&255,m[22]=Ne>>>16&255,m[23]=Ne>>>24&255,m[24]=ne>>>0&255,m[25]=ne>>>8&255,m[26]=ne>>>16&255,m[27]=ne>>>24&255,m[28]=re>>>0&255,m[29]=re>>>8&255,m[30]=re>>>16&255,m[31]=re>>>24&255,m[32]=xe>>>0&255,m[33]=xe>>>8&255,m[34]=xe>>>16&255,m[35]=xe>>>24&255,m[36]=fe>>>0&255,m[37]=fe>>>8&255,m[38]=fe>>>16&255,m[39]=fe>>>24&255,m[40]=ge>>>0&255,m[41]=ge>>>8&255,m[42]=ge>>>16&255,m[43]=ge>>>24&255,m[44]=Se>>>0&255,m[45]=Se>>>8&255,m[46]=Se>>>16&255,m[47]=Se>>>24&255,m[48]=ot>>>0&255,m[49]=ot>>>8&255,m[50]=ot>>>16&255,m[51]=ot>>>24&255,m[52]=At>>>0&255,m[53]=At>>>8&255,m[54]=At>>>16&255,m[55]=At>>>24&255,m[56]=Ut>>>0&255,m[57]=Ut>>>8&255,m[58]=Ut>>>16&255,m[59]=Ut>>>24&255,m[60]=kt>>>0&255,m[61]=kt>>>8&255,m[62]=kt>>>16&255,m[63]=kt>>>24&255}function v(m,x,w,f){for(var C=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,W=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,Z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,he=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,ke=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,Ye=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,je=x[0]&255|(x[1]&255)<<8|(x[2]&255)<<16|(x[3]&255)<<24,rn=x[4]&255|(x[5]&255)<<8|(x[6]&255)<<16|(x[7]&255)<<24,Ve=x[8]&255|(x[9]&255)<<8|(x[10]&255)<<16|(x[11]&255)<<24,ht=x[12]&255|(x[13]&255)<<8|(x[14]&255)<<16|(x[15]&255)<<24,pt=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,Et=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,_t=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,mt=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,bt=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,yt=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,We=C,nt=W,De=Z,Fe=he,Ke=ke,Ne=Ye,ne=je,re=rn,xe=Ve,fe=ht,ge=pt,Se=Et,ot=_t,At=mt,Ut=bt,kt=yt,M,Lt=0;Lt<20;Lt+=2)M=We+ot|0,Ke^=M<<7|M>>>25,M=Ke+We|0,xe^=M<<9|M>>>23,M=xe+Ke|0,ot^=M<<13|M>>>19,M=ot+xe|0,We^=M<<18|M>>>14,M=Ne+nt|0,fe^=M<<7|M>>>25,M=fe+Ne|0,At^=M<<9|M>>>23,M=At+fe|0,nt^=M<<13|M>>>19,M=nt+At|0,Ne^=M<<18|M>>>14,M=ge+ne|0,Ut^=M<<7|M>>>25,M=Ut+ge|0,De^=M<<9|M>>>23,M=De+Ut|0,ne^=M<<13|M>>>19,M=ne+De|0,ge^=M<<18|M>>>14,M=kt+Se|0,Fe^=M<<7|M>>>25,M=Fe+kt|0,re^=M<<9|M>>>23,M=re+Fe|0,Se^=M<<13|M>>>19,M=Se+re|0,kt^=M<<18|M>>>14,M=We+Fe|0,nt^=M<<7|M>>>25,M=nt+We|0,De^=M<<9|M>>>23,M=De+nt|0,Fe^=M<<13|M>>>19,M=Fe+De|0,We^=M<<18|M>>>14,M=Ne+Ke|0,ne^=M<<7|M>>>25,M=ne+Ne|0,re^=M<<9|M>>>23,M=re+ne|0,Ke^=M<<13|M>>>19,M=Ke+re|0,Ne^=M<<18|M>>>14,M=ge+fe|0,Se^=M<<7|M>>>25,M=Se+ge|0,xe^=M<<9|M>>>23,M=xe+Se|0,fe^=M<<13|M>>>19,M=fe+xe|0,ge^=M<<18|M>>>14,M=kt+Ut|0,ot^=M<<7|M>>>25,M=ot+kt|0,At^=M<<9|M>>>23,M=At+ot|0,Ut^=M<<13|M>>>19,M=Ut+At|0,kt^=M<<18|M>>>14;m[0]=We>>>0&255,m[1]=We>>>8&255,m[2]=We>>>16&255,m[3]=We>>>24&255,m[4]=Ne>>>0&255,m[5]=Ne>>>8&255,m[6]=Ne>>>16&255,m[7]=Ne>>>24&255,m[8]=ge>>>0&255,m[9]=ge>>>8&255,m[10]=ge>>>16&255,m[11]=ge>>>24&255,m[12]=kt>>>0&255,m[13]=kt>>>8&255,m[14]=kt>>>16&255,m[15]=kt>>>24&255,m[16]=ne>>>0&255,m[17]=ne>>>8&255,m[18]=ne>>>16&255,m[19]=ne>>>24&255,m[20]=re>>>0&255,m[21]=re>>>8&255,m[22]=re>>>16&255,m[23]=re>>>24&255,m[24]=xe>>>0&255,m[25]=xe>>>8&255,m[26]=xe>>>16&255,m[27]=xe>>>24&255,m[28]=fe>>>0&255,m[29]=fe>>>8&255,m[30]=fe>>>16&255,m[31]=fe>>>24&255}function T(m,x,w,f){_(m,x,w,f)}function R(m,x,w,f){v(m,x,w,f)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function X(m,x,w,f,C,W,Z){var he=new Uint8Array(16),ke=new Uint8Array(64),Ye,je;for(je=0;je<16;je++)he[je]=0;for(je=0;je<8;je++)he[je]=W[je];for(;C>=64;){for(T(ke,he,Z,U),je=0;je<64;je++)m[x+je]=w[f+je]^ke[je];for(Ye=1,je=8;je<16;je++)Ye=Ye+(he[je]&255)|0,he[je]=Ye&255,Ye>>>=8;C-=64,x+=64,f+=64}if(C>0)for(T(ke,he,Z,U),je=0;je<C;je++)m[x+je]=w[f+je]^ke[je];return 0}function k(m,x,w,f,C){var W=new Uint8Array(16),Z=new Uint8Array(64),he,ke;for(ke=0;ke<16;ke++)W[ke]=0;for(ke=0;ke<8;ke++)W[ke]=f[ke];for(;w>=64;){for(T(Z,W,C,U),ke=0;ke<64;ke++)m[x+ke]=Z[ke];for(he=1,ke=8;ke<16;ke++)he=he+(W[ke]&255)|0,W[ke]=he&255,he>>>=8;w-=64,x+=64}if(w>0)for(T(Z,W,C,U),ke=0;ke<w;ke++)m[x+ke]=Z[ke];return 0}function q(m,x,w,f,C){var W=new Uint8Array(32);R(W,f,C,U);for(var Z=new Uint8Array(8),he=0;he<8;he++)Z[he]=f[he+16];return k(m,x,w,Z,W)}function z(m,x,w,f,C,W,Z){var he=new Uint8Array(32);R(he,W,Z,U);for(var ke=new Uint8Array(8),Ye=0;Ye<8;Ye++)ke[Ye]=W[Ye+16];return X(m,x,w,f,C,ke,he)}var $=function(m){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var x,w,f,C,W,Z,he,ke;x=m[0]&255|(m[1]&255)<<8,this.r[0]=x&8191,w=m[2]&255|(m[3]&255)<<8,this.r[1]=(x>>>13|w<<3)&8191,f=m[4]&255|(m[5]&255)<<8,this.r[2]=(w>>>10|f<<6)&7939,C=m[6]&255|(m[7]&255)<<8,this.r[3]=(f>>>7|C<<9)&8191,W=m[8]&255|(m[9]&255)<<8,this.r[4]=(C>>>4|W<<12)&255,this.r[5]=W>>>1&8190,Z=m[10]&255|(m[11]&255)<<8,this.r[6]=(W>>>14|Z<<2)&8191,he=m[12]&255|(m[13]&255)<<8,this.r[7]=(Z>>>11|he<<5)&8065,ke=m[14]&255|(m[15]&255)<<8,this.r[8]=(he>>>8|ke<<8)&8191,this.r[9]=ke>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};$.prototype.blocks=function(m,x,w){for(var f=this.fin?0:2048,C,W,Z,he,ke,Ye,je,rn,Ve,ht,pt,Et,_t,mt,bt,yt,We,nt,De,Fe=this.h[0],Ke=this.h[1],Ne=this.h[2],ne=this.h[3],re=this.h[4],xe=this.h[5],fe=this.h[6],ge=this.h[7],Se=this.h[8],ot=this.h[9],At=this.r[0],Ut=this.r[1],kt=this.r[2],M=this.r[3],Lt=this.r[4],an=this.r[5],on=this.r[6],Pt=this.r[7],en=this.r[8],tn=this.r[9];w>=16;)C=m[x+0]&255|(m[x+1]&255)<<8,Fe+=C&8191,W=m[x+2]&255|(m[x+3]&255)<<8,Ke+=(C>>>13|W<<3)&8191,Z=m[x+4]&255|(m[x+5]&255)<<8,Ne+=(W>>>10|Z<<6)&8191,he=m[x+6]&255|(m[x+7]&255)<<8,ne+=(Z>>>7|he<<9)&8191,ke=m[x+8]&255|(m[x+9]&255)<<8,re+=(he>>>4|ke<<12)&8191,xe+=ke>>>1&8191,Ye=m[x+10]&255|(m[x+11]&255)<<8,fe+=(ke>>>14|Ye<<2)&8191,je=m[x+12]&255|(m[x+13]&255)<<8,ge+=(Ye>>>11|je<<5)&8191,rn=m[x+14]&255|(m[x+15]&255)<<8,Se+=(je>>>8|rn<<8)&8191,ot+=rn>>>5|f,Ve=0,ht=Ve,ht+=Fe*At,ht+=Ke*(5*tn),ht+=Ne*(5*en),ht+=ne*(5*Pt),ht+=re*(5*on),Ve=ht>>>13,ht&=8191,ht+=xe*(5*an),ht+=fe*(5*Lt),ht+=ge*(5*M),ht+=Se*(5*kt),ht+=ot*(5*Ut),Ve+=ht>>>13,ht&=8191,pt=Ve,pt+=Fe*Ut,pt+=Ke*At,pt+=Ne*(5*tn),pt+=ne*(5*en),pt+=re*(5*Pt),Ve=pt>>>13,pt&=8191,pt+=xe*(5*on),pt+=fe*(5*an),pt+=ge*(5*Lt),pt+=Se*(5*M),pt+=ot*(5*kt),Ve+=pt>>>13,pt&=8191,Et=Ve,Et+=Fe*kt,Et+=Ke*Ut,Et+=Ne*At,Et+=ne*(5*tn),Et+=re*(5*en),Ve=Et>>>13,Et&=8191,Et+=xe*(5*Pt),Et+=fe*(5*on),Et+=ge*(5*an),Et+=Se*(5*Lt),Et+=ot*(5*M),Ve+=Et>>>13,Et&=8191,_t=Ve,_t+=Fe*M,_t+=Ke*kt,_t+=Ne*Ut,_t+=ne*At,_t+=re*(5*tn),Ve=_t>>>13,_t&=8191,_t+=xe*(5*en),_t+=fe*(5*Pt),_t+=ge*(5*on),_t+=Se*(5*an),_t+=ot*(5*Lt),Ve+=_t>>>13,_t&=8191,mt=Ve,mt+=Fe*Lt,mt+=Ke*M,mt+=Ne*kt,mt+=ne*Ut,mt+=re*At,Ve=mt>>>13,mt&=8191,mt+=xe*(5*tn),mt+=fe*(5*en),mt+=ge*(5*Pt),mt+=Se*(5*on),mt+=ot*(5*an),Ve+=mt>>>13,mt&=8191,bt=Ve,bt+=Fe*an,bt+=Ke*Lt,bt+=Ne*M,bt+=ne*kt,bt+=re*Ut,Ve=bt>>>13,bt&=8191,bt+=xe*At,bt+=fe*(5*tn),bt+=ge*(5*en),bt+=Se*(5*Pt),bt+=ot*(5*on),Ve+=bt>>>13,bt&=8191,yt=Ve,yt+=Fe*on,yt+=Ke*an,yt+=Ne*Lt,yt+=ne*M,yt+=re*kt,Ve=yt>>>13,yt&=8191,yt+=xe*Ut,yt+=fe*At,yt+=ge*(5*tn),yt+=Se*(5*en),yt+=ot*(5*Pt),Ve+=yt>>>13,yt&=8191,We=Ve,We+=Fe*Pt,We+=Ke*on,We+=Ne*an,We+=ne*Lt,We+=re*M,Ve=We>>>13,We&=8191,We+=xe*kt,We+=fe*Ut,We+=ge*At,We+=Se*(5*tn),We+=ot*(5*en),Ve+=We>>>13,We&=8191,nt=Ve,nt+=Fe*en,nt+=Ke*Pt,nt+=Ne*on,nt+=ne*an,nt+=re*Lt,Ve=nt>>>13,nt&=8191,nt+=xe*M,nt+=fe*kt,nt+=ge*Ut,nt+=Se*At,nt+=ot*(5*tn),Ve+=nt>>>13,nt&=8191,De=Ve,De+=Fe*tn,De+=Ke*en,De+=Ne*Pt,De+=ne*on,De+=re*an,Ve=De>>>13,De&=8191,De+=xe*Lt,De+=fe*M,De+=ge*kt,De+=Se*Ut,De+=ot*At,Ve+=De>>>13,De&=8191,Ve=(Ve<<2)+Ve|0,Ve=Ve+ht|0,ht=Ve&8191,Ve=Ve>>>13,pt+=Ve,Fe=ht,Ke=pt,Ne=Et,ne=_t,re=mt,xe=bt,fe=yt,ge=We,Se=nt,ot=De,x+=16,w-=16;this.h[0]=Fe,this.h[1]=Ke,this.h[2]=Ne,this.h[3]=ne,this.h[4]=re,this.h[5]=xe,this.h[6]=fe,this.h[7]=ge,this.h[8]=Se,this.h[9]=ot},$.prototype.finish=function(m,x){var w=new Uint16Array(10),f,C,W,Z;if(this.leftover){for(Z=this.leftover,this.buffer[Z++]=1;Z<16;Z++)this.buffer[Z]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(f=this.h[1]>>>13,this.h[1]&=8191,Z=2;Z<10;Z++)this.h[Z]+=f,f=this.h[Z]>>>13,this.h[Z]&=8191;for(this.h[0]+=f*5,f=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=f,f=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=f,w[0]=this.h[0]+5,f=w[0]>>>13,w[0]&=8191,Z=1;Z<10;Z++)w[Z]=this.h[Z]+f,f=w[Z]>>>13,w[Z]&=8191;for(w[9]-=8192,C=(f^1)-1,Z=0;Z<10;Z++)w[Z]&=C;for(C=~C,Z=0;Z<10;Z++)this.h[Z]=this.h[Z]&C|w[Z];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,W=this.h[0]+this.pad[0],this.h[0]=W&65535,Z=1;Z<8;Z++)W=(this.h[Z]+this.pad[Z]|0)+(W>>>16)|0,this.h[Z]=W&65535;m[x+0]=this.h[0]>>>0&255,m[x+1]=this.h[0]>>>8&255,m[x+2]=this.h[1]>>>0&255,m[x+3]=this.h[1]>>>8&255,m[x+4]=this.h[2]>>>0&255,m[x+5]=this.h[2]>>>8&255,m[x+6]=this.h[3]>>>0&255,m[x+7]=this.h[3]>>>8&255,m[x+8]=this.h[4]>>>0&255,m[x+9]=this.h[4]>>>8&255,m[x+10]=this.h[5]>>>0&255,m[x+11]=this.h[5]>>>8&255,m[x+12]=this.h[6]>>>0&255,m[x+13]=this.h[6]>>>8&255,m[x+14]=this.h[7]>>>0&255,m[x+15]=this.h[7]>>>8&255},$.prototype.update=function(m,x,w){var f,C;if(this.leftover){for(C=16-this.leftover,C>w&&(C=w),f=0;f<C;f++)this.buffer[this.leftover+f]=m[x+f];if(w-=C,x+=C,this.leftover+=C,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(w>=16&&(C=w-w%16,this.blocks(m,x,C),x+=C,w-=C),w){for(f=0;f<w;f++)this.buffer[this.leftover+f]=m[x+f];this.leftover+=w}};function L(m,x,w,f,C,W){var Z=new $(W);return Z.update(w,f,C),Z.finish(m,x),0}function P(m,x,w,f,C,W){var Z=new Uint8Array(16);return L(Z,0,w,f,C,W),E(m,x,Z,0)}function pe(m,x,w,f,C){var W;if(w<32)return-1;for(z(m,0,x,0,w,f,C),L(m,16,m,32,w-32,m),W=0;W<16;W++)m[W]=0;return 0}function le(m,x,w,f,C){var W,Z=new Uint8Array(32);if(w<32||(q(Z,0,32,f,C),P(x,16,x,32,w-32,Z)!==0))return-1;for(z(m,0,x,0,w,f,C),W=0;W<32;W++)m[W]=0;return 0}function se(m,x){var w;for(w=0;w<16;w++)m[w]=x[w]|0}function Le(m){var x,w,f=1;for(x=0;x<16;x++)w=m[x]+f+65535,f=Math.floor(w/65536),m[x]=w-f*65536;m[0]+=f-1+37*(f-1)}function O(m,x,w){for(var f,C=~(w-1),W=0;W<16;W++)f=C&(m[W]^x[W]),m[W]^=f,x[W]^=f}function Ze(m,x){var w,f,C,W=e(),Z=e();for(w=0;w<16;w++)Z[w]=x[w];for(Le(Z),Le(Z),Le(Z),f=0;f<2;f++){for(W[0]=Z[0]-65517,w=1;w<15;w++)W[w]=Z[w]-65535-(W[w-1]>>16&1),W[w-1]&=65535;W[15]=Z[15]-32767-(W[14]>>16&1),C=W[15]>>16&1,W[14]&=65535,O(Z,W,1-C)}for(w=0;w<16;w++)m[2*w]=Z[w]&255,m[2*w+1]=Z[w]>>8}function rt(m,x){var w=new Uint8Array(32),f=new Uint8Array(32);return Ze(w,m),Ze(f,x),N(w,0,f,0)}function St(m){var x=new Uint8Array(32);return Ze(x,m),x[0]&1}function Xt(m,x){var w;for(w=0;w<16;w++)m[w]=x[2*w]+(x[2*w+1]<<8);m[15]&=32767}function Jt(m,x,w){for(var f=0;f<16;f++)m[f]=x[f]+w[f]}function pn(m,x,w){for(var f=0;f<16;f++)m[f]=x[f]-w[f]}function He(m,x,w){var f,C,W=0,Z=0,he=0,ke=0,Ye=0,je=0,rn=0,Ve=0,ht=0,pt=0,Et=0,_t=0,mt=0,bt=0,yt=0,We=0,nt=0,De=0,Fe=0,Ke=0,Ne=0,ne=0,re=0,xe=0,fe=0,ge=0,Se=0,ot=0,At=0,Ut=0,kt=0,M=w[0],Lt=w[1],an=w[2],on=w[3],Pt=w[4],en=w[5],tn=w[6],nr=w[7],mn=w[8],Gn=w[9],Qn=w[10],Xn=w[11],hr=w[12],Or=w[13],Ir=w[14],Ur=w[15];f=x[0],W+=f*M,Z+=f*Lt,he+=f*an,ke+=f*on,Ye+=f*Pt,je+=f*en,rn+=f*tn,Ve+=f*nr,ht+=f*mn,pt+=f*Gn,Et+=f*Qn,_t+=f*Xn,mt+=f*hr,bt+=f*Or,yt+=f*Ir,We+=f*Ur,f=x[1],Z+=f*M,he+=f*Lt,ke+=f*an,Ye+=f*on,je+=f*Pt,rn+=f*en,Ve+=f*tn,ht+=f*nr,pt+=f*mn,Et+=f*Gn,_t+=f*Qn,mt+=f*Xn,bt+=f*hr,yt+=f*Or,We+=f*Ir,nt+=f*Ur,f=x[2],he+=f*M,ke+=f*Lt,Ye+=f*an,je+=f*on,rn+=f*Pt,Ve+=f*en,ht+=f*tn,pt+=f*nr,Et+=f*mn,_t+=f*Gn,mt+=f*Qn,bt+=f*Xn,yt+=f*hr,We+=f*Or,nt+=f*Ir,De+=f*Ur,f=x[3],ke+=f*M,Ye+=f*Lt,je+=f*an,rn+=f*on,Ve+=f*Pt,ht+=f*en,pt+=f*tn,Et+=f*nr,_t+=f*mn,mt+=f*Gn,bt+=f*Qn,yt+=f*Xn,We+=f*hr,nt+=f*Or,De+=f*Ir,Fe+=f*Ur,f=x[4],Ye+=f*M,je+=f*Lt,rn+=f*an,Ve+=f*on,ht+=f*Pt,pt+=f*en,Et+=f*tn,_t+=f*nr,mt+=f*mn,bt+=f*Gn,yt+=f*Qn,We+=f*Xn,nt+=f*hr,De+=f*Or,Fe+=f*Ir,Ke+=f*Ur,f=x[5],je+=f*M,rn+=f*Lt,Ve+=f*an,ht+=f*on,pt+=f*Pt,Et+=f*en,_t+=f*tn,mt+=f*nr,bt+=f*mn,yt+=f*Gn,We+=f*Qn,nt+=f*Xn,De+=f*hr,Fe+=f*Or,Ke+=f*Ir,Ne+=f*Ur,f=x[6],rn+=f*M,Ve+=f*Lt,ht+=f*an,pt+=f*on,Et+=f*Pt,_t+=f*en,mt+=f*tn,bt+=f*nr,yt+=f*mn,We+=f*Gn,nt+=f*Qn,De+=f*Xn,Fe+=f*hr,Ke+=f*Or,Ne+=f*Ir,ne+=f*Ur,f=x[7],Ve+=f*M,ht+=f*Lt,pt+=f*an,Et+=f*on,_t+=f*Pt,mt+=f*en,bt+=f*tn,yt+=f*nr,We+=f*mn,nt+=f*Gn,De+=f*Qn,Fe+=f*Xn,Ke+=f*hr,Ne+=f*Or,ne+=f*Ir,re+=f*Ur,f=x[8],ht+=f*M,pt+=f*Lt,Et+=f*an,_t+=f*on,mt+=f*Pt,bt+=f*en,yt+=f*tn,We+=f*nr,nt+=f*mn,De+=f*Gn,Fe+=f*Qn,Ke+=f*Xn,Ne+=f*hr,ne+=f*Or,re+=f*Ir,xe+=f*Ur,f=x[9],pt+=f*M,Et+=f*Lt,_t+=f*an,mt+=f*on,bt+=f*Pt,yt+=f*en,We+=f*tn,nt+=f*nr,De+=f*mn,Fe+=f*Gn,Ke+=f*Qn,Ne+=f*Xn,ne+=f*hr,re+=f*Or,xe+=f*Ir,fe+=f*Ur,f=x[10],Et+=f*M,_t+=f*Lt,mt+=f*an,bt+=f*on,yt+=f*Pt,We+=f*en,nt+=f*tn,De+=f*nr,Fe+=f*mn,Ke+=f*Gn,Ne+=f*Qn,ne+=f*Xn,re+=f*hr,xe+=f*Or,fe+=f*Ir,ge+=f*Ur,f=x[11],_t+=f*M,mt+=f*Lt,bt+=f*an,yt+=f*on,We+=f*Pt,nt+=f*en,De+=f*tn,Fe+=f*nr,Ke+=f*mn,Ne+=f*Gn,ne+=f*Qn,re+=f*Xn,xe+=f*hr,fe+=f*Or,ge+=f*Ir,Se+=f*Ur,f=x[12],mt+=f*M,bt+=f*Lt,yt+=f*an,We+=f*on,nt+=f*Pt,De+=f*en,Fe+=f*tn,Ke+=f*nr,Ne+=f*mn,ne+=f*Gn,re+=f*Qn,xe+=f*Xn,fe+=f*hr,ge+=f*Or,Se+=f*Ir,ot+=f*Ur,f=x[13],bt+=f*M,yt+=f*Lt,We+=f*an,nt+=f*on,De+=f*Pt,Fe+=f*en,Ke+=f*tn,Ne+=f*nr,ne+=f*mn,re+=f*Gn,xe+=f*Qn,fe+=f*Xn,ge+=f*hr,Se+=f*Or,ot+=f*Ir,At+=f*Ur,f=x[14],yt+=f*M,We+=f*Lt,nt+=f*an,De+=f*on,Fe+=f*Pt,Ke+=f*en,Ne+=f*tn,ne+=f*nr,re+=f*mn,xe+=f*Gn,fe+=f*Qn,ge+=f*Xn,Se+=f*hr,ot+=f*Or,At+=f*Ir,Ut+=f*Ur,f=x[15],We+=f*M,nt+=f*Lt,De+=f*an,Fe+=f*on,Ke+=f*Pt,Ne+=f*en,ne+=f*tn,re+=f*nr,xe+=f*mn,fe+=f*Gn,ge+=f*Qn,Se+=f*Xn,ot+=f*hr,At+=f*Or,Ut+=f*Ir,kt+=f*Ur,W+=38*nt,Z+=38*De,he+=38*Fe,ke+=38*Ke,Ye+=38*Ne,je+=38*ne,rn+=38*re,Ve+=38*xe,ht+=38*fe,pt+=38*ge,Et+=38*Se,_t+=38*ot,mt+=38*At,bt+=38*Ut,yt+=38*kt,C=1,f=W+C+65535,C=Math.floor(f/65536),W=f-C*65536,f=Z+C+65535,C=Math.floor(f/65536),Z=f-C*65536,f=he+C+65535,C=Math.floor(f/65536),he=f-C*65536,f=ke+C+65535,C=Math.floor(f/65536),ke=f-C*65536,f=Ye+C+65535,C=Math.floor(f/65536),Ye=f-C*65536,f=je+C+65535,C=Math.floor(f/65536),je=f-C*65536,f=rn+C+65535,C=Math.floor(f/65536),rn=f-C*65536,f=Ve+C+65535,C=Math.floor(f/65536),Ve=f-C*65536,f=ht+C+65535,C=Math.floor(f/65536),ht=f-C*65536,f=pt+C+65535,C=Math.floor(f/65536),pt=f-C*65536,f=Et+C+65535,C=Math.floor(f/65536),Et=f-C*65536,f=_t+C+65535,C=Math.floor(f/65536),_t=f-C*65536,f=mt+C+65535,C=Math.floor(f/65536),mt=f-C*65536,f=bt+C+65535,C=Math.floor(f/65536),bt=f-C*65536,f=yt+C+65535,C=Math.floor(f/65536),yt=f-C*65536,f=We+C+65535,C=Math.floor(f/65536),We=f-C*65536,W+=C-1+37*(C-1),C=1,f=W+C+65535,C=Math.floor(f/65536),W=f-C*65536,f=Z+C+65535,C=Math.floor(f/65536),Z=f-C*65536,f=he+C+65535,C=Math.floor(f/65536),he=f-C*65536,f=ke+C+65535,C=Math.floor(f/65536),ke=f-C*65536,f=Ye+C+65535,C=Math.floor(f/65536),Ye=f-C*65536,f=je+C+65535,C=Math.floor(f/65536),je=f-C*65536,f=rn+C+65535,C=Math.floor(f/65536),rn=f-C*65536,f=Ve+C+65535,C=Math.floor(f/65536),Ve=f-C*65536,f=ht+C+65535,C=Math.floor(f/65536),ht=f-C*65536,f=pt+C+65535,C=Math.floor(f/65536),pt=f-C*65536,f=Et+C+65535,C=Math.floor(f/65536),Et=f-C*65536,f=_t+C+65535,C=Math.floor(f/65536),_t=f-C*65536,f=mt+C+65535,C=Math.floor(f/65536),mt=f-C*65536,f=bt+C+65535,C=Math.floor(f/65536),bt=f-C*65536,f=yt+C+65535,C=Math.floor(f/65536),yt=f-C*65536,f=We+C+65535,C=Math.floor(f/65536),We=f-C*65536,W+=C-1+37*(C-1),m[0]=W,m[1]=Z,m[2]=he,m[3]=ke,m[4]=Ye,m[5]=je,m[6]=rn,m[7]=Ve,m[8]=ht,m[9]=pt,m[10]=Et,m[11]=_t,m[12]=mt,m[13]=bt,m[14]=yt,m[15]=We}function Fn(m,x){He(m,x,x)}function Cr(m,x){var w=e(),f;for(f=0;f<16;f++)w[f]=x[f];for(f=253;f>=0;f--)Fn(w,w),f!==2&&f!==4&&He(w,w,x);for(f=0;f<16;f++)m[f]=w[f]}function Ei(m,x){var w=e(),f;for(f=0;f<16;f++)w[f]=x[f];for(f=250;f>=0;f--)Fn(w,w),f!==1&&He(w,w,x);for(f=0;f<16;f++)m[f]=w[f]}function oe(m,x,w){var f=new Uint8Array(32),C=new Float64Array(80),W,Z,he=e(),ke=e(),Ye=e(),je=e(),rn=e(),Ve=e();for(Z=0;Z<31;Z++)f[Z]=x[Z];for(f[31]=x[31]&127|64,f[0]&=248,Xt(C,w),Z=0;Z<16;Z++)ke[Z]=C[Z],je[Z]=he[Z]=Ye[Z]=0;for(he[0]=je[0]=1,Z=254;Z>=0;--Z)W=f[Z>>>3]>>>(Z&7)&1,O(he,ke,W),O(Ye,je,W),Jt(rn,he,Ye),pn(he,he,Ye),Jt(Ye,ke,je),pn(ke,ke,je),Fn(je,rn),Fn(Ve,he),He(he,Ye,he),He(Ye,ke,rn),Jt(rn,he,Ye),pn(he,he,Ye),Fn(ke,he),pn(Ye,je,Ve),He(he,Ye,s),Jt(he,he,je),He(Ye,Ye,he),He(he,je,Ve),He(je,ke,C),Fn(ke,rn),O(he,ke,W),O(Ye,je,W);for(Z=0;Z<16;Z++)C[Z+16]=he[Z],C[Z+32]=Ye[Z],C[Z+48]=ke[Z],C[Z+64]=je[Z];var ht=C.subarray(32),pt=C.subarray(16);return Cr(ht,ht),He(pt,pt,ht),Ze(m,pt),0}function ce(m,x){return oe(m,x,i)}function ie(m,x){return n(x,32),ce(m,x)}function ue(m,x,w){var f=new Uint8Array(32);return oe(f,w,x),R(m,r,f,U)}var ye=pe,Ue=le;function it(m,x,w,f,C,W){var Z=new Uint8Array(32);return ue(Z,C,W),ye(m,x,w,f,Z)}function tt(m,x,w,f,C,W){var Z=new Uint8Array(32);return ue(Z,C,W),Ue(m,x,w,f,Z)}var Ht=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Sn(m,x,w,f){for(var C=new Int32Array(16),W=new Int32Array(16),Z,he,ke,Ye,je,rn,Ve,ht,pt,Et,_t,mt,bt,yt,We,nt,De,Fe,Ke,Ne,ne,re,xe,fe,ge,Se,ot=m[0],At=m[1],Ut=m[2],kt=m[3],M=m[4],Lt=m[5],an=m[6],on=m[7],Pt=x[0],en=x[1],tn=x[2],nr=x[3],mn=x[4],Gn=x[5],Qn=x[6],Xn=x[7],hr=0;f>=128;){for(Ke=0;Ke<16;Ke++)Ne=8*Ke+hr,C[Ke]=w[Ne+0]<<24|w[Ne+1]<<16|w[Ne+2]<<8|w[Ne+3],W[Ke]=w[Ne+4]<<24|w[Ne+5]<<16|w[Ne+6]<<8|w[Ne+7];for(Ke=0;Ke<80;Ke++)if(Z=ot,he=At,ke=Ut,Ye=kt,je=M,rn=Lt,Ve=an,ht=on,pt=Pt,Et=en,_t=tn,mt=nr,bt=mn,yt=Gn,We=Qn,nt=Xn,ne=on,re=Xn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=(M>>>14|mn<<18)^(M>>>18|mn<<14)^(mn>>>9|M<<23),re=(mn>>>14|M<<18)^(mn>>>18|M<<14)^(M>>>9|mn<<23),xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,ne=M&Lt^~M&an,re=mn&Gn^~mn&Qn,xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,ne=Ht[Ke*2],re=Ht[Ke*2+1],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,ne=C[Ke%16],re=W[Ke%16],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,De=ge&65535|Se<<16,Fe=xe&65535|fe<<16,ne=De,re=Fe,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=(ot>>>28|Pt<<4)^(Pt>>>2|ot<<30)^(Pt>>>7|ot<<25),re=(Pt>>>28|ot<<4)^(ot>>>2|Pt<<30)^(ot>>>7|Pt<<25),xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,ne=ot&At^ot&Ut^At&Ut,re=Pt&en^Pt&tn^en&tn,xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,ht=ge&65535|Se<<16,nt=xe&65535|fe<<16,ne=Ye,re=mt,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=De,re=Fe,xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,Ye=ge&65535|Se<<16,mt=xe&65535|fe<<16,At=Z,Ut=he,kt=ke,M=Ye,Lt=je,an=rn,on=Ve,ot=ht,en=pt,tn=Et,nr=_t,mn=mt,Gn=bt,Qn=yt,Xn=We,Pt=nt,Ke%16===15)for(Ne=0;Ne<16;Ne++)ne=C[Ne],re=W[Ne],xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=C[(Ne+9)%16],re=W[(Ne+9)%16],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,De=C[(Ne+1)%16],Fe=W[(Ne+1)%16],ne=(De>>>1|Fe<<31)^(De>>>8|Fe<<24)^De>>>7,re=(Fe>>>1|De<<31)^(Fe>>>8|De<<24)^(Fe>>>7|De<<25),xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,De=C[(Ne+14)%16],Fe=W[(Ne+14)%16],ne=(De>>>19|Fe<<13)^(Fe>>>29|De<<3)^De>>>6,re=(Fe>>>19|De<<13)^(De>>>29|Fe<<3)^(Fe>>>6|De<<26),xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,C[Ne]=ge&65535|Se<<16,W[Ne]=xe&65535|fe<<16;ne=ot,re=Pt,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[0],re=x[0],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[0]=ot=ge&65535|Se<<16,x[0]=Pt=xe&65535|fe<<16,ne=At,re=en,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[1],re=x[1],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[1]=At=ge&65535|Se<<16,x[1]=en=xe&65535|fe<<16,ne=Ut,re=tn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[2],re=x[2],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[2]=Ut=ge&65535|Se<<16,x[2]=tn=xe&65535|fe<<16,ne=kt,re=nr,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[3],re=x[3],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[3]=kt=ge&65535|Se<<16,x[3]=nr=xe&65535|fe<<16,ne=M,re=mn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[4],re=x[4],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[4]=M=ge&65535|Se<<16,x[4]=mn=xe&65535|fe<<16,ne=Lt,re=Gn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[5],re=x[5],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[5]=Lt=ge&65535|Se<<16,x[5]=Gn=xe&65535|fe<<16,ne=an,re=Qn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[6],re=x[6],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[6]=an=ge&65535|Se<<16,x[6]=Qn=xe&65535|fe<<16,ne=on,re=Xn,xe=re&65535,fe=re>>>16,ge=ne&65535,Se=ne>>>16,ne=m[7],re=x[7],xe+=re&65535,fe+=re>>>16,ge+=ne&65535,Se+=ne>>>16,fe+=xe>>>16,ge+=fe>>>16,Se+=ge>>>16,m[7]=on=ge&65535|Se<<16,x[7]=Xn=xe&65535|fe<<16,hr+=128,f-=128}return f}function $e(m,x,w){var f=new Int32Array(8),C=new Int32Array(8),W=new Uint8Array(256),Z,he=w;for(f[0]=1779033703,f[1]=3144134277,f[2]=1013904242,f[3]=2773480762,f[4]=1359893119,f[5]=2600822924,f[6]=528734635,f[7]=1541459225,C[0]=4089235720,C[1]=2227873595,C[2]=4271175723,C[3]=1595750129,C[4]=2917565137,C[5]=725511199,C[6]=4215389547,C[7]=327033209,Sn(f,C,x,w),w%=128,Z=0;Z<w;Z++)W[Z]=x[he-w+Z];for(W[w]=128,w=256-128*(w<112?1:0),W[w-9]=0,g(W,w-8,he/536870912|0,he<<3),Sn(f,C,W,w),Z=0;Z<8;Z++)g(m,8*Z,f[Z],C[Z]);return 0}function Yn(m,x){var w=e(),f=e(),C=e(),W=e(),Z=e(),he=e(),ke=e(),Ye=e(),je=e();pn(w,m[1],m[0]),pn(je,x[1],x[0]),He(w,w,je),Jt(f,m[0],m[1]),Jt(je,x[0],x[1]),He(f,f,je),He(C,m[3],x[3]),He(C,C,c),He(W,m[2],x[2]),Jt(W,W,W),pn(Z,f,w),pn(he,W,C),Jt(ke,W,C),Jt(Ye,f,w),He(m[0],Z,he),He(m[1],Ye,ke),He(m[2],ke,he),He(m[3],Z,Ye)}function $n(m,x,w){var f;for(f=0;f<4;f++)O(m[f],x[f],w)}function Hr(m,x){var w=e(),f=e(),C=e();Cr(C,x[2]),He(w,x[0],C),He(f,x[1],C),Ze(m,f),m[31]^=St(w)<<7}function ii(m,x,w){var f,C;for(se(m[0],a),se(m[1],o),se(m[2],o),se(m[3],a),C=255;C>=0;--C)f=w[C/8|0]>>(C&7)&1,$n(m,x,f),Yn(x,m),Yn(m,m),$n(m,x,f)}function D(m,x){var w=[e(),e(),e(),e()];se(w[0],u),se(w[1],d),se(w[2],o),He(w[3],u,d),ii(m,w,x)}function S(m,x,w){var f=new Uint8Array(64),C=[e(),e(),e(),e()],W;for(w||n(x,32),$e(f,x,32),f[0]&=248,f[31]&=127,f[31]|=64,D(C,f),Hr(m,C),W=0;W<32;W++)x[W+32]=m[W];return 0}var I=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function j(m,x){var w,f,C,W;for(f=63;f>=32;--f){for(w=0,C=f-32,W=f-12;C<W;++C)x[C]+=w-16*x[f]*I[C-(f-32)],w=Math.floor((x[C]+128)/256),x[C]-=w*256;x[C]+=w,x[f]=0}for(w=0,C=0;C<32;C++)x[C]+=w-(x[31]>>4)*I[C],w=x[C]>>8,x[C]&=255;for(C=0;C<32;C++)x[C]-=w*I[C];for(f=0;f<32;f++)x[f+1]+=x[f]>>8,m[f]=x[f]&255}function H(m){var x=new Float64Array(64),w;for(w=0;w<64;w++)x[w]=m[w];for(w=0;w<64;w++)m[w]=0;j(m,x)}function B(m,x,w,f){var C=new Uint8Array(64),W=new Uint8Array(64),Z=new Uint8Array(64),he,ke,Ye=new Float64Array(64),je=[e(),e(),e(),e()];$e(C,f,32),C[0]&=248,C[31]&=127,C[31]|=64;var rn=w+64;for(he=0;he<w;he++)m[64+he]=x[he];for(he=0;he<32;he++)m[32+he]=C[32+he];for($e(Z,m.subarray(32),w+32),H(Z),D(je,Z),Hr(m,je),he=32;he<64;he++)m[he]=f[he];for($e(W,m,w+64),H(W),he=0;he<64;he++)Ye[he]=0;for(he=0;he<32;he++)Ye[he]=Z[he];for(he=0;he<32;he++)for(ke=0;ke<32;ke++)Ye[he+ke]+=W[he]*C[ke];return j(m.subarray(32),Ye),rn}function Q(m,x){var w=e(),f=e(),C=e(),W=e(),Z=e(),he=e(),ke=e();return se(m[2],o),Xt(m[1],x),Fn(C,m[1]),He(W,C,l),pn(C,C,m[2]),Jt(W,m[2],W),Fn(Z,W),Fn(he,Z),He(ke,he,Z),He(w,ke,C),He(w,w,W),Ei(w,w),He(w,w,C),He(w,w,W),He(w,w,W),He(m[0],w,W),Fn(f,m[0]),He(f,f,W),rt(f,C)&&He(m[0],m[0],h),Fn(f,m[0]),He(f,f,W),rt(f,C)?-1:(St(m[0])===x[31]>>7&&pn(m[0],a,m[0]),He(m[3],m[0],m[1]),0)}function ee(m,x,w,f){var C,W=new Uint8Array(32),Z=new Uint8Array(64),he=[e(),e(),e(),e()],ke=[e(),e(),e(),e()];if(w<64||Q(ke,f))return-1;for(C=0;C<w;C++)m[C]=x[C];for(C=0;C<32;C++)m[C+32]=f[C];if($e(Z,m,w),H(Z),ii(he,ke,Z),D(ke,x.subarray(32)),Yn(he,ke),Hr(W,he),w-=64,N(x,0,W,0)){for(C=0;C<w;C++)m[C]=0;return-1}for(C=0;C<w;C++)m[C]=x[C+64];return w}var te=32,me=24,Pe=32,_e=16,be=32,Ae=32,we=32,Tt=32,It=32,cn=me,Mn=Pe,xa=_e,Kn=64,fr=32,ja=64,Ss=32,xo=64;t.lowlevel={crypto_core_hsalsa20:R,crypto_stream_xor:z,crypto_stream:q,crypto_stream_salsa20_xor:X,crypto_stream_salsa20:k,crypto_onetimeauth:L,crypto_onetimeauth_verify:P,crypto_verify_16:E,crypto_verify_32:N,crypto_secretbox:pe,crypto_secretbox_open:le,crypto_scalarmult:oe,crypto_scalarmult_base:ce,crypto_box_beforenm:ue,crypto_box_afternm:ye,crypto_box:it,crypto_box_open:tt,crypto_box_keypair:ie,crypto_hash:$e,crypto_sign:B,crypto_sign_keypair:S,crypto_sign_open:ee,crypto_secretbox_KEYBYTES:te,crypto_secretbox_NONCEBYTES:me,crypto_secretbox_ZEROBYTES:Pe,crypto_secretbox_BOXZEROBYTES:_e,crypto_scalarmult_BYTES:be,crypto_scalarmult_SCALARBYTES:Ae,crypto_box_PUBLICKEYBYTES:we,crypto_box_SECRETKEYBYTES:Tt,crypto_box_BEFORENMBYTES:It,crypto_box_NONCEBYTES:cn,crypto_box_ZEROBYTES:Mn,crypto_box_BOXZEROBYTES:xa,crypto_sign_BYTES:Kn,crypto_sign_PUBLICKEYBYTES:fr,crypto_sign_SECRETKEYBYTES:ja,crypto_sign_SEEDBYTES:Ss,crypto_hash_BYTES:xo,gf:e,D:l,L:I,pack25519:Ze,unpack25519:Xt,M:He,A:Jt,S:Fn,Z:pn,pow2523:Ei,add:Yn,set25519:se,modL:j,scalarmult:ii,scalarbase:D};function zl(m,x){if(m.length!==te)throw new Error(\\\"bad key size\\\");if(x.length!==me)throw new Error(\\\"bad nonce size\\\")}function uv(m,x){if(m.length!==we)throw new Error(\\\"bad public key size\\\");if(x.length!==Tt)throw new Error(\\\"bad secret key size\\\")}function Ai(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError(\\\"unexpected type, use Uint8Array\\\")}function T_(m){for(var x=0;x<m.length;x++)m[x]=0}t.randomBytes=function(m){var x=new Uint8Array(m);return n(x,m),x},t.secretbox=function(m,x,w){Ai(m,x,w),zl(w,x);for(var f=new Uint8Array(Pe+m.length),C=new Uint8Array(f.length),W=0;W<m.length;W++)f[W+Pe]=m[W];return pe(C,f,f.length,x,w),C.subarray(_e)},t.secretbox.open=function(m,x,w){Ai(m,x,w),zl(w,x);for(var f=new Uint8Array(_e+m.length),C=new Uint8Array(f.length),W=0;W<m.length;W++)f[W+_e]=m[W];return f.length<32||le(C,f,f.length,x,w)!==0?null:C.subarray(Pe)},t.secretbox.keyLength=te,t.secretbox.nonceLength=me,t.secretbox.overheadLength=_e,t.scalarMult=function(m,x){if(Ai(m,x),m.length!==Ae)throw new Error(\\\"bad n size\\\");if(x.length!==be)throw new Error(\\\"bad p size\\\");var w=new Uint8Array(be);return oe(w,m,x),w},t.scalarMult.base=function(m){if(Ai(m),m.length!==Ae)throw new Error(\\\"bad n size\\\");var x=new Uint8Array(be);return ce(x,m),x},t.scalarMult.scalarLength=Ae,t.scalarMult.groupElementLength=be,t.box=function(m,x,w,f){var C=t.box.before(w,f);return t.secretbox(m,x,C)},t.box.before=function(m,x){Ai(m,x),uv(m,x);var w=new Uint8Array(It);return ue(w,m,x),w},t.box.after=t.secretbox,t.box.open=function(m,x,w,f){var C=t.box.before(w,f);return t.secretbox.open(m,x,C)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var m=new Uint8Array(we),x=new Uint8Array(Tt);return ie(m,x),{publicKey:m,secretKey:x}},t.box.keyPair.fromSecretKey=function(m){if(Ai(m),m.length!==Tt)throw new Error(\\\"bad secret key size\\\");var x=new Uint8Array(we);return ce(x,m),{publicKey:x,secretKey:new Uint8Array(m)}},t.box.publicKeyLength=we,t.box.secretKeyLength=Tt,t.box.sharedKeyLength=It,t.box.nonceLength=cn,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(m,x){if(Ai(m,x),x.length!==ja)throw new Error(\\\"bad secret key size\\\");var w=new Uint8Array(Kn+m.length);return B(w,m,m.length,x),w},t.sign.open=function(m,x){if(Ai(m,x),x.length!==fr)throw new Error(\\\"bad public key size\\\");var w=new Uint8Array(m.length),f=ee(w,m,m.length,x);if(f<0)return null;for(var C=new Uint8Array(f),W=0;W<C.length;W++)C[W]=w[W];return C},t.sign.detached=function(m,x){for(var w=t.sign(m,x),f=new Uint8Array(Kn),C=0;C<f.length;C++)f[C]=w[C];return f},t.sign.detached.verify=function(m,x,w){if(Ai(m,x,w),x.length!==Kn)throw new Error(\\\"bad signature size\\\");if(w.length!==fr)throw new Error(\\\"bad public key size\\\");var f=new Uint8Array(Kn+m.length),C=new Uint8Array(Kn+m.length),W;for(W=0;W<Kn;W++)f[W]=x[W];for(W=0;W<m.length;W++)f[W+Kn]=m[W];return ee(C,f,f.length,w)>=0},t.sign.keyPair=function(){var m=new Uint8Array(fr),x=new Uint8Array(ja);return S(m,x),{publicKey:m,secretKey:x}},t.sign.keyPair.fromSecretKey=function(m){if(Ai(m),m.length!==ja)throw new Error(\\\"bad secret key size\\\");for(var x=new Uint8Array(fr),w=0;w<x.length;w++)x[w]=m[32+w];return{publicKey:x,secretKey:new Uint8Array(m)}},t.sign.keyPair.fromSeed=function(m){if(Ai(m),m.length!==Ss)throw new Error(\\\"bad seed size\\\");for(var x=new Uint8Array(fr),w=new Uint8Array(ja),f=0;f<32;f++)w[f]=m[f];return S(x,w,!0),{publicKey:x,secretKey:w}},t.sign.publicKeyLength=fr,t.sign.secretKeyLength=ja,t.sign.seedLength=Ss,t.sign.signatureLength=Kn,t.hash=function(m){Ai(m);var x=new Uint8Array(xo);return $e(x,m,m.length),x},t.hash.hashLength=xo,t.verify=function(m,x){return Ai(m,x),m.length===0||x.length===0||m.length!==x.length?!1:y(m,0,x,0,m.length)===0},t.setPRNG=function(m){n=m},(function(){var m=typeof self<\\\"u\\\"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var x=65536;t.setPRNG(function(w,f){var C,W=new Uint8Array(f);for(C=0;C<f;C+=x)m.getRandomValues(W.subarray(C,C+Math.min(f-C,x)));for(C=0;C<f;C++)w[C]=W[C];T_(W)})}else typeof dh<\\\"u\\\"&&(m=dh(\\\"crypto\\\"),m&&m.randomBytes&&t.setPRNG(function(w,f){var C,W=m.randomBytes(f);for(C=0;C<f;C++)w[C]=W[C];T_(W)}))})()})(typeof i1<\\\"u\\\"&&i1.exports?i1.exports:self.nacl=self.nacl||{})});var DT=V(al=>{\\\"use strict\\\";b();Object.defineProperty(al,\\\"__esModule\\\",{value:!0});al.bitsToBytes=al.bytesToBits=al.lpad=void 0;function zT(t,e,n){for(;t.length<n;)t=e+t;return t}al.lpad=zT;function ZL(t){let e=\\\"\\\";for(let n=0;n<t.length;n++){let r=t.at(n);e+=zT(r.toString(2),\\\"0\\\",8)}return e}al.bytesToBits=ZL;function YL(t){if(t.length%8!==0)throw Error(\\\"Uneven bits\\\");let e=[];for(;t.length>0;)e.push(parseInt(t.slice(0,8),2)),t=t.slice(8);return globalThis.Buffer.from(e)}al.bitsToBytes=YL});var R5=V(o1=>{\\\"use strict\\\";b();Object.defineProperty(o1,\\\"__esModule\\\",{value:!0});o1.wordlist=void 0;var GL=[\\\"abandon\\\",\\\"ability\\\",\\\"able\\\",\\\"about\\\",\\\"above\\\",\\\"absent\\\",\\\"absorb\\\",\\\"abstract\\\",\\\"absurd\\\",\\\"abuse\\\",\\\"access\\\",\\\"accident\\\",\\\"account\\\",\\\"accuse\\\",\\\"achieve\\\",\\\"acid\\\",\\\"acoustic\\\",\\\"acquire\\\",\\\"across\\\",\\\"act\\\",\\\"action\\\",\\\"actor\\\",\\\"actress\\\",\\\"actual\\\",\\\"adapt\\\",\\\"add\\\",\\\"addict\\\",\\\"address\\\",\\\"adjust\\\",\\\"admit\\\",\\\"adult\\\",\\\"advance\\\",\\\"advice\\\",\\\"aerobic\\\",\\\"affair\\\",\\\"afford\\\",\\\"afraid\\\",\\\"again\\\",\\\"age\\\",\\\"agent\\\",\\\"agree\\\",\\\"ahead\\\",\\\"aim\\\",\\\"air\\\",\\\"airport\\\",\\\"aisle\\\",\\\"alarm\\\",\\\"album\\\",\\\"alcohol\\\",\\\"alert\\\",\\\"alien\\\",\\\"all\\\",\\\"alley\\\",\\\"allow\\\",\\\"almost\\\",\\\"alone\\\",\\\"alpha\\\",\\\"already\\\",\\\"also\\\",\\\"alter\\\",\\\"always\\\",\\\"amateur\\\",\\\"amazing\\\",\\\"among\\\",\\\"amount\\\",\\\"amused\\\",\\\"analyst\\\",\\\"anchor\\\",\\\"ancient\\\",\\\"anger\\\",\\\"angle\\\",\\\"angry\\\",\\\"animal\\\",\\\"ankle\\\",\\\"announce\\\",\\\"annual\\\",\\\"another\\\",\\\"answer\\\",\\\"antenna\\\",\\\"antique\\\",\\\"anxiety\\\",\\\"any\\\",\\\"apart\\\",\\\"apology\\\",\\\"appear\\\",\\\"apple\\\",\\\"approve\\\",\\\"april\\\",\\\"arch\\\",\\\"arctic\\\",\\\"area\\\",\\\"arena\\\",\\\"argue\\\",\\\"arm\\\",\\\"armed\\\",\\\"armor\\\",\\\"army\\\",\\\"around\\\",\\\"arrange\\\",\\\"arrest\\\",\\\"arrive\\\",\\\"arrow\\\",\\\"art\\\",\\\"artefact\\\",\\\"artist\\\",\\\"artwork\\\",\\\"ask\\\",\\\"aspect\\\",\\\"assault\\\",\\\"asset\\\",\\\"assist\\\",\\\"assume\\\",\\\"asthma\\\",\\\"athlete\\\",\\\"atom\\\",\\\"attack\\\",\\\"attend\\\",\\\"attitude\\\",\\\"attract\\\",\\\"auction\\\",\\\"audit\\\",\\\"august\\\",\\\"aunt\\\",\\\"author\\\",\\\"auto\\\",\\\"autumn\\\",\\\"average\\\",\\\"avocado\\\",\\\"avoid\\\",\\\"awake\\\",\\\"aware\\\",\\\"away\\\",\\\"awesome\\\",\\\"awful\\\",\\\"awkward\\\",\\\"axis\\\",\\\"baby\\\",\\\"bachelor\\\",\\\"bacon\\\",\\\"badge\\\",\\\"bag\\\",\\\"balance\\\",\\\"balcony\\\",\\\"ball\\\",\\\"bamboo\\\",\\\"banana\\\",\\\"banner\\\",\\\"bar\\\",\\\"barely\\\",\\\"bargain\\\",\\\"barrel\\\",\\\"base\\\",\\\"basic\\\",\\\"basket\\\",\\\"battle\\\",\\\"beach\\\",\\\"bean\\\",\\\"beauty\\\",\\\"because\\\",\\\"become\\\",\\\"beef\\\",\\\"before\\\",\\\"begin\\\",\\\"behave\\\",\\\"behind\\\",\\\"believe\\\",\\\"below\\\",\\\"belt\\\",\\\"bench\\\",\\\"benefit\\\",\\\"best\\\",\\\"betray\\\",\\\"better\\\",\\\"between\\\",\\\"beyond\\\",\\\"bicycle\\\",\\\"bid\\\",\\\"bike\\\",\\\"bind\\\",\\\"biology\\\",\\\"bird\\\",\\\"birth\\\",\\\"bitter\\\",\\\"black\\\",\\\"blade\\\",\\\"blame\\\",\\\"blanket\\\",\\\"blast\\\",\\\"bleak\\\",\\\"bless\\\",\\\"blind\\\",\\\"blood\\\",\\\"blossom\\\",\\\"blouse\\\",\\\"blue\\\",\\\"blur\\\",\\\"blush\\\",\\\"board\\\",\\\"boat\\\",\\\"body\\\",\\\"boil\\\",\\\"bomb\\\",\\\"bone\\\",\\\"bonus\\\",\\\"book\\\",\\\"boost\\\",\\\"border\\\",\\\"boring\\\",\\\"borrow\\\",\\\"boss\\\",\\\"bottom\\\",\\\"bounce\\\",\\\"box\\\",\\\"boy\\\",\\\"bracket\\\",\\\"brain\\\",\\\"brand\\\",\\\"brass\\\",\\\"brave\\\",\\\"bread\\\",\\\"breeze\\\",\\\"brick\\\",\\\"bridge\\\",\\\"brief\\\",\\\"bright\\\",\\\"bring\\\",\\\"brisk\\\",\\\"broccoli\\\",\\\"broken\\\",\\\"bronze\\\",\\\"broom\\\",\\\"brother\\\",\\\"brown\\\",\\\"brush\\\",\\\"bubble\\\",\\\"buddy\\\",\\\"budget\\\",\\\"buffalo\\\",\\\"build\\\",\\\"bulb\\\",\\\"bulk\\\",\\\"bullet\\\",\\\"bundle\\\",\\\"bunker\\\",\\\"burden\\\",\\\"burger\\\",\\\"burst\\\",\\\"bus\\\",\\\"business\\\",\\\"busy\\\",\\\"butter\\\",\\\"buyer\\\",\\\"buzz\\\",\\\"cabbage\\\",\\\"cabin\\\",\\\"cable\\\",\\\"cactus\\\",\\\"cage\\\",\\\"cake\\\",\\\"call\\\",\\\"calm\\\",\\\"camera\\\",\\\"camp\\\",\\\"can\\\",\\\"canal\\\",\\\"cancel\\\",\\\"candy\\\",\\\"cannon\\\",\\\"canoe\\\",\\\"canvas\\\",\\\"canyon\\\",\\\"capable\\\",\\\"capital\\\",\\\"captain\\\",\\\"car\\\",\\\"carbon\\\",\\\"card\\\",\\\"cargo\\\",\\\"carpet\\\",\\\"carry\\\",\\\"cart\\\",\\\"case\\\",\\\"cash\\\",\\\"casino\\\",\\\"castle\\\",\\\"casual\\\",\\\"cat\\\",\\\"catalog\\\",\\\"catch\\\",\\\"category\\\",\\\"cattle\\\",\\\"caught\\\",\\\"cause\\\",\\\"caution\\\",\\\"cave\\\",\\\"ceiling\\\",\\\"celery\\\",\\\"cement\\\",\\\"census\\\",\\\"century\\\",\\\"cereal\\\",\\\"certain\\\",\\\"chair\\\",\\\"chalk\\\",\\\"champion\\\",\\\"change\\\",\\\"chaos\\\",\\\"chapter\\\",\\\"charge\\\",\\\"chase\\\",\\\"chat\\\",\\\"cheap\\\",\\\"check\\\",\\\"cheese\\\",\\\"chef\\\",\\\"cherry\\\",\\\"chest\\\",\\\"chicken\\\",\\\"chief\\\",\\\"child\\\",\\\"chimney\\\",\\\"choice\\\",\\\"choose\\\",\\\"chronic\\\",\\\"chuckle\\\",\\\"chunk\\\",\\\"churn\\\",\\\"cigar\\\",\\\"cinnamon\\\",\\\"circle\\\",\\\"citizen\\\",\\\"city\\\",\\\"civil\\\",\\\"claim\\\",\\\"clap\\\",\\\"clarify\\\",\\\"claw\\\",\\\"clay\\\",\\\"clean\\\",\\\"clerk\\\",\\\"clever\\\",\\\"click\\\",\\\"client\\\",\\\"cliff\\\",\\\"climb\\\",\\\"clinic\\\",\\\"clip\\\",\\\"clock\\\",\\\"clog\\\",\\\"close\\\",\\\"cloth\\\",\\\"cloud\\\",\\\"clown\\\",\\\"club\\\",\\\"clump\\\",\\\"cluster\\\",\\\"clutch\\\",\\\"coach\\\",\\\"coast\\\",\\\"coconut\\\",\\\"code\\\",\\\"coffee\\\",\\\"coil\\\",\\\"coin\\\",\\\"collect\\\",\\\"color\\\",\\\"column\\\",\\\"combine\\\",\\\"come\\\",\\\"comfort\\\",\\\"comic\\\",\\\"common\\\",\\\"company\\\",\\\"concert\\\",\\\"conduct\\\",\\\"confirm\\\",\\\"congress\\\",\\\"connect\\\",\\\"consider\\\",\\\"control\\\",\\\"convince\\\",\\\"cook\\\",\\\"cool\\\",\\\"copper\\\",\\\"copy\\\",\\\"coral\\\",\\\"core\\\",\\\"corn\\\",\\\"correct\\\",\\\"cost\\\",\\\"cotton\\\",\\\"couch\\\",\\\"country\\\",\\\"couple\\\",\\\"course\\\",\\\"cousin\\\",\\\"cover\\\",\\\"coyote\\\",\\\"crack\\\",\\\"cradle\\\",\\\"craft\\\",\\\"cram\\\",\\\"crane\\\",\\\"crash\\\",\\\"crater\\\",\\\"crawl\\\",\\\"crazy\\\",\\\"cream\\\",\\\"credit\\\",\\\"creek\\\",\\\"crew\\\",\\\"cricket\\\",\\\"crime\\\",\\\"crisp\\\",\\\"critic\\\",\\\"crop\\\",\\\"cross\\\",\\\"crouch\\\",\\\"crowd\\\",\\\"crucial\\\",\\\"cruel\\\",\\\"cruise\\\",\\\"crumble\\\",\\\"crunch\\\",\\\"crush\\\",\\\"cry\\\",\\\"crystal\\\",\\\"cube\\\",\\\"culture\\\",\\\"cup\\\",\\\"cupboard\\\",\\\"curious\\\",\\\"current\\\",\\\"curtain\\\",\\\"curve\\\",\\\"cushion\\\",\\\"custom\\\",\\\"cute\\\",\\\"cycle\\\",\\\"dad\\\",\\\"damage\\\",\\\"damp\\\",\\\"dance\\\",\\\"danger\\\",\\\"daring\\\",\\\"dash\\\",\\\"daughter\\\",\\\"dawn\\\",\\\"day\\\",\\\"deal\\\",\\\"debate\\\",\\\"debris\\\",\\\"decade\\\",\\\"december\\\",\\\"decide\\\",\\\"decline\\\",\\\"decorate\\\",\\\"decrease\\\",\\\"deer\\\",\\\"defense\\\",\\\"define\\\",\\\"defy\\\",\\\"degree\\\",\\\"delay\\\",\\\"deliver\\\",\\\"demand\\\",\\\"demise\\\",\\\"denial\\\",\\\"dentist\\\",\\\"deny\\\",\\\"depart\\\",\\\"depend\\\",\\\"deposit\\\",\\\"depth\\\",\\\"deputy\\\",\\\"derive\\\",\\\"describe\\\",\\\"desert\\\",\\\"design\\\",\\\"desk\\\",\\\"despair\\\",\\\"destroy\\\",\\\"detail\\\",\\\"detect\\\",\\\"develop\\\",\\\"device\\\",\\\"devote\\\",\\\"diagram\\\",\\\"dial\\\",\\\"diamond\\\",\\\"diary\\\",\\\"dice\\\",\\\"diesel\\\",\\\"diet\\\",\\\"differ\\\",\\\"digital\\\",\\\"dignity\\\",\\\"dilemma\\\",\\\"dinner\\\",\\\"dinosaur\\\",\\\"direct\\\",\\\"dirt\\\",\\\"disagree\\\",\\\"discover\\\",\\\"disease\\\",\\\"dish\\\",\\\"dismiss\\\",\\\"disorder\\\",\\\"display\\\",\\\"distance\\\",\\\"divert\\\",\\\"divide\\\",\\\"divorce\\\",\\\"dizzy\\\",\\\"doctor\\\",\\\"document\\\",\\\"dog\\\",\\\"doll\\\",\\\"dolphin\\\",\\\"domain\\\",\\\"donate\\\",\\\"donkey\\\",\\\"donor\\\",\\\"door\\\",\\\"dose\\\",\\\"double\\\",\\\"dove\\\",\\\"draft\\\",\\\"dragon\\\",\\\"drama\\\",\\\"drastic\\\",\\\"draw\\\",\\\"dream\\\",\\\"dress\\\",\\\"drift\\\",\\\"drill\\\",\\\"drink\\\",\\\"drip\\\",\\\"drive\\\",\\\"drop\\\",\\\"drum\\\",\\\"dry\\\",\\\"duck\\\",\\\"dumb\\\",\\\"dune\\\",\\\"during\\\",\\\"dust\\\",\\\"dutch\\\",\\\"duty\\\",\\\"dwarf\\\",\\\"dynamic\\\",\\\"eager\\\",\\\"eagle\\\",\\\"early\\\",\\\"earn\\\",\\\"earth\\\",\\\"easily\\\",\\\"east\\\",\\\"easy\\\",\\\"echo\\\",\\\"ecology\\\",\\\"economy\\\",\\\"edge\\\",\\\"edit\\\",\\\"educate\\\",\\\"effort\\\",\\\"egg\\\",\\\"eight\\\",\\\"either\\\",\\\"elbow\\\",\\\"elder\\\",\\\"electric\\\",\\\"elegant\\\",\\\"element\\\",\\\"elephant\\\",\\\"elevator\\\",\\\"elite\\\",\\\"else\\\",\\\"embark\\\",\\\"embody\\\",\\\"embrace\\\",\\\"emerge\\\",\\\"emotion\\\",\\\"employ\\\",\\\"empower\\\",\\\"empty\\\",\\\"enable\\\",\\\"enact\\\",\\\"end\\\",\\\"endless\\\",\\\"endorse\\\",\\\"enemy\\\",\\\"energy\\\",\\\"enforce\\\",\\\"engage\\\",\\\"engine\\\",\\\"enhance\\\",\\\"enjoy\\\",\\\"enlist\\\",\\\"enough\\\",\\\"enrich\\\",\\\"enroll\\\",\\\"ensure\\\",\\\"enter\\\",\\\"entire\\\",\\\"entry\\\",\\\"envelope\\\",\\\"episode\\\",\\\"equal\\\",\\\"equip\\\",\\\"era\\\",\\\"erase\\\",\\\"erode\\\",\\\"erosion\\\",\\\"error\\\",\\\"erupt\\\",\\\"escape\\\",\\\"essay\\\",\\\"essence\\\",\\\"estate\\\",\\\"eternal\\\",\\\"ethics\\\",\\\"evidence\\\",\\\"evil\\\",\\\"evoke\\\",\\\"evolve\\\",\\\"exact\\\",\\\"example\\\",\\\"excess\\\",\\\"exchange\\\",\\\"excite\\\",\\\"exclude\\\",\\\"excuse\\\",\\\"execute\\\",\\\"exercise\\\",\\\"exhaust\\\",\\\"exhibit\\\",\\\"exile\\\",\\\"exist\\\",\\\"exit\\\",\\\"exotic\\\",\\\"expand\\\",\\\"expect\\\",\\\"expire\\\",\\\"explain\\\",\\\"expose\\\",\\\"express\\\",\\\"extend\\\",\\\"extra\\\",\\\"eye\\\",\\\"eyebrow\\\",\\\"fabric\\\",\\\"face\\\",\\\"faculty\\\",\\\"fade\\\",\\\"faint\\\",\\\"faith\\\",\\\"fall\\\",\\\"false\\\",\\\"fame\\\",\\\"family\\\",\\\"famous\\\",\\\"fan\\\",\\\"fancy\\\",\\\"fantasy\\\",\\\"farm\\\",\\\"fashion\\\",\\\"fat\\\",\\\"fatal\\\",\\\"father\\\",\\\"fatigue\\\",\\\"fault\\\",\\\"favorite\\\",\\\"feature\\\",\\\"february\\\",\\\"federal\\\",\\\"fee\\\",\\\"feed\\\",\\\"feel\\\",\\\"female\\\",\\\"fence\\\",\\\"festival\\\",\\\"fetch\\\",\\\"fever\\\",\\\"few\\\",\\\"fiber\\\",\\\"fiction\\\",\\\"field\\\",\\\"figure\\\",\\\"file\\\",\\\"film\\\",\\\"filter\\\",\\\"final\\\",\\\"find\\\",\\\"fine\\\",\\\"finger\\\",\\\"finish\\\",\\\"fire\\\",\\\"firm\\\",\\\"first\\\",\\\"fiscal\\\",\\\"fish\\\",\\\"fit\\\",\\\"fitness\\\",\\\"fix\\\",\\\"flag\\\",\\\"flame\\\",\\\"flash\\\",\\\"flat\\\",\\\"flavor\\\",\\\"flee\\\",\\\"flight\\\",\\\"flip\\\",\\\"float\\\",\\\"flock\\\",\\\"floor\\\",\\\"flower\\\",\\\"fluid\\\",\\\"flush\\\",\\\"fly\\\",\\\"foam\\\",\\\"focus\\\",\\\"fog\\\",\\\"foil\\\",\\\"fold\\\",\\\"follow\\\",\\\"food\\\",\\\"foot\\\",\\\"force\\\",\\\"forest\\\",\\\"forget\\\",\\\"fork\\\",\\\"fortune\\\",\\\"forum\\\",\\\"forward\\\",\\\"fossil\\\",\\\"foster\\\",\\\"found\\\",\\\"fox\\\",\\\"fragile\\\",\\\"frame\\\",\\\"frequent\\\",\\\"fresh\\\",\\\"friend\\\",\\\"fringe\\\",\\\"frog\\\",\\\"front\\\",\\\"frost\\\",\\\"frown\\\",\\\"frozen\\\",\\\"fruit\\\",\\\"fuel\\\",\\\"fun\\\",\\\"funny\\\",\\\"furnace\\\",\\\"fury\\\",\\\"future\\\",\\\"gadget\\\",\\\"gain\\\",\\\"galaxy\\\",\\\"gallery\\\",\\\"game\\\",\\\"gap\\\",\\\"garage\\\",\\\"garbage\\\",\\\"garden\\\",\\\"garlic\\\",\\\"garment\\\",\\\"gas\\\",\\\"gasp\\\",\\\"gate\\\",\\\"gather\\\",\\\"gauge\\\",\\\"gaze\\\",\\\"general\\\",\\\"genius\\\",\\\"genre\\\",\\\"gentle\\\",\\\"genuine\\\",\\\"gesture\\\",\\\"ghost\\\",\\\"giant\\\",\\\"gift\\\",\\\"giggle\\\",\\\"ginger\\\",\\\"giraffe\\\",\\\"girl\\\",\\\"give\\\",\\\"glad\\\",\\\"glance\\\",\\\"glare\\\",\\\"glass\\\",\\\"glide\\\",\\\"glimpse\\\",\\\"globe\\\",\\\"gloom\\\",\\\"glory\\\",\\\"glove\\\",\\\"glow\\\",\\\"glue\\\",\\\"goat\\\",\\\"goddess\\\",\\\"gold\\\",\\\"good\\\",\\\"goose\\\",\\\"gorilla\\\",\\\"gospel\\\",\\\"gossip\\\",\\\"govern\\\",\\\"gown\\\",\\\"grab\\\",\\\"grace\\\",\\\"grain\\\",\\\"grant\\\",\\\"grape\\\",\\\"grass\\\",\\\"gravity\\\",\\\"great\\\",\\\"green\\\",\\\"grid\\\",\\\"grief\\\",\\\"grit\\\",\\\"grocery\\\",\\\"group\\\",\\\"grow\\\",\\\"grunt\\\",\\\"guard\\\",\\\"guess\\\",\\\"guide\\\",\\\"guilt\\\",\\\"guitar\\\",\\\"gun\\\",\\\"gym\\\",\\\"habit\\\",\\\"hair\\\",\\\"half\\\",\\\"hammer\\\",\\\"hamster\\\",\\\"hand\\\",\\\"happy\\\",\\\"harbor\\\",\\\"hard\\\",\\\"harsh\\\",\\\"harvest\\\",\\\"hat\\\",\\\"have\\\",\\\"hawk\\\",\\\"hazard\\\",\\\"head\\\",\\\"health\\\",\\\"heart\\\",\\\"heavy\\\",\\\"hedgehog\\\",\\\"height\\\",\\\"hello\\\",\\\"helmet\\\",\\\"help\\\",\\\"hen\\\",\\\"hero\\\",\\\"hidden\\\",\\\"high\\\",\\\"hill\\\",\\\"hint\\\",\\\"hip\\\",\\\"hire\\\",\\\"history\\\",\\\"hobby\\\",\\\"hockey\\\",\\\"hold\\\",\\\"hole\\\",\\\"holiday\\\",\\\"hollow\\\",\\\"home\\\",\\\"honey\\\",\\\"hood\\\",\\\"hope\\\",\\\"horn\\\",\\\"horror\\\",\\\"horse\\\",\\\"hospital\\\",\\\"host\\\",\\\"hotel\\\",\\\"hour\\\",\\\"hover\\\",\\\"hub\\\",\\\"huge\\\",\\\"human\\\",\\\"humble\\\",\\\"humor\\\",\\\"hundred\\\",\\\"hungry\\\",\\\"hunt\\\",\\\"hurdle\\\",\\\"hurry\\\",\\\"hurt\\\",\\\"husband\\\",\\\"hybrid\\\",\\\"ice\\\",\\\"icon\\\",\\\"idea\\\",\\\"identify\\\",\\\"idle\\\",\\\"ignore\\\",\\\"ill\\\",\\\"illegal\\\",\\\"illness\\\",\\\"image\\\",\\\"imitate\\\",\\\"immense\\\",\\\"immune\\\",\\\"impact\\\",\\\"impose\\\",\\\"improve\\\",\\\"impulse\\\",\\\"inch\\\",\\\"include\\\",\\\"income\\\",\\\"increase\\\",\\\"index\\\",\\\"indicate\\\",\\\"indoor\\\",\\\"industry\\\",\\\"infant\\\",\\\"inflict\\\",\\\"inform\\\",\\\"inhale\\\",\\\"inherit\\\",\\\"initial\\\",\\\"inject\\\",\\\"injury\\\",\\\"inmate\\\",\\\"inner\\\",\\\"innocent\\\",\\\"input\\\",\\\"inquiry\\\",\\\"insane\\\",\\\"insect\\\",\\\"inside\\\",\\\"inspire\\\",\\\"install\\\",\\\"intact\\\",\\\"interest\\\",\\\"into\\\",\\\"invest\\\",\\\"invite\\\",\\\"involve\\\",\\\"iron\\\",\\\"island\\\",\\\"isolate\\\",\\\"issue\\\",\\\"item\\\",\\\"ivory\\\",\\\"jacket\\\",\\\"jaguar\\\",\\\"jar\\\",\\\"jazz\\\",\\\"jealous\\\",\\\"jeans\\\",\\\"jelly\\\",\\\"jewel\\\",\\\"job\\\",\\\"join\\\",\\\"joke\\\",\\\"journey\\\",\\\"joy\\\",\\\"judge\\\",\\\"juice\\\",\\\"jump\\\",\\\"jungle\\\",\\\"junior\\\",\\\"junk\\\",\\\"just\\\",\\\"kangaroo\\\",\\\"keen\\\",\\\"keep\\\",\\\"ketchup\\\",\\\"key\\\",\\\"kick\\\",\\\"kid\\\",\\\"kidney\\\",\\\"kind\\\",\\\"kingdom\\\",\\\"kiss\\\",\\\"kit\\\",\\\"kitchen\\\",\\\"kite\\\",\\\"kitten\\\",\\\"kiwi\\\",\\\"knee\\\",\\\"knife\\\",\\\"knock\\\",\\\"know\\\",\\\"lab\\\",\\\"label\\\",\\\"labor\\\",\\\"ladder\\\",\\\"lady\\\",\\\"lake\\\",\\\"lamp\\\",\\\"language\\\",\\\"laptop\\\",\\\"large\\\",\\\"later\\\",\\\"latin\\\",\\\"laugh\\\",\\\"laundry\\\",\\\"lava\\\",\\\"law\\\",\\\"lawn\\\",\\\"lawsuit\\\",\\\"layer\\\",\\\"lazy\\\",\\\"leader\\\",\\\"leaf\\\",\\\"learn\\\",\\\"leave\\\",\\\"lecture\\\",\\\"left\\\",\\\"leg\\\",\\\"legal\\\",\\\"legend\\\",\\\"leisure\\\",\\\"lemon\\\",\\\"lend\\\",\\\"length\\\",\\\"lens\\\",\\\"leopard\\\",\\\"lesson\\\",\\\"letter\\\",\\\"level\\\",\\\"liar\\\",\\\"liberty\\\",\\\"library\\\",\\\"license\\\",\\\"life\\\",\\\"lift\\\",\\\"light\\\",\\\"like\\\",\\\"limb\\\",\\\"limit\\\",\\\"link\\\",\\\"lion\\\",\\\"liquid\\\",\\\"list\\\",\\\"little\\\",\\\"live\\\",\\\"lizard\\\",\\\"load\\\",\\\"loan\\\",\\\"lobster\\\",\\\"local\\\",\\\"lock\\\",\\\"logic\\\",\\\"lonely\\\",\\\"long\\\",\\\"loop\\\",\\\"lottery\\\",\\\"loud\\\",\\\"lounge\\\",\\\"love\\\",\\\"loyal\\\",\\\"lucky\\\",\\\"luggage\\\",\\\"lumber\\\",\\\"lunar\\\",\\\"lunch\\\",\\\"luxury\\\",\\\"lyrics\\\",\\\"machine\\\",\\\"mad\\\",\\\"magic\\\",\\\"magnet\\\",\\\"maid\\\",\\\"mail\\\",\\\"main\\\",\\\"major\\\",\\\"make\\\",\\\"mammal\\\",\\\"man\\\",\\\"manage\\\",\\\"mandate\\\",\\\"mango\\\",\\\"mansion\\\",\\\"manual\\\",\\\"maple\\\",\\\"marble\\\",\\\"march\\\",\\\"margin\\\",\\\"marine\\\",\\\"market\\\",\\\"marriage\\\",\\\"mask\\\",\\\"mass\\\",\\\"master\\\",\\\"match\\\",\\\"material\\\",\\\"math\\\",\\\"matrix\\\",\\\"matter\\\",\\\"maximum\\\",\\\"maze\\\",\\\"meadow\\\",\\\"mean\\\",\\\"measure\\\",\\\"meat\\\",\\\"mechanic\\\",\\\"medal\\\",\\\"media\\\",\\\"melody\\\",\\\"melt\\\",\\\"member\\\",\\\"memory\\\",\\\"mention\\\",\\\"menu\\\",\\\"mercy\\\",\\\"merge\\\",\\\"merit\\\",\\\"merry\\\",\\\"mesh\\\",\\\"message\\\",\\\"metal\\\",\\\"method\\\",\\\"middle\\\",\\\"midnight\\\",\\\"milk\\\",\\\"million\\\",\\\"mimic\\\",\\\"mind\\\",\\\"minimum\\\",\\\"minor\\\",\\\"minute\\\",\\\"miracle\\\",\\\"mirror\\\",\\\"misery\\\",\\\"miss\\\",\\\"mistake\\\",\\\"mix\\\",\\\"mixed\\\",\\\"mixture\\\",\\\"mobile\\\",\\\"model\\\",\\\"modify\\\",\\\"mom\\\",\\\"moment\\\",\\\"monitor\\\",\\\"monkey\\\",\\\"monster\\\",\\\"month\\\",\\\"moon\\\",\\\"moral\\\",\\\"more\\\",\\\"morning\\\",\\\"mosquito\\\",\\\"mother\\\",\\\"motion\\\",\\\"motor\\\",\\\"mountain\\\",\\\"mouse\\\",\\\"move\\\",\\\"movie\\\",\\\"much\\\",\\\"muffin\\\",\\\"mule\\\",\\\"multiply\\\",\\\"muscle\\\",\\\"museum\\\",\\\"mushroom\\\",\\\"music\\\",\\\"must\\\",\\\"mutual\\\",\\\"myself\\\",\\\"mystery\\\",\\\"myth\\\",\\\"naive\\\",\\\"name\\\",\\\"napkin\\\",\\\"narrow\\\",\\\"nasty\\\",\\\"nation\\\",\\\"nature\\\",\\\"near\\\",\\\"neck\\\",\\\"need\\\",\\\"negative\\\",\\\"neglect\\\",\\\"neither\\\",\\\"nephew\\\",\\\"nerve\\\",\\\"nest\\\",\\\"net\\\",\\\"network\\\",\\\"neutral\\\",\\\"never\\\",\\\"news\\\",\\\"next\\\",\\\"nice\\\",\\\"night\\\",\\\"noble\\\",\\\"noise\\\",\\\"nominee\\\",\\\"noodle\\\",\\\"normal\\\",\\\"north\\\",\\\"nose\\\",\\\"notable\\\",\\\"note\\\",\\\"nothing\\\",\\\"notice\\\",\\\"novel\\\",\\\"now\\\",\\\"nuclear\\\",\\\"number\\\",\\\"nurse\\\",\\\"nut\\\",\\\"oak\\\",\\\"obey\\\",\\\"object\\\",\\\"oblige\\\",\\\"obscure\\\",\\\"observe\\\",\\\"obtain\\\",\\\"obvious\\\",\\\"occur\\\",\\\"ocean\\\",\\\"october\\\",\\\"odor\\\",\\\"off\\\",\\\"offer\\\",\\\"office\\\",\\\"often\\\",\\\"oil\\\",\\\"okay\\\",\\\"old\\\",\\\"olive\\\",\\\"olympic\\\",\\\"omit\\\",\\\"once\\\",\\\"one\\\",\\\"onion\\\",\\\"online\\\",\\\"only\\\",\\\"open\\\",\\\"opera\\\",\\\"opinion\\\",\\\"oppose\\\",\\\"option\\\",\\\"orange\\\",\\\"orbit\\\",\\\"orchard\\\",\\\"order\\\",\\\"ordinary\\\",\\\"organ\\\",\\\"orient\\\",\\\"original\\\",\\\"orphan\\\",\\\"ostrich\\\",\\\"other\\\",\\\"outdoor\\\",\\\"outer\\\",\\\"output\\\",\\\"outside\\\",\\\"oval\\\",\\\"oven\\\",\\\"over\\\",\\\"own\\\",\\\"owner\\\",\\\"oxygen\\\",\\\"oyster\\\",\\\"ozone\\\",\\\"pact\\\",\\\"paddle\\\",\\\"page\\\",\\\"pair\\\",\\\"palace\\\",\\\"palm\\\",\\\"panda\\\",\\\"panel\\\",\\\"panic\\\",\\\"panther\\\",\\\"paper\\\",\\\"parade\\\",\\\"parent\\\",\\\"park\\\",\\\"parrot\\\",\\\"party\\\",\\\"pass\\\",\\\"patch\\\",\\\"path\\\",\\\"patient\\\",\\\"patrol\\\",\\\"pattern\\\",\\\"pause\\\",\\\"pave\\\",\\\"payment\\\",\\\"peace\\\",\\\"peanut\\\",\\\"pear\\\",\\\"peasant\\\",\\\"pelican\\\",\\\"pen\\\",\\\"penalty\\\",\\\"pencil\\\",\\\"people\\\",\\\"pepper\\\",\\\"perfect\\\",\\\"permit\\\",\\\"person\\\",\\\"pet\\\",\\\"phone\\\",\\\"photo\\\",\\\"phrase\\\",\\\"physical\\\",\\\"piano\\\",\\\"picnic\\\",\\\"picture\\\",\\\"piece\\\",\\\"pig\\\",\\\"pigeon\\\",\\\"pill\\\",\\\"pilot\\\",\\\"pink\\\",\\\"pioneer\\\",\\\"pipe\\\",\\\"pistol\\\",\\\"pitch\\\",\\\"pizza\\\",\\\"place\\\",\\\"planet\\\",\\\"plastic\\\",\\\"plate\\\",\\\"play\\\",\\\"please\\\",\\\"pledge\\\",\\\"pluck\\\",\\\"plug\\\",\\\"plunge\\\",\\\"poem\\\",\\\"poet\\\",\\\"point\\\",\\\"polar\\\",\\\"pole\\\",\\\"police\\\",\\\"pond\\\",\\\"pony\\\",\\\"pool\\\",\\\"popular\\\",\\\"portion\\\",\\\"position\\\",\\\"possible\\\",\\\"post\\\",\\\"potato\\\",\\\"pottery\\\",\\\"poverty\\\",\\\"powder\\\",\\\"power\\\",\\\"practice\\\",\\\"praise\\\",\\\"predict\\\",\\\"prefer\\\",\\\"prepare\\\",\\\"present\\\",\\\"pretty\\\",\\\"prevent\\\",\\\"price\\\",\\\"pride\\\",\\\"primary\\\",\\\"print\\\",\\\"priority\\\",\\\"prison\\\",\\\"private\\\",\\\"prize\\\",\\\"problem\\\",\\\"process\\\",\\\"produce\\\",\\\"profit\\\",\\\"program\\\",\\\"project\\\",\\\"promote\\\",\\\"proof\\\",\\\"property\\\",\\\"prosper\\\",\\\"protect\\\",\\\"proud\\\",\\\"provide\\\",\\\"public\\\",\\\"pudding\\\",\\\"pull\\\",\\\"pulp\\\",\\\"pulse\\\",\\\"pumpkin\\\",\\\"punch\\\",\\\"pupil\\\",\\\"puppy\\\",\\\"purchase\\\",\\\"purity\\\",\\\"purpose\\\",\\\"purse\\\",\\\"push\\\",\\\"put\\\",\\\"puzzle\\\",\\\"pyramid\\\",\\\"quality\\\",\\\"quantum\\\",\\\"quarter\\\",\\\"question\\\",\\\"quick\\\",\\\"quit\\\",\\\"quiz\\\",\\\"quote\\\",\\\"rabbit\\\",\\\"raccoon\\\",\\\"race\\\",\\\"rack\\\",\\\"radar\\\",\\\"radio\\\",\\\"rail\\\",\\\"rain\\\",\\\"raise\\\",\\\"rally\\\",\\\"ramp\\\",\\\"ranch\\\",\\\"random\\\",\\\"range\\\",\\\"rapid\\\",\\\"rare\\\",\\\"rate\\\",\\\"rather\\\",\\\"raven\\\",\\\"raw\\\",\\\"razor\\\",\\\"ready\\\",\\\"real\\\",\\\"reason\\\",\\\"rebel\\\",\\\"rebuild\\\",\\\"recall\\\",\\\"receive\\\",\\\"recipe\\\",\\\"record\\\",\\\"recycle\\\",\\\"reduce\\\",\\\"reflect\\\",\\\"reform\\\",\\\"refuse\\\",\\\"region\\\",\\\"regret\\\",\\\"regular\\\",\\\"reject\\\",\\\"relax\\\",\\\"release\\\",\\\"relief\\\",\\\"rely\\\",\\\"remain\\\",\\\"remember\\\",\\\"remind\\\",\\\"remove\\\",\\\"render\\\",\\\"renew\\\",\\\"rent\\\",\\\"reopen\\\",\\\"repair\\\",\\\"repeat\\\",\\\"replace\\\",\\\"report\\\",\\\"require\\\",\\\"rescue\\\",\\\"resemble\\\",\\\"resist\\\",\\\"resource\\\",\\\"response\\\",\\\"result\\\",\\\"retire\\\",\\\"retreat\\\",\\\"return\\\",\\\"reunion\\\",\\\"reveal\\\",\\\"review\\\",\\\"reward\\\",\\\"rhythm\\\",\\\"rib\\\",\\\"ribbon\\\",\\\"rice\\\",\\\"rich\\\",\\\"ride\\\",\\\"ridge\\\",\\\"rifle\\\",\\\"right\\\",\\\"rigid\\\",\\\"ring\\\",\\\"riot\\\",\\\"ripple\\\",\\\"risk\\\",\\\"ritual\\\",\\\"rival\\\",\\\"river\\\",\\\"road\\\",\\\"roast\\\",\\\"robot\\\",\\\"robust\\\",\\\"rocket\\\",\\\"romance\\\",\\\"roof\\\",\\\"rookie\\\",\\\"room\\\",\\\"rose\\\",\\\"rotate\\\",\\\"rough\\\",\\\"round\\\",\\\"route\\\",\\\"royal\\\",\\\"rubber\\\",\\\"rude\\\",\\\"rug\\\",\\\"rule\\\",\\\"run\\\",\\\"runway\\\",\\\"rural\\\",\\\"sad\\\",\\\"saddle\\\",\\\"sadness\\\",\\\"safe\\\",\\\"sail\\\",\\\"salad\\\",\\\"salmon\\\",\\\"salon\\\",\\\"salt\\\",\\\"salute\\\",\\\"same\\\",\\\"sample\\\",\\\"sand\\\",\\\"satisfy\\\",\\\"satoshi\\\",\\\"sauce\\\",\\\"sausage\\\",\\\"save\\\",\\\"say\\\",\\\"scale\\\",\\\"scan\\\",\\\"scare\\\",\\\"scatter\\\",\\\"scene\\\",\\\"scheme\\\",\\\"school\\\",\\\"science\\\",\\\"scissors\\\",\\\"scorpion\\\",\\\"scout\\\",\\\"scrap\\\",\\\"screen\\\",\\\"script\\\",\\\"scrub\\\",\\\"sea\\\",\\\"search\\\",\\\"season\\\",\\\"seat\\\",\\\"second\\\",\\\"secret\\\",\\\"section\\\",\\\"security\\\",\\\"seed\\\",\\\"seek\\\",\\\"segment\\\",\\\"select\\\",\\\"sell\\\",\\\"seminar\\\",\\\"senior\\\",\\\"sense\\\",\\\"sentence\\\",\\\"series\\\",\\\"service\\\",\\\"session\\\",\\\"settle\\\",\\\"setup\\\",\\\"seven\\\",\\\"shadow\\\",\\\"shaft\\\",\\\"shallow\\\",\\\"share\\\",\\\"shed\\\",\\\"shell\\\",\\\"sheriff\\\",\\\"shield\\\",\\\"shift\\\",\\\"shine\\\",\\\"ship\\\",\\\"shiver\\\",\\\"shock\\\",\\\"shoe\\\",\\\"shoot\\\",\\\"shop\\\",\\\"short\\\",\\\"shoulder\\\",\\\"shove\\\",\\\"shrimp\\\",\\\"shrug\\\",\\\"shuffle\\\",\\\"shy\\\",\\\"sibling\\\",\\\"sick\\\",\\\"side\\\",\\\"siege\\\",\\\"sight\\\",\\\"sign\\\",\\\"silent\\\",\\\"silk\\\",\\\"silly\\\",\\\"silver\\\",\\\"similar\\\",\\\"simple\\\",\\\"since\\\",\\\"sing\\\",\\\"siren\\\",\\\"sister\\\",\\\"situate\\\",\\\"six\\\",\\\"size\\\",\\\"skate\\\",\\\"sketch\\\",\\\"ski\\\",\\\"skill\\\",\\\"skin\\\",\\\"skirt\\\",\\\"skull\\\",\\\"slab\\\",\\\"slam\\\",\\\"sleep\\\",\\\"slender\\\",\\\"slice\\\",\\\"slide\\\",\\\"slight\\\",\\\"slim\\\",\\\"slogan\\\",\\\"slot\\\",\\\"slow\\\",\\\"slush\\\",\\\"small\\\",\\\"smart\\\",\\\"smile\\\",\\\"smoke\\\",\\\"smooth\\\",\\\"snack\\\",\\\"snake\\\",\\\"snap\\\",\\\"sniff\\\",\\\"snow\\\",\\\"soap\\\",\\\"soccer\\\",\\\"social\\\",\\\"sock\\\",\\\"soda\\\",\\\"soft\\\",\\\"solar\\\",\\\"soldier\\\",\\\"solid\\\",\\\"solution\\\",\\\"solve\\\",\\\"someone\\\",\\\"song\\\",\\\"soon\\\",\\\"sorry\\\",\\\"sort\\\",\\\"soul\\\",\\\"sound\\\",\\\"soup\\\",\\\"source\\\",\\\"south\\\",\\\"space\\\",\\\"spare\\\",\\\"spatial\\\",\\\"spawn\\\",\\\"speak\\\",\\\"special\\\",\\\"speed\\\",\\\"spell\\\",\\\"spend\\\",\\\"sphere\\\",\\\"spice\\\",\\\"spider\\\",\\\"spike\\\",\\\"spin\\\",\\\"spirit\\\",\\\"split\\\",\\\"spoil\\\",\\\"sponsor\\\",\\\"spoon\\\",\\\"sport\\\",\\\"spot\\\",\\\"spray\\\",\\\"spread\\\",\\\"spring\\\",\\\"spy\\\",\\\"square\\\",\\\"squeeze\\\",\\\"squirrel\\\",\\\"stable\\\",\\\"stadium\\\",\\\"staff\\\",\\\"stage\\\",\\\"stairs\\\",\\\"stamp\\\",\\\"stand\\\",\\\"start\\\",\\\"state\\\",\\\"stay\\\",\\\"steak\\\",\\\"steel\\\",\\\"stem\\\",\\\"step\\\",\\\"stereo\\\",\\\"stick\\\",\\\"still\\\",\\\"sting\\\",\\\"stock\\\",\\\"stomach\\\",\\\"stone\\\",\\\"stool\\\",\\\"story\\\",\\\"stove\\\",\\\"strategy\\\",\\\"street\\\",\\\"strike\\\",\\\"strong\\\",\\\"struggle\\\",\\\"student\\\",\\\"stuff\\\",\\\"stumble\\\",\\\"style\\\",\\\"subject\\\",\\\"submit\\\",\\\"subway\\\",\\\"success\\\",\\\"such\\\",\\\"sudden\\\",\\\"suffer\\\",\\\"sugar\\\",\\\"suggest\\\",\\\"suit\\\",\\\"summer\\\",\\\"sun\\\",\\\"sunny\\\",\\\"sunset\\\",\\\"super\\\",\\\"supply\\\",\\\"supreme\\\",\\\"sure\\\",\\\"surface\\\",\\\"surge\\\",\\\"surprise\\\",\\\"surround\\\",\\\"survey\\\",\\\"suspect\\\",\\\"sustain\\\",\\\"swallow\\\",\\\"swamp\\\",\\\"swap\\\",\\\"swarm\\\",\\\"swear\\\",\\\"sweet\\\",\\\"swift\\\",\\\"swim\\\",\\\"swing\\\",\\\"switch\\\",\\\"sword\\\",\\\"symbol\\\",\\\"symptom\\\",\\\"syrup\\\",\\\"system\\\",\\\"table\\\",\\\"tackle\\\",\\\"tag\\\",\\\"tail\\\",\\\"talent\\\",\\\"talk\\\",\\\"tank\\\",\\\"tape\\\",\\\"target\\\",\\\"task\\\",\\\"taste\\\",\\\"tattoo\\\",\\\"taxi\\\",\\\"teach\\\",\\\"team\\\",\\\"tell\\\",\\\"ten\\\",\\\"tenant\\\",\\\"tennis\\\",\\\"tent\\\",\\\"term\\\",\\\"test\\\",\\\"text\\\",\\\"thank\\\",\\\"that\\\",\\\"theme\\\",\\\"then\\\",\\\"theory\\\",\\\"there\\\",\\\"they\\\",\\\"thing\\\",\\\"this\\\",\\\"thought\\\",\\\"three\\\",\\\"thrive\\\",\\\"throw\\\",\\\"thumb\\\",\\\"thunder\\\",\\\"ticket\\\",\\\"tide\\\",\\\"tiger\\\",\\\"tilt\\\",\\\"timber\\\",\\\"time\\\",\\\"tiny\\\",\\\"tip\\\",\\\"tired\\\",\\\"tissue\\\",\\\"title\\\",\\\"toast\\\",\\\"tobacco\\\",\\\"today\\\",\\\"toddler\\\",\\\"toe\\\",\\\"together\\\",\\\"toilet\\\",\\\"token\\\",\\\"tomato\\\",\\\"tomorrow\\\",\\\"tone\\\",\\\"tongue\\\",\\\"tonight\\\",\\\"tool\\\",\\\"tooth\\\",\\\"top\\\",\\\"topic\\\",\\\"topple\\\",\\\"torch\\\",\\\"tornado\\\",\\\"tortoise\\\",\\\"toss\\\",\\\"total\\\",\\\"tourist\\\",\\\"toward\\\",\\\"tower\\\",\\\"town\\\",\\\"toy\\\",\\\"track\\\",\\\"trade\\\",\\\"traffic\\\",\\\"tragic\\\",\\\"train\\\",\\\"transfer\\\",\\\"trap\\\",\\\"trash\\\",\\\"travel\\\",\\\"tray\\\",\\\"treat\\\",\\\"tree\\\",\\\"trend\\\",\\\"trial\\\",\\\"tribe\\\",\\\"trick\\\",\\\"trigger\\\",\\\"trim\\\",\\\"trip\\\",\\\"trophy\\\",\\\"trouble\\\",\\\"truck\\\",\\\"true\\\",\\\"truly\\\",\\\"trumpet\\\",\\\"trust\\\",\\\"truth\\\",\\\"try\\\",\\\"tube\\\",\\\"tuition\\\",\\\"tumble\\\",\\\"tuna\\\",\\\"tunnel\\\",\\\"turkey\\\",\\\"turn\\\",\\\"turtle\\\",\\\"twelve\\\",\\\"twenty\\\",\\\"twice\\\",\\\"twin\\\",\\\"twist\\\",\\\"two\\\",\\\"type\\\",\\\"typical\\\",\\\"ugly\\\",\\\"umbrella\\\",\\\"unable\\\",\\\"unaware\\\",\\\"uncle\\\",\\\"uncover\\\",\\\"under\\\",\\\"undo\\\",\\\"unfair\\\",\\\"unfold\\\",\\\"unhappy\\\",\\\"uniform\\\",\\\"unique\\\",\\\"unit\\\",\\\"universe\\\",\\\"unknown\\\",\\\"unlock\\\",\\\"until\\\",\\\"unusual\\\",\\\"unveil\\\",\\\"update\\\",\\\"upgrade\\\",\\\"uphold\\\",\\\"upon\\\",\\\"upper\\\",\\\"upset\\\",\\\"urban\\\",\\\"urge\\\",\\\"usage\\\",\\\"use\\\",\\\"used\\\",\\\"useful\\\",\\\"useless\\\",\\\"usual\\\",\\\"utility\\\",\\\"vacant\\\",\\\"vacuum\\\",\\\"vague\\\",\\\"valid\\\",\\\"valley\\\",\\\"valve\\\",\\\"van\\\",\\\"vanish\\\",\\\"vapor\\\",\\\"various\\\",\\\"vast\\\",\\\"vault\\\",\\\"vehicle\\\",\\\"velvet\\\",\\\"vendor\\\",\\\"venture\\\",\\\"venue\\\",\\\"verb\\\",\\\"verify\\\",\\\"version\\\",\\\"very\\\",\\\"vessel\\\",\\\"veteran\\\",\\\"viable\\\",\\\"vibrant\\\",\\\"vicious\\\",\\\"victory\\\",\\\"video\\\",\\\"view\\\",\\\"village\\\",\\\"vintage\\\",\\\"violin\\\",\\\"virtual\\\",\\\"virus\\\",\\\"visa\\\",\\\"visit\\\",\\\"visual\\\",\\\"vital\\\",\\\"vivid\\\",\\\"vocal\\\",\\\"voice\\\",\\\"void\\\",\\\"volcano\\\",\\\"volume\\\",\\\"vote\\\",\\\"voyage\\\",\\\"wage\\\",\\\"wagon\\\",\\\"wait\\\",\\\"walk\\\",\\\"wall\\\",\\\"walnut\\\",\\\"want\\\",\\\"warfare\\\",\\\"warm\\\",\\\"warrior\\\",\\\"wash\\\",\\\"wasp\\\",\\\"waste\\\",\\\"water\\\",\\\"wave\\\",\\\"way\\\",\\\"wealth\\\",\\\"weapon\\\",\\\"wear\\\",\\\"weasel\\\",\\\"weather\\\",\\\"web\\\",\\\"wedding\\\",\\\"weekend\\\",\\\"weird\\\",\\\"welcome\\\",\\\"west\\\",\\\"wet\\\",\\\"whale\\\",\\\"what\\\",\\\"wheat\\\",\\\"wheel\\\",\\\"when\\\",\\\"where\\\",\\\"whip\\\",\\\"whisper\\\",\\\"wide\\\",\\\"width\\\",\\\"wife\\\",\\\"wild\\\",\\\"will\\\",\\\"win\\\",\\\"window\\\",\\\"wine\\\",\\\"wing\\\",\\\"wink\\\",\\\"winner\\\",\\\"winter\\\",\\\"wire\\\",\\\"wisdom\\\",\\\"wise\\\",\\\"wish\\\",\\\"witness\\\",\\\"wolf\\\",\\\"woman\\\",\\\"wonder\\\",\\\"wood\\\",\\\"wool\\\",\\\"word\\\",\\\"work\\\",\\\"world\\\",\\\"worry\\\",\\\"worth\\\",\\\"wrap\\\",\\\"wreck\\\",\\\"wrestle\\\",\\\"wrist\\\",\\\"write\\\",\\\"wrong\\\",\\\"yard\\\",\\\"year\\\",\\\"yellow\\\",\\\"you\\\",\\\"young\\\",\\\"youth\\\",\\\"zebra\\\",\\\"zero\\\",\\\"zone\\\",\\\"zoo\\\"];o1.wordlist=GL});var j5=V(On=>{\\\"use strict\\\";b();var QL=On&&On.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(On,\\\"__esModule\\\",{value:!0});On.mnemonicFromRandomSeed=On.mnemonicIndexesToBytes=On.bytesToMnemonics=On.bytesToMnemonicIndexes=On.mnemonicNew=On.mnemonicValidate=On.mnemonicToHDSeed=On.mnemonicToWalletKey=On.mnemonicToPrivateKey=On.mnemonicToSeed=On.mnemonicToEntropy=void 0;var LT=QL(a1()),XL=e1(),JL=Ad(),l1=M5(),O5=DT(),s1=R5(),I5=1e5;async function qT(t){let e=await w0(t);return await eq(e)&&!await N5(e)}function U5(t){return t.map(e=>e.toLowerCase().trim())}async function N5(t){return(await(0,l1.pbkdf2_sha512)(t,\\\"TON seed version\\\",Math.max(1,Math.floor(I5/256)),64))[0]==0}async function eq(t){return(await(0,l1.pbkdf2_sha512)(t,\\\"TON fast seed version\\\",1,64))[0]==1}async function w0(t,e){return await(0,JL.hmac_sha512)(t.join(\\\" \\\"),e&&e.length>0?e:\\\"\\\")}On.mnemonicToEntropy=w0;async function P5(t,e,n){let r=await w0(t,n);return await(0,l1.pbkdf2_sha512)(r,e,I5,64)}On.mnemonicToSeed=P5;async function VT(t,e){t=U5(t);let n=await P5(t,\\\"TON default seed\\\",e),r=LT.default.sign.keyPair.fromSeed(n.slice(0,32));return{publicKey:globalThis.Buffer.from(r.publicKey),secretKey:globalThis.Buffer.from(r.secretKey)}}On.mnemonicToPrivateKey=VT;async function tq(t,e){let r=(await VT(t,e)).secretKey.slice(0,32),i=LT.default.sign.keyPair.fromSeed(r);return{publicKey:globalThis.Buffer.from(i.publicKey),secretKey:globalThis.Buffer.from(i.secretKey)}}On.mnemonicToWalletKey=tq;async function nq(t,e){return t=U5(t),await P5(t,\\\"TON HD Keys seed\\\",e)}On.mnemonicToHDSeed=nq;async function HT(t,e){t=U5(t);for(let n of t)if(s1.wordlist.indexOf(n)<0)return!1;return e&&e.length>0&&!await qT(t)?!1:await N5(await w0(t,e))}On.mnemonicValidate=HT;async function rq(t=24,e){let n=[];for(;;){n=[];for(let r=0;r<t;r++){let i=await(0,XL.getSecureRandomNumber)(0,s1.wordlist.length);n.push(s1.wordlist[i])}if(!(e&&e.length>0&&!await qT(n))&&await N5(await w0(n,e)))break}return n}On.mnemonicNew=rq;function WT(t,e){let n=(0,O5.bytesToBits)(t),r=[];for(let i=0;i<e;i++){let a=n.slice(i*11,i*11+11);r.push(parseInt(a,2))}return r}On.bytesToMnemonicIndexes=WT;function FT(t,e){let n=WT(t,e),r=[];for(let i of n)r.push(s1.wordlist[i]);return r}On.bytesToMnemonics=FT;function iq(t){let e=\\\"\\\";for(let n of t){if(!Number.isSafeInteger(n)||n<0||n>=2028)throw Error(\\\"Invalid input\\\");e+=(0,O5.lpad)(n.toString(2),\\\"0\\\",11)}for(;e.length%8!==0;)e=e+\\\"0\\\";return(0,O5.bitsToBytes)(e)}On.mnemonicIndexesToBytes=iq;async function aq(t,e=24,n){let r=Math.ceil(e*11/8),i=t;for(;;){let a=await(0,l1.pbkdf2_sha512)(i,\\\"TON mnemonic seed\\\",Math.max(1,Math.floor(I5/256)),r),o=FT(a,e);if(await HT(o,n))return o;i=a}}On.mnemonicFromRandomSeed=aq});var z5=V(Pr=>{\\\"use strict\\\";b();var oq=Pr&&Pr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pr,\\\"__esModule\\\",{value:!0});Pr.openBox=Pr.sealBox=Pr.signVerify=Pr.sign=Pr.keyPairFromSeed=Pr.keyPairFromSecretKey=void 0;var kd=oq(a1());function sq(t){let e=kd.default.sign.keyPair.fromSecretKey(new Uint8Array(t));return{publicKey:globalThis.Buffer.from(e.publicKey),secretKey:globalThis.Buffer.from(e.secretKey)}}Pr.keyPairFromSecretKey=sq;function lq(t){let e=kd.default.sign.keyPair.fromSeed(new Uint8Array(t));return{publicKey:globalThis.Buffer.from(e.publicKey),secretKey:globalThis.Buffer.from(e.secretKey)}}Pr.keyPairFromSeed=lq;function cq(t,e){return globalThis.Buffer.from(kd.default.sign.detached(new Uint8Array(t),new Uint8Array(e)))}Pr.sign=cq;function uq(t,e,n){return kd.default.sign.detached.verify(new Uint8Array(t),new Uint8Array(e),new Uint8Array(n))}Pr.signVerify=uq;function dq(t,e,n){return globalThis.Buffer.from(kd.default.secretbox(t,e,n))}Pr.sealBox=dq;function fq(t,e,n){let r=kd.default.secretbox.open(t,e,n);return r?globalThis.Buffer.from(r):null}Pr.openBox=fq});var GT=V(ol=>{\\\"use strict\\\";b();Object.defineProperty(ol,\\\"__esModule\\\",{value:!0});ol.deriveEd25519Path=ol.deriveED25519HardenedKey=ol.getED25519MasterKeyFromSeed=void 0;var KT=Ad(),hq=\\\"ed25519 seed\\\",$T=2147483648;async function ZT(t){let e=await(0,KT.hmac_sha512)(hq,t),n=e.slice(0,32),r=e.slice(32);return{key:n,chainCode:r}}ol.getED25519MasterKeyFromSeed=ZT;async function YT(t,e){if(e>=$T)throw Error(\\\"Key index must be less than offset\\\");let n=globalThis.Buffer.alloc(4);n.writeUInt32BE(e+$T,0);let r=globalThis.Buffer.concat([globalThis.Buffer.alloc(1,0),t.key,n]),i=await(0,KT.hmac_sha512)(t.chainCode,r),a=i.slice(0,32),o=i.slice(32);return{key:a,chainCode:o}}ol.deriveED25519HardenedKey=YT;async function gq(t,e){let n=await ZT(t),r=[...e];for(;r.length>0;){let i=r[0];r=r.slice(1),n=await YT(n,i)}return n.key}ol.deriveEd25519Path=gq});var eE=V(sl=>{\\\"use strict\\\";b();Object.defineProperty(sl,\\\"__esModule\\\",{value:!0});sl.deriveSymmetricPath=sl.deriveSymmetricHardenedKey=sl.getSymmetricMasterKeyFromSeed=void 0;var QT=Ad(),pq=\\\"Symmetric key seed\\\";async function XT(t){let e=await(0,QT.hmac_sha512)(pq,t),n=e.slice(32),r=e.slice(0,32);return{key:n,chainCode:r}}sl.getSymmetricMasterKeyFromSeed=XT;async function JT(t,e){let n=globalThis.Buffer.concat([globalThis.Buffer.alloc(1,0),globalThis.Buffer.from(e)]),r=await(0,QT.hmac_sha512)(t.chainCode,n),i=r.slice(32),a=r.slice(0,32);return{key:i,chainCode:a}}sl.deriveSymmetricHardenedKey=JT;async function mq(t,e){let n=await XT(t),r=[...e];for(;r.length>0;){let i=r[0];r=r.slice(1),n=await JT(n,i)}return n.key}sl.deriveSymmetricPath=mq});var aE=V(ll=>{\\\"use strict\\\";b();Object.defineProperty(ll,\\\"__esModule\\\",{value:!0});ll.deriveMnemonicsPath=ll.deriveMnemonicHardenedKey=ll.getMnemonicsMasterKeyFromSeed=void 0;var yq=j5(),nE=Ad(),tE=2147483648,bq=\\\"TON Mnemonics HD seed\\\";async function rE(t){let e=await(0,nE.hmac_sha512)(bq,t),n=e.slice(0,32),r=e.slice(32);return{key:n,chainCode:r}}ll.getMnemonicsMasterKeyFromSeed=rE;async function iE(t,e){if(e>=tE)throw Error(\\\"Key index must be less than offset\\\");let n=globalThis.Buffer.alloc(4);n.writeUInt32BE(e+tE,0);let r=globalThis.Buffer.concat([globalThis.Buffer.alloc(1,0),t.key,n]),i=await(0,nE.hmac_sha512)(t.chainCode,r),a=i.slice(0,32),o=i.slice(32);return{key:a,chainCode:o}}ll.deriveMnemonicHardenedKey=iE;async function vq(t,e,n=24,r){let i=await rE(t),a=[...e];for(;a.length>0;){let o=a[0];a=a.slice(1),i=await iE(i,o)}return await(0,yq.mnemonicFromRandomSeed)(i.key,n,r)}ll.deriveMnemonicsPath=vq});var uc=V(qe=>{\\\"use strict\\\";b();Object.defineProperty(qe,\\\"__esModule\\\",{value:!0});qe.getMnemonicsMasterKeyFromSeed=qe.deriveMnemonicHardenedKey=qe.deriveMnemonicsPath=qe.deriveSymmetricPath=qe.deriveSymmetricHardenedKey=qe.getSymmetricMasterKeyFromSeed=qe.deriveEd25519Path=qe.deriveED25519HardenedKey=qe.getED25519MasterKeyFromSeed=qe.signVerify=qe.sign=qe.keyPairFromSecretKey=qe.keyPairFromSeed=qe.openBox=qe.sealBox=qe.mnemonicWordList=qe.mnemonicToHDSeed=qe.mnemonicToSeed=qe.mnemonicToWalletKey=qe.mnemonicToPrivateKey=qe.mnemonicValidate=qe.mnemonicNew=qe.newSecurePassphrase=qe.newSecureWords=qe.getSecureRandomNumber=qe.getSecureRandomWords=qe.getSecureRandomBytes=qe.hmac_sha512=qe.pbkdf2_sha512=qe.sha512_sync=qe.sha512=qe.sha256_sync=qe.sha256=void 0;var oE=BT();Object.defineProperty(qe,\\\"sha256\\\",{enumerable:!0,get:function(){return oE.sha256}});Object.defineProperty(qe,\\\"sha256_sync\\\",{enumerable:!0,get:function(){return oE.sha256_sync}});var sE=RT();Object.defineProperty(qe,\\\"sha512\\\",{enumerable:!0,get:function(){return sE.sha512}});Object.defineProperty(qe,\\\"sha512_sync\\\",{enumerable:!0,get:function(){return sE.sha512_sync}});var wq=M5();Object.defineProperty(qe,\\\"pbkdf2_sha512\\\",{enumerable:!0,get:function(){return wq.pbkdf2_sha512}});var xq=Ad();Object.defineProperty(qe,\\\"hmac_sha512\\\",{enumerable:!0,get:function(){return xq.hmac_sha512}});var D5=e1();Object.defineProperty(qe,\\\"getSecureRandomBytes\\\",{enumerable:!0,get:function(){return D5.getSecureRandomBytes}});Object.defineProperty(qe,\\\"getSecureRandomWords\\\",{enumerable:!0,get:function(){return D5.getSecureRandomWords}});Object.defineProperty(qe,\\\"getSecureRandomNumber\\\",{enumerable:!0,get:function(){return D5.getSecureRandomNumber}});var _q=PT();Object.defineProperty(qe,\\\"newSecureWords\\\",{enumerable:!0,get:function(){return _q.newSecureWords}});var Cq=jT();Object.defineProperty(qe,\\\"newSecurePassphrase\\\",{enumerable:!0,get:function(){return Cq.newSecurePassphrase}});var Bd=j5();Object.defineProperty(qe,\\\"mnemonicNew\\\",{enumerable:!0,get:function(){return Bd.mnemonicNew}});Object.defineProperty(qe,\\\"mnemonicValidate\\\",{enumerable:!0,get:function(){return Bd.mnemonicValidate}});Object.defineProperty(qe,\\\"mnemonicToPrivateKey\\\",{enumerable:!0,get:function(){return Bd.mnemonicToPrivateKey}});Object.defineProperty(qe,\\\"mnemonicToWalletKey\\\",{enumerable:!0,get:function(){return Bd.mnemonicToWalletKey}});Object.defineProperty(qe,\\\"mnemonicToSeed\\\",{enumerable:!0,get:function(){return Bd.mnemonicToSeed}});Object.defineProperty(qe,\\\"mnemonicToHDSeed\\\",{enumerable:!0,get:function(){return Bd.mnemonicToHDSeed}});var Sq=R5();Object.defineProperty(qe,\\\"mnemonicWordList\\\",{enumerable:!0,get:function(){return Sq.wordlist}});var lE=z5();Object.defineProperty(qe,\\\"sealBox\\\",{enumerable:!0,get:function(){return lE.sealBox}});Object.defineProperty(qe,\\\"openBox\\\",{enumerable:!0,get:function(){return lE.openBox}});var c1=z5();Object.defineProperty(qe,\\\"keyPairFromSeed\\\",{enumerable:!0,get:function(){return c1.keyPairFromSeed}});Object.defineProperty(qe,\\\"keyPairFromSecretKey\\\",{enumerable:!0,get:function(){return c1.keyPairFromSecretKey}});Object.defineProperty(qe,\\\"sign\\\",{enumerable:!0,get:function(){return c1.sign}});Object.defineProperty(qe,\\\"signVerify\\\",{enumerable:!0,get:function(){return c1.signVerify}});var L5=GT();Object.defineProperty(qe,\\\"getED25519MasterKeyFromSeed\\\",{enumerable:!0,get:function(){return L5.getED25519MasterKeyFromSeed}});Object.defineProperty(qe,\\\"deriveED25519HardenedKey\\\",{enumerable:!0,get:function(){return L5.deriveED25519HardenedKey}});Object.defineProperty(qe,\\\"deriveEd25519Path\\\",{enumerable:!0,get:function(){return L5.deriveEd25519Path}});var q5=eE();Object.defineProperty(qe,\\\"getSymmetricMasterKeyFromSeed\\\",{enumerable:!0,get:function(){return q5.getSymmetricMasterKeyFromSeed}});Object.defineProperty(qe,\\\"deriveSymmetricHardenedKey\\\",{enumerable:!0,get:function(){return q5.deriveSymmetricHardenedKey}});Object.defineProperty(qe,\\\"deriveSymmetricPath\\\",{enumerable:!0,get:function(){return q5.deriveSymmetricPath}});var V5=aE();Object.defineProperty(qe,\\\"deriveMnemonicsPath\\\",{enumerable:!0,get:function(){return V5.deriveMnemonicsPath}});Object.defineProperty(qe,\\\"deriveMnemonicHardenedKey\\\",{enumerable:!0,get:function(){return V5.deriveMnemonicHardenedKey}});Object.defineProperty(qe,\\\"getMnemonicsMasterKeyFromSeed\\\",{enumerable:!0,get:function(){return V5.getMnemonicsMasterKeyFromSeed}})});var cE=V(u1=>{\\\"use strict\\\";b();Object.defineProperty(u1,\\\"__esModule\\\",{value:!0});u1.wonderCalculator=void 0;var Tq=Wo(),Ya=wd(),x0=Vm(),Eq=Wm(),Aq=b0(),kq=A5(),Bq=uc(),Mq=Lm(),Rq=T5();function Oq(t,e,n){let r,i=null;if(t===Ya.CellType.Ordinary){let h=0;for(let g of n)h=h|g.mask.value;r=new x0.LevelMask(h)}else if(t===Ya.CellType.PrunedBranch)i=(0,Eq.exoticPruned)(e,n),r=new x0.LevelMask(i.mask);else if(t===Ya.CellType.MerkleProof){let h=(0,Aq.exoticMerkleProof)(e,n);r=new x0.LevelMask(n[0].mask.value>>1)}else if(t===Ya.CellType.MerkleUpdate){let h=(0,Mq.exoticMerkleUpdate)(e,n);r=new x0.LevelMask((n[0].mask.value|n[1].mask.value)>>1)}else if(t===Ya.CellType.Library){let h=(0,Rq.exoticLibrary)(e,n);r=new x0.LevelMask}else throw new Error(\\\"Unsupported exotic type\\\");let a=[],o=[],s=t===Ya.CellType.PrunedBranch?1:r.hashCount,c=r.hashCount-s;for(let h=0,g=0;h<=r.level;h++){if(!r.isSignificant(h))continue;if(g<c){g++;continue}let y;if(g===c){if(!(h===0||t===Ya.CellType.PrunedBranch))throw Error(\\\"Invalid\\\");y=e}else{if(!(h!==0&&t!==Ya.CellType.PrunedBranch))throw Error(\\\"Invalid: \\\"+h+\\\", \\\"+t);y=new Tq.BitString(o[g-c-1],0,256)}let E=0;for(let T of n){let R;t==Ya.CellType.MerkleProof||t==Ya.CellType.MerkleUpdate?R=T.depth(h+1):R=T.depth(h),E=Math.max(E,R)}n.length>0&&E++;let N=(0,kq.getRepr)(e,y,n,h,r.apply(h).value,t),_=(0,Bq.sha256_sync)(N),v=g-c;a[v]=E,o[v]=_,g++}let u=[],d=[];if(i)for(let h=0;h<4;h++){let{hashIndex:g}=r.apply(h),{hashIndex:y}=r;g!==y?(u.push(i.pruned[g].hash),d.push(i.pruned[g].depth)):(u.push(o[0]),d.push(a[0]))}else for(let h=0;h<4;h++)u.push(o[r.apply(h).hashIndex]),d.push(a[r.apply(h).hashIndex]);return{mask:r,hashes:u,depths:d}}u1.wonderCalculator=Oq});var uE=V(d1=>{\\\"use strict\\\";b();Object.defineProperty(d1,\\\"__esModule\\\",{value:!0});d1.topologicalSort=void 0;function Iq(t){let e=[t],n=new Map,r=new Set,i=[];for(;e.length>0;){let c=[...e];e=[];for(let u of c){let d=u.hash().toString(\\\"hex\\\");if(!n.has(d)){r.add(d),n.set(d,{cell:u,refs:u.refs.map(h=>h.hash().toString(\\\"hex\\\"))});for(let h of u.refs)e.push(h)}}}let a=new Set;function o(c){if(!r.has(c))return;if(a.has(c))throw Error(\\\"Not a DAG\\\");a.add(c);let u=n.get(c).refs;for(let d=u.length-1;d>=0;d--)o(u[d]);i.push(c),a.delete(c),r.delete(c)}for(;r.size>0;){let c=Array.from(r)[0];o(c)}let s=new Map;for(let c=0;c<i.length;c++)s.set(i[i.length-c-1],c);let l=[];for(let c=i.length-1;c>=0;c--){let u=i[c],d=n.get(u);l.push({cell:d.cell,refs:d.refs.map(h=>s.get(h))})}return l}d1.topologicalSort=Iq});var dE=V(f1=>{\\\"use strict\\\";b();Object.defineProperty(f1,\\\"__esModule\\\",{value:!0});f1.bitsForNumber=void 0;function Uq(t,e){let n=BigInt(t);if(e===\\\"int\\\")return n===0n||n===-1n?1:(n>0?n:-n).toString(2).length+1;if(e===\\\"uint\\\"){if(n<0)throw Error(`value is negative. Got ${t}`);return n.toString(2).length}else throw Error(`invalid mode. Got ${e}`)}f1.bitsForNumber=Uq});var H5=V(h1=>{\\\"use strict\\\";b();Object.defineProperty(h1,\\\"__esModule\\\",{value:!0});h1.crc32c=void 0;var cl=2197175160;function Nq(t){let e=-1;for(let r=0;r<t.length;r++)e^=t[r],e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1,e=e&1?e>>>1^cl:e>>>1;e=e^4294967295;let n=globalThis.Buffer.alloc(4);return n.writeInt32LE(e),n}h1.crc32c=Nq});var yE=V(ul=>{\\\"use strict\\\";b();Object.defineProperty(ul,\\\"__esModule\\\",{value:!0});ul.serializeBoc=ul.deserializeBoc=ul.parseBoc=void 0;var pE=Fo(),F5=Wo(),Pq=el(),jq=uE(),fE=dE(),zq=m0(),hE=A5(),Dq=p0(),W5=H5();function gE(t){return Lq(t&7)}function Lq(t){let e=0;for(let n=0;n<3;n++)e+=t&1,t=t>>1;return e+1}function qq(t,e){let n=t.loadUint(8),r=n%8,i=!!(n&8),a=t.loadUint(8),o=Math.ceil(a/2),s=!!(a%2),l=n>>5,c=(n&16)!=0,d=c?gE(l)*32:0,h=c?gE(l)*2:0;t.skip(d*8),t.skip(h*8);let g=F5.BitString.EMPTY;o>0&&(s?g=t.loadPaddedBits(o*8):g=t.loadBits(o*8));let y=[];for(let E=0;E<r;E++)y.push(t.loadUint(e*8));return{bits:g,refs:y,exotic:i}}function Vq(t,e){return 2+Math.ceil(t.bits.length/8)+t.refs.length*e}function mE(t){let e=new pE.BitReader(new F5.BitString(t,0,t.length*8)),n=e.loadUint(32);if(n===1761568243){let r=e.loadUint(8),i=e.loadUint(8),a=e.loadUint(r*8),o=e.loadUint(r*8),s=e.loadUint(r*8),l=e.loadUint(i*8),c=e.loadBuffer(a*i),u=e.loadBuffer(l);return{size:r,offBytes:i,cells:a,roots:o,absent:s,totalCellSize:l,index:c,cellData:u,root:[0]}}else if(n===2898503464){let r=e.loadUint(8),i=e.loadUint(8),a=e.loadUint(r*8),o=e.loadUint(r*8),s=e.loadUint(r*8),l=e.loadUint(i*8),c=e.loadBuffer(a*i),u=e.loadBuffer(l),d=e.loadBuffer(4);if(!(0,W5.crc32c)(t.subarray(0,t.length-4)).equals(d))throw Error(\\\"Invalid CRC32C\\\");return{size:r,offBytes:i,cells:a,roots:o,absent:s,totalCellSize:l,index:c,cellData:u,root:[0]}}else if(n===3052313714){let r=e.loadUint(1),i=e.loadUint(1),a=e.loadUint(1),o=e.loadUint(2),s=e.loadUint(3),l=e.loadUint(8),c=e.loadUint(s*8),u=e.loadUint(s*8),d=e.loadUint(s*8),h=e.loadUint(l*8),g=[];for(let N=0;N<u;N++)g.push(e.loadUint(s*8));let y=null;r&&(y=e.loadBuffer(c*l));let E=e.loadBuffer(h);if(i){let N=e.loadBuffer(4);if(!(0,W5.crc32c)(t.subarray(0,t.length-4)).equals(N))throw Error(\\\"Invalid CRC32C\\\")}return{size:s,offBytes:l,cells:c,roots:u,absent:d,totalCellSize:h,index:y,cellData:E,root:g}}else throw Error(\\\"Invalid magic\\\")}ul.parseBoc=mE;function Hq(t){let e=mE(t),n=new pE.BitReader(new F5.BitString(e.cellData,0,e.cellData.length*8)),r=[];for(let a=0;a<e.cells;a++){let o=qq(n,e.size);r.push({...o,result:null})}for(let a=r.length-1;a>=0;a--){if(r[a].result)throw Error(\\\"Impossible\\\");let o=[];for(let s of r[a].refs){if(!r[s].result)throw Error(\\\"Invalid BOC file\\\");o.push(r[s].result)}r[a].result=new Pq.Cell({bits:r[a].bits,refs:o,exotic:r[a].exotic})}let i=[];for(let a=0;a<e.root.length;a++)i.push(r[e.root[a]].result);return i}ul.deserializeBoc=Hq;function Wq(t,e,n,r){let i=(0,hE.getRefsDescriptor)(t.refs,t.mask.value,t.type),a=(0,hE.getBitsDescriptor)(t.bits);r.writeUint(i,8),r.writeUint(a,8),r.writeBuffer((0,Dq.bitsToPaddedBuffer)(t.bits));for(let o of e)r.writeUint(o,n*8)}function Fq(t,e){let n=(0,jq.topologicalSort)(t),r=n.length,i=e.idx,a=e.crc32,o=!1,s=0,l=Math.max(Math.ceil((0,fE.bitsForNumber)(r,\\\"uint\\\")/8),1),c=0,u=[];for(let E of n){let N=Vq(E.cell,l);c+=N,u.push(c)}let d=Math.max(Math.ceil((0,fE.bitsForNumber)(c,\\\"uint\\\")/8),1),h=(6+3*l+d+1*l+(i?r*d:0)+c+(a?4:0))*8,g=new zq.BitBuilder(h);if(g.writeUint(3052313714,32),g.writeBit(i),g.writeBit(a),g.writeBit(o),g.writeUint(s,2),g.writeUint(l,3),g.writeUint(d,8),g.writeUint(r,l*8),g.writeUint(1,l*8),g.writeUint(0,l*8),g.writeUint(c,d*8),g.writeUint(0,l*8),i)for(let E=0;E<r;E++)g.writeUint(u[E],d*8);for(let E=0;E<r;E++)Wq(n[E].cell,n[E].refs,l,g);if(a){let E=(0,W5.crc32c)(g.buffer());g.writeBuffer(E)}let y=g.buffer();if(y.length!==h/8)throw Error(\\\"Internal error\\\");return y}ul.serializeBoc=Fq});var el=V(g1=>{\\\"use strict\\\";b();var wE;Object.defineProperty(g1,\\\"__esModule\\\",{value:!0});g1.Cell=void 0;var $q=cc(),Kq=Wo(),dc=wd(),Zq=jm(),Yq=vT(),bE=cE(),vE=yE(),Gq=Fo(),Qq=tr(),_0=class t{static fromBoc(e){return(0,vE.deserializeBoc)(e)}static fromBase64(e){let n=t.fromBoc(globalThis.Buffer.from(e,\\\"base64\\\"));if(n.length!==1)throw new Error(\\\"Deserialized more than one cell\\\");return n[0]}static fromHex(e){let n=t.fromBoc(globalThis.Buffer.from(e,\\\"hex\\\"));if(n.length!==1)throw new Error(\\\"Deserialized more than one cell\\\");return n[0]}constructor(e){this._hashes=[],this._depths=[],this.beginParse=(l=!1)=>{if(this.isExotic&&!l)throw new Error(\\\"Exotic cells cannot be parsed\\\");return new Zq.Slice(new Gq.BitReader(this.bits),this.refs)},this.hash=(l=3)=>this._hashes[Math.min(this._hashes.length-1,l)],this.depth=(l=3)=>this._depths[Math.min(this._depths.length-1,l)],this.level=()=>this.mask.level,this.equals=l=>this.hash().equals(l.hash()),this[wE]=()=>this.toString();let n=Kq.BitString.EMPTY;e&&e.bits&&(n=e.bits);let r=[];e&&e.refs&&(r=[...e.refs]);let i,a,o,s=dc.CellType.Ordinary;if(e&&e.exotic){let l=(0,Yq.resolveExotic)(n,r),c=(0,bE.wonderCalculator)(l.type,n,r);o=c.mask,a=c.depths,i=c.hashes,s=l.type}else{if(r.length>4)throw new Error(\\\"Invalid number of references\\\");if(n.length>1023)throw new Error(`Bits overflow: ${n.length} > 1023`);let l=(0,bE.wonderCalculator)(dc.CellType.Ordinary,n,r);o=l.mask,a=l.depths,i=l.hashes,s=dc.CellType.Ordinary}this.type=s,this.bits=n,this.refs=r,this.mask=o,this._depths=a,this._hashes=i,Object.freeze(this),Object.freeze(this.refs),Object.freeze(this.bits),Object.freeze(this.mask),Object.freeze(this._depths),Object.freeze(this._hashes)}get isExotic(){return this.type!==dc.CellType.Ordinary}toBoc(e){let n=e&&e.idx!==null&&e.idx!==void 0?e.idx:!1,r=e&&e.crc32!==null&&e.crc32!==void 0?e.crc32:!0;return(0,vE.serializeBoc)(this,{idx:n,crc32:r})}toString(e){let n=e||\\\"\\\",r=\\\"x\\\";this.isExotic&&(this.type===dc.CellType.MerkleProof?r=\\\"p\\\":this.type===dc.CellType.MerkleUpdate?r=\\\"u\\\":this.type===dc.CellType.PrunedBranch&&(r=\\\"p\\\"));let i=n+(this.isExotic?r:\\\"x\\\")+\\\"{\\\"+this.bits.toString()+\\\"}\\\";for(let a in this.refs){let o=this.refs[a];i+=`\\n`+o.toString(n+\\\" \\\")}return i}asSlice(){return this.beginParse()}asBuilder(){return(0,Qq.beginCell)().storeSlice(this.asSlice())}};g1.Cell=_0;wE=$q.inspectSymbol;_0.EMPTY=new _0});var tr=V(Md=>{\\\"use strict\\\";b();Object.defineProperty(Md,\\\"__esModule\\\",{value:!0});Md.Builder=Md.beginCell=void 0;var Xq=m0(),xE=el(),_E=C5();function CE(){return new p1}Md.beginCell=CE;var p1=class t{constructor(){this._bits=new Xq.BitBuilder,this._refs=[]}get bits(){return this._bits.length}get refs(){return this._refs.length}get availableBits(){return 1023-this.bits}get availableRefs(){return 4-this.refs}storeBit(e){return this._bits.writeBit(e),this}storeBits(e){return this._bits.writeBits(e),this}storeBuffer(e,n){if(n!=null&&e.length!==n)throw Error(`Buffer length ${e.length} is not equal to ${n}`);return this._bits.writeBuffer(e),this}storeMaybeBuffer(e,n){return e!==null?(this.storeBit(1),this.storeBuffer(e,n)):this.storeBit(0),this}storeUint(e,n){return this._bits.writeUint(e,n),this}storeMaybeUint(e,n){return e!=null?(this.storeBit(1),this.storeUint(e,n)):this.storeBit(0),this}storeInt(e,n){return this._bits.writeInt(e,n),this}storeMaybeInt(e,n){return e!=null?(this.storeBit(1),this.storeInt(e,n)):this.storeBit(0),this}storeVarUint(e,n){return this._bits.writeVarUint(e,n),this}storeMaybeVarUint(e,n){return e!=null?(this.storeBit(1),this.storeVarUint(e,n)):this.storeBit(0),this}storeVarInt(e,n){return this._bits.writeVarInt(e,n),this}storeMaybeVarInt(e,n){return e!=null?(this.storeBit(1),this.storeVarInt(e,n)):this.storeBit(0),this}storeCoins(e){return this._bits.writeCoins(e),this}storeMaybeCoins(e){return e!=null?(this.storeBit(1),this.storeCoins(e)):this.storeBit(0),this}storeAddress(e){return this._bits.writeAddress(e),this}storeRef(e){if(this._refs.length>=4)throw new Error(\\\"Too many references\\\");if(e instanceof xE.Cell)this._refs.push(e);else if(e instanceof t)this._refs.push(e.endCell());else throw new Error(\\\"Invalid argument\\\");return this}storeMaybeRef(e){return e?(this.storeBit(1),this.storeRef(e)):this.storeBit(0),this}storeSlice(e){let n=e.clone();for(n.remainingBits>0&&this.storeBits(n.loadBits(n.remainingBits));n.remainingRefs>0;)this.storeRef(n.loadRef());return this}storeMaybeSlice(e){return e?(this.storeBit(1),this.storeSlice(e)):this.storeBit(0),this}storeBuilder(e){return this.storeSlice(e.endCell().beginParse())}storeMaybeBuilder(e){return e?(this.storeBit(1),this.storeBuilder(e)):this.storeBit(0),this}storeWritable(e){return typeof e==\\\"object\\\"?e.writeTo(this):e(this),this}storeMaybeWritable(e){return e?(this.storeBit(1),this.storeWritable(e)):this.storeBit(0),this}store(e){return this.storeWritable(e),this}storeStringTail(e){return(0,_E.writeString)(e,this),this}storeMaybeStringTail(e){return e!=null?(this.storeBit(1),(0,_E.writeString)(e,this)):this.storeBit(0),this}storeStringRefTail(e){return this.storeRef(CE().storeStringTail(e)),this}storeMaybeStringRefTail(e){return e!=null?(this.storeBit(1),this.storeStringRefTail(e)):this.storeBit(0),this}storeDict(e,n,r){return e?e.store(this,n,r):this.storeBit(0),this}storeDictDirect(e,n,r){return e.storeDirect(this,n,r),this}endCell(e){return new xE.Cell({bits:this._bits.build(),refs:this._refs,exotic:e?.exotic})}asCell(){return this.endCell()}asSlice(){return this.endCell().beginParse()}};Md.Builder=p1});var $5=V(dl=>{\\\"use strict\\\";b();Object.defineProperty(dl,\\\"__esModule\\\",{value:!0});dl.SimpleLibraryValue=dl.storeSimpleLibrary=dl.loadSimpleLibrary=void 0;function SE(t){return{public:t.loadBit(),root:t.loadRef()}}dl.loadSimpleLibrary=SE;function TE(t){return e=>{e.storeBit(t.public),e.storeRef(t.root)}}dl.storeSimpleLibrary=TE;dl.SimpleLibraryValue={serialize(t,e){TE(t)(e)},parse(t){return SE(t)}}});var K5=V(Rd=>{\\\"use strict\\\";b();Object.defineProperty(Rd,\\\"__esModule\\\",{value:!0});Rd.storeTickTock=Rd.loadTickTock=void 0;function Jq(t){return{tick:t.loadBit(),tock:t.loadBit()}}Rd.loadTickTock=Jq;function eV(t){return e=>{e.storeBit(t.tick),e.storeBit(t.tock)}}Rd.storeTickTock=eV});var Id=V(Od=>{\\\"use strict\\\";b();Object.defineProperty(Od,\\\"__esModule\\\",{value:!0});Od.storeStateInit=Od.loadStateInit=void 0;var tV=Ko(),nV=$5(),EE=K5();function rV(t){let e;t.loadBit()&&(e=t.loadUint(5));let n;t.loadBit()&&(n=(0,EE.loadTickTock)(t));let r=t.loadMaybeRef(),i=t.loadMaybeRef(),a=t.loadDict(tV.Dictionary.Keys.BigUint(256),nV.SimpleLibraryValue);return a.size===0&&(a=void 0),{splitDepth:e,special:n,code:r,data:i,libraries:a}}Od.loadStateInit=rV;function iV(t){return e=>{t.splitDepth!==null&&t.splitDepth!==void 0?(e.storeBit(!0),e.storeUint(t.splitDepth,5)):e.storeBit(!1),t.special!==null&&t.special!==void 0?(e.storeBit(!0),e.store((0,EE.storeTickTock)(t.special))):e.storeBit(!1),e.storeMaybeRef(t.code),e.storeMaybeRef(t.data),e.storeDict(t.libraries)}}Od.storeStateInit=iV});var AE=V(m1=>{\\\"use strict\\\";b();Object.defineProperty(m1,\\\"__esModule\\\",{value:!0});m1.contractAddress=void 0;var aV=tr(),oV=Id(),sV=Ho();function lV(t,e){let n=(0,aV.beginCell)().store((0,oV.storeStateInit)(e)).endCell().hash();return new sV.Address(t,n)}m1.contractAddress=lV});var BE=V(Ga=>{\\\"use strict\\\";b();Object.defineProperty(Ga,\\\"__esModule\\\",{value:!0});Ga.parseTuple=Ga.serializeTuple=Ga.parseTupleItem=Ga.serializeTupleItem=void 0;var C0=tr(),cV=BigInt(\\\"-9223372036854775808\\\"),uV=BigInt(\\\"9223372036854775807\\\");function Z5(t,e){if(t.type===\\\"null\\\")e.storeUint(0,8);else if(t.type===\\\"int\\\")t.value<=uV&&t.value>=cV?(e.storeUint(1,8),e.storeInt(t.value,64)):(e.storeUint(256,15),e.storeInt(t.value,257));else if(t.type===\\\"nan\\\")e.storeInt(767,16);else if(t.type===\\\"cell\\\")e.storeUint(3,8),e.storeRef(t.cell);else if(t.type===\\\"slice\\\")e.storeUint(4,8),e.storeUint(0,10),e.storeUint(t.cell.bits.length,10),e.storeUint(0,3),e.storeUint(t.cell.refs.length,3),e.storeRef(t.cell);else if(t.type===\\\"builder\\\")e.storeUint(5,8),e.storeRef(t.cell);else if(t.type===\\\"tuple\\\"){let n=null,r=null;for(let i=0;i<t.items.length;i++){let a=n;n=r,r=a,i>1&&(n=(0,C0.beginCell)().storeRef(r).storeRef(n).endCell());let o=(0,C0.beginCell)();Z5(t.items[i],o),r=o.endCell()}e.storeUint(7,8),e.storeUint(t.items.length,16),n&&e.storeRef(n),r&&e.storeRef(r)}else throw Error(\\\"Invalid value\\\")}Ga.serializeTupleItem=Z5;function Ud(t){let e=t.loadUint(8);if(e===0)return{type:\\\"null\\\"};if(e===1)return{type:\\\"int\\\",value:t.loadIntBig(64)};if(e===2)return t.loadUint(7)===0?{type:\\\"int\\\",value:t.loadIntBig(257)}:(t.loadBit(),{type:\\\"nan\\\"});if(e===3)return{type:\\\"cell\\\",cell:t.loadRef()};if(e===4){let n=t.loadUint(10),r=t.loadUint(10),i=t.loadUint(3),a=t.loadUint(3),o=t.loadRef().beginParse();o.skip(n);let s=o.loadBits(r-n),l=(0,C0.beginCell)().storeBits(s);if(i<a){for(let c=0;c<i;c++)o.loadRef();for(let c=0;c<a-i;c++)l.storeRef(o.loadRef())}return{type:\\\"slice\\\",cell:l.endCell()}}else{if(e===5)return{type:\\\"builder\\\",cell:t.loadRef()};if(e===7){let n=t.loadUint(16),r=[];if(n>1){let i=t.loadRef().beginParse(),a=t.loadRef().beginParse();r.unshift(Ud(a));for(let o=0;o<n-2;o++){let s=i;i=s.loadRef().beginParse(),a=s.loadRef().beginParse(),r.unshift(Ud(a))}r.unshift(Ud(i))}else n===1&&r.push(Ud(t.loadRef().beginParse()));return{type:\\\"tuple\\\",items:r}}else throw Error(\\\"Unsupported stack item\\\")}}Ga.parseTupleItem=Ud;function kE(t,e){if(t.length>0){let n=(0,C0.beginCell)();kE(t.slice(0,t.length-1),n),e.storeRef(n.endCell()),Z5(t[t.length-1],e)}}function dV(t){let e=(0,C0.beginCell)();e.storeUint(t.length,24);let n=[...t];return kE(n,e),e.endCell()}Ga.serializeTuple=dV;function fV(t){let e=[],n=t.beginParse(),r=n.loadUint(24);for(let i=0;i<r;i++){let a=n.loadRef();e.unshift(Ud(n)),n=a.beginParse()}return e}Ga.parseTuple=fV});var ME=V(y1=>{\\\"use strict\\\";b();Object.defineProperty(y1,\\\"__esModule\\\",{value:!0});y1.TupleReader=void 0;var Y5=class t{constructor(e){this.items=[...e]}get remaining(){return this.items.length}peek(){if(this.items.length===0)throw Error(\\\"EOF\\\");return this.items[0]}pop(){if(this.items.length===0)throw Error(\\\"EOF\\\");let e=this.items[0];return this.items.splice(0,1),e}skip(e=1){for(let n=0;n<e;n++)this.pop();return this}readBigNumber(){let e=this.pop();if(e.type!==\\\"int\\\")throw Error(\\\"Not a number\\\");return e.value}readBigNumberOpt(){let e=this.pop();if(e.type===\\\"null\\\")return null;if(e.type!==\\\"int\\\")throw Error(\\\"Not a number\\\");return e.value}readNumber(){return Number(this.readBigNumber())}readNumberOpt(){let e=this.readBigNumberOpt();return e!==null?Number(e):null}readBoolean(){return this.readNumber()!==0}readBooleanOpt(){let e=this.readNumberOpt();return e!==null?e!==0:null}readAddress(){let e=this.readCell().beginParse().loadAddress();if(e!==null)return e;throw Error(\\\"Not an address\\\")}readAddressOpt(){let e=this.readCellOpt();return e!==null?e.beginParse().loadMaybeAddress():null}readCell(){let e=this.pop();if(e.type!==\\\"cell\\\"&&e.type!==\\\"slice\\\"&&e.type!==\\\"builder\\\")throw Error(\\\"Not a cell: \\\"+e.type);return e.cell}readCellOpt(){let e=this.pop();if(e.type===\\\"null\\\")return null;if(e.type!==\\\"cell\\\"&&e.type!==\\\"slice\\\"&&e.type!==\\\"builder\\\")throw Error(\\\"Not a cell\\\");return e.cell}readTuple(){let e=this.pop();if(e.type!==\\\"tuple\\\")throw Error(\\\"Not a tuple\\\");return new t(e.items)}readTupleOpt(){let e=this.pop();if(e.type===\\\"null\\\")return null;if(e.type!==\\\"tuple\\\")throw Error(\\\"Not a tuple\\\");return new t(e.items)}static readLispList(e){let n=[],r=e;for(;r!==null;){var i=r.pop();if(r.items.length===0||r.items[0].type!==\\\"tuple\\\"&&r.items[0].type!==\\\"null\\\")throw Error(\\\"Lisp list consists only from (any, tuple) elements and ends with null\\\");r=r.readTupleOpt(),n.push(i)}return n}readLispListDirect(){return this.items.length===1&&this.items[0].type===\\\"null\\\"?[]:t.readLispList(this)}readLispList(){return t.readLispList(this.readTupleOpt())}readBuffer(){let e=this.readCell().beginParse();if(e.remainingRefs!==0||e.remainingBits%8!==0)throw Error(\\\"Not a buffer\\\");return e.loadBuffer(e.remainingBits/8)}readBufferOpt(){let e=this.readCellOpt();if(e!==null){let n=e.beginParse();if(n.remainingRefs!==0||n.remainingBits%8!==0)throw Error(\\\"Not a buffer\\\");return n.loadBuffer(n.remainingBits/8)}else return null}readString(){return this.readCell().beginParse().loadStringTail()}readStringOpt(){let e=this.readCellOpt();return e!==null?e.beginParse().loadStringTail():null}};y1.TupleReader=Y5});var RE=V(b1=>{\\\"use strict\\\";b();Object.defineProperty(b1,\\\"__esModule\\\",{value:!0});b1.TupleBuilder=void 0;var G5=tr(),Q5=el(),X5=jm(),J5=class{constructor(){this._tuple=[]}writeNumber(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"int\\\",value:BigInt(e)})}writeBoolean(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"int\\\",value:e?-1n:0n})}writeBuffer(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"slice\\\",cell:(0,G5.beginCell)().storeBuffer(e).endCell()})}writeString(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"slice\\\",cell:(0,G5.beginCell)().storeStringTail(e).endCell()})}writeCell(e){e==null?this._tuple.push({type:\\\"null\\\"}):e instanceof Q5.Cell?this._tuple.push({type:\\\"cell\\\",cell:e}):e instanceof X5.Slice&&this._tuple.push({type:\\\"cell\\\",cell:e.asCell()})}writeSlice(e){e==null?this._tuple.push({type:\\\"null\\\"}):e instanceof Q5.Cell?this._tuple.push({type:\\\"slice\\\",cell:e}):e instanceof X5.Slice&&this._tuple.push({type:\\\"slice\\\",cell:e.asCell()})}writeBuilder(e){e==null?this._tuple.push({type:\\\"null\\\"}):e instanceof Q5.Cell?this._tuple.push({type:\\\"builder\\\",cell:e}):e instanceof X5.Slice&&this._tuple.push({type:\\\"builder\\\",cell:e.asCell()})}writeTuple(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"tuple\\\",items:e})}writeAddress(e){e==null?this._tuple.push({type:\\\"null\\\"}):this._tuple.push({type:\\\"slice\\\",cell:(0,G5.beginCell)().storeAddress(e).endCell()})}build(){return[...this._tuple]}};b1.TupleBuilder=J5});var e3=V(Nd=>{\\\"use strict\\\";b();Object.defineProperty(Nd,\\\"__esModule\\\",{value:!0});Nd.fromNano=Nd.toNano=void 0;function hV(t){if(typeof t==\\\"bigint\\\")return t*1000000000n;{if(typeof t==\\\"number\\\"){if(!Number.isFinite(t))throw Error(\\\"Invalid number\\\");if(Math.log10(t)<=6)t=t.toLocaleString(\\\"en\\\",{minimumFractionDigits:9,useGrouping:!1});else if(t-Math.trunc(t)===0)t=t.toLocaleString(\\\"en\\\",{maximumFractionDigits:0,useGrouping:!1});else throw Error(\\\"Not enough precision for a number value. Use string value instead\\\")}let e=!1;for(;t.startsWith(\\\"-\\\");)e=!e,t=t.slice(1);if(t===\\\".\\\")throw Error(\\\"Invalid number\\\");let n=t.split(\\\".\\\");if(n.length>2)throw Error(\\\"Invalid number\\\");let r=n[0],i=n[1];if(r||(r=\\\"0\\\"),i||(i=\\\"0\\\"),i.length>9)throw Error(\\\"Invalid number\\\");for(;i.length<9;)i+=\\\"0\\\";let a=BigInt(r)*1000000000n+BigInt(i);return e&&(a=-a),a}}Nd.toNano=hV;function gV(t){let e=BigInt(t),n=!1;e<0&&(n=!0,e=-e);let i=(e%1000000000n).toString();for(;i.length<9;)i=\\\"0\\\"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=`${(e/1000000000n).toString()}${i===\\\"0\\\"?\\\"\\\":`.${i}`}`;return n&&(s=\\\"-\\\"+s),s}Nd.fromNano=gV});var n3=V(ra=>{\\\"use strict\\\";b();Object.defineProperty(ra,\\\"__esModule\\\",{value:!0});ra.packExtraCurrencyCell=ra.packExtraCurrencyDict=ra.storeExtraCurrency=ra.loadMaybeExtraCurrency=ra.loadExtraCurrency=void 0;var pV=tr(),fc=Ko();function OE(t){let e=t instanceof fc.Dictionary?t:fc.Dictionary.loadDirect(fc.Dictionary.Keys.Uint(32),fc.Dictionary.Values.BigVarUint(5),t),n={};for(let[r,i]of e)n[r]=i;return n}ra.loadExtraCurrency=OE;function mV(t){let e=t.loadMaybeRef();return e===null?e:OE(e)}ra.loadMaybeExtraCurrency=mV;function yV(t){return e=>{e.storeDict(t3(t))}}ra.storeExtraCurrency=yV;function t3(t){let e=fc.Dictionary.empty(fc.Dictionary.Keys.Uint(32),fc.Dictionary.Values.BigVarUint(5));return Object.entries(t).map(([n,r])=>e.set(Number(n),r)),e}ra.packExtraCurrencyDict=t3;function bV(t){return(0,pV.beginCell)().storeDictDirect(t3(t)).endCell()}ra.packExtraCurrencyCell=bV});var NE=V(fl=>{\\\"use strict\\\";b();Object.defineProperty(fl,\\\"__esModule\\\",{value:!0});fl.comment=fl.external=fl.internal=void 0;var v1=Ho(),IE=el(),UE=tr(),vV=e3(),wV=n3();function xV(t){let e=!0;t.bounce!==null&&t.bounce!==void 0&&(e=t.bounce);let n;if(typeof t.to==\\\"string\\\")n=v1.Address.parse(t.to);else if(v1.Address.isAddress(t.to))n=t.to;else throw new Error(`Invalid address ${t.to}`);let r;typeof t.value==\\\"string\\\"?r=(0,vV.toNano)(t.value):r=t.value;let i;t.extracurrency&&(i=(0,wV.packExtraCurrencyDict)(t.extracurrency));let a=IE.Cell.EMPTY;return typeof t.body==\\\"string\\\"?a=(0,UE.beginCell)().storeUint(0,32).storeStringTail(t.body).endCell():t.body&&(a=t.body),{info:{type:\\\"internal\\\",dest:n,value:{coins:r,other:i},bounce:e,ihrDisabled:!0,bounced:!1,ihrFee:0n,forwardFee:0n,createdAt:0,createdLt:0n},init:t.init??void 0,body:a}}fl.internal=xV;function _V(t){let e;if(typeof t.to==\\\"string\\\")e=v1.Address.parse(t.to);else if(v1.Address.isAddress(t.to))e=t.to;else throw new Error(`Invalid address ${t.to}`);return{info:{type:\\\"external-in\\\",dest:e,importFee:0n},init:t.init??void 0,body:t.body||IE.Cell.EMPTY}}fl.external=_V;function CV(t){return(0,UE.beginCell)().storeUint(0,32).storeStringTail(t).endCell()}fl.comment=CV});var r3=V(Pd=>{\\\"use strict\\\";b();Object.defineProperty(Pd,\\\"__esModule\\\",{value:!0});Pd.storeAccountState=Pd.loadAccountState=void 0;var PE=Id();function SV(t){return t.loadBit()?{type:\\\"active\\\",state:(0,PE.loadStateInit)(t)}:t.loadBit()?{type:\\\"frozen\\\",stateHash:t.loadUintBig(256)}:{type:\\\"uninit\\\"}}Pd.loadAccountState=SV;function TV(t){return e=>{t.type===\\\"active\\\"?(e.storeBit(!0),e.store((0,PE.storeStateInit)(t.state))):t.type===\\\"frozen\\\"?(e.storeBit(!1),e.storeBit(!0),e.storeUint(t.stateHash,256)):t.type===\\\"uninit\\\"&&(e.storeBit(!1),e.storeBit(!1))}}Pd.storeAccountState=TV});var Qa=V(jd=>{\\\"use strict\\\";b();Object.defineProperty(jd,\\\"__esModule\\\",{value:!0});jd.storeCurrencyCollection=jd.loadCurrencyCollection=void 0;var jE=Ko();function EV(t){let e=t.loadCoins(),n=t.loadDict(jE.Dictionary.Keys.Uint(32),jE.Dictionary.Values.BigVarUint(5));return n.size===0?{coins:e}:{other:n,coins:e}}jd.loadCurrencyCollection=EV;function AV(t){return e=>{e.storeCoins(t.coins),t.other?e.storeDict(t.other):e.storeBit(0)}}jd.storeCurrencyCollection=AV});var i3=V(zd=>{\\\"use strict\\\";b();Object.defineProperty(zd,\\\"__esModule\\\",{value:!0});zd.storeAccountStorage=zd.loadAccountStorage=void 0;var zE=r3(),DE=Qa();function kV(t){return{lastTransLt:t.loadUintBig(64),balance:(0,DE.loadCurrencyCollection)(t),state:(0,zE.loadAccountState)(t)}}zd.loadAccountStorage=kV;function BV(t){return e=>{e.storeUint(t.lastTransLt,64),e.store((0,DE.storeCurrencyCollection)(t.balance)),e.store((0,zE.storeAccountState)(t.state))}}zd.storeAccountStorage=BV});var LE=V(Dd=>{\\\"use strict\\\";b();Object.defineProperty(Dd,\\\"__esModule\\\",{value:!0});Dd.storeStorageExtraInfo=Dd.loadStorageExtraInfo=void 0;function MV(t){let e=t.loadUint(3);if(e===0)return null;if(e===1)return{dictHash:t.loadUintBig(256)};throw new Error(`Invalid storage extra info header: ${e}`)}Dd.loadStorageExtraInfo=MV;function RV(t){return e=>{t===null||typeof t>\\\"u\\\"?e.storeUint(0,3):(e.storeUint(1,3),e.storeUint(t.dictHash,256))}}Dd.storeStorageExtraInfo=RV});var S0=V(Ld=>{\\\"use strict\\\";b();Object.defineProperty(Ld,\\\"__esModule\\\",{value:!0});Ld.storeStorageUsed=Ld.loadStorageUsed=void 0;function OV(t){return{cells:t.loadVarUintBig(3),bits:t.loadVarUintBig(3)}}Ld.loadStorageUsed=OV;function IV(t){return e=>{e.storeVarUint(t.cells,3),e.storeVarUint(t.bits,3)}}Ld.storeStorageUsed=IV});var a3=V(qd=>{\\\"use strict\\\";b();Object.defineProperty(qd,\\\"__esModule\\\",{value:!0});qd.storeStorageInfo=qd.loadStorageInfo=void 0;var qE=LE(),VE=S0();function UV(t){return{used:(0,VE.loadStorageUsed)(t),storageExtra:(0,qE.loadStorageExtraInfo)(t),lastPaid:t.loadUint(32),duePayment:t.loadMaybeCoins()}}qd.loadStorageInfo=UV;function NV(t){return e=>{e.store((0,VE.storeStorageUsed)(t.used)),e.store((0,qE.storeStorageExtraInfo)(t.storageExtra)),e.storeUint(t.lastPaid,32),e.storeMaybeCoins(t.duePayment)}}qd.storeStorageInfo=NV});var o3=V(Vd=>{\\\"use strict\\\";b();Object.defineProperty(Vd,\\\"__esModule\\\",{value:!0});Vd.storeAccount=Vd.loadAccount=void 0;var HE=i3(),WE=a3();function PV(t){return{addr:t.loadAddress(),storageStats:(0,WE.loadStorageInfo)(t),storage:(0,HE.loadAccountStorage)(t)}}Vd.loadAccount=PV;function jV(t){return e=>{e.storeAddress(t.addr),e.store((0,WE.storeStorageInfo)(t.storageStats)),e.store((0,HE.storeAccountStorage)(t.storage))}}Vd.storeAccount=jV});var s3=V(Hd=>{\\\"use strict\\\";b();Object.defineProperty(Hd,\\\"__esModule\\\",{value:!0});Hd.storeAccountStatus=Hd.loadAccountStatus=void 0;function zV(t){let e=t.loadUint(2);if(e===0)return\\\"uninitialized\\\";if(e===1)return\\\"frozen\\\";if(e===2)return\\\"active\\\";if(e===3)return\\\"non-existing\\\";throw Error(\\\"Invalid data\\\")}Hd.loadAccountStatus=zV;function DV(t){return e=>{if(t===\\\"uninitialized\\\")e.storeUint(0,2);else if(t===\\\"frozen\\\")e.storeUint(1,2);else if(t===\\\"active\\\")e.storeUint(2,2);else if(t===\\\"non-existing\\\")e.storeUint(3,2);else throw Error(\\\"Invalid data\\\");return e}}Hd.storeAccountStatus=DV});var w1=V(Wd=>{\\\"use strict\\\";b();Object.defineProperty(Wd,\\\"__esModule\\\",{value:!0});Wd.storeAccountStatusChange=Wd.loadAccountStatusChange=void 0;function LV(t){return t.loadBit()?t.loadBit()?\\\"deleted\\\":\\\"frozen\\\":\\\"unchanged\\\"}Wd.loadAccountStatusChange=LV;function qV(t){return e=>{if(t==\\\"unchanged\\\")e.storeBit(0);else if(t===\\\"frozen\\\")e.storeBit(1),e.storeBit(0);else if(t===\\\"deleted\\\")e.storeBit(1),e.storeBit(1);else throw Error(\\\"Invalid account status change\\\")}}Wd.storeAccountStatusChange=qV});var l3=V(Fd=>{\\\"use strict\\\";b();Object.defineProperty(Fd,\\\"__esModule\\\",{value:!0});Fd.storeCommonMessageInfoRelaxed=Fd.loadCommonMessageInfoRelaxed=void 0;var FE=Qa();function VV(t){if(!t.loadBit()){let a=t.loadBit(),o=t.loadBit(),s=t.loadBit(),l=t.loadMaybeAddress(),c=t.loadAddress(),u=(0,FE.loadCurrencyCollection)(t),d=t.loadCoins(),h=t.loadCoins(),g=t.loadUintBig(64),y=t.loadUint(32);return{type:\\\"internal\\\",ihrDisabled:a,bounce:o,bounced:s,src:l,dest:c,value:u,ihrFee:d,forwardFee:h,createdLt:g,createdAt:y}}if(!t.loadBit())throw Error(\\\"External In message is not possible for CommonMessageInfoRelaxed\\\");let e=t.loadMaybeAddress(),n=t.loadMaybeExternalAddress(),r=t.loadUintBig(64),i=t.loadUint(32);return{type:\\\"external-out\\\",src:e,dest:n,createdLt:r,createdAt:i}}Fd.loadCommonMessageInfoRelaxed=VV;function HV(t){return e=>{if(t.type===\\\"internal\\\")e.storeBit(0),e.storeBit(t.ihrDisabled),e.storeBit(t.bounce),e.storeBit(t.bounced),e.storeAddress(t.src),e.storeAddress(t.dest),e.store((0,FE.storeCurrencyCollection)(t.value)),e.storeCoins(t.ihrFee),e.storeCoins(t.forwardFee),e.storeUint(t.createdLt,64),e.storeUint(t.createdAt,32);else if(t.type===\\\"external-out\\\")e.storeBit(1),e.storeBit(1),e.storeAddress(t.src),e.storeAddress(t.dest),e.storeUint(t.createdLt,64),e.storeUint(t.createdAt,32);else throw new Error(\\\"Unknown CommonMessageInfo type\\\")}}Fd.storeCommonMessageInfoRelaxed=HV});var u3=V($d=>{\\\"use strict\\\";b();Object.defineProperty($d,\\\"__esModule\\\",{value:!0});$d.storeMessageRelaxed=$d.loadMessageRelaxed=void 0;var WV=tr(),$E=l3(),c3=Id();function FV(t){let e=(0,$E.loadCommonMessageInfoRelaxed)(t),n=null;t.loadBit()&&(t.loadBit()?n=(0,c3.loadStateInit)(t.loadRef().beginParse()):n=(0,c3.loadStateInit)(t));let r=t.loadBit()?t.loadRef():t.asCell();return{info:e,init:n,body:r}}$d.loadMessageRelaxed=FV;function $V(t,e){return n=>{if(n.store((0,$E.storeCommonMessageInfoRelaxed)(t.info)),t.init){n.storeBit(!0);let i=(0,WV.beginCell)().store((0,c3.storeStateInit)(t.init)),a=!1;e&&e.forceRef?a=!0:n.availableBits-2>=i.bits?a=!1:a=!0,a?(n.storeBit(!0),n.storeRef(i)):(n.storeBit(!1),n.storeBuilder(i))}else n.storeBit(!1);let r=!1;e&&e.forceRef?r=!0:n.availableBits-1>=t.body.bits.length&&n.refs+t.body.refs.length<=4&&!t.body.isExotic?r=!1:r=!0,r?(n.storeBit(!0),n.storeRef(t.body)):(n.storeBit(!1),n.storeBuilder(t.body.asBuilder()))}}$d.storeMessageRelaxed=$V});var d3=V(Kd=>{\\\"use strict\\\";b();Object.defineProperty(Kd,\\\"__esModule\\\",{value:!0});Kd.storeLibRef=Kd.loadLibRef=void 0;function KV(t){return t.loadUint(1)===0?{type:\\\"hash\\\",libHash:t.loadBuffer(32)}:{type:\\\"ref\\\",library:t.loadRef()}}Kd.loadLibRef=KV;function ZV(t){return e=>{t.type===\\\"hash\\\"?(e.storeUint(0,1),e.storeBuffer(t.libHash)):(e.storeUint(1,1),e.storeRef(t.library))}}Kd.storeLibRef=ZV});var nA=V(Xa=>{\\\"use strict\\\";b();Object.defineProperty(Xa,\\\"__esModule\\\",{value:!0});Xa.loadOutList=Xa.storeOutList=Xa.loadOutAction=Xa.storeOutAction=void 0;var KE=u3(),f3=tr(),ZE=Qa(),YE=d3();function GE(t){switch(t.type){case\\\"sendMsg\\\":return YV(t);case\\\"setCode\\\":return GV(t);case\\\"reserve\\\":return QV(t);case\\\"changeLibrary\\\":return XV(t);default:throw new Error(`Unknown action type ${t.type}`)}}Xa.storeOutAction=GE;var QE=247711853;function YV(t){return e=>{e.storeUint(QE,32).storeUint(t.mode,8).storeRef((0,f3.beginCell)().store((0,KE.storeMessageRelaxed)(t.outMsg)).endCell())}}var XE=2907562126;function GV(t){return e=>{e.storeUint(XE,32).storeRef(t.newCode)}}var JE=921090057;function QV(t){return e=>{e.storeUint(JE,32).storeUint(t.mode,8).store((0,ZE.storeCurrencyCollection)(t.currency))}}var eA=653925844;function XV(t){return e=>{e.storeUint(eA,32).storeUint(t.mode,7).store((0,YE.storeLibRef)(t.libRef))}}function tA(t){let e=t.loadUint(32);if(e===QE){let n=t.loadUint(8),r=(0,KE.loadMessageRelaxed)(t.loadRef().beginParse());return{type:\\\"sendMsg\\\",mode:n,outMsg:r}}if(e===XE)return{type:\\\"setCode\\\",newCode:t.loadRef()};if(e===JE){let n=t.loadUint(8),r=(0,ZE.loadCurrencyCollection)(t);return{type:\\\"reserve\\\",mode:n,currency:r}}if(e===eA){let n=t.loadUint(7),r=(0,YE.loadLibRef)(t);return{type:\\\"changeLibrary\\\",mode:n,libRef:r}}throw new Error(`Unknown out action tag 0x${e.toString(16)}`)}Xa.loadOutAction=tA;function JV(t){let e=t.reduce((n,r)=>(0,f3.beginCell)().storeRef(n).store(GE(r)).endCell(),(0,f3.beginCell)().endCell());return n=>{n.storeSlice(e.beginParse())}}Xa.storeOutList=JV;function eH(t){let e=[];for(;t.remainingRefs;){let n=t.loadRef();e.push(tA(t)),t=n.beginParse()}return e.reverse()}Xa.loadOutList=eH});var h3=V(Zd=>{\\\"use strict\\\";b();Object.defineProperty(Zd,\\\"__esModule\\\",{value:!0});Zd.storeCommonMessageInfo=Zd.loadCommonMessageInfo=void 0;var rA=Qa();function tH(t){if(!t.loadBit()){let a=t.loadBit(),o=t.loadBit(),s=t.loadBit(),l=t.loadAddress(),c=t.loadAddress(),u=(0,rA.loadCurrencyCollection)(t),d=t.loadCoins(),h=t.loadCoins(),g=t.loadUintBig(64),y=t.loadUint(32);return{type:\\\"internal\\\",ihrDisabled:a,bounce:o,bounced:s,src:l,dest:c,value:u,ihrFee:d,forwardFee:h,createdLt:g,createdAt:y}}if(!t.loadBit()){let a=t.loadMaybeExternalAddress(),o=t.loadAddress(),s=t.loadCoins();return{type:\\\"external-in\\\",src:a,dest:o,importFee:s}}let e=t.loadAddress(),n=t.loadMaybeExternalAddress(),r=t.loadUintBig(64),i=t.loadUint(32);return{type:\\\"external-out\\\",src:e,dest:n,createdLt:r,createdAt:i}}Zd.loadCommonMessageInfo=tH;function nH(t){return e=>{if(t.type===\\\"internal\\\")e.storeBit(0),e.storeBit(t.ihrDisabled),e.storeBit(t.bounce),e.storeBit(t.bounced),e.storeAddress(t.src),e.storeAddress(t.dest),e.store((0,rA.storeCurrencyCollection)(t.value)),e.storeCoins(t.ihrFee),e.storeCoins(t.forwardFee),e.storeUint(t.createdLt,64),e.storeUint(t.createdAt,32);else if(t.type===\\\"external-in\\\")e.storeBit(1),e.storeBit(0),e.storeAddress(t.src),e.storeAddress(t.dest),e.storeCoins(t.importFee);else if(t.type===\\\"external-out\\\")e.storeBit(1),e.storeBit(1),e.storeAddress(t.src),e.storeAddress(t.dest),e.storeUint(t.createdLt,64),e.storeUint(t.createdAt,32);else throw new Error(\\\"Unknown CommonMessageInfo type\\\")}}Zd.storeCommonMessageInfo=nH});var g3=V(Yd=>{\\\"use strict\\\";b();Object.defineProperty(Yd,\\\"__esModule\\\",{value:!0});Yd.storeComputeSkipReason=Yd.loadComputeSkipReason=void 0;function rH(t){let e=t.loadUint(2);if(e===0)return\\\"no-state\\\";if(e===1)return\\\"bad-state\\\";if(e===2)return\\\"no-gas\\\";throw new Error(`Unknown ComputeSkipReason: ${e}`)}Yd.loadComputeSkipReason=rH;function iH(t){return e=>{if(t===\\\"no-state\\\")e.storeUint(0,2);else if(t===\\\"bad-state\\\")e.storeUint(1,2);else if(t===\\\"no-gas\\\")e.storeUint(2,2);else throw new Error(`Unknown ComputeSkipReason: ${t}`)}}Yd.storeComputeSkipReason=iH});var p3=V(Gd=>{\\\"use strict\\\";b();Object.defineProperty(Gd,\\\"__esModule\\\",{value:!0});Gd.storeDepthBalanceInfo=Gd.loadDepthBalanceInfo=void 0;var iA=Qa();function aH(t){return{splitDepth:t.loadUint(5),balance:(0,iA.loadCurrencyCollection)(t)}}Gd.loadDepthBalanceInfo=aH;function oH(t){return e=>{e.storeUint(t.splitDepth,5),e.store((0,iA.storeCurrencyCollection)(t.balance))}}Gd.storeDepthBalanceInfo=oH});var m3=V(Qd=>{\\\"use strict\\\";b();Object.defineProperty(Qd,\\\"__esModule\\\",{value:!0});Qd.storeHashUpdate=Qd.loadHashUpdate=void 0;function sH(t){if(t.loadUint(8)!==114)throw Error(\\\"Invalid data\\\");let e=t.loadBuffer(32),n=t.loadBuffer(32);return{oldHash:e,newHash:n}}Qd.loadHashUpdate=sH;function lH(t){return e=>{e.storeUint(114,8),e.storeBuffer(t.oldHash),e.storeBuffer(t.newHash)}}Qd.storeHashUpdate=lH});var b3=V(x1=>{\\\"use strict\\\";b();Object.defineProperty(x1,\\\"__esModule\\\",{value:!0});x1.loadMasterchainStateExtra=void 0;var y3=Ko(),cH=Qa();function uH(t){if(t.loadUint(16)!==52262)throw Error(\\\"Invalid data\\\");t.loadBit()&&t.loadRef();let e=t.loadUintBig(256),n=y3.Dictionary.load(y3.Dictionary.Keys.Int(32),y3.Dictionary.Values.Cell(),t),r=(0,cH.loadCurrencyCollection)(t);return{config:n,configAddress:e,globalBalance:r}}x1.loadMasterchainStateExtra=uH});var w3=V(hl=>{\\\"use strict\\\";b();Object.defineProperty(hl,\\\"__esModule\\\",{value:!0});hl.MessageValue=hl.storeMessage=hl.loadMessage=void 0;var aA=tr(),oA=h3(),v3=Id();function sA(t){let e=(0,oA.loadCommonMessageInfo)(t),n=null;t.loadBit()&&(t.loadBit()?n=(0,v3.loadStateInit)(t.loadRef().beginParse()):n=(0,v3.loadStateInit)(t));let r=t.loadBit()?t.loadRef():t.asCell();return{info:e,init:n,body:r}}hl.loadMessage=sA;function lA(t,e){return n=>{if(n.store((0,oA.storeCommonMessageInfo)(t.info)),t.init){n.storeBit(!0);let i=(0,aA.beginCell)().store((0,v3.storeStateInit)(t.init)),a=!1;e&&e.forceRef?a=!0:a=n.availableBits-2<i.bits+t.body.bits.length,a?(n.storeBit(!0),n.storeRef(i)):(n.storeBit(!1),n.storeBuilder(i))}else n.storeBit(!1);let r=!1;e&&e.forceRef?r=!0:r=n.availableBits-1<t.body.bits.length||n.refs+t.body.refs.length>4,r?(n.storeBit(!0),n.storeRef(t.body)):(n.storeBit(!1),n.storeBuilder(t.body.asBuilder()))}}hl.storeMessage=lA;hl.MessageValue={serialize(t,e){e.storeRef((0,aA.beginCell)().store(lA(t)))},parse(t){return sA(t.loadRef().beginParse())}}});var uA=V(_1=>{\\\"use strict\\\";b();Object.defineProperty(_1,\\\"__esModule\\\",{value:!0});_1.SendMode=void 0;var cA;(function(t){t[t.CARRY_ALL_REMAINING_BALANCE=128]=\\\"CARRY_ALL_REMAINING_BALANCE\\\",t[t.CARRY_ALL_REMAINING_INCOMING_VALUE=64]=\\\"CARRY_ALL_REMAINING_INCOMING_VALUE\\\",t[t.DESTROY_ACCOUNT_IF_ZERO=32]=\\\"DESTROY_ACCOUNT_IF_ZERO\\\",t[t.PAY_GAS_SEPARATELY=1]=\\\"PAY_GAS_SEPARATELY\\\",t[t.IGNORE_ERRORS=2]=\\\"IGNORE_ERRORS\\\",t[t.NONE=0]=\\\"NONE\\\"})(cA||(_1.SendMode=cA={}))});var fA=V(C1=>{\\\"use strict\\\";b();Object.defineProperty(C1,\\\"__esModule\\\",{value:!0});C1.ReserveMode=void 0;var dA;(function(t){t[t.THIS_AMOUNT=0]=\\\"THIS_AMOUNT\\\",t[t.LEAVE_THIS_AMOUNT=1]=\\\"LEAVE_THIS_AMOUNT\\\",t[t.AT_MOST_THIS_AMOUNT=2]=\\\"AT_MOST_THIS_AMOUNT\\\",t[t.LEAVE_MAX_THIS_AMOUNT=3]=\\\"LEAVE_MAX_THIS_AMOUNT\\\",t[t.BEFORE_BALANCE_PLUS_THIS_AMOUNT=4]=\\\"BEFORE_BALANCE_PLUS_THIS_AMOUNT\\\",t[t.LEAVE_BBALANCE_PLUS_THIS_AMOUNT=5]=\\\"LEAVE_BBALANCE_PLUS_THIS_AMOUNT\\\",t[t.BEFORE_BALANCE_MINUS_THIS_AMOUNT=12]=\\\"BEFORE_BALANCE_MINUS_THIS_AMOUNT\\\",t[t.LEAVE_BEFORE_BALANCE_MINUS_THIS_AMOUNT=13]=\\\"LEAVE_BEFORE_BALANCE_MINUS_THIS_AMOUNT\\\"})(dA||(C1.ReserveMode=dA={}))});var x3=V(Xd=>{\\\"use strict\\\";b();Object.defineProperty(Xd,\\\"__esModule\\\",{value:!0});Xd.storeShardAccount=Xd.loadShardAccount=void 0;var hA=tr(),gA=o3();function dH(t){let e=t.loadRef(),n;if(!e.isExotic){let r=e.beginParse();r.loadBit()&&(n=(0,gA.loadAccount)(r))}return{account:n,lastTransactionHash:t.loadUintBig(256),lastTransactionLt:t.loadUintBig(64)}}Xd.loadShardAccount=dH;function fH(t){return e=>{t.account?e.storeRef((0,hA.beginCell)().storeBit(!0).store((0,gA.storeAccount)(t.account))):e.storeRef((0,hA.beginCell)().storeBit(!1)),e.storeUint(t.lastTransactionHash,256),e.storeUint(t.lastTransactionLt,64)}}Xd.storeShardAccount=fH});var _3=V(Zo=>{\\\"use strict\\\";b();Object.defineProperty(Zo,\\\"__esModule\\\",{value:!0});Zo.storeShardAccounts=Zo.loadShardAccounts=Zo.ShardAccountRefValue=void 0;var pA=Ko(),mA=p3(),yA=x3();Zo.ShardAccountRefValue={parse:t=>{let e=(0,mA.loadDepthBalanceInfo)(t),n=(0,yA.loadShardAccount)(t);return{depthBalanceInfo:e,shardAccount:n}},serialize(t,e){e.store((0,mA.storeDepthBalanceInfo)(t.depthBalanceInfo)),e.store((0,yA.storeShardAccount)(t.shardAccount))}};function hH(t){return pA.Dictionary.load(pA.Dictionary.Keys.BigUint(256),Zo.ShardAccountRefValue,t)}Zo.loadShardAccounts=hH;function gH(t){return e=>{e.storeDict(t)}}Zo.storeShardAccounts=gH});var C3=V(Jd=>{\\\"use strict\\\";b();Object.defineProperty(Jd,\\\"__esModule\\\",{value:!0});Jd.storeShardIdent=Jd.loadShardIdent=void 0;function pH(t){if(t.loadUint(2)!==0)throw Error(\\\"Invalid data\\\");return{shardPrefixBits:t.loadUint(6),workchainId:t.loadInt(32),shardPrefix:t.loadUintBig(64)}}Jd.loadShardIdent=pH;function mH(t){return e=>{e.storeUint(0,2),e.storeUint(t.shardPrefixBits,6),e.storeInt(t.workchainId,32),e.storeUint(t.shardPrefix,64)}}Jd.storeShardIdent=mH});var bA=V(S1=>{\\\"use strict\\\";b();Object.defineProperty(S1,\\\"__esModule\\\",{value:!0});S1.loadShardStateUnsplit=void 0;var yH=b3(),bH=_3(),vH=C3();function wH(t){if(t.loadUint(32)!==2418257890)throw Error(\\\"Invalid data\\\");let e=t.loadInt(32),n=(0,vH.loadShardIdent)(t),r=t.loadUint(32),i=t.loadUint(32),a=t.loadUint(32),o=t.loadUintBig(64),s=t.loadUint(32);t.loadRef();let l=t.loadBit(),c=t.loadRef(),u;c.isExotic||(u=(0,bH.loadShardAccounts)(c.beginParse())),t.loadRef();let d=t.loadBit(),h=null;if(d){let g=t.loadRef();g.isExotic||(h=(0,yH.loadMasterchainStateExtra)(g.beginParse()))}return{globalId:e,shardId:n,seqno:r,vertSeqNo:i,genUtime:a,genLt:o,minRefMcSeqno:s,beforeSplit:l,accounts:u,extras:h}}S1.loadShardStateUnsplit=wH});var S3=V(ef=>{\\\"use strict\\\";b();Object.defineProperty(ef,\\\"__esModule\\\",{value:!0});ef.signatureDomainEmptyTag=ef.signatureDomainL2Tag=void 0;ef.signatureDomainL2Tag=1907576545;ef.signatureDomainEmptyTag=236803867});var T3=V(tf=>{\\\"use strict\\\";b();Object.defineProperty(tf,\\\"__esModule\\\",{value:!0});tf.storeSplitMergeInfo=tf.loadSplitMergeInfo=void 0;function xH(t){let e=t.loadUint(6),n=t.loadUint(6),r=t.loadUintBig(256),i=t.loadUintBig(256);return{currentShardPrefixLength:e,accountSplitDepth:n,thisAddress:r,siblingAddress:i}}tf.loadSplitMergeInfo=xH;function _H(t){return e=>{e.storeUint(t.currentShardPrefixLength,6),e.storeUint(t.accountSplitDepth,6),e.storeUint(t.thisAddress,256),e.storeUint(t.siblingAddress,256)}}tf.storeSplitMergeInfo=_H});var E3=V(nf=>{\\\"use strict\\\";b();Object.defineProperty(nf,\\\"__esModule\\\",{value:!0});nf.storeTransactionActionPhase=nf.loadTransactionActionPhase=void 0;var vA=w1(),wA=S0();function CH(t){let e=t.loadBit(),n=t.loadBit(),r=t.loadBit(),i=(0,vA.loadAccountStatusChange)(t),a=t.loadBit()?t.loadCoins():void 0,o=t.loadBit()?t.loadCoins():void 0,s=t.loadInt(32),l=t.loadBit()?t.loadInt(32):void 0,c=t.loadUint(16),u=t.loadUint(16),d=t.loadUint(16),h=t.loadUint(16),g=t.loadUintBig(256),y=(0,wA.loadStorageUsed)(t);return{success:e,valid:n,noFunds:r,statusChange:i,totalFwdFees:a,totalActionFees:o,resultCode:s,resultArg:l,totalActions:c,specActions:u,skippedActions:d,messagesCreated:h,actionListHash:g,totalMessageSize:y}}nf.loadTransactionActionPhase=CH;function SH(t){return e=>{e.storeBit(t.success),e.storeBit(t.valid),e.storeBit(t.noFunds),e.store((0,vA.storeAccountStatusChange)(t.statusChange)),e.storeMaybeCoins(t.totalFwdFees),e.storeMaybeCoins(t.totalActionFees),e.storeInt(t.resultCode,32),e.storeMaybeInt(t.resultArg,32),e.storeUint(t.totalActions,16),e.storeUint(t.specActions,16),e.storeUint(t.skippedActions,16),e.storeUint(t.messagesCreated,16),e.storeUint(t.actionListHash,256),e.store((0,wA.storeStorageUsed)(t.totalMessageSize))}}nf.storeTransactionActionPhase=SH});var A3=V(rf=>{\\\"use strict\\\";b();Object.defineProperty(rf,\\\"__esModule\\\",{value:!0});rf.storeTransactionBouncePhase=rf.loadTransactionBouncePhase=void 0;var T1=S0();function TH(t){if(t.loadBit()){let e=(0,T1.loadStorageUsed)(t),n=t.loadCoins(),r=t.loadCoins();return{type:\\\"ok\\\",messageSize:e,messageFees:n,forwardFees:r}}if(t.loadBit()){let e=(0,T1.loadStorageUsed)(t),n=t.loadCoins();return{type:\\\"no-funds\\\",messageSize:e,requiredForwardFees:n}}return{type:\\\"negative-funds\\\"}}rf.loadTransactionBouncePhase=TH;function EH(t){return e=>{if(t.type===\\\"ok\\\")e.storeBit(!0),e.store((0,T1.storeStorageUsed)(t.messageSize)),e.storeCoins(t.messageFees),e.storeCoins(t.forwardFees);else if(t.type===\\\"negative-funds\\\")e.storeBit(!1),e.storeBit(!1);else if(t.type===\\\"no-funds\\\")e.storeBit(!1),e.storeBit(!0),e.store((0,T1.storeStorageUsed)(t.messageSize)),e.storeCoins(t.requiredForwardFees);else throw new Error(\\\"Invalid TransactionBouncePhase type\\\")}}rf.storeTransactionBouncePhase=EH});var k3=V(af=>{\\\"use strict\\\";b();Object.defineProperty(af,\\\"__esModule\\\",{value:!0});af.storeTransactionComputePhase=af.loadTransactionComputePhase=void 0;var AH=tr(),xA=g3();function kH(t){if(!t.loadBit())return{type:\\\"skipped\\\",reason:(0,xA.loadComputeSkipReason)(t)};let e=t.loadBit(),n=t.loadBit(),r=t.loadBit(),i=t.loadCoins(),a=t.loadRef().beginParse(),o=a.loadVarUintBig(3),s=a.loadVarUintBig(3),l=a.loadBit()?a.loadVarUintBig(2):void 0,c=a.loadUint(8),u=a.loadInt(32),d=a.loadBit()?a.loadInt(32):void 0,h=a.loadUint(32),g=a.loadUintBig(256),y=a.loadUintBig(256);return{type:\\\"vm\\\",success:e,messageStateUsed:n,accountActivated:r,gasFees:i,gasUsed:o,gasLimit:s,gasCredit:l,mode:c,exitCode:u,exitArg:d,vmSteps:h,vmInitStateHash:g,vmFinalStateHash:y}}af.loadTransactionComputePhase=kH;function BH(t){return e=>{if(t.type===\\\"skipped\\\"){e.storeBit(0),e.store((0,xA.storeComputeSkipReason)(t.reason));return}e.storeBit(1),e.storeBit(t.success),e.storeBit(t.messageStateUsed),e.storeBit(t.accountActivated),e.storeCoins(t.gasFees),e.storeRef((0,AH.beginCell)().storeVarUint(t.gasUsed,3).storeVarUint(t.gasLimit,3).store(n=>t.gasCredit!==void 0&&t.gasCredit!==null?n.storeBit(1).storeVarUint(t.gasCredit,2):n.storeBit(0)).storeUint(t.mode,8).storeInt(t.exitCode,32).store(n=>t.exitArg!==void 0&&t.exitArg!==null?n.storeBit(1).storeInt(t.exitArg,32):n.storeBit(0)).storeUint(t.vmSteps,32).storeUint(t.vmInitStateHash,256).storeUint(t.vmFinalStateHash,256).endCell())}}af.storeTransactionComputePhase=BH});var B3=V(of=>{\\\"use strict\\\";b();Object.defineProperty(of,\\\"__esModule\\\",{value:!0});of.storeTransactionCreditPhase=of.loadTransactionCreditPhase=void 0;var _A=Qa();function MH(t){let e=t.loadBit()?t.loadCoins():void 0,n=(0,_A.loadCurrencyCollection)(t);return{dueFeesColelcted:e,credit:n}}of.loadTransactionCreditPhase=MH;function RH(t){return e=>{t.dueFeesColelcted===null||t.dueFeesColelcted===void 0?e.storeBit(!1):(e.storeBit(!0),e.storeCoins(t.dueFeesColelcted)),e.store((0,_A.storeCurrencyCollection)(t.credit))}}of.storeTransactionCreditPhase=RH});var M3=V(sf=>{\\\"use strict\\\";b();Object.defineProperty(sf,\\\"__esModule\\\",{value:!0});sf.storeTransactionsStoragePhase=sf.loadTransactionStoragePhase=void 0;var CA=w1();function OH(t){let e=t.loadCoins(),n;t.loadBit()&&(n=t.loadCoins());let r=(0,CA.loadAccountStatusChange)(t);return{storageFeesCollected:e,storageFeesDue:n,statusChange:r}}sf.loadTransactionStoragePhase=OH;function IH(t){return e=>{e.storeCoins(t.storageFeesCollected),t.storageFeesDue===null||t.storageFeesDue===void 0?e.storeBit(!1):(e.storeBit(!0),e.storeCoins(t.storageFeesDue)),e.store((0,CA.storeAccountStatusChange)(t.statusChange))}}sf.storeTransactionsStoragePhase=IH});var O3=V(uf=>{\\\"use strict\\\";b();Object.defineProperty(uf,\\\"__esModule\\\",{value:!0});uf.storeTransactionDescription=uf.loadTransactionDescription=void 0;var R3=tr(),E1=T3(),SA=I3(),lf=E3(),TA=A3(),cf=k3(),EA=B3(),gl=M3();function UH(t){let e=t.loadUint(4);if(e===0){let n=t.loadBit(),r;t.loadBit()&&(r=(0,gl.loadTransactionStoragePhase)(t));let i;t.loadBit()&&(i=(0,EA.loadTransactionCreditPhase)(t));let a=(0,cf.loadTransactionComputePhase)(t),o;t.loadBit()&&(o=(0,lf.loadTransactionActionPhase)(t.loadRef().beginParse()));let s=t.loadBit(),l;t.loadBit()&&(l=(0,TA.loadTransactionBouncePhase)(t));let c=t.loadBit();return{type:\\\"generic\\\",creditFirst:n,storagePhase:r,creditPhase:i,computePhase:a,actionPhase:o,bouncePhase:l,aborted:s,destroyed:c}}if(e===1)return{type:\\\"storage\\\",storagePhase:(0,gl.loadTransactionStoragePhase)(t)};if(e===2||e===3){let n=e===3,r=(0,gl.loadTransactionStoragePhase)(t),i=(0,cf.loadTransactionComputePhase)(t),a;t.loadBit()&&(a=(0,lf.loadTransactionActionPhase)(t.loadRef().beginParse()));let o=t.loadBit(),s=t.loadBit();return{type:\\\"tick-tock\\\",isTock:n,storagePhase:r,computePhase:i,actionPhase:a,aborted:o,destroyed:s}}if(e===4){let n=(0,E1.loadSplitMergeInfo)(t),r;t.loadBit()&&(r=(0,gl.loadTransactionStoragePhase)(t));let i=(0,cf.loadTransactionComputePhase)(t),a;t.loadBit()&&(a=(0,lf.loadTransactionActionPhase)(t.loadRef().beginParse()));let o=t.loadBit(),s=t.loadBit();return{type:\\\"split-prepare\\\",splitInfo:n,storagePhase:r,computePhase:i,actionPhase:a,aborted:o,destroyed:s}}if(e===5){let n=(0,E1.loadSplitMergeInfo)(t),r=(0,SA.loadTransaction)(t.loadRef().beginParse()),i=t.loadBit();return{type:\\\"split-install\\\",splitInfo:n,prepareTransaction:r,installed:i}}throw Error(`Unsupported transaction description type ${e}`)}uf.loadTransactionDescription=UH;function NH(t){return e=>{if(t.type===\\\"generic\\\")e.storeUint(0,4),e.storeBit(t.creditFirst),t.storagePhase?(e.storeBit(!0),e.store((0,gl.storeTransactionsStoragePhase)(t.storagePhase))):e.storeBit(!1),t.creditPhase?(e.storeBit(!0),e.store((0,EA.storeTransactionCreditPhase)(t.creditPhase))):e.storeBit(!1),e.store((0,cf.storeTransactionComputePhase)(t.computePhase)),t.actionPhase?(e.storeBit(!0),e.storeRef((0,R3.beginCell)().store((0,lf.storeTransactionActionPhase)(t.actionPhase)))):e.storeBit(!1),e.storeBit(t.aborted),t.bouncePhase?(e.storeBit(!0),e.store((0,TA.storeTransactionBouncePhase)(t.bouncePhase))):e.storeBit(!1),e.storeBit(t.destroyed);else if(t.type===\\\"storage\\\")e.storeUint(1,4),e.store((0,gl.storeTransactionsStoragePhase)(t.storagePhase));else if(t.type===\\\"tick-tock\\\")e.storeUint(t.isTock?3:2,4),e.store((0,gl.storeTransactionsStoragePhase)(t.storagePhase)),e.store((0,cf.storeTransactionComputePhase)(t.computePhase)),t.actionPhase?(e.storeBit(!0),e.storeRef((0,R3.beginCell)().store((0,lf.storeTransactionActionPhase)(t.actionPhase)))):e.storeBit(!1),e.storeBit(t.aborted),e.storeBit(t.destroyed);else if(t.type===\\\"split-prepare\\\")e.storeUint(4,4),e.store((0,E1.storeSplitMergeInfo)(t.splitInfo)),t.storagePhase?(e.storeBit(!0),e.store((0,gl.storeTransactionsStoragePhase)(t.storagePhase))):e.storeBit(!1),e.store((0,cf.storeTransactionComputePhase)(t.computePhase)),t.actionPhase?(e.storeBit(!0),e.store((0,lf.storeTransactionActionPhase)(t.actionPhase))):e.storeBit(!1),e.storeBit(t.aborted),e.storeBit(t.destroyed);else if(t.type===\\\"split-install\\\")e.storeUint(5,4),e.store((0,E1.storeSplitMergeInfo)(t.splitInfo)),e.storeRef((0,R3.beginCell)().store((0,SA.storeTransaction)(t.prepareTransaction))),e.storeBit(t.installed);else throw Error(`Unsupported transaction description type ${t.type}`)}}uf.storeTransactionDescription=NH});var I3=V(df=>{\\\"use strict\\\";b();Object.defineProperty(df,\\\"__esModule\\\",{value:!0});df.storeTransaction=df.loadTransaction=void 0;var A1=tr(),PH=Ko(),k1=s3(),AA=Qa(),kA=m3(),U3=w3(),BA=O3();function jH(t){let e=t.asCell();if(t.loadUint(4)!==7)throw Error(\\\"Invalid data\\\");let n=t.loadUintBig(256),r=t.loadUintBig(64),i=t.loadUintBig(256),a=t.loadUintBig(64),o=t.loadUint(32),s=t.loadUint(15),l=(0,k1.loadAccountStatus)(t),c=(0,k1.loadAccountStatus)(t),d=t.loadRef().beginParse(),h=d.loadBit()?(0,U3.loadMessage)(d.loadRef().beginParse()):void 0,g=d.loadDict(PH.Dictionary.Keys.Uint(15),U3.MessageValue);d.endParse();let y=(0,AA.loadCurrencyCollection)(t),E=(0,kA.loadHashUpdate)(t.loadRef().beginParse()),N=(0,BA.loadTransactionDescription)(t.loadRef().beginParse());return{address:n,lt:r,prevTransactionHash:i,prevTransactionLt:a,now:o,outMessagesCount:s,oldStatus:l,endStatus:c,inMessage:h,outMessages:g,totalFees:y,stateUpdate:E,description:N,raw:e,hash:()=>e.hash()}}df.loadTransaction=jH;function zH(t){return e=>{e.storeUint(7,4),e.storeUint(t.address,256),e.storeUint(t.lt,64),e.storeUint(t.prevTransactionHash,256),e.storeUint(t.prevTransactionLt,64),e.storeUint(t.now,32),e.storeUint(t.outMessagesCount,15),e.store((0,k1.storeAccountStatus)(t.oldStatus)),e.store((0,k1.storeAccountStatus)(t.endStatus));let n=(0,A1.beginCell)();t.inMessage?(n.storeBit(!0),n.storeRef((0,A1.beginCell)().store((0,U3.storeMessage)(t.inMessage)))):n.storeBit(!1),n.storeDict(t.outMessages),e.storeRef(n),e.store((0,AA.storeCurrencyCollection)(t.totalFees)),e.storeRef((0,A1.beginCell)().store((0,kA.storeHashUpdate)(t.stateUpdate))),e.storeRef((0,A1.beginCell)().store((0,BA.storeTransactionDescription)(t.description)))}}df.storeTransaction=zH});var ok=V(Y=>{\\\"use strict\\\";b();Object.defineProperty(Y,\\\"__esModule\\\",{value:!0});Y.signatureDomainEmptyTag=Y.loadShardStateUnsplit=Y.storeShardIdent=Y.loadShardIdent=Y.storeShardAccounts=Y.loadShardAccounts=Y.ShardAccountRefValue=Y.storeShardAccount=Y.loadShardAccount=Y.ReserveMode=Y.SendMode=Y.storeMessageRelaxed=Y.loadMessageRelaxed=Y.storeMessage=Y.loadMessage=Y.loadMasterchainStateExtra=Y.storeHashUpdate=Y.loadHashUpdate=Y.storeExtraCurrency=Y.loadMaybeExtraCurrency=Y.loadExtraCurrency=Y.packExtraCurrencyDict=Y.packExtraCurrencyCell=Y.storeDepthBalanceInfo=Y.loadDepthBalanceInfo=Y.storeCurrencyCollection=Y.loadCurrencyCollection=Y.storeComputeSkipReason=Y.loadComputeSkipReason=Y.storeCommonMessageInfoRelaxed=Y.loadCommonMessageInfoRelaxed=Y.storeCommonMessageInfo=Y.loadCommonMessageInfo=Y.storeOutList=Y.loadOutList=Y.storeOutAction=Y.loadOutAction=Y.storeAccountStorage=Y.loadAccountStorage=Y.storeAccountStatusChange=Y.loadAccountStatusChange=Y.storeAccountStatus=Y.loadAccountStatus=Y.storeAccountState=Y.loadAccountState=Y.storeAccount=Y.loadAccount=Y.comment=Y.external=Y.internal=void 0;Y.storeTransactionsStoragePhase=Y.loadTransactionStoragePhase=Y.storeTransactionDescription=Y.loadTransactionDescription=Y.storeTransactionCreditPhase=Y.loadTransactionCreditPhase=Y.storeTransactionComputePhase=Y.loadTransactionComputePhase=Y.storeTransactionBouncePhase=Y.loadTransactionBouncePhase=Y.storeTransactionActionPhase=Y.loadTransactionActionPhase=Y.storeTransaction=Y.loadTransaction=Y.storeTickTock=Y.loadTickTock=Y.storeStorageUsed=Y.loadStorageUsed=Y.storeStorageInfo=Y.loadStorageInfo=Y.storeStateInit=Y.loadStateInit=Y.storeSplitMergeInfo=Y.loadSplitMergeInfo=Y.storeLibRef=Y.loadLibRef=Y.storeSimpleLibrary=Y.loadSimpleLibrary=Y.signatureDomainL2Tag=void 0;var N3=NE();Object.defineProperty(Y,\\\"internal\\\",{enumerable:!0,get:function(){return N3.internal}});Object.defineProperty(Y,\\\"external\\\",{enumerable:!0,get:function(){return N3.external}});Object.defineProperty(Y,\\\"comment\\\",{enumerable:!0,get:function(){return N3.comment}});var MA=o3();Object.defineProperty(Y,\\\"loadAccount\\\",{enumerable:!0,get:function(){return MA.loadAccount}});Object.defineProperty(Y,\\\"storeAccount\\\",{enumerable:!0,get:function(){return MA.storeAccount}});var RA=r3();Object.defineProperty(Y,\\\"loadAccountState\\\",{enumerable:!0,get:function(){return RA.loadAccountState}});Object.defineProperty(Y,\\\"storeAccountState\\\",{enumerable:!0,get:function(){return RA.storeAccountState}});var OA=s3();Object.defineProperty(Y,\\\"loadAccountStatus\\\",{enumerable:!0,get:function(){return OA.loadAccountStatus}});Object.defineProperty(Y,\\\"storeAccountStatus\\\",{enumerable:!0,get:function(){return OA.storeAccountStatus}});var IA=w1();Object.defineProperty(Y,\\\"loadAccountStatusChange\\\",{enumerable:!0,get:function(){return IA.loadAccountStatusChange}});Object.defineProperty(Y,\\\"storeAccountStatusChange\\\",{enumerable:!0,get:function(){return IA.storeAccountStatusChange}});var UA=i3();Object.defineProperty(Y,\\\"loadAccountStorage\\\",{enumerable:!0,get:function(){return UA.loadAccountStorage}});Object.defineProperty(Y,\\\"storeAccountStorage\\\",{enumerable:!0,get:function(){return UA.storeAccountStorage}});var B1=nA();Object.defineProperty(Y,\\\"loadOutAction\\\",{enumerable:!0,get:function(){return B1.loadOutAction}});Object.defineProperty(Y,\\\"storeOutAction\\\",{enumerable:!0,get:function(){return B1.storeOutAction}});Object.defineProperty(Y,\\\"loadOutList\\\",{enumerable:!0,get:function(){return B1.loadOutList}});Object.defineProperty(Y,\\\"storeOutList\\\",{enumerable:!0,get:function(){return B1.storeOutList}});var NA=h3();Object.defineProperty(Y,\\\"loadCommonMessageInfo\\\",{enumerable:!0,get:function(){return NA.loadCommonMessageInfo}});Object.defineProperty(Y,\\\"storeCommonMessageInfo\\\",{enumerable:!0,get:function(){return NA.storeCommonMessageInfo}});var PA=l3();Object.defineProperty(Y,\\\"loadCommonMessageInfoRelaxed\\\",{enumerable:!0,get:function(){return PA.loadCommonMessageInfoRelaxed}});Object.defineProperty(Y,\\\"storeCommonMessageInfoRelaxed\\\",{enumerable:!0,get:function(){return PA.storeCommonMessageInfoRelaxed}});var jA=g3();Object.defineProperty(Y,\\\"loadComputeSkipReason\\\",{enumerable:!0,get:function(){return jA.loadComputeSkipReason}});Object.defineProperty(Y,\\\"storeComputeSkipReason\\\",{enumerable:!0,get:function(){return jA.storeComputeSkipReason}});var zA=Qa();Object.defineProperty(Y,\\\"loadCurrencyCollection\\\",{enumerable:!0,get:function(){return zA.loadCurrencyCollection}});Object.defineProperty(Y,\\\"storeCurrencyCollection\\\",{enumerable:!0,get:function(){return zA.storeCurrencyCollection}});var DA=p3();Object.defineProperty(Y,\\\"loadDepthBalanceInfo\\\",{enumerable:!0,get:function(){return DA.loadDepthBalanceInfo}});Object.defineProperty(Y,\\\"storeDepthBalanceInfo\\\",{enumerable:!0,get:function(){return DA.storeDepthBalanceInfo}});var T0=n3();Object.defineProperty(Y,\\\"packExtraCurrencyCell\\\",{enumerable:!0,get:function(){return T0.packExtraCurrencyCell}});Object.defineProperty(Y,\\\"packExtraCurrencyDict\\\",{enumerable:!0,get:function(){return T0.packExtraCurrencyDict}});Object.defineProperty(Y,\\\"loadExtraCurrency\\\",{enumerable:!0,get:function(){return T0.loadExtraCurrency}});Object.defineProperty(Y,\\\"loadMaybeExtraCurrency\\\",{enumerable:!0,get:function(){return T0.loadMaybeExtraCurrency}});Object.defineProperty(Y,\\\"storeExtraCurrency\\\",{enumerable:!0,get:function(){return T0.storeExtraCurrency}});var LA=m3();Object.defineProperty(Y,\\\"loadHashUpdate\\\",{enumerable:!0,get:function(){return LA.loadHashUpdate}});Object.defineProperty(Y,\\\"storeHashUpdate\\\",{enumerable:!0,get:function(){return LA.storeHashUpdate}});var DH=b3();Object.defineProperty(Y,\\\"loadMasterchainStateExtra\\\",{enumerable:!0,get:function(){return DH.loadMasterchainStateExtra}});var qA=w3();Object.defineProperty(Y,\\\"loadMessage\\\",{enumerable:!0,get:function(){return qA.loadMessage}});Object.defineProperty(Y,\\\"storeMessage\\\",{enumerable:!0,get:function(){return qA.storeMessage}});var VA=u3();Object.defineProperty(Y,\\\"loadMessageRelaxed\\\",{enumerable:!0,get:function(){return VA.loadMessageRelaxed}});Object.defineProperty(Y,\\\"storeMessageRelaxed\\\",{enumerable:!0,get:function(){return VA.storeMessageRelaxed}});var LH=uA();Object.defineProperty(Y,\\\"SendMode\\\",{enumerable:!0,get:function(){return LH.SendMode}});var qH=fA();Object.defineProperty(Y,\\\"ReserveMode\\\",{enumerable:!0,get:function(){return qH.ReserveMode}});var HA=x3();Object.defineProperty(Y,\\\"loadShardAccount\\\",{enumerable:!0,get:function(){return HA.loadShardAccount}});Object.defineProperty(Y,\\\"storeShardAccount\\\",{enumerable:!0,get:function(){return HA.storeShardAccount}});var P3=_3();Object.defineProperty(Y,\\\"ShardAccountRefValue\\\",{enumerable:!0,get:function(){return P3.ShardAccountRefValue}});Object.defineProperty(Y,\\\"loadShardAccounts\\\",{enumerable:!0,get:function(){return P3.loadShardAccounts}});Object.defineProperty(Y,\\\"storeShardAccounts\\\",{enumerable:!0,get:function(){return P3.storeShardAccounts}});var WA=C3();Object.defineProperty(Y,\\\"loadShardIdent\\\",{enumerable:!0,get:function(){return WA.loadShardIdent}});Object.defineProperty(Y,\\\"storeShardIdent\\\",{enumerable:!0,get:function(){return WA.storeShardIdent}});var VH=bA();Object.defineProperty(Y,\\\"loadShardStateUnsplit\\\",{enumerable:!0,get:function(){return VH.loadShardStateUnsplit}});var FA=S3();Object.defineProperty(Y,\\\"signatureDomainEmptyTag\\\",{enumerable:!0,get:function(){return FA.signatureDomainEmptyTag}});Object.defineProperty(Y,\\\"signatureDomainL2Tag\\\",{enumerable:!0,get:function(){return FA.signatureDomainL2Tag}});var $A=$5();Object.defineProperty(Y,\\\"loadSimpleLibrary\\\",{enumerable:!0,get:function(){return $A.loadSimpleLibrary}});Object.defineProperty(Y,\\\"storeSimpleLibrary\\\",{enumerable:!0,get:function(){return $A.storeSimpleLibrary}});var KA=d3();Object.defineProperty(Y,\\\"loadLibRef\\\",{enumerable:!0,get:function(){return KA.loadLibRef}});Object.defineProperty(Y,\\\"storeLibRef\\\",{enumerable:!0,get:function(){return KA.storeLibRef}});var ZA=T3();Object.defineProperty(Y,\\\"loadSplitMergeInfo\\\",{enumerable:!0,get:function(){return ZA.loadSplitMergeInfo}});Object.defineProperty(Y,\\\"storeSplitMergeInfo\\\",{enumerable:!0,get:function(){return ZA.storeSplitMergeInfo}});var YA=Id();Object.defineProperty(Y,\\\"loadStateInit\\\",{enumerable:!0,get:function(){return YA.loadStateInit}});Object.defineProperty(Y,\\\"storeStateInit\\\",{enumerable:!0,get:function(){return YA.storeStateInit}});var GA=a3();Object.defineProperty(Y,\\\"loadStorageInfo\\\",{enumerable:!0,get:function(){return GA.loadStorageInfo}});Object.defineProperty(Y,\\\"storeStorageInfo\\\",{enumerable:!0,get:function(){return GA.storeStorageInfo}});var QA=S0();Object.defineProperty(Y,\\\"loadStorageUsed\\\",{enumerable:!0,get:function(){return QA.loadStorageUsed}});Object.defineProperty(Y,\\\"storeStorageUsed\\\",{enumerable:!0,get:function(){return QA.storeStorageUsed}});var XA=K5();Object.defineProperty(Y,\\\"loadTickTock\\\",{enumerable:!0,get:function(){return XA.loadTickTock}});Object.defineProperty(Y,\\\"storeTickTock\\\",{enumerable:!0,get:function(){return XA.storeTickTock}});var JA=I3();Object.defineProperty(Y,\\\"loadTransaction\\\",{enumerable:!0,get:function(){return JA.loadTransaction}});Object.defineProperty(Y,\\\"storeTransaction\\\",{enumerable:!0,get:function(){return JA.storeTransaction}});var ek=E3();Object.defineProperty(Y,\\\"loadTransactionActionPhase\\\",{enumerable:!0,get:function(){return ek.loadTransactionActionPhase}});Object.defineProperty(Y,\\\"storeTransactionActionPhase\\\",{enumerable:!0,get:function(){return ek.storeTransactionActionPhase}});var tk=A3();Object.defineProperty(Y,\\\"loadTransactionBouncePhase\\\",{enumerable:!0,get:function(){return tk.loadTransactionBouncePhase}});Object.defineProperty(Y,\\\"storeTransactionBouncePhase\\\",{enumerable:!0,get:function(){return tk.storeTransactionBouncePhase}});var nk=k3();Object.defineProperty(Y,\\\"loadTransactionComputePhase\\\",{enumerable:!0,get:function(){return nk.loadTransactionComputePhase}});Object.defineProperty(Y,\\\"storeTransactionComputePhase\\\",{enumerable:!0,get:function(){return nk.storeTransactionComputePhase}});var rk=B3();Object.defineProperty(Y,\\\"loadTransactionCreditPhase\\\",{enumerable:!0,get:function(){return rk.loadTransactionCreditPhase}});Object.defineProperty(Y,\\\"storeTransactionCreditPhase\\\",{enumerable:!0,get:function(){return rk.storeTransactionCreditPhase}});var ik=O3();Object.defineProperty(Y,\\\"loadTransactionDescription\\\",{enumerable:!0,get:function(){return ik.loadTransactionDescription}});Object.defineProperty(Y,\\\"storeTransactionDescription\\\",{enumerable:!0,get:function(){return ik.storeTransactionDescription}});var ak=M3();Object.defineProperty(Y,\\\"loadTransactionStoragePhase\\\",{enumerable:!0,get:function(){return ak.loadTransactionStoragePhase}});Object.defineProperty(Y,\\\"storeTransactionsStoragePhase\\\",{enumerable:!0,get:function(){return ak.storeTransactionsStoragePhase}})});var lk=V(M1=>{\\\"use strict\\\";b();Object.defineProperty(M1,\\\"__esModule\\\",{value:!0});M1.openContract=void 0;var HH=Ho(),sk=el();function WH(t,e){let n,r=null;if(!HH.Address.isAddress(t.address))throw Error(\\\"Invalid address\\\");if(n=t.address,t.init){if(!(t.init.code instanceof sk.Cell))throw Error(\\\"Invalid init.code\\\");if(!(t.init.data instanceof sk.Cell))throw Error(\\\"Invalid init.data\\\");r=t.init}let i=e({address:n,init:r});return new Proxy(t,{get(a,o){let s=a[o];return typeof o==\\\"string\\\"&&(o.startsWith(\\\"get\\\")||o.startsWith(\\\"send\\\")||o.startsWith(\\\"is\\\"))&&typeof s==\\\"function\\\"?(...l)=>s.apply(a,[i,...l]):s}})}M1.openContract=WH});var ck=V(R1=>{\\\"use strict\\\";b();Object.defineProperty(R1,\\\"__esModule\\\",{value:!0});R1.ComputeError=void 0;var j3=class t extends Error{constructor(e,n,r){super(e),this.exitCode=n,this.debugLogs=r&&r.debugLogs?r.debugLogs:null,this.logs=r&&r.logs?r.logs:null,Object.setPrototypeOf(this,t.prototype)}};R1.ComputeError=j3});var uk=V(O1=>{\\\"use strict\\\";b();Object.defineProperty(O1,\\\"__esModule\\\",{value:!0});O1.getMethodId=void 0;var FH=new Int16Array([0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920]);function $H(t){t instanceof globalThis.Buffer||(t=globalThis.Buffer.from(t));let e=0;for(let n=0;n<t.length;n++){let r=t[n];e=(FH[(e>>8^r)&255]^e<<8)&65535}return e}function KH(t){return $H(t)&65535|65536}O1.getMethodId=KH});var fk=V(ff=>{\\\"use strict\\\";b();Object.defineProperty(ff,\\\"__esModule\\\",{value:!0});ff.safeSignVerify=ff.safeSign=void 0;var z3=uc(),ZH=8,YH=64;function dk(t,e){let n=globalThis.Buffer.from(e);if(n.length>YH)throw Error(\\\"Seed can\\t be longer than 64 bytes\\\");if(n.length<ZH)throw Error(\\\"Seed must be at least 8 bytes\\\");return(0,z3.sha256_sync)(globalThis.Buffer.concat([globalThis.Buffer.from([255,255]),n,t.hash()]))}function GH(t,e,n=\\\"ton-safe-sign-magic\\\"){return(0,z3.sign)(dk(t,n),e)}ff.safeSign=GH;function QH(t,e,n,r=\\\"ton-safe-sign-magic\\\"){return(0,z3.signVerify)(dk(t,r),e,n)}ff.safeSignVerify=QH});var pk=V(ia=>{\\\"use strict\\\";b();Object.defineProperty(ia,\\\"__esModule\\\",{value:!0});ia.domainSignVerify=ia.domainSign=ia.domainDataToSign=ia.signatureDomainPrefix=ia.signatureDomainHash=void 0;var I1=uc(),hk=S3();function D3(t){switch(t.type){case\\\"empty\\\":let e=globalThis.Buffer.alloc(4);return e.writeInt32LE(hk.signatureDomainEmptyTag),(0,I1.sha256_sync)(e);case\\\"l2\\\":{let n=globalThis.Buffer.alloc(8);return n.writeInt32LE(hk.signatureDomainL2Tag),n.writeInt32LE(t.globalId,4),(0,I1.sha256_sync)(n)}default:throw new Error(`Unknown SignatureDomain type ${t.type}`)}}ia.signatureDomainHash=D3;var XH=D3({type:\\\"empty\\\"});function gk(t){let e=globalThis.Buffer.isBuffer(t)?t:D3(t);if(e.length!==32)throw new Error(\\\"Invalid signature domain hash length\\\");return e.equals(XH)?null:e}ia.signatureDomainPrefix=gk;function L3(t,e){let n=gk(e);return n?globalThis.Buffer.concat([n,t]):t}ia.domainDataToSign=L3;function JH({data:t,secretKey:e,domain:n={type:\\\"empty\\\"}}){let r=L3(t,n);return(0,I1.sign)(r,e)}ia.domainSign=JH;function eW({data:t,signature:e,publicKey:n,domain:r={type:\\\"empty\\\"}}){let i=L3(t,r);return(0,I1.signVerify)(i,e,n)}ia.domainSignVerify=eW});var sn=V(Te=>{\\\"use strict\\\";b();var tW=Te&&Te.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),nW=Te&&Te.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&tW(e,t,n)};Object.defineProperty(Te,\\\"__esModule\\\",{value:!0});Te.domainDataToSign=Te.domainSignVerify=Te.domainSign=Te.signatureDomainPrefix=Te.signatureDomainHash=Te.safeSignVerify=Te.safeSign=Te.getMethodId=Te.base32Encode=Te.base32Decode=Te.crc32c=Te.crc16=Te.fromNano=Te.toNano=Te.ComputeError=Te.openContract=Te.TupleBuilder=Te.TupleReader=Te.serializeTupleItem=Te.parseTupleItem=Te.serializeTuple=Te.parseTuple=Te.generateMerkleUpdate=Te.generateMerkleProofDirect=Te.generateMerkleProof=Te.exoticPruned=Te.exoticMerkleUpdate=Te.convertToMerkleProof=Te.exoticMerkleProof=Te.Dictionary=Te.Cell=Te.CellType=Te.Slice=Te.beginCell=Te.Builder=Te.BitBuilder=Te.BitReader=Te.BitString=Te.contractAddress=Te.ADNLAddress=Te.ExternalAddress=Te.address=Te.Address=void 0;var mk=Ho();Object.defineProperty(Te,\\\"Address\\\",{enumerable:!0,get:function(){return mk.Address}});Object.defineProperty(Te,\\\"address\\\",{enumerable:!0,get:function(){return mk.address}});var rW=Cm();Object.defineProperty(Te,\\\"ExternalAddress\\\",{enumerable:!0,get:function(){return rW.ExternalAddress}});var iW=K7();Object.defineProperty(Te,\\\"ADNLAddress\\\",{enumerable:!0,get:function(){return iW.ADNLAddress}});var aW=AE();Object.defineProperty(Te,\\\"contractAddress\\\",{enumerable:!0,get:function(){return aW.contractAddress}});var oW=Wo();Object.defineProperty(Te,\\\"BitString\\\",{enumerable:!0,get:function(){return oW.BitString}});var sW=Fo();Object.defineProperty(Te,\\\"BitReader\\\",{enumerable:!0,get:function(){return sW.BitReader}});var lW=m0();Object.defineProperty(Te,\\\"BitBuilder\\\",{enumerable:!0,get:function(){return lW.BitBuilder}});var yk=tr();Object.defineProperty(Te,\\\"Builder\\\",{enumerable:!0,get:function(){return yk.Builder}});Object.defineProperty(Te,\\\"beginCell\\\",{enumerable:!0,get:function(){return yk.beginCell}});var cW=jm();Object.defineProperty(Te,\\\"Slice\\\",{enumerable:!0,get:function(){return cW.Slice}});var uW=wd();Object.defineProperty(Te,\\\"CellType\\\",{enumerable:!0,get:function(){return uW.CellType}});var dW=el();Object.defineProperty(Te,\\\"Cell\\\",{enumerable:!0,get:function(){return dW.Cell}});var fW=Ko();Object.defineProperty(Te,\\\"Dictionary\\\",{enumerable:!0,get:function(){return fW.Dictionary}});var bk=b0();Object.defineProperty(Te,\\\"exoticMerkleProof\\\",{enumerable:!0,get:function(){return bk.exoticMerkleProof}});Object.defineProperty(Te,\\\"convertToMerkleProof\\\",{enumerable:!0,get:function(){return bk.convertToMerkleProof}});var hW=Lm();Object.defineProperty(Te,\\\"exoticMerkleUpdate\\\",{enumerable:!0,get:function(){return hW.exoticMerkleUpdate}});var gW=Wm();Object.defineProperty(Te,\\\"exoticPruned\\\",{enumerable:!0,get:function(){return gW.exoticPruned}});var vk=Mm();Object.defineProperty(Te,\\\"generateMerkleProof\\\",{enumerable:!0,get:function(){return vk.generateMerkleProof}});Object.defineProperty(Te,\\\"generateMerkleProofDirect\\\",{enumerable:!0,get:function(){return vk.generateMerkleProofDirect}});var pW=y5();Object.defineProperty(Te,\\\"generateMerkleUpdate\\\",{enumerable:!0,get:function(){return pW.generateMerkleUpdate}});var U1=BE();Object.defineProperty(Te,\\\"parseTuple\\\",{enumerable:!0,get:function(){return U1.parseTuple}});Object.defineProperty(Te,\\\"serializeTuple\\\",{enumerable:!0,get:function(){return U1.serializeTuple}});Object.defineProperty(Te,\\\"parseTupleItem\\\",{enumerable:!0,get:function(){return U1.parseTupleItem}});Object.defineProperty(Te,\\\"serializeTupleItem\\\",{enumerable:!0,get:function(){return U1.serializeTupleItem}});var mW=ME();Object.defineProperty(Te,\\\"TupleReader\\\",{enumerable:!0,get:function(){return mW.TupleReader}});var yW=RE();Object.defineProperty(Te,\\\"TupleBuilder\\\",{enumerable:!0,get:function(){return yW.TupleBuilder}});nW(ok(),Te);var bW=lk();Object.defineProperty(Te,\\\"openContract\\\",{enumerable:!0,get:function(){return bW.openContract}});var vW=ck();Object.defineProperty(Te,\\\"ComputeError\\\",{enumerable:!0,get:function(){return vW.ComputeError}});var wk=e3();Object.defineProperty(Te,\\\"toNano\\\",{enumerable:!0,get:function(){return wk.toNano}});Object.defineProperty(Te,\\\"fromNano\\\",{enumerable:!0,get:function(){return wk.fromNano}});var wW=xm();Object.defineProperty(Te,\\\"crc16\\\",{enumerable:!0,get:function(){return wW.crc16}});var xW=H5();Object.defineProperty(Te,\\\"crc32c\\\",{enumerable:!0,get:function(){return xW.crc32c}});var xk=d5();Object.defineProperty(Te,\\\"base32Decode\\\",{enumerable:!0,get:function(){return xk.base32Decode}});Object.defineProperty(Te,\\\"base32Encode\\\",{enumerable:!0,get:function(){return xk.base32Encode}});var _W=uk();Object.defineProperty(Te,\\\"getMethodId\\\",{enumerable:!0,get:function(){return _W.getMethodId}});var _k=fk();Object.defineProperty(Te,\\\"safeSign\\\",{enumerable:!0,get:function(){return _k.safeSign}});Object.defineProperty(Te,\\\"safeSignVerify\\\",{enumerable:!0,get:function(){return _k.safeSignVerify}});var E0=pk();Object.defineProperty(Te,\\\"signatureDomainHash\\\",{enumerable:!0,get:function(){return E0.signatureDomainHash}});Object.defineProperty(Te,\\\"signatureDomainPrefix\\\",{enumerable:!0,get:function(){return E0.signatureDomainPrefix}});Object.defineProperty(Te,\\\"domainSign\\\",{enumerable:!0,get:function(){return E0.domainSign}});Object.defineProperty(Te,\\\"domainSignVerify\\\",{enumerable:!0,get:function(){return E0.domainSignVerify}});Object.defineProperty(Te,\\\"domainDataToSign\\\",{enumerable:!0,get:function(){return E0.domainDataToSign}})});var Yk=V(H1=>{\\\"use strict\\\";b();var QF=Symbol.for(\\\"react.transitional.element\\\"),XF=Symbol.for(\\\"react.fragment\\\");function Zk(t,e,n){var r=null;if(n!==void 0&&(r=\\\"\\\"+n),e.key!==void 0&&(r=\\\"\\\"+e.key),\\\"key\\\"in e){n={};for(var i in e)i!==\\\"key\\\"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:QF,type:t,key:r,ref:e!==void 0?e:null,props:n}}H1.Fragment=XF;H1.jsx=Zk;H1.jsxs=Zk});var no=V((Vfe,Gk)=>{\\\"use strict\\\";b();Gk.exports=Yk()});var nB=V(W1=>{\\\"use strict\\\";b();Object.defineProperty(W1,\\\"__esModule\\\",{value:!0});W1.InMemoryCache=void 0;var Y3=class{constructor(){this.cache=new Map,this.set=async(e,n,r)=>{r!==null?this.cache.set(e+\\\"$$\\\"+n,r):this.cache.delete(e+\\\"$$\\\"+n)},this.get=async(e,n)=>{let r=this.cache.get(e+\\\"$$\\\"+n);return r!==void 0?r:null}}};W1.InMemoryCache=Y3});var aB=V((Xfe,iB)=>{\\\"use strict\\\";b();var s$=(function(){function t(n,r){if(typeof n!=\\\"function\\\")throw new TypeError(\\\"DataLoader must be constructed with a function which accepts \\\"+(\\\"Array<key> and returns Promise<Array<value>>, but got: \\\"+n+\\\".\\\"));this._batchLoadFn=n,this._maxBatchSize=d$(r),this._batchScheduleFn=f$(r),this._cacheKeyFn=h$(r),this._cacheMap=g$(r),this._batch=null,this.name=p$(r)}var e=t.prototype;return e.load=function(r){if(r==null)throw new TypeError(\\\"The loader.load() function must be called with a value, \\\"+(\\\"but got: \\\"+String(r)+\\\".\\\"));var i=c$(this),a=this._cacheMap,o;if(a){o=this._cacheKeyFn(r);var s=a.get(o);if(s){var l=i.cacheHits||(i.cacheHits=[]);return new Promise(function(u){l.push(function(){u(s)})})}}i.keys.push(r);var c=new Promise(function(u,d){i.callbacks.push({resolve:u,reject:d})});return a&&a.set(o,c),c},e.loadMany=function(r){if(!rB(r))throw new TypeError(\\\"The loader.loadMany() function must be called with Array<key> \\\"+(\\\"but got: \\\"+r+\\\".\\\"));for(var i=[],a=0;a<r.length;a++)i.push(this.load(r[a]).catch(function(o){return o}));return Promise.all(i)},e.clear=function(r){var i=this._cacheMap;if(i){var a=this._cacheKeyFn(r);i.delete(a)}return this},e.clearAll=function(){var r=this._cacheMap;return r&&r.clear(),this},e.prime=function(r,i){var a=this._cacheMap;if(a){var o=this._cacheKeyFn(r);if(a.get(o)===void 0){var s;i instanceof Error?(s=Promise.reject(i),s.catch(function(){})):s=Promise.resolve(i),a.set(o,s)}}return this},t})(),l$=typeof process==\\\"object\\\"&&typeof process.nextTick==\\\"function\\\"?function(t){G3||(G3=Promise.resolve()),G3.then(function(){process.nextTick(t)})}:typeof setImmediate==\\\"function\\\"?function(t){setImmediate(t)}:function(t){setTimeout(t)},G3;function c$(t){var e=t._batch;if(e!==null&&!e.hasDispatched&&e.keys.length<t._maxBatchSize)return e;var n={hasDispatched:!1,keys:[],callbacks:[]};return t._batch=n,t._batchScheduleFn(function(){u$(t,n)}),n}function u$(t,e){if(e.hasDispatched=!0,e.keys.length===0){X3(e);return}var n;try{n=t._batchLoadFn(e.keys)}catch(r){return Q3(t,e,new TypeError(\\\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function \\\"+(\\\"errored synchronously: \\\"+String(r)+\\\".\\\")))}if(!n||typeof n.then!=\\\"function\\\")return Q3(t,e,new TypeError(\\\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \\\"+(\\\"not return a Promise: \\\"+String(n)+\\\".\\\")));n.then(function(r){if(!rB(r))throw new TypeError(\\\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \\\"+(\\\"not return a Promise of an Array: \\\"+String(r)+\\\".\\\"));if(r.length!==e.keys.length)throw new TypeError(\\\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\\\"+(`\\n\\nKeys:\\n`+String(e.keys))+(`\\n\\nValues:\\n`+String(r)));X3(e);for(var i=0;i<e.callbacks.length;i++){var a=r[i];a instanceof Error?e.callbacks[i].reject(a):e.callbacks[i].resolve(a)}}).catch(function(r){Q3(t,e,r)})}function Q3(t,e,n){X3(e);for(var r=0;r<e.keys.length;r++)t.clear(e.keys[r]),e.callbacks[r].reject(n)}function X3(t){if(t.cacheHits)for(var e=0;e<t.cacheHits.length;e++)t.cacheHits[e]()}function d$(t){var e=!t||t.batch!==!1;if(!e)return 1;var n=t&&t.maxBatchSize;if(n===void 0)return 1/0;if(typeof n!=\\\"number\\\"||n<1)throw new TypeError(\\\"maxBatchSize must be a positive number: \\\"+n);return n}function f$(t){var e=t&&t.batchScheduleFn;if(e===void 0)return l$;if(typeof e!=\\\"function\\\")throw new TypeError(\\\"batchScheduleFn must be a function: \\\"+e);return e}function h$(t){var e=t&&t.cacheKeyFn;if(e===void 0)return function(n){return n};if(typeof e!=\\\"function\\\")throw new TypeError(\\\"cacheKeyFn must be a function: \\\"+e);return e}function g$(t){var e=!t||t.cache!==!1;if(!e)return null;var n=t&&t.cacheMap;if(n===void 0)return new Map;if(n!==null){var r=[\\\"get\\\",\\\"set\\\",\\\"delete\\\",\\\"clear\\\"],i=r.filter(function(a){return n&&typeof n[a]!=\\\"function\\\"});if(i.length!==0)throw new TypeError(\\\"Custom cacheMap missing methods: \\\"+i.join(\\\", \\\"))}return n}function p$(t){return t&&t.name?t.name:null}function rB(t){return typeof t==\\\"object\\\"&&t!==null&&typeof t.length==\\\"number\\\"&&(t.length===0||t.length>0&&Object.prototype.hasOwnProperty.call(t,t.length-1))}iB.exports=s$});var h4=V((ehe,VB)=>{\\\"use strict\\\";b();function _B(t,e){return function(){return t.apply(e,arguments)}}var{toString:m$}=Object.prototype,{getPrototypeOf:l4}=Object,{iterator:Q1,toStringTag:CB}=Symbol,X1=(t=>e=>{let n=m$.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ea=t=>(t=t.toLowerCase(),e=>X1(e)===t),J1=t=>e=>typeof e===t,{isArray:Cf}=Array,_f=J1(\\\"undefined\\\");function I0(t){return t!==null&&!_f(t)&&t.constructor!==null&&!_f(t.constructor)&&bi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var SB=Ea(\\\"ArrayBuffer\\\");function y$(t){let e;return typeof ArrayBuffer<\\\"u\\\"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&SB(t.buffer),e}var b$=J1(\\\"string\\\"),bi=J1(\\\"function\\\"),TB=J1(\\\"number\\\"),U0=t=>t!==null&&typeof t==\\\"object\\\",v$=t=>t===!0||t===!1,$1=t=>{if(X1(t)!==\\\"object\\\")return!1;let e=l4(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(CB in t)&&!(Q1 in t)},w$=t=>{if(!U0(t)||I0(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},x$=Ea(\\\"Date\\\"),_$=Ea(\\\"File\\\"),C$=t=>!!(t&&typeof t.uri<\\\"u\\\"),S$=t=>t&&typeof t.getParts<\\\"u\\\",T$=Ea(\\\"Blob\\\"),E$=Ea(\\\"FileList\\\"),A$=t=>U0(t)&&bi(t.pipe);function k$(){return typeof globalThis<\\\"u\\\"?globalThis:typeof self<\\\"u\\\"?self:typeof window<\\\"u\\\"?window:typeof globalThis<\\\"u\\\"?globalThis:{}}var oB=k$(),sB=typeof oB.FormData<\\\"u\\\"?oB.FormData:void 0,B$=t=>{let e;return t&&(sB&&t instanceof sB||bi(t.append)&&((e=X1(t))===\\\"formdata\\\"||e===\\\"object\\\"&&bi(t.toString)&&t.toString()===\\\"[object FormData]\\\"))},M$=Ea(\\\"URLSearchParams\\\"),[R$,O$,I$,U$]=[\\\"ReadableStream\\\",\\\"Request\\\",\\\"Response\\\",\\\"Headers\\\"].map(Ea),N$=t=>t.trim?t.trim():t.replace(/^[\\\\s\\\\uFEFF\\\\xA0]+|[\\\\s\\\\uFEFF\\\\xA0]+$/g,\\\"\\\");function N0(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>\\\"u\\\")return;let r,i;if(typeof t!=\\\"object\\\"&&(t=[t]),Cf(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(I0(t))return;let a=n?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length,s;for(r=0;r<o;r++)s=a[r],e.call(null,t[s],s,t)}}function EB(t,e){if(I0(t))return null;e=e.toLowerCase();let n=Object.keys(t),r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}var Bc=typeof globalThis<\\\"u\\\"?globalThis:typeof self<\\\"u\\\"?self:typeof window<\\\"u\\\"?window:globalThis,AB=t=>!_f(t)&&t!==Bc;function r4(){let{caseless:t,skipUndefined:e}=AB(this)&&this||{},n={},r=(i,a)=>{if(a===\\\"__proto__\\\"||a===\\\"constructor\\\"||a===\\\"prototype\\\")return;let o=t&&EB(n,a)||a;$1(n[o])&&$1(i)?n[o]=r4(n[o],i):$1(i)?n[o]=r4({},i):Cf(i)?n[o]=i.slice():(!e||!_f(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&N0(arguments[i],r);return n}var P$=(t,e,n,{allOwnKeys:r}={})=>(N0(e,(i,a)=>{n&&bi(i)?Object.defineProperty(t,a,{value:_B(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),j$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),z$=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,\\\"constructor\\\",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,\\\"super\\\",{value:e.prototype}),n&&Object.assign(t.prototype,n)},D$=(t,e,n,r)=>{let i,a,o,s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&l4(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},L$=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;let r=t.indexOf(e,n);return r!==-1&&r===n},q$=t=>{if(!t)return null;if(Cf(t))return t;let e=t.length;if(!TB(e))return null;let n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},V$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<\\\"u\\\"&&l4(Uint8Array)),H$=(t,e)=>{let r=(t&&t[Q1]).call(t),i;for(;(i=r.next())&&!i.done;){let a=i.value;e.call(t,a[0],a[1])}},W$=(t,e)=>{let n,r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},F$=Ea(\\\"HTMLFormElement\\\"),$$=t=>t.toLowerCase().replace(/[-_\\\\s]([a-z\\\\d])(\\\\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lB=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),K$=Ea(\\\"RegExp\\\"),kB=(t,e)=>{let n=Object.getOwnPropertyDescriptors(t),r={};N0(n,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(r[a]=o||i)}),Object.defineProperties(t,r)},Z$=t=>{kB(t,(e,n)=>{if(bi(t)&&[\\\"arguments\\\",\\\"caller\\\",\\\"callee\\\"].indexOf(n)!==-1)return!1;let r=t[n];if(bi(r)){if(e.enumerable=!1,\\\"writable\\\"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error(\\\"Can not rewrite read-only method '\\\"+n+\\\"'\\\")})}})},Y$=(t,e)=>{let n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Cf(t)?r(t):r(String(t).split(e)),n},G$=()=>{},Q$=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function X$(t){return!!(t&&bi(t.append)&&t[CB]===\\\"FormData\\\"&&t[Q1])}var J$=t=>{let e=new Array(10),n=(r,i)=>{if(U0(r)){if(e.indexOf(r)>=0)return;if(I0(r))return r;if(!(\\\"toJSON\\\"in r)){e[i]=r;let a=Cf(r)?[]:{};return N0(r,(o,s)=>{let l=n(o,i+1);!_f(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return n(t,0)},eK=Ea(\\\"AsyncFunction\\\"),tK=t=>t&&(U0(t)||bi(t))&&bi(t.then)&&bi(t.catch),BB=((t,e)=>t?setImmediate:e?((n,r)=>(Bc.addEventListener(\\\"message\\\",({source:i,data:a})=>{i===Bc&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Bc.postMessage(n,\\\"*\\\")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate==\\\"function\\\",bi(Bc.postMessage)),nK=typeof queueMicrotask<\\\"u\\\"?queueMicrotask.bind(Bc):typeof process<\\\"u\\\"&&process.nextTick||BB,rK=t=>t!=null&&bi(t[Q1]),J={isArray:Cf,isArrayBuffer:SB,isBuffer:I0,isFormData:B$,isArrayBufferView:y$,isString:b$,isNumber:TB,isBoolean:v$,isObject:U0,isPlainObject:$1,isEmptyObject:w$,isReadableStream:R$,isRequest:O$,isResponse:I$,isHeaders:U$,isUndefined:_f,isDate:x$,isFile:_$,isReactNativeBlob:C$,isReactNative:S$,isBlob:T$,isRegExp:K$,isFunction:bi,isStream:A$,isURLSearchParams:M$,isTypedArray:V$,isFileList:E$,forEach:N0,merge:r4,extend:P$,trim:N$,stripBOM:j$,inherits:z$,toFlatObject:D$,kindOf:X1,kindOfTest:Ea,endsWith:L$,toArray:q$,forEachEntry:H$,matchAll:W$,isHTMLForm:F$,hasOwnProperty:lB,hasOwnProp:lB,reduceDescriptors:kB,freezeMethods:Z$,toObjectSet:Y$,toCamelCase:$$,noop:G$,toFiniteNumber:Q$,findKey:EB,global:Bc,isContextDefined:AB,isSpecCompliantForm:X$,toJSONObject:J$,isAsyncFn:eK,isThenable:tK,setImmediate:BB,asap:nK,isIterable:rK},ct=class t extends Error{static from(e,n,r,i,a,o){let s=new t(e.message,n||e.code,r,i,a);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,n,r,i,a){super(e),Object.defineProperty(this,\\\"message\\\",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=\\\"AxiosError\\\",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.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:J.toJSONObject(this.config),code:this.code,status:this.status}}};ct.ERR_BAD_OPTION_VALUE=\\\"ERR_BAD_OPTION_VALUE\\\";ct.ERR_BAD_OPTION=\\\"ERR_BAD_OPTION\\\";ct.ECONNABORTED=\\\"ECONNABORTED\\\";ct.ETIMEDOUT=\\\"ETIMEDOUT\\\";ct.ERR_NETWORK=\\\"ERR_NETWORK\\\";ct.ERR_FR_TOO_MANY_REDIRECTS=\\\"ERR_FR_TOO_MANY_REDIRECTS\\\";ct.ERR_DEPRECATED=\\\"ERR_DEPRECATED\\\";ct.ERR_BAD_RESPONSE=\\\"ERR_BAD_RESPONSE\\\";ct.ERR_BAD_REQUEST=\\\"ERR_BAD_REQUEST\\\";ct.ERR_CANCELED=\\\"ERR_CANCELED\\\";ct.ERR_NOT_SUPPORT=\\\"ERR_NOT_SUPPORT\\\";ct.ERR_INVALID_URL=\\\"ERR_INVALID_URL\\\";var iK=null;function i4(t){return J.isPlainObject(t)||J.isArray(t)}function MB(t){return J.endsWith(t,\\\"[]\\\")?t.slice(0,-2):t}function J3(t,e,n){return t?t.concat(e).map(function(i,a){return i=MB(i),!n&&a?\\\"[\\\"+i+\\\"]\\\":i}).join(n?\\\".\\\":\\\"\\\"):e}function aK(t){return J.isArray(t)&&!t.some(i4)}var oK=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function ey(t,e,n){if(!J.isObject(t))throw new TypeError(\\\"target must be an object\\\");e=e||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,N){return!J.isUndefined(N[E])});let r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<\\\"u\\\"&&Blob)&&J.isSpecCompliantForm(e);if(!J.isFunction(i))throw new TypeError(\\\"visitor must be a function\\\");function c(y){if(y===null)return\\\"\\\";if(J.isDate(y))return y.toISOString();if(J.isBoolean(y))return y.toString();if(!l&&J.isBlob(y))throw new ct(\\\"Blob is not supported. Use a Buffer instead.\\\");return J.isArrayBuffer(y)||J.isTypedArray(y)?l&&typeof Blob==\\\"function\\\"?new Blob([y]):globalThis.Buffer.from(y):y}function u(y,E,N){let _=y;if(J.isReactNative(e)&&J.isReactNativeBlob(y))return e.append(J3(N,E,a),c(y)),!1;if(y&&!N&&typeof y==\\\"object\\\"){if(J.endsWith(E,\\\"{}\\\"))E=r?E:E.slice(0,-2),y=JSON.stringify(y);else if(J.isArray(y)&&aK(y)||(J.isFileList(y)||J.endsWith(E,\\\"[]\\\"))&&(_=J.toArray(y)))return E=MB(E),_.forEach(function(T,R){!(J.isUndefined(T)||T===null)&&e.append(o===!0?J3([E],R,a):o===null?E:E+\\\"[]\\\",c(T))}),!1}return i4(y)?!0:(e.append(J3(N,E,a),c(y)),!1)}let d=[],h=Object.assign(oK,{defaultVisitor:u,convertValue:c,isVisitable:i4});function g(y,E){if(!J.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error(\\\"Circular reference detected in \\\"+E.join(\\\".\\\"));d.push(y),J.forEach(y,function(_,v){(!(J.isUndefined(_)||_===null)&&i.call(e,_,J.isString(v)?v.trim():v,E,h))===!0&&g(_,E?E.concat(v):[v])}),d.pop()}}if(!J.isObject(t))throw new TypeError(\\\"data must be an object\\\");return g(t),e}function cB(t){let e={\\\"!\\\":\\\"%21\\\",\\\"'\\\":\\\"%27\\\",\\\"(\\\":\\\"%28\\\",\\\")\\\":\\\"%29\\\",\\\"~\\\":\\\"%7E\\\",\\\"%20\\\":\\\"+\\\",\\\"%00\\\":\\\"\\\\0\\\"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function c4(t,e){this._pairs=[],t&&ey(t,this,e)}var RB=c4.prototype;RB.append=function(e,n){this._pairs.push([e,n])};RB.toString=function(e){let n=e?function(r){return e.call(this,r,cB)}:cB;return this._pairs.map(function(i){return n(i[0])+\\\"=\\\"+n(i[1])},\\\"\\\").join(\\\"&\\\")};function sK(t){return encodeURIComponent(t).replace(/%3A/gi,\\\":\\\").replace(/%24/g,\\\"$\\\").replace(/%2C/gi,\\\",\\\").replace(/%20/g,\\\"+\\\")}function OB(t,e,n){if(!e)return t;let r=n&&n.encode||sK,i=J.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(a?o=a(e,i):o=J.isURLSearchParams(e)?e.toString():new c4(e,i).toString(r),o){let s=t.indexOf(\\\"#\\\");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf(\\\"?\\\")===-1?\\\"?\\\":\\\"&\\\")+o}return t}var Y1=class{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(r){r!==null&&e(r)})}},u4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},lK=typeof URLSearchParams<\\\"u\\\"?URLSearchParams:c4,cK=typeof FormData<\\\"u\\\"?FormData:null,uK=typeof Blob<\\\"u\\\"?Blob:null,dK={isBrowser:!0,classes:{URLSearchParams:lK,FormData:cK,Blob:uK},protocols:[\\\"http\\\",\\\"https\\\",\\\"file\\\",\\\"blob\\\",\\\"url\\\",\\\"data\\\"]},d4=typeof window<\\\"u\\\"&&typeof document<\\\"u\\\",a4=typeof navigator==\\\"object\\\"&&navigator||void 0,fK=d4&&(!a4||[\\\"ReactNative\\\",\\\"NativeScript\\\",\\\"NS\\\"].indexOf(a4.product)<0),hK=typeof WorkerGlobalScope<\\\"u\\\"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==\\\"function\\\",gK=d4&&window.location.href||\\\"http://localhost\\\",pK=Object.freeze({__proto__:null,hasBrowserEnv:d4,hasStandardBrowserEnv:fK,hasStandardBrowserWebWorkerEnv:hK,navigator:a4,origin:gK}),zr={...pK,...dK};function mK(t,e){return ey(t,new zr.classes.URLSearchParams,{visitor:function(n,r,i,a){return zr.isNode&&J.isBuffer(n)?(this.append(r,n.toString(\\\"base64\\\")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function yK(t){return J.matchAll(/\\\\w+|\\\\[(\\\\w*)]/g,t).map(e=>e[0]===\\\"[]\\\"?\\\"\\\":e[1]||e[0])}function bK(t){let e={},n=Object.keys(t),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function IB(t){function e(n,r,i,a){let o=n[a++];if(o===\\\"__proto__\\\")return!0;let s=Number.isFinite(+o),l=a>=n.length;return o=!o&&J.isArray(i)?i.length:o,l?(J.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!J.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],a)&&J.isArray(i[o])&&(i[o]=bK(i[o])),!s)}if(J.isFormData(t)&&J.isFunction(t.entries)){let n={};return J.forEachEntry(t,(r,i)=>{e(yK(r),i,n,0)}),n}return null}function vK(t,e,n){if(J.isString(t))try{return(e||JSON.parse)(t),J.trim(t)}catch(r){if(r.name!==\\\"SyntaxError\\\")throw r}return(n||JSON.stringify)(t)}var P0={transitional:u4,adapter:[\\\"xhr\\\",\\\"http\\\",\\\"fetch\\\"],transformRequest:[function(e,n){let r=n.getContentType()||\\\"\\\",i=r.indexOf(\\\"application/json\\\")>-1,a=J.isObject(e);if(a&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return i?JSON.stringify(IB(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return n.setContentType(\\\"application/x-www-form-urlencoded;charset=utf-8\\\",!1),e.toString();let s;if(a){if(r.indexOf(\\\"application/x-www-form-urlencoded\\\")>-1)return mK(e,this.formSerializer).toString();if((s=J.isFileList(e))||r.indexOf(\\\"multipart/form-data\\\")>-1){let l=this.env&&this.env.FormData;return ey(s?{\\\"files[]\\\":e}:e,l&&new l,this.formSerializer)}}return a||i?(n.setContentType(\\\"application/json\\\",!1),vK(e)):e}],transformResponse:[function(e){let n=this.transitional||P0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType===\\\"json\\\";if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||i)){let o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name===\\\"SyntaxError\\\"?ct.from(s,ct.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:\\\"XSRF-TOKEN\\\",xsrfHeaderName:\\\"X-XSRF-TOKEN\\\",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zr.classes.FormData,Blob:zr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:\\\"application/json, text/plain, */*\\\",\\\"Content-Type\\\":void 0}}};J.forEach([\\\"delete\\\",\\\"get\\\",\\\"head\\\",\\\"post\\\",\\\"put\\\",\\\"patch\\\"],t=>{P0.headers[t]={}});var wK=J.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\\\"]),xK=t=>{let e={},n,r,i;return t&&t.split(`\\n`).forEach(function(o){i=o.indexOf(\\\":\\\"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&wK[n])&&(n===\\\"set-cookie\\\"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+\\\", \\\"+r:r)}),e},uB=Symbol(\\\"internals\\\");function O0(t){return t&&String(t).trim().toLowerCase()}function K1(t){return t===!1||t==null?t:J.isArray(t)?t.map(K1):String(t).replace(/[\\\\r\\\\n]+$/,\\\"\\\")}function _K(t){let e=Object.create(null),n=/([^\\\\s,;=]+)\\\\s*(?:=\\\\s*([^,;]+))?/g,r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}var CK=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function e4(t,e,n,r,i){if(J.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!J.isString(e)){if(J.isString(r))return e.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(e)}}function SK(t){return t.trim().toLowerCase().replace(/([a-z\\\\d])(\\\\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function TK(t,e){let n=J.toCamelCase(\\\" \\\"+e);[\\\"get\\\",\\\"set\\\",\\\"has\\\"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}var Dr=class{constructor(e){e&&this.set(e)}set(e,n,r){let i=this;function a(s,l,c){let u=O0(l);if(!u)throw new Error(\\\"header name must be a non-empty string\\\");let d=J.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=K1(s))}let o=(s,l)=>J.forEach(s,(c,u)=>a(c,u,l));if(J.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(J.isString(e)&&(e=e.trim())&&!CK(e))o(xK(e),n);else if(J.isObject(e)&&J.isIterable(e)){let s={},l,c;for(let u of e){if(!J.isArray(u))throw TypeError(\\\"Object iterator must return a key-value pair\\\");s[c=u[0]]=(l=s[c])?J.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(s,n)}else e!=null&&a(n,e,r);return this}get(e,n){if(e=O0(e),e){let r=J.findKey(this,e);if(r){let i=this[r];if(!n)return i;if(n===!0)return _K(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError(\\\"parser must be boolean|regexp|function\\\")}}}has(e,n){if(e=O0(e),e){let r=J.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||e4(this,this[r],r,n)))}return!1}delete(e,n){let r=this,i=!1;function a(o){if(o=O0(o),o){let s=J.findKey(r,o);s&&(!n||e4(r,r[s],s,n))&&(delete r[s],i=!0)}}return J.isArray(e)?e.forEach(a):a(e),i}clear(e){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let a=n[r];(!e||e4(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){let n=this,r={};return J.forEach(this,(i,a)=>{let o=J.findKey(r,a);if(o){n[o]=K1(i),delete n[a];return}let s=e?SK(a):String(a).trim();s!==a&&delete n[a],n[s]=K1(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&J.isArray(r)?r.join(\\\", \\\"):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+\\\": \\\"+n).join(`\\n`)}getSetCookie(){return this.get(\\\"set-cookie\\\")||[]}get[Symbol.toStringTag](){return\\\"AxiosHeaders\\\"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){let r=(this[uB]=this[uB]={accessors:{}}).accessors,i=this.prototype;function a(o){let s=O0(o);r[s]||(TK(i,o),r[s]=!0)}return J.isArray(e)?e.forEach(a):a(e),this}};Dr.accessor([\\\"Content-Type\\\",\\\"Content-Length\\\",\\\"Accept\\\",\\\"Accept-Encoding\\\",\\\"User-Agent\\\",\\\"Authorization\\\"]);J.reduceDescriptors(Dr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});J.freezeMethods(Dr);function t4(t,e){let n=this||P0,r=e||n,i=Dr.from(r.headers),a=r.data;return J.forEach(t,function(s){a=s.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function UB(t){return!!(t&&t.__CANCEL__)}var Mc=class extends ct{constructor(e,n,r){super(e??\\\"canceled\\\",ct.ERR_CANCELED,n,r),this.name=\\\"CanceledError\\\",this.__CANCEL__=!0}};function NB(t,e,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ct(\\\"Request failed with status code \\\"+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function EK(t){let e=/^([-+\\\\w]{1,25})(:?\\\\/\\\\/|:)/.exec(t);return e&&e[1]||\\\"\\\"}function AK(t,e){t=t||10;let n=new Array(t),r=new Array(t),i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){let c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let d=a,h=0;for(;d!==i;)h+=n[d++],d=d%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o<e)return;let g=u&&c-u;return g?Math.round(h*1e3/g):void 0}}function kK(t,e){let n=0,r=1e3/e,i,a,o=(c,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),t(...c)};return[(...c)=>{let u=Date.now(),d=u-n;d>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}var G1=(t,e,n=3)=>{let r=0,i=AK(50,250);return kK(a=>{let o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;let d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[e?\\\"download\\\":\\\"upload\\\"]:!0};t(d)},n)},dB=(t,e)=>{let n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},fB=t=>(...e)=>J.asap(()=>t(...e)),BK=zr.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,zr.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(zr.origin),zr.navigator&&/(msie|trident)/i.test(zr.navigator.userAgent)):()=>!0,MK=zr.hasStandardBrowserEnv?{write(t,e,n,r,i,a,o){if(typeof document>\\\"u\\\")return;let s=[`${t}=${encodeURIComponent(e)}`];J.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&s.push(`path=${r}`),J.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(\\\"secure\\\"),J.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(\\\"; \\\")},read(t){if(typeof document>\\\"u\\\")return null;let e=document.cookie.match(new RegExp(\\\"(?:^|; )\\\"+t+\\\"=([^;]*)\\\"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,\\\"\\\",Date.now()-864e5,\\\"/\\\")}}:{write(){},read(){return null},remove(){}};function RK(t){return typeof t!=\\\"string\\\"?!1:/^([a-z][a-z\\\\d+\\\\-.]*:)?\\\\/\\\\//i.test(t)}function OK(t,e){return e?t.replace(/\\\\/?\\\\/$/,\\\"\\\")+\\\"/\\\"+e.replace(/^\\\\/+/,\\\"\\\"):t}function PB(t,e,n){let r=!RK(e);return t&&(r||n==!1)?OK(t,e):e}var hB=t=>t instanceof Dr?{...t}:t;function Rc(t,e){e=e||{};let n={};function r(c,u,d,h){return J.isPlainObject(c)&&J.isPlainObject(u)?J.merge.call({caseless:h},c,u):J.isPlainObject(u)?J.merge({},u):J.isArray(u)?u.slice():u}function i(c,u,d,h){if(J.isUndefined(u)){if(!J.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function a(c,u){if(!J.isUndefined(u))return r(void 0,u)}function o(c,u){if(J.isUndefined(u)){if(!J.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in e)return r(c,u);if(d in t)return r(void 0,c)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,d)=>i(hB(c),hB(u),d,!0)};return J.forEach(Object.keys({...t,...e}),function(u){if(u===\\\"__proto__\\\"||u===\\\"constructor\\\"||u===\\\"prototype\\\")return;let d=J.hasOwnProp(l,u)?l[u]:i,h=d(t[u],e[u],u);J.isUndefined(h)&&d!==s||(n[u]=h)}),n}var jB=t=>{let e=Rc({},t),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=Dr.from(o),e.url=OB(PB(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set(\\\"Authorization\\\",\\\"Basic \\\"+btoa((s.username||\\\"\\\")+\\\":\\\"+(s.password?unescape(encodeURIComponent(s.password)):\\\"\\\"))),J.isFormData(n)){if(zr.hasStandardBrowserEnv||zr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(J.isFunction(n.getHeaders)){let l=n.getHeaders(),c=[\\\"content-type\\\",\\\"content-length\\\"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&o.set(u,d)})}}if(zr.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(e)),r||r!==!1&&BK(e.url))){let l=i&&a&&MK.read(a);l&&o.set(i,l)}return e},IK=typeof XMLHttpRequest<\\\"u\\\",UK=IK&&function(t){return new Promise(function(n,r){let i=jB(t),a=i.data,o=Dr.from(i.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,g,y;function E(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener(\\\"abort\\\",u)}let N=new XMLHttpRequest;N.open(i.method.toUpperCase(),i.url,!0),N.timeout=i.timeout;function _(){if(!N)return;let T=Dr.from(\\\"getAllResponseHeaders\\\"in N&&N.getAllResponseHeaders()),U={data:!s||s===\\\"text\\\"||s===\\\"json\\\"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:T,config:t,request:N};NB(function(k){n(k),E()},function(k){r(k),E()},U),N=null}\\\"onloadend\\\"in N?N.onloadend=_:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf(\\\"file:\\\")===0)||setTimeout(_)},N.onabort=function(){N&&(r(new ct(\\\"Request aborted\\\",ct.ECONNABORTED,t,N)),N=null)},N.onerror=function(R){let U=R&&R.message?R.message:\\\"Network Error\\\",X=new ct(U,ct.ERR_NETWORK,t,N);X.event=R||null,r(X),N=null},N.ontimeout=function(){let R=i.timeout?\\\"timeout of \\\"+i.timeout+\\\"ms exceeded\\\":\\\"timeout exceeded\\\",U=i.transitional||u4;i.timeoutErrorMessage&&(R=i.timeoutErrorMessage),r(new ct(R,U.clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,t,N)),N=null},a===void 0&&o.setContentType(null),\\\"setRequestHeader\\\"in N&&J.forEach(o.toJSON(),function(R,U){N.setRequestHeader(U,R)}),J.isUndefined(i.withCredentials)||(N.withCredentials=!!i.withCredentials),s&&s!==\\\"json\\\"&&(N.responseType=i.responseType),c&&([h,y]=G1(c,!0),N.addEventListener(\\\"progress\\\",h)),l&&N.upload&&([d,g]=G1(l),N.upload.addEventListener(\\\"progress\\\",d),N.upload.addEventListener(\\\"loadend\\\",g)),(i.cancelToken||i.signal)&&(u=T=>{N&&(r(!T||T.type?new Mc(null,t,N):T),N.abort(),N=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener(\\\"abort\\\",u)));let v=EK(i.url);if(v&&zr.protocols.indexOf(v)===-1){r(new ct(\\\"Unsupported protocol \\\"+v+\\\":\\\",ct.ERR_BAD_REQUEST,t));return}N.send(a||null)})},NK=(t,e)=>{let{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i,a=function(c){if(!i){i=!0,s();let u=c instanceof Error?c:this.reason;r.abort(u instanceof ct?u:new Mc(u instanceof Error?u.message:u))}},o=e&&setTimeout(()=>{o=null,a(new ct(`timeout of ${e}ms exceeded`,ct.ETIMEDOUT))},e),s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener(\\\"abort\\\",a)}),t=null)};t.forEach(c=>c.addEventListener(\\\"abort\\\",a));let{signal:l}=r;return l.unsubscribe=()=>J.asap(s),l}},PK=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},jK=async function*(t,e){for await(let n of zK(t))yield*PK(n,e)},zK=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}let e=t.getReader();try{for(;;){let{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},gB=(t,e,n,r)=>{let i=jK(t,e),a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{let{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let h=a+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},pB=64*1024,{isFunction:F1}=J,DK=(({Request:t,Response:e})=>({Request:t,Response:e}))(J.global),{ReadableStream:mB,TextEncoder:yB}=J.global,bB=(t,...e)=>{try{return!!t(...e)}catch{return!1}},LK=t=>{t=J.merge.call({skipUndefined:!0},DK,t);let{fetch:e,Request:n,Response:r}=t,i=e?F1(e):typeof fetch==\\\"function\\\",a=F1(n),o=F1(r);if(!i)return!1;let s=i&&F1(mB),l=i&&(typeof yB==\\\"function\\\"?(y=>E=>y.encode(E))(new yB):async y=>new Uint8Array(await new n(y).arrayBuffer())),c=a&&s&&bB(()=>{let y=!1,E=new mB,N=new n(zr.origin,{body:E,method:\\\"POST\\\",get duplex(){return y=!0,\\\"half\\\"}}).headers.has(\\\"Content-Type\\\");return E.cancel(),y&&!N}),u=o&&s&&bB(()=>J.isReadableStream(new r(\\\"\\\").body)),d={stream:u&&(y=>y.body)};i&&[\\\"text\\\",\\\"arrayBuffer\\\",\\\"blob\\\",\\\"formData\\\",\\\"stream\\\"].forEach(y=>{!d[y]&&(d[y]=(E,N)=>{let _=E&&E[y];if(_)return _.call(E);throw new ct(`Response type '${y}' is not supported`,ct.ERR_NOT_SUPPORT,N)})});let h=async y=>{if(y==null)return 0;if(J.isBlob(y))return y.size;if(J.isSpecCompliantForm(y))return(await new n(zr.origin,{method:\\\"POST\\\",body:y}).arrayBuffer()).byteLength;if(J.isArrayBufferView(y)||J.isArrayBuffer(y))return y.byteLength;if(J.isURLSearchParams(y)&&(y=y+\\\"\\\"),J.isString(y))return(await l(y)).byteLength},g=async(y,E)=>{let N=J.toFiniteNumber(y.getContentLength());return N??h(E)};return async y=>{let{url:E,method:N,data:_,signal:v,cancelToken:T,timeout:R,onDownloadProgress:U,onUploadProgress:X,responseType:k,headers:q,withCredentials:z=\\\"same-origin\\\",fetchOptions:$}=jB(y),L=e||fetch;k=k?(k+\\\"\\\").toLowerCase():\\\"text\\\";let P=NK([v,T&&T.toAbortSignal()],R),pe=null,le=P&&P.unsubscribe&&(()=>{P.unsubscribe()}),se;try{if(X&&c&&N!==\\\"get\\\"&&N!==\\\"head\\\"&&(se=await g(q,_))!==0){let Xt=new n(E,{method:\\\"POST\\\",body:_,duplex:\\\"half\\\"}),Jt;if(J.isFormData(_)&&(Jt=Xt.headers.get(\\\"content-type\\\"))&&q.setContentType(Jt),Xt.body){let[pn,He]=dB(se,G1(fB(X)));_=gB(Xt.body,pB,pn,He)}}J.isString(z)||(z=z?\\\"include\\\":\\\"omit\\\");let Le=a&&\\\"credentials\\\"in n.prototype,O={...$,signal:P,method:N.toUpperCase(),headers:q.normalize().toJSON(),body:_,duplex:\\\"half\\\",credentials:Le?z:void 0};pe=a&&new n(E,O);let Ze=await(a?L(pe,$):L(E,O)),rt=u&&(k===\\\"stream\\\"||k===\\\"response\\\");if(u&&(U||rt&&le)){let Xt={};[\\\"status\\\",\\\"statusText\\\",\\\"headers\\\"].forEach(Fn=>{Xt[Fn]=Ze[Fn]});let Jt=J.toFiniteNumber(Ze.headers.get(\\\"content-length\\\")),[pn,He]=U&&dB(Jt,G1(fB(U),!0))||[];Ze=new r(gB(Ze.body,pB,pn,()=>{He&&He(),le&&le()}),Xt)}k=k||\\\"text\\\";let St=await d[J.findKey(d,k)||\\\"text\\\"](Ze,y);return!rt&&le&&le(),await new Promise((Xt,Jt)=>{NB(Xt,Jt,{data:St,headers:Dr.from(Ze.headers),status:Ze.status,statusText:Ze.statusText,config:y,request:pe})})}catch(Le){throw le&&le(),Le&&Le.name===\\\"TypeError\\\"&&/Load failed|fetch/i.test(Le.message)?Object.assign(new ct(\\\"Network Error\\\",ct.ERR_NETWORK,y,pe,Le&&Le.response),{cause:Le.cause||Le}):ct.from(Le,Le&&Le.code,y,pe,Le&&Le.response)}}},qK=new Map,zB=t=>{let e=t&&t.env||{},{fetch:n,Request:r,Response:i}=e,a=[r,i,n],o=a.length,s=o,l,c,u=qK;for(;s--;)l=a[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:LK(e)),u=c;return c};zB();var f4={http:iK,xhr:UK,fetch:{get:zB}};J.forEach(f4,(t,e)=>{if(t){try{Object.defineProperty(t,\\\"name\\\",{value:e})}catch{}Object.defineProperty(t,\\\"adapterName\\\",{value:e})}});var vB=t=>`- ${t}`,VK=t=>J.isFunction(t)||t===null||t===!1;function HK(t,e){t=J.isArray(t)?t:[t];let{length:n}=t,r,i,a={};for(let o=0;o<n;o++){r=t[o];let s;if(i=r,!VK(r)&&(i=f4[(s=String(r)).toLowerCase()],i===void 0))throw new ct(`Unknown adapter '${s}'`);if(i&&(J.isFunction(i)||(i=i.get(e))))break;a[s||\\\"#\\\"+o]=i}if(!i){let o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?\\\"is not supported by the environment\\\":\\\"is not available in the build\\\")),s=n?o.length>1?`since :\\n`+o.map(vB).join(`\\n`):\\\" \\\"+vB(o[0]):\\\"as no adapter specified\\\";throw new ct(\\\"There is no suitable adapter to dispatch the request \\\"+s,\\\"ERR_NOT_SUPPORT\\\")}return i}var DB={getAdapter:HK,adapters:f4};function n4(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mc(null,t)}function wB(t){return n4(t),t.headers=Dr.from(t.headers),t.data=t4.call(t,t.transformRequest),[\\\"post\\\",\\\"put\\\",\\\"patch\\\"].indexOf(t.method)!==-1&&t.headers.setContentType(\\\"application/x-www-form-urlencoded\\\",!1),DB.getAdapter(t.adapter||P0.adapter,t)(t).then(function(r){return n4(t),r.data=t4.call(t,t.transformResponse,r),r.headers=Dr.from(r.headers),r},function(r){return UB(r)||(n4(t),r&&r.response&&(r.response.data=t4.call(t,t.transformResponse,r.response),r.response.headers=Dr.from(r.response.headers))),Promise.reject(r)})}var LB=\\\"1.14.0\\\",ty={};[\\\"object\\\",\\\"boolean\\\",\\\"number\\\",\\\"function\\\",\\\"string\\\",\\\"symbol\\\"].forEach((t,e)=>{ty[t]=function(r){return typeof r===t||\\\"a\\\"+(e<1?\\\"n \\\":\\\" \\\")+t}});var xB={};ty.transitional=function(e,n,r){function i(a,o){return\\\"[Axios v\\\"+LB+\\\"] Transitional option '\\\"+a+\\\"'\\\"+o+(r?\\\". \\\"+r:\\\"\\\")}return(a,o,s)=>{if(e===!1)throw new ct(i(o,\\\" has been removed\\\"+(n?\\\" in \\\"+n:\\\"\\\")),ct.ERR_DEPRECATED);return n&&!xB[o]&&(xB[o]=!0,console.warn(i(o,\\\" has been deprecated since v\\\"+n+\\\" and will be removed in the near future\\\"))),e?e(a,o,s):!0}};ty.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function WK(t,e,n){if(typeof t!=\\\"object\\\")throw new ct(\\\"options must be an object\\\",ct.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),i=r.length;for(;i-- >0;){let a=r[i],o=e[a];if(o){let s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new ct(\\\"option \\\"+a+\\\" must be \\\"+l,ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ct(\\\"Unknown option \\\"+a,ct.ERR_BAD_OPTION)}}var Z1={assertOptions:WK,validators:ty},la=Z1.validators,es=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Y1,response:new Y1}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let a=i.stack?i.stack.replace(/^.+\\\\n/,\\\"\\\"):\\\"\\\";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\\\\n.+\\\\n/,\\\"\\\"))&&(r.stack+=`\\n`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e==\\\"string\\\"?(n=n||{},n.url=e):n=e||{},n=Rc(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Z1.assertOptions(r,{silentJSONParsing:la.transitional(la.boolean),forcedJSONParsing:la.transitional(la.boolean),clarifyTimeoutError:la.transitional(la.boolean),legacyInterceptorReqResOrdering:la.transitional(la.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Z1.assertOptions(i,{encode:la.function,serialize:la.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Z1.assertOptions(n,{baseUrl:la.spelling(\\\"baseURL\\\"),withXsrfToken:la.spelling(\\\"withXSRFToken\\\")},!0),n.method=(n.method||this.defaults.method||\\\"get\\\").toLowerCase();let o=a&&J.merge(a.common,a[n.method]);a&&J.forEach([\\\"delete\\\",\\\"get\\\",\\\"head\\\",\\\"post\\\",\\\"put\\\",\\\"patch\\\",\\\"common\\\"],y=>{delete a[y]}),n.headers=Dr.concat(o,a);let s=[],l=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen==\\\"function\\\"&&E.runWhen(n)===!1)return;l=l&&E.synchronous;let N=n.transitional||u4;N&&N.legacyInterceptorReqResOrdering?s.unshift(E.fulfilled,E.rejected):s.push(E.fulfilled,E.rejected)});let c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let u,d=0,h;if(!l){let y=[wB.bind(this),void 0];for(y.unshift(...s),y.push(...c),h=y.length,u=Promise.resolve(n);d<h;)u=u.then(y[d++],y[d++]);return u}h=s.length;let g=n;for(;d<h;){let y=s[d++],E=s[d++];try{g=y(g)}catch(N){E.call(this,N);break}}try{u=wB.call(this,g)}catch(y){return Promise.reject(y)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Rc(this.defaults,e);let n=PB(e.baseURL,e.url,e.allowAbsoluteUrls);return OB(n,e.params,e.paramsSerializer)}};J.forEach([\\\"delete\\\",\\\"get\\\",\\\"head\\\",\\\"options\\\"],function(e){es.prototype[e]=function(n,r){return this.request(Rc(r||{},{method:e,url:n,data:(r||{}).data}))}});J.forEach([\\\"post\\\",\\\"put\\\",\\\"patch\\\"],function(e){function n(r){return function(a,o,s){return this.request(Rc(s||{},{method:e,headers:r?{\\\"Content-Type\\\":\\\"multipart/form-data\\\"}:{},url:a,data:o}))}}es.prototype[e]=n(),es.prototype[e+\\\"Form\\\"]=n(!0)});var o4=class t{constructor(e){if(typeof e!=\\\"function\\\")throw new TypeError(\\\"executor must be a function.\\\");let n;this.promise=new Promise(function(a){n=a});let r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a,o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,s){r.reason||(r.reason=new Mc(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){let e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new t(function(i){e=i}),cancel:e}}};function FK(t){return function(n){return t.apply(null,n)}}function $K(t){return J.isObject(t)&&t.isAxiosError===!0}var s4={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(s4).forEach(([t,e])=>{s4[e]=t});function qB(t){let e=new es(t),n=_B(es.prototype.request,e);return J.extend(n,es.prototype,e,{allOwnKeys:!0}),J.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return qB(Rc(t,i))},n}var ur=qB(P0);ur.Axios=es;ur.CanceledError=Mc;ur.CancelToken=o4;ur.isCancel=UB;ur.VERSION=LB;ur.toFormData=ey;ur.AxiosError=ct;ur.Cancel=ur.CanceledError;ur.all=function(e){return Promise.all(e)};ur.spread=FK;ur.isAxiosError=$K;ur.mergeConfig=Rc;ur.AxiosHeaders=Dr;ur.formToJSON=t=>IB(J.isHTMLForm(t)?new FormData(t):t);ur.getAdapter=DB.getAdapter;ur.HttpStatusCode=s4;ur.default=ur;VB.exports=ur});var j0=V(In=>{\\\"use strict\\\";b();Object.defineProperty(In,\\\"__esModule\\\",{value:!0});In.getParsedType=In.ZodParsedType=In.objectUtil=In.util=void 0;var g4;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{let a={};for(let o of i)a[o]=o;return a},t.getValidEnumValues=i=>{let a=t.objectKeys(i).filter(s=>typeof i[i[s]]!=\\\"number\\\"),o={};for(let s of a)o[s]=i[s];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(a){return i[a]}),t.objectKeys=typeof Object.keys==\\\"function\\\"?i=>Object.keys(i):i=>{let a=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},t.find=(i,a)=>{for(let o of i)if(a(o))return o},t.isInteger=typeof Number.isInteger==\\\"function\\\"?i=>Number.isInteger(i):i=>typeof i==\\\"number\\\"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=\\\" | \\\"){return i.map(o=>typeof o==\\\"string\\\"?`'${o}'`:o).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(i,a)=>typeof a==\\\"bigint\\\"?a.toString():a})(g4||(In.util=g4={}));var HB;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(HB||(In.objectUtil=HB={}));In.ZodParsedType=g4.arrayToEnum([\\\"string\\\",\\\"nan\\\",\\\"number\\\",\\\"integer\\\",\\\"float\\\",\\\"boolean\\\",\\\"date\\\",\\\"bigint\\\",\\\"symbol\\\",\\\"function\\\",\\\"undefined\\\",\\\"null\\\",\\\"array\\\",\\\"object\\\",\\\"unknown\\\",\\\"promise\\\",\\\"void\\\",\\\"never\\\",\\\"map\\\",\\\"set\\\"]);var KK=t=>{switch(typeof t){case\\\"undefined\\\":return In.ZodParsedType.undefined;case\\\"string\\\":return In.ZodParsedType.string;case\\\"number\\\":return Number.isNaN(t)?In.ZodParsedType.nan:In.ZodParsedType.number;case\\\"boolean\\\":return In.ZodParsedType.boolean;case\\\"function\\\":return In.ZodParsedType.function;case\\\"bigint\\\":return In.ZodParsedType.bigint;case\\\"symbol\\\":return In.ZodParsedType.symbol;case\\\"object\\\":return Array.isArray(t)?In.ZodParsedType.array:t===null?In.ZodParsedType.null:t.then&&typeof t.then==\\\"function\\\"&&t.catch&&typeof t.catch==\\\"function\\\"?In.ZodParsedType.promise:typeof Map<\\\"u\\\"&&t instanceof Map?In.ZodParsedType.map:typeof Set<\\\"u\\\"&&t instanceof Set?In.ZodParsedType.set:typeof Date<\\\"u\\\"&&t instanceof Date?In.ZodParsedType.date:In.ZodParsedType.object;default:return In.ZodParsedType.unknown}};In.getParsedType=KK});var ny=V(vl=>{\\\"use strict\\\";b();Object.defineProperty(vl,\\\"__esModule\\\",{value:!0});vl.ZodError=vl.quotelessJson=vl.ZodIssueCode=void 0;var WB=j0();vl.ZodIssueCode=WB.util.arrayToEnum([\\\"invalid_type\\\",\\\"invalid_literal\\\",\\\"custom\\\",\\\"invalid_union\\\",\\\"invalid_union_discriminator\\\",\\\"invalid_enum_value\\\",\\\"unrecognized_keys\\\",\\\"invalid_arguments\\\",\\\"invalid_return_type\\\",\\\"invalid_date\\\",\\\"invalid_string\\\",\\\"too_small\\\",\\\"too_big\\\",\\\"invalid_intersection_types\\\",\\\"not_multiple_of\\\",\\\"not_finite\\\"]);var ZK=t=>JSON.stringify(t,null,2).replace(/\\\"([^\\\"]+)\\\":/g,\\\"$1:\\\");vl.quotelessJson=ZK;var z0=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\\\"ZodError\\\",this.issues=e}format(e){let n=e||function(a){return a.message},r={_errors:[]},i=a=>{for(let o of a.issues)if(o.code===\\\"invalid_union\\\")o.unionErrors.map(i);else if(o.code===\\\"invalid_return_type\\\")i(o.returnTypeError);else if(o.code===\\\"invalid_arguments\\\")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){let c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,WB.util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let i of this.issues)if(i.path.length>0){let a=i.path[0];n[a]=n[a]||[],n[a].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};vl.ZodError=z0;z0.create=t=>new z0(t)});var m4=V(p4=>{\\\"use strict\\\";b();Object.defineProperty(p4,\\\"__esModule\\\",{value:!0});var Lr=ny(),Oc=j0(),YK=(t,e)=>{let n;switch(t.code){case Lr.ZodIssueCode.invalid_type:t.received===Oc.ZodParsedType.undefined?n=\\\"Required\\\":n=`Expected ${t.expected}, received ${t.received}`;break;case Lr.ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Oc.util.jsonStringifyReplacer)}`;break;case Lr.ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${Oc.util.joinValues(t.keys,\\\", \\\")}`;break;case Lr.ZodIssueCode.invalid_union:n=\\\"Invalid input\\\";break;case Lr.ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Oc.util.joinValues(t.options)}`;break;case Lr.ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${Oc.util.joinValues(t.options)}, received '${t.received}'`;break;case Lr.ZodIssueCode.invalid_arguments:n=\\\"Invalid function arguments\\\";break;case Lr.ZodIssueCode.invalid_return_type:n=\\\"Invalid function return type\\\";break;case Lr.ZodIssueCode.invalid_date:n=\\\"Invalid date\\\";break;case Lr.ZodIssueCode.invalid_string:typeof t.validation==\\\"object\\\"?\\\"includes\\\"in t.validation?(n=`Invalid input: must include \\\"${t.validation.includes}\\\"`,typeof t.validation.position==\\\"number\\\"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):\\\"startsWith\\\"in t.validation?n=`Invalid input: must start with \\\"${t.validation.startsWith}\\\"`:\\\"endsWith\\\"in t.validation?n=`Invalid input: must end with \\\"${t.validation.endsWith}\\\"`:Oc.util.assertNever(t.validation):t.validation!==\\\"regex\\\"?n=`Invalid ${t.validation}`:n=\\\"Invalid\\\";break;case Lr.ZodIssueCode.too_small:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"more than\\\"} ${t.minimum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"over\\\"} ${t.minimum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"bigint\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${new Date(Number(t.minimum))}`:n=\\\"Invalid input\\\";break;case Lr.ZodIssueCode.too_big:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"less than\\\"} ${t.maximum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"under\\\"} ${t.maximum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"bigint\\\"?n=`BigInt must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"smaller than or equal to\\\":\\\"smaller than\\\"} ${new Date(Number(t.maximum))}`:n=\\\"Invalid input\\\";break;case Lr.ZodIssueCode.custom:n=\\\"Invalid input\\\";break;case Lr.ZodIssueCode.invalid_intersection_types:n=\\\"Intersection results could not be merged\\\";break;case Lr.ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Lr.ZodIssueCode.not_finite:n=\\\"Number must be finite\\\";break;default:n=e.defaultError,Oc.util.assertNever(t)}return{message:n}};p4.default=YK});var ry=V(wl=>{\\\"use strict\\\";b();var GK=wl&&wl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wl,\\\"__esModule\\\",{value:!0});wl.defaultErrorMap=void 0;wl.setErrorMap=QK;wl.getErrorMap=XK;var FB=GK(m4());wl.defaultErrorMap=FB.default;var $B=FB.default;function QK(t){$B=t}function XK(){return $B}});var b4=V(vn=>{\\\"use strict\\\";b();var JK=vn&&vn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vn,\\\"__esModule\\\",{value:!0});vn.isAsync=vn.isValid=vn.isDirty=vn.isAborted=vn.OK=vn.DIRTY=vn.INVALID=vn.ParseStatus=vn.EMPTY_PATH=vn.makeIssue=void 0;vn.addIssueToContext=nZ;var eZ=ry(),KB=JK(m4()),tZ=t=>{let{data:e,path:n,errorMaps:r,issueData:i}=t,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=\\\"\\\",l=r.filter(c=>!!c).slice().reverse();for(let c of l)s=c(o,{data:e,defaultError:s}).message;return{...i,path:a,message:s}};vn.makeIssue=tZ;vn.EMPTY_PATH=[];function nZ(t,e){let n=(0,eZ.getErrorMap)(),r=(0,vn.makeIssue)({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===KB.default?void 0:KB.default].filter(i=>!!i)});t.common.issues.push(r)}var y4=class t{constructor(){this.value=\\\"valid\\\"}dirty(){this.value===\\\"valid\\\"&&(this.value=\\\"dirty\\\")}abort(){this.value!==\\\"aborted\\\"&&(this.value=\\\"aborted\\\")}static mergeArray(e,n){let r=[];for(let i of n){if(i.status===\\\"aborted\\\")return vn.INVALID;i.status===\\\"dirty\\\"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let i of n){let a=await i.key,o=await i.value;r.push({key:a,value:o})}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let i of n){let{key:a,value:o}=i;if(a.status===\\\"aborted\\\"||o.status===\\\"aborted\\\")return vn.INVALID;a.status===\\\"dirty\\\"&&e.dirty(),o.status===\\\"dirty\\\"&&e.dirty(),a.value!==\\\"__proto__\\\"&&(typeof o.value<\\\"u\\\"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:e.value,value:r}}};vn.ParseStatus=y4;vn.INVALID=Object.freeze({status:\\\"aborted\\\"});var rZ=t=>({status:\\\"dirty\\\",value:t});vn.DIRTY=rZ;var iZ=t=>({status:\\\"valid\\\",value:t});vn.OK=iZ;var aZ=t=>t.status===\\\"aborted\\\";vn.isAborted=aZ;var oZ=t=>t.status===\\\"dirty\\\";vn.isDirty=oZ;var sZ=t=>t.status===\\\"valid\\\";vn.isValid=sZ;var lZ=t=>typeof Promise<\\\"u\\\"&&t instanceof Promise;vn.isAsync=lZ});var YB=V(ZB=>{\\\"use strict\\\";b();Object.defineProperty(ZB,\\\"__esModule\\\",{value:!0})});var QB=V(iy=>{\\\"use strict\\\";b();Object.defineProperty(iy,\\\"__esModule\\\",{value:!0});iy.errorUtil=void 0;var GB;(function(t){t.errToObj=e=>typeof e==\\\"string\\\"?{message:e}:e||{},t.toString=e=>typeof e==\\\"string\\\"?e:e?.message})(GB||(iy.errorUtil=GB={}))});var cM=V(F=>{\\\"use strict\\\";b();Object.defineProperty(F,\\\"__esModule\\\",{value:!0});F.discriminatedUnion=F.date=F.boolean=F.bigint=F.array=F.any=F.coerce=F.ZodFirstPartyTypeKind=F.late=F.ZodSchema=F.Schema=F.ZodReadonly=F.ZodPipeline=F.ZodBranded=F.BRAND=F.ZodNaN=F.ZodCatch=F.ZodDefault=F.ZodNullable=F.ZodOptional=F.ZodTransformer=F.ZodEffects=F.ZodPromise=F.ZodNativeEnum=F.ZodEnum=F.ZodLiteral=F.ZodLazy=F.ZodFunction=F.ZodSet=F.ZodMap=F.ZodRecord=F.ZodTuple=F.ZodIntersection=F.ZodDiscriminatedUnion=F.ZodUnion=F.ZodObject=F.ZodArray=F.ZodVoid=F.ZodNever=F.ZodUnknown=F.ZodAny=F.ZodNull=F.ZodUndefined=F.ZodSymbol=F.ZodDate=F.ZodBoolean=F.ZodBigInt=F.ZodNumber=F.ZodString=F.ZodType=void 0;F.NEVER=F.void=F.unknown=F.union=F.undefined=F.tuple=F.transformer=F.symbol=F.string=F.strictObject=F.set=F.record=F.promise=F.preprocess=F.pipeline=F.ostring=F.optional=F.onumber=F.oboolean=F.object=F.number=F.nullable=F.null=F.never=F.nativeEnum=F.nan=F.map=F.literal=F.lazy=F.intersection=F.instanceof=F.function=F.enum=F.effect=void 0;F.datetimeRegex=nM;F.custom=iM;var Me=ny(),ay=ry(),et=QB(),K=b4(),Re=j0(),ua=class{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},XB=(t,e)=>{if((0,K.isValid)(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error(\\\"Validation failed but no issues detected.\\\");return{success:!1,get error(){if(this._error)return this._error;let n=new Me.ZodError(t.common.issues);return this._error=n,this._error}}};function Rt(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use \\\"invalid_type_error\\\" or \\\"required_error\\\" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,s)=>{let{message:l}=t;return o.code===\\\"invalid_enum_value\\\"?{message:l??s.defaultError}:typeof s.data>\\\"u\\\"?{message:l??r??s.defaultError}:o.code!==\\\"invalid_type\\\"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}var Ot=class{get description(){return this._def.description}_getType(e){return(0,Re.getParsedType)(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:(0,Re.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new K.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,Re.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if((0,K.isAsync)(n))throw new Error(\\\"Synchronous parse encountered promise.\\\");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,Re.getParsedType)(e)},i=this._parseSync({data:e,path:r.path,parent:r});return XB(r,i)}\\\"~validate\\\"(e){let n={common:{issues:[],async:!!this[\\\"~standard\\\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,Re.getParsedType)(e)};if(!this[\\\"~standard\\\"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return(0,K.isValid)(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\\\"encountered\\\")&&(this[\\\"~standard\\\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>(0,K.isValid)(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,Re.getParsedType)(e)},i=this._parse({data:e,path:r.path,parent:r}),a=await((0,K.isAsync)(i)?i:Promise.resolve(i));return XB(r,a)}refine(e,n){let r=i=>typeof n==\\\"string\\\"||typeof n>\\\"u\\\"?{message:n}:typeof n==\\\"function\\\"?n(i):n;return this._refinement((i,a)=>{let o=e(i),s=()=>a.addIssue({code:Me.ZodIssueCode.custom,...r(i)});return typeof Promise<\\\"u\\\"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n==\\\"function\\\"?n(r,i):n),!1))}_refinement(e){return new zi({schema:this,typeName:ft.ZodEffects,effect:{type:\\\"refinement\\\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\\\"~standard\\\"]={version:1,vendor:\\\"zod\\\",validate:n=>this[\\\"~validate\\\"](n)}}optional(){return ca.create(this,this._def)}nullable(){return io.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rs.create(this)}promise(){return Cl.create(this,this._def)}or(e){return Dc.create([this,e],this._def)}and(e){return Lc.create(this,e,this._def)}transform(e){return new zi({...Rt(this._def),schema:this,typeName:ft.ZodEffects,effect:{type:\\\"transform\\\",transform:e}})}default(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new Fc({...Rt(this._def),innerType:this,defaultValue:n,typeName:ft.ZodDefault})}brand(){return new D0({typeName:ft.ZodBranded,type:this,...Rt(this._def)})}catch(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new $c({...Rt(this._def),innerType:this,catchValue:n,typeName:ft.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return L0.create(this,e)}readonly(){return Kc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};F.ZodType=Ot;F.Schema=Ot;F.ZodSchema=Ot;var cZ=/^c[^\\\\s-]{8,}$/i,uZ=/^[0-9a-z]+$/,dZ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fZ=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,hZ=/^[a-z0-9_-]{21}$/i,gZ=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,pZ=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,mZ=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,yZ=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\",v4,bZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,wZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_Z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,CZ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eM=\\\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\\\",SZ=new RegExp(`^${eM}$`);function tM(t){let e=\\\"[0-5]\\\\\\\\d\\\";t.precision?e=`${e}\\\\\\\\.\\\\\\\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\\\\\\\.\\\\\\\\d+)?`);let n=t.precision?\\\"+\\\":\\\"?\\\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${e})${n}`}function TZ(t){return new RegExp(`^${tM(t)}$`)}function nM(t){let e=`${eM}T${tM(t)}`,n=[];return n.push(t.local?\\\"Z?\\\":\\\"Z\\\"),t.offset&&n.push(\\\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\\\"),e=`${e}(${n.join(\\\"|\\\")})`,new RegExp(`^${e}$`)}function EZ(t,e){return!!((e===\\\"v4\\\"||!e)&&bZ.test(t)||(e===\\\"v6\\\"||!e)&&wZ.test(t))}function AZ(t,e){if(!gZ.test(t))return!1;try{let[n]=t.split(\\\".\\\");if(!n)return!1;let r=n.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(n.length+(4-n.length%4)%4,\\\"=\\\"),i=JSON.parse(atob(r));return!(typeof i!=\\\"object\\\"||i===null||\\\"typ\\\"in i&&i?.typ!==\\\"JWT\\\"||!i.alg||e&&i.alg!==e)}catch{return!1}}function kZ(t,e){return!!((e===\\\"v4\\\"||!e)&&vZ.test(t)||(e===\\\"v6\\\"||!e)&&xZ.test(t))}var xl=class t extends Ot{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Re.ZodParsedType.string){let a=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(a,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.string,received:a.parsedType}),K.INVALID}let r=new K.ParseStatus,i;for(let a of this._def.checks)if(a.kind===\\\"min\\\")e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_small,minimum:a.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\\\"max\\\")e.data.length>a.value&&(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_big,maximum:a.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\\\"length\\\"){let o=e.data.length>a.value,s=e.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(e,i),o?(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_big,maximum:a.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:a.message}):s&&(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_small,minimum:a.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind===\\\"email\\\")mZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"email\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"emoji\\\")v4||(v4=new RegExp(yZ,\\\"u\\\")),v4.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"emoji\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"uuid\\\")fZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"uuid\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"nanoid\\\")hZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"nanoid\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"cuid\\\")cZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"cuid\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"cuid2\\\")uZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"cuid2\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"ulid\\\")dZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"ulid\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"url\\\")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"url\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()}else a.kind===\\\"regex\\\"?(a.regex.lastIndex=0,a.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"regex\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty())):a.kind===\\\"trim\\\"?e.data=e.data.trim():a.kind===\\\"includes\\\"?e.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind===\\\"toLowerCase\\\"?e.data=e.data.toLowerCase():a.kind===\\\"toUpperCase\\\"?e.data=e.data.toUpperCase():a.kind===\\\"startsWith\\\"?e.data.startsWith(a.value)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind===\\\"endsWith\\\"?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind===\\\"datetime\\\"?nM(a).test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:\\\"datetime\\\",message:a.message}),r.dirty()):a.kind===\\\"date\\\"?SZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:\\\"date\\\",message:a.message}),r.dirty()):a.kind===\\\"time\\\"?TZ(a).test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.invalid_string,validation:\\\"time\\\",message:a.message}),r.dirty()):a.kind===\\\"duration\\\"?pZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"duration\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"ip\\\"?EZ(e.data,a.version)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"ip\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"jwt\\\"?AZ(e.data,a.alg)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"jwt\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"cidr\\\"?kZ(e.data,a.version)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"cidr\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"base64\\\"?_Z.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"base64\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"base64url\\\"?CZ.test(e.data)||(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{validation:\\\"base64url\\\",code:Me.ZodIssueCode.invalid_string,message:a.message}),r.dirty()):Re.util.assertNever(a);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(i=>e.test(i),{validation:n,code:Me.ZodIssueCode.invalid_string,...et.errorUtil.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\\\"email\\\",...et.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:\\\"url\\\",...et.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:\\\"emoji\\\",...et.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:\\\"uuid\\\",...et.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:\\\"nanoid\\\",...et.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:\\\"cuid\\\",...et.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:\\\"cuid2\\\",...et.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:\\\"ulid\\\",...et.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:\\\"base64\\\",...et.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:\\\"base64url\\\",...et.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:\\\"jwt\\\",...et.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:\\\"ip\\\",...et.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:\\\"cidr\\\",...et.errorUtil.errToObj(e)})}datetime(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"datetime\\\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\\\"datetime\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...et.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:\\\"date\\\",message:e})}time(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"time\\\",precision:null,message:e}):this._addCheck({kind:\\\"time\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,...et.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\\\"duration\\\",...et.errorUtil.errToObj(e)})}regex(e,n){return this._addCheck({kind:\\\"regex\\\",regex:e,...et.errorUtil.errToObj(n)})}includes(e,n){return this._addCheck({kind:\\\"includes\\\",value:e,position:n?.position,...et.errorUtil.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:\\\"startsWith\\\",value:e,...et.errorUtil.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:\\\"endsWith\\\",value:e,...et.errorUtil.errToObj(n)})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e,...et.errorUtil.errToObj(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e,...et.errorUtil.errToObj(n)})}length(e,n){return this._addCheck({kind:\\\"length\\\",value:e,...et.errorUtil.errToObj(n)})}nonempty(e){return this.min(1,et.errorUtil.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"trim\\\"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toLowerCase\\\"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toUpperCase\\\"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===\\\"datetime\\\")}get isDate(){return!!this._def.checks.find(e=>e.kind===\\\"date\\\")}get isTime(){return!!this._def.checks.find(e=>e.kind===\\\"time\\\")}get isDuration(){return!!this._def.checks.find(e=>e.kind===\\\"duration\\\")}get isEmail(){return!!this._def.checks.find(e=>e.kind===\\\"email\\\")}get isURL(){return!!this._def.checks.find(e=>e.kind===\\\"url\\\")}get isEmoji(){return!!this._def.checks.find(e=>e.kind===\\\"emoji\\\")}get isUUID(){return!!this._def.checks.find(e=>e.kind===\\\"uuid\\\")}get isNANOID(){return!!this._def.checks.find(e=>e.kind===\\\"nanoid\\\")}get isCUID(){return!!this._def.checks.find(e=>e.kind===\\\"cuid\\\")}get isCUID2(){return!!this._def.checks.find(e=>e.kind===\\\"cuid2\\\")}get isULID(){return!!this._def.checks.find(e=>e.kind===\\\"ulid\\\")}get isIP(){return!!this._def.checks.find(e=>e.kind===\\\"ip\\\")}get isCIDR(){return!!this._def.checks.find(e=>e.kind===\\\"cidr\\\")}get isBase64(){return!!this._def.checks.find(e=>e.kind===\\\"base64\\\")}get isBase64url(){return!!this._def.checks.find(e=>e.kind===\\\"base64url\\\")}get minLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};F.ZodString=xl;xl.create=t=>new xl({checks:[],typeName:ft.ZodString,coerce:t?.coerce??!1,...Rt(t)});function BZ(t,e){let n=(t.toString().split(\\\".\\\")[1]||\\\"\\\").length,r=(e.toString().split(\\\".\\\")[1]||\\\"\\\").length,i=n>r?n:r,a=Number.parseInt(t.toFixed(i).replace(\\\".\\\",\\\"\\\")),o=Number.parseInt(e.toFixed(i).replace(\\\".\\\",\\\"\\\"));return a%o/10**i}var Ic=class t extends Ot{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Re.ZodParsedType.number){let a=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(a,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.number,received:a.parsedType}),K.INVALID}let r,i=new K.ParseStatus;for(let a of this._def.checks)a.kind===\\\"int\\\"?Re.util.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:\\\"integer\\\",received:\\\"float\\\",message:a.message}),i.dirty()):a.kind===\\\"min\\\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_small,minimum:a.value,type:\\\"number\\\",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind===\\\"max\\\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_big,maximum:a.value,type:\\\"number\\\",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind===\\\"multipleOf\\\"?BZ(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind===\\\"finite\\\"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.not_finite,message:a.message}),i.dirty()):Re.util.assertNever(a);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,et.errorUtil.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,et.errorUtil.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,et.errorUtil.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,et.errorUtil.toString(n))}setLimit(e,n,r,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:et.errorUtil.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\\\"int\\\",message:et.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!1,message:et.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!1,message:et.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!0,message:et.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!0,message:et.errorUtil.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:et.errorUtil.toString(n)})}finite(e){return this._addCheck({kind:\\\"finite\\\",message:et.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:\\\"min\\\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:et.errorUtil.toString(e)})._addCheck({kind:\\\"max\\\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:et.errorUtil.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===\\\"int\\\"||e.kind===\\\"multipleOf\\\"&&Re.util.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind===\\\"finite\\\"||r.kind===\\\"int\\\"||r.kind===\\\"multipleOf\\\")return!0;r.kind===\\\"min\\\"?(n===null||r.value>n)&&(n=r.value):r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};F.ZodNumber=Ic;Ic.create=t=>new Ic({checks:[],typeName:ft.ZodNumber,coerce:t?.coerce||!1,...Rt(t)});var Uc=class t extends Ot{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Re.ZodParsedType.bigint)return this._getInvalidInput(e);let r,i=new K.ParseStatus;for(let a of this._def.checks)a.kind===\\\"min\\\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_small,type:\\\"bigint\\\",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind===\\\"max\\\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_big,type:\\\"bigint\\\",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind===\\\"multipleOf\\\"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Re.util.assertNever(a);return{status:i.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.bigint,received:n.parsedType}),K.INVALID}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,et.errorUtil.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,et.errorUtil.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,et.errorUtil.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,et.errorUtil.toString(n))}setLimit(e,n,r,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:et.errorUtil.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!1,message:et.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!1,message:et.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!0,message:et.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!0,message:et.errorUtil.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:et.errorUtil.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};F.ZodBigInt=Uc;Uc.create=t=>new Uc({checks:[],typeName:ft.ZodBigInt,coerce:t?.coerce??!1,...Rt(t)});var Nc=class extends Ot{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Re.ZodParsedType.boolean){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.boolean,received:r.parsedType}),K.INVALID}return(0,K.OK)(e.data)}};F.ZodBoolean=Nc;Nc.create=t=>new Nc({typeName:ft.ZodBoolean,coerce:t?.coerce||!1,...Rt(t)});var Pc=class t extends Ot{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Re.ZodParsedType.date){let a=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(a,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.date,received:a.parsedType}),K.INVALID}if(Number.isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(a,{code:Me.ZodIssueCode.invalid_date}),K.INVALID}let r=new K.ParseStatus,i;for(let a of this._def.checks)a.kind===\\\"min\\\"?e.data.getTime()<a.value&&(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:\\\"date\\\"}),r.dirty()):a.kind===\\\"max\\\"?e.data.getTime()>a.value&&(i=this._getOrReturnCtx(e,i),(0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:\\\"date\\\"}),r.dirty()):Re.util.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e.getTime(),message:et.errorUtil.toString(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e.getTime(),message:et.errorUtil.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};F.ZodDate=Pc;Pc.create=t=>new Pc({checks:[],coerce:t?.coerce||!1,typeName:ft.ZodDate,...Rt(t)});var Tf=class extends Ot{_parse(e){if(this._getType(e)!==Re.ZodParsedType.symbol){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.symbol,received:r.parsedType}),K.INVALID}return(0,K.OK)(e.data)}};F.ZodSymbol=Tf;Tf.create=t=>new Tf({typeName:ft.ZodSymbol,...Rt(t)});var jc=class extends Ot{_parse(e){if(this._getType(e)!==Re.ZodParsedType.undefined){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.undefined,received:r.parsedType}),K.INVALID}return(0,K.OK)(e.data)}};F.ZodUndefined=jc;jc.create=t=>new jc({typeName:ft.ZodUndefined,...Rt(t)});var zc=class extends Ot{_parse(e){if(this._getType(e)!==Re.ZodParsedType.null){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.null,received:r.parsedType}),K.INVALID}return(0,K.OK)(e.data)}};F.ZodNull=zc;zc.create=t=>new zc({typeName:ft.ZodNull,...Rt(t)});var _l=class extends Ot{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,K.OK)(e.data)}};F.ZodAny=_l;_l.create=t=>new _l({typeName:ft.ZodAny,...Rt(t)});var ns=class extends Ot{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,K.OK)(e.data)}};F.ZodUnknown=ns;ns.create=t=>new ns({typeName:ft.ZodUnknown,...Rt(t)});var Aa=class extends Ot{_parse(e){let n=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.never,received:n.parsedType}),K.INVALID}};F.ZodNever=Aa;Aa.create=t=>new Aa({typeName:ft.ZodNever,...Rt(t)});var Ef=class extends Ot{_parse(e){if(this._getType(e)!==Re.ZodParsedType.undefined){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.void,received:r.parsedType}),K.INVALID}return(0,K.OK)(e.data)}};F.ZodVoid=Ef;Ef.create=t=>new Ef({typeName:ft.ZodVoid,...Rt(t)});var rs=class t extends Ot{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==Re.ZodParsedType.array)return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.array,received:n.parsedType}),K.INVALID;if(i.exactLength!==null){let o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&((0,K.addIssueToContext)(n,{code:o?Me.ZodIssueCode.too_big:Me.ZodIssueCode.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:\\\"array\\\",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&((0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.too_small,minimum:i.minLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&((0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.too_big,maximum:i.maxLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new ua(n,o,n.path,s)))).then(o=>K.ParseStatus.mergeArray(r,o));let a=[...n.data].map((o,s)=>i.type._parseSync(new ua(n,o,n.path,s)));return K.ParseStatus.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:et.errorUtil.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:et.errorUtil.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:et.errorUtil.toString(n)}})}nonempty(e){return this.min(1,e)}};F.ZodArray=rs;rs.create=(t,e)=>new rs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ft.ZodArray,...Rt(e)});function Sf(t){if(t instanceof vi){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=ca.create(Sf(r))}return new vi({...t._def,shape:()=>e})}else return t instanceof rs?new rs({...t._def,type:Sf(t.element)}):t instanceof ca?ca.create(Sf(t.unwrap())):t instanceof io?io.create(Sf(t.unwrap())):t instanceof ro?ro.create(t.items.map(e=>Sf(e))):t}var vi=class t extends Ot{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=Re.util.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Re.ZodParsedType.object){let c=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(c,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.object,received:c.parsedType}),K.INVALID}let{status:r,ctx:i}=this._processInputParams(e),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Aa&&this._def.unknownKeys===\\\"strip\\\"))for(let c in i.data)o.includes(c)||s.push(c);let l=[];for(let c of o){let u=a[c],d=i.data[c];l.push({key:{status:\\\"valid\\\",value:c},value:u._parse(new ua(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Aa){let c=this._def.unknownKeys;if(c===\\\"passthrough\\\")for(let u of s)l.push({key:{status:\\\"valid\\\",value:u},value:{status:\\\"valid\\\",value:i.data[u]}});else if(c===\\\"strict\\\")s.length>0&&((0,K.addIssueToContext)(i,{code:Me.ZodIssueCode.unrecognized_keys,keys:s}),r.dirty());else if(c!==\\\"strip\\\")throw new Error(\\\"Internal ZodObject error: invalid unknownKeys value.\\\")}else{let c=this._def.catchall;for(let u of s){let d=i.data[u];l.push({key:{status:\\\"valid\\\",value:u},value:c._parse(new ua(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let u of l){let d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>K.ParseStatus.mergeObjectSync(r,c)):K.ParseStatus.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return et.errorUtil.errToObj,new t({...this._def,unknownKeys:\\\"strict\\\",...e!==void 0?{errorMap:(n,r)=>{let i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\\\"unrecognized_keys\\\"?{message:et.errorUtil.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:\\\"strip\\\"})}passthrough(){return new t({...this._def,unknownKeys:\\\"passthrough\\\"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ft.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of Re.util.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of Re.util.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return Sf(this)}partial(e){let n={};for(let r of Re.util.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of Re.util.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof ca;)a=a._def.innerType;n[r]=a}return new t({...this._def,shape:()=>n})}keyof(){return rM(Re.util.objectKeys(this.shape))}};F.ZodObject=vi;vi.create=(t,e)=>new vi({shape:()=>t,unknownKeys:\\\"strip\\\",catchall:Aa.create(),typeName:ft.ZodObject,...Rt(e)});vi.strictCreate=(t,e)=>new vi({shape:()=>t,unknownKeys:\\\"strict\\\",catchall:Aa.create(),typeName:ft.ZodObject,...Rt(e)});vi.lazycreate=(t,e)=>new vi({shape:t,unknownKeys:\\\"strip\\\",catchall:Aa.create(),typeName:ft.ZodObject,...Rt(e)});var Dc=class extends Ot{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function i(a){for(let s of a)if(s.result.status===\\\"valid\\\")return s.result;for(let s of a)if(s.result.status===\\\"dirty\\\")return n.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(s=>new Me.ZodError(s.ctx.common.issues));return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_union,unionErrors:o}),K.INVALID}if(n.common.async)return Promise.all(r.map(async a=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a,o=[];for(let l of r){let c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status===\\\"valid\\\")return u;u.status===\\\"dirty\\\"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(l=>new Me.ZodError(l));return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_union,unionErrors:s}),K.INVALID}}get options(){return this._def.options}};F.ZodUnion=Dc;Dc.create=(t,e)=>new Dc({options:t,typeName:ft.ZodUnion,...Rt(e)});var ts=t=>t instanceof qc?ts(t.schema):t instanceof zi?ts(t.innerType()):t instanceof Vc?[t.value]:t instanceof Hc?t.options:t instanceof Wc?Re.util.objectValues(t.enum):t instanceof Fc?ts(t._def.innerType):t instanceof jc?[void 0]:t instanceof zc?[null]:t instanceof ca?[void 0,...ts(t.unwrap())]:t instanceof io?[null,...ts(t.unwrap())]:t instanceof D0||t instanceof Kc?ts(t.unwrap()):t instanceof $c?ts(t._def.innerType):[],oy=class t extends Ot{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.ZodParsedType.object)return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.object,received:n.parsedType}),K.INVALID;let r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):((0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),K.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let i=new Map;for(let a of n){let o=ts(a.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \\\\`${e}\\\\` could not be extracted from all schema options`);for(let s of o){if(i.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);i.set(s,a)}}return new t({typeName:ft.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...Rt(r)})}};F.ZodDiscriminatedUnion=oy;function w4(t,e){let n=(0,Re.getParsedType)(t),r=(0,Re.getParsedType)(e);if(t===e)return{valid:!0,data:t};if(n===Re.ZodParsedType.object&&r===Re.ZodParsedType.object){let i=Re.util.objectKeys(e),a=Re.util.objectKeys(t).filter(s=>i.indexOf(s)!==-1),o={...t,...e};for(let s of a){let l=w4(t[s],e[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Re.ZodParsedType.array&&r===Re.ZodParsedType.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let a=0;a<t.length;a++){let o=t[a],s=e[a],l=w4(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Re.ZodParsedType.date&&r===Re.ZodParsedType.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Lc=class extends Ot{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=(a,o)=>{if((0,K.isAborted)(a)||(0,K.isAborted)(o))return K.INVALID;let s=w4(a.value,o.value);return s.valid?(((0,K.isDirty)(a)||(0,K.isDirty)(o))&&n.dirty(),{status:n.value,value:s.data}):((0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_intersection_types}),K.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};F.ZodIntersection=Lc;Lc.create=(t,e,n)=>new Lc({left:t,right:e,typeName:ft.ZodIntersection,...Rt(n)});var ro=class t extends Ot{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Re.ZodParsedType.array)return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.array,received:r.parsedType}),K.INVALID;if(r.data.length<this._def.items.length)return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),K.INVALID;!this._def.rest&&r.data.length>this._def.items.length&&((0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),n.dirty());let a=[...r.data].map((o,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new ua(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>K.ParseStatus.mergeArray(n,o)):K.ParseStatus.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};F.ZodTuple=ro;ro.create=(t,e)=>{if(!Array.isArray(t))throw new Error(\\\"You must pass an array of schemas to z.tuple([ ... ])\\\");return new ro({items:t,typeName:ft.ZodTuple,rest:null,...Rt(e)})};var sy=class t extends Ot{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Re.ZodParsedType.object)return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.object,received:r.parsedType}),K.INVALID;let i=[],a=this._def.keyType,o=this._def.valueType;for(let s in r.data)i.push({key:a._parse(new ua(r,s,r.path,s)),value:o._parse(new ua(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?K.ParseStatus.mergeObjectAsync(n,i):K.ParseStatus.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Ot?new t({keyType:e,valueType:n,typeName:ft.ZodRecord,...Rt(r)}):new t({keyType:xl.create(),valueType:e,typeName:ft.ZodRecord,...Rt(n)})}};F.ZodRecord=sy;var Af=class extends Ot{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Re.ZodParsedType.map)return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.map,received:r.parsedType}),K.INVALID;let i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new ua(r,s,r.path,[c,\\\"key\\\"])),value:a._parse(new ua(r,l,r.path,[c,\\\"value\\\"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of o){let c=await l.key,u=await l.value;if(c.status===\\\"aborted\\\"||u.status===\\\"aborted\\\")return K.INVALID;(c.status===\\\"dirty\\\"||u.status===\\\"dirty\\\")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{let s=new Map;for(let l of o){let c=l.key,u=l.value;if(c.status===\\\"aborted\\\"||u.status===\\\"aborted\\\")return K.INVALID;(c.status===\\\"dirty\\\"||u.status===\\\"dirty\\\")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}};F.ZodMap=Af;Af.create=(t,e,n)=>new Af({valueType:e,keyType:t,typeName:ft.ZodMap,...Rt(n)});var kf=class t extends Ot{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Re.ZodParsedType.set)return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.set,received:r.parsedType}),K.INVALID;let i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&((0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_small,minimum:i.minSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&((0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.too_big,maximum:i.maxSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let a=this._def.valueType;function o(l){let c=new Set;for(let u of l){if(u.status===\\\"aborted\\\")return K.INVALID;u.status===\\\"dirty\\\"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}let s=[...r.data.values()].map((l,c)=>a._parse(new ua(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(e,n){return new t({...this._def,minSize:{value:e,message:et.errorUtil.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:et.errorUtil.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};F.ZodSet=kf;kf.create=(t,e)=>new kf({valueType:t,minSize:null,maxSize:null,typeName:ft.ZodSet,...Rt(e)});var ly=class t extends Ot{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.ZodParsedType.function)return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.function,received:n.parsedType}),K.INVALID;function r(s,l){return(0,K.makeIssue)({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,(0,ay.getErrorMap)(),ay.defaultErrorMap].filter(c=>!!c),issueData:{code:Me.ZodIssueCode.invalid_arguments,argumentsError:l}})}function i(s,l){return(0,K.makeIssue)({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,(0,ay.getErrorMap)(),ay.defaultErrorMap].filter(c=>!!c),issueData:{code:Me.ZodIssueCode.invalid_return_type,returnTypeError:l}})}let a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Cl){let s=this;return(0,K.OK)(async function(...l){let c=new Me.ZodError([]),u=await s._def.args.parseAsync(l,a).catch(g=>{throw c.addIssue(r(l,g)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(g=>{throw c.addIssue(i(d,g)),c})})}else{let s=this;return(0,K.OK)(function(...l){let c=s._def.args.safeParse(l,a);if(!c.success)throw new Me.ZodError([r(l,c.error)]);let u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new Me.ZodError([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:ro.create(e).rest(ns.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||ro.create([]).rest(ns.create()),returns:n||ns.create(),typeName:ft.ZodFunction,...Rt(r)})}};F.ZodFunction=ly;var qc=class extends Ot{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};F.ZodLazy=qc;qc.create=(t,e)=>new qc({getter:t,typeName:ft.ZodLazy,...Rt(e)});var Vc=class extends Ot{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(n,{received:n.data,code:Me.ZodIssueCode.invalid_literal,expected:this._def.value}),K.INVALID}return{status:\\\"valid\\\",value:e.data}}get value(){return this._def.value}};F.ZodLiteral=Vc;Vc.create=(t,e)=>new Vc({value:t,typeName:ft.ZodLiteral,...Rt(e)});function rM(t,e){return new Hc({values:t,typeName:ft.ZodEnum,...Rt(e)})}var Hc=class t extends Ot{_parse(e){if(typeof e.data!=\\\"string\\\"){let n=this._getOrReturnCtx(e),r=this._def.values;return(0,K.addIssueToContext)(n,{expected:Re.util.joinValues(r),received:n.parsedType,code:Me.ZodIssueCode.invalid_type}),K.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return(0,K.addIssueToContext)(n,{received:n.data,code:Me.ZodIssueCode.invalid_enum_value,options:r}),K.INVALID}return(0,K.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};F.ZodEnum=Hc;Hc.create=rM;var Wc=class extends Ot{_parse(e){let n=Re.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Re.ZodParsedType.string&&r.parsedType!==Re.ZodParsedType.number){let i=Re.util.objectValues(n);return(0,K.addIssueToContext)(r,{expected:Re.util.joinValues(i),received:r.parsedType,code:Me.ZodIssueCode.invalid_type}),K.INVALID}if(this._cache||(this._cache=new Set(Re.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=Re.util.objectValues(n);return(0,K.addIssueToContext)(r,{received:r.data,code:Me.ZodIssueCode.invalid_enum_value,options:i}),K.INVALID}return(0,K.OK)(e.data)}get enum(){return this._def.values}};F.ZodNativeEnum=Wc;Wc.create=(t,e)=>new Wc({values:t,typeName:ft.ZodNativeEnum,...Rt(e)});var Cl=class extends Ot{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.ZodParsedType.promise&&n.common.async===!1)return(0,K.addIssueToContext)(n,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.promise,received:n.parsedType}),K.INVALID;let r=n.parsedType===Re.ZodParsedType.promise?n.data:Promise.resolve(n.data);return(0,K.OK)(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}};F.ZodPromise=Cl;Cl.create=(t,e)=>new Cl({type:t,typeName:ft.ZodPromise,...Rt(e)});var zi=class extends Ot{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ft.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,a={addIssue:o=>{(0,K.addIssueToContext)(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type===\\\"preprocess\\\"){let o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value===\\\"aborted\\\")return K.INVALID;let l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status===\\\"aborted\\\"?K.INVALID:l.status===\\\"dirty\\\"||n.value===\\\"dirty\\\"?(0,K.DIRTY)(l.value):l});{if(n.value===\\\"aborted\\\")return K.INVALID;let s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status===\\\"aborted\\\"?K.INVALID:s.status===\\\"dirty\\\"||n.value===\\\"dirty\\\"?(0,K.DIRTY)(s.value):s}}if(i.type===\\\"refinement\\\"){let o=s=>{let l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error(\\\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\\\");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status===\\\"aborted\\\"?K.INVALID:(s.status===\\\"dirty\\\"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status===\\\"aborted\\\"?K.INVALID:(s.status===\\\"dirty\\\"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type===\\\"transform\\\")if(r.common.async===!1){let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,K.isValid)(o))return K.INVALID;let s=i.transform(o.value,a);if(s instanceof Promise)throw new Error(\\\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\\\");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>(0,K.isValid)(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):K.INVALID);Re.util.assertNever(i)}};F.ZodEffects=zi;F.ZodTransformer=zi;zi.create=(t,e,n)=>new zi({schema:t,typeName:ft.ZodEffects,effect:e,...Rt(n)});zi.createWithPreprocess=(t,e,n)=>new zi({schema:e,effect:{type:\\\"preprocess\\\",transform:t},typeName:ft.ZodEffects,...Rt(n)});var ca=class extends Ot{_parse(e){return this._getType(e)===Re.ZodParsedType.undefined?(0,K.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};F.ZodOptional=ca;ca.create=(t,e)=>new ca({innerType:t,typeName:ft.ZodOptional,...Rt(e)});var io=class extends Ot{_parse(e){return this._getType(e)===Re.ZodParsedType.null?(0,K.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};F.ZodNullable=io;io.create=(t,e)=>new io({innerType:t,typeName:ft.ZodNullable,...Rt(e)});var Fc=class extends Ot{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===Re.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};F.ZodDefault=Fc;Fc.create=(t,e)=>new Fc({innerType:t,typeName:ft.ZodDefault,defaultValue:typeof e.default==\\\"function\\\"?e.default:()=>e.default,...Rt(e)});var $c=class extends Ot{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,K.isAsync)(i)?i.then(a=>({status:\\\"valid\\\",value:a.status===\\\"valid\\\"?a.value:this._def.catchValue({get error(){return new Me.ZodError(r.common.issues)},input:r.data})})):{status:\\\"valid\\\",value:i.status===\\\"valid\\\"?i.value:this._def.catchValue({get error(){return new Me.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};F.ZodCatch=$c;$c.create=(t,e)=>new $c({innerType:t,typeName:ft.ZodCatch,catchValue:typeof e.catch==\\\"function\\\"?e.catch:()=>e.catch,...Rt(e)});var Bf=class extends Ot{_parse(e){if(this._getType(e)!==Re.ZodParsedType.nan){let r=this._getOrReturnCtx(e);return(0,K.addIssueToContext)(r,{code:Me.ZodIssueCode.invalid_type,expected:Re.ZodParsedType.nan,received:r.parsedType}),K.INVALID}return{status:\\\"valid\\\",value:e.data}}};F.ZodNaN=Bf;Bf.create=t=>new Bf({typeName:ft.ZodNaN,...Rt(t)});F.BRAND=Symbol(\\\"zod_brand\\\");var D0=class extends Ot{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}};F.ZodBranded=D0;var L0=class t extends Ot{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status===\\\"aborted\\\"?K.INVALID:a.status===\\\"dirty\\\"?(n.dirty(),(0,K.DIRTY)(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status===\\\"aborted\\\"?K.INVALID:i.status===\\\"dirty\\\"?(n.dirty(),{status:\\\"dirty\\\",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:ft.ZodPipeline})}};F.ZodPipeline=L0;var Kc=class extends Ot{_parse(e){let n=this._def.innerType._parse(e),r=i=>((0,K.isValid)(i)&&(i.value=Object.freeze(i.value)),i);return(0,K.isAsync)(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};F.ZodReadonly=Kc;Kc.create=(t,e)=>new Kc({innerType:t,typeName:ft.ZodReadonly,...Rt(e)});function JB(t,e){let n=typeof t==\\\"function\\\"?t(e):typeof t==\\\"string\\\"?{message:t}:t;return typeof n==\\\"string\\\"?{message:n}:n}function iM(t,e={},n){return t?_l.create().superRefine((r,i)=>{let a=t(r);if(a instanceof Promise)return a.then(o=>{if(!o){let s=JB(e,r),l=s.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...s,fatal:l})}});if(!a){let o=JB(e,r),s=o.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...o,fatal:s})}}):_l.create()}F.late={object:vi.lazycreate};var ft;(function(t){t.ZodString=\\\"ZodString\\\",t.ZodNumber=\\\"ZodNumber\\\",t.ZodNaN=\\\"ZodNaN\\\",t.ZodBigInt=\\\"ZodBigInt\\\",t.ZodBoolean=\\\"ZodBoolean\\\",t.ZodDate=\\\"ZodDate\\\",t.ZodSymbol=\\\"ZodSymbol\\\",t.ZodUndefined=\\\"ZodUndefined\\\",t.ZodNull=\\\"ZodNull\\\",t.ZodAny=\\\"ZodAny\\\",t.ZodUnknown=\\\"ZodUnknown\\\",t.ZodNever=\\\"ZodNever\\\",t.ZodVoid=\\\"ZodVoid\\\",t.ZodArray=\\\"ZodArray\\\",t.ZodObject=\\\"ZodObject\\\",t.ZodUnion=\\\"ZodUnion\\\",t.ZodDiscriminatedUnion=\\\"ZodDiscriminatedUnion\\\",t.ZodIntersection=\\\"ZodIntersection\\\",t.ZodTuple=\\\"ZodTuple\\\",t.ZodRecord=\\\"ZodRecord\\\",t.ZodMap=\\\"ZodMap\\\",t.ZodSet=\\\"ZodSet\\\",t.ZodFunction=\\\"ZodFunction\\\",t.ZodLazy=\\\"ZodLazy\\\",t.ZodLiteral=\\\"ZodLiteral\\\",t.ZodEnum=\\\"ZodEnum\\\",t.ZodEffects=\\\"ZodEffects\\\",t.ZodNativeEnum=\\\"ZodNativeEnum\\\",t.ZodOptional=\\\"ZodOptional\\\",t.ZodNullable=\\\"ZodNullable\\\",t.ZodDefault=\\\"ZodDefault\\\",t.ZodCatch=\\\"ZodCatch\\\",t.ZodPromise=\\\"ZodPromise\\\",t.ZodBranded=\\\"ZodBranded\\\",t.ZodPipeline=\\\"ZodPipeline\\\",t.ZodReadonly=\\\"ZodReadonly\\\"})(ft||(F.ZodFirstPartyTypeKind=ft={}));var MZ=(t,e={message:`Input not instance of ${t.name}`})=>iM(n=>n instanceof t,e);F.instanceof=MZ;var aM=xl.create;F.string=aM;var oM=Ic.create;F.number=oM;var RZ=Bf.create;F.nan=RZ;var OZ=Uc.create;F.bigint=OZ;var sM=Nc.create;F.boolean=sM;var IZ=Pc.create;F.date=IZ;var UZ=Tf.create;F.symbol=UZ;var NZ=jc.create;F.undefined=NZ;var PZ=zc.create;F.null=PZ;var jZ=_l.create;F.any=jZ;var zZ=ns.create;F.unknown=zZ;var DZ=Aa.create;F.never=DZ;var LZ=Ef.create;F.void=LZ;var qZ=rs.create;F.array=qZ;var VZ=vi.create;F.object=VZ;var HZ=vi.strictCreate;F.strictObject=HZ;var WZ=Dc.create;F.union=WZ;var FZ=oy.create;F.discriminatedUnion=FZ;var $Z=Lc.create;F.intersection=$Z;var KZ=ro.create;F.tuple=KZ;var ZZ=sy.create;F.record=ZZ;var YZ=Af.create;F.map=YZ;var GZ=kf.create;F.set=GZ;var QZ=ly.create;F.function=QZ;var XZ=qc.create;F.lazy=XZ;var JZ=Vc.create;F.literal=JZ;var eY=Hc.create;F.enum=eY;var tY=Wc.create;F.nativeEnum=tY;var nY=Cl.create;F.promise=nY;var lM=zi.create;F.effect=lM;F.transformer=lM;var rY=ca.create;F.optional=rY;var iY=io.create;F.nullable=iY;var aY=zi.createWithPreprocess;F.preprocess=aY;var oY=L0.create;F.pipeline=oY;var sY=()=>aM().optional();F.ostring=sY;var lY=()=>oM().optional();F.onumber=lY;var cY=()=>sM().optional();F.oboolean=cY;F.coerce={string:(t=>xl.create({...t,coerce:!0})),number:(t=>Ic.create({...t,coerce:!0})),boolean:(t=>Nc.create({...t,coerce:!0})),bigint:(t=>Uc.create({...t,coerce:!0})),date:(t=>Pc.create({...t,coerce:!0}))};F.NEVER=K.INVALID});var x4=V(da=>{\\\"use strict\\\";b();var uY=da&&da.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),Mf=da&&da.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&uY(e,t,n)};Object.defineProperty(da,\\\"__esModule\\\",{value:!0});Mf(ry(),da);Mf(b4(),da);Mf(YB(),da);Mf(j0(),da);Mf(cM(),da);Mf(ny(),da)});var _4=V(wi=>{\\\"use strict\\\";b();var uM=wi&&wi.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),dY=wi&&wi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,\\\"default\\\",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fY=wi&&wi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!==\\\"default\\\"&&Object.prototype.hasOwnProperty.call(t,n)&&uM(e,t,n);return dY(e,t),e},hY=wi&&wi.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&uM(e,t,n)};Object.defineProperty(wi,\\\"__esModule\\\",{value:!0});wi.z=void 0;var dM=fY(x4());wi.z=dM;hY(x4(),wi);wi.default=dM});var fM=V((_he,gY)=>{gY.exports={name:\\\"@ton/ton\\\",version:\\\"16.2.3\\\",repository:\\\"https://github.com/ton-org/ton.git\\\",author:\\\"Whales Corp. <developers@whalescorp.com>\\\",license:\\\"MIT\\\",main:\\\"dist/index.js\\\",files:[\\\"dist\\\",\\\"!*.test.*\\\",\\\"!*.spec.*\\\",\\\"!*.trait.*\\\",\\\"!__snapshots__\\\",\\\"!__testdata__\\\",\\\"!__tests__\\\"],scripts:{build:\\\"rm -fr dist && tsc -p ./tsconfig.build.json\\\",typecheck:\\\"tsc\\\",test:\\\"jest --verbose\\\",format:\\\"biome format --write .\\\",\\\"format:check\\\":\\\"biome format .\\\",coverage:\\\"jest -c ./jest-coverage.config.js\\\",release:\\\"yarn build && yarn release-it --npm.yarn1\\\"},devDependencies:{\\\"@biomejs/biome\\\":\\\"2.3.8\\\",\\\"@release-it/keep-a-changelog\\\":\\\"^5.0.0\\\",\\\"@swc/core\\\":\\\"^1.15.3\\\",\\\"@swc/jest\\\":\\\"^0.2.39\\\",\\\"@ton/core\\\":\\\"^0.63.0\\\",\\\"@ton/crypto\\\":\\\"3.2.0\\\",\\\"@ton/sandbox\\\":\\\"^0.40.0\\\",\\\"@ton/test-utils\\\":\\\"^0.12.0\\\",\\\"@types/jest\\\":\\\"^29.5.12\\\",\\\"@types/node\\\":\\\"^20.11.30\\\",jest:\\\"^29.7.0\\\",\\\"release-it\\\":\\\"^17.1.1\\\",typescript:\\\"^5.6.3\\\"},dependencies:{axios:\\\"1.14.0\\\",dataloader:\\\"^2.0.0\\\",zod:\\\"^3.21.4\\\"},peerDependencies:{\\\"@ton/core\\\":\\\">=0.63.0 <1.0.0\\\",\\\"@ton/crypto\\\":\\\">=3.2.0\\\"},publishConfig:{access:\\\"public\\\",registry:\\\"https://registry.npmjs.org/\\\"},\\\"release-it\\\":{github:{release:!0},plugins:{\\\"@release-it/keep-a-changelog\\\":{filename:\\\"CHANGELOG.md\\\"}}},packageManager:\\\"yarn@3.4.1\\\"}});var T4=V(Of=>{\\\"use strict\\\";b();var yM=Of&&Of.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Of,\\\"__esModule\\\",{value:!0});Of.HttpApi=void 0;var pY=nB(),hM=yM(aB()),mY=yM(h4()),Ee=_4(),yY=fM().version,Rf=Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"ton.blockIdExt\\\"),workchain:Ee.z.number(),shard:Ee.z.string(),seqno:Ee.z.number(),root_hash:Ee.z.string(),file_hash:Ee.z.string()}),bY=Ee.z.object({balance:Ee.z.union([Ee.z.number(),Ee.z.string()]),extra_currencies:Ee.z.optional(Ee.z.array(Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"extraCurrency\\\"),id:Ee.z.number(),amount:Ee.z.string()}))),state:Ee.z.union([Ee.z.literal(\\\"active\\\"),Ee.z.literal(\\\"uninitialized\\\"),Ee.z.literal(\\\"frozen\\\")]),data:Ee.z.string(),code:Ee.z.string(),last_transaction_id:Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"internal.transactionId\\\"),lt:Ee.z.string(),hash:Ee.z.string()}),block_id:Rf,sync_utime:Ee.z.number()}),vY=Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"ok\\\")}),wY=Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"query.fees\\\"),source_fees:Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"fees\\\"),in_fwd_fee:Ee.z.number(),storage_fee:Ee.z.number(),gas_fee:Ee.z.number(),fwd_fee:Ee.z.number()})}),xY=Ee.z.object({gas_used:Ee.z.number(),exit_code:Ee.z.number(),stack:Ee.z.array(Ee.z.unknown())}),_Y=Ee.z.union([Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"msg.dataRaw\\\"),body:Ee.z.string()}),Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"msg.dataText\\\"),text:Ee.z.string()}),Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"msg.dataDecryptedText\\\"),text:Ee.z.string()}),Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"msg.dataEncryptedText\\\"),text:Ee.z.string()})]),gM=Ee.z.object({source:Ee.z.string(),destination:Ee.z.string(),value:Ee.z.string(),fwd_fee:Ee.z.string(),ihr_fee:Ee.z.string(),created_lt:Ee.z.string(),body_hash:Ee.z.string(),msg_data:_Y,message:Ee.z.string().optional()}),C4=Ee.z.object({data:Ee.z.string(),utime:Ee.z.number(),transaction_id:Ee.z.object({lt:Ee.z.string(),hash:Ee.z.string()}),fee:Ee.z.string(),storage_fee:Ee.z.string(),other_fee:Ee.z.string(),in_msg:Ee.z.union([Ee.z.undefined(),gM]),out_msgs:Ee.z.array(gM)}),pM=Ee.z.array(C4),CY=Ee.z.object({state_root_hash:Ee.z.string(),last:Rf,init:Rf}),SY=Ee.z.object({shards:Ee.z.array(Rf)}),TY=Ee.z.object({\\\"@type\\\":Ee.z.literal(\\\"blocks.shortTxId\\\"),mode:Ee.z.number(),account:Ee.z.string(),lt:Ee.z.string(),hash:Ee.z.string()}),mM=Ee.z.object({id:Rf,req_count:Ee.z.number(),incomplete:Ee.z.boolean(),transactions:Ee.z.array(TY)}),cy=class{constructor(e,n,r,i){this.namespace=e,this.cache=n,this.codec=r,this.keyEncoder=i}async get(e){let n=await this.cache.get(this.namespace,this.keyEncoder(e));if(n){let r=this.codec.safeParse(JSON.parse(n));if(r.success)return r.data}return null}async set(e,n){n!==null?await this.cache.set(this.namespace,this.keyEncoder(e),JSON.stringify(n)):await this.cache.set(this.namespace,this.keyEncoder(e),null)}},S4=class{constructor(e,n){this.endpoint=e,this.cache=new pY.InMemoryCache,this.parameters={timeout:n?.timeout||3e4,apiKey:n?.apiKey,adapter:n?.adapter},this.shardCache=new cy(\\\"ton-shard\\\",this.cache,Ee.z.array(Rf),r=>r+\\\"\\\"),this.shardLoader=new hM.default(async r=>await Promise.all(r.map(async i=>{let a=await this.shardCache.get(i);if(a)return a;let o=(await this.doCall(\\\"shards\\\",{seqno:i},SY)).shards;return await this.shardCache.set(i,o),o}))),this.shardTransactionsCache=new cy(\\\"ton-shard-tx\\\",this.cache,mM,r=>r.workchain+\\\":\\\"+r.shard+\\\":\\\"+r.seqno),this.shardTransactionsLoader=new hM.default(async r=>await Promise.all(r.map(async i=>{let a=await this.shardTransactionsCache.get(i);if(a)return a;let o=await this.doCall(\\\"getBlockTransactions\\\",{workchain:i.workchain,seqno:i.seqno,shard:i.shard},mM);return await this.shardTransactionsCache.set(i,o),o})),{cacheKeyFn:r=>r.workchain+\\\":\\\"+r.shard+\\\":\\\"+r.seqno})}getAddressInformation(e){return this.doCall(\\\"getAddressInformation\\\",{address:e.toString()},bY)}async getTransactions(e,n){let r=n.inclusive;delete n.inclusive;let i;n.hash&&(i=globalThis.Buffer.from(n.hash,\\\"base64\\\").toString(\\\"hex\\\"));let a=n.limit;n.hash&&n.lt&&r!==!0&&a++;let o=await this.doCall(\\\"getTransactions\\\",{address:e.toString(),...n,limit:a,hash:i},pM);return o.length>a&&(o=o.slice(0,a)),n.hash&&n.lt&&r!==!0&&o.shift(),o}async getMasterchainInfo(){return await this.doCall(\\\"getMasterchainInfo\\\",{},CY)}async getShards(e){return await this.shardLoader.load(e)}async getBlockTransactions(e,n,r){return await this.shardTransactionsLoader.load({workchain:e,seqno:n,shard:r})}async getTransaction(e,n,r){let i=globalThis.Buffer.from(r,\\\"base64\\\").toString(\\\"hex\\\"),o=(await this.doCall(\\\"getTransactions\\\",{address:e.toString(),lt:n,hash:i,limit:1},pM)).find(s=>s.transaction_id.lt===n&&s.transaction_id.hash===r);return o||null}async callGetMethod(e,n,r){return await this.doCall(\\\"runGetMethod\\\",{address:e.toString(),method:n,stack:EY(r)},xY)}async sendBoc(e){await this.doCall(\\\"sendBoc\\\",{boc:e.toString(\\\"base64\\\")},vY)}async estimateFee(e,n){return await this.doCall(\\\"estimateFee\\\",{address:e.toString(),body:n.body.toBoc().toString(\\\"base64\\\"),init_data:n.initData?n.initData.toBoc().toString(\\\"base64\\\"):\\\"\\\",init_code:n.initCode?n.initCode.toBoc().toString(\\\"base64\\\"):\\\"\\\",ignore_chksig:n.ignoreSignature},wY)}async tryLocateResultTx(e,n,r){return await this.doCall(\\\"tryLocateResultTx\\\",{source:e.toString(),destination:n.toString(),created_lt:r},C4)}async tryLocateSourceTx(e,n,r){return await this.doCall(\\\"tryLocateSourceTx\\\",{source:e.toString(),destination:n.toString(),created_lt:r},C4)}async doCall(e,n,r){let i={\\\"Content-Type\\\":\\\"application/json\\\",\\\"X-Ton-Client-Version\\\":yY};this.parameters.apiKey&&(i[\\\"X-API-Key\\\"]=this.parameters.apiKey);let a=await mY.default.post(this.endpoint,JSON.stringify({id:\\\"1\\\",jsonrpc:\\\"2.0\\\",method:e,params:n}),{headers:i,timeout:this.parameters.timeout,adapter:this.parameters.adapter});if(a.status!==200||!a.data.ok)throw Error(\\\"Received error: \\\"+JSON.stringify(a.data));let o=r.safeParse(a.data.result);if(o.success)return o.data;throw Error(\\\"Malformed response: \\\"+o.error.format()._errors.join(\\\", \\\"))}};Of.HttpApi=S4;function EY(t){let e=[];for(let n of t)if(n.type===\\\"int\\\")e.push([\\\"num\\\",n.value.toString()]);else if(n.type===\\\"cell\\\")e.push([\\\"tvm.Cell\\\",n.cell.toBoc().toString(\\\"base64\\\")]);else if(n.type===\\\"slice\\\")e.push([\\\"tvm.Slice\\\",n.cell.toBoc().toString(\\\"base64\\\")]);else if(n.type===\\\"builder\\\")e.push([\\\"tvm.Builder\\\",n.cell.toBoc().toString(\\\"base64\\\")]);else throw Error(\\\"Unsupported stack item type: \\\"+n.type);return e}});var vM=V(uy=>{\\\"use strict\\\";b();Object.defineProperty(uy,\\\"__esModule\\\",{value:!0});uy.TonClient=void 0;var AY=T4(),Un=sn(),E4=class{constructor(e){this.parameters={endpoint:e.endpoint},this.api=new AY.HttpApi(this.parameters.endpoint,{timeout:e.timeout,apiKey:e.apiKey,adapter:e.httpAdapter})}async getBalance(e){return(await this.getContractState(e)).balance}async runMethod(e,n,r=[]){let i=await this.api.callGetMethod(e,n,r);if(i.exit_code!==0)throw Error(\\\"Unable to execute get method. Got exit_code: \\\"+i.exit_code);return{gas_used:i.gas_used,stack:bM(i.stack)}}async callGetMethod(e,n,r=[]){return this.runMethod(e,n,r)}async runMethodWithError(e,n,r=[]){let i=await this.api.callGetMethod(e,n,r);return{gas_used:i.gas_used,stack:bM(i.stack),exit_code:i.exit_code}}async callGetMethodWithError(e,n,r=[]){return this.runMethodWithError(e,n,r)}async getTransactions(e,n){let r=await this.api.getTransactions(e,n),i=[];for(let a of r)i.push((0,Un.loadTransaction)(Un.Cell.fromBoc(globalThis.Buffer.from(a.data,\\\"base64\\\"))[0].beginParse()));return i}async getTransaction(e,n,r){let i=await this.api.getTransaction(e,n,r);return i?(0,Un.loadTransaction)(Un.Cell.fromBoc(globalThis.Buffer.from(i.data,\\\"base64\\\"))[0].beginParse()):null}async tryLocateResultTx(e,n,r){let i=await this.api.tryLocateResultTx(e,n,r);return(0,Un.loadTransaction)(Un.Cell.fromBase64(i.data).beginParse())}async tryLocateSourceTx(e,n,r){let i=await this.api.tryLocateSourceTx(e,n,r);return(0,Un.loadTransaction)(Un.Cell.fromBase64(i.data).beginParse())}async getMasterchainInfo(){let e=await this.api.getMasterchainInfo();return{workchain:e.init.workchain,shard:e.last.shard,initSeqno:e.init.seqno,latestSeqno:e.last.seqno}}async getWorkchainShards(e){return(await this.api.getShards(e)).map(r=>({workchain:r.workchain,shard:r.shard,seqno:r.seqno}))}async getShardTransactions(e,n,r){let i=await this.api.getBlockTransactions(e,n,r);if(i.incomplete)throw Error(\\\"Unsupported\\\");return i.transactions.map(a=>({account:Un.Address.parseRaw(a.account),lt:a.lt,hash:a.hash}))}async sendMessage(e){let n=(0,Un.beginCell)().store((0,Un.storeMessage)(e)).endCell().toBoc();await this.api.sendBoc(n)}async sendFile(e){await this.api.sendBoc(e)}async estimateExternalMessageFee(e,n){return await this.api.estimateFee(e,{body:n.body,initCode:n.initCode,initData:n.initData,ignoreSignature:n.ignoreSignature})}async sendExternalMessage(e,n){if(await this.isContractDeployed(e.address)||!e.init){let r=(0,Un.external)({to:e.address,body:n});await this.sendMessage(r)}else{let r=(0,Un.external)({to:e.address,init:e.init,body:n});await this.sendMessage(r)}}async isContractDeployed(e){return(await this.getContractState(e)).state===\\\"active\\\"}async getContractState(e){let n=await this.api.getAddressInformation(e),r=BigInt(n.balance),i=n.state;return{balance:r,extra_currencies:n.extra_currencies,state:i,code:n.code!==\\\"\\\"?globalThis.Buffer.from(n.code,\\\"base64\\\"):null,data:n.data!==\\\"\\\"?globalThis.Buffer.from(n.data,\\\"base64\\\"):null,lastTransaction:n.last_transaction_id.lt!==\\\"0\\\"?{lt:n.last_transaction_id.lt,hash:n.last_transaction_id.hash}:null,blockId:{workchain:n.block_id.workchain,shard:n.block_id.shard,seqno:n.block_id.seqno},timestampt:n.sync_utime}}open(e){return(0,Un.openContract)(e,n=>A4(this,n.address,n.init))}provider(e,n){return A4(this,e,n??null)}};uy.TonClient=E4;function Zc(t){let e=t[\\\"@type\\\"];switch(e){case\\\"tvm.list\\\":case\\\"tvm.tuple\\\":return t.elements.map(Zc);case\\\"tvm.cell\\\":return Un.Cell.fromBoc(globalThis.Buffer.from(t.bytes,\\\"base64\\\"))[0];case\\\"tvm.slice\\\":return Un.Cell.fromBoc(globalThis.Buffer.from(t.bytes,\\\"base64\\\"))[0];case\\\"tvm.stackEntryCell\\\":return Zc(t.cell);case\\\"tvm.stackEntrySlice\\\":return Zc(t.slice);case\\\"tvm.stackEntryTuple\\\":return Zc(t.tuple);case\\\"tvm.stackEntryList\\\":return Zc(t.list);case\\\"tvm.stackEntryNumber\\\":return Zc(t.number);case\\\"tvm.numberDecimal\\\":return BigInt(t.number);default:throw Error(\\\"Unsupported item type: \\\"+e)}}function kY(t){if(t[0]===\\\"num\\\"){let e=t[1];return e.startsWith(\\\"-\\\")?{type:\\\"int\\\",value:-BigInt(e.slice(1))}:{type:\\\"int\\\",value:BigInt(e)}}else{if(t[0]===\\\"null\\\")return{type:\\\"null\\\"};if(t[0]===\\\"cell\\\")return{type:\\\"cell\\\",cell:Un.Cell.fromBoc(globalThis.Buffer.from(t[1].bytes,\\\"base64\\\"))[0]};if(t[0]===\\\"slice\\\")return{type:\\\"slice\\\",cell:Un.Cell.fromBoc(globalThis.Buffer.from(t[1].bytes,\\\"base64\\\"))[0]};if(t[0]===\\\"builder\\\")return{type:\\\"builder\\\",cell:Un.Cell.fromBoc(globalThis.Buffer.from(t[1].bytes,\\\"base64\\\"))[0]};if(t[0]===\\\"tuple\\\"||t[0]===\\\"list\\\")return t[1].elements.length===0?{type:\\\"null\\\"}:{type:\\\"tuple\\\",items:t[1].elements.map(Zc)};throw Error(\\\"Unsupported stack item type: \\\"+t[0])}}function bM(t){let e=[];for(let n of t)e.push(kY(n));return new Un.TupleReader(e)}function A4(t,e,n){return{async getState(){let r=await t.getContractState(e),i=r.balance,a=r.lastTransaction?{lt:BigInt(r.lastTransaction.lt),hash:globalThis.Buffer.from(r.lastTransaction.hash,\\\"base64\\\")}:null,o=null,s;if(r.state===\\\"active\\\")s={type:\\\"active\\\",code:r.code?r.code:null,data:r.data?r.data:null};else if(r.state===\\\"uninitialized\\\")s={type:\\\"uninit\\\"};else if(r.state===\\\"frozen\\\")s={type:\\\"frozen\\\",stateHash:globalThis.Buffer.alloc(0)};else throw Error(\\\"Unsupported state\\\");if(r.extra_currencies&&r.extra_currencies.length>0){o={};for(let l of r.extra_currencies)o[l.id]=BigInt(l.amount)}return{balance:i,extracurrency:o,last:a,state:s}},async get(r,i){if(typeof r!=\\\"string\\\")throw new Error(\\\"Method name must be a string for TonClient provider\\\");return{stack:(await t.runMethod(e,r,i)).stack}},async external(r){let i=null;n&&!await t.isContractDeployed(e)&&(i=n);let a=(0,Un.external)({to:e,init:i,body:r}),o=(0,Un.beginCell)().store((0,Un.storeMessage)(a)).endCell().toBoc();await t.sendFile(o)},async internal(r,i){let a=null;n&&!await t.isContractDeployed(e)&&(a=n);let o=!0;i.bounce!==null&&i.bounce!==void 0&&(o=i.bounce);let s;typeof i.value==\\\"string\\\"?s=(0,Un.toNano)(i.value):s=i.value;let l=null;typeof i.body==\\\"string\\\"?l=(0,Un.comment)(i.body):i.body&&(l=i.body),await r.send({to:e,value:s,bounce:o,sendMode:i.sendMode,extracurrency:i.extracurrency,init:a,body:l})},open(r){return(0,Un.openContract)(r,i=>A4(t,i.address,i.init??null))},getTransactions(r,i,a,o){return t.getTransactions(r,{limit:o??100,lt:i.toString(),hash:a.toString(\\\"base64\\\"),inclusive:!0})}}}});var wM=V(k4=>{\\\"use strict\\\";b();Object.defineProperty(k4,\\\"__esModule\\\",{value:!0});k4.toUrlSafe=BY;function BY(t){for(;t.indexOf(\\\"/\\\")>=0;)t=t.replace(\\\"/\\\",\\\"_\\\");for(;t.indexOf(\\\"+\\\")>=0;)t=t.replace(\\\"+\\\",\\\"-\\\");for(;t.indexOf(\\\"=\\\")>=0;)t=t.replace(\\\"=\\\",\\\"\\\");return t}});var AM=V(ao=>{\\\"use strict\\\";b();var dy=ao&&ao.__classPrivateFieldSet||function(t,e,n,r,i){if(r===\\\"m\\\")throw new TypeError(\\\"Private method is not writable\\\");if(r===\\\"a\\\"&&!i)throw new TypeError(\\\"Private accessor was defined without a setter\\\");if(typeof e==\\\"function\\\"?t!==e||!i:!e.has(t))throw new TypeError(\\\"Cannot write private member to an object whose class did not declare it\\\");return r===\\\"a\\\"?i.call(t,n):i?i.value=n:e.set(t,n),n},vt=ao&&ao.__classPrivateFieldGet||function(t,e,n,r){if(n===\\\"a\\\"&&!r)throw new TypeError(\\\"Private accessor was defined without a getter\\\");if(typeof e==\\\"function\\\"?t!==e||!r:!e.has(t))throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");return n===\\\"m\\\"?r:n===\\\"a\\\"?r.call(t):r?r.value:e.get(t)},MY=ao&&ao.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},xi,_i,Ci,Zr;Object.defineProperty(ao,\\\"__esModule\\\",{value:!0});ao.TonClient4=void 0;var RY=MY(h4()),Yr=sn(),B4=wM(),A=_4(),M4=class{constructor(e){xi.set(this,void 0),_i.set(this,void 0),Ci.set(this,void 0),Zr.set(this,void 0),dy(this,Zr,RY.default.create(),\\\"f\\\"),dy(this,xi,e.endpoint,\\\"f\\\"),dy(this,_i,e.timeout||5e3,\\\"f\\\"),dy(this,Ci,e.httpAdapter,\\\"f\\\"),e.requestInterceptor&&vt(this,Zr,\\\"f\\\").interceptors.request.use(e.requestInterceptor)}async getLastBlock(){let e=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/latest\\\",{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),n=OY.safeParse(e.data);if(!n.success)throw Error(\\\"Mailformed response: \\\"+n.error.format()._errors.join(\\\", \\\"));return n.data}async getBlock(e){let n=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e,{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),r=xM.safeParse(n.data);if(!r.success)throw Error(\\\"Mailformed response\\\");if(!r.data.exist)throw Error(\\\"Block is out of scope\\\");return r.data.block}async getBlockByUtime(e){let n=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/utime/\\\"+e,{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),r=xM.safeParse(n.data);if(!r.success)throw Error(\\\"Mailformed response\\\");if(!r.data.exist)throw Error(\\\"Block is out of scope\\\");return r.data.block}async getAccount(e,n){let r=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e+\\\"/\\\"+n.toString({urlSafe:!0}),{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),i=IY.safeParse(r.data);if(!i.success)throw Error(\\\"Mailformed response\\\");return i.data}async getAccountLite(e,n){let r=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e+\\\"/\\\"+n.toString({urlSafe:!0})+\\\"/lite\\\",{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),i=UY.safeParse(r.data);if(!i.success)throw Error(\\\"Mailformed response\\\");return i.data}async isContractDeployed(e,n){return(await this.getAccountLite(e,n)).account.state.type===\\\"active\\\"}async isAccountChanged(e,n,r){let i=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e+\\\"/\\\"+n.toString({urlSafe:!0})+\\\"/changed/\\\"+r.toString(10),{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),a=NY.safeParse(i.data);if(!a.success)throw Error(\\\"Mailformed response\\\");return a.data}async getAccountTransactions(e,n,r){let i=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/account/\\\"+e.toString({urlSafe:!0})+\\\"/tx/\\\"+n.toString(10)+\\\"/\\\"+(0,B4.toUrlSafe)(r.toString(\\\"base64\\\")),{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),a=DY.safeParse(i.data);if(!a.success)throw Error(\\\"Mailformed response\\\");let o=a.data,s=[],l=Yr.Cell.fromBoc(globalThis.Buffer.from(o.boc,\\\"base64\\\"));for(let c=0;c<o.blocks.length;c++)s.push({block:o.blocks[c],tx:(0,Yr.loadTransaction)(l[c].beginParse())});return s}async getAccountTransactionsParsed(e,n,r,i=20){let a=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/account/\\\"+e.toString({urlSafe:!0})+\\\"/tx/parsed/\\\"+n.toString(10)+\\\"/\\\"+(0,B4.toUrlSafe)(r.toString(\\\"base64\\\")),{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\"),params:{count:i}}),o=ZY.safeParse(a.data);if(!o.success)throw Error(\\\"Mailformed response\\\");return o.data}async getConfig(e,n){let r=\\\"\\\";n&&n.length>0&&(r=\\\"/\\\"+[...n].sort().join(\\\",\\\"));let i=await vt(this,Zr,\\\"f\\\").get(vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e+\\\"/config\\\"+r,{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),a=jY.safeParse(i.data);if(!a.success)throw Error(\\\"Mailformed response\\\");return a.data}async runMethod(e,n,r,i){let a=i&&i.length>0?\\\"/\\\"+(0,B4.toUrlSafe)((0,Yr.serializeTuple)(i).toBoc({idx:!1,crc32:!1}).toString(\\\"base64\\\")):\\\"\\\",o=vt(this,xi,\\\"f\\\")+\\\"/block/\\\"+e+\\\"/\\\"+n.toString({urlSafe:!0})+\\\"/run/\\\"+encodeURIComponent(r)+a,s=await vt(this,Zr,\\\"f\\\").get(o,{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")}),l=PY.safeParse(s.data);if(!l.success)throw Error(\\\"Mailformed response\\\");let c=l.data.resultRaw?(0,Yr.parseTuple)(Yr.Cell.fromBoc(globalThis.Buffer.from(l.data.resultRaw,\\\"base64\\\"))[0]):[];return{exitCode:l.data.exitCode,result:c,resultRaw:l.data.resultRaw,block:l.data.block,shardBlock:l.data.shardBlock,reader:new Yr.TupleReader(c)}}async sendMessage(e){let n=await vt(this,Zr,\\\"f\\\").post(vt(this,xi,\\\"f\\\")+\\\"/send\\\",{boc:e.toString(\\\"base64\\\")},{adapter:vt(this,Ci,\\\"f\\\"),timeout:vt(this,_i,\\\"f\\\")});if(!zY.safeParse(n.data).success)throw Error(\\\"Mailformed response\\\");return{status:n.data.status}}open(e){return(0,Yr.openContract)(e,n=>q0(this,null,n.address,n.init))}openAt(e,n){return(0,Yr.openContract)(n,r=>q0(this,e,r.address,r.init))}provider(e,n){return q0(this,null,e,n??null)}providerAt(e,n,r){return q0(this,e,n,r??null)}};ao.TonClient4=M4;xi=new WeakMap,_i=new WeakMap,Ci=new WeakMap,Zr=new WeakMap;function q0(t,e,n,r){return{async getState(){let i=e;i===null&&(i=(await t.getLastBlock()).last.seqno);let a=await t.getAccount(i,n),o=a.account.last?{lt:BigInt(a.account.last.lt),hash:globalThis.Buffer.from(a.account.last.hash,\\\"base64\\\")}:null,s;if(a.account.state.type===\\\"active\\\")s={type:\\\"active\\\",code:a.account.state.code?globalThis.Buffer.from(a.account.state.code,\\\"base64\\\"):null,data:a.account.state.data?globalThis.Buffer.from(a.account.state.data,\\\"base64\\\"):null};else if(a.account.state.type===\\\"uninit\\\")s={type:\\\"uninit\\\"};else if(a.account.state.type===\\\"frozen\\\")s={type:\\\"frozen\\\",stateHash:globalThis.Buffer.from(a.account.state.stateHash,\\\"base64\\\")};else throw Error(\\\"Unsupported state\\\");let l=null;if(a.account.balance.currencies){l={};let c=a.account.balance.currencies;for(let[u,d]of Object.entries(c))l[Number(u)]=BigInt(d)}return{balance:BigInt(a.account.balance.coins),extracurrency:l,last:o,state:s}},async get(i,a){if(typeof i!=\\\"string\\\")throw new Error(\\\"Method name must be a string for TonClient4 provider\\\");let o=e;o===null&&(o=(await t.getLastBlock()).last.seqno);let s=await t.runMethod(o,n,i,a);if(s.exitCode!==0&&s.exitCode!==1)throw Error(\\\"Exit code: \\\"+s.exitCode);return{stack:new Yr.TupleReader(s.result)}},async external(i){let a=await t.getLastBlock(),o=null;r&&(await t.getAccountLite(a.last.seqno,n)).account.state.type!==\\\"active\\\"&&(o=r);let s=(0,Yr.external)({to:n,init:o,body:i}),l=(0,Yr.beginCell)().store((0,Yr.storeMessage)(s)).endCell().toBoc();await t.sendMessage(l)},async internal(i,a){let o=await t.getLastBlock(),s=null;r&&(await t.getAccountLite(o.last.seqno,n)).account.state.type!==\\\"active\\\"&&(s=r);let l=!0;a.bounce!==null&&a.bounce!==void 0&&(l=a.bounce);let c;typeof a.value==\\\"string\\\"?c=(0,Yr.toNano)(a.value):c=a.value;let u=null;typeof a.body==\\\"string\\\"?u=(0,Yr.comment)(a.body):a.body&&(u=a.body),await i.send({to:n,value:c,extracurrency:a.extracurrency,bounce:l,sendMode:a.sendMode,init:s,body:u})},open(i){return(0,Yr.openContract)(i,a=>q0(t,e,a.address,a.init??null))},async getTransactions(i,a,o,s){let l=typeof s==\\\"number\\\";if(l&&s<=0)return[];let c=[];do{let u=await t.getAccountTransactions(i,a,o),d=u[0].tx,[h,g]=[d.lt,d.hash()];if(c.length>0&&h===a&&g.equals(o)&&u.shift(),u.length===0)break;let E=u[u.length-1].tx,[N,_]=[E.lt,E.hash()];if(N===a&&_.equals(o))break;c.push(...u.map(v=>v.tx)),a=N,o=_}while(l&&c.length<s);return l&&(c=c.slice(0,s)),c}}}var OY=A.z.object({last:A.z.object({seqno:A.z.number(),shard:A.z.string(),workchain:A.z.number(),fileHash:A.z.string(),rootHash:A.z.string()}),init:A.z.object({fileHash:A.z.string(),rootHash:A.z.string()}),stateRootHash:A.z.string(),now:A.z.number()}),xM=A.z.union([A.z.object({exist:A.z.literal(!1)}),A.z.object({exist:A.z.literal(!0),block:A.z.object({shards:A.z.array(A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string(),transactions:A.z.array(A.z.object({account:A.z.string(),hash:A.z.string(),lt:A.z.string()}))}))})})]),TM=A.z.object({lastPaid:A.z.number(),duePayment:A.z.union([A.z.null(),A.z.string()]),used:A.z.object({bits:A.z.number(),cells:A.z.number(),publicCells:A.z.number().optional()})}),IY=A.z.object({account:A.z.object({state:A.z.union([A.z.object({type:A.z.literal(\\\"uninit\\\")}),A.z.object({type:A.z.literal(\\\"active\\\"),code:A.z.union([A.z.string(),A.z.null()]),data:A.z.union([A.z.string(),A.z.null()])}),A.z.object({type:A.z.literal(\\\"frozen\\\"),stateHash:A.z.string()})]),balance:A.z.object({coins:A.z.string(),currencies:A.z.record(A.z.string(),A.z.string())}),last:A.z.union([A.z.null(),A.z.object({lt:A.z.string(),hash:A.z.string()})]),storageStat:A.z.union([A.z.null(),TM])}),block:A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string()})}),UY=A.z.object({account:A.z.object({state:A.z.union([A.z.object({type:A.z.literal(\\\"uninit\\\")}),A.z.object({type:A.z.literal(\\\"active\\\"),codeHash:A.z.string(),dataHash:A.z.string()}),A.z.object({type:A.z.literal(\\\"frozen\\\"),stateHash:A.z.string()})]),balance:A.z.object({coins:A.z.string(),currencies:A.z.record(A.z.string(),A.z.string())}),last:A.z.union([A.z.null(),A.z.object({lt:A.z.string(),hash:A.z.string()})]),storageStat:A.z.union([A.z.null(),TM])})}),NY=A.z.object({changed:A.z.boolean(),block:A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string()})}),PY=A.z.object({exitCode:A.z.number(),resultRaw:A.z.union([A.z.string(),A.z.null()]),block:A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string()}),shardBlock:A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string()})}),jY=A.z.object({config:A.z.object({cell:A.z.string(),address:A.z.string(),globalBalance:A.z.object({coins:A.z.string()})})}),zY=A.z.object({status:A.z.number()}),EM=A.z.array(A.z.object({workchain:A.z.number(),seqno:A.z.number(),shard:A.z.string(),rootHash:A.z.string(),fileHash:A.z.string()})),DY=A.z.object({blocks:EM,boc:A.z.string()}),_M=A.z.object({bits:A.z.number(),data:A.z.string()}),LY=A.z.union([A.z.object({type:A.z.literal(\\\"internal\\\"),value:A.z.string(),dest:A.z.string(),src:A.z.string(),bounced:A.z.boolean(),bounce:A.z.boolean(),ihrDisabled:A.z.boolean(),createdAt:A.z.number(),createdLt:A.z.string(),fwdFee:A.z.string(),ihrFee:A.z.string()}),A.z.object({type:A.z.literal(\\\"external-in\\\"),dest:A.z.string(),src:A.z.union([_M,A.z.null()]),importFee:A.z.string()}),A.z.object({type:A.z.literal(\\\"external-out\\\"),dest:A.z.union([_M,A.z.null()])})]),qY=A.z.object({splitDepth:A.z.union([A.z.number(),A.z.null()]),code:A.z.union([A.z.string(),A.z.null()]),data:A.z.union([A.z.string(),A.z.null()]),special:A.z.union([A.z.object({tick:A.z.boolean(),tock:A.z.boolean()}),A.z.null()])}),CM=A.z.object({body:A.z.string(),info:LY,init:A.z.union([qY,A.z.null()])}),SM=A.z.union([A.z.literal(\\\"uninitialized\\\"),A.z.literal(\\\"frozen\\\"),A.z.literal(\\\"active\\\"),A.z.literal(\\\"non-existing\\\")]),VY=A.z.union([A.z.object({type:A.z.literal(\\\"comment\\\"),comment:A.z.string()}),A.z.object({type:A.z.literal(\\\"payload\\\"),cell:A.z.string()})]),HY=A.z.union([A.z.object({kind:A.z.literal(\\\"ton\\\"),amount:A.z.string()}),A.z.object({kind:A.z.literal(\\\"token\\\"),amount:A.z.string()})]),WY=A.z.union([A.z.literal(\\\"jetton::excesses\\\"),A.z.literal(\\\"jetton::transfer\\\"),A.z.literal(\\\"jetton::transfer_notification\\\"),A.z.literal(\\\"deposit\\\"),A.z.literal(\\\"deposit::ok\\\"),A.z.literal(\\\"withdraw\\\"),A.z.literal(\\\"withdraw::all\\\"),A.z.literal(\\\"withdraw::delayed\\\"),A.z.literal(\\\"withdraw::ok\\\"),A.z.literal(\\\"airdrop\\\")]),FY=A.z.object({type:WY,options:A.z.optional(A.z.record(A.z.string()))}),$Y=A.z.object({address:A.z.string(),comment:A.z.optional(A.z.string()),items:A.z.array(HY),op:A.z.optional(FY)}),KY=A.z.object({address:A.z.string(),lt:A.z.string(),hash:A.z.string(),prevTransaction:A.z.object({lt:A.z.string(),hash:A.z.string()}),time:A.z.number(),outMessagesCount:A.z.number(),oldStatus:SM,newStatus:SM,fees:A.z.string(),update:A.z.object({oldHash:A.z.string(),newHash:A.z.string()}),inMessage:A.z.union([CM,A.z.null()]),outMessages:A.z.array(CM),parsed:A.z.object({seqno:A.z.union([A.z.number(),A.z.null()]),body:A.z.union([VY,A.z.null()]),status:A.z.union([A.z.literal(\\\"success\\\"),A.z.literal(\\\"failed\\\"),A.z.literal(\\\"pending\\\")]),dest:A.z.union([A.z.string(),A.z.null()]),kind:A.z.union([A.z.literal(\\\"out\\\"),A.z.literal(\\\"in\\\")]),amount:A.z.string(),resolvedAddress:A.z.string(),bounced:A.z.boolean(),mentioned:A.z.array(A.z.string())}),operation:$Y}),ZY=A.z.object({blocks:EM,transactions:A.z.array(KY)})});var O4=V(fy=>{\\\"use strict\\\";b();Object.defineProperty(fy,\\\"__esModule\\\",{value:!0});fy.loadWalletIdV5Beta=YY;fy.storeWalletIdV5Beta=GY;var R4=sn(),kM={v5:0};function YY(t){let e=new R4.BitReader(new R4.BitString(typeof t==\\\"bigint\\\"?globalThis.Buffer.from(t.toString(16),\\\"hex\\\"):t instanceof R4.Slice?t.loadBuffer(10):t,0,80)),n=e.loadInt(32),r=e.loadInt(8),i=e.loadUint(8),a=e.loadUint(32),o=Object.entries(kM).find(([s,l])=>l===i)?.[0];if(o===void 0)throw new Error(`Can't deserialize walletId: unknown wallet version ${i}`);return{networkGlobalId:n,workchain:r,walletVersion:o,subwalletNumber:a}}function GY(t){return e=>{e.storeInt(t.networkGlobalId,32),e.storeInt(t.workchain,8),e.storeUint(kM[t.walletVersion],8),e.storeUint(t.subwalletNumber,32)}}});var I4=V(gy=>{\\\"use strict\\\";b();Object.defineProperty(gy,\\\"__esModule\\\",{value:!0});gy.WalletContractV5Beta=void 0;var oo=sn(),BM=ka(),MM=O4(),hy=class t{static create(e){let n={networkGlobalId:e.walletId?.networkGlobalId??-239,workchain:e?.walletId?.workchain??0,subwalletNumber:e?.walletId?.subwalletNumber??0,walletVersion:e?.walletId?.walletVersion??\\\"v5\\\"};return new t(n,e.publicKey,e.domain)}constructor(e,n,r){this.walletId=e,this.publicKey=n,this.walletId=e,this.domain=r;let i=oo.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAIwAIQgLkzzsvTG1qYeoPK1RH0mZ4WyavNjfbLe7mvNGqgm80Eg3NjhE=\\\",\\\"base64\\\"))[0],a=(0,oo.beginCell)().storeInt(0,33).store((0,MM.storeWalletIdV5Beta)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:i,data:a},this.address=(0,oo.contractAddress)(this.walletId.workchain,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async getExtensions(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"get_extensions\\\",[])).stack.readCellOpt():null}async getExtensionsArray(e){let n=await this.getExtensions(e);if(!n)return[];let r=oo.Dictionary.loadDirect(oo.Dictionary.Keys.BigUint(256),oo.Dictionary.Values.BigInt(8),n);return r.keys().map(i=>{let a=r.get(i),o=i^a+1n;return oo.Address.parseRaw(`${a}:${o.toString(16).padStart(64,\\\"0\\\")}`)})}async getIsSecretKeyAuthEnabled(e){return(await e.get(\\\"get_is_signature_auth_allowed\\\",[])).stack.readNumber()!==0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=await this.createTransfer(n);await this.send(e,r)}async sendAddExtension(e,n){let r=await this.createAddExtension(n);await this.send(e,r)}async sendRemoveExtension(e,n){let r=await this.createRemoveExtension(n);await this.send(e,r)}async sendActionsBatch(e,n){let r=await this.createRequest(n);await this.send(e,r)}createActions(e){return e.messages.map(r=>({type:\\\"sendMsg\\\",mode:e.sendMode,outMsg:r}))}createTransfer(e){return this.createRequest({...e,actions:this.createActions({messages:e.messages,sendMode:e.sendMode})})}createAddExtension(e){return this.createRequest({...e,actions:[{type:\\\"addExtension\\\",address:e.extensionAddress}]})}createRemoveExtension(e){return this.createRequest({...e,actions:[{type:\\\"removeExtension\\\",address:e.extensionAddress}]})}createRequest(e){return e.authType===\\\"extension\\\"?(0,BM.createWalletTransferV5Beta)(e):(0,BM.createWalletTransferV5Beta)({...e,walletId:(0,MM.storeWalletIdV5Beta)(this.walletId),domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode??oo.SendMode.PAY_GAS_SEPARATELY+oo.SendMode.IGNORE_ERRORS,messages:[(0,oo.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};gy.WalletContractV5Beta=hy;hy.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396}});var U4=V(py=>{\\\"use strict\\\";b();Object.defineProperty(py,\\\"__esModule\\\",{value:!0});py.isOutActionExtended=RM;py.isOutActionBasic=QY;function RM(t){return t.type===\\\"setIsPublicKeyEnabled\\\"||t.type===\\\"addExtension\\\"||t.type===\\\"removeExtension\\\"}function QY(t){return!RM(t)}});var N4=V(If=>{\\\"use strict\\\";b();Object.defineProperty(If,\\\"__esModule\\\",{value:!0});If.storeOutActionExtendedV5Beta=PM;If.loadOutActionV5BetaExtended=jM;If.storeOutListExtendedV5Beta=zM;If.loadOutListExtendedV5Beta=tG;var my=sn(),OM=U4(),IM=550222170;function XY(t){return e=>{e.storeUint(IM,32).storeUint(t.isEnabled?1:0,1)}}var UM=474012575;function JY(t){return e=>{e.storeUint(UM,32).storeAddress(t.address)}}var NM=1588524196;function eG(t){return e=>{e.storeUint(NM,32).storeAddress(t.address)}}function PM(t){switch(t.type){case\\\"setIsPublicKeyEnabled\\\":return XY(t);case\\\"addExtension\\\":return JY(t);case\\\"removeExtension\\\":return eG(t);default:throw new Error(\\\"Unknown action type\\\"+t?.type)}}function jM(t){let e=t.loadUint(32);switch(e){case IM:return{type:\\\"setIsPublicKeyEnabled\\\",isEnabled:!!t.loadUint(1)};case UM:return{type:\\\"addExtension\\\",address:t.loadAddress()};case NM:return{type:\\\"removeExtension\\\",address:t.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${e.toString(16)}`)}}function zM(t){let[e,...n]=t;if(!e||!(0,OM.isOutActionExtended)(e)){if(t.some(OM.isOutActionExtended))throw new Error(\\\"Can't serialize actions list: all extended actions must be placed before out actions\\\");return r=>{r.storeUint(0,1).storeRef((0,my.beginCell)().store((0,my.storeOutList)(t)).endCell())}}return r=>{r.storeUint(1,1).store(PM(e)).storeRef((0,my.beginCell)().store(zM(n)).endCell())}}function tG(t){let e=[];for(;t.loadUint(1);){let r=jM(t);e.push(r),t=t.loadRef().beginParse()}let n=(0,my.loadOutList)(t.loadRef().beginParse());if(n.some(r=>r.type===\\\"setCode\\\"))throw new Error(\\\"Can't deserialize actions list: only sendMsg actions are allowed for wallet v5\\\");return e.concat(n)}});var DM=V(P4=>{\\\"use strict\\\";b();Object.defineProperty(P4,\\\"__esModule\\\",{value:!0});P4.signPayload=rG;var nG=sn();function rG(t,e,n){if(\\\"secretKey\\\"in t){let r=(0,nG.domainSign)({data:e.endCell().hash(),secretKey:t.secretKey,domain:t.domain});return n(r,e)}else return t.signer(e.endCell()).then(r=>n(r,e))}});var j4=V(V0=>{\\\"use strict\\\";b();Object.defineProperty(V0,\\\"__esModule\\\",{value:!0});V0.isWalletIdV5R1ClientContext=LM;V0.loadWalletIdV5R1=iG;V0.storeWalletIdV5R1=aG;var Uf=sn();function LM(t){return typeof t!=\\\"number\\\"}var qM={v5r1:0};function iG(t,e){let n=new Uf.BitReader(new Uf.BitString(typeof t==\\\"bigint\\\"?globalThis.Buffer.from(t.toString(16).padStart(8,\\\"0\\\"),\\\"hex\\\"):t instanceof Uf.Slice?t.loadBuffer(4):t,0,32)).loadInt(32),r=BigInt(n)^BigInt(e),i=(0,Uf.beginCell)().storeInt(r,32).endCell().beginParse();if(i.loadUint(1)){let o=i.loadInt(8),s=i.loadUint(8),l=i.loadUint(15),c=Object.entries(qM).find(([u,d])=>d===s)?.[0];if(c===void 0)throw new Error(`Can't deserialize walletId: unknown wallet version ${s}`);return{networkGlobalId:e,context:{walletVersion:c,workchain:o,subwalletNumber:l}}}else{let o=i.loadUint(31);return{networkGlobalId:e,context:o}}}function aG(t){return e=>{let n;return LM(t.context)?n=(0,Uf.beginCell)().storeUint(1,1).storeInt(t.context.workchain,8).storeUint(qM[t.context.walletVersion],8).storeUint(t.context.subwalletNumber,15).endCell().beginParse().loadInt(32):n=(0,Uf.beginCell)().storeUint(0,1).storeUint(t.context,31).endCell().beginParse().loadInt(32),e.storeInt(BigInt(t.networkGlobalId)^BigInt(n),32)}}});var D4=V(by=>{\\\"use strict\\\";b();Object.defineProperty(by,\\\"__esModule\\\",{value:!0});by.WalletContractV5R1=void 0;var so=sn(),VM=ka(),z4=j4(),yy=class t{static create(e){let n=0;return\\\"workchain\\\"in e&&e.workchain!=null&&(n=e.workchain),e.walletId?.context&&(0,z4.isWalletIdV5R1ClientContext)(e.walletId.context)&&e.walletId.context.workchain!=null&&(n=e.walletId.context.workchain),new t(n,e.publicKey,{networkGlobalId:e.walletId?.networkGlobalId??-239,context:e.walletId?.context??{workchain:0,walletVersion:\\\"v5r1\\\",subwalletNumber:0}},e.domain)}constructor(e,n,r,i,a){this.publicKey=n,this.walletId=r,this.globalId=a,this.walletId=r,this.domain=i;let o=so.Cell.fromBoc(globalThis.Buffer.from(\\\"b5ee9c7241021401000281000114ff00f4a413f4bcf2c80b01020120020d020148030402dcd020d749c120915b8f6320d70b1f2082106578746ebd21821073696e74bdb0925f03e082106578746eba8eb48020d72101d074d721fa4030fa44f828fa443058bd915be0ed44d0810141d721f4058307f40e6fa1319130e18040d721707fdb3ce03120d749810280b99130e070e2100f020120050c020120060902016e07080019adce76a2684020eb90eb85ffc00019af1df6a2684010eb90eb858fc00201480a0b0017b325fb51341c75c875c2c7e00011b262fb513435c280200019be5f0f6a2684080a0eb90fa02c0102f20e011e20d70b1f82107369676ebaf2e08a7f0f01e68ef0eda2edfb218308d722028308d723208020d721d31fd31fd31fed44d0d200d31f20d31fd3ffd70a000af90140ccf9109a28945f0adb31e1f2c087df02b35007b0f2d0845125baf2e0855036baf2e086f823bbf2d0882292f800de01a47fc8ca00cb1f01cf16c9ed542092f80fde70db3cd81003f6eda2edfb02f404216e926c218e4c0221d73930709421c700b38e2d01d72820761e436c20d749c008f2e09320d74ac002f2e09320d71d06c712c2005230b0f2d089d74cd7393001a4e86c128407bbf2e093d74ac000f2e093ed55e2d20001c000915be0ebd72c08142091709601d72c081c12e25210b1e30f20d74a111213009601fa4001fa44f828fa443058baf2e091ed44d0810141d718f405049d7fc8ca0040048307f453f2e08b8e14038307f45bf2e08c22d70a00216e01b3b0f2d090e2c85003cf1612f400c9ed54007230d72c08248e2d21f2e092d200ed44d0d2005113baf2d08f54503091319c01810140d721d70a00f2e08ee2c8ca0058cf16c9ed5493f2c08de20010935bdb31e1d74cd0b4d6c35e\\\",\\\"hex\\\"))[0],s=(0,so.beginCell)().storeUint(1,1).storeUint(0,32).store((0,z4.storeWalletIdV5R1)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:o,data:s},this.address=(0,so.contractAddress)(e,{code:o,data:s})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async getExtensions(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"get_extensions\\\",[])).stack.readCellOpt():null}async getExtensionsArray(e){let n=await this.getExtensions(e);return n?so.Dictionary.loadDirect(so.Dictionary.Keys.BigUint(256),so.Dictionary.Values.BigInt(1),n).keys().map(i=>{let a=this.address.workChain;return so.Address.parseRaw(`${a}:${i.toString(16).padStart(64,\\\"0\\\")}`)}):[]}async getIsSecretKeyAuthEnabled(e){return(await e.get(\\\"is_signature_allowed\\\",[])).stack.readBoolean()}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=await this.createTransfer(n);await this.send(e,r)}async sendAddExtension(e,n){let r=await this.createAddExtension(n);await this.send(e,r)}async sendRemoveExtension(e,n){let r=await this.createRemoveExtension(n);await this.send(e,r)}createActions(e){return e.messages.map(r=>({type:\\\"sendMsg\\\",mode:e.sendMode,outMsg:r}))}createTransfer(e){return this.createRequest({actions:this.createActions({messages:e.messages,sendMode:e.sendMode}),...e})}createAddExtension(e){return this.createRequest({actions:[{type:\\\"addExtension\\\",address:e.extensionAddress}],...e})}createRemoveExtension(e){return this.createRequest({actions:[{type:\\\"removeExtension\\\",address:e.extensionAddress}],...e})}createRequest(e){return e.authType===\\\"extension\\\"?(0,VM.createWalletTransferV5R1)(e):(0,VM.createWalletTransferV5R1)({...e,walletId:(0,z4.storeWalletIdV5R1)(this.walletId),domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode??so.SendMode.PAY_GAS_SEPARATELY+so.SendMode.IGNORE_ERRORS,messages:[(0,so.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};by.WalletContractV5R1=yy;yy.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396}});var V4=V(Sl=>{\\\"use strict\\\";b();Object.defineProperty(Sl,\\\"__esModule\\\",{value:!0});Sl.storeOutActionExtendedV5R1=q4;Sl.loadOutActionExtendedV5R1=L4;Sl.storeOutListExtendedV5R1=cG;Sl.loadOutListExtendedV5R1=uG;Sl.toSafeV5R1SendMode=ZM;Sl.patchV5R1ActionsSendMode=dG;var H0=sn(),HM=U4(),WM=4;function oG(t){return e=>{e.storeUint(WM,8).storeUint(t.isEnabled?1:0,1)}}var FM=2;function sG(t){return e=>{e.storeUint(FM,8).storeAddress(t.address)}}var $M=3;function lG(t){return e=>{e.storeUint($M,8).storeAddress(t.address)}}function q4(t){switch(t.type){case\\\"setIsPublicKeyEnabled\\\":return oG(t);case\\\"addExtension\\\":return sG(t);case\\\"removeExtension\\\":return lG(t);default:throw new Error(\\\"Unknown action type\\\"+t?.type)}}function L4(t){let e=t.loadUint(8);switch(e){case WM:return{type:\\\"setIsPublicKeyEnabled\\\",isEnabled:!!t.loadUint(1)};case FM:return{type:\\\"addExtension\\\",address:t.loadAddress()};case $M:return{type:\\\"removeExtension\\\",address:t.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${e.toString(16)}`)}}function cG(t){let e=t.filter(HM.isOutActionExtended),n=t.filter(HM.isOutActionBasic);return r=>{let i=n.length?(0,H0.beginCell)().store((0,H0.storeOutList)(n)):null;if(r.storeMaybeRef(i),e.length===0)r.storeUint(0,1);else{let[a,...o]=e;r.storeUint(1,1).store(q4(a)),o.length>0&&r.storeRef(KM(o))}}}function KM(t){let[e,...n]=t,r=(0,H0.beginCell)().store(q4(e));return n.length>0&&(r=r.storeRef(KM(n))),r.endCell()}function uG(t){let e=[],n=t.loadMaybeRef();if(n){let r=(0,H0.loadOutList)(n.beginParse());if(r.some(i=>i.type!==\\\"sendMsg\\\"))throw new Error(\\\"Can't deserialize actions list: only sendMsg actions are allowed for wallet v5r1\\\");e.push(...r)}if(t.loadBoolean()){let r=L4(t);e.push(r)}for(;t.remainingRefs>0;){t=t.loadRef().beginParse();let r=L4(t);e.push(r)}return e}function ZM(t,e){return e===\\\"internal\\\"||e===\\\"extension\\\"?t:t|H0.SendMode.IGNORE_ERRORS}function dG(t,e){return t.map(n=>n.type===\\\"sendMsg\\\"?{...n,mode:ZM(n.mode,e)}:n)}});var H4=V(vy=>{\\\"use strict\\\";b();Object.defineProperty(vy,\\\"__esModule\\\",{value:!0});vy.storeExtendedAction=fG;vy.loadExtendedAction=hG;var is=sn();function fG(t){return e=>{switch(t.type){case\\\"sendMsg\\\":e.storeUint(0,8);for(let n of t.messages)e.storeUint(t.sendMode??is.SendMode.NONE,8),e.storeRef((0,is.beginCell)().store((0,is.storeMessageRelaxed)(n)));break;case\\\"addAndDeployPlugin\\\":e.storeUint(1,8),e.storeInt(t.workchain,8),e.storeCoins(t.forwardAmount),e.storeRef((0,is.beginCell)().store((0,is.storeStateInit)(t.stateInit))),e.storeRef(t.body);break;case\\\"addPlugin\\\":e.storeUint(2,8),e.storeInt(t.address.workChain,8),e.storeBuffer(t.address.hash),e.storeCoins(t.forwardAmount),e.storeUint(t.queryId??0n,64);break;case\\\"removePlugin\\\":e.storeUint(3,8),e.storeInt(t.address.workChain,8),e.storeBuffer(t.address.hash),e.storeCoins(t.forwardAmount),e.storeUint(t.queryId??0n,64);break;default:throw new Error(\\\"Unsupported plugin action\\\")}}}function hG(t){let e=t.loadUint(8);switch(e){case 0:{let n=[],r;for(;t.remainingRefs>0;){if(t.remainingBits<8)throw new Error(\\\"Invalid sendMsg action: insufficient bits for send mode\\\");let i=t.loadUint(8),a=t.loadRef(),o=(0,is.loadMessageRelaxed)(a.beginParse());if(r===void 0)r=i;else if(r!==i)throw new Error(\\\"Invalid sendMsg action: mixed send modes are not supported\\\");n.push(o)}return{type:\\\"sendMsg\\\",messages:n,sendMode:r}}case 1:{let n=t.loadInt(8),r=t.loadCoins(),i=(0,is.loadStateInit)(t.loadRef().beginParse()),a=t.loadRef();return{type:\\\"addAndDeployPlugin\\\",workchain:n,stateInit:i,body:a,forwardAmount:r}}case 2:{let n=t.loadInt(8),r=t.loadBuffer(32),i=t.loadCoins(),a=t.loadUintBig(64);return{type:\\\"addPlugin\\\",address:new is.Address(n,r),forwardAmount:i,queryId:a===0n?void 0:a}}case 3:{let n=t.loadInt(8),r=t.loadBuffer(32),i=t.loadCoins(),a=t.loadUintBig(64);return{type:\\\"removePlugin\\\",address:new is.Address(n,r),forwardAmount:i,queryId:a===0n?void 0:a}}default:throw new Error(`Unsupported action with opcode ${e}`)}}});var ka=V(Tl=>{\\\"use strict\\\";b();Object.defineProperty(Tl,\\\"__esModule\\\",{value:!0});Tl.createWalletTransferV1=pG;Tl.createWalletTransferV2=mG;Tl.createWalletTransferV3=yG;Tl.createWalletTransferV4=bG;Tl.createWalletTransferV5Beta=vG;Tl.createWalletTransferV5R1=wG;var dr=sn(),W4=I4(),YM=N4(),wy=DM(),F4=D4(),$4=V4(),gG=H4();function GM(t,e){return(0,dr.beginCell)().storeBuffer(t).storeBuilder(e).endCell()}function QM(t,e){return(0,dr.beginCell)().storeBuilder(e).storeBuffer(t).endCell()}function pG(t){let e=(0,dr.beginCell)().storeUint(t.seqno,32);t.message&&(e.storeUint(t.sendMode,8),e.storeRef((0,dr.beginCell)().store((0,dr.storeMessageRelaxed)(t.message))));let n=(0,dr.domainSign)({data:e.endCell().hash(),secretKey:t.secretKey,domain:t.domain});return(0,dr.beginCell)().storeBuffer(n).storeBuilder(e).endCell()}function mG(t){if(t.messages.length>4)throw Error(\\\"Maximum number of messages in a single transfer is 4\\\");let e=(0,dr.beginCell)().storeUint(t.seqno,32);if(t.seqno===0)for(let i=0;i<32;i++)e.storeBit(1);else e.storeUint(t.timeout||Math.floor(Date.now()/1e3)+60,32);for(let i of t.messages)e.storeUint(t.sendMode,8),e.storeRef((0,dr.beginCell)().store((0,dr.storeMessageRelaxed)(i)));let n=(0,dr.domainSign)({data:e.endCell().hash(),secretKey:t.secretKey,domain:t.domain});return(0,dr.beginCell)().storeBuffer(n).storeBuilder(e).endCell()}function yG(t){if(t.messages.length>4)throw Error(\\\"Maximum number of messages in a single transfer is 4\\\");let e=(0,dr.beginCell)().storeUint(t.walletId,32);if(t.seqno===0)for(let n=0;n<32;n++)e.storeBit(1);else e.storeUint(t.timeout||Math.floor(Date.now()/1e3)+60,32);e.storeUint(t.seqno,32);for(let n of t.messages)e.storeUint(t.sendMode,8),e.storeRef((0,dr.beginCell)().store((0,dr.storeMessageRelaxed)(n)));return(0,wy.signPayload)(t,e,GM)}function bG(t){let e=(0,dr.beginCell)().storeUint(t.walletId,32);if(t.seqno===0)for(let n=0;n<32;n++)e.storeBit(1);else e.storeUint(t.timeout||Math.floor(Date.now()/1e3)+60,32);return e.storeUint(t.seqno,32),e.store((0,gG.storeExtendedAction)(t.action)),(0,wy.signPayload)(t,e,GM)}function vG(t){if(t.actions.length>255)throw Error(\\\"Maximum number of OutActions in a single request is 255\\\");if(t.authType===\\\"extension\\\")return(0,dr.beginCell)().storeUint(W4.WalletContractV5Beta.OpCodes.auth_extension,32).store((0,YM.storeOutListExtendedV5Beta)(t.actions)).endCell();let e=(0,dr.beginCell)().storeUint(t.authType===\\\"internal\\\"?W4.WalletContractV5Beta.OpCodes.auth_signed_internal:W4.WalletContractV5Beta.OpCodes.auth_signed_external,32).store(t.walletId);if(t.seqno===0)for(let n=0;n<32;n++)e.storeBit(1);else e.storeUint(t.timeout||Math.floor(Date.now()/1e3)+60,32);return e.storeUint(t.seqno,32).store((0,YM.storeOutListExtendedV5Beta)(t.actions)),(0,wy.signPayload)(t,e,QM)}function wG(t){if(t.actions.length>255)throw Error(\\\"Maximum number of OutActions in a single request is 255\\\");if(t={...t},t.authType===\\\"extension\\\")return(0,dr.beginCell)().storeUint(F4.WalletContractV5R1.OpCodes.auth_extension,32).storeUint(t.queryId??0,64).store((0,$4.storeOutListExtendedV5R1)(t.actions)).endCell();t.actions=(0,$4.patchV5R1ActionsSendMode)(t.actions,t.authType);let e=(0,dr.beginCell)().storeUint(t.authType===\\\"internal\\\"?F4.WalletContractV5R1.OpCodes.auth_signed_internal:F4.WalletContractV5R1.OpCodes.auth_signed_external,32).store(t.walletId);if(t.seqno===0)for(let n=0;n<32;n++)e.storeBit(1);else e.storeUint(t.timeout||Math.floor(Date.now()/1e3)+60,32);return e.storeUint(t.seqno,32).store((0,$4.storeOutListExtendedV5R1)(t.actions)),(0,wy.signPayload)(t,e,QM)}});var XM=V(xy=>{\\\"use strict\\\";b();Object.defineProperty(xy,\\\"__esModule\\\",{value:!0});xy.WalletContractV1R1=void 0;var Nf=sn(),xG=ka(),K4=class t{static create(e){return new t(e.workchain,e.publicKey,e.domain)}constructor(e,n,r){this.workchain=e,this.publicKey=n,this.domain=r;let i=Nf.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEARAAAhP8AIN2k8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVEH98Ik=\\\",\\\"base64\\\"))[0],a=(0,Nf.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:i,data:a},this.address=(0,Nf.contractAddress)(e,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){let n=await e.getState();return n.state.type===\\\"active\\\"?Nf.Cell.fromBoc(n.state.data)[0].beginParse().loadUint(32):0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){let n=Nf.SendMode.PAY_GAS_SEPARATELY;return e.sendMode!==null&&e.sendMode!==void 0&&(n=e.sendMode),(0,xG.createWalletTransferV1)({seqno:e.seqno,sendMode:n,secretKey:e.secretKey,message:e.message,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,message:(0,Nf.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})});await this.send(e,a)}}}};xy.WalletContractV1R1=K4});var JM=V(Yc=>{\\\"use strict\\\";b();var _G=Yc&&Yc.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),CG=Yc&&Yc.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&_G(e,t,n)};Object.defineProperty(Yc,\\\"__esModule\\\",{value:!0});CG(XM(),Yc)});var eR=V(_y=>{\\\"use strict\\\";b();Object.defineProperty(_y,\\\"__esModule\\\",{value:!0});_y.WalletContractV1R2=void 0;var W0=sn(),SG=ka(),Z4=class t{static create(e){return new t(e.workchain,e.publicKey,e.domain)}constructor(e,n,r){this.workchain=e,this.publicKey=n,this.domain=r;let i=W0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAUwAAov8AIN0gggFMl7qXMO1E0NcLH+Ck8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVNDieG8=\\\",\\\"base64\\\"))[0],a=(0,W0.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:i,data:a},this.address=(0,W0.contractAddress)(e,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){let n=W0.SendMode.PAY_GAS_SEPARATELY;return e.sendMode!==null&&e.sendMode!==void 0&&(n=e.sendMode),(0,SG.createWalletTransferV1)({seqno:e.seqno,sendMode:n,secretKey:e.secretKey,message:e.message,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,message:(0,W0.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})});await this.send(e,a)}}}};_y.WalletContractV1R2=Z4});var tR=V(Gc=>{\\\"use strict\\\";b();var TG=Gc&&Gc.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),EG=Gc&&Gc.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&TG(e,t,n)};Object.defineProperty(Gc,\\\"__esModule\\\",{value:!0});EG(eR(),Gc)});var nR=V(Cy=>{\\\"use strict\\\";b();Object.defineProperty(Cy,\\\"__esModule\\\",{value:!0});Cy.WalletContractV1R3=void 0;var F0=sn(),AG=ka(),Y4=class t{static create(e){return new t(e.workchain,e.publicKey,e.domain)}constructor(e,n,r){this.workchain=e,this.publicKey=n,this.domain=r;let i=F0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAXwAAuv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVLW4bkI=\\\",\\\"base64\\\"))[0],a=(0,F0.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:i,data:a},this.address=(0,F0.contractAddress)(e,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){let n=F0.SendMode.PAY_GAS_SEPARATELY;return e.sendMode!==null&&e.sendMode!==void 0&&(n=e.sendMode),(0,AG.createWalletTransferV1)({seqno:e.seqno,sendMode:n,secretKey:e.secretKey,message:e.message,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,message:(0,F0.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(e,a)}}}};Cy.WalletContractV1R3=Y4});var rR=V(Qc=>{\\\"use strict\\\";b();var kG=Qc&&Qc.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),BG=Qc&&Qc.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&kG(e,t,n)};Object.defineProperty(Qc,\\\"__esModule\\\",{value:!0});BG(nR(),Qc)});var iR=V(Sy=>{\\\"use strict\\\";b();Object.defineProperty(Sy,\\\"__esModule\\\",{value:!0});Sy.WalletContractV2R1=void 0;var $0=sn(),MG=ka(),G4=class t{static create(e){return new t(e.workchain,e.publicKey,e.domain)}constructor(e,n,r){this.workchain=e,this.publicKey=n,this.domain=r;let i=$0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAVwAAqv8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VShNwu2\\\",\\\"base64\\\"))[0],a=(0,$0.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:i,data:a},this.address=(0,$0.contractAddress)(e,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){let n=$0.SendMode.PAY_GAS_SEPARATELY;return e.sendMode!==null&&e.sendMode!==void 0&&(n=e.sendMode),(0,MG.createWalletTransferV2)({seqno:e.seqno,sendMode:n,secretKey:e.secretKey,messages:e.messages,timeout:e.timeout,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,messages:[(0,$0.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};Sy.WalletContractV2R1=G4});var aR=V(Xc=>{\\\"use strict\\\";b();var RG=Xc&&Xc.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),OG=Xc&&Xc.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&RG(e,t,n)};Object.defineProperty(Xc,\\\"__esModule\\\",{value:!0});OG(iR(),Xc)});var oR=V(Ty=>{\\\"use strict\\\";b();Object.defineProperty(Ty,\\\"__esModule\\\",{value:!0});Ty.WalletContractV2R2=void 0;var K0=sn(),IG=ka(),Q4=class t{static create(e){return new t(e.workchain,e.publicKey,e.domain)}constructor(e,n,r){this.workchain=e,this.publicKey=n,this.domain=r;let i=K0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAYwAAwv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VQETNeh\\\",\\\"base64\\\"))[0],a=(0,K0.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:i,data:a},this.address=(0,K0.contractAddress)(e,{code:i,data:a})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){let n=K0.SendMode.PAY_GAS_SEPARATELY;return e.sendMode!==null&&e.sendMode!==void 0&&(n=e.sendMode),(0,IG.createWalletTransferV2)({seqno:e.seqno,sendMode:n,secretKey:e.secretKey,messages:e.messages,timeout:e.timeout,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,messages:[(0,K0.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};Ty.WalletContractV2R2=Q4});var sR=V(Jc=>{\\\"use strict\\\";b();var UG=Jc&&Jc.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),NG=Jc&&Jc.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&UG(e,t,n)};Object.defineProperty(Jc,\\\"__esModule\\\",{value:!0});NG(oR(),Jc)});var lR=V(Ey=>{\\\"use strict\\\";b();Object.defineProperty(Ey,\\\"__esModule\\\",{value:!0});Ey.WalletContractV3R1=void 0;var Z0=sn(),PG=ka(),X4=class t{static create(e){return new t(e.workchain,e.publicKey,e.walletId,e.domain)}constructor(e,n,r,i){this.workchain=e,this.publicKey=n,this.domain=i,r!=null?this.walletId=r:this.walletId=698983191+e;let a=Z0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAYgAAwP8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVD++buA=\\\",\\\"base64\\\"))[0],o=(0,Z0.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:a,data:o},this.address=(0,Z0.contractAddress)(e,{code:a,data:o})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){return(0,PG.createWalletTransferV3)({...e,sendMode:e.sendMode??Z0.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,messages:[(0,Z0.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};Ey.WalletContractV3R1=X4});var cR=V(eu=>{\\\"use strict\\\";b();var jG=eu&&eu.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),zG=eu&&eu.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&jG(e,t,n)};Object.defineProperty(eu,\\\"__esModule\\\",{value:!0});zG(lR(),eu)});var uR=V(Ay=>{\\\"use strict\\\";b();Object.defineProperty(Ay,\\\"__esModule\\\",{value:!0});Ay.WalletContractV3R2=void 0;var Y0=sn(),DG=ka(),J4=class t{static create(e){return new t(e.workchain,e.publicKey,e.walletId,e.domain)}constructor(e,n,r,i){this.workchain=e,this.publicKey=n,this.domain=i,r!=null?this.walletId=r:this.walletId=698983191+e;let a=Y0.Cell.fromBoc(globalThis.Buffer.from(\\\"te6cckEBAQEAcQAA3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVBC9ba0=\\\",\\\"base64\\\"))[0],o=(0,Y0.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:a,data:o},this.address=(0,Y0.contractAddress)(e,{code:a,data:o})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){return(0,DG.createWalletTransferV3)({...e,sendMode:e.sendMode??Y0.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,messages:[(0,Y0.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}};Ay.WalletContractV3R2=J4});var dR=V(tu=>{\\\"use strict\\\";b();var LG=tu&&tu.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),qG=tu&&tu.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&LG(e,t,n)};Object.defineProperty(tu,\\\"__esModule\\\",{value:!0});qG(uR(),tu)});var fR=V(ky=>{\\\"use strict\\\";b();Object.defineProperty(ky,\\\"__esModule\\\",{value:!0});ky.WalletContractV4=void 0;var El=sn(),VG=ka(),ex=class t{static create(e){return new t(e.workchain,e.publicKey,e.walletId,e.domain)}constructor(e,n,r,i){this.workchain=e,this.publicKey=n,this.domain=i,r!=null?this.walletId=r:this.walletId=698983191+e;let a=El.Cell.fromBoc(globalThis.Buffer.from(\\\"te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDjDQOkyMsfEssfy/8QERITAubQAdDTAyFxsJJfBOAi10nBIJJfBOAC0x8hghBwbHVnvSKCEGRzdHK9sJJfBeAD+kAwIPpEAcjKB8v/ydDtRNCBAUDXIfQEMFyBAQj0Cm+hMbOSXwfgBdM/yCWCEHBsdWe6kjgw4w0DghBkc3RyupJfBuMNBgcCASAICQB4AfoA9AQw+CdvIjBQCqEhvvLgUIIQcGx1Z4MesXCAGFAEywUmzxZY+gIZ9ADLaRfLH1Jgyz8gyYBA+wAGAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+ICASAKCwBZvSQrb2omhAgKBrkPoCGEcNQICEekk30pkQzmkD6f+YN4EoAbeBAUiYcVnzGEAgFYDA0AEbjJftRNDXCx+AA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYAIBIA4PABmtznaiaEAga5Drhf/AABmvHfaiaEAQa5DrhY/AAG7SB/oA1NQi+QAFyMoHFcv/ydB3dIAYyMsFywIizxZQBfoCFMtrEszMyXP7AMhAFIEBCPRR8qcCAHCBAQjXGPoA0z/IVCBHgQEI9FHyp4IQbm90ZXB0gBjIywXLAlAGzxZQBPoCFMtqEssfyz/Jc/sAAgBsgQEI1xj6ANM/MFIkgQEI9Fnyp4IQZHN0cnB0gBjIywXLAlAFzxZQA/oCE8tqyx8Syz/Jc/sAAAr0AMntVA==\\\",\\\"base64\\\"))[0],o=(0,El.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(this.publicKey).storeBit(0).endCell();this.init={code:a,data:o},this.address=(0,El.contractAddress)(e,{code:a,data:o})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return(await e.getState()).state.type===\\\"active\\\"?(await e.get(\\\"seqno\\\",[])).stack.readNumber():0}async getIsPluginInstalled(e,n){if((await e.getState()).state.type!==\\\"active\\\")return!1;let i=BigInt(n.workChain),a=BigInt(\\\"0x\\\"+n.hash.toString(\\\"hex\\\"));return(await e.get(\\\"is_plugin_installed\\\",[{type:\\\"int\\\",value:i},{type:\\\"int\\\",value:a}])).stack.readBoolean()}async getPluginsArray(e){return(await e.getState()).state.type!==\\\"active\\\"?[]:(await e.get(\\\"get_plugin_list\\\",[])).stack.readLispList().map(i=>{if(i.type!==\\\"tuple\\\")throw Error(\\\"Not a tuple\\\");let a=new El.TupleReader(i.items),o=a.readNumber(),l=a.readBigNumber().toString(16).padStart(64,\\\"0\\\");return El.Address.parseRaw(`${o}:${l}`)})}async send(e,n){await e.external(n)}async sendTransfer(e,n){let r=this.createTransfer(n);await this.send(e,r)}createTransfer(e){return this.createRequest({seqno:e.seqno,timeout:e.timeout,action:{type:\\\"sendMsg\\\",messages:e.messages,sendMode:e.sendMode},...\\\"secretKey\\\"in e?{secretKey:e.secretKey}:{signer:e.signer}})}async sendRequest(e,n){let r=await this.createRequest(n);await this.send(e,r)}createRequest(e){return(0,VG.createWalletTransferV4)({...e,walletId:this.walletId,domain:this.domain})}sender(e,n){return{send:async r=>{let i=await this.getSeqno(e),a=this.createTransfer({seqno:i,secretKey:n,sendMode:r.sendMode,messages:[(0,El.internal)({to:r.to,value:r.value,extracurrency:r.extracurrency,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(e,a)}}}async sendAddPlugin(e,n){let r=await this.createAddPlugin(n);return await this.send(e,r)}async sendRemovePlugin(e,n){let r=await this.createRemovePlugin(n);return await this.send(e,r)}async sendAddAndDeployPlugin(e,n){let r=await this.createAddAndDeployPlugin(n);return await this.send(e,r)}createAddPlugin(e){return this.createRequest({action:{type:\\\"addPlugin\\\",address:e.address,forwardAmount:e.forwardAmount,queryId:e.queryId},...e})}createRemovePlugin(e){return this.createRequest({action:{type:\\\"removePlugin\\\",address:e.address,forwardAmount:e.forwardAmount,queryId:e.queryId},...e})}createAddAndDeployPlugin(e){return this.createRequest({action:{type:\\\"addAndDeployPlugin\\\",workchain:e.workchain,stateInit:e.stateInit,body:e.body,forwardAmount:e.forwardAmount},...e})}async sendPluginRequestFunds(e,n,r){await e.internal(n,{value:r.forwardAmount,body:this.createPluginRequestFundsMessage(r),sendMode:r.sendMode})}createPluginRequestFundsMessage(e){return(0,El.beginCell)().storeUint(1886156135,32).storeUint(e.queryId??0,64).storeCoins(e.toncoinsToWithdraw).storeDict(null).endCell()}async sendPluginRemovePlugin(e,n,r,i){await e.internal(n,{value:r,body:this.createPluginRemovePluginMessage(i)})}createPluginRemovePluginMessage(e){return(0,El.beginCell)().storeUint(1685288050,32).storeUint(e??0,64).endCell()}};ky.WalletContractV4=ex});var gR=V(Al=>{\\\"use strict\\\";b();var HG=Al&&Al.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),hR=Al&&Al.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&HG(e,t,n)};Object.defineProperty(Al,\\\"__esModule\\\",{value:!0});hR(fR(),Al);hR(H4(),Al)});var pR=V(as=>{\\\"use strict\\\";b();var WG=as&&as.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),tx=as&&as.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&WG(e,t,n)};Object.defineProperty(as,\\\"__esModule\\\",{value:!0});tx(I4(),as);tx(N4(),as);tx(O4(),as)});var mR=V(os=>{\\\"use strict\\\";b();var FG=os&&os.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),nx=os&&os.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&FG(e,t,n)};Object.defineProperty(os,\\\"__esModule\\\",{value:!0});nx(D4(),os);nx(V4(),os);nx(j4(),os)});var yR=V(By=>{\\\"use strict\\\";b();Object.defineProperty(By,\\\"__esModule\\\",{value:!0});By.JettonMaster=void 0;var $G=sn(),rx=class t{static create(e){return new t(e)}constructor(e){this.address=e}async getWalletAddress(e,n){return(await e.get(\\\"get_wallet_address\\\",[{type:\\\"slice\\\",cell:(0,$G.beginCell)().storeAddress(n).endCell()}])).stack.readAddress()}async getJettonData(e){let n=await e.get(\\\"get_jetton_data\\\",[]),r=n.stack.readBigNumber(),i=n.stack.readBoolean(),a=n.stack.readAddress(),o=n.stack.readCell(),s=n.stack.readCell();return{totalSupply:r,mintable:i,adminAddress:a,content:o,walletCode:s}}};By.JettonMaster=rx});var bR=V(My=>{\\\"use strict\\\";b();Object.defineProperty(My,\\\"__esModule\\\",{value:!0});My.JettonWallet=void 0;var ix=class t{static create(e){return new t(e)}constructor(e){this.address=e}async getBalance(e){return(await e.getState()).state.type!==\\\"active\\\"?0n:(await e.get(\\\"get_wallet_data\\\",[])).stack.readBigNumber()}};My.JettonWallet=ix});var ox=V(Oy=>{\\\"use strict\\\";b();Object.defineProperty(Oy,\\\"__esModule\\\",{value:!0});Oy.MultisigOrder=void 0;var vR=uc(),Ry=sn(),ax=class t{constructor(e){this.signatures={},this.payload=e}static fromCell(e){let n=e.beginParse(),r=n.loadMaybeRef()?.beginParse(),i=n.asCell(),a=new t(i);if(r){for(;r.remainingBits>0;){let o=r.loadBuffer(64),s=r.loadUint(8);a.signatures[s]=o,r.remainingRefs>0?r=r.loadRef().asSlice():r.skip(1)}r.endParse()}return a}static fromPayload(e){return new t(e)}addSignature(e,n,r){let i=this.payload.hash();if(!(0,vR.signVerify)(i,n,r.owners.get(e).slice(0,-1)))throw Error(\\\"invalid signature\\\");this.signatures[e]=n}sign(e,n){let r=this.payload.hash();return this.signatures[e]=(0,vR.sign)(r,n),r}unionSignatures(e){this.signatures=Object.assign({},this.signatures,e.signatures)}clearSignatures(){this.signatures={}}toCell(e){let n=(0,Ry.beginCell)().storeBit(0);for(let r in this.signatures){let i=this.signatures[r];n=(0,Ry.beginCell)().storeBit(1).storeRef((0,Ry.beginCell)().storeBuffer(i).storeUint(parseInt(r),8).storeBuilder(n).endCell())}return(0,Ry.beginCell)().storeUint(e,8).storeBuilder(n).storeBuilder(this.payload.asBuilder()).endCell()}};Oy.MultisigOrder=ax});var wR=V(Iy=>{\\\"use strict\\\";b();Object.defineProperty(Iy,\\\"__esModule\\\",{value:!0});Iy.MultisigOrderBuilder=void 0;var G0=sn(),KG=ox(),sx=class{constructor(e,n){this.messages=(0,G0.beginCell)(),this.queryId=0n,this.walletId=e,this.queryOffset=n||7200}addMessage(e,n){if(this.messages.refs>=4)throw Error(\\\"only 4 refs are allowed\\\");this.updateQueryId(),this.messages.storeUint(n,8),this.messages.storeRef((0,G0.beginCell)().store((0,G0.storeMessageRelaxed)(e)).endCell())}clearMessages(){this.messages=(0,G0.beginCell)()}build(){return KG.MultisigOrder.fromPayload((0,G0.beginCell)().storeUint(this.walletId,32).storeUint(this.queryId,64).storeBuilder(this.messages).endCell())}updateQueryId(){let e=BigInt(Math.floor(Date.now()/1e3+this.queryOffset));this.queryId=e<<32n}};Iy.MultisigOrderBuilder=sx});var _R=V(Uy=>{\\\"use strict\\\";b();Object.defineProperty(Uy,\\\"__esModule\\\",{value:!0});Uy.MultisigWallet=void 0;var xR=uc(),Gr=sn(),ZG=Gr.Cell.fromBase64(\\\"te6ccgECKwEABBgAART/APSkE/S88sgLAQIBIAIDAgFIBAUE2vIgxwCOgzDbPOCDCNcYIPkBAdMH2zwiwAAToVNxePQOb6Hyn9s8VBq6+RDyoAb0BCD5AQHTH1EYuvKq0z9wUwHwCgHCCAGDCryx8mhTFYBA9A5voSCYDqQgwgryZw7f+COqH1NAufJhVCOjU04gIyEiAgLMBgcCASAMDQIBIAgJAgFmCgsAA9GEAiPymAvHoHN9CYbZ5S7Z4BPHohwhJQAtAKkItdJEqCTItdKlwLUAdAT8ArobBKAATwhbpEx4CBukTDgAdAg10rDAJrUAvALyFjPFszJ4HHXI8gBzxb0AMmACASAODwIBIBQVARW77ZbVA0cFUg2zyCoCAUgQEQIBIBITAXOxHXQgwjXGCD5AQHTB4IB1MTtQ9hTIHj0Dm+h8p/XC/9eMfkQ8qCuAfQEIW6TW3Ey4PkBWNs8AaQBgJwA9rtqA6ADoAPoCAXoCEfyAgPyA3XlP+AXkegAA54tkwAAXrhlXP8EA1WZ2oexAAgEgFhcCASAYGQFRtyVbZ4YmRmpGEAgegc30McJNhFpAADMaYeYuAFrgJhwLb+4cC3d0bhAjAYm1WZtnhqvgb+2xxsoicAgej430pBHEoFpAADHDhBACGuQkuuBk9kUWE5kAOeLKhACQCB6IYFImHFImHFImXEA2YlzNijAjAgEgGhsAF7UGtc4QQDVZnah7EAIBIBwdAgOZOB4fARGsGm2eL4G2CUAjABWt+UEAzJV2oewYQAENqTbPBVfBYCMAFa3f3CCAarM7UPYgAiDbPALyZfgAUENxQxPbPO1UIyoACtP/0wcwBKDbPC+uUyCw8mISsQKkJbNTHLmwJYEA4aojoCi8sPJpggGGoPgBBZcCERACPj4wjo0REB/bPEDXePRDEL0F4lQWW1Rz51YQU9zbPFRxClR6vCQlKCYAIO1E0NMf0wfTB9M/9AT0BNEAXgGOGjDSAAHyo9MH0wdQA9cBIPkBBfkBFbrypFAD4GwhIddKqgIi10m68qtwVCATAAwByMv/ywcE1ts87VT4D3AlblOJvrGYEG4QLVDHXwePGzBUJANQTds8UFWgRlAQSRA6SwlTuds8UFQWf+L4AAeDJaGOLCaAQPSWb6UglDBTA7neII4WODk5CNIAAZfTBzAW8AcFkTDifwgHBZJsMeKz5jAGKicoKQBgcI4pA9CDCNcY0wf0BDBTFnj0Dm+h8qXXC/9URUT5EPKmrlIgsVIDvRShI27mbCIyAH5SML6OIF8D+ACTItdKmALTB9QC+wAC6DJwyMoAQBSAQPRDAvAHjhdxyMsAFMsHEssHWM8BWM8WQBOAQPRDAeIBII6KEEUQNEMA2zztVJJfBuIqABzIyx/LB8sHyz/0APQAyQ==\\\"),lx=class t{constructor(e,n,r,i,a){this.provider=null,this.owners=Gr.Dictionary.empty(),this.workchain=n,this.walletId=r,this.k=i;for(let o=0;o<e.length;o+=1)this.owners.set(o,globalThis.Buffer.concat([e[o],globalThis.Buffer.alloc(1)]));this.init={code:ZG,data:(0,Gr.beginCell)().storeUint(this.walletId,32).storeUint(this.owners.size,8).storeUint(this.k,8).storeUint(0,64).storeDict(this.owners,Gr.Dictionary.Keys.Uint(8),Gr.Dictionary.Values.Buffer(33)).storeBit(0).endCell()},this.address=a?.address||(0,Gr.contractAddress)(n,this.init),a?.provider?this.provider=a.provider:a?.client&&(this.provider=a.client.provider(this.address,{code:this.init.code,data:this.init.data}))}static async fromAddress(e,n){let r;if(n.provider)r=n.provider;else{if(!n.client)throw Error(\\\"Either provider or client must be specified\\\");r=n.client.provider(e,{code:null,data:null})}let i=(await r.getState()).state;if(i.type!==\\\"active\\\")throw Error(\\\"Contract must be active\\\");let a=Gr.Cell.fromBoc(i.data)[0].beginParse(),o=a.loadUint(32);a.skip(8);let s=a.loadUint(8);a.skip(64);let l=a.loadDict(Gr.Dictionary.Keys.Uint(8),Gr.Dictionary.Values.Buffer(33)),c=[];for(let[u,d]of l){let h=d.subarray(0,32);c.push(h)}return new t(c,e.workChain,o,s,{address:e,provider:r,client:n.client})}async deployExternal(e){if(!e&&!this.provider)throw Error(\\\"you must specify provider if there is no such property in MultisigWallet instance\\\");e||(e=this.provider),await e.external(Gr.Cell.EMPTY)}async deployInternal(e,n=1000000000n){await e.send({sendMode:Gr.SendMode.PAY_GAS_SEPARATELY+Gr.SendMode.IGNORE_ERRORS,to:this.address,value:n,init:this.init,body:Gr.Cell.EMPTY,bounce:!0})}async sendOrder(e,n,r){if(!r&&!this.provider)throw Error(\\\"you must specify provider if there is no such property in MultisigWallet instance\\\");r||(r=this.provider);let i=(0,xR.keyPairFromSecretKey)(n).publicKey,a=this.getOwnerIdByPubkey(i),o=e.toCell(a),s=(0,xR.sign)(o.hash(),n);o=(0,Gr.beginCell)().storeBuffer(s).storeSlice(o.asSlice()).endCell(),await r.external(o)}async sendOrderWithoutSecretKey(e,n,r,i){if(!i&&!this.provider)throw Error(\\\"you must specify provider if there is no such property in MultisigWallet instance\\\");i||(i=this.provider);let a=e.toCell(r);a=(0,Gr.beginCell)().storeBuffer(n).storeSlice(a.asSlice()).endCell(),await i.external(a)}getOwnerIdByPubkey(e){for(let[n,r]of this.owners)if(r.subarray(0,32).equals(e))return n;throw Error(\\\"public key is not an owner\\\")}};Uy.MultisigWallet=lx});var CR=V(Ny=>{\\\"use strict\\\";b();Object.defineProperty(Ny,\\\"__esModule\\\",{value:!0});Ny.ElectorContract=void 0;var fa=sn(),YG={serialize(t,e){throw Error(\\\"not implemented\\\")},parse(t){let e=new fa.Address(-1,t.loadBuffer(32)),n=t.loadUintBig(64),r=t.loadCoins();return{address:e,weight:n,stake:r}}},GG={serialize(t,e){throw Error(\\\"not implemented\\\")},parse(t){let e=t.loadCoins();t.skip(64);let n=new fa.Address(-1,t.loadBuffer(32)),r=t.loadBuffer(32);return{stake:e,address:n,adnl:r}}},cx=class t{static create(){return new t}constructor(){this.address=fa.Address.parseRaw(\\\"-1:3333333333333333333333333333333333333333333333333333333333333333\\\")}async getReturnedStake(e,n){if(n.workChain!==-1)throw Error(\\\"Only masterchain addresses could have stake\\\");return(await e.get(\\\"compute_returned_stake\\\",[{type:\\\"int\\\",value:BigInt(\\\"0x\\\"+n.hash.toString(\\\"hex\\\"))}])).stack.readBigNumber()}async getPastElectionsList(e){let n=await e.get(\\\"past_elections_list\\\",[]),r=new fa.TupleReader(n.stack.readLispList()),i=[];for(;r.remaining>0;){let a=r.readTuple(),o=a.readNumber(),s=a.readNumber();a.pop();let l=a.readNumber();i.push({id:o,unfreezeAt:s,stakeHeld:l})}return i}async getPastElections(e){let n=await e.get(\\\"past_elections\\\",[]),r=new fa.TupleReader(n.stack.readLispList()),i=[];for(;r.remaining>0;){let a=r.readTuple(),o=a.readNumber(),s=a.readNumber(),l=a.readNumber();a.pop();let c=a.readCell(),u=a.readBigNumber(),d=a.readBigNumber(),h=new Map,g=c.beginParse().loadDictDirect(fa.Dictionary.Keys.Buffer(32),YG);for(let[y,E]of g)h.set(BigInt(\\\"0x\\\"+y.toString(\\\"hex\\\")).toString(10),{address:E.address,weight:E.weight,stake:E.stake});i.push({id:o,unfreezeAt:s,stakeHeld:l,totalStake:u,bonuses:d,frozen:h})}return i}async getElectionEntities(e){let n=await e.getState();if(n.state.type!==\\\"active\\\")throw Error(\\\"Unexpected error\\\");let i=fa.Cell.fromBoc(n.state.data)[0].beginParse();if(!i.loadBit())return null;let a=i.loadRef().beginParse(),o=a.loadUint(32),s=a.loadUint(32),l=a.loadCoins(),c=a.loadCoins(),u=a.loadDict(fa.Dictionary.Keys.Buffer(32),GG),d=[];if(u)for(let[h,g]of u)d.push({pubkey:h,stake:g.stake,address:g.address,adnl:g.adnl});return{minStake:l,allStakes:c,endElectionsTime:s,startWorkTime:o,entities:d}}async getActiveElectionId(e){let r=(await e.get(\\\"active_election_id\\\",[])).stack.readNumber();return r>0?r:null}async getComplaints(e,n){let r=new fa.TupleBuilder;r.writeNumber(n);let i=await e.get(\\\"list_complaints\\\",r.build());if(i.stack.peek().type===\\\"null\\\")return[];let a=new fa.TupleReader(i.stack.readLispList()),o=[];for(;a.remaining>0;){let s=a.readTuple(),l=s.readBigNumber(),c=s.readTuple(),u=c.readTuple(),d=globalThis.Buffer.from(u.readBigNumber().toString(16),\\\"hex\\\"),h=u.readCell(),g=u.readNumber(),y=u.readNumber(),E=new fa.Address(-1,globalThis.Buffer.from(u.readBigNumber().toString(16),\\\"hex\\\")),N=u.readBigNumber(),_=u.readBigNumber(),v=u.readBigNumber(),T=[],R=new fa.TupleReader(c.readLispList());for(;R.remaining>0;)T.push(R.readNumber());let U=c.readBigNumber(),X=c.readBigNumber();o.push({id:l,publicKey:d,createdAt:g,severity:y,paid:N,suggestedFine:_,suggestedFinePart:v,rewardAddress:E,votes:T,remainingWeight:X,vsetId:U})}return o}};Ny.ElectorContract=cx});var DR=V(Vt=>{\\\"use strict\\\";b();Object.defineProperty(Vt,\\\"__esModule\\\",{value:!0});Vt.configParseMasterAddress=kl;Vt.parseValidatorSet=ER;Vt.parseBridge=AR;Vt.configParseMasterAddressRequired=Q0;Vt.configParse5=fx;Vt.configParse6=kR;Vt.configParse7=BR;Vt.configParse9=MR;Vt.configParse10=RR;Vt.configParse13=OR;Vt.configParse14=IR;Vt.configParse15=hx;Vt.configParse16=gx;Vt.configParse17=px;Vt.configParse18=mx;Vt.configParse8=yx;Vt.configParse40=bx;Vt.configParseWorkchainDescriptor=UR;Vt.configParse12=vx;Vt.configParseValidatorSet=Di;Vt.configParseBridge=ru;Vt.loadJettonBridgeParams=Py;Vt.configParseGasLimitsPrices=X0;Vt.configParseBlockLimits=ux;Vt.configParseMsgPrices=J0;Vt.configParse28=wx;Vt.configParse29=xx;Vt.configParse31=NR;Vt.configParse44=PR;Vt.configParse45=jR;Vt.parseProposalSetup=dx;Vt.parseVotingSetup=_x;Vt.loadConfigParamById=nQ;Vt.loadConfigParamsAsSlice=rQ;Vt.parseFullConfig=iQ;Vt.parseFullerConfig=aQ;var Yt=sn();function kl(t){return t?new Yt.Address(-1,t.loadBuffer(32)):null}function SR(t){if(t.loadUint(32)!==2390828938)throw Error(\\\"Invalid publicKey\\\");return t.loadBuffer(32)}var TR={serialize(t,e){throw Error(\\\"not implemented\\\")},parse(t){let e=t.loadUint(8);if(e===83)return{publicKey:SR(t),weight:t.loadUintBig(64),adnlAddress:null};if(e===115)return{publicKey:SR(t),weight:t.loadUintBig(64),adnlAddress:t.loadBuffer(32)};throw Error(\\\"Invalid validator description dict\\\")}};function ER(t){let e=t.loadUint(8);if(e===17){let n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(16),a=t.loadUint(16),o=t.loadDictDirect(Yt.Dictionary.Keys.Uint(16),TR);return{timeSince:n,timeUntil:r,total:i,main:a,totalWeight:null,list:o}}else if(e===18){let n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(16),a=t.loadUint(16),o=t.loadUintBig(64),s=t.loadDict(Yt.Dictionary.Keys.Uint(16),TR);return{timeSince:n,timeUntil:r,total:i,main:a,totalWeight:o,list:s}}return null}function AR(t){let e=new Yt.Address(-1,t.loadBuffer(32)),n=new Yt.Address(-1,t.loadBuffer(32)),r=t.loadDict(Yt.Dictionary.Keys.Buffer(32),Yt.Dictionary.Values.Buffer(32)),i=new Map;for(let[o,s]of r)i.set(new Yt.Address(-1,o).toString(),s);let a=t.loadBuffer(32);return{bridgeAddress:e,oracleMultisigAddress:n,oracles:i,externalChainAddress:a}}function Q0(t){if(!t)throw Error(\\\"Invalid master address\\\");return kl(t)}function fx(t){if(!t)throw Error(\\\"No config5 slice\\\");if(t.loadUint(8)===1){let n=t.loadBit()?new Yt.Address(-1,t.loadBuffer(32)):null,r=t.loadUint(32),i=t.loadUint(32);return{blackholeAddr:n,feeBurnNominator:r,feeBurnDenominator:i}}throw new Error(\\\"Invalid config5\\\")}function kR(t){if(!t)return null;let e=t.loadCoins(),n=t.loadCoins();return{mintNewPrice:e,mintAddPrice:n}}function BR(t){if(!t)throw Error(\\\"No config7 slice\\\");return{toMint:(0,Yt.loadExtraCurrency)(t.loadRef())}}function MR(t){if(!t)throw Error(\\\"No config9 slice\\\");return new Set(t.loadDictDirect(Yt.Dictionary.Keys.Int(32),Yt.Dictionary.Values.Uint(0)).keys())}function RR(t){if(!t)throw Error(\\\"No config10 slice\\\");return new Set(t.loadDictDirect(Yt.Dictionary.Keys.Int(32),Yt.Dictionary.Values.Uint(0)).keys())}function OR(t){if(!t)throw Error(\\\"No config13 slice\\\");if(t.loadUint(8)!==26)throw new Error(\\\"Invalid config13\\\");let n=t.loadCoins(),r=t.loadCoins(),i=t.loadCoins();return{deposit:n,bitPrice:r,cellPrice:i}}function IR(t){if(!t)throw Error(\\\"No config14 slice\\\");if(t.loadUint(8)!==107)throw new Error(\\\"Invalid config14\\\");let n=t.loadCoins(),r=t.loadCoins();return{masterchainBlockFee:n,workchainBlockFee:r}}function hx(t){if(!t)throw Error(\\\"No config15 slice\\\");let e=t.loadUint(32),n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(32);return{validatorsElectedFor:e,electorsStartBefore:n,electorsEndBefore:r,stakeHeldFor:i}}function gx(t){if(!t)throw Error(\\\"No config16 slice\\\");let e=t.loadUint(16),n=t.loadUint(16),r=t.loadUint(16);return{maxValidators:e,maxMainValidators:n,minValidators:r}}function px(t){if(!t)throw Error(\\\"No config17 slice\\\");let e=t.loadCoins(),n=t.loadCoins(),r=t.loadCoins(),i=t.loadUint(32);return{minStake:e,maxStake:n,minTotalStake:r,maxStakeFactor:i}}var QG={serialize(t,e){throw Error(\\\"not implemented\\\")},parse(t){if(t.loadUint(8)!==204)throw Error(\\\"Invalid storage prices dict\\\");let n=t.loadUint(32),r=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),o=t.loadUintBig(64);return{utime_since:n,bit_price_ps:r,cell_price_ps:i,mc_bit_price_ps:a,mc_cell_price_ps:o}}};function mx(t){if(!t)throw Error(\\\"No config18 slice\\\");return t.loadDictDirect(Yt.Dictionary.Keys.Buffer(4),QG).values()}function yx(t){if(!t)return{version:0,capabilities:0n};let e=t.loadUint(32),n=t.loadUintBig(64);return{version:e,capabilities:n}}function bx(t){if(!t)return null;if(t.loadUint(8)!==1)throw Error(\\\"Invalid config40\\\");let n=t.loadCoins(),r=t.loadCoins(),i=t.loadUint(16),a=t.loadUint(16),o=t.loadUint(16),s=t.loadUint(16),l=t.loadUint(16),c=t.loadUint(16),u=t.loadUint(16),d=t.loadUint(16),h=t.loadUint(16);return{defaultFlatFine:n,defaultProportionaFine:r,severityFlatMult:i,severityProportionalMult:a,unfunishableInterval:o,longInterval:s,longFlatMult:l,longProportionalMult:c,mediumInterval:u,mediumFlatMult:d,mediumProportionalMult:h}}function UR(t){let e=t.loadUint(8);if(!(e==166||e==167))throw Error(\\\"Invalid workchain descriptor\\\");let n=t.loadUint(32),r=t.loadUint(8),i=t.loadUint(8),a=t.loadUint(8),o=t.loadBit(),s=t.loadBit(),l=t.loadBit(),c=t.loadUint(13),u=t.loadBuffer(32),d=t.loadBuffer(32),h=t.loadUint(32);if(!t.loadUint(4))throw Error(\\\"Not basic workchain descriptor\\\");let g=t.loadInt(32),y=t.loadUintBig(64),E;if(e==167){let N=XG(t),_=t.loadUint(8);if(_>63)throw RangeError(`Invalid persistent_state_split_depth: ${_} expected <= 63`);E={split_merge_timings:N,persistent_state_split_depth:_}}return{enabledSince:n,actialMinSplit:r,min_split:i,max_split:a,basic:o,active:s,accept_msgs:l,flags:c,zerostateRootHash:u,zerostateFileHash:d,version:h,format:{vmVersion:g,vmMode:y},workchain_v2:E}}function XG(t){if(t.loadUint(4)!==0)throw Error(\\\"Invalid WcSplitMergeTimings tag expected 0!\\\");return{split_merge_delay:t.loadUint(32),split_merge_interval:t.loadUint(32),min_split_merge_interval:t.loadUint(32),max_split_merge_delay:t.loadUint(32)}}var JG={serialize(t,e){throw Error(\\\"not implemented\\\")},parse(t){return UR(t)}};function vx(t){if(!t)throw Error(\\\"No config12 slice\\\");let e=t.loadDict(Yt.Dictionary.Keys.Uint(32),JG);if(e)return e;throw Error(\\\"No workchains exist\\\")}function Di(t){return t?ER(t):null}function ru(t){return t?AR(t):null}function Py(t){if(!t)return null;let e=t.loadUint(8);if(e===0){let n=new Yt.Address(-1,t.loadBuffer(32)),r=new Yt.Address(-1,t.loadBuffer(32)),a=[...t.loadDict(Yt.Dictionary.Keys.Buffer(32),Yt.Dictionary.Values.Buffer(32))].map(l=>({addr:new Yt.Address(-1,l[0]),pubkey:l[1]})),o=t.loadUint(8),s=t.loadCoins();return{bridgeAddress:n,oracleAddress:r,oracles:a,flags:o,bridgeBurnFee:s}}if(e===1){let n=new Yt.Address(-1,t.loadBuffer(32)),r=new Yt.Address(-1,t.loadBuffer(32)),a=[...t.loadDict(Yt.Dictionary.Keys.Buffer(32),Yt.Dictionary.Values.Buffer(32))].map(E=>({addr:new Yt.Address(-1,E[0]),pubkey:E[1]})),o=t.loadUint(8),s=t.loadRef().beginParse(),l=s.loadCoins(),c=s.loadCoins(),u=s.loadCoins(),d=s.loadCoins(),h=s.loadCoins(),g=s.loadCoins(),y=t.loadBuffer(32);return{bridgeAddress:n,oracleAddress:r,oracles:a,flags:o,jettonBridgePrices:{bridgeBurnFee:l,bridgeMintFee:c,walletMinTonsForStorage:u,walletGasConsumption:d,minterMinTonsForStorage:h,discoverGasConsumption:g},externalChainAddress:y}}throw new Error(\\\"Invalid msg prices param\\\")}function eQ(t){let e=t.loadUint(8);if(e===222){let n=t.loadUintBig(64),r=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),o=t.loadUintBig(64),s=t.loadUintBig(64),l=t.loadUintBig(64);return{gasPrice:n,gasLimit:r,specialGasLimit:i,gasCredit:a,blockGasLimit:o,freezeDueLimit:s,deleteDueLimit:l}}else if(e===221){let n=t.loadUintBig(64),r=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),o=t.loadUintBig(64),s=t.loadUintBig(64);return{gasPrice:n,gasLimit:r,gasCredit:i,blockGasLimit:a,freezeDueLimit:o,deleteDueLimit:s}}else throw Error(\\\"Invalid gas limits internal\\\")}function X0(t){if(!t)throw Error(\\\"No gas limits slice\\\");if(t.loadUint(8)===209){let n=t.loadUintBig(64),r=t.loadUintBig(64),i=eQ(t);return{flatLimit:n,flatGasPrice:r,other:i}}else throw Error(\\\"Invalid gas limits\\\")}function nu(t){if(t.loadUint(8)!==195)throw Error(\\\"Invalid params limit slice\\\");let n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(32);if(n>r||r>i)throw Error(\\\"Incosistent limitParams\\\");return{underload:n,softLimit:r,hardLimit:i}}function ux(t){if(!t)throw Error(\\\"No block limits slice\\\");let e=t.loadUint(8);if(e===93){let n=nu(t),r=nu(t),i=nu(t);return{bytes:n,gas:r,ltDelta:i}}if(e===94){let n=nu(t),r=nu(t),i=nu(t),a=nu(t);if(t.loadUint(8)!==211)throw Error(\\\"Invalid importedMsgQueue\\\");let s=t.loadUint(32),l=t.loadUint(32);return{bytes:n,gas:r,ltDelta:i,collatedData:a,importedMsgQueue:{maxBytes:s,maxMsgs:l}}}throw Error(\\\"Invalid block limits\\\")}function J0(t){if(!t)throw new Error(\\\"No msg prices slice\\\");if(t.loadUint(8)!==234)throw new Error(\\\"Invalid msg prices param\\\");return{lumpPrice:t.loadUintBig(64),bitPrice:t.loadUintBig(64),cellPrice:t.loadUintBig(64),ihrPriceFactor:t.loadUint(32),firstFrac:t.loadUint(16),nextFrac:t.loadUint(16)}}function wx(t){if(!t)throw new Error(\\\"No config28 slice\\\");let e=t.loadUint(8);if(e===193){let n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(32),a=t.loadUint(32);return{masterCatchainLifetime:n,shardCatchainLifetime:r,shardValidatorsLifetime:i,shardValidatorsCount:a}}if(e===194){let n=t.loadUint(7),r=t.loadBit(),i=t.loadUint(32),a=t.loadUint(32),o=t.loadUint(32),s=t.loadUint(32);return{flags:n,suffleMasterValidators:r,masterCatchainLifetime:i,shardCatchainLifetime:a,shardValidatorsLifetime:o,shardValidatorsCount:s}}throw new Error(\\\"Invalid config28\\\")}function xx(t){if(!t)throw new Error(\\\"No config29 slice\\\");let e=t.loadUint(8);if(e===214){let n=t.loadUint(32),r=t.loadUint(32),i=t.loadUint(32),a=t.loadUint(32),o=t.loadUint(32),s=t.loadUint(32),l=t.loadUint(32),c=t.loadUint(32);return{roundCandidates:n,nextCandidateDelay:r,consensusTimeout:i,fastAttempts:a,attemptDuration:o,catchainMaxDeps:s,maxBlockBytes:l,maxColaltedBytes:c}}else if(e===215){let n=t.loadUint(7),r=t.loadBit(),i=t.loadUint(8),a=t.loadUint(32),o=t.loadUint(32),s=t.loadUint(32),l=t.loadUint(32),c=t.loadUint(32),u=t.loadUint(32),d=t.loadUint(32);return{flags:n,newCatchainIds:r,roundCandidates:i,nextCandidateDelay:a,consensusTimeout:o,fastAttempts:s,attemptDuration:l,catchainMaxDeps:c,maxBlockBytes:u,maxColaltedBytes:d}}else if(e===216){let n=t.loadUint(7),r=t.loadBit(),i=t.loadUint(8),a=t.loadUint(32),o=t.loadUint(32),s=t.loadUint(32),l=t.loadUint(32),c=t.loadUint(32),u=t.loadUint(32),d=t.loadUint(32),h=t.loadUint(16);return{flags:n,newCatchainIds:r,roundCandidates:i,nextCandidateDelay:a,consensusTimeout:o,fastAttempts:s,attemptDuration:l,catchainMaxDeps:c,maxBlockBytes:u,maxColaltedBytes:d,protoVersion:h}}else if(e===217){let n=t.loadUint(7),r=t.loadBit(),i=t.loadUint(8),a=t.loadUint(32),o=t.loadUint(32),s=t.loadUint(32),l=t.loadUint(32),c=t.loadUint(32),u=t.loadUint(32),d=t.loadUint(32),h=t.loadUint(16),g=t.loadUint(32);return{flags:n,newCatchainIds:r,roundCandidates:i,nextCandidateDelay:a,consensusTimeout:o,fastAttempts:s,attemptDuration:l,catchainMaxDeps:c,maxBlockBytes:u,maxColaltedBytes:d,protoVersion:h,catchainMaxBlocksCoeff:g}}throw new Error(\\\"Invalid config29\\\")}function NR(t){if(!t)throw Error(\\\"No config31 slice\\\");return[...t.loadDict(Yt.Dictionary.Keys.Buffer(32),Yt.Dictionary.Values.Uint(0))].map(n=>new Yt.Address(-1,n[0]))}function PR(t){if(!t)throw Error(\\\"No config44 slice\\\");if(t.loadUint(8)!==0)throw new Error(\\\"Invalid config44\\\");let n=t.loadDict(Yt.Dictionary.Keys.Buffer(36),Yt.Dictionary.Values.Uint(0)),r=t.loadUint(32);return{addresses:[...n].map(a=>new Yt.Address(a[0].readInt32BE(),a[0].subarray(4))),suspendedUntil:r}}var tQ={serialize:()=>{throw Error(\\\"not implemented\\\")},parse:t=>{if(t.loadUint(8)!==176)throw new Error(\\\"Invalid precompiled contracts dict\\\");return t.loadUintBig(64)}};function jR(t){if(!t)throw Error(\\\"No config45 slice\\\");if(t.loadUint(8)!==192)throw new Error(\\\"Invalid config45\\\");return[...t.loadDict(Yt.Dictionary.Keys.Buffer(32),tQ)].map(r=>({hash:r[0],gasUsed:r[1]}))}function dx(t){if(t.loadUint(8)!==54)throw new Error(\\\"Invalid proposal setup\\\");let n=t.loadUint(8),r=t.loadUint(8),i=t.loadUint(8),a=t.loadUint(8),o=t.loadUint(32),s=t.loadUint(32),l=t.loadUint(32),c=t.loadUint(32);return{minTotalRounds:n,maxTotalRounds:r,minWins:i,maxLoses:a,minStoreSec:o,maxStoreSec:s,bitPrice:l,cellPrice:c}}function _x(t){if(!t)throw new Error(\\\"No voting setup\\\");if(t.loadUint(8)!==145)throw new Error(\\\"Invalid voting setup\\\");let n=dx(t.loadRef().beginParse()),r=dx(t.loadRef().beginParse());return{normalParams:n,criticalParams:r}}function zR(t){return Yt.Cell.fromBase64(t).beginParse().loadDictDirect(Yt.Dictionary.Keys.Int(32),Yt.Dictionary.Values.Cell())}function nQ(t,e){return zR(t).get(e)}function rQ(t){let e=zR(t),n=new Map;for(let[r,i]of e)n.set(r,i.beginParse());return n}function iQ(t){return{configAddress:Q0(t.get(0)),electorAddress:Q0(t.get(1)),minterAddress:kl(t.get(2)),feeCollectorAddress:kl(t.get(3)),dnsRootAddress:kl(t.get(4)),burningConfig:fx(t.get(5)),globalVersion:yx(t.get(8)),workchains:vx(t.get(12)),voting:_x(t.get(11)),validators:{...hx(t.get(15)),...gx(t.get(16)),...px(t.get(17))},storagePrices:mx(t.get(18)),gasPrices:{masterchain:X0(t.get(20)),workchain:X0(t.get(21))},msgPrices:{masterchain:J0(t.get(24)),workchain:J0(t.get(25))},validatorSets:{prevValidators:Di(t.get(32)),prevTempValidators:Di(t.get(33)),currentValidators:Di(t.get(34)),currentTempValidators:Di(t.get(35)),nextValidators:Di(t.get(36)),nextTempValidators:Di(t.get(37))},validatorsPunish:bx(t.get(40)),bridges:{ethereum:ru(t.get(71)),binance:ru(t.get(72)),polygon:ru(t.get(73))},catchain:wx(t.get(28)),consensus:xx(t.get(29))}}function aQ(t){return{configAddress:Q0(t.get(0)),electorAddress:Q0(t.get(1)),minterAddress:kl(t.get(2)),feeCollectorAddress:kl(t.get(3)),dnsRootAddress:kl(t.get(4)),burningConfig:fx(t.get(5)),extraCurrenciesMintPrices:kR(t.get(6)),extraCurrencies:BR(t.get(7)),globalVersion:yx(t.get(8)),configMandatoryParams:MR(t.get(9)),configCriticalParams:RR(t.get(10)),voting:_x(t.get(11)),workchains:vx(t.get(12)),complaintCost:OR(t.get(13)),blockCreationRewards:IR(t.get(14)),validators:{...hx(t.get(15)),...gx(t.get(16)),...px(t.get(17))},storagePrices:mx(t.get(18)),gasPrices:{masterchain:X0(t.get(20)),workchain:X0(t.get(21))},blockLimits:{masterchain:ux(t.get(22)),workchain:ux(t.get(23))},msgPrices:{masterchain:J0(t.get(24)),workchain:J0(t.get(25))},catchain:wx(t.get(28)),consensus:xx(t.get(29)),fundamentalSmcAddr:NR(t.get(31)),validatorSets:{prevValidators:Di(t.get(32)),prevTempValidators:Di(t.get(33)),currentValidators:Di(t.get(34)),currentTempValidators:Di(t.get(35)),nextValidators:Di(t.get(36)),nextTempValidators:Di(t.get(37))},validatorsPunish:bx(t.get(40)),suspended:PR(t.get(44)),precompiledContracts:jR(t.get(45)),bridges:{ethereum:ru(t.get(71)),binance:ru(t.get(72)),polygon:ru(t.get(73))},tokenBridges:{ethereum:Py(t.get(79)),binance:Py(t.get(81)),polygon:Py(t.get(82))}}}});var qR=V(iu=>{\\\"use strict\\\";b();Object.defineProperty(iu,\\\"__esModule\\\",{value:!0});iu.computeStorageFees=oQ;iu.computeFwdFees=Sx;iu.computeGasPrices=sQ;iu.computeExternalMessageFees=lQ;iu.computeMessageForwardFees=cQ;var Cx=sn();function oQ(t){let{lastPaid:e,now:n,storagePrices:r,storageStat:i,special:a,masterchain:o}=t;if(n<=e||r.length===0||n<r[0].utime_since||a)return BigInt(0);let s=Math.max(e,r[0].utime_since),l=BigInt(0);for(let c=0;c<r.length&&s<n;c++){let u=c<r.length-1?Math.min(n,r[c+1].utime_since):n,d=BigInt(0);if(s<u){let h=u-s;d+=BigInt(i.cells)*(o?r[c].mc_cell_price_ps:r[c].cell_price_ps),d+=BigInt(i.bits)*(o?r[c].mc_bit_price_ps:r[c].bit_price_ps),d=d*BigInt(h)}s=u,l+=d}return LR(l)}function Sx(t,e,n){return t.lumpPrice+LR(t.bitPrice*n+t.cellPrice*e)}function sQ(t,e){return t<=e.flatLimit?e.flatPrice:e.flatPrice+(e.price*(t-e.flatLimit)>>16n)}function lQ(t,e){let n=jy(e);return n.bits-=e.bits.length,n.cells-=1,Sx(t,BigInt(n.cells),BigInt(n.bits))}function cQ(t,e){let n=(0,Cx.loadMessageRelaxed)(e.beginParse()),r={bits:0,cells:0};if(n.init){let l=new Cx.Cell().asBuilder();(0,Cx.storeStateInit)(n.init)(l);let c=l.endCell(),u=jy(c);u.bits-=c.bits.length,u.cells-=1,r.bits+=u.bits,r.cells+=u.cells}let i=jy(n.body);i.bits-=n.body.bits.length,i.cells-=1,r.bits+=i.bits,r.cells+=i.cells;let a=Sx(t,BigInt(r.cells),BigInt(r.bits)),o=a*BigInt(t.firstFrac)>>16n,s=a-o;return{fees:o,remaining:s}}function jy(t){let e=t.bits.length,n=1;for(let r of t.refs){let i=jy(r);n+=i.cells,e+=i.bits}return{bits:e,cells:n}}function LR(t){let e=t%65536n,n=t>>16n;return e!==0n&&(n+=1n),n}});var VR=V(ve=>{\\\"use strict\\\";b();var uQ=ve&&ve.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||(\\\"get\\\"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),dQ=ve&&ve.__exportStar||function(t,e){for(var n in t)n!==\\\"default\\\"&&!Object.prototype.hasOwnProperty.call(e,n)&&uQ(e,t,n)};Object.defineProperty(ve,\\\"__esModule\\\",{value:!0});ve.computeStorageFees=ve.computeMessageForwardFees=ve.computeGasPrices=ve.computeFwdFees=ve.computeExternalMessageFees=ve.loadConfigParamsAsSlice=ve.loadConfigParamById=ve.parseFullerConfig=ve.parseFullConfig=ve.parseVotingSetup=ve.parseValidatorSet=ve.parseProposalSetup=ve.parseBridge=ve.configParseWorkchainDescriptor=ve.configParseValidatorSet=ve.configParseMsgPrices=ve.configParseMasterAddressRequired=ve.configParseMasterAddress=ve.configParseGasLimitsPrices=ve.configParseBridge=ve.configParse40=ve.configParse29=ve.configParse28=ve.configParse18=ve.configParse17=ve.configParse16=ve.configParse15=ve.configParse13=ve.configParse12=ve.configParse8=ve.configParse5=ve.ElectorContract=ve.MultisigWallet=ve.MultisigOrderBuilder=ve.MultisigOrder=ve.JettonWallet=ve.JettonMaster=ve.WalletContractV5R1=ve.WalletContractV5Beta=ve.WalletContractV4=ve.WalletContractV3R2=ve.WalletContractV3R1=ve.WalletContractV2R2=ve.WalletContractV2R1=ve.WalletContractV1R3=ve.WalletContractV1R2=ve.WalletContractV1R1=ve.TonClient4=ve.TonClient=ve.HttpApi=void 0;dQ(sn(),ve);var fQ=T4();Object.defineProperty(ve,\\\"HttpApi\\\",{enumerable:!0,get:function(){return fQ.HttpApi}});var hQ=vM();Object.defineProperty(ve,\\\"TonClient\\\",{enumerable:!0,get:function(){return hQ.TonClient}});var gQ=AM();Object.defineProperty(ve,\\\"TonClient4\\\",{enumerable:!0,get:function(){return gQ.TonClient4}});var pQ=JM();Object.defineProperty(ve,\\\"WalletContractV1R1\\\",{enumerable:!0,get:function(){return pQ.WalletContractV1R1}});var mQ=tR();Object.defineProperty(ve,\\\"WalletContractV1R2\\\",{enumerable:!0,get:function(){return mQ.WalletContractV1R2}});var yQ=rR();Object.defineProperty(ve,\\\"WalletContractV1R3\\\",{enumerable:!0,get:function(){return yQ.WalletContractV1R3}});var bQ=aR();Object.defineProperty(ve,\\\"WalletContractV2R1\\\",{enumerable:!0,get:function(){return bQ.WalletContractV2R1}});var vQ=sR();Object.defineProperty(ve,\\\"WalletContractV2R2\\\",{enumerable:!0,get:function(){return vQ.WalletContractV2R2}});var wQ=cR();Object.defineProperty(ve,\\\"WalletContractV3R1\\\",{enumerable:!0,get:function(){return wQ.WalletContractV3R1}});var xQ=dR();Object.defineProperty(ve,\\\"WalletContractV3R2\\\",{enumerable:!0,get:function(){return xQ.WalletContractV3R2}});var _Q=gR();Object.defineProperty(ve,\\\"WalletContractV4\\\",{enumerable:!0,get:function(){return _Q.WalletContractV4}});var CQ=pR();Object.defineProperty(ve,\\\"WalletContractV5Beta\\\",{enumerable:!0,get:function(){return CQ.WalletContractV5Beta}});var SQ=mR();Object.defineProperty(ve,\\\"WalletContractV5R1\\\",{enumerable:!0,get:function(){return SQ.WalletContractV5R1}});var TQ=yR();Object.defineProperty(ve,\\\"JettonMaster\\\",{enumerable:!0,get:function(){return TQ.JettonMaster}});var EQ=bR();Object.defineProperty(ve,\\\"JettonWallet\\\",{enumerable:!0,get:function(){return EQ.JettonWallet}});var AQ=ox();Object.defineProperty(ve,\\\"MultisigOrder\\\",{enumerable:!0,get:function(){return AQ.MultisigOrder}});var kQ=wR();Object.defineProperty(ve,\\\"MultisigOrderBuilder\\\",{enumerable:!0,get:function(){return kQ.MultisigOrderBuilder}});var BQ=_R();Object.defineProperty(ve,\\\"MultisigWallet\\\",{enumerable:!0,get:function(){return BQ.MultisigWallet}});var MQ=CR();Object.defineProperty(ve,\\\"ElectorContract\\\",{enumerable:!0,get:function(){return MQ.ElectorContract}});var Nn=DR();Object.defineProperty(ve,\\\"configParse5\\\",{enumerable:!0,get:function(){return Nn.configParse5}});Object.defineProperty(ve,\\\"configParse8\\\",{enumerable:!0,get:function(){return Nn.configParse8}});Object.defineProperty(ve,\\\"configParse12\\\",{enumerable:!0,get:function(){return Nn.configParse12}});Object.defineProperty(ve,\\\"configParse13\\\",{enumerable:!0,get:function(){return Nn.configParse13}});Object.defineProperty(ve,\\\"configParse15\\\",{enumerable:!0,get:function(){return Nn.configParse15}});Object.defineProperty(ve,\\\"configParse16\\\",{enumerable:!0,get:function(){return Nn.configParse16}});Object.defineProperty(ve,\\\"configParse17\\\",{enumerable:!0,get:function(){return Nn.configParse17}});Object.defineProperty(ve,\\\"configParse18\\\",{enumerable:!0,get:function(){return Nn.configParse18}});Object.defineProperty(ve,\\\"configParse28\\\",{enumerable:!0,get:function(){return Nn.configParse28}});Object.defineProperty(ve,\\\"configParse29\\\",{enumerable:!0,get:function(){return Nn.configParse29}});Object.defineProperty(ve,\\\"configParse40\\\",{enumerable:!0,get:function(){return Nn.configParse40}});Object.defineProperty(ve,\\\"configParseBridge\\\",{enumerable:!0,get:function(){return Nn.configParseBridge}});Object.defineProperty(ve,\\\"configParseGasLimitsPrices\\\",{enumerable:!0,get:function(){return Nn.configParseGasLimitsPrices}});Object.defineProperty(ve,\\\"configParseMasterAddress\\\",{enumerable:!0,get:function(){return Nn.configParseMasterAddress}});Object.defineProperty(ve,\\\"configParseMasterAddressRequired\\\",{enumerable:!0,get:function(){return Nn.configParseMasterAddressRequired}});Object.defineProperty(ve,\\\"configParseMsgPrices\\\",{enumerable:!0,get:function(){return Nn.configParseMsgPrices}});Object.defineProperty(ve,\\\"configParseValidatorSet\\\",{enumerable:!0,get:function(){return Nn.configParseValidatorSet}});Object.defineProperty(ve,\\\"configParseWorkchainDescriptor\\\",{enumerable:!0,get:function(){return Nn.configParseWorkchainDescriptor}});Object.defineProperty(ve,\\\"parseBridge\\\",{enumerable:!0,get:function(){return Nn.parseBridge}});Object.defineProperty(ve,\\\"parseProposalSetup\\\",{enumerable:!0,get:function(){return Nn.parseProposalSetup}});Object.defineProperty(ve,\\\"parseValidatorSet\\\",{enumerable:!0,get:function(){return Nn.parseValidatorSet}});Object.defineProperty(ve,\\\"parseVotingSetup\\\",{enumerable:!0,get:function(){return Nn.parseVotingSetup}});Object.defineProperty(ve,\\\"parseFullConfig\\\",{enumerable:!0,get:function(){return Nn.parseFullConfig}});Object.defineProperty(ve,\\\"parseFullerConfig\\\",{enumerable:!0,get:function(){return Nn.parseFullerConfig}});Object.defineProperty(ve,\\\"loadConfigParamById\\\",{enumerable:!0,get:function(){return Nn.loadConfigParamById}});Object.defineProperty(ve,\\\"loadConfigParamsAsSlice\\\",{enumerable:!0,get:function(){return Nn.loadConfigParamsAsSlice}});var eg=qR();Object.defineProperty(ve,\\\"computeExternalMessageFees\\\",{enumerable:!0,get:function(){return eg.computeExternalMessageFees}});Object.defineProperty(ve,\\\"computeFwdFees\\\",{enumerable:!0,get:function(){return eg.computeFwdFees}});Object.defineProperty(ve,\\\"computeGasPrices\\\",{enumerable:!0,get:function(){return eg.computeGasPrices}});Object.defineProperty(ve,\\\"computeMessageForwardFees\\\",{enumerable:!0,get:function(){return eg.computeMessageForwardFees}});Object.defineProperty(ve,\\\"computeStorageFees\\\",{enumerable:!0,get:function(){return eg.computeStorageFees}})});var FR=V((WR,zy)=>{b();(function(t,e){\\\"use strict\\\";typeof zy<\\\"u\\\"&&zy.exports?zy.exports=e():(t.nacl||(t.nacl={}),t.nacl.util=e())})(WR,function(){\\\"use strict\\\";var t={};function e(n){if(!/^(?:[A-Za-z0-9+\\\\/]{2}[A-Za-z0-9+\\\\/]{2})*(?:[A-Za-z0-9+\\\\/]{2}==|[A-Za-z0-9+\\\\/]{3}=)?$/.test(n))throw new TypeError(\\\"invalid encoding\\\")}return t.decodeUTF8=function(n){if(typeof n!=\\\"string\\\")throw new TypeError(\\\"expected string\\\");var r,i=unescape(encodeURIComponent(n)),a=new Uint8Array(i.length);for(r=0;r<i.length;r++)a[r]=i.charCodeAt(r);return a},t.encodeUTF8=function(n){var r,i=[];for(r=0;r<n.length;r++)i.push(String.fromCharCode(n[r]));return decodeURIComponent(escape(i.join(\\\"\\\")))},typeof atob>\\\"u\\\"?typeof globalThis.Buffer.from<\\\"u\\\"?(t.encodeBase64=function(n){return globalThis.Buffer.from(n).toString(\\\"base64\\\")},t.decodeBase64=function(n){return e(n),new Uint8Array(Array.prototype.slice.call(globalThis.Buffer.from(n,\\\"base64\\\"),0))}):(t.encodeBase64=function(n){return new globalThis.Buffer(n).toString(\\\"base64\\\")},t.decodeBase64=function(n){return e(n),new Uint8Array(Array.prototype.slice.call(new globalThis.Buffer(n,\\\"base64\\\"),0))}):(t.encodeBase64=function(n){var r,i=[],a=n.length;for(r=0;r<a;r++)i.push(String.fromCharCode(n[r]));return btoa(i.join(\\\"\\\"))},t.decodeBase64=function(n){e(n);var r,i=atob(n),a=new Uint8Array(i.length);for(r=0;r<i.length;r++)a[r]=i.charCodeAt(r);return a}),t})});function NQ(t,e){let n=jf.default.encodeBase64(t);return e?encodeURIComponent(n):n}function PQ(t,e){return e&&(t=decodeURIComponent(t)),jf.default.decodeBase64(t)}function jQ(t,e=!1){let n;return t instanceof Uint8Array?n=t:(typeof t!=\\\"string\\\"&&(t=JSON.stringify(t)),n=jf.default.decodeUTF8(t)),NQ(n,e)}function zQ(t,e=!1){let n=PQ(t,e);return{toString(){return jf.default.encodeUTF8(n)},toObject(){try{return JSON.parse(jf.default.encodeUTF8(n))}catch{return null}},toUint8Array(){return n}}}function DQ(t,e){let n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}function LQ(t,e){if(e>=t.length)throw new Error(\\\"Index is out of buffer\\\");let n=t.slice(0,e),r=t.slice(e);return[n,r]}function Mx(t){let e=\\\"\\\";return t.forEach(n=>{e+=(\\\"0\\\"+(n&255).toString(16)).slice(-2)}),e}function ig(t){if(t.length%2!==0)throw new Error(`Cannot convert ${t} to bytesArray`);let e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)e[n/2]=parseInt(t.slice(n,n+2),16);return e}var jf,rg,Xr,au,Li,ss,Dy,ls,ag,Ba,Rx=Dl(()=>{b();jf=Tn(FR(),1),rg=Tn(a1(),1);(function(t){t[t.UNKNOWN_ERROR=0]=\\\"UNKNOWN_ERROR\\\",t[t.BAD_REQUEST_ERROR=1]=\\\"BAD_REQUEST_ERROR\\\",t[t.MANIFEST_NOT_FOUND_ERROR=2]=\\\"MANIFEST_NOT_FOUND_ERROR\\\",t[t.MANIFEST_CONTENT_ERROR=3]=\\\"MANIFEST_CONTENT_ERROR\\\",t[t.UNKNOWN_APP_ERROR=100]=\\\"UNKNOWN_APP_ERROR\\\",t[t.USER_REJECTS_ERROR=300]=\\\"USER_REJECTS_ERROR\\\",t[t.METHOD_NOT_SUPPORTED=400]=\\\"METHOD_NOT_SUPPORTED\\\"})(Xr||(Xr={}));(function(t){t[t.UNKNOWN_ERROR=0]=\\\"UNKNOWN_ERROR\\\",t[t.METHOD_NOT_SUPPORTED=400]=\\\"METHOD_NOT_SUPPORTED\\\"})(au||(au={}));(function(t){t[t.UNKNOWN_ERROR=0]=\\\"UNKNOWN_ERROR\\\",t[t.BAD_REQUEST_ERROR=1]=\\\"BAD_REQUEST_ERROR\\\",t[t.UNKNOWN_APP_ERROR=100]=\\\"UNKNOWN_APP_ERROR\\\",t[t.USER_REJECTS_ERROR=300]=\\\"USER_REJECTS_ERROR\\\",t[t.METHOD_NOT_SUPPORTED=400]=\\\"METHOD_NOT_SUPPORTED\\\"})(Li||(Li={}));(function(t){t[t.UNKNOWN_ERROR=0]=\\\"UNKNOWN_ERROR\\\",t[t.BAD_REQUEST_ERROR=1]=\\\"BAD_REQUEST_ERROR\\\",t[t.UNKNOWN_APP_ERROR=100]=\\\"UNKNOWN_APP_ERROR\\\",t[t.USER_REJECTS_ERROR=300]=\\\"USER_REJECTS_ERROR\\\",t[t.METHOD_NOT_SUPPORTED=400]=\\\"METHOD_NOT_SUPPORTED\\\"})(ss||(ss={}));(function(t){t[t.UNKNOWN_ERROR=0]=\\\"UNKNOWN_ERROR\\\",t[t.BAD_REQUEST_ERROR=1]=\\\"BAD_REQUEST_ERROR\\\",t[t.UNKNOWN_APP_ERROR=100]=\\\"UNKNOWN_APP_ERROR\\\",t[t.METHOD_NOT_SUPPORTED=400]=\\\"METHOD_NOT_SUPPORTED\\\"})(Dy||(Dy={}));(function(t){t.MAINNET=\\\"-239\\\",t.TESTNET=\\\"-3\\\"})(ls||(ls={}));ag={encode:jQ,decode:zQ};Ba=class{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Mx(this.keyPair.publicKey)}createKeypair(){return rg.default.box.keyPair()}createKeypairFromString(e){return{publicKey:ig(e.publicKey),secretKey:ig(e.secretKey)}}createNonce(){return rg.default.randomBytes(this.nonceLength)}encrypt(e,n){let r=new TextEncoder().encode(e),i=this.createNonce(),a=rg.default.box(r,i,n,this.keyPair.secretKey);return DQ(i,a)}decrypt(e,n){let[r,i]=LQ(e,this.nonceLength),a=rg.default.box.open(i,r,n,this.keyPair.secretKey);if(!a)throw new Error(`Decryption error: \\n message: ${e.toString()} \\n sender pubkey: ${n.toString()} \\n keypair pubkey: ${this.keyPair.publicKey.toString()} \\n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return new TextDecoder().decode(a)}stringifyKeypair(){return{publicKey:Mx(this.keyPair.publicKey),secretKey:Mx(this.keyPair.secretKey)}}}});var $R=Dl(()=>{b()});var KR=Dl(()=>{b()});function Wy(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols==\\\"function\\\")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Be(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})}function qQ(t){return\\\"jsBridgeKey\\\"in t}function VQ(t){return\\\"type\\\"in t&&t.type===\\\"wallet-connect\\\"}function WQ(t){return t.slice(-1)===\\\"/\\\"?t.slice(0,-1):t}function tO(t,e){return WQ(t)+\\\"/\\\"+e}function ma(t){if(!t)return!1;let e=new URL(t);return e.protocol===\\\"tg:\\\"||e.hostname===\\\"t.me\\\"}function Qx(t){return t?t.includes(\\\"ton_addr\\\")||t.includes(\\\"ton--5Faddr\\\"):!1}function fg(t){return t.replaceAll(\\\".\\\",\\\"%2E\\\").replaceAll(\\\"-\\\",\\\"%2D\\\").replaceAll(\\\"_\\\",\\\"%5F\\\").replaceAll(\\\"&\\\",\\\"-\\\").replaceAll(\\\"=\\\",\\\"__\\\").replaceAll(\\\"%\\\",\\\"--\\\")}function Xx(t){return t.replaceAll(\\\"--\\\",\\\"%\\\").replaceAll(\\\"__\\\",\\\"=\\\").replaceAll(\\\"-\\\",\\\"&\\\").replaceAll(\\\"%5F\\\",\\\"_\\\").replaceAll(\\\"%2D\\\",\\\"-\\\").replaceAll(\\\"%2E\\\",\\\".\\\")}function nO(t,e){return Be(this,void 0,void 0,function*(){return new Promise((n,r)=>{var i,a;if(!((i=void 0)===null||i===void 0)&&i.aborted){r(new Oe(\\\"Delay aborted\\\"));return}let o=setTimeout(()=>n(),t);(a=void 0)===null||a===void 0||a.addEventListener(\\\"abort\\\",()=>{clearTimeout(o),r(new Oe(\\\"Delay aborted\\\"))})})})}function Jr(t){let e=new AbortController;return t?.aborted?e.abort():t?.addEventListener(\\\"abort\\\",()=>e.abort(),{once:!0}),e}function og(t,e){return Be(this,void 0,void 0,function*(){var n,r;let i=(n=e?.attempts)!==null&&n!==void 0?n:10,a=(r=e?.delayMs)!==null&&r!==void 0?r:200,o=Jr(e?.signal);if(typeof t!=\\\"function\\\")throw new Oe(`Expected a function, got ${typeof t}`);let s=0,l;for(;s<i;){if(o.signal.aborted)throw new Oe(`Aborted after attempts ${s}`);try{return yield t({signal:o.signal})}catch(c){l=c,s++,s<i&&(yield nO(a))}}throw l})}function gt(...t){try{[...t]}catch{}}function ga(...t){try{console.error(\\\"[TON_CONNECT_SDK]\\\",...t)}catch{}}function FQ(...t){try{console.warn(\\\"[TON_CONNECT_SDK]\\\",...t)}catch{}}function $Q(t,e){let n=null,r=null,i=null,a=null,o=null,s=(d,...h)=>Be(this,void 0,void 0,function*(){if(a=d??null,o?.abort(),o=Jr(d),o.signal.aborted)throw new Oe(\\\"Resource creation was aborted\\\");r=h??null;let g=t(o.signal,...h);i=g;let y=yield g;if(i!==g&&y!==n)throw yield e(y),new Oe(\\\"Resource creation was aborted by a new resource creation\\\");return n=y,n});return{create:s,current:()=>n??null,dispose:()=>Be(this,void 0,void 0,function*(){try{let d=n;n=null;let h=i;i=null;try{o?.abort()}catch{}yield Promise.allSettled([d?e(d):Promise.resolve(),h?e(yield h):Promise.resolve()])}catch{}}),recreate:d=>Be(this,void 0,void 0,function*(){let h=n,g=i,y=r,E=a;if(yield nO(d),h===n&&g===i&&y===r&&E===a)return yield s(a,...y??[]);throw new Oe(\\\"Resource recreation was aborted by a new resource creation\\\")})}}function KQ(t,e){let n=e?.timeout,r=e?.signal,i=Jr(r);return new Promise((a,o)=>Be(this,void 0,void 0,function*(){if(i.signal.aborted){o(new Oe(\\\"Operation aborted\\\"));return}let s;typeof n<\\\"u\\\"&&(s=setTimeout(()=>{i.abort(),o(new Oe(`Timeout after ${n}ms`))},n)),i.signal.addEventListener(\\\"abort\\\",()=>{clearTimeout(s),o(new Oe(\\\"Operation aborted\\\"))},{once:!0});let l={timeout:n,abort:i.signal};yield t((...c)=>{clearTimeout(s),a(...c)},()=>{clearTimeout(s),o()},l)}))}function ZQ(t){return Be(this,void 0,void 0,function*(){return yield KQ((e,n,r)=>Be(this,void 0,void 0,function*(){var i;let o=Jr(r.signal).signal;if(o.aborted){n(new Oe(\\\"Bridge connection aborted\\\"));return}let s=new URL(tO(t.bridgeUrl,t.ssePath));s.searchParams.append(\\\"client_id\\\",t.sessionId);let l=yield t.bridgeGatewayStorage.getLastEventId();if(l&&s.searchParams.append(\\\"last_event_id\\\",l),t.traceId&&s.searchParams.append(\\\"trace_id\\\",t.traceId),o.aborted){n(new Oe(\\\"Bridge connection aborted\\\"));return}let c=new EventSource(s.toString());c.onerror=u=>Be(this,void 0,void 0,function*(){if(o.aborted){c.close(),n(new Oe(\\\"Bridge connection aborted\\\"));return}try{let d=yield t.errorHandler(c,u);d!==c&&c.close(),d&&d!==c&&e(d)}catch(d){c.close(),n(d)}}),c.onopen=()=>{if(o.aborted){c.close(),n(new Oe(\\\"Bridge connection aborted\\\"));return}e(c)},c.onmessage=u=>{if(o.aborted){c.close(),n(new Oe(\\\"Bridge connection aborted\\\"));return}t.messageHandler(u)},(i=t.signal)===null||i===void 0||i.addEventListener(\\\"abort\\\",()=>{c.close(),n(new Oe(\\\"Bridge connection aborted\\\"))})}),{timeout:t.openingDeadlineMS,signal:t.signal})})}function lg(t){return!(\\\"connectEvent\\\"in t)}function GQ(t){return!(\\\"connectEvent\\\"in t)}function QQ(t){var e;return Date.now()-((e=t.createdAt)!==null&&e!==void 0?e:0)>YQ}function QR(){if(!Ox){if(typeof crypto>\\\"u\\\"||!crypto.getRandomValues)throw new Error(\\\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\\\");Ox=crypto.getRandomValues.bind(crypto)}return Ox(XQ)}function JQ(t,e=0){return(Mr[t[e+0]]+Mr[t[e+1]]+Mr[t[e+2]]+Mr[t[e+3]]+\\\"-\\\"+Mr[t[e+4]]+Mr[t[e+5]]+\\\"-\\\"+Mr[t[e+6]]+Mr[t[e+7]]+\\\"-\\\"+Mr[t[e+8]]+Mr[t[e+9]]+\\\"-\\\"+Mr[t[e+10]]+Mr[t[e+11]]+Mr[t[e+12]]+Mr[t[e+13]]+Mr[t[e+14]]+Mr[t[e+15]]).toLowerCase()}function hn(t,e,n){var r,i,a;let o;if(t)o=XR((a=(r=t.random)!==null&&r!==void 0?r:(i=t.rng)===null||i===void 0?void 0:i.call(t))!==null&&a!==void 0?a:QR(),t.msecs,t.seq,e,n);else{let s=Date.now(),l=QR();eX(Ix,s,l),o=XR(l,Ix.msecs,Ix.seq,e,n)}return e??JQ(o)}function eX(t,e,n){var r,i;return(r=t.msecs)!==null&&r!==void 0||(t.msecs=-1/0),(i=t.seq)!==null&&i!==void 0||(t.seq=0),e>t.msecs?(t.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],t.msecs=e):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}function XR(t,e,n,r,i=0){if(t.length<16)throw new Error(\\\"Random bytes length must be >= 16\\\");if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return e??(e=Date.now()),n??(n=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),r[i++]=e/1099511627776&255,r[i++]=e/4294967296&255,r[i++]=e/16777216&255,r[i++]=e/65536&255,r[i++]=e/256&255,r[i++]=e&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|t[10]&3,r[i++]=t[11],r[i++]=t[12],r[i++]=t[13],r[i++]=t[14],r[i++]=t[15],r}function tX(t,e){return Be(this,void 0,void 0,function*(){if(e<=0)return[];if(e>t.length)throw new RangeError(\\\"count cannot be greater than the number of promises\\\");let n=new Array(t.length),r=0;return new Promise(i=>{t.forEach((a,o)=>{Promise.resolve(a).then(s=>({status:\\\"fulfilled\\\",value:s})).catch(s=>({status:\\\"rejected\\\",reason:s})).then(s=>{n[o]=s,r++,r===e&&i(n)})})})})}function JR(t,e){return iO(t,[e])}function iO(t,e){return!t||typeof t!=\\\"object\\\"?!1:e.every(n=>n in t)}function nX(t){try{return!JR(t,\\\"tonconnect\\\")||!JR(t.tonconnect,\\\"walletInfo\\\")?!1:iO(t.tonconnect.walletInfo,[\\\"name\\\",\\\"app_name\\\",\\\"image\\\",\\\"about_url\\\",\\\"platforms\\\"])}catch{return!1}}function qf(){if(!(typeof window>\\\"u\\\"))return window}function aO(){if(!(typeof document>\\\"u\\\"))return document}function rX(){var t;let e=(t=qf())===null||t===void 0?void 0:t.location.origin;return e?e+\\\"/tonconnect-manifest.json\\\":\\\"\\\"}function iX(){var t,e,n,r;let i=(e=(t=qf())===null||t===void 0?void 0:t.location)===null||e===void 0?void 0:e.origin,a=(r=(n=qf())===null||n===void 0?void 0:n.location)===null||r===void 0?void 0:r.pathname;return i&&a?i+a:\\\"\\\"}function aX(){if(oX())return localStorage;if(sX())throw new Oe(\\\"`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector\\\");return Vx.getInstance()}function oX(){try{return typeof localStorage<\\\"u\\\"}catch{return!1}}function sX(){return typeof process<\\\"u\\\"&&process.versions!=null&&process.versions.node!=null}function lX(){try{return typeof window<\\\"u\\\"&&window.location?window.location.hostname:null}catch{return null}}function cX(){let t=qf();if(!t)return[];try{return Object.entries(t)}catch{return[]}}function ds(t){return oO(t)&&t.injected}function Hf(t){return ds(t)&&t.embedded}function oO(t){return\\\"jsBridgeKey\\\"in t}function Wf(t){return\\\"bridgeUrl\\\"in t}function uX(t){return\\\"jsBridgeKey\\\"in t}function fX(){Xy=!0,console.warn(\\\"\\\\u{1F6A8} QA Mode enabled - validation is disabled. This is unsafe for production!\\\"),sO(),hX(),Jx()}function lo(){return Xy}function sO(){if(typeof window>\\\"u\\\"||document.getElementById(\\\"ton-connect-qa-banner\\\"))return;let e=document.createElement(\\\"div\\\");e.id=\\\"ton-connect-qa-banner\\\",e.style.cssText=`\\n        position: fixed;\\n        top: 0;\\n        left: 0;\\n        right: 0;\\n        background: linear-gradient(90deg, #ff6b6b, #ff8e8e);\\n        color: white;\\n        padding: 12px 20px;\\n        text-align: center;\\n        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\\n        font-weight: 600;\\n        font-size: 14px;\\n        z-index: 999999;\\n        box-shadow: 0 2px 8px rgba(0,0,0,0.2);\\n        animation: slideDown 0.3s ease-out;\\n        user-select: none;\\n        pointer-events: none;\\n    `,e.innerHTML=`\\n        \\\\u{1F6A8} QA Mode Active - Validation Disabled (Unsafe for Production)\\n    `;let n=document.createElement(\\\"style\\\");n.textContent=`\\n        @keyframes slideDown {\\n            from { transform: translateY(-100%); }\\n            to { transform: translateY(0); }\\n        }\\n    `,document.head.appendChild(n),document.body.appendChild(e),Jx()}function Jx(){if(typeof window>\\\"u\\\"||document.getElementById(\\\"ton-connect-qa-mode-styles\\\"))return;let e=document.createElement(\\\"style\\\");e.id=\\\"ton-connect-qa-mode-styles\\\",e.textContent=`\\n        body.qa-mode-active {\\n            padding-top: 48px !important;\\n        }\\n        \\n        body.qa-mode-active header {\\n            margin-top: 48px !important;\\n        }\\n        \\n        body.qa-mode-active .qa-mode-control {\\n            top: 128px !important;\\n        }\\n    `,document.head.appendChild(e),document.body.classList.add(\\\"qa-mode-active\\\")}function hX(){typeof window>\\\"u\\\"||Vy||(Vy=new MutationObserver(t=>{t.forEach(e=>{e.type===\\\"childList\\\"&&e.removedNodes.forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){let r=n;r.id===\\\"ton-connect-qa-banner\\\"&&Xy?(console.warn(\\\"QA Mode banner was removed, restoring...\\\"),setTimeout(()=>sO(),100)):r.id===\\\"ton-connect-qa-mode-styles\\\"&&Xy&&(console.warn(\\\"QA Mode styles were removed, restoring...\\\"),setTimeout(()=>Jx(),100))}})})}),Vy.observe(document.body,{childList:!0,subtree:!1}),Vy.observe(document.head,{childList:!0,subtree:!1}))}function gX(t,e){let n=t.includes(\\\"SendTransaction\\\"),r=Fx(t,\\\"SendTransaction\\\"),i={minMessages:e.requiredMessagesNumber,extraCurrencyRequired:e.requireExtraCurrencies};if(!n&&!r)throw new Ra(\\\"Wallet doesn't support SendTransaction feature.\\\",{cause:{requiredFeature:{featureName:\\\"SendTransaction\\\",value:i}}});if(e.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new Ra(\\\"Wallet is not able to handle such SendTransaction request. Extra currencies support is required.\\\",{cause:{requiredFeature:{featureName:\\\"SendTransaction\\\",value:i}}});if(r&&r.maxMessages!==void 0){if(r.maxMessages<e.requiredMessagesNumber)throw new Ra(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${e.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:\\\"SendTransaction\\\",value:i}}});return}FQ(\\\"Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.\\\")}function pX(t,e){let n=t.find(i=>i&&typeof i==\\\"object\\\"&&i.name===\\\"SignData\\\");if(!n)throw new Ra(\\\"Wallet doesn't support SignData feature.\\\",{cause:{requiredFeature:{featureName:\\\"SignData\\\",value:{types:e.requiredTypes}}}});let r=e.requiredTypes.filter(i=>!n.types.includes(i));if(r.length)throw new Ra(`Wallet doesn't support required SignData types: ${r.join(\\\", \\\")}.`,{cause:{requiredFeature:{featureName:\\\"SignData\\\",value:{types:r}}}})}function Ff(t,e){if(typeof e!=\\\"object\\\")return!0;let{sendTransaction:n,signData:r}=e;if(n){let i=Fx(t,\\\"SendTransaction\\\");if(!i||!mX(i,n))return!1}if(r){let i=Fx(t,\\\"SignData\\\");if(!i||!yX(i,r))return!1}return!0}function Fx(t,e){return t.find(n=>n&&typeof n==\\\"object\\\"&&n.name===e)}function mX(t,e){let n=e.minMessages===void 0||e.minMessages<=t.maxMessages,r=!e.extraCurrencyRequired||t.extraCurrencySupported;return!!(n&&r)}function yX(t,e){return e.types.every(n=>t.types.includes(n))}function tb(){return{type:\\\"request-version\\\"}}function nb(t){return{type:\\\"response-version\\\",version:t}}function fs(t){return{ton_connect_sdk_lib:t.ton_connect_sdk_lib,ton_connect_ui_lib:t.ton_connect_ui_lib}}function hs(t,e,n){var r,i,a,o,s,l,c,u,d,h,g;let E=((r=e?.connectItems)===null||r===void 0?void 0:r.tonProof)&&\\\"proof\\\"in e.connectItems.tonProof?\\\"ton_proof\\\":\\\"ton_addr\\\";return{wallet_address:(a=(i=e?.account)===null||i===void 0?void 0:i.address)!==null&&a!==void 0?a:null,wallet_state_init:(o=e?.account.walletStateInit)!==null&&o!==void 0?o:null,wallet_type:(s=e?.device.appName)!==null&&s!==void 0?s:null,wallet_version:(l=e?.device.appVersion)!==null&&l!==void 0?l:null,auth_type:E,custom_data:Object.assign({client_id:(c=n?.clientId)!==null&&c!==void 0?c:null,wallet_id:(u=n?.walletId)!==null&&u!==void 0?u:null,chain_id:(h=(d=e?.account)===null||d===void 0?void 0:d.chain)!==null&&h!==void 0?h:null,provider:(g=e?.provider)!==null&&g!==void 0?g:null},fs(t))}}function rb(t,e){return{type:\\\"connection-started\\\",custom_data:fs(t),trace_id:e??null}}function ib(t,e,n,r){return Object.assign({type:\\\"connection-completed\\\",is_success:!0,trace_id:r??null},hs(t,e,n))}function ab(t,e,n,r,i){var a,o;return{type:\\\"connection-error\\\",is_success:!1,error_message:e,error_code:n??null,trace_id:i??null,custom_data:Object.assign({client_id:(a=r?.clientId)!==null&&a!==void 0?a:null,wallet_id:(o=r?.walletId)!==null&&o!==void 0?o:null},fs(t))}}function ob(t,e){return{type:\\\"connection-restoring-started\\\",custom_data:fs(t),trace_id:e??null}}function sb(t,e,n,r){return Object.assign({type:\\\"connection-restoring-completed\\\",is_success:!0,trace_id:r??null},hs(t,e,n))}function lb(t,e,n){return{type:\\\"connection-restoring-error\\\",is_success:!1,error_message:e,trace_id:n??null,custom_data:fs(t)}}function lO(t,e){var n,r,i,a;return{valid_until:(n=String(e.validUntil))!==null&&n!==void 0?n:null,from:(a=(r=e.from)!==null&&r!==void 0?r:(i=t?.account)===null||i===void 0?void 0:i.address)!==null&&a!==void 0?a:null,messages:e.messages.map(o=>{var s,l;return{address:(s=o.address)!==null&&s!==void 0?s:null,amount:(l=o.amount)!==null&&l!==void 0?l:null}})}}function bX(t,e){var n,r,i,a;return{valid_until:(n=String(e.validUntil))!==null&&n!==void 0?n:null,from:(a=(r=e.from)!==null&&r!==void 0?r:(i=t?.account)===null||i===void 0?void 0:i.address)!==null&&a!==void 0?a:null,messages:e.messages.map(o=>{var s,l,c,u;return{address:(s=o.address)!==null&&s!==void 0?s:null,amount:(l=o.amount)!==null&&l!==void 0?l:null,payload:(c=o.payload)!==null&&c!==void 0?c:null,state_init:(u=o.stateInit)!==null&&u!==void 0?u:null}})}}function cb(t,e,n,r,i){return Object.assign(Object.assign({type:\\\"transaction-sent-for-signature\\\",trace_id:i??null},hs(t,e,r)),lO(e,n))}function ub(t,e,n,r,i,a){return Object.assign(Object.assign({type:\\\"transaction-signed\\\",is_success:!0,signed_transaction:r.boc,trace_id:a??null},hs(t,e,i)),lO(e,n))}function db(t,e,n,r,i,a,o){return Object.assign(Object.assign({type:\\\"transaction-signing-failed\\\",is_success:!1,error_message:r,error_code:i??null,trace_id:o??null},hs(t,e,a)),bX(e,n))}function fb(t,e,n,r,i){return Object.assign({type:\\\"sign-data-request-initiated\\\",data:n,trace_id:i??null},hs(t,e,r))}function hb(t,e,n,r,i,a){return Object.assign({type:\\\"sign-data-request-completed\\\",is_success:!0,data:n,signed_data:r,trace_id:a??null},hs(t,e,i))}function gb(t,e,n,r,i,a,o){return Object.assign({type:\\\"sign-data-request-failed\\\",is_success:!1,data:n,error_message:r,error_code:i??null,trace_id:o??null},hs(t,e,a))}function pb(t,e,n,r,i){return Object.assign({type:\\\"disconnection\\\",scope:n,trace_id:i??null},hs(t,e,r))}function e6(t,e,n,r){return{type:\\\"wallet-modal-opened\\\",visible_wallets:e,client_id:n??null,custom_data:t,trace_id:r??null}}function t6(t,e,n,r,i,a,o,s){var l;let c=a;return!c&&i&&(c=ma(i)?\\\"tg_link\\\":\\\"external_link\\\"),{type:\\\"selected-wallet\\\",wallets_menu:r,visible_wallets:e,client_id:o??null,custom_data:t,trace_id:s??null,wallet_redirect_method:c,wallet_redirect_link:i||void 0,wallet_type:(l=n?.appName)!==null&&l!==void 0?l:null}}function $f(t,e=!1){let{wc:n,hex:r}=fO(t),i=uO;e&&(i|=Kx);let a=new Int8Array(34);a[0]=i,a[1]=n,a.set(r,2);let o=new Uint8Array(36);return o.set(a),o.set(hO(a),34),ag.encode(o).replace(/\\\\+/g,\\\"-\\\").replace(/\\\\//g,\\\"_\\\")}function n6(t){try{return dO(t),!0}catch{return!1}}function vX(t){try{return fO(t),!0}catch{return!1}}function wX({wc:t,hex:e}){return`${t}:${e}`}function dO(t){let e=t.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\"),n;try{n=ag.decode(e).toUint8Array()}catch{throw new ha(`Invalid base64 encoding in address: ${t}`)}if(n.length!==36)throw new ha(`Invalid address length: ${t}`);let r=n.slice(0,34),i=n.slice(34,36),a=hO(r);if(!i.every((d,h)=>d===a[h]))throw new ha(`Invalid checksum in address: ${t}`);let o=r[0],s=!1,l=!1;if(o&Kx&&(s=!0,o=o^Kx),o!==eO&&o!==uO)throw new ha(`Unknown address tag: ${o}`);l=o===eO;let c=null;r[1]===255?c=-1:c=r[1];let u=r.slice(2);if(c!==0&&c!==-1)throw new ha(`Invalid workchain: ${c}`);return{wc:c,hex:Array.from(u).map(d=>d.toString(16).padStart(2,\\\"0\\\")).join(\\\"\\\"),testOnly:s,isBounceable:l}}function fO(t){if(!t.includes(\\\":\\\"))throw new ha(`Wrong address ${t}. Address must include \\\":\\\".`);let e=t.split(\\\":\\\");if(e.length!==2)throw new ha(`Wrong address ${t}. Address must include \\\":\\\" only once.`);let n=parseInt(e[0]);if(n!==0&&n!==-1)throw new ha(`Wrong address ${t}. WC must be eq 0 or -1, but ${n} received.`);let r=e[1];if(r?.length!==64)throw new ha(`Wrong address ${t}. Hex part must be 64bytes length, but ${r?.length} received.`);return{wc:n,hex:xX(r)}}function hO(t){let n=0,r=new Uint8Array(t.length+2);r.set(t);for(let i of r){let a=128;for(;a>0;)n<<=1,i&a&&(n+=1),a>>=1,n>65535&&(n&=65535,n^=4129)}return new Uint8Array([Math.floor(n/256),n%256])}function xX(t){t=t.toLowerCase();let e=t.length;if(e%2!==0)throw new ug(\\\"Hex string must have length a multiple of 2: \\\"+t);let n=e/2,r=new Uint8Array(n);for(let i=0;i<n;i++){let a=i*2,o=t.substring(a,a+2);if(!Zx.hasOwnProperty(o))throw new ug(\\\"Invalid hex character: \\\"+o);r[i]=Zx[o]}return r}function Hy(t){return typeof t==\\\"number\\\"&&!isNaN(t)}function ei(t){return typeof t==\\\"string\\\"&&t.length>0}function mb(t){return ei(t)&&(vX(t)||n6(t))}function yb(t){return ei(t)&&/^-?\\\\d+$/.test(t)}function Yx(t){return typeof t==\\\"string\\\"&&(gO.test(t)||_X.test(t))&&t.startsWith(CX)}function cs(t){return typeof t==\\\"object\\\"&&t!==null&&!Array.isArray(t)}function BX(t){return Array.isArray(t)}function Rl(t,e){return Object.keys(t).some(n=>!e.includes(n))}function MX(t){if(!cs(t))return\\\"Request must be an object\\\";if(Rl(t,[\\\"validUntil\\\",\\\"network\\\",\\\"from\\\",\\\"messages\\\"]))return\\\"Request contains extra properties\\\";if(t.validUntil){if(!Hy(t.validUntil))return\\\"Incorrect 'validUntil'\\\";let n=Math.floor(Date.now()/1e3),r=n+300;t.validUntil>r&&console.warn(`validUntil (${t.validUntil}) is more than 5 minutes from now (${n})`)}if(t.network!==void 0&&!yb(t.network))return\\\"Invalid 'network' format\\\";if(t.from!==void 0&&!mb(t.from))return\\\"Invalid 'from' address format\\\";if(!BX(t.messages)||t.messages.length===0)return\\\"'messages' is required\\\";for(let n=0;n<t.messages.length;n++){let r=t.messages[n],i=RX(r,n);if(i)return i}return null}function RX(t,e){if(!cs(t))return`Message at index ${e} must be an object`;if(Rl(t,[\\\"address\\\",\\\"amount\\\",\\\"stateInit\\\",\\\"payload\\\",\\\"extraCurrency\\\"]))return`Message at index ${e} contains extra properties`;if(!ei(t.address))return`'address' is required in message at index ${e}`;if(!n6(t.address))return`Wrong 'address' format in message at index ${e}`;if(!ei(t.amount))return`'amount' is required in message at index ${e}`;if(!/^[0-9]+$/.test(t.amount))return`Incorrect 'amount' in message at index ${e}`;if(t.stateInit!==void 0&&(!ei(t.stateInit)||!Yx(t.stateInit)))return`Invalid 'stateInit' in message at index ${e}`;if(t.payload!==void 0&&(!ei(t.payload)||!Yx(t.payload)))return`Invalid 'payload' in message at index ${e}`;if(t.extraCurrency!==void 0){if(!cs(t.extraCurrency))return`Invalid 'extraCurrency' in message at index ${e}`;for(let[r,i]of Object.entries(t.extraCurrency))if(!SX.test(r)||typeof i!=\\\"string\\\"||!TX.test(i))return`Invalid 'extraCurrency' format in message at index ${e}`}return null}function OX(t){if(!cs(t))return\\\"Request must be an object\\\";if(Rl(t,[\\\"tonProof\\\"]))return\\\"Request contains extra properties\\\";if(t.tonProof!==void 0){if(typeof t.tonProof!=\\\"string\\\")return\\\"Invalid 'tonProof'\\\";let n=t.tonProof;if(n.length===0)return\\\"Empty 'tonProof' payload\\\";let r=lX();if(!r)return null;let i=new TextEncoder().encode(r).length;if(i>EX)return\\\"Current domain exceeds 128 bytes limit\\\";let a=new TextEncoder().encode(n).length;if(a>AX)return\\\"'tonProof' payload exceeds 128 bytes limit\\\";if(i+a>kX)return\\\"'tonProof' domain + payload exceeds 222 bytes limit\\\"}return null}function IX(t){if(!cs(t))return\\\"Payload must be an object\\\";if(!ei(t.type))return\\\"'type' is required\\\";switch(t.type){case\\\"text\\\":return UX(t);case\\\"binary\\\":return NX(t);case\\\"cell\\\":return PX(t);default:return\\\"Invalid 'type' value\\\"}}function UX(t){return Rl(t,[\\\"type\\\",\\\"text\\\",\\\"network\\\",\\\"from\\\"])?\\\"Text payload contains extra properties\\\":ei(t.text)?t.network!==void 0&&!yb(t.network)?\\\"Invalid 'network' format\\\":t.from!==void 0&&!mb(t.from)?\\\"Invalid 'from'\\\":null:\\\"'text' is required\\\"}function NX(t){return Rl(t,[\\\"type\\\",\\\"bytes\\\",\\\"network\\\",\\\"from\\\"])?\\\"Binary payload contains extra properties\\\":ei(t.bytes)?t.network!==void 0&&!yb(t.network)?\\\"Invalid 'network' format\\\":t.from!==void 0&&!mb(t.from)?\\\"Invalid 'from'\\\":null:\\\"'bytes' is required\\\"}function PX(t){return Rl(t,[\\\"type\\\",\\\"schema\\\",\\\"cell\\\",\\\"network\\\",\\\"from\\\"])?\\\"Cell payload contains extra properties\\\":ei(t.schema)?ei(t.cell)?Yx(t.cell)?t.network!==void 0&&!yb(t.network)?\\\"Invalid 'network' format\\\":t.from!==void 0&&!mb(t.from)?\\\"Invalid 'from'\\\":null:\\\"Invalid 'cell' format (must be valid base64)\\\":\\\"'cell' is required\\\":\\\"'schema' is required\\\"}function jX(t){if(!cs(t))return\\\"ton_proof item must be an object\\\";if(Rl(t,[\\\"error\\\",\\\"proof\\\",\\\"name\\\"]))return\\\"ton_proof item contains extra properties\\\";let n=Object.prototype.hasOwnProperty.call(t,\\\"proof\\\"),r=Object.prototype.hasOwnProperty.call(t,\\\"error\\\");if(!n&&!r)return\\\"'ton_proof' item must contain either 'proof' or 'error'\\\";if(n&&r)return\\\"'ton_proof' item must contain either 'proof' or 'error', not both\\\";if(n){let i=t.proof;if(!cs(i))return\\\"Invalid 'proof' object\\\";if(!Hy(i.timestamp))return\\\"Invalid 'proof.timestamp'\\\";let a=i.domain;if(!cs(a))return\\\"Invalid 'proof.domain'\\\";if(!Hy(a.lengthBytes))return\\\"Invalid 'proof.domain.lengthBytes'\\\";if(!ei(a.value))return\\\"Invalid 'proof.domain.value'\\\";try{if((typeof TextEncoder<\\\"u\\\"?new TextEncoder().encode(a.value).length:a.value.length)!==a.lengthBytes)return\\\"'proof.domain.lengthBytes' does not match 'proof.domain.value'\\\"}catch{}if(!ei(i.payload))return\\\"Invalid 'proof.payload'\\\";if(!ei(i.signature)||!gO.test(i.signature))return\\\"Invalid 'proof.signature' format\\\"}if(r){let i=t.error;if(!cs(i))return\\\"Invalid 'error' object\\\";if(Rl(i,[\\\"code\\\",\\\"message\\\"]))return\\\"ton_proof error contains extra properties\\\";if(!Hy(i.code))return\\\"Invalid 'error.code'\\\";if(!ei(i.message))return\\\"Invalid 'error.message'\\\"}return null}function Ux(t){if(typeof t!=\\\"string\\\")return;let e=t.length+(4-t.length%4)%4;return t.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(e,\\\"=\\\")}function zX(t){return t.replace(/([a-z0-9])([A-Z])/g,\\\"$1-$2\\\").toLowerCase()}function DX(){let t={};try{let e=performance.getEntriesByType(\\\"navigation\\\");if(e.length>0){let n=e[0];n.responseStart&&n.requestStart&&(t.conn_ttfb=Math.round(n.responseStart-n.requestStart))}}catch{}return t}function LX(){let t={};try{let e=navigator,n=e.connection||e.mozConnection||e.webkitConnection;n&&(n.rtt!==void 0&&(t.conn_rtt=n.rtt),n.effectiveType?t.conn_network_type=n.effectiveType:n.type&&(t.conn_network_type=n.type))}catch{}return t}function Gx(t){return{\\\"@tonconnect/sdk\\\":t.ton_connect_sdk_lib||\\\"\\\",\\\"@tonconnect/ui\\\":t.ton_connect_ui_lib||\\\"\\\"}}function Bl(t){var e,n,r,i,a,o,s,l;return{versions:Gx(t.custom_data),network_id:(e=t.custom_data.chain_id)!==null&&e!==void 0?e:\\\"\\\",client_id:(n=t.custom_data.client_id)!==null&&n!==void 0?n:\\\"\\\",wallet_id:(r=t.custom_data.wallet_id)!==null&&r!==void 0?r:\\\"\\\",wallet_address:(i=t.wallet_address)!==null&&i!==void 0?i:\\\"\\\",wallet_app_name:(a=t.wallet_type)!==null&&a!==void 0?a:\\\"\\\",wallet_app_version:(o=t.wallet_version)!==null&&o!==void 0?o:\\\"\\\",wallet_state_init:(s=t.wallet_state_init)!==null&&s!==void 0?s:\\\"\\\",trace_id:(l=t.trace_id)!==null&&l!==void 0?l:void 0}}function qX(t,e){t.addEventListener(\\\"ton-connect-ui-wallet-modal-opened\\\",n=>{var r;let{detail:i}=n;e.emitConnectionStarted({client_id:i.client_id||\\\"\\\",versions:Gx(i.custom_data),main_screen:i.visible_wallets,trace_id:(r=i.trace_id)!==null&&r!==void 0?r:void 0})}),t.addEventListener(\\\"ton-connect-ui-selected-wallet\\\",n=>{var r,i;let{detail:a}=n;e.emitConnectionSelectedWallet({client_id:a.client_id||\\\"\\\",versions:Gx(a.custom_data),main_screen:a.visible_wallets,wallets_menu:a.wallets_menu,trace_id:(r=a.trace_id)!==null&&r!==void 0?r:void 0,wallet_app_name:(i=a.wallet_type)!==null&&i!==void 0?i:\\\"\\\",wallet_redirect_method:a.wallet_redirect_method,wallet_redirect_link:a.wallet_redirect_link})}),t.addEventListener(\\\"ton-connect-connection-completed\\\",n=>{let{detail:r}=n;e.emitConnectionCompleted(Bl(r))}),t.addEventListener(\\\"ton-connect-connection-error\\\",n=>{var r,i;let{detail:a}=n;e.emitConnectionError({client_id:a.custom_data.client_id||\\\"\\\",wallet_id:a.custom_data.wallet_id||\\\"\\\",error_code:(r=a.error_code)!==null&&r!==void 0?r:0,error_message:a.error_message,trace_id:(i=a.trace_id)!==null&&i!==void 0?i:void 0})}),t.addEventListener(\\\"ton-connect-disconnection\\\",n=>{let{detail:r}=n;e.emitDisconnection(Bl(r))}),t.addEventListener(\\\"ton-connect-transaction-sent-for-signature\\\",n=>{let{detail:r}=n;e.emitTransactionSent(Bl(r))}),t.addEventListener(\\\"ton-connect-transaction-signed\\\",n=>{let{detail:r}=n;e.emitTransactionSigned(Object.assign(Object.assign({},Bl(r)),{signed_boc:n.detail.signed_transaction}))}),t.addEventListener(\\\"ton-connect-transaction-signing-failed\\\",n=>{var r;let{detail:i}=n;e.emitTransactionSigningFailed(Object.assign(Object.assign({},Bl(i)),{valid_until:Number(i.valid_until),messages:i.messages.map(a=>{var o,s,l,c;return{address:(o=a.address)!==null&&o!==void 0?o:\\\"\\\",amount:(s=a.amount)!==null&&s!==void 0?s:\\\"\\\",payload:(l=a.payload)!==null&&l!==void 0?l:\\\"\\\",state_init:(c=a.state_init)!==null&&c!==void 0?c:\\\"\\\"}}),error_message:i.error_message,error_code:(r=i.error_code)!==null&&r!==void 0?r:0}))}),t.addEventListener(\\\"ton-connect-sign-data-request-initiated\\\",n=>{let{detail:r}=n;e?.emitSignDataRequestInitiated(Bl(r))}),t.addEventListener(\\\"ton-connect-sign-data-request-completed\\\",n=>{let{detail:r}=n;e?.emitSignDataRequestCompleted(Bl(r))}),t.addEventListener(\\\"ton-connect-sign-data-request-failed\\\",n=>{var r;let{detail:i}=n,a=\\\"\\\",o;i.data.type===\\\"text\\\"&&(a=i.data.text),i.data.type===\\\"cell\\\"&&(a=i.data.cell,o=i.data.schema),i.data.type===\\\"binary\\\"&&(a=i.data.bytes),e?.emitSignDataRequestFailed(Object.assign(Object.assign({},Bl(i)),{sign_data_type:i.data.type,sign_data_value:a,sign_data_schema:o,error_code:(r=i.error_code)!==null&&r!==void 0?r:0,error_message:i.error_message}))})}function VX(t,e){if(Si?.walletConnectOptions!==void 0||Si?.UniversalConnectorCls!==void 0)throw new Oe(\\\"Wallet Connect already initialized.\\\");if(typeof t!=\\\"function\\\"||!(\\\"init\\\"in t))throw new Oe(\\\"Initialize UniversalConnectorCls must be set\\\");Si.UniversalConnectorCls=t,Si.walletConnectOptions=e}function r6(){return Si.UniversalConnectorCls!==void 0&&Si.walletConnectOptions!==void 0}function HX(){if(Si.UniversalConnectorCls===void 0)throw new Oe(\\\"Wallet Connect is not initialized.\\\");return Si.UniversalConnectorCls}function WX(){if(Si.walletConnectOptions===void 0)throw new Oe(\\\"Wallet Connect is not initialized.\\\");return Si.walletConnectOptions}var Oe,Px,Fy,$y,Ky,cg,Zy,Ra,Ml,us,zf,Df,Lf,jx,Yy,ha,ug,pa,ZR,zx,HQ,Gy,YR,Dx,Ly,GR,Lx,qy,qx,sg,YQ,rO,Ox,XQ,Mr,Ix,Qy,Vx,co,Hx,Wx,dX,Xy,Vy,dg,$x,cO,eO,uO,Kx,Zx,gO,_X,CX,SX,TX,EX,AX,kX,ou,Vf,Jy,Si,Ma,Nx,eb,Oa,i6=Dl(()=>{b();Rx();Rx();$R();KR();Oe=class t extends Error{get info(){return\\\"\\\"}constructor(e,n){super(e,n),this.message=`${t.prefix} ${this.constructor.name}${this.info?\\\": \\\"+this.info:\\\"\\\"}${e?`\\n`+e:\\\"\\\"}`,Object.setPrototypeOf(this,t.prototype)}};Oe.prefix=\\\"[TON_CONNECT_SDK_ERROR]\\\";Px=class t extends Oe{get info(){return\\\"Passed DappMetadata is in incorrect format.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Fy=class t extends Oe{get info(){return\\\"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},$y=class t extends Oe{get info(){return\\\"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Ky=class t extends Oe{get info(){return\\\"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},cg=class t extends Oe{get info(){return\\\"Send transaction or other protocol methods called while wallet is not connected.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Zy=class t extends Oe{get info(){return\\\"There is an attempt to connect to the injected wallet while it is not exists in the webpage.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Ra=class t extends Oe{get info(){return\\\"Wallet doesn't support requested feature method.\\\"}constructor(e,n){super(e,n),Object.setPrototypeOf(this,t.prototype)}},Ml=class t extends Oe{get info(){return\\\"Missing required features. You need to update your wallet.\\\"}constructor(e,n){super(e,n),Object.setPrototypeOf(this,t.prototype)}},us=class t extends Oe{constructor(e,n){super(e,n),this.name=\\\"WalletWrongNetworkError\\\",Object.setPrototypeOf(this,t.prototype)}};zf=class t extends Oe{get info(){return\\\"User rejects the action in the wallet.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Df=class t extends Oe{get info(){return\\\"Request to the wallet contains errors.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Lf=class t extends Oe{get info(){return\\\"App tries to send rpc request to the injected wallet while not connected.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},jx=class t extends Oe{get info(){return\\\"Storage was not specified in the `DappMetadata` and default `localStorage` was not detected in the environment.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},Yy=class t extends Oe{get info(){return\\\"An error occurred while fetching the wallets list.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},ha=class t extends Oe{get info(){return\\\"Passed address is in incorrect format.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},ug=class t extends Oe{get info(){return\\\"Passed hex is in incorrect format.\\\"}constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},pa=class t extends Oe{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},ZR={[Xr.UNKNOWN_ERROR]:pa,[Xr.USER_REJECTS_ERROR]:zf,[Xr.BAD_REQUEST_ERROR]:Df,[Xr.UNKNOWN_APP_ERROR]:Lf,[Xr.MANIFEST_NOT_FOUND_ERROR]:$y,[Xr.MANIFEST_CONTENT_ERROR]:Fy},zx=class{parseError(e){let n=pa;return e.code in ZR&&(n=ZR[e.code]||pa),new n(e.message)}},HQ=new zx,Gy=class{isError(e){return\\\"error\\\"in e}},YR={[Li.UNKNOWN_ERROR]:pa,[Li.USER_REJECTS_ERROR]:zf,[Li.BAD_REQUEST_ERROR]:Df,[Li.UNKNOWN_APP_ERROR]:Lf},Dx=class extends Gy{convertToRpcRequest(e){return{method:\\\"sendTransaction\\\",params:[JSON.stringify(e)]}}parseAndThrowError(e){let n=pa;throw e.error.code in YR&&(n=YR[e.error.code]||pa),new n(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},Ly=new Dx,GR={[ss.UNKNOWN_ERROR]:pa,[ss.USER_REJECTS_ERROR]:zf,[ss.BAD_REQUEST_ERROR]:Df,[ss.UNKNOWN_APP_ERROR]:Lf},Lx=class extends Gy{convertToRpcRequest(e){return{method:\\\"signData\\\",params:[JSON.stringify(e)]}}parseAndThrowError(e){let n=pa;throw e.error.code in GR&&(n=GR[e.error.code]||pa),new n(e.error.message)}convertFromRpcResponse(e){return e.result}},qy=new Lx,qx=class{constructor(e,n){this.storage=e,this.storeKey=\\\"ton-connect-storage_http-bridge-gateway::\\\"+n}storeLastEventId(e){return Be(this,void 0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Be(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Be(this,void 0,void 0,function*(){let e=yield this.storage.getItem(this.storeKey);return e||null})}};sg=class{get isReady(){let e=this.eventSource.current();return e?.readyState===EventSource.OPEN}get isClosed(){let e=this.eventSource.current();return e?.readyState!==EventSource.OPEN}get isConnecting(){let e=this.eventSource.current();return e?.readyState===EventSource.CONNECTING}constructor(e,n,r,i,a,o){this.bridgeUrl=n,this.sessionId=r,this.listener=i,this.errorsListener=a,this.ssePath=\\\"events\\\",this.postPath=\\\"message\\\",this.heartbeatMessage=\\\"heartbeat\\\",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=$Q((s,l,c)=>Be(this,void 0,void 0,function*(){let u={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:s,openingDeadlineMS:l,traceId:c};return yield ZQ(u)}),s=>Be(this,void 0,void 0,function*(){s.close()})),this.bridgeGatewayStorage=new qx(e,n),this.analytics=o?.scoped({bridge_url:n,client_id:r})}registerSession(e){return Be(this,void 0,void 0,function*(){var n,r,i;try{(n=this.analytics)===null||n===void 0||n.emitBridgeClientConnectStarted({trace_id:e?.traceId});let a=Date.now();yield this.eventSource.create(e?.signal,e?.openingDeadlineMS,e?.traceId);let o=Date.now()-a;(r=this.analytics)===null||r===void 0||r.emitBridgeClientConnectEstablished({bridge_connect_duration:o,trace_id:e?.traceId})}catch(a){throw(i=this.analytics)===null||i===void 0||i.emitBridgeClientConnectError({trace_id:e?.traceId,error_message:String(a)}),a}})}send(e,n,r,i){return Be(this,void 0,void 0,function*(){var a;let o={};typeof i==\\\"number\\\"?o.ttl=i:(o.ttl=i?.ttl,o.signal=i?.signal,o.attempts=i?.attempts,o.traceId=i?.traceId);let s=new URL(tO(this.bridgeUrl,this.postPath));s.searchParams.append(\\\"client_id\\\",this.sessionId),s.searchParams.append(\\\"to\\\",n),s.searchParams.append(\\\"ttl\\\",(o?.ttl||this.defaultTtl).toString()),s.searchParams.append(\\\"topic\\\",r),o?.traceId&&s.searchParams.append(\\\"trace_id\\\",o.traceId);let l=ag.encode(e);yield og(c=>Be(this,void 0,void 0,function*(){let u=yield this.post(s,l,c.signal);if(!u.ok)throw new Oe(`Bridge send failed, status ${u.status}`)}),{attempts:(a=o?.attempts)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:o?.signal})})}pause(){this.eventSource.dispose().catch(e=>ga(`Bridge pause failed, ${e}`))}unPause(){return Be(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Be(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(e=>ga(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,n,r){return Be(this,void 0,void 0,function*(){let i=yield fetch(e,{method:\\\"post\\\",body:n,signal:r});if(!i.ok)throw new Oe(`Bridge send failed, status ${i.status}`);return i})}errorsHandler(e,n){return Be(this,void 0,void 0,function*(){if(this.isConnecting)throw e.close(),new Oe(\\\"Bridge error, failed to connect\\\");if(this.isReady){try{this.errorsListener(n)}catch{}return}if(this.isClosed)return e.close(),gt(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Oe(\\\"Bridge error, unknown state\\\")})}messagesHandler(e){return Be(this,void 0,void 0,function*(){if(e.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed))return;let n;try{let r=JSON.parse(e.data);n={message:r.message,from:r.from,traceId:r.trace_id}}catch{throw new Oe(`Bridge message parse failed, message ${e.data}`)}this.listener(n)})}};YQ=300*1e3;rO=2,XQ=new Uint8Array(16);Mr=[];for(let t=0;t<256;++t)Mr.push((t+256).toString(16).slice(1));Ix={};Qy=class t{static fromStorage(e,n){return Be(this,void 0,void 0,function*(){let r=yield e.getHttpConnection();return lg(r)?new t(e,r.connectionSource,n):new t(e,{bridgeUrl:r.session.bridgeUrl},n)})}constructor(e,n,r){var i;this.connectionStorage=e,this.walletConnectionSource=n,this.analyticsManager=r,this.type=\\\"http\\\",this.standardUniversalLink=\\\"tc://\\\",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.optionalOpenGateways=3,this.analytics=(i=this.analyticsManager)===null||i===void 0?void 0:i.scoped()}connect(e,n){var r,i;let a=(r=n?.traceId)!==null&&r!==void 0?r:hn(),o=Jr(n?.signal);(i=this.abortController)===null||i===void 0||i.abort(),this.abortController=o,this.closeGateways();let s=new Ba;this.session={sessionCrypto:s,bridgeUrl:\\\"bridgeUrl\\\"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:\\\"\\\"},this.connectionStorage.storeConnection({type:\\\"http\\\",connectionSource:this.walletConnectionSource,sessionCrypto:s}).then(()=>Be(this,void 0,void 0,function*(){o.signal.aborted||(yield og(c=>{var u;return this.openGateways(s,{openingDeadlineMS:(u=n?.openingDeadlineMS)!==null&&u!==void 0?u:this.defaultOpeningDeadlineMS,signal:c?.signal,traceId:a})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:o.signal}))}));let l=\\\"universalLink\\\"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(l,e,{traceId:a})}restoreConnection(e){return Be(this,void 0,void 0,function*(){var n,r,i;let a=(n=e?.traceId)!==null&&n!==void 0?n:hn(),o=Jr(e?.signal);if((r=this.abortController)===null||r===void 0||r.abort(),this.abortController=o,o.signal.aborted)return;this.closeGateways();let s=yield this.connectionStorage.getHttpConnection();if(!s||o.signal.aborted)return;let l=(i=e?.openingDeadlineMS)!==null&&i!==void 0?i:this.defaultOpeningDeadlineMS;if(lg(s))return this.session={sessionCrypto:s.sessionCrypto,bridgeUrl:\\\"bridgeUrl\\\"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:\\\"\\\"},yield this.openGateways(s.sessionCrypto,{openingDeadlineMS:l,signal:o?.signal,traceId:e?.traceId});if(Array.isArray(this.walletConnectionSource))throw new Oe(\\\"Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.\\\");if(this.session=s.session,this.gateway&&(gt(\\\"Gateway is already opened, closing previous gateway\\\"),yield this.gateway.close()),this.gateway=new sg(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,s.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),!o.signal.aborted){this.listeners.forEach(c=>c(Object.assign(Object.assign({},s.connectEvent),{traceId:a})));try{yield og(c=>this.gateway.registerSession({openingDeadlineMS:l,signal:c.signal,traceId:a}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:o.signal})}catch{yield this.disconnect({signal:o.signal,traceId:a});return}}})}sendRequest(e,n){var r;let i={};return typeof n==\\\"function\\\"?i.onRequestSent=n:(i.onRequestSent=n?.onRequestSent,i.signal=n?.signal,i.attempts=n?.attempts,i.traceId=n?.traceId),(r=i.traceId)!==null&&r!==void 0||(i.traceId=hn()),new Promise((a,o)=>Be(this,void 0,void 0,function*(){var s,l;if(!this.gateway||!this.session||!(\\\"walletPublicKey\\\"in this.session))throw new Oe(\\\"Trying to send bridge request without session\\\");let c=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gt(\\\"Send http-bridge request:\\\",Object.assign(Object.assign({},e),{id:c}));let u=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:c})),ig(this.session.walletPublicKey));try{(s=this.analytics)===null||s===void 0||s.emitBridgeClientMessageSent({bridge_url:this.gateway.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:this.session.walletPublicKey,message_id:c,request_type:e.method,trace_id:i.traceId}),yield this.gateway.send(u,this.session.walletPublicKey,e.method,{attempts:i?.attempts,signal:i?.signal,traceId:i.traceId}),(l=i?.onRequestSent)===null||l===void 0||l.call(i),this.pendingRequests.set(c.toString(),a)}catch(d){o(d)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Be(this,void 0,void 0,function*(){var n;let r=(n=e?.traceId)!==null&&n!==void 0?n:hn();return new Promise(i=>Be(this,void 0,void 0,function*(){let a=!1,o=null,s=()=>{a||(a=!0,this.removeBridgeAndSession().then(i))};try{this.closeGateways();let l=Jr(e?.signal);o=setTimeout(()=>{l.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:\\\"disconnect\\\",params:[]},{onRequestSent:s,signal:l.signal,attempts:1,traceId:r})}catch(l){gt(\\\"Disconnect error:\\\",l),a||this.removeBridgeAndSession().then(i)}finally{o&&clearTimeout(o),s()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(n=>n!==e)}pause(){var e;(e=this.gateway)===null||e===void 0||e.pause(),this.pendingGateways.forEach(n=>n.pause())}unPause(){return Be(this,void 0,void 0,function*(){let e=this.pendingGateways.map(n=>n.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,n,r){return Be(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(e)){yield e.close();return}return this.closeGateways({except:e}),this.gateway&&(gt(\\\"Gateway is already opened, closing previous gateway\\\"),yield this.gateway.close()),this.session.bridgeUrl=n,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(r)})}gatewayListener(e){return Be(this,void 0,void 0,function*(){var n,r,i;let a=(n=e.traceId)!==null&&n!==void 0?n:hn(),o;try{o=JSON.parse(this.session.sessionCrypto.decrypt(ag.decode(e.message).toUint8Array(),ig(e.from)))}catch(c){throw(r=this.analytics)===null||r===void 0||r.emitBridgeClientMessageDecodeError({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,error_message:String(c),trace_id:e?.traceId}),c}gt(\\\"Wallet message received:\\\",o);let s=\\\"event\\\"in o?o.event:\\\"\\\";if((i=this.analytics)===null||i===void 0||i.emitBridgeClientMessageReceived({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,message_id:String(o.id),request_type:s,trace_id:e?.traceId}),!(\\\"event\\\"in o)){let c=o.id.toString(),u=this.pendingRequests.get(c);if(!u){gt(`Response id ${c} doesn't match any request's id`);return}u(Object.assign(Object.assign({},o),{traceId:a})),this.pendingRequests.delete(c);return}if(o.id!==void 0){let c=yield this.connectionStorage.getLastWalletEventId();if(c!==void 0&&o.id<=c){ga(`Received event id (=${o.id}) must be greater than stored last wallet event id (=${c}) `);return}o.event!==\\\"connect\\\"&&(yield this.connectionStorage.storeLastWalletEventId(o.id))}let l=this.listeners;o.event===\\\"connect\\\"&&(yield this.updateSession(o,e.from)),o.event===\\\"disconnect\\\"&&(gt(\\\"Removing bridge and session: received disconnect event\\\"),yield this.removeBridgeAndSession()),l.forEach(c=>c(Object.assign(Object.assign({},o),{traceId:a})))})}gatewayErrorsListener(e){return Be(this,void 0,void 0,function*(){throw new Oe(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,n){return Be(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:n});let r=e.payload.items.find(a=>a.name===\\\"ton_addr\\\"),i=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[r]})});yield this.connectionStorage.storeConnection({type:\\\"http\\\",session:this.session,lastWalletEventId:e.id,connectEvent:i,nextRpcRequestId:0})})}removeBridgeAndSession(){return Be(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,n,r){return ma(e)?this.generateTGUniversalLink(e,n,r):this.generateRegularUniversalLink(e,n,r)}generateRegularUniversalLink(e,n,r){let i=new URL(e);return i.searchParams.append(\\\"v\\\",rO.toString()),i.searchParams.append(\\\"id\\\",this.session.sessionCrypto.sessionId),i.searchParams.append(\\\"trace_id\\\",r.traceId),i.searchParams.append(\\\"r\\\",JSON.stringify(n)),i.toString()}generateTGUniversalLink(e,n,r){let a=this.generateRegularUniversalLink(\\\"about:blank\\\",n,r).split(\\\"?\\\")[1],o=\\\"tonconnect-\\\"+fg(a),s=this.convertToDirectLink(e),l=new URL(s);return l.searchParams.append(\\\"startapp\\\",o),l.toString()}convertToDirectLink(e){let n=new URL(e);return n.searchParams.has(\\\"attach\\\")&&(n.searchParams.delete(\\\"attach\\\"),n.pathname+=\\\"/start\\\"),n.toString()}openGateways(e,n){return Be(this,void 0,void 0,function*(){var r;let i=(r=n?.traceId)!==null&&r!==void 0?r:hn();if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(o=>o.close().catch()),this.pendingGateways=this.walletConnectionSource.map(o=>{let s=new sg(this.connectionStorage.storage,o.bridgeUrl,e.sessionId,()=>{},()=>{},this.analyticsManager);return s.setListener(l=>this.pendingGatewaysListener(s,o.bridgeUrl,l)),s});let a=Math.max(this.pendingGateways.length-this.optionalOpenGateways,1);yield tX(this.pendingGateways.map(o=>og(s=>{var l;return this.pendingGateways.some(c=>c===o)?o.registerSession({openingDeadlineMS:(l=n?.openingDeadlineMS)!==null&&l!==void 0?l:this.defaultOpeningDeadlineMS,signal:s.signal,traceId:i}):o.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:n?.signal})),a);return}else return this.gateway&&(gt(\\\"Gateway is already opened, closing previous gateway\\\"),yield this.gateway.close()),this.gateway=new sg(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),yield this.gateway.registerSession({openingDeadlineMS:n?.openingDeadlineMS,signal:n?.signal,traceId:i})})}closeGateways(e){var n;(n=this.gateway)===null||n===void 0||n.close(),this.pendingGateways.filter(r=>r!==e?.except).forEach(r=>r.close()),this.pendingGateways=[]}};Vx=class t{static getInstance(){return t.instance||(t.instance=new t),t.instance}constructor(){this.storage={}}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var n;return(n=this.storage[e])!==null&&n!==void 0?n:null}key(e){var n;let r=Object.keys(this.storage);return e<0||e>=r.length?null:(n=r[e])!==null&&n!==void 0?n:null}removeItem(e){delete this.storage[e]}setItem(e,n){this.storage[e]=n}};co=class t{static fromStorage(e,n){return Be(this,void 0,void 0,function*(){let r=yield e.getInjectedConnection();return new t(e,r.jsBridgeKey,n)})}static isWalletInjected(e){return t.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return t.isWindowContainsWallet(this.window,e)?this.window[e].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?cX().filter(([r,i])=>nX(i)).map(([r,i])=>({name:i.tonconnect.walletInfo.name,appName:i.tonconnect.walletInfo.app_name,aboutUrl:i.tonconnect.walletInfo.about_url,imageUrl:i.tonconnect.walletInfo.image,tondns:i.tonconnect.walletInfo.tondns,jsBridgeKey:r,injected:!0,embedded:i.tonconnect.isWalletBrowser,platforms:i.tonconnect.walletInfo.platforms,features:i.tonconnect.walletInfo.features})):[]}static isWindowContainsWallet(e,n){return!!e&&n in e&&typeof e[n]==\\\"object\\\"&&\\\"tonconnect\\\"in e[n]}constructor(e,n,r){this.connectionStorage=e,this.injectedWalletKey=n,this.type=\\\"injected\\\",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];let i=t.window;if(!t.isWindowContainsWallet(i,n))throw new Zy;this.injectedWallet=i[n].tonconnect,r&&(this.analytics=r.scoped({bridge_key:n,wallet_app_name:this.injectedWallet.deviceInfo.appName,wallet_app_version:this.injectedWallet.deviceInfo.appVersion}))}connect(e,n){this._connect(rO,e,n)}restoreConnection(e){return Be(this,void 0,void 0,function*(){var n,r,i,a;let o=(n=e?.traceId)!==null&&n!==void 0?n:hn();try{gt(\\\"Injected Provider restoring connection...\\\"),(r=this.analytics)===null||r===void 0||r.emitJsBridgeCall({js_bridge_method:\\\"restoreConnection\\\",trace_id:o});let s=yield this.injectedWallet.restoreConnection();(i=this.analytics)===null||i===void 0||i.emitJsBridgeResponse({js_bridge_method:\\\"restoreConnection\\\",trace_id:o}),gt(\\\"Injected Provider restoring connection response\\\",s),s.event===\\\"connect\\\"?(this.makeSubscriptions({traceId:o}),this.listeners.forEach(l=>l(Object.assign(Object.assign({},s),{traceId:o})))):yield this.connectionStorage.removeConnection()}catch(s){(a=this.analytics)===null||a===void 0||a.emitJsBridgeError({js_bridge_method:\\\"restoreConnection\\\",error_message:String(s),trace_id:o}),yield this.connectionStorage.removeConnection(),console.error(s)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(e){return Be(this,void 0,void 0,function*(){var n;let r=(n=e?.traceId)!==null&&n!==void 0?n:hn();return new Promise(i=>{let a=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(i)};try{this.injectedWallet.disconnect(),a()}catch(o){gt(o),this.sendRequest({method:\\\"disconnect\\\",params:[]},{onRequestSent:a,traceId:r})}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],(e=this.unsubscribeCallback)===null||e===void 0||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(n=>n!==e)}sendRequest(e,n){return Be(this,void 0,void 0,function*(){var r,i,a;let o={};typeof n==\\\"function\\\"?(o.onRequestSent=n,o.traceId=hn()):(o.onRequestSent=n?.onRequestSent,o.signal=n?.signal,o.attempts=n?.attempts,o.traceId=(r=n?.traceId)!==null&&r!==void 0?r:hn());let s=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gt(\\\"Send injected-bridge request:\\\",Object.assign(Object.assign({},e),{id:s})),(i=this.analytics)===null||i===void 0||i.emitJsBridgeCall({js_bridge_method:\\\"send\\\"});let l=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:s}));return l.then(c=>{var u;(u=this.analytics)===null||u===void 0||u.emitJsBridgeResponse({js_bridge_method:\\\"send\\\"}),gt(\\\"Wallet message received:\\\",c)}).catch(c=>{var u;(u=this.analytics)===null||u===void 0||u.emitJsBridgeError({js_bridge_method:\\\"send\\\",error_message:String(c)})}),(a=o?.onRequestSent)===null||a===void 0||a.call(o),l})}_connect(e,n,r){return Be(this,void 0,void 0,function*(){var i,a,o,s;let l=(i=r?.traceId)!==null&&i!==void 0?i:hn();try{gt(`Injected Provider connect request: protocolVersion: ${e}, message:`,n),(a=this.analytics)===null||a===void 0||a.emitJsBridgeCall({js_bridge_method:\\\"connect\\\",trace_id:l});let c=yield this.injectedWallet.connect(e,n);(o=this.analytics)===null||o===void 0||o.emitJsBridgeResponse({js_bridge_method:\\\"connect\\\"}),gt(\\\"Injected Provider connect response:\\\",c),c.event===\\\"connect\\\"&&(yield this.updateSession(),this.makeSubscriptions({traceId:l})),this.listeners.forEach(u=>u(Object.assign(Object.assign({},c),{traceId:l})))}catch(c){(s=this.analytics)===null||s===void 0||s.emitJsBridgeError({js_bridge_method:\\\"connect\\\",error_message:String(c),trace_id:l}),gt(\\\"Injected Provider connect error:\\\",c);let u={event:\\\"connect_error\\\",payload:{code:0,message:c?.toString()}};this.listeners.forEach(d=>d(Object.assign(Object.assign({},u),{traceId:l})))}})}makeSubscriptions(e){var n,r,i;this.listenSubscriptions=!0,(n=this.analytics)===null||n===void 0||n.emitJsBridgeCall({js_bridge_method:\\\"listen\\\",trace_id:e.traceId});try{this.unsubscribeCallback=this.injectedWallet.listen(a=>{var o;let s=(o=a.traceId)!==null&&o!==void 0?o:hn();gt(\\\"Wallet message received:\\\",a),this.listenSubscriptions&&this.listeners.forEach(l=>l(Object.assign(Object.assign({},a),{traceId:s}))),a.event===\\\"disconnect\\\"&&this.disconnect({traceId:s})}),(r=this.analytics)===null||r===void 0||r.emitJsBridgeResponse({js_bridge_method:\\\"listen\\\",trace_id:e.traceId})}catch(a){throw(i=this.analytics)===null||i===void 0||i.emitJsBridgeError({js_bridge_method:\\\"listen\\\",error_message:String(a),trace_id:e.traceId}),a}}updateSession(){return this.connectionStorage.storeConnection({type:\\\"injected\\\",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}};co.window=qf();Hx=class{constructor(e,n){this.storage=e,this.walletsListManager=n,this.storeKey=\\\"ton-connect-storage_bridge-connection\\\"}storeConnection(e){return Be(this,void 0,void 0,function*(){if(e.type===\\\"injected\\\"||e.type===\\\"wallet-connect\\\")return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!lg(e)){let r={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},i={type:\\\"http\\\",connectEvent:e.connectEvent,session:r,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(i))}let n={type:\\\"http\\\",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(n))})}removeConnection(){return Be(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Be(this,void 0,void 0,function*(){try{let e=yield this.storage.getItem(this.storeKey);if(!e)return null;let n=JSON.parse(e);if(n.type===\\\"injected\\\"||n.type===\\\"wallet-connect\\\")return n;if(!GQ(n)){let r=new Ba(n.session.sessionKeyPair);return yield this.actualizeBridgeConnection({type:\\\"http\\\",connectEvent:n.connectEvent,lastWalletEventId:n.lastWalletEventId,nextRpcRequestId:n.nextRpcRequestId,session:{sessionCrypto:r,bridgeUrl:n.session.bridgeUrl,walletPublicKey:n.session.walletPublicKey}})}return QQ(n)?(yield this.removeConnection(),null):{type:\\\"http\\\",sessionCrypto:new Ba(n.sessionCrypto),connectionSource:n.connectionSource}}catch(e){return gt(\\\"Error retrieving connection\\\",e),null}})}getHttpConnection(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(!e)throw new Oe(\\\"Trying to read HTTP connection source while nothing is stored\\\");if(e.type!==\\\"http\\\")throw new Oe(`Trying to read HTTP connection source while ${e.type} connection is stored`);return e})}getHttpPendingConnection(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(!e)throw new Oe(\\\"Trying to read HTTP connection source while nothing is stored\\\");if(e.type!==\\\"http\\\")throw new Oe(`Trying to read HTTP connection source while ${e.type} connection is stored`);if(!lg(e))throw new Oe(\\\"Trying to read HTTP-pending connection while http connection is stored\\\");return e})}getInjectedConnection(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(!e)throw new Oe(\\\"Trying to read Injected bridge connection source while nothing is stored\\\");if(e?.type!==\\\"injected\\\")throw new Oe(`Trying to read Injected bridge connection source while ${e.type} connection is stored`);return e})}getWalletConnectConnection(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(!e)throw new Oe(\\\"Trying to read wallet connect bridge connection source while nothing is stored\\\");if(e?.type!==\\\"wallet-connect\\\")throw new Oe(`Trying to read wallet connect bridge connection source while ${e.type} connection is stored`);return e})}storedConnectionType(){return Be(this,void 0,void 0,function*(){let e=yield this.storage.getItem(this.storeKey);return e?JSON.parse(e).type:null})}storeLastWalletEventId(e){return Be(this,void 0,void 0,function*(){let n=yield this.getConnection();if(n&&n.type===\\\"http\\\"&&!lg(n))return n.lastWalletEventId=e,this.storeConnection(n)})}getLastWalletEventId(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(e&&\\\"lastWalletEventId\\\"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();if(e&&\\\"nextRpcRequestId\\\"in e){let n=e.nextRpcRequestId||0;return e.nextRpcRequestId=n+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Be(this,void 0,void 0,function*(){let e=yield this.getConnection();return e&&\\\"nextRpcRequestId\\\"in e&&e.nextRpcRequestId||0})}actualizeBridgeConnection(e){return Be(this,void 0,void 0,function*(){try{let n=e.connectEvent.payload.device.appName,r=yield this.walletsListManager.getRemoteWallet(n);if(r.bridgeUrl===e.session.bridgeUrl)return e;let i=Object.assign(Object.assign({},e),{session:Object.assign(Object.assign({},e.session),{bridgeUrl:r.bridgeUrl})});return yield this.storeConnection(i),i}catch(n){return gt(\\\"Failed to actualize bridge connection\\\",n),e}})}},Wx=class{constructor(){this.localStorage=aX()}getItem(e){return Be(this,void 0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Be(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,n){return Be(this,void 0,void 0,function*(){this.localStorage.setItem(e,n)})}};dX=[{app_name:\\\"telegram-wallet\\\",name:\\\"Wallet\\\",image:\\\"https://wallet.tg/images/logo-288.png\\\",about_url:\\\"https://wallet.tg/\\\",universal_url:\\\"https://t.me/wallet?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://walletbot.me/tonconnect-bridge/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!0},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"tonkeeper\\\",name:\\\"Tonkeeper\\\",image:\\\"https://tonkeeper.com/assets/tonconnect-icon.png\\\",tondns:\\\"tonkeeper.ton\\\",about_url:\\\"https://tonkeeper.com\\\",universal_url:\\\"https://app.tonkeeper.com/ton-connect\\\",deepLink:\\\"tonkeeper-tc://\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://bridge.tonapi.io/bridge\\\"},{type:\\\"js\\\",key:\\\"tonkeeper\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"chrome\\\",\\\"firefox\\\",\\\"macos\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!0},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"mytonwallet\\\",name:\\\"MyTonWallet\\\",image:\\\"https://static.mytonwallet.io/icon-256.png\\\",about_url:\\\"https://mytonwallet.io\\\",universal_url:\\\"https://connect.mytonwallet.org\\\",deepLink:\\\"mytonwallet-tc://\\\",bridge:[{type:\\\"js\\\",key:\\\"mytonwallet\\\"},{type:\\\"sse\\\",url:\\\"https://tonconnectbridge.mytonwallet.org/bridge/\\\"}],platforms:[\\\"chrome\\\",\\\"windows\\\",\\\"macos\\\",\\\"linux\\\",\\\"ios\\\",\\\"android\\\",\\\"firefox\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"tonhub\\\",name:\\\"Tonhub\\\",image:\\\"https://tonhub.com/tonconnect_logo.png\\\",about_url:\\\"https://tonhub.com\\\",universal_url:\\\"https://tonhub.com/ton-connect\\\",bridge:[{type:\\\"js\\\",key:\\\"tonhub\\\"},{type:\\\"sse\\\",url:\\\"https://connect.tonhubapi.com/tonconnect\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!0},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"bitgetTonWallet\\\",name:\\\"Bitget Wallet\\\",image:\\\"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png\\\",about_url:\\\"https://web3.bitget.com\\\",deepLink:\\\"bitkeep://\\\",bridge:[{type:\\\"js\\\",key:\\\"bitgetTonWallet\\\"},{type:\\\"sse\\\",url:\\\"https://ton-connect-bridge.bgwapi.io/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"chrome\\\"],universal_url:\\\"https://bkcode.vip/ton-connect\\\",features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"okxMiniWallet\\\",name:\\\"OKX Mini Wallet\\\",image:\\\"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png\\\",about_url:\\\"https://www.okx.com/web3\\\",universal_url:\\\"https://t.me/OKX_WALLET_BOT?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://www.okx.com/tonbridge/discover/rpc/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"binanceWeb3TonWallet\\\",name:\\\"Binance Wallet\\\",image:\\\"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png\\\",about_url:\\\"https://www.binance.com/en/web3wallet\\\",deepLink:\\\"bnc://app.binance.com/cedefi/ton-connect\\\",bridge:[{type:\\\"js\\\",key:\\\"binancew3w\\\"},{type:\\\"sse\\\",url:\\\"https://wallet.binance.com/tonbridge/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],universal_url:\\\"https://app.binance.com/cedefi/ton-connect\\\",features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"fintopio-tg\\\",name:\\\"Fintopio\\\",image:\\\"https://raw.githubusercontent.com/fintopio/ton-pub/refs/heads/main/logos/tonconnect-icon.png\\\",about_url:\\\"https://fintopio.com\\\",universal_url:\\\"https://t.me/fintopio?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://wallet-bridge.fintopio.com/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"okxTonWallet\\\",name:\\\"OKX Wallet\\\",image:\\\"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png\\\",about_url:\\\"https://www.okx.com/web3\\\",universal_url:\\\"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect\\\",bridge:[{type:\\\"js\\\",key:\\\"okxTonWallet\\\"},{type:\\\"sse\\\",url:\\\"https://www.okx.com/tonbridge/discover/rpc/bridge\\\"}],platforms:[\\\"chrome\\\",\\\"safari\\\",\\\"firefox\\\",\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"hot\\\",name:\\\"HOT\\\",image:\\\"https://raw.githubusercontent.com/hot-dao/media/main/logo.png\\\",about_url:\\\"https://hot-labs.org/\\\",universal_url:\\\"https://t.me/herewalletbot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://sse-bridge.hot-labs.org\\\"},{type:\\\"js\\\",key:\\\"hotWallet\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"bybitTonWallet\\\",name:\\\"Bybit Wallet\\\",image:\\\"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png\\\",about_url:\\\"https://www.bybit.com/web3\\\",universal_url:\\\"https://app.bybit.com/ton-connect\\\",deepLink:\\\"bybitapp://\\\",bridge:[{type:\\\"js\\\",key:\\\"bybitTonWallet\\\"},{type:\\\"sse\\\",url:\\\"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"chrome\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"dewallet\\\",name:\\\"DeWallet\\\",image:\\\"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png\\\",about_url:\\\"https://delabwallet.com\\\",universal_url:\\\"https://t.me/dewallet?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://bridge.dewallet.pro/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"safepalwallet\\\",name:\\\"SafePal\\\",image:\\\"https://s.pvcliping.com/web/public_image/SafePal_x288.png\\\",tondns:\\\"\\\",about_url:\\\"https://www.safepal.com\\\",universal_url:\\\"https://link.safepal.io/ton-connect\\\",deepLink:\\\"safepal-tc://\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://ton-bridge.safepal.com/tonbridge/v1/bridge\\\"},{type:\\\"js\\\",key:\\\"safepalwallet\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"chrome\\\",\\\"firefox\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:1,extraCurrencySupported:!1}]},{app_name:\\\"GateWallet\\\",name:\\\"GateWallet\\\",image:\\\"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png\\\",about_url:\\\"https://www.gate.io/\\\",bridge:[{type:\\\"js\\\",key:\\\"gatetonwallet\\\"},{type:\\\"sse\\\",url:\\\"https://dapp.gateio.services/tonbridge_api/bridge/v1\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],universal_url:\\\"https://gate.onelink.me/Hls0/web3?gate_web3_wallet_universal_type=ton_connect\\\",features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"openmask\\\",name:\\\"OpenMask\\\",image:\\\"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png\\\",about_url:\\\"https://www.openmask.app/\\\",bridge:[{type:\\\"js\\\",key:\\\"openmask\\\"}],platforms:[\\\"chrome\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"BitgetWeb3\\\",name:\\\"BitgetWeb3\\\",image:\\\"https://img.bitgetimg.com/image/third/1731638059795.png\\\",about_url:\\\"\\\\u200Bhttps://www.bitget.com\\\",universal_url:\\\"https://t.me/BitgetOfficialBot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://ton-connect-bridge.bgwapi.io/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"windows\\\",\\\"macos\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"xtonwallet\\\",name:\\\"XTONWallet\\\",image:\\\"https://xtonwallet.com/assets/img/icon-256-back.png\\\",about_url:\\\"https://xtonwallet.com\\\",bridge:[{type:\\\"js\\\",key:\\\"xtonwallet\\\"}],platforms:[\\\"chrome\\\",\\\"firefox\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:1,extraCurrencySupported:!1}]},{app_name:\\\"tonwallet\\\",name:\\\"TON Wallet\\\",image:\\\"https://wallet.ton.org/assets/ui/qr-logo.png\\\",about_url:\\\"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd\\\",bridge:[{type:\\\"js\\\",key:\\\"tonwallet\\\"}],platforms:[\\\"chrome\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"bitgetWalletLite\\\",name:\\\"Bitget Wallet Lite\\\",image:\\\"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_lite_logo_288.png\\\",about_url:\\\"https://web3.bitget.com\\\",universal_url:\\\"https://t.me/BitgetWallet_TGBot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://ton-connect-bridge.bgwapi.io/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"tomoWallet\\\",name:\\\"Tomo Wallet\\\",image:\\\"https://pub.tomo.inc/logo.png\\\",about_url:\\\"https://www.tomo.inc/\\\",universal_url:\\\"https://t.me/tomowalletbot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://go-bridge.tomo.inc/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"miraiapp-tg\\\",name:\\\"Mirai Mini App\\\",image:\\\"https://cdn.mirailabs.co/miraihub/miraiapp-tg-icon-288.png\\\",about_url:\\\"https://mirai.app\\\",universal_url:\\\"https://t.me/MiraiAppBot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://bridge.mirai.app\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"Architec.ton\\\",name:\\\"Architec.ton\\\",image:\\\"https://raw.githubusercontent.com/Architec-Ton/wallet-tma/refs/heads/dev/public/images/arcwallet_logo.png\\\",about_url:\\\"https://architecton.tech\\\",universal_url:\\\"https://t.me/architec_ton_bot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://tc.architecton.su/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"tokenpocket\\\",name:\\\"TokenPocket\\\",image:\\\"https://hk.tpstatic.net/logo/tokenpocket.png\\\",about_url:\\\"https://www.tokenpocket.pro\\\",universal_url:\\\"https://tp-lab.tptool.pro/ton-connect/\\\",bridge:[{type:\\\"js\\\",key:\\\"tokenpocket\\\"},{type:\\\"sse\\\",url:\\\"https://ton-connect.mytokenpocket.vip/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"uxuyWallet\\\",name:\\\"UXUY Wallet\\\",image:\\\"https://chain-cdn.uxuy.com/logo/square_288.png\\\",about_url:\\\"https://docs.uxuy.com\\\",universal_url:\\\"https://t.me/UXUYbot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://bridge.uxuy.me/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"tonkeeper-pro\\\",name:\\\"Tonkeeper Pro\\\",image:\\\"https://tonkeeper.com/assets/tonconnect-icon-pro.png\\\",tondns:\\\"tonkeeper.ton\\\",about_url:\\\"https://tonkeeper.com/pro\\\",universal_url:\\\"https://app.tonkeeper.com/pro/ton-connect\\\",deepLink:\\\"tonkeeper-pro-tc://\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://bridge.tonapi.io/bridge\\\"}],platforms:[\\\"ios\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!0},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}]},{app_name:\\\"nicegramWallet\\\",name:\\\"Nicegram Wallet\\\",image:\\\"https://static.nicegram.app/icon.png\\\",about_url:\\\"https://nicegram.app\\\",universal_url:\\\"https://nicegram.app/tc\\\",deepLink:\\\"nicegram-tc://\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://tc.nicegram.app/bridge\\\"},{type:\\\"js\\\",key:\\\"nicegramWallet\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"echoooTonWallet\\\",name:\\\"EchoooWallet\\\",image:\\\"https://cdn.echooo.xyz/front-end/source/images/logo/echooo-ton.png\\\",about_url:\\\"https://www.echooo.xyz\\\",universal_url:\\\"https://www.echooo.xyz/ton-connect\\\",deepLink:\\\"echooo://\\\",bridge:[{type:\\\"js\\\",key:\\\"echoooTonWallet\\\"},{type:\\\"sse\\\",url:\\\"https://ton-connect-bridge.echooo.link/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"blitzwallet\\\",name:\\\"BLITZ wallet\\\",image:\\\"https://blitzwallet.cfd/wallet/public/logo.png\\\",about_url:\\\"https://blitzwallet.cfd\\\",universal_url:\\\"https://t.me/blitz_wallet_bot?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://blitzwallet.cfd/bridge/\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]},{app_name:\\\"koloWeb3Wallet\\\",name:\\\"Kolo\\\",image:\\\"https://raw.githubusercontent.com/onidev1/tc-assets/refs/heads/main/kolo_logo_288.png\\\",about_url:\\\"https://kolo.xyz\\\",universal_url:\\\"https://t.me/kolo?attach=wallet\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://web3-bridge.kolo.in/bridge\\\"}],platforms:[\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"windows\\\",\\\"linux\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"imToken\\\",name:\\\"imToken\\\",image:\\\"https://aws-v2-cdn.token.im/orbit/token-v2/icons/logo-ton-connect.png\\\",about_url:\\\"https://token.im\\\",universal_url:\\\"https://connect.token.im/link/ton-connect\\\",deepLink:\\\"imtokenv2://link/ton-connect\\\",bridge:[{type:\\\"sse\\\",url:\\\"https://connect.token.im/tonbridge\\\"},{type:\\\"js\\\",key:\\\"imToken\\\"}],platforms:[\\\"ios\\\",\\\"android\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:255,extraCurrencySupported:!1}]},{app_name:\\\"cactuslink\\\",name:\\\"Cactus Link\\\",image:\\\"https://downloads.mycactus.com/288_cactus_link.png\\\",about_url:\\\"https://www.mycactus.com/defi-connector\\\",bridge:[{type:\\\"js\\\",key:\\\"cactuslink_ton\\\"}],platforms:[\\\"chrome\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1},{name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\"]}]},{app_name:\\\"onekey\\\",name:\\\"OneKey\\\",image:\\\"https://uni.onekey-asset.com/static/logo/onekey-x288.png\\\",about_url:\\\"https://onekey.so\\\",bridge:[{type:\\\"js\\\",key:\\\"onekeyTonWallet\\\"}],platforms:[\\\"chrome\\\"],features:[{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}]}],Xy=!1,Vy=null;dg=class{constructor(e){var n;this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null,lo()?this.walletsListSource=\\\"https://raw.githubusercontent.com/ton-connect/wallets-list-staging/refs/heads/main/wallets-v2.json\\\":this.walletsListSource=(n=e?.walletsListSource)!==null&&n!==void 0?n:\\\"https://config.ton.org/wallets-v2.json\\\",this.cacheTTLMs=e?.cacheTTLMs,this.onDownloadDurationMeasured=e?.onDownloadDurationMeasured}getWallets(){return Be(this,void 0,void 0,function*(){let[e,n]=yield Promise.all([this.fetchWalletsListDTO(),this.getCurrentlyInjectedWallets()]);return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),n)})}getEmbeddedWallet(){return Be(this,void 0,void 0,function*(){let n=(yield this.getWallets()).filter(Hf);return n.length===1?n[0]:null})}fetchWalletsListDTO(){return Be(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListDTOCacheCreationTimestamp&&Date.now()>this.walletsListDTOCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListDTOCache=null),this.walletsListDTOCache||(this.walletsListDTOCache=this.fetchWalletsListFromSource(),this.walletsListDTOCache.then(()=>{this.walletsListDTOCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null})),this.walletsListDTOCache})}getRemoteWallet(e){return Be(this,void 0,void 0,function*(){let r=(yield this.getWallets()).find(i=>i.appName===e);if(!r)throw new Oe(`Wallet info not found for appName: \\\"${e}\\\"`);if(!Wf(r))throw new Oe(`Wallet \\\"${e}\\\" is not remote`);return r})}fetchWalletsListFromSource(){return Be(this,void 0,void 0,function*(){var e,n;let r=[],i=performance.now();try{if(r=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(r))throw new Yy(\\\"Wrong wallets list format, wallets list must be an array.\\\");let o=r.filter(c=>!this.isCorrectWalletConfigDTO(c));o.length&&(ga(`Wallet(s) ${o.map(c=>c?.name||\\\"unknown\\\").join(\\\", \\\")} config format is wrong. They were removed from the wallets list.`),r=r.filter(c=>this.isCorrectWalletConfigDTO(c)));let s=performance.now(),l=Math.round(s-i);(e=this.onDownloadDurationMeasured)===null||e===void 0||e.call(this,l)}catch(a){ga(a),r=dX,(n=this.onDownloadDurationMeasured)===null||n===void 0||n.call(this,void 0)}return r})}getCurrentlyInjectedWallets(){if(!lo())return[];try{return co.getCurrentlyInjectedWallets()}catch(e){return ga(e),[]}}walletConfigDTOListToWalletConfigList(e){return e.map(n=>{let r={name:n.name,appName:n.app_name,imageUrl:n.image,aboutUrl:n.about_url,tondns:n.tondns,platforms:n.platforms,features:n.features};return n.bridge.forEach(i=>{if(i.type===\\\"sse\\\"&&(r.bridgeUrl=i.url,r.universalLink=n.universal_url,r.deepLink=n.deepLink),i.type===\\\"js\\\"){let a=i.key;r.jsBridgeKey=a,r.injected=co.isWalletInjected(a),r.embedded=co.isInsideWalletBrowser(a)}}),r})}mergeWalletsLists(e,n){return[...new Set(e.concat(n).map(i=>i.name)).values()].map(i=>{let a=e.find(s=>s.name===i),o=n.find(s=>s.name===i);return Object.assign(Object.assign({},a&&Object.assign({},a)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||typeof e!=\\\"object\\\")return!1;let n=\\\"name\\\"in e,r=\\\"app_name\\\"in e,i=\\\"image\\\"in e,a=\\\"about_url\\\"in e,o=\\\"platforms\\\"in e;if(!n||!i||!a||!o||!r||!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length||!(\\\"bridge\\\"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;let s=e.bridge;if(s.some(u=>!u||typeof u!=\\\"object\\\"||!(\\\"type\\\"in u)))return!1;let l=s.find(u=>u.type===\\\"sse\\\");if(l&&(!(typeof l==\\\"object\\\"&&\\\"url\\\"in l)||!l.url||!e.universal_url))return!1;let c=s.find(u=>u.type===\\\"js\\\");return!(c&&(typeof c!=\\\"object\\\"||!(\\\"key\\\"in c)||!c.key))}};$x=class{get version(){return fs({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}constructor(e){this.eventPrefix=\\\"ton-connect-\\\",this.tonConnectUiVersion=null,this.eventDispatcher=e?.eventDispatcher,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}init(){return Be(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return Be(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener(\\\"ton-connect-request-version\\\",()=>Be(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent(\\\"ton-connect-response-version\\\",nb(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Be(this,void 0,void 0,function*(){return new Promise((e,n)=>Be(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener(\\\"ton-connect-ui-response-version\\\",r=>{e(r.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent(\\\"ton-connect-ui-request-version\\\",tb())}catch(r){n(r)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch{}}trackConnectionStarted(...e){try{let n=rb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionCompleted(...e){try{let n=ib(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionError(...e){try{let n=ab(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringStarted(...e){try{let n=ob(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringCompleted(...e){try{let n=sb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringError(...e){try{let n=lb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDisconnection(...e){try{let n=pb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSentForSignature(...e){try{let n=cb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigned(...e){try{let n=ub(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigningFailed(...e){try{let n=db(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSentForSignature(...e){try{let n=fb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSigned(...e){try{let n=hb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSigningFailed(...e){try{let n=gb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}},cO=\\\"3.4.1\\\",eO=17,uO=81,Kx=128;Zx={};for(let t=0;t<=255;t++){let e=t.toString(16);e.length<2&&(e=\\\"0\\\"+e),Zx[e]=t}gO=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,_X=/^[A-Za-z0-9\\\\-_]+$/,CX=\\\"te6cc\\\",SX=/^-?\\\\d+$/,TX=/^\\\\d+$/,EX=128,AX=128,kX=222;ou=class t{constructor(e={}){var n,r,i,a,o,s;this.events=[],this.timeoutId=null,this.isProcessing=!1,this.backoff=1,this.shouldSend=!0,this.batchTimeoutMs=(n=e.batchTimeoutMs)!==null&&n!==void 0?n:2e3,this.currentBatchTimeoutMs=this.batchTimeoutMs,this.maxBatchSize=(r=e.maxBatchSize)!==null&&r!==void 0?r:100,this.analyticsUrl=(i=e.analyticsUrl)!==null&&i!==void 0?i:\\\"https://analytics.ton.org/events\\\",this.mode=(a=e.mode)!==null&&a!==void 0?a:\\\"telemetry\\\",this.baseEvent=Object.assign({subsystem:\\\"dapp-sdk\\\",version:cO,client_environment:(s=(o=e.environment)===null||o===void 0?void 0:o.getClientEnvironment)===null||s===void 0?void 0:s.call(o)},DX()),this.addWindowFocusAndBlurSubscriptions()}scoped(e){return new Proxy(this,{get(n,r){let i=r.toString();if(i.startsWith(\\\"emit\\\")){let a=i.replace(\\\"emit\\\",\\\"\\\"),o=zX(a);return function(s){let l=Object.fromEntries(Object.entries(e??{}).map(([c,u])=>[c,typeof u==\\\"function\\\"?u():u]));return n.emit(Object.assign(Object.assign({event_name:o},l),s))}}return n[r]}})}emit(e){var n;if(this.mode===\\\"off\\\")return;let r=(n=e.trace_id)!==null&&n!==void 0?n:hn(),i=LX(),a=Object.assign(Object.assign(Object.assign(Object.assign({},this.baseEvent),i),e),{event_id:hn(),client_timestamp:Math.floor(Date.now()/1e3),trace_id:r}),o=this.mode===\\\"telemetry\\\"?this.filterFullModeFields(a):a;if(lo()&&gt(o),this.events.push(o),this.events.length>=this.maxBatchSize){this.flush();return}this.startTimeout()}startTimeout(){this.timeoutId||this.isProcessing||(this.timeoutId=setTimeout(()=>{this.flush()},this.currentBatchTimeoutMs))}flush(){return Be(this,void 0,void 0,function*(){if(this.isProcessing||this.events.length===0||!this.shouldSend)return;this.clearTimeout(),this.isProcessing=!0;let e=this.extractEventsToSend();try{yield this.processEventsBatch(e),gt(\\\"Analytics events sent successfully\\\")}catch(n){this.restoreEvents(e),ga(\\\"Failed to send analytics events:\\\",n)}finally{this.isProcessing=!1,this.scheduleNextFlushIfNeeded()}})}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}extractEventsToSend(){let e=this.events.slice(0,this.maxBatchSize);return this.events=this.events.slice(this.maxBatchSize),e}processEventsBatch(e){return Be(this,void 0,void 0,function*(){gt(\\\"Sending analytics events...\\\",e.length);try{let n=yield this.sendEvents(e);this.handleResponse(n)}catch(n){this.handleUnknownError(n)}})}handleResponse(e){let{status:n,statusText:r}=e;this.isTooManyRequests(n)?this.handleTooManyRequests(n,r):this.isClientError(n)?this.handleClientError(n,r):this.isServerError(n)&&this.handleUnknownError({status:n,statusText:r})}restoreEvents(e){this.events.unshift(...e)}scheduleNextFlushIfNeeded(){this.events.length>0&&this.startTimeout()}sendEvents(e){return Be(this,void 0,void 0,function*(){return yield fetch(this.analyticsUrl,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\",\\\"X-Client-Timestamp\\\":Math.floor(Date.now()/1e3).toString()},body:JSON.stringify(e)})})}isClientError(e){return e>=t.HTTP_STATUS.CLIENT_ERROR_START&&e<t.HTTP_STATUS.SERVER_ERROR_START}isServerError(e){return e>=t.HTTP_STATUS.SERVER_ERROR_START}isTooManyRequests(e){return e===t.HTTP_STATUS.TOO_MANY_REQUESTS}handleClientError(e,n){ga(\\\"Failed to send analytics events:\\\",new Oe(`Analytics API error: ${e} ${n}`))}handleUnknownError(e){if(this.backoff<t.MAX_BACKOFF_ATTEMPTS)throw this.backoff++,this.currentBatchTimeoutMs*=t.BACKOFF_MULTIPLIER,new Oe(`Unknown analytics API error: ${e}`);this.currentBatchTimeoutMs=this.batchTimeoutMs,this.backoff=1}handleTooManyRequests(e,n){throw new Oe(`Analytics API error: ${e} ${n}`)}addWindowFocusAndBlurSubscriptions(){let e=aO();if(e)try{e.addEventListener(\\\"visibilitychange\\\",()=>{e.hidden?(this.clearTimeout(),this.shouldSend=!1):(this.shouldSend=!0,this.scheduleNextFlushIfNeeded())})}catch(n){ga(\\\"Cannot subscribe to the document.visibilitychange: \\\",n)}}getMode(){return this.mode}getPendingEventsCount(){return this.events.length}filterFullModeFields(e){let n=Object.assign({},e);for(let a of t.FULL_MODE_FIELDS)delete n[a];let r=\\\"event_name\\\"in e?String(e.event_name):\\\"\\\";return!(\\\"error_code\\\"in e||\\\"error_message\\\"in e||r.includes(\\\"error\\\")||r===\\\"connection-error\\\"||r===\\\"transaction-signing-failed\\\"||r===\\\"sign-data-request-failed\\\")&&\\\"wallet_address\\\"in n&&delete n.wallet_address,n}setWalletListDownloadDuration(e){this.baseEvent=Object.assign(Object.assign({},this.baseEvent),{wallet_list_download_duration:e})}};ou.HTTP_STATUS={TOO_MANY_REQUESTS:429,CLIENT_ERROR_START:400,SERVER_ERROR_START:500};ou.MAX_BACKOFF_ATTEMPTS=5;ou.BACKOFF_MULTIPLIER=2;ou.FULL_MODE_FIELDS=[\\\"user_id\\\",\\\"tg_id\\\",\\\"locale\\\",\\\"tma_is_premium\\\"];Vf=class{constructor(){this.window=qf()}dispatchEvent(e,n){return Be(this,void 0,void 0,function*(){var r;let i=new CustomEvent(e,{detail:n});(r=this.window)===null||r===void 0||r.dispatchEvent(i)})}addEventListener(e,n,r){return Be(this,void 0,void 0,function*(){var i;return(i=this.window)===null||i===void 0||i.addEventListener(e,n,r),()=>{var a;return(a=this.window)===null||a===void 0?void 0:a.removeEventListener(e,n)}})}};Jy=class{getClientEnvironment(){return\\\"\\\"}getBrowser(){return\\\"\\\"}getLocale(){return\\\"\\\"}getPlatform(){return\\\"\\\"}getTelegramUser(){}},Si={};Ma=\\\"0\\\",Nx=0,eb=class t{constructor(e){this.connectionStorage=e,this.type=\\\"injected\\\",this.listeners=[],this.connector=void 0;let{projectId:n,metadata:r}=WX();this.config={networks:[{namespace:\\\"ton\\\",chains:[{id:-239,chainNamespace:\\\"ton\\\",caipNetworkId:\\\"ton:-239\\\",name:\\\"TON\\\",nativeCurrency:{name:\\\"TON\\\",symbol:\\\"TON\\\",decimals:9},rpcUrls:{default:{http:[]}}},{id:-3,chainNamespace:\\\"ton\\\",caipNetworkId:\\\"ton:-3\\\",name:\\\"TON\\\",nativeCurrency:{name:\\\"TON\\\",symbol:\\\"TON\\\",decimals:9},rpcUrls:{default:{http:[]}}}],methods:[\\\"ton_sendMessage\\\",\\\"ton_signData\\\"],events:[]}],projectId:n,metadata:r}}static fromStorage(e){return Be(this,void 0,void 0,function*(){return new t(e)})}initialize(){return Be(this,void 0,void 0,function*(){return this.connector||(this.connector=yield HX().init(this.config)),this.connector})}connect(e,n){var r,i;let a=(r=n?.traceId)!==null&&r!==void 0?r:hn(),o=Jr(n?.signal);(i=this.abortController)===null||i===void 0||i.abort(),this.abortController=o,this._connect(e,{traceId:a,signal:o.signal,abortController:o}).catch(s=>gt(\\\"WalletConnect connect unexpected error\\\",s))}_connect(e,n){return Be(this,void 0,void 0,function*(){var r,i;let a=yield this.initialize();if(!((r=n.signal)===null||r===void 0)&&r.aborted){gt(\\\"WalletConnect connect aborted before start\\\"),this.clearAbortController(n.abortController);return}let o=e.items.find(l=>l.name===\\\"ton_proof\\\"),s=o?[{domain:new URL(this.config.metadata.url).hostname,chains:[\\\"ton:-239\\\"],nonce:\\\"\\\",uri:\\\"ton_proof\\\",ttl:0,statement:o.payload}]:void 0;gt(\\\"Connecting through this.connector.connect\\\");try{yield a.connect({authentication:s})}catch(l){if(!((i=n.signal)===null||i===void 0)&&i.aborted){gt(\\\"WalletConnect connect aborted via signal\\\"),this.clearAbortController(n.abortController);return}gt(\\\"WalletConnect connect error\\\",l);let c={id:Nx,event:\\\"connect_error\\\",traceId:n.traceId,payload:{code:Xr.USER_REJECTS_ERROR,message:\\\"User declined the connection\\\"}};gt(\\\"WalletConnect connect response:\\\",c),this.emit(c),this.clearAbortController(n.abortController);return}gt(\\\"Connected through this.connector.connect\\\");try{yield this.onConnect(a,Object.assign(Object.assign({},n),{includeTonProof:!0}))}catch(l){gt(\\\"WalletConnect onConnect error\\\",l),yield this.disconnect({traceId:n.traceId,signal:n.signal})}finally{this.clearAbortController(n.abortController)}})}restoreConnection(e){return Be(this,void 0,void 0,function*(){var n,r;let i=(n=e?.traceId)!==null&&n!==void 0?n:hn(),a=Jr(e?.signal);if((r=this.abortController)===null||r===void 0||r.abort(),this.abortController=a,!a.signal.aborted)try{if(gt(\\\"Restoring WalletConnect connection...\\\"),!(yield this.connectionStorage.getWalletConnectConnection())||a.signal.aborted)return;let s=yield this.initialize();if(a.signal.aborted)return;yield this.onConnect(s,{includeTonProof:!1,traceId:i,signal:a.signal}),gt(\\\"WalletConnect successfully restored.\\\")}catch(o){gt(\\\"WalletConnect restore error\\\",o),yield this.disconnect({traceId:i,signal:a.signal})}finally{this.clearAbortController(a)}})}closeConnection(){var e;(e=this.abortController)===null||e===void 0||e.abort(),this.abortController=void 0,this.disconnect()}disconnect(e){return Be(this,void 0,void 0,function*(){var n,r;let i=Jr(e?.signal);if((n=this.abortController)===null||n===void 0||n.abort(),this.abortController=i,!i.signal.aborted)try{if(yield this.connectionStorage.removeConnection(),i.signal.aborted)return;yield(r=this.connector)===null||r===void 0?void 0:r.disconnect()}catch(a){gt(\\\"WalletConnect disconnect error\\\",a)}finally{this.clearAbortController(i)}})}sendRequest(e,n){return Be(this,void 0,void 0,function*(){var r,i,a,o;if(!this.connector)throw new Oe(\\\"Wallet Connect not initialized\\\");let s={};typeof n==\\\"function\\\"?s.onRequestSent=n:(s.onRequestSent=n?.onRequestSent,s.signal=n?.signal,s.attempts=n?.attempts,s.traceId=n?.traceId),(r=s.traceId)!==null&&r!==void 0||(s.traceId=hn());try{if(!((i=s.signal)===null||i===void 0)&&i.aborted)throw new Oe(\\\"WalletConnect request aborted\\\");if(gt(\\\"Send wallet-connect request:\\\",Object.assign(Object.assign({},e),{id:Ma})),e.method===\\\"sendTransaction\\\"){let l=JSON.parse(e.params[0]),{network:c}=l,u=Wy(l,[\\\"network\\\"]),d=this.connector.request({method:\\\"ton_sendMessage\\\",params:u},`ton:${c}`);(a=s?.onRequestSent)===null||a===void 0||a.call(s);let h=yield d;return gt(\\\"Wallet message received:\\\",{result:h,id:Ma}),{result:h,id:Ma,traceId:s.traceId}}else if(e.method===\\\"signData\\\"){let l=JSON.parse(e.params[0]),{network:c}=l,u=Wy(l,[\\\"network\\\"]),d=this.connector.request({method:\\\"ton_signData\\\",params:u},`ton:${c}`);(o=s?.onRequestSent)===null||o===void 0||o.call(s);let h=yield d;return gt(\\\"Wallet message received:\\\",{result:h,id:Ma}),{result:h,traceId:s.traceId,id:Ma}}else if(e.method===\\\"disconnect\\\")return{id:Ma,traceId:s.traceId}}catch(l){gt(\\\"WalletConnect request error\\\",l,l.stack);let c=yield this.handleWalletConnectError(l,{traceId:s.traceId});return gt(\\\"Wallet message received:\\\",c),c}return{id:Ma,error:{code:Dy.UNKNOWN_ERROR,message:\\\"Not implemented.\\\"},traceId:s.traceId}})}handleWalletConnectError(e,n){return Be(this,void 0,void 0,function*(){if(typeof e==\\\"object\\\"&&e!==null){let r=String(\\\"message\\\"in e?e.message:\\\"msg\\\"in e?e.msg:e);return r.toLowerCase().includes(\\\"reject\\\")?{id:Ma,traceId:n.traceId,error:{code:Li.USER_REJECTS_ERROR,message:r}}:r.toLowerCase().includes(\\\"tonvalidationerror\\\")?{id:Ma,traceId:n.traceId,error:{code:Li.BAD_REQUEST_ERROR,message:r}}:{id:Ma,traceId:n.traceId,error:{code:Li.UNKNOWN_ERROR,message:r}}}return{id:Ma,traceId:n.traceId,error:{code:Li.UNKNOWN_ERROR,message:String(e)}}})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(n=>n!==e)}buildTonProof(e){var n,r,i;let a=(n=e.provider.session.authentication)===null||n===void 0?void 0:n[0],o=(r=a?.p)===null||r===void 0?void 0:r.iat,s=(i=a?.p)===null||i===void 0?void 0:i.statement;if(!o||!s)return;let l=a.p.domain;return{name:\\\"ton_proof\\\",proof:{timestamp:Math.floor(new Date(o).getTime()/1e3),domain:{lengthBytes:l.length,value:l},payload:s,signature:a.s.s}}}onConnect(e,n){return Be(this,void 0,void 0,function*(){var r,i,a,o;if(!((r=n.signal)===null||r===void 0)&&r.aborted){gt(\\\"WalletConnect onConnect aborted\\\");return}let s=e.provider.session,l=s.namespaces.ton;if(!(!((i=l?.accounts)===null||i===void 0)&&i[0])){yield this.disconnectWithError({traceId:n.traceId,code:Xr.BAD_REQUEST_ERROR,message:\\\"Connection error. No TON accounts connected.\\\"});return}let c=l.accounts[0],[,u,d]=c.split(\\\":\\\",3),h=(a=s.sessionProperties)===null||a===void 0?void 0:a.ton_getPublicKey;if(!h){yield this.disconnectWithError({traceId:n.traceId,code:Xr.BAD_REQUEST_ERROR,message:\\\"Connection error. No sessionProperties.ton_getPublicKey provided.\\\"});return}let g=(o=s.sessionProperties)===null||o===void 0?void 0:o.ton_getStateInit;if(!g){yield this.disconnectWithError({traceId:n.traceId,code:Xr.BAD_REQUEST_ERROR,message:\\\"Connection error. No sessionProperties.ton_getStateInit provided.\\\"});return}e.provider.once(\\\"session_delete\\\",()=>Be(this,void 0,void 0,function*(){try{yield this.connectionStorage.removeConnection();let v={event:\\\"disconnect\\\",traceId:hn(),payload:{}};gt(\\\"Wallet message received:\\\",v),this.emit(v)}catch(v){gt(\\\"Error while deleting session\\\",v)}}));let y=n?.includeTonProof?this.buildTonProof(e):void 0,E=n6(d)?wX(dO(d)):d,N=this.buildFeatureList(l.methods),_={items:[{name:\\\"ton_addr\\\",address:E,network:u,publicKey:h,walletStateInit:g},...y?[y]:[]],device:{appName:\\\"wallet_connect\\\",appVersion:\\\"\\\",maxProtocolVersion:2,features:N,platform:\\\"browser\\\"}};gt(\\\"WalletConnect connect response:\\\",{event:\\\"connect\\\",payload:_,id:Nx}),this.emit({event:\\\"connect\\\",payload:_,traceId:n.traceId}),yield this.storeConnection()})}buildFeatureList(e){let n=[];return e.includes(\\\"ton_sendMessage\\\")&&n.push(\\\"SendTransaction\\\",{name:\\\"SendTransaction\\\",maxMessages:4,extraCurrencySupported:!1}),e.includes(\\\"ton_signData\\\")&&n.push({name:\\\"SignData\\\",types:[\\\"text\\\",\\\"binary\\\",\\\"cell\\\"]}),n}disconnectWithError(e){return Be(this,void 0,void 0,function*(){yield this.disconnect();let n={code:e.code,message:e.message};gt(\\\"WalletConnect connect response:\\\",{event:\\\"connect_error\\\",id:Nx,payload:n}),this.emit({event:\\\"connect_error\\\",traceId:e.traceId,payload:n})})}clearAbortController(e){this.abortController===e&&(this.abortController=void 0)}emit(e,n){(n??this.listeners).forEach(r=>r(e))}storeConnection(){return this.connectionStorage.storeConnection({type:\\\"wallet-connect\\\"})}},Oa=class{static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var e;return((e=this._wallet)===null||e===void 0?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(n=>n(this._wallet))}constructor(e){var n,r,i;this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[];let a=e?.manifestUrl||rX();this.dappSettings={manifestUrl:a,storage:e?.storage||new Wx},this.walletsRequiredFeatures=e?.walletsRequiredFeatures,this.environment=(n=e?.environment)!==null&&n!==void 0?n:new Jy,this.walletsList=new dg({walletsListSource:e?.walletsListSource,cacheTTLMs:e?.walletsListCacheTTLMs,onDownloadDurationMeasured:s=>{var l;(l=this.analytics)===null||l===void 0||l.setWalletListDownloadDuration(s)}});let o=(r=e?.eventDispatcher)!==null&&r!==void 0?r:new Vf;if(this.tracker=new $x({eventDispatcher:o,tonConnectSdkVersion:cO}),this.environment=(i=e?.environment)!==null&&i!==void 0?i:new Jy,this.initAnalytics(a,o,e),!this.dappSettings.manifestUrl)throw new Px(\\\"Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest\\\");this.bridgeConnectionStorage=new Hx(this.dappSettings.storage,this.walletsList),e?.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,n){return this.statusChangeSubscriptions.push(e),n&&this.statusChangeErrorSubscriptions.push(n),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(r=>r!==e),n&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(r=>r!==n))}}connect(e,n,r){var i,a,o;let s=Object.assign({},r);if(typeof n==\\\"object\\\"&&n!==null&&\\\"tonProof\\\"in n&&(s.request=n),typeof n==\\\"object\\\"&&n!==null&&(\\\"openingDeadlineMS\\\"in n||\\\"signal\\\"in n||\\\"request\\\"in n||\\\"traceId\\\"in n)&&(s.request=n?.request,s.openingDeadlineMS=n?.openingDeadlineMS,s.signal=n?.signal),s.request){let u=OX(s.request);if(u)if(lo())console.error(\\\"ConnectAdditionalRequest validation failed: \\\"+u);else throw new Oe(\\\"ConnectAdditionalRequest validation failed: \\\"+u)}if(this.connected)throw new Ky;let l=Jr(s?.signal);if((i=this.abortController)===null||i===void 0||i.abort(),this.abortController=l,l.signal.aborted)throw new Oe(\\\"Connection was aborted\\\");(a=this.provider)===null||a===void 0||a.closeConnection(),this.provider=this.createProvider(e),l.signal.addEventListener(\\\"abort\\\",()=>{var u;(u=this.provider)===null||u===void 0||u.closeConnection(),this.provider=null});let c=(o=s?.traceId)!==null&&o!==void 0?o:hn();return this.tracker.trackConnectionStarted(c),this.provider.connect(this.createConnectRequest(s?.request),{openingDeadlineMS:s?.openingDeadlineMS,signal:l.signal,traceId:c})}restoreConnection(e){return Be(this,void 0,void 0,function*(){var n,r,i;let a=(n=e?.traceId)!==null&&n!==void 0?n:hn();this.tracker.trackConnectionRestoringStarted(a);let o=Jr(e?.signal);if((r=this.abortController)===null||r===void 0||r.abort(),this.abortController=o,o.signal.aborted){this.tracker.trackConnectionRestoringError(\\\"Connection restoring was aborted\\\",a);return}let[s,l]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(o.signal.aborted){this.tracker.trackConnectionRestoringError(\\\"Connection restoring was aborted\\\",a);return}let c=null;try{switch(s){case\\\"http\\\":c=yield Qy.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case\\\"injected\\\":c=yield co.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case\\\"wallet-connect\\\":c=yield eb.fromStorage(this.bridgeConnectionStorage);break;default:if(l)c=this.createProvider(l);else return}}catch(g){gt(\\\"Provider is not restored\\\",g),this.tracker.trackConnectionRestoringError(\\\"Provider is not restored\\\",a),yield this.bridgeConnectionStorage.removeConnection(),c?.closeConnection(),c=null;return}if(o.signal.aborted){c?.closeConnection(),this.tracker.trackConnectionRestoringError(\\\"Connection restoring was aborted\\\",a);return}if(!c){ga(\\\"Provider is not restored\\\"),this.tracker.trackConnectionRestoringError(\\\"Provider is not restored\\\",a);return}(i=this.provider)===null||i===void 0||i.closeConnection(),this.provider=c,c.listen(this.walletEventsListener.bind(this));let u=()=>{this.tracker.trackConnectionRestoringError(\\\"Connection restoring was aborted\\\",a),c?.closeConnection(),c=null};o.signal.addEventListener(\\\"abort\\\",u);let d=og(g=>Be(this,void 0,void 0,function*(){if(yield c?.restoreConnection({openingDeadlineMS:e?.openingDeadlineMS,signal:g.signal,traceId:a}),o.signal.removeEventListener(\\\"abort\\\",u),this.connected){let y=this.getSessionInfo();this.tracker.trackConnectionRestoringCompleted(this.wallet,y,a)}else this.tracker.trackConnectionRestoringError(\\\"Connection restoring failed\\\",a)}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:e?.signal}),h=new Promise(g=>setTimeout(()=>g(),12e3));return Promise.race([d,h])})}sendTransaction(e,n){return Be(this,void 0,void 0,function*(){var r,i,a,o;let s={};typeof n==\\\"function\\\"?s.onRequestSent=n:(s.onRequestSent=n?.onRequestSent,s.signal=n?.signal,s.traceId=n?.traceId);let l=MX(e);if(l)if(lo())console.error(\\\"SendTransactionRequest validation failed: \\\"+l);else throw new Oe(\\\"SendTransactionRequest validation failed: \\\"+l);let c=Jr(s?.signal);if(c.signal.aborted)throw new Oe(\\\"Transaction sending was aborted\\\");this.checkConnection();let u=e.messages.length,d=e.messages.some(U=>U.extraCurrency&&Object.keys(U.extraCurrency).length>0);gX(this.wallet.device.features,{requiredMessagesNumber:u,requireExtraCurrencies:d});let h=this.getSessionInfo(),g=(r=s?.traceId)!==null&&r!==void 0?r:hn();this.tracker.trackTransactionSentForSignature(this.wallet,e,h,g);let{validUntil:y,messages:E}=e,N=Wy(e,[\\\"validUntil\\\",\\\"messages\\\"]),_=e.from||this.account.address,v=e.network||this.account.chain;if(!((i=this.wallet)===null||i===void 0)&&i.account.chain&&v!==this.wallet.account.chain){if(!lo())throw new us(\\\"Wallet connected to a wrong network\\\",{cause:{expectedChainId:(a=this.wallet)===null||a===void 0?void 0:a.account.chain,actualChainId:v}});console.error(\\\"Wallet connected to a wrong network\\\",{expectedChainId:(o=this.wallet)===null||o===void 0?void 0:o.account.chain,actualChainId:v})}let T=yield this.provider.sendRequest(Ly.convertToRpcRequest(Object.assign(Object.assign({},N),{from:_,network:v,valid_until:y,messages:E.map(U=>{var{extraCurrency:X,payload:k,stateInit:q}=U,z=Wy(U,[\\\"extraCurrency\\\",\\\"payload\\\",\\\"stateInit\\\"]);return Object.assign(Object.assign({},z),{payload:Ux(k),stateInit:Ux(q),extra_currency:X})})})),{onRequestSent:s.onRequestSent,signal:c.signal,traceId:g});if(Ly.isError(T))return this.tracker.trackTransactionSigningFailed(this.wallet,e,T.error.message,T.error.code,h,g),Ly.parseAndThrowError(T);let R=Ly.convertFromRpcResponse(T);return this.tracker.trackTransactionSigned(this.wallet,e,R,h,g),Object.assign(Object.assign({},R),{traceId:T.traceId})})}signData(e,n){return Be(this,void 0,void 0,function*(){var r,i,a,o;let s=Jr(n?.signal);if(s.signal.aborted)throw new Oe(\\\"data sending was aborted\\\");let l=IX(e);if(l)if(lo())console.error(\\\"SignDataPayload validation failed: \\\"+l);else throw new Oe(\\\"SignDataPayload validation failed: \\\"+l);this.checkConnection(),pX(this.wallet.device.features,{requiredTypes:[e.type]});let c=this.getSessionInfo(),u=(r=n?.traceId)!==null&&r!==void 0?r:hn();this.tracker.trackDataSentForSignature(this.wallet,e,c,u);let d=e.from||this.account.address,h=e.network||this.account.chain;if(!((i=this.wallet)===null||i===void 0)&&i.account.chain&&h!==this.wallet.account.chain){if(!lo())throw new us(\\\"Wallet connected to a wrong network\\\",{cause:{expectedChainId:(a=this.wallet)===null||a===void 0?void 0:a.account.chain,actualChainId:h}});console.error(\\\"Wallet connected to a wrong network\\\",{expectedChainId:(o=this.wallet)===null||o===void 0?void 0:o.account.chain,actualChainId:h})}let g=yield this.provider.sendRequest(qy.convertToRpcRequest(Object.assign(Object.assign(Object.assign({},e),e.type===\\\"cell\\\"?{cell:Ux(e.cell)}:{}),{from:d,network:h})),{onRequestSent:n?.onRequestSent,signal:s.signal,traceId:u});if(qy.isError(g))return this.tracker.trackDataSigningFailed(this.wallet,e,g.error.message,g.error.code,c,u),qy.parseAndThrowError(g);let y=qy.convertFromRpcResponse(g);return this.tracker.trackDataSigned(this.wallet,e,y,c,u),Object.assign(Object.assign({},y),{traceId:u})})}setConnectionNetwork(e){if(this.connected)throw new Oe(\\\"Cannot change network while wallet is connected\\\");this.desiredChainId=e}disconnect(e){return Be(this,void 0,void 0,function*(){var n,r;if(!this.connected)throw new cg;let i=Jr(e?.signal),a=this.abortController;if(this.abortController=i,i.signal.aborted)throw new Oe(\\\"Disconnect was aborted\\\");let o=(n=e?.traceId)!==null&&n!==void 0?n:hn();this.onWalletDisconnected(\\\"dapp\\\",{traceId:o}),yield(r=this.provider)===null||r===void 0?void 0:r.disconnect({signal:i.signal,traceId:o}),a?.abort()})}getSessionId(){return Be(this,void 0,void 0,function*(){if(!this.provider)return null;try{let e=yield this.bridgeConnectionStorage.getConnection();return!e||e.type!==\\\"http\\\"?null:\\\"sessionCrypto\\\"in e?e.sessionCrypto.sessionId:e.session.sessionCrypto.sessionId}catch{return null}})}getSessionInfo(){var e;if(((e=this.provider)===null||e===void 0?void 0:e.type)!==\\\"http\\\"||!(\\\"session\\\"in this.provider))return null;try{let n=this.provider.session;if(!n)return null;let r=n.sessionCrypto.sessionId,i=null;return\\\"walletPublicKey\\\"in n&&(i=n.walletPublicKey),{clientId:r,walletId:i}}catch{return null}}pauseConnection(){var e;((e=this.provider)===null||e===void 0?void 0:e.type)===\\\"http\\\"&&this.provider.pause()}unPauseConnection(){var e;return((e=this.provider)===null||e===void 0?void 0:e.type)!==\\\"http\\\"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){let e=aO();if(e)try{e.addEventListener(\\\"visibilitychange\\\",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch(()=>{})})}catch(n){ga(\\\"Cannot subscribe to the document.visibilitychange: \\\",n)}}initAnalytics(e,n,r){var i;let a=r?.analytics,o=(i=a?.mode)!==null&&i!==void 0?i:\\\"telemetry\\\";if(o===\\\"off\\\")return;let s=new ou({environment:this.environment,mode:o});this.analytics=s;let l=this.environment.getTelegramUser(),c={browser:this.environment.getBrowser(),platform:this.environment.getPlatform(),manifest_json_url:e,origin_url:iX,locale:this.environment.getLocale()};l&&(c.tg_id=l.id,c.tma_is_premium=l.isPremium),qX(n,s.scoped(c))}createProvider(e){let n;return!Array.isArray(e)&&qQ(e)?n=new co(this.bridgeConnectionStorage,e.jsBridgeKey,this.analytics):!Array.isArray(e)&&VQ(e)?n=new eb(this.bridgeConnectionStorage):n=new Qy(this.bridgeConnectionStorage,e,this.analytics),n.listen(this.walletEventsListener.bind(this)),n}walletEventsListener(e){switch(e.event){case\\\"connect\\\":this.onWalletConnected(e.payload,{traceId:e.traceId});break;case\\\"connect_error\\\":this.tracker.trackConnectionError(e.payload.message,e.payload.code,this.getSessionInfo(),e.traceId);let n=HQ.parseError(e.payload);this.onWalletConnectError(n);break;case\\\"disconnect\\\":this.onWalletDisconnected(\\\"wallet\\\",{traceId:e.traceId})}}onWalletConnected(e,n){var r,i;let a=e.items.find(u=>u.name===\\\"ton_addr\\\"),o=e.items.find(u=>u.name===\\\"ton_proof\\\");if(!a)throw new Oe(\\\"ton_addr connection item was not found\\\");if(!Ff(e.device.features,this.walletsRequiredFeatures)){(r=this.provider)===null||r===void 0||r.disconnect(),this.onWalletConnectError(new Ml(\\\"Wallet does not support required features\\\",{cause:{connectEvent:e}}));return}let l={device:e.device,provider:this.provider.type,account:{address:a.address,chain:a.network,walletStateInit:a.walletStateInit,publicKey:a.publicKey}};if(this.desiredChainId&&l.account.chain!==this.desiredChainId){let u=this.desiredChainId,d=l.account.chain;(i=this.provider)===null||i===void 0||i.disconnect(),this.onWalletConnectError(new us(\\\"Wallet connected to a wrong network\\\",{cause:{expectedChainId:u,actualChainId:d}}));return}if(o){let u=jX(o),d;if(u)lo()&&console.error(\\\"TonProofItem validation failed: \\\"+u),d={name:\\\"ton_proof\\\",error:{code:au.UNKNOWN_ERROR,message:u}};else try{if(\\\"proof\\\"in o)d={name:\\\"ton_proof\\\",proof:{timestamp:o.proof.timestamp,domain:{lengthBytes:o.proof.domain.lengthBytes,value:o.proof.domain.value},payload:o.proof.payload,signature:o.proof.signature}};else if(\\\"error\\\"in o)d={name:\\\"ton_proof\\\",error:{code:o.error.code,message:o.error.message}};else throw new Oe(\\\"Invalid data format\\\")}catch{d={name:\\\"ton_proof\\\",error:{code:au.UNKNOWN_ERROR,message:\\\"Invalid data format\\\"}}}l.connectItems={tonProof:d}}this.wallet=l;let c=this.getSessionInfo();this.tracker.trackConnectionCompleted(l,c,n?.traceId)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(n=>n(e)),gt(e),e instanceof $y||e instanceof Fy)throw ga(e),e}onWalletDisconnected(e,n){let r=this.getSessionInfo();this.tracker.trackDisconnection(this.wallet,e,r,n?.traceId),this.wallet=null}checkConnection(){if(!this.connected)throw new cg}createConnectRequest(e){let n=[Object.assign({name:\\\"ton_addr\\\"},this.desiredChainId?{network:this.desiredChainId}:{})];return e?.tonProof&&n.push({name:\\\"ton_proof\\\",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:n}}};Oa.walletsList=new dg;Oa.isWalletInjected=t=>co.isWalletInjected(t);Oa.isInsideWalletBrowser=t=>co.isInsideWalletBrowser(t)});var pO=V((hg,bb)=>{b();(function(t,e){\\\"use strict\\\";var n=\\\"1.0.41\\\",r=\\\"\\\",i=\\\"?\\\",a=\\\"function\\\",o=\\\"undefined\\\",s=\\\"object\\\",l=\\\"string\\\",c=\\\"major\\\",u=\\\"model\\\",d=\\\"name\\\",h=\\\"type\\\",g=\\\"vendor\\\",y=\\\"version\\\",E=\\\"architecture\\\",N=\\\"console\\\",_=\\\"mobile\\\",v=\\\"tablet\\\",T=\\\"smarttv\\\",R=\\\"wearable\\\",U=\\\"embedded\\\",X=500,k=\\\"Amazon\\\",q=\\\"Apple\\\",z=\\\"ASUS\\\",$=\\\"BlackBerry\\\",L=\\\"Browser\\\",P=\\\"Chrome\\\",pe=\\\"Edge\\\",le=\\\"Firefox\\\",se=\\\"Google\\\",Le=\\\"Honor\\\",O=\\\"Huawei\\\",Ze=\\\"Lenovo\\\",rt=\\\"LG\\\",St=\\\"Microsoft\\\",Xt=\\\"Motorola\\\",Jt=\\\"Nvidia\\\",pn=\\\"OnePlus\\\",He=\\\"Opera\\\",Fn=\\\"OPPO\\\",Cr=\\\"Samsung\\\",Ei=\\\"Sharp\\\",oe=\\\"Sony\\\",ce=\\\"Xiaomi\\\",ie=\\\"Zebra\\\",ue=\\\"Facebook\\\",ye=\\\"Chromium OS\\\",Ue=\\\"Mac OS\\\",it=\\\" Browser\\\",tt=function(Q,ee){var te={};for(var me in Q)ee[me]&&ee[me].length%2===0?te[me]=ee[me].concat(Q[me]):te[me]=Q[me];return te},Ht=function(Q){for(var ee={},te=0;te<Q.length;te++)ee[Q[te].toUpperCase()]=Q[te];return ee},Sn=function(Q,ee){return typeof Q===l?$e(ee).indexOf($e(Q))!==-1:!1},$e=function(Q){return Q.toLowerCase()},Yn=function(Q){return typeof Q===l?Q.replace(/[^\\\\d\\\\.]/g,r).split(\\\".\\\")[0]:e},$n=function(Q,ee){if(typeof Q===l)return Q=Q.replace(/^\\\\s\\\\s*/,r),typeof ee===o?Q:Q.substring(0,X)},Hr=function(Q,ee){for(var te=0,me,Pe,_e,be,Ae,we;te<ee.length&&!Ae;){var Tt=ee[te],It=ee[te+1];for(me=Pe=0;me<Tt.length&&!Ae&&Tt[me];)if(Ae=Tt[me++].exec(Q),Ae)for(_e=0;_e<It.length;_e++)we=Ae[++Pe],be=It[_e],typeof be===s&&be.length>0?be.length===2?typeof be[1]==a?this[be[0]]=be[1].call(this,we):this[be[0]]=be[1]:be.length===3?typeof be[1]===a&&!(be[1].exec&&be[1].test)?this[be[0]]=we?be[1].call(this,we,be[2]):e:this[be[0]]=we?we.replace(be[1],be[2]):e:be.length===4&&(this[be[0]]=we?be[3].call(this,we.replace(be[1],be[2])):e):this[be]=we||e;te+=2}},ii=function(Q,ee){for(var te in ee)if(typeof ee[te]===s&&ee[te].length>0){for(var me=0;me<ee[te].length;me++)if(Sn(ee[te][me],Q))return te===i?e:te}else if(Sn(ee[te],Q))return te===i?e:te;return ee.hasOwnProperty(\\\"*\\\")?ee[\\\"*\\\"]:Q},D={\\\"1.0\\\":\\\"/8\\\",\\\"1.2\\\":\\\"/1\\\",\\\"1.3\\\":\\\"/3\\\",\\\"2.0\\\":\\\"/412\\\",\\\"2.0.2\\\":\\\"/416\\\",\\\"2.0.3\\\":\\\"/417\\\",\\\"2.0.4\\\":\\\"/419\\\",\\\"?\\\":\\\"/\\\"},S={ME:\\\"4.90\\\",\\\"NT 3.11\\\":\\\"NT3.51\\\",\\\"NT 4.0\\\":\\\"NT4.0\\\",2e3:\\\"NT 5.0\\\",XP:[\\\"NT 5.1\\\",\\\"NT 5.2\\\"],Vista:\\\"NT 6.0\\\",7:\\\"NT 6.1\\\",8:\\\"NT 6.2\\\",\\\"8.1\\\":\\\"NT 6.3\\\",10:[\\\"NT 6.4\\\",\\\"NT 10.0\\\"],RT:\\\"ARM\\\"},I={browser:[[/\\\\b(?:crmo|crios)\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Chrome\\\"]],[/edg(?:e|ios|a)?\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Edge\\\"]],[/(opera mini)\\\\/([-\\\\w\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\b.+version\\\\/([-\\\\w\\\\.]+)/i,/(opera)(?:.+version\\\\/|[\\\\/ ]+)([\\\\w\\\\.]+)/i],[d,y],[/opios[\\\\/ ]+([\\\\w\\\\.]+)/i],[y,[d,He+\\\" Mini\\\"]],[/\\\\bop(?:rg)?x\\\\/([\\\\w\\\\.]+)/i],[y,[d,He+\\\" GX\\\"]],[/\\\\bopr\\\\/([\\\\w\\\\.]+)/i],[y,[d,He]],[/\\\\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\\\\/ ]?([\\\\w\\\\.]+)/i],[y,[d,\\\"Baidu\\\"]],[/\\\\b(?:mxbrowser|mxios|myie2)\\\\/?([-\\\\w\\\\.]*)\\\\b/i],[y,[d,\\\"Maxthon\\\"]],[/(kindle)\\\\/([\\\\w\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\\\\/ ]?([\\\\w\\\\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\\\\/ ]?([\\\\d\\\\.]*)/i,/(?:ms|\\\\()(ie) ([\\\\w\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\\\\/([-\\\\w\\\\.]+)/i,/(heytap|ovi|115)browser\\\\/([\\\\d\\\\.]+)/i,/(weibo)__([\\\\d\\\\.]+)/i],[d,y],[/quark(?:pc)?\\\\/([-\\\\w\\\\.]+)/i],[y,[d,\\\"Quark\\\"]],[/\\\\bddg\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"DuckDuckGo\\\"]],[/(?:\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\/ ]?([\\\\w\\\\.]+)/i],[y,[d,\\\"UC\\\"+L]],[/microm.+\\\\bqbcore\\\\/([\\\\w\\\\.]+)/i,/\\\\bqbcore\\\\/([\\\\w\\\\.]+).+microm/i,/micromessenger\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"WeChat\\\"]],[/konqueror\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Konqueror\\\"]],[/trident.+rv[: ]([\\\\w\\\\.]{1,9})\\\\b.+like gecko/i],[y,[d,\\\"IE\\\"]],[/ya(?:search)?browser\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Yandex\\\"]],[/slbrowser\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Smart Lenovo \\\"+L]],[/(avast|avg)\\\\/([\\\\w\\\\.]+)/i],[[d,/(.+)/,\\\"$1 Secure \\\"+L],y],[/\\\\bfocus\\\\/([\\\\w\\\\.]+)/i],[y,[d,le+\\\" Focus\\\"]],[/\\\\bopt\\\\/([\\\\w\\\\.]+)/i],[y,[d,He+\\\" Touch\\\"]],[/coc_coc\\\\w+\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Coc Coc\\\"]],[/dolfin\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"Dolphin\\\"]],[/coast\\\\/([\\\\w\\\\.]+)/i],[y,[d,He+\\\" Coast\\\"]],[/miuibrowser\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"MIUI\\\"+it]],[/fxios\\\\/([\\\\w\\\\.-]+)/i],[y,[d,le]],[/\\\\bqihoobrowser\\\\/?([\\\\w\\\\.]*)/i],[y,[d,\\\"360\\\"]],[/\\\\b(qq)\\\\/([\\\\w\\\\.]+)/i],[[d,/(.+)/,\\\"$1Browser\\\"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\\\\/([\\\\w\\\\.]+)/i],[[d,/(.+)/,\\\"$1\\\"+it],y],[/samsungbrowser\\\\/([\\\\w\\\\.]+)/i],[y,[d,Cr+\\\" Internet\\\"]],[/metasr[\\\\/ ]?([\\\\d\\\\.]+)/i],[y,[d,\\\"Sogou Explorer\\\"]],[/(sogou)mo\\\\w+\\\\/([\\\\d\\\\.]+)/i],[[d,\\\"Sogou Mobile\\\"],y],[/(electron)\\\\/([\\\\w\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\/(20\\\\d\\\\d\\\\.[-\\\\w\\\\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\\\\w*[\\\\/ ]?v?([\\\\w\\\\.]+)/i],[d,y],[/(lbbrowser|rekonq)/i,/\\\\[(linkedin)app\\\\]/i],[d],[/ome\\\\/([\\\\w\\\\.]+) \\\\w* ?(iron) saf/i,/ome\\\\/([\\\\w\\\\.]+).+qihu (360)[es]e/i],[y,d],[/((?:fban\\\\/fbios|fb_iab\\\\/fb4a)(?!.+fbav)|;fbav\\\\/([\\\\w\\\\.]+);)/i],[[d,ue],y],[/(Klarna)\\\\/([\\\\w\\\\.]+)/i,/(kakao(?:talk|story))[\\\\/ ]([\\\\w\\\\.]+)/i,/(naver)\\\\(.*?(\\\\d+\\\\.[\\\\w\\\\.]+).*\\\\)/i,/(daum)apps[\\\\/ ]([\\\\w\\\\.]+)/i,/safari (line)\\\\/([\\\\w\\\\.]+)/i,/\\\\b(line)\\\\/([\\\\w\\\\.]+)\\\\/iab/i,/(alipay)client\\\\/([\\\\w\\\\.]+)/i,/(twitter)(?:and| f.+e\\\\/([\\\\w\\\\.]+))/i,/(chromium|instagram|snapchat)[\\\\/ ]([-\\\\w\\\\.]+)/i],[d,y],[/\\\\bgsa\\\\/([\\\\w\\\\.]+) .*safari\\\\//i],[y,[d,\\\"GSA\\\"]],[/musical_ly(?:.+app_?version\\\\/|_)([\\\\w\\\\.]+)/i],[y,[d,\\\"TikTok\\\"]],[/headlesschrome(?:\\\\/([\\\\w\\\\.]+)| )/i],[y,[d,P+\\\" Headless\\\"]],[/ wv\\\\).+(chrome)\\\\/([\\\\w\\\\.]+)/i],[[d,P+\\\" WebView\\\"],y],[/droid.+ version\\\\/([\\\\w\\\\.]+)\\\\b.+(?:mobile safari|safari)/i],[y,[d,\\\"Android \\\"+L]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\/v?([\\\\w\\\\.]+)/i],[d,y],[/version\\\\/([\\\\w\\\\.\\\\,]+) .*mobile\\\\/\\\\w+ (safari)/i],[y,[d,\\\"Mobile Safari\\\"]],[/version\\\\/([\\\\w(\\\\.|\\\\,)]+) .*(mobile ?safari|safari)/i],[y,d],[/webkit.+?(mobile ?safari|safari)(\\\\/[\\\\w\\\\.]+)/i],[d,[y,ii,D]],[/(webkit|khtml)\\\\/([\\\\w\\\\.]+)/i],[d,y],[/(navigator|netscape\\\\d?)\\\\/([-\\\\w\\\\.]+)/i],[[d,\\\"Netscape\\\"],y],[/(wolvic|librewolf)\\\\/([\\\\w\\\\.]+)/i],[d,y],[/mobile vr; rv:([\\\\w\\\\.]+)\\\\).+firefox/i],[y,[d,le+\\\" Reality\\\"]],[/ekiohf.+(flow)\\\\/([\\\\w\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\\\\/ ]?([\\\\w\\\\.\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\/([-\\\\w\\\\.]+)$/i,/(firefox)\\\\/([\\\\w\\\\.]+)/i,/(mozilla)\\\\/([\\\\w\\\\.]+) .+rv\\\\:.+gecko\\\\/\\\\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\\\\. ]?browser)[-\\\\/ ]?v?([\\\\w\\\\.]+)/i,/\\\\b(links) \\\\(([\\\\w\\\\.]+)/i],[d,[y,/_/g,\\\".\\\"]],[/(cobalt)\\\\/([\\\\w\\\\.]+)/i],[d,[y,/master.|lts./,\\\"\\\"]]],cpu:[[/\\\\b((amd|x|x86[-_]?|wow|win)64)\\\\b/i],[[E,\\\"amd64\\\"]],[/(ia32(?=;))/i,/\\\\b((i[346]|x)86)(pc)?\\\\b/i],[[E,\\\"ia32\\\"]],[/\\\\b(aarch64|arm(v?[89]e?l?|_?64))\\\\b/i],[[E,\\\"arm64\\\"]],[/\\\\b(arm(v[67])?ht?n?[fl]p?)\\\\b/i],[[E,\\\"armhf\\\"]],[/( (ce|mobile); ppc;|\\\\/[\\\\w\\\\.]+arm\\\\b)/i],[[E,\\\"arm\\\"]],[/((ppc|powerpc)(64)?)( mac|;|\\\\))/i],[[E,/ower/,r,$e]],[/ sun4\\\\w[;\\\\)]/i],[[E,\\\"sparc\\\"]],[/\\\\b(avr32|ia64(?=;)|68k(?=\\\\))|\\\\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\\\\b|pa-risc)/i],[[E,$e]]],device:[[/\\\\b(sch-i[89]0\\\\d|shw-m380s|sm-[ptx]\\\\w{2,4}|gt-[pn]\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[g,Cr],[h,v]],[/\\\\b((?:s[cgp]h|gt|sm)-(?![lr])\\\\w+|sc[g-]?[\\\\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\\\\w]+)/i,/sec-(sgh\\\\w+)/i],[u,[g,Cr],[h,_]],[/(?:\\\\/|\\\\()(ip(?:hone|od)[\\\\w, ]*)(?:\\\\/|;)/i],[u,[g,q],[h,_]],[/\\\\((ipad);[-\\\\w\\\\),; ]+apple/i,/applecoremedia\\\\/[\\\\w\\\\.]+ \\\\((ipad)/i,/\\\\b(ipad)\\\\d\\\\d?,\\\\d\\\\d?[;\\\\]].+ios/i],[u,[g,q],[h,v]],[/(macintosh);/i],[u,[g,q]],[/\\\\b(sh-?[altvz]?\\\\d\\\\d[a-ekm]?)/i],[u,[g,Ei],[h,_]],[/\\\\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\\\\)|;)/i],[u,[g,Le],[h,v]],[/honor([-\\\\w ]+)[;\\\\)]/i],[u,[g,Le],[h,_]],[/\\\\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\\\\w\\\\. ]*(?= bui|\\\\)))\\\\b(?!.+d\\\\/s)/i],[u,[g,O],[h,v]],[/(?:huawei)([-\\\\w ]+)[;\\\\)]/i,/\\\\b(nexus 6p|\\\\w{2,4}e?-[atu]?[ln][\\\\dx][012359c][adn]?)\\\\b(?!.+d\\\\/s)/i],[u,[g,O],[h,_]],[/oid[^\\\\)]+; (2[\\\\dbc]{4}(182|283|rp\\\\w{2})[cgl]|m2105k81a?c)(?: bui|\\\\))/i,/\\\\b((?:red)?mi[-_ ]?pad[\\\\w- ]*)(?: bui|\\\\))/i],[[u,/_/g,\\\" \\\"],[g,ce],[h,v]],[/\\\\b(poco[\\\\w ]+|m2\\\\d{3}j\\\\d\\\\d[a-z]{2})(?: bui|\\\\))/i,/\\\\b; (\\\\w+) build\\\\/hm\\\\1/i,/\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\d\\\\w)?) bui/i,/\\\\b(redmi[\\\\-_ ]?(?:note|k)?[\\\\w_ ]+)(?: bui|\\\\))/i,/oid[^\\\\)]+; (m?[12][0-389][01]\\\\w{3,6}[c-y])( bui|; wv|\\\\))/i,/\\\\b(mi[-_ ]?(?:a\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\d?\\\\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\\\\))/i,/ ([\\\\w ]+) miui\\\\/v?\\\\d/i],[[u,/_/g,\\\" \\\"],[g,ce],[h,_]],[/; (\\\\w+) bui.+ oppo/i,/\\\\b(cph[12]\\\\d{3}|p(?:af|c[al]|d\\\\w|e[ar])[mt]\\\\d0|x9007|a101op)\\\\b/i],[u,[g,Fn],[h,_]],[/\\\\b(opd2(\\\\d{3}a?))(?: bui|\\\\))/i],[u,[g,ii,{OnePlus:[\\\"304\\\",\\\"403\\\",\\\"203\\\"],\\\"*\\\":Fn}],[h,v]],[/vivo (\\\\w+)(?: bui|\\\\))/i,/\\\\b(v[12]\\\\d{3}\\\\w?[at])(?: bui|;)/i],[u,[g,\\\"Vivo\\\"],[h,_]],[/\\\\b(rmx[1-3]\\\\d{3})(?: bui|;|\\\\))/i],[u,[g,\\\"Realme\\\"],[h,_]],[/\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\b[\\\\w ]+build\\\\//i,/\\\\bmot(?:orola)?[- ](\\\\w*)/i,/((?:moto(?! 360)[\\\\w\\\\(\\\\) ]+|xt\\\\d{3,4}|nexus 6)(?= bui|\\\\)))/i],[u,[g,Xt],[h,_]],[/\\\\b(mz60\\\\d|xoom[2 ]{0,2}) build\\\\//i],[u,[g,Xt],[h,v]],[/((?=lg)?[vl]k\\\\-?\\\\d{3}) bui| 3\\\\.[-\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[g,rt],[h,v]],[/(lm(?:-?f100[nv]?|-[\\\\w\\\\.]+)(?= bui|\\\\))|nexus [45])/i,/\\\\blg[-e;\\\\/ ]+((?!browser|netcast|android tv|watch)\\\\w+)/i,/\\\\blg-?([\\\\d\\\\w]+) bui/i],[u,[g,rt],[h,_]],[/(ideatab[-\\\\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\\\\d{3,4}(?:f[cu]|xu|[av])|yt\\\\d?-[jx]?\\\\d+[lfmx])( bui|;|\\\\)|\\\\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\\\\w- ]+?)|tb[\\\\w-]{6,7})( bui|;|\\\\)|\\\\/)/i],[u,[g,Ze],[h,v]],[/(nokia) (t[12][01])/i],[g,u,[h,v]],[/(?:maemo|nokia).*(n900|lumia \\\\d+|rm-\\\\d+)/i,/nokia[-_ ]?(([-\\\\w\\\\. ]*))/i],[[u,/_/g,\\\" \\\"],[h,_],[g,\\\"Nokia\\\"]],[/(pixel (c|tablet))\\\\b/i],[u,[g,se],[h,v]],[/droid.+; (pixel[\\\\daxl ]{0,6})(?: bui|\\\\))/i],[u,[g,se],[h,_]],[/droid.+; (a?\\\\d[0-2]{2}so|[c-g]\\\\d{4}|so[-gl]\\\\w+|xq-a\\\\w[4-7][12])(?= bui|\\\\).+chrome\\\\/(?![1-6]{0,1}\\\\d\\\\.))/i],[u,[g,oe],[h,_]],[/sony tablet [ps]/i,/\\\\b(?:sony)?sgp\\\\w+(?: bui|\\\\))/i],[[u,\\\"Xperia Tablet\\\"],[g,oe],[h,v]],[/ (kb2005|in20[12]5|be20[12][59])\\\\b/i,/(?:one)?(?:plus)? (a\\\\d0\\\\d\\\\d)(?: b|\\\\))/i],[u,[g,pn],[h,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\\\\w\\\\w)( bui|\\\\))/i,/(kf[a-z]+)( bui|\\\\)).+silk\\\\//i],[u,[g,k],[h,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\)).+silk\\\\//i],[[u,/(.+)/g,\\\"Fire Phone $1\\\"],[g,k],[h,_]],[/(playbook);[-\\\\w\\\\),; ]+(rim)/i],[u,g,[h,v]],[/\\\\b((?:bb[a-f]|st[hv])100-\\\\d)/i,/\\\\(bb10; (\\\\w+)/i],[u,[g,$],[h,_]],[/(?:\\\\b|asus_)(transfo[prime ]{4,10} \\\\w+|eeepc|slider \\\\w+|nexus 7|padfone|p00[cj])/i],[u,[g,z],[h,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\d\\\\w?)\\\\b/i],[u,[g,z],[h,_]],[/(nexus 9)/i],[u,[g,\\\"HTC\\\"],[h,v]],[/(htc)[-;_ ]{1,2}([\\\\w ]+(?=\\\\)| bui)|\\\\w+)/i,/(zte)[- ]([\\\\w ]+?)(?: bui|\\\\/|\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\.))|sony(?!-bra))[-_ ]?([-\\\\w]*)/i],[g,[u,/_/g,\\\" \\\"],[h,_]],[/droid [\\\\w\\\\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\\\\w*(\\\\)| bui)/i],[u,[g,\\\"TCL\\\"],[h,v]],[/(itel) ((\\\\w+))/i],[[g,$e],u,[h,ii,{tablet:[\\\"p10001l\\\",\\\"w7001\\\"],\\\"*\\\":\\\"mobile\\\"}]],[/droid.+; ([ab][1-7]-?[0178a]\\\\d\\\\d?)/i],[u,[g,\\\"Acer\\\"],[h,v]],[/droid.+; (m[1-5] note) bui/i,/\\\\bmz-([-\\\\w]{2,})/i],[u,[g,\\\"Meizu\\\"],[h,_]],[/; ((?:power )?armor(?:[\\\\w ]{0,8}))(?: bui|\\\\))/i],[u,[g,\\\"Ulefone\\\"],[h,_]],[/; (energy ?\\\\w+)(?: bui|\\\\))/i,/; energizer ([\\\\w ]+)(?: bui|\\\\))/i],[u,[g,\\\"Energizer\\\"],[h,_]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\\\\))/i],[u,[g,\\\"Cat\\\"],[h,_]],[/((?:new )?andromax[\\\\w- ]+)(?: bui|\\\\))/i],[u,[g,\\\"Smartfren\\\"],[h,_]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[g,\\\"Nothing\\\"],[h,_]],[/; (x67 5g|tikeasy \\\\w+|ac[1789]\\\\d\\\\w+)( b|\\\\))/i,/archos ?(5|gamepad2?|([\\\\w ]*[t1789]|hello) ?\\\\d+[\\\\w ]*)( b|\\\\))/i],[u,[g,\\\"Archos\\\"],[h,v]],[/archos ([\\\\w ]+)( b|\\\\))/i,/; (ac[3-6]\\\\d\\\\w{2,8})( b|\\\\))/i],[u,[g,\\\"Archos\\\"],[h,_]],[/(imo) (tab \\\\w+)/i,/(infinix) (x1101b?)/i],[g,u,[h,v]],[/(blackberry|benq|palm(?=\\\\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\\\\w]*)/i,/; (hmd|imo) ([\\\\w ]+?)(?: bui|\\\\))/i,/(hp) ([\\\\w ]+\\\\w)/i,/(microsoft); (lumia[\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\w ]+?)(?: bui|\\\\)|\\\\/)/i,/(oppo) ?([\\\\w ]+) bui/i],[g,u,[h,_]],[/(kobo)\\\\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\/([\\\\w\\\\.]+)/i,/(nook)[\\\\w ]+build\\\\/(\\\\w+)/i,/(dell) (strea[kpr\\\\d ]*[\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\w{1,9}) bui/i,/(vodafone) ([\\\\w ]+)(?:\\\\)| bui)/i],[g,u,[h,v]],[/(surface duo)/i],[u,[g,St],[h,v]],[/droid [\\\\d\\\\.]+; (fp\\\\du?)(?: b|\\\\))/i],[u,[g,\\\"Fairphone\\\"],[h,_]],[/(u304aa)/i],[u,[g,\\\"AT&T\\\"],[h,_]],[/\\\\bsie-(\\\\w*)/i],[u,[g,\\\"Siemens\\\"],[h,_]],[/\\\\b(rct\\\\w+) b/i],[u,[g,\\\"RCA\\\"],[h,v]],[/\\\\b(venue[\\\\d ]{2,7}) b/i],[u,[g,\\\"Dell\\\"],[h,v]],[/\\\\b(q(?:mv|ta)\\\\w+) b/i],[u,[g,\\\"Verizon\\\"],[h,v]],[/\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\w\\\\+ ]*) b/i],[u,[g,\\\"Barnes & Noble\\\"],[h,v]],[/\\\\b(tm\\\\d{3}\\\\w+) b/i],[u,[g,\\\"NuVision\\\"],[h,v]],[/\\\\b(k88) b/i],[u,[g,\\\"ZTE\\\"],[h,v]],[/\\\\b(nx\\\\d{3}j) b/i],[u,[g,\\\"ZTE\\\"],[h,_]],[/\\\\b(gen\\\\d{3}) b.+49h/i],[u,[g,\\\"Swiss\\\"],[h,_]],[/\\\\b(zur\\\\d{3}) b/i],[u,[g,\\\"Swiss\\\"],[h,v]],[/\\\\b((zeki)?tb.*\\\\b) b/i],[u,[g,\\\"Zeki\\\"],[h,v]],[/\\\\b([yr]\\\\d{2}) b/i,/\\\\b(dragon[- ]+touch |dt)(\\\\w{5}) b/i],[[g,\\\"Dragon Touch\\\"],u,[h,v]],[/\\\\b(ns-?\\\\w{0,9}) b/i],[u,[g,\\\"Insignia\\\"],[h,v]],[/\\\\b((nxa|next)-?\\\\w{0,9}) b/i],[u,[g,\\\"NextBook\\\"],[h,v]],[/\\\\b(xtreme\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,\\\"Voice\\\"],u,[h,_]],[/\\\\b(lvtel\\\\-)?(v1[12]) b/i],[[g,\\\"LvTel\\\"],u,[h,_]],[/\\\\b(ph-1) /i],[u,[g,\\\"Essential\\\"],[h,_]],[/\\\\b(v(100md|700na|7011|917g).*\\\\b) b/i],[u,[g,\\\"Envizen\\\"],[h,v]],[/\\\\b(trio[-\\\\w\\\\. ]+) b/i],[u,[g,\\\"MachSpeed\\\"],[h,v]],[/\\\\btu_(1491) b/i],[u,[g,\\\"Rotor\\\"],[h,v]],[/((?:tegranote|shield t(?!.+d tv))[\\\\w- ]*?)(?: b|\\\\))/i],[u,[g,Jt],[h,v]],[/(sprint) (\\\\w+)/i],[g,u,[h,_]],[/(kin\\\\.[onetw]{3})/i],[[u,/\\\\./g,\\\" \\\"],[g,St],[h,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\)/i],[u,[g,ie],[h,v]],[/droid.+; (ec30|ps20|tc[2-8]\\\\d[kx])\\\\)/i],[u,[g,ie],[h,_]],[/smart-tv.+(samsung)/i],[g,[h,T]],[/hbbtv.+maple;(\\\\d+)/i],[[u,/^/,\\\"SmartTV\\\"],[g,Cr],[h,T]],[/(nux; netcast.+smarttv|lg (netcast\\\\.tv-201\\\\d|android tv))/i],[[g,rt],[h,T]],[/(apple) ?tv/i],[g,[u,q+\\\" TV\\\"],[h,T]],[/crkey/i],[[u,P+\\\"cast\\\"],[g,se],[h,T]],[/droid.+aft(\\\\w+)( bui|\\\\))/i],[u,[g,k],[h,T]],[/(shield \\\\w+ tv)/i],[u,[g,Jt],[h,T]],[/\\\\(dtv[\\\\);].+(aquos)/i,/(aquos-tv[\\\\w ]+)\\\\)/i],[u,[g,Ei],[h,T]],[/(bravia[\\\\w ]+)( bui|\\\\))/i],[u,[g,oe],[h,T]],[/(mi(tv|box)-?\\\\w+) bui/i],[u,[g,ce],[h,T]],[/Hbbtv.*(technisat) (.*);/i],[g,u,[h,T]],[/\\\\b(roku)[\\\\dx]*[\\\\)\\\\/]((?:dvp-)?[\\\\d\\\\.]*)/i,/hbbtv\\\\/\\\\d+\\\\.\\\\d+\\\\.\\\\d+ +\\\\([\\\\w\\\\+ ]*; *([\\\\w\\\\d][^;]*);([^;]*)/i],[[g,$n],[u,$n],[h,T]],[/droid.+; ([\\\\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[h,T]],[/\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\b/i],[[h,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,u,[h,N]],[/droid.+; (shield)( bui|\\\\))/i],[u,[g,Jt],[h,N]],[/(playstation \\\\w+)/i],[u,[g,oe],[h,N]],[/\\\\b(xbox(?: one)?(?!; xbox))[\\\\); ]/i],[u,[g,St],[h,N]],[/\\\\b(sm-[lr]\\\\d\\\\d[0156][fnuw]?s?|gear live)\\\\b/i],[u,[g,Cr],[h,R]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\\\\w ]*)( bui|\\\\))/i],[g,u,[h,R]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[g,Fn],[h,R]],[/(watch)(?: ?os[,\\\\/]|\\\\d,\\\\d\\\\/)[\\\\d\\\\.]+/i],[u,[g,q],[h,R]],[/(opwwe\\\\d{3})/i],[u,[g,pn],[h,R]],[/(moto 360)/i],[u,[g,Xt],[h,R]],[/(smartwatch 3)/i],[u,[g,oe],[h,R]],[/(g watch r)/i],[u,[g,rt],[h,R]],[/droid.+; (wt63?0{2,3})\\\\)/i],[u,[g,ie],[h,R]],[/droid.+; (glass) \\\\d/i],[u,[g,se],[h,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,u,[h,R]],[/; (quest( \\\\d| pro)?)/i],[u,[g,ue],[h,R]],[/(tesla)(?: qtcarbrowser|\\\\/[-\\\\w\\\\.]+)/i],[g,[h,U]],[/(aeobc)\\\\b/i],[u,[g,k],[h,U]],[/(homepod).+mac os/i],[u,[g,q],[h,U]],[/windows iot/i],[[h,U]],[/droid .+?; ([^;]+?)(?: bui|; wv\\\\)|\\\\) applew).+? mobile safari/i],[u,[h,_]],[/droid .+?; ([^;]+?)(?: bui|\\\\) applew).+?(?! mobile) safari/i],[u,[h,v]],[/\\\\b((tablet|tab)[;\\\\/]|focus\\\\/\\\\d(?!.+mobile))/i],[[h,v]],[/(phone|mobile(?:[;\\\\/]| [ \\\\w\\\\/\\\\.]*safari)|pda(?=.+windows ce))/i],[[h,_]],[/droid .+?; ([\\\\w\\\\. -]+)( bui|\\\\))/i],[u,[g,\\\"Generic\\\"]]],engine:[[/windows.+ edge\\\\/([\\\\w\\\\.]+)/i],[y,[d,pe+\\\"HTML\\\"]],[/(arkweb)\\\\/([\\\\w\\\\.]+)/i],[d,y],[/webkit\\\\/537\\\\.36.+chrome\\\\/(?!27)([\\\\w\\\\.]+)/i],[y,[d,\\\"Blink\\\"]],[/(presto)\\\\/([\\\\w\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\\\\/([\\\\w\\\\.]+)/i,/ekioh(flow)\\\\/([\\\\w\\\\.]+)/i,/(khtml|tasman|links)[\\\\/ ]\\\\(?([\\\\w\\\\.]+)/i,/(icab)[\\\\/ ]([23]\\\\.[\\\\d\\\\.]+)/i,/\\\\b(libweb)/i],[d,y],[/ladybird\\\\//i],[[d,\\\"LibWeb\\\"]],[/rv\\\\:([\\\\w\\\\.]{1,9})\\\\b.+(gecko)/i],[y,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,y],[/(windows (?:phone(?: os)?|mobile|iot))[\\\\/ ]?([\\\\d\\\\.\\\\w ]*)/i],[d,[y,ii,S]],[/windows nt 6\\\\.2; (arm)/i,/windows[\\\\/ ]([ntce\\\\d\\\\. ]+\\\\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\\\\d\\\\.]+)/i],[[y,ii,S],[d,\\\"Windows\\\"]],[/[adehimnop]{4,7}\\\\b(?:.*os ([\\\\w]+) like mac|; opera)/i,/(?:ios;fbsv\\\\/|iphone.+ios[\\\\/ ])([\\\\d\\\\.]+)/i,/cfnetwork\\\\/.+darwin/i],[[y,/_/g,\\\".\\\"],[d,\\\"iOS\\\"]],[/(mac os x) ?([\\\\w\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\b)(?!.+haiku)/i],[[d,Ue],[y,/_/g,\\\".\\\"]],[/droid ([\\\\w\\\\.]+)\\\\b.+(android[- ]x86|harmonyos)/i],[y,d],[/(ubuntu) ([\\\\w\\\\.]+) like android/i],[[d,/(.+)/,\\\"$1 Touch\\\"],y],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\\\\w*[-\\\\/; ]?([\\\\d\\\\.]*)/i],[d,y],[/\\\\(bb(10);/i],[y,[d,$]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\\\\/ ]?([\\\\w\\\\.]*)/i],[y,[d,\\\"Symbian\\\"]],[/mozilla\\\\/[\\\\d\\\\.]+ \\\\((?:mobile|tablet|tv|mobile; [\\\\w ]+); rv:.+ gecko\\\\/([\\\\w\\\\.]+)/i],[y,[d,le+\\\" OS\\\"]],[/web0s;.+rt(tv)/i,/\\\\b(?:hp)?wos(?:browser)?\\\\/([\\\\w\\\\.]+)/i],[y,[d,\\\"webOS\\\"]],[/watch(?: ?os[,\\\\/]|\\\\d,\\\\d\\\\/)([\\\\d\\\\.]+)/i],[y,[d,\\\"watchOS\\\"]],[/crkey\\\\/([\\\\d\\\\.]+)/i],[y,[d,P+\\\"cast\\\"]],[/(cros) [\\\\w]+(?:\\\\)| ([\\\\w\\\\.]+)\\\\b)/i],[[d,ye],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\/(\\\\d+\\\\.[\\\\w\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\);]+)/i,/\\\\b(joli|palm)\\\\b ?(?:os)?\\\\/?([\\\\w\\\\.]*)/i,/(mint)[\\\\/\\\\(\\\\) ]?(\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\/ ]?(?!chrom|package)([-\\\\w\\\\.]*)/i,/(hurd|linux)(?: arm\\\\w*| x86\\\\w*| ?)([\\\\w\\\\.]*)/i,/(gnu) ?([\\\\w\\\\.]*)/i,/\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\w\\\\.]*)/i,/(haiku) (\\\\w+)/i],[d,y],[/(sunos) ?([\\\\w\\\\.\\\\d]*)/i],[[d,\\\"Solaris\\\"],y],[/((?:open)?solaris)[-\\\\/ ]?([\\\\w\\\\.]*)/i,/(aix) ((\\\\d)(?=\\\\.|\\\\)| )[\\\\w\\\\.])*/i,/\\\\b(beos|os\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\w\\\\.]*)/i],[d,y]]},j=function(Q,ee){if(typeof Q===s&&(ee=Q,Q=e),!(this instanceof j))return new j(Q,ee).getResult();var te=typeof t!==o&&t.navigator?t.navigator:e,me=Q||(te&&te.userAgent?te.userAgent:r),Pe=te&&te.userAgentData?te.userAgentData:e,_e=ee?tt(I,ee):I,be=te&&te.userAgent==me;return this.getBrowser=function(){var Ae={};return Ae[d]=e,Ae[y]=e,Hr.call(Ae,me,_e.browser),Ae[c]=Yn(Ae[y]),be&&te&&te.brave&&typeof te.brave.isBrave==a&&(Ae[d]=\\\"Brave\\\"),Ae},this.getCPU=function(){var Ae={};return Ae[E]=e,Hr.call(Ae,me,_e.cpu),Ae},this.getDevice=function(){var Ae={};return Ae[g]=e,Ae[u]=e,Ae[h]=e,Hr.call(Ae,me,_e.device),be&&!Ae[h]&&Pe&&Pe.mobile&&(Ae[h]=_),be&&Ae[u]==\\\"Macintosh\\\"&&te&&typeof te.standalone!==o&&te.maxTouchPoints&&te.maxTouchPoints>2&&(Ae[u]=\\\"iPad\\\",Ae[h]=v),Ae},this.getEngine=function(){var Ae={};return Ae[d]=e,Ae[y]=e,Hr.call(Ae,me,_e.engine),Ae},this.getOS=function(){var Ae={};return Ae[d]=e,Ae[y]=e,Hr.call(Ae,me,_e.os),be&&!Ae[d]&&Pe&&Pe.platform&&Pe.platform!=\\\"Unknown\\\"&&(Ae[d]=Pe.platform.replace(/chrome os/i,ye).replace(/macos/i,Ue)),Ae},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return me},this.setUA=function(Ae){return me=typeof Ae===l&&Ae.length>X?$n(Ae,X):Ae,this},this.setUA(me),this};j.VERSION=n,j.BROWSER=Ht([d,y,c]),j.CPU=Ht([E]),j.DEVICE=Ht([u,g,h,N,_,T,v,R,U]),j.ENGINE=j.OS=Ht([d,y]),typeof hg!==o?(typeof bb!==o&&bb.exports&&(hg=bb.exports=j),hg.UAParser=j):typeof define===a&&define.amd?define(function(){return j}):typeof t!==o&&(t.UAParser=j);var H=typeof t!==o&&(t.jQuery||t.Zepto);if(H&&!H.ua){var B=new j;H.ua=B.getResult(),H.ua.get=function(){return B.getUA()},H.ua.set=function(Q){B.setUA(Q);var ee=B.getResult();for(var te in ee)H.ua[te]=ee[te]}}})(typeof window==\\\"object\\\"?window:hg)});var vO=V((bge,bO)=>{\\\"use strict\\\";b();var FX=function(e){return $X(e)&&!KX(e)};function $X(t){return!!t&&typeof t==\\\"object\\\"}function KX(t){var e=Object.prototype.toString.call(t);return e===\\\"[object RegExp]\\\"||e===\\\"[object Date]\\\"||GX(t)}var ZX=typeof Symbol==\\\"function\\\"&&Symbol.for,YX=ZX?Symbol.for(\\\"react.element\\\"):60103;function GX(t){return t.$$typeof===YX}function QX(t){return Array.isArray(t)?[]:{}}function gg(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Kf(QX(t),t,e):t}function XX(t,e,n){return t.concat(e).map(function(r){return gg(r,n)})}function JX(t,e){if(!e.customMerge)return Kf;var n=e.customMerge(t);return typeof n==\\\"function\\\"?n:Kf}function eJ(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function mO(t){return Object.keys(t).concat(eJ(t))}function yO(t,e){try{return e in t}catch{return!1}}function tJ(t,e){return yO(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function nJ(t,e,n){var r={};return n.isMergeableObject(t)&&mO(t).forEach(function(i){r[i]=gg(t[i],n)}),mO(e).forEach(function(i){tJ(t,i)||(yO(t,i)&&n.isMergeableObject(e[i])?r[i]=JX(i,n)(t[i],e[i],n):r[i]=gg(e[i],n))}),r}function Kf(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||XX,n.isMergeableObject=n.isMergeableObject||FX,n.cloneUnlessOtherwiseSpecified=gg;var r=Array.isArray(e),i=Array.isArray(t),a=r===i;return a?r?n.arrayMerge(t,e,n):nJ(t,e,n):gg(e,n)}Kf.all=function(e,n){if(!Array.isArray(e))throw new Error(\\\"first argument should be an array\\\");return e.reduce(function(r,i){return Kf(r,i,n)},{})};var rJ=Kf;bO.exports=rJ});var wO=V((wge,vb)=>{b();(function(){\\\"use strict\\\";var t={}.hasOwnProperty;function e(){for(var i=\\\"\\\",a=0;a<arguments.length;a++){var o=arguments[a];o&&(i=r(i,n(o)))}return i}function n(i){if(typeof i==\\\"string\\\"||typeof i==\\\"number\\\")return i;if(typeof i!=\\\"object\\\")return\\\"\\\";if(Array.isArray(i))return e.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes(\\\"[native code]\\\"))return i.toString();var a=\\\"\\\";for(var o in i)t.call(i,o)&&i[o]&&(a=r(a,o));return a}function r(i,a){return a?i?i+\\\" \\\"+a:i+a:i}typeof vb<\\\"u\\\"&&vb.exports?(e.default=e,vb.exports=e):typeof define==\\\"function\\\"&&typeof define.amd==\\\"object\\\"&&define.amd?define(\\\"classnames\\\",[],function(){return e}):window.classNames=e})()});function xg(t,e){let n=xn,r=ln,i=t.length===0,a=e===void 0?r:e,o=i?CI:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?t:()=>t(()=>qn(()=>Sg(o)));ln=o,xn=null;try{return po(s,!0)}finally{xn=n,ln=r}}function Je(t,e){e=e?Object.assign({},Mb,e):Mb;let n={value:t,observers:null,observerSlots:null,comparator:e.equals||void 0},r=i=>(typeof i==\\\"function\\\"&&(i=i(n.value)),RI(n,i));return[MI.bind(n),r]}function SI(t,e,n){let r=Xb(t,e,!0,xs);sh(r)}function zt(t,e,n){let r=Xb(t,e,!1,xs);sh(r)}function Zn(t,e,n){_I=yJ;let r=Xb(t,e,!1,xs);(!n||!n.render)&&(r.user=!0),bs?bs.push(r):sh(r)}function xt(t,e,n){n=n?Object.assign({},Mb,n):Mb;let r=Xb(t,e,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,sh(r),MI.bind(r)}function uJ(t){return t&&typeof t==\\\"object\\\"&&\\\"then\\\"in t}function dJ(t,e,n){let r,i,a;r=!0,i=t,a={};let o=null,s=a6,l=!1,c=\\\"initialValue\\\"in a,u=typeof r==\\\"function\\\"&&xt(r),d=new Set,[h,g]=(a.storage||Je)(a.initialValue),[y,E]=Je(void 0),[N,_]=Je(void 0,{equals:!1}),[v,T]=Je(c?\\\"ready\\\":\\\"unresolved\\\");function R(z,$,L,P){return o===z&&(o=null,P!==void 0&&(c=!0),(z===s||$===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(P,{value:$})),s=a6,U($,L)),$}function U(z,$){po(()=>{$===void 0&&g(()=>z),T($!==void 0?\\\"errored\\\":c?\\\"ready\\\":\\\"unresolved\\\"),E($);for(let L of d.keys())L.decrement();d.clear()},!1)}function X(){let z=gJ,$=h(),L=y();if(L!==void 0&&!o)throw L;return xn&&xn.user,$}function k(z=!0){if(z!==!1&&l)return;l=!1;let $=u?u():r;if($==null||$===!1){R(o,qn(h));return}let L,P=s!==a6?s:qn(()=>{try{return i($,{value:h(),refetching:z})}catch(pe){L=pe}});if(L!==void 0){R(o,void 0,Tb(L),$);return}else if(!uJ(P))return R(o,P,void 0,$),P;return o=P,\\\"v\\\"in P?(P.s===1?R(o,P.v,void 0,$):R(o,void 0,Tb(P.v),$),P):(l=!0,queueMicrotask(()=>l=!1),po(()=>{T(c?\\\"refreshing\\\":\\\"pending\\\"),_()},!1),P.then(pe=>R(P,pe,void 0,$),pe=>R(P,void 0,Tb(pe),$)))}Object.defineProperties(X,{state:{get:()=>v()},error:{get:()=>y()},loading:{get(){let z=v();return z===\\\"pending\\\"||z===\\\"refreshing\\\"}},latest:{get(){if(!c)return X();let z=y();if(z&&!o)throw z;return h()}}});let q=ln;return u?SI(()=>(q=ln,k(!1))):k(!1),[X,{refetch:z=>AI(q,()=>k(z)),mutate:g}]}function A6(t){return po(t,!1)}function qn(t){if(xn===null)return t();let e=xn;xn=null;try{return t()}finally{xn=e}}function k6(t,e,n){let r=Array.isArray(t),i;return a=>{let o;if(r){o=Array(t.length);for(let l=0;l<t.length;l++)o[l]=t[l]()}else o=t();let s=qn(()=>e(o,i,a));return i=o,s}}function TI(t){Zn(()=>qn(t))}function ri(t){return ln===null||(ln.cleanups===null?ln.cleanups=[t]:ln.cleanups.push(t)),t}function B6(){return xn}function EI(){return ln}function AI(t,e){let n=ln,r=xn;ln=t,xn=null;try{return po(e,!0)}catch(i){e_(i)}finally{ln=n,xn=r}}function fJ(t){let e=xn,n=ln;return Promise.resolve().then(()=>{xn=e,ln=n,po(t,!1),xn=ln=null})}function kI(){return[hJ,fJ]}function Qb(t,e){let n=Symbol(\\\"context\\\");return{id:n,Provider:bJ(n),defaultValue:t}}function Vr(t){let e;return ln&&ln.context&&(e=ln.context[t.id])!==void 0?e:t.defaultValue}function BI(t){let e=xt(t),n=xt(()=>M6(e()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function MI(){if(this.sources&&this.state)if(this.state===xs)sh(this);else{let t=qr;qr=null,po(()=>Ib(this),!1),qr=t}if(xn){let t=this.observers?this.observers.length:0;xn.sources?(xn.sources.push(this),xn.sourceSlots.push(t)):(xn.sources=[this],xn.sourceSlots=[t]),this.observers?(this.observers.push(xn),this.observerSlots.push(xn.sources.length-1)):(this.observers=[xn],this.observerSlots=[xn.sources.length-1])}return this.value}function RI(t,e,n){let r=t.value;return(!t.comparator||!t.comparator(r,e))&&(t.value=e,t.observers&&t.observers.length&&po(()=>{for(let i=0;i<t.observers.length;i+=1){let a=t.observers[i],o=o6&&o6.running;o&&o6.disposed.has(a),(o?!a.tState:!a.state)&&(a.pure?qr.push(a):bs.push(a),a.observers&&II(a)),o||(a.state=xs)}if(qr.length>1e6)throw qr=[],new Error},!1)),e}function sh(t){if(!t.fn)return;Sg(t);let e=Gb;pJ(t,t.value,e)}function pJ(t,e,n){let r,i=ln,a=xn;xn=ln=t;try{r=t.fn(e)}catch(o){return t.pure&&(t.state=xs,t.owned&&t.owned.forEach(Sg),t.owned=null),t.updatedAt=n+1,e_(o)}finally{xn=a,ln=i}(!t.updatedAt||t.updatedAt<=n)&&(t.updatedAt!=null&&\\\"observers\\\"in t?RI(t,r):t.value=r,t.updatedAt=n)}function Xb(t,e,n,r=xs,i){let a={fn:t,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:ln,context:ln?ln.context:null,pure:n};return ln===null||ln!==CI&&(ln.owned?ln.owned.push(a):ln.owned=[a]),a}function Ob(t){if(t.state===0)return;if(t.state===Rb)return Ib(t);if(t.suspense&&qn(t.suspense.inFallback))return t.suspense.effects.push(t);let e=[t];for(;(t=t.owner)&&(!t.updatedAt||t.updatedAt<Gb);)t.state&&e.push(t);for(let n=e.length-1;n>=0;n--)if(t=e[n],t.state===xs)sh(t);else if(t.state===Rb){let r=qr;qr=null,po(()=>Ib(t,e[0]),!1),qr=r}}function po(t,e){if(qr)return t();let n=!1;e||(qr=[]),bs?n=!0:bs=[],Gb++;try{let r=t();return mJ(n),r}catch(r){n||(bs=null),qr=null,e_(r)}}function mJ(t){if(qr&&(OI(qr),qr=null),t)return;let e=bs;bs=null,e.length&&po(()=>_I(e),!1)}function OI(t){for(let e=0;e<t.length;e++)Ob(t[e])}function yJ(t){let e,n=0;for(e=0;e<t.length;e++){let r=t[e];r.user?t[n++]=r:Ob(r)}for(e=0;e<n;e++)Ob(t[e])}function Ib(t,e){t.state=0;for(let n=0;n<t.sources.length;n+=1){let r=t.sources[n];if(r.sources){let i=r.state;i===xs?r!==e&&(!r.updatedAt||r.updatedAt<Gb)&&Ob(r):i===Rb&&Ib(r,e)}}}function II(t){for(let e=0;e<t.observers.length;e+=1){let n=t.observers[e];n.state||(n.state=Rb,n.pure?qr.push(n):bs.push(n),n.observers&&II(n))}}function Sg(t){let e;if(t.sources)for(;t.sources.length;){let n=t.sources.pop(),r=t.sourceSlots.pop(),i=n.observers;if(i&&i.length){let a=i.pop(),o=n.observerSlots.pop();r<i.length&&(a.sourceSlots[o]=r,i[r]=a,n.observerSlots[r]=o)}}if(t.tOwned){for(e=t.tOwned.length-1;e>=0;e--)Sg(t.tOwned[e]);delete t.tOwned}if(t.owned){for(e=t.owned.length-1;e>=0;e--)Sg(t.owned[e]);t.owned=null}if(t.cleanups){for(e=t.cleanups.length-1;e>=0;e--)t.cleanups[e]();t.cleanups=null}t.state=0}function Tb(t){return t instanceof Error?t:new Error(typeof t==\\\"string\\\"?t:\\\"Unknown error\\\",{cause:t})}function e_(t,e=ln){throw Tb(t)}function M6(t){if(typeof t==\\\"function\\\"&&!t.length)return M6(t());if(Array.isArray(t)){let e=[];for(let n=0;n<t.length;n++){let r=M6(t[n]);Array.isArray(r)?e.push.apply(e,r):e.push(r)}return e}return t}function bJ(t,e){return function(r){let i;return zt(()=>i=qn(()=>(ln.context=mr(Kt({},ln.context),{[t]:r.value}),BI(()=>r.children))),void 0),i}}function MO(t){for(let e=0;e<t.length;e++)t[e]()}function wJ(t,e,n={}){let r=[],i=[],a=[],o=0,s=e.length>1?[]:null;return ri(()=>MO(a)),()=>{let l=t()||[],c=l.length,u,d;return l[Bb],qn(()=>{let g,y,E,N,_,v,T,R,U;if(c===0)o!==0&&(MO(a),a=[],r=[],i=[],o=0,s&&(s=[])),n.fallback&&(r=[vJ],i[0]=xg(X=>(a[0]=X,n.fallback())),o=1);else if(o===0){for(i=new Array(c),d=0;d<c;d++)r[d]=l[d],i[d]=xg(h);o=c}else{for(E=new Array(c),N=new Array(c),s&&(_=new Array(c)),v=0,T=Math.min(o,c);v<T&&r[v]===l[v];v++);for(T=o-1,R=c-1;T>=v&&R>=v&&r[T]===l[R];T--,R--)E[R]=i[T],N[R]=a[T],s&&(_[R]=s[T]);for(g=new Map,y=new Array(R+1),d=R;d>=v;d--)U=l[d],u=g.get(U),y[d]=u===void 0?-1:u,g.set(U,d);for(u=v;u<=T;u++)U=r[u],d=g.get(U),d!==void 0&&d!==-1?(E[d]=i[u],N[d]=a[u],s&&(_[d]=s[u]),d=y[d],g.set(U,d)):a[u]();for(d=v;d<c;d++)d in E?(i[d]=E[d],a[d]=N[d],s&&(s[d]=_[d],s[d](d))):i[d]=xg(h);i=i.slice(0,o=c),r=l.slice(0)}return i});function h(g){if(a[d]=g,s){let[y,E]=Je(d);return s[d]=E,e(l[d],y)}return e(l[d])}}}function p(t,e){return qn(()=>t(e||{}))}function wb(){return!0}function s6(t){return(t=typeof t==\\\"function\\\"?t():t)?t:{}}function xJ(){for(let t=0,e=this.length;t<e;++t){let n=this[t]();if(n!==void 0)return n}}function fo(...t){let e=!1;for(let o=0;o<t.length;o++){let s=t[o];e=e||!!s&&Ia in s,t[o]=typeof s==\\\"function\\\"?(e=!0,xt(s)):s}if(xI&&e)return new Proxy({get(o){for(let s=t.length-1;s>=0;s--){let l=s6(t[s])[o];if(l!==void 0)return l}},has(o){for(let s=t.length-1;s>=0;s--)if(o in s6(t[s]))return!0;return!1},keys(){let o=[];for(let s=0;s<t.length;s++)o.push(...Object.keys(s6(t[s])));return[...new Set(o)]}},R6);let n={},r=Object.create(null);for(let o=t.length-1;o>=0;o--){let s=t[o];if(!s)continue;let l=Object.getOwnPropertyNames(s);for(let c=l.length-1;c>=0;c--){let u=l[c];if(u===\\\"__proto__\\\"||u===\\\"constructor\\\")continue;let d=Object.getOwnPropertyDescriptor(s,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:xJ.bind(n[u]=[d.get.bind(s)])}:d.value!==void 0?d:void 0;else{let h=n[u];h&&(d.get?h.push(d.get.bind(s)):d.value!==void 0&&h.push(()=>d.value))}}}let i={},a=Object.keys(r);for(let o=a.length-1;o>=0;o--){let s=a[o],l=r[s];l&&l.get?Object.defineProperty(i,s,l):i[s]=l?l.value:void 0}return i}function t_(t,...e){if(xI&&Ia in t){let i=new Set(e.length>1?e.flat():e[0]),a=e.map(o=>new Proxy({get(s){return o.includes(s)?t[s]:void 0},has(s){return o.includes(s)&&s in t},keys(){return o.filter(s=>s in t)}},R6));return a.push(new Proxy({get(o){return i.has(o)?void 0:t[o]},has(o){return i.has(o)?!1:o in t},keys(){return Object.keys(t).filter(o=>!i.has(o))}},R6)),a}let n={},r=e.map(()=>({}));for(let i of Object.getOwnPropertyNames(t)){let a=Object.getOwnPropertyDescriptor(t,i),o=!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable,s=!1,l=0;for(let c of e)c.includes(i)&&(s=!0,o?r[l][i]=a.value:Object.defineProperty(r[l],i,a)),++l;s||(o?n[i]=a.value:Object.defineProperty(n,i,a))}return[...r,n]}function th(t){let e=\\\"fallback\\\"in t&&{fallback:()=>t.fallback};return xt(wJ(()=>t.each,t.children,e||void 0))}function at(t){let e=t.keyed,n=xt(()=>t.when,void 0,void 0),r=e?n:xt(n,void 0,{equals:(i,a)=>!i==!a});return xt(()=>{let i=r();if(i){let a=t.children;return typeof a==\\\"function\\\"&&a.length>0?qn(()=>a(e?i:()=>{if(!qn(r))throw UI(\\\"Show\\\");return n()})):a}return t.fallback},void 0,void 0)}function vs(t){let e=BI(()=>t.children),n=xt(()=>{let r=e(),i=Array.isArray(r)?r:[r],a=()=>{};for(let o=0;o<i.length;o++){let s=o,l=i[o],c=a,u=xt(()=>c()?void 0:l.when,void 0,void 0),d=l.keyed?u:xt(u,void 0,{equals:(h,g)=>!h==!g});a=()=>c()||(d()?[s,u,l]:void 0)}return a});return xt(()=>{let r=n()();if(!r)return t.fallback;let[i,a,o]=r,s=o.children;return typeof s==\\\"function\\\"&&s.length>0?qn(()=>s(o.keyed?a():()=>{var c;if(((c=qn(n)())==null?void 0:c[0])!==i)throw UI(\\\"Match\\\");return a()})):s},void 0,void 0)}function qt(t){return t}function AJ(t,e){let n=EJ[t];return typeof n==\\\"object\\\"?n[e]?n.$:void 0:n}function RJ(t,e,n){let r=n.length,i=e.length,a=r,o=0,s=0,l=e[i-1].nextSibling,c=null;for(;o<i||s<a;){if(e[o]===n[s]){o++,s++;continue}for(;e[i-1]===n[a-1];)i--,a--;if(i===o){let u=a<r?s?n[s-1].nextSibling:n[a-s]:l;for(;s<a;)t.insertBefore(n[s++],u)}else if(a===s)for(;o<i;)(!c||!c.has(e[o]))&&e[o].remove(),o++;else if(e[o]===n[a-1]&&n[s]===e[i-1]){let u=e[--i].nextSibling;t.insertBefore(n[s++],e[o++].nextSibling),t.insertBefore(n[--a],u),e[i]=n[a]}else{if(!c){c=new Map;let d=s;for(;d<a;)c.set(n[d],d++)}let u=c.get(e[o]);if(u!=null)if(s<u&&u<a){let d=o,h=1,g;for(;++d<i&&d<a&&!((g=c.get(e[d]))==null||g!==u+h);)h++;if(h>u-s){let y=e[o];for(;s<u;)t.insertBefore(n[s++],y)}else t.replaceChild(n[s++],e[o++])}else o++;else e[o++].remove()}}}function OJ(t,e,n,r={}){let i;return xg(a=>{i=a,e===document?t():xr(e,t(),e.firstChild?null:void 0,n)},r.owner),()=>{i(),e.textContent=\\\"\\\"}}function Dt(t,e,n,r){let i,a=()=>{let s=r?document.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",\\\"template\\\"):document.createElement(\\\"template\\\");return s.innerHTML=t,n?s.content.firstChild.firstChild:r?s.firstChild:s.content.firstChild},o=e?()=>qn(()=>document.importNode(i||(i=a()),!0)):()=>(i||(i=a())).cloneNode(!0);return o.cloneNode=o,o}function IJ(t,e=window.document){let n=e[RO]||(e[RO]=new Set);for(let r=0,i=t.length;r<i;r++){let a=t[r];n.has(a)||(n.add(a),e.addEventListener(a,qJ))}}function Qe(t,e,n){n==null?t.removeAttribute(e):t.setAttribute(e,n)}function UJ(t,e,n,r){r==null?t.removeAttributeNS(e,n):t.setAttributeNS(e,n,r)}function NJ(t,e,n){n?t.setAttribute(e,\\\"\\\"):t.removeAttribute(e)}function n_(t,e){e==null?t.removeAttribute(\\\"class\\\"):t.className=e}function PJ(t,e,n,r){if(r)Array.isArray(n)?(t[`$$${e}`]=n[0],t[`$$${e}Data`]=n[1]):t[`$$${e}`]=n;else if(Array.isArray(n)){let i=n[0];t.addEventListener(e,n[0]=a=>i.call(t,n[1],a))}else t.addEventListener(e,n,typeof n!=\\\"function\\\"&&n)}function jJ(t,e,n={}){let r=Object.keys(e||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let s=i[a];!s||s===\\\"undefined\\\"||e[s]||(OO(t,s,!1),delete n[s])}for(a=0,o=r.length;a<o;a++){let s=r[a],l=!!e[s];!s||s===\\\"undefined\\\"||n[s]===l||!l||(OO(t,s,!0),n[s]=l)}return n}function zJ(t,e,n){if(!e)return n?Qe(t,\\\"style\\\"):e;let r=t.style;if(typeof e==\\\"string\\\")return r.cssText=e;typeof n==\\\"string\\\"&&(r.cssText=n=void 0),n||(n={}),e||(e={});let i,a;for(a in n)e[a]==null&&r.removeProperty(a),delete n[a];for(a in e)i=e[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function NI(t,e={},n,r){let i={};return zt(()=>i.children=Tg(t,e.children,i.children)),zt(()=>typeof e.ref==\\\"function\\\"&&gu(e.ref,t)),zt(()=>DJ(t,e,n,!0,i,!0)),i}function gu(t,e,n){return qn(()=>t(e,n))}function xr(t,e,n,r){if(n!==void 0&&!r&&(r=[]),typeof e!=\\\"function\\\")return Tg(t,e,r,n);zt(i=>Tg(t,e(),i,n),r)}function DJ(t,e,n,r,i={},a=!1){e||(e={});for(let o in i)if(!(o in e)){if(o===\\\"children\\\")continue;i[o]=IO(t,o,null,i[o],n,a,e)}for(let o in e){if(o===\\\"children\\\")continue;let s=e[o];i[o]=IO(t,o,s,i[o],n,a,e)}}function LJ(t){return t.toLowerCase().replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function OO(t,e,n){let r=e.trim().split(/\\\\s+/);for(let i=0,a=r.length;i<a;i++)t.classList.toggle(r[i],n)}function IO(t,e,n,r,i,a,o){let s,l,c,u,d;if(e===\\\"style\\\")return zJ(t,n,r);if(e===\\\"classList\\\")return jJ(t,n,r);if(n===r)return r;if(e===\\\"ref\\\")a||n(t);else if(e.slice(0,3)===\\\"on:\\\"){let h=e.slice(3);r&&t.removeEventListener(h,r,typeof r!=\\\"function\\\"&&r),n&&t.addEventListener(h,n,typeof n!=\\\"function\\\"&&n)}else if(e.slice(0,10)===\\\"oncapture:\\\"){let h=e.slice(10);r&&t.removeEventListener(h,r,!0),n&&t.addEventListener(h,n,!0)}else if(e.slice(0,2)===\\\"on\\\"){let h=e.slice(2).toLowerCase(),g=kJ.has(h);if(!g&&r){let y=Array.isArray(r)?r[0]:r;t.removeEventListener(h,y)}(g||n)&&(PJ(t,h,n,g),g&&IJ([h]))}else if(e.slice(0,5)===\\\"attr:\\\")Qe(t,e.slice(5),n);else if(e.slice(0,5)===\\\"bool:\\\")NJ(t,e.slice(5),n);else if((d=e.slice(0,5)===\\\"prop:\\\")||(c=SJ.has(e))||!i&&((u=AJ(e,t.tagName))||(l=CJ.has(e)))||(s=t.nodeName.includes(\\\"-\\\")||\\\"is\\\"in o))d&&(e=e.slice(5),l=!0),e===\\\"class\\\"||e===\\\"className\\\"?n_(t,n):s&&!l&&!c?t[LJ(e)]=n:t[u||e]=n;else{let h=i&&e.indexOf(\\\":\\\")>-1&&MJ[e.split(\\\":\\\")[0]];h?UJ(t,h,e,n):Qe(t,TJ[e]||e,n)}return n}function qJ(t){let e=t.target,n=`$$${t.type}`,r=t.target,i=t.currentTarget,a=l=>Object.defineProperty(t,\\\"target\\\",{configurable:!0,value:l}),o=()=>{let l=e[n];if(l&&!e.disabled){let c=e[`${n}Data`];if(c!==void 0?l.call(e,c,t):l.call(e,t),t.cancelBubble)return}return e.host&&typeof e.host!=\\\"string\\\"&&!e.host._$host&&e.contains(t.target)&&a(e.host),!0},s=()=>{for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(t,\\\"currentTarget\\\",{configurable:!0,get(){return e||document}}),t.composedPath){let l=t.composedPath();a(l[0]);for(let c=0;c<l.length-2&&(e=l[c],!!o());c++){if(e._$host){e=e._$host,s();break}if(e.parentNode===i)break}}else s();a(r)}function Tg(t,e,n,r,i){for(;typeof n==\\\"function\\\";)n=n();if(e===n)return n;let a=typeof e,o=r!==void 0;if(t=o&&n[0]&&n[0].parentNode||t,a===\\\"string\\\"||a===\\\"number\\\"){if(a===\\\"number\\\"&&(e=e.toString(),e===n))return n;if(o){let s=n[0];s&&s.nodeType===3?s.data!==e&&(s.data=e):s=document.createTextNode(e),n=Zf(t,n,r,s)}else n!==\\\"\\\"&&typeof n==\\\"string\\\"?n=t.firstChild.data=e:n=t.textContent=e}else if(e==null||a===\\\"boolean\\\")n=Zf(t,n,r);else{if(a===\\\"function\\\")return zt(()=>{let s=e();for(;typeof s==\\\"function\\\";)s=s();n=Tg(t,s,n,r)}),()=>n;if(Array.isArray(e)){let s=[],l=n&&Array.isArray(n);if(O6(s,e,n,i))return zt(()=>n=Tg(t,s,n,r,!0)),()=>n;if(s.length===0){if(n=Zf(t,n,r),o)return n}else l?n.length===0?UO(t,s,r):RJ(t,n,s):(n&&Zf(t),UO(t,s));n=s}else if(e.nodeType){if(Array.isArray(n)){if(o)return n=Zf(t,n,r,e);Zf(t,n,null,e)}else n==null||n===\\\"\\\"||!t.firstChild?t.appendChild(e):t.replaceChild(e,t.firstChild);n=e}}return n}function O6(t,e,n,r){let i=!1;for(let a=0,o=e.length;a<o;a++){let s=e[a],l=n&&n[t.length],c;if(!(s==null||s===!0||s===!1))if((c=typeof s)==\\\"object\\\"&&s.nodeType)t.push(s);else if(Array.isArray(s))i=O6(t,s,l)||i;else if(c===\\\"function\\\")if(r){for(;typeof s==\\\"function\\\";)s=s();i=O6(t,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else t.push(s),i=!0;else{let u=String(s);l&&l.nodeType===3&&l.data===u?t.push(l):t.push(document.createTextNode(u))}}return i}function UO(t,e,n=null){for(let r=0,i=e.length;r<i;r++)t.insertBefore(e[r],n)}function Zf(t,e,n,r){if(n===void 0)return t.textContent=\\\"\\\";let i=r||document.createTextNode(\\\"\\\");if(e.length){let a=!1;for(let o=e.length-1;o>=0;o--){let s=e[o];if(i!==s){let l=s.parentNode===t;!a&&!o?l?t.replaceChild(i,s):t.insertBefore(i,n):l&&s.remove()}else a=!0}}else t.insertBefore(i,n);return[i]}function PI(t,e=!1){return e?document.createElementNS(VJ,t):document.createElement(t)}function jI(t){let{useShadow:e}=t,n=document.createTextNode(\\\"\\\"),r=()=>t.mount||document.body,i=EI(),a;return Zn(()=>{a||(a=AI(i,()=>xt(()=>t.children)));let o=r();if(o instanceof HTMLHeadElement){let[s,l]=Je(!1),c=()=>l(!0);xg(u=>xr(o,()=>s()?u():a(),null)),ri(c)}else{let s=PI(t.isSVG?\\\"g\\\":\\\"div\\\",t.isSVG),l=e&&s.attachShadow?s.attachShadow({mode:\\\"open\\\"}):s;Object.defineProperty(s,\\\"_$host\\\",{get(){return n.parentNode},configurable:!0}),xr(l,a),o.appendChild(s),t.ref&&t.ref(s),ri(()=>o.removeChild(s))}},void 0,{render:!0}),n}function HJ(t,e){let n=xt(t);return xt(()=>{let r=n();switch(typeof r){case\\\"function\\\":return qn(()=>r(e));case\\\"string\\\":let i=BJ.has(r),a=PI(r,i);return NI(a,e,i),a}})}function nh(t){let[,e]=t_(t,[\\\"component\\\"]);return HJ(()=>t.component,e)}function ws(t){let e=this||{},n=t.call?t(e.p):t;return ZJ(n.unshift?n.raw?YJ(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,FJ(e.target),e.g,e.o,e.k)}function QJ(t){return p(r_.Provider,{value:t.theme,get children(){return t.children}})}function Bn(){return Vr(r_)}function DI(t){let e=this||{};return(...n)=>{let r=i=>{let a=Vr(r_),o=fo(i,{theme:a}),s=fo(o,{get class(){let g=o.class,y=\\\"class\\\"in o&&/^go[0-9]+/.test(g),E=ws.apply({target:e.target,o:y,p:o,g:e.g},n);return[g,E].filter(Boolean).join(\\\" \\\")}}),[l,c]=t_(s,[\\\"as\\\",\\\"theme\\\"]),u=c,d=l.as||t,h;return typeof d==\\\"function\\\"?h=d(u):e.g==1?(h=document.createElement(d),NI(h,u)):h=nh(fo({component:d},u)),h};return r.class=i=>qn(()=>ws.apply({target:e.target,p:i,g:e.g},n)),r}}function XJ(){let t=DI.call({g:1},\\\"div\\\").apply(null,arguments);return function(n){return t(n),null}}function eee(t){t[0]===\\\"#\\\"&&(t=t.slice(1));let e=parseInt(t,16),n=e>>16&255,r=e>>8&255,i=e&255;return[n,r,i].join(\\\",\\\")}function bu(t,e){return t[0]===\\\"#\\\"&&(t=eee(t)),`rgba(${t}, ${e})`}function ho(t){return t.toString()+\\\"px\\\"}function Eb(...t){try{[...t]}catch{}}function Nb(...t){try{console.error(\\\"[TON_CONNECT_UI]\\\",...t)}catch{}}function tee(...t){try{console.warn(\\\"[TON_CONNECT_UI]\\\",...t)}catch{}}function _g(t,e=\\\"_self\\\"){VI({link:t}),Eb(\\\"openLink\\\",t,e),window.open(t,e,\\\"noopener noreferrer\\\")}function An(t){_g(t,\\\"_blank\\\")}function Il(t,e){let n=()=>{Nt(\\\"safari\\\")||ba(\\\"android\\\")&&Nt(\\\"firefox\\\")||ba(\\\"windows\\\")||e()},r=setTimeout(()=>n(),200);window.addEventListener(\\\"blur\\\",()=>clearTimeout(r),{once:!0}),_g(t,\\\"_self\\\")}function nee(){return window.matchMedia&&window.matchMedia(\\\"(prefers-color-scheme: light)\\\").matches?Wn.LIGHT:Wn.DARK}function ree(t){let e=n=>t(n.matches?Wn.DARK:Wn.LIGHT);return window.matchMedia(\\\"(prefers-color-scheme: dark)\\\").addEventListener(\\\"change\\\",e),()=>window.matchMedia(\\\"(prefers-color-scheme: dark)\\\").removeEventListener(\\\"change\\\",e)}function iee(){document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=ho(-document.documentElement.scrollTop),document.body.classList.add(Ub))}function aee(){document.body.classList.contains(Ub)&&(document.body.classList.remove(Ub),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top=\\\"auto\\\")}function oee(){document.body.hasAttribute(\\\"ontouchstart\\\")||document.body.setAttribute(\\\"ontouchstart\\\",\\\"\\\")}function see(){customElements.get(\\\"tc-root\\\")||customElements.define(ms,class extends HTMLElement{})}function LI(t){return wt(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),t()})}function lee(t){return wt(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),t()})}function qI(t){document.readyState!==\\\"complete\\\"?window.addEventListener(\\\"load\\\",()=>LI(()=>qI(t)),{once:!0}):t.forEach(e=>{let n=new window.Image;n.src=e})}function Vi(){if(typeof window<\\\"u\\\")return window}function i_(){if(cee())return localStorage;if(uee())throw new kn(\\\"`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector\\\");return I6.getInstance()}function cee(){try{return typeof localStorage<\\\"u\\\"}catch{return!1}}function uee(){return typeof process<\\\"u\\\"&&process.versions!=null&&process.versions.node!=null}function dee(){let t=!1;return(function(e){(/(android|bb\\\\d+|meego).+mobile|avantgo|bada\\\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\\\-(n|u)|c55\\\\/|capi|ccwa|cdm\\\\-|cell|chtm|cldc|cmd\\\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\\\-|_)|g1 u|g560|gene|gf\\\\-5|g\\\\-mo|go(\\\\.w|od)|gr(ad|un)|haie|hcit|hd\\\\-(m|p|t)|hei\\\\-|hi(pt|ta)|hp( i|ip)|hs\\\\-c|ht(c(\\\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\\\-(20|go|ma)|i230|iac( |\\\\-|\\\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\\\/)|klon|kpt |kwc\\\\-|kyo(c|k)|le(no|xi)|lg( g|\\\\/(k|l|u)|50|54|\\\\-[a-w])|libw|lynx|m1\\\\-w|m3ga|m50\\\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\\\-2|po(ck|rt|se)|prox|psio|pt\\\\-g|qa\\\\-a|qc(07|12|21|32|60|\\\\-[2-7]|i\\\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\\\-|oo|p\\\\-)|sdk\\\\/|se(c(\\\\-|0|1)|47|mc|nd|ri)|sgh\\\\-|shar|sie(\\\\-|m)|sk\\\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\\\-|v\\\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\\\-|tdg\\\\-|tel(i|m)|tim\\\\-|t\\\\-mo|to(pl|sh)|ts(70|m\\\\-|m3|m5)|tx\\\\-9|up(\\\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\\\-|your|zeto|zte\\\\-/i.test(e.slice(0,4)))&&(t=!0)})(navigator.userAgent||navigator.vendor||window.opera),t}function Mg(){var t,e,n;let r=new J6.default().getResult(),i=(t=r.os.name)==null?void 0:t.toLowerCase(),a=(e=r.device.model)==null?void 0:e.toLowerCase(),o;switch(!0){case a===\\\"ipad\\\":o=\\\"ipad\\\";break;case i===\\\"ios\\\":o=\\\"ios\\\";break;case i===\\\"android\\\":o=\\\"android\\\";break;case i===\\\"mac os\\\":o=\\\"macos\\\";break;case i===\\\"linux\\\":o=\\\"linux\\\";break;case i?.includes(\\\"windows\\\"):o=\\\"windows\\\";break}let s=(n=r.browser.name)==null?void 0:n.toLowerCase(),l;switch(!0){case s===\\\"chrome\\\":l=\\\"chrome\\\";break;case s===\\\"firefox\\\":l=\\\"firefox\\\";break;case s?.includes(\\\"safari\\\"):l=\\\"safari\\\";break;case s?.includes(\\\"opera\\\"):l=\\\"opera\\\";break}return{os:o,browser:l}}function ba(...t){return t.includes(Mg().os)}function Nt(...t){return t.includes(Mg().browser)}function xb(t,e){let n=new URL(t);return e+n.search}function DO(t){let n=r=>{Object.entries(r).forEach(([i,a])=>{if(typeof a==\\\"object\\\"&&a)return n(a);if(typeof a==\\\"string\\\"){if(a[0]===\\\"$\\\"){let o=a.slice(1).split(\\\".\\\"),s=t;o.forEach(l=>{if(l in s)s=s[l];else throw new Error(`Cannot parse translations: there is no property ${l} in translation`)}),r[i]=s}a.slice(0,2)===\\\"\\\\\\\\$\\\"&&(r[i]=a.slice(1))}})};return n(t),t}function WI(t){let e=t[Ia];if(!e&&(Object.defineProperty(t,Ia,{value:e=new Proxy(t,Iee)}),!Array.isArray(t))){let n=Object.keys(t),r=Object.getOwnPropertyDescriptors(t);for(let i=0,a=n.length;i<a;i++){let o=n[i];r[o].get&&Object.defineProperty(t,o,{enumerable:r[o].enumerable,get:r[o].get.bind(e)})}}return e}function zb(t){let e;return t!=null&&typeof t==\\\"object\\\"&&(t[Ia]||!(e=Object.getPrototypeOf(t))||e===Object.prototype||Array.isArray(t))}function rh(t,e=new Set){let n,r,i,a;if(n=t!=null&&t[j6])return n;if(!zb(t)||e.has(t))return t;if(Array.isArray(t)){Object.isFrozen(t)?t=t.slice(0):e.add(t);for(let o=0,s=t.length;o<s;o++)i=t[o],(r=rh(i,e))!==i&&(t[o]=r)}else{Object.isFrozen(t)?t=Object.assign({},t):e.add(t);let o=Object.keys(t),s=Object.getOwnPropertyDescriptors(t);for(let l=0,c=o.length;l<c;l++)a=o[l],!s[a].get&&(i=t[a],(r=rh(i,e))!==i&&(t[a]=r))}return t}function Db(t,e){let n=t[e];return n||Object.defineProperty(t,e,{value:n=Object.create(null)}),n}function Eg(t,e,n){if(t[e])return t[e];let[r,i]=Je(n,{equals:!1,internal:!0});return r.$=i,t[e]=r}function Ree(t,e){let n=Reflect.getOwnPropertyDescriptor(t,e);return!n||n.get||!n.configurable||e===Ia||e===Qf||(delete n.value,delete n.writable,n.get=()=>t[Ia][e]),n}function FI(t){B6()&&Eg(Db(t,Qf),HI)()}function Oee(t){return FI(t),Reflect.ownKeys(t)}function Lb(t,e,n,r=!1){if(!r&&t[e]===n)return;let i=t[e],a=t.length;n===void 0?(delete t[e],t[ys]&&t[ys][e]&&i!==void 0&&t[ys][e].$()):(t[e]=n,t[ys]&&t[ys][e]&&i===void 0&&t[ys][e].$());let o=Db(t,Qf),s;if((s=Eg(o,e,i))&&s.$(()=>n),Array.isArray(t)&&t.length!==a){for(let l=t.length;l<a;l++)(s=o[l])&&s.$();(s=Eg(o,\\\"length\\\",a))&&s.$(t.length)}(s=o[HI])&&s.$()}function $I(t,e){let n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Lb(t,i,e[i])}}function Uee(t,e){if(typeof e==\\\"function\\\"&&(e=e(t)),e=rh(e),Array.isArray(e)){if(t===e)return;let n=0,r=e.length;for(;n<r;n++){let i=e[n];t[n]!==i&&Lb(t,n,i)}Lb(t,\\\"length\\\",r)}else $I(t,e)}function yg(t,e,n=[]){let r,i=t;if(e.length>1){r=e.shift();let o=typeof r,s=Array.isArray(t);if(Array.isArray(r)){for(let l=0;l<r.length;l++)yg(t,[r[l]].concat(e),n);return}else if(s&&o===\\\"function\\\"){for(let l=0;l<t.length;l++)r(t[l],l)&&yg(t,[l].concat(e),n);return}else if(s&&o===\\\"object\\\"){let{from:l=0,to:c=t.length-1,by:u=1}=r;for(let d=l;d<=c;d+=u)yg(t,[d].concat(e),n);return}else if(e.length>1){yg(t[r],e,[r].concat(n));return}i=t[r],n=[r].concat(n)}let a=e[0];typeof a==\\\"function\\\"&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=rh(a),r===void 0||zb(i)&&zb(a)&&!Array.isArray(a)?$I(i,a):Lb(t,r,a))}function o_(...[t,e]){let n=rh(t||{}),r=Array.isArray(n),i=WI(n);function a(...o){A6(()=>{r&&o.length===1?Uee(n,o[0]):yg(n,o)})}return[i,a]}function LO(t){return Object.prototype.toString.call(t)===\\\"[object Object]\\\"}function Pee(t){var e,n;return LO(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(LO(n)===!1||n.hasOwnProperty(\\\"isPrototypeOf\\\")===!1)))}function Ul(t,e){return t?(0,wI.default)(e,t,{arrayMerge:(r,i,a)=>i,isMergeableObject:Pee}):e}function u6(t,e){e&&(uo[Wn.DARK]=Ul(e[Wn.DARK],uo[Wn.DARK]),uo[Wn.LIGHT]=Ul(e[Wn.LIGHT],uo[Wn.LIGHT])),s_({theme:t,colors:Ul(uo[t],ZI[t])})}function zee(t){s_({borderRadius:t})}function Dee(t){uo[Wn.DARK]=Ul(t[Wn.DARK],uo[Wn.DARK]),uo[Wn.LIGHT]=Ul(t[Wn.LIGHT],uo[Wn.LIGHT]),s_(e=>({colors:Ul(uo[e.theme],ZI[e.theme])}))}function qee(t,e){var n;try{let r=Vi();return(n=r?.sessionStorage)==null?void 0:n.setItem(t,e)}catch{}}function Vee(t){var e,n;try{let r=Vi();return JSON.parse((n=(e=r?.sessionStorage)==null?void 0:e.getItem)==null?void 0:n.call(e,t))}catch{}return null}function YI(t){try{let e=Vee(t);if(e)for(let n in e)typeof ti[n]>\\\"u\\\"&&(ti[n]=e[n])}catch{}}function Hee(t){var e,n;try{let r=Vi(),i=(n=(e=r?.sessionStorage)==null?void 0:e.getItem)==null?void 0:n.call(e,t);if(!i)return;try{let o=JSON.parse(i);if(typeof o==\\\"string\\\")i=o;else return}catch{}let a=c_(i);for(let o in a){let s=a[o];s!=null&&typeof ti[o]>\\\"u\\\"&&(ti[o]=s)}}catch{}}function Wee(){return QI}function Fee(){return mu}function $ee(){return ni()?Ag:null}function uu(...t){return t.includes(mu)}function ni(){var t;return mu!==\\\"unknown\\\"||!!((t=Vi())!=null&&t.TelegramWebviewProxy)}function l_(){var t;let e=!!((t=Vi())!=null&&t.TelegramWebview);return(ni()||e)&&mu===\\\"unknown\\\"}function qb(){JI(\\\"web_app_expand\\\",{})}function z6(t,e){let n=new URL(t);if(n.protocol!==\\\"http:\\\"&&n.protocol!==\\\"https:\\\"){if(e)return e();throw new kn(`Url protocol is not supported: ${n}`)}if(n.hostname!==\\\"t.me\\\"){if(e)return e();throw new kn(`Url host is not supported: ${n}`)}let r=n.pathname+n.search;XI()||Yee(\\\"6.1\\\")?(VI({link:r,type:\\\"tg_link\\\"}),JI(\\\"web_app_open_tg_link\\\",{path_full:r})):An(\\\"https://t.me\\\"+r)}function XI(){try{let t=Vi();return t?t.parent!=null&&t!==t.parent:!1}catch{return!1}}function JI(t,e){try{let n=Vi();if(!n)throw new kn(\\\"Can't post event to parent window: window is not defined\\\");if(n.TelegramWebviewProxy!==void 0)Eb(\\\"postEvent\\\",t,e),n.TelegramWebviewProxy.postEvent(t,JSON.stringify(e));else if(n.external&&\\\"notify\\\"in n.external)Eb(\\\"postEvent\\\",t,e),n.external.notify(JSON.stringify({eventType:t,eventData:e}));else if(XI()){let i=JSON.stringify({eventType:t,eventData:e});Eb(\\\"postEvent\\\",t,e),n.parent.postMessage(i,\\\"*\\\")}else throw new kn(\\\"Can't post event to TMA\\\")}catch(n){Nb(`Can't post event to parent window: ${n}`)}}function Kee(t){t=t.replace(/^#/,\\\"\\\");let e={};if(!t.length)return e;if(t.indexOf(\\\"=\\\")<0&&t.indexOf(\\\"?\\\")<0)return e._path=Vb(t),e;let n=t.indexOf(\\\"?\\\");if(n>=0){let i=t.substr(0,n);e._path=Vb(i),t=t.substr(n+1)}let r=c_(t);for(let i in r)e[i]=r[i];return e}function Vb(t){try{return t=t.replace(/\\\\+/g,\\\"%20\\\"),decodeURIComponent(t)}catch{return t}}function c_(t){let e={};if(!t.length)return e;let n=t.split(\\\"&\\\"),r,i,a,o;for(r=0;r<n.length;r++)i=n[r].split(\\\"=\\\"),a=Vb(i[0]),o=i[1]==null?null:Vb(i[1]),e[a]=o;return e}function Zee(t,e){typeof t!=\\\"string\\\"&&(t=\\\"\\\");let n=t.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").split(\\\".\\\"),r=e.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").split(\\\".\\\"),i,a,o,s;for(i=Math.max(n.length,r.length),a=0;a<i;a++)if(o=parseInt(n[a])||0,s=parseInt(r[a])||0,o!==s)return o>s?1:-1;return 0}function Yee(t){return Zee(Ag,t)>=0}function Gf(t){let e=Vi();if(!e)return t===\\\"desktop\\\";if(uu(\\\"weba\\\"))return!0;let n=e.innerWidth;switch(t){case\\\"desktop\\\":return n>du.tablet;case\\\"tablet\\\":return n>du.mobile;default:case\\\"mobile\\\":return n<=du.mobile||ba(\\\"ios\\\",\\\"android\\\",\\\"ipad\\\")}}function Hi(t){switch(t){case\\\"mobile\\\":return`@media (max-width: ${du.mobile}px)`;case\\\"tablet\\\":return`@media (max-width: ${du.tablet}px) (min-width: ${du.mobile}px)`;default:case\\\"desktop\\\":return`@media (min-width: ${du.tablet}px)`}}function Ig(t){let e=qn(()=>Object.keys(t).filter(r=>r.startsWith(\\\"data-\\\"))),[n]=t_(t,e);return n}function Jee(t,e){let n=qn(t),r=n?[n]:[],{onEnter:i=VO,onExit:a=VO}=e,[o,s]=Je(e.appear?[]:r),[l]=kI(),c,u=!1;function d(y,E){if(!y)return E&&E();u=!0,a(y,()=>{A6(()=>{u=!1,s(N=>N.filter(_=>_!==y)),E&&E()})})}function h(y){let E=c;if(!E)return y&&y();c=void 0,s(N=>[E,...N]),i(E,y??Xee)}let g=e.mode===\\\"out-in\\\"?(y=>u||d(y,h)):e.mode===\\\"in-out\\\"?(y=>h(()=>d(y))):(y=>{d(y),h()});return SI(y=>{let E=t();return qn(l)?(l(),y):(E!==y&&(c=E,A6(()=>qn(()=>g(y)))),E)},e.appear?void 0:n),o}function ete(t,e){let n=qn(t),{onChange:r}=e,i=new Set(e.appear?void 0:n),a=new WeakSet,[o,s]=Je([],{equals:!1}),[l]=kI(),c=d=>{s(h=>(h.push.apply(h,d),h));for(let h of d)a.delete(h)},u=(d,h,g)=>d.splice(g,0,h);return xt(d=>{let h=o(),g=t();if(g[Bb],qn(l))return l(),d;if(h.length){let y=d.filter(E=>!h.includes(E));return h.length=0,r({list:y,added:[],removed:[],unchanged:y,finishRemoved:c}),y}return qn(()=>{let y=new Set(g),E=g.slice(),N=[],_=[],v=[];for(let R of g)(i.has(R)?v:N).push(R);let T=!N.length;for(let R=0;R<d.length;R++){let U=d[R];y.has(U)||(a.has(U)||(_.push(U),a.add(U)),u(E,U,R)),T&&U!==E[R]&&(T=!1)}return!_.length&&T?d:(r({list:E,added:N,removed:_,unchanged:v,finishRemoved:c}),i=y,E)})},e.appear?[]:n.slice())}function D6(t,e){if(e(t))return t;if(typeof t==\\\"function\\\"&&!t.length)return D6(t(),e);if(Array.isArray(t)){let n=[];for(let r of t){let i=D6(r,e);i&&(Array.isArray(i)?n.push.apply(n,i):n.push(i))}return n.length?n:null}return null}function tte(t,e=Hb,n=Hb){let r=xt(t),i=xt(()=>D6(r(),e));return i.toArray=()=>{let a=i();return Array.isArray(a)?a:a?[a]:[]},i}function L6(t,e){if(e(t))return t;if(typeof t==\\\"function\\\"&&!t.length)return L6(t(),e);if(Array.isArray(t))for(let n of t){let r=L6(n,e);if(r)return r}return null}function nte(t,e=Hb,n=Hb){let r=xt(t);return xt(()=>L6(r(),e))}function eU(t){return xt(()=>{let e=t.name||\\\"s\\\";return{enterActive:(t.enterActiveClass||e+\\\"-enter-active\\\").split(\\\" \\\"),enter:(t.enterClass||e+\\\"-enter\\\").split(\\\" \\\"),enterTo:(t.enterToClass||e+\\\"-enter-to\\\").split(\\\" \\\"),exitActive:(t.exitActiveClass||e+\\\"-exit-active\\\").split(\\\" \\\"),exit:(t.exitClass||e+\\\"-exit\\\").split(\\\" \\\"),exitTo:(t.exitToClass||e+\\\"-exit-to\\\").split(\\\" \\\"),move:(t.moveClass||e+\\\"-move\\\").split(\\\" \\\")}})}function tU(t){requestAnimationFrame(()=>requestAnimationFrame(t))}function nU(t,e,n,r){let{onBeforeEnter:i,onEnter:a,onAfterEnter:o}=e;i?.(n),n.classList.add(...t.enter),n.classList.add(...t.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();a?.(n,()=>s())}),tU(()=>{n.classList.remove(...t.enter),n.classList.add(...t.enterTo),(!a||a.length<2)&&(n.addEventListener(\\\"transitionend\\\",s),n.addEventListener(\\\"animationend\\\",s))});function s(l){(!l||l.target===n)&&(r?.(),n.removeEventListener(\\\"transitionend\\\",s),n.removeEventListener(\\\"animationend\\\",s),n.classList.remove(...t.enterActive),n.classList.remove(...t.enterTo),o?.(n))}}function rU(t,e,n,r){let{onBeforeExit:i,onExit:a,onAfterExit:o}=e;if(!n.parentNode)return r?.();i?.(n),n.classList.add(...t.exit),n.classList.add(...t.exitActive),a?.(n,()=>s()),tU(()=>{n.classList.remove(...t.exit),n.classList.add(...t.exitTo),(!a||a.length<2)&&(n.addEventListener(\\\"transitionend\\\",s),n.addEventListener(\\\"animationend\\\",s))});function s(l){(!l||l.target===n)&&(r?.(),n.removeEventListener(\\\"transitionend\\\",s),n.removeEventListener(\\\"animationend\\\",s),n.classList.remove(...t.exitActive),n.classList.remove(...t.exitTo),o?.(n))}}function ate(t,e){let n=r=>{var i;return!t.contains(r.target)&&((i=e())==null?void 0:i())};document.body.addEventListener(\\\"click\\\",n),ri(()=>document.body.removeEventListener(\\\"click\\\",n))}function ote(t,e){let n=r=>{var i,a;r.key===\\\"Escape\\\"&&((i=document.activeElement)==null||i.blur(),(a=e())==null||a())};document.body.addEventListener(\\\"keydown\\\",n),ri(()=>document.body.removeEventListener(\\\"keydown\\\",n))}function ste(t,e){let{isEnabled:n,onClose:r}=e();if(!n||!(Mg().os===\\\"android\\\"))return;window.history.pushState(lte,\\\"\\\");let a=o=>{o.preventDefault(),r()};window.addEventListener(\\\"popstate\\\",a,{once:!0}),ri(()=>{window.removeEventListener(\\\"popstate\\\",a),LI(()=>{var o;((o=window.history.state)==null?void 0:o[iU])===!0&&window.history.back()})})}function va(t,e,n){return\\\"animate\\\"in t?t.animate(e,n):wte.create()}function jte(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\\\"default\\\")?t.default:t}function zte(){return KO||(KO=1,(function(t,e){var n=(function(){var r=function(U,X){var k=236,q=17,z=U,$=a[X],L=null,P=0,pe=null,le=[],se={},Le=function(oe,ce){P=z*4+17,L=(function(ie){for(var ue=new Array(ie),ye=0;ye<ie;ye+=1){ue[ye]=new Array(ie);for(var Ue=0;Ue<ie;Ue+=1)ue[ye][Ue]=null}return ue})(P),O(0,0),O(P-7,0),O(0,P-7),St(),rt(),Jt(oe,ce),z>=7&&Xt(oe),pe==null&&(pe=Fn(z,$,le)),pn(pe,ce)},O=function(oe,ce){for(var ie=-1;ie<=7;ie+=1)if(!(oe+ie<=-1||P<=oe+ie))for(var ue=-1;ue<=7;ue+=1)ce+ue<=-1||P<=ce+ue||(0<=ie&&ie<=6&&(ue==0||ue==6)||0<=ue&&ue<=6&&(ie==0||ie==6)||2<=ie&&ie<=4&&2<=ue&&ue<=4?L[oe+ie][ce+ue]=!0:L[oe+ie][ce+ue]=!1)},Ze=function(){for(var oe=0,ce=0,ie=0;ie<8;ie+=1){Le(!0,ie);var ue=s.getLostPoint(se);(ie==0||oe>ue)&&(oe=ue,ce=ie)}return ce},rt=function(){for(var oe=8;oe<P-8;oe+=1)L[oe][6]==null&&(L[oe][6]=oe%2==0);for(var ce=8;ce<P-8;ce+=1)L[6][ce]==null&&(L[6][ce]=ce%2==0)},St=function(){for(var oe=s.getPatternPosition(z),ce=0;ce<oe.length;ce+=1)for(var ie=0;ie<oe.length;ie+=1){var ue=oe[ce],ye=oe[ie];if(L[ue][ye]==null)for(var Ue=-2;Ue<=2;Ue+=1)for(var it=-2;it<=2;it+=1)Ue==-2||Ue==2||it==-2||it==2||Ue==0&&it==0?L[ue+Ue][ye+it]=!0:L[ue+Ue][ye+it]=!1}},Xt=function(oe){for(var ce=s.getBCHTypeNumber(z),ie=0;ie<18;ie+=1){var ue=!oe&&(ce>>ie&1)==1;L[Math.floor(ie/3)][ie%3+P-8-3]=ue}for(var ie=0;ie<18;ie+=1){var ue=!oe&&(ce>>ie&1)==1;L[ie%3+P-8-3][Math.floor(ie/3)]=ue}},Jt=function(oe,ce){for(var ie=$<<3|ce,ue=s.getBCHTypeInfo(ie),ye=0;ye<15;ye+=1){var Ue=!oe&&(ue>>ye&1)==1;ye<6?L[ye][8]=Ue:ye<8?L[ye+1][8]=Ue:L[P-15+ye][8]=Ue}for(var ye=0;ye<15;ye+=1){var Ue=!oe&&(ue>>ye&1)==1;ye<8?L[8][P-ye-1]=Ue:ye<9?L[8][15-ye-1+1]=Ue:L[8][15-ye-1]=Ue}L[P-8][8]=!oe},pn=function(oe,ce){for(var ie=-1,ue=P-1,ye=7,Ue=0,it=s.getMaskFunction(ce),tt=P-1;tt>0;tt-=2)for(tt==6&&(tt-=1);;){for(var Ht=0;Ht<2;Ht+=1)if(L[ue][tt-Ht]==null){var Sn=!1;Ue<oe.length&&(Sn=(oe[Ue]>>>ye&1)==1);var $e=it(ue,tt-Ht);$e&&(Sn=!Sn),L[ue][tt-Ht]=Sn,ye-=1,ye==-1&&(Ue+=1,ye=7)}if(ue+=ie,ue<0||P<=ue){ue-=ie,ie=-ie;break}}},He=function(oe,ce){for(var ie=0,ue=0,ye=0,Ue=new Array(ce.length),it=new Array(ce.length),tt=0;tt<ce.length;tt+=1){var Ht=ce[tt].dataCount,Sn=ce[tt].totalCount-Ht;ue=Math.max(ue,Ht),ye=Math.max(ye,Sn),Ue[tt]=new Array(Ht);for(var $e=0;$e<Ue[tt].length;$e+=1)Ue[tt][$e]=255&oe.getBuffer()[$e+ie];ie+=Ht;var Yn=s.getErrorCorrectPolynomial(Sn),$n=c(Ue[tt],Yn.getLength()-1),Hr=$n.mod(Yn);it[tt]=new Array(Yn.getLength()-1);for(var $e=0;$e<it[tt].length;$e+=1){var ii=$e+Hr.getLength()-it[tt].length;it[tt][$e]=ii>=0?Hr.getAt(ii):0}}for(var D=0,$e=0;$e<ce.length;$e+=1)D+=ce[$e].totalCount;for(var S=new Array(D),I=0,$e=0;$e<ue;$e+=1)for(var tt=0;tt<ce.length;tt+=1)$e<Ue[tt].length&&(S[I]=Ue[tt][$e],I+=1);for(var $e=0;$e<ye;$e+=1)for(var tt=0;tt<ce.length;tt+=1)$e<it[tt].length&&(S[I]=it[tt][$e],I+=1);return S},Fn=function(oe,ce,ie){for(var ue=u.getRSBlocks(oe,ce),ye=d(),Ue=0;Ue<ie.length;Ue+=1){var it=ie[Ue];ye.put(it.getMode(),4),ye.put(it.getLength(),s.getLengthInBits(it.getMode(),oe)),it.write(ye)}for(var tt=0,Ue=0;Ue<ue.length;Ue+=1)tt+=ue[Ue].dataCount;if(ye.getLengthInBits()>tt*8)throw\\\"code length overflow. (\\\"+ye.getLengthInBits()+\\\">\\\"+tt*8+\\\")\\\";for(ye.getLengthInBits()+4<=tt*8&&ye.put(0,4);ye.getLengthInBits()%8!=0;)ye.putBit(!1);for(;!(ye.getLengthInBits()>=tt*8||(ye.put(k,8),ye.getLengthInBits()>=tt*8));)ye.put(q,8);return He(ye,ue)};se.addData=function(oe,ce){ce=ce||\\\"Byte\\\";var ie=null;switch(ce){case\\\"Numeric\\\":ie=h(oe);break;case\\\"Alphanumeric\\\":ie=g(oe);break;case\\\"Byte\\\":ie=y(oe);break;case\\\"Kanji\\\":ie=E(oe);break;default:throw\\\"mode:\\\"+ce}le.push(ie),pe=null},se.isDark=function(oe,ce){if(oe<0||P<=oe||ce<0||P<=ce)throw oe+\\\",\\\"+ce;return L[oe][ce]},se.getModuleCount=function(){return P},se.make=function(){if(z<1){for(var oe=1;oe<40;oe++){for(var ce=u.getRSBlocks(oe,$),ie=d(),ue=0;ue<le.length;ue++){var ye=le[ue];ie.put(ye.getMode(),4),ie.put(ye.getLength(),s.getLengthInBits(ye.getMode(),oe)),ye.write(ie)}for(var Ue=0,ue=0;ue<ce.length;ue++)Ue+=ce[ue].dataCount;if(ie.getLengthInBits()<=Ue*8)break}z=oe}Le(!1,Ze())},se.createTableTag=function(oe,ce){oe=oe||2,ce=typeof ce>\\\"u\\\"?oe*4:ce;var ie=\\\"\\\";ie+='<table style=\\\"',ie+=\\\" border-width: 0px; border-style: none;\\\",ie+=\\\" border-collapse: collapse;\\\",ie+=\\\" padding: 0px; margin: \\\"+ce+\\\"px;\\\",ie+='\\\">',ie+=\\\"<tbody>\\\";for(var ue=0;ue<se.getModuleCount();ue+=1){ie+=\\\"<tr>\\\";for(var ye=0;ye<se.getModuleCount();ye+=1)ie+='<td style=\\\"',ie+=\\\" border-width: 0px; border-style: none;\\\",ie+=\\\" border-collapse: collapse;\\\",ie+=\\\" padding: 0px; margin: 0px;\\\",ie+=\\\" width: \\\"+oe+\\\"px;\\\",ie+=\\\" height: \\\"+oe+\\\"px;\\\",ie+=\\\" background-color: \\\",ie+=se.isDark(ue,ye)?\\\"#000000\\\":\\\"#ffffff\\\",ie+=\\\";\\\",ie+='\\\"/>';ie+=\\\"</tr>\\\"}return ie+=\\\"</tbody>\\\",ie+=\\\"</table>\\\",ie},se.createSvgTag=function(oe,ce,ie,ue){var ye={};typeof arguments[0]==\\\"object\\\"&&(ye=arguments[0],oe=ye.cellSize,ce=ye.margin,ie=ye.alt,ue=ye.title),oe=oe||2,ce=typeof ce>\\\"u\\\"?oe*4:ce,ie=typeof ie==\\\"string\\\"?{text:ie}:ie||{},ie.text=ie.text||null,ie.id=ie.text?ie.id||\\\"qrcode-description\\\":null,ue=typeof ue==\\\"string\\\"?{text:ue}:ue||{},ue.text=ue.text||null,ue.id=ue.text?ue.id||\\\"qrcode-title\\\":null;var Ue=se.getModuleCount()*oe+ce*2,it,tt,Ht,Sn,$e=\\\"\\\",Yn;for(Yn=\\\"l\\\"+oe+\\\",0 0,\\\"+oe+\\\" -\\\"+oe+\\\",0 0,-\\\"+oe+\\\"z \\\",$e+='<svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"',$e+=ye.scalable?\\\"\\\":' width=\\\"'+Ue+'px\\\" height=\\\"'+Ue+'px\\\"',$e+=' viewBox=\\\"0 0 '+Ue+\\\" \\\"+Ue+'\\\" ',$e+=' preserveAspectRatio=\\\"xMinYMin meet\\\"',$e+=ue.text||ie.text?' role=\\\"img\\\" aria-labelledby=\\\"'+Cr([ue.id,ie.id].join(\\\" \\\").trim())+'\\\"':\\\"\\\",$e+=\\\">\\\",$e+=ue.text?'<title id=\\\"'+Cr(ue.id)+'\\\">'+Cr(ue.text)+\\\"</title>\\\":\\\"\\\",$e+=ie.text?'<description id=\\\"'+Cr(ie.id)+'\\\">'+Cr(ie.text)+\\\"</description>\\\":\\\"\\\",$e+='<rect width=\\\"100%\\\" height=\\\"100%\\\" fill=\\\"white\\\" cx=\\\"0\\\" cy=\\\"0\\\"/>',$e+='<path d=\\\"',Ht=0;Ht<se.getModuleCount();Ht+=1)for(Sn=Ht*oe+ce,it=0;it<se.getModuleCount();it+=1)se.isDark(Ht,it)&&(tt=it*oe+ce,$e+=\\\"M\\\"+tt+\\\",\\\"+Sn+Yn);return $e+='\\\" stroke=\\\"transparent\\\" fill=\\\"black\\\"/>',$e+=\\\"</svg>\\\",$e},se.createDataURL=function(oe,ce){oe=oe||2,ce=typeof ce>\\\"u\\\"?oe*4:ce;var ie=se.getModuleCount()*oe+ce*2,ue=ce,ye=ie-ce;return R(ie,ie,function(Ue,it){if(ue<=Ue&&Ue<ye&&ue<=it&&it<ye){var tt=Math.floor((Ue-ue)/oe),Ht=Math.floor((it-ue)/oe);return se.isDark(Ht,tt)?0:1}else return 1})},se.createImgTag=function(oe,ce,ie){oe=oe||2,ce=typeof ce>\\\"u\\\"?oe*4:ce;var ue=se.getModuleCount()*oe+ce*2,ye=\\\"\\\";return ye+=\\\"<img\\\",ye+=' src=\\\"',ye+=se.createDataURL(oe,ce),ye+='\\\"',ye+=' width=\\\"',ye+=ue,ye+='\\\"',ye+=' height=\\\"',ye+=ue,ye+='\\\"',ie&&(ye+=' alt=\\\"',ye+=Cr(ie),ye+='\\\"'),ye+=\\\"/>\\\",ye};var Cr=function(oe){for(var ce=\\\"\\\",ie=0;ie<oe.length;ie+=1){var ue=oe.charAt(ie);switch(ue){case\\\"<\\\":ce+=\\\"&lt;\\\";break;case\\\">\\\":ce+=\\\"&gt;\\\";break;case\\\"&\\\":ce+=\\\"&amp;\\\";break;case'\\\"':ce+=\\\"&quot;\\\";break;default:ce+=ue;break}}return ce},Ei=function(oe){var ce=1;oe=typeof oe>\\\"u\\\"?ce*2:oe;var ie=se.getModuleCount()*ce+oe*2,ue=oe,ye=ie-oe,Ue,it,tt,Ht,Sn,$e={\\\"\\\\u2588\\\\u2588\\\":\\\"\\\\u2588\\\",\\\"\\\\u2588 \\\":\\\"\\\\u2580\\\",\\\" \\\\u2588\\\":\\\"\\\\u2584\\\",\\\"  \\\":\\\" \\\"},Yn={\\\"\\\\u2588\\\\u2588\\\":\\\"\\\\u2580\\\",\\\"\\\\u2588 \\\":\\\"\\\\u2580\\\",\\\" \\\\u2588\\\":\\\" \\\",\\\"  \\\":\\\" \\\"},$n=\\\"\\\";for(Ue=0;Ue<ie;Ue+=2){for(tt=Math.floor((Ue-ue)/ce),Ht=Math.floor((Ue+1-ue)/ce),it=0;it<ie;it+=1)Sn=\\\"\\\\u2588\\\",ue<=it&&it<ye&&ue<=Ue&&Ue<ye&&se.isDark(tt,Math.floor((it-ue)/ce))&&(Sn=\\\" \\\"),ue<=it&&it<ye&&ue<=Ue+1&&Ue+1<ye&&se.isDark(Ht,Math.floor((it-ue)/ce))?Sn+=\\\" \\\":Sn+=\\\"\\\\u2588\\\",$n+=oe<1&&Ue+1>=ye?Yn[Sn]:$e[Sn];$n+=`\\n`}return ie%2&&oe>0?$n.substring(0,$n.length-ie-1)+Array(ie+1).join(\\\"\\\\u2580\\\"):$n.substring(0,$n.length-1)};return se.createASCII=function(oe,ce){if(oe=oe||1,oe<2)return Ei(ce);oe-=1,ce=typeof ce>\\\"u\\\"?oe*2:ce;var ie=se.getModuleCount()*oe+ce*2,ue=ce,ye=ie-ce,Ue,it,tt,Ht,Sn=Array(oe+1).join(\\\"\\\\u2588\\\\u2588\\\"),$e=Array(oe+1).join(\\\"  \\\"),Yn=\\\"\\\",$n=\\\"\\\";for(Ue=0;Ue<ie;Ue+=1){for(tt=Math.floor((Ue-ue)/oe),$n=\\\"\\\",it=0;it<ie;it+=1)Ht=1,ue<=it&&it<ye&&ue<=Ue&&Ue<ye&&se.isDark(tt,Math.floor((it-ue)/oe))&&(Ht=0),$n+=Ht?Sn:$e;for(tt=0;tt<oe;tt+=1)Yn+=$n+`\\n`}return Yn.substring(0,Yn.length-1)},se.renderTo2dContext=function(oe,ce){ce=ce||2;for(var ie=se.getModuleCount(),ue=0;ue<ie;ue++)for(var ye=0;ye<ie;ye++)oe.fillStyle=se.isDark(ue,ye)?\\\"black\\\":\\\"white\\\",oe.fillRect(ue*ce,ye*ce,ce,ce)},se};r.stringToBytesFuncs={default:function(U){for(var X=[],k=0;k<U.length;k+=1){var q=U.charCodeAt(k);X.push(q&255)}return X}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(U,X){var k=(function(){for(var z=v(U),$=function(){var rt=z.read();if(rt==-1)throw\\\"eof\\\";return rt},L=0,P={};;){var pe=z.read();if(pe==-1)break;var le=$(),se=$(),Le=$(),O=String.fromCharCode(pe<<8|le),Ze=se<<8|Le;P[O]=Ze,L+=1}if(L!=X)throw L+\\\" != \\\"+X;return P})(),q=63;return function(z){for(var $=[],L=0;L<z.length;L+=1){var P=z.charCodeAt(L);if(P<128)$.push(P);else{var pe=k[z.charAt(L)];typeof pe==\\\"number\\\"?(pe&255)==pe?$.push(pe):($.push(pe>>>8),$.push(pe&255)):$.push(q)}}return $}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=(function(){var U=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],X=1335,k=7973,q=21522,z={},$=function(L){for(var P=0;L!=0;)P+=1,L>>>=1;return P};return z.getBCHTypeInfo=function(L){for(var P=L<<10;$(P)-$(X)>=0;)P^=X<<$(P)-$(X);return(L<<10|P)^q},z.getBCHTypeNumber=function(L){for(var P=L<<12;$(P)-$(k)>=0;)P^=k<<$(P)-$(k);return L<<12|P},z.getPatternPosition=function(L){return U[L-1]},z.getMaskFunction=function(L){switch(L){case o.PATTERN000:return function(P,pe){return(P+pe)%2==0};case o.PATTERN001:return function(P,pe){return P%2==0};case o.PATTERN010:return function(P,pe){return pe%3==0};case o.PATTERN011:return function(P,pe){return(P+pe)%3==0};case o.PATTERN100:return function(P,pe){return(Math.floor(P/2)+Math.floor(pe/3))%2==0};case o.PATTERN101:return function(P,pe){return P*pe%2+P*pe%3==0};case o.PATTERN110:return function(P,pe){return(P*pe%2+P*pe%3)%2==0};case o.PATTERN111:return function(P,pe){return(P*pe%3+(P+pe)%2)%2==0};default:throw\\\"bad maskPattern:\\\"+L}},z.getErrorCorrectPolynomial=function(L){for(var P=c([1],0),pe=0;pe<L;pe+=1)P=P.multiply(c([1,l.gexp(pe)],0));return P},z.getLengthInBits=function(L,P){if(1<=P&&P<10)switch(L){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw\\\"mode:\\\"+L}else if(P<27)switch(L){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw\\\"mode:\\\"+L}else if(P<41)switch(L){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw\\\"mode:\\\"+L}else throw\\\"type:\\\"+P},z.getLostPoint=function(L){for(var P=L.getModuleCount(),pe=0,le=0;le<P;le+=1)for(var se=0;se<P;se+=1){for(var Le=0,O=L.isDark(le,se),Ze=-1;Ze<=1;Ze+=1)if(!(le+Ze<0||P<=le+Ze))for(var rt=-1;rt<=1;rt+=1)se+rt<0||P<=se+rt||Ze==0&&rt==0||O==L.isDark(le+Ze,se+rt)&&(Le+=1);Le>5&&(pe+=3+Le-5)}for(var le=0;le<P-1;le+=1)for(var se=0;se<P-1;se+=1){var St=0;L.isDark(le,se)&&(St+=1),L.isDark(le+1,se)&&(St+=1),L.isDark(le,se+1)&&(St+=1),L.isDark(le+1,se+1)&&(St+=1),(St==0||St==4)&&(pe+=3)}for(var le=0;le<P;le+=1)for(var se=0;se<P-6;se+=1)L.isDark(le,se)&&!L.isDark(le,se+1)&&L.isDark(le,se+2)&&L.isDark(le,se+3)&&L.isDark(le,se+4)&&!L.isDark(le,se+5)&&L.isDark(le,se+6)&&(pe+=40);for(var se=0;se<P;se+=1)for(var le=0;le<P-6;le+=1)L.isDark(le,se)&&!L.isDark(le+1,se)&&L.isDark(le+2,se)&&L.isDark(le+3,se)&&L.isDark(le+4,se)&&!L.isDark(le+5,se)&&L.isDark(le+6,se)&&(pe+=40);for(var Xt=0,se=0;se<P;se+=1)for(var le=0;le<P;le+=1)L.isDark(le,se)&&(Xt+=1);var Jt=Math.abs(100*Xt/P/P-50)/5;return pe+=Jt*10,pe},z})(),l=(function(){for(var U=new Array(256),X=new Array(256),k=0;k<8;k+=1)U[k]=1<<k;for(var k=8;k<256;k+=1)U[k]=U[k-4]^U[k-5]^U[k-6]^U[k-8];for(var k=0;k<255;k+=1)X[U[k]]=k;var q={};return q.glog=function(z){if(z<1)throw\\\"glog(\\\"+z+\\\")\\\";return X[z]},q.gexp=function(z){for(;z<0;)z+=255;for(;z>=256;)z-=255;return U[z]},q})();function c(U,X){if(typeof U.length>\\\"u\\\")throw U.length+\\\"/\\\"+X;var k=(function(){for(var z=0;z<U.length&&U[z]==0;)z+=1;for(var $=new Array(U.length-z+X),L=0;L<U.length-z;L+=1)$[L]=U[L+z];return $})(),q={};return q.getAt=function(z){return k[z]},q.getLength=function(){return k.length},q.multiply=function(z){for(var $=new Array(q.getLength()+z.getLength()-1),L=0;L<q.getLength();L+=1)for(var P=0;P<z.getLength();P+=1)$[L+P]^=l.gexp(l.glog(q.getAt(L))+l.glog(z.getAt(P)));return c($,0)},q.mod=function(z){if(q.getLength()-z.getLength()<0)return q;for(var $=l.glog(q.getAt(0))-l.glog(z.getAt(0)),L=new Array(q.getLength()),P=0;P<q.getLength();P+=1)L[P]=q.getAt(P);for(var P=0;P<z.getLength();P+=1)L[P]^=l.gexp(l.glog(z.getAt(P))+$);return c(L,0).mod(z)},q}var u=(function(){var U=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],X=function(z,$){var L={};return L.totalCount=z,L.dataCount=$,L},k={},q=function(z,$){switch($){case a.L:return U[(z-1)*4+0];case a.M:return U[(z-1)*4+1];case a.Q:return U[(z-1)*4+2];case a.H:return U[(z-1)*4+3];default:return}};return k.getRSBlocks=function(z,$){var L=q(z,$);if(typeof L>\\\"u\\\")throw\\\"bad rs block @ typeNumber:\\\"+z+\\\"/errorCorrectionLevel:\\\"+$;for(var P=L.length/3,pe=[],le=0;le<P;le+=1)for(var se=L[le*3+0],Le=L[le*3+1],O=L[le*3+2],Ze=0;Ze<se;Ze+=1)pe.push(X(Le,O));return pe},k})(),d=function(){var U=[],X=0,k={};return k.getBuffer=function(){return U},k.getAt=function(q){var z=Math.floor(q/8);return(U[z]>>>7-q%8&1)==1},k.put=function(q,z){for(var $=0;$<z;$+=1)k.putBit((q>>>z-$-1&1)==1)},k.getLengthInBits=function(){return X},k.putBit=function(q){var z=Math.floor(X/8);U.length<=z&&U.push(0),q&&(U[z]|=128>>>X%8),X+=1},k},h=function(U){var X=i.MODE_NUMBER,k=U,q={};q.getMode=function(){return X},q.getLength=function(L){return k.length},q.write=function(L){for(var P=k,pe=0;pe+2<P.length;)L.put(z(P.substring(pe,pe+3)),10),pe+=3;pe<P.length&&(P.length-pe==1?L.put(z(P.substring(pe,pe+1)),4):P.length-pe==2&&L.put(z(P.substring(pe,pe+2)),7))};var z=function(L){for(var P=0,pe=0;pe<L.length;pe+=1)P=P*10+$(L.charAt(pe));return P},$=function(L){if(\\\"0\\\"<=L&&L<=\\\"9\\\")return L.charCodeAt(0)-48;throw\\\"illegal char :\\\"+L};return q},g=function(U){var X=i.MODE_ALPHA_NUM,k=U,q={};q.getMode=function(){return X},q.getLength=function($){return k.length},q.write=function($){for(var L=k,P=0;P+1<L.length;)$.put(z(L.charAt(P))*45+z(L.charAt(P+1)),11),P+=2;P<L.length&&$.put(z(L.charAt(P)),6)};var z=function($){if(\\\"0\\\"<=$&&$<=\\\"9\\\")return $.charCodeAt(0)-48;if(\\\"A\\\"<=$&&$<=\\\"Z\\\")return $.charCodeAt(0)-65+10;switch($){case\\\" \\\":return 36;case\\\"$\\\":return 37;case\\\"%\\\":return 38;case\\\"*\\\":return 39;case\\\"+\\\":return 40;case\\\"-\\\":return 41;case\\\".\\\":return 42;case\\\"/\\\":return 43;case\\\":\\\":return 44;default:throw\\\"illegal char :\\\"+$}};return q},y=function(U){var X=i.MODE_8BIT_BYTE,k=r.stringToBytes(U),q={};return q.getMode=function(){return X},q.getLength=function(z){return k.length},q.write=function(z){for(var $=0;$<k.length;$+=1)z.put(k[$],8)},q},E=function(U){var X=i.MODE_KANJI,k=r.stringToBytesFuncs.SJIS;if(!k)throw\\\"sjis not supported.\\\";(function($,L){var P=k($);if(P.length!=2||(P[0]<<8|P[1])!=L)throw\\\"sjis not supported.\\\"})(\\\"\\\\u53CB\\\",38726);var q=k(U),z={};return z.getMode=function(){return X},z.getLength=function($){return~~(q.length/2)},z.write=function($){for(var L=q,P=0;P+1<L.length;){var pe=(255&L[P])<<8|255&L[P+1];if(33088<=pe&&pe<=40956)pe-=33088;else if(57408<=pe&&pe<=60351)pe-=49472;else throw\\\"illegal char at \\\"+(P+1)+\\\"/\\\"+pe;pe=(pe>>>8&255)*192+(pe&255),$.put(pe,13),P+=2}if(P<L.length)throw\\\"illegal char at \\\"+(P+1)},z},N=function(){var U=[],X={};return X.writeByte=function(k){U.push(k&255)},X.writeShort=function(k){X.writeByte(k),X.writeByte(k>>>8)},X.writeBytes=function(k,q,z){q=q||0,z=z||k.length;for(var $=0;$<z;$+=1)X.writeByte(k[$+q])},X.writeString=function(k){for(var q=0;q<k.length;q+=1)X.writeByte(k.charCodeAt(q))},X.toByteArray=function(){return U},X.toString=function(){var k=\\\"\\\";k+=\\\"[\\\";for(var q=0;q<U.length;q+=1)q>0&&(k+=\\\",\\\"),k+=U[q];return k+=\\\"]\\\",k},X},_=function(){var U=0,X=0,k=0,q=\\\"\\\",z={},$=function(P){q+=String.fromCharCode(L(P&63))},L=function(P){if(!(P<0)){if(P<26)return 65+P;if(P<52)return 97+(P-26);if(P<62)return 48+(P-52);if(P==62)return 43;if(P==63)return 47}throw\\\"n:\\\"+P};return z.writeByte=function(P){for(U=U<<8|P&255,X+=8,k+=1;X>=6;)$(U>>>X-6),X-=6},z.flush=function(){if(X>0&&($(U<<6-X),U=0,X=0),k%3!=0)for(var P=3-k%3,pe=0;pe<P;pe+=1)q+=\\\"=\\\"},z.toString=function(){return q},z},v=function(U){var X=U,k=0,q=0,z=0,$={};$.read=function(){for(;z<8;){if(k>=X.length){if(z==0)return-1;throw\\\"unexpected end of file./\\\"+z}var P=X.charAt(k);if(k+=1,P==\\\"=\\\")return z=0,-1;if(P.match(/^\\\\s$/))continue;q=q<<6|L(P.charCodeAt(0)),z+=6}var pe=q>>>z-8&255;return z-=8,pe};var L=function(P){if(65<=P&&P<=90)return P-65;if(97<=P&&P<=122)return P-97+26;if(48<=P&&P<=57)return P-48+52;if(P==43)return 62;if(P==47)return 63;throw\\\"c:\\\"+P};return $},T=function(U,X){var k=U,q=X,z=new Array(U*X),$={};$.setPixel=function(le,se,Le){z[se*k+le]=Le},$.write=function(le){le.writeString(\\\"GIF87a\\\"),le.writeShort(k),le.writeShort(q),le.writeByte(128),le.writeByte(0),le.writeByte(0),le.writeByte(0),le.writeByte(0),le.writeByte(0),le.writeByte(255),le.writeByte(255),le.writeByte(255),le.writeString(\\\",\\\"),le.writeShort(0),le.writeShort(0),le.writeShort(k),le.writeShort(q),le.writeByte(0);var se=2,Le=P(se);le.writeByte(se);for(var O=0;Le.length-O>255;)le.writeByte(255),le.writeBytes(Le,O,255),O+=255;le.writeByte(Le.length-O),le.writeBytes(Le,O,Le.length-O),le.writeByte(0),le.writeString(\\\";\\\")};var L=function(le){var se=le,Le=0,O=0,Ze={};return Ze.write=function(rt,St){if(rt>>>St)throw\\\"length over\\\";for(;Le+St>=8;)se.writeByte(255&(rt<<Le|O)),St-=8-Le,rt>>>=8-Le,O=0,Le=0;O=rt<<Le|O,Le=Le+St},Ze.flush=function(){Le>0&&se.writeByte(O)},Ze},P=function(le){for(var se=1<<le,Le=(1<<le)+1,O=le+1,Ze=pe(),rt=0;rt<se;rt+=1)Ze.add(String.fromCharCode(rt));Ze.add(String.fromCharCode(se)),Ze.add(String.fromCharCode(Le));var St=N(),Xt=L(St);Xt.write(se,O);var Jt=0,pn=String.fromCharCode(z[Jt]);for(Jt+=1;Jt<z.length;){var He=String.fromCharCode(z[Jt]);Jt+=1,Ze.contains(pn+He)?pn=pn+He:(Xt.write(Ze.indexOf(pn),O),Ze.size()<4095&&(Ze.size()==1<<O&&(O+=1),Ze.add(pn+He)),pn=He)}return Xt.write(Ze.indexOf(pn),O),Xt.write(Le,O),Xt.flush(),St.toByteArray()},pe=function(){var le={},se=0,Le={};return Le.add=function(O){if(Le.contains(O))throw\\\"dup key:\\\"+O;le[O]=se,se+=1},Le.size=function(){return se},Le.indexOf=function(O){return le[O]},Le.contains=function(O){return typeof le[O]<\\\"u\\\"},Le};return $},R=function(U,X,k){for(var q=T(U,X),z=0;z<X;z+=1)for(var $=0;$<U;$+=1)q.setPixel($,z,k($,z));var L=N();q.write(L);for(var P=_(),pe=L.toByteArray(),le=0;le<pe.length;le+=1)P.writeByte(pe[le]);return P.flush(),\\\"data:image/gif;base64,\\\"+P};return r})();(function(){n.stringToBytesFuncs[\\\"UTF-8\\\"]=function(r){function i(a){for(var o=[],s=0;s<a.length;s++){var l=a.charCodeAt(s);l<128?o.push(l):l<2048?o.push(192|l>>6,128|l&63):l<55296||l>=57344?o.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|a.charCodeAt(s)&1023),o.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return o}return i(r)}})(),(function(r){t.exports=r()})(function(){return n})})(f6)),f6.exports}function ev(t){return wt(this,null,function*(){try{if(!navigator?.clipboard)throw new kn(\\\"Clipboard API not available\\\");return yield navigator.clipboard.writeText(t)}catch{}qte(t)})}function qte(t){let e=document.createElement(\\\"textarea\\\");e.value=t,e.style.top=\\\"0\\\",e.style.left=\\\"0\\\",e.style.position=\\\"fixed\\\",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand(\\\"copy\\\")}finally{document.body.removeChild(e)}}function $ne(t){return!(\\\"type\\\"in t)||t.type!==\\\"wallet-connect\\\"}function vre(t){let{timeout:e}=Kt(Kt({},yre),t),[n,r]=Je([]),[i,a]=Je([]);return Zn(k6(ya,o=>{var s,l;if(!o||!o.showNotification){r(g=>g.filter(y=>y.action!==\\\"confirm-transaction\\\"));return}if(g6()===o)return;let c=((s=g6())==null?void 0:s.name)===\\\"confirm-transaction\\\"&&o.name===\\\"confirm-transaction\\\",u=((l=g6())==null?void 0:l.name)===\\\"confirm-sign-data\\\"&&o.name===\\\"confirm-sign-data\\\";if(c||u)return;bre(o),r(g=>g.filter(y=>y.action!==\\\"confirm-transaction\\\"&&y.action!==\\\"confirm-sign-data\\\"));let d={action:o.name};r(g=>[...g,d]);let h=setTimeout(()=>{r(g=>g.filter(y=>y!==d)),a(g=>g.filter(y=>y!==h))},e);a(g=>[...g,h])})),ri(()=>{i().forEach(o=>clearTimeout(o))}),n}function GO(t,e,n){return pu(t,$b(e,n))}function d_(t,e){return typeof t==\\\"function\\\"?t(e):t}function ah(t){return t.split(\\\"-\\\")[0]}function f_(t){return t.split(\\\"-\\\")[1]}function pU(t){return t===\\\"x\\\"?\\\"y\\\":\\\"x\\\"}function mU(t){return t===\\\"y\\\"?\\\"height\\\":\\\"width\\\"}function hu(t){return Ire.has(ah(t))?\\\"y\\\":\\\"x\\\"}function yU(t){return pU(hu(t))}function Ure(t,e,n){n===void 0&&(n=!1);let r=f_(t),i=yU(t),a=mU(i),o=i===\\\"x\\\"?r===(n?\\\"end\\\":\\\"start\\\")?\\\"right\\\":\\\"left\\\":r===\\\"start\\\"?\\\"bottom\\\":\\\"top\\\";return e.reference[a]>e.floating[a]&&(o=Zb(o)),[o,Zb(o)]}function Nre(t){let e=Zb(t);return[F6(t),e,F6(e)]}function F6(t){return t.replace(/start|end/g,e=>Ore[e])}function zre(t,e,n){switch(t){case\\\"top\\\":case\\\"bottom\\\":return n?e?XO:QO:e?QO:XO;case\\\"left\\\":case\\\"right\\\":return e?Pre:jre;default:return[]}}function Dre(t,e,n,r){let i=f_(t),a=zre(ah(t),n===\\\"start\\\",r);return i&&(a=a.map(o=>o+\\\"-\\\"+i),e&&(a=a.concat(a.map(F6)))),a}function Zb(t){return t.replace(/left|right|bottom|top/g,e=>Rre[e])}function Lre(t){return Kt({top:0,right:0,bottom:0,left:0},t)}function qre(t){return typeof t!=\\\"number\\\"?Lre(t):{top:t,right:t,bottom:t,left:t}}function Yb(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function JO(t,e,n){let{reference:r,floating:i}=t,a=hu(e),o=yU(e),s=mU(o),l=ah(e),c=a===\\\"y\\\",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2,g;switch(l){case\\\"top\\\":g={x:u,y:r.y-i.height};break;case\\\"bottom\\\":g={x:u,y:r.y+r.height};break;case\\\"right\\\":g={x:r.x+r.width,y:d};break;case\\\"left\\\":g={x:r.x-i.width,y:d};break;default:g={x:r.x,y:r.y}}switch(f_(e)){case\\\"start\\\":g[o]-=h*(n&&c?-1:1);break;case\\\"end\\\":g[o]+=h*(n&&c?-1:1);break}return g}function bU(t,e){return wt(this,null,function*(){var n;e===void 0&&(e={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=t,{boundary:c=\\\"clippingAncestors\\\",rootBoundary:u=\\\"viewport\\\",elementContext:d=\\\"floating\\\",altBoundary:h=!1,padding:g=0}=d_(e,t),y=qre(g),N=s[h?d===\\\"floating\\\"?\\\"reference\\\":\\\"floating\\\":d],_=Yb(yield a.getClippingRect({element:(n=yield a.isElement==null?void 0:a.isElement(N))==null||n?N:N.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d===\\\"floating\\\"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,T=yield a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating),R=(yield a.isElement==null?void 0:a.isElement(T))?(yield a.getScale==null?void 0:a.getScale(T))||{x:1,y:1}:{x:1,y:1},U=Yb(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:T,strategy:l}):v);return{top:(_.top-U.top+y.top)/R.y,bottom:(U.bottom-_.bottom+y.bottom)/R.y,left:(_.left-U.left+y.left)/R.x,right:(U.right-_.right+y.right)/R.x}})}function iv(){return typeof window<\\\"u\\\"}function ch(t){return vU(t)?(t.nodeName||\\\"\\\").toLowerCase():\\\"#document\\\"}function qi(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vo(t){var e;return(e=(vU(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function vU(t){return iv()?t instanceof Node||t instanceof qi(t).Node:!1}function Ua(t){return iv()?t instanceof Element||t instanceof qi(t).Element:!1}function mo(t){return iv()?t instanceof HTMLElement||t instanceof qi(t).HTMLElement:!1}function eI(t){return!iv()||typeof ShadowRoot>\\\"u\\\"?!1:t instanceof ShadowRoot||t instanceof qi(t).ShadowRoot}function Ng(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=Na(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Fre.has(i)}function Kre(t){return $re.has(ch(t))}function av(t){return Zre.some(e=>{try{return t.matches(e)}catch{return!1}})}function h_(t){let e=g_(),n=Ua(t)?Na(t):t;return Yre.some(r=>n[r]?n[r]!==\\\"none\\\":!1)||(n.containerType?n.containerType!==\\\"normal\\\":!1)||!e&&(n.backdropFilter?n.backdropFilter!==\\\"none\\\":!1)||!e&&(n.filter?n.filter!==\\\"none\\\":!1)||Gre.some(r=>(n.willChange||\\\"\\\").includes(r))||Qre.some(r=>(n.contain||\\\"\\\").includes(r))}function Xre(t){let e=Pl(t);for(;mo(e)&&!oh(e);){if(h_(e))return e;if(av(e))return null;e=Pl(e)}return null}function g_(){return typeof CSS>\\\"u\\\"||!CSS.supports?!1:CSS.supports(\\\"-webkit-backdrop-filter\\\",\\\"none\\\")}function oh(t){return Jre.has(ch(t))}function Na(t){return qi(t).getComputedStyle(t)}function ov(t){return Ua(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pl(t){if(ch(t)===\\\"html\\\")return t;let e=t.assignedSlot||t.parentNode||eI(t)&&t.host||vo(t);return eI(e)?e.host:e}function wU(t){let e=Pl(t);return oh(e)?t.ownerDocument?t.ownerDocument.body:t.body:mo(e)&&Ng(e)?e:wU(e)}function kg(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=wU(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),o=qi(i);if(a){let s=$6(o);return e.concat(o,o.visualViewport||[],Ng(i)?i:[],s&&n?kg(s):[])}return e.concat(i,kg(i,[],n))}function $6(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xU(t){let e=Na(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=mo(t),a=i?t.offsetWidth:n,o=i?t.offsetHeight:r,s=Kb(n)!==a||Kb(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function p_(t){return Ua(t)?t:t.contextElement}function eh(t){let e=p_(t);if(!mo(e))return go(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:a}=xU(e),o=(a?Kb(n.width):n.width)/r,s=(a?Kb(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}function _U(t){let e=qi(t);return!g_()||!e.visualViewport?eie:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function tie(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==qi(t)?!1:e}function yu(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),a=p_(t),o=go(1);e&&(r?Ua(r)&&(o=eh(r)):o=eh(t));let s=tie(a,n,r)?_U(a):go(0),l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let h=qi(a),g=r&&Ua(r)?qi(r):r,y=h,E=$6(y);for(;E&&r&&g!==y;){let N=eh(E),_=E.getBoundingClientRect(),v=Na(E),T=_.left+(E.clientLeft+parseFloat(v.paddingLeft))*N.x,R=_.top+(E.clientTop+parseFloat(v.paddingTop))*N.y;l*=N.x,c*=N.y,u*=N.x,d*=N.y,l+=T,c+=R,y=qi(E),E=$6(y)}}return Yb({width:u,height:d,x:l,y:c})}function m_(t,e){let n=ov(t).scrollLeft;return e?e.left+n:yu(vo(t)).left+n}function CU(t,e,n){n===void 0&&(n=!1);let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:m_(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function nie(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,a=i===\\\"fixed\\\",o=vo(r),s=e?av(e.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=go(1),u=go(0),d=mo(r);if((d||!d&&!a)&&((ch(r)!==\\\"body\\\"||Ng(o))&&(l=ov(r)),mo(r))){let g=yu(r);c=eh(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let h=o&&!d&&!a?CU(o,l,!0):go(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function rie(t){return Array.from(t.getClientRects())}function iie(t){let e=vo(t),n=ov(t),r=t.ownerDocument.body,i=pu(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=pu(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+m_(t),s=-n.scrollTop;return Na(r).direction===\\\"rtl\\\"&&(o+=pu(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function aie(t,e){let n=qi(t),r=vo(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let c=g_();(!c||c&&e===\\\"fixed\\\")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function sie(t,e){let n=yu(t,!0,e===\\\"fixed\\\"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=mo(t)?eh(t):go(1),o=t.clientWidth*a.x,s=t.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:o,height:s,x:l,y:c}}function tI(t,e,n){let r;if(e===\\\"viewport\\\")r=aie(t,n);else if(e===\\\"document\\\")r=iie(vo(t));else if(Ua(e))r=sie(e,n);else{let i=_U(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Yb(r)}function SU(t,e){let n=Pl(t);return n===e||!Ua(n)||oh(n)?!1:Na(n).position===\\\"fixed\\\"||SU(n,e)}function lie(t,e){let n=e.get(t);if(n)return n;let r=kg(t,[],!1).filter(s=>Ua(s)&&ch(s)!==\\\"body\\\"),i=null,a=Na(t).position===\\\"fixed\\\",o=a?Pl(t):t;for(;Ua(o)&&!oh(o);){let s=Na(o),l=h_(o);!l&&s.position===\\\"fixed\\\"&&(i=null),(a?!l&&!i:!l&&s.position===\\\"static\\\"&&!!i&&oie.has(i.position)||Ng(o)&&!l&&SU(t,o))?r=r.filter(u=>u!==o):i=s,o=Pl(o)}return e.set(t,r),r}function cie(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,o=[...n===\\\"clippingAncestors\\\"?av(e)?[]:lie(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{let d=tI(e,u,i);return c.top=pu(d.top,c.top),c.right=$b(d.right,c.right),c.bottom=$b(d.bottom,c.bottom),c.left=pu(d.left,c.left),c},tI(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function uie(t){let{width:e,height:n}=xU(t);return{width:e,height:n}}function die(t,e,n){let r=mo(e),i=vo(e),a=n===\\\"fixed\\\",o=yu(t,!0,a,e),s={scrollLeft:0,scrollTop:0},l=go(0);function c(){l.x=m_(i)}if(r||!r&&!a)if((ch(e)!==\\\"body\\\"||Ng(i))&&(s=ov(e)),r){let g=yu(e,!0,a,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else i&&c();a&&!r&&i&&c();let u=i&&!r&&!a?CU(i,s):go(0),d=o.left+s.scrollLeft-l.x-u.x,h=o.top+s.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function p6(t){return Na(t).position===\\\"static\\\"}function nI(t,e){if(!mo(t)||Na(t).position===\\\"fixed\\\")return null;if(e)return e(t);let n=t.offsetParent;return vo(t)===n&&(n=n.ownerDocument.body),n}function TU(t,e){let n=qi(t);if(av(t))return n;if(!mo(t)){let i=Pl(t);for(;i&&!oh(i);){if(Ua(i)&&!p6(i))return i;i=Pl(i)}return n}let r=nI(t,e);for(;r&&Kre(r)&&p6(r);)r=nI(r,e);return r&&oh(r)&&p6(r)&&!h_(r)?n:r||Xre(t)||n}function hie(t){return Na(t).direction===\\\"rtl\\\"}function EU(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pie(t,e){let n=null,r,i=vo(t);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();let c=t.getBoundingClientRect(),{left:u,top:d,width:h,height:g}=c;if(s||e(),!h||!g)return;let y=_b(d),E=_b(i.clientWidth-(u+h)),N=_b(i.clientHeight-(d+g)),_=_b(u),T={rootMargin:-y+\\\"px \\\"+-E+\\\"px \\\"+-N+\\\"px \\\"+-_+\\\"px\\\",threshold:pu(0,$b(1,l))||1},R=!0;function U(X){let k=X[0].intersectionRatio;if(k!==l){if(!R)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!EU(c,t.getBoundingClientRect())&&o(),R=!1}try{n=new IntersectionObserver(U,mr(Kt({},T),{root:i.ownerDocument}))}catch{n=new IntersectionObserver(U,T)}n.observe(t)}return o(!0),a}function mie(t,e,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==\\\"function\\\",layoutShift:s=typeof IntersectionObserver==\\\"function\\\",animationFrame:l=!1}=r,c=p_(t),u=i||a?[...c?kg(c):[],...kg(e)]:[];u.forEach(_=>{i&&_.addEventListener(\\\"scroll\\\",n,{passive:!0}),a&&_.addEventListener(\\\"resize\\\",n)});let d=c&&s?pie(c,n):null,h=-1,g=null;o&&(g=new ResizeObserver(_=>{let[v]=_;v&&v.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(e)})),n()}),c&&!l&&g.observe(c),g.observe(e));let y,E=l?yu(t):null;l&&N();function N(){let _=yu(t);E&&!EU(E,_)&&n(),E=_,y=requestAnimationFrame(N)}return n(),()=>{var _;u.forEach(v=>{i&&v.removeEventListener(\\\"scroll\\\",n),a&&v.removeEventListener(\\\"resize\\\",n)}),d?.(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(y)}}function wie(t,e,n){let r=()=>{var d;return(d=n?.placement)!=null?d:\\\"bottom\\\"},i=()=>{var d;return(d=n?.strategy)!=null?d:\\\"absolute\\\"},[a,o]=Je({x:null,y:null,placement:r(),strategy:i(),middlewareData:{}}),[s,l]=Je();Zn(()=>{let d=s();if(d)throw d.value});let c=xt(()=>(t(),e(),{}));function u(){let d=t(),h=e();if(d&&h){let g=c();vie(d,h,{middleware:n?.middleware,placement:r(),strategy:i()}).then(y=>{g===c()&&o(y)},y=>{l(y)})}}return Zn(()=>{let d=t(),h=e();if(r(),i(),d&&h)if(n!=null&&n.whileElementsMounted){let g=n.whileElementsMounted(d,h,u);g&&ri(g)}else u()}),{get x(){return a().x},get y(){return a().y},get placement(){return a().placement},get strategy(){return a().strategy},get middlewareData(){return a().middlewareData},update:u}}function Cie(t){return[...new Set(t)]}function Sie(t,e,n){return e.map(r=>{let i=n.find(a=>a[t]===r[t]);return n=n.filter(a=>a[t]!==r[t]),i===void 0?r:i}).concat(n)}function Tie(t){return\\\"jsBridgeKey\\\"in t?mr(Kt({},t),{injected:Oa.isWalletInjected(t.jsBridgeKey),embedded:Oa.isInsideWalletBrowser(t.jsBridgeKey)}):t}function y_(t,e){var n;return e&&(n=e.includeWallets)!=null&&n.length&&(t=Sie(\\\"name\\\",t,e.includeWallets.map(Tie))),t}function rI(t){return t.platforms.some(e=>[\\\"macos\\\",\\\"linux\\\",\\\"windows\\\"].includes(e))}function Cg(t){return t.platforms.some(e=>[\\\"ios\\\",\\\"android\\\"].includes(e))}function iI(t){return t.platforms.some(e=>[\\\"chrome\\\",\\\"firefox\\\",\\\"safari\\\"].includes(e))}function Ol(t,e){return e?t.name.toLowerCase()===e.toLowerCase()||t.appName.toLowerCase()===e.toLowerCase():!1}function wn(t,e){let n;typeof e==\\\"string\\\"?n=e:n=ni()?e.twaReturnUrl||e.returnStrategy:\\\"none\\\";let r=Gie(t,\\\"ret\\\",n);if(!ma(t))return r;let i=r.slice(r.lastIndexOf(\\\"&\\\")+1);return r.slice(0,r.lastIndexOf(\\\"&\\\"))+\\\"-\\\"+fg(i)}function Pg(t,e){e=Kt({},e);let n=OU(t),r=new URL(n);if(r.searchParams.has(\\\"startapp\\\")||r.searchParams.append(\\\"startapp\\\",\\\"tonconnect\\\"),l_()){e.returnStrategy=\\\"back\\\";let i=wn(r.toString(),e.returnStrategy);An(i)}else if(ni())if(uu(\\\"ios\\\",\\\"android\\\",\\\"macos\\\",\\\"tdesktop\\\",\\\"web\\\")){e.returnStrategy=\\\"back\\\";let i=wn(r.toString(),e.returnStrategy);z6(i)}else uu(\\\"weba\\\")?z6(wn(r.toString(),e)):An(wn(r.toString(),e));else if(ba(\\\"ios\\\")){e.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?e.returnStrategy=\\\"back\\\":Nt(\\\"chrome\\\")?e.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?e.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?e.returnStrategy=\\\"opera-http://\\\":e.returnStrategy=location.href);let i=Nt(\\\"chrome\\\"),a=Nt(\\\"firefox\\\");if((i||a)&&!e.forceRedirect){let s=wn(r.toString(),e.returnStrategy),l=Sb(s);Il(l,()=>An(s))}else{let s=wn(r.toString(),e.returnStrategy);An(s)}}else if(ba(\\\"android\\\")){e.returnStrategy=\\\"back\\\";let i=Nt(\\\"chrome\\\"),a=Nt(\\\"firefox\\\");if((i||a)&&!e.forceRedirect){let s=wn(r.toString(),e.returnStrategy),l=Sb(s);Il(l,()=>An(s))}else{let s=wn(r.toString(),e.returnStrategy);An(s)}}else if(ba(\\\"ipad\\\")){e.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?e.returnStrategy=\\\"back\\\":Nt(\\\"chrome\\\")?e.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?e.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?e.returnStrategy=\\\"opera-http://\\\":e.returnStrategy=location.href);let i=Nt(\\\"chrome\\\"),a=Nt(\\\"firefox\\\"),o=(i||a)&&!e.forceRedirect,s=wn(r.toString(),e.returnStrategy);if(o){let l=Sb(s);Il(l,()=>An(s))}else An(s)}else if(ba(\\\"macos\\\",\\\"windows\\\",\\\"linux\\\")){e.returnStrategy=\\\"back\\\",e.twaReturnUrl=void 0;let i=wn(r.toString(),e.returnStrategy);if(e.forceRedirect)An(i);else{let a=Sb(i);Il(a,()=>An(i))}}else An(wn(r.toString(),e))}function jg(t,e,n,r){if(n=Kt({},n),l_())if(ba(\\\"ios\\\",\\\"android\\\"))n.returnStrategy===\\\"back\\\"&&(n.returnStrategy=\\\"tg://resolve\\\"),r(\\\"universal-link\\\"),_g(wn(t,n.returnStrategy),\\\"_self\\\");else{r(\\\"universal-link\\\");let i=wn(t,n.returnStrategy);An(i)}else if(ni())if(uu(\\\"ios\\\",\\\"android\\\")){n.returnStrategy===\\\"back\\\"&&(n.returnStrategy=\\\"tg://resolve\\\"),r(\\\"universal-link\\\");let i=wn(t,n.returnStrategy);z6(i,()=>{r(\\\"universal-link\\\"),An(i)})}else if(uu(\\\"macos\\\",\\\"tdesktop\\\")){n.returnStrategy===\\\"back\\\"&&(n.returnStrategy=\\\"tg://resolve\\\");let i=wn(t,n.returnStrategy);!!e&&!n.forceRedirect?(r(\\\"custom-deeplink\\\"),Il(xb(i,e),()=>{r(\\\"universal-link\\\"),An(i)})):(r(\\\"universal-link\\\"),An(i))}else if(uu(\\\"weba\\\")){n.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?n.returnStrategy=location.href:Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=location.href);let i=wn(t,n.returnStrategy);!!e&&!n.forceRedirect?(r(\\\"custom-deeplink\\\"),Il(xb(i,e),()=>{r(\\\"universal-link\\\"),An(i)})):(r(\\\"universal-link\\\"),An(i))}else if(uu(\\\"web\\\")){n.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?n.returnStrategy=location.href:Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=location.href);let i=wn(t,n.returnStrategy);!!e&&!n.forceRedirect?(r(\\\"custom-deeplink\\\"),Il(xb(i,e),()=>{r(\\\"universal-link\\\"),An(i)})):(r(\\\"universal-link\\\"),An(i))}else{r(\\\"universal-link\\\");let i=wn(t,n.returnStrategy);An(i)}else if(ba(\\\"ios\\\"))n.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?n.returnStrategy=\\\"none\\\":Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=location.href),Nt(\\\"chrome\\\")?(r(\\\"universal-link\\\"),_g(wn(t,n.returnStrategy),\\\"_self\\\")):(r(\\\"universal-link\\\"),An(wn(t,n.returnStrategy)));else if(ba(\\\"android\\\"))n.returnStrategy===\\\"back\\\"&&(Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=location.href),r(\\\"universal-link\\\"),An(wn(t,n.returnStrategy));else if(ba(\\\"ipad\\\"))n.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?n.returnStrategy=\\\"none\\\":Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=location.href),Nt(\\\"chrome\\\")?(r(\\\"universal-link\\\"),_g(wn(t,n.returnStrategy),\\\"_self\\\")):(r(\\\"universal-link\\\"),An(wn(t,n.returnStrategy)));else if(ba(\\\"macos\\\",\\\"windows\\\",\\\"linux\\\")){n.returnStrategy===\\\"back\\\"&&(Nt(\\\"safari\\\")?n.returnStrategy=\\\"none\\\":Nt(\\\"chrome\\\")?n.returnStrategy=\\\"googlechrome://\\\":Nt(\\\"firefox\\\")?n.returnStrategy=\\\"firefox://\\\":Nt(\\\"opera\\\")?n.returnStrategy=\\\"opera-http://\\\":n.returnStrategy=\\\"none\\\");let i=wn(t,n.returnStrategy);!!e&&!n.forceRedirect?(r(\\\"custom-deeplink\\\"),Il(xb(i,e),()=>{r(\\\"universal-link\\\"),An(i)})):(r(\\\"universal-link\\\"),An(i))}else r(\\\"universal-link\\\"),An(wn(t,n.returnStrategy))}function RU(t,e){var n,r;if(!ma(t))return Qie(t,{id:e.sessionId,trace_id:e.traceId});let i=OU(t),a=new URL(i),o=Xx((n=a.searchParams.get(\\\"startapp\\\"))!=null?n:\\\"\\\"),s=IU(o),l=(r=e.sessionId)!=null?r:s.get(\\\"id\\\"),c=e.traceId,u=[\\\"tonconnect\\\",\\\"v\\\",\\\"id\\\",\\\"trace_id\\\"],d=Array.from(s.entries()).filter(([g])=>!u.includes(g)),h=Xie(mr(Kt({tonconnect:\\\"\\\",v:\\\"2\\\",id:l},Object.fromEntries(d)),{trace_id:c})).replace(\\\"=&\\\",\\\"&\\\");return a.searchParams.set(\\\"startapp\\\",fg(h)),a.toString()}function Gie(t,e,n){let r=new URL(t);return r.searchParams.append(e,n),r.toString()}function Qie(t,e){let n=new URL(t);for(let[r,i]of Object.entries(e))i!=null&&n.searchParams.set(r,i);return n.toString()}function OU(t){let e=new URL(t);return e.searchParams.has(\\\"attach\\\")&&(e.searchParams.delete(\\\"attach\\\"),e.pathname+=\\\"/start\\\"),e.toString()}function IU(t=\\\"\\\"){let e=new URL(\\\"https://example.com\\\");return e.search=t,e.searchParams}function Xie(t){let e=IU();for(let[n,r]of Object.entries(t))r!=null&&e.append(n,r);return e.toString()}function Sb(t){let e=new URL(t),[,n,r]=e.pathname.split(\\\"/\\\"),i=e.searchParams.get(\\\"startapp\\\");return`tg://resolve?domain=${n}&appname=${r}&startapp=${i}`}function jU(t){let e=new Set(t.filter(Wf).map(n=>n.bridgeUrl));return Array.from(e).map(n=>({bridgeUrl:n}))}function zU(t,e){let n=new Set(t?.map(i=>i.bridgeUrl)),r=new Set(e?.map(i=>i.bridgeUrl));return n.size===r.size&&[...n].every(i=>r.has(i))}var J6,wI,wg,iJ,aJ,oJ,kb,yI,bI,xO,Kt,mr,vI,wt,_O,CO,SO,TO,EO,AO,kO,BO,sJ,lJ,Ia,xI,Bb,Mb,_I,xs,Rb,CI,a6,ln,o6,cJ,xn,qr,bs,Gb,hJ,Cge,gJ,vJ,R6,UI,_J,CJ,SJ,TJ,EJ,kJ,BJ,MJ,Xe,RO,VJ,Wn,WJ,FJ,$J,KJ,NO,lu,gs,zI,ZJ,YJ,GJ,r_,G,ms,Ub,l6,JJ,I6,kn,U6,N6,Pb,cu,c6,PO,jb,jO,zO,fee,Yf,P6,hee,Rr,ya,ps,gee,a_,pee,VI,mee,yee,bee,vee,wee,xee,_ee,Cee,See,Tee,Eee,Aee,kee,Bee,Mee,lh,j6,Qf,ys,HI,Iee,KI,Nee,jee,s_,ZI,uo,Lee,vu,ti,GI,mu,Ag,qO,QI,du,Rg,Og,Gee,d6,Qee,un,Xee,VO,Hb,rte,Jb,ite,iU,lte,cte,ute,aU,dte,fte,hte,_s,Xf,gte,pte,mte,yte,bte,vte,q6,oU,wte,xte,_te,Cte,Ste,sU,Tte,Ete,Ate,kte,HO,WO,Bte,Mte,Rte,lU,V6,FO,$O,Ab,Ote,Ite,Ute,Nte,Pte,f6,KO,Dte,Lte,Vte,tv,H6,Hte,Wte,cU,Pa,Fte,Ti,$te,Kte,uU,Zte,Yte,Gte,Qte,Xte,Jte,ene,tne,nne,Wb,rne,Wi,ine,yo,ane,nv,one,sne,lne,cne,une,rv,dne,fne,hne,jl,gne,pne,mne,bo,yne,bne,vne,wne,xne,_ne,Cne,Sne,Tne,Ene,Ane,fu,kne,Jf,Bne,Mne,Rne,One,Ine,Une,Nne,Pne,jne,zne,Dne,Lne,qne,W6,Vne,Hne,Wne,Fne,dU,wa,wu,fU,Kne,Zne,Yne,Gne,ih,Qne,Fb,u_,Xne,Nl,Cs,Jne,ere,tre,nre,rre,ire,are,ore,ZO,YO,h6,sre,lre,cre,ure,dre,Ug,fre,hre,gre,pre,hU,mre,pg,yre,g6,bre,wre,xre,_re,Cre,Sre,gU,Tre,Ere,Are,kre,Bre,Mre,$b,pu,Kb,_b,go,Rre,Ore,Ire,QO,XO,Pre,jre,Vre,Hre,Wre,Fre,$re,Zre,Yre,Gre,Qre,Jre,eie,oie,fie,gie,yie,bie,vie,xie,_ie,AU,kU,BU,Gt,Cb,Eie,Aie,aI,kie,m6,Bie,Mie,Rie,Oie,Iie,Uie,K6,MU,Nie,oI,Pie,jie,zie,Die,Lie,qie,Vie,Hie,Wie,vg,Fie,y6,$ie,Kie,su,Zie,Yie,gn,UU,Jie,eae,tae,b6,v6,w6,x6,nae,rae,NU,iae,aae,oae,sae,lae,cae,uae,dae,fae,mg,sI,hae,gae,pae,mae,yae,lI,bae,PU,vae,wae,xae,cI,_ae,Cae,uI,Sae,Tae,Eae,Aae,kae,dI,Bae,fI,Mae,Rae,DU,Oae,Iae,Uae,Nae,Pae,jae,zae,Dae,Lae,qae,hI,Vae,gI,Hae,_6,pI,Wae,Fae,$ae,Kae,Zae,Yae,C6,S6,T6,E6,Gae,Qae,Xae,Jae,eoe,toe,noe,roe,mI,uh,ioe,aoe,ooe,soe,loe,coe,uoe,doe,foe,Ln,Z6,Y6,G6,Q6,hoe,X6,Bg,b_=Dl(()=>{b();i6();i6();J6=Tn(pO(),1),wI=Tn(vO(),1),wg=Tn(wO(),1),iJ=Object.defineProperty,aJ=Object.defineProperties,oJ=Object.getOwnPropertyDescriptors,kb=Object.getOwnPropertySymbols,yI=Object.prototype.hasOwnProperty,bI=Object.prototype.propertyIsEnumerable,xO=(t,e,n)=>e in t?iJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kt=(t,e)=>{for(var n in e||(e={}))yI.call(e,n)&&xO(t,n,e[n]);if(kb)for(var n of kb(e))bI.call(e,n)&&xO(t,n,e[n]);return t},mr=(t,e)=>aJ(t,oJ(e)),vI=(t,e)=>{var n={};for(var r in t)yI.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kb)for(var r of kb(t))e.indexOf(r)<0&&bI.call(t,r)&&(n[r]=t[r]);return n},wt=(t,e,n)=>new Promise((r,i)=>{var a=l=>{try{s(n.next(l))}catch(c){i(c)}},o=l=>{try{s(n.throw(l))}catch(c){i(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((n=n.apply(t,e)).next())}),sJ=!1,lJ=(t,e)=>t===e,Ia=Symbol(\\\"solid-proxy\\\"),xI=typeof Proxy==\\\"function\\\",Bb=Symbol(\\\"solid-track\\\"),Mb={equals:lJ},_I=OI,xs=1,Rb=2,CI={owned:null,cleanups:null,context:null,owner:null},a6={},ln=null,o6=null,cJ=null,xn=null,qr=null,bs=null,Gb=0;[hJ,Cge]=Je(!1);vJ=Symbol(\\\"fallback\\\");R6={get(t,e,n){return e===Ia?n:t.get(e)},has(t,e){return e===Ia?!0:t.has(e)},set:wb,deleteProperty:wb,getOwnPropertyDescriptor(t,e){return{configurable:!0,enumerable:!0,get(){return t.get(e)},set:wb,deleteProperty:wb}},ownKeys(t){return t.keys()}};UI=t=>`Stale read from <${t}>.`;_J=[\\\"allowfullscreen\\\",\\\"async\\\",\\\"autofocus\\\",\\\"autoplay\\\",\\\"checked\\\",\\\"controls\\\",\\\"default\\\",\\\"disabled\\\",\\\"formnovalidate\\\",\\\"hidden\\\",\\\"indeterminate\\\",\\\"inert\\\",\\\"ismap\\\",\\\"loop\\\",\\\"multiple\\\",\\\"muted\\\",\\\"nomodule\\\",\\\"novalidate\\\",\\\"open\\\",\\\"playsinline\\\",\\\"readonly\\\",\\\"required\\\",\\\"reversed\\\",\\\"seamless\\\",\\\"selected\\\"],CJ=new Set([\\\"className\\\",\\\"value\\\",\\\"readOnly\\\",\\\"noValidate\\\",\\\"formNoValidate\\\",\\\"isMap\\\",\\\"noModule\\\",\\\"playsInline\\\",..._J]),SJ=new Set([\\\"innerHTML\\\",\\\"textContent\\\",\\\"innerText\\\",\\\"children\\\"]),TJ=Object.assign(Object.create(null),{className:\\\"class\\\",htmlFor:\\\"for\\\"}),EJ=Object.assign(Object.create(null),{class:\\\"className\\\",novalidate:{$:\\\"noValidate\\\",FORM:1},formnovalidate:{$:\\\"formNoValidate\\\",BUTTON:1,INPUT:1},ismap:{$:\\\"isMap\\\",IMG:1},nomodule:{$:\\\"noModule\\\",SCRIPT:1},playsinline:{$:\\\"playsInline\\\",VIDEO:1},readonly:{$:\\\"readOnly\\\",INPUT:1,TEXTAREA:1}});kJ=new Set([\\\"beforeinput\\\",\\\"click\\\",\\\"dblclick\\\",\\\"contextmenu\\\",\\\"focusin\\\",\\\"focusout\\\",\\\"input\\\",\\\"keydown\\\",\\\"keyup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"mouseout\\\",\\\"mouseover\\\",\\\"mouseup\\\",\\\"pointerdown\\\",\\\"pointermove\\\",\\\"pointerout\\\",\\\"pointerover\\\",\\\"pointerup\\\",\\\"touchend\\\",\\\"touchmove\\\",\\\"touchstart\\\"]),BJ=new Set([\\\"altGlyph\\\",\\\"altGlyphDef\\\",\\\"altGlyphItem\\\",\\\"animate\\\",\\\"animateColor\\\",\\\"animateMotion\\\",\\\"animateTransform\\\",\\\"circle\\\",\\\"clipPath\\\",\\\"color-profile\\\",\\\"cursor\\\",\\\"defs\\\",\\\"desc\\\",\\\"ellipse\\\",\\\"feBlend\\\",\\\"feColorMatrix\\\",\\\"feComponentTransfer\\\",\\\"feComposite\\\",\\\"feConvolveMatrix\\\",\\\"feDiffuseLighting\\\",\\\"feDisplacementMap\\\",\\\"feDistantLight\\\",\\\"feDropShadow\\\",\\\"feFlood\\\",\\\"feFuncA\\\",\\\"feFuncB\\\",\\\"feFuncG\\\",\\\"feFuncR\\\",\\\"feGaussianBlur\\\",\\\"feImage\\\",\\\"feMerge\\\",\\\"feMergeNode\\\",\\\"feMorphology\\\",\\\"feOffset\\\",\\\"fePointLight\\\",\\\"feSpecularLighting\\\",\\\"feSpotLight\\\",\\\"feTile\\\",\\\"feTurbulence\\\",\\\"filter\\\",\\\"font\\\",\\\"font-face\\\",\\\"font-face-format\\\",\\\"font-face-name\\\",\\\"font-face-src\\\",\\\"font-face-uri\\\",\\\"foreignObject\\\",\\\"g\\\",\\\"glyph\\\",\\\"glyphRef\\\",\\\"hkern\\\",\\\"image\\\",\\\"line\\\",\\\"linearGradient\\\",\\\"marker\\\",\\\"mask\\\",\\\"metadata\\\",\\\"missing-glyph\\\",\\\"mpath\\\",\\\"path\\\",\\\"pattern\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"radialGradient\\\",\\\"rect\\\",\\\"set\\\",\\\"stop\\\",\\\"svg\\\",\\\"switch\\\",\\\"symbol\\\",\\\"text\\\",\\\"textPath\\\",\\\"tref\\\",\\\"tspan\\\",\\\"use\\\",\\\"view\\\",\\\"vkern\\\"]),MJ={xlink:\\\"http://www.w3.org/1999/xlink\\\",xml:\\\"http://www.w3.org/XML/1998/namespace\\\"},Xe=t=>xt(()=>t());RO=\\\"_$DX_DELEGATE\\\";VJ=\\\"http://www.w3.org/2000/svg\\\";Wn=(t=>(t.DARK=\\\"DARK\\\",t.LIGHT=\\\"LIGHT\\\",t))(Wn||{}),WJ={data:\\\"\\\"},FJ=t=>typeof window==\\\"object\\\"?((t?t.querySelector(\\\"#_goober\\\"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement(\\\"style\\\")),{innerHTML:\\\" \\\",id:\\\"_goober\\\"})).firstChild:t||WJ,$J=/(?:([\\\\u0080-\\\\uFFFF\\\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\\\s*)/g,KJ=/\\\\/\\\\*[^]*?\\\\*\\\\/|  +/g,NO=/\\\\n+/g,lu=(t,e)=>{let n=\\\"\\\",r=\\\"\\\",i=\\\"\\\";for(let a in t){let o=t[a];a[0]==\\\"@\\\"?a[1]==\\\"i\\\"?n=a+\\\" \\\"+o+\\\";\\\":r+=a[1]==\\\"f\\\"?lu(o,a):a+\\\"{\\\"+lu(o,a[1]==\\\"k\\\"?\\\"\\\":e)+\\\"}\\\":typeof o==\\\"object\\\"?r+=lu(o,e?e.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+\\\" \\\"+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,\\\"-$&\\\").toLowerCase(),i+=lu.p?lu.p(a,o):a+\\\":\\\"+o+\\\";\\\")}return n+(e&&i?e+\\\"{\\\"+i+\\\"}\\\":i)+r},gs={},zI=t=>{if(typeof t==\\\"object\\\"){let e=\\\"\\\";for(let n in t)e+=n+zI(t[n]);return e}return t},ZJ=(t,e,n,r,i)=>{let a=zI(t),o=gs[a]||(gs[a]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return\\\"go\\\"+u})(a));if(!gs[o]){let l=a!==t?t:(c=>{let u,d,h=[{}];for(;u=$J.exec(c.replace(KJ,\\\"\\\"));)u[4]?h.shift():u[3]?(d=u[3].replace(NO,\\\" \\\").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][u[1]]=u[2].replace(NO,\\\" \\\").trim();return h[0]})(t);gs[o]=lu(i?{[\\\"@keyframes \\\"+o]:l}:l,n?\\\"\\\":\\\".\\\"+o)}let s=n&&gs.g?gs.g:null;return n&&(gs.g=gs[o]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(gs[o],e,r,s),o},YJ=(t,e,n)=>t.reduce((r,i,a)=>{let o=e[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?\\\".\\\"+l:s&&typeof s==\\\"object\\\"?s.props?\\\"\\\":lu(s,\\\"\\\"):s===!1?\\\"\\\":s}return r+i+(o??\\\"\\\")},\\\"\\\");ws.bind({g:1});GJ=ws.bind({k:1}),r_=Qb();G=new Proxy(DI,{get(t,e){return t(e)}});ms=\\\"tc-root\\\",Ub=\\\"tc-disable-scroll\\\",l6=\\\"tc-using-mouse\\\",JJ=()=>{document.body.addEventListener(\\\"mousedown\\\",()=>document.body.classList.add(l6)),document.body.addEventListener(\\\"keydown\\\",e=>{e.key===\\\"Tab\\\"&&document.body.classList.remove(l6)});let t=XJ`\\n    ${ms} * {\\n        margin: 0;\\n        padding: 0;\\n        box-sizing: border-box;\\n        \\n        font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, Tahoma, Verdana, sans-serif;\\n        -webkit-font-smoothing: antialiased;\\n        -moz-osx-font-smoothing: grayscale;        \\n        -webkit-tap-highlight-color: transparent;\\n    }\\n    \\n    ${ms} img {\\n      -webkit-user-select: none;\\n      -webkit-touch-callout: none;\\n    }   \\n \\n    ${ms} *:focus {\\n        outline: #08f auto 2px;\\n    }\\n    \\n    ${ms} li {\\n        list-style: none;\\n    }\\n    \\n    ${ms} button {\\n        outline: none;\\n    }\\n    \\n    body.${Ub} {\\n        position: fixed; \\n        overflow-y: scroll;\\n        right: 0;\\n        left: 0;\\n    }\\n    \\n    body.${l6} ${ms} *:focus {\\n        outline: none;\\n    }\\n`;return p(t,{})};I6=class t{constructor(){this.storage={}}static getInstance(){return t.instance||(t.instance=new t),t.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var n;return(n=this.storage[e])!=null?n:null}key(e){var n;let r=Object.keys(this.storage);return e<0||e>=r.length?null:(n=r[e])!=null?n:null}removeItem(e){delete this.storage[e]}setItem(e,n){this.storage[e]=n}},kn=class t extends Oe{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}};U6=class{constructor(){this.storageKey=\\\"ton-connect-ui_wallet-info\\\",this.localStorage=i_()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){let e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}},N6=class{constructor(){this.storageKey=\\\"ton-connect-ui_preferred-wallet\\\",this.localStorage=i_()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}},Pb=class{constructor(){this.storageKey=\\\"ton-connect-ui_last-selected-wallet-info\\\",this.localStorage=i_()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){let e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}},[cu,c6]=Je({status:\\\"closed\\\",closeReason:null}),PO=xt(()=>cu().status===\\\"opened\\\"),[jb,jO]=Je({status:\\\"closed\\\",closeReason:null}),zO=xt(()=>jb().status===\\\"opened\\\"),fee=xt(()=>{let t=jb();return t.status===\\\"opened\\\"?t.walletInfo:null}),Yf=typeof window<\\\"u\\\"?new Pb:void 0,[P6,hee]=Je(Yf?.getLastSelectedWalletInfo()||null),Rr=t=>{Yf||(Yf=new Pb),t?Yf.setLastSelectedWalletInfo(t):Yf.removeLastSelectedWalletInfo(),hee(t)},[ya,ps]=Je(null),[gee,a_]=Je({walletsMenu:\\\"explicit_wallet\\\",wallets:[]}),[pee,VI]=Je({link:\\\"\\\"}),mee={close:\\\"Close\\\",openWallet:\\\"Open wallet\\\",copyLink:\\\"Copy Link\\\",linkCopied:\\\"Link Copied\\\",copied:\\\"Copied\\\",yourWallet:\\\"Your Wallet\\\",retry:\\\"Retry\\\",get:\\\"GET\\\",mobile:\\\"Mobile\\\",browserExtension:\\\"Browser Extension\\\",desktop:\\\"Desktop\\\"},yee={connectWallet:\\\"Connect Wallet\\\",dropdown:{copy:\\\"Copy address\\\",copied:\\\"Address copied!\\\",disconnect:\\\"Disconnect\\\"}},bee={confirm:{header:\\\"Open {{ name }} to\\\\xA0confirm the\\\\xA0transaction.\\\"},transactionSent:{header:\\\"Transaction sent\\\",text:\\\"Your transaction\\\\xA0will be\\\\xA0processed in\\\\xA0a\\\\xA0few seconds.\\\"},transactionCanceled:{header:\\\"Transaction canceled\\\",text:\\\"There will be no changes to\\\\xA0your account.\\\"},dataSigned:{header:\\\"Data signed\\\"},signDataCanceled:{header:\\\"Sign data canceled\\\"}},vee={walletOn:\\\"Wallet in\\\",recent:\\\"Recent\\\",installed:\\\"Installed\\\",popular:\\\"Popular\\\"},wee={loading:\\\"Loading wallets\\\",wallets:\\\"Wallets\\\",mobileUniversalModal:{connectYourWallet:\\\"Connect your TON\\\\xA0wallet\\\",openWalletOnTelegramOrSelect:\\\"Use Wallet in Telegram or choose other application\\\",openWalletOnTelegram:\\\"Connect Wallet in Telegram\\\",chooseOtherApplication:\\\"Choose other application\\\",openLink:\\\"Open Link\\\",scan:\\\"Scan with your mobile\\\\xA0wallet\\\"},desktopUniversalModal:{connectYourWallet:\\\"Connect your TON wallet\\\",scan:\\\"Scan with your mobile wallet\\\",availableWallets:\\\"Available wallets\\\"},mobileConnectionModal:{showQR:\\\"Show QR Code\\\",scanQR:\\\"Scan the\\\\xA0QR code below with your phone\\\\u2019s\\\\xA0or\\\\xA0{{ name }}\\\\u2019s camera\\\",missingFeatures:\\\"Please update {{ name }}, your version does not support required features for this dApp\\\",wrongNetwork:\\\"Connected wallet is on a different network. Please switch network in {{ name }} and try again\\\",notSupportedWallet:\\\"{{ name }} doesn\\\\u2019t support the requested action. Please connect another wallet that supports it\\\",continueIn:\\\"Continue in {{ name }}\\\\u2026\\\",updateWallet:\\\"Update {{ name }}\\\",chooseAnotherWallet:\\\"Choose Another Wallet\\\",connectionDeclined:\\\"Connection declined\\\"},desktopConnectionModal:{scanQR:\\\"Scan the\\\\xA0QR code below with your phone\\\\u2019s\\\\xA0or\\\\xA0{{ name }}\\\\u2019s camera\\\",continueInExtension:\\\"Continue in\\\\xA0{{ name }} browser extension\\\\u2026\\\",dontHaveExtension:\\\"Seems you don't have installed {{ name }}\\\\xA0browser\\\\xA0extension\\\",missingFeatures:\\\"Please update {{ name }}, your version does not support required features for this dApp\\\",wrongNetwork:\\\"Connected wallet is on a different network. Please switch network in {{ name }} and try again\\\",notSupportedWallet:\\\"{{ name }} doesn\\\\u2019t support the requested action. Please connect another wallet that supports it\\\",getWallet:\\\"Get {{ name }}\\\",updateWallet:\\\"Update {{ name }}\\\",chooseAnotherWallet:\\\"Choose Another Wallet\\\",continueOnDesktop:\\\"Continue in\\\\xA0{{ name }} on desktop\\\\u2026\\\",openWalletOnTelegram:\\\"Connect Wallet in Telegram on desktop\\\",connectionDeclined:\\\"Connection declined\\\"},infoModal:{whatIsAWallet:\\\"What is a wallet\\\",secureDigitalAssets:\\\"Secure digital assets storage\\\",walletProtects:\\\"A wallet protects and manages your digital assets\\\\xA0including TON, tokens and collectables.\\\",controlIdentity:\\\"Control your Web3 identity\\\",manageIdentity:\\\"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in\\\\xA0the\\\\xA0blockchain ecosystem.\\\",effortlessCryptoTransactions:\\\"Effortless crypto transactions\\\",easilySend:\\\"Easily send, receive, monitor your cryptocurrencies.\\\\xA0Streamline your operations with\\\\xA0decentralized applications.\\\",getAWallet:\\\"Get a Wallet\\\"},restoreModal:{title:\\\"Restore\\\",step1:{title:\\\"Find your current recovery phrase\\\",text:\\\"Open your wallet settings and locate the\\\\xA0recovery\\\\xA0phrase\\\"},step2:{title:\\\"Copy your recovery phrase\\\",text:\\\"Write it down or copy it to a safe place\\\"},step3:{title:\\\"Restore in a supported wallet\\\",text:\\\"Enter the recovery phrase to access your wallet\\\"}},allWallets:{walletsBelowNotSupported:\\\"The wallets below don\\\\u2019t support all features of\\\\xA0the connected service. You can use your recovery phrase in one of the supported wallets above.\\\",walletNotSupportService:\\\"{{ name }} doesn\\\\u2019t support connected service\\\"},featureNotSupported:{wallet:{title:\\\"{{ name }} doesn\\\\u2019t support the requested\\\\xA0action\\\",description:\\\"Install a supported wallet from the list below, restore it with your recovery phrase, then connect it and try again.\\\",info:\\\"Learn how to restore your wallet\\\"},version:{description:\\\"Your current version of {{ name }} or wallet contract type doesn't support the required features. Please update it to continue.\\\",updateButton:\\\"Update {{ name }}\\\",aboutW5:\\\"About W5\\\"},disconnect:{title:\\\"Confirm Disconnect\\\",description:\\\"You will be disconnected from your current wallet and redirected to connect {{ name }}.\\\",button:\\\"Disconnect\\\"}}},xee={confirmTransaction:{header:\\\"Confirm the\\\\xA0transaction in\\\\xA0{{ name }}\\\",text:\\\"It will only take a\\\\xA0moment.\\\"},signData:{header:\\\"Sign the\\\\xA0data in\\\\xA0{{ name }}\\\",text:\\\"It will only take a\\\\xA0moment.\\\"},transactionSent:\\\"$notifications.transactionSent\\\",transactionCanceled:\\\"$notifications.transactionCanceled\\\",dataSigned:\\\"$notifications.dataSigned\\\",signDataCanceled:\\\"$notifications.signDataCanceled\\\"},_ee={common:mee,button:yee,notifications:bee,walletItem:vee,walletModal:wee,actionModal:xee},Cee={close:\\\"\\\\u0417\\\\u0430\\\\u043A\\\\u0440\\\\u044B\\\\u0442\\\\u044C\\\",openWallet:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u044B\\\\u0442\\\\u044C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",copyLink:\\\"\\\\u0421\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u0442\\\\u044C\\\",linkCopied:\\\"\\\\u0421\\\\u0441\\\\u044B\\\\u043B\\\\u043A\\\\u0430 \\\\u0441\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u043D\\\\u0430\\\",copied:\\\"\\\\u0421\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u043D\\\\u043E\\\",yourWallet:\\\"\\\\u0412\\\\u0430\\\\u0448 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",retry:\\\"\\\\u041F\\\\u043E\\\\u0432\\\\u0442\\\\u043E\\\\u0440\\\\u0438\\\\u0442\\\\u044C\\\",get:\\\"\\\\u0421\\\\u043A\\\\u0430\\\\u0447\\\\u0430\\\\u0442\\\\u044C\\\",mobile:\\\"\\\\u041C\\\\u043E\\\\u0431\\\\u0438\\\\u043B\\\\u044C\\\\u043D\\\\u044B\\\\u0439\\\",browserExtension:\\\"\\\\u0420\\\\u0430\\\\u0441\\\\u0448\\\\u0438\\\\u0440\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\",desktop:\\\"\\\\u0414\\\\u0435\\\\u0441\\\\u043A\\\\u0442\\\\u043E\\\\u043F\\\"},See={connectWallet:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u044C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",dropdown:{copy:\\\"\\\\u0421\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u0442\\\\u044C \\\\u0430\\\\u0434\\\\u0440\\\\u0435\\\\u0441\\\",copied:\\\"\\\\u0410\\\\u0434\\\\u0440\\\\u0435\\\\u0441 \\\\u0441\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u043D!\\\",disconnect:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u044C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\"}},Tee={confirm:{header:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u043E\\\\u0439\\\\u0442\\\\u0435 {{ name }}, \\\\u0447\\\\u0442\\\\u043E\\\\u0431\\\\u044B\\\\xA0\\\\u043F\\\\u043E\\\\u0434\\\\u0442\\\\u0432\\\\u0435\\\\u0440\\\\u0434\\\\u0438\\\\u0442\\\\u044C \\\\u0442\\\\u0440\\\\u0430\\\\u043D\\\\u0437\\\\u0430\\\\u043A\\\\u0446\\\\u0438\\\\u044E.\\\"},transactionSent:{header:\\\"\\\\u0422\\\\u0440\\\\u0430\\\\u043D\\\\u0437\\\\u0430\\\\u043A\\\\u0446\\\\u0438\\\\u044F \\\\u043E\\\\u0442\\\\u043F\\\\u0440\\\\u0430\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0430\\\",text:\\\"\\\\u0412\\\\u0430\\\\u0448\\\\u0430 \\\\u0442\\\\u0440\\\\u0430\\\\u043D\\\\u0437\\\\u0430\\\\u043A\\\\u0446\\\\u0438\\\\u044F\\\\xA0\\\\u0431\\\\u0443\\\\u0434\\\\u0435\\\\u0442 \\\\u043E\\\\u0431\\\\u0440\\\\u0430\\\\u0431\\\\u043E\\\\u0442\\\\u0430\\\\u043D\\\\u0430 \\\\u0447\\\\u0435\\\\u0440\\\\u0435\\\\u0437\\\\xA0\\\\u043D\\\\u0435\\\\u0441\\\\u043A\\\\u043E\\\\u043B\\\\u044C\\\\u043A\\\\u043E \\\\u0441\\\\u0435\\\\u043A\\\\u0443\\\\u043D\\\\u0434.\\\"},transactionCanceled:{header:\\\"\\\\u0422\\\\u0440\\\\u0430\\\\u043D\\\\u0437\\\\u0430\\\\u043A\\\\u0446\\\\u0438\\\\u044F \\\\u043E\\\\u0442\\\\u043C\\\\u0435\\\\u043D\\\\u0435\\\\u043D\\\\u0430\\\",text:\\\"\\\\u0421\\\\u043E\\\\u0441\\\\u0442\\\\u043E\\\\u044F\\\\u043D\\\\u0438\\\\u0435 \\\\u0432\\\\u0430\\\\u0448\\\\u0435\\\\u0433\\\\u043E \\\\u0441\\\\u0447\\\\u0451\\\\u0442\\\\u0430 \\\\u043D\\\\u0435\\\\xA0\\\\u0438\\\\u0437\\\\u043C\\\\u0435\\\\u043D\\\\u0438\\\\u0442\\\\u0441\\\\u044F.\\\"},dataSigned:{header:\\\"\\\\u0414\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u043F\\\\u0438\\\\u0441\\\\u0430\\\\u043D\\\\u044B\\\"},signDataCanceled:{header:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043F\\\\u0438\\\\u0441\\\\u044C \\\\u0434\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u0445 \\\\u043E\\\\u0442\\\\u043C\\\\u0435\\\\u043D\\\\u0435\\\\u043D\\\\u0430\\\"}},Eee={walletOn:\\\"Wallet \\\\u0432\\\",recent:\\\"\\\\u041D\\\\u0435\\\\u0434\\\\u0430\\\\u0432\\\\u043D\\\\u0438\\\\u0439\\\",installed:\\\"\\\\u0423\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\",popular:\\\"\\\\u041F\\\\u043E\\\\u043F\\\\u0443\\\\u043B\\\\u044F\\\\u0440\\\\u0435\\\\u043D\\\"},Aee={loading:\\\"\\\\u041A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0438 \\\\u0437\\\\u0430\\\\u0433\\\\u0440\\\\u0443\\\\u0436\\\\u0430\\\\u044E\\\\u0442\\\\u0441\\\\u044F\\\",wallets:\\\"\\\\u041A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0438\\\",mobileUniversalModal:{connectYourWallet:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 TON\\\\xA0\\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",openWalletOnTelegramOrSelect:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 Wallet \\\\u0432\\\\xA0Telegram \\\\u0438\\\\u043B\\\\u0438\\\\xA0\\\\u0432\\\\u044B\\\\u0431\\\\u0435\\\\u0440\\\\u0435\\\\u0442\\\\u0435 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0435 \\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\",openWalletOnTelegram:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u044B\\\\u0442\\\\u044C Wallet \\\\u0432 Telegram\\\",chooseOtherApplication:\\\"\\\\u0412\\\\u044B\\\\u0431\\\\u0435\\\\u0440\\\\u0438\\\\u0442\\\\u0435 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0435 \\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\",openLink:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u044B\\\\u0442\\\\u044C\\\",scan:\\\"\\\\u041E\\\\u0442\\\\u0441\\\\u043A\\\\u0430\\\\u043D\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0432\\\\u0430\\\\u0448\\\\u0435\\\\u0433\\\\u043E\\\\xA0\\\\u0442\\\\u0435\\\\u043B\\\\u0435\\\\u0444\\\\u043E\\\\u043D\\\\u0430\\\"},desktopUniversalModal:{connectYourWallet:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 TON \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",scan:\\\"\\\\u041E\\\\u0442\\\\u0441\\\\u043A\\\\u0430\\\\u043D\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 QR-\\\\u043A\\\\u043E\\\\u0434 \\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0432\\\\u0430\\\\u0448\\\\u0435\\\\u0433\\\\u043E\\\\xA0\\\\u0442\\\\u0435\\\\u043B\\\\u0435\\\\u0444\\\\u043E\\\\u043D\\\\u0430\\\",availableWallets:\\\"\\\\u0414\\\\u043E\\\\u0441\\\\u0442\\\\u0443\\\\u043F\\\\u043D\\\\u044B\\\\u0435 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0438\\\"},mobileConnectionModal:{showQR:\\\"\\\\u041F\\\\u043E\\\\u043A\\\\u0430\\\\u0437\\\\u0430\\\\u0442\\\\u044C QR-\\\\u043A\\\\u043E\\\\u0434\\\",scanQR:\\\"\\\\u041E\\\\u0442\\\\u0441\\\\u043A\\\\u0430\\\\u043D\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 QR-\\\\u043A\\\\u043E\\\\u0434 \\\\u043D\\\\u0438\\\\u0436\\\\u0435 \\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0432\\\\xA0\\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u0438 {{ name }}, \\\\u0438\\\\u043B\\\\u0438\\\\xA0\\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0442\\\\u0435\\\\u043B\\\\u0435\\\\u0444\\\\u043E\\\\u043D\\\\u0430\\\",missingFeatures:\\\"\\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 {{ name }}, \\\\u0432\\\\u0430\\\\u0448\\\\u0430 \\\\u0432\\\\u0435\\\\u0440\\\\u0441\\\\u0438\\\\u044F \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u043D\\\\u0435\\\\u043E\\\\u0431\\\\u0445\\\\u043E\\\\u0434\\\\u0438\\\\u043C\\\\u044B\\\\u0435 \\\\u0444\\\\u0443\\\\u043D\\\\u043A\\\\u0446\\\\u0438\\\\u0438 \\\\u0434\\\\u043B\\\\u044F \\\\u044D\\\\u0442\\\\u043E\\\\u0433\\\\u043E dApp\\\",wrongNetwork:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0451\\\\u043D\\\\u043D\\\\u044B\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A \\\\u043D\\\\u0430\\\\u0445\\\\u043E\\\\u0434\\\\u0438\\\\u0442\\\\u0441\\\\u044F \\\\u0432 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u0441\\\\u0435\\\\u0442\\\\u0438. \\\\u041F\\\\u043E\\\\u0436\\\\u0430\\\\u043B\\\\u0443\\\\u0439\\\\u0441\\\\u0442\\\\u0430, \\\\u043F\\\\u0435\\\\u0440\\\\u0435\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 \\\\u0441\\\\u0435\\\\u0442\\\\u044C \\\\u0432 {{ name }} \\\\u0438 \\\\u043F\\\\u043E\\\\u043F\\\\u0440\\\\u043E\\\\u0431\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u043D\\\\u043E\\\\u0432\\\\u0430\\\",notSupportedWallet:\\\"{{ name }} \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u0437\\\\u0430\\\\u043F\\\\u0440\\\\u043E\\\\u0448\\\\u0435\\\\u043D\\\\u043D\\\\u043E\\\\u0435 \\\\u0434\\\\u0435\\\\u0439\\\\u0441\\\\u0442\\\\u0432\\\\u0438\\\\u0435. \\\\u041F\\\\u043E\\\\u0436\\\\u0430\\\\u043B\\\\u0443\\\\u0439\\\\u0441\\\\u0442\\\\u0430, \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A, \\\\u043A\\\\u043E\\\\u0442\\\\u043E\\\\u0440\\\\u044B\\\\u0439 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u044D\\\\u0442\\\\u043E\\\",continueIn:\\\"\\\\u041F\\\\u0440\\\\u043E\\\\u0434\\\\u043E\\\\u043B\\\\u0436\\\\u0438\\\\u0442\\\\u0435 \\\\u0432 {{ name }}\\\\u2026\\\",updateWallet:\\\"\\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u044C {{ name }}\\\",chooseAnotherWallet:\\\"\\\\u0412\\\\u044B\\\\u0431\\\\u0440\\\\u0430\\\\u0442\\\\u044C \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",connectionDeclined:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0435\\\\u043D\\\\u0438\\\\u0435 \\\\u043E\\\\u0442\\\\u043A\\\\u043B\\\\u043E\\\\u043D\\\\u0435\\\\u043D\\\\u043E\\\"},desktopConnectionModal:{scanQR:\\\"\\\\u041E\\\\u0442\\\\u0441\\\\u043A\\\\u0430\\\\u043D\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 QR-\\\\u043A\\\\u043E\\\\u0434 \\\\u043D\\\\u0438\\\\u0436\\\\u0435 \\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0432\\\\xA0\\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u0438 {{ name }}, \\\\u0438\\\\u043B\\\\u0438\\\\xA0\\\\u043A\\\\u0430\\\\u043C\\\\u0435\\\\u0440\\\\u043E\\\\u0439 \\\\u0442\\\\u0435\\\\u043B\\\\u0435\\\\u0444\\\\u043E\\\\u043D\\\\u0430\\\",continueInExtension:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u043E\\\\u0439\\\\u0442\\\\u0435 \\\\u0431\\\\u0440\\\\u0430\\\\u0443\\\\u0437\\\\u0435\\\\u0440\\\\u043D\\\\u043E\\\\u0435 \\\\u0440\\\\u0430\\\\u0441\\\\u0448\\\\u0438\\\\u0440\\\\u0435\\\\u043D\\\\u0438\\\\u0435 {{ name }}\\\",dontHaveExtension:\\\"\\\\u041F\\\\u043E\\\\u0445\\\\u043E\\\\u0436\\\\u0435, \\\\u0443 \\\\u0432\\\\u0430\\\\u0441 \\\\u043D\\\\u0435\\\\xA0\\\\u0443\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u043E \\\\u0431\\\\u0440\\\\u0430\\\\u0443\\\\u0437\\\\u0435\\\\u0440\\\\u043D\\\\u043E\\\\u0435\\\\xA0\\\\u0440\\\\u0430\\\\u0441\\\\u0448\\\\u0438\\\\u0440\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\\xA0{{ name }}\\\",missingFeatures:\\\"\\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 {{ name }}, \\\\u0432\\\\u0430\\\\u0448\\\\u0430 \\\\u0432\\\\u0435\\\\u0440\\\\u0441\\\\u0438\\\\u044F \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u043D\\\\u0435\\\\u043E\\\\u0431\\\\u0445\\\\u043E\\\\u0434\\\\u0438\\\\u043C\\\\u044B\\\\u0435 \\\\u0444\\\\u0443\\\\u043D\\\\u043A\\\\u0446\\\\u0438\\\\u0438 \\\\u0434\\\\u043B\\\\u044F \\\\u044D\\\\u0442\\\\u043E\\\\u0433\\\\u043E dApp\\\",wrongNetwork:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0451\\\\u043D\\\\u043D\\\\u044B\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A \\\\u043D\\\\u0430\\\\u0445\\\\u043E\\\\u0434\\\\u0438\\\\u0442\\\\u0441\\\\u044F \\\\u0432 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u0441\\\\u0435\\\\u0442\\\\u0438. \\\\u041F\\\\u043E\\\\u0436\\\\u0430\\\\u043B\\\\u0443\\\\u0439\\\\u0441\\\\u0442\\\\u0430, \\\\u043F\\\\u0435\\\\u0440\\\\u0435\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 \\\\u0441\\\\u0435\\\\u0442\\\\u044C \\\\u0432 {{ name }} \\\\u0438 \\\\u043F\\\\u043E\\\\u043F\\\\u0440\\\\u043E\\\\u0431\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u043D\\\\u043E\\\\u0432\\\\u0430\\\",notSupportedWallet:\\\"{{ name }} \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u0437\\\\u0430\\\\u043F\\\\u0440\\\\u043E\\\\u0448\\\\u0435\\\\u043D\\\\u043D\\\\u043E\\\\u0435 \\\\u0434\\\\u0435\\\\u0439\\\\u0441\\\\u0442\\\\u0432\\\\u0438\\\\u0435. \\\\u041F\\\\u043E\\\\u0436\\\\u0430\\\\u043B\\\\u0443\\\\u0439\\\\u0441\\\\u0442\\\\u0430, \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435 \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A, \\\\u043A\\\\u043E\\\\u0442\\\\u043E\\\\u0440\\\\u044B\\\\u0439 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u044D\\\\u0442\\\\u043E\\\",getWallet:\\\"\\\\u0421\\\\u043A\\\\u0430\\\\u0447\\\\u0430\\\\u0442\\\\u044C {{ name }}\\\",updateWallet:\\\"\\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u044C {{ name }}\\\",chooseAnotherWallet:\\\"\\\\u0412\\\\u044B\\\\u0431\\\\u0440\\\\u0430\\\\u0442\\\\u044C \\\\u0434\\\\u0440\\\\u0443\\\\u0433\\\\u043E\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\",continueOnDesktop:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u043E\\\\u0439\\\\u0442\\\\u0435 {{ name }} \\\\u043D\\\\u0430\\\\xA0\\\\u043A\\\\u043E\\\\u043C\\\\u043F\\\\u044C\\\\u044E\\\\u0442\\\\u0435\\\\u0440\\\\u0435\\\\u2026\\\",openWalletOnTelegram:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u044B\\\\u0442\\\\u044C Wallet \\\\u0432\\\\xA0Telegram\\\",connectionDeclined:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0435\\\\u043D\\\\u0438\\\\u0435 \\\\u043E\\\\u0442\\\\u043A\\\\u043B\\\\u043E\\\\u043D\\\\u0435\\\\u043D\\\\u043E\\\"},infoModal:{whatIsAWallet:\\\"\\\\u0427\\\\u0442\\\\u043E \\\\u0442\\\\u0430\\\\u043A\\\\u043E\\\\u0435 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A?\\\",secureDigitalAssets:\\\"\\\\u041D\\\\u0430\\\\u0434\\\\u0435\\\\u0436\\\\u043D\\\\u043E\\\\u0435 \\\\u0445\\\\u0440\\\\u0430\\\\u043D\\\\u0438\\\\u043B\\\\u0438\\\\u0449\\\\u0435 \\\\u0446\\\\u0438\\\\u0444\\\\u0440\\\\u043E\\\\u0432\\\\u044B\\\\u0445 \\\\u0430\\\\u043A\\\\u0442\\\\u0438\\\\u0432\\\\u043E\\\\u0432\\\",walletProtects:\\\"\\\\u041A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A \\\\u0437\\\\u0430\\\\u0449\\\\u0438\\\\u0449\\\\u0430\\\\u0435\\\\u0442 \\\\u0432\\\\u0430\\\\u0448\\\\u0438 \\\\u0446\\\\u0438\\\\u0444\\\\u0440\\\\u043E\\\\u0432\\\\u044B\\\\u0435 \\\\u0430\\\\u043A\\\\u0442\\\\u0438\\\\u0432\\\\u044B, \\\\u0432\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0430\\\\u044F TON, \\\\u0442\\\\u043E\\\\u043A\\\\u0435\\\\u043D\\\\u044B \\\\u0438\\\\xA0\\\\u043F\\\\u0440\\\\u0435\\\\u0434\\\\u043C\\\\u0435\\\\u0442\\\\u044B \\\\u043A\\\\u043E\\\\u043B\\\\u043B\\\\u0435\\\\u043A\\\\u0446\\\\u0438\\\\u043E\\\\u043D\\\\u0438\\\\u0440\\\\u043E\\\\u0432\\\\u0430\\\\u043D\\\\u0438\\\\u044F, \\\\u0438\\\\xA0\\\\u0443\\\\u043F\\\\u0440\\\\u0430\\\\u0432\\\\u043B\\\\u044F\\\\u0435\\\\u0442 \\\\u0438\\\\u043C\\\\u0438.\\\",controlIdentity:\\\"\\\\u041A\\\\u043E\\\\u043D\\\\u0442\\\\u0440\\\\u043E\\\\u043B\\\\u044C \\\\u0441\\\\u0432\\\\u043E\\\\u0435\\\\u0439 \\\\u043B\\\\u0438\\\\u0447\\\\u043D\\\\u043E\\\\u0441\\\\u0442\\\\u0438 Web3\\\",manageIdentity:\\\"\\\\u0423\\\\u043F\\\\u0440\\\\u0430\\\\u0432\\\\u043B\\\\u044F\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u0432\\\\u043E\\\\u0435\\\\u0439 \\\\u0446\\\\u0438\\\\u0444\\\\u0440\\\\u043E\\\\u0432\\\\u043E\\\\u0439 \\\\u0438\\\\u0434\\\\u0435\\\\u043D\\\\u0442\\\\u0438\\\\u0444\\\\u0438\\\\u043A\\\\u0430\\\\u0446\\\\u0438\\\\u0435\\\\u0439 \\\\u0438\\\\xA0\\\\u0441\\\\xA0\\\\u043B\\\\u0435\\\\u0433\\\\u043A\\\\u043E\\\\u0441\\\\u0442\\\\u044C\\\\u044E \\\\u043F\\\\u043E\\\\u043B\\\\u0443\\\\u0447\\\\u0430\\\\u0439\\\\u0442\\\\u0435 \\\\u0434\\\\u043E\\\\u0441\\\\u0442\\\\u0443\\\\u043F \\\\u043A\\\\xA0\\\\u0434\\\\u0435\\\\u0446\\\\u0435\\\\u043D\\\\u0442\\\\u0440\\\\u0430\\\\u043B\\\\u0438\\\\u0437\\\\u043E\\\\u0432\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u043C \\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u044F\\\\u043C. \\\\u0421\\\\u043E\\\\u0445\\\\u0440\\\\u0430\\\\u043D\\\\u044F\\\\u0439\\\\u0442\\\\u0435 \\\\u043A\\\\u043E\\\\u043D\\\\u0442\\\\u0440\\\\u043E\\\\u043B\\\\u044C \\\\u043D\\\\u0430\\\\u0434\\\\xA0\\\\u0441\\\\u0432\\\\u043E\\\\u0438\\\\u043C\\\\u0438 \\\\u0434\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u043C\\\\u0438 \\\\u0438\\\\xA0\\\\u0431\\\\u0435\\\\u0437\\\\u043E\\\\u043F\\\\u0430\\\\u0441\\\\u043D\\\\u043E \\\\u0443\\\\u0447\\\\u0430\\\\u0441\\\\u0442\\\\u0432\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0432\\\\xA0\\\\u044D\\\\u043A\\\\u043E\\\\u0441\\\\u0438\\\\u0441\\\\u0442\\\\u0435\\\\u043C\\\\u0435\\\\xA0\\\\u0431\\\\u043B\\\\u043E\\\\u043A\\\\u0447\\\\u0435\\\\u0439\\\\u043D\\\\u0430.\\\",effortlessCryptoTransactions:\\\"\\\\u041F\\\\u0440\\\\u043E\\\\u0441\\\\u0442\\\\u044B\\\\u0435 \\\\u043A\\\\u0440\\\\u0438\\\\u043F\\\\u0442\\\\u043E\\\\u0442\\\\u0440\\\\u0430\\\\u043D\\\\u0437\\\\u0430\\\\u043A\\\\u0446\\\\u0438\\\\u0438\\\",easilySend:\\\"\\\\u041B\\\\u0435\\\\u0433\\\\u043A\\\\u043E \\\\u043E\\\\u0442\\\\u043F\\\\u0440\\\\u0430\\\\u0432\\\\u043B\\\\u044F\\\\u0439\\\\u0442\\\\u0435, \\\\u043F\\\\u043E\\\\u043B\\\\u0443\\\\u0447\\\\u0430\\\\u0439\\\\u0442\\\\u0435 \\\\u0438\\\\xA0\\\\u043E\\\\u0442\\\\u0441\\\\u043B\\\\u0435\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u0432\\\\u043E\\\\u0438 \\\\u043A\\\\u0440\\\\u0438\\\\u043F\\\\u0442\\\\u043E\\\\u0432\\\\u0430\\\\u043B\\\\u044E\\\\u0442\\\\u044B. \\\\u041E\\\\u043F\\\\u0442\\\\u0438\\\\u043C\\\\u0438\\\\u0437\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u0432\\\\u043E\\\\u0438 \\\\u043E\\\\u043F\\\\u0435\\\\u0440\\\\u0430\\\\u0446\\\\u0438\\\\u0438 \\\\u0441\\\\xA0\\\\u043F\\\\u043E\\\\u043C\\\\u043E\\\\u0449\\\\u044C\\\\u044E \\\\u0434\\\\u0435\\\\u0446\\\\u0435\\\\u043D\\\\u0442\\\\u0440\\\\u0430\\\\u043B\\\\u0438\\\\u0437\\\\u043E\\\\u0432\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u0445 \\\\u043F\\\\u0440\\\\u0438\\\\u043B\\\\u043E\\\\u0436\\\\u0435\\\\u043D\\\\u0438\\\\u0439.\\\",getAWallet:\\\"\\\\u0421\\\\u043A\\\\u0430\\\\u0447\\\\u0430\\\\u0442\\\\u044C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\"},restoreModal:{title:\\\"\\\\u0412\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\",step1:{title:\\\"\\\\u041D\\\\u0430\\\\u0439\\\\u0434\\\\u0438\\\\u0442\\\\u0435 \\\\u0432\\\\u0430\\\\u0448\\\\u0443 \\\\u0442\\\\u0435\\\\u043A\\\\u0443\\\\u0449\\\\u0443\\\\u044E \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u0443 \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F\\\",text:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u0440\\\\u043E\\\\u0439\\\\u0442\\\\u0435 \\\\u043D\\\\u0430\\\\u0441\\\\u0442\\\\u0440\\\\u043E\\\\u0439\\\\u043A\\\\u0438 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0430 \\\\u0438 \\\\u043D\\\\u0430\\\\u0439\\\\u0434\\\\u0438\\\\u0442\\\\u0435 \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u0443\\\\xA0\\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F\\\"},step2:{title:\\\"\\\\u0421\\\\u043A\\\\u043E\\\\u043F\\\\u0438\\\\u0440\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0432\\\\u0430\\\\u0448\\\\u0443 \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u0443 \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F\\\",text:\\\"\\\\u0417\\\\u0430\\\\u043F\\\\u0438\\\\u0448\\\\u0438\\\\u0442\\\\u0435 \\\\u0435\\\\u0451 \\\\u0438\\\\u043B\\\\u0438 \\\\u0441\\\\u043E\\\\u0445\\\\u0440\\\\u0430\\\\u043D\\\\u0438\\\\u0442\\\\u0435 \\\\u0432 \\\\u0431\\\\u0435\\\\u0437\\\\u043E\\\\u043F\\\\u0430\\\\u0441\\\\u043D\\\\u043E\\\\u043C \\\\u043C\\\\u0435\\\\u0441\\\\u0442\\\\u0435\\\"},step3:{title:\\\"\\\\u0412\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 \\\\u0432 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u043C\\\\u043E\\\\u043C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0435\\\",text:\\\"\\\\u0412\\\\u0432\\\\u0435\\\\u0434\\\\u0438\\\\u0442\\\\u0435 \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u0443 \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F \\\\u0434\\\\u043B\\\\u044F \\\\u0434\\\\u043E\\\\u0441\\\\u0442\\\\u0443\\\\u043F\\\\u0430\\\\xA0\\\\u043A\\\\xA0\\\\u0432\\\\u0430\\\\u0448\\\\u0435\\\\u043C\\\\u0443\\\\xA0\\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0443\\\"}},allWallets:{walletsBelowNotSupported:\\\"\\\\u041A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0438 \\\\u043D\\\\u0438\\\\u0436\\\\u0435 \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u044E\\\\u0442 \\\\u0432\\\\u0441\\\\u0435 \\\\u0444\\\\u0443\\\\u043D\\\\u043A\\\\u0446\\\\u0438\\\\u0438 \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0451\\\\u043D\\\\u043D\\\\u043E\\\\u0433\\\\u043E \\\\u0441\\\\u0435\\\\u0440\\\\u0432\\\\u0438\\\\u0441\\\\u0430. \\\\u0412\\\\u044B \\\\u043C\\\\u043E\\\\u0436\\\\u0435\\\\u0442\\\\u0435 \\\\u0438\\\\u0441\\\\u043F\\\\u043E\\\\u043B\\\\u044C\\\\u0437\\\\u043E\\\\u0432\\\\u0430\\\\u0442\\\\u044C \\\\u0441\\\\u0432\\\\u043E\\\\u044E \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u0443 \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F \\\\u0432 \\\\u043E\\\\u0434\\\\u043D\\\\u043E\\\\u043C \\\\u0438\\\\u0437 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u043C\\\\u044B\\\\u0445 \\\\u0432\\\\u044B\\\\u0448\\\\u0435 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u043E\\\\u0432.\\\",walletNotSupportService:\\\"{{ name }} \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0451\\\\u043D\\\\u043D\\\\u044B\\\\u0439 \\\\u0441\\\\u0435\\\\u0440\\\\u0432\\\\u0438\\\\u0441\\\"},featureNotSupported:{wallet:{title:\\\"{{ name }} \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u0437\\\\u0430\\\\u043F\\\\u0440\\\\u043E\\\\u0448\\\\u0435\\\\u043D\\\\u043D\\\\u043E\\\\u0435\\\\xA0\\\\u0434\\\\u0435\\\\u0439\\\\u0441\\\\u0442\\\\u0432\\\\u0438\\\\u0435\\\",description:\\\"\\\\u0423\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u043C\\\\u044B\\\\u0439 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A \\\\u0438\\\\u0437 \\\\u0441\\\\u043F\\\\u0438\\\\u0441\\\\u043A\\\\u0430 \\\\u043D\\\\u0438\\\\u0436\\\\u0435, \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 \\\\u0435\\\\u0433\\\\u043E \\\\u0441 \\\\u043F\\\\u043E\\\\u043C\\\\u043E\\\\u0449\\\\u044C\\\\u044E \\\\u0444\\\\u0440\\\\u0430\\\\u0437\\\\u044B \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u0438\\\\u044F, \\\\u0437\\\\u0430\\\\u0442\\\\u0435\\\\u043C \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u0435\\\\u0441\\\\u044C \\\\u0438 \\\\u043F\\\\u043E\\\\u043F\\\\u0440\\\\u043E\\\\u0431\\\\u0443\\\\u0439\\\\u0442\\\\u0435 \\\\u0441\\\\u043D\\\\u043E\\\\u0432\\\\u0430.\\\",info:\\\"\\\\u0423\\\\u0437\\\\u043D\\\\u0430\\\\u0442\\\\u044C, \\\\u043A\\\\u0430\\\\u043A \\\\u0432\\\\u043E\\\\u0441\\\\u0441\\\\u0442\\\\u0430\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u044C \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A\\\"},version:{description:\\\"\\\\u0422\\\\u0435\\\\u043A\\\\u0443\\\\u0449\\\\u0430\\\\u044F \\\\u0432\\\\u0435\\\\u0440\\\\u0441\\\\u0438\\\\u044F {{ name }} \\\\u0438\\\\u043B\\\\u0438 \\\\u0442\\\\u0438\\\\u043F \\\\u043A\\\\u043E\\\\u043D\\\\u0442\\\\u0440\\\\u0430\\\\u043A\\\\u0442\\\\u0430 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0430 \\\\u043D\\\\u0435 \\\\u043F\\\\u043E\\\\u0434\\\\u0434\\\\u0435\\\\u0440\\\\u0436\\\\u0438\\\\u0432\\\\u0430\\\\u0435\\\\u0442 \\\\u043D\\\\u0435\\\\u043E\\\\u0431\\\\u0445\\\\u043E\\\\u0434\\\\u0438\\\\u043C\\\\u044B\\\\u0435 \\\\u0444\\\\u0443\\\\u043D\\\\u043A\\\\u0446\\\\u0438\\\\u0438. \\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u0435 \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u0451\\\\u043A, \\\\u0447\\\\u0442\\\\u043E\\\\u0431\\\\u044B \\\\u043F\\\\u0440\\\\u043E\\\\u0434\\\\u043E\\\\u043B\\\\u0436\\\\u0438\\\\u0442\\\\u044C.\\\",updateButton:\\\"\\\\u041E\\\\u0431\\\\u043D\\\\u043E\\\\u0432\\\\u0438\\\\u0442\\\\u044C {{ name }}\\\",aboutW5:\\\"\\\\u041F\\\\u0440\\\\u043E W5\\\"},disconnect:{title:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u0442\\\\u0432\\\\u0435\\\\u0440\\\\u0434\\\\u0438\\\\u0442\\\\u0435 \\\\u043E\\\\u0442\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0435\\\\u043D\\\\u0438\\\\u0435\\\",description:\\\"\\\\u0412\\\\u044B \\\\u0431\\\\u0443\\\\u0434\\\\u0435\\\\u0442\\\\u0435 \\\\u043E\\\\u0442\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0435\\\\u043D\\\\u044B \\\\u043E\\\\u0442 \\\\u0442\\\\u0435\\\\u043A\\\\u0443\\\\u0449\\\\u0435\\\\u0433\\\\u043E \\\\u043A\\\\u043E\\\\u0448\\\\u0435\\\\u043B\\\\u044C\\\\u043A\\\\u0430 \\\\u0438 \\\\u043F\\\\u0435\\\\u0440\\\\u0435\\\\u043D\\\\u0430\\\\u043F\\\\u0440\\\\u0430\\\\u0432\\\\u043B\\\\u0435\\\\u043D\\\\u044B \\\\u043D\\\\u0430 \\\\u043F\\\\u043E\\\\u0434\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0435\\\\u043D\\\\u0438\\\\u0435 {{ name }}.\\\",button:\\\"\\\\u041E\\\\u0442\\\\u043A\\\\u043B\\\\u044E\\\\u0447\\\\u0438\\\\u0442\\\\u044C\\\\u0441\\\\u044F\\\"}}},kee={confirmTransaction:{header:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u0442\\\\u0432\\\\u0435\\\\u0440\\\\u0434\\\\u0438\\\\u0442\\\\u0435 \\\\u0434\\\\u0435\\\\u0439\\\\u0441\\\\u0442\\\\u0432\\\\u0438\\\\u0435 \\\\u0432\\\\xA0{{ name }}\\\",text:\\\"\\\\u042D\\\\u0442\\\\u043E \\\\u0437\\\\u0430\\\\u0439\\\\u043C\\\\u0435\\\\u0442 \\\\u043F\\\\u0430\\\\u0440\\\\u0443 \\\\u0441\\\\u0435\\\\u043A\\\\u0443\\\\u043D\\\\u0434.\\\"},signData:{header:\\\"\\\\u041F\\\\u043E\\\\u0434\\\\u043F\\\\u0438\\\\u0448\\\\u0438\\\\u0442\\\\u0435 \\\\u0434\\\\u0430\\\\u043D\\\\u043D\\\\u044B\\\\u0435 \\\\u0432\\\\xA0{{ name }}\\\",text:\\\"\\\\u042D\\\\u0442\\\\u043E \\\\u0437\\\\u0430\\\\u0439\\\\u043C\\\\u0435\\\\u0442 \\\\u043F\\\\u0430\\\\u0440\\\\u0443 \\\\u0441\\\\u0435\\\\u043A\\\\u0443\\\\u043D\\\\u0434.\\\"},transactionSent:\\\"$notifications.transactionSent\\\",transactionCanceled:\\\"$notifications.transactionCanceled\\\",dataSigned:\\\"$notifications.dataSigned\\\",signDataCanceled:\\\"$notifications.signDataCanceled\\\"},Bee={common:Cee,button:See,notifications:Tee,walletItem:Eee,walletModal:Aee,actionModal:kee},Mee={en:DO(_ee),ru:DO(Bee)};lh=Qb(),j6=Symbol(\\\"store-raw\\\"),Qf=Symbol(\\\"store-node\\\"),ys=Symbol(\\\"store-has\\\"),HI=Symbol(\\\"store-self\\\");Iee={get(t,e,n){if(e===j6)return t;if(e===Ia)return n;if(e===Bb)return FI(t),n;let r=Db(t,Qf),i=r[e],a=i?i():t[e];if(e===Qf||e===ys||e===\\\"__proto__\\\")return a;if(!i){let o=Object.getOwnPropertyDescriptor(t,e);B6()&&(typeof a!=\\\"function\\\"||t.hasOwnProperty(e))&&!(o&&o.get)&&(a=Eg(r,e,a)())}return zb(a)?WI(a):a},has(t,e){return e===j6||e===Ia||e===Bb||e===Qf||e===ys||e===\\\"__proto__\\\"?!0:(B6()&&Eg(Db(t,ys),e)(),e in t)},set(){return!0},deleteProperty(){return!0},ownKeys:Oee,getOwnPropertyDescriptor:Ree};KI={constant:{black:\\\"#000000\\\",white:\\\"#FFFFFF\\\"},connectButton:{background:\\\"#0098EA\\\",foreground:\\\"#FFFFFF\\\"},accent:\\\"#0098EA\\\",telegramButton:\\\"#0098EA\\\",icon:{primary:\\\"#0F0F0F\\\",secondary:\\\"#7A8999\\\",tertiary:\\\"#C1CAD2\\\",success:\\\"#29CC6A\\\",error:\\\"#F5A73B\\\"},background:{primary:\\\"#FFFFFF\\\",secondary:\\\"#F1F3F5\\\",segment:\\\"#FFFFFF\\\",tint:\\\"#F1F3F5\\\",qr:\\\"#F1F3F5\\\"},text:{primary:\\\"#0F0F0F\\\",secondary:\\\"#6A7785\\\"}},Nee={constant:{black:\\\"#000000\\\",white:\\\"#FFFFFF\\\"},connectButton:{background:\\\"#0098EA\\\",foreground:\\\"#FFFFFF\\\"},accent:\\\"#E5E5EA\\\",telegramButton:\\\"#31A6F5\\\",icon:{primary:\\\"#E5E5EA\\\",secondary:\\\"#909099\\\",tertiary:\\\"#434347\\\",success:\\\"#29CC6A\\\",error:\\\"#F5A73B\\\"},background:{primary:\\\"#121214\\\",secondary:\\\"#18181A\\\",segment:\\\"#262629\\\",tint:\\\"#222224\\\",qr:\\\"#FFFFFF\\\"},text:{primary:\\\"#E5E5EA\\\",secondary:\\\"#7D7D85\\\"}};[jee,s_]=o_({theme:Wn.LIGHT,colors:KI,borderRadius:\\\"m\\\"}),ZI={[Wn.LIGHT]:KI,[Wn.DARK]:Nee},uo={[Wn.LIGHT]:void 0,[Wn.DARK]:void 0};Lee=G.div`\\n    background-color: ${t=>t.theme.colors.background.secondary};\\n`,vu=t=>{let e,[n,r]=Je(null);return Zn(()=>{let i=new window.Image;return i.src=t.src,i.alt=t.alt||\\\"\\\",i.setAttribute(\\\"draggable\\\",\\\"false\\\"),t.class&&i.classList.add(t.class),i.complete?r(i):(i.addEventListener(\\\"load\\\",()=>r(i)),()=>i.removeEventListener(\\\"load\\\",()=>r(i)))}),[p(at,{get when(){return n()},get children(){return n()}}),p(at,{get when(){return!n()},get children(){return p(Lee,{get class(){return t.class},ref(i){var a=e;typeof a==\\\"function\\\"?a(i):e=i}})}})]},ti={};try{let t=location.hash.toString();ti=Kee(t)}catch{}GI=\\\"ton-connect-session_storage_launchParams\\\";Hee(\\\"tapps/launchParams\\\");YI(\\\"__telegram__initParams\\\");YI(GI);try{Object.entries(ti).length>0&&qee(GI,JSON.stringify(ti))}catch{}mu=\\\"unknown\\\";ti?.tgWebAppPlatform&&(mu=(_O=ti.tgWebAppPlatform)!=null?_O:\\\"unknown\\\");if(mu===\\\"unknown\\\"){let t=Vi();mu=(TO=(SO=(CO=t?.Telegram)==null?void 0:CO.WebApp)==null?void 0:SO.platform)!=null?TO:\\\"unknown\\\"}Ag=\\\"6.0\\\";ti?.tgWebAppVersion&&(Ag=ti.tgWebAppVersion);if(!Ag){let t=Vi();Ag=(kO=(AO=(EO=t?.Telegram)==null?void 0:EO.WebApp)==null?void 0:AO.version)!=null?kO:\\\"6.0\\\"}qO=ti?.tgWebAppData;try{if(qO){let e=c_(qO).user;if(e){let n=JSON.parse(e);typeof n.id==\\\"number\\\"&&typeof n.is_premium==\\\"boolean\\\"&&(QI={id:n.id,isPremium:n.is_premium})}}}catch{}du={mobile:440,tablet:1020};Rg=\\\"@media (hover: none)\\\",Og=\\\"@media not all and (hover: none)\\\",Gee={m:\\\"100vh\\\",s:\\\"8px\\\",none:\\\"0\\\"},d6={s:.02,m:.04},Qee=G.button`\\n    display: ${t=>t.leftIcon||t.rightIcon?\\\"flex\\\":\\\"inline-block\\\"};\\n    gap: ${t=>t.leftIcon||t.rightIcon?\\\"6px\\\":\\\"unset\\\"};\\n    align-items: ${t=>t.leftIcon||t.rightIcon?\\\"center\\\":\\\"unset\\\"};\\n    justify-content: ${t=>t.leftIcon||t.rightIcon?\\\"space-between\\\":\\\"unset\\\"};\\n    background-color: ${t=>t.appearance===\\\"flat\\\"?\\\"transparent\\\":t.appearance===\\\"secondary\\\"?t.theme.colors.background.tint:bu(t.theme.colors.accent,.12)};\\n    color: ${t=>t.appearance===\\\"secondary\\\"?t.theme.colors.text.primary:t.theme.colors.accent};\\n\\n    padding: ${t=>t.appearance===\\\"flat\\\"?\\\"0\\\":\\\"9px 16px\\\"};\\n    padding-left: ${t=>t.leftIcon&&t.appearance!==\\\"flat\\\"?\\\"12px\\\":\\\"16px\\\"};\\n    padding-right: ${t=>t.rightIcon&&t.appearance!==\\\"flat\\\"?\\\"12px\\\":\\\"16px\\\"};\\n    border: none;\\n    border-radius: ${t=>Gee[t.theme.borderRadius]};\\n    cursor: ${t=>t.disabled?\\\"not-allowed\\\":\\\"pointer\\\"};\\n\\n    font-size: 14px;\\n    font-weight: 510;\\n    line-height: 18px;\\n\\n    transition: transform 0.125s ease-in-out;\\n\\n    ${Og} {\\n        &:hover {\\n            transform: ${t=>t.disabled?\\\"unset\\\":`scale(${1+d6[t.scale]})`};\\n        }\\n    }\\n\\n    &:active {\\n        transform: ${t=>t.disabled?\\\"unset\\\":`scale(${1-d6[t.scale]})`};\\n    }\\n\\n    ${Rg} {\\n        &:active {\\n            transform: ${t=>t.disabled?\\\"unset\\\":`scale(${1-d6[t.scale]*2})`};\\n        }\\n    }\\n`;un=t=>{let e=Ig(t);return p(Qee,fo({type:\\\"button\\\",get appearance(){return t.appearance||\\\"primary\\\"},get class(){return t.class},onClick:n=>{var r;return(r=t.onClick)==null?void 0:r.call(t,n)},onMouseEnter:n=>{var r;return(r=t.onMouseEnter)==null?void 0:r.call(t,n)},onMouseLeave:n=>{var r;return(r=t.onMouseLeave)==null?void 0:r.call(t,n)},ref(n){var r=t.ref;typeof r==\\\"function\\\"?r(n):t.ref=n},get disabled(){return t.disabled},get scale(){return t.scale||\\\"m\\\"},get leftIcon(){return!!t.leftIcon},get rightIcon(){return!!t.rightIcon},\\\"data-tc-button\\\":\\\"true\\\"},e,{get children(){return[Xe(()=>t.leftIcon),Xe(()=>t.children),Xe(()=>t.rightIcon)]}}))},Xee=()=>{},VO=(t,e)=>e();Hb=t=>t instanceof Element;rte={inout:\\\"in-out\\\",outin:\\\"out-in\\\"},Jb=t=>{let e=eU(t);return Jee(nte(()=>t.children),{mode:rte[t.mode],appear:t.appear,onEnter(n,r){nU(e(),t,n,r)},onExit(n,r){rU(e(),t,n,r)}})},ite=t=>{let e=eU(t);return ete(tte(()=>t.children).toArray,{appear:t.appear,onChange({added:n,removed:r,finishRemoved:i,list:a}){let o=e();for(let l of n)nU(o,t,l);let s=[];for(let l of a)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&s.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:c,rect:u}of s)if(c.isConnected){let d=c.getBoundingClientRect(),h=u.left-d.left,g=u.top-d.top;(h||g)&&(c.style.transform=`translate(${h}px, ${g}px)`,c.style.transitionDuration=\\\"0s\\\",l.push(c))}document.body.offsetHeight;for(let c of l){let u=function(d){(d.target===c||/transform$/.test(d.propertyName))&&(c.removeEventListener(\\\"transitionend\\\",u),c.classList.remove(...o.move))};c.classList.add(...o.move),c.style.transform=c.style.transitionDuration=\\\"\\\",c.addEventListener(\\\"transitionend\\\",u)}});for(let l of r)rU(o,t,l,()=>i([l]))}})};iU=\\\"androidBackHandler\\\",lte={[iU]:!0},cte=Dt('<svg><path fill-rule=evenodd clip-rule=evenodd d=\\\"M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z\\\"></svg>',!1,!0,!1),ute={left:0,top:90,right:180,bottom:270},aU=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary,r=()=>t.direction||\\\"left\\\",i=G(\\\"svg\\\")`\\n        transform: rotate(${a=>ute[a.svgDirection]}deg);\\n        transition: transform 0.1s ease-in-out;\\n    `;return p(i,{xmlns:\\\"http://www.w3.org/2000/svg\\\",width:\\\"16\\\",height:\\\"16\\\",viewBox:\\\"0 0 16 16\\\",fill:\\\"none\\\",get svgDirection(){return r()},get children(){var a=cte();return zt(()=>Qe(a,\\\"fill\\\",n())),a}})},dte=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M2.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z\\\">'),fte=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=dte(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},hte=G.button`\\n    padding: 0;\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    width: 32px;\\n    height: 32px;\\n    border-radius: 50%;\\n    background-color: ${t=>t.theme.colors.background.tint};\\n    border: none;\\n    cursor: pointer;\\n\\n    transition: transform 0.125s ease-in-out;\\n\\n    ${Og} {\\n        &:hover {\\n            transform: scale(1.04);\\n        }\\n    }\\n\\n    &:active {\\n        transform: scale(0.96);\\n    }\\n\\n    ${Rg} {\\n        &:active {\\n            transform: scale(0.92);\\n        }\\n    }\\n`,_s=t=>{let e=Ig(t),n=()=>t.icon||\\\"close\\\";return p(hte,fo({get class(){return t.class},onClick:()=>t.onClick(),\\\"data-tc-icon-button\\\":\\\"true\\\"},e,{get children(){return[p(at,{get when(){return!!t.children},get children(){return t.children}}),p(at,{get when(){return!t.children},get children(){return p(vs,{get children(){return[p(qt,{get when(){return n()===\\\"close\\\"},get children(){return p(fte,{get fill(){return t.fill}})}}),p(qt,{get when(){return n()===\\\"arrow\\\"},get children(){return p(aU,{get fill(){return t.fill}})}}),p(qt,{get when(){return n()===\\\"question\\\"},get children(){return p(wne,{get fill(){return t.fill}})}}),p(qt,{get when(){return typeof n()!=\\\"string\\\"},get children(){return n()}})]}})}})]}}))},Xf={m:\\\"24px\\\",s:\\\"16px\\\",none:\\\"0\\\"},gte=G.div`\\n    display: flex;\\n    position: fixed;\\n    z-index: 1000;\\n    left: 0;\\n    top: 0;\\n    width: 100%;\\n    height: 100%;\\n    background-color: rgba(0, 0, 0, 0.4);\\n    padding: 20px 0;\\n    overflow-y: auto;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        padding-bottom: 0;\\n    }\\n`,pte=ws`\\n    box-shadow:\\n        0 4px 16px rgba(0, 0, 0, 0.08),\\n        0 16px 64px rgba(0, 0, 0, 0.16);\\n    width: fit-content;\\n    margin: auto;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        width: 100%;\\n        height: fit-content;\\n        margin: auto 0 0 0;\\n    }\\n`,mte=G.div`\\n    position: relative;\\n    min-height: 100px;\\n    width: 416px;\\n    padding: 44px 56px 24px;\\n\\n    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);\\n\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    border-radius: ${t=>Xf[t.theme.borderRadius]};\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        width: 100%;\\n    }\\n`,yte=G(_s)`\\n    position: absolute;\\n    right: 16px;\\n    top: 16px;\\n`,bte=G.div`\\n    display: flex;\\n    justify-content: space-between;\\n    align-items: center;\\n    padding: 16px 16px 16px 18px;\\n    border-radius: 0 0 ${t=>Xf[t.theme.borderRadius]}\\n        ${t=>Xf[t.theme.borderRadius]};\\n`,vte=G(_s)`\\n    background-color: ${t=>bu(t.theme.colors.icon.secondary,.12)};\\n`,q6=class{constructor(){this.currentTime=0}},oU=class bg{constructor(){this.currentTime=0,this.playbackRate=1,this.startTime=null,this.timeline=new q6,this.finished=Promise.resolve(this),this.effect=null,this.id=\\\"\\\",this.pending=!1,this.playState=\\\"finished\\\",this.replaceState=\\\"active\\\",this.ready=Promise.resolve(this),this.oncancel=null,this.onfinish=null,this.onremove=null}static create(){return bg._instance||(tee(\\\"Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API.\\\"),bg._instance=new bg),bg._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,n,r){}dispatchEvent(e){return!1}removeEventListener(e,n,r){}updatePlaybackRate(e){}commitStyles(){}persist(){}};oU._instance=null;wte=oU;xte=Dt(\\\"<div>\\\"),_te=ate,Cte=ote,Ste=ste,sU=t=>{let e=Bn(),n=Ig(t);return Zn(()=>{t.opened?iee():aee()}),p(Jb,{onBeforeEnter:r=>{let i=Gf(\\\"mobile\\\")?200:100;va(r,[{opacity:0},{opacity:1}],{duration:i}),Gf(\\\"mobile\\\")&&va(r.firstElementChild,[{transform:\\\"translateY(390px)\\\"},{transform:\\\"translateY(0)\\\"}],{duration:i})},onExit:(r,i)=>{let a=Gf(\\\"mobile\\\")?200:100,o=va(r,[{opacity:1},{opacity:0}],{duration:a});if(Gf(\\\"mobile\\\")){let s=va(r.firstElementChild,[{transform:\\\"translateY(0)\\\"},{transform:\\\"translateY(390px)\\\"}],{duration:a});Promise.all([o.finished,s.finished]).then(i)}else o.finished.then(i)},get children(){return p(at,{get when(){return t.opened},get children(){return p(gte,fo({\\\"data-tc-modal\\\":\\\"true\\\"},n,{get children(){var r=xte();return gu(Ste,r,()=>({isEnabled:t.enableAndroidBackHandler,onClose:()=>t.onClose()})),gu(Cte,r,()=>()=>t.onClose()),gu(_te,r,()=>()=>t.onClose()),xr(r,p(mte,{get class(){return t.class},get children(){return[p(yte,{icon:\\\"close\\\",onClick:()=>t.onClose()}),Xe(()=>t.children)]}}),null),xr(r,p(at,{get when(){return t.onClickQuestion&&t.showFooter},get children(){return p(bte,{get children(){return[p(bne,{}),p(vte,{get onClick(){return t.onClickQuestion},icon:\\\"question\\\"})]}})}}),null),zt(()=>n_(r,(0,wg.default)(pte,ws`\\n                                border-radius: ${Xf[e.borderRadius]};\\n                                background-color: ${e.colors.background.tint};\\n\\n                                ${Hi(\\\"mobile\\\")} {\\n                                    border-radius: ${Xf[e.borderRadius]}\\n                                        ${Xf[e.borderRadius]} 0 0;\\n                                }\\n                            `))),r}}))}})}})},Tte={m:\\\"22px\\\",s:\\\"12px\\\",none:\\\"0\\\"},Ete={m:\\\"18px\\\",s:\\\"8px\\\",none:\\\"0\\\"},Ate=G.div`\\n    display: grid;\\n    grid-template: 1fr / 1fr 1fr;\\n    width: fit-content;\\n    justify-items: center;\\n    gap: 4px;\\n\\n    position: relative;\\n    padding: 4px;\\n    border-radius: ${t=>Tte[t.theme.borderRadius]};\\n\\n    background-color: ${t=>t.theme.colors.background.secondary};\\n`,kte=G.div`\\n    position: absolute;\\n    top: 4px;\\n    left: 4px;\\n\\n    height: calc(100% - 8px);\\n    width: calc(50% - 4px);\\n\\n    border-radius: ${t=>Ete[t.theme.borderRadius]};\\n    background-color: ${t=>t.theme.colors.background.segment};\\n\\n    transform: ${t=>t.right?\\\"translateX(100%)\\\":\\\"translateX(0)\\\"};\\n\\n    transition: transform 0.13s ease-in-out;\\n`,HO=G.input`\\n    display: none;\\n`,WO=G.label`\\n    padding: 9px 12px;\\n    z-index: 1;\\n\\n    cursor: ${t=>t.isActive?\\\"default\\\":\\\"pointer\\\"};\\n\\n    transition: transform 0.13s ease-in-out;\\n\\n    &:hover {\\n        transform: ${t=>t.isActive?\\\"none\\\":\\\"scale(1.025)\\\"};\\n    }\\n\\n    > * {\\n        ${t=>t.isActive?\\\"\\\":`color: ${t.theme.colors.text.secondary};`}\\n    }\\n`,Bte=t=>{let e=\\\"tabBar\\\"+Math.floor(Math.random()*1e4);return p(Ate,{get class(){return t.class},\\\"data-tc-tab-bar\\\":\\\"true\\\",get children(){return[p(kte,{get right(){return t.selectedTabIndex===1}}),p(WO,{get isActive(){return t.selectedTabIndex===0},get children(){return[p(HO,{type:\\\"radio\\\",name:e,get checked(){return t.selectedTabIndex===0},onInput:()=>{var n;return(n=t.onSelectedTabIndexChange)==null?void 0:n.call(t,0)}}),Xe(()=>t.tab1)]}}),p(WO,{get isActive(){return t.selectedTabIndex===1},get children(){return[p(HO,{type:\\\"radio\\\",get checked(){return t.selectedTabIndex===1},name:e,onInput:()=>{var n;return(n=t.onSelectedTabIndexChange)==null?void 0:n.call(t,1)}}),Xe(()=>t.tab2)]}})]}})},Mte={m:\\\"16px\\\",s:\\\"12px\\\",none:\\\"0\\\"},Rte={m:\\\"12px\\\",s:\\\"8px\\\",none:\\\"0\\\"},lU=256,V6=60,FO=48,$O=24,Ab=G.div`\\n    width: 52px;\\n    height: 52px;\\n    background: transparent;\\n    position: absolute;\\n    right: 0;\\n    bottom: 0;\\n\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    transition: transform 0.125s ease-in-out;\\n`,Ote=G.button`\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    position: relative;\\n    background-color: ${t=>t.theme.colors.background.qr};\\n    border-radius: ${t=>Mte[t.theme.borderRadius]};\\n    padding: ${ho($O)} 0;\\n    height: ${ho(lU+$O*2)};\\n    width: 100%;\\n\\n    overflow: hidden;\\n    cursor: pointer;\\n    border: none;\\n\\n    ${Og} {\\n        &:hover {\\n            ${Ab.class} {\\n                transform: scale(1.04);\\n            }\\n        }\\n    }\\n\\n    &:active {\\n        ${Ab.class} {\\n            transform: scale(0.96);\\n        }\\n    }\\n\\n    ${Rg} {\\n        &:active {\\n            ${Ab.class} {\\n                transform: scale(0.92);\\n            }\\n        }\\n    }\\n`,Ite=G.div`\\n    position: relative;\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    margin: 0 auto;\\n\\n    > div:first-child {\\n        display: flex;\\n        align-items: center;\\n        justify-content: center;\\n    }\\n\\n    rect {\\n        fill: transparent;\\n    }\\n\\n    path {\\n        fill: ${t=>t.theme.colors.constant.black};\\n    }\\n`,Ute=G.div`\\n    position: absolute;\\n    width: ${ho(V6)};\\n    height: ${ho(V6)};\\n    background: ${t=>t.theme.colors.background.qr};\\n\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n`,Nte=G(vu)`\\n    width: ${t=>ho(t.size)};\\n    height: ${t=>ho(t.size)};\\n    border-radius: ${t=>Rte[t.theme.borderRadius]};\\n    background-color: ${t=>t.theme.colors.background.qr};\\n`,Pte=G.div`\\n    position: absolute;\\n    bottom: 14px;\\n    left: 50%;\\n    transform: translate(-50%, 0);\\n\\n    display: flex;\\n    gap: 6px;\\n    align-items: center;\\n    border-radius: 18px;\\n    min-width: 126px;\\n    padding: 9px 16px 9px 10px;\\n\\n    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));\\n    background-color: ${t=>t.theme.colors.background.segment};\\n`;f6={exports:{}};Dte=zte(),Lte=jte(Dte);Vte=Dt(\\\"<div>\\\"),tv=t=>{let e,n,r,[i,a]=Je(!1),[o,s]=Je(FO);Zn(()=>{let h=Lte(0,\\\"L\\\");h.addData(t.sourceUrl),h.make(),e.innerHTML=h.createSvgTag(4,0);let g=e.firstElementChild.clientWidth,y=Math.round(lU/g*1e5)/1e5;if(r){let E=Math.ceil(V6/(y*4))*4,N=ho(Math.ceil((g-E)/8)*4);r.style.top=N,r.style.left=N,r.style.height=ho(E),r.style.width=ho(E),s(Math.round(FO/y))}n.style.transform=`scale(${y})`});let l=null;return p(Ote,{get class(){return t.class},onClick:()=>{a(!0),ev(t.sourceUrl),l!=null&&clearTimeout(l),l=setTimeout(()=>a(!1),1500)},get children(){return[p(Ite,{ref(u){var d=n;typeof d==\\\"function\\\"?d(u):n=u},get children(){return[(()=>{var u=Vte(),d=e;return typeof d==\\\"function\\\"?gu(d,u):e=u,u})(),p(at,{get when(){return t.imageUrl},get children(){return p(Ute,{ref(u){var d=r;typeof d==\\\"function\\\"?d(u):r=u},get children(){return p(Nte,{get src(){return t.imageUrl},alt:\\\"\\\",get size(){return o()}})}})}})]}}),p(Jb,{onBeforeEnter:u=>{va(u,[{opacity:0,transform:\\\"translate(-50%, 44px)\\\"},{opacity:1,transform:\\\"translate(-50%, 0)\\\"}],{duration:150,easing:\\\"ease-out\\\"})},onExit:(u,d)=>{va(u,[{opacity:1,transform:\\\"translate(-50%, 0)\\\"},{opacity:0,transform:\\\"translate(-50%, 44px)\\\"}],{duration:150,easing:\\\"ease-out\\\"}).finished.then(()=>{d()})},get children(){return p(at,{get when(){return i()&&!t.disableCopy},get children(){return p(Pte,{get children(){return[p(rv,{size:\\\"xs\\\"}),p(Ti,{translationKey:\\\"common.linkCopied\\\",children:\\\"Link Copied\\\"})]}})}})}}),p(at,{get when(){return!t.disableCopy},get children(){return p(Ab,{get children(){return p(Lne,{})}})}})]}})},H6=(t,e,n)=>{let r=e.trim().split(\\\".\\\").reduce((i,a)=>i?i[a]:void 0,t);return r!==void 0?r:n},Hte=(t,e,n=/{{(.*?)}}/g)=>t.replace(n,(r,i)=>H6(e,i,\\\"\\\")),Wte=(t={},e=navigator.language in t?navigator.language:Object.keys(t)[0])=>{let[n,r]=Je(e),[i,a]=o_(t);return[(l,c,u)=>{let d=H6(i[n()],l,u||\\\"\\\");return typeof d==\\\"function\\\"?d(c):typeof d==\\\"string\\\"?Hte(d,c||{}):d},{add(l,c){a(l,u=>Object.assign(u||{},c))},locale:l=>l?r(l):n(),dict:l=>H6(i,l)}]},cU=Qb({}),Pa=()=>Vr(cU),Fte=G.div`\\n    font-style: normal;\\n    font-weight: ${t=>t.fontWeight};\\n    font-size: ${t=>t.fontSize};\\n    line-height: ${t=>t.lineHeight};\\n\\n    color: ${t=>t.color};\\n`,Ti=t=>{let e=Bn(),[n]=Pa(),r,i=()=>t.color||e.colors.text.primary,a=fo({fontSize:\\\"14px\\\",fontWeight:\\\"510\\\",lineHeight:\\\"130%\\\"},t);return Zn(()=>{r&&a.cursor!==\\\"unset\\\"&&getComputedStyle(r).cursor!==\\\"pointer\\\"&&(r.style.cursor=\\\"default\\\")}),p(Fte,{get fontSize(){return a.fontSize},get fontWeight(){return a.fontWeight},get lineHeight(){return a.lineHeight},get color(){return i()},get class(){return a.class},ref(o){var s=r;typeof s==\\\"function\\\"?s(o):r=o},\\\"data-tc-text\\\":\\\"true\\\",get children(){var o;return Xe(()=>!!a.translationKey)()?n(a.translationKey,a.translationValues,(o=a.children)==null?void 0:o.toString()):a.children}})},$te=G.div`\\n    position: relative;\\n\\n    &::after {\\n        content: '';\\n        display: block;\\n        position: absolute;\\n        top: 0;\\n        bottom: 0;\\n        left: 0;\\n        right: 0;\\n        border: 0.5px solid rgba(0, 0, 0, 0.08);\\n        border-radius: inherit;\\n    }\\n`,Kte=G(vu)`\\n    width: 100%;\\n    height: 100%;\\n    border-radius: inherit;\\n`,uU=t=>p($te,{get class(){return t.class},get children(){return[p(Kte,{get src(){return t.src}}),Xe(()=>t.badge)]}}),Zte={m:\\\"16px\\\",s:\\\"12px\\\",none:\\\"0\\\"},Yte={m:\\\"6px\\\",s:\\\"6px\\\",none:\\\"0\\\"},Gte=G.ul`\\n    display: flex;\\n    gap: 0;\\n    width: 100%;\\n    overflow-x: auto;\\n    padding: 8px 12px 16px 12px;\\n    margin: 0;\\n    list-style: none;\\n    flex-wrap: nowrap;\\n\\n    &&::-webkit-scrollbar {\\n        display: none;\\n    }\\n    -ms-overflow-style: none;\\n    scrollbar-width: none;\\n\\n    > li {\\n        display: flex;\\n        flex: 1;\\n        min-width: 78px;\\n        height: fit-content;\\n    }\\n\\n    > li > button {\\n        width: 100%;\\n    }\\n`,Qte=G.button`\\n    position: relative;\\n    cursor: pointer;\\n    border: none;\\n    background-color: unset;\\n    padding: 8px 4px;\\n    min-width: 78px;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n\\n    transition: transform 0.125s ease-in-out;\\n\\n    ${Og} {\\n        &:hover {\\n            transform: scale(1.04);\\n        }\\n    }\\n\\n    &:active {\\n        transform: scale(0.96);\\n    }\\n\\n    ${Rg} {\\n        &:active {\\n            transform: scale(0.92);\\n        }\\n    }\\n`,Xte=G(uU)`\\n    width: 60px;\\n    height: 60px;\\n    border-radius: ${t=>Zte[t.theme.borderRadius]};\\n    margin-bottom: 8px;\\n    position: relative;\\n`,Jte=G(vu)`\\n    position: absolute;\\n    right: -6px;\\n    bottom: -6px;\\n    width: 24px;\\n    height: 24px;\\n    border-radius: ${t=>Yte[t.theme.borderRadius]};\\n    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);\\n`,ene=G(Ti)`\\n    max-width: 90px;\\n    font-weight: 510;\\n    white-space: nowrap;\\n    text-overflow: ellipsis;\\n    overflow: hidden;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        max-width: 80px;\\n    }\\n`,tne=G(Ti)`\\n    font-weight: ${t=>t.colorPrimary?\\\"510\\\":\\\"400\\\"};\\n    max-width: 90px;\\n    white-space: nowrap;\\n    text-overflow: ellipsis;\\n    overflow: hidden;\\n    color: ${t=>t.colorPrimary?t.theme.colors.text.primary:t.theme.colors.text.secondary};\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        max-width: 80px;\\n    }\\n`,nne=Dt(\\\"<div>\\\"),Wb=t=>{let e=null,n=()=>{let r=e?.querySelector(\\\"div\\\");if(r&&r.scrollWidth>r.clientWidth){let i=0,a=-.4,o=.05;for(;r.scrollWidth>r.clientWidth&&i>=a;)i-=o,r.style.letterSpacing=`${i}px`;i!==0&&(i-=o,r.style.letterSpacing=`${i}px`)}};return TI(()=>n()),Zn(()=>{n()}),p(Qte,{get class(){return t.class},onClick:()=>t.onClick(),\\\"data-tc-wallet-item\\\":\\\"true\\\",get children(){return[Xe(()=>Xe(()=>typeof t.icon==\\\"string\\\")()?p(Xte,{get src(){return t.icon},get badge(){return Xe(()=>!!t.badgeUrl)()&&p(Jte,{get src(){return t.badgeUrl}})}}):t.icon),(()=>{var r=nne();return gu(i=>e=i,r),xr(r,p(ene,{get children(){return t.name}})),r})(),Xe(()=>Xe(()=>!!t.secondLine)()&&p(tne,{get colorPrimary(){var r;return(r=t.secondLineColorPrimary)!=null?r:!0},get children(){return t.secondLine}}))]}})},rne=G.h1`\\n    font-style: normal;\\n    font-weight: 590;\\n    font-size: 20px;\\n    line-height: 28px;\\n\\n    text-align: center;\\n\\n    color: ${t=>t.theme.colors.text.primary};\\n\\n    margin-top: 0;\\n    margin-bottom: 0;\\n\\n    cursor: default;\\n`,Wi=t=>{let[e]=Pa();return p(rne,{get class(){return t.class},\\\"data-tc-h1\\\":\\\"true\\\",get children(){var n;return Xe(()=>!!t.translationKey)()?e(t.translationKey,t.translationValues,(n=t.children)==null?void 0:n.toString()):t.children}})},ine=G.h2`\\n    font-style: normal;\\n    font-weight: 400;\\n    font-size: 16px;\\n    line-height: 22px;\\n\\n    text-align: center;\\n\\n    color: ${t=>t.theme.colors.text.secondary};\\n\\n    margin-top: 0;\\n    margin-bottom: 32px;\\n\\n    cursor: default;\\n`,yo=t=>{let[e]=Pa();return p(ine,{get class(){return t.class},\\\"data-tc-h2\\\":\\\"true\\\",get children(){var n;return Xe(()=>!!t.translationKey)()?e(t.translationKey,t.translationValues,(n=t.children)==null?void 0:n.toString()):t.children}})},ane=G.h3`\\n    font-style: normal;\\n    font-weight: 510;\\n    font-size: 16px;\\n    line-height: 20px;\\n\\n    color: ${t=>t.theme.colors.text.primary};\\n\\n    margin-top: 0;\\n    margin-bottom: 0;\\n\\n    cursor: default;\\n`,nv=t=>{let[e]=Pa();return p(ane,{\\\"data-tc-h3\\\":\\\"true\\\",get class(){return t.class},get children(){var n;return Xe(()=>!!t.translationKey)()?e(t.translationKey,t.translationValues,(n=t.children)==null?void 0:n.toString()):t.children}})},one=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><path fill-rule=evenodd clip-rule=evenodd d=\\\"M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z\\\">'),sne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=one(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},lne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><g clip-path=url(#clip0_3783_2045)><circle cx=8 cy=8.00098 r=8></circle><path d=\\\"M4.75 8.50098L7 10.751L11.75 6.00098\\\"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path></g><defs><clipPath id=clip0_3783_2045><rect width=16 height=16 fill=white transform=\\\"translate(0 0.000976562)\\\">'),cne=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><circle cx=12 cy=12 r=11></circle><path d=\\\"M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z\\\">'),une=Dt('<svg width=72 height=72 viewBox=\\\"0 0 72 72\\\"fill=none xmlns=http://www.w3.org/2000/svg><circle cx=36 cy=36 r=33></circle><path d=\\\"M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z\\\">'),rv=t=>{let e=Bn(),n=()=>t.size||\\\"s\\\",r=()=>t.fill||e.colors.icon.success;return Xe(()=>Xe(()=>n()===\\\"xs\\\")()?(()=>{var i=lne(),a=i.firstChild,o=a.firstChild,s=o.nextSibling;return zt(l=>{var c=t.class,u=r(),d=e.colors.constant.white;return c!==l.e&&Qe(i,\\\"class\\\",l.e=c),u!==l.t&&Qe(o,\\\"fill\\\",l.t=u),d!==l.a&&Qe(s,\\\"stroke\\\",l.a=d),l},{e:void 0,t:void 0,a:void 0}),i})():Xe(()=>n()===\\\"s\\\")()?(()=>{var i=cne(),a=i.firstChild,o=a.nextSibling;return zt(s=>{var l=t.class,c=r(),u=e.colors.constant.white;return l!==s.e&&Qe(i,\\\"class\\\",s.e=l),c!==s.t&&Qe(a,\\\"fill\\\",s.t=c),u!==s.a&&Qe(o,\\\"fill\\\",s.a=u),s},{e:void 0,t:void 0,a:void 0}),i})():(()=>{var i=une(),a=i.firstChild,o=a.nextSibling;return zt(s=>{var l=t.class,c=r(),u=e.colors.constant.white;return l!==s.e&&Qe(i,\\\"class\\\",s.e=l),c!==s.t&&Qe(a,\\\"fill\\\",s.t=c),u!==s.a&&Qe(o,\\\"fill\\\",s.a=u),s},{e:void 0,t:void 0,a:void 0}),i})())},dne=Dt('<svg width=72 height=72 viewBox=\\\"0 0 72 72\\\"fill=none xmlns=http://www.w3.org/2000/svg><circle cx=36 cy=36 r=33></circle><path d=\\\"M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z\\\">'),fne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox=\\\"0 0 48 48\\\"fill=none><circle cx=24 cy=24.001 r=22></circle><path d=\\\"M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501\\\"stroke-width=3 stroke-linecap=round stroke-linejoin=round>'),hne=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><circle cx=12 cy=12 r=11></circle><path d=\\\"M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z\\\">'),jl=t=>{let e=Bn(),n=()=>t.size||\\\"m\\\",r=()=>t.fill||e.colors.icon.error;return Xe(()=>Xe(()=>n()===\\\"m\\\")()?(()=>{var i=dne(),a=i.firstChild,o=a.nextSibling;return zt(s=>{var l=t.class,c=r(),u=e.colors.constant.white;return l!==s.e&&Qe(i,\\\"class\\\",s.e=l),c!==s.t&&Qe(a,\\\"fill\\\",s.t=c),u!==s.a&&Qe(o,\\\"fill\\\",s.a=u),s},{e:void 0,t:void 0,a:void 0}),i})():Xe(()=>n()===\\\"s\\\")()?(()=>{var i=fne(),a=i.firstChild,o=a.nextSibling;return zt(s=>{var l=t.class,c=r(),u=e.colors.constant.white;return l!==s.e&&Qe(i,\\\"class\\\",s.e=l),c!==s.t&&Qe(a,\\\"fill\\\",s.t=c),u!==s.a&&Qe(o,\\\"stroke\\\",s.a=u),s},{e:void 0,t:void 0,a:void 0}),i})():(()=>{var i=hne(),a=i.firstChild,o=a.nextSibling;return zt(s=>{var l=t.class,c=r(),u=e.colors.constant.white;return l!==s.e&&Qe(i,\\\"class\\\",s.e=l),c!==s.t&&Qe(a,\\\"fill\\\",s.t=c),u!==s.a&&Qe(o,\\\"fill\\\",s.a=u),s},{e:void 0,t:void 0,a:void 0}),i})())},gne=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><path d=\\\"M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z\\\">'),pne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=44 height=44 viewBox=\\\"0 0 44 44\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z\\\">'),mne=Dt('<svg width=72 height=72 viewBox=\\\"0 0 72 72\\\"fill=none xmlns=http://www.w3.org/2000/svg><path d=\\\"M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999\\\"stroke-width=4 stroke-linecap=round stroke-linejoin=round>'),bo=t=>{let e=Bn(),n=()=>t.size||\\\"xs\\\",r=()=>t.fill||e.colors.icon.tertiary,i=GJ`\\n        0% {\\n          transform: rotate(0deg);\\n        }\\n        100% {\\n          transform: rotate(360deg);\\n        }\\n    `,a=ws`\\n        animation: ${i} 1s linear infinite;\\n    `;return Xe(()=>Xe(()=>n()===\\\"xs\\\")()?(()=>{var o=gne(),s=o.firstChild;return zt(l=>{var c=(0,wg.default)(a,t.class),u=r();return c!==l.e&&Qe(o,\\\"class\\\",l.e=c),u!==l.t&&Qe(s,\\\"fill\\\",l.t=u),l},{e:void 0,t:void 0}),o})():Xe(()=>n()===\\\"s\\\")()?(()=>{var o=pne(),s=o.firstChild;return zt(l=>{var c=(0,wg.default)(a,t.class),u=r();return c!==l.e&&Qe(o,\\\"class\\\",l.e=c),u!==l.t&&Qe(s,\\\"fill\\\",l.t=u),l},{e:void 0,t:void 0}),o})():(()=>{var o=mne(),s=o.firstChild;return zt(l=>{var c=(0,wg.default)(a,t.class),u=r();return c!==l.e&&Qe(o,\\\"class\\\",l.e=c),u!==l.t&&Qe(s,\\\"stroke\\\",l.t=u),l},{e:void 0,t:void 0}),o})())},yne=Dt('<svg width=158 height=28 viewBox=\\\"0 0 158 28\\\"fill=none xmlns=http://www.w3.org/2000/svg><path fill-rule=evenodd clip-rule=evenodd d=\\\"M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z\\\"fill=#0098EA></path><path d=\\\"M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z\\\"fill=white></path><path fill-rule=evenodd clip-rule=evenodd d=\\\"M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z\\\">'),bne=()=>{let t=Bn(),e=()=>t.theme===Wn.DARK?t.colors.constant.white:t.colors.constant.black;return(()=>{var n=yne(),r=n.firstChild,i=r.nextSibling,a=i.nextSibling;return zt(()=>Qe(a,\\\"fill\\\",e())),n})()},vne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z\\\">'),wne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=vne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},xne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z\\\">'),_ne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=xne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},Cne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z\\\">'),Sne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=Cne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},Tne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z\\\">'),Ene=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=Tne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},Ane=Dt('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox=\\\"0 0 17 16\\\"fill=none><g clip-path=url(#clip0_3676_1603)><path fill-rule=evenodd clip-rule=evenodd d=\\\"M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z\\\"></path></g><defs><clipPath id=clip0_3676_1603><rect width=16 height=16 fill=white transform=\\\"translate(0.5 0.000488281)\\\">'),fu=t=>{let e=Bn(),n=()=>t.fill||e.colors.accent;return(()=>{var r=Ane(),i=r.firstChild,a=i.firstChild;return zt(()=>Qe(a,\\\"fill\\\",n())),r})()},kne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z\\\">'),Jf=t=>{let e=Bn(),n=()=>t.fill||e.colors.accent;return(()=>{var r=kne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},Bne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox=\\\"0 0 17 16\\\"fill=none><g clip-path=url(#clip0_3676_1274)><path fill-rule=evenodd clip-rule=evenodd d=\\\"M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z\\\"></path></g><defs><clipPath id=clip0_3676_1274><rect width=16 height=16 fill=white transform=\\\"translate(0.5 0.000976562)\\\">'),Mne=t=>{let e=Bn(),n=()=>t.fill||e.colors.accent;return(()=>{var r=Bne(),i=r.firstChild,a=i.firstChild;return zt(()=>Qe(a,\\\"fill\\\",n())),r})()},Rne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox=\\\"0 0 48 48\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z\\\">'),One=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=Rne(),i=r.firstChild;return zt(a=>{var o=t.class,s=n();return o!==a.e&&Qe(r,\\\"class\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},Ine=Dt('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox=\\\"0 0 48 48\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z\\\">'),Une=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=Ine(),i=r.firstChild;return zt(a=>{var o=t.class,s=n();return o!==a.e&&Qe(r,\\\"class\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},Nne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox=\\\"0 0 48 48\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z\\\">'),Pne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=Nne(),i=r.firstChild;return zt(a=>{var o=t.class,s=n();return o!==a.e&&Qe(r,\\\"class\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},jne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox=\\\"0 0 28 28\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z\\\">'),zne=t=>{let e=Bn(),n=()=>t.fill||e.colors.constant.white;return(()=>{var r=jne(),i=r.firstChild;return zt(a=>{var o=t.class,s=n();return o!==a.e&&Qe(r,\\\"class\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},Dne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox=\\\"0 0 28 28\\\"><path fill-rule=evenodd clip-rule=evenodd d=\\\"M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z\\\">'),Lne=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=Dne(),i=r.firstChild;return zt(a=>{var o=n(),s=n();return o!==a.e&&Qe(r,\\\"fill\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},qne=Dt('<svg xmlns=http://www.w3.org/2000/svg width=16 height=17 viewBox=\\\"0 0 16 17\\\"fill=none><path fill-rule=evenodd clip-rule=evenodd d=\\\"M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z\\\">'),W6=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.secondary;return(()=>{var r=qne(),i=r.firstChild;return zt(()=>Qe(i,\\\"fill\\\",n())),r})()},Vne={m:\\\"16px\\\",s:\\\"12px\\\",none:\\\"0\\\"},Hne={m:\\\"6px\\\",s:\\\"6px\\\",none:\\\"0\\\"},Wne=G.div`\\n    width: 60px;\\n    height: 60px;\\n    padding: 8px;\\n    margin-bottom: 8px;\\n    border-radius: ${t=>Vne[t.theme.borderRadius]};\\n    background-color: ${t=>t.theme.colors.background.tint};\\n    display: grid;\\n    grid-template: 1fr 1fr / 1fr 1fr;\\n    gap: 4px;\\n`,Fne=G(uU)`\\n    width: 20px;\\n    height: 20px;\\n    border-radius: ${t=>Hne[t.theme.borderRadius]};\\n`,dU=t=>p(Wb,{get name(){return t.labelLine1},get secondLine(){return t.labelLine2},get icon(){return p(Wne,{get children(){return p(th,{each:[0,1,2,3],children:e=>p(Fne,{get src(){return t.images[e]}})})}})},onClick:()=>t.onClick()}),wa=\\\"telegram-wallet\\\",wu={TON:\\\"https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png\\\",TG:\\\"https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png\\\",WALLET_CONNECT:\\\"https://raw.githubusercontent.com/ton-connect/sdk/main/assets/walletconnect-icon-288.png\\\"};fU=t=>{let[e]=Pa(),n=()=>{if(t.wallet.appName!==wa){if(\\\"isPreferred\\\"in t.wallet&&t.wallet.isPreferred)return e(\\\"walletItem.recent\\\",{},\\\"Recent\\\");if(t.wallet.name===\\\"Tonkeeper\\\")return e(\\\"walletItem.popular\\\",{},\\\"Popular\\\");if($ne(t.wallet)&&ds(t.wallet))return e(\\\"walletItem.installed\\\",{},\\\"Installed\\\")}};return Xe(()=>Xe(()=>t.wallet.appName===wa)()?p(Wb,{get icon(){return t.wallet.imageUrl},get name(){return e(\\\"walletItem.walletOn\\\",{},\\\"Wallet in\\\")},secondLine:\\\"Telegram\\\",get badgeUrl(){return wu.TG},onClick:()=>t.onClick(),get class(){return t.class}}):p(Wb,{get icon(){return t.wallet.imageUrl},get name(){return t.wallet.name},get secondLine(){return n()},secondLineColorPrimary:!1,onClick:()=>t.onClick(),get class(){return t.class}}))},Kne=G.div`\\n    width: 100%;\\n    overflow-y: auto;\\n    max-height: ${t=>t.maxHeight};\\n\\n    scrollbar-width: none;\\n    &&::-webkit-scrollbar {\\n        display: none;\\n    }\\n\\n    &&::-webkit-scrollbar-track {\\n        background: transparent;\\n    }\\n\\n    &&::-webkit-scrollbar-thumb {\\n        display: none;\\n    }\\n`,Zne=G.div`\\n    height: 1px;\\n    margin: 0 -24px;\\n    width: calc(100% + 48px);\\n    opacity: 0.08;\\n    background: ${t=>t.isShown?t.theme.colors.icon.secondary:\\\"transparent\\\"};\\n    transition: background 0.15s ease-in-out;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        width: 100%;\\n        margin: 0;\\n    }\\n`,[Yne,Gne]=Je(((BO=Vi())==null?void 0:BO.innerHeight)||0);Vi()&&window.addEventListener(\\\"resize\\\",()=>Gne(window.innerHeight));[ih,Qne]=Je(Gf(\\\"mobile\\\")),Fb=()=>Qne(Gf(\\\"mobile\\\"));Vi()&&(window.addEventListener(\\\"resize\\\",()=>Fb()),window.addEventListener(\\\"load\\\",()=>Fb(),{once:!0}));u_=t=>{let[e,n]=Je(!1),r=o=>{n(o.target.scrollTop>0)},i=()=>ih()?150:200,a=()=>t.maxHeight!==void 0?`${t.maxHeight}px`:`${Yne()-i()}px`;return[p(Zne,{get isShown(){return e()}}),p(Kne,{get maxHeight(){return a()},onScroll:r,get class(){return t.class},get children(){return t.children}})]},Xne=G.a`\\n    display: block;\\n    text-decoration: unset;\\n`,Nl=t=>p(Xne,fo({get href(){return t.href},get target(){return t.blank?\\\"_blank\\\":\\\"_self\\\"},get class(){return t.class}},()=>t.blank?{rel:\\\"noreferrer noopener\\\"}:{},{get children(){return t.children}})),Cs=Qb(),Jne=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><path fill-rule=evenodd clip-rule=evenodd d=\\\"M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z\\\">'),ere=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=Jne(),i=r.firstChild;return zt(a=>{var o=t.class,s=n();return o!==a.e&&Qe(r,\\\"class\\\",a.e=o),s!==a.t&&Qe(i,\\\"fill\\\",a.t=s),a},{e:void 0,t:void 0}),r})()},tre=Dt('<svg width=24 height=24 viewBox=\\\"0 0 24 24\\\"fill=none xmlns=http://www.w3.org/2000/svg><path d=\\\"M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z\\\"></path><path d=\\\"M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z\\\">'),nre=t=>{let e=Bn(),n=()=>t.fill||e.colors.icon.primary;return(()=>{var r=tre(),i=r.firstChild,a=i.nextSibling;return zt(o=>{var s=n(),l=n();return s!==o.e&&Qe(i,\\\"fill\\\",o.e=s),l!==o.t&&Qe(a,\\\"fill\\\",o.t=l),o},{e:void 0,t:void 0}),r})()},rre={m:\\\"8px\\\",s:\\\"4px\\\",none:\\\"0\\\"},ire={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},are=G.div`\\n    width: 256px;\\n    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);\\n    border-radius: ${t=>ire[t.theme.borderRadius]};\\n\\n    background-color: ${t=>t.theme.colors.background.primary}\\n           \\n    color: ${t=>t.theme.colors.text.primary}\\n`,ore=G.ul`\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    padding: 8px;\\n`,ZO=G.button`\\n    display: flex;\\n    align-items: center;\\n    gap: 8px;\\n    height: 40px;\\n    padding-left: 8px;\\n    width: 100%;\\n\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    border: none;\\n    border-radius: ${t=>rre[t.theme.borderRadius]};\\n    cursor: pointer;\\n\\n    transition:\\n        background-color,\\n        transform 0.1s ease-in-out;\\n\\n    &:hover {\\n        background-color: ${t=>t.theme.colors.background.secondary};\\n    }\\n\\n    &:active {\\n        transform: scale(0.96);\\n    }\\n`,YO=Dt(\\\"<li>\\\"),h6=t=>p(Ti,{get translationKey(){return t.translationKey},fontSize:\\\"15px\\\",fontWeight:\\\"590\\\",get children(){return t.children}}),sre=t=>{let e=Vr(Cs),[n,r]=Je(!1),i=()=>wt(null,null,function*(){let o=$f(e.account.address,e.account.chain===ls.TESTNET);yield ev(o),r(!0),setTimeout(()=>r(!1),1e3)}),a=()=>{e.disconnect(),t.onClose()};return p(are,{ref(o){var s=t.ref;typeof s==\\\"function\\\"?s(o):t.ref=o},get class(){return t.class},\\\"data-tc-dropdown\\\":\\\"true\\\",get children(){return p(ore,{get children(){return[(()=>{var o=YO();return xr(o,p(ZO,{onClick:()=>i(),get children(){return[p(ere,{}),p(at,{get when(){return!n()},get children(){return p(h6,{translationKey:\\\"button.dropdown.copy\\\",children:\\\"Copy address\\\"})}}),p(at,{get when(){return n()},get children(){return p(h6,{translationKey:\\\"button.dropdown.copied\\\",children:\\\"Address copied!\\\"})}})]}})),o})(),(()=>{var o=YO();return xr(o,p(ZO,{onClick:()=>a(),get children(){return[p(nre,{}),p(h6,{translationKey:\\\"button.dropdown.disconnect\\\",children:\\\"Disconnect\\\"})]}})),o})()]}})}})},lre={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},cre=G.div`\\n    width: 256px;\\n    padding: 12px 16px;\\n    display: flex;\\n    gap: 9px;\\n\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);\\n    border-radius: ${t=>lre[t.theme.borderRadius]};\\n`,ure=G.div`\\n    width: 192px;\\n\\n    > h3 {\\n        font-size: 15px;\\n    }\\n`,dre=G(Ti)`\\n    margin-top: 4px;\\n    color: ${t=>t.theme.colors.text.secondary};\\n`,Ug=t=>{let e=Ig(t);return p(cre,fo({get class(){return t.class},\\\"data-tc-notification\\\":\\\"true\\\"},e,{get children(){return[p(ure,{get children(){return[p(nv,{get translationKey(){return t.header.translationKey},get translationValues(){return t.header.translationValues},get children(){return t.children}}),p(at,{get when(){return t.text},get children(){return p(dre,{get translationKey(){return t.text.translationKey},get translationValues(){return t.text.translationValues}})}})]}}),Xe(()=>t.icon)]}}))},fre=G(bo)`\\n    align-self: center;\\n`,hre=t=>{let e=Vr(Cs),[n]=Pa(),r=()=>e.wallet&&\\\"name\\\"in e.wallet?e.wallet.name:n(\\\"common.yourWallet\\\",{},\\\"Your wallet\\\");return p(Ug,{get header(){return{translationKey:\\\"notifications.confirm.header\\\",translationValues:{name:r()}}},get class(){return t.class},get icon(){return p(fre,{})},\\\"data-tc-notification-confirm\\\":\\\"true\\\",children:\\\"Confirm operation in your wallet\\\"})},gre=G(jl)`\\n    margin-top: 2px;\\n`,pre=t=>p(Ug,{header:{translationKey:\\\"notifications.transactionCanceled.header\\\"},text:{translationKey:\\\"notifications.transactionCanceled.text\\\"},get icon(){return p(gre,{size:\\\"xs\\\"})},get class(){return t.class},\\\"data-tc-notification-tx-cancelled\\\":\\\"true\\\",children:\\\"Transaction cancelled\\\"}),hU=G(rv)`\\n    margin-top: 2px;\\n`,mre=t=>p(Ug,{header:{translationKey:\\\"notifications.transactionSent.header\\\"},text:{translationKey:\\\"notifications.transactionSent.text\\\"},get icon(){return p(hU,{})},get class(){return t.class},\\\"data-tc-notification-tx-sent\\\":\\\"true\\\",children:\\\"Transaction sent\\\"}),pg=ws`\\n    transform: translateY(-8px);\\n    margin-bottom: 12px;\\n`,yre={timeout:4500},[g6,bre]=Je(null);wre=G(jl)`\\n    margin-top: 2px;\\n`,xre=t=>p(Ug,{header:{translationKey:\\\"notifications.signDataCanceled.header\\\"},get icon(){return p(wre,{size:\\\"xs\\\"})},get class(){return t.class},\\\"data-tc-notification-sign-data-cancelled\\\":\\\"true\\\",children:\\\"Sign data canceled\\\"}),_re=t=>p(Ug,{header:{translationKey:\\\"notifications.dataSigned.header\\\"},get icon(){return p(hU,{})},get class(){return t.class},\\\"data-tc-notification-data-signed\\\":\\\"true\\\",children:\\\"Data signed\\\"}),Cre=Dt(\\\"<div data-tc-list-notifications=true>\\\"),Sre=t=>{let e=vre();return(()=>{var n=Cre();return xr(n,p(ite,{onBeforeEnter:r=>{va(r,[{opacity:0,transform:\\\"translateY(0)\\\"},{opacity:1,transform:\\\"translateY(-8px)\\\"}],{duration:200})},onExit:(r,i)=>{va(r,[{opacity:1,transform:\\\"translateY(-8px)\\\"},{opacity:0,transform:\\\"translateY(-30px)\\\"}],{duration:200}).finished.then(i)},get children(){return p(th,{get each(){return e()},children:r=>p(vs,{get children(){return[p(qt,{get when(){return r.action===\\\"transaction-sent\\\"},get children(){return p(mre,{class:pg})}}),p(qt,{get when(){return r.action===\\\"transaction-canceled\\\"},get children(){return p(pre,{class:pg})}}),p(qt,{get when(){return r.action===\\\"data-signed\\\"},get children(){return p(_re,{class:pg})}}),p(qt,{get when(){return r.action===\\\"sign-data-canceled\\\"},get children(){return p(xre,{class:pg})}}),p(qt,{get when(){return r.action===\\\"confirm-transaction\\\"||r.action===\\\"confirm-sign-data\\\"},get children(){return p(hre,{class:pg})}})]}})})}})),zt(()=>n_(n,t.class)),n})()},gU=G(un)`\\n    background-color: ${t=>t.theme.colors.connectButton.background};\\n    color: ${t=>t.theme.colors.connectButton.foreground};\\n    box-shadow: ${t=>`0 4px 24px ${bu(t.theme.colors.constant.black,.16)}`};\\n    padding: 8px 16px 8px 12px;\\n\\n    display: flex;\\n    align-items: center;\\n    gap: 4px;\\n    height: 40px;\\n`,Tre=G(gU)`\\n    padding: 12px 16px;\\n    min-width: 148px;\\n    justify-content: center;\\n    background-color: ${t=>t.theme.colors.background.primary};\\n`,Ere=G(un)`\\n    min-width: 148px;\\n    height: 40px;\\n\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    color: ${t=>t.theme.colors.connectButton.foreground};\\n    box-shadow: ${t=>`0 4px 24px ${bu(t.theme.colors.constant.black,.16)}`};\\n\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n`,Are=G(bo)`\\n    height: 18px;\\n    width: 18px;\\n`,kre=G.div`\\n    width: fit-content;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: flex-end;\\n`,Bre=G(sre)`\\n    box-sizing: border-box;\\n    overflow: hidden;\\n    margin-top: 12px;\\n`,Mre=G(Sre)`\\n    > div:first-child {\\n        margin-top: 20px;\\n    }\\n`,$b=Math.min,pu=Math.max,Kb=Math.round,_b=Math.floor,go=t=>({x:t,y:t}),Rre={left:\\\"right\\\",right:\\\"left\\\",bottom:\\\"top\\\",top:\\\"bottom\\\"},Ore={start:\\\"end\\\",end:\\\"start\\\"};Ire=new Set([\\\"top\\\",\\\"bottom\\\"]);QO=[\\\"left\\\",\\\"right\\\"],XO=[\\\"right\\\",\\\"left\\\"],Pre=[\\\"top\\\",\\\"bottom\\\"],jre=[\\\"bottom\\\",\\\"top\\\"];Vre=(t,e,n)=>wt(null,null,function*(){let{placement:r=\\\"bottom\\\",strategy:i=\\\"absolute\\\",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=yield o.isRTL==null?void 0:o.isRTL(e),c=yield o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=JO(c,r,l),h=r,g={},y=0;for(let E=0;E<s.length;E++){let{name:N,fn:_}=s[E],{x:v,y:T,data:R,reset:U}=yield _({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:g,rects:c,platform:o,elements:{reference:t,floating:e}});u=v??u,d=T??d,g=mr(Kt({},g),{[N]:Kt(Kt({},g[N]),R)}),U&&y<=50&&(y++,typeof U==\\\"object\\\"&&(U.placement&&(h=U.placement),U.rects&&(c=U.rects===!0?yield o.getElementRects({reference:t,floating:e,strategy:i}):U.rects),{x:u,y:d}=JO(c,h,l)),E=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:g}});Hre=function(t){return t===void 0&&(t={}),{name:\\\"flip\\\",options:t,fn(e){return wt(this,null,function*(){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=e,u=d_(t,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:y=\\\"bestFit\\\",fallbackAxisSideDirection:E=\\\"none\\\",flipAlignment:N=!0}=u,_=vI(u,[\\\"mainAxis\\\",\\\"crossAxis\\\",\\\"fallbackPlacements\\\",\\\"fallbackStrategy\\\",\\\"fallbackAxisSideDirection\\\",\\\"flipAlignment\\\"]);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let v=ah(i),T=hu(s),R=ah(s)===s,U=yield l.isRTL==null?void 0:l.isRTL(c.floating),X=g||(R||!N?[Zb(s)]:Nre(s)),k=E!==\\\"none\\\";!g&&k&&X.push(...Dre(s,N,E,U));let q=[s,...X],z=yield bU(e,_),$=[],L=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&$.push(z[v]),h){let se=Ure(i,o,U);$.push(z[se[0]],z[se[1]])}if(L=[...L,{placement:i,overflows:$}],!$.every(se=>se<=0)){var P,pe;let se=(((P=a.flip)==null?void 0:P.index)||0)+1,Le=q[se];if(Le&&(!(h===\\\"alignment\\\"?T!==hu(Le):!1)||L.every(rt=>hu(rt.placement)===T?rt.overflows[0]>0:!0)))return{data:{index:se,overflows:L},reset:{placement:Le}};let O=(pe=L.filter(Ze=>Ze.overflows[0]<=0).sort((Ze,rt)=>Ze.overflows[1]-rt.overflows[1])[0])==null?void 0:pe.placement;if(!O)switch(y){case\\\"bestFit\\\":{var le;let Ze=(le=L.filter(rt=>{if(k){let St=hu(rt.placement);return St===T||St===\\\"y\\\"}return!0}).map(rt=>[rt.placement,rt.overflows.filter(St=>St>0).reduce((St,Xt)=>St+Xt,0)]).sort((rt,St)=>rt[1]-St[1])[0])==null?void 0:le[0];Ze&&(O=Ze);break}case\\\"initialPlacement\\\":O=s;break}if(i!==O)return{reset:{placement:O}}}return{}})}}},Wre=function(t){return t===void 0&&(t={}),{name:\\\"shift\\\",options:t,fn(e){return wt(this,null,function*(){let{x:n,y:r,placement:i}=e,a=d_(t,e),{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:v,y:T}=_;return{x:v,y:T}}}}=a,c=vI(a,[\\\"mainAxis\\\",\\\"crossAxis\\\",\\\"limiter\\\"]),u={x:n,y:r},d=yield bU(e,c),h=hu(ah(i)),g=pU(h),y=u[g],E=u[h];if(o){let _=g===\\\"y\\\"?\\\"top\\\":\\\"left\\\",v=g===\\\"y\\\"?\\\"bottom\\\":\\\"right\\\",T=y+d[_],R=y-d[v];y=GO(T,y,R)}if(s){let _=h===\\\"y\\\"?\\\"top\\\":\\\"left\\\",v=h===\\\"y\\\"?\\\"bottom\\\":\\\"right\\\",T=E+d[_],R=E-d[v];E=GO(T,E,R)}let N=l.fn(mr(Kt({},e),{[g]:y,[h]:E}));return mr(Kt({},N),{data:{x:N.x-n,y:N.y-r,enabled:{[g]:o,[h]:s}}})})}}};Fre=new Set([\\\"inline\\\",\\\"contents\\\"]);$re=new Set([\\\"table\\\",\\\"td\\\",\\\"th\\\"]);Zre=[\\\":popover-open\\\",\\\":modal\\\"];Yre=[\\\"transform\\\",\\\"translate\\\",\\\"scale\\\",\\\"rotate\\\",\\\"perspective\\\"],Gre=[\\\"transform\\\",\\\"translate\\\",\\\"scale\\\",\\\"rotate\\\",\\\"perspective\\\",\\\"filter\\\"],Qre=[\\\"paint\\\",\\\"layout\\\",\\\"strict\\\",\\\"content\\\"];Jre=new Set([\\\"html\\\",\\\"body\\\",\\\"#document\\\"]);eie=go(0);oie=new Set([\\\"absolute\\\",\\\"fixed\\\"]);fie=function(t){return wt(this,null,function*(){let e=this.getOffsetParent||TU,n=this.getDimensions,r=yield n(t.floating);return{reference:die(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};gie={convertOffsetParentRelativeRectToViewportRelativeRect:nie,getDocumentElement:vo,getClippingRect:cie,getOffsetParent:TU,getElementRects:fie,getClientRects:rie,getDimensions:uie,getScale:eh,isElement:Ua,isRTL:hie};yie=Wre,bie=Hre,vie=(t,e,n)=>{let r=new Map,i=Kt({platform:gie},n),a=mr(Kt({},i.platform),{_c:r});return Vre(t,e,mr(Kt({},i),{platform:a}))};xie=Dt(\\\"<tc-root data-tc-dropdown-container=true>\\\",!0,!1,!1),_ie=()=>{let t=Bn(),e=Vr(lh),n=Vr(Cs),[r,i]=Je(!1),[a,o]=Je(e.account),[s,l]=Je(!e.account),c,[u,d]=Je(),[h,g]=Je(),y=wie(h,u,{whileElementsMounted:mie,placement:\\\"bottom-end\\\",middleware:[bie(),yie()]}),E=()=>{let v=a();if(v){let T=$f(v.address,v.chain===ls.TESTNET);return T.slice(0,4)+\\\"\\\\u2026\\\"+T.slice(-4)}return\\\"\\\"};n.connectionRestored.then(()=>l(!1));let N=e.onStatusChange(v=>{if(!v){i(!1),o(null),l(!1);return}o(v.account),l(!1)}),_=v=>{if(!a()||!r())return;let T=h().contains(v.target),R=c.contains(v.target);!T&&!R&&i(!1)};return TI(()=>{document.body.addEventListener(\\\"click\\\",_)}),ri(()=>{document.body.removeEventListener(\\\"click\\\",_),N()}),p(nh,{component:ms,get children(){return[p(at,{get when(){return s()},get children(){return p(Ere,{disabled:!0,\\\"data-tc-connect-button-loading\\\":\\\"true\\\",get children(){return p(Are,{})}})}}),p(at,{get when(){return!s()},get children(){return[p(at,{get when(){return!a()},get children(){return p(gU,{onClick:()=>n.openModal(),\\\"data-tc-connect-button\\\":\\\"true\\\",scale:\\\"s\\\",get children(){return[p(sne,{get fill(){return t.colors.connectButton.foreground}}),p(Ti,{translationKey:\\\"button.connectWallet\\\",fontSize:\\\"15px\\\",lineHeight:\\\"18px\\\",fontWeight:\\\"590\\\",get color(){return t.colors.connectButton.foreground},children:\\\"Connect wallet\\\"})]}})}}),p(at,{get when(){return a()},get children(){return p(kre,{get children(){return[p(Tre,{onClick:()=>i(v=>!v),ref:g,\\\"data-tc-dropdown-button\\\":\\\"true\\\",scale:\\\"s\\\",get children(){return[p(Ti,{fontSize:\\\"15px\\\",fontWeight:\\\"590\\\",lineHeight:\\\"18px\\\",get children(){return E()}}),p(aU,{direction:\\\"bottom\\\"})]}}),p(jI,{get children(){var v=xie();return gu(d,v),v.style.setProperty(\\\"z-index\\\",\\\"999\\\"),v._$owner=EI(),xr(v,p(Jb,{onBeforeEnter:T=>{va(T,[{opacity:0,transform:\\\"translateY(-8px)\\\"},{opacity:1,transform:\\\"translateY(0)\\\"}],{duration:150})},onExit:(T,R)=>{va(T,[{opacity:1,transform:\\\"translateY(0)\\\"},{opacity:0,transform:\\\"translateY(-8px)\\\"}],{duration:150}).finished.then(R)},get children(){return p(at,{get when(){return r()},get children(){return p(Bre,{get hidden(){return!r()},onClose:()=>i(!1),ref(T){var R=c;typeof R==\\\"function\\\"?R(T):c=T}})}})}}),null),xr(v,p(Mre,{}),null),zt(T=>{var R,U,X=y.strategy,k=`${(R=y.y)!=null?R:0}px`,q=`${(U=y.x)!=null?U:0}px`;return X!==T.e&&((T.e=X)!=null?v.style.setProperty(\\\"position\\\",X):v.style.removeProperty(\\\"position\\\")),k!==T.t&&((T.t=k)!=null?v.style.setProperty(\\\"top\\\",k):v.style.removeProperty(\\\"top\\\")),q!==T.a&&((T.a=q)!=null?v.style.setProperty(\\\"left\\\",q):v.style.removeProperty(\\\"left\\\")),T},{e:void 0,t:void 0,a:void 0}),v}})]}})}})]}})]}})},AU=G(sU)`\\n    padding-left: 24px;\\n    padding-right: 24px;\\n    padding-top: 18px;\\n    padding-bottom: 0;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        padding-left: 0;\\n        padding-right: 0;\\n    }\\n`,kU=G(Wi)`\\n    margin-top: 12px;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        padding: 0 10px;\\n    }\\n`,BU=G.div`\\n    margin: 30px 0;\\n    width: 100%;\\n    display: flex;\\n    justify-content: center;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        height: 160px;\\n        align-items: center;\\n    }\\n`;G(Ti)`\\n    min-width: 84px;\\n    text-align: center;\\n    font-weight: 590;\\n`;G(Bte)`\\n    margin: 0 auto 22px;\\n`;[Gt,Cb]=o_({buttonRootId:null,language:\\\"en\\\",returnStrategy:\\\"back\\\",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});Eie=G.div`\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n`,Aie=G(Wi)`\\n    margin-bottom: 18px;\\n`;G.div`\\n    height: 1px;\\n    margin: 0 -24px;\\n    width: calc(100% + 48px);\\n    opacity: 0.12;\\n    background: ${t=>t.isShown?t.theme.colors.icon.secondary:\\\"transparent\\\"};\\n    transition: background 0.15s ease-in-out;\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        width: 100%;\\n    }\\n`;aI=G.ul`\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, 92px);\\n    grid-template-rows: auto;\\n    align-content: flex-start;\\n    row-gap: 8px;\\n    width: 100%;\\n    padding: 0 0 16px;\\n    align-self: flex-start;\\n    max-width: 400px;\\n    margin: 0 auto;\\n    list-style: none;\\n\\n    > li {\\n        display: block;\\n        height: fit-content;\\n    }\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        display: grid;\\n        grid-template-columns: repeat(4, 1fr);\\n        gap: 0;\\n        padding: 8px 12px 16px;\\n        max-width: none;\\n\\n        > li {\\n            min-width: 78px;\\n            display: flex;\\n        }\\n\\n        > li > * {\\n            width: 100%;\\n        }\\n    }\\n`;G(un)`\\n    display: block;\\n    margin: 0 auto 1px;\\n    font-size: 15px;\\n`;kie=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,m6=G(fU)`\\n    opacity: ${t=>t.withOpacity?\\\"0.4\\\":\\\"1\\\"};\\n`,Bie=G.div`\\n    display: grid;\\n    grid-template-columns: auto 28px;\\n    gap: 16px;\\n    padding: 16px;\\n    margin-bottom: 16px;\\n    border-radius: 16px;\\n    color: ${t=>t.theme.colors.text.secondary};\\n    background: ${t=>t.theme.colors.background.tint};\\n\\n    ${Hi(\\\"mobile\\\")} {\\n        margin-left: 16px;\\n        margin-right: 16px;\\n    }\\n`,Mie=G(yo)`\\n    color: ${t=>t.theme.colors.text.secondary};\\n    text-align: left;\\n    margin: 0;\\n`,Rie=G.div`\\n    position: absolute;\\n    bottom: 14px;\\n    left: 50%;\\n    transform: translate(-50%, 0);\\n\\n    text-wrap: nowrap;\\n    display: flex;\\n    gap: 6px;\\n    align-items: center;\\n    border-radius: 18px;\\n    min-width: 126px;\\n    padding: 9px 16px 9px 10px;\\n\\n    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));\\n    background-color: ${t=>t.theme.colors.background.segment};\\n`,Oie=Dt('<svg width=16 height=16 viewBox=\\\"0 0 16 16\\\"fill=none xmlns=http://www.w3.org/2000/svg><g clip-path=url(#clip0_5122_10355)><circle cx=8 cy=8 r=8></circle><circle cx=8 cy=11 r=1></circle><path d=\\\"M7.04994 4.99875C7.02277 4.45542 7.45598 4 8 4C8.54402 4 8.97723 4.45541 8.95006 4.99875L8.78745 8.25094C8.76647 8.67055 8.42014 9 8 9C7.57986 9 7.23353 8.67055 7.21255 8.25094L7.04994 4.99875Z\\\"></path></g><defs><clipPath id=clip0_5122_10355><rect width=16 height=16>'),Iie=Dt('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox=\\\"0 0 28 28\\\"fill=none><circle cx=14 cy=14 r=12></circle><circle cx=14 cy=18.9 r=1.4></circle><path d=\\\"M12.6658 8.89845C12.63 8.13698 13.2377 7.5 14 7.5C14.7623 7.5 15.37 8.13698 15.3342 8.89845L15.047 15.0013C15.0207 15.5604 14.5597 16.0002 14 16.0002C13.4403 16.0002 12.9793 15.5604 12.953 15.0013L12.6658 8.89845Z\\\">'),Uie=t=>{let e=Bn(),n=()=>t.size,r=()=>t.fill||e.colors.icon.error;return Xe(()=>Xe(()=>n()===\\\"16\\\")()?(()=>{var i=Oie(),a=i.firstChild,o=a.firstChild,s=o.nextSibling,l=s.nextSibling,c=a.nextSibling,u=c.firstChild,d=u.firstChild;return zt(h=>{var g=r(),y=e.colors.constant.white,E=e.colors.constant.white,N=e.colors.constant.white;return g!==h.e&&Qe(o,\\\"fill\\\",h.e=g),y!==h.t&&Qe(s,\\\"fill\\\",h.t=y),E!==h.a&&Qe(l,\\\"fill\\\",h.a=E),N!==h.o&&Qe(d,\\\"fill\\\",h.o=N),h},{e:void 0,t:void 0,a:void 0,o:void 0}),i})():Xe(()=>n()===\\\"28\\\")()?(()=>{var i=Iie(),a=i.firstChild,o=a.nextSibling,s=o.nextSibling;return zt(l=>{var c=t.class,u=r(),d=e.colors.constant.white,h=e.colors.constant.white;return c!==l.e&&Qe(i,\\\"class\\\",l.e=c),u!==l.t&&Qe(a,\\\"fill\\\",l.t=u),d!==l.a&&Qe(o,\\\"fill\\\",l.a=d),h!==l.o&&Qe(s,\\\"fill\\\",l.o=h),l},{e:void 0,t:void 0,a:void 0,o:void 0}),i})():null)},K6=\\\"wallet_connect\\\",MU=\\\"WalletConnect\\\",Nie=\\\"https://reown.com/\\\",oI=Dt(\\\"<li>\\\"),Pie=t=>{let e=()=>ih()?void 0:510,n=Gt.connector,r=Gt.connectRequestParameters,i=()=>{n.connect({type:\\\"wallet-connect\\\"},r?.state===\\\"ready\\\"?r.value:void 0)},[a,o]=Je(null),s=null,l=g=>{o(g),s!=null&&clearTimeout(s),s=setTimeout(()=>o(null),1500)},c=g=>{if(!g.isSupportRequiredFeatures&&t.featureCheckMode===\\\"strict\\\"){l(g);return}t.onSelect(g)},u=()=>ih()?t.walletsList.filter(Cg):t.walletsList,d=()=>u().filter(g=>g.isSupportRequiredFeatures);a_({walletsMenu:\\\"other_wallets\\\",wallets:d()});let h=()=>u().filter(g=>!g.isSupportRequiredFeatures);return p(Eie,{\\\"data-tc-wallets-modal-list\\\":\\\"true\\\",get children(){return[p(kie,{icon:\\\"arrow\\\",onClick:()=>t.onBack()}),p(Aie,{translationKey:\\\"walletModal.wallets\\\",children:\\\"Wallets\\\"}),p(u_,{get maxHeight(){return e()},get children(){return[p(aI,{get children(){return[p(th,{get each(){return d()},children:g=>(()=>{var y=oI();return xr(y,p(m6,{wallet:g,onClick:()=>t.onSelect(g)})),y})()}),p(at,{get when(){return Xe(()=>!ni())()&&r6()},get children(){return p(m6,{get wallet(){return{type:\\\"wallet-connect\\\",name:MU,appName:K6,imageUrl:wu.WALLET_CONNECT}},onClick:i})}})]}}),p(at,{get when(){return h().length>0&&t.featureCheckMode!==\\\"hide\\\"},get children(){return[p(Bie,{get children(){return[p(Mie,{translationKey:\\\"walletModal.allWallets.walletsBelowNotSupported\\\",children:\\\"The wallets below don\\\\u2019t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above.\\\"}),p(Uie,{size:\\\"28\\\"})]}}),p(aI,{get children(){return p(th,{get each(){return h()},children:g=>(()=>{var y=oI();return xr(y,p(m6,{wallet:g,onClick:()=>c(g),get withOpacity(){return t.featureCheckMode===\\\"strict\\\"}})),y})()})}}),p(Jb,{onBeforeEnter:g=>{va(g,[{opacity:0,transform:\\\"translate(-50%, 44px)\\\"},{opacity:1,transform:\\\"translate(-50%, 0)\\\"}],{duration:150,easing:\\\"ease-out\\\"})},onExit:(g,y)=>{va(g,[{opacity:1,transform:\\\"translate(-50%, 0)\\\"},{opacity:0,transform:\\\"translate(-50%, 44px)\\\"}],{duration:150,easing:\\\"ease-out\\\"}).finished.then(()=>{y()})},get children(){return p(at,{get when(){return a()},get children(){return p(Rie,{get children(){return[p(jl,{size:\\\"xs\\\"}),p(Ti,{translationKey:\\\"walletModal.allWallets.walletNotSupportService\\\",get translationValues(){return{name:a().name}},get children(){return[Xe(()=>a().name),\\\" doesn\\\\u2019t support connected service\\\"]}})]}})}})}})]}})]}})]}})},jie={m:\\\"16px\\\",s:\\\"12px\\\",none:\\\"0\\\"},zie={m:\\\"6px\\\",s:\\\"6px\\\",none:\\\"0\\\"},Die=G.div`\\n    display: flex;\\n    flex-direction: column;\\n`,Lie=G.div`\\n    flex: 1;\\n    margin-top: ${t=>t.qr?\\\"0\\\":\\\"18px\\\"};\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    justify-content: center;\\n    min-height: 232px;\\n`,qie=G(tv)`\\n    margin-bottom: 24px;\\n`,Vie=G(Wi)`\\n    max-width: 288px;\\n    margin: 0 auto 2px;\\n`,Hie=G(yo)`\\n    max-width: 288px;\\n    text-align: center;\\n    margin: 0 auto 20px;\\n`,Wie=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,vg=G.div`\\n    display: flex;\\n    justify-content: center;\\n    gap: 8px;\\n    padding-bottom: 16px;\\n`,Fie=G(vg)`\\n    padding-bottom: 0;\\n`,y6=G(un)`\\n    margin-bottom: 24px;\\n`,$ie=G(bo)`\\n    margin-bottom: 18px;\\n    margin-top: 2px;\\n`,Kie=G(jl)`\\n    margin-bottom: 16px;\\n`,su=G(yo)`\\n    color: ${t=>t.theme.colors.text.secondary};\\n    text-align: center;\\n    margin-bottom: 20px;\\n`,Zie=G(un)`\\n    margin-top: -8px;\\n    margin-bottom: 24px;\\n    width: 100%;\\n    padding: 12px 12px 12px 20px;\\n    border-radius: ${t=>jie[t.theme.borderRadius]};\\n    font-size: 16px;\\n    line-height: 20px;\\n`,Yie=G(vu)`\\n    width: 32px;\\n    height: 32px;\\n    border-radius: ${t=>zie[t.theme.borderRadius]};\\n`,gn=t=>{let[e]=Pa();return Xe(()=>{var n;return e(t.translationKey,t.translationValues,(n=t.children)==null?void 0:n.toString())})};UU=t=>{let[e,n]=Je(\\\"mobile\\\"),[r,i]=Je(null);Zn(()=>{var N;i((N=t.defaultError)!=null?N:null)});let[a,o]=Je(),[s,l]=Je(!0),c=Vr(lh),u=c.onStatusChange(()=>{},N=>{if(N instanceof Ml){i(\\\"missing-features\\\");return}if(N instanceof us){i(\\\"wrong-network\\\");return}t.wallet.appName!==wa&&i(\\\"connection-declined\\\")});ri(u);let d=()=>{var N;try{let _=c.connect({universalLink:t.wallet.universalLink,bridgeUrl:t.wallet.bridgeUrl},t.additionalRequest,{traceId:(N=t.walletsModalState)==null?void 0:N.traceId});o(_)}catch{}};Zn(()=>{qn(e)!==\\\"extension\\\"&&(Cg(t.wallet)||rI(t.wallet))&&d()});let h=()=>{i(null),e()===\\\"extension\\\"&&d(),n(\\\"mobile\\\"),Rr(mr(Kt({},t.wallet),{openMethod:\\\"qrcode\\\"}))},g=()=>{if(i(null),e()===\\\"extension\\\"&&d(),n(\\\"desktop\\\"),ma(a()))y();else{let N=!s();l(!1),jg(a(),t.wallet.deepLink,{returnStrategy:Gt.returnStrategy,forceRedirect:N},_=>{Rr(mr(Kt({},t.wallet),{openMethod:_}))})}},y=()=>{let N=!s();l(!1),Rr(mr(Kt({},t.wallet),{openMethod:\\\"universal-link\\\"})),Pg(a(),{returnStrategy:Gt.returnStrategy,twaReturnUrl:Gt.twaReturnUrl,forceRedirect:N})},E=()=>{var N;i(null),n(\\\"extension\\\"),ds(t.wallet)&&(Rr(t.wallet),c.connect({jsBridgeKey:t.wallet.jsBridgeKey},t.additionalRequest,{traceId:(N=t.walletsModalState)==null?void 0:N.traceId}))};return Cg(t.wallet)?h():iI(t.wallet)?E():g(),p(Die,{\\\"data-tc-wallets-modal-connection-desktop\\\":\\\"true\\\",get children(){return[p(at,{get when(){return!t.backDisabled},get children(){return p(Wie,{icon:\\\"arrow\\\",onClick:()=>t.onBackClick()})}}),p(Vie,{get children(){return t.wallet.name}}),p(at,{get when(){return Xe(()=>e()===\\\"mobile\\\")()&&!r()},get children(){return p(Hie,{translationKey:\\\"walletModal.desktopConnectionModal.scanQR\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Scan the QR code below with your phone\\\\u2019s or \\\",Xe(()=>t.wallet.name),\\\"\\\\u2019s camera\\\"]}})}}),p(Lie,{get qr(){return e()===\\\"mobile\\\"},get children(){return p(vs,{get children(){return[p(qt,{get when(){return r()},get children(){return[p(Kie,{size:\\\"s\\\"}),p(vs,{get children(){return[p(qt,{get when(){return r()===\\\"missing-features\\\"},get children(){return p(su,{translationKey:\\\"walletModal.desktopConnectionModal.missingFeatures\\\",get translationValues(){return{name:t.wallet.name}},children:\\\"Please update Wallet, your version does not support required features for this dApp\\\"})}}),p(qt,{get when(){return r()===\\\"connection-declined\\\"},get children(){return p(su,{translationKey:\\\"walletModal.desktopConnectionModal.connectionDeclined\\\",children:\\\"Connection declined\\\"})}}),p(qt,{get when(){return r()===\\\"not-supported\\\"},get children(){return p(su,{translationKey:\\\"walletModal.desktopConnectionModal.notSupportedWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[Xe(()=>t.wallet.name),\\\" doesn\\\\u2019t support the requested action. Please connect another wallet that supports it.\\\"]}})}}),p(qt,{get when(){return r()===\\\"wrong-network\\\"},get children(){return p(su,{translationKey:\\\"walletModal.desktopConnectionModal.wrongNetwork\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Connected wallet is on a different network. Please switch network in \\\",Xe(()=>t.wallet.name),\\\" and try again.\\\"]}})}})]}}),p(vg,{get children(){return[p(at,{get when(){return r()!==\\\"not-supported\\\"},get children(){return p(un,{get leftIcon(){return p(fu,{})},get onClick(){return e()===\\\"extension\\\"?E:g},get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}})}}),p(at,{get when(){return r()===\\\"missing-features\\\"},get children(){return p(Nl,{get href(){return t.wallet.aboutUrl},blank:!0,get children(){return p(un,{get leftIcon(){return p(Jf,{})},get children(){return p(gn,{translationKey:\\\"walletModal.desktopConnectionModal.updateWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Update \\\",Xe(()=>t.wallet.name)]}})}})}})}}),p(at,{get when(){return r()===\\\"not-supported\\\"},get children(){return p(un,{onClick:()=>t.onBackClick(),get children(){return p(gn,{translationKey:\\\"walletModal.desktopConnectionModal.chooseAnotherWallet\\\",children:\\\"Choose Another Wallet\\\"})}})}})]}})]}}),p(qt,{get when(){return e()===\\\"mobile\\\"},get children(){return p(qie,{disableCopy:!1,get sourceUrl(){return wn(a(),\\\"none\\\")},get imageUrl(){return t.wallet.imageUrl}})}}),p(qt,{get when(){return e()===\\\"extension\\\"},get children(){return[p(at,{get when(){return ds(t.wallet)},get children(){return[p($ie,{size:\\\"s\\\"}),p(su,{translationKey:\\\"walletModal.desktopConnectionModal.continueInExtension\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Continue in \\\",Xe(()=>t.wallet.name),\\\" browser extension\\\\u2026\\\"]}}),p(vg,{get children(){return p(un,{get leftIcon(){return p(fu,{})},onClick:E,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}})}})]}}),p(at,{get when(){return!ds(t.wallet)},get children(){return[p(su,{translationKey:\\\"walletModal.desktopConnectionModal.dontHaveExtension\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Seems you don't have installed \\\",Xe(()=>t.wallet.name),\\\" browser extension\\\"]}}),p(vg,{get children(){return p(Nl,{get href(){return t.wallet.aboutUrl},blank:!0,get children(){return p(un,{get rightIcon(){return p(Jf,{})},onClick:E,get children(){return p(gn,{translationKey:\\\"walletModal.desktopConnectionModal.getWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Get \\\",Xe(()=>t.wallet.name)]}})}})}})}})]}})]}}),p(qt,{get when(){return e()===\\\"desktop\\\"},get children(){return[p(bo,{size:\\\"m\\\"}),p(su,{translationKey:\\\"walletModal.desktopConnectionModal.continueOnDesktop\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Continue in \\\",Xe(()=>t.wallet.name),\\\" on desktop\\\\u2026\\\"]}}),p(vg,{get children(){return[p(un,{get leftIcon(){return p(fu,{})},onClick:g,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}}),p(Nl,{get href(){return t.wallet.aboutUrl},blank:!0,get children(){return p(un,{get rightIcon(){return p(Jf,{})},get children(){return p(gn,{translationKey:\\\"walletModal.desktopConnectionModal.getWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Get \\\",Xe(()=>t.wallet.name)]}})}})}})]}})]}})]}})}}),p(at,{get when(){return t.wallet.appName===wa},get children(){return p(Zie,{get rightIcon(){return p(Yie,{get src(){return wu.TG}})},scale:\\\"s\\\",onClick:y,get children(){return p(gn,{translationKey:\\\"walletModal.desktopConnectionModal.openWalletOnTelegram\\\",children:\\\"Open Wallet in Telegram on desktop\\\"})}})}}),p(at,{get when(){return t.wallet.appName!==wa},get children(){return p(Fie,{get children(){return[p(at,{get when(){return Xe(()=>e()!==\\\"mobile\\\")()&&Cg(t.wallet)},get children(){return p(y6,{appearance:\\\"secondary\\\",get leftIcon(){return p(Sne,{})},onClick:h,get children(){return p(gn,{translationKey:\\\"common.mobile\\\",children:\\\"Mobile\\\"})}})}}),p(at,{get when(){return Xe(()=>e()!==\\\"extension\\\")()&&iI(t.wallet)},get children(){return p(y6,{appearance:\\\"secondary\\\",get leftIcon(){return p(_ne,{})},onClick:E,get children(){return p(gn,{translationKey:\\\"common.browserExtension\\\",children:\\\"Browser Extension\\\"})}})}}),p(at,{get when(){return Xe(()=>e()!==\\\"desktop\\\")()&&rI(t.wallet)},get children(){return p(y6,{appearance:\\\"secondary\\\",get leftIcon(){return p(Ene,{})},onClick:g,get children(){return p(gn,{translationKey:\\\"common.desktop\\\",children:\\\"Desktop\\\"})}})}})]}})}})]}})},Jie=G.div``,eae=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,tae=G(Wi)`\\n    margin-bottom: 18px;\\n`,b6=G.div`\\n    padding: 16px 0;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n`,v6=ws`\\n    margin-bottom: 12px;\\n`,w6=G(nv)`\\n    text-align: center;\\n    margin-bottom: 4px;\\n`,x6=G(Ti)`\\n    text-align: center;\\n    max-width: 352px;\\n    color: ${t=>t.theme.colors.text.secondary};\\n`,nae=G.div`\\n    padding: 16px 24px 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    gap: 8px;\\n`,rae={GET_A_WALLET:\\\"https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1\\\"},NU=t=>p(Jie,{\\\"data-tc-wallets-modal-info\\\":\\\"true\\\",get children(){return[p(eae,{icon:\\\"arrow\\\",onClick:()=>t.onBackClick()}),p(tae,{translationKey:\\\"walletModal.infoModal.whatIsAWallet\\\",children:\\\"What is a wallet\\\"}),p(u_,{get children(){return[p(b6,{get children(){return[p(One,{class:v6}),p(w6,{translationKey:\\\"walletModal.infoModal.secureDigitalAssets\\\",children:\\\"Secure digital assets storage\\\"}),p(x6,{translationKey:\\\"walletModal.infoModal.walletProtects\\\",children:\\\"A wallet protects and manages your digital assets including TON, tokens and collectables.\\\"})]}}),p(b6,{get children(){return[p(Une,{class:v6}),p(w6,{translationKey:\\\"walletModal.infoModal.controlIdentity\\\",children:\\\"Control your Web3 identity\\\"}),p(x6,{translationKey:\\\"walletModal.infoModal.manageIdentity\\\",children:\\\"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.\\\"})]}}),p(b6,{get children(){return[p(Pne,{class:v6}),p(w6,{translationKey:\\\"walletModal.infoModal.effortlessCryptoTransactions\\\",children:\\\"Effortless crypto transactions\\\"}),p(x6,{translationKey:\\\"walletModal.infoModal.easilySend\\\",children:\\\"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.\\\"})]}}),p(nae,{get children(){return p(Nl,{get href(){return rae.GET_A_WALLET},blank:!0,get children(){return p(un,{get rightIcon(){return p(Mne,{})},get children(){return p(gn,{translationKey:\\\"walletModal.infoModal.getAWallet\\\",children:\\\"Get a Wallet\\\"})}})}})}})]}})]}}),iae=G.div``,aae=G.div`\\n    flex: 1;\\n    margin-top: 18px;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    justify-content: center;\\n    min-height: 232px;\\n`,oae=G(Wi)`\\n    max-width: 262px;\\n    margin: 0 auto 8px;\\n`,sae=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,lae=G.div`\\n    padding: 16px;\\n    display: flex;\\n    align-items: center;\\n    gap: 12px;\\n    border-top: 0.5px solid ${t=>bu(t.theme.colors.icon.secondary,.2)};\\n`,cae=G(vu)`\\n    width: 36px;\\n    height: 36px;\\n    border-radius: 10px;\\n`,uae=G(Nl)`\\n    margin-left: auto;\\n`,dae=G(bo)`\\n    margin-bottom: 18px;\\n    margin-top: 2px;\\n`,fae=G(jl)`\\n    margin-bottom: 16px;\\n`,mg=G(yo)`\\n    color: ${t=>t.theme.colors.text.secondary};\\n    text-align: center;\\n    margin-bottom: 20px;\\n`,sI=G.div`\\n    display: flex;\\n    justify-content: center;\\n    gap: 8px;\\n    padding-bottom: 16px;\\n`,hae={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},gae=G(Wi)`\\n    margin-bottom: 2px;\\n    padding: 0 52px;\\n`,pae=G(yo)`\\n    margin-bottom: 20px;\\n    padding: 0 64px;\\n`,mae=G.div`\\n    padding: 0 24px 16px;\\n`,yae=G.div`\\n    display: flex;\\n    flex-direction: row;\\n    gap: 16px;\\n    padding: 0 24px 24px;\\n    margin-top: 0;\\n`,lI=G(un)`\\n    width: 100%;\\n    height: 56px;\\n    border-radius: ${t=>hae[t.theme.borderRadius]};\\n    background-color: ${t=>bu(t.theme.colors.accent,.12)};\\n    color: ${t=>t.theme.colors.accent};\\n    font-size: 16px;\\n    line-height: 20px;\\n    font-weight: 500;\\n    padding: 17px 20px 19px 20px;\\n`,bae=t=>[p(gae,{get children(){return t.walletInfo.name}}),p(pae,{translationKey:\\\"walletModal.mobileConnectionModal.scanQR\\\",get translationValues(){return{name:t.walletInfo.name}},get children(){return[\\\"Scan the QR code below with your phone\\\\u2019s or \\\",Xe(()=>t.walletInfo.name),\\\"\\\\u2019s camera\\\"]}}),p(mae,{get children(){return p(tv,{get imageUrl(){return t.walletInfo.imageUrl},get sourceUrl(){return wn(t.universalLink,\\\"none\\\")},disableCopy:!0})}}),p(yae,{get children(){return[p(lI,{appearance:\\\"secondary\\\",onClick:()=>{var e;return(e=t.onOpenLink)==null?void 0:e.call(t)},get children(){return p(gn,{translationKey:\\\"walletModal.mobileUniversalModal.openLink\\\",children:\\\"Open Link\\\"})}}),p(lI,{appearance:\\\"secondary\\\",onClick:()=>{var e;return(e=t.onCopy)==null?void 0:e.call(t)},get children(){return p(gn,{get translationKey(){return t.isCopiedShown!==void 0?\\\"common.copied\\\":\\\"common.copyLink\\\"},get children(){return t.isCopiedShown!==void 0?\\\"Copied\\\":\\\"Copy Link\\\"}})}})]}})],PU=t=>{let e=Bn(),[n,r]=Je(!0),[i,a]=Je(!1),[o,s]=Je(null);Zn(()=>{var T;s((T=t.defaultError)!=null?T:null)});let l=Vr(lh),c=l.onStatusChange(()=>{},T=>{if(T instanceof Ml){s(\\\"missing-features\\\");return}if(T instanceof us){s(\\\"wrong-network\\\");return}s(null)}),u=xt(()=>{var T;return l.connect({universalLink:t.wallet.universalLink,bridgeUrl:t.wallet.bridgeUrl},t.additionalRequest,{traceId:(T=t.walletModalState)==null?void 0:T.traceId})}),d=()=>{Rr(mr(Kt({},t.wallet),{openMethod:\\\"universal-link\\\"})),Pg(u(),{returnStrategy:Gt.returnStrategy,twaReturnUrl:Gt.twaReturnUrl,forceRedirect:!0})},h=()=>{let T=u();if(ma(T))return d();s(null);let R=!n();r(!1),jg(u(),t.wallet.deepLink,{returnStrategy:Gt.returnStrategy,forceRedirect:R},U=>{Rr(mr(Kt({},t.wallet),{openMethod:U}))})},[g,y]=Je(void 0),E=()=>wt(null,null,function*(){g()!==void 0&&clearTimeout(g()),yield ev(u());let T=setTimeout(()=>y(void 0),1500);y(T)}),N=()=>{s(null),a(!0),Rr(mr(Kt({},t.wallet),{openMethod:\\\"qrcode\\\"}))},_=()=>{a(!1),Rr(mr(Kt({},t.wallet),{openMethod:\\\"universal-link\\\"}))},v=()=>{i()?_():t.onBackClick()};return ri(c),h(),p(iae,{\\\"data-tc-wallets-modal-connection-mobile\\\":\\\"true\\\",get children(){return[p(at,{get when(){return!t.backDisabled||i()},get children(){return p(sae,{icon:\\\"arrow\\\",onClick:v})}}),p(at,{get when(){return i()},get children(){return p(bae,{get universalLink(){return u()},get walletInfo(){return t.wallet},onOpenLink:h,onCopy:E,get isCopiedShown(){return g()}})}}),p(at,{get when(){return!i()},get children(){return[p(oae,{get children(){return t.wallet.name}}),p(aae,{get children(){return[p(at,{get when(){return o()},get children(){return[p(fae,{size:\\\"s\\\"}),p(vs,{get children(){return[p(qt,{get when(){return o()===\\\"missing-features\\\"},get children(){return p(mg,{translationKey:\\\"walletModal.mobileConnectionModal.missingFeatures\\\",get translationValues(){return{name:t.wallet.name}},children:\\\"Please update Wallet, your version does not support required features for this dApp\\\"})}}),p(qt,{get when(){return o()===\\\"connection-declined\\\"},get children(){return p(mg,{translationKey:\\\"walletModal.mobileConnectionModal.connectionDeclined\\\",children:\\\"Connection declined\\\"})}}),p(qt,{get when(){return o()===\\\"wrong-network\\\"},get children(){return p(mg,{translationKey:\\\"walletModal.mobileConnectionModal.wrongNetwork\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Connected wallet is on a different network. Please switch network in \\\",Xe(()=>t.wallet.name),\\\" and try again.\\\"]}})}}),p(qt,{get when(){return o()===\\\"not-supported\\\"},get children(){return p(mg,{translationKey:\\\"walletModal.mobileConnectionModal.notSupportedWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[Xe(()=>t.wallet.name),\\\" doesn't support the requested action. Please connect another wallet that supports it.\\\"]}})}})]}}),p(sI,{get children(){return p(vs,{get children(){return[p(qt,{get when(){return o()===\\\"missing-features\\\"},get children(){return[p(un,{get leftIcon(){return p(fu,{})},onClick:h,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}}),p(Nl,{get href(){return t.wallet.aboutUrl},blank:!0,get children(){return p(un,{get leftIcon(){return p(Jf,{})},get children(){return p(gn,{translationKey:\\\"walletModal.mobileConnectionModal.updateWallet\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Update \\\",Xe(()=>t.wallet.name)]}})}})}})]}}),p(qt,{get when(){return o()===\\\"not-supported\\\"},get children(){return p(un,{onClick:()=>t.onBackClick(),get children(){return p(gn,{translationKey:\\\"walletModal.mobileConnectionModal.chooseAnotherWallet\\\",children:\\\"Choose Another Wallet\\\"})}})}}),p(qt,{get when(){return o()===\\\"wrong-network\\\"},get children(){return p(un,{get leftIcon(){return p(fu,{})},onClick:h,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}})}}),p(qt,{get when(){return o()===\\\"connection-declined\\\"},get children(){return[p(un,{get leftIcon(){return p(fu,{})},onClick:h,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}}),p(un,{get leftIcon(){return p(W6,{get fill(){return e.colors.accent}})},onClick:N,get children(){return p(gn,{translationKey:\\\"walletModal.mobileConnectionModal.showQR\\\",children:\\\"Show QR Code\\\"})}})]}})]}})}})]}}),p(at,{get when(){return!o()},get children(){return[p(dae,{size:\\\"s\\\"}),p(mg,{translationKey:\\\"walletModal.mobileConnectionModal.continueIn\\\",get translationValues(){return{name:t.wallet.name}},get children(){return[\\\"Continue in \\\",Xe(()=>t.wallet.name),\\\"\\\\u2026\\\"]}}),p(sI,{get children(){return[p(un,{get leftIcon(){return p(fu,{})},onClick:h,get children(){return p(gn,{translationKey:\\\"common.retry\\\",children:\\\"Retry\\\"})}}),p(un,{get leftIcon(){return p(W6,{get fill(){return e.colors.accent}})},onClick:N,get children(){return p(gn,{translationKey:\\\"walletModal.mobileConnectionModal.showQR\\\",children:\\\"Show QR Code\\\"})}})]}})]}})]}}),p(lae,{get children(){return[p(cae,{get src(){return t.wallet.imageUrl}}),p(nv,{get children(){return t.wallet.name}}),p(uae,{get href(){return t.wallet.aboutUrl},blank:!0,get children(){return p(un,{get children(){return p(gn,{translationKey:\\\"common.get\\\",children:\\\"GET\\\"})}})}})]}})]}})]}})},vae={m:\\\"16px\\\",s:\\\"12px\\\",none:\\\"0\\\"},wae={m:\\\"6px\\\",s:\\\"6px\\\",none:\\\"0\\\"};G.li`\\n    width: 82px;\\n    min-width: 82px;\\n    height: 124px;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    padding: 8px 4px;\\n\\n    text-align: center;\\n    cursor: pointer;\\n\\n    transition: transform 0.1s ease-in-out;\\n\\n    ${Og} {\\n        &:hover {\\n            transform: scale(1.04);\\n        }\\n    }\\n\\n    &:active {\\n        transform: scale(0.96);\\n    }\\n\\n    ${Rg} {\\n        &:active {\\n            transform: scale(0.92);\\n        }\\n    }\\n`;xae=G(Wi)`\\n    margin-top: 38px;\\n    margin-bottom: 4px;\\n    padding: 0 24px;\\n`,cI=G(yo)`\\n    margin: ${t=>{var e;return(e=t.margin)!=null?e:\\\"0 0 28px 0\\\"}};\\n    padding: ${t=>{var e;return(e=t.padding)!=null?e:\\\"0 24px\\\"}};\\n    min-height: ${t=>{var e;return(e=t.padding)!=null?e:\\\"44px\\\"}};\\n    max-width: ${t=>t.maxWidth}px;\\n    margin-left: ${t=>t.maxWidth?\\\"auto\\\":\\\"0px\\\"};\\n    margin-right: ${t=>t.maxWidth?\\\"auto\\\":\\\"0px\\\"};\\n`;G(un)`\\n    display: block;\\n    margin: 0 auto;\\n`;_ae=G(un)`\\n    margin: 0 28px 24px;\\n    width: calc(100% - 56px);\\n    border-radius: ${t=>vae[t.theme.borderRadius]};\\n    padding: 14px 16px 14px 14px;\\n    background-color: ${t=>t.theme.colors.telegramButton};\\n\\n    color: ${t=>t.theme.colors.constant.white};\\n    font-weight: 500;\\n    font-size: 16px;\\n    line-height: 20px;\\n\\n    @media (max-width: 375px) {\\n        margin: 0 16px 24px;\\n        width: calc(100% - 32px);\\n    }\\n`,Cae=G(vu)`\\n    background-color: transparent;\\n    border-radius: ${t=>wae[t.theme.borderRadius]};\\n    width: 24px;\\n    height: 24px;\\n`,uI=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,Sae={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},Tae=G(Wi)`\\n    margin-bottom: 2px;\\n    padding: 0 52px;\\n`,Eae=G(yo)`\\n    margin-bottom: 20px;\\n    padding: 0 64px;\\n`,Aae=G.div`\\n    padding: 0 24px 16px;\\n`,kae=G.div`\\n    display: flex;\\n    flex-direction: row;\\n    gap: 16px;\\n    padding: 0 24px 24px;\\n    margin-top: 0;\\n`,dI=G(un)`\\n    width: 100%;\\n    height: 56px;\\n    border-radius: ${t=>Sae[t.theme.borderRadius]};\\n    background-color: ${t=>bu(t.theme.colors.accent,.12)};\\n    color: ${t=>t.theme.colors.accent};\\n    font-size: 16px;\\n    line-height: 20px;\\n    font-weight: 500;\\n    padding: 17px 20px 19px 20px;\\n`,Bae=t=>[p(Tae,{translationKey:\\\"walletModal.mobileUniversalModal.connectYourWallet\\\",children:\\\"Connect your TON wallet\\\"}),p(Eae,{translationKey:\\\"walletModal.mobileUniversalModal.scan\\\",children:\\\"Scan with your mobile wallet\\\"}),p(Aae,{get children(){return p(tv,{get imageUrl(){return wu.TON},get sourceUrl(){return wn(t.universalLink,\\\"none\\\")},disableCopy:!0})}}),p(kae,{get children(){return[p(dI,{appearance:\\\"secondary\\\",onClick:()=>t.onOpenLink(),get children(){return p(gn,{translationKey:\\\"walletModal.mobileUniversalModal.openLink\\\",children:\\\"Open Link\\\"})}}),p(dI,{appearance:\\\"secondary\\\",onClick:()=>t.onCopy(),get children(){return p(gn,{get translationKey(){return t.isCopiedShown!==void 0?\\\"common.copied\\\":\\\"common.copyLink\\\"},get children(){return t.isCopiedShown!==void 0?\\\"Copied\\\":\\\"Copy Link\\\"}})}})]}})];fI=Dt(\\\"<li>\\\"),Mae=Dt(\\\"<div data-tc-wallets-modal-universal-mobile=true>\\\"),Rae=t=>{let[e,n]=Je(!1),[r,i]=Je(!0),[a,o]=Je(null),s=Gt.connector,l=()=>t.walletsList.filter(k=>Cg(k)&&k.appName!==wa),c=()=>l().length>7,u=xt(()=>jU(t.walletsList),null,{equals:zU}),d=xt(()=>{var k,q;return(q=(k=t.walletsList.find(z=>z.appName===wa))==null?void 0:k.isSupportRequiredFeatures)!=null?q:!1},null),h=()=>(a()||o(s.connect(u(),t.additionalRequest,{traceId:t.walletModalState.traceId})),a());Rr({openMethod:\\\"universal-link\\\"});let[g,y]=Je(void 0),E=()=>wt(null,null,function*(){g()!==void 0&&clearTimeout(g()),yield ev(h());let k=setTimeout(()=>y(void 0),1500);y(k)}),N=()=>{let k=!r();i(!1),jg(h(),void 0,{returnStrategy:Gt.returnStrategy,forceRedirect:k},q=>{Rr({openMethod:q})})},_=()=>{o(null);let k=t.walletsList.find($=>$.appName===wa);if(!k||!Wf(k))throw new kn(\\\"@wallet bot not found in the wallets list\\\");let q=s.connect({bridgeUrl:k.bridgeUrl,universalLink:k.universalLink},t.additionalRequest,{traceId:t.walletModalState.traceId}),z=!r();i(!1),Pg(q,{returnStrategy:Gt.returnStrategy,twaReturnUrl:Gt.twaReturnUrl,forceRedirect:z})},v=()=>{n(!0),Rr({openMethod:\\\"qrcode\\\"})},T=()=>{n(!1),Rr({openMethod:\\\"universal-link\\\"})},R=xt(()=>l().filter(k=>k.isSupportRequiredFeatures),null),U=xt(()=>R().slice(0,3),null);a_({walletsMenu:\\\"main_screen\\\",wallets:d()?[t.walletsList.find(k=>k.appName===wa),...U()]:U()});let X=xt(()=>l().filter(k=>!U().find(q=>q.appName===k.appName)).slice(0,4),null);return(()=>{var k=Mae();return xr(k,p(at,{get when(){return e()},get children(){return[p(uI,{icon:\\\"arrow\\\",onClick:T}),p(Bae,{get universalLink(){return h()},get isCopiedShown(){return g()},onOpenLink:N,onCopy:E})]}}),null),xr(k,p(at,{get when(){return!e()},get children(){return[p(uI,{get icon(){return p(W6,{})},onClick:v}),p(xae,{translationKey:\\\"walletModal.mobileUniversalModal.connectYourWallet\\\",children:\\\"Connect your TON wallet\\\"}),p(at,{get when(){return d()},get children(){return[p(cI,{translationKey:\\\"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect\\\",maxWidth:320,children:\\\"Use Wallet in Telegram or choose other application\\\"}),p(_ae,{get leftIcon(){return p(zne,{})},get rightIcon(){return p(Cae,{get src(){return wu.TG}})},onClick:_,scale:\\\"s\\\",get children(){return p(gn,{translationKey:\\\"walletModal.mobileUniversalModal.openWalletOnTelegram\\\",children:\\\"Connect Wallet in Telegram\\\"})}})]}}),p(cI,{translationKey:\\\"walletModal.mobileUniversalModal.chooseOtherApplication\\\",maxWidth:342,padding:\\\"0 24px 8px 24px\\\",margin:\\\"0\\\",children:\\\"Choose other application\\\"}),p(Gte,{get children(){return[p(th,{get each(){return Xe(()=>!!c())()?U():R()},children:q=>(()=>{var z=fI();return xr(z,p(Wb,{get icon(){return q.imageUrl},get name(){return q.name},onClick:()=>t.onSelect(q)})),z})()}),p(at,{get when(){return c()},get children(){var q=fI();return xr(q,p(dU,{labelLine1:\\\"View all\\\",labelLine2:\\\"wallets\\\",get images(){return X().map(z=>z.imageUrl)},onClick:()=>t.onSelectAllWallets()})),q}})]}})]}}),null),k})()},DU={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},Oae={m:\\\"8px\\\",s:\\\"4px\\\",none:\\\"0\\\"},Iae=G.div`\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    padding-bottom: 16px;\\n`,Uae=G(yo)`\\n    max-width: 320px;\\n    margin-top: 2px;\\n    margin-bottom: 20px;\\n`,Nae=G(yo)`\\n    margin-bottom: 16px;\\n`,Pae=G(tv)`\\n    margin-bottom: 24px;\\n`,jae=G.ul`\\n    display: flex;\\n`;G.div`\\n    display: flex;\\n    gap: 16px;\\n    width: 100%;\\n`;G(un)`\\n    position: relative;\\n    font-size: 16px;\\n    line-height: 20px;\\n    width: 100%;\\n    padding: 0 16px;\\n    height: 56px;\\n    border-radius: ${t=>DU[t.theme.borderRadius]};\\n\\n    &:hover {\\n        ${t=>t.disableEventsAnimation?\\\"transform: unset;\\\":\\\"\\\"}\\n    }\\n\\n    &:active {\\n        ${t=>t.disableEventsAnimation?\\\"transform: unset;\\\":\\\"\\\"}\\n    }\\n`;G.ul`\\n    position: absolute;\\n    bottom: 100%;\\n    left: 0;\\n    margin: 0;\\n    padding: 8px;\\n    width: 188px;\\n    transform: translateY(-16px);\\n\\n    background-color: ${t=>t.theme.colors.background.primary};\\n    border-radius: ${t=>DU[t.theme.borderRadius]};\\n    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);\\n`;G.li`\\n    padding: 8px;\\n\\n    display: flex;\\n    align-items: center;\\n    gap: 8px;\\n\\n    cursor: pointer;\\n    border-radius: ${t=>Oae[t.theme.borderRadius]};\\n\\n    transition:\\n        background-color,\\n        transform 0.1s ease-in-out;\\n\\n    &:hover {\\n        background-color: ${t=>t.theme.colors.background.secondary};\\n    }\\n\\n    &:active {\\n        transform: scale(0.96);\\n    }\\n`;G(vu)`\\n    width: 24px;\\n    height: 24px;\\n\\n    border-radius: 6px;\\n`;G.div`\\n    margin-top: 23px;\\n    margin-bottom: 1px;\\n    width: 100%;\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n`;G(Ti)`\\n    color: ${t=>t.theme.colors.text.secondary};\\n    font-size: 16px;\\n`;zae=Dt(\\\"<li>\\\"),Dae=t=>{let[e,n]=Je(!1),r=Gt.connector,i=xt(()=>jU(t.walletsList),null,{equals:zU});Rr({openMethod:\\\"qrcode\\\"});let a=xt(()=>r.connect(i(),t.additionalRequest,{traceId:t.walletModalState.traceId})),o=xt(()=>t.walletsList.filter(c=>c.isSupportRequiredFeatures),null),s=xt(()=>o().slice(0,3),null);a_({walletsMenu:\\\"main_screen\\\",wallets:s()});let l=xt(()=>t.walletsList.filter(c=>!s().find(u=>u.appName===c.appName)).slice(0,4),null);return p(Iae,{onClick:()=>n(!1),\\\"data-tc-wallets-modal-universal-desktop\\\":\\\"true\\\",get children(){return[p(Wi,{translationKey:\\\"walletModal.desktopUniversalModal.connectYourWallet\\\",children:\\\"Connect your wallet\\\"}),p(Uae,{translationKey:\\\"walletModal.desktopUniversalModal.scan\\\",children:\\\"Scan with your mobile wallet\\\"}),p(Pae,{get sourceUrl(){return wn(a(),\\\"none\\\")},get disableCopy(){return e()},get imageUrl(){return wu.TON}}),p(Nae,{translationKey:\\\"walletModal.desktopUniversalModal.availableWallets\\\",children:\\\"Available wallets\\\"}),p(jae,{get children(){return[p(th,{get each(){return s()},children:c=>(()=>{var u=zae();return xr(u,p(fU,{wallet:c,onClick:()=>t.onSelect(c)})),u})()}),p(dU,{labelLine1:\\\"View all\\\",labelLine2:\\\"wallets\\\",get images(){return l().map(c=>c.imageUrl)},onClick:()=>t.onSelectAllWallets()})]}})]}})},Lae={m:\\\"16px\\\",s:\\\"8px\\\",none:\\\"0\\\"},qae=G(Wi)`\\n    max-width: 288px;\\n    margin: 0 auto 38px;\\n`,hI=G.div`\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n`,Vae=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,gI=G(Wi)`\\n    text-align: center;\\n    font-size: 20px;\\n    line-height: 28px;\\n`,Hae=G(Ti)`\\n    margin-top: 12px;\\n    margin-bottom: 24px;\\n    text-align: center;\\n    max-width: 360px;\\n    font-weight: 400;\\n    color: ${t=>t.theme.colors.text.secondary};\\n`;G.button`\\n    background: transparent;\\n    border: none;\\n    padding: 0;\\n    margin: 0;\\n    color: ${t=>t.theme.colors.accent};\\n    text-decoration: underline;\\n    cursor: pointer;\\n    font: inherit;\\n`;_6=G.div`\\n    margin-bottom: 46px;\\n`,pI=G(jl)`\\n    margin-bottom: 16px;\\n`;G.ul`\\n    display: flex;\\n    gap: 8px;\\n    margin-bottom: 24px;\\n    list-style: none;\\n    padding: 0;\\n`;Wae=G(un)`\\n    max-width: 320px;\\n    width: 100%;\\n    height: 48px;\\n    font-size: 16px;\\n    line-height: 20px;\\n    border-radius: ${t=>Lae[t.theme.borderRadius]};\\n    margin-bottom: 28px;\\n`,Fae=G(yo)`\\n    color: ${t=>t.theme.colors.text.secondary};\\n    text-align: center;\\n    margin-bottom: 20px;\\n`,$ae=G.div`\\n    display: flex;\\n    justify-content: center;\\n    gap: 8px;\\n    padding-bottom: 31px;\\n`,Kae=G.div`\\n    margin: 0 8px 16px 8px;\\n`,Zae=G(_s)`\\n    position: absolute;\\n    top: 16px;\\n    left: 16px;\\n`,Yae=G(Wi)`\\n    margin-bottom: 18px;\\n    text-align: center;\\n`,C6=G.div`\\n    padding: 16px 0;\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n`;G.div`\\n    margin-bottom: 12px;\\n`;S6=G(nv)`\\n    text-align: center;\\n    margin-bottom: 4px;\\n`,T6=G(Ti)`\\n    text-align: center;\\n    max-width: 352px;\\n    color: ${t=>t.theme.colors.text.secondary};\\n`,E6=G.div`\\n    width: 44px;\\n    height: 44px;\\n    border-radius: 20px;\\n    background-color: ${t=>{var e;return(e=t.theme)==null?void 0:e.colors.icon.secondary}};\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n    margin-bottom: 12px;\\n    font-weight: 700;\\n    font-size: 22px;\\n    color: ${t=>{var e;return(e=t.theme)==null?void 0:e.colors.text.primary}};\\n`,Gae=t=>p(Kae,{\\\"data-tc-wallets-modal-restore\\\":\\\"true\\\",get children(){return[p(Zae,{icon:\\\"arrow\\\",get onClick(){return t.onBackClick}}),p(Yae,{translationKey:\\\"walletModal.restoreInfoModal.title\\\",children:\\\"Restore\\\"}),p(u_,{get children(){return[p(C6,{get children(){return[p(E6,{children:\\\"1\\\"}),p(S6,{translationKey:\\\"walletModal.restoreModal.step1.title\\\",children:\\\"Find your current recovery phrase\\\"}),p(T6,{translationKey:\\\"walletModal.restoreModal.step1.text\\\",children:\\\"Open your wallet settings and locate the\\\\xA0recovery\\\\xA0phrase\\\"})]}}),p(C6,{get children(){return[p(E6,{children:\\\"2\\\"}),p(S6,{translationKey:\\\"walletModal.restoreModal.step2.title\\\",children:\\\"Copy your recovery phrase\\\"}),p(T6,{translationKey:\\\"walletModal.restoreModal.step2.text\\\",children:\\\"Write it down or copy it to a safe place\\\"})]}}),p(C6,{get children(){return[p(E6,{children:\\\"3\\\"}),p(S6,{translationKey:\\\"walletModal.restoreModal.step3.title\\\",children:\\\"Restore in a supported wallet from\\\\xA0the\\\\xA0list\\\\xA0below\\\"}),p(T6,{translationKey:\\\"walletModal.restoreModal.step3.text\\\",children:\\\"Enter the recovery phrase to access your wallet\\\"})]}})]}})]}}),Qae=t=>{let[e,n]=Je(null),[r,i]=Je(!1),a=xt(()=>t.walletsList.find(c=>c.appName===t.currentWallet.device.appName||c.name===t.currentWallet.device.appName)),o=xt(()=>{var c,u,d,h;return((u=(c=a())==null?void 0:c.appName)!=null?u:t.currentWallet.device.appName)===wa?\\\"Wallet in Telegram\\\":(h=(d=a())==null?void 0:d.name)!=null?h:t.currentWallet.device.appName}),s=xt(()=>{let c=a();if(!c?.features)return!1;let u=t.walletsModalState.requiredFeature,d=u?{[u.featureName]:u.value}:{},h=Ff(c.features,d),g=Ff(t.currentWallet.device.features,d);return h&&!g}),l=()=>wt(null,null,function*(){yield t.onDisconnect(),t.onSelect(e())});return p(hI,{get children(){return p(vs,{get children(){return[p(qt,{get when(){return r()},get children(){return p(Gae,{onBackClick:()=>i(!1)})}}),p(qt,{get when(){return e()},get children(){return[p(_6,{}),p(hI,{get children(){return[p(Vae,{icon:\\\"arrow\\\",onClick:()=>n(null)}),p(gI,{translationKey:\\\"walletModal.featureNotSupported.disconnect.title\\\",children:\\\"Confirm Disconnect\\\"}),p(Hae,{translationKey:\\\"walletModal.featureNotSupported.disconnect.description\\\",get translationValues(){return{name:e().name}},get children(){return[\\\"You will be disconnected from your current wallet and redirected to connect \\\",Xe(()=>{var c;return(c=e())==null?void 0:c.name}),\\\".\\\"]}}),p(Wae,{onClick:()=>l(),get children(){return p(gn,{translationKey:\\\"walletModal.featureNotSupported.disconnect.button\\\",children:\\\"Disconnect\\\"})}})]}})]}}),p(qt,{get when(){return s()},get children(){return[p(qae,{get children(){return o()}}),p(pI,{size:\\\"s\\\"}),p(Fae,{translationKey:\\\"walletModal.featureNotSupported.version.description\\\",get translationValues(){return{name:o()}},get children(){return[\\\"Your current version of \\\",Xe(()=>o()),\\\" or wallet contract type doesn't support the required features. Please update it to continue.\\\"]}}),p($ae,{get children(){return[p(Nl,{get href(){return a().aboutUrl},blank:!0,get children(){return p(un,{get leftIcon(){return p(Jf,{})},get children(){return p(gn,{translationKey:\\\"walletModal.featureNotSupported.version.updateButton\\\",get translationValues(){return{name:o()}},get children(){return[\\\"Update \\\",Xe(()=>o())]}})}})}}),p(Nl,{href:\\\"https://tonkeeper.helpscoutdocs.com/article/102-w5\\\",blank:!0,get children(){return p(un,{get leftIcon(){return p(Jf,{})},get children(){return p(gn,{translationKey:\\\"walletModal.featureNotSupported.version.aboutW5\\\",children:\\\"About W5\\\"})}})}})]}})]}}),p(qt,{when:!0,get children(){return[p(_6,{}),p(pI,{size:\\\"s\\\"}),p(gI,{translationKey:\\\"walletModal.featureNotSupported.wallet.title\\\",get translationValues(){return{name:o()}},get children(){return[Xe(()=>o()),\\\" doesn\\\\u2019t support the requested\\\\xA0action\\\"]}}),p(_6,{})]}})]}})}})},Xae=()=>{let{locale:t}=Pa()[1];Zn(()=>t(Gt.language)),Zn(()=>{PO()?(Fb(),i()):(o(null),u(\\\"universal\\\"),h(!1))});let e=Vr(lh),n=Vr(Cs),[r,{refetch:i}]=dJ(()=>n.getWallets()),[a,o]=Je(null),[s,l]=Je(null),[c,u]=Je(\\\"universal\\\"),[d,h]=Je(!1),g=xt(()=>{let k=cu();return\\\"type\\\"in k&&k.type===\\\"wallet-not-support-feature\\\"}),y=xt(()=>{var k;if(r.state!==\\\"ready\\\")return null;let q=y_(r(),Gt.walletsListConfiguration),z=q.filter(ds),$=q.filter(O=>!ds(O));q=(z||[]).concat($);let L=Gt.preferredWalletAppName,P=q.find(O=>Ol(O,L)),pe=q.filter(O=>Ol(O,L)).length>=2;L&&P&&!pe&&(q=[mr(Kt({},P),{isPreferred:!0})].concat(q.filter(O=>!Ol(O,L))));let le=q.find(O=>Ol(O,wa));le&&(q=[le].concat(q.filter(O=>!Ol(O,wa))));let se=(k=n?.walletsRequiredFeatures)!=null?k:n?.walletsPreferredFeatures;return q.map(O=>{var Ze;return mr(Kt({},O),{isSupportRequiredFeatures:se?Ff((Ze=O.features)!=null?Ze:[],se):!0})})}),E=()=>{var k;return((k=Gt.connectRequestParameters)==null?void 0:k.state)===\\\"loading\\\"},N=xt(()=>{var k;if(!E())return(k=Gt.connectRequestParameters)==null?void 0:k.value}),_=k=>{n.closeModal(k)},v=e.onStatusChange(k=>{k&&_(\\\"wallet-selected\\\")},k=>{var q;if(k instanceof Ml){let z=k.cause.connectEvent.device.appName.toLowerCase(),$=(q=y())==null?void 0:q.find(P=>P.appName.toLowerCase()===z);if(!$)throw new Oe(\\\"Wallet not found\\\");let L=$.isSupportRequiredFeatures?\\\"missing-features\\\":\\\"not-supported\\\";l(L),o($)}}),T=()=>{u(\\\"all-wallets\\\")},R=()=>{u(\\\"universal\\\")},U=k=>{o(k),Ln.openWalletsModal()},X=()=>{o(null),l(null)};return ri(()=>{o(null),l(null),h(!1)}),ri(v),p(AU,{get opened(){return PO()},get enableAndroidBackHandler(){return Gt.enableAndroidBackHandler},onClose:()=>_(\\\"action-cancelled\\\"),onClickQuestion:()=>h(k=>!k),get showFooter(){return!g()},\\\"data-tc-wallets-modal-container\\\":\\\"true\\\",get children(){return[p(at,{get when(){return d()},get children(){return p(NU,{onBackClick:()=>h(!1)})}}),p(at,{get when(){return!d()},get children(){return[p(at,{get when(){return E()||!y()},get children(){return[p(kU,{translationKey:\\\"walletModal.loading\\\",children:\\\"Wallets list is loading\\\"}),p(BU,{get children(){return p(bo,{size:\\\"m\\\"})}})]}}),p(at,{get when(){return Xe(()=>!E())()&&y()},get children(){return p(vs,{get children(){return[p(qt,{get when(){return g()},get children(){return p(Qae,{get walletsList(){return y()},get currentWallet(){return n?.wallet},onSelect:U,onSelectAllWallets:T,onDisconnect:()=>e.disconnect(),get walletsModalState(){return cu()},onClose:()=>_(\\\"action-cancelled\\\")})}}),p(qt,{get when(){return a()},get children(){return p(nh,{get component(){return ih()?PU:UU},get walletsModalState(){return cu()},get wallet(){return a()},get additionalRequest(){return N()},onBackClick:X,get defaultError(){return s()}})}}),p(qt,{get when(){return c()===\\\"universal\\\"},get children(){return p(nh,{get component(){return ih()?Rae:Dae},onSelect:o,get walletModalState(){return cu()},get walletsList(){return y()},get additionalRequest(){return N()},onSelectAllWallets:T})}}),p(qt,{get when(){return c()===\\\"all-wallets\\\"},get children(){return p(Pie,{get walletsList(){return y()},get featureCheckMode(){return n?.walletsRequiredFeatures?\\\"strict\\\":\\\"soft\\\"},onBack:R,onSelect:o})}})]}})}})]}})]}})},Jae=G.div`\\n    display: flex;\\n    flex-direction: column;\\n    align-items: center;\\n    padding-bottom: 8px;\\n`,eoe=G(Wi)`\\n    margin-top: 16px;\\n`,toe=G(Ti)`\\n    font-weight: 510;\\n    font-size: 16px;\\n    line-height: 20px;\\n    text-align: center;\\n    max-width: 250px;\\n\\n    color: ${t=>t.theme.colors.text.secondary};\\n`,noe=G(un)`\\n    min-width: 112px;\\n    margin-top: 32px;\\n`,roe=G(bo)`\\n    height: 16px;\\n    width: 16px;\\n`,mI=G(un)`\\n    margin-top: 32px;\\n`,uh=t=>{let e=Ig(t),n=Vr(Cs),[r,i]=Je(!0),[a,o]=Je(!1),[s,l]=Je(!1),[c,u]=Je(!1);Zn(()=>{let y=ya();o(!!y&&(\\\"sent\\\"in y&&y.sent||y.name===\\\"transaction-sent\\\")),l(!!y&&(\\\"signed\\\"in y&&y.signed||y.name===\\\"data-signed\\\")),u(!!y&&(y.name===\\\"transaction-canceled\\\"||y.name===\\\"sign-data-canceled\\\"))});let d;n?.wallet&&\\\"universalLink\\\"in n.wallet&&(n.wallet.openMethod===\\\"universal-link\\\"||ma(n.wallet.universalLink)&&ni())&&(d=n.wallet.universalLink);let h;n?.wallet&&\\\"deepLink\\\"in n.wallet&&(n.wallet.openMethod===\\\"custom-deeplink\\\"||ma(n.wallet.deepLink)&&ni())&&(h=n.wallet.deepLink);let g=()=>{let y=ya(),E=\\\"returnStrategy\\\"in y?y.returnStrategy:Gt.returnStrategy,N=!r();i(!1);let _=RU(d,{sessionId:y.sessionId,traceId:y.traceId});ma(d)?Pg(_,{returnStrategy:E,twaReturnUrl:\\\"twaReturnUrl\\\"in y?y.twaReturnUrl:Gt.twaReturnUrl,forceRedirect:N}):jg(_,h,{returnStrategy:E,forceRedirect:N},()=>{})};return p(Jae,fo(e,{get children(){return[Xe(()=>t.icon),p(eoe,{get translationKey(){return t.headerTranslationKey},get translationValues(){return t.headerTranslationValues}}),p(toe,{get translationKey(){return t.textTranslationKey},get translationValues(){return t.textTranslationValues}}),p(at,{get when(){return!a()&&!s()&&!c()&&(t.showButton===\\\"open-wallet\\\"&&d||t.showButton!==\\\"open-wallet\\\")},get children(){return p(noe,{disabled:!0,\\\"data-tc-connect-button-loading\\\":\\\"true\\\",get children(){return p(roe,{})}})}}),p(at,{get when(){return a()||s()},get children(){return[p(at,{get when(){return t.showButton!==\\\"open-wallet\\\"},get children(){return p(mI,{onClick:()=>t.onClose(),get children(){return p(gn,{translationKey:\\\"common.close\\\",children:\\\"Close\\\"})}})}}),p(at,{get when(){return t.showButton===\\\"open-wallet\\\"&&d},get children(){return p(mI,{onClick:g,get children(){return p(gn,{translationKey:\\\"common.openWallet\\\",children:\\\"Open wallet\\\"})}})}})]}})]}}))},ioe=t=>{let e=Vr(Cs),[n]=Pa(),r=()=>e.wallet&&\\\"name\\\"in e.wallet?e.wallet.name:n(\\\"common.yourWallet\\\",{},\\\"Your wallet\\\");return p(uh,{headerTranslationKey:\\\"actionModal.confirmTransaction.header\\\",get headerTranslationValues(){return{name:r()}},textTranslationKey:\\\"actionModal.confirmTransaction.text\\\",get icon(){return p(bo,{size:\\\"m\\\"})},onClose:()=>t.onClose(),showButton:\\\"open-wallet\\\",\\\"data-tc-confirm-modal\\\":\\\"true\\\"})},aoe=t=>p(uh,{headerTranslationKey:\\\"actionModal.transactionCanceled.header\\\",textTranslationKey:\\\"actionModal.transactionCanceled.text\\\",get icon(){return p(jl,{size:\\\"m\\\"})},onClose:()=>t.onClose(),\\\"data-tc-transaction-canceled-modal\\\":\\\"true\\\"}),ooe=t=>p(uh,{headerTranslationKey:\\\"actionModal.transactionSent.header\\\",textTranslationKey:\\\"actionModal.transactionSent.text\\\",get icon(){return p(rv,{size:\\\"m\\\"})},showButton:\\\"open-wallet\\\",onClose:()=>t.onClose(),\\\"data-tc-transaction-sent-modal\\\":\\\"true\\\"}),soe=t=>{let e=Vr(Cs),[n]=Pa(),r=()=>e.wallet&&\\\"name\\\"in e.wallet?e.wallet.name:n(\\\"common.yourWallet\\\",{},\\\"Your wallet\\\");return p(uh,{headerTranslationKey:\\\"actionModal.signData.header\\\",get headerTranslationValues(){return{name:r()}},textTranslationKey:\\\"actionModal.signData.text\\\",get icon(){return p(bo,{size:\\\"m\\\"})},onClose:()=>t.onClose(),showButton:\\\"open-wallet\\\",\\\"data-tc-sign-data-confirm-modal\\\":\\\"true\\\"})},loe=t=>p(uh,{headerTranslationKey:\\\"actionModal.signDataCanceled.header\\\",get icon(){return p(jl,{size:\\\"m\\\"})},onClose:()=>t.onClose(),\\\"data-tc-sign-data-canceled-modal\\\":\\\"true\\\"}),coe=t=>p(uh,{headerTranslationKey:\\\"actionModal.dataSigned.header\\\",get icon(){return p(rv,{size:\\\"m\\\"})},onClose:()=>t.onClose(),\\\"data-tc-data-signed-modal\\\":\\\"true\\\"}),uoe=()=>p(sU,{get opened(){var t;return Xe(()=>ya()!==null)()&&((t=ya())==null?void 0:t.openModal)===!0},get enableAndroidBackHandler(){return Gt.enableAndroidBackHandler},onClose:()=>ps(null),showFooter:!1,\\\"data-tc-actions-modal-container\\\":\\\"true\\\",get children(){return p(vs,{get children(){return[p(qt,{get when(){return ya().name===\\\"transaction-sent\\\"},get children(){return p(ooe,{onClose:()=>ps(null)})}}),p(qt,{get when(){return ya().name===\\\"transaction-canceled\\\"},get children(){return p(aoe,{onClose:()=>ps(null)})}}),p(qt,{get when(){return ya().name===\\\"confirm-transaction\\\"},get children(){return p(ioe,{onClose:()=>ps(null)})}}),p(qt,{get when(){return ya().name===\\\"data-signed\\\"},get children(){return p(coe,{onClose:()=>ps(null)})}}),p(qt,{get when(){return ya().name===\\\"sign-data-canceled\\\"},get children(){return p(loe,{onClose:()=>ps(null)})}}),p(qt,{get when(){return ya().name===\\\"confirm-sign-data\\\"},get children(){return p(soe,{onClose:()=>ps(null)})}})]}})}}),doe=()=>{let{locale:t}=Pa()[1];Zn(()=>t(Gt.language)),Zn(()=>{zO()&&Fb()});let e=Vr(lh),n=Vr(Cs),[r,i]=Je(!1),a=()=>{var c;return((c=Gt.connectRequestParameters)==null?void 0:c.state)===\\\"loading\\\"},o=xt(()=>{var c;if(!a())return(c=Gt.connectRequestParameters)==null?void 0:c.value}),s=c=>{n.closeSingleWalletModal(c)},l=e.onStatusChange(c=>{c&&s(\\\"wallet-selected\\\")});return ri(l),ri(()=>{i(!1)}),p(AU,{get opened(){return zO()},get enableAndroidBackHandler(){return Gt.enableAndroidBackHandler},onClose:()=>s(\\\"action-cancelled\\\"),onClickQuestion:()=>i(c=>!c),showFooter:!0,\\\"data-tc-wallets-modal-container\\\":\\\"true\\\",get children(){return[p(at,{get when(){return r()},get children(){return p(NU,{onBackClick:()=>i(!1)})}}),p(at,{get when(){return!r()},get children(){return[p(at,{get when(){return a()},get children(){return[p(kU,{translationKey:\\\"walletModal.loading\\\",children:\\\"Wallets list is loading\\\"}),p(BU,{get children(){return p(bo,{size:\\\"m\\\"})}})]}}),p(at,{get when(){return!a()},get children(){return p(nh,{get component(){return ih()?PU:UU},get wallet(){return fee()},get additionalRequest(){return o()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},foe=t=>{let e=Wte(Mee,Gt.language);return see(),oee(),p(cU.Provider,{value:e,get children(){return p(Cs.Provider,{get value(){return t.tonConnectUI},get children(){return p(lh.Provider,{get value(){return Gt.connector},get children(){return[p(JJ,{}),p(QJ,{theme:jee,get children(){return[p(at,{get when(){return Gt.buttonRootId},get children(){return p(jI,{get mount(){return document.getElementById(Gt.buttonRootId)},get children(){return p(_ie,{})}})}}),p(nh,{component:ms,get children(){return[p(Xae,{}),p(doe,{}),p(uoe,{})]}})]}})]}})}})}})},Ln={openWalletsModal:t=>{setTimeout(()=>c6(e=>{var n;return{status:\\\"opened\\\",traceId:(n=t?.traceId)!=null?n:e?.traceId,closeReason:null}}))},closeWalletsModal:t=>{setTimeout(()=>c6({status:\\\"closed\\\",closeReason:t}))},openSingleWalletModal:t=>{setTimeout(()=>jO({status:\\\"opened\\\",closeReason:null,walletInfo:t}))},closeSingleWalletModal:t=>{setTimeout(()=>jO({status:\\\"closed\\\",closeReason:t}))},openWalletNotSupportFeatureModal:(t,e)=>{setTimeout(()=>c6({status:\\\"opened\\\",traceId:e.traceId,closeReason:null,type:\\\"wallet-not-support-feature\\\",requiredFeature:t.requiredFeature}))},setAction:t=>{setTimeout(()=>ps(t))},clearAction:()=>{setTimeout(()=>ps(null))},getSelectedWalletInfo:()=>P6(),getLastVisibleWallets:()=>gee(),removeSelectedWalletInfo:()=>Rr(null),renderApp:(t,e)=>OJ(()=>p(foe,{tonConnectUI:e}),document.getElementById(t))},Z6=class{constructor(e){this.consumers=[],this.state=cu(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zn(()=>{let n=cu();this.state=n,this.consumers.forEach(r=>r(n))}),Zn(k6(P6,(n,r)=>wt(this,null,function*(){try{let{wallets:i,walletsMenu:a}=Ln.getLastVisibleWallets();if(n&&\\\"appName\\\"in n){if(r&&\\\"appName\\\"in r&&r.appName===n.appName)return;let o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(i.map(s=>s.name),n,a,\\\"\\\",void 0,o,this.state.traceId)}}catch(i){Nb(i)}}))),Zn(k6(pee,n=>wt(this,null,function*(){try{let{wallets:r,walletsMenu:i}=Ln.getLastVisibleWallets();if(Qx(n.link)){let a=P6(),o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(r.map(s=>s.name),a&&\\\"appName\\\"in a?a:null,i,n.link,n.type,o,this.state.traceId)}}catch(r){Nb(r)}})))}open(e){return wt(this,null,function*(){var n;let r=(n=e?.traceId)!=null?n:hn();this.tracker.trackConnectionStarted();let a=(yield this.connector.getWallets()).find(Hf);return a?this.connectEmbeddedWallet(a,{traceId:r}):this.openWalletsModal({traceId:r})})}close(e=\\\"action-cancelled\\\"){e===\\\"action-cancelled\\\"&&this.tracker.trackConnectionError(\\\"Connection was cancelled\\\"),Ln.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(n=>n!==e)}}connectEmbeddedWallet(e,n){let r=a=>{Rr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},a,{traceId:n.traceId})},i=Gt.connectRequestParameters;i?.state===\\\"loading\\\"?this.setConnectRequestParametersCallback(r):r(i?.value)}openWalletsModal(e){return wt(this,null,function*(){return ni()&&qb(),Ln.openWalletsModal({traceId:e.traceId}),new Promise(n=>{let r=this.onStateChange(i=>{let{status:a}=i;a===\\\"opened\\\"&&(r(),n())})})})}},Y6=class{constructor(e){this.consumers=[],this.connector=e.connector,Zn(()=>{let n=ya();this.consumers.forEach(r=>r(n))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(n=>n!==e)}}},G6=class{constructor(e){this.consumers=[],this.state=jb(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zn(()=>{let n=jb();this.state=n,this.consumers.forEach(r=>r(n))})}open(e){return wt(this,null,function*(){this.tracker.trackConnectionStarted();let n=yield this.connector.getWallets(),r=y_(n,Gt.walletsListConfiguration),i=r.find(Hf);if(!!i)return this.connectEmbeddedWallet(i);let s=r.filter(Wf).find(u=>Ol(u,e));if(!!s)return this.openSingleWalletModal(s);let c=`Trying to open modal window with unknown wallet \\\"${e}\\\".`;throw this.tracker.trackConnectionError(c),new kn(c)})}close(e=\\\"action-cancelled\\\"){e===\\\"action-cancelled\\\"&&this.tracker.trackConnectionError(\\\"Connection was cancelled\\\"),Ln.closeSingleWalletModal(\\\"action-cancelled\\\")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(n=>n!==e)}}connectEmbeddedWallet(e){let n=i=>{Rr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},i)},r=Gt.connectRequestParameters;r?.state===\\\"loading\\\"?this.setConnectRequestParametersCallback(n):n(r?.value)}openSingleWalletModal(e){return wt(this,null,function*(){return ni()&&qb(),Ln.openSingleWalletModal(e),new Promise(n=>{let r=this.onStateChange(i=>{let{status:a}=i;a===\\\"opened\\\"&&(r(),n())})})})}},Q6=class{constructor(e){this.eventPrefix=\\\"ton-connect-ui-\\\",this.tonConnectSdkVersion=null,this.eventDispatcher=e?.eventDispatcher,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return fs({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return wt(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch{}})}setRequestVersionHandler(){return wt(this,null,function*(){yield this.eventDispatcher.addEventListener(\\\"ton-connect-ui-request-version\\\",()=>wt(this,null,function*(){var e;let n=nb(this.tonConnectUiVersion);try{let r=Mg();n=mr(Kt({},n),{tma:ni(),tmaPlatform:Fee(),tmaVersion:$ee(),telegramBrowser:l_(),os:r.os,browser:r.browser,rawBrowser:(e=new J6.default().getBrowser().name)!=null?e:null,mobile:dee()})}catch{}yield this.eventDispatcher.dispatchEvent(\\\"ton-connect-ui-response-version\\\",n)}))})}requestTonConnectSdkVersion(){return wt(this,null,function*(){return new Promise((e,n)=>wt(this,null,function*(){try{yield this.eventDispatcher.addEventListener(\\\"ton-connect-response-version\\\",r=>{e(r.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent(\\\"ton-connect-request-version\\\",tb())}catch(r){n(r)}}))})}dispatchUserActionEvent(e){var n;try{(n=this.eventDispatcher)==null||n.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch{}}trackWalletModalOpened(...e){try{let n=e6(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackSelectedWallet(...e){try{let n=t6(this.version,...e);this.dispatchUserActionEvent(n)}catch(n){Nb(n)}}trackConnectionStarted(...e){try{let n=rb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionCompleted(...e){try{let n=ib(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionError(...e){try{let n=ab(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringStarted(...e){try{let n=ob(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringCompleted(...e){try{let n=sb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringError(...e){try{let n=lb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDisconnection(...e){try{let n=pb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSentForSignature(...e){try{let n=cb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigned(...e){try{let n=ub(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigningFailed(...e){try{let n=db(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSentForSignature(...e){try{let n=fb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSigned(...e){try{let n=hb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}trackDataSigningFailed(...e){try{let n=gb(this.version,...e);this.dispatchUserActionEvent(n)}catch{}}},hoe=\\\"2.4.4\\\",X6=class{constructor(){this.userAgent=Mg()}getLocale(){var e;return((e=navigator.languages)==null?void 0:e[0])||navigator.language||\\\"\\\"}getBrowser(){var e;return(e=this.userAgent.browser)!=null?e:\\\"\\\"}getPlatform(){var e;return(e=this.userAgent.os)!=null?e:\\\"\\\"}getTelegramUser(){return Wee()}getClientEnvironment(){return ni()?\\\"miniapp\\\":\\\"web\\\"}},Bg=class{constructor(e){var n;this.walletInfoStorage=new U6,this.preferredWalletStorage=new N6,this.walletInfo=null,this.systemThemeChangeUnsubscribe=null,this.connectionRestored=Promise.resolve(!1);let r=(n=e?.eventDispatcher)!=null?n:new Vf;if(e&&\\\"connector\\\"in e&&e.connector)this.connector=e.connector;else if(e&&\\\"manifestUrl\\\"in e&&e.manifestUrl)this.connector=new Oa({manifestUrl:e.manifestUrl,eventDispatcher:r,walletsRequiredFeatures:e.walletsRequiredFeatures,environment:new X6,analytics:e.analytics});else throw new kn(\\\"You have to specify a `manifestUrl` or a `connector` in the options.\\\");this.tracker=new Q6({eventDispatcher:r,tonConnectUiVersion:hoe}),this.modal=new Z6({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:o=>{this.connectRequestParametersCallback=o}}),this.singleWalletModal=new G6({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:o=>{this.connectRequestParametersCallback=o}}),this.transactionModal=new Y6({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(o=>qI(Cie(o.map(s=>s.imageUrl))));let i=this.normalizeWidgetRoot(e?.widgetRootId);this.subscribeToWalletChange(),e?.restoreConnection!==!1&&(this.connectionRestored=lee(()=>wt(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError(\\\"Connection was not restored\\\"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Ul(e,{uiPreferences:{theme:\\\"SYSTEM\\\"}});let a=this.preferredWalletStorage.getPreferredWalletAppName();Cb({connector:this.connector,preferredWalletAppName:a}),Ln.renderApp(i,this)}static getWallets(){return Oa.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Kt(Kt({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var n,r,i,a,o;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,\\\"walletsRequiredFeatures\\\"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),\\\"walletsPreferredFeatures\\\"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(n=e.uiPreferences)!=null&&n.theme?((r=e.uiPreferences)==null?void 0:r.theme)!==\\\"SYSTEM\\\"?((i=this.systemThemeChangeUnsubscribe)==null||i.call(this),u6(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(u6(nee(),e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=ree(u6))):(a=e.uiPreferences)!=null&&a.colorsSet&&Dee(e.uiPreferences.colorsSet),(o=e.uiPreferences)!=null&&o.borderRadius&&zee(e.uiPreferences.borderRadius),Cb(s=>{var l,c;let u=Ul(Kt(Kt(Kt(Kt({},e.language&&{language:e.language}),!!((l=e.actionsConfiguration)!=null&&l.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!((c=e.actionsConfiguration)!=null&&c.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),rh(s));return e.buttonRootId!==void 0&&(u.buttonRootId=e.buttonRootId),e.enableAndroidBackHandler!==void 0&&(u.enableAndroidBackHandler=e.enableAndroidBackHandler),u})}setConnectRequestParameters(e){var n;Cb({connectRequestParameters:e}),(e?.state===\\\"ready\\\"||!e)&&((n=this.connectRequestParametersCallback)==null||n.call(this,e?.value))}setConnectionNetwork(e){this.connector.setConnectionNetwork(e)}getWallets(){return wt(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,n){return this.connector.onStatusChange(r=>wt(this,null,function*(){if(r){let i=yield this.getSelectedWalletInfo(r);e(Kt(Kt({},r),i||this.walletInfoStorage.getWalletInfo()))}else e(r)}),n)}openModal(e){return wt(this,null,function*(){var n;let r=(n=e?.traceId)!=null?n:hn();yield this.modal.open({traceId:r});let i=yield this.getSessionId(),a=Ln.getLastVisibleWallets();this.tracker.trackWalletModalOpened(a.wallets.map(o=>o.name),i,e?.traceId)})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return wt(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(e){return wt(this,null,function*(){var n;let r=(n=e?.traceId)!=null?n:hn(),a=(yield this.getWallets()).find(Hf);return a?yield this.connectEmbeddedWallet(a,{traceId:r}):yield this.connectExternalWallet({traceId:r})})}disconnect(e){var n;let r=(n=e?.traceId)!=null?n:hn();return this.tracker.trackDisconnection(this.wallet,\\\"dapp\\\"),Ln.clearAction(),Ln.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect({traceId:r})}sendTransaction(e,n){return wt(this,null,function*(){var r;let i=(r=n?.traceId)!=null?r:hn();if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,\\\"Wallet was not connected\\\"),new kn(\\\"Connect wallet to send a transaction.\\\");ni()&&qb();let{notifications:a,modals:o,returnStrategy:s,twaReturnUrl:l}=this.getModalsAndNotificationsConfiguration(n),c=yield this.getSessionId();Ln.setAction({name:\\\"confirm-transaction\\\",showNotification:a.includes(\\\"before\\\"),openModal:o.includes(\\\"before\\\"),sent:!1,sessionId:c||void 0,traceId:i});let u=new AbortController,d=()=>{var g;if(u.signal.aborted)return;Ln.setAction({name:\\\"confirm-transaction\\\",showNotification:a.includes(\\\"before\\\"),openModal:o.includes(\\\"before\\\"),sent:!0,sessionId:c||void 0,traceId:i}),this.redirectAfterRequestSent({returnStrategy:s,twaReturnUrl:l,sessionId:c||void 0,traceId:i});let y=!0,E=()=>wt(this,null,function*(){if(u.signal.aborted)return;let N=!y;y=!1,yield this.redirectAfterRequestSent({returnStrategy:s,twaReturnUrl:l,forceRedirect:N,sessionId:c||void 0,traceId:i})});(g=n?.onRequestSent)==null||g.call(n,E)},h=this.onTransactionModalStateChange(g=>{g?.openModal||(h(),g||u.abort())});try{let g=yield this.waitForSendTransaction({transaction:e,signal:u.signal,traceId:i},d);return this.tracker.trackTransactionSigned(this.wallet,e,g),Ln.setAction({name:\\\"transaction-sent\\\",showNotification:a.includes(\\\"success\\\"),openModal:o.includes(\\\"success\\\"),traceId:i}),g}catch(g){throw g instanceof Ra?(Ln.clearAction(),Ln.openWalletNotSupportFeatureModal(g.cause,{traceId:i}),g):(Ln.setAction({name:\\\"transaction-canceled\\\",showNotification:a.includes(\\\"error\\\"),openModal:o.includes(\\\"error\\\"),traceId:i}),g instanceof Oe?g:(console.error(g),new kn(\\\"Unhandled error:\\\"+g)))}finally{h()}})}signData(e,n){return wt(this,null,function*(){var r;let i=(r=n?.traceId)!=null?r:hn();if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,\\\"Wallet was not connected\\\"),new kn(\\\"Connect wallet to send a transaction.\\\");ni()&&qb();let{notifications:a,modals:o,returnStrategy:s,twaReturnUrl:l}=this.getModalsAndNotificationsConfiguration(),c=yield this.getSessionId();Ln.setAction({name:\\\"confirm-sign-data\\\",showNotification:a.includes(\\\"before\\\"),openModal:o.includes(\\\"before\\\"),signed:!1,sessionId:c||void 0,traceId:i});let u=new AbortController,d=()=>{var g;if(u.signal.aborted)return;Ln.setAction({name:\\\"confirm-sign-data\\\",showNotification:a.includes(\\\"before\\\"),openModal:o.includes(\\\"before\\\"),signed:!0,sessionId:c||void 0,traceId:i}),this.redirectAfterRequestSent({returnStrategy:s,twaReturnUrl:l,sessionId:c||void 0,traceId:i});let y=!0,E=()=>{if(u.signal.aborted)return;let N=!y;y=!1,this.redirectAfterRequestSent({returnStrategy:s,twaReturnUrl:l,forceRedirect:N,sessionId:c||void 0,traceId:i})};(g=n?.onRequestSent)==null||g.call(n,E)},h=this.onTransactionModalStateChange(g=>{g?.openModal||(h(),g||u.abort())});try{let g=yield this.waitForSignData({data:e,signal:new AbortController().signal,traceId:i},d);return this.tracker.trackDataSigned(this.wallet,e,g),Ln.setAction({name:\\\"data-signed\\\",showNotification:a.includes(\\\"success\\\"),openModal:o.includes(\\\"success\\\"),traceId:i}),g}catch(g){throw g instanceof Ra?(Ln.clearAction(),Ln.openWalletNotSupportFeatureModal(g.cause,{traceId:i}),g):(Ln.setAction({name:\\\"sign-data-canceled\\\",showNotification:a.includes(\\\"error\\\"),openModal:o.includes(\\\"error\\\"),traceId:i}),g instanceof Oe?g:(console.error(g),new kn(\\\"Unhandled error:\\\"+g)))}finally{h()}})}getSessionId(){return wt(this,null,function*(){var e,n;try{let r=(e=this.connector.dappSettings)==null?void 0:e.storage;if(r){let i=yield r.getItem(\\\"ton-connect-storage_bridge-connection\\\");if(i){let a=JSON.parse(i);if(a.type===\\\"http\\\"&&a.sessionCrypto)return new Ba(a.sessionCrypto).sessionId;if(a.type===\\\"http\\\"&&((n=a.session)!=null&&n.sessionKeyPair))return new Ba(a.session.sessionKeyPair).sessionId}}}catch{}return null})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:n,forceRedirect:r,sessionId:i,traceId:a}){if(this.walletInfo&&\\\"universalLink\\\"in this.walletInfo&&(this.walletInfo.openMethod===\\\"universal-link\\\"||this.walletInfo.openMethod===\\\"custom-deeplink\\\")){let o=RU(this.walletInfo.universalLink,{sessionId:i,traceId:a});ma(this.walletInfo.universalLink)?Pg(o,{returnStrategy:e,twaReturnUrl:n||Gt.twaReturnUrl,forceRedirect:r||!1}):jg(o,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:r||!1},()=>{})}}connectEmbeddedWallet(e,n){return wt(this,null,function*(){let r=a=>{Rr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},a,{traceId:n.traceId})},i=Gt.connectRequestParameters;return i?.state===\\\"loading\\\"?this.connectRequestParametersCallback=r:r(i?.value),yield this.waitForWalletConnection({ignoreErrors:!1,traceId:n.traceId})})}connectExternalWallet(e){return wt(this,null,function*(){let n=new AbortController;Ln.openWalletsModal({traceId:e.traceId});let r=this.onModalStateChange(i=>{let{status:a,closeReason:o}=i;a!==\\\"opened\\\"&&(r(),o===\\\"action-cancelled\\\"&&n.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:n.signal,traceId:e.traceId})})}waitForWalletConnection(e){return wt(this,null,function*(){return new Promise((n,r)=>{this.tracker.trackConnectionStarted();let{ignoreErrors:i=!1,signal:a=null}=e;if(a&&a.aborted)return this.tracker.trackConnectionError(\\\"Connection was cancelled\\\"),r(new kn(\\\"Wallet was not connected\\\"));let o=c=>wt(this,null,function*(){if(c)this.tracker.trackConnectionCompleted(c),l(),n(c);else{if(this.tracker.trackConnectionError(\\\"Connection was cancelled\\\"),i)return;l(),r(new kn(\\\"Wallet was not connected\\\"))}}),s=c=>{this.tracker.trackConnectionError(c.message),!i&&(l(),r(c))},l=this.onStatusChange(c=>o(c),c=>s(c));a&&a.addEventListener(\\\"abort\\\",()=>{l(),r(new kn(\\\"Wallet was not connected\\\"))},{once:!0})})})}waitForSendTransaction(e,n){return wt(this,null,function*(){return new Promise((r,i)=>{let{transaction:a,signal:o}=e;if(o.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,a,\\\"Transaction was cancelled\\\"),i(new kn(\\\"Transaction was not sent\\\"));let s=u=>wt(this,null,function*(){r(u)}),l=u=>{i(u)},c=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,a,\\\"Transaction was cancelled\\\"),i(new kn(\\\"Transaction was not sent\\\"))};o.addEventListener(\\\"abort\\\",c,{once:!0}),this.connector.sendTransaction(a,{onRequestSent:n,signal:o,traceId:e.traceId}).then(u=>(o.removeEventListener(\\\"abort\\\",c),s(u))).catch(u=>(o.removeEventListener(\\\"abort\\\",c),l(u)))})})}waitForSignData(e,n){return wt(this,null,function*(){return new Promise((r,i)=>{let{data:a,signal:o}=e;if(o.aborted)return this.tracker.trackDataSigningFailed(this.wallet,a,\\\"SignData was cancelled\\\"),i(new kn(\\\"SignData was not sent\\\"));let s=u=>wt(this,null,function*(){r(u)}),l=u=>{i(u)},c=()=>{this.tracker.trackDataSigningFailed(this.wallet,a,\\\"SignData was cancelled\\\"),i(new kn(\\\"SignData was not sent\\\"))};o.addEventListener(\\\"abort\\\",c,{once:!0}),this.connector.signData(a,{onRequestSent:n,signal:o}).then(u=>s(u)).catch(u=>l(u))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>wt(this,null,function*(){var n;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName(((n=this.walletInfo)==null?void 0:n.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),Cb({preferredWalletAppName:e})}getSelectedWalletInfo(e){return wt(this,null,function*(){let n=Ln.getSelectedWalletInfo();if(!n)return null;if(!(\\\"name\\\"in n)){if(e.device.appName===K6)return{type:\\\"wallet-connect\\\",name:MU,appName:K6,imageUrl:wu.WALLET_CONNECT,aboutUrl:Nie,features:e.device.features,platforms:[]};let i=y_(yield this.walletsList,Gt.walletsListConfiguration).find(a=>Ol(a,e.device.appName));if(!i)throw new kn(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);return Kt(Kt({},i),n)}return n})}updateWalletInfo(e){return wt(this,null,function*(){let n=yield this.getSelectedWalletInfo(e);if(n){this.walletInfo=n,this.walletInfoStorage.setWalletInfo(n);return}let r=this.walletInfoStorage.getWalletInfo();if(r){this.walletInfo=r;return}this.walletInfo=(yield this.walletsList).find(i=>Ol(i,e.device.appName))||null})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e=\\\"tc-widget-root\\\";let n=document.createElement(\\\"div\\\");n.id=e,document.body.appendChild(n)}return e}checkButtonRootExist(e){if(e!=null&&!document.getElementById(e))throw new kn(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var n,r,i,a,o,s;let l=[\\\"before\\\",\\\"success\\\",\\\"error\\\"],c=l;(n=this.actionsConfiguration)!=null&&n.notifications&&((r=this.actionsConfiguration)==null?void 0:r.notifications)!==\\\"all\\\"&&(c=this.actionsConfiguration.notifications),e?.notifications&&(e.notifications===\\\"all\\\"?c=l:c=e.notifications);let u=[\\\"before\\\"];(i=this.actionsConfiguration)!=null&&i.modals&&(this.actionsConfiguration.modals===\\\"all\\\"?u=l:u=this.actionsConfiguration.modals),e?.modals&&(e.modals===\\\"all\\\"?u=l:u=e.modals);let d=e?.returnStrategy||((a=this.actionsConfiguration)==null?void 0:a.returnStrategy)||\\\"back\\\",h=e?.twaReturnUrl||((o=this.actionsConfiguration)==null?void 0:o.twaReturnUrl),g=e?.skipRedirectToWallet||((s=this.actionsConfiguration)==null?void 0:s.skipRedirectToWallet)||\\\"ios\\\";return ni()&&(g=\\\"never\\\"),{notifications:c,modals:u,returnStrategy:d,twaReturnUrl:h,skipRedirectToWallet:g}}}});var x_={};E_(x_,{BadRequestError:()=>Df,BrowserEventDispatcher:()=>Vf,CHAIN:()=>ls,CONNECT_EVENT_ERROR_CODES:()=>Xr,CONNECT_ITEM_ERROR_CODES:()=>au,FetchWalletsError:()=>Yy,LocalstorageNotFoundError:()=>jx,ParseHexError:()=>ug,SEND_TRANSACTION_ERROR_CODES:()=>Li,SIGN_DATA_ERROR_CODES:()=>ss,SessionCrypto:()=>Ba,THEME:()=>Wn,TonConnect:()=>Oa,TonConnectButton:()=>_oe,TonConnectError:()=>Oe,TonConnectProviderNotSetError:()=>cv,TonConnectUI:()=>Bg,TonConnectUIContext:()=>w_,TonConnectUIError:()=>kn,TonConnectUIProvider:()=>voe,TonConnectUIReactError:()=>lv,UUIDv7:()=>hn,UnknownAppError:()=>Lf,UnknownError:()=>pa,UserRejectsError:()=>zf,WalletAlreadyConnectedError:()=>Ky,WalletMissingRequiredFeaturesError:()=>Ml,WalletNotConnectedError:()=>cg,WalletNotInjectedError:()=>Zy,WalletNotSupportFeatureError:()=>Ra,WalletWrongNetworkError:()=>us,WalletsListManager:()=>dg,WrongAddressError:()=>ha,checkRequiredWalletFeatures:()=>Ff,createConnectionCompletedEvent:()=>ib,createConnectionErrorEvent:()=>ab,createConnectionRestoringCompletedEvent:()=>sb,createConnectionRestoringErrorEvent:()=>lb,createConnectionRestoringStartedEvent:()=>ob,createConnectionStartedEvent:()=>rb,createDataSentForSignatureEvent:()=>fb,createDataSignedEvent:()=>hb,createDataSigningFailedEvent:()=>gb,createDisconnectionEvent:()=>pb,createRequestVersionEvent:()=>tb,createResponseVersionEvent:()=>nb,createSelectedWalletEvent:()=>t6,createTransactionSentForSignatureEvent:()=>cb,createTransactionSignedEvent:()=>ub,createTransactionSigningFailedEvent:()=>db,createVersionInfo:()=>fs,createWalletModalOpenedEvent:()=>e6,decodeTelegramUrlParameters:()=>Xx,enableQaMode:()=>fX,encodeTelegramUrlParameters:()=>fg,initializeWalletConnect:()=>VX,isConnectUrl:()=>Qx,isQaModeEnabled:()=>lo,isTelegramUrl:()=>ma,isWalletConnectInitialized:()=>r6,isWalletInfoCurrentlyEmbedded:()=>Hf,isWalletInfoCurrentlyInjected:()=>ds,isWalletInfoInjectable:()=>oO,isWalletInfoInjected:()=>uX,isWalletInfoRemote:()=>Wf,toUserFriendlyAddress:()=>$f,useIsConnectionRestored:()=>Toe,useTonAddress:()=>Coe,useTonConnectModal:()=>Soe,useTonConnectUI:()=>Dg,useTonWallet:()=>FU});function WU(){return typeof window<\\\"u\\\"}function yoe(){return!WU()}function woe(t){if(!t)throw new cv(\\\"You should add <TonConnectUIProvider> on the top of the app to use TonConnect\\\");return!0}function Dg(){let t=(0,ar.useContext)(w_),e=(0,ar.useCallback)(n=>{t&&(t.uiOptions=n)},[t]);return yoe()?[null,()=>{}]:(woe(t),[t,e])}function FU(){let[t]=Dg(),[e,n]=(0,ar.useState)(t?.wallet||null);return(0,ar.useEffect)(()=>{if(t)return n(t.wallet),t.onStatusChange(r=>{n(r)})},[t]),e}function Coe(t=!0){let e=FU();return(0,ar.useMemo)(()=>e?t?$f(e.account.address,e.account.chain===ls.TESTNET):e.account.address:\\\"\\\",[e,t,e?.account.address,e?.account.chain])}function Soe(){let[t]=Dg(),[e,n]=(0,ar.useState)(t?.modal.state||null);return(0,ar.useEffect)(()=>{if(t)return n(t.modal.state),t.onModalStateChange(r=>{n(r)})},[t]),{state:e,open:()=>t?.modal.open(),close:()=>t?.modal.close()}}function Toe(){let[t,e]=(0,ar.useState)(!1),[n]=Dg();return(0,ar.useEffect)(()=>{n&&n.connectionRestored.then(()=>e(!0))},[n]),t}var v_,ar,goe,sv,VU,HU,LU,poe,moe,w_,zg,boe,voe,lv,cv,qU,xoe,_oe,__=Dl(()=>{b();v_=Tn(no(),1),ar=Tn(Vl(),1);b_();b_();goe=Object.defineProperty,sv=Object.getOwnPropertySymbols,VU=Object.prototype.hasOwnProperty,HU=Object.prototype.propertyIsEnumerable,LU=(t,e,n)=>e in t?goe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,poe=(t,e)=>{for(var n in e||(e={}))VU.call(e,n)&&LU(t,n,e[n]);if(sv)for(var n of sv(e))HU.call(e,n)&&LU(t,n,e[n]);return t},moe=(t,e)=>{var n={};for(var r in t)VU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&sv)for(var r of sv(t))e.indexOf(r)<0&&HU.call(t,r)&&(n[r]=t[r]);return n};w_=(0,ar.createContext)(null),zg=null,boe=t=>{var e=t,{children:n}=e,r=moe(e,[\\\"children\\\"]);let[i]=(0,ar.useState)(()=>WU()?(zg!==null||(\\\"instance\\\"in r?zg=r.instance:zg=new Bg(r)),zg):null);return(0,v_.jsx)(w_.Provider,{value:i,children:n})},voe=(0,ar.memo)(boe),lv=class t extends kn{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}},cv=class t extends lv{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}};qU=\\\"ton-connect-button\\\",xoe=({className:t,style:e})=>{let[n,r]=Dg();return(0,ar.useEffect)(()=>(r({buttonRootId:qU}),()=>r({buttonRootId:null})),[r]),(0,v_.jsx)(\\\"div\\\",{id:qU,className:t,style:poe({width:\\\"fit-content\\\"},e)})},_oe=(0,ar.memo)(xoe)});b();var XU=Tn(z7(),1);b();var _r=Tn(Vl(),1),YU=Tn(sn(),1);b();b();b();var P1=Tn(sn(),1);b();b();function CW(){let t=globalThis.crypto;if(!t||typeof t.getRandomValues!=\\\"function\\\")throw new Error(\\\"Crypto API not available. Node.js 19+ or a browser with Web Crypto API is required.\\\");return t}function q3(t=64){if(t<=0||t>256)throw new Error(`Invalid bits value: ${t}. Must be 1-256`);let e=CW(),n=Math.ceil(t/8),r=new Uint8Array(n);e.getRandomValues(r);let i=0n;for(let o=0;o<n;o++)i=i<<8n|BigInt(r[o]);let a=(1n<<BigInt(t))-1n;return i&a}var N1=(t,e)=>{let n=t.get(e);if(!n)for(let[r,i]of t.entries()){let a=r.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\\\"\\\\\\\\$&\\\").replace(/\\\\\\\\\\\\*/g,\\\".*\\\");if(new RegExp(`^${a}$`).test(e)){n=i;break}}return n},V3=(t,e,n)=>N1(t,n)?.get(e);b();var SW=Object.defineProperty,TW=(t,e,n)=>e in t?SW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Yo=(t,e,n)=>TW(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,n);var hf=\\\"ton:mainnet\\\",A0=\\\"ton:testnet\\\",BW=[hf,A0],MW=\\\"https://toncenter.com/api/v2/jsonRPC\\\",RW=\\\"https://testnet.toncenter.com/api/v2/jsonRPC\\\",OW=\\\"https://mainnet-v4.tonhubapi.com\\\",IW=\\\"https://testnet-v4.tonhubapi.com\\\",bde={[hf]:MW,[A0]:RW},vde={[hf]:OW,[A0]:IW},UW=260734629;var Ck=100000000n,Sk=1n;var Tk=\\\"exact\\\";function Ek(t){if(t.startsWith(\\\"ton:\\\")){if(!BW.includes(t))throw new Error(`Unsupported TON network: ${t}`);return t}let n={ton:hf,\\\"ton-mainnet\\\":hf,mainnet:hf,\\\"ton-testnet\\\":A0,testnet:A0}[t.toLowerCase()];if(!n)throw new Error(`Unsupported TON network: ${t}`);return n}function Ak(t){return P1.Address.parse(t)}function kk(){let t=BigInt(Date.now()),e=q3(20);return t*1048576n+e}function Bk(t){let e=(0,P1.beginCell)().storeUint(UW,32).storeUint(t.queryId,64).storeCoins(t.amount).storeAddress(t.destination).storeAddress(t.responseDestination).storeBit(!1);return e.storeCoins(t.forwardAmount??1n),t.forwardPayload?e.storeBit(!0).storeRef(t.forwardPayload):e.storeBit(!1),e.endCell()}b();var NW=Object.defineProperty,PW=(t,e,n)=>e in t?NW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mk=(t,e,n)=>PW(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,n);var j1=Tn(sn(),1),Rk=class{constructor(t,e,n={}){this.signer=t,this.getJettonWalletAddress=e,this.config=n,Mk(this,\\\"scheme\\\",Tk)}async createPaymentPayload(t,e){let n=Ek(e.network);if(!e.asset)throw new Error(\\\"Asset (Jetton master address) is required\\\");if(!e.payTo)throw new Error(\\\"PayTo address is required\\\");if(!e.amount)throw new Error(\\\"Amount is required\\\");let r=e.asset,i=Ak(e.payTo),a=await this.getJettonWalletAddress(this.signer.address.toString(),r),o=j1.Address.parse(a),s=await this.signer.getSeqno(),c=Math.floor(Date.now()/1e3)+e.maxTimeoutSeconds,u=kk(),d=BigInt(e.amount),h=Bk({queryId:u,amount:d,destination:i,responseDestination:this.signer.address,forwardAmount:this.config.forwardAmount??Sk}),g=this.config.gasAmount??Ck,E=(await this.signer.signMessage({to:o,value:g,body:h,sendMode:j1.SendMode.PAY_GAS_SEPARATELY,timeout:e.maxTimeoutSeconds})).toBoc().toString(\\\"base64\\\"),N={from:this.signer.address.toString({bounceable:!0}),to:e.payTo,jettonMaster:r,jettonAmount:d.toString(),tonAmount:g.toString(),validUntil:c,seqno:s,queryId:u.toString()};return{t402Version:t,payload:{signedBoc:E,authorization:N}}}};function H3(t,e){let n=new Rk(e.signer,e.getJettonWalletAddress,e.schemeConfig);return e.networks&&e.networks.length>0?e.networks.forEach(r=>{t.register(r,n)}):t.register(\\\"ton:*\\\",n),e.policies&&e.policies.forEach(r=>{t.registerPolicy(r)}),t}b();b();b();var W3=2;b();b();var lt={};E_(lt,{BRAND:()=>lF,DIRTY:()=>hc,EMPTY_PATH:()=>LW,INVALID:()=>st,NEVER:()=>$F,OK:()=>jr,ParseStatus:()=>Br,Schema:()=>jt,ZodAny:()=>yl,ZodArray:()=>Jo,ZodBigInt:()=>pc,ZodBoolean:()=>mc,ZodBranded:()=>B0,ZodCatch:()=>Ac,ZodDate:()=>yc,ZodDefault:()=>Ec,ZodDiscriminatedUnion:()=>L1,ZodEffects:()=>sa,ZodEnum:()=>Sc,ZodError:()=>pi,ZodFirstPartyTypeKind:()=>ut,ZodFunction:()=>V1,ZodIntersection:()=>xc,ZodIssueCode:()=>Ce,ZodLazy:()=>_c,ZodLiteral:()=>Cc,ZodMap:()=>vf,ZodNaN:()=>xf,ZodNativeEnum:()=>Tc,ZodNever:()=>Ta,ZodNull:()=>vc,ZodNullable:()=>to,ZodNumber:()=>gc,ZodObject:()=>mi,ZodOptional:()=>aa,ZodParsedType:()=>ze,ZodPipeline:()=>M0,ZodPromise:()=>bl,ZodReadonly:()=>kc,ZodRecord:()=>q1,ZodSchema:()=>jt,ZodSet:()=>wf,ZodString:()=>ml,ZodSymbol:()=>yf,ZodTransformer:()=>sa,ZodTuple:()=>eo,ZodType:()=>jt,ZodUndefined:()=>bc,ZodUnion:()=>wc,ZodUnknown:()=>Xo,ZodVoid:()=>bf,addIssueToContext:()=>Ie,any:()=>yF,array:()=>xF,bigint:()=>fF,boolean:()=>Vk,coerce:()=>FF,custom:()=>Dk,date:()=>hF,datetimeRegex:()=>jk,defaultErrorMap:()=>Go,discriminatedUnion:()=>TF,effect:()=>jF,enum:()=>UF,function:()=>RF,getErrorMap:()=>gf,getParsedType:()=>Ja,instanceof:()=>uF,intersection:()=>EF,isAborted:()=>z1,isAsync:()=>pf,isDirty:()=>D1,isValid:()=>pl,late:()=>cF,lazy:()=>OF,literal:()=>IF,makeIssue:()=>k0,map:()=>BF,nan:()=>dF,nativeEnum:()=>NF,never:()=>vF,null:()=>mF,nullable:()=>DF,number:()=>qk,object:()=>_F,objectUtil:()=>F3,oboolean:()=>WF,onumber:()=>HF,optional:()=>zF,ostring:()=>VF,pipeline:()=>qF,preprocess:()=>LF,promise:()=>PF,quotelessJson:()=>jW,record:()=>kF,set:()=>MF,setErrorMap:()=>DW,strictObject:()=>CF,string:()=>Lk,symbol:()=>gF,transformer:()=>jF,tuple:()=>AF,undefined:()=>pF,union:()=>SF,unknown:()=>bF,util:()=>$t,void:()=>wF});b();b();b();b();b();var $t;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{let a={};for(let o of i)a[o]=o;return a},t.getValidEnumValues=i=>{let a=t.objectKeys(i).filter(s=>typeof i[i[s]]!=\\\"number\\\"),o={};for(let s of a)o[s]=i[s];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(a){return i[a]}),t.objectKeys=typeof Object.keys==\\\"function\\\"?i=>Object.keys(i):i=>{let a=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},t.find=(i,a)=>{for(let o of i)if(a(o))return o},t.isInteger=typeof Number.isInteger==\\\"function\\\"?i=>Number.isInteger(i):i=>typeof i==\\\"number\\\"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=\\\" | \\\"){return i.map(o=>typeof o==\\\"string\\\"?`'${o}'`:o).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(i,a)=>typeof a==\\\"bigint\\\"?a.toString():a})($t||($t={}));var F3;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(F3||(F3={}));var ze=$t.arrayToEnum([\\\"string\\\",\\\"nan\\\",\\\"number\\\",\\\"integer\\\",\\\"float\\\",\\\"boolean\\\",\\\"date\\\",\\\"bigint\\\",\\\"symbol\\\",\\\"function\\\",\\\"undefined\\\",\\\"null\\\",\\\"array\\\",\\\"object\\\",\\\"unknown\\\",\\\"promise\\\",\\\"void\\\",\\\"never\\\",\\\"map\\\",\\\"set\\\"]),Ja=t=>{switch(typeof t){case\\\"undefined\\\":return ze.undefined;case\\\"string\\\":return ze.string;case\\\"number\\\":return Number.isNaN(t)?ze.nan:ze.number;case\\\"boolean\\\":return ze.boolean;case\\\"function\\\":return ze.function;case\\\"bigint\\\":return ze.bigint;case\\\"symbol\\\":return ze.symbol;case\\\"object\\\":return Array.isArray(t)?ze.array:t===null?ze.null:t.then&&typeof t.then==\\\"function\\\"&&t.catch&&typeof t.catch==\\\"function\\\"?ze.promise:typeof Map<\\\"u\\\"&&t instanceof Map?ze.map:typeof Set<\\\"u\\\"&&t instanceof Set?ze.set:typeof Date<\\\"u\\\"&&t instanceof Date?ze.date:ze.object;default:return ze.unknown}};var Ce=$t.arrayToEnum([\\\"invalid_type\\\",\\\"invalid_literal\\\",\\\"custom\\\",\\\"invalid_union\\\",\\\"invalid_union_discriminator\\\",\\\"invalid_enum_value\\\",\\\"unrecognized_keys\\\",\\\"invalid_arguments\\\",\\\"invalid_return_type\\\",\\\"invalid_date\\\",\\\"invalid_string\\\",\\\"too_small\\\",\\\"too_big\\\",\\\"invalid_intersection_types\\\",\\\"not_multiple_of\\\",\\\"not_finite\\\"]),jW=t=>JSON.stringify(t,null,2).replace(/\\\"([^\\\"]+)\\\":/g,\\\"$1:\\\"),pi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\\\"ZodError\\\",this.issues=e}format(e){let n=e||function(a){return a.message},r={_errors:[]},i=a=>{for(let o of a.issues)if(o.code===\\\"invalid_union\\\")o.unionErrors.map(i);else if(o.code===\\\"invalid_return_type\\\")i(o.returnTypeError);else if(o.code===\\\"invalid_arguments\\\")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){let c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$t.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let i of this.issues)if(i.path.length>0){let a=i.path[0];n[a]=n[a]||[],n[a].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};pi.create=t=>new pi(t);var zW=(t,e)=>{let n;switch(t.code){case Ce.invalid_type:t.received===ze.undefined?n=\\\"Required\\\":n=`Expected ${t.expected}, received ${t.received}`;break;case Ce.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,$t.jsonStringifyReplacer)}`;break;case Ce.unrecognized_keys:n=`Unrecognized key(s) in object: ${$t.joinValues(t.keys,\\\", \\\")}`;break;case Ce.invalid_union:n=\\\"Invalid input\\\";break;case Ce.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${$t.joinValues(t.options)}`;break;case Ce.invalid_enum_value:n=`Invalid enum value. Expected ${$t.joinValues(t.options)}, received '${t.received}'`;break;case Ce.invalid_arguments:n=\\\"Invalid function arguments\\\";break;case Ce.invalid_return_type:n=\\\"Invalid function return type\\\";break;case Ce.invalid_date:n=\\\"Invalid date\\\";break;case Ce.invalid_string:typeof t.validation==\\\"object\\\"?\\\"includes\\\"in t.validation?(n=`Invalid input: must include \\\"${t.validation.includes}\\\"`,typeof t.validation.position==\\\"number\\\"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):\\\"startsWith\\\"in t.validation?n=`Invalid input: must start with \\\"${t.validation.startsWith}\\\"`:\\\"endsWith\\\"in t.validation?n=`Invalid input: must end with \\\"${t.validation.endsWith}\\\"`:$t.assertNever(t.validation):t.validation!==\\\"regex\\\"?n=`Invalid ${t.validation}`:n=\\\"Invalid\\\";break;case Ce.too_small:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"more than\\\"} ${t.minimum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"over\\\"} ${t.minimum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"bigint\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${new Date(Number(t.minimum))}`:n=\\\"Invalid input\\\";break;case Ce.too_big:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"less than\\\"} ${t.maximum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"under\\\"} ${t.maximum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"bigint\\\"?n=`BigInt must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"smaller than or equal to\\\":\\\"smaller than\\\"} ${new Date(Number(t.maximum))}`:n=\\\"Invalid input\\\";break;case Ce.custom:n=\\\"Invalid input\\\";break;case Ce.invalid_intersection_types:n=\\\"Intersection results could not be merged\\\";break;case Ce.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Ce.not_finite:n=\\\"Number must be finite\\\";break;default:n=e.defaultError,$t.assertNever(t)}return{message:n}},Go=zW;var Ok=Go;function DW(t){Ok=t}function gf(){return Ok}b();var k0=t=>{let{data:e,path:n,errorMaps:r,issueData:i}=t,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=\\\"\\\",l=r.filter(c=>!!c).slice().reverse();for(let c of l)s=c(o,{data:e,defaultError:s}).message;return{...i,path:a,message:s}},LW=[];function Ie(t,e){let n=gf(),r=k0({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Go?void 0:Go].filter(i=>!!i)});t.common.issues.push(r)}var Br=class t{constructor(){this.value=\\\"valid\\\"}dirty(){this.value===\\\"valid\\\"&&(this.value=\\\"dirty\\\")}abort(){this.value!==\\\"aborted\\\"&&(this.value=\\\"aborted\\\")}static mergeArray(e,n){let r=[];for(let i of n){if(i.status===\\\"aborted\\\")return st;i.status===\\\"dirty\\\"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let i of n){let a=await i.key,o=await i.value;r.push({key:a,value:o})}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let i of n){let{key:a,value:o}=i;if(a.status===\\\"aborted\\\"||o.status===\\\"aborted\\\")return st;a.status===\\\"dirty\\\"&&e.dirty(),o.status===\\\"dirty\\\"&&e.dirty(),a.value!==\\\"__proto__\\\"&&(typeof o.value<\\\"u\\\"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:e.value,value:r}}},st=Object.freeze({status:\\\"aborted\\\"}),hc=t=>({status:\\\"dirty\\\",value:t}),jr=t=>({status:\\\"valid\\\",value:t}),z1=t=>t.status===\\\"aborted\\\",D1=t=>t.status===\\\"dirty\\\",pl=t=>t.status===\\\"valid\\\",pf=t=>typeof Promise<\\\"u\\\"&&t instanceof Promise;b();b();var Ge;(function(t){t.errToObj=e=>typeof e==\\\"string\\\"?{message:e}:e||{},t.toString=e=>typeof e==\\\"string\\\"?e:e?.message})(Ge||(Ge={}));var oa=class{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ik=(t,e)=>{if(pl(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error(\\\"Validation failed but no issues detected.\\\");return{success:!1,get error(){if(this._error)return this._error;let n=new pi(t.common.issues);return this._error=n,this._error}}};function Mt(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use \\\"invalid_type_error\\\" or \\\"required_error\\\" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,s)=>{let{message:l}=t;return o.code===\\\"invalid_enum_value\\\"?{message:l??s.defaultError}:typeof s.data>\\\"u\\\"?{message:l??r??s.defaultError}:o.code!==\\\"invalid_type\\\"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}var jt=class{get description(){return this._def.description}_getType(e){return Ja(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ja(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Br,ctx:{common:e.parent.common,data:e.data,parsedType:Ja(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(pf(n))throw new Error(\\\"Synchronous parse encountered promise.\\\");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ja(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Ik(r,i)}\\\"~validate\\\"(e){let n={common:{issues:[],async:!!this[\\\"~standard\\\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ja(e)};if(!this[\\\"~standard\\\"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return pl(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\\\"encountered\\\")&&(this[\\\"~standard\\\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>pl(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ja(e)},i=this._parse({data:e,path:r.path,parent:r}),a=await(pf(i)?i:Promise.resolve(i));return Ik(r,a)}refine(e,n){let r=i=>typeof n==\\\"string\\\"||typeof n>\\\"u\\\"?{message:n}:typeof n==\\\"function\\\"?n(i):n;return this._refinement((i,a)=>{let o=e(i),s=()=>a.addIssue({code:Ce.custom,...r(i)});return typeof Promise<\\\"u\\\"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n==\\\"function\\\"?n(r,i):n),!1))}_refinement(e){return new sa({schema:this,typeName:ut.ZodEffects,effect:{type:\\\"refinement\\\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\\\"~standard\\\"]={version:1,vendor:\\\"zod\\\",validate:n=>this[\\\"~validate\\\"](n)}}optional(){return aa.create(this,this._def)}nullable(){return to.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jo.create(this)}promise(){return bl.create(this,this._def)}or(e){return wc.create([this,e],this._def)}and(e){return xc.create(this,e,this._def)}transform(e){return new sa({...Mt(this._def),schema:this,typeName:ut.ZodEffects,effect:{type:\\\"transform\\\",transform:e}})}default(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new Ec({...Mt(this._def),innerType:this,defaultValue:n,typeName:ut.ZodDefault})}brand(){return new B0({typeName:ut.ZodBranded,type:this,...Mt(this._def)})}catch(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new Ac({...Mt(this._def),innerType:this,catchValue:n,typeName:ut.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return M0.create(this,e)}readonly(){return kc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qW=/^c[^\\\\s-]{8,}$/i,VW=/^[0-9a-z]+$/,HW=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WW=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,FW=/^[a-z0-9_-]{21}$/i,$W=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,KW=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,ZW=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,YW=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\",$3,GW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,XW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,JW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Nk=\\\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\\\",nF=new RegExp(`^${Nk}$`);function Pk(t){let e=\\\"[0-5]\\\\\\\\d\\\";t.precision?e=`${e}\\\\\\\\.\\\\\\\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\\\\\\\.\\\\\\\\d+)?`);let n=t.precision?\\\"+\\\":\\\"?\\\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${e})${n}`}function rF(t){return new RegExp(`^${Pk(t)}$`)}function jk(t){let e=`${Nk}T${Pk(t)}`,n=[];return n.push(t.local?\\\"Z?\\\":\\\"Z\\\"),t.offset&&n.push(\\\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\\\"),e=`${e}(${n.join(\\\"|\\\")})`,new RegExp(`^${e}$`)}function iF(t,e){return!!((e===\\\"v4\\\"||!e)&&GW.test(t)||(e===\\\"v6\\\"||!e)&&XW.test(t))}function aF(t,e){if(!$W.test(t))return!1;try{let[n]=t.split(\\\".\\\");if(!n)return!1;let r=n.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(n.length+(4-n.length%4)%4,\\\"=\\\"),i=JSON.parse(atob(r));return!(typeof i!=\\\"object\\\"||i===null||\\\"typ\\\"in i&&i?.typ!==\\\"JWT\\\"||!i.alg||e&&i.alg!==e)}catch{return!1}}function oF(t,e){return!!((e===\\\"v4\\\"||!e)&&QW.test(t)||(e===\\\"v6\\\"||!e)&&JW.test(t))}var ml=class t extends jt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ze.string){let a=this._getOrReturnCtx(e);return Ie(a,{code:Ce.invalid_type,expected:ze.string,received:a.parsedType}),st}let r=new Br,i;for(let a of this._def.checks)if(a.kind===\\\"min\\\")e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.too_small,minimum:a.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\\\"max\\\")e.data.length>a.value&&(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.too_big,maximum:a.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind===\\\"length\\\"){let o=e.data.length>a.value,s=e.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(e,i),o?Ie(i,{code:Ce.too_big,maximum:a.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:a.message}):s&&Ie(i,{code:Ce.too_small,minimum:a.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind===\\\"email\\\")ZW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"email\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"emoji\\\")$3||($3=new RegExp(YW,\\\"u\\\")),$3.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"emoji\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"uuid\\\")WW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"uuid\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"nanoid\\\")FW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"nanoid\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"cuid\\\")qW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"cuid\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"cuid2\\\")VW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"cuid2\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"ulid\\\")HW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"ulid\\\",code:Ce.invalid_string,message:a.message}),r.dirty());else if(a.kind===\\\"url\\\")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"url\\\",code:Ce.invalid_string,message:a.message}),r.dirty()}else a.kind===\\\"regex\\\"?(a.regex.lastIndex=0,a.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"regex\\\",code:Ce.invalid_string,message:a.message}),r.dirty())):a.kind===\\\"trim\\\"?e.data=e.data.trim():a.kind===\\\"includes\\\"?e.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind===\\\"toLowerCase\\\"?e.data=e.data.toLowerCase():a.kind===\\\"toUpperCase\\\"?e.data=e.data.toUpperCase():a.kind===\\\"startsWith\\\"?e.data.startsWith(a.value)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind===\\\"endsWith\\\"?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind===\\\"datetime\\\"?jk(a).test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:\\\"datetime\\\",message:a.message}),r.dirty()):a.kind===\\\"date\\\"?nF.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:\\\"date\\\",message:a.message}),r.dirty()):a.kind===\\\"time\\\"?rF(a).test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.invalid_string,validation:\\\"time\\\",message:a.message}),r.dirty()):a.kind===\\\"duration\\\"?KW.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"duration\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"ip\\\"?iF(e.data,a.version)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"ip\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"jwt\\\"?aF(e.data,a.alg)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"jwt\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"cidr\\\"?oF(e.data,a.version)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"cidr\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"base64\\\"?eF.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"base64\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):a.kind===\\\"base64url\\\"?tF.test(e.data)||(i=this._getOrReturnCtx(e,i),Ie(i,{validation:\\\"base64url\\\",code:Ce.invalid_string,message:a.message}),r.dirty()):$t.assertNever(a);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(i=>e.test(i),{validation:n,code:Ce.invalid_string,...Ge.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\\\"email\\\",...Ge.errToObj(e)})}url(e){return this._addCheck({kind:\\\"url\\\",...Ge.errToObj(e)})}emoji(e){return this._addCheck({kind:\\\"emoji\\\",...Ge.errToObj(e)})}uuid(e){return this._addCheck({kind:\\\"uuid\\\",...Ge.errToObj(e)})}nanoid(e){return this._addCheck({kind:\\\"nanoid\\\",...Ge.errToObj(e)})}cuid(e){return this._addCheck({kind:\\\"cuid\\\",...Ge.errToObj(e)})}cuid2(e){return this._addCheck({kind:\\\"cuid2\\\",...Ge.errToObj(e)})}ulid(e){return this._addCheck({kind:\\\"ulid\\\",...Ge.errToObj(e)})}base64(e){return this._addCheck({kind:\\\"base64\\\",...Ge.errToObj(e)})}base64url(e){return this._addCheck({kind:\\\"base64url\\\",...Ge.errToObj(e)})}jwt(e){return this._addCheck({kind:\\\"jwt\\\",...Ge.errToObj(e)})}ip(e){return this._addCheck({kind:\\\"ip\\\",...Ge.errToObj(e)})}cidr(e){return this._addCheck({kind:\\\"cidr\\\",...Ge.errToObj(e)})}datetime(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"datetime\\\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\\\"datetime\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ge.errToObj(e?.message)})}date(e){return this._addCheck({kind:\\\"date\\\",message:e})}time(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"time\\\",precision:null,message:e}):this._addCheck({kind:\\\"time\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,...Ge.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\\\"duration\\\",...Ge.errToObj(e)})}regex(e,n){return this._addCheck({kind:\\\"regex\\\",regex:e,...Ge.errToObj(n)})}includes(e,n){return this._addCheck({kind:\\\"includes\\\",value:e,position:n?.position,...Ge.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:\\\"startsWith\\\",value:e,...Ge.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:\\\"endsWith\\\",value:e,...Ge.errToObj(n)})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e,...Ge.errToObj(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e,...Ge.errToObj(n)})}length(e,n){return this._addCheck({kind:\\\"length\\\",value:e,...Ge.errToObj(n)})}nonempty(e){return this.min(1,Ge.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"trim\\\"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toLowerCase\\\"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toUpperCase\\\"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===\\\"datetime\\\")}get isDate(){return!!this._def.checks.find(e=>e.kind===\\\"date\\\")}get isTime(){return!!this._def.checks.find(e=>e.kind===\\\"time\\\")}get isDuration(){return!!this._def.checks.find(e=>e.kind===\\\"duration\\\")}get isEmail(){return!!this._def.checks.find(e=>e.kind===\\\"email\\\")}get isURL(){return!!this._def.checks.find(e=>e.kind===\\\"url\\\")}get isEmoji(){return!!this._def.checks.find(e=>e.kind===\\\"emoji\\\")}get isUUID(){return!!this._def.checks.find(e=>e.kind===\\\"uuid\\\")}get isNANOID(){return!!this._def.checks.find(e=>e.kind===\\\"nanoid\\\")}get isCUID(){return!!this._def.checks.find(e=>e.kind===\\\"cuid\\\")}get isCUID2(){return!!this._def.checks.find(e=>e.kind===\\\"cuid2\\\")}get isULID(){return!!this._def.checks.find(e=>e.kind===\\\"ulid\\\")}get isIP(){return!!this._def.checks.find(e=>e.kind===\\\"ip\\\")}get isCIDR(){return!!this._def.checks.find(e=>e.kind===\\\"cidr\\\")}get isBase64(){return!!this._def.checks.find(e=>e.kind===\\\"base64\\\")}get isBase64url(){return!!this._def.checks.find(e=>e.kind===\\\"base64url\\\")}get minLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};ml.create=t=>new ml({checks:[],typeName:ut.ZodString,coerce:t?.coerce??!1,...Mt(t)});function sF(t,e){let n=(t.toString().split(\\\".\\\")[1]||\\\"\\\").length,r=(e.toString().split(\\\".\\\")[1]||\\\"\\\").length,i=n>r?n:r,a=Number.parseInt(t.toFixed(i).replace(\\\".\\\",\\\"\\\")),o=Number.parseInt(e.toFixed(i).replace(\\\".\\\",\\\"\\\"));return a%o/10**i}var gc=class t extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ze.number){let a=this._getOrReturnCtx(e);return Ie(a,{code:Ce.invalid_type,expected:ze.number,received:a.parsedType}),st}let r,i=new Br;for(let a of this._def.checks)a.kind===\\\"int\\\"?$t.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.invalid_type,expected:\\\"integer\\\",received:\\\"float\\\",message:a.message}),i.dirty()):a.kind===\\\"min\\\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.too_small,minimum:a.value,type:\\\"number\\\",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind===\\\"max\\\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.too_big,maximum:a.value,type:\\\"number\\\",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind===\\\"multipleOf\\\"?sF(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind===\\\"finite\\\"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.not_finite,message:a.message}),i.dirty()):$t.assertNever(a);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,Ge.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,Ge.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,Ge.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,Ge.toString(n))}setLimit(e,n,r,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\\\"int\\\",message:Ge.toString(e)})}positive(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!0,message:Ge.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:Ge.toString(n)})}finite(e){return this._addCheck({kind:\\\"finite\\\",message:Ge.toString(e)})}safe(e){return this._addCheck({kind:\\\"min\\\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(e)})._addCheck({kind:\\\"max\\\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===\\\"int\\\"||e.kind===\\\"multipleOf\\\"&&$t.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind===\\\"finite\\\"||r.kind===\\\"int\\\"||r.kind===\\\"multipleOf\\\")return!0;r.kind===\\\"min\\\"?(n===null||r.value>n)&&(n=r.value):r.kind===\\\"max\\\"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};gc.create=t=>new gc({checks:[],typeName:ut.ZodNumber,coerce:t?.coerce||!1,...Mt(t)});var pc=class t extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ze.bigint)return this._getInvalidInput(e);let r,i=new Br;for(let a of this._def.checks)a.kind===\\\"min\\\"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.too_small,type:\\\"bigint\\\",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind===\\\"max\\\"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.too_big,type:\\\"bigint\\\",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind===\\\"multipleOf\\\"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),Ie(r,{code:Ce.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):$t.assertNever(a);return{status:i.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return Ie(n,{code:Ce.invalid_type,expected:ze.bigint,received:n.parsedType}),st}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,Ge.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,Ge.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,Ge.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,Ge.toString(n))}setLimit(e,n,r,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:Ge.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};pc.create=t=>new pc({checks:[],typeName:ut.ZodBigInt,coerce:t?.coerce??!1,...Mt(t)});var mc=class extends jt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ze.boolean){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.boolean,received:r.parsedType}),st}return jr(e.data)}};mc.create=t=>new mc({typeName:ut.ZodBoolean,coerce:t?.coerce||!1,...Mt(t)});var yc=class t extends jt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ze.date){let a=this._getOrReturnCtx(e);return Ie(a,{code:Ce.invalid_type,expected:ze.date,received:a.parsedType}),st}if(Number.isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return Ie(a,{code:Ce.invalid_date}),st}let r=new Br,i;for(let a of this._def.checks)a.kind===\\\"min\\\"?e.data.getTime()<a.value&&(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:\\\"date\\\"}),r.dirty()):a.kind===\\\"max\\\"?e.data.getTime()>a.value&&(i=this._getOrReturnCtx(e,i),Ie(i,{code:Ce.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:\\\"date\\\"}),r.dirty()):$t.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e.getTime(),message:Ge.toString(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e.getTime(),message:Ge.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};yc.create=t=>new yc({checks:[],coerce:t?.coerce||!1,typeName:ut.ZodDate,...Mt(t)});var yf=class extends jt{_parse(e){if(this._getType(e)!==ze.symbol){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.symbol,received:r.parsedType}),st}return jr(e.data)}};yf.create=t=>new yf({typeName:ut.ZodSymbol,...Mt(t)});var bc=class extends jt{_parse(e){if(this._getType(e)!==ze.undefined){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.undefined,received:r.parsedType}),st}return jr(e.data)}};bc.create=t=>new bc({typeName:ut.ZodUndefined,...Mt(t)});var vc=class extends jt{_parse(e){if(this._getType(e)!==ze.null){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.null,received:r.parsedType}),st}return jr(e.data)}};vc.create=t=>new vc({typeName:ut.ZodNull,...Mt(t)});var yl=class extends jt{constructor(){super(...arguments),this._any=!0}_parse(e){return jr(e.data)}};yl.create=t=>new yl({typeName:ut.ZodAny,...Mt(t)});var Xo=class extends jt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return jr(e.data)}};Xo.create=t=>new Xo({typeName:ut.ZodUnknown,...Mt(t)});var Ta=class extends jt{_parse(e){let n=this._getOrReturnCtx(e);return Ie(n,{code:Ce.invalid_type,expected:ze.never,received:n.parsedType}),st}};Ta.create=t=>new Ta({typeName:ut.ZodNever,...Mt(t)});var bf=class extends jt{_parse(e){if(this._getType(e)!==ze.undefined){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.void,received:r.parsedType}),st}return jr(e.data)}};bf.create=t=>new bf({typeName:ut.ZodVoid,...Mt(t)});var Jo=class t extends jt{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==ze.array)return Ie(n,{code:Ce.invalid_type,expected:ze.array,received:n.parsedType}),st;if(i.exactLength!==null){let o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(Ie(n,{code:o?Ce.too_big:Ce.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:\\\"array\\\",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Ie(n,{code:Ce.too_small,minimum:i.minLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Ie(n,{code:Ce.too_big,maximum:i.maxLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new oa(n,o,n.path,s)))).then(o=>Br.mergeArray(r,o));let a=[...n.data].map((o,s)=>i.type._parseSync(new oa(n,o,n.path,s)));return Br.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:Ge.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:Ge.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:Ge.toString(n)}})}nonempty(e){return this.min(1,e)}};Jo.create=(t,e)=>new Jo({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ut.ZodArray,...Mt(e)});function mf(t){if(t instanceof mi){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=aa.create(mf(r))}return new mi({...t._def,shape:()=>e})}else return t instanceof Jo?new Jo({...t._def,type:mf(t.element)}):t instanceof aa?aa.create(mf(t.unwrap())):t instanceof to?to.create(mf(t.unwrap())):t instanceof eo?eo.create(t.items.map(e=>mf(e))):t}var mi=class t extends jt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=$t.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==ze.object){let c=this._getOrReturnCtx(e);return Ie(c,{code:Ce.invalid_type,expected:ze.object,received:c.parsedType}),st}let{status:r,ctx:i}=this._processInputParams(e),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ta&&this._def.unknownKeys===\\\"strip\\\"))for(let c in i.data)o.includes(c)||s.push(c);let l=[];for(let c of o){let u=a[c],d=i.data[c];l.push({key:{status:\\\"valid\\\",value:c},value:u._parse(new oa(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Ta){let c=this._def.unknownKeys;if(c===\\\"passthrough\\\")for(let u of s)l.push({key:{status:\\\"valid\\\",value:u},value:{status:\\\"valid\\\",value:i.data[u]}});else if(c===\\\"strict\\\")s.length>0&&(Ie(i,{code:Ce.unrecognized_keys,keys:s}),r.dirty());else if(c!==\\\"strip\\\")throw new Error(\\\"Internal ZodObject error: invalid unknownKeys value.\\\")}else{let c=this._def.catchall;for(let u of s){let d=i.data[u];l.push({key:{status:\\\"valid\\\",value:u},value:c._parse(new oa(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let u of l){let d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>Br.mergeObjectSync(r,c)):Br.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return Ge.errToObj,new t({...this._def,unknownKeys:\\\"strict\\\",...e!==void 0?{errorMap:(n,r)=>{let i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\\\"unrecognized_keys\\\"?{message:Ge.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:\\\"strip\\\"})}passthrough(){return new t({...this._def,unknownKeys:\\\"passthrough\\\"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ut.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of $t.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of $t.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return mf(this)}partial(e){let n={};for(let r of $t.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of $t.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof aa;)a=a._def.innerType;n[r]=a}return new t({...this._def,shape:()=>n})}keyof(){return zk($t.objectKeys(this.shape))}};mi.create=(t,e)=>new mi({shape:()=>t,unknownKeys:\\\"strip\\\",catchall:Ta.create(),typeName:ut.ZodObject,...Mt(e)});mi.strictCreate=(t,e)=>new mi({shape:()=>t,unknownKeys:\\\"strict\\\",catchall:Ta.create(),typeName:ut.ZodObject,...Mt(e)});mi.lazycreate=(t,e)=>new mi({shape:t,unknownKeys:\\\"strip\\\",catchall:Ta.create(),typeName:ut.ZodObject,...Mt(e)});var wc=class extends jt{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function i(a){for(let s of a)if(s.result.status===\\\"valid\\\")return s.result;for(let s of a)if(s.result.status===\\\"dirty\\\")return n.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(s=>new pi(s.ctx.common.issues));return Ie(n,{code:Ce.invalid_union,unionErrors:o}),st}if(n.common.async)return Promise.all(r.map(async a=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a,o=[];for(let l of r){let c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status===\\\"valid\\\")return u;u.status===\\\"dirty\\\"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(l=>new pi(l));return Ie(n,{code:Ce.invalid_union,unionErrors:s}),st}}get options(){return this._def.options}};wc.create=(t,e)=>new wc({options:t,typeName:ut.ZodUnion,...Mt(e)});var Qo=t=>t instanceof _c?Qo(t.schema):t instanceof sa?Qo(t.innerType()):t instanceof Cc?[t.value]:t instanceof Sc?t.options:t instanceof Tc?$t.objectValues(t.enum):t instanceof Ec?Qo(t._def.innerType):t instanceof bc?[void 0]:t instanceof vc?[null]:t instanceof aa?[void 0,...Qo(t.unwrap())]:t instanceof to?[null,...Qo(t.unwrap())]:t instanceof B0||t instanceof kc?Qo(t.unwrap()):t instanceof Ac?Qo(t._def.innerType):[],L1=class t extends jt{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==ze.object)return Ie(n,{code:Ce.invalid_type,expected:ze.object,received:n.parsedType}),st;let r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Ie(n,{code:Ce.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),st)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let i=new Map;for(let a of n){let o=Qo(a.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \\\\`${e}\\\\` could not be extracted from all schema options`);for(let s of o){if(i.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);i.set(s,a)}}return new t({typeName:ut.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...Mt(r)})}};function K3(t,e){let n=Ja(t),r=Ja(e);if(t===e)return{valid:!0,data:t};if(n===ze.object&&r===ze.object){let i=$t.objectKeys(e),a=$t.objectKeys(t).filter(s=>i.indexOf(s)!==-1),o={...t,...e};for(let s of a){let l=K3(t[s],e[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===ze.array&&r===ze.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let a=0;a<t.length;a++){let o=t[a],s=e[a],l=K3(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===ze.date&&r===ze.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var xc=class extends jt{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=(a,o)=>{if(z1(a)||z1(o))return st;let s=K3(a.value,o.value);return s.valid?((D1(a)||D1(o))&&n.dirty(),{status:n.value,value:s.data}):(Ie(r,{code:Ce.invalid_intersection_types}),st)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};xc.create=(t,e,n)=>new xc({left:t,right:e,typeName:ut.ZodIntersection,...Mt(n)});var eo=class t extends jt{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ze.array)return Ie(r,{code:Ce.invalid_type,expected:ze.array,received:r.parsedType}),st;if(r.data.length<this._def.items.length)return Ie(r,{code:Ce.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),st;!this._def.rest&&r.data.length>this._def.items.length&&(Ie(r,{code:Ce.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),n.dirty());let a=[...r.data].map((o,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new oa(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>Br.mergeArray(n,o)):Br.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};eo.create=(t,e)=>{if(!Array.isArray(t))throw new Error(\\\"You must pass an array of schemas to z.tuple([ ... ])\\\");return new eo({items:t,typeName:ut.ZodTuple,rest:null,...Mt(e)})};var q1=class t extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ze.object)return Ie(r,{code:Ce.invalid_type,expected:ze.object,received:r.parsedType}),st;let i=[],a=this._def.keyType,o=this._def.valueType;for(let s in r.data)i.push({key:a._parse(new oa(r,s,r.path,s)),value:o._parse(new oa(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Br.mergeObjectAsync(n,i):Br.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof jt?new t({keyType:e,valueType:n,typeName:ut.ZodRecord,...Mt(r)}):new t({keyType:ml.create(),valueType:e,typeName:ut.ZodRecord,...Mt(n)})}},vf=class extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ze.map)return Ie(r,{code:Ce.invalid_type,expected:ze.map,received:r.parsedType}),st;let i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new oa(r,s,r.path,[c,\\\"key\\\"])),value:a._parse(new oa(r,l,r.path,[c,\\\"value\\\"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of o){let c=await l.key,u=await l.value;if(c.status===\\\"aborted\\\"||u.status===\\\"aborted\\\")return st;(c.status===\\\"dirty\\\"||u.status===\\\"dirty\\\")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{let s=new Map;for(let l of o){let c=l.key,u=l.value;if(c.status===\\\"aborted\\\"||u.status===\\\"aborted\\\")return st;(c.status===\\\"dirty\\\"||u.status===\\\"dirty\\\")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}};vf.create=(t,e,n)=>new vf({valueType:e,keyType:t,typeName:ut.ZodMap,...Mt(n)});var wf=class t extends jt{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ze.set)return Ie(r,{code:Ce.invalid_type,expected:ze.set,received:r.parsedType}),st;let i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Ie(r,{code:Ce.too_small,minimum:i.minSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Ie(r,{code:Ce.too_big,maximum:i.maxSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let a=this._def.valueType;function o(l){let c=new Set;for(let u of l){if(u.status===\\\"aborted\\\")return st;u.status===\\\"dirty\\\"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}let s=[...r.data.values()].map((l,c)=>a._parse(new oa(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(e,n){return new t({...this._def,minSize:{value:e,message:Ge.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:Ge.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};wf.create=(t,e)=>new wf({valueType:t,minSize:null,maxSize:null,typeName:ut.ZodSet,...Mt(e)});var V1=class t extends jt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==ze.function)return Ie(n,{code:Ce.invalid_type,expected:ze.function,received:n.parsedType}),st;function r(s,l){return k0({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gf(),Go].filter(c=>!!c),issueData:{code:Ce.invalid_arguments,argumentsError:l}})}function i(s,l){return k0({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gf(),Go].filter(c=>!!c),issueData:{code:Ce.invalid_return_type,returnTypeError:l}})}let a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof bl){let s=this;return jr(async function(...l){let c=new pi([]),u=await s._def.args.parseAsync(l,a).catch(g=>{throw c.addIssue(r(l,g)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(g=>{throw c.addIssue(i(d,g)),c})})}else{let s=this;return jr(function(...l){let c=s._def.args.safeParse(l,a);if(!c.success)throw new pi([r(l,c.error)]);let u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new pi([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:eo.create(e).rest(Xo.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||eo.create([]).rest(Xo.create()),returns:n||Xo.create(),typeName:ut.ZodFunction,...Mt(r)})}},_c=class extends jt{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};_c.create=(t,e)=>new _c({getter:t,typeName:ut.ZodLazy,...Mt(e)});var Cc=class extends jt{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return Ie(n,{received:n.data,code:Ce.invalid_literal,expected:this._def.value}),st}return{status:\\\"valid\\\",value:e.data}}get value(){return this._def.value}};Cc.create=(t,e)=>new Cc({value:t,typeName:ut.ZodLiteral,...Mt(e)});function zk(t,e){return new Sc({values:t,typeName:ut.ZodEnum,...Mt(e)})}var Sc=class t extends jt{_parse(e){if(typeof e.data!=\\\"string\\\"){let n=this._getOrReturnCtx(e),r=this._def.values;return Ie(n,{expected:$t.joinValues(r),received:n.parsedType,code:Ce.invalid_type}),st}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return Ie(n,{received:n.data,code:Ce.invalid_enum_value,options:r}),st}return jr(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};Sc.create=zk;var Tc=class extends jt{_parse(e){let n=$t.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==ze.string&&r.parsedType!==ze.number){let i=$t.objectValues(n);return Ie(r,{expected:$t.joinValues(i),received:r.parsedType,code:Ce.invalid_type}),st}if(this._cache||(this._cache=new Set($t.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=$t.objectValues(n);return Ie(r,{received:r.data,code:Ce.invalid_enum_value,options:i}),st}return jr(e.data)}get enum(){return this._def.values}};Tc.create=(t,e)=>new Tc({values:t,typeName:ut.ZodNativeEnum,...Mt(e)});var bl=class extends jt{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==ze.promise&&n.common.async===!1)return Ie(n,{code:Ce.invalid_type,expected:ze.promise,received:n.parsedType}),st;let r=n.parsedType===ze.promise?n.data:Promise.resolve(n.data);return jr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}};bl.create=(t,e)=>new bl({type:t,typeName:ut.ZodPromise,...Mt(e)});var sa=class extends jt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ut.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,a={addIssue:o=>{Ie(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type===\\\"preprocess\\\"){let o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value===\\\"aborted\\\")return st;let l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status===\\\"aborted\\\"?st:l.status===\\\"dirty\\\"?hc(l.value):n.value===\\\"dirty\\\"?hc(l.value):l});{if(n.value===\\\"aborted\\\")return st;let s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status===\\\"aborted\\\"?st:s.status===\\\"dirty\\\"?hc(s.value):n.value===\\\"dirty\\\"?hc(s.value):s}}if(i.type===\\\"refinement\\\"){let o=s=>{let l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error(\\\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\\\");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status===\\\"aborted\\\"?st:(s.status===\\\"dirty\\\"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status===\\\"aborted\\\"?st:(s.status===\\\"dirty\\\"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type===\\\"transform\\\")if(r.common.async===!1){let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!pl(o))return st;let s=i.transform(o.value,a);if(s instanceof Promise)throw new Error(\\\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\\\");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>pl(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):st);$t.assertNever(i)}};sa.create=(t,e,n)=>new sa({schema:t,typeName:ut.ZodEffects,effect:e,...Mt(n)});sa.createWithPreprocess=(t,e,n)=>new sa({schema:e,effect:{type:\\\"preprocess\\\",transform:t},typeName:ut.ZodEffects,...Mt(n)});var aa=class extends jt{_parse(e){return this._getType(e)===ze.undefined?jr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};aa.create=(t,e)=>new aa({innerType:t,typeName:ut.ZodOptional,...Mt(e)});var to=class extends jt{_parse(e){return this._getType(e)===ze.null?jr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};to.create=(t,e)=>new to({innerType:t,typeName:ut.ZodNullable,...Mt(e)});var Ec=class extends jt{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===ze.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ec.create=(t,e)=>new Ec({innerType:t,typeName:ut.ZodDefault,defaultValue:typeof e.default==\\\"function\\\"?e.default:()=>e.default,...Mt(e)});var Ac=class extends jt{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return pf(i)?i.then(a=>({status:\\\"valid\\\",value:a.status===\\\"valid\\\"?a.value:this._def.catchValue({get error(){return new pi(r.common.issues)},input:r.data})})):{status:\\\"valid\\\",value:i.status===\\\"valid\\\"?i.value:this._def.catchValue({get error(){return new pi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Ac.create=(t,e)=>new Ac({innerType:t,typeName:ut.ZodCatch,catchValue:typeof e.catch==\\\"function\\\"?e.catch:()=>e.catch,...Mt(e)});var xf=class extends jt{_parse(e){if(this._getType(e)!==ze.nan){let r=this._getOrReturnCtx(e);return Ie(r,{code:Ce.invalid_type,expected:ze.nan,received:r.parsedType}),st}return{status:\\\"valid\\\",value:e.data}}};xf.create=t=>new xf({typeName:ut.ZodNaN,...Mt(t)});var lF=Symbol(\\\"zod_brand\\\"),B0=class extends jt{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},M0=class t extends jt{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status===\\\"aborted\\\"?st:a.status===\\\"dirty\\\"?(n.dirty(),hc(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status===\\\"aborted\\\"?st:i.status===\\\"dirty\\\"?(n.dirty(),{status:\\\"dirty\\\",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:ut.ZodPipeline})}},kc=class extends jt{_parse(e){let n=this._def.innerType._parse(e),r=i=>(pl(i)&&(i.value=Object.freeze(i.value)),i);return pf(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};kc.create=(t,e)=>new kc({innerType:t,typeName:ut.ZodReadonly,...Mt(e)});function Uk(t,e){let n=typeof t==\\\"function\\\"?t(e):typeof t==\\\"string\\\"?{message:t}:t;return typeof n==\\\"string\\\"?{message:n}:n}function Dk(t,e={},n){return t?yl.create().superRefine((r,i)=>{let a=t(r);if(a instanceof Promise)return a.then(o=>{if(!o){let s=Uk(e,r),l=s.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...s,fatal:l})}});if(!a){let o=Uk(e,r),s=o.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...o,fatal:s})}}):yl.create()}var cF={object:mi.lazycreate},ut;(function(t){t.ZodString=\\\"ZodString\\\",t.ZodNumber=\\\"ZodNumber\\\",t.ZodNaN=\\\"ZodNaN\\\",t.ZodBigInt=\\\"ZodBigInt\\\",t.ZodBoolean=\\\"ZodBoolean\\\",t.ZodDate=\\\"ZodDate\\\",t.ZodSymbol=\\\"ZodSymbol\\\",t.ZodUndefined=\\\"ZodUndefined\\\",t.ZodNull=\\\"ZodNull\\\",t.ZodAny=\\\"ZodAny\\\",t.ZodUnknown=\\\"ZodUnknown\\\",t.ZodNever=\\\"ZodNever\\\",t.ZodVoid=\\\"ZodVoid\\\",t.ZodArray=\\\"ZodArray\\\",t.ZodObject=\\\"ZodObject\\\",t.ZodUnion=\\\"ZodUnion\\\",t.ZodDiscriminatedUnion=\\\"ZodDiscriminatedUnion\\\",t.ZodIntersection=\\\"ZodIntersection\\\",t.ZodTuple=\\\"ZodTuple\\\",t.ZodRecord=\\\"ZodRecord\\\",t.ZodMap=\\\"ZodMap\\\",t.ZodSet=\\\"ZodSet\\\",t.ZodFunction=\\\"ZodFunction\\\",t.ZodLazy=\\\"ZodLazy\\\",t.ZodLiteral=\\\"ZodLiteral\\\",t.ZodEnum=\\\"ZodEnum\\\",t.ZodEffects=\\\"ZodEffects\\\",t.ZodNativeEnum=\\\"ZodNativeEnum\\\",t.ZodOptional=\\\"ZodOptional\\\",t.ZodNullable=\\\"ZodNullable\\\",t.ZodDefault=\\\"ZodDefault\\\",t.ZodCatch=\\\"ZodCatch\\\",t.ZodPromise=\\\"ZodPromise\\\",t.ZodBranded=\\\"ZodBranded\\\",t.ZodPipeline=\\\"ZodPipeline\\\",t.ZodReadonly=\\\"ZodReadonly\\\"})(ut||(ut={}));var uF=(t,e={message:`Input not instance of ${t.name}`})=>Dk(n=>n instanceof t,e),Lk=ml.create,qk=gc.create,dF=xf.create,fF=pc.create,Vk=mc.create,hF=yc.create,gF=yf.create,pF=bc.create,mF=vc.create,yF=yl.create,bF=Xo.create,vF=Ta.create,wF=bf.create,xF=Jo.create,_F=mi.create,CF=mi.strictCreate,SF=wc.create,TF=L1.create,EF=xc.create,AF=eo.create,kF=q1.create,BF=vf.create,MF=wf.create,RF=V1.create,OF=_c.create,IF=Cc.create,UF=Sc.create,NF=Tc.create,PF=bl.create,jF=sa.create,zF=aa.create,DF=to.create,LF=sa.createWithPreprocess,qF=M0.create,VF=()=>Lk().optional(),HF=()=>qk().optional(),WF=()=>Vk().optional(),FF={string:(t=>ml.create({...t,coerce:!0})),number:(t=>gc.create({...t,coerce:!0})),boolean:(t=>mc.create({...t,coerce:!0})),bigint:(t=>pc.create({...t,coerce:!0})),date:(t=>yc.create({...t,coerce:!0}))};var $F=st;var Hk=lt.string().regex(/^[a-z0-9-]+:[a-zA-Z0-9-]+$/,{message:\\\"Network must be in CAIP-2 format (e.g., 'eip155:1', 'solana:mainnet')\\\"}),Wk=lt.object({url:lt.string().url({message:\\\"Resource URL must be a valid URL\\\"}),description:lt.string().optional(),mimeType:lt.string().optional()}),Fk=lt.object({scheme:lt.string().min(1,{message:\\\"Scheme is required\\\"}),network:Hk,asset:lt.string().min(1,{message:\\\"Asset address is required\\\"}),amount:lt.string().regex(/^\\\\d+$/,{message:\\\"Amount must be a non-negative integer string\\\"}),payTo:lt.string().min(1,{message:\\\"PayTo address is required\\\"}),maxTimeoutSeconds:lt.number().int().positive({message:\\\"maxTimeoutSeconds must be a positive integer\\\"}),extra:lt.record(lt.unknown())}),KF=lt.object({t402Version:lt.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),error:lt.string().optional(),resource:Wk,accepts:lt.array(Fk).min(1,{message:\\\"At least one payment option is required\\\"}),extensions:lt.record(lt.unknown()).optional()}),ZF=lt.object({t402Version:lt.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),resource:Wk.optional(),accepted:Fk,payload:lt.record(lt.unknown()),extensions:lt.record(lt.unknown()).optional()}),wfe=lt.object({isValid:lt.boolean(),invalidReason:lt.string().optional(),payer:lt.string().optional()}),YF=lt.object({success:lt.boolean(),transaction:lt.string(),network:Hk,errorReason:lt.string().optional(),payer:lt.string().optional(),confirmations:lt.string().optional()}),GF=lt.object({scheme:lt.string().min(1),network:lt.string().min(1),asset:lt.string().min(1),amount:lt.string().regex(/^\\\\d+$/),payTo:lt.string().min(1),maxTimeoutSeconds:lt.number().int().positive(),extra:lt.record(lt.unknown()).optional()}),xfe=lt.object({t402Version:lt.literal(1).optional(),accepted:GF,payload:lt.record(lt.unknown())});var $k=class Kk{constructor(e){Yo(this,\\\"paymentRequirementsSelector\\\"),Yo(this,\\\"registeredClientSchemes\\\",new Map),Yo(this,\\\"policies\\\",[]),Yo(this,\\\"beforePaymentCreationHooks\\\",[]),Yo(this,\\\"afterPaymentCreationHooks\\\",[]),Yo(this,\\\"onPaymentCreationFailureHooks\\\",[]),this.paymentRequirementsSelector=e||((n,r)=>r[0])}static fromConfig(e){let n=new Kk(e.paymentRequirementsSelector);return e.schemes.forEach(r=>{r.t402Version===1?n.registerV1(r.network,r.client):n.register(r.network,r.client)}),e.policies?.forEach(r=>{n.registerPolicy(r)}),n}register(e,n){return this._registerScheme(W3,e,n)}registerV1(e,n){return this._registerScheme(1,e,n)}registerPolicy(e){return this.policies.push(e),this}onBeforePaymentCreation(e){return this.beforePaymentCreationHooks.push(e),this}onAfterPaymentCreation(e){return this.afterPaymentCreationHooks.push(e),this}onPaymentCreationFailure(e){return this.onPaymentCreationFailureHooks.push(e),this}async createPaymentPayload(e){let n=this.registeredClientSchemes.get(e.t402Version);if(!n)throw new Error(`No client registered for t402 version: ${e.t402Version}`);let r=this.selectPaymentRequirements(e.t402Version,e.accepts),i={paymentRequired:e,selectedRequirements:r};for(let a of this.beforePaymentCreationHooks){let o=await a(i);if(o&&\\\"abort\\\"in o&&o.abort)throw new Error(`Payment creation aborted: ${o.reason}`)}try{let a=V3(n,r.scheme,r.network);if(!a)throw new Error(`No client registered for scheme: ${r.scheme} and network: ${r.network}`);let o=await a.createPaymentPayload(e.t402Version,r),s;o.t402Version===1?s=o:s={...o,extensions:e.extensions,resource:e.resource,accepted:r};let l={...i,paymentPayload:s};for(let c of this.afterPaymentCreationHooks)await c(l);return s}catch(a){let o={...i,error:a};for(let s of this.onPaymentCreationFailureHooks){let l=await s(o);if(l&&\\\"recovered\\\"in l&&l.recovered)return l.payload}throw a}}selectPaymentRequirements(e,n){let r=this.registeredClientSchemes.get(e);if(!r)throw new Error(`No client registered for t402 version: ${e}`);let i=n.filter(o=>{let s=N1(r,o.network);return s?s.has(o.scheme):!1});if(i.length===0)throw new Error(`No network/scheme registered for t402 version: ${e} which comply with the payment requirements. ${JSON.stringify({t402Version:e,paymentRequirements:n,t402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(r.keys()),schemes:Array.from(r.values()).map(o=>Array.from(o.keys())).flat()})}`);let a=i;for(let o of this.policies)if(a=o(e,a),a.length===0)throw new Error(`All payment requirements were filtered out by policies for t402 version: ${e}`);return this.paymentRequirementsSelector(e,a)}_registerScheme(e,n,r){this.registeredClientSchemes.has(e)||this.registeredClientSchemes.set(e,new Map);let i=this.registeredClientSchemes.get(e);i.has(n)||i.set(n,new Map);let a=i.get(n);return a.has(r.scheme)||a.set(r.scheme,r),this}};b();var Z3=Tn(no(),1);function Qk({className:t=\\\"\\\"}){return(0,Z3.jsx)(\\\"div\\\",{className:`spinner ${t}`,children:(0,Z3.jsx)(\\\"div\\\",{})})}b();var JF={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var e$={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},t$={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},Xk={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},n$={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},Jk={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},r$={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function eB(t){if(t.startsWith(\\\"eip155:\\\")){let e=parseInt(t.split(\\\":\\\")[1]);return JF[e]??`Chain ${e}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===e$.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===t$.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let e=t.split(\\\":\\\")[1];return e===Xk.NILE?\\\"TRON Nile Testnet\\\":e===Xk.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===n$.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let e=t.split(\\\":\\\")[1];return e===Jk.NOBLE_MAINNET?\\\"Noble\\\":e===Jk.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${e}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===r$.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}b();var yi=Tn(no(),1),R0=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function i$(t){return R0.findIndex(e=>e.key===t)}function a$(){return(0,yi.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,yi.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function o$(){return(0,yi.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,yi.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function tB({currentStep:t,isProcessing:e=!1,hasError:n=!1}){let r=i$(t);return(0,yi.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":r+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":R0.length,\\\"aria-label\\\":`Payment progress: ${R0[r].label}`,children:R0.map((i,a)=>{let o=a<r,s=a===r,l=a>r,c=\\\"progress-step\\\";return o&&(c+=\\\" completed\\\"),s&&(c+=\\\" current\\\"),s&&e&&(c+=\\\" processing\\\"),s&&n&&(c+=\\\" error\\\"),l&&(c+=\\\" pending\\\"),(0,yi.jsxs)(\\\"div\\\",{className:c,children:[(0,yi.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:o?(0,yi.jsx)(a$,{}):s&&e?(0,yi.jsx)(o$,{}):(0,yi.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:a+1})}),(0,yi.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:i.label}),a<R0.length-1&&(0,yi.jsx)(\\\"div\\\",{className:`progress-connector ${o?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},i.key)})})}b();var Pf=Tn(Vl(),1),ng=Tn(sn(),1);b();var Bx=Tn(VR(),1);b();var Qr={MAINNET:\\\"ton:mainnet\\\",TESTNET:\\\"ton:testnet\\\"},Tx={[Qr.MAINNET]:\\\"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\\\",[Qr.TESTNET]:\\\"kQD0GKBM8ZbryVk2aESmzfU6b9b_8era_IkvBSELujFZPsyy\\\"},Ex={[Qr.MAINNET]:\\\"https://toncenter.com/api/v2/jsonRPC\\\",[Qr.TESTNET]:\\\"https://testnet.toncenter.com/api/v2/jsonRPC\\\"};var Ax=null,kx=null;function RQ(){return Ax||(Ax=new Bx.TonClient({endpoint:Ex[Qr.MAINNET]})),Ax}function OQ(){return kx||(kx=new Bx.TonClient({endpoint:Ex[Qr.TESTNET]})),kx}function tg(t){return t===Qr.MAINNET?RQ():OQ()}async function IQ(t,e,n){try{let r=tg(n),i=ng.Address.parse(e),a=ng.Address.parse(t),o=(0,ng.beginCell)().storeAddress(a).endCell(),l=(await r.runMethod(i,\\\"get_wallet_address\\\",[{type:\\\"slice\\\",cell:o}])).stack.readAddress();return(await r.getContractState(l)).state!==\\\"active\\\"?0n:(await r.runMethod(l,\\\"get_wallet_data\\\",[])).stack.readBigNumber()}catch(r){return console.error(\\\"Failed to fetch Jetton balance:\\\",r),0n}}function UQ(t,e=6){let n=BigInt(10**e),r=t/n,o=(t%n).toString().padStart(e,\\\"0\\\").replace(/0+$/,\\\"\\\").padEnd(2,\\\"0\\\");return`${r}.${o}`}function HR({address:t,paymentRequired:e,onStatus:n}){let[r,i]=(0,Pf.useState)(null),[a,o]=(0,Pf.useState)(!1),s=e.accepts[0],l=s?.network||Qr.TESTNET,c=s?.asset||Tx[l]||Tx[Qr.TESTNET],u=(0,Pf.useCallback)(async g=>{let y=g||t;if(!y)return null;o(!0),n?.(\\\"Fetching USDT balance...\\\");try{let E=await IQ(y,c,l);return i(E),n?.(\\\"\\\"),E}catch(E){return console.error(\\\"Failed to fetch balance:\\\",E),n?.(\\\"Failed to fetch balance\\\"),null}finally{o(!1)}},[t,c,l,n]),d=(0,Pf.useCallback)(()=>{i(null)},[]),h=r!==null?UQ(r):null;return{balance:r,formattedBalance:h,isFetching:a,refreshBalance:u,resetBalance:d}}b();var $U=Tn(Vl(),1),wo=Tn(sn(),1);async function Eoe(){try{let t=await import(\\\"@ton/appkit-react\\\");return{useUI:()=>{let e=t.useAppKit();return[{sendTransaction:async n=>{let i=e.walletsManager.getWallets()[0];if(!i)throw new Error(\\\"No wallet connected\\\");return i.sendTransaction(n)}}]}}}catch{return{useUI:(await Promise.resolve().then(()=>(__(),x_))).useTonConnectUI}}}var C_=null;function Aoe(){return C_||(C_=Eoe()),C_}function koe(t,e,n){let r=wo.Address.parse(e.account.address),i=tg(n);return{get address(){return r},async getSeqno(){try{return(await i.runMethod(r,\\\"seqno\\\",[])).stack.readNumber()}catch{return 0}},async signMessage(a){let{to:o,value:s,body:l,bounce:c=!0,timeout:u=60}=a;(0,wo.internal)({to:o,value:s,body:l,bounce:c});let h={validUntil:Math.floor(Date.now()/1e3)+u,messages:[{address:o.toString(),amount:s.toString(),payload:l.toBoc().toString(\\\"base64\\\")}]},g=await t.sendTransaction(h),y=globalThis.Buffer.from(g.boc,\\\"base64\\\");return wo.Cell.fromBoc(y)[0]}}}function KU(t,e){return(0,$U.useMemo)(()=>{if(!t||!t.account)return null;let n=null;return koe({sendTransaction:async i=>{if(!n){let a=await Aoe(),[o]=a.useUI();n=o}return n.sendTransaction(i)}},t,e)},[t,e])}function ZU(t){let e=tg(t);return async(n,r)=>{let i=wo.Address.parse(r),a=wo.Address.parse(n),o=(0,wo.beginCell)().storeAddress(a).endCell();return(await e.runMethod(i,\\\"get_wallet_address\\\",[{type:\\\"slice\\\",cell:o}])).stack.readAddress().toString()}}var nn=Tn(no(),1),S_=null;function GU(){return S_||(S_=(async()=>{let t=await Promise.resolve().then(()=>(__(),x_));return{Provider:t.TonConnectUIProvider,useTonConnectUI:t.useTonConnectUI,useTonWallet:t.useTonWallet}})()),S_}function Boe({paymentRequired:t,onSuccessfulResponse:e}){let[n,r]=(0,_r.useState)(null);return(0,_r.useEffect)(()=>{GU().then(r)},[]),n?(0,nn.jsx)(Moe,{paymentRequired:t,onSuccessfulResponse:e,providerModule:n}):null}function Moe({paymentRequired:t,onSuccessfulResponse:e,providerModule:n}){let[r]=n.useTonConnectUI(),i=n.useTonWallet(),[a,o]=(0,_r.useState)(\\\"\\\"),[s,l]=(0,_r.useState)(!1),[c,u]=(0,_r.useState)(!0),[d,h]=(0,_r.useState)(\\\"connect\\\"),[g,y]=(0,_r.useState)(!1),E=window.t402,N=E.amount,_=t.accepts[0];if(!_)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let v=_.network,T=eB(v),R=v===Qr.MAINNET,U=R?Qr.MAINNET:Qr.TESTNET,X=i?.account?.address?YU.Address.parse(i.account.address).toString({bounceable:!1}):null,{balance:k,formattedBalance:q,isFetching:z,refreshBalance:$,resetBalance:L}=HR({address:X,paymentRequired:t,onStatus:o}),P=KU(i,U);(0,_r.useEffect)(()=>{X&&$(X)},[X,$]),(0,_r.useEffect)(()=>{i?d===\\\"connect\\\"&&h(\\\"sign\\\"):h(\\\"connect\\\")},[i,d]);let pe=(0,_r.useCallback)(async()=>{o(\\\"Connecting to wallet...\\\");try{await r.openModal()}catch(O){console.error(\\\"Failed to connect wallet\\\",O),o(O instanceof Error?O.message:\\\"Failed to connect wallet.\\\")}},[r]),le=(0,_r.useCallback)(async()=>{try{await r.disconnect(),L(),o(\\\"\\\")}catch(O){console.error(\\\"Failed to disconnect\\\",O),o(O instanceof Error?O.message:\\\"Failed to disconnect.\\\")}},[r,L]),se=(0,_r.useCallback)(async()=>{if(E){if(!P||!X){o(\\\"Connect a TON wallet before paying.\\\");return}l(!0),y(!0);try{if(k===null||k===0n){o(\\\"Checking USDT balance...\\\");let Xt=await $();if(!Xt||Xt===0n)throw new Error(`Insufficient balance. Make sure you have USDT on ${T}.`)}h(\\\"sign\\\"),o(\\\"Creating payment signature...\\\");let O=new $k;H3(O,{signer:P,getJettonWalletAddress:ZU(U)});let Ze=await O.createPaymentPayload(t),rt=btoa(JSON.stringify(Ze));h(\\\"submit\\\"),o(\\\"Requesting content with payment...\\\");let St=await fetch(E.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":rt,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(St.ok)h(\\\"confirm\\\"),y(!1),await e(St);else throw new Error(`Request failed: ${St.status} ${St.statusText}`)}catch(O){o(O instanceof Error?O.message:\\\"Payment failed.\\\"),y(!1)}finally{l(!1)}}},[E,P,X,k,$,T,U,t,e]);(0,_r.useEffect)(()=>{i&&o(\\\"\\\")},[i]);let Le=X?`${X.slice(0,6)}...${X.slice(-4)}`:\\\"-\\\";return(0,nn.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,nn.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,nn.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,nn.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",N,\\\" \\\",T,\\\" USDT.\\\"]}),!R&&(0,nn.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"Need TON Testnet USDT?\\\",\\\" \\\",(0,nn.jsxs)(\\\"a\\\",{href:\\\"https://t.me/testgiver_ton_bot\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:[\\\"Get testnet TON \\\",(0,nn.jsx)(\\\"u\\\",{children:\\\"here\\\"})]}),\\\" \\\",\\\"and use a testnet DEX.\\\"]})]}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[i&&(0,nn.jsx)(tB,{currentStep:d,isProcessing:g,hasError:!!a&&!s}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,nn.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:Le})]}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:X?(0,nn.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>u(O=>!O),children:!c&&q?`$${q} USDT`:z?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDT\\\"}):\\\"-\\\"})]}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,nn.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",N,\\\" USDT\\\"]})]}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,nn.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:T})]})]}),(0,nn.jsxs)(\\\"div\\\",{className:\\\"cta-container\\\",children:[i?(0,nn.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:le,children:\\\"Disconnect\\\"}):(0,nn.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:pe,children:\\\"Connect wallet\\\"}),i&&(0,nn.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:se,disabled:s,children:s?(0,nn.jsx)(Qk,{}):\\\"Pay now\\\"})]}),a&&(0,nn.jsx)(\\\"div\\\",{className:\\\"status\\\",children:a})]})]})}function QU({paymentRequired:t,onSuccessfulResponse:e}){let r=window.t402.tonConnectManifestUrl||\\\"https://t402.io/tonconnect-manifest.json\\\",[i,a]=(0,_r.useState)(null);return(0,_r.useEffect)(()=>{GU().then(o=>a(()=>o.Provider))},[]),i?(0,nn.jsx)(i,{manifestUrl:r,children:(0,nn.jsx)(Boe,{paymentRequired:t,onSuccessfulResponse:e})}):null}var JU=Tn(no(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let n=window.t402.paymentRequired;if(!n?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,XU.createRoot)(t).render((0,JU.jsx)(QU,{paymentRequired:n,onSuccessfulResponse:async i=>{let a=i.headers.get(\\\"content-type\\\");if(a&&a.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await i.text();else{let o=await i.blob(),s=window.URL.createObjectURL(o);window.location.href=s}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\naxios/dist/browser/axios.cjs:\\n  (*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors *)\\n\\nclassnames/index.js:\\n  (*!\\n  \\tCopyright (c) 2018 Jed Watson.\\n  \\tLicensed under the MIT License (MIT), see\\n  \\thttp://jedwatson.github.io/classnames\\n  *)\\n\\n@tonconnect/ui/lib/index.mjs:\\n  (*!\\n   * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\\n   *\\n   * Copyright (c) 2014-2017, Jon Schlinkert.\\n   * Released under the MIT License.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for TON paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const TON_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/ton.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/ton.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline TRON paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const TRON_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var Kp=Object.create;var Cr=Object.defineProperty;var Jp=Object.getOwnPropertyDescriptor;var $p=Object.getOwnPropertyNames;var Fp=Object.getPrototypeOf,Ip=Object.prototype.hasOwnProperty;var Wp=(t,e)=>()=>(t&&(e=t(t=0)),e);var Qt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pp=(t,e)=>{for(var n in e)Cr(t,n,{get:e[n],enumerable:!0})},ty=(t,e,n,a)=>{if(e&&typeof e==\\\"object\\\"||typeof e==\\\"function\\\")for(let i of $p(e))!Ip.call(t,i)&&i!==n&&Cr(t,i,{get:()=>e[i],enumerable:!(a=Jp(e,i))||a.enumerable});return t};var Ct=(t,e,n)=>(n=t!=null?Kp(Fp(t)):{},ty(e||!t||!t.__esModule?Cr(n,\\\"default\\\",{value:t,enumerable:!0}):n,t));var Jo=Qt(Vl=>{\\\"use strict\\\";T();Vl.byteLength=ny;Vl.toByteArray=iy;Vl.fromByteArray=ry;var xe=[],ie=[],ey=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,Ur=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(Xn=0,Qo=Ur.length;Xn<Qo;++Xn)xe[Xn]=Ur[Xn],ie[Ur.charCodeAt(Xn)]=Xn;var Xn,Qo;ie[45]=62;ie[95]=63;function Ko(t){var e=t.length;if(e%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var n=t.indexOf(\\\"=\\\");n===-1&&(n=e);var a=n===e?0:4-n%4;return[n,a]}function ny(t){var e=Ko(t),n=e[0],a=e[1];return(n+a)*3/4-a}function ay(t,e,n){return(e+n)*3/4-n}function iy(t){var e,n=Ko(t),a=n[0],i=n[1],l=new ey(ay(t,a,i)),u=0,r=i>0?a-4:a,s;for(s=0;s<r;s+=4)e=ie[t.charCodeAt(s)]<<18|ie[t.charCodeAt(s+1)]<<12|ie[t.charCodeAt(s+2)]<<6|ie[t.charCodeAt(s+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=e&255;return i===2&&(e=ie[t.charCodeAt(s)]<<2|ie[t.charCodeAt(s+1)]>>4,l[u++]=e&255),i===1&&(e=ie[t.charCodeAt(s)]<<10|ie[t.charCodeAt(s+1)]<<4|ie[t.charCodeAt(s+2)]>>2,l[u++]=e>>8&255,l[u++]=e&255),l}function ly(t){return xe[t>>18&63]+xe[t>>12&63]+xe[t>>6&63]+xe[t&63]}function uy(t,e,n){for(var a,i=[],l=e;l<n;l+=3)a=(t[l]<<16&16711680)+(t[l+1]<<8&65280)+(t[l+2]&255),i.push(ly(a));return i.join(\\\"\\\")}function ry(t){for(var e,n=t.length,a=n%3,i=[],l=16383,u=0,r=n-a;u<r;u+=l)i.push(uy(t,u,u+l>r?r:u+l));return a===1?(e=t[n-1],i.push(xe[e>>2]+xe[e<<4&63]+\\\"==\\\")):a===2&&(e=(t[n-2]<<8)+t[n-1],i.push(xe[e>>10]+xe[e>>4&63]+xe[e<<2&63]+\\\"=\\\")),i.join(\\\"\\\")}});var $o=Qt(Dr=>{T();Dr.read=function(t,e,n,a,i){var l,u,r=i*8-a-1,s=(1<<r)-1,c=s>>1,o=-7,d=n?i-1:0,m=n?-1:1,y=t[e+d];for(d+=m,l=y&(1<<-o)-1,y>>=-o,o+=r;o>0;l=l*256+t[e+d],d+=m,o-=8);for(u=l&(1<<-o)-1,l>>=-o,o+=a;o>0;u=u*256+t[e+d],d+=m,o-=8);if(l===0)l=1-c;else{if(l===s)return u?NaN:(y?-1:1)*(1/0);u=u+Math.pow(2,a),l=l-c}return(y?-1:1)*u*Math.pow(2,l-a)};Dr.write=function(t,e,n,a,i,l){var u,r,s,c=l*8-i-1,o=(1<<c)-1,d=o>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=a?0:l-1,b=a?1:-1,N=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(r=isNaN(e)?1:0,u=o):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+d>=1?e+=m/s:e+=m*Math.pow(2,1-d),e*s>=2&&(u++,s/=2),u+d>=o?(r=0,u=o):u+d>=1?(r=(e*s-1)*Math.pow(2,i),u=u+d):(r=e*Math.pow(2,d-1)*Math.pow(2,i),u=0));i>=8;t[n+y]=r&255,y+=b,r/=256,i-=8);for(u=u<<i|r,c+=i;c>0;t[n+y]=u&255,y+=b,u/=256,c-=8);t[n+y-b]|=N*128}});var hf=Qt(Ua=>{\\\"use strict\\\";T();var Hr=Jo(),Ma=$o(),Fo=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Ua.Buffer=g;Ua.SlowBuffer=hy;Ua.INSPECT_MAX_BYTES=50;var Gl=2147483647;Ua.kMaxLength=Gl;g.TYPED_ARRAY_SUPPORT=sy();!g.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function sy(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}});Object.defineProperty(g.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function qe(t){if(t>Gl)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,g.prototype),e}function g(t,e,n){if(typeof t==\\\"number\\\"){if(typeof e==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return Lr(t)}return tf(t,e,n)}g.poolSize=8192;function tf(t,e,n){if(typeof t==\\\"string\\\")return oy(t,e);if(ArrayBuffer.isView(t))return fy(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(Ae(t,ArrayBuffer)||t&&Ae(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(Ae(t,SharedArrayBuffer)||t&&Ae(t.buffer,SharedArrayBuffer)))return jr(t,e,n);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let a=t.valueOf&&t.valueOf();if(a!=null&&a!==t)return g.from(a,e,n);let i=dy(t);if(i)return i;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return g.from(t[Symbol.toPrimitive](\\\"string\\\"),e,n);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}g.from=function(t,e,n){return tf(t,e,n)};Object.setPrototypeOf(g.prototype,Uint8Array.prototype);Object.setPrototypeOf(g,Uint8Array);function ef(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function cy(t,e,n){return ef(t),t<=0?qe(t):e!==void 0?typeof n==\\\"string\\\"?qe(t).fill(e,n):qe(t).fill(e):qe(t)}g.alloc=function(t,e,n){return cy(t,e,n)};function Lr(t){return ef(t),qe(t<0?0:Yr(t)|0)}g.allocUnsafe=function(t){return Lr(t)};g.allocUnsafeSlow=function(t){return Lr(t)};function oy(t,e){if((typeof e!=\\\"string\\\"||e===\\\"\\\")&&(e=\\\"utf8\\\"),!g.isEncoding(e))throw new TypeError(\\\"Unknown encoding: \\\"+e);let n=nf(t,e)|0,a=qe(n),i=a.write(t,e);return i!==n&&(a=a.slice(0,i)),a}function qr(t){let e=t.length<0?0:Yr(t.length)|0,n=qe(e);for(let a=0;a<e;a+=1)n[a]=t[a]&255;return n}function fy(t){if(Ae(t,Uint8Array)){let e=new Uint8Array(t);return jr(e.buffer,e.byteOffset,e.byteLength)}return qr(t)}function jr(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let a;return e===void 0&&n===void 0?a=new Uint8Array(t):n===void 0?a=new Uint8Array(t,e):a=new Uint8Array(t,e,n),Object.setPrototypeOf(a,g.prototype),a}function dy(t){if(g.isBuffer(t)){let e=Yr(t.length)|0,n=qe(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||Vr(t.length)?qe(0):qr(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return qr(t.data)}function Yr(t){if(t>=Gl)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+Gl.toString(16)+\\\" bytes\\\");return t|0}function hy(t){return+t!=t&&(t=0),g.alloc(+t)}g.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==g.prototype};g.compare=function(e,n){if(Ae(e,Uint8Array)&&(e=g.from(e,e.offset,e.byteLength)),Ae(n,Uint8Array)&&(n=g.from(n,n.offset,n.byteLength)),!g.isBuffer(e)||!g.isBuffer(n))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let a=e.length,i=n.length;for(let l=0,u=Math.min(a,i);l<u;++l)if(e[l]!==n[l]){a=e[l],i=n[l];break}return a<i?-1:i<a?1:0};g.isEncoding=function(e){switch(String(e).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};g.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(e.length===0)return g.alloc(0);let a;if(n===void 0)for(n=0,a=0;a<e.length;++a)n+=e[a].length;let i=g.allocUnsafe(n),l=0;for(a=0;a<e.length;++a){let u=e[a];if(Ae(u,Uint8Array))l+u.length>i.length?(g.isBuffer(u)||(u=g.from(u)),u.copy(i,l)):Uint8Array.prototype.set.call(i,u,l);else if(g.isBuffer(u))u.copy(i,l);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');l+=u.length}return i};function nf(t,e){if(g.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ae(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let n=t.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&n===0)return 0;let i=!1;for(;;)switch(e){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return n;case\\\"utf8\\\":case\\\"utf-8\\\":return kr(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return n*2;case\\\"hex\\\":return n>>>1;case\\\"base64\\\":return df(t).length;default:if(i)return a?-1:kr(t).length;e=(\\\"\\\"+e).toLowerCase(),i=!0}}g.byteLength=nf;function my(t,e,n){let a=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return xy(this,e,n);case\\\"utf8\\\":case\\\"utf-8\\\":return lf(this,e,n);case\\\"ascii\\\":return by(this,e,n);case\\\"latin1\\\":case\\\"binary\\\":return Ey(this,e,n);case\\\"base64\\\":return _y(this,e,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Ay(this,e,n);default:if(a)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),a=!0}}g.prototype._isBuffer=!0;function Qn(t,e,n){let a=t[e];t[e]=t[n],t[n]=a}g.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let n=0;n<e;n+=2)Qn(this,n,n+1);return this};g.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let n=0;n<e;n+=4)Qn(this,n,n+3),Qn(this,n+1,n+2);return this};g.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let n=0;n<e;n+=8)Qn(this,n,n+7),Qn(this,n+1,n+6),Qn(this,n+2,n+5),Qn(this,n+3,n+4);return this};g.prototype.toString=function(){let e=this.length;return e===0?\\\"\\\":arguments.length===0?lf(this,0,e):my.apply(this,arguments)};g.prototype.toLocaleString=g.prototype.toString;g.prototype.equals=function(e){if(!g.isBuffer(e))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===e?!0:g.compare(this,e)===0};g.prototype.inspect=function(){let e=\\\"\\\",n=Ua.INSPECT_MAX_BYTES;return e=this.toString(\\\"hex\\\",0,n).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>n&&(e+=\\\" ... \\\"),\\\"<Buffer \\\"+e+\\\">\\\"};Fo&&(g.prototype[Fo]=g.prototype.inspect);g.prototype.compare=function(e,n,a,i,l){if(Ae(e,Uint8Array)&&(e=g.from(e,e.offset,e.byteLength)),!g.isBuffer(e))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),a===void 0&&(a=e?e.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),n<0||a>e.length||i<0||l>this.length)throw new RangeError(\\\"out of range index\\\");if(i>=l&&n>=a)return 0;if(i>=l)return-1;if(n>=a)return 1;if(n>>>=0,a>>>=0,i>>>=0,l>>>=0,this===e)return 0;let u=l-i,r=a-n,s=Math.min(u,r),c=this.slice(i,l),o=e.slice(n,a);for(let d=0;d<s;++d)if(c[d]!==o[d]){u=c[d],r=o[d];break}return u<r?-1:r<u?1:0};function af(t,e,n,a,i){if(t.length===0)return-1;if(typeof n==\\\"string\\\"?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Vr(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof e==\\\"string\\\"&&(e=g.from(e,a)),g.isBuffer(e))return e.length===0?-1:Io(t,e,n,a,i);if(typeof e==\\\"number\\\")return e=e&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):Io(t,[e],n,a,i);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function Io(t,e,n,a,i){let l=1,u=t.length,r=e.length;if(a!==void 0&&(a=String(a).toLowerCase(),a===\\\"ucs2\\\"||a===\\\"ucs-2\\\"||a===\\\"utf16le\\\"||a===\\\"utf-16le\\\")){if(t.length<2||e.length<2)return-1;l=2,u/=2,r/=2,n/=2}function s(o,d){return l===1?o[d]:o.readUInt16BE(d*l)}let c;if(i){let o=-1;for(c=n;c<u;c++)if(s(t,c)===s(e,o===-1?0:c-o)){if(o===-1&&(o=c),c-o+1===r)return o*l}else o!==-1&&(c-=c-o),o=-1}else for(n+r>u&&(n=u-r),c=n;c>=0;c--){let o=!0;for(let d=0;d<r;d++)if(s(t,c+d)!==s(e,d)){o=!1;break}if(o)return c}return-1}g.prototype.includes=function(e,n,a){return this.indexOf(e,n,a)!==-1};g.prototype.indexOf=function(e,n,a){return af(this,e,n,a,!0)};g.prototype.lastIndexOf=function(e,n,a){return af(this,e,n,a,!1)};function py(t,e,n,a){n=Number(n)||0;let i=t.length-n;a?(a=Number(a),a>i&&(a=i)):a=i;let l=e.length;a>l/2&&(a=l/2);let u;for(u=0;u<a;++u){let r=parseInt(e.substr(u*2,2),16);if(Vr(r))return u;t[n+u]=r}return u}function yy(t,e,n,a){return Xl(kr(e,t.length-n),t,n,a)}function gy(t,e,n,a){return Xl(Oy(e),t,n,a)}function vy(t,e,n,a){return Xl(df(e),t,n,a)}function Sy(t,e,n,a){return Xl(zy(e,t.length-n),t,n,a)}g.prototype.write=function(e,n,a,i){if(n===void 0)i=\\\"utf8\\\",a=this.length,n=0;else if(a===void 0&&typeof n==\\\"string\\\")i=n,a=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(a)?(a=a>>>0,i===void 0&&(i=\\\"utf8\\\")):(i=a,a=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let l=this.length-n;if((a===void 0||a>l)&&(a=l),e.length>0&&(a<0||n<0)||n>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");i||(i=\\\"utf8\\\");let u=!1;for(;;)switch(i){case\\\"hex\\\":return py(this,e,n,a);case\\\"utf8\\\":case\\\"utf-8\\\":return yy(this,e,n,a);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return gy(this,e,n,a);case\\\"base64\\\":return vy(this,e,n,a);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Sy(this,e,n,a);default:if(u)throw new TypeError(\\\"Unknown encoding: \\\"+i);i=(\\\"\\\"+i).toLowerCase(),u=!0}};g.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function _y(t,e,n){return e===0&&n===t.length?Hr.fromByteArray(t):Hr.fromByteArray(t.slice(e,n))}function lf(t,e,n){n=Math.min(t.length,n);let a=[],i=e;for(;i<n;){let l=t[i],u=null,r=l>239?4:l>223?3:l>191?2:1;if(i+r<=n){let s,c,o,d;switch(r){case 1:l<128&&(u=l);break;case 2:s=t[i+1],(s&192)===128&&(d=(l&31)<<6|s&63,d>127&&(u=d));break;case 3:s=t[i+1],c=t[i+2],(s&192)===128&&(c&192)===128&&(d=(l&15)<<12|(s&63)<<6|c&63,d>2047&&(d<55296||d>57343)&&(u=d));break;case 4:s=t[i+1],c=t[i+2],o=t[i+3],(s&192)===128&&(c&192)===128&&(o&192)===128&&(d=(l&15)<<18|(s&63)<<12|(c&63)<<6|o&63,d>65535&&d<1114112&&(u=d))}}u===null?(u=65533,r=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|u&1023),a.push(u),i+=r}return Ty(a)}var Wo=4096;function Ty(t){let e=t.length;if(e<=Wo)return String.fromCharCode.apply(String,t);let n=\\\"\\\",a=0;for(;a<e;)n+=String.fromCharCode.apply(String,t.slice(a,a+=Wo));return n}function by(t,e,n){let a=\\\"\\\";n=Math.min(t.length,n);for(let i=e;i<n;++i)a+=String.fromCharCode(t[i]&127);return a}function Ey(t,e,n){let a=\\\"\\\";n=Math.min(t.length,n);for(let i=e;i<n;++i)a+=String.fromCharCode(t[i]);return a}function xy(t,e,n){let a=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>a)&&(n=a);let i=\\\"\\\";for(let l=e;l<n;++l)i+=By[t[l]];return i}function Ay(t,e,n){let a=t.slice(e,n),i=\\\"\\\";for(let l=0;l<a.length-1;l+=2)i+=String.fromCharCode(a[l]+a[l+1]*256);return i}g.prototype.slice=function(e,n){let a=this.length;e=~~e,n=n===void 0?a:~~n,e<0?(e+=a,e<0&&(e=0)):e>a&&(e=a),n<0?(n+=a,n<0&&(n=0)):n>a&&(n=a),n<e&&(n=e);let i=this.subarray(e,n);return Object.setPrototypeOf(i,g.prototype),i};function vt(t,e,n){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+e>n)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}g.prototype.readUintLE=g.prototype.readUIntLE=function(e,n,a){e=e>>>0,n=n>>>0,a||vt(e,n,this.length);let i=this[e],l=1,u=0;for(;++u<n&&(l*=256);)i+=this[e+u]*l;return i};g.prototype.readUintBE=g.prototype.readUIntBE=function(e,n,a){e=e>>>0,n=n>>>0,a||vt(e,n,this.length);let i=this[e+--n],l=1;for(;n>0&&(l*=256);)i+=this[e+--n]*l;return i};g.prototype.readUint8=g.prototype.readUInt8=function(e,n){return e=e>>>0,n||vt(e,1,this.length),this[e]};g.prototype.readUint16LE=g.prototype.readUInt16LE=function(e,n){return e=e>>>0,n||vt(e,2,this.length),this[e]|this[e+1]<<8};g.prototype.readUint16BE=g.prototype.readUInt16BE=function(e,n){return e=e>>>0,n||vt(e,2,this.length),this[e]<<8|this[e+1]};g.prototype.readUint32LE=g.prototype.readUInt32LE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};g.prototype.readUint32BE=g.prototype.readUInt32BE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};g.prototype.readBigUInt64LE=fn(function(e){e=e>>>0,Ca(e,\\\"offset\\\");let n=this[e],a=this[e+7];(n===void 0||a===void 0)&&Hi(e,this.length-8);let i=n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,l=this[++e]+this[++e]*2**8+this[++e]*2**16+a*2**24;return BigInt(i)+(BigInt(l)<<BigInt(32))});g.prototype.readBigUInt64BE=fn(function(e){e=e>>>0,Ca(e,\\\"offset\\\");let n=this[e],a=this[e+7];(n===void 0||a===void 0)&&Hi(e,this.length-8);let i=n*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],l=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+a;return(BigInt(i)<<BigInt(32))+BigInt(l)});g.prototype.readIntLE=function(e,n,a){e=e>>>0,n=n>>>0,a||vt(e,n,this.length);let i=this[e],l=1,u=0;for(;++u<n&&(l*=256);)i+=this[e+u]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*n)),i};g.prototype.readIntBE=function(e,n,a){e=e>>>0,n=n>>>0,a||vt(e,n,this.length);let i=n,l=1,u=this[e+--i];for(;i>0&&(l*=256);)u+=this[e+--i]*l;return l*=128,u>=l&&(u-=Math.pow(2,8*n)),u};g.prototype.readInt8=function(e,n){return e=e>>>0,n||vt(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};g.prototype.readInt16LE=function(e,n){e=e>>>0,n||vt(e,2,this.length);let a=this[e]|this[e+1]<<8;return a&32768?a|4294901760:a};g.prototype.readInt16BE=function(e,n){e=e>>>0,n||vt(e,2,this.length);let a=this[e+1]|this[e]<<8;return a&32768?a|4294901760:a};g.prototype.readInt32LE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};g.prototype.readInt32BE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};g.prototype.readBigInt64LE=fn(function(e){e=e>>>0,Ca(e,\\\"offset\\\");let n=this[e],a=this[e+7];(n===void 0||a===void 0)&&Hi(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(a<<24);return(BigInt(i)<<BigInt(32))+BigInt(n+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});g.prototype.readBigInt64BE=fn(function(e){e=e>>>0,Ca(e,\\\"offset\\\");let n=this[e],a=this[e+7];(n===void 0||a===void 0)&&Hi(e,this.length-8);let i=(n<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+a)});g.prototype.readFloatLE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),Ma.read(this,e,!0,23,4)};g.prototype.readFloatBE=function(e,n){return e=e>>>0,n||vt(e,4,this.length),Ma.read(this,e,!1,23,4)};g.prototype.readDoubleLE=function(e,n){return e=e>>>0,n||vt(e,8,this.length),Ma.read(this,e,!0,52,8)};g.prototype.readDoubleBE=function(e,n){return e=e>>>0,n||vt(e,8,this.length),Ma.read(this,e,!1,52,8)};function Ut(t,e,n,a,i,l){if(!g.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(e>i||e<l)throw new RangeError('\\\"value\\\" argument is out of bounds');if(n+a>t.length)throw new RangeError(\\\"Index out of range\\\")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(e,n,a,i){if(e=+e,n=n>>>0,a=a>>>0,!i){let r=Math.pow(2,8*a)-1;Ut(this,e,n,a,r,0)}let l=1,u=0;for(this[n]=e&255;++u<a&&(l*=256);)this[n+u]=e/l&255;return n+a};g.prototype.writeUintBE=g.prototype.writeUIntBE=function(e,n,a,i){if(e=+e,n=n>>>0,a=a>>>0,!i){let r=Math.pow(2,8*a)-1;Ut(this,e,n,a,r,0)}let l=a-1,u=1;for(this[n+l]=e&255;--l>=0&&(u*=256);)this[n+l]=e/u&255;return n+a};g.prototype.writeUint8=g.prototype.writeUInt8=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,1,255,0),this[n]=e&255,n+1};g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,2,65535,0),this[n]=e&255,this[n+1]=e>>>8,n+2};g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=e&255,n+2};g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255,n+4};g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};function uf(t,e,n,a,i){ff(e,a,i,t,n,7);let l=Number(e&BigInt(4294967295));t[n++]=l,l=l>>8,t[n++]=l,l=l>>8,t[n++]=l,l=l>>8,t[n++]=l;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u,n}function rf(t,e,n,a,i){ff(e,a,i,t,n,7);let l=Number(e&BigInt(4294967295));t[n+7]=l,l=l>>8,t[n+6]=l,l=l>>8,t[n+5]=l,l=l>>8,t[n+4]=l;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=u,u=u>>8,t[n+2]=u,u=u>>8,t[n+1]=u,u=u>>8,t[n]=u,n+8}g.prototype.writeBigUInt64LE=fn(function(e,n=0){return uf(this,e,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});g.prototype.writeBigUInt64BE=fn(function(e,n=0){return rf(this,e,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});g.prototype.writeIntLE=function(e,n,a,i){if(e=+e,n=n>>>0,!i){let s=Math.pow(2,8*a-1);Ut(this,e,n,a,s-1,-s)}let l=0,u=1,r=0;for(this[n]=e&255;++l<a&&(u*=256);)e<0&&r===0&&this[n+l-1]!==0&&(r=1),this[n+l]=(e/u>>0)-r&255;return n+a};g.prototype.writeIntBE=function(e,n,a,i){if(e=+e,n=n>>>0,!i){let s=Math.pow(2,8*a-1);Ut(this,e,n,a,s-1,-s)}let l=a-1,u=1,r=0;for(this[n+l]=e&255;--l>=0&&(u*=256);)e<0&&r===0&&this[n+l+1]!==0&&(r=1),this[n+l]=(e/u>>0)-r&255;return n+a};g.prototype.writeInt8=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=e&255,n+1};g.prototype.writeInt16LE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,2,32767,-32768),this[n]=e&255,this[n+1]=e>>>8,n+2};g.prototype.writeInt16BE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=e&255,n+2};g.prototype.writeInt32LE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,4,2147483647,-2147483648),this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4};g.prototype.writeInt32BE=function(e,n,a){return e=+e,n=n>>>0,a||Ut(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};g.prototype.writeBigInt64LE=fn(function(e,n=0){return uf(this,e,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});g.prototype.writeBigInt64BE=fn(function(e,n=0){return rf(this,e,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function sf(t,e,n,a,i,l){if(n+a>t.length)throw new RangeError(\\\"Index out of range\\\");if(n<0)throw new RangeError(\\\"Index out of range\\\")}function cf(t,e,n,a,i){return e=+e,n=n>>>0,i||sf(t,e,n,4,34028234663852886e22,-34028234663852886e22),Ma.write(t,e,n,a,23,4),n+4}g.prototype.writeFloatLE=function(e,n,a){return cf(this,e,n,!0,a)};g.prototype.writeFloatBE=function(e,n,a){return cf(this,e,n,!1,a)};function of(t,e,n,a,i){return e=+e,n=n>>>0,i||sf(t,e,n,8,17976931348623157e292,-17976931348623157e292),Ma.write(t,e,n,a,52,8),n+8}g.prototype.writeDoubleLE=function(e,n,a){return of(this,e,n,!0,a)};g.prototype.writeDoubleBE=function(e,n,a){return of(this,e,n,!1,a)};g.prototype.copy=function(e,n,a,i){if(!g.isBuffer(e))throw new TypeError(\\\"argument should be a Buffer\\\");if(a||(a=0),!i&&i!==0&&(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<a&&(i=a),i===a||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(a<0||a>=this.length)throw new RangeError(\\\"Index out of range\\\");if(i<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");i>this.length&&(i=this.length),e.length-n<i-a&&(i=e.length-n+a);let l=i-a;return this===e&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(n,a,i):Uint8Array.prototype.set.call(e,this.subarray(a,i),n),l};g.prototype.fill=function(e,n,a,i){if(typeof e==\\\"string\\\"){if(typeof n==\\\"string\\\"?(i=n,n=0,a=this.length):typeof a==\\\"string\\\"&&(i=a,a=this.length),i!==void 0&&typeof i!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof i==\\\"string\\\"&&!g.isEncoding(i))throw new TypeError(\\\"Unknown encoding: \\\"+i);if(e.length===1){let u=e.charCodeAt(0);(i===\\\"utf8\\\"&&u<128||i===\\\"latin1\\\")&&(e=u)}}else typeof e==\\\"number\\\"?e=e&255:typeof e==\\\"boolean\\\"&&(e=Number(e));if(n<0||this.length<n||this.length<a)throw new RangeError(\\\"Out of range index\\\");if(a<=n)return this;n=n>>>0,a=a===void 0?this.length:a>>>0,e||(e=0);let l;if(typeof e==\\\"number\\\")for(l=n;l<a;++l)this[l]=e;else{let u=g.isBuffer(e)?e:g.from(e,i),r=u.length;if(r===0)throw new TypeError('The value \\\"'+e+'\\\" is invalid for argument \\\"value\\\"');for(l=0;l<a-n;++l)this[l+n]=u[l%r]}return this};var Ba={};function Zr(t,e,n){Ba[t]=class extends n{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Zr(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);Zr(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,e){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof e}`},TypeError);Zr(\\\"ERR_OUT_OF_RANGE\\\",function(t,e,n){let a=`The value of \\\"${t}\\\" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=Po(String(n)):typeof n==\\\"bigint\\\"&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=Po(i)),i+=\\\"n\\\"),a+=` It must be ${e}. Received ${i}`,a},RangeError);function Po(t){let e=\\\"\\\",n=t.length,a=t[0]===\\\"-\\\"?1:0;for(;n>=a+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Ny(t,e,n){Ca(e,\\\"offset\\\"),(t[e]===void 0||t[e+n]===void 0)&&Hi(e,t.length-(n+1))}function ff(t,e,n,a,i,l){if(t>n||t<e){let u=typeof e==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",r;throw l>3?e===0||e===BigInt(0)?r=`>= 0${u} and < 2${u} ** ${(l+1)*8}${u}`:r=`>= -(2${u} ** ${(l+1)*8-1}${u}) and < 2 ** ${(l+1)*8-1}${u}`:r=`>= ${e}${u} and <= ${n}${u}`,new Ba.ERR_OUT_OF_RANGE(\\\"value\\\",r,t)}Ny(a,i,l)}function Ca(t,e){if(typeof t!=\\\"number\\\")throw new Ba.ERR_INVALID_ARG_TYPE(e,\\\"number\\\",t)}function Hi(t,e,n){throw Math.floor(t)!==t?(Ca(t,n),new Ba.ERR_OUT_OF_RANGE(n||\\\"offset\\\",\\\"an integer\\\",t)):e<0?new Ba.ERR_BUFFER_OUT_OF_BOUNDS:new Ba.ERR_OUT_OF_RANGE(n||\\\"offset\\\",`>= ${n?1:0} and <= ${e}`,t)}var wy=/[^+/0-9A-Za-z-_]/g;function Ry(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace(wy,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function kr(t,e){e=e||1/0;let n,a=t.length,i=null,l=[];for(let u=0;u<a;++u){if(n=t.charCodeAt(u),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&l.push(239,191,189);continue}else if(u+1===a){(e-=3)>-1&&l.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&l.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&l.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;l.push(n)}else if(n<2048){if((e-=2)<0)break;l.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;l.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\\\"Invalid code point\\\")}return l}function Oy(t){let e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function zy(t,e){let n,a,i,l=[];for(let u=0;u<t.length&&!((e-=2)<0);++u)n=t.charCodeAt(u),a=n>>8,i=n%256,l.push(i),l.push(a);return l}function df(t){return Hr.toByteArray(Ry(t))}function Xl(t,e,n,a){let i;for(i=0;i<a&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Ae(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Vr(t){return t!==t}var By=(function(){let t=\\\"0123456789abcdef\\\",e=new Array(256);for(let n=0;n<16;++n){let a=n*16;for(let i=0;i<16;++i)e[a+i]=t[n]+t[i]}return e})();function fn(t){return typeof BigInt>\\\"u\\\"?My:t}function My(){throw new Error(\\\"BigInt not supported\\\")}});var mf,T=Wp(()=>{\\\"use strict\\\";mf=Ct(hf(),1);globalThis.Buffer=mf.Buffer});var xf=Qt(ut=>{\\\"use strict\\\";T();function Kr(t,e){var n=t.length;t.push(e);t:for(;0<n;){var a=n-1>>>1,i=t[a];if(0<Ql(i,e))t[a]=e,t[n]=i,n=a;else break t}}function Ne(t){return t.length===0?null:t[0]}function Jl(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var a=0,i=t.length,l=i>>>1;a<l;){var u=2*(a+1)-1,r=t[u],s=u+1,c=t[s];if(0>Ql(r,n))s<i&&0>Ql(c,r)?(t[a]=c,t[s]=n,a=s):(t[a]=r,t[u]=n,a=u);else if(s<i&&0>Ql(c,n))t[a]=c,t[s]=n,a=s;else break t}}return e}function Ql(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}ut.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(pf=performance,ut.unstable_now=function(){return pf.now()}):(Gr=Date,yf=Gr.now(),ut.unstable_now=function(){return Gr.now()-yf});var pf,Gr,yf,je=[],dn=[],Cy=1,le=null,Rt=3,Jr=!1,qi=!1,ji=!1,$r=!1,Sf=typeof setTimeout==\\\"function\\\"?setTimeout:null,_f=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,gf=typeof setImmediate<\\\"u\\\"?setImmediate:null;function Kl(t){for(var e=Ne(dn);e!==null;){if(e.callback===null)Jl(dn);else if(e.startTime<=t)Jl(dn),e.sortIndex=e.expirationTime,Kr(je,e);else break;e=Ne(dn)}}function Fr(t){if(ji=!1,Kl(t),!qi)if(Ne(je)!==null)qi=!0,Ha||(Ha=!0,Da());else{var e=Ne(dn);e!==null&&Ir(Fr,e.startTime-t)}}var Ha=!1,ki=-1,Tf=5,bf=-1;function Ef(){return $r?!0:!(ut.unstable_now()-bf<Tf)}function Xr(){if($r=!1,Ha){var t=ut.unstable_now();bf=t;var e=!0;try{t:{qi=!1,ji&&(ji=!1,_f(ki),ki=-1),Jr=!0;var n=Rt;try{e:{for(Kl(t),le=Ne(je);le!==null&&!(le.expirationTime>t&&Ef());){var a=le.callback;if(typeof a==\\\"function\\\"){le.callback=null,Rt=le.priorityLevel;var i=a(le.expirationTime<=t);if(t=ut.unstable_now(),typeof i==\\\"function\\\"){le.callback=i,Kl(t),e=!0;break e}le===Ne(je)&&Jl(je),Kl(t)}else Jl(je);le=Ne(je)}if(le!==null)e=!0;else{var l=Ne(dn);l!==null&&Ir(Fr,l.startTime-t),e=!1}}break t}finally{le=null,Rt=n,Jr=!1}e=void 0}}finally{e?Da():Ha=!1}}}var Da;typeof gf==\\\"function\\\"?Da=function(){gf(Xr)}:typeof MessageChannel<\\\"u\\\"?(Qr=new MessageChannel,vf=Qr.port2,Qr.port1.onmessage=Xr,Da=function(){vf.postMessage(null)}):Da=function(){Sf(Xr,0)};var Qr,vf;function Ir(t,e){ki=Sf(function(){t(ut.unstable_now())},e)}ut.unstable_IdlePriority=5;ut.unstable_ImmediatePriority=1;ut.unstable_LowPriority=4;ut.unstable_NormalPriority=3;ut.unstable_Profiling=null;ut.unstable_UserBlockingPriority=2;ut.unstable_cancelCallback=function(t){t.callback=null};ut.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):Tf=0<t?Math.floor(1e3/t):5};ut.unstable_getCurrentPriorityLevel=function(){return Rt};ut.unstable_next=function(t){switch(Rt){case 1:case 2:case 3:var e=3;break;default:e=Rt}var n=Rt;Rt=e;try{return t()}finally{Rt=n}};ut.unstable_requestPaint=function(){$r=!0};ut.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Rt;Rt=t;try{return e()}finally{Rt=n}};ut.unstable_scheduleCallback=function(t,e,n){var a=ut.unstable_now();switch(typeof n==\\\"object\\\"&&n!==null?(n=n.delay,n=typeof n==\\\"number\\\"&&0<n?a+n:a):n=a,t){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,t={id:Cy++,callback:e,priorityLevel:t,startTime:n,expirationTime:i,sortIndex:-1},n>a?(t.sortIndex=n,Kr(dn,t),Ne(je)===null&&t===Ne(dn)&&(ji?(_f(ki),ki=-1):ji=!0,Ir(Fr,n-a))):(t.sortIndex=i,Kr(je,t),qi||Jr||(qi=!0,Ha||(Ha=!0,Da()))),t};ut.unstable_shouldYield=Ef;ut.unstable_wrapCallback=function(t){var e=Rt;return function(){var n=Rt;Rt=e;try{return t.apply(this,arguments)}finally{Rt=n}}}});var Nf=Qt((xS,Af)=>{\\\"use strict\\\";T();Af.exports=xf()});var qf=Qt(U=>{\\\"use strict\\\";T();var ts=Symbol.for(\\\"react.transitional.element\\\"),Uy=Symbol.for(\\\"react.portal\\\"),Dy=Symbol.for(\\\"react.fragment\\\"),Hy=Symbol.for(\\\"react.strict_mode\\\"),qy=Symbol.for(\\\"react.profiler\\\"),jy=Symbol.for(\\\"react.consumer\\\"),ky=Symbol.for(\\\"react.context\\\"),Ly=Symbol.for(\\\"react.forward_ref\\\"),Yy=Symbol.for(\\\"react.suspense\\\"),Zy=Symbol.for(\\\"react.memo\\\"),Bf=Symbol.for(\\\"react.lazy\\\"),Vy=Symbol.for(\\\"react.activity\\\"),wf=Symbol.iterator;function Gy(t){return t===null||typeof t!=\\\"object\\\"?null:(t=wf&&t[wf]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var Mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cf=Object.assign,Uf={};function ja(t,e,n){this.props=t,this.context=e,this.refs=Uf,this.updater=n||Mf}ja.prototype.isReactComponent={};ja.prototype.setState=function(t,e){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,e,\\\"setState\\\")};ja.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function Df(){}Df.prototype=ja.prototype;function es(t,e,n){this.props=t,this.context=e,this.refs=Uf,this.updater=n||Mf}var ns=es.prototype=new Df;ns.constructor=es;Cf(ns,ja.prototype);ns.isPureReactComponent=!0;var Rf=Array.isArray;function Pr(){}var nt={H:null,A:null,T:null,S:null},Hf=Object.prototype.hasOwnProperty;function as(t,e,n){var a=n.ref;return{$$typeof:ts,type:t,key:e,ref:a!==void 0?a:null,props:n}}function Xy(t,e){return as(t.type,e,t.props)}function is(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===ts}function Qy(t){var e={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(n){return e[n]})}var Of=/\\\\/+/g;function Wr(t,e){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?Qy(\\\"\\\"+t.key):e.toString(36)}function Ky(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(Pr,Pr):(t.status=\\\"pending\\\",t.then(function(e){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=e)},function(e){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=e)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function qa(t,e,n,a,i){var l=typeof t;(l===\\\"undefined\\\"||l===\\\"boolean\\\")&&(t=null);var u=!1;if(t===null)u=!0;else switch(l){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":u=!0;break;case\\\"object\\\":switch(t.$$typeof){case ts:case Uy:u=!0;break;case Bf:return u=t._init,qa(u(t._payload),e,n,a,i)}}if(u)return i=i(t),u=a===\\\"\\\"?\\\".\\\"+Wr(t,0):a,Rf(i)?(n=\\\"\\\",u!=null&&(n=u.replace(Of,\\\"$&/\\\")+\\\"/\\\"),qa(i,e,n,\\\"\\\",function(c){return c})):i!=null&&(is(i)&&(i=Xy(i,n+(i.key==null||t&&t.key===i.key?\\\"\\\":(\\\"\\\"+i.key).replace(Of,\\\"$&/\\\")+\\\"/\\\")+u)),e.push(i)),1;u=0;var r=a===\\\"\\\"?\\\".\\\":a+\\\":\\\";if(Rf(t))for(var s=0;s<t.length;s++)a=t[s],l=r+Wr(a,s),u+=qa(a,e,n,l,i);else if(s=Gy(t),typeof s==\\\"function\\\")for(t=s.call(t),s=0;!(a=t.next()).done;)a=a.value,l=r+Wr(a,s++),u+=qa(a,e,n,l,i);else if(l===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return qa(Ky(t),e,n,a,i);throw e=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(e===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":e)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return u}function $l(t,e,n){if(t==null)return t;var a=[],i=0;return qa(t,a,\\\"\\\",\\\"\\\",function(l){return e.call(n,l,i++)}),a}function Jy(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var zf=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},$y={map:$l,forEach:function(t,e,n){$l(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return $l(t,function(){e++}),e},toArray:function(t){return $l(t,function(e){return e})||[]},only:function(t){if(!is(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};U.Activity=Vy;U.Children=$y;U.Component=ja;U.Fragment=Dy;U.Profiler=qy;U.PureComponent=es;U.StrictMode=Hy;U.Suspense=Yy;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=nt;U.__COMPILER_RUNTIME={__proto__:null,c:function(t){return nt.H.useMemoCache(t)}};U.cache=function(t){return function(){return t.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(t,e,n){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var a=Cf({},t.props),i=t.key;if(e!=null)for(l in e.key!==void 0&&(i=\\\"\\\"+e.key),e)!Hf.call(e,l)||l===\\\"key\\\"||l===\\\"__self\\\"||l===\\\"__source\\\"||l===\\\"ref\\\"&&e.ref===void 0||(a[l]=e[l]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var u=Array(l),r=0;r<l;r++)u[r]=arguments[r+2];a.children=u}return as(t.type,i,a)};U.createContext=function(t){return t={$$typeof:ky,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:jy,_context:t},t};U.createElement=function(t,e,n){var a,i={},l=null;if(e!=null)for(a in e.key!==void 0&&(l=\\\"\\\"+e.key),e)Hf.call(e,a)&&a!==\\\"key\\\"&&a!==\\\"__self\\\"&&a!==\\\"__source\\\"&&(i[a]=e[a]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var r=Array(u),s=0;s<u;s++)r[s]=arguments[s+2];i.children=r}if(t&&t.defaultProps)for(a in u=t.defaultProps,u)i[a]===void 0&&(i[a]=u[a]);return as(t,l,i)};U.createRef=function(){return{current:null}};U.forwardRef=function(t){return{$$typeof:Ly,render:t}};U.isValidElement=is;U.lazy=function(t){return{$$typeof:Bf,_payload:{_status:-1,_result:t},_init:Jy}};U.memo=function(t,e){return{$$typeof:Zy,type:t,compare:e===void 0?null:e}};U.startTransition=function(t){var e=nt.T,n={};nt.T=n;try{var a=t(),i=nt.S;i!==null&&i(n,a),typeof a==\\\"object\\\"&&a!==null&&typeof a.then==\\\"function\\\"&&a.then(Pr,zf)}catch(l){zf(l)}finally{e!==null&&n.types!==null&&(e.types=n.types),nt.T=e}};U.unstable_useCacheRefresh=function(){return nt.H.useCacheRefresh()};U.use=function(t){return nt.H.use(t)};U.useActionState=function(t,e,n){return nt.H.useActionState(t,e,n)};U.useCallback=function(t,e){return nt.H.useCallback(t,e)};U.useContext=function(t){return nt.H.useContext(t)};U.useDebugValue=function(){};U.useDeferredValue=function(t,e){return nt.H.useDeferredValue(t,e)};U.useEffect=function(t,e){return nt.H.useEffect(t,e)};U.useEffectEvent=function(t){return nt.H.useEffectEvent(t)};U.useId=function(){return nt.H.useId()};U.useImperativeHandle=function(t,e,n){return nt.H.useImperativeHandle(t,e,n)};U.useInsertionEffect=function(t,e){return nt.H.useInsertionEffect(t,e)};U.useLayoutEffect=function(t,e){return nt.H.useLayoutEffect(t,e)};U.useMemo=function(t,e){return nt.H.useMemo(t,e)};U.useOptimistic=function(t,e){return nt.H.useOptimistic(t,e)};U.useReducer=function(t,e,n){return nt.H.useReducer(t,e,n)};U.useRef=function(t){return nt.H.useRef(t)};U.useState=function(t){return nt.H.useState(t)};U.useSyncExternalStore=function(t,e,n){return nt.H.useSyncExternalStore(t,e,n)};U.useTransition=function(){return nt.H.useTransition()};U.version=\\\"19.2.4\\\"});var Kn=Qt((RS,jf)=>{\\\"use strict\\\";T();jf.exports=qf()});var Lf=Qt(Bt=>{\\\"use strict\\\";T();var Fy=Kn();function kf(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function hn(){}var zt={d:{f:hn,r:function(){throw Error(kf(522))},D:hn,C:hn,L:hn,m:hn,X:hn,S:hn,M:hn},p:0,findDOMNode:null},Iy=Symbol.for(\\\"react.portal\\\");function Wy(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Iy,key:a==null?null:\\\"\\\"+a,children:t,containerInfo:e,implementation:n}}var Li=Fy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Fl(t,e){if(t===\\\"font\\\")return\\\"\\\";if(typeof e==\\\"string\\\")return e===\\\"use-credentials\\\"?e:\\\"\\\"}Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=zt;Bt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(kf(299));return Wy(t,e,null,n)};Bt.flushSync=function(t){var e=Li.T,n=zt.p;try{if(Li.T=null,zt.p=2,t)return t()}finally{Li.T=e,zt.p=n,zt.d.f()}};Bt.preconnect=function(t,e){typeof t==\\\"string\\\"&&(e?(e=e.crossOrigin,e=typeof e==\\\"string\\\"?e===\\\"use-credentials\\\"?e:\\\"\\\":void 0):e=null,zt.d.C(t,e))};Bt.prefetchDNS=function(t){typeof t==\\\"string\\\"&&zt.d.D(t)};Bt.preinit=function(t,e){if(typeof t==\\\"string\\\"&&e&&typeof e.as==\\\"string\\\"){var n=e.as,a=Fl(n,e.crossOrigin),i=typeof e.integrity==\\\"string\\\"?e.integrity:void 0,l=typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0;n===\\\"style\\\"?zt.d.S(t,typeof e.precedence==\\\"string\\\"?e.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:l}):n===\\\"script\\\"&&zt.d.X(t,{crossOrigin:a,integrity:i,fetchPriority:l,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}};Bt.preinitModule=function(t,e){if(typeof t==\\\"string\\\")if(typeof e==\\\"object\\\"&&e!==null){if(e.as==null||e.as===\\\"script\\\"){var n=Fl(e.as,e.crossOrigin);zt.d.M(t,{crossOrigin:n,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0})}}else e==null&&zt.d.M(t)};Bt.preload=function(t,e){if(typeof t==\\\"string\\\"&&typeof e==\\\"object\\\"&&e!==null&&typeof e.as==\\\"string\\\"){var n=e.as,a=Fl(n,e.crossOrigin);zt.d.L(t,n,{crossOrigin:a,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0,nonce:typeof e.nonce==\\\"string\\\"?e.nonce:void 0,type:typeof e.type==\\\"string\\\"?e.type:void 0,fetchPriority:typeof e.fetchPriority==\\\"string\\\"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy==\\\"string\\\"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet==\\\"string\\\"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes==\\\"string\\\"?e.imageSizes:void 0,media:typeof e.media==\\\"string\\\"?e.media:void 0})}};Bt.preloadModule=function(t,e){if(typeof t==\\\"string\\\")if(e){var n=Fl(e.as,e.crossOrigin);zt.d.m(t,{as:typeof e.as==\\\"string\\\"&&e.as!==\\\"script\\\"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity==\\\"string\\\"?e.integrity:void 0})}else zt.d.m(t)};Bt.requestFormReset=function(t){zt.d.r(t)};Bt.unstable_batchedUpdates=function(t,e){return t(e)};Bt.useFormState=function(t,e,n){return Li.H.useFormState(t,e,n)};Bt.useFormStatus=function(){return Li.H.useHostTransitionStatus()};Bt.version=\\\"19.2.4\\\"});var Vf=Qt((MS,Zf)=>{\\\"use strict\\\";T();function Yf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yf)}catch(t){console.error(t)}}Yf(),Zf.exports=Lf()});var ep=Qt(Tr=>{\\\"use strict\\\";T();var gt=Nf(),ph=Kn(),Py=Vf();function S(t){var e=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){e+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+e+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function yh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Nl(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function gh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function vh(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Gf(t){if(Nl(t)!==t)throw Error(S(188))}function tg(t){var e=t.alternate;if(!e){if(e=Nl(t),e===null)throw Error(S(188));return e!==t?null:t}for(var n=t,a=e;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Gf(i),t;if(l===a)return Gf(i),e;l=l.sibling}throw Error(S(188))}if(n.return!==a.return)n=i,a=l;else{for(var u=!1,r=i.child;r;){if(r===n){u=!0,n=i,a=l;break}if(r===a){u=!0,a=i,n=l;break}r=r.sibling}if(!u){for(r=l.child;r;){if(r===n){u=!0,n=l,a=i;break}if(r===a){u=!0,a=l,n=i;break}r=r.sibling}if(!u)throw Error(S(189))}}if(n.alternate!==a)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?t:e}function Sh(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Sh(t),e!==null)return e;t=t.sibling}return null}var lt=Object.assign,eg=Symbol.for(\\\"react.element\\\"),Il=Symbol.for(\\\"react.transitional.element\\\"),Ji=Symbol.for(\\\"react.portal\\\"),Ga=Symbol.for(\\\"react.fragment\\\"),_h=Symbol.for(\\\"react.strict_mode\\\"),js=Symbol.for(\\\"react.profiler\\\"),Th=Symbol.for(\\\"react.consumer\\\"),Qe=Symbol.for(\\\"react.context\\\"),Cc=Symbol.for(\\\"react.forward_ref\\\"),ks=Symbol.for(\\\"react.suspense\\\"),Ls=Symbol.for(\\\"react.suspense_list\\\"),Uc=Symbol.for(\\\"react.memo\\\"),mn=Symbol.for(\\\"react.lazy\\\"),Ys=Symbol.for(\\\"react.activity\\\"),ng=Symbol.for(\\\"react.memo_cache_sentinel\\\"),Xf=Symbol.iterator;function Yi(t){return t===null||typeof t!=\\\"object\\\"?null:(t=Xf&&t[Xf]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var ag=Symbol.for(\\\"react.client.reference\\\");function Zs(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===ag?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case Ga:return\\\"Fragment\\\";case js:return\\\"Profiler\\\";case _h:return\\\"StrictMode\\\";case ks:return\\\"Suspense\\\";case Ls:return\\\"SuspenseList\\\";case Ys:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case Ji:return\\\"Portal\\\";case Qe:return t.displayName||\\\"Context\\\";case Th:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case Cc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case Uc:return e=t.displayName||null,e!==null?e:Zs(t.type)||\\\"Memo\\\";case mn:e=t._payload,t=t._init;try{return Zs(t(e))}catch{}}return null}var $i=Array.isArray,M=ph.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Py.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pn={pending:!1,data:null,method:null,action:null},Vs=[],Xa=-1;function Be(t){return{current:t}}function Tt(t){0>Xa||(t.current=Vs[Xa],Vs[Xa]=null,Xa--)}function et(t,e){Xa++,Vs[Xa]=t.current,t.current=e}var ze=Be(null),dl=Be(null),An=Be(null),zu=Be(null);function Bu(t,e){switch(et(An,e),et(dl,t),et(ze,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Wd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Wd(e),t=Y0(e,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}Tt(ze),et(ze,t)}function ci(){Tt(ze),Tt(dl),Tt(An)}function Gs(t){t.memoizedState!==null&&et(zu,t);var e=ze.current,n=Y0(e,t.type);e!==n&&(et(dl,t),et(ze,n))}function Mu(t){dl.current===t&&(Tt(ze),Tt(dl)),zu.current===t&&(Tt(zu),El._currentValue=Pn)}var ls,Qf;function $n(t){if(ls===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\\\\n( *(at )?)/);ls=e&&e[1]||\\\"\\\",Qf=-1<n.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<n.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+ls+t+Qf}var us=!1;function rs(t,e){if(!t||us)return\\\"\\\";us=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(d,[])}catch(y){var m=y}Reflect.construct(t,[],d)}else{try{d.call()}catch(y){m=y}t.call(d.prototype)}}else{try{throw Error()}catch(y){m=y}(d=t())&&typeof d.catch==\\\"function\\\"&&d.catch(function(){})}}catch(y){if(y&&m&&typeof y.stack==\\\"string\\\")return[y.stack,m.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,\\\"name\\\");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var l=a.DetermineComponentFrameRoot(),u=l[0],r=l[1];if(u&&r){var s=u.split(`\\n`),c=r.split(`\\n`);for(i=a=0;a<s.length&&!s[a].includes(\\\"DetermineComponentFrameRoot\\\");)a++;for(;i<c.length&&!c[i].includes(\\\"DetermineComponentFrameRoot\\\");)i++;if(a===s.length||i===c.length)for(a=s.length-1,i=c.length-1;1<=a&&0<=i&&s[a]!==c[i];)i--;for(;1<=a&&0<=i;a--,i--)if(s[a]!==c[i]){if(a!==1||i!==1)do if(a--,i--,0>i||s[a]!==c[i]){var o=`\\n`+s[a].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&o.includes(\\\"<anonymous>\\\")&&(o=o.replace(\\\"<anonymous>\\\",t.displayName)),o}while(1<=a&&0<=i);break}}}finally{us=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:\\\"\\\")?$n(n):\\\"\\\"}function ig(t,e){switch(t.tag){case 26:case 27:case 5:return $n(t.type);case 16:return $n(\\\"Lazy\\\");case 13:return t.child!==e&&e!==null?$n(\\\"Suspense Fallback\\\"):$n(\\\"Suspense\\\");case 19:return $n(\\\"SuspenseList\\\");case 0:case 15:return rs(t.type,!1);case 11:return rs(t.type.render,!1);case 1:return rs(t.type,!0);case 31:return $n(\\\"Activity\\\");default:return\\\"\\\"}}function Kf(t){try{var e=\\\"\\\",n=null;do e+=ig(t,n),n=t,t=t.return;while(t);return e}catch(a){return`\\nError generating stack: `+a.message+`\\n`+a.stack}}var Xs=Object.prototype.hasOwnProperty,Dc=gt.unstable_scheduleCallback,ss=gt.unstable_cancelCallback,lg=gt.unstable_shouldYield,ug=gt.unstable_requestPaint,It=gt.unstable_now,rg=gt.unstable_getCurrentPriorityLevel,bh=gt.unstable_ImmediatePriority,Eh=gt.unstable_UserBlockingPriority,Cu=gt.unstable_NormalPriority,sg=gt.unstable_LowPriority,xh=gt.unstable_IdlePriority,cg=gt.log,og=gt.unstable_setDisableYieldValue,wl=null,Wt=null;function _n(t){if(typeof cg==\\\"function\\\"&&og(t),Wt&&typeof Wt.setStrictMode==\\\"function\\\")try{Wt.setStrictMode(wl,t)}catch{}}var Pt=Math.clz32?Math.clz32:hg,fg=Math.log,dg=Math.LN2;function hg(t){return t>>>=0,t===0?32:31-(fg(t)/dg|0)|0}var Wl=256,Pl=262144,tu=4194304;function Fn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function lr(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,l=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~l,a!==0?i=Fn(a):(u&=r,u!==0?i=Fn(u):n||(n=r&~t,n!==0&&(i=Fn(n))))):(r=a&~l,r!==0?i=Fn(r):u!==0?i=Fn(u):n||(n=a&~t,n!==0&&(i=Fn(n)))),i===0?0:e!==0&&e!==i&&(e&l)===0&&(l=i&-i,n=e&-e,l>=n||l===32&&(n&4194048)!==0)?e:i}function Rl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function mg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ah(){var t=tu;return tu<<=1,(tu&62914560)===0&&(tu=4194304),t}function cs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ol(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pg(t,e,n,a,i,l){var u=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var r=t.entanglements,s=t.expirationTimes,c=t.hiddenUpdates;for(n=u&~n;0<n;){var o=31-Pt(n),d=1<<o;r[o]=0,s[o]=-1;var m=c[o];if(m!==null)for(c[o]=null,o=0;o<m.length;o++){var y=m[o];y!==null&&(y.lane&=-536870913)}n&=~d}a!==0&&Nh(t,a,0),l!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=l&~(u&~e))}function Nh(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Pt(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function wh(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Pt(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Rh(t,e){var n=e&-e;return n=(n&42)!==0?1:Hc(n),(n&(t.suspendedLanes|e))!==0?0:n}function Hc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function qc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Oh(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:W0(t.type))}function Jf(t,e){var n=$.p;try{return $.p=t,e()}finally{$.p=n}}var jn=Math.random().toString(36).slice(2),Et=\\\"__reactFiber$\\\"+jn,Lt=\\\"__reactProps$\\\"+jn,_i=\\\"__reactContainer$\\\"+jn,Qs=\\\"__reactEvents$\\\"+jn,yg=\\\"__reactListeners$\\\"+jn,gg=\\\"__reactHandles$\\\"+jn,$f=\\\"__reactResources$\\\"+jn,zl=\\\"__reactMarker$\\\"+jn;function jc(t){delete t[Et],delete t[Lt],delete t[Qs],delete t[yg],delete t[gg]}function Qa(t){var e=t[Et];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_i]||n[Et]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ah(t);t!==null;){if(n=t[Et])return n;t=ah(t)}return e}t=n,n=t.parentNode}return null}function Ti(t){if(t=t[Et]||t[_i]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(S(33))}function ni(t){var e=t[$f];return e||(e=t[$f]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function _t(t){t[zl]=!0}var zh=new Set,Bh={};function ca(t,e){oi(t,e),oi(t+\\\"Capture\\\",e)}function oi(t,e){for(Bh[t]=e,t=0;t<e.length;t++)zh.add(e[t])}var vg=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),Ff={},If={};function Sg(t){return Xs.call(If,t)?!0:Xs.call(Ff,t)?!1:vg.test(t)?If[t]=!0:(Ff[t]=!0,!1)}function pu(t,e,n){if(Sg(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(e);return;case\\\"boolean\\\":var a=e.toLowerCase().slice(0,5);if(a!==\\\"data-\\\"&&a!==\\\"aria-\\\"){t.removeAttribute(e);return}}t.setAttribute(e,\\\"\\\"+n)}}function eu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(e);return}t.setAttribute(e,\\\"\\\"+n)}}function ke(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(n);return}t.setAttributeNS(e,n,\\\"\\\"+a)}}function re(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function Mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(e===\\\"checkbox\\\"||e===\\\"radio\\\")}function _g(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<\\\"u\\\"&&typeof a.get==\\\"function\\\"&&typeof a.set==\\\"function\\\"){var i=a.get,l=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(u){n=\\\"\\\"+u,l.call(this,u)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(u){n=\\\"\\\"+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ks(t){if(!t._valueTracker){var e=Mh(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=_g(t,e,\\\"\\\"+t[e])}}function Ch(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a=\\\"\\\";return t&&(a=Mh(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Uu(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var Tg=/[\\\\n\\\"\\\\\\\\]/g;function oe(t){return t.replace(Tg,function(e){return\\\"\\\\\\\\\\\"+e.charCodeAt(0).toString(16)+\\\" \\\"})}function Js(t,e,n,a,i,l,u,r){t.name=\\\"\\\",u!=null&&typeof u!=\\\"function\\\"&&typeof u!=\\\"symbol\\\"&&typeof u!=\\\"boolean\\\"?t.type=u:t.removeAttribute(\\\"type\\\"),e!=null?u===\\\"number\\\"?(e===0&&t.value===\\\"\\\"||t.value!=e)&&(t.value=\\\"\\\"+re(e)):t.value!==\\\"\\\"+re(e)&&(t.value=\\\"\\\"+re(e)):u!==\\\"submit\\\"&&u!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),e!=null?$s(t,u,re(e)):n!=null?$s(t,u,re(n)):a!=null&&t.removeAttribute(\\\"value\\\"),i==null&&l!=null&&(t.defaultChecked=!!l),i!=null&&(t.checked=i&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"),r!=null&&typeof r!=\\\"function\\\"&&typeof r!=\\\"symbol\\\"&&typeof r!=\\\"boolean\\\"?t.name=\\\"\\\"+re(r):t.removeAttribute(\\\"name\\\")}function Uh(t,e,n,a,i,l,u,r){if(l!=null&&typeof l!=\\\"function\\\"&&typeof l!=\\\"symbol\\\"&&typeof l!=\\\"boolean\\\"&&(t.type=l),e!=null||n!=null){if(!(l!==\\\"submit\\\"&&l!==\\\"reset\\\"||e!=null)){Ks(t);return}n=n!=null?\\\"\\\"+re(n):\\\"\\\",e=e!=null?\\\"\\\"+re(e):n,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,u!=null&&typeof u!=\\\"function\\\"&&typeof u!=\\\"symbol\\\"&&typeof u!=\\\"boolean\\\"&&(t.name=u),Ks(t)}function $s(t,e,n){e===\\\"number\\\"&&Uu(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+n||(t.defaultValue=\\\"\\\"+n)}function ai(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e[\\\"$\\\"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty(\\\"$\\\"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=\\\"\\\"+re(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Dh(t,e,n){if(e!=null&&(e=\\\"\\\"+re(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?\\\"\\\"+re(n):\\\"\\\"}function Hh(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(S(92));if($i(a)){if(1<a.length)throw Error(S(93));a=a[0]}n=a}n==null&&(n=\\\"\\\"),e=n}n=re(e),t.defaultValue=n,a=t.textContent,a===n&&a!==\\\"\\\"&&a!==null&&(t.value=a),Ks(t)}function fi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var bg=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function Wf(t,e,n){var a=e.indexOf(\\\"--\\\")===0;n==null||typeof n==\\\"boolean\\\"||n===\\\"\\\"?a?t.setProperty(e,\\\"\\\"):e===\\\"float\\\"?t.cssFloat=\\\"\\\":t[e]=\\\"\\\":a?t.setProperty(e,n):typeof n!=\\\"number\\\"||n===0||bg.has(e)?e===\\\"float\\\"?t.cssFloat=n:t[e]=(\\\"\\\"+n).trim():t[e]=n+\\\"px\\\"}function qh(t,e,n){if(e!=null&&typeof e!=\\\"object\\\")throw Error(S(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf(\\\"--\\\")===0?t.setProperty(a,\\\"\\\"):a===\\\"float\\\"?t.cssFloat=\\\"\\\":t[a]=\\\"\\\");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&Wf(t,i,a)}else for(var l in e)e.hasOwnProperty(l)&&Wf(t,l,e[l])}function kc(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var Eg=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),xg=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function yu(t){return xg.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function Ke(){}var Fs=null;function Lc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ka=null,ii=null;function Pf(t){var e=Ti(t);if(e&&(t=e.stateNode)){var n=t[Lt]||null;t:switch(t=e.stateNode,e.type){case\\\"input\\\":if(Js(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type===\\\"radio\\\"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\\\"'+oe(\\\"\\\"+e)+'\\\"][type=\\\"radio\\\"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var i=a[Lt]||null;if(!i)throw Error(S(90));Js(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Ch(a)}break t;case\\\"textarea\\\":Dh(t,n.value,n.defaultValue);break t;case\\\"select\\\":e=n.value,e!=null&&ai(t,!!n.multiple,e,!1)}}}var os=!1;function jh(t,e,n){if(os)return t(e,n);os=!0;try{var a=t(e);return a}finally{if(os=!1,(Ka!==null||ii!==null)&&(gr(),Ka&&(e=Ka,t=ii,ii=Ka=null,Pf(e),t)))for(e=0;e<t.length;e++)Pf(t[e])}}function hl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[Lt]||null;if(a===null)return null;n=a[e];t:switch(e){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(a=!a.disabled)||(t=t.type,a=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!=\\\"function\\\")throw Error(S(231,e,typeof n));return n}var We=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),Is=!1;if(We)try{ka={},Object.defineProperty(ka,\\\"passive\\\",{get:function(){Is=!0}}),window.addEventListener(\\\"test\\\",ka,ka),window.removeEventListener(\\\"test\\\",ka,ka)}catch{Is=!1}var ka,Tn=null,Yc=null,gu=null;function kh(){if(gu)return gu;var t,e=Yc,n=e.length,a,i=\\\"value\\\"in Tn?Tn.value:Tn.textContent,l=i.length;for(t=0;t<n&&e[t]===i[t];t++);var u=n-t;for(a=1;a<=u&&e[n-a]===i[l-a];a++);return gu=i.slice(t,1<a?1-a:void 0)}function vu(t){var e=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function nu(){return!0}function td(){return!1}function Yt(t){function e(n,a,i,l,u){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=l,this.target=u,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(n=t[r],this[r]=n?n(l):l[r]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?nu:td,this.isPropagationStopped=td,this}return lt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\\\"unknown\\\"&&(n.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\\\"unknown\\\"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),e}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=Yt(oa),Bl=lt({},oa,{view:0,detail:0}),Ag=Yt(Bl),fs,ds,Zi,rr=lt({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==Zi&&(Zi&&t.type===\\\"mousemove\\\"?(fs=t.screenX-Zi.screenX,ds=t.screenY-Zi.screenY):ds=fs=0,Zi=t),fs)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:ds}}),ed=Yt(rr),Ng=lt({},rr,{dataTransfer:0}),wg=Yt(Ng),Rg=lt({},Bl,{relatedTarget:0}),hs=Yt(Rg),Og=lt({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),zg=Yt(Og),Bg=lt({},oa,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),Mg=Yt(Bg),Cg=lt({},oa,{data:0}),nd=Yt(Cg),Ug={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},Dg={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},Hg={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function qg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Hg[t])?!!e[t]:!1}function Zc(){return qg}var jg=lt({},Bl,{key:function(t){if(t.key){var e=Ug[t.key]||t.key;if(e!==\\\"Unidentified\\\")return e}return t.type===\\\"keypress\\\"?(t=vu(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?Dg[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zc,charCode:function(t){return t.type===\\\"keypress\\\"?vu(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?vu(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),kg=Yt(jg),Lg=lt({},rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=Yt(Lg),Yg=lt({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zc}),Zg=Yt(Yg),Vg=lt({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gg=Yt(Vg),Xg=lt({},rr,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Qg=Yt(Xg),Kg=lt({},oa,{newState:0,oldState:0}),Jg=Yt(Kg),$g=[9,13,27,32],Vc=We&&\\\"CompositionEvent\\\"in window,Pi=null;We&&\\\"documentMode\\\"in document&&(Pi=document.documentMode);var Fg=We&&\\\"TextEvent\\\"in window&&!Pi,Lh=We&&(!Vc||Pi&&8<Pi&&11>=Pi),id=\\\" \\\",ld=!1;function Yh(t,e){switch(t){case\\\"keyup\\\":return $g.indexOf(e.keyCode)!==-1;case\\\"keydown\\\":return e.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function Zh(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var Ja=!1;function Ig(t,e){switch(t){case\\\"compositionend\\\":return Zh(e);case\\\"keypress\\\":return e.which!==32?null:(ld=!0,id);case\\\"textInput\\\":return t=e.data,t===id&&ld?null:t;default:return null}}function Wg(t,e){if(Ja)return t===\\\"compositionend\\\"||!Vc&&Yh(t,e)?(t=kh(),gu=Yc=Tn=null,Ja=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case\\\"compositionend\\\":return Lh&&e.locale!==\\\"ko\\\"?null:e.data;default:return null}}var Pg={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ud(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e===\\\"input\\\"?!!Pg[t.type]:e===\\\"textarea\\\"}function Vh(t,e,n,a){Ka?ii?ii.push(a):ii=[a]:Ka=a,e=Wu(e,\\\"onChange\\\"),0<e.length&&(n=new ur(\\\"onChange\\\",\\\"change\\\",null,n,a),t.push({event:n,listeners:e}))}var tl=null,ml=null;function t1(t){j0(t,0)}function sr(t){var e=Fi(t);if(Ch(e))return t}function rd(t,e){if(t===\\\"change\\\")return e}var Gh=!1;We&&(We?(iu=\\\"oninput\\\"in document,iu||(ms=document.createElement(\\\"div\\\"),ms.setAttribute(\\\"oninput\\\",\\\"return;\\\"),iu=typeof ms.oninput==\\\"function\\\"),au=iu):au=!1,Gh=au&&(!document.documentMode||9<document.documentMode));var au,iu,ms;function sd(){tl&&(tl.detachEvent(\\\"onpropertychange\\\",Xh),ml=tl=null)}function Xh(t){if(t.propertyName===\\\"value\\\"&&sr(ml)){var e=[];Vh(e,ml,t,Lc(t)),jh(t1,e)}}function e1(t,e,n){t===\\\"focusin\\\"?(sd(),tl=e,ml=n,tl.attachEvent(\\\"onpropertychange\\\",Xh)):t===\\\"focusout\\\"&&sd()}function n1(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return sr(ml)}function a1(t,e){if(t===\\\"click\\\")return sr(e)}function i1(t,e){if(t===\\\"input\\\"||t===\\\"change\\\")return sr(e)}function l1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ee=typeof Object.is==\\\"function\\\"?Object.is:l1;function pl(t,e){if(ee(t,e))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof e!=\\\"object\\\"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Xs.call(e,i)||!ee(t[i],e[i]))return!1}return!0}function cd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function od(t,e){var n=cd(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cd(n)}}function Qh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Qh(t,e.parentNode):\\\"contains\\\"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Kh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Uu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href==\\\"string\\\"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Uu(t.document)}return e}function Gc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||e===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var u1=We&&\\\"documentMode\\\"in document&&11>=document.documentMode,$a=null,Ws=null,el=null,Ps=!1;function fd(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ps||$a==null||$a!==Uu(a)||(a=$a,\\\"selectionStart\\\"in a&&Gc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),el&&pl(el,a)||(el=a,a=Wu(Ws,\\\"onSelect\\\"),0<a.length&&(e=new ur(\\\"onSelect\\\",\\\"select\\\",null,e,n),t.push({event:e,listeners:a}),e.target=$a)))}function Jn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\\\"Webkit\\\"+t]=\\\"webkit\\\"+e,n[\\\"Moz\\\"+t]=\\\"moz\\\"+e,n}var Fa={animationend:Jn(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:Jn(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:Jn(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:Jn(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:Jn(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:Jn(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:Jn(\\\"Transition\\\",\\\"TransitionEnd\\\")},ps={},Jh={};We&&(Jh=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),\\\"TransitionEvent\\\"in window||delete Fa.transitionend.transition);function fa(t){if(ps[t])return ps[t];if(!Fa[t])return t;var e=Fa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Jh)return ps[t]=e[n];return t}var $h=fa(\\\"animationend\\\"),Fh=fa(\\\"animationiteration\\\"),Ih=fa(\\\"animationstart\\\"),r1=fa(\\\"transitionrun\\\"),s1=fa(\\\"transitionstart\\\"),c1=fa(\\\"transitioncancel\\\"),Wh=fa(\\\"transitionend\\\"),Ph=new Map,tc=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");tc.push(\\\"scrollEnd\\\");function Te(t,e){Ph.set(t,e),ca(e,[t])}var Du=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var e=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},ue=[],Ia=0,Xc=0;function cr(){for(var t=Ia,e=Xc=Ia=0;e<t;){var n=ue[e];ue[e++]=null;var a=ue[e];ue[e++]=null;var i=ue[e];ue[e++]=null;var l=ue[e];if(ue[e++]=null,a!==null&&i!==null){var u=a.pending;u===null?i.next=i:(i.next=u.next,u.next=i),a.pending=i}l!==0&&tm(n,i,l)}}function or(t,e,n,a){ue[Ia++]=t,ue[Ia++]=e,ue[Ia++]=n,ue[Ia++]=a,Xc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Qc(t,e,n,a){return or(t,e,n,a),Hu(t)}function da(t,e){return or(t,null,null,e),Hu(t)}function tm(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,l=t.return;l!==null;)l.childLanes|=n,a=l.alternate,a!==null&&(a.childLanes|=n),l.tag===22&&(t=l.stateNode,t===null||t._visibility&1||(i=!0)),t=l,l=l.return;return t.tag===3?(l=t.stateNode,i&&e!==null&&(i=31-Pt(n),t=l.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),l):null}function Hu(t){if(50<ol)throw ol=0,Tc=null,Error(S(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Wa={};function o1(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(t,e,n,a){return new o1(t,e,n,a)}function Kc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $e(t,e){var n=t.alternate;return n===null?(n=$t(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function em(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Su(t,e,n,a,i,l){var u=0;if(a=t,typeof t==\\\"function\\\")Kc(t)&&(u=1);else if(typeof t==\\\"string\\\")u=hv(t,n,ze.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else t:switch(t){case Ys:return t=$t(31,n,e,i),t.elementType=Ys,t.lanes=l,t;case Ga:return ta(n.children,i,l,e);case _h:u=8,i|=24;break;case js:return t=$t(12,n,e,i|2),t.elementType=js,t.lanes=l,t;case ks:return t=$t(13,n,e,i),t.elementType=ks,t.lanes=l,t;case Ls:return t=$t(19,n,e,i),t.elementType=Ls,t.lanes=l,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case Qe:u=10;break t;case Th:u=9;break t;case Cc:u=11;break t;case Uc:u=14;break t;case mn:u=16,a=null;break t}u=29,n=Error(S(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),a=null}return e=$t(u,n,e,i),e.elementType=t,e.type=a,e.lanes=l,e}function ta(t,e,n,a){return t=$t(7,t,a,e),t.lanes=n,t}function ys(t,e,n){return t=$t(6,t,null,e),t.lanes=n,t}function nm(t){var e=$t(18,null,null,0);return e.stateNode=t,e}function gs(t,e,n){return e=$t(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var dd=new WeakMap;function fe(t,e){if(typeof t==\\\"object\\\"&&t!==null){var n=dd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Kf(e)},dd.set(t,e),e)}return{value:t,source:e,stack:Kf(e)}}var Pa=[],ti=0,qu=null,yl=0,se=[],ce=0,Un=null,we=1,Re=\\\"\\\";function Ge(t,e){Pa[ti++]=yl,Pa[ti++]=qu,qu=t,yl=e}function am(t,e,n){se[ce++]=we,se[ce++]=Re,se[ce++]=Un,Un=t;var a=we;t=Re;var i=32-Pt(a)-1;a&=~(1<<i),n+=1;var l=32-Pt(e)+i;if(30<l){var u=i-i%5;l=(a&(1<<u)-1).toString(32),a>>=u,i-=u,we=1<<32-Pt(e)+i|n<<i|a,Re=l+t}else we=1<<l|n<<i|a,Re=t}function Jc(t){t.return!==null&&(Ge(t,1),am(t,1,0))}function $c(t){for(;t===qu;)qu=Pa[--ti],Pa[ti]=null,yl=Pa[--ti],Pa[ti]=null;for(;t===Un;)Un=se[--ce],se[ce]=null,Re=se[--ce],se[ce]=null,we=se[--ce],se[ce]=null}function im(t,e){se[ce++]=we,se[ce++]=Re,se[ce++]=Un,we=e.id,Re=e.overflow,Un=t}var xt=null,it=null,X=!1,Nn=null,de=!1,ec=Error(S(519));function Dn(t){var e=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw gl(fe(e,t)),ec}function hd(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Et]=t,e[Lt]=a,n){case\\\"dialog\\\":k(\\\"cancel\\\",e),k(\\\"close\\\",e);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":k(\\\"load\\\",e);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<Tl.length;n++)k(Tl[n],e);break;case\\\"source\\\":k(\\\"error\\\",e);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":k(\\\"error\\\",e),k(\\\"load\\\",e);break;case\\\"details\\\":k(\\\"toggle\\\",e);break;case\\\"input\\\":k(\\\"invalid\\\",e),Uh(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case\\\"select\\\":k(\\\"invalid\\\",e);break;case\\\"textarea\\\":k(\\\"invalid\\\",e),Hh(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!=\\\"string\\\"&&typeof n!=\\\"number\\\"&&typeof n!=\\\"bigint\\\"||e.textContent===\\\"\\\"+n||a.suppressHydrationWarning===!0||L0(e.textContent,n)?(a.popover!=null&&(k(\\\"beforetoggle\\\",e),k(\\\"toggle\\\",e)),a.onScroll!=null&&k(\\\"scroll\\\",e),a.onScrollEnd!=null&&k(\\\"scrollend\\\",e),a.onClick!=null&&(e.onclick=Ke),e=!0):e=!1,e||Dn(t,!0)}function md(t){for(xt=t.return;xt;)switch(xt.tag){case 5:case 31:case 13:de=!1;return;case 27:case 3:de=!0;return;default:xt=xt.return}}function La(t){if(t!==xt)return!1;if(!X)return md(t),X=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!==\\\"form\\\"&&n!==\\\"button\\\")||Nc(t.type,t.memoizedProps)),n=!n),n&&it&&Dn(t),md(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));it=nh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));it=nh(t)}else e===27?(e=it,kn(t.type)?(t=zc,zc=null,it=t):it=e):it=xt?me(t.stateNode.nextSibling):null;return!0}function ia(){it=xt=null,X=!1}function vs(){var t=Nn;return t!==null&&(jt===null?jt=t:jt.push.apply(jt,t),Nn=null),t}function gl(t){Nn===null?Nn=[t]:Nn.push(t)}var nc=Be(null),ha=null,Je=null;function yn(t,e,n){et(nc,e._currentValue),e._currentValue=n}function Fe(t){t._currentValue=nc.current,Tt(nc)}function ac(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function ic(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){var u=i.child;l=l.firstContext;t:for(;l!==null;){var r=l;l=i;for(var s=0;s<e.length;s++)if(r.context===e[s]){l.lanes|=n,r=l.alternate,r!==null&&(r.lanes|=n),ac(l.return,n,t),a||(u=null);break t}l=r.next}}else if(i.tag===18){if(u=i.return,u===null)throw Error(S(341));u.lanes|=n,l=u.alternate,l!==null&&(l.lanes|=n),ac(u,n,t),u=null}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}}function bi(t,e,n,a){t=null;for(var i=e,l=!1;i!==null;){if(!l){if((i.flags&524288)!==0)l=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var u=i.alternate;if(u===null)throw Error(S(387));if(u=u.memoizedProps,u!==null){var r=i.type;ee(i.pendingProps.value,u.value)||(t!==null?t.push(r):t=[r])}}else if(i===zu.current){if(u=i.alternate,u===null)throw Error(S(387));u.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(El):t=[El])}i=i.return}t!==null&&ic(e,t,n,a),e.flags|=262144}function ju(t){for(t=t.firstContext;t!==null;){if(!ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function la(t){ha=t,Je=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function At(t){return lm(ha,t)}function lu(t,e){return ha===null&&la(t),lm(t,e)}function lm(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Je===null){if(t===null)throw Error(S(308));Je=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Je=Je.next=e;return n}var f1=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},d1=gt.unstable_scheduleCallback,h1=gt.unstable_NormalPriority,mt={$$typeof:Qe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new f1,data:new Map,refCount:0}}function Ml(t){t.refCount--,t.refCount===0&&d1(h1,function(){t.controller.abort()})}var nl=null,lc=0,di=0,li=null;function m1(t,e){if(nl===null){var n=nl=[];lc=0,di=bo(),li={status:\\\"pending\\\",value:void 0,then:function(a){n.push(a)}}}return lc++,e.then(pd,pd),e}function pd(){if(--lc===0&&nl!==null){li!==null&&(li.status=\\\"fulfilled\\\");var t=nl;nl=null,di=0,li=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function p1(t,e){var n=[],a={status:\\\"pending\\\",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status=\\\"fulfilled\\\",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status=\\\"rejected\\\",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var yd=M.S;M.S=function(t,e){S0=It(),typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\"&&m1(t,e),yd!==null&&yd(t,e)};var ea=Be(null);function Ic(){var t=ea.current;return t!==null?t:tt.pooledCache}function _u(t,e){e===null?et(ea,ea.current):et(ea,e.pool)}function um(){var t=Ic();return t===null?null:{parent:mt._currentValue,pool:t}}var Ei=Error(S(460)),Wc=Error(S(474)),fr=Error(S(542)),ku={then:function(){}};function gd(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function rm(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ke,Ke),e=n),e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,Sd(t),t;default:if(typeof e.status==\\\"string\\\")e.then(Ke,Ke);else{if(t=tt,t!==null&&100<t.shellSuspendCounter)throw Error(S(482));t=e,t.status=\\\"pending\\\",t.then(function(a){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"fulfilled\\\",i.value=a}},function(a){if(e.status===\\\"pending\\\"){var i=e;i.status=\\\"rejected\\\",i.reason=a}})}switch(e.status){case\\\"fulfilled\\\":return e.value;case\\\"rejected\\\":throw t=e.reason,Sd(t),t}throw na=e,Ei}}function In(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?(na=n,Ei):n}}var na=null;function vd(){if(na===null)throw Error(S(459));var t=na;return na=null,t}function Sd(t){if(t===Ei||t===fr)throw Error(S(483))}var ui=null,vl=0;function uu(t){var e=vl;return vl+=1,ui===null&&(ui=[]),rm(ui,t,e)}function Vi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ru(t,e){throw e.$$typeof===eg?Error(S(525)):(t=Object.prototype.toString.call(e),Error(S(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(e).join(\\\", \\\")+\\\"}\\\":t)))}function sm(t){function e(h,f){if(t){var p=h.deletions;p===null?(h.deletions=[f],h.flags|=16):p.push(f)}}function n(h,f){if(!t)return null;for(;f!==null;)e(h,f),f=f.sibling;return null}function a(h){for(var f=new Map;h!==null;)h.key!==null?f.set(h.key,h):f.set(h.index,h),h=h.sibling;return f}function i(h,f){return h=$e(h,f),h.index=0,h.sibling=null,h}function l(h,f,p){return h.index=p,t?(p=h.alternate,p!==null?(p=p.index,p<f?(h.flags|=67108866,f):p):(h.flags|=67108866,f)):(h.flags|=1048576,f)}function u(h){return t&&h.alternate===null&&(h.flags|=67108866),h}function r(h,f,p,v){return f===null||f.tag!==6?(f=ys(p,h.mode,v),f.return=h,f):(f=i(f,p),f.return=h,f)}function s(h,f,p,v){var R=p.type;return R===Ga?o(h,f,p.props.children,v,p.key):f!==null&&(f.elementType===R||typeof R==\\\"object\\\"&&R!==null&&R.$$typeof===mn&&In(R)===f.type)?(f=i(f,p.props),Vi(f,p),f.return=h,f):(f=Su(p.type,p.key,p.props,null,h.mode,v),Vi(f,p),f.return=h,f)}function c(h,f,p,v){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=gs(p,h.mode,v),f.return=h,f):(f=i(f,p.children||[]),f.return=h,f)}function o(h,f,p,v,R){return f===null||f.tag!==7?(f=ta(p,h.mode,v,R),f.return=h,f):(f=i(f,p),f.return=h,f)}function d(h,f,p){if(typeof f==\\\"string\\\"&&f!==\\\"\\\"||typeof f==\\\"number\\\"||typeof f==\\\"bigint\\\")return f=ys(\\\"\\\"+f,h.mode,p),f.return=h,f;if(typeof f==\\\"object\\\"&&f!==null){switch(f.$$typeof){case Il:return p=Su(f.type,f.key,f.props,null,h.mode,p),Vi(p,f),p.return=h,p;case Ji:return f=gs(f,h.mode,p),f.return=h,f;case mn:return f=In(f),d(h,f,p)}if($i(f)||Yi(f))return f=ta(f,h.mode,p,null),f.return=h,f;if(typeof f.then==\\\"function\\\")return d(h,uu(f),p);if(f.$$typeof===Qe)return d(h,lu(h,f),p);ru(h,f)}return null}function m(h,f,p,v){var R=f!==null?f.key:null;if(typeof p==\\\"string\\\"&&p!==\\\"\\\"||typeof p==\\\"number\\\"||typeof p==\\\"bigint\\\")return R!==null?null:r(h,f,\\\"\\\"+p,v);if(typeof p==\\\"object\\\"&&p!==null){switch(p.$$typeof){case Il:return p.key===R?s(h,f,p,v):null;case Ji:return p.key===R?c(h,f,p,v):null;case mn:return p=In(p),m(h,f,p,v)}if($i(p)||Yi(p))return R!==null?null:o(h,f,p,v,null);if(typeof p.then==\\\"function\\\")return m(h,f,uu(p),v);if(p.$$typeof===Qe)return m(h,f,lu(h,p),v);ru(h,p)}return null}function y(h,f,p,v,R){if(typeof v==\\\"string\\\"&&v!==\\\"\\\"||typeof v==\\\"number\\\"||typeof v==\\\"bigint\\\")return h=h.get(p)||null,r(f,h,\\\"\\\"+v,R);if(typeof v==\\\"object\\\"&&v!==null){switch(v.$$typeof){case Il:return h=h.get(v.key===null?p:v.key)||null,s(f,h,v,R);case Ji:return h=h.get(v.key===null?p:v.key)||null,c(f,h,v,R);case mn:return v=In(v),y(h,f,p,v,R)}if($i(v)||Yi(v))return h=h.get(p)||null,o(f,h,v,R,null);if(typeof v.then==\\\"function\\\")return y(h,f,p,uu(v),R);if(v.$$typeof===Qe)return y(h,f,p,lu(f,v),R);ru(f,v)}return null}function b(h,f,p,v){for(var R=null,V=null,A=f,C=f=0,q=null;A!==null&&C<p.length;C++){A.index>C?(q=A,A=null):q=A.sibling;var G=m(h,A,p[C],v);if(G===null){A===null&&(A=q);break}t&&A&&G.alternate===null&&e(h,A),f=l(G,f,C),V===null?R=G:V.sibling=G,V=G,A=q}if(C===p.length)return n(h,A),X&&Ge(h,C),R;if(A===null){for(;C<p.length;C++)A=d(h,p[C],v),A!==null&&(f=l(A,f,C),V===null?R=A:V.sibling=A,V=A);return X&&Ge(h,C),R}for(A=a(A);C<p.length;C++)q=y(A,h,C,p[C],v),q!==null&&(t&&q.alternate!==null&&A.delete(q.key===null?C:q.key),f=l(q,f,C),V===null?R=q:V.sibling=q,V=q);return t&&A.forEach(function(Ee){return e(h,Ee)}),X&&Ge(h,C),R}function N(h,f,p,v){if(p==null)throw Error(S(151));for(var R=null,V=null,A=f,C=f=0,q=null,G=p.next();A!==null&&!G.done;C++,G=p.next()){A.index>C?(q=A,A=null):q=A.sibling;var Ee=m(h,A,G.value,v);if(Ee===null){A===null&&(A=q);break}t&&A&&Ee.alternate===null&&e(h,A),f=l(Ee,f,C),V===null?R=Ee:V.sibling=Ee,V=Ee,A=q}if(G.done)return n(h,A),X&&Ge(h,C),R;if(A===null){for(;!G.done;C++,G=p.next())G=d(h,G.value,v),G!==null&&(f=l(G,f,C),V===null?R=G:V.sibling=G,V=G);return X&&Ge(h,C),R}for(A=a(A);!G.done;C++,G=p.next())G=y(A,h,C,G.value,v),G!==null&&(t&&G.alternate!==null&&A.delete(G.key===null?C:G.key),f=l(G,f,C),V===null?R=G:V.sibling=G,V=G);return t&&A.forEach(function(za){return e(h,za)}),X&&Ge(h,C),R}function K(h,f,p,v){if(typeof p==\\\"object\\\"&&p!==null&&p.type===Ga&&p.key===null&&(p=p.props.children),typeof p==\\\"object\\\"&&p!==null){switch(p.$$typeof){case Il:t:{for(var R=p.key;f!==null;){if(f.key===R){if(R=p.type,R===Ga){if(f.tag===7){n(h,f.sibling),v=i(f,p.props.children),v.return=h,h=v;break t}}else if(f.elementType===R||typeof R==\\\"object\\\"&&R!==null&&R.$$typeof===mn&&In(R)===f.type){n(h,f.sibling),v=i(f,p.props),Vi(v,p),v.return=h,h=v;break t}n(h,f);break}else e(h,f);f=f.sibling}p.type===Ga?(v=ta(p.props.children,h.mode,v,p.key),v.return=h,h=v):(v=Su(p.type,p.key,p.props,null,h.mode,v),Vi(v,p),v.return=h,h=v)}return u(h);case Ji:t:{for(R=p.key;f!==null;){if(f.key===R)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(h,f.sibling),v=i(f,p.children||[]),v.return=h,h=v;break t}else{n(h,f);break}else e(h,f);f=f.sibling}v=gs(p,h.mode,v),v.return=h,h=v}return u(h);case mn:return p=In(p),K(h,f,p,v)}if($i(p))return b(h,f,p,v);if(Yi(p)){if(R=Yi(p),typeof R!=\\\"function\\\")throw Error(S(150));return p=R.call(p),N(h,f,p,v)}if(typeof p.then==\\\"function\\\")return K(h,f,uu(p),v);if(p.$$typeof===Qe)return K(h,f,lu(h,p),v);ru(h,p)}return typeof p==\\\"string\\\"&&p!==\\\"\\\"||typeof p==\\\"number\\\"||typeof p==\\\"bigint\\\"?(p=\\\"\\\"+p,f!==null&&f.tag===6?(n(h,f.sibling),v=i(f,p),v.return=h,h=v):(n(h,f),v=ys(p,h.mode,v),v.return=h,h=v),u(h)):n(h,f)}return function(h,f,p,v){try{vl=0;var R=K(h,f,p,v);return ui=null,R}catch(A){if(A===Ei||A===fr)throw A;var V=$t(29,A,null,h.mode);return V.lanes=v,V.return=h,V}}}var ua=sm(!0),cm=sm(!1),pn=!1;function Pc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function wn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(J&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=Hu(t),tm(t,null,n),e}return or(t,a,e,n),Hu(t)}function al(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,wh(t,n)}}function Ss(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?i=l=u:l=l.next=u,n=n.next}while(n!==null);l===null?i=l=e:l=l.next=e}else i=l=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var rc=!1;function il(){if(rc){var t=li;if(t!==null)throw t}}function ll(t,e,n,a){rc=!1;var i=t.updateQueue;pn=!1;var l=i.firstBaseUpdate,u=i.lastBaseUpdate,r=i.shared.pending;if(r!==null){i.shared.pending=null;var s=r,c=s.next;s.next=null,u===null?l=c:u.next=c,u=s;var o=t.alternate;o!==null&&(o=o.updateQueue,r=o.lastBaseUpdate,r!==u&&(r===null?o.firstBaseUpdate=c:r.next=c,o.lastBaseUpdate=s))}if(l!==null){var d=i.baseState;u=0,o=c=s=null,r=l;do{var m=r.lane&-536870913,y=m!==r.lane;if(y?(Z&m)===m:(a&m)===m){m!==0&&m===di&&(rc=!0),o!==null&&(o=o.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var b=t,N=r;m=e;var K=n;switch(N.tag){case 1:if(b=N.payload,typeof b==\\\"function\\\"){d=b.call(K,d,m);break t}d=b;break t;case 3:b.flags=b.flags&-65537|128;case 0:if(b=N.payload,m=typeof b==\\\"function\\\"?b.call(K,d,m):b,m==null)break t;d=lt({},d,m);break t;case 2:pn=!0}}m=r.callback,m!==null&&(t.flags|=64,y&&(t.flags|=8192),y=i.callbacks,y===null?i.callbacks=[m]:y.push(m))}else y={lane:m,tag:r.tag,payload:r.payload,callback:r.callback,next:null},o===null?(c=o=y,s=d):o=o.next=y,u|=m;if(r=r.next,r===null){if(r=i.shared.pending,r===null)break;y=r,r=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);o===null&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=o,l===null&&(i.shared.lanes=0),qn|=u,t.lanes=u,t.memoizedState=d}}function om(t,e){if(typeof t!=\\\"function\\\")throw Error(S(191,t));t.call(e)}function fm(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)om(n[t],e)}var hi=Be(null),Lu=Be(0);function _d(t,e){t=nn,et(Lu,t),et(hi,e),nn=t|e.baseLanes}function sc(){et(Lu,nn),et(hi,hi.current)}function to(){nn=Lu.current,Tt(hi),Tt(Lu)}var ne=Be(null),he=null;function gn(t){var e=t.alternate;et(ot,ot.current&1),et(ne,t),he===null&&(e===null||hi.current!==null||e.memoizedState!==null)&&(he=t)}function cc(t){et(ot,ot.current),et(ne,t),he===null&&(he=t)}function dm(t){t.tag===22?(et(ot,ot.current),et(ne,t),he===null&&(he=t)):vn(t)}function vn(){et(ot,ot.current),et(ne,ne.current)}function Jt(t){Tt(ne),he===t&&(he=null),Tt(ot)}var ot=Be(0);function Yu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Rc(n)||Oc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder===\\\"forwards\\\"||e.memoizedProps.revealOrder===\\\"backwards\\\"||e.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||e.memoizedProps.revealOrder===\\\"together\\\")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Pe=0,D=null,P=null,dt=null,Zu=!1,ri=!1,ra=!1,Vu=0,Sl=0,si=null,y1=0;function st(){throw Error(S(321))}function eo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ee(t[n],e[n]))return!1;return!0}function no(t,e,n,a,i,l){return Pe=l,D=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?Vm:mo,ra=!1,l=n(a,i),ra=!1,ri&&(l=mm(e,n,a,i)),hm(t),l}function hm(t){M.H=_l;var e=P!==null&&P.next!==null;if(Pe=0,dt=P=D=null,Zu=!1,Sl=0,si=null,e)throw Error(S(300));t===null||pt||(t=t.dependencies,t!==null&&ju(t)&&(pt=!0))}function mm(t,e,n,a){D=t;var i=0;do{if(ri&&(si=null),Sl=0,ri=!1,25<=i)throw Error(S(301));if(i+=1,dt=P=null,t.updateQueue!=null){var l=t.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}M.H=Gm,l=e(n,a)}while(ri);return l}function g1(){var t=M.H,e=t.useState()[0];return e=typeof e.then==\\\"function\\\"?Cl(e):e,t=t.useState()[0],(P!==null?P.memoizedState:null)!==t&&(D.flags|=1024),e}function ao(){var t=Vu!==0;return Vu=0,t}function io(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function lo(t){if(Zu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Zu=!1}Pe=0,dt=P=D=null,ri=!1,Sl=Vu=0,si=null}function Mt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?D.memoizedState=dt=t:dt=dt.next=t,dt}function ft(){if(P===null){var t=D.alternate;t=t!==null?t.memoizedState:null}else t=P.next;var e=dt===null?D.memoizedState:dt.next;if(e!==null)dt=e,P=t;else{if(t===null)throw D.alternate===null?Error(S(467)):Error(S(310));P=t,t={memoizedState:P.memoizedState,baseState:P.baseState,baseQueue:P.baseQueue,queue:P.queue,next:null},dt===null?D.memoizedState=dt=t:dt=dt.next=t}return dt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cl(t){var e=Sl;return Sl+=1,si===null&&(si=[]),t=rm(si,t,e),e=D,(dt===null?e.memoizedState:dt.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?Vm:mo),t}function hr(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Cl(t);if(t.$$typeof===Qe)return At(t)}throw Error(S(438,String(t)))}function uo(t){var e=null,n=D.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=D.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=dr(),D.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=ng;return e.index++,n}function tn(t,e){return typeof e==\\\"function\\\"?e(t):e}function Tu(t){var e=ft();return ro(e,P,t)}function ro(t,e,n){var a=t.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=n;var i=t.baseQueue,l=a.pending;if(l!==null){if(i!==null){var u=i.next;i.next=l.next,l.next=u}e.baseQueue=i=l,a.pending=null}if(l=t.baseState,i===null)t.memoizedState=l;else{e=i.next;var r=u=null,s=null,c=e,o=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Z&d)===d:(Pe&d)===d){var m=c.revertLane;if(m===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===di&&(o=!0);else if((Pe&m)===m){c=c.next,m===di&&(o=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(r=s=d,u=l):s=s.next=d,D.lanes|=m,qn|=m;d=c.action,ra&&n(l,d),l=c.hasEagerState?c.eagerState:n(l,d)}else m={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(r=s=m,u=l):s=s.next=m,D.lanes|=d,qn|=d;c=c.next}while(c!==null&&c!==e);if(s===null?u=l:s.next=r,!ee(l,t.memoizedState)&&(pt=!0,o&&(n=li,n!==null)))throw n;t.memoizedState=l,t.baseState=u,t.baseQueue=s,a.lastRenderedState=l}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function _s(t){var e=ft(),n=e.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,l=e.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do l=t(l,u.action),u=u.next;while(u!==i);ee(l,e.memoizedState)||(pt=!0),e.memoizedState=l,e.baseQueue===null&&(e.baseState=l),n.lastRenderedState=l}return[l,a]}function pm(t,e,n){var a=D,i=ft(),l=X;if(l){if(n===void 0)throw Error(S(407));n=n()}else n=e();var u=!ee((P||i).memoizedState,n);if(u&&(i.memoizedState=n,pt=!0),i=i.queue,so(vm.bind(null,a,i,t),[t]),i.getSnapshot!==e||u||dt!==null&&dt.memoizedState.tag&1){if(a.flags|=2048,mi(9,{destroy:void 0},gm.bind(null,a,i,n,e),null),tt===null)throw Error(S(349));l||(Pe&127)!==0||ym(a,e,n)}return n}function ym(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=D.updateQueue,e===null?(e=dr(),D.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gm(t,e,n,a){e.value=n,e.getSnapshot=a,Sm(e)&&_m(t)}function vm(t,e,n){return n(function(){Sm(e)&&_m(t)})}function Sm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ee(t,n)}catch{return!0}}function _m(t){var e=da(t,2);e!==null&&kt(e,t,2)}function oc(t){var e=Mt();if(typeof t==\\\"function\\\"){var n=t;if(t=n(),ra){_n(!0);try{n()}finally{_n(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function Tm(t,e,n,a){return t.baseState=n,ro(t,P,typeof a==\\\"function\\\"?a:tn)}function v1(t,e,n,a,i){if(pr(t))throw Error(S(485));if(t=e.action,t!==null){var l={payload:i,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(u){l.listeners.push(u)}};M.T!==null?n(!0):l.isTransition=!1,a(l),n=e.pending,n===null?(l.next=e.pending=l,bm(e,l)):(l.next=n.next,e.pending=n.next=l)}}function bm(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var l=M.T,u={};M.T=u;try{var r=n(i,a),s=M.S;s!==null&&s(u,r),Td(t,e,r)}catch(c){fc(t,e,c)}finally{l!==null&&u.types!==null&&(l.types=u.types),M.T=l}}else try{l=n(i,a),Td(t,e,l)}catch(c){fc(t,e,c)}}function Td(t,e,n){n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?n.then(function(a){bd(t,e,a)},function(a){return fc(t,e,a)}):bd(t,e,n)}function bd(t,e,n){e.status=\\\"fulfilled\\\",e.value=n,Em(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,bm(t,n)))}function fc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status=\\\"rejected\\\",e.reason=n,Em(e),e=e.next;while(e!==a)}t.action=null}function Em(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xm(t,e){return e}function Ed(t,e){if(X){var n=tt.formState;if(n!==null){t:{var a=D;if(X){if(it){e:{for(var i=it,l=de;i.nodeType!==8;){if(!l){i=null;break e}if(i=me(i.nextSibling),i===null){i=null;break e}}l=i.data,i=l===\\\"F!\\\"||l===\\\"F\\\"?i:null}if(i){it=me(i.nextSibling),a=i.data===\\\"F!\\\";break t}}Dn(a)}a=!1}a&&(e=n[0])}}return n=Mt(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xm,lastRenderedState:e},n.queue=a,n=Lm.bind(null,D,a),a.dispatch=n,a=oc(!1),l=ho.bind(null,D,!1,a.queue),a=Mt(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=v1.bind(null,D,i,l,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function xd(t){var e=ft();return Am(e,P,t)}function Am(t,e,n){if(e=ro(t,e,xm)[0],t=Tu(tn)[0],typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\")try{var a=Cl(e)}catch(u){throw u===Ei?fr:u}else a=e;e=ft();var i=e.queue,l=i.dispatch;return n!==e.memoizedState&&(D.flags|=2048,mi(9,{destroy:void 0},S1.bind(null,i,n),null)),[a,l,t]}function S1(t,e){t.action=e}function Ad(t){var e=ft(),n=P;if(n!==null)return Am(e,n,t);ft(),e=e.memoizedState,n=ft();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function mi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=D.updateQueue,e===null&&(e=dr(),D.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Nm(){return ft().memoizedState}function bu(t,e,n,a){var i=Mt();D.flags|=t,i.memoizedState=mi(1|e,{destroy:void 0},n,a===void 0?null:a)}function mr(t,e,n,a){var i=ft();a=a===void 0?null:a;var l=i.memoizedState.inst;P!==null&&a!==null&&eo(a,P.memoizedState.deps)?i.memoizedState=mi(e,l,n,a):(D.flags|=t,i.memoizedState=mi(1|e,l,n,a))}function Nd(t,e){bu(8390656,8,t,e)}function so(t,e){mr(2048,8,t,e)}function _1(t){D.flags|=4;var e=D.updateQueue;if(e===null)e=dr(),D.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function wm(t){var e=ft().memoizedState;return _1({ref:e,nextImpl:t}),function(){if((J&2)!==0)throw Error(S(440));return e.impl.apply(void 0,arguments)}}function Rm(t,e){return mr(4,2,t,e)}function Om(t,e){return mr(4,4,t,e)}function zm(t,e){if(typeof e==\\\"function\\\"){t=t();var n=e(t);return function(){typeof n==\\\"function\\\"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Bm(t,e,n){n=n!=null?n.concat([t]):null,mr(4,4,zm.bind(null,e,t),n)}function co(){}function Mm(t,e){var n=ft();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&eo(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Cm(t,e){var n=ft();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&eo(e,a[1]))return a[0];if(a=t(),ra){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a}function oo(t,e,n){return n===void 0||(Pe&1073741824)!==0&&(Z&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=T0(),D.lanes|=t,qn|=t,n)}function Um(t,e,n,a){return ee(n,e)?n:hi.current!==null?(t=oo(t,n,a),ee(t,e)||(pt=!0),t):(Pe&42)===0||(Pe&1073741824)!==0&&(Z&261930)===0?(pt=!0,t.memoizedState=n):(t=T0(),D.lanes|=t,qn|=t,e)}function Dm(t,e,n,a,i){var l=$.p;$.p=l!==0&&8>l?l:8;var u=M.T,r={};M.T=r,ho(t,!1,e,n);try{var s=i(),c=M.S;if(c!==null&&c(r,s),s!==null&&typeof s==\\\"object\\\"&&typeof s.then==\\\"function\\\"){var o=p1(s,a);ul(t,e,o,te(t))}else ul(t,e,a,te(t))}catch(d){ul(t,e,{then:function(){},status:\\\"rejected\\\",reason:d},te())}finally{$.p=l,u!==null&&r.types!==null&&(u.types=r.types),M.T=u}}function T1(){}function dc(t,e,n,a){if(t.tag!==5)throw Error(S(476));var i=Hm(t).queue;Dm(t,i,e,Pn,n===null?T1:function(){return qm(t),n(a)})}function Hm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Pn,baseState:Pn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Pn},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qm(t){var e=Hm(t);e.next===null&&(e=t.alternate.memoizedState),ul(t,e.next.queue,{},te())}function fo(){return At(El)}function jm(){return ft().memoizedState}function km(){return ft().memoizedState}function b1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=te();t=wn(n);var a=Rn(e,t,n);a!==null&&(kt(a,e,n),al(a,e,n)),e={cache:Fc()},t.payload=e;return}e=e.return}}function E1(t,e,n){var a=te();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pr(t)?Ym(e,n):(n=Qc(t,e,n,a),n!==null&&(kt(n,t,a),Zm(n,e,a)))}function Lm(t,e,n){var a=te();ul(t,e,n,a)}function ul(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pr(t))Ym(e,i);else{var l=t.alternate;if(t.lanes===0&&(l===null||l.lanes===0)&&(l=e.lastRenderedReducer,l!==null))try{var u=e.lastRenderedState,r=l(u,n);if(i.hasEagerState=!0,i.eagerState=r,ee(r,u))return or(t,e,i,0),tt===null&&cr(),!1}catch{}if(n=Qc(t,e,i,a),n!==null)return kt(n,t,a),Zm(n,e,a),!0}return!1}function ho(t,e,n,a){if(a={lane:2,revertLane:bo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},pr(t)){if(e)throw Error(S(479))}else e=Qc(t,n,a,2),e!==null&&kt(e,t,2)}function pr(t){var e=t.alternate;return t===D||e!==null&&e===D}function Ym(t,e){ri=Zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Zm(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,wh(t,n)}}var _l={readContext:At,use:hr,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};_l.useEffectEvent=st;var Vm={readContext:At,use:hr,useCallback:function(t,e){return Mt().memoizedState=[t,e===void 0?null:e],t},useContext:At,useEffect:Nd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bu(4194308,4,zm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return bu(4194308,4,t,e)},useInsertionEffect:function(t,e){bu(4,2,t,e)},useMemo:function(t,e){var n=Mt();e=e===void 0?null:e;var a=t();if(ra){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Mt();if(n!==void 0){var i=n(e);if(ra){_n(!0);try{n(e)}finally{_n(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=E1.bind(null,D,t),[a.memoizedState,t]},useRef:function(t){var e=Mt();return t={current:t},e.memoizedState=t},useState:function(t){t=oc(t);var e=t.queue,n=Lm.bind(null,D,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:co,useDeferredValue:function(t,e){var n=Mt();return oo(n,t,e)},useTransition:function(){var t=oc(!1);return t=Dm.bind(null,D,t.queue,!0,!1),Mt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=D,i=Mt();if(X){if(n===void 0)throw Error(S(407));n=n()}else{if(n=e(),tt===null)throw Error(S(349));(Z&127)!==0||ym(a,e,n)}i.memoizedState=n;var l={value:n,getSnapshot:e};return i.queue=l,Nd(vm.bind(null,a,l,t),[t]),a.flags|=2048,mi(9,{destroy:void 0},gm.bind(null,a,l,n,e),null),n},useId:function(){var t=Mt(),e=tt.identifierPrefix;if(X){var n=Re,a=we;n=(a&~(1<<32-Pt(a)-1)).toString(32)+n,e=\\\"_\\\"+e+\\\"R_\\\"+n,n=Vu++,0<n&&(e+=\\\"H\\\"+n.toString(32)),e+=\\\"_\\\"}else n=y1++,e=\\\"_\\\"+e+\\\"r_\\\"+n.toString(32)+\\\"_\\\";return t.memoizedState=e},useHostTransitionStatus:fo,useFormState:Ed,useActionState:Ed,useOptimistic:function(t){var e=Mt();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ho.bind(null,D,!0,n),n.dispatch=e,[t,e]},useMemoCache:uo,useCacheRefresh:function(){return Mt().memoizedState=b1.bind(null,D)},useEffectEvent:function(t){var e=Mt(),n={impl:t};return e.memoizedState=n,function(){if((J&2)!==0)throw Error(S(440));return n.impl.apply(void 0,arguments)}}},mo={readContext:At,use:hr,useCallback:Mm,useContext:At,useEffect:so,useImperativeHandle:Bm,useInsertionEffect:Rm,useLayoutEffect:Om,useMemo:Cm,useReducer:Tu,useRef:Nm,useState:function(){return Tu(tn)},useDebugValue:co,useDeferredValue:function(t,e){var n=ft();return Um(n,P.memoizedState,t,e)},useTransition:function(){var t=Tu(tn)[0],e=ft().memoizedState;return[typeof t==\\\"boolean\\\"?t:Cl(t),e]},useSyncExternalStore:pm,useId:jm,useHostTransitionStatus:fo,useFormState:xd,useActionState:xd,useOptimistic:function(t,e){var n=ft();return Tm(n,P,t,e)},useMemoCache:uo,useCacheRefresh:km};mo.useEffectEvent=wm;var Gm={readContext:At,use:hr,useCallback:Mm,useContext:At,useEffect:so,useImperativeHandle:Bm,useInsertionEffect:Rm,useLayoutEffect:Om,useMemo:Cm,useReducer:_s,useRef:Nm,useState:function(){return _s(tn)},useDebugValue:co,useDeferredValue:function(t,e){var n=ft();return P===null?oo(n,t,e):Um(n,P.memoizedState,t,e)},useTransition:function(){var t=_s(tn)[0],e=ft().memoizedState;return[typeof t==\\\"boolean\\\"?t:Cl(t),e]},useSyncExternalStore:pm,useId:jm,useHostTransitionStatus:fo,useFormState:Ad,useActionState:Ad,useOptimistic:function(t,e){var n=ft();return P!==null?Tm(n,P,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:uo,useCacheRefresh:km};Gm.useEffectEvent=wm;function Ts(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:lt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var hc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=te(),i=wn(a);i.payload=e,n!=null&&(i.callback=n),e=Rn(t,i,a),e!==null&&(kt(e,t,a),al(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=te(),i=wn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Rn(t,i,a),e!==null&&(kt(e,t,a),al(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=te(),a=wn(n);a.tag=2,e!=null&&(a.callback=e),e=Rn(t,a,n),e!==null&&(kt(e,t,n),al(e,t,n))}};function wd(t,e,n,a,i,l,u){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(a,l,u):e.prototype&&e.prototype.isPureReactComponent?!pl(n,a)||!pl(i,l):!0}function Rd(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps==\\\"function\\\"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&hc.enqueueReplaceState(e,e.state,null)}function sa(t,e){var n=e;if(\\\"ref\\\"in e){n={};for(var a in e)a!==\\\"ref\\\"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=lt({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Xm(t){Du(t)}function Qm(t){console.error(t)}function Km(t){Du(t)}function Gu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Od(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function mc(t,e,n){return n=wn(n),n.tag=3,n.payload={element:null},n.callback=function(){Gu(t,e)},n}function Jm(t){return t=wn(t),t.tag=3,t}function $m(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i==\\\"function\\\"){var l=a.value;t.payload=function(){return i(l)},t.callback=function(){Od(e,n,a)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch==\\\"function\\\"&&(t.callback=function(){Od(e,n,a),typeof i!=\\\"function\\\"&&(On===null?On=new Set([this]):On.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:\\\"\\\"})})}function x1(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a==\\\"object\\\"&&typeof a.then==\\\"function\\\"){if(e=n.alternate,e!==null&&bi(e,n,i,!0),n=ne.current,n!==null){switch(n.tag){case 31:case 13:return he===null?$u():n.alternate===null&&ct===0&&(ct=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===ku?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Ms(t,a,i)),!1;case 22:return n.flags|=65536,a===ku?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Ms(t,a,i)),!1}throw Error(S(435,n.tag))}return Ms(t,a,i),$u(),!1}if(X)return e=ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==ec&&(t=Error(S(422),{cause:a}),gl(fe(t,n)))):(a!==ec&&(e=Error(S(423),{cause:a}),gl(fe(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=fe(a,n),i=mc(t.stateNode,a,i),Ss(t,i),ct!==4&&(ct=2)),!1;var l=Error(S(520),{cause:a});if(l=fe(l,n),cl===null?cl=[l]:cl.push(l),ct!==4&&(ct=2),e===null)return!0;a=fe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=mc(n.stateNode,a,t),Ss(n,t),!1;case 1:if(e=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError==\\\"function\\\"||l!==null&&typeof l.componentDidCatch==\\\"function\\\"&&(On===null||!On.has(l))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Jm(i),$m(i,t,n,a),Ss(n,i),!1}n=n.return}while(n!==null);return!1}var po=Error(S(461)),pt=!1;function bt(t,e,n,a){e.child=t===null?cm(e,null,n,a):ua(e,t.child,n,a)}function zd(t,e,n,a,i){n=n.render;var l=e.ref;if(\\\"ref\\\"in a){var u={};for(var r in a)r!==\\\"ref\\\"&&(u[r]=a[r])}else u=a;return la(e),a=no(t,e,n,u,l,i),r=ao(),t!==null&&!pt?(io(t,e,i),en(t,e,i)):(X&&r&&Jc(e),e.flags|=1,bt(t,e,a,i),e.child)}function Bd(t,e,n,a,i){if(t===null){var l=n.type;return typeof l==\\\"function\\\"&&!Kc(l)&&l.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=l,Fm(t,e,l,a,i)):(t=Su(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(l=t.child,!yo(t,i)){var u=l.memoizedProps;if(n=n.compare,n=n!==null?n:pl,n(u,a)&&t.ref===e.ref)return en(t,e,i)}return e.flags|=1,t=$e(l,a),t.ref=e.ref,t.return=e,e.child=t}function Fm(t,e,n,a,i){if(t!==null){var l=t.memoizedProps;if(pl(l,a)&&t.ref===e.ref)if(pt=!1,e.pendingProps=a=l,yo(t,i))(t.flags&131072)!==0&&(pt=!0);else return e.lanes=t.lanes,en(t,e,i)}return pc(t,e,n,a,i)}function Im(t,e,n,a){var i=a.children,l=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode===\\\"hidden\\\"){if((e.flags&128)!==0){if(l=l!==null?l.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~l}else a=0,e.child=null;return Md(t,e,l,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_u(e,l!==null?l.cachePool:null),l!==null?_d(e,l):sc(),dm(e);else return a=e.lanes=536870912,Md(t,e,l!==null?l.baseLanes|n:n,n,a)}else l!==null?(_u(e,l.cachePool),_d(e,l),vn(e),e.memoizedState=null):(t!==null&&_u(e,null),sc(),vn(e));return bt(t,e,i,n),e.child}function Ii(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Md(t,e,n,a,i){var l=Ic();return l=l===null?null:{parent:mt._currentValue,pool:l},e.memoizedState={baseLanes:n,cachePool:l},t!==null&&_u(e,null),sc(),dm(e),t!==null&&bi(t,e,a,!0),e.childLanes=i,null}function Eu(t,e){return e=Xu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Cd(t,e,n){return ua(e,t.child,null,n),t=Eu(e,e.pendingProps),t.flags|=2,Jt(e),e.memoizedState=null,t}function A1(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(X){if(a.mode===\\\"hidden\\\")return t=Eu(e,a),e.lanes=536870912,Ii(null,t);if(cc(e),(t=it)?(t=V0(t,de),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Un!==null?{id:we,overflow:Re}:null,retryLane:536870912,hydrationErrors:null},n=nm(t),n.return=e,e.child=n,xt=e,it=null)):t=null,t===null)throw Dn(e);return e.lanes=536870912,null}return Eu(e,a)}var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(cc(e),i)if(e.flags&256)e.flags&=-257,e=Cd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(S(558));else if(pt||bi(t,e,n,!1),i=(n&t.childLanes)!==0,pt||i){if(a=tt,a!==null&&(u=Rh(a,n),u!==0&&u!==l.retryLane))throw l.retryLane=u,da(t,u),kt(a,t,u),po;$u(),e=Cd(t,e,n)}else t=l.treeContext,it=me(u.nextSibling),xt=e,X=!0,Nn=null,de=!1,t!==null&&im(e,t),e=Eu(e,a),e.flags|=4096;return e}return t=$e(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function xu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!=\\\"function\\\"&&typeof n!=\\\"object\\\")throw Error(S(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function pc(t,e,n,a,i){return la(e),n=no(t,e,n,a,void 0,i),a=ao(),t!==null&&!pt?(io(t,e,i),en(t,e,i)):(X&&a&&Jc(e),e.flags|=1,bt(t,e,n,i),e.child)}function Ud(t,e,n,a,i,l){return la(e),e.updateQueue=null,n=mm(e,a,n,i),hm(t),a=ao(),t!==null&&!pt?(io(t,e,l),en(t,e,l)):(X&&a&&Jc(e),e.flags|=1,bt(t,e,n,l),e.child)}function Dd(t,e,n,a,i){if(la(e),e.stateNode===null){var l=Wa,u=n.contextType;typeof u==\\\"object\\\"&&u!==null&&(l=At(u)),l=new n(a,l),e.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=hc,e.stateNode=l,l._reactInternals=e,l=e.stateNode,l.props=a,l.state=e.memoizedState,l.refs={},Pc(e),u=n.contextType,l.context=typeof u==\\\"object\\\"&&u!==null?At(u):Wa,l.state=e.memoizedState,u=n.getDerivedStateFromProps,typeof u==\\\"function\\\"&&(Ts(e,n,u,a),l.state=e.memoizedState),typeof n.getDerivedStateFromProps==\\\"function\\\"||typeof l.getSnapshotBeforeUpdate==\\\"function\\\"||typeof l.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof l.componentWillMount!=\\\"function\\\"||(u=l.state,typeof l.componentWillMount==\\\"function\\\"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==\\\"function\\\"&&l.UNSAFE_componentWillMount(),u!==l.state&&hc.enqueueReplaceState(l,l.state,null),ll(e,a,l,i),il(),l.state=e.memoizedState),typeof l.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),a=!0}else if(t===null){l=e.stateNode;var r=e.memoizedProps,s=sa(n,r);l.props=s;var c=l.context,o=n.contextType;u=Wa,typeof o==\\\"object\\\"&&o!==null&&(u=At(o));var d=n.getDerivedStateFromProps;o=typeof d==\\\"function\\\"||typeof l.getSnapshotBeforeUpdate==\\\"function\\\",r=e.pendingProps!==r,o||typeof l.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof l.componentWillReceiveProps!=\\\"function\\\"||(r||c!==u)&&Rd(e,l,a,u),pn=!1;var m=e.memoizedState;l.state=m,ll(e,a,l,i),il(),c=e.memoizedState,r||m!==c||pn?(typeof d==\\\"function\\\"&&(Ts(e,n,d,a),c=e.memoizedState),(s=pn||wd(e,n,s,a,m,c,u))?(o||typeof l.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof l.componentWillMount!=\\\"function\\\"||(typeof l.componentWillMount==\\\"function\\\"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==\\\"function\\\"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount==\\\"function\\\"&&(e.flags|=4194308)):(typeof l.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=c),l.props=a,l.state=c,l.context=u,a=s):(typeof l.componentDidMount==\\\"function\\\"&&(e.flags|=4194308),a=!1)}else{l=e.stateNode,uc(t,e),u=e.memoizedProps,o=sa(n,u),l.props=o,d=e.pendingProps,m=l.context,c=n.contextType,s=Wa,typeof c==\\\"object\\\"&&c!==null&&(s=At(c)),r=n.getDerivedStateFromProps,(c=typeof r==\\\"function\\\"||typeof l.getSnapshotBeforeUpdate==\\\"function\\\")||typeof l.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof l.componentWillReceiveProps!=\\\"function\\\"||(u!==d||m!==s)&&Rd(e,l,a,s),pn=!1,m=e.memoizedState,l.state=m,ll(e,a,l,i),il();var y=e.memoizedState;u!==d||m!==y||pn||t!==null&&t.dependencies!==null&&ju(t.dependencies)?(typeof r==\\\"function\\\"&&(Ts(e,n,r,a),y=e.memoizedState),(o=pn||wd(e,n,o,a,m,y,s)||t!==null&&t.dependencies!==null&&ju(t.dependencies))?(c||typeof l.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof l.componentWillUpdate!=\\\"function\\\"||(typeof l.componentWillUpdate==\\\"function\\\"&&l.componentWillUpdate(a,y,s),typeof l.UNSAFE_componentWillUpdate==\\\"function\\\"&&l.UNSAFE_componentWillUpdate(a,y,s)),typeof l.componentDidUpdate==\\\"function\\\"&&(e.flags|=4),typeof l.getSnapshotBeforeUpdate==\\\"function\\\"&&(e.flags|=1024)):(typeof l.componentDidUpdate!=\\\"function\\\"||u===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!=\\\"function\\\"||u===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=y),l.props=a,l.state=y,l.context=s,a=o):(typeof l.componentDidUpdate!=\\\"function\\\"||u===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!=\\\"function\\\"||u===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),a=!1)}return l=a,xu(t,e),a=(e.flags&128)!==0,l||a?(l=e.stateNode,n=a&&typeof n.getDerivedStateFromError!=\\\"function\\\"?null:l.render(),e.flags|=1,t!==null&&a?(e.child=ua(e,t.child,null,i),e.child=ua(e,null,n,i)):bt(t,e,n,i),e.memoizedState=l.state,t=e.child):t=en(t,e,i),t}function Hd(t,e,n,a){return ia(),e.flags|=256,bt(t,e,n,a),e.child}var bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Es(t){return{baseLanes:t,cachePool:um()}}function xs(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ft),t}function Wm(t,e,n){var a=e.pendingProps,i=!1,l=(e.flags&128)!==0,u;if((u=l)||(u=t!==null&&t.memoizedState===null?!1:(ot.current&2)!==0),u&&(i=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(X){if(i?gn(e):vn(e),(t=it)?(t=V0(t,de),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Un!==null?{id:we,overflow:Re}:null,retryLane:536870912,hydrationErrors:null},n=nm(t),n.return=e,e.child=n,xt=e,it=null)):t=null,t===null)throw Dn(e);return Oc(t)?e.lanes=32:e.lanes=536870912,null}var r=a.children;return a=a.fallback,i?(vn(e),i=e.mode,r=Xu({mode:\\\"hidden\\\",children:r},i),a=ta(a,i,n,null),r.return=e,a.return=e,r.sibling=a,e.child=r,a=e.child,a.memoizedState=Es(n),a.childLanes=xs(t,u,n),e.memoizedState=bs,Ii(null,a)):(gn(e),yc(e,r))}var s=t.memoizedState;if(s!==null&&(r=s.dehydrated,r!==null)){if(l)e.flags&256?(gn(e),e.flags&=-257,e=As(t,e,n)):e.memoizedState!==null?(vn(e),e.child=t.child,e.flags|=128,e=null):(vn(e),r=a.fallback,i=e.mode,a=Xu({mode:\\\"visible\\\",children:a.children},i),r=ta(r,i,n,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,ua(e,t.child,null,n),a=e.child,a.memoizedState=Es(n),a.childLanes=xs(t,u,n),e.memoizedState=bs,e=Ii(null,a));else if(gn(e),Oc(r)){if(u=r.nextSibling&&r.nextSibling.dataset,u)var c=u.dgst;u=c,a=Error(S(419)),a.stack=\\\"\\\",a.digest=u,gl({value:a,source:null,stack:null}),e=As(t,e,n)}else if(pt||bi(t,e,n,!1),u=(n&t.childLanes)!==0,pt||u){if(u=tt,u!==null&&(a=Rh(u,n),a!==0&&a!==s.retryLane))throw s.retryLane=a,da(t,a),kt(u,t,a),po;Rc(r)||$u(),e=As(t,e,n)}else Rc(r)?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,it=me(r.nextSibling),xt=e,X=!0,Nn=null,de=!1,t!==null&&im(e,t),e=yc(e,a.children),e.flags|=4096);return e}return i?(vn(e),r=a.fallback,i=e.mode,s=t.child,c=s.sibling,a=$e(s,{mode:\\\"hidden\\\",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,c!==null?r=$e(c,r):(r=ta(r,i,n,null),r.flags|=2),r.return=e,a.return=e,a.sibling=r,e.child=a,Ii(null,a),a=e.child,r=t.child.memoizedState,r===null?r=Es(n):(i=r.cachePool,i!==null?(s=mt._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=um(),r={baseLanes:r.baseLanes|n,cachePool:i}),a.memoizedState=r,a.childLanes=xs(t,u,n),e.memoizedState=bs,Ii(t.child,a)):(gn(e),n=t.child,t=n.sibling,n=$e(n,{mode:\\\"visible\\\",children:a.children}),n.return=e,n.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=n,e.memoizedState=null,n)}function yc(t,e){return e=Xu({mode:\\\"visible\\\",children:e},t.mode),e.return=t,t.child=e}function Xu(t,e){return t=$t(22,t,null,e),t.lanes=0,t}function As(t,e,n){return ua(e,t.child,null,n),t=yc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function qd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),ac(t.return,e,n)}function Ns(t,e,n,a,i,l){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:l}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=n,u.tailMode=i,u.treeForkCount=l)}function Pm(t,e,n){var a=e.pendingProps,i=a.revealOrder,l=a.tail;a=a.children;var u=ot.current,r=(u&2)!==0;if(r?(u=u&1|2,e.flags|=128):u&=1,et(ot,u),bt(t,e,a,n),a=X?yl:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qd(t,n,e);else if(t.tag===19)qd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case\\\"forwards\\\":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Yu(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ns(e,!1,i,n,l,a);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Yu(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ns(e,!0,n,null,l,a);break;case\\\"together\\\":Ns(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function en(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(bi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(S(153));if(e.child!==null){for(t=e.child,n=$e(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=$e(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ju(t)))}function N1(t,e,n){switch(e.tag){case 3:Bu(e,e.stateNode.containerInfo),yn(e,mt,t.memoizedState.cache),ia();break;case 27:case 5:Gs(e);break;case 4:Bu(e,e.stateNode.containerInfo);break;case 10:yn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,cc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(gn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Wm(t,e,n):(gn(e),t=en(t,e,n),t!==null?t.sibling:null);gn(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(bi(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return Pm(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),et(ot,ot.current),a)break;return null;case 22:return e.lanes=0,Im(t,e,n,e.pendingProps);case 24:yn(e,mt,t.memoizedState.cache)}return en(t,e,n)}function t0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)pt=!0;else{if(!yo(t,n)&&(e.flags&128)===0)return pt=!1,N1(t,e,n);pt=(t.flags&131072)!==0}else pt=!1,X&&(e.flags&1048576)!==0&&am(e,yl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=In(e.elementType),e.type=t,typeof t==\\\"function\\\")Kc(t)?(a=sa(t,a),e.tag=1,e=Dd(null,e,t,a,n)):(e.tag=0,e=pc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===Cc){e.tag=11,e=zd(null,e,t,a,n);break t}else if(i===Uc){e.tag=14,e=Bd(null,e,t,a,n);break t}}throw e=Zs(t)||t,Error(S(306,e,\\\"\\\"))}}return e;case 0:return pc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=sa(a,e.pendingProps),Dd(t,e,a,i,n);case 3:t:{if(Bu(e,e.stateNode.containerInfo),t===null)throw Error(S(387));a=e.pendingProps;var l=e.memoizedState;i=l.element,uc(t,e),ll(e,a,null,n);var u=e.memoizedState;if(a=u.cache,yn(e,mt,a),a!==l.cache&&ic(e,[mt],n,!0),il(),a=u.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){e=Hd(t,e,a,n);break t}else if(a!==i){i=fe(Error(S(424)),e),gl(i),e=Hd(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,it=me(t.firstChild),xt=e,X=!0,Nn=null,de=!0,n=cm(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),a===i){e=en(t,e,n);break t}bt(t,e,a,n)}e=e.child}return e;case 26:return xu(t,e),t===null?(n=lh(e.type,null,e.pendingProps,null))?e.memoizedState=n:X||(n=e.type,t=e.pendingProps,a=Pu(An.current).createElement(n),a[Et]=e,a[Lt]=t,Nt(a,n,t),_t(a),e.stateNode=a):e.memoizedState=lh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Gs(e),t===null&&X&&(a=e.stateNode=G0(e.type,e.pendingProps,An.current),xt=e,de=!0,i=it,kn(e.type)?(zc=i,it=me(a.firstChild)):it=i),bt(t,e,e.pendingProps.children,n),xu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&X&&((i=a=it)&&(a=tv(a,e.type,e.pendingProps,de),a!==null?(e.stateNode=a,xt=e,it=me(a.firstChild),de=!1,i=!0):i=!1),i||Dn(e)),Gs(e),i=e.type,l=e.pendingProps,u=t!==null?t.memoizedProps:null,a=l.children,Nc(i,l)?a=null:u!==null&&Nc(i,u)&&(e.flags|=32),e.memoizedState!==null&&(i=no(t,e,g1,null,null,n),El._currentValue=i),xu(t,e),bt(t,e,a,n),e.child;case 6:return t===null&&X&&((t=n=it)&&(n=ev(n,e.pendingProps,de),n!==null?(e.stateNode=n,xt=e,it=null,t=!0):t=!1),t||Dn(e)),null;case 13:return Wm(t,e,n);case 4:return Bu(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ua(e,null,a,n):bt(t,e,a,n),e.child;case 11:return zd(t,e,e.type,e.pendingProps,n);case 7:return bt(t,e,e.pendingProps,n),e.child;case 8:return bt(t,e,e.pendingProps.children,n),e.child;case 12:return bt(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,yn(e,e.type,a.value),bt(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,la(e),i=At(i),a=a(i),e.flags|=1,bt(t,e,a,n),e.child;case 14:return Bd(t,e,e.type,e.pendingProps,n);case 15:return Fm(t,e,e.type,e.pendingProps,n);case 19:return Pm(t,e,n);case 31:return A1(t,e,n);case 22:return Im(t,e,n,e.pendingProps);case 24:return la(e),a=At(mt),t===null?(i=Ic(),i===null&&(i=tt,l=Fc(),i.pooledCache=l,l.refCount++,l!==null&&(i.pooledCacheLanes|=n),i=l),e.memoizedState={parent:a,cache:i},Pc(e),yn(e,mt,i)):((t.lanes&n)!==0&&(uc(t,e),ll(e,null,null,n),il()),i=t.memoizedState,l=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),yn(e,mt,a)):(a=l.cache,yn(e,mt,a),a!==i.cache&&ic(e,[mt],n,!0))),bt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(S(156,e.tag))}function Le(t){t.flags|=4}function ws(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(x0())t.flags|=8192;else throw na=ku,Wc}else t.flags&=-16777217}function jd(t,e){if(e.type!==\\\"stylesheet\\\"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!K0(e))if(x0())t.flags|=8192;else throw na=ku,Wc}function su(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ah():536870912,t.lanes|=e,pi|=e)}function Gi(t,e){if(!X)switch(t.tailMode){case\\\"hidden\\\":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case\\\"collapsed\\\":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function at(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function w1(t,e,n){var a=e.pendingProps;switch($c(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(e),null;case 1:return at(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Fe(mt),ci(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(La(e)?Le(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,vs())),at(e),null;case 26:var i=e.type,l=e.memoizedState;return t===null?(Le(e),l!==null?(at(e),jd(e,l)):(at(e),ws(e,i,null,a,n))):l?l!==t.memoizedState?(Le(e),at(e),jd(e,l)):(at(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Le(e),at(e),ws(e,i,t,a,n)),null;case 27:if(Mu(e),n=An.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Le(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return at(e),null}t=ze.current,La(e)?hd(e,t):(t=G0(i,a,n),e.stateNode=t,Le(e))}return at(e),null;case 5:if(Mu(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Le(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return at(e),null}if(l=ze.current,La(e))hd(e,l);else{var u=Pu(An.current);switch(l){case 1:l=u.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case 2:l=u.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;default:switch(i){case\\\"svg\\\":l=u.createElementNS(\\\"http://www.w3.org/2000/svg\\\",i);break;case\\\"math\\\":l=u.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",i);break;case\\\"script\\\":l=u.createElement(\\\"div\\\"),l.innerHTML=\\\"<script><\\\\/script>\\\",l=l.removeChild(l.firstChild);break;case\\\"select\\\":l=typeof a.is==\\\"string\\\"?u.createElement(\\\"select\\\",{is:a.is}):u.createElement(\\\"select\\\"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is==\\\"string\\\"?u.createElement(i,{is:a.is}):u.createElement(i)}}l[Et]=e,l[Lt]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)l.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=l;t:switch(Nt(l,i,a),i){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":a=!!a.autoFocus;break t;case\\\"img\\\":a=!0;break t;default:a=!1}a&&Le(e)}}return at(e),ws(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Le(e);else{if(typeof a!=\\\"string\\\"&&e.stateNode===null)throw Error(S(166));if(t=An.current,La(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=xt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[Et]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||L0(t.nodeValue,n)),t||Dn(e,!0)}else t=Pu(t).createTextNode(a),t[Et]=e,e.stateNode=t}return at(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=La(e),n!==null){if(t===null){if(!a)throw Error(S(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(557));t[Et]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;at(e),t=!1}else n=vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Jt(e),e):(Jt(e),null);if((e.flags&128)!==0)throw Error(S(558))}return at(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=La(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(S(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(S(317));i[Et]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;at(e),i=!1}else i=vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Jt(e),e):(Jt(e),null)}return Jt(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),su(e,e.updateQueue),at(e),null);case 4:return ci(),t===null&&Eo(e.stateNode.containerInfo),at(e),null;case 10:return Fe(e.type),at(e),null;case 19:if(Tt(ot),a=e.memoizedState,a===null)return at(e),null;if(i=(e.flags&128)!==0,l=a.rendering,l===null)if(i)Gi(a,!1);else{if(ct!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(l=Yu(t),l!==null){for(e.flags|=128,Gi(a,!1),t=l.updateQueue,e.updateQueue=t,su(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)em(n,t),n=n.sibling;return et(ot,ot.current&1|2),X&&Ge(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&It()>Ku&&(e.flags|=128,i=!0,Gi(a,!1),e.lanes=4194304)}else{if(!i)if(t=Yu(l),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,su(e,t),Gi(a,!0),a.tail===null&&a.tailMode===\\\"hidden\\\"&&!l.alternate&&!X)return at(e),null}else 2*It()-a.renderingStartTime>Ku&&n!==536870912&&(e.flags|=128,i=!0,Gi(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(t=a.last,t!==null?t.sibling=l:e.child=l,a.last=l)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=It(),t.sibling=null,n=ot.current,et(ot,i?n&1|2:n&1),X&&Ge(e,a.treeForkCount),t):(at(e),null);case 22:case 23:return Jt(e),to(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(at(e),e.subtreeFlags&6&&(e.flags|=8192)):at(e),n=e.updateQueue,n!==null&&su(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&Tt(ea),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Fe(mt),at(e),null;case 25:return null;case 30:return null}throw Error(S(156,e.tag))}function R1(t,e){switch($c(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Fe(mt),ci(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mu(e),null;case 31:if(e.memoizedState!==null){if(Jt(e),e.alternate===null)throw Error(S(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Jt(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(S(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Tt(ot),null;case 4:return ci(),null;case 10:return Fe(e.type),null;case 22:case 23:return Jt(e),to(),t!==null&&Tt(ea),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Fe(mt),null;case 25:return null;default:return null}}function e0(t,e){switch($c(e),e.tag){case 3:Fe(mt),ci();break;case 26:case 27:case 5:Mu(e);break;case 4:ci();break;case 31:e.memoizedState!==null&&Jt(e);break;case 13:Jt(e);break;case 19:Tt(ot);break;case 10:Fe(e.type);break;case 22:case 23:Jt(e),to(),t!==null&&Tt(ea);break;case 24:Fe(mt)}}function Ul(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var l=n.create,u=n.inst;a=l(),u.destroy=a}n=n.next}while(n!==i)}}catch(r){I(e,e.return,r)}}function Hn(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var l=i.next;a=l;do{if((a.tag&t)===t){var u=a.inst,r=u.destroy;if(r!==void 0){u.destroy=void 0,i=e;var s=n,c=r;try{c()}catch(o){I(i,s,o)}}}a=a.next}while(a!==l)}}catch(o){I(e,e.return,o)}}function n0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{fm(e,n)}catch(a){I(t,t.return,a)}}}function a0(t,e,n){n.props=sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){I(t,e,a)}}function rl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n==\\\"function\\\"?t.refCleanup=n(a):n.current=a}}catch(i){I(t,e,i)}}function Oe(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a==\\\"function\\\")try{a()}catch(i){I(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n==\\\"function\\\")try{n(null)}catch(i){I(t,e,i)}else n.current=null}function i0(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n.autoFocus&&a.focus();break t;case\\\"img\\\":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){I(t,t.return,i)}}function Rs(t,e,n){try{var a=t.stateNode;J1(a,t.type,n,e),a[Lt]=e}catch(i){I(t,t.return,i)}}function l0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function Os(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||l0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function gc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ke));else if(a!==4&&(a===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(gc(t,e,n),t=t.sibling;t!==null;)gc(t,e,n),t=t.sibling}function Qu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Qu(t,e,n),t=t.sibling;t!==null;)Qu(t,e,n),t=t.sibling}function u0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Nt(e,a,n),e[Et]=t,e[Lt]=n}catch(l){I(t,t.return,l)}}var Xe=!1,ht=!1,zs=!1,kd=typeof WeakSet==\\\"function\\\"?WeakSet:Set,St=null;function O1(t,e){if(t=t.containerInfo,xc=ar,t=Kh(t),Gc(t)){if(\\\"selectionStart\\\"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break t}var u=0,r=-1,s=-1,c=0,o=0,d=t,m=null;e:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(r=u+i),d!==l||a!==0&&d.nodeType!==3||(s=u+a),d.nodeType===3&&(u+=d.nodeValue.length),(y=d.firstChild)!==null;)m=d,d=y;for(;;){if(d===t)break e;if(m===n&&++c===i&&(r=u),m===l&&++o===a&&(s=u),(y=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=y}n=r===-1||s===-1?null:{start:r,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ac={focusedElem:t,selectionRange:n},ar=!1,St=e;St!==null;)if(e=St,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,St=t;else for(;St!==null;){switch(e=St,l=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&l!==null){t=void 0,n=e,i=l.memoizedProps,l=l.memoizedState,a=n.stateNode;try{var b=sa(n.type,i);t=a.getSnapshotBeforeUpdate(b,l),a.__reactInternalSnapshotBeforeUpdate=t}catch(N){I(n,n.return,N)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wc(t);else if(n===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":wc(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(S(163))}if(t=e.sibling,t!==null){t.return=e.return,St=t;break}St=e.return}}function r0(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ze(t,n),a&4&&Ul(5,n);break;case 1:if(Ze(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(u){I(n,n.return,u)}else{var i=sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){I(n,n.return,u)}}a&64&&n0(n),a&512&&rl(n,n.return);break;case 3:if(Ze(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{fm(t,e)}catch(u){I(n,n.return,u)}}break;case 27:e===null&&a&4&&u0(n);case 26:case 5:Ze(t,n),e===null&&a&4&&i0(n),a&512&&rl(n,n.return);break;case 12:Ze(t,n);break;case 31:Ze(t,n),a&4&&o0(t,n);break;case 13:Ze(t,n),a&4&&f0(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=j1.bind(null,n),nv(t,n))));break;case 22:if(a=n.memoizedState!==null||Xe,!a){e=e!==null&&e.memoizedState!==null||ht,i=Xe;var l=ht;Xe=a,(ht=e)&&!l?Ve(t,n,(n.subtreeFlags&8772)!==0):Ze(t,n),Xe=i,ht=l}break;case 30:break;default:Ze(t,n)}}function s0(t){var e=t.alternate;e!==null&&(t.alternate=null,s0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&jc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var rt=null,qt=!1;function Ye(t,e,n){for(n=n.child;n!==null;)c0(t,e,n),n=n.sibling}function c0(t,e,n){if(Wt&&typeof Wt.onCommitFiberUnmount==\\\"function\\\")try{Wt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 26:ht||Oe(n,e),Ye(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ht||Oe(n,e);var a=rt,i=qt;kn(n.type)&&(rt=n.stateNode,qt=!1),Ye(t,e,n),fl(n.stateNode),rt=a,qt=i;break;case 5:ht||Oe(n,e);case 6:if(a=rt,i=qt,rt=null,Ye(t,e,n),rt=a,qt=i,rt!==null)if(qt)try{(rt.nodeType===9?rt.body:rt.nodeName===\\\"HTML\\\"?rt.ownerDocument.body:rt).removeChild(n.stateNode)}catch(l){I(n,e,l)}else try{rt.removeChild(n.stateNode)}catch(l){I(n,e,l)}break;case 18:rt!==null&&(qt?(t=rt,th(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,n.stateNode),Si(t)):th(rt,n.stateNode));break;case 4:a=rt,i=qt,rt=n.stateNode.containerInfo,qt=!0,Ye(t,e,n),rt=a,qt=i;break;case 0:case 11:case 14:case 15:Hn(2,n,e),ht||Hn(4,n,e),Ye(t,e,n);break;case 1:ht||(Oe(n,e),a=n.stateNode,typeof a.componentWillUnmount==\\\"function\\\"&&a0(n,e,a)),Ye(t,e,n);break;case 21:Ye(t,e,n);break;case 22:ht=(a=ht)||n.memoizedState!==null,Ye(t,e,n),ht=a;break;default:Ye(t,e,n)}}function o0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Si(t)}catch(n){I(e,e.return,n)}}}function f0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Si(t)}catch(n){I(e,e.return,n)}}function z1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new kd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new kd),e;default:throw Error(S(435,t.tag))}}function cu(t,e){var n=z1(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=k1.bind(null,t,a);a.then(i,i)}})}function Dt(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],l=t,u=e,r=u;t:for(;r!==null;){switch(r.tag){case 27:if(kn(r.type)){rt=r.stateNode,qt=!1;break t}break;case 5:rt=r.stateNode,qt=!1;break t;case 3:case 4:rt=r.stateNode.containerInfo,qt=!0;break t}r=r.return}if(rt===null)throw Error(S(160));c0(l,u,i),rt=null,qt=!1,l=i.alternate,l!==null&&(l.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)d0(e,t),e=e.sibling}var _e=null;function d0(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Dt(e,t),Ht(t),a&4&&(Hn(3,t,t.return),Ul(3,t),Hn(5,t,t.return));break;case 1:Dt(e,t),Ht(t),a&512&&(ht||n===null||Oe(n,n.return)),a&64&&Xe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=_e;if(Dt(e,t),Ht(t),a&512&&(ht||n===null||Oe(n,n.return)),a&4){var l=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case\\\"title\\\":l=i.getElementsByTagName(\\\"title\\\")[0],(!l||l[zl]||l[Et]||l.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||l.hasAttribute(\\\"itemprop\\\"))&&(l=i.createElement(a),i.head.insertBefore(l,i.querySelector(\\\"head > title\\\"))),Nt(l,a,n),l[Et]=t,_t(l),a=l;break t;case\\\"link\\\":var u=rh(\\\"link\\\",\\\"href\\\",i).get(a+(n.href||\\\"\\\"));if(u){for(var r=0;r<u.length;r++)if(l=u[r],l.getAttribute(\\\"href\\\")===(n.href==null||n.href===\\\"\\\"?null:n.href)&&l.getAttribute(\\\"rel\\\")===(n.rel==null?null:n.rel)&&l.getAttribute(\\\"title\\\")===(n.title==null?null:n.title)&&l.getAttribute(\\\"crossorigin\\\")===(n.crossOrigin==null?null:n.crossOrigin)){u.splice(r,1);break e}}l=i.createElement(a),Nt(l,a,n),i.head.appendChild(l);break;case\\\"meta\\\":if(u=rh(\\\"meta\\\",\\\"content\\\",i).get(a+(n.content||\\\"\\\"))){for(r=0;r<u.length;r++)if(l=u[r],l.getAttribute(\\\"content\\\")===(n.content==null?null:\\\"\\\"+n.content)&&l.getAttribute(\\\"name\\\")===(n.name==null?null:n.name)&&l.getAttribute(\\\"property\\\")===(n.property==null?null:n.property)&&l.getAttribute(\\\"http-equiv\\\")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute(\\\"charset\\\")===(n.charSet==null?null:n.charSet)){u.splice(r,1);break e}}l=i.createElement(a),Nt(l,a,n),i.head.appendChild(l);break;default:throw Error(S(468,a))}l[Et]=t,_t(l),a=l}t.stateNode=a}else sh(i,t.type,t.stateNode);else t.stateNode=uh(i,a,t.memoizedProps);else l!==a?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,a===null?sh(i,t.type,t.stateNode):uh(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Rs(t,t.memoizedProps,n.memoizedProps)}break;case 27:Dt(e,t),Ht(t),a&512&&(ht||n===null||Oe(n,n.return)),n!==null&&a&4&&Rs(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Dt(e,t),Ht(t),a&512&&(ht||n===null||Oe(n,n.return)),t.flags&32){i=t.stateNode;try{fi(i,\\\"\\\")}catch(b){I(t,t.return,b)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,Rs(t,i,n!==null?n.memoizedProps:i)),a&1024&&(zs=!0);break;case 6:if(Dt(e,t),Ht(t),a&4){if(t.stateNode===null)throw Error(S(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(b){I(t,t.return,b)}}break;case 3:if(wu=null,i=_e,_e=tr(e.containerInfo),Dt(e,t),_e=i,Ht(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Si(e.containerInfo)}catch(b){I(t,t.return,b)}zs&&(zs=!1,h0(t));break;case 4:a=_e,_e=tr(t.stateNode.containerInfo),Dt(e,t),Ht(t),_e=a;break;case 12:Dt(e,t),Ht(t);break;case 31:Dt(e,t),Ht(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,cu(t,a)));break;case 13:Dt(e,t),Ht(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(yr=It()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,cu(t,a)));break;case 22:i=t.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=Xe,o=ht;if(Xe=c||i,ht=o||s,Dt(e,t),ht=o,Xe=c,Ht(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||s||Xe||ht||Wn(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){s=n=e;try{if(l=s.stateNode,i)u=l.style,typeof u.setProperty==\\\"function\\\"?u.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):u.display=\\\"none\\\";else{r=s.stateNode;var d=s.memoizedProps.style,m=d!=null&&d.hasOwnProperty(\\\"display\\\")?d.display:null;r.style.display=m==null||typeof m==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+m).trim()}}catch(b){I(s,s.return,b)}}}else if(e.tag===6){if(n===null){s=e;try{s.stateNode.nodeValue=i?\\\"\\\":s.memoizedProps}catch(b){I(s,s.return,b)}}}else if(e.tag===18){if(n===null){s=e;try{var y=s.stateNode;i?eh(y,!0):eh(s.stateNode,!1)}catch(b){I(s,s.return,b)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,cu(t,n))));break;case 19:Dt(e,t),Ht(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,cu(t,a)));break;case 30:break;case 21:break;default:Dt(e,t),Ht(t)}}function Ht(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(l0(a)){n=a;break}a=a.return}if(n==null)throw Error(S(160));switch(n.tag){case 27:var i=n.stateNode,l=Os(t);Qu(t,l,i);break;case 5:var u=n.stateNode;n.flags&32&&(fi(u,\\\"\\\"),n.flags&=-33);var r=Os(t);Qu(t,r,u);break;case 3:case 4:var s=n.stateNode.containerInfo,c=Os(t);gc(t,c,s);break;default:throw Error(S(161))}}catch(o){I(t,t.return,o)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function h0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;h0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ze(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)r0(t,e.alternate,e),e=e.sibling}function Wn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Hn(4,e,e.return),Wn(e);break;case 1:Oe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==\\\"function\\\"&&a0(e,e.return,n),Wn(e);break;case 27:fl(e.stateNode);case 26:case 5:Oe(e,e.return),Wn(e);break;case 22:e.memoizedState===null&&Wn(e);break;case 30:Wn(e);break;default:Wn(e)}t=t.sibling}}function Ve(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,l=e,u=l.flags;switch(l.tag){case 0:case 11:case 15:Ve(i,l,n),Ul(4,l);break;case 1:if(Ve(i,l,n),a=l,i=a.stateNode,typeof i.componentDidMount==\\\"function\\\")try{i.componentDidMount()}catch(c){I(a,a.return,c)}if(a=l,i=a.updateQueue,i!==null){var r=a.stateNode;try{var s=i.shared.hiddenCallbacks;if(s!==null)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)om(s[i],r)}catch(c){I(a,a.return,c)}}n&&u&64&&n0(l),rl(l,l.return);break;case 27:u0(l);case 26:case 5:Ve(i,l,n),n&&a===null&&u&4&&i0(l),rl(l,l.return);break;case 12:Ve(i,l,n);break;case 31:Ve(i,l,n),n&&u&4&&o0(i,l);break;case 13:Ve(i,l,n),n&&u&4&&f0(i,l);break;case 22:l.memoizedState===null&&Ve(i,l,n),rl(l,l.return);break;case 30:break;default:Ve(i,l,n)}e=e.sibling}}function go(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ml(n))}function vo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ml(t))}function Se(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)m0(t,e,n,a),e=e.sibling}function m0(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Se(t,e,n,a),i&2048&&Ul(9,e);break;case 1:Se(t,e,n,a);break;case 3:Se(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ml(t)));break;case 12:if(i&2048){Se(t,e,n,a),t=e.stateNode;try{var l=e.memoizedProps,u=l.id,r=l.onPostCommit;typeof r==\\\"function\\\"&&r(u,e.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(s){I(e,e.return,s)}}else Se(t,e,n,a);break;case 31:Se(t,e,n,a);break;case 13:Se(t,e,n,a);break;case 23:break;case 22:l=e.stateNode,u=e.alternate,e.memoizedState!==null?l._visibility&2?Se(t,e,n,a):sl(t,e):l._visibility&2?Se(t,e,n,a):(l._visibility|=2,Za(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&go(u,e);break;case 24:Se(t,e,n,a),i&2048&&vo(e.alternate,e);break;default:Se(t,e,n,a)}}function Za(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var l=t,u=e,r=n,s=a,c=u.flags;switch(u.tag){case 0:case 11:case 15:Za(l,u,r,s,i),Ul(8,u);break;case 23:break;case 22:var o=u.stateNode;u.memoizedState!==null?o._visibility&2?Za(l,u,r,s,i):sl(l,u):(o._visibility|=2,Za(l,u,r,s,i)),i&&c&2048&&go(u.alternate,u);break;case 24:Za(l,u,r,s,i),i&&c&2048&&vo(u.alternate,u);break;default:Za(l,u,r,s,i)}e=e.sibling}}function sl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:sl(n,a),i&2048&&go(a.alternate,a);break;case 24:sl(n,a),i&2048&&vo(a.alternate,a);break;default:sl(n,a)}e=e.sibling}}var Wi=8192;function Ya(t,e,n){if(t.subtreeFlags&Wi)for(t=t.child;t!==null;)p0(t,e,n),t=t.sibling}function p0(t,e,n){switch(t.tag){case 26:Ya(t,e,n),t.flags&Wi&&t.memoizedState!==null&&mv(n,_e,t.memoizedState,t.memoizedProps);break;case 5:Ya(t,e,n);break;case 3:case 4:var a=_e;_e=tr(t.stateNode.containerInfo),Ya(t,e,n),_e=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Wi,Wi=16777216,Ya(t,e,n),Wi=a):Ya(t,e,n));break;default:Ya(t,e,n)}}function y0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Xi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];St=a,v0(a,t)}y0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)g0(t),t=t.sibling}function g0(t){switch(t.tag){case 0:case 11:case 15:Xi(t),t.flags&2048&&Hn(9,t,t.return);break;case 3:Xi(t);break;case 12:Xi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Au(t)):Xi(t);break;default:Xi(t)}}function Au(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];St=a,v0(a,t)}y0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Hn(8,e,e.return),Au(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Au(e));break;default:Au(e)}t=t.sibling}}function v0(t,e){for(;St!==null;){var n=St;switch(n.tag){case 0:case 11:case 15:Hn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ml(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,St=a;else t:for(n=t;St!==null;){a=St;var i=a.sibling,l=a.return;if(s0(a),a===n){St=null;break t}if(i!==null){i.return=l,St=i;break t}St=l}}}var B1={getCacheForType:function(t){var e=At(mt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return At(mt).controller.signal}},M1=typeof WeakMap==\\\"function\\\"?WeakMap:Map,J=0,tt=null,L=null,Z=0,F=0,Kt=null,bn=!1,xi=!1,So=!1,nn=0,ct=0,qn=0,aa=0,_o=0,Ft=0,pi=0,cl=null,jt=null,vc=!1,yr=0,S0=0,Ku=1/0,Ju=null,On=null,yt=0,zn=null,yi=null,Ie=0,Sc=0,_c=null,_0=null,ol=0,Tc=null;function te(){return(J&2)!==0&&Z!==0?Z&-Z:M.T!==null?bo():Oh()}function T0(){if(Ft===0)if((Z&536870912)===0||X){var t=Pl;Pl<<=1,(Pl&3932160)===0&&(Pl=262144),Ft=t}else Ft=536870912;return t=ne.current,t!==null&&(t.flags|=32),Ft}function kt(t,e,n){(t===tt&&(F===2||F===9)||t.cancelPendingCommit!==null)&&(gi(t,0),En(t,Z,Ft,!1)),Ol(t,n),((J&2)===0||t!==tt)&&(t===tt&&((J&2)===0&&(aa|=n),ct===4&&En(t,Z,Ft,!1)),Me(t))}function b0(t,e,n){if((J&6)!==0)throw Error(S(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Rl(t,e),i=a?D1(t,e):Bs(t,e,!0),l=a;do{if(i===0){xi&&!a&&En(t,e,0,!1);break}else{if(n=t.current.alternate,l&&!C1(n)){i=Bs(t,e,!1),l=!1;continue}if(i===2){if(l=e,t.errorRecoveryDisabledLanes&l)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var r=t;i=cl;var s=r.current.memoizedState.isDehydrated;if(s&&(gi(r,u).flags|=256),u=Bs(r,u,!1),u!==2){if(So&&!s){r.errorRecoveryDisabledLanes|=l,aa|=l,i=4;break t}l=jt,jt=i,l!==null&&(jt===null?jt=l:jt.push.apply(jt,l))}i=u}if(l=!1,i!==2)continue}}if(i===1){gi(t,0),En(t,e,0,!0);break}t:{switch(a=t,l=i,l){case 0:case 1:throw Error(S(345));case 4:if((e&4194048)!==e)break;case 6:En(a,e,Ft,!bn);break t;case 2:jt=null;break;case 3:case 5:break;default:throw Error(S(329))}if((e&62914560)===e&&(i=yr+300-It(),10<i)){if(En(a,e,Ft,!bn),lr(a,0,!0)!==0)break t;Ie=e,a.timeoutHandle=Z0(Ld.bind(null,a,n,jt,Ju,vc,e,Ft,aa,pi,bn,l,\\\"Throttled\\\",-0,0),i);break t}Ld(a,n,jt,Ju,vc,e,Ft,aa,pi,bn,l,null,-0,0)}}break}while(!0);Me(t)}function Ld(t,e,n,a,i,l,u,r,s,c,o,d,m,y){if(t.timeoutHandle=-1,d=e.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ke},p0(e,l,d);var b=(l&62914560)===l?yr-It():(l&4194048)===l?S0-It():0;if(b=pv(d,b),b!==null){Ie=l,t.cancelPendingCommit=b(Zd.bind(null,t,e,l,n,a,i,u,r,s,o,d,null,m,y)),En(t,l,u,!c);return}}Zd(t,e,l,n,a,i,u,r,s)}function C1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],l=i.getSnapshot;i=i.value;try{if(!ee(l(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function En(t,e,n,a){e&=~_o,e&=~aa,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var l=31-Pt(i),u=1<<l;a[l]=-1,i&=~u}n!==0&&Nh(t,n,e)}function gr(){return(J&6)===0?(Dl(0,!1),!1):!0}function To(){if(L!==null){if(F===0)var t=L.return;else t=L,Je=ha=null,lo(t),ui=null,vl=0,t=L;for(;t!==null;)e0(t.alternate,t),t=t.return;L=null}}function gi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,I1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Ie=0,To(),tt=t,L=n=$e(t.current,null),Z=e,F=0,Kt=null,bn=!1,xi=Rl(t,e),So=!1,pi=Ft=_o=aa=qn=ct=0,jt=cl=null,vc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-Pt(a),l=1<<i;e|=t[i],a&=~l}return nn=e,cr(),n}function E0(t,e){D=null,M.H=_l,e===Ei||e===fr?(e=vd(),F=3):e===Wc?(e=vd(),F=4):F=e===po?8:e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?6:1,Kt=e,L===null&&(ct=1,Gu(t,fe(e,t.current)))}function x0(){var t=ne.current;return t===null?!0:(Z&4194048)===Z?he===null:(Z&62914560)===Z||(Z&536870912)!==0?t===he:!1}function A0(){var t=M.H;return M.H=_l,t===null?_l:t}function N0(){var t=M.A;return M.A=B1,t}function $u(){ct=4,bn||(Z&4194048)!==Z&&ne.current!==null||(xi=!0),(qn&134217727)===0&&(aa&134217727)===0||tt===null||En(tt,Z,Ft,!1)}function Bs(t,e,n){var a=J;J|=2;var i=A0(),l=N0();(tt!==t||Z!==e)&&(Ju=null,gi(t,e)),e=!1;var u=ct;t:do try{if(F!==0&&L!==null){var r=L,s=Kt;switch(F){case 8:To(),u=6;break t;case 3:case 2:case 9:case 6:ne.current===null&&(e=!0);var c=F;if(F=0,Kt=null,ei(t,r,s,c),n&&xi){u=0;break t}break;default:c=F,F=0,Kt=null,ei(t,r,s,c)}}U1(),u=ct;break}catch(o){E0(t,o)}while(!0);return e&&t.shellSuspendCounter++,Je=ha=null,J=a,M.H=i,M.A=l,L===null&&(tt=null,Z=0,cr()),u}function U1(){for(;L!==null;)w0(L)}function D1(t,e){var n=J;J|=2;var a=A0(),i=N0();tt!==t||Z!==e?(Ju=null,Ku=It()+500,gi(t,e)):xi=Rl(t,e);t:do try{if(F!==0&&L!==null){e=L;var l=Kt;e:switch(F){case 1:F=0,Kt=null,ei(t,e,l,1);break;case 2:case 9:if(gd(l)){F=0,Kt=null,Yd(e);break}e=function(){F!==2&&F!==9||tt!==t||(F=7),Me(t)},l.then(e,e);break t;case 3:F=7;break t;case 4:F=5;break t;case 7:gd(l)?(F=0,Kt=null,Yd(e)):(F=0,Kt=null,ei(t,e,l,7));break;case 5:var u=null;switch(L.tag){case 26:u=L.memoizedState;case 5:case 27:var r=L;if(u?K0(u):r.stateNode.complete){F=0,Kt=null;var s=r.sibling;if(s!==null)L=s;else{var c=r.return;c!==null?(L=c,vr(c)):L=null}break e}}F=0,Kt=null,ei(t,e,l,5);break;case 6:F=0,Kt=null,ei(t,e,l,6);break;case 8:To(),ct=6;break t;default:throw Error(S(462))}}H1();break}catch(o){E0(t,o)}while(!0);return Je=ha=null,M.H=a,M.A=i,J=n,L!==null?0:(tt=null,Z=0,cr(),ct)}function H1(){for(;L!==null&&!lg();)w0(L)}function w0(t){var e=t0(t.alternate,t,nn);t.memoizedProps=t.pendingProps,e===null?vr(t):L=e}function Yd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ud(n,e,e.pendingProps,e.type,void 0,Z);break;case 11:e=Ud(n,e,e.pendingProps,e.type.render,e.ref,Z);break;case 5:lo(e);default:e0(n,e),e=L=em(e,nn),e=t0(n,e,nn)}t.memoizedProps=t.pendingProps,e===null?vr(t):L=e}function ei(t,e,n,a){Je=ha=null,lo(e),ui=null,vl=0;var i=e.return;try{if(x1(t,i,e,n,Z)){ct=1,Gu(t,fe(n,t.current)),L=null;return}}catch(l){if(i!==null)throw L=i,l;ct=1,Gu(t,fe(n,t.current)),L=null;return}e.flags&32768?(X||a===1?t=!0:xi||(Z&536870912)!==0?t=!1:(bn=t=!0,(a===2||a===9||a===3||a===6)&&(a=ne.current,a!==null&&a.tag===13&&(a.flags|=16384))),R0(e,t)):vr(e)}function vr(t){var e=t;do{if((e.flags&32768)!==0){R0(e,bn);return}t=e.return;var n=w1(e.alternate,e,nn);if(n!==null){L=n;return}if(e=e.sibling,e!==null){L=e;return}L=e=t}while(e!==null);ct===0&&(ct=5)}function R0(t,e){do{var n=R1(t.alternate,t);if(n!==null){n.flags&=32767,L=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){L=t;return}L=t=n}while(t!==null);ct=6,L=null}function Zd(t,e,n,a,i,l,u,r,s){t.cancelPendingCommit=null;do Sr();while(yt!==0);if((J&6)!==0)throw Error(S(327));if(e!==null){if(e===t.current)throw Error(S(177));if(l=e.lanes|e.childLanes,l|=Xc,pg(t,n,l,u,r,s),t===tt&&(L=tt=null,Z=0),yi=e,zn=t,Ie=n,Sc=l,_c=i,_0=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,L1(Cu,function(){return C0(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,i=$.p,$.p=2,u=J,J|=4;try{O1(t,e,n)}finally{J=u,$.p=i,M.T=a}}yt=1,O0(),z0(),B0()}}function O0(){if(yt===1){yt=0;var t=zn,e=yi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var a=$.p;$.p=2;var i=J;J|=4;try{d0(e,t);var l=Ac,u=Kh(t.containerInfo),r=l.focusedElem,s=l.selectionRange;if(u!==r&&r&&r.ownerDocument&&Qh(r.ownerDocument.documentElement,r)){if(s!==null&&Gc(r)){var c=s.start,o=s.end;if(o===void 0&&(o=c),\\\"selectionStart\\\"in r)r.selectionStart=c,r.selectionEnd=Math.min(o,r.value.length);else{var d=r.ownerDocument||document,m=d&&d.defaultView||window;if(m.getSelection){var y=m.getSelection(),b=r.textContent.length,N=Math.min(s.start,b),K=s.end===void 0?N:Math.min(s.end,b);!y.extend&&N>K&&(u=K,K=N,N=u);var h=od(r,N),f=od(r,K);if(h&&f&&(y.rangeCount!==1||y.anchorNode!==h.node||y.anchorOffset!==h.offset||y.focusNode!==f.node||y.focusOffset!==f.offset)){var p=d.createRange();p.setStart(h.node,h.offset),y.removeAllRanges(),N>K?(y.addRange(p),y.extend(f.node,f.offset)):(p.setEnd(f.node,f.offset),y.addRange(p))}}}}for(d=[],y=r;y=y.parentNode;)y.nodeType===1&&d.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof r.focus==\\\"function\\\"&&r.focus(),r=0;r<d.length;r++){var v=d[r];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}ar=!!xc,Ac=xc=null}finally{J=i,$.p=a,M.T=n}}t.current=e,yt=2}}function z0(){if(yt===2){yt=0;var t=zn,e=yi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var a=$.p;$.p=2;var i=J;J|=4;try{r0(t,e.alternate,e)}finally{J=i,$.p=a,M.T=n}}yt=3}}function B0(){if(yt===4||yt===3){yt=0,ug();var t=zn,e=yi,n=Ie,a=_0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?yt=5:(yt=0,yi=zn=null,M0(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(On=null),qc(n),e=e.stateNode,Wt&&typeof Wt.onCommitFiberRoot==\\\"function\\\")try{Wt.onCommitFiberRoot(wl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=M.T,i=$.p,$.p=2,M.T=null;try{for(var l=t.onRecoverableError,u=0;u<a.length;u++){var r=a[u];l(r.value,{componentStack:r.stack})}}finally{M.T=e,$.p=i}}(Ie&3)!==0&&Sr(),Me(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===Tc?ol++:(ol=0,Tc=t):ol=0,Dl(0,!1)}}function M0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ml(e)))}function Sr(){return O0(),z0(),B0(),C0()}function C0(){if(yt!==5)return!1;var t=zn,e=Sc;Sc=0;var n=qc(Ie),a=M.T,i=$.p;try{$.p=32>n?32:n,M.T=null,n=_c,_c=null;var l=zn,u=Ie;if(yt=0,yi=zn=null,Ie=0,(J&6)!==0)throw Error(S(331));var r=J;if(J|=4,g0(l.current),m0(l,l.current,u,n),J=r,Dl(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot==\\\"function\\\")try{Wt.onPostCommitFiberRoot(wl,l)}catch{}return!0}finally{$.p=i,M.T=a,M0(t,e)}}function Vd(t,e,n){e=fe(n,e),e=mc(t.stateNode,e,2),t=Rn(t,e,2),t!==null&&(Ol(t,2),Me(t))}function I(t,e,n){if(t.tag===3)Vd(t,t,n);else for(;e!==null;){if(e.tag===3){Vd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError==\\\"function\\\"||typeof a.componentDidCatch==\\\"function\\\"&&(On===null||!On.has(a))){t=fe(n,t),n=Jm(2),a=Rn(e,n,2),a!==null&&($m(n,a,e,t),Ol(a,2),Me(a));break}}e=e.return}}function Ms(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new M1;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(So=!0,i.add(n),t=q1.bind(null,t,e,n),e.then(t,t))}function q1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,tt===t&&(Z&n)===n&&(ct===4||ct===3&&(Z&62914560)===Z&&300>It()-yr?(J&2)===0&&gi(t,0):_o|=n,pi===Z&&(pi=0)),Me(t)}function U0(t,e){e===0&&(e=Ah()),t=da(t,e),t!==null&&(Ol(t,e),Me(t))}function j1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),U0(t,n)}function k1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(S(314))}a!==null&&a.delete(e),U0(t,n)}function L1(t,e){return Dc(t,e)}var Fu=null,Va=null,bc=!1,Iu=!1,Cs=!1,xn=0;function Me(t){t!==Va&&t.next===null&&(Va===null?Fu=Va=t:Va=Va.next=t),Iu=!0,bc||(bc=!0,Z1())}function Dl(t,e){if(!Cs&&Iu){Cs=!0;do for(var n=!1,a=Fu;a!==null;){if(!e)if(t!==0){var i=a.pendingLanes;if(i===0)var l=0;else{var u=a.suspendedLanes,r=a.pingedLanes;l=(1<<31-Pt(42|t)+1)-1,l&=i&~(u&~r),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,Gd(a,l))}else l=Z,l=lr(a,a===tt?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(l&3)===0||Rl(a,l)||(n=!0,Gd(a,l));a=a.next}while(n);Cs=!1}}function Y1(){D0()}function D0(){Iu=bc=!1;var t=0;xn!==0&&F1()&&(t=xn);for(var e=It(),n=null,a=Fu;a!==null;){var i=a.next,l=H0(a,e);l===0?(a.next=null,n===null?Fu=i:n.next=i,i===null&&(Va=n)):(n=a,(t!==0||(l&3)!==0)&&(Iu=!0)),a=i}yt!==0&&yt!==5||Dl(t,!1),xn!==0&&(xn=0)}function H0(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,l=t.pendingLanes&-62914561;0<l;){var u=31-Pt(l),r=1<<u,s=i[u];s===-1?((r&n)===0||(r&a)!==0)&&(i[u]=mg(r,e)):s<=e&&(t.expiredLanes|=r),l&=~r}if(e=tt,n=Z,n=lr(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(F===2||F===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&ss(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Rl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&ss(a),qc(n)){case 2:case 8:n=Eh;break;case 32:n=Cu;break;case 268435456:n=xh;break;default:n=Cu}return a=q0.bind(null,t),n=Dc(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&ss(a),t.callbackPriority=2,t.callbackNode=null,2}function q0(t,e){if(yt!==0&&yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sr()&&t.callbackNode!==n)return null;var a=Z;return a=lr(t,t===tt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(b0(t,a,e),H0(t,It()),t.callbackNode!=null&&t.callbackNode===n?q0.bind(null,t):null)}function Gd(t,e){if(Sr())return null;b0(t,e,!0)}function Z1(){W1(function(){(J&6)!==0?Dc(bh,Y1):D0()})}function bo(){if(xn===0){var t=di;t===0&&(t=Wl,Wl<<=1,(Wl&261888)===0&&(Wl=256)),xn=t}return xn}function Xd(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:yu(\\\"\\\"+t)}function Qd(t,e){var n=e.ownerDocument.createElement(\\\"input\\\");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute(\\\"form\\\",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function V1(t,e,n,a,i){if(e===\\\"submit\\\"&&n&&n.stateNode===i){var l=Xd((i[Lt]||null).action),u=a.submitter;u&&(e=(e=u[Lt]||null)?Xd(e.formAction):u.getAttribute(\\\"formAction\\\"),e!==null&&(l=e,u=null));var r=new ur(\\\"action\\\",\\\"action\\\",null,a,i);t.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(xn!==0){var s=u?Qd(i,u):new FormData(i);dc(n,{pending:!0,data:s,method:i.method,action:l},null,s)}}else typeof l==\\\"function\\\"&&(r.preventDefault(),s=u?Qd(i,u):new FormData(i),dc(n,{pending:!0,data:s,method:i.method,action:l},l,s))},currentTarget:i}]})}}for(ou=0;ou<tc.length;ou++)fu=tc[ou],Kd=fu.toLowerCase(),Jd=fu[0].toUpperCase()+fu.slice(1),Te(Kd,\\\"on\\\"+Jd);var fu,Kd,Jd,ou;Te($h,\\\"onAnimationEnd\\\");Te(Fh,\\\"onAnimationIteration\\\");Te(Ih,\\\"onAnimationStart\\\");Te(\\\"dblclick\\\",\\\"onDoubleClick\\\");Te(\\\"focusin\\\",\\\"onFocus\\\");Te(\\\"focusout\\\",\\\"onBlur\\\");Te(r1,\\\"onTransitionRun\\\");Te(s1,\\\"onTransitionStart\\\");Te(c1,\\\"onTransitionCancel\\\");Te(Wh,\\\"onTransitionEnd\\\");oi(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);oi(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);oi(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);oi(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);ca(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));ca(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));ca(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);ca(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));ca(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));ca(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var Tl=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),G1=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(Tl));function j0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var l=void 0;if(e)for(var u=a.length-1;0<=u;u--){var r=a[u],s=r.instance,c=r.currentTarget;if(r=r.listener,s!==l&&i.isPropagationStopped())break t;l=r,i.currentTarget=c;try{l(i)}catch(o){Du(o)}i.currentTarget=null,l=s}else for(u=0;u<a.length;u++){if(r=a[u],s=r.instance,c=r.currentTarget,r=r.listener,s!==l&&i.isPropagationStopped())break t;l=r,i.currentTarget=c;try{l(i)}catch(o){Du(o)}i.currentTarget=null,l=s}}}}function k(t,e){var n=e[Qs];n===void 0&&(n=e[Qs]=new Set);var a=t+\\\"__bubble\\\";n.has(a)||(k0(e,t,2,!1),n.add(a))}function Us(t,e,n){var a=0;e&&(a|=4),k0(n,t,a,e)}var du=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function Eo(t){if(!t[du]){t[du]=!0,zh.forEach(function(n){n!==\\\"selectionchange\\\"&&(G1.has(n)||Us(n,!1,t),Us(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[du]||(e[du]=!0,Us(\\\"selectionchange\\\",!1,e))}}function k0(t,e,n,a){switch(W0(e)){case 2:var i=vv;break;case 8:i=Sv;break;default:i=wo}n=i.bind(null,e,n,t),i=void 0,!Is||e!==\\\"touchstart\\\"&&e!==\\\"touchmove\\\"&&e!==\\\"wheel\\\"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ds(t,e,n,a,i){var l=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var r=a.stateNode.containerInfo;if(r===i)break;if(u===4)for(u=a.return;u!==null;){var s=u.tag;if((s===3||s===4)&&u.stateNode.containerInfo===i)return;u=u.return}for(;r!==null;){if(u=Qa(r),u===null)return;if(s=u.tag,s===5||s===6||s===26||s===27){a=l=u;continue t}r=r.parentNode}}a=a.return}jh(function(){var c=l,o=Lc(n),d=[];t:{var m=Ph.get(t);if(m!==void 0){var y=ur,b=t;switch(t){case\\\"keypress\\\":if(vu(n)===0)break t;case\\\"keydown\\\":case\\\"keyup\\\":y=kg;break;case\\\"focusin\\\":b=\\\"focus\\\",y=hs;break;case\\\"focusout\\\":b=\\\"blur\\\",y=hs;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":y=hs;break;case\\\"click\\\":if(n.button===2)break t;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":y=ed;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":y=wg;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":y=Zg;break;case $h:case Fh:case Ih:y=zg;break;case Wh:y=Gg;break;case\\\"scroll\\\":case\\\"scrollend\\\":y=Ag;break;case\\\"wheel\\\":y=Qg;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":y=Mg;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":y=ad;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":y=Jg}var N=(e&4)!==0,K=!N&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),h=N?m!==null?m+\\\"Capture\\\":null:m;N=[];for(var f=c,p;f!==null;){var v=f;if(p=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||p===null||h===null||(v=hl(f,h),v!=null&&N.push(bl(f,v,p))),K)break;f=f.return}0<N.length&&(m=new y(m,b,null,n,o),d.push({event:m,listeners:N}))}}if((e&7)===0){t:{if(m=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",y=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",m&&n!==Fs&&(b=n.relatedTarget||n.fromElement)&&(Qa(b)||b[_i]))break t;if((y||m)&&(m=o.window===o?o:(m=o.ownerDocument)?m.defaultView||m.parentWindow:window,y?(b=n.relatedTarget||n.toElement,y=c,b=b?Qa(b):null,b!==null&&(K=Nl(b),N=b.tag,b!==K||N!==5&&N!==27&&N!==6)&&(b=null)):(y=null,b=c),y!==b)){if(N=ed,v=\\\"onMouseLeave\\\",h=\\\"onMouseEnter\\\",f=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(N=ad,v=\\\"onPointerLeave\\\",h=\\\"onPointerEnter\\\",f=\\\"pointer\\\"),K=y==null?m:Fi(y),p=b==null?m:Fi(b),m=new N(v,f+\\\"leave\\\",y,n,o),m.target=K,m.relatedTarget=p,v=null,Qa(o)===c&&(N=new N(h,f+\\\"enter\\\",b,n,o),N.target=p,N.relatedTarget=K,v=N),K=v,y&&b)e:{for(N=X1,h=y,f=b,p=0,v=h;v;v=N(v))p++;v=0;for(var R=f;R;R=N(R))v++;for(;0<p-v;)h=N(h),p--;for(;0<v-p;)f=N(f),v--;for(;p--;){if(h===f||f!==null&&h===f.alternate){N=h;break e}h=N(h),f=N(f)}N=null}else N=null;y!==null&&$d(d,m,y,N,!1),b!==null&&K!==null&&$d(d,K,b,N,!0)}}t:{if(m=c?Fi(c):window,y=m.nodeName&&m.nodeName.toLowerCase(),y===\\\"select\\\"||y===\\\"input\\\"&&m.type===\\\"file\\\")var V=rd;else if(ud(m))if(Gh)V=i1;else{V=n1;var A=e1}else y=m.nodeName,!y||y.toLowerCase()!==\\\"input\\\"||m.type!==\\\"checkbox\\\"&&m.type!==\\\"radio\\\"?c&&kc(c.elementType)&&(V=rd):V=a1;if(V&&(V=V(t,c))){Vh(d,V,n,o);break t}A&&A(t,m,c),t===\\\"focusout\\\"&&c&&m.type===\\\"number\\\"&&c.memoizedProps.value!=null&&$s(m,\\\"number\\\",m.value)}switch(A=c?Fi(c):window,t){case\\\"focusin\\\":(ud(A)||A.contentEditable===\\\"true\\\")&&($a=A,Ws=c,el=null);break;case\\\"focusout\\\":el=Ws=$a=null;break;case\\\"mousedown\\\":Ps=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":Ps=!1,fd(d,n,o);break;case\\\"selectionchange\\\":if(u1)break;case\\\"keydown\\\":case\\\"keyup\\\":fd(d,n,o)}var C;if(Vc)t:{switch(t){case\\\"compositionstart\\\":var q=\\\"onCompositionStart\\\";break t;case\\\"compositionend\\\":q=\\\"onCompositionEnd\\\";break t;case\\\"compositionupdate\\\":q=\\\"onCompositionUpdate\\\";break t}q=void 0}else Ja?Yh(t,n)&&(q=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&n.keyCode===229&&(q=\\\"onCompositionStart\\\");q&&(Lh&&n.locale!==\\\"ko\\\"&&(Ja||q!==\\\"onCompositionStart\\\"?q===\\\"onCompositionEnd\\\"&&Ja&&(C=kh()):(Tn=o,Yc=\\\"value\\\"in Tn?Tn.value:Tn.textContent,Ja=!0)),A=Wu(c,q),0<A.length&&(q=new nd(q,t,null,n,o),d.push({event:q,listeners:A}),C?q.data=C:(C=Zh(n),C!==null&&(q.data=C)))),(C=Fg?Ig(t,n):Wg(t,n))&&(q=Wu(c,\\\"onBeforeInput\\\"),0<q.length&&(A=new nd(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,n,o),d.push({event:A,listeners:q}),A.data=C)),V1(d,t,c,n,o)}j0(d,e)})}function bl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Wu(t,e){for(var n=e+\\\"Capture\\\",a=[];t!==null;){var i=t,l=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||l===null||(i=hl(t,n),i!=null&&a.unshift(bl(t,i,l)),i=hl(t,e),i!=null&&a.push(bl(t,i,l))),t.tag===3)return a;t=t.return}return[]}function X1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $d(t,e,n,a,i){for(var l=e._reactName,u=[];n!==null&&n!==a;){var r=n,s=r.alternate,c=r.stateNode;if(r=r.tag,s!==null&&s===a)break;r!==5&&r!==26&&r!==27||c===null||(s=c,i?(c=hl(n,l),c!=null&&u.unshift(bl(n,c,s))):i||(c=hl(n,l),c!=null&&u.push(bl(n,c,s)))),n=n.return}u.length!==0&&t.push({event:e,listeners:u})}var Q1=/\\\\r\\\\n?/g,K1=/\\\\u0000|\\\\uFFFD/g;function Fd(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(Q1,`\\n`).replace(K1,\\\"\\\")}function L0(t,e){return e=Fd(e),Fd(t)===e}function W(t,e,n,a,i,l){switch(n){case\\\"children\\\":typeof a==\\\"string\\\"?e===\\\"body\\\"||e===\\\"textarea\\\"&&a===\\\"\\\"||fi(t,a):(typeof a==\\\"number\\\"||typeof a==\\\"bigint\\\")&&e!==\\\"body\\\"&&fi(t,\\\"\\\"+a);break;case\\\"className\\\":eu(t,\\\"class\\\",a);break;case\\\"tabIndex\\\":eu(t,\\\"tabindex\\\",a);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":eu(t,n,a);break;case\\\"style\\\":qh(t,a,l);break;case\\\"data\\\":if(e!==\\\"object\\\"){eu(t,\\\"data\\\",a);break}case\\\"src\\\":case\\\"href\\\":if(a===\\\"\\\"&&(e!==\\\"a\\\"||n!==\\\"href\\\")){t.removeAttribute(n);break}if(a==null||typeof a==\\\"function\\\"||typeof a==\\\"symbol\\\"||typeof a==\\\"boolean\\\"){t.removeAttribute(n);break}a=yu(\\\"\\\"+a),t.setAttribute(n,a);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof a==\\\"function\\\"){t.setAttribute(n,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof l==\\\"function\\\"&&(n===\\\"formAction\\\"?(e!==\\\"input\\\"&&W(t,e,\\\"name\\\",i.name,i,null),W(t,e,\\\"formEncType\\\",i.formEncType,i,null),W(t,e,\\\"formMethod\\\",i.formMethod,i,null),W(t,e,\\\"formTarget\\\",i.formTarget,i,null)):(W(t,e,\\\"encType\\\",i.encType,i,null),W(t,e,\\\"method\\\",i.method,i,null),W(t,e,\\\"target\\\",i.target,i,null)));if(a==null||typeof a==\\\"symbol\\\"||typeof a==\\\"boolean\\\"){t.removeAttribute(n);break}a=yu(\\\"\\\"+a),t.setAttribute(n,a);break;case\\\"onClick\\\":a!=null&&(t.onclick=Ke);break;case\\\"onScroll\\\":a!=null&&k(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":a!=null&&k(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null){if(typeof a!=\\\"object\\\"||!(\\\"__html\\\"in a))throw Error(S(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(S(60));t.innerHTML=n}}break;case\\\"multiple\\\":t.multiple=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(a==null||typeof a==\\\"function\\\"||typeof a==\\\"boolean\\\"||typeof a==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}n=yu(\\\"\\\"+a),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",n);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":a!=null&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"+a):t.removeAttribute(n);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"):t.removeAttribute(n);break;case\\\"capture\\\":case\\\"download\\\":a===!0?t.setAttribute(n,\\\"\\\"):a!==!1&&a!=null&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"?t.setAttribute(n,a):t.removeAttribute(n);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":a!=null&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case\\\"rowSpan\\\":case\\\"start\\\":a==null||typeof a==\\\"function\\\"||typeof a==\\\"symbol\\\"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case\\\"popover\\\":k(\\\"beforetoggle\\\",t),k(\\\"toggle\\\",t),pu(t,\\\"popover\\\",a);break;case\\\"xlinkActuate\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",a);break;case\\\"xlinkArcrole\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",a);break;case\\\"xlinkRole\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",a);break;case\\\"xlinkShow\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",a);break;case\\\"xlinkTitle\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",a);break;case\\\"xlinkType\\\":ke(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",a);break;case\\\"xmlBase\\\":ke(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",a);break;case\\\"xmlLang\\\":ke(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",a);break;case\\\"xmlSpace\\\":ke(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",a);break;case\\\"is\\\":pu(t,\\\"is\\\",a);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<n.length)||n[0]!==\\\"o\\\"&&n[0]!==\\\"O\\\"||n[1]!==\\\"n\\\"&&n[1]!==\\\"N\\\")&&(n=Eg.get(n)||n,pu(t,n,a))}}function Ec(t,e,n,a,i,l){switch(n){case\\\"style\\\":qh(t,a,l);break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null){if(typeof a!=\\\"object\\\"||!(\\\"__html\\\"in a))throw Error(S(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(S(60));t.innerHTML=n}}break;case\\\"children\\\":typeof a==\\\"string\\\"?fi(t,a):(typeof a==\\\"number\\\"||typeof a==\\\"bigint\\\")&&fi(t,\\\"\\\"+a);break;case\\\"onScroll\\\":a!=null&&k(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":a!=null&&k(\\\"scrollend\\\",t);break;case\\\"onClick\\\":a!=null&&(t.onclick=Ke);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!Bh.hasOwnProperty(n))t:{if(n[0]===\\\"o\\\"&&n[1]===\\\"n\\\"&&(i=n.endsWith(\\\"Capture\\\"),e=n.slice(2,i?n.length-7:void 0),l=t[Lt]||null,l=l!=null?l[n]:null,typeof l==\\\"function\\\"&&t.removeEventListener(e,l,i),typeof a==\\\"function\\\")){typeof l!=\\\"function\\\"&&l!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,\\\"\\\"):pu(t,n,a)}}}function Nt(t,e,n){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":k(\\\"error\\\",t),k(\\\"load\\\",t);var a=!1,i=!1,l;for(l in n)if(n.hasOwnProperty(l)){var u=n[l];if(u!=null)switch(l){case\\\"src\\\":a=!0;break;case\\\"srcSet\\\":i=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,e));default:W(t,e,l,u,n,null)}}i&&W(t,e,\\\"srcSet\\\",n.srcSet,n,null),a&&W(t,e,\\\"src\\\",n.src,n,null);return;case\\\"input\\\":k(\\\"invalid\\\",t);var r=l=u=i=null,s=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case\\\"name\\\":i=o;break;case\\\"type\\\":u=o;break;case\\\"checked\\\":s=o;break;case\\\"defaultChecked\\\":c=o;break;case\\\"value\\\":l=o;break;case\\\"defaultValue\\\":r=o;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(o!=null)throw Error(S(137,e));break;default:W(t,e,a,o,n,null)}}Uh(t,l,r,s,c,u,i,!1);return;case\\\"select\\\":k(\\\"invalid\\\",t),a=u=l=null;for(i in n)if(n.hasOwnProperty(i)&&(r=n[i],r!=null))switch(i){case\\\"value\\\":l=r;break;case\\\"defaultValue\\\":u=r;break;case\\\"multiple\\\":a=r;default:W(t,e,i,r,n,null)}e=l,n=u,t.multiple=!!a,e!=null?ai(t,!!a,e,!1):n!=null&&ai(t,!!a,n,!0);return;case\\\"textarea\\\":k(\\\"invalid\\\",t),l=i=a=null;for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case\\\"value\\\":a=r;break;case\\\"defaultValue\\\":i=r;break;case\\\"children\\\":l=r;break;case\\\"dangerouslySetInnerHTML\\\":if(r!=null)throw Error(S(91));break;default:W(t,e,u,r,n,null)}Hh(t,a,i,l);return;case\\\"option\\\":for(s in n)n.hasOwnProperty(s)&&(a=n[s],a!=null)&&(s===\\\"selected\\\"?t.selected=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\":W(t,e,s,a,n,null));return;case\\\"dialog\\\":k(\\\"beforetoggle\\\",t),k(\\\"toggle\\\",t),k(\\\"cancel\\\",t),k(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":k(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(a=0;a<Tl.length;a++)k(Tl[a],t);break;case\\\"image\\\":k(\\\"error\\\",t),k(\\\"load\\\",t);break;case\\\"details\\\":k(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":k(\\\"error\\\",t),k(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,e));default:W(t,e,c,a,n,null)}return;default:if(kc(e)){for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!==void 0&&Ec(t,e,o,a,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(a=n[r],a!=null&&W(t,e,r,a,n,null))}function J1(t,e,n,a){switch(e){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var i=null,l=null,u=null,r=null,s=null,c=null,o=null;for(y in n){var d=n[y];if(n.hasOwnProperty(y)&&d!=null)switch(y){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":s=d;default:a.hasOwnProperty(y)||W(t,e,y,null,a,d)}}for(var m in a){var y=a[m];if(d=n[m],a.hasOwnProperty(m)&&(y!=null||d!=null))switch(m){case\\\"type\\\":l=y;break;case\\\"name\\\":i=y;break;case\\\"checked\\\":c=y;break;case\\\"defaultChecked\\\":o=y;break;case\\\"value\\\":u=y;break;case\\\"defaultValue\\\":r=y;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(y!=null)throw Error(S(137,e));break;default:y!==d&&W(t,e,m,y,a,d)}}Js(t,u,r,s,c,o,l,i);return;case\\\"select\\\":y=u=r=m=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case\\\"value\\\":break;case\\\"multiple\\\":y=s;default:a.hasOwnProperty(l)||W(t,e,l,null,a,s)}for(i in a)if(l=a[i],s=n[i],a.hasOwnProperty(i)&&(l!=null||s!=null))switch(i){case\\\"value\\\":m=l;break;case\\\"defaultValue\\\":r=l;break;case\\\"multiple\\\":u=l;default:l!==s&&W(t,e,i,l,a,s)}e=r,n=u,a=y,m!=null?ai(t,!!n,m,!1):!!a!=!!n&&(e!=null?ai(t,!!n,e,!0):ai(t,!!n,n?[]:\\\"\\\",!1));return;case\\\"textarea\\\":y=m=null;for(r in n)if(i=n[r],n.hasOwnProperty(r)&&i!=null&&!a.hasOwnProperty(r))switch(r){case\\\"value\\\":break;case\\\"children\\\":break;default:W(t,e,r,null,a,i)}for(u in a)if(i=a[u],l=n[u],a.hasOwnProperty(u)&&(i!=null||l!=null))switch(u){case\\\"value\\\":m=i;break;case\\\"defaultValue\\\":y=i;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(i!=null)throw Error(S(91));break;default:i!==l&&W(t,e,u,i,a,l)}Dh(t,m,y);return;case\\\"option\\\":for(var b in n)m=n[b],n.hasOwnProperty(b)&&m!=null&&!a.hasOwnProperty(b)&&(b===\\\"selected\\\"?t.selected=!1:W(t,e,b,null,a,m));for(s in a)m=a[s],y=n[s],a.hasOwnProperty(s)&&m!==y&&(m!=null||y!=null)&&(s===\\\"selected\\\"?t.selected=m&&typeof m!=\\\"function\\\"&&typeof m!=\\\"symbol\\\":W(t,e,s,m,a,y));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var N in n)m=n[N],n.hasOwnProperty(N)&&m!=null&&!a.hasOwnProperty(N)&&W(t,e,N,null,a,m);for(c in a)if(m=a[c],y=n[c],a.hasOwnProperty(c)&&m!==y&&(m!=null||y!=null))switch(c){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(m!=null)throw Error(S(137,e));break;default:W(t,e,c,m,a,y)}return;default:if(kc(e)){for(var K in n)m=n[K],n.hasOwnProperty(K)&&m!==void 0&&!a.hasOwnProperty(K)&&Ec(t,e,K,void 0,a,m);for(o in a)m=a[o],y=n[o],!a.hasOwnProperty(o)||m===y||m===void 0&&y===void 0||Ec(t,e,o,m,a,y);return}}for(var h in n)m=n[h],n.hasOwnProperty(h)&&m!=null&&!a.hasOwnProperty(h)&&W(t,e,h,null,a,m);for(d in a)m=a[d],y=n[d],!a.hasOwnProperty(d)||m===y||m==null&&y==null||W(t,e,d,m,a,y)}function Id(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function $1(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,e=0,n=performance.getEntriesByType(\\\"resource\\\"),a=0;a<n.length;a++){var i=n[a],l=i.transferSize,u=i.initiatorType,r=i.duration;if(l&&r&&Id(u)){for(u=0,r=i.responseEnd,a+=1;a<n.length;a++){var s=n[a],c=s.startTime;if(c>r)break;var o=s.transferSize,d=s.initiatorType;o&&Id(d)&&(s=s.responseEnd,u+=o*(s<r?1:(r-c)/(s-c)))}if(--a,e+=8*(l+u)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var xc=null,Ac=null;function Pu(t){return t.nodeType===9?t:t.ownerDocument}function Wd(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function Y0(t,e){if(t===0)switch(e){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&e===\\\"foreignObject\\\"?0:t}function Nc(t,e){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof e.children==\\\"string\\\"||typeof e.children==\\\"number\\\"||typeof e.children==\\\"bigint\\\"||typeof e.dangerouslySetInnerHTML==\\\"object\\\"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hs=null;function F1(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===Hs?!1:(Hs=t,!0):(Hs=null,!1)}var Z0=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,I1=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,Pd=typeof Promise==\\\"function\\\"?Promise:void 0,W1=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof Pd<\\\"u\\\"?function(t){return Pd.resolve(null).then(t).catch(P1)}:Z0;function P1(t){setTimeout(function(){throw t})}function kn(t){return t===\\\"head\\\"}function th(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===\\\"/$\\\"||n===\\\"/&\\\"){if(a===0){t.removeChild(i),Si(e);return}a--}else if(n===\\\"$\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"$!\\\"||n===\\\"&\\\")a++;else if(n===\\\"html\\\")fl(t.ownerDocument.documentElement);else if(n===\\\"head\\\"){n=t.ownerDocument.head,fl(n);for(var l=n.firstChild;l;){var u=l.nextSibling,r=l.nodeName;l[zl]||r===\\\"SCRIPT\\\"||r===\\\"STYLE\\\"||r===\\\"LINK\\\"&&l.rel.toLowerCase()===\\\"stylesheet\\\"||n.removeChild(l),l=u}}else n===\\\"body\\\"&&fl(t.ownerDocument.body);n=i}while(n);Si(e)}function eh(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display=\\\"none\\\"):(n.style.display=n._stashedDisplay||\\\"\\\",n.getAttribute(\\\"style\\\")===\\\"\\\"&&n.removeAttribute(\\\"style\\\")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=\\\"\\\"):n.nodeValue=n._stashedText||\\\"\\\"),a&&a.nodeType===8)if(n=a.data,n===\\\"/$\\\"){if(t===0)break;t--}else n!==\\\"$\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"$!\\\"||t++;n=a}while(n)}function wc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":wc(n),jc(n);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(n.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(n)}}function tv(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(a){if(!t[zl])switch(e){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(l=t.getAttribute(\\\"rel\\\"),l===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(l!==i.rel||t.getAttribute(\\\"href\\\")!==(i.href==null||i.href===\\\"\\\"?null:i.href)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute(\\\"title\\\")!==(i.title==null?null:i.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(l=t.getAttribute(\\\"src\\\"),(l!==(i.src==null?null:i.src)||t.getAttribute(\\\"type\\\")!==(i.type==null?null:i.type)||t.getAttribute(\\\"crossorigin\\\")!==(i.crossOrigin==null?null:i.crossOrigin))&&l&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(e===\\\"input\\\"&&t.type===\\\"hidden\\\"){var l=i.name==null?null:\\\"\\\"+i.name;if(i.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===l)return t}else return t;if(t=me(t.nextSibling),t===null)break}return null}function ev(t,e,n){if(e===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!n||(t=me(t.nextSibling),t===null))return null;return t}function V0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!e||(t=me(t.nextSibling),t===null))return null;return t}function Rc(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function Oc(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function nv(t,e){var n=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=e;else if(t.data!==\\\"$?\\\"||n.readyState!==\\\"loading\\\")e();else{var a=function(){e(),n.removeEventListener(\\\"DOMContentLoaded\\\",a)};n.addEventListener(\\\"DOMContentLoaded\\\",a),t._reactRetry=a}}function me(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e===\\\"$\\\"||e===\\\"$!\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"&\\\"||e===\\\"F!\\\"||e===\\\"F\\\")break;if(e===\\\"/$\\\"||e===\\\"/&\\\")return null}}return t}var zc=null;function nh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"/$\\\"||n===\\\"/&\\\"){if(e===0)return me(t.nextSibling);e--}else n!==\\\"$\\\"&&n!==\\\"$!\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"&\\\"||e++}t=t.nextSibling}return null}function ah(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"$\\\"||n===\\\"$!\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"&\\\"){if(e===0)return t;e--}else n!==\\\"/$\\\"&&n!==\\\"/&\\\"||e++}t=t.previousSibling}return null}function G0(t,e,n){switch(e=Pu(n),t){case\\\"html\\\":if(t=e.documentElement,!t)throw Error(S(452));return t;case\\\"head\\\":if(t=e.head,!t)throw Error(S(453));return t;case\\\"body\\\":if(t=e.body,!t)throw Error(S(454));return t;default:throw Error(S(451))}}function fl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);jc(t)}var pe=new Map,ih=new Set;function tr(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var an=$.d;$.d={f:av,r:iv,D:lv,C:uv,L:rv,m:sv,X:ov,S:cv,M:fv};function av(){var t=an.f(),e=gr();return t||e}function iv(t){var e=Ti(t);e!==null&&e.tag===5&&e.type===\\\"form\\\"?qm(e):an.r(t)}var Ai=typeof document>\\\"u\\\"?null:document;function X0(t,e,n){var a=Ai;if(a&&typeof e==\\\"string\\\"&&e){var i=oe(e);i='link[rel=\\\"'+t+'\\\"][href=\\\"'+i+'\\\"]',typeof n==\\\"string\\\"&&(i+='[crossorigin=\\\"'+n+'\\\"]'),ih.has(i)||(ih.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement(\\\"link\\\"),Nt(e,\\\"link\\\",t),_t(e),a.head.appendChild(e)))}}function lv(t){an.D(t),X0(\\\"dns-prefetch\\\",t,null)}function uv(t,e){an.C(t,e),X0(\\\"preconnect\\\",t,e)}function rv(t,e,n){an.L(t,e,n);var a=Ai;if(a&&t&&e){var i='link[rel=\\\"preload\\\"][as=\\\"'+oe(e)+'\\\"]';e===\\\"image\\\"&&n&&n.imageSrcSet?(i+='[imagesrcset=\\\"'+oe(n.imageSrcSet)+'\\\"]',typeof n.imageSizes==\\\"string\\\"&&(i+='[imagesizes=\\\"'+oe(n.imageSizes)+'\\\"]')):i+='[href=\\\"'+oe(t)+'\\\"]';var l=i;switch(e){case\\\"style\\\":l=vi(t);break;case\\\"script\\\":l=Ni(t)}pe.has(l)||(t=lt({rel:\\\"preload\\\",href:e===\\\"image\\\"&&n&&n.imageSrcSet?void 0:t,as:e},n),pe.set(l,t),a.querySelector(i)!==null||e===\\\"style\\\"&&a.querySelector(Hl(l))||e===\\\"script\\\"&&a.querySelector(ql(l))||(e=a.createElement(\\\"link\\\"),Nt(e,\\\"link\\\",t),_t(e),a.head.appendChild(e)))}}function sv(t,e){an.m(t,e);var n=Ai;if(n&&t){var a=e&&typeof e.as==\\\"string\\\"?e.as:\\\"script\\\",i='link[rel=\\\"modulepreload\\\"][as=\\\"'+oe(a)+'\\\"][href=\\\"'+oe(t)+'\\\"]',l=i;switch(a){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":l=Ni(t)}if(!pe.has(l)&&(t=lt({rel:\\\"modulepreload\\\",href:t},e),pe.set(l,t),n.querySelector(i)===null)){switch(a){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(n.querySelector(ql(l)))return}a=n.createElement(\\\"link\\\"),Nt(a,\\\"link\\\",t),_t(a),n.head.appendChild(a)}}}function cv(t,e,n){an.S(t,e,n);var a=Ai;if(a&&t){var i=ni(a).hoistableStyles,l=vi(t);e=e||\\\"default\\\";var u=i.get(l);if(!u){var r={loading:0,preload:null};if(u=a.querySelector(Hl(l)))r.loading=5;else{t=lt({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":e},n),(n=pe.get(l))&&xo(t,n);var s=u=a.createElement(\\\"link\\\");_t(s),Nt(s,\\\"link\\\",t),s._p=new Promise(function(c,o){s.onload=c,s.onerror=o}),s.addEventListener(\\\"load\\\",function(){r.loading|=1}),s.addEventListener(\\\"error\\\",function(){r.loading|=2}),r.loading|=4,Nu(u,e,a)}u={type:\\\"stylesheet\\\",instance:u,count:1,state:r},i.set(l,u)}}}function ov(t,e){an.X(t,e);var n=Ai;if(n&&t){var a=ni(n).hoistableScripts,i=Ni(t),l=a.get(i);l||(l=n.querySelector(ql(i)),l||(t=lt({src:t,async:!0},e),(e=pe.get(i))&&Ao(t,e),l=n.createElement(\\\"script\\\"),_t(l),Nt(l,\\\"link\\\",t),n.head.appendChild(l)),l={type:\\\"script\\\",instance:l,count:1,state:null},a.set(i,l))}}function fv(t,e){an.M(t,e);var n=Ai;if(n&&t){var a=ni(n).hoistableScripts,i=Ni(t),l=a.get(i);l||(l=n.querySelector(ql(i)),l||(t=lt({src:t,async:!0,type:\\\"module\\\"},e),(e=pe.get(i))&&Ao(t,e),l=n.createElement(\\\"script\\\"),_t(l),Nt(l,\\\"link\\\",t),n.head.appendChild(l)),l={type:\\\"script\\\",instance:l,count:1,state:null},a.set(i,l))}}function lh(t,e,n,a){var i=(i=An.current)?tr(i):null;if(!i)throw Error(S(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof n.precedence==\\\"string\\\"&&typeof n.href==\\\"string\\\"?(e=vi(n.href),n=ni(i).hoistableStyles,a=n.get(e),a||(a={type:\\\"style\\\",instance:null,count:0,state:null},n.set(e,a)),a):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(n.rel===\\\"stylesheet\\\"&&typeof n.href==\\\"string\\\"&&typeof n.precedence==\\\"string\\\"){t=vi(n.href);var l=ni(i).hoistableStyles,u=l.get(t);if(u||(i=i.ownerDocument||i,u={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},l.set(t,u),(l=i.querySelector(Hl(t)))&&!l._p&&(u.instance=l,u.state.loading=5),pe.has(t)||(n={rel:\\\"preload\\\",as:\\\"style\\\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},pe.set(t,n),l||dv(i,t,n,u.state))),e&&a===null)throw Error(S(528,\\\"\\\"));return u}if(e&&a!==null)throw Error(S(529,\\\"\\\"));return null;case\\\"script\\\":return e=n.async,n=n.src,typeof n==\\\"string\\\"&&e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?(e=Ni(n),n=ni(i).hoistableScripts,a=n.get(e),a||(a={type:\\\"script\\\",instance:null,count:0,state:null},n.set(e,a)),a):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(S(444,t))}}function vi(t){return'href=\\\"'+oe(t)+'\\\"'}function Hl(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function Q0(t){return lt({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function dv(t,e,n,a){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+e+\\\"]\\\")?a.loading=1:(e=t.createElement(\\\"link\\\"),a.preload=e,e.addEventListener(\\\"load\\\",function(){return a.loading|=1}),e.addEventListener(\\\"error\\\",function(){return a.loading|=2}),Nt(e,\\\"link\\\",n),_t(e),t.head.appendChild(e))}function Ni(t){return'[src=\\\"'+oe(t)+'\\\"]'}function ql(t){return\\\"script[async]\\\"+t}function uh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case\\\"style\\\":var a=t.querySelector('style[data-href~=\\\"'+oe(n.href)+'\\\"]');if(a)return e.instance=a,_t(a),a;var i=lt({},n,{\\\"data-href\\\":n.href,\\\"data-precedence\\\":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement(\\\"style\\\"),_t(a),Nt(a,\\\"style\\\",i),Nu(a,n.precedence,t),e.instance=a;case\\\"stylesheet\\\":i=vi(n.href);var l=t.querySelector(Hl(i));if(l)return e.state.loading|=4,e.instance=l,_t(l),l;a=Q0(n),(i=pe.get(i))&&xo(a,i),l=(t.ownerDocument||t).createElement(\\\"link\\\"),_t(l);var u=l;return u._p=new Promise(function(r,s){u.onload=r,u.onerror=s}),Nt(l,\\\"link\\\",a),e.state.loading|=4,Nu(l,n.precedence,t),e.instance=l;case\\\"script\\\":return l=Ni(n.src),(i=t.querySelector(ql(l)))?(e.instance=i,_t(i),i):(a=n,(i=pe.get(l))&&(a=lt({},n),Ao(a,i)),t=t.ownerDocument||t,i=t.createElement(\\\"script\\\"),_t(i),Nt(i,\\\"link\\\",a),t.head.appendChild(i),e.instance=i);case\\\"void\\\":return null;default:throw Error(S(443,e.type))}else e.type===\\\"stylesheet\\\"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Nu(a,n.precedence,t));return e.instance}function Nu(t,e,n){for(var a=n.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,l=i,u=0;u<a.length;u++){var r=a[u];if(r.dataset.precedence===e)l=r;else if(l!==i)break}l?l.parentNode.insertBefore(t,l.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ao(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var wu=null;function rh(t,e,n){if(wu===null){var a=new Map,i=wu=new Map;i.set(n,a)}else i=wu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var l=n[i];if(!(l[zl]||l[Et]||t===\\\"link\\\"&&l.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&l.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var u=l.getAttribute(e)||\\\"\\\";u=t+u;var r=a.get(u);r?r.push(l):a.set(u,[l])}}return a}function sh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function hv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof e.precedence!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof e.rel!=\\\"string\\\"||typeof e.href!=\\\"string\\\"||e.href===\\\"\\\"||e.onLoad||e.onError)break;return e.rel===\\\"stylesheet\\\"?(t=e.disabled,typeof e.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(e.async&&typeof e.async!=\\\"function\\\"&&typeof e.async!=\\\"symbol\\\"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src==\\\"string\\\")return!0}return!1}function K0(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function mv(t,e,n,a){if(n.type===\\\"stylesheet\\\"&&(typeof a.media!=\\\"string\\\"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=vi(a.href),l=e.querySelector(Hl(i));if(l){e=l._p,e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"&&(t.count++,t=er.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=l,_t(l);return}l=e.ownerDocument||e,a=Q0(a),(i=pe.get(i))&&xo(a,i),l=l.createElement(\\\"link\\\"),_t(l);var u=l;u._p=new Promise(function(r,s){u.onload=r,u.onerror=s}),Nt(l,\\\"link\\\",a),n.instance=l}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=er.bind(t),e.addEventListener(\\\"load\\\",n),e.addEventListener(\\\"error\\\",n))}}var qs=0;function pv(t,e){return t.stylesheets&&t.count===0&&Ru(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4+e);0<t.imgBytes&&qs===0&&(qs=62500*$1());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend)){var l=t.unsuspend;t.unsuspend=null,l()}},(t.imgBytes>qs?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var nr=null;function Ru(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,nr=new Map,e.forEach(yv,t),nr=null,er.call(t))}function yv(t,e){if(!(e.state.loading&4)){var n=nr.get(t);if(n)var a=n.get(null);else{n=new Map,nr.set(t,n);for(var i=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),l=0;l<i.length;l++){var u=i[l];(u.nodeName===\\\"LINK\\\"||u.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(n.set(u.dataset.precedence,u),a=u)}a&&n.set(null,a)}i=e.instance,u=i.getAttribute(\\\"data-precedence\\\"),l=n.get(u)||a,l===a&&n.set(null,i),n.set(u,i),this.count++,a=er.bind(this),i.addEventListener(\\\"load\\\",a),i.addEventListener(\\\"error\\\",a),l?l.parentNode.insertBefore(i,l.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var El={$$typeof:Qe,Provider:null,Consumer:null,_currentValue:Pn,_currentValue2:Pn,_threadCount:0};function gv(t,e,n,a,i,l,u,r,s){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cs(0),this.hiddenUpdates=cs(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=l,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function J0(t,e,n,a,i,l,u,r,s,c,o,d){return t=new gv(t,e,n,u,s,c,o,d,r),e=1,l===!0&&(e|=24),l=$t(3,null,null,e),t.current=l,l.stateNode=t,e=Fc(),e.refCount++,t.pooledCache=e,e.refCount++,l.memoizedState={element:a,isDehydrated:n,cache:e},Pc(l),t}function $0(t){return t?(t=Wa,t):Wa}function F0(t,e,n,a,i,l){i=$0(i),a.context===null?a.context=i:a.pendingContext=i,a=wn(e),a.payload={element:n},l=l===void 0?null:l,l!==null&&(a.callback=l),n=Rn(t,a,e),n!==null&&(kt(n,t,e),al(n,t,e))}function ch(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function No(t,e){ch(t,e),(t=t.alternate)&&ch(t,e)}function I0(t){if(t.tag===13||t.tag===31){var e=da(t,67108864);e!==null&&kt(e,t,67108864),No(t,67108864)}}function oh(t){if(t.tag===13||t.tag===31){var e=te();e=Hc(e);var n=da(t,e);n!==null&&kt(n,t,e),No(t,e)}}var ar=!0;function vv(t,e,n,a){var i=M.T;M.T=null;var l=$.p;try{$.p=2,wo(t,e,n,a)}finally{$.p=l,M.T=i}}function Sv(t,e,n,a){var i=M.T;M.T=null;var l=$.p;try{$.p=8,wo(t,e,n,a)}finally{$.p=l,M.T=i}}function wo(t,e,n,a){if(ar){var i=Bc(a);if(i===null)Ds(t,e,a,ir,n),fh(t,a);else if(Tv(i,t,e,n,a))a.stopPropagation();else if(fh(t,a),e&4&&-1<_v.indexOf(t)){for(;i!==null;){var l=Ti(i);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var u=Fn(l.pendingLanes);if(u!==0){var r=l;for(r.pendingLanes|=2,r.entangledLanes|=2;u;){var s=1<<31-Pt(u);r.entanglements[1]|=s,u&=~s}Me(l),(J&6)===0&&(Ku=It()+500,Dl(0,!1))}}break;case 31:case 13:r=da(l,2),r!==null&&kt(r,l,2),gr(),No(l,2)}if(l=Bc(a),l===null&&Ds(t,e,a,ir,n),l===i)break;i=l}i!==null&&a.stopPropagation()}else Ds(t,e,a,null,n)}}function Bc(t){return t=Lc(t),Ro(t)}var ir=null;function Ro(t){if(ir=null,t=Qa(t),t!==null){var e=Nl(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=gh(e),t!==null)return t;t=null}else if(n===31){if(t=vh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ir=t,null}function W0(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(rg()){case bh:return 2;case Eh:return 8;case Cu:case sg:return 32;case xh:return 268435456;default:return 32}default:return 32}}var Mc=!1,Bn=null,Mn=null,Cn=null,xl=new Map,Al=new Map,Sn=[],_v=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function fh(t,e){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":Bn=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":Mn=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":Cn=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":xl.delete(e.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":Al.delete(e.pointerId)}}function Qi(t,e,n,a,i,l){return t===null||t.nativeEvent!==l?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:l,targetContainers:[i]},e!==null&&(e=Ti(e),e!==null&&I0(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Tv(t,e,n,a,i){switch(e){case\\\"focusin\\\":return Bn=Qi(Bn,t,e,n,a,i),!0;case\\\"dragenter\\\":return Mn=Qi(Mn,t,e,n,a,i),!0;case\\\"mouseover\\\":return Cn=Qi(Cn,t,e,n,a,i),!0;case\\\"pointerover\\\":var l=i.pointerId;return xl.set(l,Qi(xl.get(l)||null,t,e,n,a,i)),!0;case\\\"gotpointercapture\\\":return l=i.pointerId,Al.set(l,Qi(Al.get(l)||null,t,e,n,a,i)),!0}return!1}function P0(t){var e=Qa(t.target);if(e!==null){var n=Nl(e);if(n!==null){if(e=n.tag,e===13){if(e=gh(n),e!==null){t.blockedOn=e,Jf(t.priority,function(){oh(n)});return}}else if(e===31){if(e=vh(n),e!==null){t.blockedOn=e,Jf(t.priority,function(){oh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ou(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Bc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Fs=a,n.target.dispatchEvent(a),Fs=null}else return e=Ti(n),e!==null&&I0(e),t.blockedOn=n,!1;e.shift()}return!0}function dh(t,e,n){Ou(t)&&n.delete(e)}function bv(){Mc=!1,Bn!==null&&Ou(Bn)&&(Bn=null),Mn!==null&&Ou(Mn)&&(Mn=null),Cn!==null&&Ou(Cn)&&(Cn=null),xl.forEach(dh),Al.forEach(dh)}function hu(t,e){t.blockedOn===e&&(t.blockedOn=null,Mc||(Mc=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,bv)))}var mu=null;function hh(t){mu!==t&&(mu=t,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,function(){mu===t&&(mu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!=\\\"function\\\"){if(Ro(a||n)===null)continue;break}var l=Ti(n);l!==null&&(t.splice(e,3),e-=3,dc(l,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Si(t){function e(s){return hu(s,t)}Bn!==null&&hu(Bn,t),Mn!==null&&hu(Mn,t),Cn!==null&&hu(Cn,t),xl.forEach(e),Al.forEach(e);for(var n=0;n<Sn.length;n++){var a=Sn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)P0(n),n.blockedOn===null&&Sn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],u=i[Lt]||null;if(typeof l==\\\"function\\\")u||hh(n);else if(u){var r=null;if(l&&l.hasAttribute(\\\"formAction\\\")){if(i=l,u=l[Lt]||null)r=u.formAction;else if(Ro(i)!==null)continue}else r=u.action;typeof r==\\\"function\\\"?n[a+1]=r:(n.splice(a,3),a-=3),hh(n)}}}function tp(){function t(l){l.canIntercept&&l.info===\\\"react-transition\\\"&&l.intercept({handler:function(){return new Promise(function(u){return i=u})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function e(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var a=!1,i=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",e),navigation.addEventListener(\\\"navigateerror\\\",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",e),navigation.removeEventListener(\\\"navigateerror\\\",e),i!==null&&(i(),i=null)}}}function Oo(t){this._internalRoot=t}_r.prototype.render=Oo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(S(409));var n=e.current,a=te();F0(n,a,t,e,null,null)};_r.prototype.unmount=Oo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;F0(t.current,2,null,t,null,null),gr(),e[_i]=null}};function _r(t){this._internalRoot=t}_r.prototype.unstable_scheduleHydration=function(t){if(t){var e=Oh();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Sn.length&&e!==0&&e<Sn[n].priority;n++);Sn.splice(n,0,t),n===0&&P0(t)}};var mh=ph.version;if(mh!==\\\"19.2.4\\\")throw Error(S(527,mh,\\\"19.2.4\\\"));$.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render==\\\"function\\\"?Error(S(188)):(t=Object.keys(t).join(\\\",\\\"),Error(S(268,t)));return t=tg(e),t=t!==null?Sh(t):null,t=t===null?null:t.stateNode,t};var Ev={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:M,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ki.isDisabled&&Ki.supportsFiber))try{wl=Ki.inject(Ev),Wt=Ki}catch{}var Ki;Tr.createRoot=function(t,e){if(!yh(t))throw Error(S(299));var n=!1,a=\\\"\\\",i=Xm,l=Qm,u=Km;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(l=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=J0(t,1,!1,null,null,n,a,null,i,l,u,tp),t[_i]=e.current,Eo(t),new Oo(e)};Tr.hydrateRoot=function(t,e,n){if(!yh(t))throw Error(S(299));var a=!1,i=\\\"\\\",l=Xm,u=Qm,r=Km,s=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),e=J0(t,1,!0,e,n??null,a,i,s,l,u,r,tp),e.context=$0(null),n=e.current,a=te(),a=Hc(a),i=wn(a),i.callback=null,Rn(n,i,a),n=a,e.current.lanes=n,Ol(e,n),Me(e),t[_i]=e.current,Eo(t),new _r(e)};Tr.version=\\\"19.2.4\\\"});var ip=Qt((HS,ap)=>{\\\"use strict\\\";T();function np(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(np)}catch(t){console.error(t)}}np(),ap.exports=ep()});var Np=Qt(zr=>{\\\"use strict\\\";T();var P2=Symbol.for(\\\"react.transitional.element\\\"),tS=Symbol.for(\\\"react.fragment\\\");function Ap(t,e,n){var a=null;if(n!==void 0&&(a=\\\"\\\"+n),e.key!==void 0&&(a=\\\"\\\"+e.key),\\\"key\\\"in e){n={};for(var i in e)i!==\\\"key\\\"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:P2,type:t,key:a,ref:e!==void 0?e:null,props:n}}zr.Fragment=tS;zr.jsx=Ap;zr.jsxs=Ap});var on=Qt((bT,wp)=>{\\\"use strict\\\";T();wp.exports=Np()});T();var kp=Ct(ip(),1);T();var ae=Ct(Kn(),1);T();T();T();T();T();var br=(t,e)=>{let n=t.get(e);if(!n)for(let[a,i]of t.entries()){let l=a.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\\\"\\\\\\\\$&\\\").replace(/\\\\\\\\\\\\*/g,\\\".*\\\");if(new RegExp(`^${l}$`).test(e)){n=i;break}}return n},zo=(t,e,n)=>br(t,n)?.get(e);T();var xv=Object.defineProperty,Av=(t,e,n)=>e in t?xv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ln=(t,e,n)=>Av(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,n);var Bo=\\\"tron:mainnet\\\",Mo=\\\"tron:nile\\\",Co=\\\"tron:shasta\\\",zv=[Bo,Mo,Co],Bv=\\\"https://api.trongrid.io\\\",Mv=\\\"https://api.nileex.io\\\",Cv=\\\"https://api.shasta.trongrid.io\\\",WS={[Bo]:Bv,[Mo]:Mv,[Co]:Cv};var lp=1e8;var up=\\\"exact\\\";var Uv=\\\"T\\\",Dv=34;var PS={[Bo]:\\\"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\\\",[Mo]:\\\"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf\\\",[Co]:\\\"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs\\\"};function rp(t){if(zv.includes(t))return t;let e=t.toLowerCase();if(e===\\\"mainnet\\\"||e===\\\"tron\\\")return\\\"tron:mainnet\\\";if(e===\\\"nile\\\"||e===\\\"tron-nile\\\")return\\\"tron:nile\\\";if(e===\\\"shasta\\\"||e===\\\"tron-shasta\\\")return\\\"tron:shasta\\\";throw new Error(`Unsupported TRON network: ${t}`)}var Hv=\\\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\\\";function Er(t){if(!t||t.length!==Dv||!t.startsWith(Uv))return!1;for(let e of t)if(!Hv.includes(e))return!1;return!0}T();var qv=Object.defineProperty,jv=(t,e,n)=>e in t?qv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xr=(t,e,n)=>jv(t,typeof e!=\\\"symbol\\\"?e+\\\"\\\":e,n);var sp=class{constructor(t,e){xr(this,\\\"scheme\\\",up),xr(this,\\\"signer\\\"),xr(this,\\\"config\\\"),this.signer=t,this.config=e??{}}async createPaymentPayload(t,e){let n=rp(String(e.network));if(!e.asset)throw new Error(\\\"Asset (TRC20 contract address) is required\\\");if(!e.payTo)throw new Error(\\\"PayTo address is required\\\");if(!e.amount)throw new Error(\\\"Amount is required\\\");if(!Er(e.asset))throw new Error(`Invalid TRC20 contract address: ${e.asset}`);if(!Er(e.payTo))throw new Error(`Invalid payTo address: ${e.payTo}`);if(!Er(this.signer.address))throw new Error(`Invalid signer address: ${this.signer.address}`);let a=await this.signer.getBlockInfo(),i=a.expiration,l=this.config.feeLimit??lp,u=await this.signer.signTransaction({contractAddress:e.asset,to:e.payTo,amount:e.amount,feeLimit:l,expiration:i}),r={from:this.signer.address,to:e.payTo,contractAddress:e.asset,amount:e.amount,expiration:i,refBlockBytes:a.refBlockBytes,refBlockHash:a.refBlockHash,timestamp:Date.now()};return{t402Version:t,payload:{signedTransaction:u,authorization:r}}}};function Uo(t,e){let n=new sp(e.signer,e.schemeConfig);return e.networks&&e.networks.length>0?e.networks.forEach(a=>{t.register(a,n)}):t.register(\\\"tron:*\\\",n),e.policies&&e.policies.forEach(a=>{t.registerPolicy(a)}),t}T();T();T();var Do=2;T();T();var z={};Pp(z,{BRAND:()=>o2,DIRTY:()=>ma,EMPTY_PATH:()=>Zv,INVALID:()=>O,NEVER:()=>J2,OK:()=>Ot,ParseStatus:()=>wt,Schema:()=>j,ZodAny:()=>Zn,ZodArray:()=>cn,ZodBigInt:()=>ya,ZodBoolean:()=>ga,ZodBranded:()=>kl,ZodCatch:()=>Ra,ZodDate:()=>va,ZodDefault:()=>wa,ZodDiscriminatedUnion:()=>wr,ZodEffects:()=>ve,ZodEnum:()=>Aa,ZodError:()=>Zt,ZodFirstPartyTypeKind:()=>B,ZodFunction:()=>Or,ZodIntersection:()=>ba,ZodIssueCode:()=>_,ZodLazy:()=>Ea,ZodLiteral:()=>xa,ZodMap:()=>Mi,ZodNaN:()=>Ui,ZodNativeEnum:()=>Na,ZodNever:()=>be,ZodNull:()=>_a,ZodNullable:()=>De,ZodNumber:()=>pa,ZodObject:()=>Vt,ZodOptional:()=>ye,ZodParsedType:()=>x,ZodPipeline:()=>Ll,ZodPromise:()=>Vn,ZodReadonly:()=>Oa,ZodRecord:()=>Rr,ZodSchema:()=>j,ZodSet:()=>Ci,ZodString:()=>Yn,ZodSymbol:()=>zi,ZodTransformer:()=>ve,ZodTuple:()=>Ue,ZodType:()=>j,ZodUndefined:()=>Sa,ZodUnion:()=>Ta,ZodUnknown:()=>sn,ZodVoid:()=>Bi,addIssueToContext:()=>E,any:()=>S2,array:()=>E2,bigint:()=>m2,boolean:()=>Sp,coerce:()=>K2,custom:()=>yp,date:()=>p2,datetimeRegex:()=>mp,defaultErrorMap:()=>un,discriminatedUnion:()=>w2,effect:()=>k2,enum:()=>H2,function:()=>C2,getErrorMap:()=>wi,getParsedType:()=>Ce,instanceof:()=>d2,intersection:()=>R2,isAborted:()=>Ar,isAsync:()=>Ri,isDirty:()=>Nr,isValid:()=>Ln,late:()=>f2,lazy:()=>U2,literal:()=>D2,makeIssue:()=>jl,map:()=>B2,nan:()=>h2,nativeEnum:()=>q2,never:()=>T2,null:()=>v2,nullable:()=>Y2,number:()=>vp,object:()=>x2,objectUtil:()=>Ho,oboolean:()=>Q2,onumber:()=>X2,optional:()=>L2,ostring:()=>G2,pipeline:()=>V2,preprocess:()=>Z2,promise:()=>j2,quotelessJson:()=>kv,record:()=>z2,set:()=>M2,setErrorMap:()=>Yv,strictObject:()=>A2,string:()=>gp,symbol:()=>y2,transformer:()=>k2,tuple:()=>O2,undefined:()=>g2,union:()=>N2,unknown:()=>_2,util:()=>Y,void:()=>b2});T();T();T();T();T();var Y;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{let l={};for(let u of i)l[u]=u;return l},t.getValidEnumValues=i=>{let l=t.objectKeys(i).filter(r=>typeof i[i[r]]!=\\\"number\\\"),u={};for(let r of l)u[r]=i[r];return t.objectValues(u)},t.objectValues=i=>t.objectKeys(i).map(function(l){return i[l]}),t.objectKeys=typeof Object.keys==\\\"function\\\"?i=>Object.keys(i):i=>{let l=[];for(let u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.push(u);return l},t.find=(i,l)=>{for(let u of i)if(l(u))return u},t.isInteger=typeof Number.isInteger==\\\"function\\\"?i=>Number.isInteger(i):i=>typeof i==\\\"number\\\"&&Number.isFinite(i)&&Math.floor(i)===i;function a(i,l=\\\" | \\\"){return i.map(u=>typeof u==\\\"string\\\"?`'${u}'`:u).join(l)}t.joinValues=a,t.jsonStringifyReplacer=(i,l)=>typeof l==\\\"bigint\\\"?l.toString():l})(Y||(Y={}));var Ho;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Ho||(Ho={}));var x=Y.arrayToEnum([\\\"string\\\",\\\"nan\\\",\\\"number\\\",\\\"integer\\\",\\\"float\\\",\\\"boolean\\\",\\\"date\\\",\\\"bigint\\\",\\\"symbol\\\",\\\"function\\\",\\\"undefined\\\",\\\"null\\\",\\\"array\\\",\\\"object\\\",\\\"unknown\\\",\\\"promise\\\",\\\"void\\\",\\\"never\\\",\\\"map\\\",\\\"set\\\"]),Ce=t=>{switch(typeof t){case\\\"undefined\\\":return x.undefined;case\\\"string\\\":return x.string;case\\\"number\\\":return Number.isNaN(t)?x.nan:x.number;case\\\"boolean\\\":return x.boolean;case\\\"function\\\":return x.function;case\\\"bigint\\\":return x.bigint;case\\\"symbol\\\":return x.symbol;case\\\"object\\\":return Array.isArray(t)?x.array:t===null?x.null:t.then&&typeof t.then==\\\"function\\\"&&t.catch&&typeof t.catch==\\\"function\\\"?x.promise:typeof Map<\\\"u\\\"&&t instanceof Map?x.map:typeof Set<\\\"u\\\"&&t instanceof Set?x.set:typeof Date<\\\"u\\\"&&t instanceof Date?x.date:x.object;default:return x.unknown}};var _=Y.arrayToEnum([\\\"invalid_type\\\",\\\"invalid_literal\\\",\\\"custom\\\",\\\"invalid_union\\\",\\\"invalid_union_discriminator\\\",\\\"invalid_enum_value\\\",\\\"unrecognized_keys\\\",\\\"invalid_arguments\\\",\\\"invalid_return_type\\\",\\\"invalid_date\\\",\\\"invalid_string\\\",\\\"too_small\\\",\\\"too_big\\\",\\\"invalid_intersection_types\\\",\\\"not_multiple_of\\\",\\\"not_finite\\\"]),kv=t=>JSON.stringify(t,null,2).replace(/\\\"([^\\\"]+)\\\":/g,\\\"$1:\\\"),Zt=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\\\"ZodError\\\",this.issues=e}format(e){let n=e||function(l){return l.message},a={_errors:[]},i=l=>{for(let u of l.issues)if(u.code===\\\"invalid_union\\\")u.unionErrors.map(i);else if(u.code===\\\"invalid_return_type\\\")i(u.returnTypeError);else if(u.code===\\\"invalid_arguments\\\")i(u.argumentsError);else if(u.path.length===0)a._errors.push(n(u));else{let r=a,s=0;for(;s<u.path.length;){let c=u.path[s];s===u.path.length-1?(r[c]=r[c]||{_errors:[]},r[c]._errors.push(n(u))):r[c]=r[c]||{_errors:[]},r=r[c],s++}}};return i(this),a}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Y.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},a=[];for(let i of this.issues)if(i.path.length>0){let l=i.path[0];n[l]=n[l]||[],n[l].push(e(i))}else a.push(e(i));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}};Zt.create=t=>new Zt(t);var Lv=(t,e)=>{let n;switch(t.code){case _.invalid_type:t.received===x.undefined?n=\\\"Required\\\":n=`Expected ${t.expected}, received ${t.received}`;break;case _.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Y.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:n=`Unrecognized key(s) in object: ${Y.joinValues(t.keys,\\\", \\\")}`;break;case _.invalid_union:n=\\\"Invalid input\\\";break;case _.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Y.joinValues(t.options)}`;break;case _.invalid_enum_value:n=`Invalid enum value. Expected ${Y.joinValues(t.options)}, received '${t.received}'`;break;case _.invalid_arguments:n=\\\"Invalid function arguments\\\";break;case _.invalid_return_type:n=\\\"Invalid function return type\\\";break;case _.invalid_date:n=\\\"Invalid date\\\";break;case _.invalid_string:typeof t.validation==\\\"object\\\"?\\\"includes\\\"in t.validation?(n=`Invalid input: must include \\\"${t.validation.includes}\\\"`,typeof t.validation.position==\\\"number\\\"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):\\\"startsWith\\\"in t.validation?n=`Invalid input: must start with \\\"${t.validation.startsWith}\\\"`:\\\"endsWith\\\"in t.validation?n=`Invalid input: must end with \\\"${t.validation.endsWith}\\\"`:Y.assertNever(t.validation):t.validation!==\\\"regex\\\"?n=`Invalid ${t.validation}`:n=\\\"Invalid\\\";break;case _.too_small:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"more than\\\"} ${t.minimum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at least\\\":\\\"over\\\"} ${t.minimum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"bigint\\\"?n=`Number must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${t.minimum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly equal to \\\":t.inclusive?\\\"greater than or equal to \\\":\\\"greater than \\\"}${new Date(Number(t.minimum))}`:n=\\\"Invalid input\\\";break;case _.too_big:t.type===\\\"array\\\"?n=`Array must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"less than\\\"} ${t.maximum} element(s)`:t.type===\\\"string\\\"?n=`String must contain ${t.exact?\\\"exactly\\\":t.inclusive?\\\"at most\\\":\\\"under\\\"} ${t.maximum} character(s)`:t.type===\\\"number\\\"?n=`Number must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"bigint\\\"?n=`BigInt must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"less than or equal to\\\":\\\"less than\\\"} ${t.maximum}`:t.type===\\\"date\\\"?n=`Date must be ${t.exact?\\\"exactly\\\":t.inclusive?\\\"smaller than or equal to\\\":\\\"smaller than\\\"} ${new Date(Number(t.maximum))}`:n=\\\"Invalid input\\\";break;case _.custom:n=\\\"Invalid input\\\";break;case _.invalid_intersection_types:n=\\\"Intersection results could not be merged\\\";break;case _.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case _.not_finite:n=\\\"Number must be finite\\\";break;default:n=e.defaultError,Y.assertNever(t)}return{message:n}},un=Lv;var cp=un;function Yv(t){cp=t}function wi(){return cp}T();var jl=t=>{let{data:e,path:n,errorMaps:a,issueData:i}=t,l=[...n,...i.path||[]],u={...i,path:l};if(i.message!==void 0)return{...i,path:l,message:i.message};let r=\\\"\\\",s=a.filter(c=>!!c).slice().reverse();for(let c of s)r=c(u,{data:e,defaultError:r}).message;return{...i,path:l,message:r}},Zv=[];function E(t,e){let n=wi(),a=jl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===un?void 0:un].filter(i=>!!i)});t.common.issues.push(a)}var wt=class t{constructor(){this.value=\\\"valid\\\"}dirty(){this.value===\\\"valid\\\"&&(this.value=\\\"dirty\\\")}abort(){this.value!==\\\"aborted\\\"&&(this.value=\\\"aborted\\\")}static mergeArray(e,n){let a=[];for(let i of n){if(i.status===\\\"aborted\\\")return O;i.status===\\\"dirty\\\"&&e.dirty(),a.push(i.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,n){let a=[];for(let i of n){let l=await i.key,u=await i.value;a.push({key:l,value:u})}return t.mergeObjectSync(e,a)}static mergeObjectSync(e,n){let a={};for(let i of n){let{key:l,value:u}=i;if(l.status===\\\"aborted\\\"||u.status===\\\"aborted\\\")return O;l.status===\\\"dirty\\\"&&e.dirty(),u.status===\\\"dirty\\\"&&e.dirty(),l.value!==\\\"__proto__\\\"&&(typeof u.value<\\\"u\\\"||i.alwaysSet)&&(a[l.value]=u.value)}return{status:e.value,value:a}}},O=Object.freeze({status:\\\"aborted\\\"}),ma=t=>({status:\\\"dirty\\\",value:t}),Ot=t=>({status:\\\"valid\\\",value:t}),Ar=t=>t.status===\\\"aborted\\\",Nr=t=>t.status===\\\"dirty\\\",Ln=t=>t.status===\\\"valid\\\",Ri=t=>typeof Promise<\\\"u\\\"&&t instanceof Promise;T();T();var w;(function(t){t.errToObj=e=>typeof e==\\\"string\\\"?{message:e}:e||{},t.toString=e=>typeof e==\\\"string\\\"?e:e?.message})(w||(w={}));var ge=class{constructor(e,n,a,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=a,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},op=(t,e)=>{if(Ln(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error(\\\"Validation failed but no issues detected.\\\");return{success:!1,get error(){if(this._error)return this._error;let n=new Zt(t.common.issues);return this._error=n,this._error}}};function H(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:a,description:i}=t;if(e&&(n||a))throw new Error(`Can't use \\\"invalid_type_error\\\" or \\\"required_error\\\" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(u,r)=>{let{message:s}=t;return u.code===\\\"invalid_enum_value\\\"?{message:s??r.defaultError}:typeof r.data>\\\"u\\\"?{message:s??a??r.defaultError}:u.code!==\\\"invalid_type\\\"?{message:r.defaultError}:{message:s??n??r.defaultError}},description:i}}var j=class{get description(){return this._def.description}_getType(e){return Ce(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ce(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new wt,ctx:{common:e.parent.common,data:e.data,parsedType:Ce(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Ri(n))throw new Error(\\\"Synchronous parse encountered promise.\\\");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let a=this.safeParse(e,n);if(a.success)return a.data;throw a.error}safeParse(e,n){let a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ce(e)},i=this._parseSync({data:e,path:a.path,parent:a});return op(a,i)}\\\"~validate\\\"(e){let n={common:{issues:[],async:!!this[\\\"~standard\\\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ce(e)};if(!this[\\\"~standard\\\"].async)try{let a=this._parseSync({data:e,path:[],parent:n});return Ln(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes(\\\"encountered\\\")&&(this[\\\"~standard\\\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(a=>Ln(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(e,n){let a=await this.safeParseAsync(e,n);if(a.success)return a.data;throw a.error}async safeParseAsync(e,n){let a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ce(e)},i=this._parse({data:e,path:a.path,parent:a}),l=await(Ri(i)?i:Promise.resolve(i));return op(a,l)}refine(e,n){let a=i=>typeof n==\\\"string\\\"||typeof n>\\\"u\\\"?{message:n}:typeof n==\\\"function\\\"?n(i):n;return this._refinement((i,l)=>{let u=e(i),r=()=>l.addIssue({code:_.custom,...a(i)});return typeof Promise<\\\"u\\\"&&u instanceof Promise?u.then(s=>s?!0:(r(),!1)):u?!0:(r(),!1)})}refinement(e,n){return this._refinement((a,i)=>e(a)?!0:(i.addIssue(typeof n==\\\"function\\\"?n(a,i):n),!1))}_refinement(e){return new ve({schema:this,typeName:B.ZodEffects,effect:{type:\\\"refinement\\\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\\\"~standard\\\"]={version:1,vendor:\\\"zod\\\",validate:n=>this[\\\"~validate\\\"](n)}}optional(){return ye.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return cn.create(this)}promise(){return Vn.create(this,this._def)}or(e){return Ta.create([this,e],this._def)}and(e){return ba.create(this,e,this._def)}transform(e){return new ve({...H(this._def),schema:this,typeName:B.ZodEffects,effect:{type:\\\"transform\\\",transform:e}})}default(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new wa({...H(this._def),innerType:this,defaultValue:n,typeName:B.ZodDefault})}brand(){return new kl({typeName:B.ZodBranded,type:this,...H(this._def)})}catch(e){let n=typeof e==\\\"function\\\"?e:()=>e;return new Ra({...H(this._def),innerType:this,catchValue:n,typeName:B.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ll.create(this,e)}readonly(){return Oa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Vv=/^c[^\\\\s-]{8,}$/i,Gv=/^[0-9a-z]+$/,Xv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Qv=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,Kv=/^[a-z0-9_-]{21}$/i,Jv=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,$v=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,Fv=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,Iv=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\",qo,Wv=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pv=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,t2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,e2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,n2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,a2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dp=\\\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\\\",i2=new RegExp(`^${dp}$`);function hp(t){let e=\\\"[0-5]\\\\\\\\d\\\";t.precision?e=`${e}\\\\\\\\.\\\\\\\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\\\\\\\.\\\\\\\\d+)?`);let n=t.precision?\\\"+\\\":\\\"?\\\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${e})${n}`}function l2(t){return new RegExp(`^${hp(t)}$`)}function mp(t){let e=`${dp}T${hp(t)}`,n=[];return n.push(t.local?\\\"Z?\\\":\\\"Z\\\"),t.offset&&n.push(\\\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\\\"),e=`${e}(${n.join(\\\"|\\\")})`,new RegExp(`^${e}$`)}function u2(t,e){return!!((e===\\\"v4\\\"||!e)&&Wv.test(t)||(e===\\\"v6\\\"||!e)&&t2.test(t))}function r2(t,e){if(!Jv.test(t))return!1;try{let[n]=t.split(\\\".\\\");if(!n)return!1;let a=n.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\").padEnd(n.length+(4-n.length%4)%4,\\\"=\\\"),i=JSON.parse(atob(a));return!(typeof i!=\\\"object\\\"||i===null||\\\"typ\\\"in i&&i?.typ!==\\\"JWT\\\"||!i.alg||e&&i.alg!==e)}catch{return!1}}function s2(t,e){return!!((e===\\\"v4\\\"||!e)&&Pv.test(t)||(e===\\\"v6\\\"||!e)&&e2.test(t))}var Yn=class t extends j{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){let l=this._getOrReturnCtx(e);return E(l,{code:_.invalid_type,expected:x.string,received:l.parsedType}),O}let a=new wt,i;for(let l of this._def.checks)if(l.kind===\\\"min\\\")e.data.length<l.value&&(i=this._getOrReturnCtx(e,i),E(i,{code:_.too_small,minimum:l.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind===\\\"max\\\")e.data.length>l.value&&(i=this._getOrReturnCtx(e,i),E(i,{code:_.too_big,maximum:l.value,type:\\\"string\\\",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind===\\\"length\\\"){let u=e.data.length>l.value,r=e.data.length<l.value;(u||r)&&(i=this._getOrReturnCtx(e,i),u?E(i,{code:_.too_big,maximum:l.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:l.message}):r&&E(i,{code:_.too_small,minimum:l.value,type:\\\"string\\\",inclusive:!0,exact:!0,message:l.message}),a.dirty())}else if(l.kind===\\\"email\\\")Fv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"email\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"emoji\\\")qo||(qo=new RegExp(Iv,\\\"u\\\")),qo.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"emoji\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"uuid\\\")Qv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"uuid\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"nanoid\\\")Kv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"nanoid\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"cuid\\\")Vv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"cuid\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"cuid2\\\")Gv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"cuid2\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"ulid\\\")Xv.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"ulid\\\",code:_.invalid_string,message:l.message}),a.dirty());else if(l.kind===\\\"url\\\")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"url\\\",code:_.invalid_string,message:l.message}),a.dirty()}else l.kind===\\\"regex\\\"?(l.regex.lastIndex=0,l.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"regex\\\",code:_.invalid_string,message:l.message}),a.dirty())):l.kind===\\\"trim\\\"?e.data=e.data.trim():l.kind===\\\"includes\\\"?e.data.includes(l.value,l.position)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),a.dirty()):l.kind===\\\"toLowerCase\\\"?e.data=e.data.toLowerCase():l.kind===\\\"toUpperCase\\\"?e.data=e.data.toUpperCase():l.kind===\\\"startsWith\\\"?e.data.startsWith(l.value)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:{startsWith:l.value},message:l.message}),a.dirty()):l.kind===\\\"endsWith\\\"?e.data.endsWith(l.value)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:{endsWith:l.value},message:l.message}),a.dirty()):l.kind===\\\"datetime\\\"?mp(l).test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:\\\"datetime\\\",message:l.message}),a.dirty()):l.kind===\\\"date\\\"?i2.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:\\\"date\\\",message:l.message}),a.dirty()):l.kind===\\\"time\\\"?l2(l).test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{code:_.invalid_string,validation:\\\"time\\\",message:l.message}),a.dirty()):l.kind===\\\"duration\\\"?$v.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"duration\\\",code:_.invalid_string,message:l.message}),a.dirty()):l.kind===\\\"ip\\\"?u2(e.data,l.version)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"ip\\\",code:_.invalid_string,message:l.message}),a.dirty()):l.kind===\\\"jwt\\\"?r2(e.data,l.alg)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"jwt\\\",code:_.invalid_string,message:l.message}),a.dirty()):l.kind===\\\"cidr\\\"?s2(e.data,l.version)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"cidr\\\",code:_.invalid_string,message:l.message}),a.dirty()):l.kind===\\\"base64\\\"?n2.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"base64\\\",code:_.invalid_string,message:l.message}),a.dirty()):l.kind===\\\"base64url\\\"?a2.test(e.data)||(i=this._getOrReturnCtx(e,i),E(i,{validation:\\\"base64url\\\",code:_.invalid_string,message:l.message}),a.dirty()):Y.assertNever(l);return{status:a.value,value:e.data}}_regex(e,n,a){return this.refinement(i=>e.test(i),{validation:n,code:_.invalid_string,...w.errToObj(a)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\\\"email\\\",...w.errToObj(e)})}url(e){return this._addCheck({kind:\\\"url\\\",...w.errToObj(e)})}emoji(e){return this._addCheck({kind:\\\"emoji\\\",...w.errToObj(e)})}uuid(e){return this._addCheck({kind:\\\"uuid\\\",...w.errToObj(e)})}nanoid(e){return this._addCheck({kind:\\\"nanoid\\\",...w.errToObj(e)})}cuid(e){return this._addCheck({kind:\\\"cuid\\\",...w.errToObj(e)})}cuid2(e){return this._addCheck({kind:\\\"cuid2\\\",...w.errToObj(e)})}ulid(e){return this._addCheck({kind:\\\"ulid\\\",...w.errToObj(e)})}base64(e){return this._addCheck({kind:\\\"base64\\\",...w.errToObj(e)})}base64url(e){return this._addCheck({kind:\\\"base64url\\\",...w.errToObj(e)})}jwt(e){return this._addCheck({kind:\\\"jwt\\\",...w.errToObj(e)})}ip(e){return this._addCheck({kind:\\\"ip\\\",...w.errToObj(e)})}cidr(e){return this._addCheck({kind:\\\"cidr\\\",...w.errToObj(e)})}datetime(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"datetime\\\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\\\"datetime\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...w.errToObj(e?.message)})}date(e){return this._addCheck({kind:\\\"date\\\",message:e})}time(e){return typeof e==\\\"string\\\"?this._addCheck({kind:\\\"time\\\",precision:null,message:e}):this._addCheck({kind:\\\"time\\\",precision:typeof e?.precision>\\\"u\\\"?null:e?.precision,...w.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\\\"duration\\\",...w.errToObj(e)})}regex(e,n){return this._addCheck({kind:\\\"regex\\\",regex:e,...w.errToObj(n)})}includes(e,n){return this._addCheck({kind:\\\"includes\\\",value:e,position:n?.position,...w.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:\\\"startsWith\\\",value:e,...w.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:\\\"endsWith\\\",value:e,...w.errToObj(n)})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e,...w.errToObj(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e,...w.errToObj(n)})}length(e,n){return this._addCheck({kind:\\\"length\\\",value:e,...w.errToObj(n)})}nonempty(e){return this.min(1,w.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"trim\\\"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toLowerCase\\\"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:\\\"toUpperCase\\\"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===\\\"datetime\\\")}get isDate(){return!!this._def.checks.find(e=>e.kind===\\\"date\\\")}get isTime(){return!!this._def.checks.find(e=>e.kind===\\\"time\\\")}get isDuration(){return!!this._def.checks.find(e=>e.kind===\\\"duration\\\")}get isEmail(){return!!this._def.checks.find(e=>e.kind===\\\"email\\\")}get isURL(){return!!this._def.checks.find(e=>e.kind===\\\"url\\\")}get isEmoji(){return!!this._def.checks.find(e=>e.kind===\\\"emoji\\\")}get isUUID(){return!!this._def.checks.find(e=>e.kind===\\\"uuid\\\")}get isNANOID(){return!!this._def.checks.find(e=>e.kind===\\\"nanoid\\\")}get isCUID(){return!!this._def.checks.find(e=>e.kind===\\\"cuid\\\")}get isCUID2(){return!!this._def.checks.find(e=>e.kind===\\\"cuid2\\\")}get isULID(){return!!this._def.checks.find(e=>e.kind===\\\"ulid\\\")}get isIP(){return!!this._def.checks.find(e=>e.kind===\\\"ip\\\")}get isCIDR(){return!!this._def.checks.find(e=>e.kind===\\\"cidr\\\")}get isBase64(){return!!this._def.checks.find(e=>e.kind===\\\"base64\\\")}get isBase64url(){return!!this._def.checks.find(e=>e.kind===\\\"base64url\\\")}get minLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};Yn.create=t=>new Yn({checks:[],typeName:B.ZodString,coerce:t?.coerce??!1,...H(t)});function c2(t,e){let n=(t.toString().split(\\\".\\\")[1]||\\\"\\\").length,a=(e.toString().split(\\\".\\\")[1]||\\\"\\\").length,i=n>a?n:a,l=Number.parseInt(t.toFixed(i).replace(\\\".\\\",\\\"\\\")),u=Number.parseInt(e.toFixed(i).replace(\\\".\\\",\\\"\\\"));return l%u/10**i}var pa=class t extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x.number){let l=this._getOrReturnCtx(e);return E(l,{code:_.invalid_type,expected:x.number,received:l.parsedType}),O}let a,i=new wt;for(let l of this._def.checks)l.kind===\\\"int\\\"?Y.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),E(a,{code:_.invalid_type,expected:\\\"integer\\\",received:\\\"float\\\",message:l.message}),i.dirty()):l.kind===\\\"min\\\"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.too_small,minimum:l.value,type:\\\"number\\\",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind===\\\"max\\\"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.too_big,maximum:l.value,type:\\\"number\\\",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind===\\\"multipleOf\\\"?c2(e.data,l.value)!==0&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):l.kind===\\\"finite\\\"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),E(a,{code:_.not_finite,message:l.message}),i.dirty()):Y.assertNever(l);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,w.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,w.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,w.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,w.toString(n))}setLimit(e,n,a,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:w.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\\\"int\\\",message:w.toString(e)})}positive(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!1,message:w.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!1,message:w.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:0,inclusive:!0,message:w.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:0,inclusive:!0,message:w.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:w.toString(n)})}finite(e){return this._addCheck({kind:\\\"finite\\\",message:w.toString(e)})}safe(e){return this._addCheck({kind:\\\"min\\\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(e)})._addCheck({kind:\\\"max\\\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===\\\"int\\\"||e.kind===\\\"multipleOf\\\"&&Y.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let a of this._def.checks){if(a.kind===\\\"finite\\\"||a.kind===\\\"int\\\"||a.kind===\\\"multipleOf\\\")return!0;a.kind===\\\"min\\\"?(n===null||a.value>n)&&(n=a.value):a.kind===\\\"max\\\"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(n)&&Number.isFinite(e)}};pa.create=t=>new pa({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...H(t)});var ya=class t extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==x.bigint)return this._getInvalidInput(e);let a,i=new wt;for(let l of this._def.checks)l.kind===\\\"min\\\"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.too_small,type:\\\"bigint\\\",minimum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind===\\\"max\\\"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.too_big,type:\\\"bigint\\\",maximum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind===\\\"multipleOf\\\"?e.data%l.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),E(a,{code:_.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):Y.assertNever(l);return{status:i.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return E(n,{code:_.invalid_type,expected:x.bigint,received:n.parsedType}),O}gte(e,n){return this.setLimit(\\\"min\\\",e,!0,w.toString(n))}gt(e,n){return this.setLimit(\\\"min\\\",e,!1,w.toString(n))}lte(e,n){return this.setLimit(\\\"max\\\",e,!0,w.toString(n))}lt(e,n){return this.setLimit(\\\"max\\\",e,!1,w.toString(n))}setLimit(e,n,a,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:a,message:w.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!1,message:w.toString(e)})}negative(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!1,message:w.toString(e)})}nonpositive(e){return this._addCheck({kind:\\\"max\\\",value:BigInt(0),inclusive:!0,message:w.toString(e)})}nonnegative(e){return this._addCheck({kind:\\\"min\\\",value:BigInt(0),inclusive:!0,message:w.toString(e)})}multipleOf(e,n){return this._addCheck({kind:\\\"multipleOf\\\",value:e,message:w.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e}};ya.create=t=>new ya({checks:[],typeName:B.ZodBigInt,coerce:t?.coerce??!1,...H(t)});var ga=class extends j{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x.boolean){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.boolean,received:a.parsedType}),O}return Ot(e.data)}};ga.create=t=>new ga({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...H(t)});var va=class t extends j{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){let l=this._getOrReturnCtx(e);return E(l,{code:_.invalid_type,expected:x.date,received:l.parsedType}),O}if(Number.isNaN(e.data.getTime())){let l=this._getOrReturnCtx(e);return E(l,{code:_.invalid_date}),O}let a=new wt,i;for(let l of this._def.checks)l.kind===\\\"min\\\"?e.data.getTime()<l.value&&(i=this._getOrReturnCtx(e,i),E(i,{code:_.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:\\\"date\\\"}),a.dirty()):l.kind===\\\"max\\\"?e.data.getTime()>l.value&&(i=this._getOrReturnCtx(e,i),E(i,{code:_.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:\\\"date\\\"}),a.dirty()):Y.assertNever(l);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:\\\"min\\\",value:e.getTime(),message:w.toString(n)})}max(e,n){return this._addCheck({kind:\\\"max\\\",value:e.getTime(),message:w.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"min\\\"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind===\\\"max\\\"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};va.create=t=>new va({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...H(t)});var zi=class extends j{_parse(e){if(this._getType(e)!==x.symbol){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.symbol,received:a.parsedType}),O}return Ot(e.data)}};zi.create=t=>new zi({typeName:B.ZodSymbol,...H(t)});var Sa=class extends j{_parse(e){if(this._getType(e)!==x.undefined){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.undefined,received:a.parsedType}),O}return Ot(e.data)}};Sa.create=t=>new Sa({typeName:B.ZodUndefined,...H(t)});var _a=class extends j{_parse(e){if(this._getType(e)!==x.null){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.null,received:a.parsedType}),O}return Ot(e.data)}};_a.create=t=>new _a({typeName:B.ZodNull,...H(t)});var Zn=class extends j{constructor(){super(...arguments),this._any=!0}_parse(e){return Ot(e.data)}};Zn.create=t=>new Zn({typeName:B.ZodAny,...H(t)});var sn=class extends j{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ot(e.data)}};sn.create=t=>new sn({typeName:B.ZodUnknown,...H(t)});var be=class extends j{_parse(e){let n=this._getOrReturnCtx(e);return E(n,{code:_.invalid_type,expected:x.never,received:n.parsedType}),O}};be.create=t=>new be({typeName:B.ZodNever,...H(t)});var Bi=class extends j{_parse(e){if(this._getType(e)!==x.undefined){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.void,received:a.parsedType}),O}return Ot(e.data)}};Bi.create=t=>new Bi({typeName:B.ZodVoid,...H(t)});var cn=class t extends j{_parse(e){let{ctx:n,status:a}=this._processInputParams(e),i=this._def;if(n.parsedType!==x.array)return E(n,{code:_.invalid_type,expected:x.array,received:n.parsedType}),O;if(i.exactLength!==null){let u=n.data.length>i.exactLength.value,r=n.data.length<i.exactLength.value;(u||r)&&(E(n,{code:u?_.too_big:_.too_small,minimum:r?i.exactLength.value:void 0,maximum:u?i.exactLength.value:void 0,type:\\\"array\\\",inclusive:!0,exact:!0,message:i.exactLength.message}),a.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(E(n,{code:_.too_small,minimum:i.minLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.minLength.message}),a.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(E(n,{code:_.too_big,maximum:i.maxLength.value,type:\\\"array\\\",inclusive:!0,exact:!1,message:i.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((u,r)=>i.type._parseAsync(new ge(n,u,n.path,r)))).then(u=>wt.mergeArray(a,u));let l=[...n.data].map((u,r)=>i.type._parseSync(new ge(n,u,n.path,r)));return wt.mergeArray(a,l)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:w.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:w.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:w.toString(n)}})}nonempty(e){return this.min(1,e)}};cn.create=(t,e)=>new cn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...H(e)});function Oi(t){if(t instanceof Vt){let e={};for(let n in t.shape){let a=t.shape[n];e[n]=ye.create(Oi(a))}return new Vt({...t._def,shape:()=>e})}else return t instanceof cn?new cn({...t._def,type:Oi(t.element)}):t instanceof ye?ye.create(Oi(t.unwrap())):t instanceof De?De.create(Oi(t.unwrap())):t instanceof Ue?Ue.create(t.items.map(e=>Oi(e))):t}var Vt=class t extends j{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=Y.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==x.object){let c=this._getOrReturnCtx(e);return E(c,{code:_.invalid_type,expected:x.object,received:c.parsedType}),O}let{status:a,ctx:i}=this._processInputParams(e),{shape:l,keys:u}=this._getCached(),r=[];if(!(this._def.catchall instanceof be&&this._def.unknownKeys===\\\"strip\\\"))for(let c in i.data)u.includes(c)||r.push(c);let s=[];for(let c of u){let o=l[c],d=i.data[c];s.push({key:{status:\\\"valid\\\",value:c},value:o._parse(new ge(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof be){let c=this._def.unknownKeys;if(c===\\\"passthrough\\\")for(let o of r)s.push({key:{status:\\\"valid\\\",value:o},value:{status:\\\"valid\\\",value:i.data[o]}});else if(c===\\\"strict\\\")r.length>0&&(E(i,{code:_.unrecognized_keys,keys:r}),a.dirty());else if(c!==\\\"strip\\\")throw new Error(\\\"Internal ZodObject error: invalid unknownKeys value.\\\")}else{let c=this._def.catchall;for(let o of r){let d=i.data[o];s.push({key:{status:\\\"valid\\\",value:o},value:c._parse(new ge(i,d,i.path,o)),alwaysSet:o in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let o of s){let d=await o.key,m=await o.value;c.push({key:d,value:m,alwaysSet:o.alwaysSet})}return c}).then(c=>wt.mergeObjectSync(a,c)):wt.mergeObjectSync(a,s)}get shape(){return this._def.shape()}strict(e){return w.errToObj,new t({...this._def,unknownKeys:\\\"strict\\\",...e!==void 0?{errorMap:(n,a)=>{let i=this._def.errorMap?.(n,a).message??a.defaultError;return n.code===\\\"unrecognized_keys\\\"?{message:w.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:\\\"strip\\\"})}passthrough(){return new t({...this._def,unknownKeys:\\\"passthrough\\\"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:B.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let a of Y.objectKeys(e))e[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let a of Y.objectKeys(this.shape))e[a]||(n[a]=this.shape[a]);return new t({...this._def,shape:()=>n})}deepPartial(){return Oi(this)}partial(e){let n={};for(let a of Y.objectKeys(this.shape)){let i=this.shape[a];e&&!e[a]?n[a]=i:n[a]=i.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let a of Y.objectKeys(this.shape))if(e&&!e[a])n[a]=this.shape[a];else{let l=this.shape[a];for(;l instanceof ye;)l=l._def.innerType;n[a]=l}return new t({...this._def,shape:()=>n})}keyof(){return pp(Y.objectKeys(this.shape))}};Vt.create=(t,e)=>new Vt({shape:()=>t,unknownKeys:\\\"strip\\\",catchall:be.create(),typeName:B.ZodObject,...H(e)});Vt.strictCreate=(t,e)=>new Vt({shape:()=>t,unknownKeys:\\\"strict\\\",catchall:be.create(),typeName:B.ZodObject,...H(e)});Vt.lazycreate=(t,e)=>new Vt({shape:t,unknownKeys:\\\"strip\\\",catchall:be.create(),typeName:B.ZodObject,...H(e)});var Ta=class extends j{_parse(e){let{ctx:n}=this._processInputParams(e),a=this._def.options;function i(l){for(let r of l)if(r.result.status===\\\"valid\\\")return r.result;for(let r of l)if(r.result.status===\\\"dirty\\\")return n.common.issues.push(...r.ctx.common.issues),r.result;let u=l.map(r=>new Zt(r.ctx.common.issues));return E(n,{code:_.invalid_union,unionErrors:u}),O}if(n.common.async)return Promise.all(a.map(async l=>{let u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(i);{let l,u=[];for(let s of a){let c={...n,common:{...n.common,issues:[]},parent:null},o=s._parseSync({data:n.data,path:n.path,parent:c});if(o.status===\\\"valid\\\")return o;o.status===\\\"dirty\\\"&&!l&&(l={result:o,ctx:c}),c.common.issues.length&&u.push(c.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;let r=u.map(s=>new Zt(s));return E(n,{code:_.invalid_union,unionErrors:r}),O}}get options(){return this._def.options}};Ta.create=(t,e)=>new Ta({options:t,typeName:B.ZodUnion,...H(e)});var rn=t=>t instanceof Ea?rn(t.schema):t instanceof ve?rn(t.innerType()):t instanceof xa?[t.value]:t instanceof Aa?t.options:t instanceof Na?Y.objectValues(t.enum):t instanceof wa?rn(t._def.innerType):t instanceof Sa?[void 0]:t instanceof _a?[null]:t instanceof ye?[void 0,...rn(t.unwrap())]:t instanceof De?[null,...rn(t.unwrap())]:t instanceof kl||t instanceof Oa?rn(t.unwrap()):t instanceof Ra?rn(t._def.innerType):[],wr=class t extends j{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==x.object)return E(n,{code:_.invalid_type,expected:x.object,received:n.parsedType}),O;let a=this.discriminator,i=n.data[a],l=this.optionsMap.get(i);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(E(n,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),O)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,a){let i=new Map;for(let l of n){let u=rn(l.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \\\\`${e}\\\\` could not be extracted from all schema options`);for(let r of u){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,l)}}return new t({typeName:B.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...H(a)})}};function jo(t,e){let n=Ce(t),a=Ce(e);if(t===e)return{valid:!0,data:t};if(n===x.object&&a===x.object){let i=Y.objectKeys(e),l=Y.objectKeys(t).filter(r=>i.indexOf(r)!==-1),u={...t,...e};for(let r of l){let s=jo(t[r],e[r]);if(!s.valid)return{valid:!1};u[r]=s.data}return{valid:!0,data:u}}else if(n===x.array&&a===x.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let l=0;l<t.length;l++){let u=t[l],r=e[l],s=jo(u,r);if(!s.valid)return{valid:!1};i.push(s.data)}return{valid:!0,data:i}}else return n===x.date&&a===x.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var ba=class extends j{_parse(e){let{status:n,ctx:a}=this._processInputParams(e),i=(l,u)=>{if(Ar(l)||Ar(u))return O;let r=jo(l.value,u.value);return r.valid?((Nr(l)||Nr(u))&&n.dirty(),{status:n.value,value:r.data}):(E(a,{code:_.invalid_intersection_types}),O)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([l,u])=>i(l,u)):i(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};ba.create=(t,e,n)=>new ba({left:t,right:e,typeName:B.ZodIntersection,...H(n)});var Ue=class t extends j{_parse(e){let{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==x.array)return E(a,{code:_.invalid_type,expected:x.array,received:a.parsedType}),O;if(a.data.length<this._def.items.length)return E(a,{code:_.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),O;!this._def.rest&&a.data.length>this._def.items.length&&(E(a,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\\\"array\\\"}),n.dirty());let l=[...a.data].map((u,r)=>{let s=this._def.items[r]||this._def.rest;return s?s._parse(new ge(a,u,a.path,r)):null}).filter(u=>!!u);return a.common.async?Promise.all(l).then(u=>wt.mergeArray(n,u)):wt.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Ue.create=(t,e)=>{if(!Array.isArray(t))throw new Error(\\\"You must pass an array of schemas to z.tuple([ ... ])\\\");return new Ue({items:t,typeName:B.ZodTuple,rest:null,...H(e)})};var Rr=class t extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==x.object)return E(a,{code:_.invalid_type,expected:x.object,received:a.parsedType}),O;let i=[],l=this._def.keyType,u=this._def.valueType;for(let r in a.data)i.push({key:l._parse(new ge(a,r,a.path,r)),value:u._parse(new ge(a,a.data[r],a.path,r)),alwaysSet:r in a.data});return a.common.async?wt.mergeObjectAsync(n,i):wt.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,a){return n instanceof j?new t({keyType:e,valueType:n,typeName:B.ZodRecord,...H(a)}):new t({keyType:Yn.create(),valueType:e,typeName:B.ZodRecord,...H(n)})}},Mi=class extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==x.map)return E(a,{code:_.invalid_type,expected:x.map,received:a.parsedType}),O;let i=this._def.keyType,l=this._def.valueType,u=[...a.data.entries()].map(([r,s],c)=>({key:i._parse(new ge(a,r,a.path,[c,\\\"key\\\"])),value:l._parse(new ge(a,s,a.path,[c,\\\"value\\\"]))}));if(a.common.async){let r=new Map;return Promise.resolve().then(async()=>{for(let s of u){let c=await s.key,o=await s.value;if(c.status===\\\"aborted\\\"||o.status===\\\"aborted\\\")return O;(c.status===\\\"dirty\\\"||o.status===\\\"dirty\\\")&&n.dirty(),r.set(c.value,o.value)}return{status:n.value,value:r}})}else{let r=new Map;for(let s of u){let c=s.key,o=s.value;if(c.status===\\\"aborted\\\"||o.status===\\\"aborted\\\")return O;(c.status===\\\"dirty\\\"||o.status===\\\"dirty\\\")&&n.dirty(),r.set(c.value,o.value)}return{status:n.value,value:r}}}};Mi.create=(t,e,n)=>new Mi({valueType:e,keyType:t,typeName:B.ZodMap,...H(n)});var Ci=class t extends j{_parse(e){let{status:n,ctx:a}=this._processInputParams(e);if(a.parsedType!==x.set)return E(a,{code:_.invalid_type,expected:x.set,received:a.parsedType}),O;let i=this._def;i.minSize!==null&&a.data.size<i.minSize.value&&(E(a,{code:_.too_small,minimum:i.minSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&a.data.size>i.maxSize.value&&(E(a,{code:_.too_big,maximum:i.maxSize.value,type:\\\"set\\\",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let l=this._def.valueType;function u(s){let c=new Set;for(let o of s){if(o.status===\\\"aborted\\\")return O;o.status===\\\"dirty\\\"&&n.dirty(),c.add(o.value)}return{status:n.value,value:c}}let r=[...a.data.values()].map((s,c)=>l._parse(new ge(a,s,a.path,c)));return a.common.async?Promise.all(r).then(s=>u(s)):u(r)}min(e,n){return new t({...this._def,minSize:{value:e,message:w.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:w.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Ci.create=(t,e)=>new Ci({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...H(e)});var Or=class t extends j{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==x.function)return E(n,{code:_.invalid_type,expected:x.function,received:n.parsedType}),O;function a(r,s){return jl({data:r,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,wi(),un].filter(c=>!!c),issueData:{code:_.invalid_arguments,argumentsError:s}})}function i(r,s){return jl({data:r,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,wi(),un].filter(c=>!!c),issueData:{code:_.invalid_return_type,returnTypeError:s}})}let l={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof Vn){let r=this;return Ot(async function(...s){let c=new Zt([]),o=await r._def.args.parseAsync(s,l).catch(y=>{throw c.addIssue(a(s,y)),c}),d=await Reflect.apply(u,this,o);return await r._def.returns._def.type.parseAsync(d,l).catch(y=>{throw c.addIssue(i(d,y)),c})})}else{let r=this;return Ot(function(...s){let c=r._def.args.safeParse(s,l);if(!c.success)throw new Zt([a(s,c.error)]);let o=Reflect.apply(u,this,c.data),d=r._def.returns.safeParse(o,l);if(!d.success)throw new Zt([i(o,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Ue.create(e).rest(sn.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,a){return new t({args:e||Ue.create([]).rest(sn.create()),returns:n||sn.create(),typeName:B.ZodFunction,...H(a)})}},Ea=class extends j{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ea.create=(t,e)=>new Ea({getter:t,typeName:B.ZodLazy,...H(e)});var xa=class extends j{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return E(n,{received:n.data,code:_.invalid_literal,expected:this._def.value}),O}return{status:\\\"valid\\\",value:e.data}}get value(){return this._def.value}};xa.create=(t,e)=>new xa({value:t,typeName:B.ZodLiteral,...H(e)});function pp(t,e){return new Aa({values:t,typeName:B.ZodEnum,...H(e)})}var Aa=class t extends j{_parse(e){if(typeof e.data!=\\\"string\\\"){let n=this._getOrReturnCtx(e),a=this._def.values;return E(n,{expected:Y.joinValues(a),received:n.parsedType,code:_.invalid_type}),O}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),a=this._def.values;return E(n,{received:n.data,code:_.invalid_enum_value,options:a}),O}return Ot(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(a=>!e.includes(a)),{...this._def,...n})}};Aa.create=pp;var Na=class extends j{_parse(e){let n=Y.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==x.string&&a.parsedType!==x.number){let i=Y.objectValues(n);return E(a,{expected:Y.joinValues(i),received:a.parsedType,code:_.invalid_type}),O}if(this._cache||(this._cache=new Set(Y.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=Y.objectValues(n);return E(a,{received:a.data,code:_.invalid_enum_value,options:i}),O}return Ot(e.data)}get enum(){return this._def.values}};Na.create=(t,e)=>new Na({values:t,typeName:B.ZodNativeEnum,...H(e)});var Vn=class extends j{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==x.promise&&n.common.async===!1)return E(n,{code:_.invalid_type,expected:x.promise,received:n.parsedType}),O;let a=n.parsedType===x.promise?n.data:Promise.resolve(n.data);return Ot(a.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Vn.create=(t,e)=>new Vn({type:t,typeName:B.ZodPromise,...H(e)});var ve=class extends j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===B.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:a}=this._processInputParams(e),i=this._def.effect||null,l={addIssue:u=>{E(a,u),u.fatal?n.abort():n.dirty()},get path(){return a.path}};if(l.addIssue=l.addIssue.bind(l),i.type===\\\"preprocess\\\"){let u=i.transform(a.data,l);if(a.common.async)return Promise.resolve(u).then(async r=>{if(n.value===\\\"aborted\\\")return O;let s=await this._def.schema._parseAsync({data:r,path:a.path,parent:a});return s.status===\\\"aborted\\\"?O:s.status===\\\"dirty\\\"?ma(s.value):n.value===\\\"dirty\\\"?ma(s.value):s});{if(n.value===\\\"aborted\\\")return O;let r=this._def.schema._parseSync({data:u,path:a.path,parent:a});return r.status===\\\"aborted\\\"?O:r.status===\\\"dirty\\\"?ma(r.value):n.value===\\\"dirty\\\"?ma(r.value):r}}if(i.type===\\\"refinement\\\"){let u=r=>{let s=i.refinement(r,l);if(a.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error(\\\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\\\");return r};if(a.common.async===!1){let r=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return r.status===\\\"aborted\\\"?O:(r.status===\\\"dirty\\\"&&n.dirty(),u(r.value),{status:n.value,value:r.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(r=>r.status===\\\"aborted\\\"?O:(r.status===\\\"dirty\\\"&&n.dirty(),u(r.value).then(()=>({status:n.value,value:r.value}))))}if(i.type===\\\"transform\\\")if(a.common.async===!1){let u=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Ln(u))return O;let r=i.transform(u.value,l);if(r instanceof Promise)throw new Error(\\\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\\\");return{status:n.value,value:r}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(u=>Ln(u)?Promise.resolve(i.transform(u.value,l)).then(r=>({status:n.value,value:r})):O);Y.assertNever(i)}};ve.create=(t,e,n)=>new ve({schema:t,typeName:B.ZodEffects,effect:e,...H(n)});ve.createWithPreprocess=(t,e,n)=>new ve({schema:e,effect:{type:\\\"preprocess\\\",transform:t},typeName:B.ZodEffects,...H(n)});var ye=class extends j{_parse(e){return this._getType(e)===x.undefined?Ot(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ye.create=(t,e)=>new ye({innerType:t,typeName:B.ZodOptional,...H(e)});var De=class extends j{_parse(e){return this._getType(e)===x.null?Ot(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};De.create=(t,e)=>new De({innerType:t,typeName:B.ZodNullable,...H(e)});var wa=class extends j{_parse(e){let{ctx:n}=this._processInputParams(e),a=n.data;return n.parsedType===x.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};wa.create=(t,e)=>new wa({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default==\\\"function\\\"?e.default:()=>e.default,...H(e)});var Ra=class extends j{_parse(e){let{ctx:n}=this._processInputParams(e),a={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Ri(i)?i.then(l=>({status:\\\"valid\\\",value:l.status===\\\"valid\\\"?l.value:this._def.catchValue({get error(){return new Zt(a.common.issues)},input:a.data})})):{status:\\\"valid\\\",value:i.status===\\\"valid\\\"?i.value:this._def.catchValue({get error(){return new Zt(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};Ra.create=(t,e)=>new Ra({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch==\\\"function\\\"?e.catch:()=>e.catch,...H(e)});var Ui=class extends j{_parse(e){if(this._getType(e)!==x.nan){let a=this._getOrReturnCtx(e);return E(a,{code:_.invalid_type,expected:x.nan,received:a.parsedType}),O}return{status:\\\"valid\\\",value:e.data}}};Ui.create=t=>new Ui({typeName:B.ZodNaN,...H(t)});var o2=Symbol(\\\"zod_brand\\\"),kl=class extends j{_parse(e){let{ctx:n}=this._processInputParams(e),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}},Ll=class t extends j{_parse(e){let{status:n,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let l=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return l.status===\\\"aborted\\\"?O:l.status===\\\"dirty\\\"?(n.dirty(),ma(l.value)):this._def.out._parseAsync({data:l.value,path:a.path,parent:a})})();{let i=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return i.status===\\\"aborted\\\"?O:i.status===\\\"dirty\\\"?(n.dirty(),{status:\\\"dirty\\\",value:i.value}):this._def.out._parseSync({data:i.value,path:a.path,parent:a})}}static create(e,n){return new t({in:e,out:n,typeName:B.ZodPipeline})}},Oa=class extends j{_parse(e){let n=this._def.innerType._parse(e),a=i=>(Ln(i)&&(i.value=Object.freeze(i.value)),i);return Ri(n)?n.then(i=>a(i)):a(n)}unwrap(){return this._def.innerType}};Oa.create=(t,e)=>new Oa({innerType:t,typeName:B.ZodReadonly,...H(e)});function fp(t,e){let n=typeof t==\\\"function\\\"?t(e):typeof t==\\\"string\\\"?{message:t}:t;return typeof n==\\\"string\\\"?{message:n}:n}function yp(t,e={},n){return t?Zn.create().superRefine((a,i)=>{let l=t(a);if(l instanceof Promise)return l.then(u=>{if(!u){let r=fp(e,a),s=r.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...r,fatal:s})}});if(!l){let u=fp(e,a),r=u.fatal??n??!0;i.addIssue({code:\\\"custom\\\",...u,fatal:r})}}):Zn.create()}var f2={object:Vt.lazycreate},B;(function(t){t.ZodString=\\\"ZodString\\\",t.ZodNumber=\\\"ZodNumber\\\",t.ZodNaN=\\\"ZodNaN\\\",t.ZodBigInt=\\\"ZodBigInt\\\",t.ZodBoolean=\\\"ZodBoolean\\\",t.ZodDate=\\\"ZodDate\\\",t.ZodSymbol=\\\"ZodSymbol\\\",t.ZodUndefined=\\\"ZodUndefined\\\",t.ZodNull=\\\"ZodNull\\\",t.ZodAny=\\\"ZodAny\\\",t.ZodUnknown=\\\"ZodUnknown\\\",t.ZodNever=\\\"ZodNever\\\",t.ZodVoid=\\\"ZodVoid\\\",t.ZodArray=\\\"ZodArray\\\",t.ZodObject=\\\"ZodObject\\\",t.ZodUnion=\\\"ZodUnion\\\",t.ZodDiscriminatedUnion=\\\"ZodDiscriminatedUnion\\\",t.ZodIntersection=\\\"ZodIntersection\\\",t.ZodTuple=\\\"ZodTuple\\\",t.ZodRecord=\\\"ZodRecord\\\",t.ZodMap=\\\"ZodMap\\\",t.ZodSet=\\\"ZodSet\\\",t.ZodFunction=\\\"ZodFunction\\\",t.ZodLazy=\\\"ZodLazy\\\",t.ZodLiteral=\\\"ZodLiteral\\\",t.ZodEnum=\\\"ZodEnum\\\",t.ZodEffects=\\\"ZodEffects\\\",t.ZodNativeEnum=\\\"ZodNativeEnum\\\",t.ZodOptional=\\\"ZodOptional\\\",t.ZodNullable=\\\"ZodNullable\\\",t.ZodDefault=\\\"ZodDefault\\\",t.ZodCatch=\\\"ZodCatch\\\",t.ZodPromise=\\\"ZodPromise\\\",t.ZodBranded=\\\"ZodBranded\\\",t.ZodPipeline=\\\"ZodPipeline\\\",t.ZodReadonly=\\\"ZodReadonly\\\"})(B||(B={}));var d2=(t,e={message:`Input not instance of ${t.name}`})=>yp(n=>n instanceof t,e),gp=Yn.create,vp=pa.create,h2=Ui.create,m2=ya.create,Sp=ga.create,p2=va.create,y2=zi.create,g2=Sa.create,v2=_a.create,S2=Zn.create,_2=sn.create,T2=be.create,b2=Bi.create,E2=cn.create,x2=Vt.create,A2=Vt.strictCreate,N2=Ta.create,w2=wr.create,R2=ba.create,O2=Ue.create,z2=Rr.create,B2=Mi.create,M2=Ci.create,C2=Or.create,U2=Ea.create,D2=xa.create,H2=Aa.create,q2=Na.create,j2=Vn.create,k2=ve.create,L2=ye.create,Y2=De.create,Z2=ve.createWithPreprocess,V2=Ll.create,G2=()=>gp().optional(),X2=()=>vp().optional(),Q2=()=>Sp().optional(),K2={string:(t=>Yn.create({...t,coerce:!0})),number:(t=>pa.create({...t,coerce:!0})),boolean:(t=>ga.create({...t,coerce:!0})),bigint:(t=>ya.create({...t,coerce:!0})),date:(t=>va.create({...t,coerce:!0}))};var J2=O;var _p=z.string().regex(/^[a-z0-9-]+:[a-zA-Z0-9-]+$/,{message:\\\"Network must be in CAIP-2 format (e.g., 'eip155:1', 'solana:mainnet')\\\"}),Tp=z.object({url:z.string().url({message:\\\"Resource URL must be a valid URL\\\"}),description:z.string().optional(),mimeType:z.string().optional()}),bp=z.object({scheme:z.string().min(1,{message:\\\"Scheme is required\\\"}),network:_p,asset:z.string().min(1,{message:\\\"Asset address is required\\\"}),amount:z.string().regex(/^\\\\d+$/,{message:\\\"Amount must be a non-negative integer string\\\"}),payTo:z.string().min(1,{message:\\\"PayTo address is required\\\"}),maxTimeoutSeconds:z.number().int().positive({message:\\\"maxTimeoutSeconds must be a positive integer\\\"}),extra:z.record(z.unknown())}),$2=z.object({t402Version:z.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),error:z.string().optional(),resource:Tp,accepts:z.array(bp).min(1,{message:\\\"At least one payment option is required\\\"}),extensions:z.record(z.unknown()).optional()}),F2=z.object({t402Version:z.literal(2,{errorMap:()=>({message:\\\"t402Version must be 2 for V2 protocol\\\"})}),resource:Tp.optional(),accepted:bp,payload:z.record(z.unknown()),extensions:z.record(z.unknown()).optional()}),tT=z.object({isValid:z.boolean(),invalidReason:z.string().optional(),payer:z.string().optional()}),I2=z.object({success:z.boolean(),transaction:z.string(),network:_p,errorReason:z.string().optional(),payer:z.string().optional(),confirmations:z.string().optional()}),W2=z.object({scheme:z.string().min(1),network:z.string().min(1),asset:z.string().min(1),amount:z.string().regex(/^\\\\d+$/),payTo:z.string().min(1),maxTimeoutSeconds:z.number().int().positive(),extra:z.record(z.unknown()).optional()}),eT=z.object({t402Version:z.literal(1).optional(),accepted:W2,payload:z.record(z.unknown())});var Ep=class xp{constructor(e){ln(this,\\\"paymentRequirementsSelector\\\"),ln(this,\\\"registeredClientSchemes\\\",new Map),ln(this,\\\"policies\\\",[]),ln(this,\\\"beforePaymentCreationHooks\\\",[]),ln(this,\\\"afterPaymentCreationHooks\\\",[]),ln(this,\\\"onPaymentCreationFailureHooks\\\",[]),this.paymentRequirementsSelector=e||((n,a)=>a[0])}static fromConfig(e){let n=new xp(e.paymentRequirementsSelector);return e.schemes.forEach(a=>{a.t402Version===1?n.registerV1(a.network,a.client):n.register(a.network,a.client)}),e.policies?.forEach(a=>{n.registerPolicy(a)}),n}register(e,n){return this._registerScheme(Do,e,n)}registerV1(e,n){return this._registerScheme(1,e,n)}registerPolicy(e){return this.policies.push(e),this}onBeforePaymentCreation(e){return this.beforePaymentCreationHooks.push(e),this}onAfterPaymentCreation(e){return this.afterPaymentCreationHooks.push(e),this}onPaymentCreationFailure(e){return this.onPaymentCreationFailureHooks.push(e),this}async createPaymentPayload(e){let n=this.registeredClientSchemes.get(e.t402Version);if(!n)throw new Error(`No client registered for t402 version: ${e.t402Version}`);let a=this.selectPaymentRequirements(e.t402Version,e.accepts),i={paymentRequired:e,selectedRequirements:a};for(let l of this.beforePaymentCreationHooks){let u=await l(i);if(u&&\\\"abort\\\"in u&&u.abort)throw new Error(`Payment creation aborted: ${u.reason}`)}try{let l=zo(n,a.scheme,a.network);if(!l)throw new Error(`No client registered for scheme: ${a.scheme} and network: ${a.network}`);let u=await l.createPaymentPayload(e.t402Version,a),r;u.t402Version===1?r=u:r={...u,extensions:e.extensions,resource:e.resource,accepted:a};let s={...i,paymentPayload:r};for(let c of this.afterPaymentCreationHooks)await c(s);return r}catch(l){let u={...i,error:l};for(let r of this.onPaymentCreationFailureHooks){let s=await r(u);if(s&&\\\"recovered\\\"in s&&s.recovered)return s.payload}throw l}}selectPaymentRequirements(e,n){let a=this.registeredClientSchemes.get(e);if(!a)throw new Error(`No client registered for t402 version: ${e}`);let i=n.filter(u=>{let r=br(a,u.network);return r?r.has(u.scheme):!1});if(i.length===0)throw new Error(`No network/scheme registered for t402 version: ${e} which comply with the payment requirements. ${JSON.stringify({t402Version:e,paymentRequirements:n,t402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(a.keys()),schemes:Array.from(a.values()).map(u=>Array.from(u.keys())).flat()})}`);let l=i;for(let u of this.policies)if(l=u(e,l),l.length===0)throw new Error(`All payment requirements were filtered out by policies for t402 version: ${e}`);return this.paymentRequirementsSelector(e,l)}_registerScheme(e,n,a){this.registeredClientSchemes.has(e)||this.registeredClientSchemes.set(e,new Map);let i=this.registeredClientSchemes.get(e);i.has(n)||i.set(n,new Map);let l=i.get(n);return l.has(a.scheme)||l.set(a.scheme,a),this}};T();var ko=Ct(on(),1);function Lo({className:t=\\\"\\\"}){return(0,ko.jsx)(\\\"div\\\",{className:`spinner ${t}`,children:(0,ko.jsx)(\\\"div\\\",{})})}T();var eS={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var nS={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},aS={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},Rp={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},iS={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},Op={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},lS={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function zp(t){if(t.startsWith(\\\"eip155:\\\")){let e=parseInt(t.split(\\\":\\\")[1]);return eS[e]??`Chain ${e}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===nS.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===aS.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let e=t.split(\\\":\\\")[1];return e===Rp.NILE?\\\"TRON Nile Testnet\\\":e===Rp.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===iS.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let e=t.split(\\\":\\\")[1];return e===Op.NOBLE_MAINNET?\\\"Noble\\\":e===Op.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${e}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===lS.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}T();var Gt=Ct(on(),1),Yl=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function uS(t){return Yl.findIndex(e=>e.key===t)}function rS(){return(0,Gt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Gt.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function sS(){return(0,Gt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Gt.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function Bp({currentStep:t,isProcessing:e=!1,hasError:n=!1}){let a=uS(t);return(0,Gt.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":a+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":Yl.length,\\\"aria-label\\\":`Payment progress: ${Yl[a].label}`,children:Yl.map((i,l)=>{let u=l<a,r=l===a,s=l>a,c=\\\"progress-step\\\";return u&&(c+=\\\" completed\\\"),r&&(c+=\\\" current\\\"),r&&e&&(c+=\\\" processing\\\"),r&&n&&(c+=\\\" error\\\"),s&&(c+=\\\" pending\\\"),(0,Gt.jsxs)(\\\"div\\\",{className:c,children:[(0,Gt.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:u?(0,Gt.jsx)(rS,{}):r&&e?(0,Gt.jsx)(sS,{}):(0,Gt.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:l+1})}),(0,Gt.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:i.label}),l<Yl.length-1&&(0,Gt.jsx)(\\\"div\\\",{className:`progress-connector ${u?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},i.key)})})}T();var He=Ct(Kn(),1);T();T();var Xt={MAINNET:\\\"tron:mainnet\\\",NILE:\\\"tron:nile\\\",SHASTA:\\\"tron:shasta\\\"},Yo={[Xt.MAINNET]:\\\"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\\\",[Xt.NILE]:\\\"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf\\\",[Xt.SHASTA]:\\\"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs\\\"},cS={[Xt.MAINNET]:\\\"https://api.trongrid.io\\\",[Xt.NILE]:\\\"https://nile.trongrid.io\\\",[Xt.SHASTA]:\\\"https://api.shasta.trongrid.io\\\"};function Mp(t){return t===Xt.MAINNET}function Zo(){return typeof window<\\\"u\\\"&&!!window.tronWeb}function Vo(){return Zo()&&!!window.tronWeb?.defaultAddress?.base58&&window.tronWeb.defaultAddress.base58!==\\\"\\\"}function Br(){return Vo()&&window.tronWeb?.defaultAddress?.base58||null}function Cp(t){let[e,n]=(0,He.useState)(null),[a,i]=(0,He.useState)(!1),[l,u]=(0,He.useState)(null),r=Zo(),s=!!e;(0,He.useEffect)(()=>{Vo()&&n(Br())},[]),(0,He.useEffect)(()=>{if(!r)return;let d=()=>{let b=Br();b!==e&&(n(b),b||t?.(\\\"Wallet disconnected\\\"))},m=b=>{b.data?.message?.action===\\\"accountsChanged\\\"&&d(),b.data?.message?.action===\\\"setAccount\\\"&&d(),b.data?.message?.action===\\\"disconnect\\\"&&(n(null),t?.(\\\"Wallet disconnected\\\"))};window.addEventListener(\\\"message\\\",m);let y=setInterval(d,1e3);return()=>{window.removeEventListener(\\\"message\\\",m),clearInterval(y)}},[r,e,t]);let c=(0,He.useCallback)(async()=>{if(!r){u(\\\"TronLink is not installed\\\"),t?.(\\\"Please install TronLink wallet extension\\\");return}if(!s){i(!0),u(null),t?.(\\\"Connecting to TronLink...\\\");try{window.tronLink?.request&&await window.tronLink.request({method:\\\"tron_requestAccounts\\\"}),await new Promise(m=>setTimeout(m,500));let d=Br();if(d)n(d),t?.(\\\"\\\");else throw new Error(\\\"Failed to get wallet address\\\")}catch(d){let m=d instanceof Error?d.message:\\\"Failed to connect wallet\\\";u(m),t?.(m)}finally{i(!1)}}},[r,s,t]),o=(0,He.useCallback)(()=>{n(null),u(null),t?.(\\\"\\\")},[t]);return{address:e,isConnected:s,isInstalled:r,isConnecting:a,connect:c,disconnect:o,error:l}}function Up(t){return t.length<=10?t:`${t.slice(0,6)}...${t.slice(-4)}`}T();var Di=Ct(Kn(),1);async function oS(t,e){try{if(!window.tronWeb)return console.error(\\\"TronWeb not available\\\"),0n;let a=await(await window.tronWeb.contract().at(e)).balanceOf(t).call();if(typeof a==\\\"string\\\"||typeof a==\\\"number\\\")return BigInt(a);if(a&&typeof a==\\\"object\\\"){if(\\\"_hex\\\"in a&&typeof a._hex==\\\"string\\\")return BigInt(a._hex);if(\\\"toNumber\\\"in a&&typeof a.toNumber==\\\"function\\\")return BigInt(a.toNumber())}return 0n}catch(n){return console.error(\\\"Failed to fetch TRC-20 balance:\\\",n),0n}}function fS(t,e=6){let n=BigInt(10**e),a=t/n,u=(t%n).toString().padStart(e,\\\"0\\\").replace(/0+$/,\\\"\\\").padEnd(2,\\\"0\\\");return`${a}.${u}`}function Dp({address:t,paymentRequired:e,onStatus:n}){let[a,i]=(0,Di.useState)(null),[l,u]=(0,Di.useState)(!1),r=e.accepts[0],s=r?.network||Xt.NILE,c=r?.asset||Yo[s]||Yo[Xt.NILE],o=(0,Di.useCallback)(async y=>{let b=y||t;if(!b)return null;u(!0),n?.(\\\"Fetching USDT balance...\\\");try{let N=await oS(b,c);return i(N),n?.(\\\"\\\"),N}catch(N){return console.error(\\\"Failed to fetch balance:\\\",N),n?.(\\\"Failed to fetch balance\\\"),null}finally{u(!1)}},[t,c,n]),d=(0,Di.useCallback)(()=>{i(null)},[]),m=a!==null?fS(a):null;return{balance:a,formattedBalance:m,isFetching:l,refreshBalance:o,resetBalance:d}}T();var Hp=Ct(Kn(),1),dS=1e8;function hS(t){return{get address(){return t},async getBlockInfo(){if(!window.tronWeb)throw new Error(\\\"TronWeb not available\\\");let e=await window.tronWeb.trx.getBlock(\\\"latest\\\"),n=e.blockID;return{refBlockBytes:n.slice(12,16),refBlockHash:n.slice(16,32),expiration:e.block_header.raw_data.timestamp+6e4}},async signTransaction(e){if(!window.tronWeb)throw new Error(\\\"TronWeb not available\\\");let{contractAddress:n,to:a,amount:i,feeLimit:l=dS}=e,u=\\\"transfer(address,uint256)\\\",r=window.tronWeb.address.toHex(a),s=await window.tronWeb.transactionBuilder.triggerSmartContract(n,u,{feeLimit:l,callValue:0},[{type:\\\"address\\\",value:r},{type:\\\"uint256\\\",value:i}],t);if(!s.result?.result)throw new Error(\\\"Failed to build transaction\\\");return(await window.tronWeb.trx.sign(s.transaction)).raw_data_hex}}}function qp(t,e){return(0,Hp.useMemo)(()=>!t||!window.tronWeb?null:hS(t),[t])}var Q=Ct(on(),1);function jp({paymentRequired:t,onSuccessfulResponse:e}){let[n,a]=(0,ae.useState)(\\\"\\\"),[i,l]=(0,ae.useState)(!1),[u,r]=(0,ae.useState)(!0),[s,c]=(0,ae.useState)(\\\"connect\\\"),[o,d]=(0,ae.useState)(!1),m=window.t402,y=m.amount,b=t.accepts[0];if(!b)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let N=b.network,K=zp(N),h=Mp(N),f=h?Xt.MAINNET:Xt.NILE,{address:p,isConnected:v,isInstalled:R,isConnecting:V,connect:A,disconnect:C}=Cp(a),{balance:q,formattedBalance:G,isFetching:Ee,refreshBalance:za,resetBalance:Go}=Dp({address:p,paymentRequired:t,onStatus:a}),Mr=qp(p,f);(0,ae.useEffect)(()=>{p&&za(p)},[p,za]),(0,ae.useEffect)(()=>{v?s===\\\"connect\\\"&&c(\\\"sign\\\"):c(\\\"connect\\\")},[v,s]);let Yp=(0,ae.useCallback)(async()=>{await A()},[A]),Zp=(0,ae.useCallback)(()=>{C(),Go(),a(\\\"\\\")},[C,Go]),Vp=(0,ae.useCallback)(async()=>{if(m){if(!Mr||!p){a(\\\"Connect a TRON wallet before paying.\\\");return}l(!0),d(!0);try{if(q===null||q===0n){a(\\\"Checking USDT balance...\\\");let Xo=await za();if(!Xo||Xo===0n)throw new Error(`Insufficient balance. Make sure you have USDT on ${K}.`)}c(\\\"sign\\\"),a(\\\"Creating payment signature...\\\");let Gn=new Ep;Uo(Gn,{signer:Mr});let Xp=await Gn.createPaymentPayload(t),Qp=btoa(JSON.stringify(Xp));c(\\\"submit\\\"),a(\\\"Requesting content with payment...\\\");let Zl=await fetch(m.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":Qp,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(Zl.ok)c(\\\"confirm\\\"),d(!1),await e(Zl);else throw new Error(`Request failed: ${Zl.status} ${Zl.statusText}`)}catch(Gn){a(Gn instanceof Error?Gn.message:\\\"Payment failed.\\\"),d(!1)}finally{l(!1)}}},[m,Mr,p,q,za,K,t,e]),Gp=p?Up(p):\\\"-\\\";return(0,Q.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,Q.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,Q.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,Q.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",y,\\\" \\\",K,\\\" USDT.\\\"]}),!h&&(0,Q.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"Need TRON Testnet USDT?\\\",\\\" \\\",(0,Q.jsxs)(\\\"a\\\",{href:\\\"https://nileex.io/join/getJoinPage\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:[\\\"Get testnet TRX \\\",(0,Q.jsx)(\\\"u\\\",{children:\\\"here\\\"})]}),\\\" \\\",\\\"and swap for USDT.\\\"]})]}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[v&&(0,Q.jsx)(Bp,{currentStep:s,isProcessing:o,hasError:!!n&&!i}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,Q.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:Gp})]}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:p?(0,Q.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>r(Gn=>!Gn),children:!u&&G?`$${G} USDT`:Ee?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDT\\\"}):\\\"-\\\"})]}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,Q.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",y,\\\" USDT\\\"]})]}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,Q.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:K})]})]}),(0,Q.jsxs)(\\\"div\\\",{className:\\\"cta-container\\\",children:[v?(0,Q.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:Zp,children:\\\"Disconnect\\\"}):(0,Q.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:Yp,disabled:V,children:V?(0,Q.jsx)(Lo,{}):\\\"Connect wallet\\\"}),v&&(0,Q.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:Vp,disabled:i,children:i?(0,Q.jsx)(Lo,{}):\\\"Pay now\\\"})]}),!R&&(0,Q.jsxs)(\\\"div\\\",{className:\\\"status\\\",children:[\\\"Install\\\",\\\" \\\",(0,Q.jsx)(\\\"a\\\",{href:\\\"https://www.tronlink.org/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"TronLink wallet\\\"}),\\\" \\\",\\\"to continue, then refresh this page.\\\"]}),n&&(0,Q.jsx)(\\\"div\\\",{className:\\\"status\\\",children:n})]})]})}var Lp=Ct(on(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let n=window.t402.paymentRequired;if(!n?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,kp.createRoot)(t).render((0,Lp.jsx)(jp,{paymentRequired:n,onSuccessfulResponse:async i=>{let l=i.headers.get(\\\"content-type\\\");if(l&&l.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await i.text();else{let u=await i.blob(),r=window.URL.createObjectURL(u);window.location.href=r}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for TRON paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const TRON_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/tron.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/tron.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline STACKS paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const STACKS_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var Bd=Object.create;var Ur=Object.defineProperty;var Md=Object.getOwnPropertyDescriptor;var Ud=Object.getOwnPropertyNames;var Od=Object.getPrototypeOf,Dd=Object.prototype.hasOwnProperty;var Cd=(t,l)=>()=>(t&&(l=t(t=0)),l);var Dt=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var Rd=(t,l,e,n)=>{if(l&&typeof l==\\\"object\\\"||typeof l==\\\"function\\\")for(let a of Ud(l))!Dd.call(t,a)&&a!==e&&Ur(t,a,{get:()=>l[a],enumerable:!(n=Md(l,a))||n.enumerable});return t};var At=(t,l,e)=>(e=t!=null?Bd(Od(t)):{},Rd(l||!t||!t.__esModule?Ur(e,\\\"default\\\",{value:t,enumerable:!0}):e,t));var Cr=Dt(Za=>{\\\"use strict\\\";N();Za.byteLength=Hd;Za.toByteArray=Yd;Za.fromByteArray=Ld;var cl=[],Kt=[],wd=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,Bi=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(ye=0,Or=Bi.length;ye<Or;++ye)cl[ye]=Bi[ye],Kt[Bi.charCodeAt(ye)]=ye;var ye,Or;Kt[45]=62;Kt[95]=63;function Dr(t){var l=t.length;if(l%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var e=t.indexOf(\\\"=\\\");e===-1&&(e=l);var n=e===l?0:4-e%4;return[e,n]}function Hd(t){var l=Dr(t),e=l[0],n=l[1];return(e+n)*3/4-n}function qd(t,l,e){return(l+e)*3/4-e}function Yd(t){var l,e=Dr(t),n=e[0],a=e[1],u=new wd(qd(t,n,a)),i=0,c=a>0?n-4:n,f;for(f=0;f<c;f+=4)l=Kt[t.charCodeAt(f)]<<18|Kt[t.charCodeAt(f+1)]<<12|Kt[t.charCodeAt(f+2)]<<6|Kt[t.charCodeAt(f+3)],u[i++]=l>>16&255,u[i++]=l>>8&255,u[i++]=l&255;return a===2&&(l=Kt[t.charCodeAt(f)]<<2|Kt[t.charCodeAt(f+1)]>>4,u[i++]=l&255),a===1&&(l=Kt[t.charCodeAt(f)]<<10|Kt[t.charCodeAt(f+1)]<<4|Kt[t.charCodeAt(f+2)]>>2,u[i++]=l>>8&255,u[i++]=l&255),u}function Xd(t){return cl[t>>18&63]+cl[t>>12&63]+cl[t>>6&63]+cl[t&63]}function Gd(t,l,e){for(var n,a=[],u=l;u<e;u+=3)n=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(t[u+2]&255),a.push(Xd(n));return a.join(\\\"\\\")}function Ld(t){for(var l,e=t.length,n=e%3,a=[],u=16383,i=0,c=e-n;i<c;i+=u)a.push(Gd(t,i,i+u>c?c:i+u));return n===1?(l=t[e-1],a.push(cl[l>>2]+cl[l<<4&63]+\\\"==\\\")):n===2&&(l=(t[e-2]<<8)+t[e-1],a.push(cl[l>>10]+cl[l>>4&63]+cl[l<<2&63]+\\\"=\\\")),a.join(\\\"\\\")}});var Rr=Dt(Mi=>{N();Mi.read=function(t,l,e,n,a){var u,i,c=a*8-n-1,f=(1<<c)-1,r=f>>1,h=-7,m=e?a-1:0,y=e?-1:1,v=t[l+m];for(m+=y,u=v&(1<<-h)-1,v>>=-h,h+=c;h>0;u=u*256+t[l+m],m+=y,h-=8);for(i=u&(1<<-h)-1,u>>=-h,h+=n;h>0;i=i*256+t[l+m],m+=y,h-=8);if(u===0)u=1-r;else{if(u===f)return i?NaN:(v?-1:1)*(1/0);i=i+Math.pow(2,n),u=u-r}return(v?-1:1)*i*Math.pow(2,u-n)};Mi.write=function(t,l,e,n,a,u){var i,c,f,r=u*8-a-1,h=(1<<r)-1,m=h>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:u-1,E=n?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(c=isNaN(l)?1:0,i=h):(i=Math.floor(Math.log(l)/Math.LN2),l*(f=Math.pow(2,-i))<1&&(i--,f*=2),i+m>=1?l+=y/f:l+=y*Math.pow(2,1-m),l*f>=2&&(i++,f/=2),i+m>=h?(c=0,i=h):i+m>=1?(c=(l*f-1)*Math.pow(2,a),i=i+m):(c=l*Math.pow(2,m-1)*Math.pow(2,a),i=0));a>=8;t[e+v]=c&255,v+=E,c/=256,a-=8);for(i=i<<a|c,r+=a;r>0;t[e+v]=i&255,v+=E,i/=256,r-=8);t[e+v-E]|=T*128}});var $r=Dt(Le=>{\\\"use strict\\\";N();var Ui=Cr(),Xe=Rr(),wr=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Le.Buffer=g;Le.SlowBuffer=Jd;Le.INSPECT_MAX_BYTES=50;var ja=2147483647;Le.kMaxLength=ja;g.TYPED_ARRAY_SUPPORT=Qd();!g.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function Qd(){try{let t=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(t,l),t.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}});Object.defineProperty(g.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function gl(t){if(t>ja)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let l=new Uint8Array(t);return Object.setPrototypeOf(l,g.prototype),l}function g(t,l,e){if(typeof t==\\\"number\\\"){if(typeof l==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return Ri(t)}return Xr(t,l,e)}g.poolSize=8192;function Xr(t,l,e){if(typeof t==\\\"string\\\")return jd(t,l);if(ArrayBuffer.isView(t))return Vd(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(fl(t,ArrayBuffer)||t&&fl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(fl(t,SharedArrayBuffer)||t&&fl(t.buffer,SharedArrayBuffer)))return Di(t,l,e);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return g.from(n,l,e);let a=Kd(t);if(a)return a;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return g.from(t[Symbol.toPrimitive](\\\"string\\\"),l,e);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}g.from=function(t,l,e){return Xr(t,l,e)};Object.setPrototypeOf(g.prototype,Uint8Array.prototype);Object.setPrototypeOf(g,Uint8Array);function Gr(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function Zd(t,l,e){return Gr(t),t<=0?gl(t):l!==void 0?typeof e==\\\"string\\\"?gl(t).fill(l,e):gl(t).fill(l):gl(t)}g.alloc=function(t,l,e){return Zd(t,l,e)};function Ri(t){return Gr(t),gl(t<0?0:wi(t)|0)}g.allocUnsafe=function(t){return Ri(t)};g.allocUnsafeSlow=function(t){return Ri(t)};function jd(t,l){if((typeof l!=\\\"string\\\"||l===\\\"\\\")&&(l=\\\"utf8\\\"),!g.isEncoding(l))throw new TypeError(\\\"Unknown encoding: \\\"+l);let e=Lr(t,l)|0,n=gl(e),a=n.write(t,l);return a!==e&&(n=n.slice(0,a)),n}function Oi(t){let l=t.length<0?0:wi(t.length)|0,e=gl(l);for(let n=0;n<l;n+=1)e[n]=t[n]&255;return e}function Vd(t){if(fl(t,Uint8Array)){let l=new Uint8Array(t);return Di(l.buffer,l.byteOffset,l.byteLength)}return Oi(t)}function Di(t,l,e){if(l<0||t.byteLength<l)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<l+(e||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let n;return l===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,l):n=new Uint8Array(t,l,e),Object.setPrototypeOf(n,g.prototype),n}function Kd(t){if(g.isBuffer(t)){let l=wi(t.length)|0,e=gl(l);return e.length===0||t.copy(e,0,0,l),e}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||qi(t.length)?gl(0):Oi(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return Oi(t.data)}function wi(t){if(t>=ja)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+ja.toString(16)+\\\" bytes\\\");return t|0}function Jd(t){return+t!=t&&(t=0),g.alloc(+t)}g.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==g.prototype};g.compare=function(l,e){if(fl(l,Uint8Array)&&(l=g.from(l,l.offset,l.byteLength)),fl(e,Uint8Array)&&(e=g.from(e,e.offset,e.byteLength)),!g.isBuffer(l)||!g.isBuffer(e))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(l===e)return 0;let n=l.length,a=e.length;for(let u=0,i=Math.min(n,a);u<i;++u)if(l[u]!==e[u]){n=l[u],a=e[u];break}return n<a?-1:a<n?1:0};g.isEncoding=function(l){switch(String(l).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};g.concat=function(l,e){if(!Array.isArray(l))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(l.length===0)return g.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<l.length;++n)e+=l[n].length;let a=g.allocUnsafe(e),u=0;for(n=0;n<l.length;++n){let i=l[n];if(fl(i,Uint8Array))u+i.length>a.length?(g.isBuffer(i)||(i=g.from(i)),i.copy(a,u)):Uint8Array.prototype.set.call(a,i,u);else if(g.isBuffer(i))i.copy(a,u);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');u+=i.length}return a};function Lr(t,l){if(g.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||fl(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let a=!1;for(;;)switch(l){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return e;case\\\"utf8\\\":case\\\"utf-8\\\":return Ci(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return e*2;case\\\"hex\\\":return e>>>1;case\\\"base64\\\":return Wr(t).length;default:if(a)return n?-1:Ci(t).length;l=(\\\"\\\"+l).toLowerCase(),a=!0}}g.byteLength=Lr;function kd(t,l,e){let n=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,l>>>=0,e<=l))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return ay(this,l,e);case\\\"utf8\\\":case\\\"utf-8\\\":return Zr(this,l,e);case\\\"ascii\\\":return ey(this,l,e);case\\\"latin1\\\":case\\\"binary\\\":return ny(this,l,e);case\\\"base64\\\":return ty(this,l,e);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return uy(this,l,e);default:if(n)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),n=!0}}g.prototype._isBuffer=!0;function me(t,l,e){let n=t[l];t[l]=t[e],t[e]=n}g.prototype.swap16=function(){let l=this.length;if(l%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let e=0;e<l;e+=2)me(this,e,e+1);return this};g.prototype.swap32=function(){let l=this.length;if(l%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let e=0;e<l;e+=4)me(this,e,e+3),me(this,e+1,e+2);return this};g.prototype.swap64=function(){let l=this.length;if(l%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let e=0;e<l;e+=8)me(this,e,e+7),me(this,e+1,e+6),me(this,e+2,e+5),me(this,e+3,e+4);return this};g.prototype.toString=function(){let l=this.length;return l===0?\\\"\\\":arguments.length===0?Zr(this,0,l):kd.apply(this,arguments)};g.prototype.toLocaleString=g.prototype.toString;g.prototype.equals=function(l){if(!g.isBuffer(l))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===l?!0:g.compare(this,l)===0};g.prototype.inspect=function(){let l=\\\"\\\",e=Le.INSPECT_MAX_BYTES;return l=this.toString(\\\"hex\\\",0,e).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>e&&(l+=\\\" ... \\\"),\\\"<Buffer \\\"+l+\\\">\\\"};wr&&(g.prototype[wr]=g.prototype.inspect);g.prototype.compare=function(l,e,n,a,u){if(fl(l,Uint8Array)&&(l=g.from(l,l.offset,l.byteLength)),!g.isBuffer(l))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(e===void 0&&(e=0),n===void 0&&(n=l?l.length:0),a===void 0&&(a=0),u===void 0&&(u=this.length),e<0||n>l.length||a<0||u>this.length)throw new RangeError(\\\"out of range index\\\");if(a>=u&&e>=n)return 0;if(a>=u)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,a>>>=0,u>>>=0,this===l)return 0;let i=u-a,c=n-e,f=Math.min(i,c),r=this.slice(a,u),h=l.slice(e,n);for(let m=0;m<f;++m)if(r[m]!==h[m]){i=r[m],c=h[m];break}return i<c?-1:c<i?1:0};function Qr(t,l,e,n,a){if(t.length===0)return-1;if(typeof e==\\\"string\\\"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,qi(e)&&(e=a?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(a)return-1;e=t.length-1}else if(e<0)if(a)e=0;else return-1;if(typeof l==\\\"string\\\"&&(l=g.from(l,n)),g.isBuffer(l))return l.length===0?-1:Hr(t,l,e,n,a);if(typeof l==\\\"number\\\")return l=l&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?a?Uint8Array.prototype.indexOf.call(t,l,e):Uint8Array.prototype.lastIndexOf.call(t,l,e):Hr(t,[l],e,n,a);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function Hr(t,l,e,n,a){let u=1,i=t.length,c=l.length;if(n!==void 0&&(n=String(n).toLowerCase(),n===\\\"ucs2\\\"||n===\\\"ucs-2\\\"||n===\\\"utf16le\\\"||n===\\\"utf-16le\\\")){if(t.length<2||l.length<2)return-1;u=2,i/=2,c/=2,e/=2}function f(h,m){return u===1?h[m]:h.readUInt16BE(m*u)}let r;if(a){let h=-1;for(r=e;r<i;r++)if(f(t,r)===f(l,h===-1?0:r-h)){if(h===-1&&(h=r),r-h+1===c)return h*u}else h!==-1&&(r-=r-h),h=-1}else for(e+c>i&&(e=i-c),r=e;r>=0;r--){let h=!0;for(let m=0;m<c;m++)if(f(t,r+m)!==f(l,m)){h=!1;break}if(h)return r}return-1}g.prototype.includes=function(l,e,n){return this.indexOf(l,e,n)!==-1};g.prototype.indexOf=function(l,e,n){return Qr(this,l,e,n,!0)};g.prototype.lastIndexOf=function(l,e,n){return Qr(this,l,e,n,!1)};function Fd(t,l,e,n){e=Number(e)||0;let a=t.length-e;n?(n=Number(n),n>a&&(n=a)):n=a;let u=l.length;n>u/2&&(n=u/2);let i;for(i=0;i<n;++i){let c=parseInt(l.substr(i*2,2),16);if(qi(c))return i;t[e+i]=c}return i}function Wd(t,l,e,n){return Va(Ci(l,t.length-e),t,e,n)}function $d(t,l,e,n){return Va(ry(l),t,e,n)}function Id(t,l,e,n){return Va(Wr(l),t,e,n)}function Pd(t,l,e,n){return Va(oy(l,t.length-e),t,e,n)}g.prototype.write=function(l,e,n,a){if(e===void 0)a=\\\"utf8\\\",n=this.length,e=0;else if(n===void 0&&typeof e==\\\"string\\\")a=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a=\\\"utf8\\\")):(a=n,n=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let u=this.length-e;if((n===void 0||n>u)&&(n=u),l.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");a||(a=\\\"utf8\\\");let i=!1;for(;;)switch(a){case\\\"hex\\\":return Fd(this,l,e,n);case\\\"utf8\\\":case\\\"utf-8\\\":return Wd(this,l,e,n);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return $d(this,l,e,n);case\\\"base64\\\":return Id(this,l,e,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Pd(this,l,e,n);default:if(i)throw new TypeError(\\\"Unknown encoding: \\\"+a);a=(\\\"\\\"+a).toLowerCase(),i=!0}};g.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function ty(t,l,e){return l===0&&e===t.length?Ui.fromByteArray(t):Ui.fromByteArray(t.slice(l,e))}function Zr(t,l,e){e=Math.min(t.length,e);let n=[],a=l;for(;a<e;){let u=t[a],i=null,c=u>239?4:u>223?3:u>191?2:1;if(a+c<=e){let f,r,h,m;switch(c){case 1:u<128&&(i=u);break;case 2:f=t[a+1],(f&192)===128&&(m=(u&31)<<6|f&63,m>127&&(i=m));break;case 3:f=t[a+1],r=t[a+2],(f&192)===128&&(r&192)===128&&(m=(u&15)<<12|(f&63)<<6|r&63,m>2047&&(m<55296||m>57343)&&(i=m));break;case 4:f=t[a+1],r=t[a+2],h=t[a+3],(f&192)===128&&(r&192)===128&&(h&192)===128&&(m=(u&15)<<18|(f&63)<<12|(r&63)<<6|h&63,m>65535&&m<1114112&&(i=m))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),a+=c}return ly(n)}var qr=4096;function ly(t){let l=t.length;if(l<=qr)return String.fromCharCode.apply(String,t);let e=\\\"\\\",n=0;for(;n<l;)e+=String.fromCharCode.apply(String,t.slice(n,n+=qr));return e}function ey(t,l,e){let n=\\\"\\\";e=Math.min(t.length,e);for(let a=l;a<e;++a)n+=String.fromCharCode(t[a]&127);return n}function ny(t,l,e){let n=\\\"\\\";e=Math.min(t.length,e);for(let a=l;a<e;++a)n+=String.fromCharCode(t[a]);return n}function ay(t,l,e){let n=t.length;(!l||l<0)&&(l=0),(!e||e<0||e>n)&&(e=n);let a=\\\"\\\";for(let u=l;u<e;++u)a+=sy[t[u]];return a}function uy(t,l,e){let n=t.slice(l,e),a=\\\"\\\";for(let u=0;u<n.length-1;u+=2)a+=String.fromCharCode(n[u]+n[u+1]*256);return a}g.prototype.slice=function(l,e){let n=this.length;l=~~l,e=e===void 0?n:~~e,l<0?(l+=n,l<0&&(l=0)):l>n&&(l=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<l&&(e=l);let a=this.subarray(l,e);return Object.setPrototypeOf(a,g.prototype),a};function rt(t,l,e){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+l>e)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}g.prototype.readUintLE=g.prototype.readUIntLE=function(l,e,n){l=l>>>0,e=e>>>0,n||rt(l,e,this.length);let a=this[l],u=1,i=0;for(;++i<e&&(u*=256);)a+=this[l+i]*u;return a};g.prototype.readUintBE=g.prototype.readUIntBE=function(l,e,n){l=l>>>0,e=e>>>0,n||rt(l,e,this.length);let a=this[l+--e],u=1;for(;e>0&&(u*=256);)a+=this[l+--e]*u;return a};g.prototype.readUint8=g.prototype.readUInt8=function(l,e){return l=l>>>0,e||rt(l,1,this.length),this[l]};g.prototype.readUint16LE=g.prototype.readUInt16LE=function(l,e){return l=l>>>0,e||rt(l,2,this.length),this[l]|this[l+1]<<8};g.prototype.readUint16BE=g.prototype.readUInt16BE=function(l,e){return l=l>>>0,e||rt(l,2,this.length),this[l]<<8|this[l+1]};g.prototype.readUint32LE=g.prototype.readUInt32LE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216};g.prototype.readUint32BE=g.prototype.readUInt32BE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])};g.prototype.readBigUInt64LE=Xl(function(l){l=l>>>0,Ge(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&wn(l,this.length-8);let a=e+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,u=this[++l]+this[++l]*2**8+this[++l]*2**16+n*2**24;return BigInt(a)+(BigInt(u)<<BigInt(32))});g.prototype.readBigUInt64BE=Xl(function(l){l=l>>>0,Ge(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&wn(l,this.length-8);let a=e*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],u=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+n;return(BigInt(a)<<BigInt(32))+BigInt(u)});g.prototype.readIntLE=function(l,e,n){l=l>>>0,e=e>>>0,n||rt(l,e,this.length);let a=this[l],u=1,i=0;for(;++i<e&&(u*=256);)a+=this[l+i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*e)),a};g.prototype.readIntBE=function(l,e,n){l=l>>>0,e=e>>>0,n||rt(l,e,this.length);let a=e,u=1,i=this[l+--a];for(;a>0&&(u*=256);)i+=this[l+--a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*e)),i};g.prototype.readInt8=function(l,e){return l=l>>>0,e||rt(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]};g.prototype.readInt16LE=function(l,e){l=l>>>0,e||rt(l,2,this.length);let n=this[l]|this[l+1]<<8;return n&32768?n|4294901760:n};g.prototype.readInt16BE=function(l,e){l=l>>>0,e||rt(l,2,this.length);let n=this[l+1]|this[l]<<8;return n&32768?n|4294901760:n};g.prototype.readInt32LE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24};g.prototype.readInt32BE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]};g.prototype.readBigInt64LE=Xl(function(l){l=l>>>0,Ge(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&wn(l,this.length-8);let a=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(n<<24);return(BigInt(a)<<BigInt(32))+BigInt(e+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)});g.prototype.readBigInt64BE=Xl(function(l){l=l>>>0,Ge(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&wn(l,this.length-8);let a=(e<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(a)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+n)});g.prototype.readFloatLE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),Xe.read(this,l,!0,23,4)};g.prototype.readFloatBE=function(l,e){return l=l>>>0,e||rt(l,4,this.length),Xe.read(this,l,!1,23,4)};g.prototype.readDoubleLE=function(l,e){return l=l>>>0,e||rt(l,8,this.length),Xe.read(this,l,!0,52,8)};g.prototype.readDoubleBE=function(l,e){return l=l>>>0,e||rt(l,8,this.length),Xe.read(this,l,!1,52,8)};function bt(t,l,e,n,a,u){if(!g.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(l>a||l<u)throw new RangeError('\\\"value\\\" argument is out of bounds');if(e+n>t.length)throw new RangeError(\\\"Index out of range\\\")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(l,e,n,a){if(l=+l,e=e>>>0,n=n>>>0,!a){let c=Math.pow(2,8*n)-1;bt(this,l,e,n,c,0)}let u=1,i=0;for(this[e]=l&255;++i<n&&(u*=256);)this[e+i]=l/u&255;return e+n};g.prototype.writeUintBE=g.prototype.writeUIntBE=function(l,e,n,a){if(l=+l,e=e>>>0,n=n>>>0,!a){let c=Math.pow(2,8*n)-1;bt(this,l,e,n,c,0)}let u=n-1,i=1;for(this[e+u]=l&255;--u>=0&&(i*=256);)this[e+u]=l/i&255;return e+n};g.prototype.writeUint8=g.prototype.writeUInt8=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,1,255,0),this[e]=l&255,e+1};g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,2,65535,0),this[e]=l&255,this[e+1]=l>>>8,e+2};g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,2,65535,0),this[e]=l>>>8,this[e+1]=l&255,e+2};g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,4,4294967295,0),this[e+3]=l>>>24,this[e+2]=l>>>16,this[e+1]=l>>>8,this[e]=l&255,e+4};g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,4,4294967295,0),this[e]=l>>>24,this[e+1]=l>>>16,this[e+2]=l>>>8,this[e+3]=l&255,e+4};function jr(t,l,e,n,a){Fr(l,n,a,t,e,7);let u=Number(l&BigInt(4294967295));t[e++]=u,u=u>>8,t[e++]=u,u=u>>8,t[e++]=u,u=u>>8,t[e++]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[e++]=i,i=i>>8,t[e++]=i,i=i>>8,t[e++]=i,i=i>>8,t[e++]=i,e}function Vr(t,l,e,n,a){Fr(l,n,a,t,e,7);let u=Number(l&BigInt(4294967295));t[e+7]=u,u=u>>8,t[e+6]=u,u=u>>8,t[e+5]=u,u=u>>8,t[e+4]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[e+3]=i,i=i>>8,t[e+2]=i,i=i>>8,t[e+1]=i,i=i>>8,t[e]=i,e+8}g.prototype.writeBigUInt64LE=Xl(function(l,e=0){return jr(this,l,e,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});g.prototype.writeBigUInt64BE=Xl(function(l,e=0){return Vr(this,l,e,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});g.prototype.writeIntLE=function(l,e,n,a){if(l=+l,e=e>>>0,!a){let f=Math.pow(2,8*n-1);bt(this,l,e,n,f-1,-f)}let u=0,i=1,c=0;for(this[e]=l&255;++u<n&&(i*=256);)l<0&&c===0&&this[e+u-1]!==0&&(c=1),this[e+u]=(l/i>>0)-c&255;return e+n};g.prototype.writeIntBE=function(l,e,n,a){if(l=+l,e=e>>>0,!a){let f=Math.pow(2,8*n-1);bt(this,l,e,n,f-1,-f)}let u=n-1,i=1,c=0;for(this[e+u]=l&255;--u>=0&&(i*=256);)l<0&&c===0&&this[e+u+1]!==0&&(c=1),this[e+u]=(l/i>>0)-c&255;return e+n};g.prototype.writeInt8=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,1,127,-128),l<0&&(l=255+l+1),this[e]=l&255,e+1};g.prototype.writeInt16LE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,2,32767,-32768),this[e]=l&255,this[e+1]=l>>>8,e+2};g.prototype.writeInt16BE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,2,32767,-32768),this[e]=l>>>8,this[e+1]=l&255,e+2};g.prototype.writeInt32LE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,4,2147483647,-2147483648),this[e]=l&255,this[e+1]=l>>>8,this[e+2]=l>>>16,this[e+3]=l>>>24,e+4};g.prototype.writeInt32BE=function(l,e,n){return l=+l,e=e>>>0,n||bt(this,l,e,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[e]=l>>>24,this[e+1]=l>>>16,this[e+2]=l>>>8,this[e+3]=l&255,e+4};g.prototype.writeBigInt64LE=Xl(function(l,e=0){return jr(this,l,e,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});g.prototype.writeBigInt64BE=Xl(function(l,e=0){return Vr(this,l,e,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function Kr(t,l,e,n,a,u){if(e+n>t.length)throw new RangeError(\\\"Index out of range\\\");if(e<0)throw new RangeError(\\\"Index out of range\\\")}function Jr(t,l,e,n,a){return l=+l,e=e>>>0,a||Kr(t,l,e,4,34028234663852886e22,-34028234663852886e22),Xe.write(t,l,e,n,23,4),e+4}g.prototype.writeFloatLE=function(l,e,n){return Jr(this,l,e,!0,n)};g.prototype.writeFloatBE=function(l,e,n){return Jr(this,l,e,!1,n)};function kr(t,l,e,n,a){return l=+l,e=e>>>0,a||Kr(t,l,e,8,17976931348623157e292,-17976931348623157e292),Xe.write(t,l,e,n,52,8),e+8}g.prototype.writeDoubleLE=function(l,e,n){return kr(this,l,e,!0,n)};g.prototype.writeDoubleBE=function(l,e,n){return kr(this,l,e,!1,n)};g.prototype.copy=function(l,e,n,a){if(!g.isBuffer(l))throw new TypeError(\\\"argument should be a Buffer\\\");if(n||(n=0),!a&&a!==0&&(a=this.length),e>=l.length&&(e=l.length),e||(e=0),a>0&&a<n&&(a=n),a===n||l.length===0||this.length===0)return 0;if(e<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(n<0||n>=this.length)throw new RangeError(\\\"Index out of range\\\");if(a<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");a>this.length&&(a=this.length),l.length-e<a-n&&(a=l.length-e+n);let u=a-n;return this===l&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(e,n,a):Uint8Array.prototype.set.call(l,this.subarray(n,a),e),u};g.prototype.fill=function(l,e,n,a){if(typeof l==\\\"string\\\"){if(typeof e==\\\"string\\\"?(a=e,e=0,n=this.length):typeof n==\\\"string\\\"&&(a=n,n=this.length),a!==void 0&&typeof a!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof a==\\\"string\\\"&&!g.isEncoding(a))throw new TypeError(\\\"Unknown encoding: \\\"+a);if(l.length===1){let i=l.charCodeAt(0);(a===\\\"utf8\\\"&&i<128||a===\\\"latin1\\\")&&(l=i)}}else typeof l==\\\"number\\\"?l=l&255:typeof l==\\\"boolean\\\"&&(l=Number(l));if(e<0||this.length<e||this.length<n)throw new RangeError(\\\"Out of range index\\\");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,l||(l=0);let u;if(typeof l==\\\"number\\\")for(u=e;u<n;++u)this[u]=l;else{let i=g.isBuffer(l)?l:g.from(l,a),c=i.length;if(c===0)throw new TypeError('The value \\\"'+l+'\\\" is invalid for argument \\\"value\\\"');for(u=0;u<n-e;++u)this[u+e]=i[u%c]}return this};var Ye={};function Hi(t,l,e){Ye[t]=class extends e{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(a){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Hi(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);Hi(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,l){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof l}`},TypeError);Hi(\\\"ERR_OUT_OF_RANGE\\\",function(t,l,e){let n=`The value of \\\"${t}\\\" is out of range.`,a=e;return Number.isInteger(e)&&Math.abs(e)>2**32?a=Yr(String(e)):typeof e==\\\"bigint\\\"&&(a=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(a=Yr(a)),a+=\\\"n\\\"),n+=` It must be ${l}. Received ${a}`,n},RangeError);function Yr(t){let l=\\\"\\\",e=t.length,n=t[0]===\\\"-\\\"?1:0;for(;e>=n+4;e-=3)l=`_${t.slice(e-3,e)}${l}`;return`${t.slice(0,e)}${l}`}function iy(t,l,e){Ge(l,\\\"offset\\\"),(t[l]===void 0||t[l+e]===void 0)&&wn(l,t.length-(e+1))}function Fr(t,l,e,n,a,u){if(t>e||t<l){let i=typeof l==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",c;throw u>3?l===0||l===BigInt(0)?c=`>= 0${i} and < 2${i} ** ${(u+1)*8}${i}`:c=`>= -(2${i} ** ${(u+1)*8-1}${i}) and < 2 ** ${(u+1)*8-1}${i}`:c=`>= ${l}${i} and <= ${e}${i}`,new Ye.ERR_OUT_OF_RANGE(\\\"value\\\",c,t)}iy(n,a,u)}function Ge(t,l){if(typeof t!=\\\"number\\\")throw new Ye.ERR_INVALID_ARG_TYPE(l,\\\"number\\\",t)}function wn(t,l,e){throw Math.floor(t)!==t?(Ge(t,e),new Ye.ERR_OUT_OF_RANGE(e||\\\"offset\\\",\\\"an integer\\\",t)):l<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE(e||\\\"offset\\\",`>= ${e?1:0} and <= ${l}`,t)}var cy=/[^+/0-9A-Za-z-_]/g;function fy(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace(cy,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function Ci(t,l){l=l||1/0;let e,n=t.length,a=null,u=[];for(let i=0;i<n;++i){if(e=t.charCodeAt(i),e>55295&&e<57344){if(!a){if(e>56319){(l-=3)>-1&&u.push(239,191,189);continue}else if(i+1===n){(l-=3)>-1&&u.push(239,191,189);continue}a=e;continue}if(e<56320){(l-=3)>-1&&u.push(239,191,189),a=e;continue}e=(a-55296<<10|e-56320)+65536}else a&&(l-=3)>-1&&u.push(239,191,189);if(a=null,e<128){if((l-=1)<0)break;u.push(e)}else if(e<2048){if((l-=2)<0)break;u.push(e>>6|192,e&63|128)}else if(e<65536){if((l-=3)<0)break;u.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((l-=4)<0)break;u.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error(\\\"Invalid code point\\\")}return u}function ry(t){let l=[];for(let e=0;e<t.length;++e)l.push(t.charCodeAt(e)&255);return l}function oy(t,l){let e,n,a,u=[];for(let i=0;i<t.length&&!((l-=2)<0);++i)e=t.charCodeAt(i),n=e>>8,a=e%256,u.push(a),u.push(n);return u}function Wr(t){return Ui.toByteArray(fy(t))}function Va(t,l,e,n){let a;for(a=0;a<n&&!(a+e>=l.length||a>=t.length);++a)l[a+e]=t[a];return a}function fl(t,l){return t instanceof l||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===l.name}function qi(t){return t!==t}var sy=(function(){let t=\\\"0123456789abcdef\\\",l=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let a=0;a<16;++a)l[n+a]=t[e]+t[a]}return l})();function Xl(t){return typeof BigInt>\\\"u\\\"?hy:t}function hy(){throw new Error(\\\"BigInt not supported\\\")}});var Ir,N=Cd(()=>{\\\"use strict\\\";Ir=At($r(),1);globalThis.Buffer=Ir.Buffer});var fo=Dt(W=>{\\\"use strict\\\";N();function Li(t,l){var e=t.length;t.push(l);t:for(;0<e;){var n=e-1>>>1,a=t[n];if(0<Ka(a,l))t[n]=l,t[e]=a,e=n;else break t}}function rl(t){return t.length===0?null:t[0]}function ka(t){if(t.length===0)return null;var l=t[0],e=t.pop();if(e!==l){t[0]=e;t:for(var n=0,a=t.length,u=a>>>1;n<u;){var i=2*(n+1)-1,c=t[i],f=i+1,r=t[f];if(0>Ka(c,e))f<a&&0>Ka(r,c)?(t[n]=r,t[f]=e,n=f):(t[n]=c,t[i]=e,n=i);else if(f<a&&0>Ka(r,e))t[n]=r,t[f]=e,n=f;else break t}}return l}function Ka(t,l){var e=t.sortIndex-l.sortIndex;return e!==0?e:t.id-l.id}W.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(Pr=performance,W.unstable_now=function(){return Pr.now()}):(Yi=Date,to=Yi.now(),W.unstable_now=function(){return Yi.now()-to});var Pr,Yi,to,pl=[],Gl=[],dy=1,Jt=null,pt=3,Qi=!1,Hn=!1,qn=!1,Zi=!1,no=typeof setTimeout==\\\"function\\\"?setTimeout:null,ao=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,lo=typeof setImmediate<\\\"u\\\"?setImmediate:null;function Ja(t){for(var l=rl(Gl);l!==null;){if(l.callback===null)ka(Gl);else if(l.startTime<=t)ka(Gl),l.sortIndex=l.expirationTime,Li(pl,l);else break;l=rl(Gl)}}function ji(t){if(qn=!1,Ja(t),!Hn)if(rl(pl)!==null)Hn=!0,Ze||(Ze=!0,Qe());else{var l=rl(Gl);l!==null&&Vi(ji,l.startTime-t)}}var Ze=!1,Yn=-1,uo=5,io=-1;function co(){return Zi?!0:!(W.unstable_now()-io<uo)}function Xi(){if(Zi=!1,Ze){var t=W.unstable_now();io=t;var l=!0;try{t:{Hn=!1,qn&&(qn=!1,ao(Yn),Yn=-1),Qi=!0;var e=pt;try{l:{for(Ja(t),Jt=rl(pl);Jt!==null&&!(Jt.expirationTime>t&&co());){var n=Jt.callback;if(typeof n==\\\"function\\\"){Jt.callback=null,pt=Jt.priorityLevel;var a=n(Jt.expirationTime<=t);if(t=W.unstable_now(),typeof a==\\\"function\\\"){Jt.callback=a,Ja(t),l=!0;break l}Jt===rl(pl)&&ka(pl),Ja(t)}else ka(pl);Jt=rl(pl)}if(Jt!==null)l=!0;else{var u=rl(Gl);u!==null&&Vi(ji,u.startTime-t),l=!1}}break t}finally{Jt=null,pt=e,Qi=!1}l=void 0}}finally{l?Qe():Ze=!1}}}var Qe;typeof lo==\\\"function\\\"?Qe=function(){lo(Xi)}:typeof MessageChannel<\\\"u\\\"?(Gi=new MessageChannel,eo=Gi.port2,Gi.port1.onmessage=Xi,Qe=function(){eo.postMessage(null)}):Qe=function(){no(Xi,0)};var Gi,eo;function Vi(t,l){Yn=no(function(){t(W.unstable_now())},l)}W.unstable_IdlePriority=5;W.unstable_ImmediatePriority=1;W.unstable_LowPriority=4;W.unstable_NormalPriority=3;W.unstable_Profiling=null;W.unstable_UserBlockingPriority=2;W.unstable_cancelCallback=function(t){t.callback=null};W.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):uo=0<t?Math.floor(1e3/t):5};W.unstable_getCurrentPriorityLevel=function(){return pt};W.unstable_next=function(t){switch(pt){case 1:case 2:case 3:var l=3;break;default:l=pt}var e=pt;pt=l;try{return t()}finally{pt=e}};W.unstable_requestPaint=function(){Zi=!0};W.unstable_runWithPriority=function(t,l){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var e=pt;pt=t;try{return l()}finally{pt=e}};W.unstable_scheduleCallback=function(t,l,e){var n=W.unstable_now();switch(typeof e==\\\"object\\\"&&e!==null?(e=e.delay,e=typeof e==\\\"number\\\"&&0<e?n+e:n):e=n,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=e+a,t={id:dy++,callback:l,priorityLevel:t,startTime:e,expirationTime:a,sortIndex:-1},e>n?(t.sortIndex=e,Li(Gl,t),rl(pl)===null&&t===rl(Gl)&&(qn?(ao(Yn),Yn=-1):qn=!0,Vi(ji,e-n))):(t.sortIndex=a,Li(pl,t),Hn||Qi||(Hn=!0,Ze||(Ze=!0,Qe()))),t};W.unstable_shouldYield=co;W.unstable_wrapCallback=function(t){var l=pt;return function(){var e=pt;pt=l;try{return t.apply(this,arguments)}finally{pt=e}}}});var oo=Dt((qg,ro)=>{\\\"use strict\\\";N();ro.exports=fo()});var Ao=Dt(B=>{\\\"use strict\\\";N();var ki=Symbol.for(\\\"react.transitional.element\\\"),yy=Symbol.for(\\\"react.portal\\\"),my=Symbol.for(\\\"react.fragment\\\"),vy=Symbol.for(\\\"react.strict_mode\\\"),gy=Symbol.for(\\\"react.profiler\\\"),py=Symbol.for(\\\"react.consumer\\\"),Sy=Symbol.for(\\\"react.context\\\"),Ey=Symbol.for(\\\"react.forward_ref\\\"),Ty=Symbol.for(\\\"react.suspense\\\"),Ay=Symbol.for(\\\"react.memo\\\"),vo=Symbol.for(\\\"react.lazy\\\"),by=Symbol.for(\\\"react.activity\\\"),so=Symbol.iterator;function Ny(t){return t===null||typeof t!=\\\"object\\\"?null:(t=so&&t[so]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var go={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},po=Object.assign,So={};function Ve(t,l,e){this.props=t,this.context=l,this.refs=So,this.updater=e||go}Ve.prototype.isReactComponent={};Ve.prototype.setState=function(t,l){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,l,\\\"setState\\\")};Ve.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function Eo(){}Eo.prototype=Ve.prototype;function Fi(t,l,e){this.props=t,this.context=l,this.refs=So,this.updater=e||go}var Wi=Fi.prototype=new Eo;Wi.constructor=Fi;po(Wi,Ve.prototype);Wi.isPureReactComponent=!0;var ho=Array.isArray;function Ji(){}var K={H:null,A:null,T:null,S:null},To=Object.prototype.hasOwnProperty;function $i(t,l,e){var n=e.ref;return{$$typeof:ki,type:t,key:l,ref:n!==void 0?n:null,props:e}}function zy(t,l){return $i(t.type,l,t.props)}function Ii(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===ki}function _y(t){var l={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(e){return l[e]})}var yo=/\\\\/+/g;function Ki(t,l){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?_y(\\\"\\\"+t.key):l.toString(36)}function xy(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(Ji,Ji):(t.status=\\\"pending\\\",t.then(function(l){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=l)},function(l){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=l)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function je(t,l,e,n,a){var u=typeof t;(u===\\\"undefined\\\"||u===\\\"boolean\\\")&&(t=null);var i=!1;if(t===null)i=!0;else switch(u){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":i=!0;break;case\\\"object\\\":switch(t.$$typeof){case ki:case yy:i=!0;break;case vo:return i=t._init,je(i(t._payload),l,e,n,a)}}if(i)return a=a(t),i=n===\\\"\\\"?\\\".\\\"+Ki(t,0):n,ho(a)?(e=\\\"\\\",i!=null&&(e=i.replace(yo,\\\"$&/\\\")+\\\"/\\\"),je(a,l,e,\\\"\\\",function(r){return r})):a!=null&&(Ii(a)&&(a=zy(a,e+(a.key==null||t&&t.key===a.key?\\\"\\\":(\\\"\\\"+a.key).replace(yo,\\\"$&/\\\")+\\\"/\\\")+i)),l.push(a)),1;i=0;var c=n===\\\"\\\"?\\\".\\\":n+\\\":\\\";if(ho(t))for(var f=0;f<t.length;f++)n=t[f],u=c+Ki(n,f),i+=je(n,l,e,u,a);else if(f=Ny(t),typeof f==\\\"function\\\")for(t=f.call(t),f=0;!(n=t.next()).done;)n=n.value,u=c+Ki(n,f++),i+=je(n,l,e,u,a);else if(u===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return je(xy(t),l,e,n,a);throw l=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(l===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":l)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return i}function Fa(t,l,e){if(t==null)return t;var n=[],a=0;return je(t,n,\\\"\\\",\\\"\\\",function(u){return l.call(e,u,a++)}),n}function By(t){if(t._status===-1){var l=t._result;l=l(),l.then(function(e){(t._status===0||t._status===-1)&&(t._status=1,t._result=e)},function(e){(t._status===0||t._status===-1)&&(t._status=2,t._result=e)}),t._status===-1&&(t._status=0,t._result=l)}if(t._status===1)return t._result.default;throw t._result}var mo=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},My={map:Fa,forEach:function(t,l,e){Fa(t,function(){l.apply(this,arguments)},e)},count:function(t){var l=0;return Fa(t,function(){l++}),l},toArray:function(t){return Fa(t,function(l){return l})||[]},only:function(t){if(!Ii(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};B.Activity=by;B.Children=My;B.Component=Ve;B.Fragment=my;B.Profiler=gy;B.PureComponent=Fi;B.StrictMode=vy;B.Suspense=Ty;B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K;B.__COMPILER_RUNTIME={__proto__:null,c:function(t){return K.H.useMemoCache(t)}};B.cache=function(t){return function(){return t.apply(null,arguments)}};B.cacheSignal=function(){return null};B.cloneElement=function(t,l,e){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var n=po({},t.props),a=t.key;if(l!=null)for(u in l.key!==void 0&&(a=\\\"\\\"+l.key),l)!To.call(l,u)||u===\\\"key\\\"||u===\\\"__self\\\"||u===\\\"__source\\\"||u===\\\"ref\\\"&&l.ref===void 0||(n[u]=l[u]);var u=arguments.length-2;if(u===1)n.children=e;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];n.children=i}return $i(t.type,a,n)};B.createContext=function(t){return t={$$typeof:Sy,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:py,_context:t},t};B.createElement=function(t,l,e){var n,a={},u=null;if(l!=null)for(n in l.key!==void 0&&(u=\\\"\\\"+l.key),l)To.call(l,n)&&n!==\\\"key\\\"&&n!==\\\"__self\\\"&&n!==\\\"__source\\\"&&(a[n]=l[n]);var i=arguments.length-2;if(i===1)a.children=e;else if(1<i){for(var c=Array(i),f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}if(t&&t.defaultProps)for(n in i=t.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return $i(t,u,a)};B.createRef=function(){return{current:null}};B.forwardRef=function(t){return{$$typeof:Ey,render:t}};B.isValidElement=Ii;B.lazy=function(t){return{$$typeof:vo,_payload:{_status:-1,_result:t},_init:By}};B.memo=function(t,l){return{$$typeof:Ay,type:t,compare:l===void 0?null:l}};B.startTransition=function(t){var l=K.T,e={};K.T=e;try{var n=t(),a=K.S;a!==null&&a(e,n),typeof n==\\\"object\\\"&&n!==null&&typeof n.then==\\\"function\\\"&&n.then(Ji,mo)}catch(u){mo(u)}finally{l!==null&&e.types!==null&&(l.types=e.types),K.T=l}};B.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()};B.use=function(t){return K.H.use(t)};B.useActionState=function(t,l,e){return K.H.useActionState(t,l,e)};B.useCallback=function(t,l){return K.H.useCallback(t,l)};B.useContext=function(t){return K.H.useContext(t)};B.useDebugValue=function(){};B.useDeferredValue=function(t,l){return K.H.useDeferredValue(t,l)};B.useEffect=function(t,l){return K.H.useEffect(t,l)};B.useEffectEvent=function(t){return K.H.useEffectEvent(t)};B.useId=function(){return K.H.useId()};B.useImperativeHandle=function(t,l,e){return K.H.useImperativeHandle(t,l,e)};B.useInsertionEffect=function(t,l){return K.H.useInsertionEffect(t,l)};B.useLayoutEffect=function(t,l){return K.H.useLayoutEffect(t,l)};B.useMemo=function(t,l){return K.H.useMemo(t,l)};B.useOptimistic=function(t,l){return K.H.useOptimistic(t,l)};B.useReducer=function(t,l,e){return K.H.useReducer(t,l,e)};B.useRef=function(t){return K.H.useRef(t)};B.useState=function(t){return K.H.useState(t)};B.useSyncExternalStore=function(t,l,e){return K.H.useSyncExternalStore(t,l,e)};B.useTransition=function(){return K.H.useTransition()};B.version=\\\"19.2.4\\\"});var ve=Dt((Lg,bo)=>{\\\"use strict\\\";N();bo.exports=Ao()});var zo=Dt(Et=>{\\\"use strict\\\";N();var Uy=ve();function No(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[e])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function Ll(){}var St={d:{f:Ll,r:function(){throw Error(No(522))},D:Ll,C:Ll,L:Ll,m:Ll,X:Ll,S:Ll,M:Ll},p:0,findDOMNode:null},Oy=Symbol.for(\\\"react.portal\\\");function Dy(t,l,e){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oy,key:n==null?null:\\\"\\\"+n,children:t,containerInfo:l,implementation:e}}var Xn=Uy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Wa(t,l){if(t===\\\"font\\\")return\\\"\\\";if(typeof l==\\\"string\\\")return l===\\\"use-credentials\\\"?l:\\\"\\\"}Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=St;Et.createPortal=function(t,l){var e=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(No(299));return Dy(t,l,null,e)};Et.flushSync=function(t){var l=Xn.T,e=St.p;try{if(Xn.T=null,St.p=2,t)return t()}finally{Xn.T=l,St.p=e,St.d.f()}};Et.preconnect=function(t,l){typeof t==\\\"string\\\"&&(l?(l=l.crossOrigin,l=typeof l==\\\"string\\\"?l===\\\"use-credentials\\\"?l:\\\"\\\":void 0):l=null,St.d.C(t,l))};Et.prefetchDNS=function(t){typeof t==\\\"string\\\"&&St.d.D(t)};Et.preinit=function(t,l){if(typeof t==\\\"string\\\"&&l&&typeof l.as==\\\"string\\\"){var e=l.as,n=Wa(e,l.crossOrigin),a=typeof l.integrity==\\\"string\\\"?l.integrity:void 0,u=typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0;e===\\\"style\\\"?St.d.S(t,typeof l.precedence==\\\"string\\\"?l.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:u}):e===\\\"script\\\"&&St.d.X(t,{crossOrigin:n,integrity:a,fetchPriority:u,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}};Et.preinitModule=function(t,l){if(typeof t==\\\"string\\\")if(typeof l==\\\"object\\\"&&l!==null){if(l.as==null||l.as===\\\"script\\\"){var e=Wa(l.as,l.crossOrigin);St.d.M(t,{crossOrigin:e,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}}else l==null&&St.d.M(t)};Et.preload=function(t,l){if(typeof t==\\\"string\\\"&&typeof l==\\\"object\\\"&&l!==null&&typeof l.as==\\\"string\\\"){var e=l.as,n=Wa(e,l.crossOrigin);St.d.L(t,e,{crossOrigin:n,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0,type:typeof l.type==\\\"string\\\"?l.type:void 0,fetchPriority:typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy==\\\"string\\\"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet==\\\"string\\\"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes==\\\"string\\\"?l.imageSizes:void 0,media:typeof l.media==\\\"string\\\"?l.media:void 0})}};Et.preloadModule=function(t,l){if(typeof t==\\\"string\\\")if(l){var e=Wa(l.as,l.crossOrigin);St.d.m(t,{as:typeof l.as==\\\"string\\\"&&l.as!==\\\"script\\\"?l.as:void 0,crossOrigin:e,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0})}else St.d.m(t)};Et.requestFormReset=function(t){St.d.r(t)};Et.unstable_batchedUpdates=function(t,l){return t(l)};Et.useFormState=function(t,l,e){return Xn.H.useFormState(t,l,e)};Et.useFormStatus=function(){return Xn.H.useHostTransitionStatus()};Et.version=\\\"19.2.4\\\"});var Bo=Dt((Vg,xo)=>{\\\"use strict\\\";N();function _o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_o)}catch(t){console.error(t)}}_o(),xo.exports=zo()});var Gh=Dt(Ti=>{\\\"use strict\\\";N();var ft=oo(),t0=ve(),Cy=Bo();function S(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[e])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function l0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function za(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function e0(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function n0(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function Mo(t){if(za(t)!==t)throw Error(S(188))}function Ry(t){var l=t.alternate;if(!l){if(l=za(t),l===null)throw Error(S(188));return l!==t?null:t}for(var e=t,n=l;;){var a=e.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){e=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===e)return Mo(a),t;if(u===n)return Mo(a),l;u=u.sibling}throw Error(S(188))}if(e.return!==n.return)e=a,n=u;else{for(var i=!1,c=a.child;c;){if(c===e){i=!0,e=a,n=u;break}if(c===n){i=!0,n=a,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,n=a;break}if(c===n){i=!0,n=u,e=a;break}c=c.sibling}if(!i)throw Error(S(189))}}if(e.alternate!==n)throw Error(S(190))}if(e.tag!==3)throw Error(S(188));return e.stateNode.current===e?t:l}function a0(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=a0(t),l!==null)return l;t=t.sibling}return null}var F=Object.assign,wy=Symbol.for(\\\"react.element\\\"),$a=Symbol.for(\\\"react.transitional.element\\\"),Jn=Symbol.for(\\\"react.portal\\\"),$e=Symbol.for(\\\"react.fragment\\\"),u0=Symbol.for(\\\"react.strict_mode\\\"),Dc=Symbol.for(\\\"react.profiler\\\"),i0=Symbol.for(\\\"react.consumer\\\"),_l=Symbol.for(\\\"react.context\\\"),Bf=Symbol.for(\\\"react.forward_ref\\\"),Cc=Symbol.for(\\\"react.suspense\\\"),Rc=Symbol.for(\\\"react.suspense_list\\\"),Mf=Symbol.for(\\\"react.memo\\\"),Ql=Symbol.for(\\\"react.lazy\\\"),wc=Symbol.for(\\\"react.activity\\\"),Hy=Symbol.for(\\\"react.memo_cache_sentinel\\\"),Uo=Symbol.iterator;function Gn(t){return t===null||typeof t!=\\\"object\\\"?null:(t=Uo&&t[Uo]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var qy=Symbol.for(\\\"react.client.reference\\\");function Hc(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===qy?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case $e:return\\\"Fragment\\\";case Dc:return\\\"Profiler\\\";case u0:return\\\"StrictMode\\\";case Cc:return\\\"Suspense\\\";case Rc:return\\\"SuspenseList\\\";case wc:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case Jn:return\\\"Portal\\\";case _l:return t.displayName||\\\"Context\\\";case i0:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case Bf:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case Mf:return l=t.displayName||null,l!==null?l:Hc(t.type)||\\\"Memo\\\";case Ql:l=t._payload,t=t._init;try{return Hc(t(l))}catch{}}return null}var kn=Array.isArray,z=t0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Cy.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae={pending:!1,data:null,method:null,action:null},qc=[],Ie=-1;function yl(t){return{current:t}}function ht(t){0>Ie||(t.current=qc[Ie],qc[Ie]=null,Ie--)}function V(t,l){Ie++,qc[Ie]=t.current,t.current=l}var dl=yl(null),sa=yl(null),Pl=yl(null),Uu=yl(null);function Ou(t,l){switch(V(Pl,l),V(sa,t),V(dl,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?qs(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=qs(l),t=_h(l,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}ht(dl),V(dl,t)}function gn(){ht(dl),ht(sa),ht(Pl)}function Yc(t){t.memoizedState!==null&&V(Uu,t);var l=dl.current,e=_h(l,t.type);l!==e&&(V(sa,t),V(dl,e))}function Du(t){sa.current===t&&(ht(dl),ht(sa)),Uu.current===t&&(ht(Uu),Aa._currentValue=Ae)}var Pi,Oo;function pe(t){if(Pi===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\\\\n( *(at )?)/);Pi=l&&l[1]||\\\"\\\",Oo=-1<e.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<e.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+Pi+t+Oo}var tc=!1;function lc(t,l){if(!t||tc)return\\\"\\\";tc=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(l){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(m,[])}catch(v){var y=v}Reflect.construct(t,[],m)}else{try{m.call()}catch(v){y=v}t.call(m.prototype)}}else{try{throw Error()}catch(v){y=v}(m=t())&&typeof m.catch==\\\"function\\\"&&m.catch(function(){})}}catch(v){if(v&&y&&typeof v.stack==\\\"string\\\")return[v.stack,y.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,\\\"name\\\");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var u=n.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var f=i.split(`\\n`),r=c.split(`\\n`);for(a=n=0;n<f.length&&!f[n].includes(\\\"DetermineComponentFrameRoot\\\");)n++;for(;a<r.length&&!r[a].includes(\\\"DetermineComponentFrameRoot\\\");)a++;if(n===f.length||a===r.length)for(n=f.length-1,a=r.length-1;1<=n&&0<=a&&f[n]!==r[a];)a--;for(;1<=n&&0<=a;n--,a--)if(f[n]!==r[a]){if(n!==1||a!==1)do if(n--,a--,0>a||f[n]!==r[a]){var h=`\\n`+f[n].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&h.includes(\\\"<anonymous>\\\")&&(h=h.replace(\\\"<anonymous>\\\",t.displayName)),h}while(1<=n&&0<=a);break}}}finally{tc=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:\\\"\\\")?pe(e):\\\"\\\"}function Yy(t,l){switch(t.tag){case 26:case 27:case 5:return pe(t.type);case 16:return pe(\\\"Lazy\\\");case 13:return t.child!==l&&l!==null?pe(\\\"Suspense Fallback\\\"):pe(\\\"Suspense\\\");case 19:return pe(\\\"SuspenseList\\\");case 0:case 15:return lc(t.type,!1);case 11:return lc(t.type.render,!1);case 1:return lc(t.type,!0);case 31:return pe(\\\"Activity\\\");default:return\\\"\\\"}}function Do(t){try{var l=\\\"\\\",e=null;do l+=Yy(t,e),e=t,t=t.return;while(t);return l}catch(n){return`\\nError generating stack: `+n.message+`\\n`+n.stack}}var Xc=Object.prototype.hasOwnProperty,Uf=ft.unstable_scheduleCallback,ec=ft.unstable_cancelCallback,Xy=ft.unstable_shouldYield,Gy=ft.unstable_requestPaint,qt=ft.unstable_now,Ly=ft.unstable_getCurrentPriorityLevel,c0=ft.unstable_ImmediatePriority,f0=ft.unstable_UserBlockingPriority,Cu=ft.unstable_NormalPriority,Qy=ft.unstable_LowPriority,r0=ft.unstable_IdlePriority,Zy=ft.log,jy=ft.unstable_setDisableYieldValue,_a=null,Yt=null;function kl(t){if(typeof Zy==\\\"function\\\"&&jy(t),Yt&&typeof Yt.setStrictMode==\\\"function\\\")try{Yt.setStrictMode(_a,t)}catch{}}var Xt=Math.clz32?Math.clz32:Jy,Vy=Math.log,Ky=Math.LN2;function Jy(t){return t>>>=0,t===0?32:31-(Vy(t)/Ky|0)|0}var Ia=256,Pa=262144,tu=4194304;function Se(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ui(t,l,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=n&134217727;return c!==0?(n=c&~u,n!==0?a=Se(n):(i&=c,i!==0?a=Se(i):e||(e=c&~t,e!==0&&(a=Se(e))))):(c=n&~u,c!==0?a=Se(c):i!==0?a=Se(i):e||(e=n&~t,e!==0&&(a=Se(e)))),a===0?0:l!==0&&l!==a&&(l&u)===0&&(u=a&-a,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:a}function xa(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function ky(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function o0(){var t=tu;return tu<<=1,(tu&62914560)===0&&(tu=4194304),t}function nc(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ba(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Fy(t,l,e,n,a,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,f=t.expirationTimes,r=t.hiddenUpdates;for(e=i&~e;0<e;){var h=31-Xt(e),m=1<<h;c[h]=0,f[h]=-1;var y=r[h];if(y!==null)for(r[h]=null,h=0;h<y.length;h++){var v=y[h];v!==null&&(v.lane&=-536870913)}e&=~m}n!==0&&s0(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function s0(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var n=31-Xt(l);t.entangledLanes|=l,t.entanglements[n]=t.entanglements[n]|1073741824|e&261930}function h0(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var n=31-Xt(e),a=1<<n;a&l|t[n]&l&&(t[n]|=l),e&=~a}}function d0(t,l){var e=l&-l;return e=(e&42)!==0?1:Of(e),(e&(t.suspendedLanes|l))!==0?0:e}function Of(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Df(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function y0(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:qh(t.type))}function Co(t,l){var e=X.p;try{return X.p=t,l()}finally{X.p=e}}var he=Math.random().toString(36).slice(2),yt=\\\"__reactFiber$\\\"+he,Mt=\\\"__reactProps$\\\"+he,Bn=\\\"__reactContainer$\\\"+he,Gc=\\\"__reactEvents$\\\"+he,Wy=\\\"__reactListeners$\\\"+he,$y=\\\"__reactHandles$\\\"+he,Ro=\\\"__reactResources$\\\"+he,Ma=\\\"__reactMarker$\\\"+he;function Cf(t){delete t[yt],delete t[Mt],delete t[Gc],delete t[Wy],delete t[$y]}function Pe(t){var l=t[yt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Bn]||e[yt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=Qs(t);t!==null;){if(e=t[yt])return e;t=Qs(t)}return l}t=e,e=t.parentNode}return null}function Mn(t){if(t=t[yt]||t[Bn]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Fn(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(S(33))}function on(t){var l=t[Ro];return l||(l=t[Ro]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function st(t){t[Ma]=!0}var m0=new Set,v0={};function De(t,l){pn(t,l),pn(t+\\\"Capture\\\",l)}function pn(t,l){for(v0[t]=l,t=0;t<l.length;t++)m0.add(l[t])}var Iy=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),wo={},Ho={};function Py(t){return Xc.call(Ho,t)?!0:Xc.call(wo,t)?!1:Iy.test(t)?Ho[t]=!0:(wo[t]=!0,!1)}function mu(t,l,e){if(Py(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(l);return;case\\\"boolean\\\":var n=l.toLowerCase().slice(0,5);if(n!==\\\"data-\\\"&&n!==\\\"aria-\\\"){t.removeAttribute(l);return}}t.setAttribute(l,\\\"\\\"+e)}}function lu(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(l);return}t.setAttribute(l,\\\"\\\"+e)}}function Sl(t,l,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(e);return}t.setAttributeNS(l,e,\\\"\\\"+n)}}function Ft(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function g0(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(l===\\\"checkbox\\\"||l===\\\"radio\\\")}function tm(t,l,e){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof n<\\\"u\\\"&&typeof n.get==\\\"function\\\"&&typeof n.set==\\\"function\\\"){var a=n.get,u=n.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return a.call(this)},set:function(i){e=\\\"\\\"+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:n.enumerable}),{getValue:function(){return e},setValue:function(i){e=\\\"\\\"+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function Lc(t){if(!t._valueTracker){var l=g0(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=tm(t,l,\\\"\\\"+t[l])}}function p0(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),n=\\\"\\\";return t&&(n=g0(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=n,t!==e?(l.setValue(t),!0):!1}function Ru(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var lm=/[\\\\n\\\"\\\\\\\\]/g;function It(t){return t.replace(lm,function(l){return\\\"\\\\\\\\\\\"+l.charCodeAt(0).toString(16)+\\\" \\\"})}function Qc(t,l,e,n,a,u,i,c){t.name=\\\"\\\",i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"?t.type=i:t.removeAttribute(\\\"type\\\"),l!=null?i===\\\"number\\\"?(l===0&&t.value===\\\"\\\"||t.value!=l)&&(t.value=\\\"\\\"+Ft(l)):t.value!==\\\"\\\"+Ft(l)&&(t.value=\\\"\\\"+Ft(l)):i!==\\\"submit\\\"&&i!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),l!=null?Zc(t,i,Ft(l)):e!=null?Zc(t,i,Ft(e)):n!=null&&t.removeAttribute(\\\"value\\\"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"),c!=null&&typeof c!=\\\"function\\\"&&typeof c!=\\\"symbol\\\"&&typeof c!=\\\"boolean\\\"?t.name=\\\"\\\"+Ft(c):t.removeAttribute(\\\"name\\\")}function S0(t,l,e,n,a,u,i,c){if(u!=null&&typeof u!=\\\"function\\\"&&typeof u!=\\\"symbol\\\"&&typeof u!=\\\"boolean\\\"&&(t.type=u),l!=null||e!=null){if(!(u!==\\\"submit\\\"&&u!==\\\"reset\\\"||l!=null)){Lc(t);return}e=e!=null?\\\"\\\"+Ft(e):\\\"\\\",l=l!=null?\\\"\\\"+Ft(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}n=n??a,n=typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!!n,t.checked=c?t.checked:!!n,t.defaultChecked=!!n,i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"&&(t.name=i),Lc(t)}function Zc(t,l,e){l===\\\"number\\\"&&Ru(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+e||(t.defaultValue=\\\"\\\"+e)}function sn(t,l,e,n){if(t=t.options,l){l={};for(var a=0;a<e.length;a++)l[\\\"$\\\"+e[a]]=!0;for(e=0;e<t.length;e++)a=l.hasOwnProperty(\\\"$\\\"+t[e].value),t[e].selected!==a&&(t[e].selected=a),a&&n&&(t[e].defaultSelected=!0)}else{for(e=\\\"\\\"+Ft(e),l=null,a=0;a<t.length;a++){if(t[a].value===e){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}l!==null||t[a].disabled||(l=t[a])}l!==null&&(l.selected=!0)}}function E0(t,l,e){if(l!=null&&(l=\\\"\\\"+Ft(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?\\\"\\\"+Ft(e):\\\"\\\"}function T0(t,l,e,n){if(l==null){if(n!=null){if(e!=null)throw Error(S(92));if(kn(n)){if(1<n.length)throw Error(S(93));n=n[0]}e=n}e==null&&(e=\\\"\\\"),l=e}e=Ft(l),t.defaultValue=e,n=t.textContent,n===e&&n!==\\\"\\\"&&n!==null&&(t.value=n),Lc(t)}function Sn(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var em=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function qo(t,l,e){var n=l.indexOf(\\\"--\\\")===0;e==null||typeof e==\\\"boolean\\\"||e===\\\"\\\"?n?t.setProperty(l,\\\"\\\"):l===\\\"float\\\"?t.cssFloat=\\\"\\\":t[l]=\\\"\\\":n?t.setProperty(l,e):typeof e!=\\\"number\\\"||e===0||em.has(l)?l===\\\"float\\\"?t.cssFloat=e:t[l]=(\\\"\\\"+e).trim():t[l]=e+\\\"px\\\"}function A0(t,l,e){if(l!=null&&typeof l!=\\\"object\\\")throw Error(S(62));if(t=t.style,e!=null){for(var n in e)!e.hasOwnProperty(n)||l!=null&&l.hasOwnProperty(n)||(n.indexOf(\\\"--\\\")===0?t.setProperty(n,\\\"\\\"):n===\\\"float\\\"?t.cssFloat=\\\"\\\":t[n]=\\\"\\\");for(var a in l)n=l[a],l.hasOwnProperty(a)&&e[a]!==n&&qo(t,a,n)}else for(var u in l)l.hasOwnProperty(u)&&qo(t,u,l[u])}function Rf(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var nm=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),am=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function vu(t){return am.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function xl(){}var jc=null;function wf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var tn=null,hn=null;function Yo(t){var l=Mn(t);if(l&&(t=l.stateNode)){var e=t[Mt]||null;t:switch(t=l.stateNode,l.type){case\\\"input\\\":if(Qc(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type===\\\"radio\\\"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name=\\\"'+It(\\\"\\\"+l)+'\\\"][type=\\\"radio\\\"]'),l=0;l<e.length;l++){var n=e[l];if(n!==t&&n.form===t.form){var a=n[Mt]||null;if(!a)throw Error(S(90));Qc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(l=0;l<e.length;l++)n=e[l],n.form===t.form&&p0(n)}break t;case\\\"textarea\\\":E0(t,e.value,e.defaultValue);break t;case\\\"select\\\":l=e.value,l!=null&&sn(t,!!e.multiple,l,!1)}}}var ac=!1;function b0(t,l,e){if(ac)return t(l,e);ac=!0;try{var n=t(l);return n}finally{if(ac=!1,(tn!==null||hn!==null)&&(gi(),tn&&(l=tn,t=hn,hn=tn=null,Yo(l),t)))for(l=0;l<t.length;l++)Yo(t[l])}}function ha(t,l){var e=t.stateNode;if(e===null)return null;var n=e[Mt]||null;if(n===null)return null;e=n[l];t:switch(l){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(n=!n.disabled)||(t=t.type,n=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!n;break t;default:t=!1}if(t)return null;if(e&&typeof e!=\\\"function\\\")throw Error(S(231,l,typeof e));return e}var Dl=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),Vc=!1;if(Dl)try{Ke={},Object.defineProperty(Ke,\\\"passive\\\",{get:function(){Vc=!0}}),window.addEventListener(\\\"test\\\",Ke,Ke),window.removeEventListener(\\\"test\\\",Ke,Ke)}catch{Vc=!1}var Ke,Fl=null,Hf=null,gu=null;function N0(){if(gu)return gu;var t,l=Hf,e=l.length,n,a=\\\"value\\\"in Fl?Fl.value:Fl.textContent,u=a.length;for(t=0;t<e&&l[t]===a[t];t++);var i=e-t;for(n=1;n<=i&&l[e-n]===a[u-n];n++);return gu=a.slice(t,1<n?1-n:void 0)}function pu(t){var l=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function eu(){return!0}function Xo(){return!1}function Ut(t){function l(e,n,a,u,i){this._reactName=e,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(e=t[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?eu:Xo,this.isPropagationStopped=Xo,this}return F(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=\\\"unknown\\\"&&(e.returnValue=!1),this.isDefaultPrevented=eu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=\\\"unknown\\\"&&(e.cancelBubble=!0),this.isPropagationStopped=eu)},persist:function(){},isPersistent:eu}),l}var Ce={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=Ut(Ce),Ua=F({},Ce,{view:0,detail:0}),um=Ut(Ua),uc,ic,Ln,ci=F({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==Ln&&(Ln&&t.type===\\\"mousemove\\\"?(uc=t.screenX-Ln.screenX,ic=t.screenY-Ln.screenY):ic=uc=0,Ln=t),uc)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:ic}}),Go=Ut(ci),im=F({},ci,{dataTransfer:0}),cm=Ut(im),fm=F({},Ua,{relatedTarget:0}),cc=Ut(fm),rm=F({},Ce,{animationName:0,elapsedTime:0,pseudoElement:0}),om=Ut(rm),sm=F({},Ce,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),hm=Ut(sm),dm=F({},Ce,{data:0}),Lo=Ut(dm),ym={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},mm={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},vm={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function gm(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=vm[t])?!!l[t]:!1}function qf(){return gm}var pm=F({},Ua,{key:function(t){if(t.key){var l=ym[t.key]||t.key;if(l!==\\\"Unidentified\\\")return l}return t.type===\\\"keypress\\\"?(t=pu(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?mm[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qf,charCode:function(t){return t.type===\\\"keypress\\\"?pu(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?pu(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),Sm=Ut(pm),Em=F({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qo=Ut(Em),Tm=F({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qf}),Am=Ut(Tm),bm=F({},Ce,{propertyName:0,elapsedTime:0,pseudoElement:0}),Nm=Ut(bm),zm=F({},ci,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),_m=Ut(zm),xm=F({},Ce,{newState:0,oldState:0}),Bm=Ut(xm),Mm=[9,13,27,32],Yf=Dl&&\\\"CompositionEvent\\\"in window,In=null;Dl&&\\\"documentMode\\\"in document&&(In=document.documentMode);var Um=Dl&&\\\"TextEvent\\\"in window&&!In,z0=Dl&&(!Yf||In&&8<In&&11>=In),Zo=\\\" \\\",jo=!1;function _0(t,l){switch(t){case\\\"keyup\\\":return Mm.indexOf(l.keyCode)!==-1;case\\\"keydown\\\":return l.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function x0(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var ln=!1;function Om(t,l){switch(t){case\\\"compositionend\\\":return x0(l);case\\\"keypress\\\":return l.which!==32?null:(jo=!0,Zo);case\\\"textInput\\\":return t=l.data,t===Zo&&jo?null:t;default:return null}}function Dm(t,l){if(ln)return t===\\\"compositionend\\\"||!Yf&&_0(t,l)?(t=N0(),gu=Hf=Fl=null,ln=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case\\\"compositionend\\\":return z0&&l.locale!==\\\"ko\\\"?null:l.data;default:return null}}var Cm={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vo(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l===\\\"input\\\"?!!Cm[t.type]:l===\\\"textarea\\\"}function B0(t,l,e,n){tn?hn?hn.push(n):hn=[n]:tn=n,l=Iu(l,\\\"onChange\\\"),0<l.length&&(e=new ii(\\\"onChange\\\",\\\"change\\\",null,e,n),t.push({event:e,listeners:l}))}var Pn=null,da=null;function Rm(t){bh(t,0)}function fi(t){var l=Fn(t);if(p0(l))return t}function Ko(t,l){if(t===\\\"change\\\")return l}var M0=!1;Dl&&(Dl?(au=\\\"oninput\\\"in document,au||(fc=document.createElement(\\\"div\\\"),fc.setAttribute(\\\"oninput\\\",\\\"return;\\\"),au=typeof fc.oninput==\\\"function\\\"),nu=au):nu=!1,M0=nu&&(!document.documentMode||9<document.documentMode));var nu,au,fc;function Jo(){Pn&&(Pn.detachEvent(\\\"onpropertychange\\\",U0),da=Pn=null)}function U0(t){if(t.propertyName===\\\"value\\\"&&fi(da)){var l=[];B0(l,da,t,wf(t)),b0(Rm,l)}}function wm(t,l,e){t===\\\"focusin\\\"?(Jo(),Pn=l,da=e,Pn.attachEvent(\\\"onpropertychange\\\",U0)):t===\\\"focusout\\\"&&Jo()}function Hm(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return fi(da)}function qm(t,l){if(t===\\\"click\\\")return fi(l)}function Ym(t,l){if(t===\\\"input\\\"||t===\\\"change\\\")return fi(l)}function Xm(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var Lt=typeof Object.is==\\\"function\\\"?Object.is:Xm;function ya(t,l){if(Lt(t,l))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof l!=\\\"object\\\"||l===null)return!1;var e=Object.keys(t),n=Object.keys(l);if(e.length!==n.length)return!1;for(n=0;n<e.length;n++){var a=e[n];if(!Xc.call(l,a)||!Lt(t[a],l[a]))return!1}return!0}function ko(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fo(t,l){var e=ko(t);t=0;for(var n;e;){if(e.nodeType===3){if(n=t+e.textContent.length,t<=l&&n>=l)return{node:e,offset:l-t};t=n}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=ko(e)}}function O0(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?O0(t,l.parentNode):\\\"contains\\\"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function D0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Ru(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href==\\\"string\\\"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Ru(t.document)}return l}function Xf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||l===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var Gm=Dl&&\\\"documentMode\\\"in document&&11>=document.documentMode,en=null,Kc=null,ta=null,Jc=!1;function Wo(t,l,e){var n=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Jc||en==null||en!==Ru(n)||(n=en,\\\"selectionStart\\\"in n&&Xf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ta&&ya(ta,n)||(ta=n,n=Iu(Kc,\\\"onSelect\\\"),0<n.length&&(l=new ii(\\\"onSelect\\\",\\\"select\\\",null,l,e),t.push({event:l,listeners:n}),l.target=en)))}function ge(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e[\\\"Webkit\\\"+t]=\\\"webkit\\\"+l,e[\\\"Moz\\\"+t]=\\\"moz\\\"+l,e}var nn={animationend:ge(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:ge(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:ge(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:ge(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:ge(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:ge(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:ge(\\\"Transition\\\",\\\"TransitionEnd\\\")},rc={},C0={};Dl&&(C0=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),\\\"TransitionEvent\\\"in window||delete nn.transitionend.transition);function Re(t){if(rc[t])return rc[t];if(!nn[t])return t;var l=nn[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in C0)return rc[t]=l[e];return t}var R0=Re(\\\"animationend\\\"),w0=Re(\\\"animationiteration\\\"),H0=Re(\\\"animationstart\\\"),Lm=Re(\\\"transitionrun\\\"),Qm=Re(\\\"transitionstart\\\"),Zm=Re(\\\"transitioncancel\\\"),q0=Re(\\\"transitionend\\\"),Y0=new Map,kc=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");kc.push(\\\"scrollEnd\\\");function il(t,l){Y0.set(t,l),De(l,[t])}var wu=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},kt=[],an=0,Gf=0;function ri(){for(var t=an,l=Gf=an=0;l<t;){var e=kt[l];kt[l++]=null;var n=kt[l];kt[l++]=null;var a=kt[l];kt[l++]=null;var u=kt[l];if(kt[l++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}u!==0&&X0(e,a,u)}}function oi(t,l,e,n){kt[an++]=t,kt[an++]=l,kt[an++]=e,kt[an++]=n,Gf|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Lf(t,l,e,n){return oi(t,l,e,n),Hu(t)}function we(t,l){return oi(t,null,null,l),Hu(t)}function X0(t,l,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e);for(var a=!1,u=t.return;u!==null;)u.childLanes|=e,n=u.alternate,n!==null&&(n.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&l!==null&&(a=31-Xt(e),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[l]:n.push(l),l.lane=e|536870912),u):null}function Hu(t){if(50<ra)throw ra=0,vf=null,Error(S(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var un={};function jm(t,l,e,n){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(t,l,e,n){return new jm(t,l,e,n)}function Qf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ml(t,l){var e=t.alternate;return e===null?(e=wt(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function G0(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Su(t,l,e,n,a,u){var i=0;if(n=t,typeof t==\\\"function\\\")Qf(t)&&(i=1);else if(typeof t==\\\"string\\\")i=Jv(t,e,dl.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else t:switch(t){case wc:return t=wt(31,e,l,a),t.elementType=wc,t.lanes=u,t;case $e:return be(e.children,a,u,l);case u0:i=8,a|=24;break;case Dc:return t=wt(12,e,l,a|2),t.elementType=Dc,t.lanes=u,t;case Cc:return t=wt(13,e,l,a),t.elementType=Cc,t.lanes=u,t;case Rc:return t=wt(19,e,l,a),t.elementType=Rc,t.lanes=u,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case _l:i=10;break t;case i0:i=9;break t;case Bf:i=11;break t;case Mf:i=14;break t;case Ql:i=16,n=null;break t}i=29,e=Error(S(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),n=null}return l=wt(i,e,l,a),l.elementType=t,l.type=n,l.lanes=u,l}function be(t,l,e,n){return t=wt(7,t,n,l),t.lanes=e,t}function oc(t,l,e){return t=wt(6,t,null,l),t.lanes=e,t}function L0(t){var l=wt(18,null,null,0);return l.stateNode=t,l}function sc(t,l,e){return l=wt(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var $o=new WeakMap;function Pt(t,l){if(typeof t==\\\"object\\\"&&t!==null){var e=$o.get(t);return e!==void 0?e:(l={value:t,source:l,stack:Do(l)},$o.set(t,l),l)}return{value:t,source:l,stack:Do(l)}}var cn=[],fn=0,qu=null,ma=0,Wt=[],$t=0,fe=null,ol=1,sl=\\\"\\\";function Nl(t,l){cn[fn++]=ma,cn[fn++]=qu,qu=t,ma=l}function Q0(t,l,e){Wt[$t++]=ol,Wt[$t++]=sl,Wt[$t++]=fe,fe=t;var n=ol;t=sl;var a=32-Xt(n)-1;n&=~(1<<a),e+=1;var u=32-Xt(l)+a;if(30<u){var i=a-a%5;u=(n&(1<<i)-1).toString(32),n>>=i,a-=i,ol=1<<32-Xt(l)+a|e<<a|n,sl=u+t}else ol=1<<u|e<<a|n,sl=t}function Zf(t){t.return!==null&&(Nl(t,1),Q0(t,1,0))}function jf(t){for(;t===qu;)qu=cn[--fn],cn[fn]=null,ma=cn[--fn],cn[fn]=null;for(;t===fe;)fe=Wt[--$t],Wt[$t]=null,sl=Wt[--$t],Wt[$t]=null,ol=Wt[--$t],Wt[$t]=null}function Z0(t,l){Wt[$t++]=ol,Wt[$t++]=sl,Wt[$t++]=fe,ol=l.id,sl=l.overflow,fe=t}var mt=null,k=null,q=!1,te=null,tl=!1,Fc=Error(S(519));function re(t){var l=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw va(Pt(l,t)),Fc}function Io(t){var l=t.stateNode,e=t.type,n=t.memoizedProps;switch(l[yt]=t,l[Mt]=n,e){case\\\"dialog\\\":O(\\\"cancel\\\",l),O(\\\"close\\\",l);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":O(\\\"load\\\",l);break;case\\\"video\\\":case\\\"audio\\\":for(e=0;e<Ea.length;e++)O(Ea[e],l);break;case\\\"source\\\":O(\\\"error\\\",l);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":O(\\\"error\\\",l),O(\\\"load\\\",l);break;case\\\"details\\\":O(\\\"toggle\\\",l);break;case\\\"input\\\":O(\\\"invalid\\\",l),S0(l,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case\\\"select\\\":O(\\\"invalid\\\",l);break;case\\\"textarea\\\":O(\\\"invalid\\\",l),T0(l,n.value,n.defaultValue,n.children)}e=n.children,typeof e!=\\\"string\\\"&&typeof e!=\\\"number\\\"&&typeof e!=\\\"bigint\\\"||l.textContent===\\\"\\\"+e||n.suppressHydrationWarning===!0||zh(l.textContent,e)?(n.popover!=null&&(O(\\\"beforetoggle\\\",l),O(\\\"toggle\\\",l)),n.onScroll!=null&&O(\\\"scroll\\\",l),n.onScrollEnd!=null&&O(\\\"scrollend\\\",l),n.onClick!=null&&(l.onclick=xl),l=!0):l=!1,l||re(t,!0)}function Po(t){for(mt=t.return;mt;)switch(mt.tag){case 5:case 31:case 13:tl=!1;return;case 27:case 3:tl=!0;return;default:mt=mt.return}}function Je(t){if(t!==mt)return!1;if(!q)return Po(t),q=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!==\\\"form\\\"&&e!==\\\"button\\\")||Tf(t.type,t.memoizedProps)),e=!e),e&&k&&re(t),Po(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));k=Ls(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));k=Ls(t)}else l===27?(l=k,de(t.type)?(t=zf,zf=null,k=t):k=l):k=mt?el(t.stateNode.nextSibling):null;return!0}function xe(){k=mt=null,q=!1}function hc(){var t=te;return t!==null&&(xt===null?xt=t:xt.push.apply(xt,t),te=null),t}function va(t){te===null?te=[t]:te.push(t)}var Wc=yl(null),He=null,Bl=null;function jl(t,l,e){V(Wc,l._currentValue),l._currentValue=e}function Ul(t){t._currentValue=Wc.current,ht(Wc)}function $c(t,l,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,n!==null&&(n.childLanes|=l)):n!==null&&(n.childLanes&l)!==l&&(n.childLanes|=l),t===e)break;t=t.return}}function Ic(t,l,e,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=a;for(var f=0;f<l.length;f++)if(c.context===l[f]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),$c(u.return,e,t),n||(i=null);break t}u=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(S(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),$c(i,e,t),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Un(t,l,e,n){t=null;for(var a=l,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(S(387));if(i=i.memoizedProps,i!==null){var c=a.type;Lt(a.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(a===Uu.current){if(i=a.alternate,i===null)throw Error(S(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Aa):t=[Aa])}a=a.return}t!==null&&Ic(l,t,e,n),l.flags|=262144}function Yu(t){for(t=t.firstContext;t!==null;){if(!Lt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Be(t){He=t,Bl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function vt(t){return j0(He,t)}function uu(t,l){return He===null&&Be(t),j0(t,l)}function j0(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Bl===null){if(t===null)throw Error(S(308));Bl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Bl=Bl.next=l;return e}var Vm=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,n){t.push(n)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Km=ft.unstable_scheduleCallback,Jm=ft.unstable_NormalPriority,ut={$$typeof:_l,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vf(){return{controller:new Vm,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&Km(Jm,function(){t.controller.abort()})}var la=null,Pc=0,En=0,dn=null;function km(t,l){if(la===null){var e=la=[];Pc=0,En=vr(),dn={status:\\\"pending\\\",value:void 0,then:function(n){e.push(n)}}}return Pc++,l.then(ts,ts),l}function ts(){if(--Pc===0&&la!==null){dn!==null&&(dn.status=\\\"fulfilled\\\");var t=la;la=null,En=0,dn=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function Fm(t,l){var e=[],n={status:\\\"pending\\\",value:null,reason:null,then:function(a){e.push(a)}};return t.then(function(){n.status=\\\"fulfilled\\\",n.value=l;for(var a=0;a<e.length;a++)(0,e[a])(l)},function(a){for(n.status=\\\"rejected\\\",n.reason=a,a=0;a<e.length;a++)(0,e[a])(void 0)}),n}var ls=z.S;z.S=function(t,l){ah=qt(),typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\"&&km(t,l),ls!==null&&ls(t,l)};var Ne=yl(null);function Kf(){var t=Ne.current;return t!==null?t:j.pooledCache}function Eu(t,l){l===null?V(Ne,Ne.current):V(Ne,l.pool)}function V0(){var t=Kf();return t===null?null:{parent:ut._currentValue,pool:t}}var On=Error(S(460)),Jf=Error(S(474)),si=Error(S(542)),Xu={then:function(){}};function es(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function K0(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(xl,xl),l=e),l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,as(t),t;default:if(typeof l.status==\\\"string\\\")l.then(xl,xl);else{if(t=j,t!==null&&100<t.shellSuspendCounter)throw Error(S(482));t=l,t.status=\\\"pending\\\",t.then(function(n){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"fulfilled\\\",a.value=n}},function(n){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"rejected\\\",a.reason=n}})}switch(l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,as(t),t}throw ze=l,On}}function Ee(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?(ze=e,On):e}}var ze=null;function ns(){if(ze===null)throw Error(S(459));var t=ze;return ze=null,t}function as(t){if(t===On||t===si)throw Error(S(483))}var yn=null,ga=0;function iu(t){var l=ga;return ga+=1,yn===null&&(yn=[]),K0(yn,t,l)}function Qn(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function cu(t,l){throw l.$$typeof===wy?Error(S(525)):(t=Object.prototype.toString.call(l),Error(S(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(l).join(\\\", \\\")+\\\"}\\\":t)))}function J0(t){function l(s,o){if(t){var d=s.deletions;d===null?(s.deletions=[o],s.flags|=16):d.push(o)}}function e(s,o){if(!t)return null;for(;o!==null;)l(s,o),o=o.sibling;return null}function n(s){for(var o=new Map;s!==null;)s.key!==null?o.set(s.key,s):o.set(s.index,s),s=s.sibling;return o}function a(s,o){return s=Ml(s,o),s.index=0,s.sibling=null,s}function u(s,o,d){return s.index=d,t?(d=s.alternate,d!==null?(d=d.index,d<o?(s.flags|=67108866,o):d):(s.flags|=67108866,o)):(s.flags|=1048576,o)}function i(s){return t&&s.alternate===null&&(s.flags|=67108866),s}function c(s,o,d,p){return o===null||o.tag!==6?(o=oc(d,s.mode,p),o.return=s,o):(o=a(o,d),o.return=s,o)}function f(s,o,d,p){var b=d.type;return b===$e?h(s,o,d.props.children,p,d.key):o!==null&&(o.elementType===b||typeof b==\\\"object\\\"&&b!==null&&b.$$typeof===Ql&&Ee(b)===o.type)?(o=a(o,d.props),Qn(o,d),o.return=s,o):(o=Su(d.type,d.key,d.props,null,s.mode,p),Qn(o,d),o.return=s,o)}function r(s,o,d,p){return o===null||o.tag!==4||o.stateNode.containerInfo!==d.containerInfo||o.stateNode.implementation!==d.implementation?(o=sc(d,s.mode,p),o.return=s,o):(o=a(o,d.children||[]),o.return=s,o)}function h(s,o,d,p,b){return o===null||o.tag!==7?(o=be(d,s.mode,p,b),o.return=s,o):(o=a(o,d),o.return=s,o)}function m(s,o,d){if(typeof o==\\\"string\\\"&&o!==\\\"\\\"||typeof o==\\\"number\\\"||typeof o==\\\"bigint\\\")return o=oc(\\\"\\\"+o,s.mode,d),o.return=s,o;if(typeof o==\\\"object\\\"&&o!==null){switch(o.$$typeof){case $a:return d=Su(o.type,o.key,o.props,null,s.mode,d),Qn(d,o),d.return=s,d;case Jn:return o=sc(o,s.mode,d),o.return=s,o;case Ql:return o=Ee(o),m(s,o,d)}if(kn(o)||Gn(o))return o=be(o,s.mode,d,null),o.return=s,o;if(typeof o.then==\\\"function\\\")return m(s,iu(o),d);if(o.$$typeof===_l)return m(s,uu(s,o),d);cu(s,o)}return null}function y(s,o,d,p){var b=o!==null?o.key:null;if(typeof d==\\\"string\\\"&&d!==\\\"\\\"||typeof d==\\\"number\\\"||typeof d==\\\"bigint\\\")return b!==null?null:c(s,o,\\\"\\\"+d,p);if(typeof d==\\\"object\\\"&&d!==null){switch(d.$$typeof){case $a:return d.key===b?f(s,o,d,p):null;case Jn:return d.key===b?r(s,o,d,p):null;case Ql:return d=Ee(d),y(s,o,d,p)}if(kn(d)||Gn(d))return b!==null?null:h(s,o,d,p,null);if(typeof d.then==\\\"function\\\")return y(s,o,iu(d),p);if(d.$$typeof===_l)return y(s,o,uu(s,d),p);cu(s,d)}return null}function v(s,o,d,p,b){if(typeof p==\\\"string\\\"&&p!==\\\"\\\"||typeof p==\\\"number\\\"||typeof p==\\\"bigint\\\")return s=s.get(d)||null,c(o,s,\\\"\\\"+p,b);if(typeof p==\\\"object\\\"&&p!==null){switch(p.$$typeof){case $a:return s=s.get(p.key===null?d:p.key)||null,f(o,s,p,b);case Jn:return s=s.get(p.key===null?d:p.key)||null,r(o,s,p,b);case Ql:return p=Ee(p),v(s,o,d,p,b)}if(kn(p)||Gn(p))return s=s.get(d)||null,h(o,s,p,b,null);if(typeof p.then==\\\"function\\\")return v(s,o,d,iu(p),b);if(p.$$typeof===_l)return v(s,o,d,uu(o,p),b);cu(o,p)}return null}function E(s,o,d,p){for(var b=null,w=null,A=o,x=o=0,U=null;A!==null&&x<d.length;x++){A.index>x?(U=A,A=null):U=A.sibling;var H=y(s,A,d[x],p);if(H===null){A===null&&(A=U);break}t&&A&&H.alternate===null&&l(s,A),o=u(H,o,x),w===null?b=H:w.sibling=H,w=H,A=U}if(x===d.length)return e(s,A),q&&Nl(s,x),b;if(A===null){for(;x<d.length;x++)A=m(s,d[x],p),A!==null&&(o=u(A,o,x),w===null?b=A:w.sibling=A,w=A);return q&&Nl(s,x),b}for(A=n(A);x<d.length;x++)U=v(A,s,x,d[x],p),U!==null&&(t&&U.alternate!==null&&A.delete(U.key===null?x:U.key),o=u(U,o,x),w===null?b=U:w.sibling=U,w=U);return t&&A.forEach(function(jt){return l(s,jt)}),q&&Nl(s,x),b}function T(s,o,d,p){if(d==null)throw Error(S(151));for(var b=null,w=null,A=o,x=o=0,U=null,H=d.next();A!==null&&!H.done;x++,H=d.next()){A.index>x?(U=A,A=null):U=A.sibling;var jt=y(s,A,H.value,p);if(jt===null){A===null&&(A=U);break}t&&A&&jt.alternate===null&&l(s,A),o=u(jt,o,x),w===null?b=jt:w.sibling=jt,w=jt,A=U}if(H.done)return e(s,A),q&&Nl(s,x),b;if(A===null){for(;!H.done;x++,H=d.next())H=m(s,H.value,p),H!==null&&(o=u(H,o,x),w===null?b=H:w.sibling=H,w=H);return q&&Nl(s,x),b}for(A=n(A);!H.done;x++,H=d.next())H=v(A,s,x,H.value,p),H!==null&&(t&&H.alternate!==null&&A.delete(H.key===null?x:H.key),o=u(H,o,x),w===null?b=H:w.sibling=H,w=H);return t&&A.forEach(function(Ga){return l(s,Ga)}),q&&Nl(s,x),b}function _(s,o,d,p){if(typeof d==\\\"object\\\"&&d!==null&&d.type===$e&&d.key===null&&(d=d.props.children),typeof d==\\\"object\\\"&&d!==null){switch(d.$$typeof){case $a:t:{for(var b=d.key;o!==null;){if(o.key===b){if(b=d.type,b===$e){if(o.tag===7){e(s,o.sibling),p=a(o,d.props.children),p.return=s,s=p;break t}}else if(o.elementType===b||typeof b==\\\"object\\\"&&b!==null&&b.$$typeof===Ql&&Ee(b)===o.type){e(s,o.sibling),p=a(o,d.props),Qn(p,d),p.return=s,s=p;break t}e(s,o);break}else l(s,o);o=o.sibling}d.type===$e?(p=be(d.props.children,s.mode,p,d.key),p.return=s,s=p):(p=Su(d.type,d.key,d.props,null,s.mode,p),Qn(p,d),p.return=s,s=p)}return i(s);case Jn:t:{for(b=d.key;o!==null;){if(o.key===b)if(o.tag===4&&o.stateNode.containerInfo===d.containerInfo&&o.stateNode.implementation===d.implementation){e(s,o.sibling),p=a(o,d.children||[]),p.return=s,s=p;break t}else{e(s,o);break}else l(s,o);o=o.sibling}p=sc(d,s.mode,p),p.return=s,s=p}return i(s);case Ql:return d=Ee(d),_(s,o,d,p)}if(kn(d))return E(s,o,d,p);if(Gn(d)){if(b=Gn(d),typeof b!=\\\"function\\\")throw Error(S(150));return d=b.call(d),T(s,o,d,p)}if(typeof d.then==\\\"function\\\")return _(s,o,iu(d),p);if(d.$$typeof===_l)return _(s,o,uu(s,d),p);cu(s,d)}return typeof d==\\\"string\\\"&&d!==\\\"\\\"||typeof d==\\\"number\\\"||typeof d==\\\"bigint\\\"?(d=\\\"\\\"+d,o!==null&&o.tag===6?(e(s,o.sibling),p=a(o,d),p.return=s,s=p):(e(s,o),p=oc(d,s.mode,p),p.return=s,s=p),i(s)):e(s,o)}return function(s,o,d,p){try{ga=0;var b=_(s,o,d,p);return yn=null,b}catch(A){if(A===On||A===si)throw A;var w=wt(29,A,null,s.mode);return w.lanes=p,w.return=s,w}}}var Me=J0(!0),k0=J0(!1),Zl=!1;function kf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tf(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function le(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ee(t,l,e){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Y&2)!==0){var a=n.pending;return a===null?l.next=l:(l.next=a.next,a.next=l),n.pending=l,l=Hu(t),X0(t,null,e),l}return oi(t,n,l,e),Hu(t)}function ea(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var n=l.lanes;n&=t.pendingLanes,e|=n,l.lanes=e,h0(t,e)}}function dc(t,l){var e=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,e===n)){var a=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?a=u=l:u=u.next=l}else a=u=l;e={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var lf=!1;function na(){if(lf){var t=dn;if(t!==null)throw t}}function aa(t,l,e,n){lf=!1;var a=t.updateQueue;Zl=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var f=c,r=f.next;f.next=null,i===null?u=r:i.next=r,i=f;var h=t.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==i&&(c===null?h.firstBaseUpdate=r:c.next=r,h.lastBaseUpdate=f))}if(u!==null){var m=a.baseState;i=0,h=r=f=null,c=u;do{var y=c.lane&-536870913,v=y!==c.lane;if(v?(C&y)===y:(n&y)===y){y!==0&&y===En&&(lf=!0),h!==null&&(h=h.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var E=t,T=c;y=l;var _=e;switch(T.tag){case 1:if(E=T.payload,typeof E==\\\"function\\\"){m=E.call(_,m,y);break t}m=E;break t;case 3:E.flags=E.flags&-65537|128;case 0:if(E=T.payload,y=typeof E==\\\"function\\\"?E.call(_,m,y):E,y==null)break t;m=F({},m,y);break t;case 2:Zl=!0}}y=c.callback,y!==null&&(t.flags|=64,v&&(t.flags|=8192),v=a.callbacks,v===null?a.callbacks=[y]:v.push(y))}else v={lane:y,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(r=h=v,f=m):h=h.next=v,i|=y;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;v=c,c=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);h===null&&(f=m),a.baseState=f,a.firstBaseUpdate=r,a.lastBaseUpdate=h,u===null&&(a.shared.lanes=0),se|=i,t.lanes=i,t.memoizedState=m}}function F0(t,l){if(typeof t!=\\\"function\\\")throw Error(S(191,t));t.call(l)}function W0(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)F0(e[t],l)}var Tn=yl(null),Gu=yl(0);function us(t,l){t=Hl,V(Gu,t),V(Tn,l),Hl=t|l.baseLanes}function ef(){V(Gu,Hl),V(Tn,Tn.current)}function Ff(){Hl=Gu.current,ht(Tn),ht(Gu)}var Qt=yl(null),ll=null;function Vl(t){var l=t.alternate;V(lt,lt.current&1),V(Qt,t),ll===null&&(l===null||Tn.current!==null||l.memoizedState!==null)&&(ll=t)}function nf(t){V(lt,lt.current),V(Qt,t),ll===null&&(ll=t)}function $0(t){t.tag===22?(V(lt,lt.current),V(Qt,t),ll===null&&(ll=t)):Kl(t)}function Kl(){V(lt,lt.current),V(Qt,Qt.current)}function Rt(t){ht(Qt),ll===t&&(ll=null),ht(lt)}var lt=yl(0);function Lu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||bf(e)||Nf(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder===\\\"forwards\\\"||l.memoizedProps.revealOrder===\\\"backwards\\\"||l.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||l.memoizedProps.revealOrder===\\\"together\\\")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Cl=0,M=null,Z=null,nt=null,Qu=!1,mn=!1,Ue=!1,Zu=0,pa=0,vn=null,Wm=0;function P(){throw Error(S(321))}function Wf(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!Lt(t[e],l[e]))return!1;return!0}function $f(t,l,e,n,a,u){return Cl=u,M=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,z.H=t===null||t.memoizedState===null?B1:fr,Ue=!1,u=e(n,a),Ue=!1,mn&&(u=P0(l,e,n,a)),I0(t),u}function I0(t){z.H=Sa;var l=Z!==null&&Z.next!==null;if(Cl=0,nt=Z=M=null,Qu=!1,pa=0,vn=null,l)throw Error(S(300));t===null||it||(t=t.dependencies,t!==null&&Yu(t)&&(it=!0))}function P0(t,l,e,n){M=t;var a=0;do{if(mn&&(vn=null),pa=0,mn=!1,25<=a)throw Error(S(301));if(a+=1,nt=Z=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=M1,u=l(e,n)}while(mn);return u}function $m(){var t=z.H,l=t.useState()[0];return l=typeof l.then==\\\"function\\\"?Da(l):l,t=t.useState()[0],(Z!==null?Z.memoizedState:null)!==t&&(M.flags|=1024),l}function If(){var t=Zu!==0;return Zu=0,t}function Pf(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function tr(t){if(Qu){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}Qu=!1}Cl=0,nt=Z=M=null,mn=!1,pa=Zu=0,vn=null}function Tt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?M.memoizedState=nt=t:nt=nt.next=t,nt}function et(){if(Z===null){var t=M.alternate;t=t!==null?t.memoizedState:null}else t=Z.next;var l=nt===null?M.memoizedState:nt.next;if(l!==null)nt=l,Z=t;else{if(t===null)throw M.alternate===null?Error(S(467)):Error(S(310));Z=t,t={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},nt===null?M.memoizedState=nt=t:nt=nt.next=t}return nt}function hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Da(t){var l=pa;return pa+=1,vn===null&&(vn=[]),t=K0(vn,t,l),l=M,(nt===null?l.memoizedState:nt.next)===null&&(l=l.alternate,z.H=l===null||l.memoizedState===null?B1:fr),t}function di(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Da(t);if(t.$$typeof===_l)return vt(t)}throw Error(S(438,String(t)))}function lr(t){var l=null,e=M.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var n=M.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(l={data:n.data.map(function(a){return a.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=hi(),M.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),n=0;n<t;n++)e[n]=Hy;return l.index++,e}function Rl(t,l){return typeof l==\\\"function\\\"?l(t):l}function Tu(t){var l=et();return er(l,Z,t)}function er(t,l,e){var n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}l.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{l=a.next;var c=i=null,f=null,r=l,h=!1;do{var m=r.lane&-536870913;if(m!==r.lane?(C&m)===m:(Cl&m)===m){var y=r.revertLane;if(y===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null}),m===En&&(h=!0);else if((Cl&y)===y){r=r.next,y===En&&(h=!0);continue}else m={lane:0,revertLane:r.revertLane,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=m,i=u):f=f.next=m,M.lanes|=y,se|=y;m=r.action,Ue&&e(u,m),u=r.hasEagerState?r.eagerState:e(u,m)}else y={lane:m,revertLane:r.revertLane,gesture:r.gesture,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=y,i=u):f=f.next=y,M.lanes|=m,se|=m;r=r.next}while(r!==null&&r!==l);if(f===null?i=u:f.next=c,!Lt(u,t.memoizedState)&&(it=!0,h&&(e=dn,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=f,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function yc(t){var l=et(),e=l.queue;if(e===null)throw Error(S(311));e.lastRenderedReducer=t;var n=e.dispatch,a=e.pending,u=l.memoizedState;if(a!==null){e.pending=null;var i=a=a.next;do u=t(u,i.action),i=i.next;while(i!==a);Lt(u,l.memoizedState)||(it=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,n]}function t1(t,l,e){var n=M,a=et(),u=q;if(u){if(e===void 0)throw Error(S(407));e=e()}else e=l();var i=!Lt((Z||a).memoizedState,e);if(i&&(a.memoizedState=e,it=!0),a=a.queue,nr(n1.bind(null,n,a,t),[t]),a.getSnapshot!==l||i||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,An(9,{destroy:void 0},e1.bind(null,n,a,e,l),null),j===null)throw Error(S(349));u||(Cl&127)!==0||l1(n,l,e)}return e}function l1(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=M.updateQueue,l===null?(l=hi(),M.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function e1(t,l,e,n){l.value=e,l.getSnapshot=n,a1(l)&&u1(t)}function n1(t,l,e){return e(function(){a1(l)&&u1(t)})}function a1(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!Lt(t,e)}catch{return!0}}function u1(t){var l=we(t,2);l!==null&&Bt(l,t,2)}function af(t){var l=Tt();if(typeof t==\\\"function\\\"){var e=t;if(t=e(),Ue){kl(!0);try{e()}finally{kl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:t},l}function i1(t,l,e,n){return t.baseState=e,er(t,Z,typeof n==\\\"function\\\"?n:Rl)}function Im(t,l,e,n,a){if(mi(t))throw Error(S(485));if(t=l.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};z.T!==null?e(!0):u.isTransition=!1,n(u),e=l.pending,e===null?(u.next=l.pending=u,c1(l,u)):(u.next=e.next,l.pending=e.next=u)}}function c1(t,l){var e=l.action,n=l.payload,a=t.state;if(l.isTransition){var u=z.T,i={};z.T=i;try{var c=e(a,n),f=z.S;f!==null&&f(i,c),is(t,l,c)}catch(r){uf(t,l,r)}finally{u!==null&&i.types!==null&&(u.types=i.types),z.T=u}}else try{u=e(a,n),is(t,l,u)}catch(r){uf(t,l,r)}}function is(t,l,e){e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?e.then(function(n){cs(t,l,n)},function(n){return uf(t,l,n)}):cs(t,l,e)}function cs(t,l,e){l.status=\\\"fulfilled\\\",l.value=e,f1(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,c1(t,e)))}function uf(t,l,e){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do l.status=\\\"rejected\\\",l.reason=e,f1(l),l=l.next;while(l!==n)}t.action=null}function f1(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function r1(t,l){return l}function fs(t,l){if(q){var e=j.formState;if(e!==null){t:{var n=M;if(q){if(k){l:{for(var a=k,u=tl;a.nodeType!==8;){if(!u){a=null;break l}if(a=el(a.nextSibling),a===null){a=null;break l}}u=a.data,a=u===\\\"F!\\\"||u===\\\"F\\\"?a:null}if(a){k=el(a.nextSibling),n=a.data===\\\"F!\\\";break t}}re(n)}n=!1}n&&(l=e[0])}}return e=Tt(),e.memoizedState=e.baseState=l,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r1,lastRenderedState:l},e.queue=n,e=z1.bind(null,M,n),n.dispatch=e,n=af(!1),u=cr.bind(null,M,!1,n.queue),n=Tt(),a={state:l,dispatch:null,action:t,pending:null},n.queue=a,e=Im.bind(null,M,a,u,e),a.dispatch=e,n.memoizedState=t,[l,e,!1]}function rs(t){var l=et();return o1(l,Z,t)}function o1(t,l,e){if(l=er(t,l,r1)[0],t=Tu(Rl)[0],typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\")try{var n=Da(l)}catch(i){throw i===On?si:i}else n=l;l=et();var a=l.queue,u=a.dispatch;return e!==l.memoizedState&&(M.flags|=2048,An(9,{destroy:void 0},Pm.bind(null,a,e),null)),[n,u,t]}function Pm(t,l){t.action=l}function os(t){var l=et(),e=Z;if(e!==null)return o1(l,e,t);et(),l=l.memoizedState,e=et();var n=e.queue.dispatch;return e.memoizedState=t,[l,n,!1]}function An(t,l,e,n){return t={tag:t,create:e,deps:n,inst:l,next:null},l=M.updateQueue,l===null&&(l=hi(),M.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(n=e.next,e.next=t,t.next=n,l.lastEffect=t),t}function s1(){return et().memoizedState}function Au(t,l,e,n){var a=Tt();M.flags|=t,a.memoizedState=An(1|l,{destroy:void 0},e,n===void 0?null:n)}function yi(t,l,e,n){var a=et();n=n===void 0?null:n;var u=a.memoizedState.inst;Z!==null&&n!==null&&Wf(n,Z.memoizedState.deps)?a.memoizedState=An(l,u,e,n):(M.flags|=t,a.memoizedState=An(1|l,u,e,n))}function ss(t,l){Au(8390656,8,t,l)}function nr(t,l){yi(2048,8,t,l)}function tv(t){M.flags|=4;var l=M.updateQueue;if(l===null)l=hi(),M.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function h1(t){var l=et().memoizedState;return tv({ref:l,nextImpl:t}),function(){if((Y&2)!==0)throw Error(S(440));return l.impl.apply(void 0,arguments)}}function d1(t,l){return yi(4,2,t,l)}function y1(t,l){return yi(4,4,t,l)}function m1(t,l){if(typeof l==\\\"function\\\"){t=t();var e=l(t);return function(){typeof e==\\\"function\\\"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function v1(t,l,e){e=e!=null?e.concat([t]):null,yi(4,4,m1.bind(null,l,t),e)}function ar(){}function g1(t,l){var e=et();l=l===void 0?null:l;var n=e.memoizedState;return l!==null&&Wf(l,n[1])?n[0]:(e.memoizedState=[t,l],t)}function p1(t,l){var e=et();l=l===void 0?null:l;var n=e.memoizedState;if(l!==null&&Wf(l,n[1]))return n[0];if(n=t(),Ue){kl(!0);try{t()}finally{kl(!1)}}return e.memoizedState=[n,l],n}function ur(t,l,e){return e===void 0||(Cl&1073741824)!==0&&(C&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=ih(),M.lanes|=t,se|=t,e)}function S1(t,l,e,n){return Lt(e,l)?e:Tn.current!==null?(t=ur(t,e,n),Lt(t,l)||(it=!0),t):(Cl&42)===0||(Cl&1073741824)!==0&&(C&261930)===0?(it=!0,t.memoizedState=e):(t=ih(),M.lanes|=t,se|=t,l)}function E1(t,l,e,n,a){var u=X.p;X.p=u!==0&&8>u?u:8;var i=z.T,c={};z.T=c,cr(t,!1,l,e);try{var f=a(),r=z.S;if(r!==null&&r(c,f),f!==null&&typeof f==\\\"object\\\"&&typeof f.then==\\\"function\\\"){var h=Fm(f,n);ua(t,l,h,Gt(t))}else ua(t,l,n,Gt(t))}catch(m){ua(t,l,{then:function(){},status:\\\"rejected\\\",reason:m},Gt())}finally{X.p=u,i!==null&&c.types!==null&&(i.types=c.types),z.T=i}}function lv(){}function cf(t,l,e,n){if(t.tag!==5)throw Error(S(476));var a=T1(t).queue;E1(t,a,l,Ae,e===null?lv:function(){return A1(t),e(n)})}function T1(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:Ae,baseState:Ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:Ae},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function A1(t){var l=T1(t);l.next===null&&(l=t.alternate.memoizedState),ua(t,l.next.queue,{},Gt())}function ir(){return vt(Aa)}function b1(){return et().memoizedState}function N1(){return et().memoizedState}function ev(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=Gt();t=le(e);var n=ee(l,t,e);n!==null&&(Bt(n,l,e),ea(n,l,e)),l={cache:Vf()},t.payload=l;return}l=l.return}}function nv(t,l,e){var n=Gt();e={lane:n,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},mi(t)?_1(l,e):(e=Lf(t,l,e,n),e!==null&&(Bt(e,t,n),x1(e,l,n)))}function z1(t,l,e){var n=Gt();ua(t,l,e,n)}function ua(t,l,e,n){var a={lane:n,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(mi(t))_1(l,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,e);if(a.hasEagerState=!0,a.eagerState=c,Lt(c,i))return oi(t,l,a,0),j===null&&ri(),!1}catch{}if(e=Lf(t,l,a,n),e!==null)return Bt(e,t,n),x1(e,l,n),!0}return!1}function cr(t,l,e,n){if(n={lane:2,revertLane:vr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mi(t)){if(l)throw Error(S(479))}else l=Lf(t,e,n,2),l!==null&&Bt(l,t,2)}function mi(t){var l=t.alternate;return t===M||l!==null&&l===M}function _1(t,l){mn=Qu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function x1(t,l,e){if((e&4194048)!==0){var n=l.lanes;n&=t.pendingLanes,e|=n,l.lanes=e,h0(t,e)}}var Sa={readContext:vt,use:di,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useLayoutEffect:P,useInsertionEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useSyncExternalStore:P,useId:P,useHostTransitionStatus:P,useFormState:P,useActionState:P,useOptimistic:P,useMemoCache:P,useCacheRefresh:P};Sa.useEffectEvent=P;var B1={readContext:vt,use:di,useCallback:function(t,l){return Tt().memoizedState=[t,l===void 0?null:l],t},useContext:vt,useEffect:ss,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,Au(4194308,4,m1.bind(null,l,t),e)},useLayoutEffect:function(t,l){return Au(4194308,4,t,l)},useInsertionEffect:function(t,l){Au(4,2,t,l)},useMemo:function(t,l){var e=Tt();l=l===void 0?null:l;var n=t();if(Ue){kl(!0);try{t()}finally{kl(!1)}}return e.memoizedState=[n,l],n},useReducer:function(t,l,e){var n=Tt();if(e!==void 0){var a=e(l);if(Ue){kl(!0);try{e(l)}finally{kl(!1)}}}else a=l;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=nv.bind(null,M,t),[n.memoizedState,t]},useRef:function(t){var l=Tt();return t={current:t},l.memoizedState=t},useState:function(t){t=af(t);var l=t.queue,e=z1.bind(null,M,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:ar,useDeferredValue:function(t,l){var e=Tt();return ur(e,t,l)},useTransition:function(){var t=af(!1);return t=E1.bind(null,M,t.queue,!0,!1),Tt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var n=M,a=Tt();if(q){if(e===void 0)throw Error(S(407));e=e()}else{if(e=l(),j===null)throw Error(S(349));(C&127)!==0||l1(n,l,e)}a.memoizedState=e;var u={value:e,getSnapshot:l};return a.queue=u,ss(n1.bind(null,n,u,t),[t]),n.flags|=2048,An(9,{destroy:void 0},e1.bind(null,n,u,e,l),null),e},useId:function(){var t=Tt(),l=j.identifierPrefix;if(q){var e=sl,n=ol;e=(n&~(1<<32-Xt(n)-1)).toString(32)+e,l=\\\"_\\\"+l+\\\"R_\\\"+e,e=Zu++,0<e&&(l+=\\\"H\\\"+e.toString(32)),l+=\\\"_\\\"}else e=Wm++,l=\\\"_\\\"+l+\\\"r_\\\"+e.toString(32)+\\\"_\\\";return t.memoizedState=l},useHostTransitionStatus:ir,useFormState:fs,useActionState:fs,useOptimistic:function(t){var l=Tt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=cr.bind(null,M,!0,e),e.dispatch=l,[t,l]},useMemoCache:lr,useCacheRefresh:function(){return Tt().memoizedState=ev.bind(null,M)},useEffectEvent:function(t){var l=Tt(),e={impl:t};return l.memoizedState=e,function(){if((Y&2)!==0)throw Error(S(440));return e.impl.apply(void 0,arguments)}}},fr={readContext:vt,use:di,useCallback:g1,useContext:vt,useEffect:nr,useImperativeHandle:v1,useInsertionEffect:d1,useLayoutEffect:y1,useMemo:p1,useReducer:Tu,useRef:s1,useState:function(){return Tu(Rl)},useDebugValue:ar,useDeferredValue:function(t,l){var e=et();return S1(e,Z.memoizedState,t,l)},useTransition:function(){var t=Tu(Rl)[0],l=et().memoizedState;return[typeof t==\\\"boolean\\\"?t:Da(t),l]},useSyncExternalStore:t1,useId:b1,useHostTransitionStatus:ir,useFormState:rs,useActionState:rs,useOptimistic:function(t,l){var e=et();return i1(e,Z,t,l)},useMemoCache:lr,useCacheRefresh:N1};fr.useEffectEvent=h1;var M1={readContext:vt,use:di,useCallback:g1,useContext:vt,useEffect:nr,useImperativeHandle:v1,useInsertionEffect:d1,useLayoutEffect:y1,useMemo:p1,useReducer:yc,useRef:s1,useState:function(){return yc(Rl)},useDebugValue:ar,useDeferredValue:function(t,l){var e=et();return Z===null?ur(e,t,l):S1(e,Z.memoizedState,t,l)},useTransition:function(){var t=yc(Rl)[0],l=et().memoizedState;return[typeof t==\\\"boolean\\\"?t:Da(t),l]},useSyncExternalStore:t1,useId:b1,useHostTransitionStatus:ir,useFormState:os,useActionState:os,useOptimistic:function(t,l){var e=et();return Z!==null?i1(e,Z,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:lr,useCacheRefresh:N1};M1.useEffectEvent=h1;function mc(t,l,e,n){l=t.memoizedState,e=e(n,l),e=e==null?l:F({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var ff={enqueueSetState:function(t,l,e){t=t._reactInternals;var n=Gt(),a=le(n);a.payload=l,e!=null&&(a.callback=e),l=ee(t,a,n),l!==null&&(Bt(l,t,n),ea(l,t,n))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var n=Gt(),a=le(n);a.tag=1,a.payload=l,e!=null&&(a.callback=e),l=ee(t,a,n),l!==null&&(Bt(l,t,n),ea(l,t,n))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=Gt(),n=le(e);n.tag=2,l!=null&&(n.callback=l),l=ee(t,n,e),l!==null&&(Bt(l,t,e),ea(l,t,e))}};function hs(t,l,e,n,a,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(n,u,i):l.prototype&&l.prototype.isPureReactComponent?!ya(e,n)||!ya(a,u):!0}function ds(t,l,e,n){t=l.state,typeof l.componentWillReceiveProps==\\\"function\\\"&&l.componentWillReceiveProps(e,n),typeof l.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&l.UNSAFE_componentWillReceiveProps(e,n),l.state!==t&&ff.enqueueReplaceState(l,l.state,null)}function Oe(t,l){var e=l;if(\\\"ref\\\"in l){e={};for(var n in l)n!==\\\"ref\\\"&&(e[n]=l[n])}if(t=t.defaultProps){e===l&&(e=F({},e));for(var a in t)e[a]===void 0&&(e[a]=t[a])}return e}function U1(t){wu(t)}function O1(t){console.error(t)}function D1(t){wu(t)}function ju(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(n){setTimeout(function(){throw n})}}function ys(t,l,e){try{var n=t.onCaughtError;n(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function rf(t,l,e){return e=le(e),e.tag=3,e.payload={element:null},e.callback=function(){ju(t,l)},e}function C1(t){return t=le(t),t.tag=3,t}function R1(t,l,e,n){var a=e.type.getDerivedStateFromError;if(typeof a==\\\"function\\\"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){ys(l,e,n)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch==\\\"function\\\"&&(t.callback=function(){ys(l,e,n),typeof a!=\\\"function\\\"&&(ne===null?ne=new Set([this]):ne.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:\\\"\\\"})})}function av(t,l,e,n,a){if(e.flags|=32768,n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"){if(l=e.alternate,l!==null&&Un(l,e,a,!0),e=Qt.current,e!==null){switch(e.tag){case 31:case 13:return ll===null?Fu():e.alternate===null&&tt===0&&(tt=3),e.flags&=-257,e.flags|=65536,e.lanes=a,n===Xu?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([n]):l.add(n),_c(t,n,a)),!1;case 22:return e.flags|=65536,n===Xu?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([n])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([n]):e.add(n)),_c(t,n,a)),!1}throw Error(S(435,e.tag))}return _c(t,n,a),Fu(),!1}if(q)return l=Qt.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=a,n!==Fc&&(t=Error(S(422),{cause:n}),va(Pt(t,e)))):(n!==Fc&&(l=Error(S(423),{cause:n}),va(Pt(l,e))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Pt(n,e),a=rf(t.stateNode,n,a),dc(t,a),tt!==4&&(tt=2)),!1;var u=Error(S(520),{cause:n});if(u=Pt(u,e),fa===null?fa=[u]:fa.push(u),tt!==4&&(tt=2),l===null)return!0;n=Pt(n,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=a&-a,e.lanes|=t,t=rf(e.stateNode,n,t),dc(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError==\\\"function\\\"||u!==null&&typeof u.componentDidCatch==\\\"function\\\"&&(ne===null||!ne.has(u))))return e.flags|=65536,a&=-a,e.lanes|=a,a=C1(a),R1(a,t,e,n),dc(e,a),!1}e=e.return}while(e!==null);return!1}var rr=Error(S(461)),it=!1;function dt(t,l,e,n){l.child=t===null?k0(l,null,e,n):Me(l,t.child,e,n)}function ms(t,l,e,n,a){e=e.render;var u=l.ref;if(\\\"ref\\\"in n){var i={};for(var c in n)c!==\\\"ref\\\"&&(i[c]=n[c])}else i=n;return Be(l),n=$f(t,l,e,i,u,a),c=If(),t!==null&&!it?(Pf(t,l,a),wl(t,l,a)):(q&&c&&Zf(l),l.flags|=1,dt(t,l,n,a),l.child)}function vs(t,l,e,n,a){if(t===null){var u=e.type;return typeof u==\\\"function\\\"&&!Qf(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,w1(t,l,u,n,a)):(t=Su(e.type,null,n,l,l.mode,a),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!or(t,a)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:ya,e(i,n)&&t.ref===l.ref)return wl(t,l,a)}return l.flags|=1,t=Ml(u,n),t.ref=l.ref,t.return=l,l.child=t}function w1(t,l,e,n,a){if(t!==null){var u=t.memoizedProps;if(ya(u,n)&&t.ref===l.ref)if(it=!1,l.pendingProps=n=u,or(t,a))(t.flags&131072)!==0&&(it=!0);else return l.lanes=t.lanes,wl(t,l,a)}return of(t,l,e,n,a)}function H1(t,l,e,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode===\\\"hidden\\\"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(n=l.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,l.child=null;return gs(t,l,u,e,n)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Eu(l,u!==null?u.cachePool:null),u!==null?us(l,u):ef(),$0(l);else return n=l.lanes=536870912,gs(t,l,u!==null?u.baseLanes|e:e,e,n)}else u!==null?(Eu(l,u.cachePool),us(l,u),Kl(l),l.memoizedState=null):(t!==null&&Eu(l,null),ef(),Kl(l));return dt(t,l,a,e),l.child}function Wn(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function gs(t,l,e,n,a){var u=Kf();return u=u===null?null:{parent:ut._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&Eu(l,null),ef(),$0(l),t!==null&&Un(t,l,n,!0),l.childLanes=a,null}function bu(t,l){return l=Vu({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function ps(t,l,e){return Me(l,t.child,null,e),t=bu(l,l.pendingProps),t.flags|=2,Rt(l),l.memoizedState=null,t}function uv(t,l,e){var n=l.pendingProps,a=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(q){if(n.mode===\\\"hidden\\\")return t=bu(l,n),l.lanes=536870912,Wn(null,t);if(nf(l),(t=k)?(t=Bh(t,tl),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:fe!==null?{id:ol,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},e=L0(t),e.return=l,l.child=e,mt=l,k=null)):t=null,t===null)throw re(l);return l.lanes=536870912,null}return bu(l,n)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(nf(l),a)if(l.flags&256)l.flags&=-257,l=ps(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(S(558));else if(it||Un(t,l,e,!1),a=(e&t.childLanes)!==0,it||a){if(n=j,n!==null&&(i=d0(n,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,we(t,i),Bt(n,t,i),rr;Fu(),l=ps(t,l,e)}else t=u.treeContext,k=el(i.nextSibling),mt=l,q=!0,te=null,tl=!1,t!==null&&Z0(l,t),l=bu(l,n),l.flags|=4096;return l}return t=Ml(t.child,{mode:n.mode,children:n.children}),t.ref=l.ref,l.child=t,t.return=l,t}function Nu(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!=\\\"function\\\"&&typeof e!=\\\"object\\\")throw Error(S(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function of(t,l,e,n,a){return Be(l),e=$f(t,l,e,n,void 0,a),n=If(),t!==null&&!it?(Pf(t,l,a),wl(t,l,a)):(q&&n&&Zf(l),l.flags|=1,dt(t,l,e,a),l.child)}function Ss(t,l,e,n,a,u){return Be(l),l.updateQueue=null,e=P0(l,n,e,a),I0(t),n=If(),t!==null&&!it?(Pf(t,l,u),wl(t,l,u)):(q&&n&&Zf(l),l.flags|=1,dt(t,l,e,u),l.child)}function Es(t,l,e,n,a){if(Be(l),l.stateNode===null){var u=un,i=e.contextType;typeof i==\\\"object\\\"&&i!==null&&(u=vt(i)),u=new e(n,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ff,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=n,u.state=l.memoizedState,u.refs={},kf(l),i=e.contextType,u.context=typeof i==\\\"object\\\"&&i!==null?vt(i):un,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i==\\\"function\\\"&&(mc(l,e,i,n),u.state=l.memoizedState),typeof e.getDerivedStateFromProps==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\"||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(i=u.state,typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount(),i!==u.state&&ff.enqueueReplaceState(u,u.state,null),aa(l,n,u,a),na(),u.state=l.memoizedState),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),n=!0}else if(t===null){u=l.stateNode;var c=l.memoizedProps,f=Oe(e,c);u.props=f;var r=u.context,h=e.contextType;i=un,typeof h==\\\"object\\\"&&h!==null&&(i=vt(h));var m=e.getDerivedStateFromProps;h=typeof m==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\",c=l.pendingProps!==c,h||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(c||r!==i)&&ds(l,u,n,i),Zl=!1;var y=l.memoizedState;u.state=y,aa(l,n,u,a),na(),r=l.memoizedState,c||y!==r||Zl?(typeof m==\\\"function\\\"&&(mc(l,e,m,n),r=l.memoizedState),(f=Zl||hs(l,e,f,n,y,r,i))?(h||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308)):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),l.memoizedProps=n,l.memoizedState=r),u.props=n,u.state=r,u.context=i,n=f):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),n=!1)}else{u=l.stateNode,tf(t,l),i=l.memoizedProps,h=Oe(e,i),u.props=h,m=l.pendingProps,y=u.context,r=e.contextType,f=un,typeof r==\\\"object\\\"&&r!==null&&(f=vt(r)),c=e.getDerivedStateFromProps,(r=typeof c==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\")||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(i!==m||y!==f)&&ds(l,u,n,f),Zl=!1,y=l.memoizedState,u.state=y,aa(l,n,u,a),na();var v=l.memoizedState;i!==m||y!==v||Zl||t!==null&&t.dependencies!==null&&Yu(t.dependencies)?(typeof c==\\\"function\\\"&&(mc(l,e,c,n),v=l.memoizedState),(h=Zl||hs(l,e,h,n,y,v,f)||t!==null&&t.dependencies!==null&&Yu(t.dependencies))?(r||typeof u.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof u.componentWillUpdate!=\\\"function\\\"||(typeof u.componentWillUpdate==\\\"function\\\"&&u.componentWillUpdate(n,v,f),typeof u.UNSAFE_componentWillUpdate==\\\"function\\\"&&u.UNSAFE_componentWillUpdate(n,v,f)),typeof u.componentDidUpdate==\\\"function\\\"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate==\\\"function\\\"&&(l.flags|=1024)):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&y===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&y===t.memoizedState||(l.flags|=1024),l.memoizedProps=n,l.memoizedState=v),u.props=n,u.state=v,u.context=f,n=h):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&y===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&y===t.memoizedState||(l.flags|=1024),n=!1)}return u=n,Nu(t,l),n=(l.flags&128)!==0,u||n?(u=l.stateNode,e=n&&typeof e.getDerivedStateFromError!=\\\"function\\\"?null:u.render(),l.flags|=1,t!==null&&n?(l.child=Me(l,t.child,null,a),l.child=Me(l,null,e,a)):dt(t,l,e,a),l.memoizedState=u.state,t=l.child):t=wl(t,l,a),t}function Ts(t,l,e,n){return xe(),l.flags|=256,dt(t,l,e,n),l.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(t){return{baseLanes:t,cachePool:V0()}}function pc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=Ht),t}function q1(t,l,e){var n=l.pendingProps,a=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(lt.current&2)!==0),i&&(a=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(q){if(a?Vl(l):Kl(l),(t=k)?(t=Bh(t,tl),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:fe!==null?{id:ol,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},e=L0(t),e.return=l,l.child=e,mt=l,k=null)):t=null,t===null)throw re(l);return Nf(t)?l.lanes=32:l.lanes=536870912,null}var c=n.children;return n=n.fallback,a?(Kl(l),a=l.mode,c=Vu({mode:\\\"hidden\\\",children:c},a),n=be(n,a,e,null),c.return=l,n.return=l,c.sibling=n,l.child=c,n=l.child,n.memoizedState=gc(e),n.childLanes=pc(t,i,e),l.memoizedState=vc,Wn(null,n)):(Vl(l),sf(l,c))}var f=t.memoizedState;if(f!==null&&(c=f.dehydrated,c!==null)){if(u)l.flags&256?(Vl(l),l.flags&=-257,l=Sc(t,l,e)):l.memoizedState!==null?(Kl(l),l.child=t.child,l.flags|=128,l=null):(Kl(l),c=n.fallback,a=l.mode,n=Vu({mode:\\\"visible\\\",children:n.children},a),c=be(c,a,e,null),c.flags|=2,n.return=l,c.return=l,n.sibling=c,l.child=n,Me(l,t.child,null,e),n=l.child,n.memoizedState=gc(e),n.childLanes=pc(t,i,e),l.memoizedState=vc,l=Wn(null,n));else if(Vl(l),Nf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var r=i.dgst;i=r,n=Error(S(419)),n.stack=\\\"\\\",n.digest=i,va({value:n,source:null,stack:null}),l=Sc(t,l,e)}else if(it||Un(t,l,e,!1),i=(e&t.childLanes)!==0,it||i){if(i=j,i!==null&&(n=d0(i,e),n!==0&&n!==f.retryLane))throw f.retryLane=n,we(t,n),Bt(i,t,n),rr;bf(c)||Fu(),l=Sc(t,l,e)}else bf(c)?(l.flags|=192,l.child=t.child,l=null):(t=f.treeContext,k=el(c.nextSibling),mt=l,q=!0,te=null,tl=!1,t!==null&&Z0(l,t),l=sf(l,n.children),l.flags|=4096);return l}return a?(Kl(l),c=n.fallback,a=l.mode,f=t.child,r=f.sibling,n=Ml(f,{mode:\\\"hidden\\\",children:n.children}),n.subtreeFlags=f.subtreeFlags&65011712,r!==null?c=Ml(r,c):(c=be(c,a,e,null),c.flags|=2),c.return=l,n.return=l,n.sibling=c,l.child=n,Wn(null,n),n=l.child,c=t.child.memoizedState,c===null?c=gc(e):(a=c.cachePool,a!==null?(f=ut._currentValue,a=a.parent!==f?{parent:f,pool:f}:a):a=V0(),c={baseLanes:c.baseLanes|e,cachePool:a}),n.memoizedState=c,n.childLanes=pc(t,i,e),l.memoizedState=vc,Wn(t.child,n)):(Vl(l),e=t.child,t=e.sibling,e=Ml(e,{mode:\\\"visible\\\",children:n.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function sf(t,l){return l=Vu({mode:\\\"visible\\\",children:l},t.mode),l.return=t,t.child=l}function Vu(t,l){return t=wt(22,t,null,l),t.lanes=0,t}function Sc(t,l,e){return Me(l,t.child,null,e),t=sf(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function As(t,l,e){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l),$c(t.return,l,e)}function Ec(t,l,e,n,a,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:n,tail:e,tailMode:a,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=e,i.tailMode=a,i.treeForkCount=u)}function Y1(t,l,e){var n=l.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var i=lt.current,c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,V(lt,i),dt(t,l,n,e),n=q?ma:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&As(t,e,l);else if(t.tag===19)As(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case\\\"forwards\\\":for(e=l.child,a=null;e!==null;)t=e.alternate,t!==null&&Lu(t)===null&&(a=e),e=e.sibling;e=a,e===null?(a=l.child,l.child=null):(a=e.sibling,e.sibling=null),Ec(l,!1,a,e,u,n);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(e=null,a=l.child,l.child=null;a!==null;){if(t=a.alternate,t!==null&&Lu(t)===null){l.child=a;break}t=a.sibling,a.sibling=e,e=a,a=t}Ec(l,!0,e,null,u,n);break;case\\\"together\\\":Ec(l,!1,null,null,void 0,n);break;default:l.memoizedState=null}return l.child}function wl(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),se|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(Un(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(S(153));if(l.child!==null){for(t=l.child,e=Ml(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=Ml(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function or(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Yu(t)))}function iv(t,l,e){switch(l.tag){case 3:Ou(l,l.stateNode.containerInfo),jl(l,ut,t.memoizedState.cache),xe();break;case 27:case 5:Yc(l);break;case 4:Ou(l,l.stateNode.containerInfo);break;case 10:jl(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,nf(l),null;break;case 13:var n=l.memoizedState;if(n!==null)return n.dehydrated!==null?(Vl(l),l.flags|=128,null):(e&l.child.childLanes)!==0?q1(t,l,e):(Vl(l),t=wl(t,l,e),t!==null?t.sibling:null);Vl(l);break;case 19:var a=(t.flags&128)!==0;if(n=(e&l.childLanes)!==0,n||(Un(t,l,e,!1),n=(e&l.childLanes)!==0),a){if(n)return Y1(t,l,e);l.flags|=128}if(a=l.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),V(lt,lt.current),n)break;return null;case 22:return l.lanes=0,H1(t,l,e,l.pendingProps);case 24:jl(l,ut,t.memoizedState.cache)}return wl(t,l,e)}function X1(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)it=!0;else{if(!or(t,e)&&(l.flags&128)===0)return it=!1,iv(t,l,e);it=(t.flags&131072)!==0}else it=!1,q&&(l.flags&1048576)!==0&&Q0(l,ma,l.index);switch(l.lanes=0,l.tag){case 16:t:{var n=l.pendingProps;if(t=Ee(l.elementType),l.type=t,typeof t==\\\"function\\\")Qf(t)?(n=Oe(t,n),l.tag=1,l=Es(null,l,t,n,e)):(l.tag=0,l=of(null,l,t,n,e));else{if(t!=null){var a=t.$$typeof;if(a===Bf){l.tag=11,l=ms(null,l,t,n,e);break t}else if(a===Mf){l.tag=14,l=vs(null,l,t,n,e);break t}}throw l=Hc(t)||t,Error(S(306,l,\\\"\\\"))}}return l;case 0:return of(t,l,l.type,l.pendingProps,e);case 1:return n=l.type,a=Oe(n,l.pendingProps),Es(t,l,n,a,e);case 3:t:{if(Ou(l,l.stateNode.containerInfo),t===null)throw Error(S(387));n=l.pendingProps;var u=l.memoizedState;a=u.element,tf(t,l),aa(l,n,null,e);var i=l.memoizedState;if(n=i.cache,jl(l,ut,n),n!==u.cache&&Ic(l,[ut],e,!0),na(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=Ts(t,l,n,e);break t}else if(n!==a){a=Pt(Error(S(424)),l),va(a),l=Ts(t,l,n,e);break t}else for(t=l.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,k=el(t.firstChild),mt=l,q=!0,te=null,tl=!0,e=k0(l,null,n,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(xe(),n===a){l=wl(t,l,e);break t}dt(t,l,n,e)}l=l.child}return l;case 26:return Nu(t,l),t===null?(e=js(l.type,null,l.pendingProps,null))?l.memoizedState=e:q||(e=l.type,t=l.pendingProps,n=Pu(Pl.current).createElement(e),n[yt]=l,n[Mt]=t,gt(n,e,t),st(n),l.stateNode=n):l.memoizedState=js(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Yc(l),t===null&&q&&(n=l.stateNode=Mh(l.type,l.pendingProps,Pl.current),mt=l,tl=!0,a=k,de(l.type)?(zf=a,k=el(n.firstChild)):k=a),dt(t,l,l.pendingProps.children,e),Nu(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&q&&((a=n=k)&&(n=Rv(n,l.type,l.pendingProps,tl),n!==null?(l.stateNode=n,mt=l,k=el(n.firstChild),tl=!1,a=!0):a=!1),a||re(l)),Yc(l),a=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,n=u.children,Tf(a,u)?n=null:i!==null&&Tf(a,i)&&(l.flags|=32),l.memoizedState!==null&&(a=$f(t,l,$m,null,null,e),Aa._currentValue=a),Nu(t,l),dt(t,l,n,e),l.child;case 6:return t===null&&q&&((t=e=k)&&(e=wv(e,l.pendingProps,tl),e!==null?(l.stateNode=e,mt=l,k=null,t=!0):t=!1),t||re(l)),null;case 13:return q1(t,l,e);case 4:return Ou(l,l.stateNode.containerInfo),n=l.pendingProps,t===null?l.child=Me(l,null,n,e):dt(t,l,n,e),l.child;case 11:return ms(t,l,l.type,l.pendingProps,e);case 7:return dt(t,l,l.pendingProps,e),l.child;case 8:return dt(t,l,l.pendingProps.children,e),l.child;case 12:return dt(t,l,l.pendingProps.children,e),l.child;case 10:return n=l.pendingProps,jl(l,l.type,n.value),dt(t,l,n.children,e),l.child;case 9:return a=l.type._context,n=l.pendingProps.children,Be(l),a=vt(a),n=n(a),l.flags|=1,dt(t,l,n,e),l.child;case 14:return vs(t,l,l.type,l.pendingProps,e);case 15:return w1(t,l,l.type,l.pendingProps,e);case 19:return Y1(t,l,e);case 31:return uv(t,l,e);case 22:return H1(t,l,e,l.pendingProps);case 24:return Be(l),n=vt(ut),t===null?(a=Kf(),a===null&&(a=j,u=Vf(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=e),a=u),l.memoizedState={parent:n,cache:a},kf(l),jl(l,ut,a)):((t.lanes&e)!==0&&(tf(t,l),aa(l,null,null,e),na()),a=t.memoizedState,u=l.memoizedState,a.parent!==n?(a={parent:n,cache:n},l.memoizedState=a,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=a),jl(l,ut,n)):(n=u.cache,jl(l,ut,n),n!==a.cache&&Ic(l,[ut],e,!0))),dt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(S(156,l.tag))}function El(t){t.flags|=4}function Tc(t,l,e,n,a){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(rh())t.flags|=8192;else throw ze=Xu,Jf}else t.flags&=-16777217}function bs(t,l){if(l.type!==\\\"stylesheet\\\"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Dh(l))if(rh())t.flags|=8192;else throw ze=Xu,Jf}function fu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?o0():536870912,t.lanes|=l,bn|=l)}function Zn(t,l){if(!q)switch(t.tailMode){case\\\"hidden\\\":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case\\\"collapsed\\\":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function J(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,n=0;if(l)for(var a=t.child;a!==null;)e|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)e|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=e,l}function cv(t,l,e){var n=l.pendingProps;switch(jf(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return J(l),null;case 1:return J(l),null;case 3:return e=l.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),l.memoizedState.cache!==n&&(l.flags|=2048),Ul(ut),gn(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(Je(l)?El(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,hc())),J(l),null;case 26:var a=l.type,u=l.memoizedState;return t===null?(El(l),u!==null?(J(l),bs(l,u)):(J(l),Tc(l,a,null,n,e))):u?u!==t.memoizedState?(El(l),J(l),bs(l,u)):(J(l),l.flags&=-16777217):(t=t.memoizedProps,t!==n&&El(l),J(l),Tc(l,a,t,n,e)),null;case 27:if(Du(l),e=Pl.current,a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(!n){if(l.stateNode===null)throw Error(S(166));return J(l),null}t=dl.current,Je(l)?Io(l,t):(t=Mh(a,n,e),l.stateNode=t,El(l))}return J(l),null;case 5:if(Du(l),a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(!n){if(l.stateNode===null)throw Error(S(166));return J(l),null}if(u=dl.current,Je(l))Io(l,u);else{var i=Pu(Pl.current);switch(u){case 1:u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case 2:u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;default:switch(a){case\\\"svg\\\":u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case\\\"math\\\":u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;case\\\"script\\\":u=i.createElement(\\\"div\\\"),u.innerHTML=\\\"<script><\\\\/script>\\\",u=u.removeChild(u.firstChild);break;case\\\"select\\\":u=typeof n.is==\\\"string\\\"?i.createElement(\\\"select\\\",{is:n.is}):i.createElement(\\\"select\\\"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is==\\\"string\\\"?i.createElement(a,{is:n.is}):i.createElement(a)}}u[yt]=l,u[Mt]=n;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(gt(u,a,n),a){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n=!!n.autoFocus;break t;case\\\"img\\\":n=!0;break t;default:n=!1}n&&El(l)}}return J(l),Tc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(typeof n!=\\\"string\\\"&&l.stateNode===null)throw Error(S(166));if(t=Pl.current,Je(l)){if(t=l.stateNode,e=l.memoizedProps,n=null,a=mt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[yt]=l,t=!!(t.nodeValue===e||n!==null&&n.suppressHydrationWarning===!0||zh(t.nodeValue,e)),t||re(l,!0)}else t=Pu(t).createTextNode(n),t[yt]=l,l.stateNode=t}return J(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(n=Je(l),e!==null){if(t===null){if(!n)throw Error(S(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(557));t[yt]=l}else xe(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),t=!1}else e=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(Rt(l),l):(Rt(l),null);if((l.flags&128)!==0)throw Error(S(558))}return J(l),null;case 13:if(n=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Je(l),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(S(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(S(317));a[yt]=l}else xe(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),a=!1}else a=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return l.flags&256?(Rt(l),l):(Rt(l),null)}return Rt(l),(l.flags&128)!==0?(l.lanes=e,l):(e=n!==null,t=t!==null&&t.memoizedState!==null,e&&(n=l.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),fu(l,l.updateQueue),J(l),null);case 4:return gn(),t===null&&gr(l.stateNode.containerInfo),J(l),null;case 10:return Ul(l.type),J(l),null;case 19:if(ht(lt),n=l.memoizedState,n===null)return J(l),null;if(a=(l.flags&128)!==0,u=n.rendering,u===null)if(a)Zn(n,!1);else{if(tt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=Lu(t),u!==null){for(l.flags|=128,Zn(n,!1),t=u.updateQueue,l.updateQueue=t,fu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)G0(e,t),e=e.sibling;return V(lt,lt.current&1|2),q&&Nl(l,n.treeForkCount),l.child}t=t.sibling}n.tail!==null&&qt()>Ju&&(l.flags|=128,a=!0,Zn(n,!1),l.lanes=4194304)}else{if(!a)if(t=Lu(u),t!==null){if(l.flags|=128,a=!0,t=t.updateQueue,l.updateQueue=t,fu(l,t),Zn(n,!0),n.tail===null&&n.tailMode===\\\"hidden\\\"&&!u.alternate&&!q)return J(l),null}else 2*qt()-n.renderingStartTime>Ju&&e!==536870912&&(l.flags|=128,a=!0,Zn(n,!1),l.lanes=4194304);n.isBackwards?(u.sibling=l.child,l.child=u):(t=n.last,t!==null?t.sibling=u:l.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=qt(),t.sibling=null,e=lt.current,V(lt,a?e&1|2:e&1),q&&Nl(l,n.treeForkCount),t):(J(l),null);case 22:case 23:return Rt(l),Ff(),n=l.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(l.flags|=8192):n&&(l.flags|=8192),n?(e&536870912)!==0&&(l.flags&128)===0&&(J(l),l.subtreeFlags&6&&(l.flags|=8192)):J(l),e=l.updateQueue,e!==null&&fu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==e&&(l.flags|=2048),t!==null&&ht(Ne),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Ul(ut),J(l),null;case 25:return null;case 30:return null}throw Error(S(156,l.tag))}function fv(t,l){switch(jf(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Ul(ut),gn(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Du(l),null;case 31:if(l.memoizedState!==null){if(Rt(l),l.alternate===null)throw Error(S(340));xe()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(Rt(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(S(340));xe()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return ht(lt),null;case 4:return gn(),null;case 10:return Ul(l.type),null;case 22:case 23:return Rt(l),Ff(),t!==null&&ht(Ne),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Ul(ut),null;case 25:return null;default:return null}}function G1(t,l){switch(jf(l),l.tag){case 3:Ul(ut),gn();break;case 26:case 27:case 5:Du(l);break;case 4:gn();break;case 31:l.memoizedState!==null&&Rt(l);break;case 13:Rt(l);break;case 19:ht(lt);break;case 10:Ul(l.type);break;case 22:case 23:Rt(l),Ff(),t!==null&&ht(Ne);break;case 24:Ul(ut)}}function Ca(t,l){try{var e=l.updateQueue,n=e!==null?e.lastEffect:null;if(n!==null){var a=n.next;e=a;do{if((e.tag&t)===t){n=void 0;var u=e.create,i=e.inst;n=u(),i.destroy=n}e=e.next}while(e!==a)}}catch(c){L(l,l.return,c)}}function oe(t,l,e){try{var n=l.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var i=n.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=l;var f=e,r=c;try{r()}catch(h){L(a,f,h)}}}n=n.next}while(n!==u)}}catch(h){L(l,l.return,h)}}function L1(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{W0(l,e)}catch(n){L(t,t.return,n)}}}function Q1(t,l,e){e.props=Oe(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(n){L(t,l,n)}}function ia(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof e==\\\"function\\\"?t.refCleanup=e(n):e.current=n}}catch(a){L(t,l,a)}}function hl(t,l){var e=t.ref,n=t.refCleanup;if(e!==null)if(typeof n==\\\"function\\\")try{n()}catch(a){L(t,l,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e==\\\"function\\\")try{e(null)}catch(a){L(t,l,a)}else e.current=null}function Z1(t){var l=t.type,e=t.memoizedProps,n=t.stateNode;try{t:switch(l){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":e.autoFocus&&n.focus();break t;case\\\"img\\\":e.src?n.src=e.src:e.srcSet&&(n.srcset=e.srcSet)}}catch(a){L(t,t.return,a)}}function Ac(t,l,e){try{var n=t.stateNode;Bv(n,t.type,e,l),n[Mt]=l}catch(a){L(t,t.return,a)}}function j1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&de(t.type)||t.tag===4}function bc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||j1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&de(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hf(t,l,e){var n=t.tag;if(n===5||n===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=xl));else if(n!==4&&(n===27&&de(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(hf(t,l,e),t=t.sibling;t!==null;)hf(t,l,e),t=t.sibling}function Ku(t,l,e){var n=t.tag;if(n===5||n===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(n!==4&&(n===27&&de(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(Ku(t,l,e),t=t.sibling;t!==null;)Ku(t,l,e),t=t.sibling}function V1(t){var l=t.stateNode,e=t.memoizedProps;try{for(var n=t.type,a=l.attributes;a.length;)l.removeAttributeNode(a[0]);gt(l,n,e),l[yt]=t,l[Mt]=e}catch(u){L(t,t.return,u)}}var zl=!1,at=!1,Nc=!1,Ns=typeof WeakSet==\\\"function\\\"?WeakSet:Set,ot=null;function rv(t,l){if(t=t.containerInfo,Sf=ni,t=D0(t),Xf(t)){if(\\\"selectionStart\\\"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var n=e.getSelection&&e.getSelection();if(n&&n.rangeCount!==0){e=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,c=-1,f=-1,r=0,h=0,m=t,y=null;l:for(;;){for(var v;m!==e||a!==0&&m.nodeType!==3||(c=i+a),m!==u||n!==0&&m.nodeType!==3||(f=i+n),m.nodeType===3&&(i+=m.nodeValue.length),(v=m.firstChild)!==null;)y=m,m=v;for(;;){if(m===t)break l;if(y===e&&++r===a&&(c=i),y===u&&++h===n&&(f=i),(v=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=v}e=c===-1||f===-1?null:{start:c,end:f}}else e=null}e=e||{start:0,end:0}}else e=null;for(Ef={focusedElem:t,selectionRange:e},ni=!1,ot=l;ot!==null;)if(l=ot,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,ot=t;else for(;ot!==null;){switch(l=ot,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)a=t[e],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,a=u.memoizedProps,u=u.memoizedState,n=e.stateNode;try{var E=Oe(e.type,a);t=n.getSnapshotBeforeUpdate(E,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(T){L(e,e.return,T)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)Af(t);else if(e===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":Af(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(S(163))}if(t=l.sibling,t!==null){t.return=l.return,ot=t;break}ot=l.return}}function K1(t,l,e){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Al(t,e),n&4&&Ca(5,e);break;case 1:if(Al(t,e),n&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){L(e,e.return,i)}else{var a=Oe(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(a,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){L(e,e.return,i)}}n&64&&L1(e),n&512&&ia(e,e.return);break;case 3:if(Al(t,e),n&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{W0(t,l)}catch(i){L(e,e.return,i)}}break;case 27:l===null&&n&4&&V1(e);case 26:case 5:Al(t,e),l===null&&n&4&&Z1(e),n&512&&ia(e,e.return);break;case 12:Al(t,e);break;case 31:Al(t,e),n&4&&F1(t,e);break;case 13:Al(t,e),n&4&&W1(t,e),n&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=pv.bind(null,e),Hv(t,e))));break;case 22:if(n=e.memoizedState!==null||zl,!n){l=l!==null&&l.memoizedState!==null||at,a=zl;var u=at;zl=n,(at=l)&&!u?bl(t,e,(e.subtreeFlags&8772)!==0):Al(t,e),zl=a,at=u}break;case 30:break;default:Al(t,e)}}function J1(t){var l=t.alternate;l!==null&&(t.alternate=null,J1(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Cf(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var $=null,_t=!1;function Tl(t,l,e){for(e=e.child;e!==null;)k1(t,l,e),e=e.sibling}function k1(t,l,e){if(Yt&&typeof Yt.onCommitFiberUnmount==\\\"function\\\")try{Yt.onCommitFiberUnmount(_a,e)}catch{}switch(e.tag){case 26:at||hl(e,l),Tl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:at||hl(e,l);var n=$,a=_t;de(e.type)&&($=e.stateNode,_t=!1),Tl(t,l,e),oa(e.stateNode),$=n,_t=a;break;case 5:at||hl(e,l);case 6:if(n=$,a=_t,$=null,Tl(t,l,e),$=n,_t=a,$!==null)if(_t)try{($.nodeType===9?$.body:$.nodeName===\\\"HTML\\\"?$.ownerDocument.body:$).removeChild(e.stateNode)}catch(u){L(e,l,u)}else try{$.removeChild(e.stateNode)}catch(u){L(e,l,u)}break;case 18:$!==null&&(_t?(t=$,Xs(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,e.stateNode),xn(t)):Xs($,e.stateNode));break;case 4:n=$,a=_t,$=e.stateNode.containerInfo,_t=!0,Tl(t,l,e),$=n,_t=a;break;case 0:case 11:case 14:case 15:oe(2,e,l),at||oe(4,e,l),Tl(t,l,e);break;case 1:at||(hl(e,l),n=e.stateNode,typeof n.componentWillUnmount==\\\"function\\\"&&Q1(e,l,n)),Tl(t,l,e);break;case 21:Tl(t,l,e);break;case 22:at=(n=at)||e.memoizedState!==null,Tl(t,l,e),at=n;break;default:Tl(t,l,e)}}function F1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{xn(t)}catch(e){L(l,l.return,e)}}}function W1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{xn(t)}catch(e){L(l,l.return,e)}}function ov(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Ns),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Ns),l;default:throw Error(S(435,t.tag))}}function ru(t,l){var e=ov(t);l.forEach(function(n){if(!e.has(n)){e.add(n);var a=Sv.bind(null,t,n);n.then(a,a)}})}function Nt(t,l){var e=l.deletions;if(e!==null)for(var n=0;n<e.length;n++){var a=e[n],u=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(de(c.type)){$=c.stateNode,_t=!1;break t}break;case 5:$=c.stateNode,_t=!1;break t;case 3:case 4:$=c.stateNode.containerInfo,_t=!0;break t}c=c.return}if($===null)throw Error(S(160));k1(u,i,a),$=null,_t=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)$1(l,t),l=l.sibling}var ul=null;function $1(t,l){var e=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Nt(l,t),zt(t),n&4&&(oe(3,t,t.return),Ca(3,t),oe(5,t,t.return));break;case 1:Nt(l,t),zt(t),n&512&&(at||e===null||hl(e,e.return)),n&64&&zl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?n:e.concat(n))));break;case 26:var a=ul;if(Nt(l,t),zt(t),n&512&&(at||e===null||hl(e,e.return)),n&4){var u=e!==null?e.memoizedState:null;if(n=t.memoizedState,e===null)if(n===null)if(t.stateNode===null){t:{n=t.type,e=t.memoizedProps,a=a.ownerDocument||a;l:switch(n){case\\\"title\\\":u=a.getElementsByTagName(\\\"title\\\")[0],(!u||u[Ma]||u[yt]||u.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||u.hasAttribute(\\\"itemprop\\\"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector(\\\"head > title\\\"))),gt(u,n,e),u[yt]=t,st(u),n=u;break t;case\\\"link\\\":var i=Ks(\\\"link\\\",\\\"href\\\",a).get(n+(e.href||\\\"\\\"));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"href\\\")===(e.href==null||e.href===\\\"\\\"?null:e.href)&&u.getAttribute(\\\"rel\\\")===(e.rel==null?null:e.rel)&&u.getAttribute(\\\"title\\\")===(e.title==null?null:e.title)&&u.getAttribute(\\\"crossorigin\\\")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break l}}u=a.createElement(n),gt(u,n,e),a.head.appendChild(u);break;case\\\"meta\\\":if(i=Ks(\\\"meta\\\",\\\"content\\\",a).get(n+(e.content||\\\"\\\"))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"content\\\")===(e.content==null?null:\\\"\\\"+e.content)&&u.getAttribute(\\\"name\\\")===(e.name==null?null:e.name)&&u.getAttribute(\\\"property\\\")===(e.property==null?null:e.property)&&u.getAttribute(\\\"http-equiv\\\")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute(\\\"charset\\\")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break l}}u=a.createElement(n),gt(u,n,e),a.head.appendChild(u);break;default:throw Error(S(468,n))}u[yt]=t,st(u),n=u}t.stateNode=n}else Js(a,t.type,t.stateNode);else t.stateNode=Vs(a,n,t.memoizedProps);else u!==n?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,n===null?Js(a,t.type,t.stateNode):Vs(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Ac(t,t.memoizedProps,e.memoizedProps)}break;case 27:Nt(l,t),zt(t),n&512&&(at||e===null||hl(e,e.return)),e!==null&&n&4&&Ac(t,t.memoizedProps,e.memoizedProps);break;case 5:if(Nt(l,t),zt(t),n&512&&(at||e===null||hl(e,e.return)),t.flags&32){a=t.stateNode;try{Sn(a,\\\"\\\")}catch(E){L(t,t.return,E)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Ac(t,a,e!==null?e.memoizedProps:a)),n&1024&&(Nc=!0);break;case 6:if(Nt(l,t),zt(t),n&4){if(t.stateNode===null)throw Error(S(162));n=t.memoizedProps,e=t.stateNode;try{e.nodeValue=n}catch(E){L(t,t.return,E)}}break;case 3:if(xu=null,a=ul,ul=ti(l.containerInfo),Nt(l,t),ul=a,zt(t),n&4&&e!==null&&e.memoizedState.isDehydrated)try{xn(l.containerInfo)}catch(E){L(t,t.return,E)}Nc&&(Nc=!1,I1(t));break;case 4:n=ul,ul=ti(t.stateNode.containerInfo),Nt(l,t),zt(t),ul=n;break;case 12:Nt(l,t),zt(t);break;case 31:Nt(l,t),zt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,ru(t,n)));break;case 13:Nt(l,t),zt(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(vi=qt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,ru(t,n)));break;case 22:a=t.memoizedState!==null;var f=e!==null&&e.memoizedState!==null,r=zl,h=at;if(zl=r||a,at=h||f,Nt(l,t),at=h,zl=r,zt(t),n&8192)t:for(l=t.stateNode,l._visibility=a?l._visibility&-2:l._visibility|1,a&&(e===null||f||zl||at||Te(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){f=e=l;try{if(u=f.stateNode,a)i=u.style,typeof i.setProperty==\\\"function\\\"?i.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):i.display=\\\"none\\\";else{c=f.stateNode;var m=f.memoizedProps.style,y=m!=null&&m.hasOwnProperty(\\\"display\\\")?m.display:null;c.style.display=y==null||typeof y==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+y).trim()}}catch(E){L(f,f.return,E)}}}else if(l.tag===6){if(e===null){f=l;try{f.stateNode.nodeValue=a?\\\"\\\":f.memoizedProps}catch(E){L(f,f.return,E)}}}else if(l.tag===18){if(e===null){f=l;try{var v=f.stateNode;a?Gs(v,!0):Gs(f.stateNode,!1)}catch(E){L(f,f.return,E)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}n&4&&(n=t.updateQueue,n!==null&&(e=n.retryQueue,e!==null&&(n.retryQueue=null,ru(t,e))));break;case 19:Nt(l,t),zt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,ru(t,n)));break;case 30:break;case 21:break;default:Nt(l,t),zt(t)}}function zt(t){var l=t.flags;if(l&2){try{for(var e,n=t.return;n!==null;){if(j1(n)){e=n;break}n=n.return}if(e==null)throw Error(S(160));switch(e.tag){case 27:var a=e.stateNode,u=bc(t);Ku(t,u,a);break;case 5:var i=e.stateNode;e.flags&32&&(Sn(i,\\\"\\\"),e.flags&=-33);var c=bc(t);Ku(t,c,i);break;case 3:case 4:var f=e.stateNode.containerInfo,r=bc(t);hf(t,r,f);break;default:throw Error(S(161))}}catch(h){L(t,t.return,h)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function I1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;I1(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Al(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)K1(t,l.alternate,l),l=l.sibling}function Te(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:oe(4,l,l.return),Te(l);break;case 1:hl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount==\\\"function\\\"&&Q1(l,l.return,e),Te(l);break;case 27:oa(l.stateNode);case 26:case 5:hl(l,l.return),Te(l);break;case 22:l.memoizedState===null&&Te(l);break;case 30:Te(l);break;default:Te(l)}t=t.sibling}}function bl(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var n=l.alternate,a=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:bl(a,u,e),Ca(4,u);break;case 1:if(bl(a,u,e),n=u,a=n.stateNode,typeof a.componentDidMount==\\\"function\\\")try{a.componentDidMount()}catch(r){L(n,n.return,r)}if(n=u,a=n.updateQueue,a!==null){var c=n.stateNode;try{var f=a.shared.hiddenCallbacks;if(f!==null)for(a.shared.hiddenCallbacks=null,a=0;a<f.length;a++)F0(f[a],c)}catch(r){L(n,n.return,r)}}e&&i&64&&L1(u),ia(u,u.return);break;case 27:V1(u);case 26:case 5:bl(a,u,e),e&&n===null&&i&4&&Z1(u),ia(u,u.return);break;case 12:bl(a,u,e);break;case 31:bl(a,u,e),e&&i&4&&F1(a,u);break;case 13:bl(a,u,e),e&&i&4&&W1(a,u);break;case 22:u.memoizedState===null&&bl(a,u,e),ia(u,u.return);break;case 30:break;default:bl(a,u,e)}l=l.sibling}}function sr(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Oa(e))}function hr(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Oa(t))}function al(t,l,e,n){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)P1(t,l,e,n),l=l.sibling}function P1(t,l,e,n){var a=l.flags;switch(l.tag){case 0:case 11:case 15:al(t,l,e,n),a&2048&&Ca(9,l);break;case 1:al(t,l,e,n);break;case 3:al(t,l,e,n),a&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Oa(t)));break;case 12:if(a&2048){al(t,l,e,n),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c==\\\"function\\\"&&c(i,l.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(f){L(l,l.return,f)}}else al(t,l,e,n);break;case 31:al(t,l,e,n);break;case 13:al(t,l,e,n);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?al(t,l,e,n):ca(t,l):u._visibility&2?al(t,l,e,n):(u._visibility|=2,Fe(t,l,e,n,(l.subtreeFlags&10256)!==0||!1)),a&2048&&sr(i,l);break;case 24:al(t,l,e,n),a&2048&&hr(l.alternate,l);break;default:al(t,l,e,n)}}function Fe(t,l,e,n,a){for(a=a&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,c=e,f=n,r=i.flags;switch(i.tag){case 0:case 11:case 15:Fe(u,i,c,f,a),Ca(8,i);break;case 23:break;case 22:var h=i.stateNode;i.memoizedState!==null?h._visibility&2?Fe(u,i,c,f,a):ca(u,i):(h._visibility|=2,Fe(u,i,c,f,a)),a&&r&2048&&sr(i.alternate,i);break;case 24:Fe(u,i,c,f,a),a&&r&2048&&hr(i.alternate,i);break;default:Fe(u,i,c,f,a)}l=l.sibling}}function ca(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,n=l,a=n.flags;switch(n.tag){case 22:ca(e,n),a&2048&&sr(n.alternate,n);break;case 24:ca(e,n),a&2048&&hr(n.alternate,n);break;default:ca(e,n)}l=l.sibling}}var $n=8192;function ke(t,l,e){if(t.subtreeFlags&$n)for(t=t.child;t!==null;)th(t,l,e),t=t.sibling}function th(t,l,e){switch(t.tag){case 26:ke(t,l,e),t.flags&$n&&t.memoizedState!==null&&kv(e,ul,t.memoizedState,t.memoizedProps);break;case 5:ke(t,l,e);break;case 3:case 4:var n=ul;ul=ti(t.stateNode.containerInfo),ke(t,l,e),ul=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=$n,$n=16777216,ke(t,l,e),$n=n):ke(t,l,e));break;default:ke(t,l,e)}}function lh(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function jn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var n=l[e];ot=n,nh(n,t)}lh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eh(t),t=t.sibling}function eh(t){switch(t.tag){case 0:case 11:case 15:jn(t),t.flags&2048&&oe(9,t,t.return);break;case 3:jn(t);break;case 12:jn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,zu(t)):jn(t);break;default:jn(t)}}function zu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var n=l[e];ot=n,nh(n,t)}lh(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:oe(8,l,l.return),zu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,zu(l));break;default:zu(l)}t=t.sibling}}function nh(t,l){for(;ot!==null;){var e=ot;switch(e.tag){case 0:case 11:case 15:oe(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var n=e.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Oa(e.memoizedState.cache)}if(n=e.child,n!==null)n.return=e,ot=n;else t:for(e=t;ot!==null;){n=ot;var a=n.sibling,u=n.return;if(J1(n),n===e){ot=null;break t}if(a!==null){a.return=u,ot=a;break t}ot=u}}}var sv={getCacheForType:function(t){var l=vt(ut),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return vt(ut).controller.signal}},hv=typeof WeakMap==\\\"function\\\"?WeakMap:Map,Y=0,j=null,D=null,C=0,G=0,Ct=null,Wl=!1,Dn=!1,dr=!1,Hl=0,tt=0,se=0,_e=0,yr=0,Ht=0,bn=0,fa=null,xt=null,df=!1,vi=0,ah=0,Ju=1/0,ku=null,ne=null,ct=0,ae=null,Nn=null,Ol=0,yf=0,mf=null,uh=null,ra=0,vf=null;function Gt(){return(Y&2)!==0&&C!==0?C&-C:z.T!==null?vr():y0()}function ih(){if(Ht===0)if((C&536870912)===0||q){var t=Pa;Pa<<=1,(Pa&3932160)===0&&(Pa=262144),Ht=t}else Ht=536870912;return t=Qt.current,t!==null&&(t.flags|=32),Ht}function Bt(t,l,e){(t===j&&(G===2||G===9)||t.cancelPendingCommit!==null)&&(zn(t,0),$l(t,C,Ht,!1)),Ba(t,e),((Y&2)===0||t!==j)&&(t===j&&((Y&2)===0&&(_e|=e),tt===4&&$l(t,C,Ht,!1)),ml(t))}function ch(t,l,e){if((Y&6)!==0)throw Error(S(327));var n=!e&&(l&127)===0&&(l&t.expiredLanes)===0||xa(t,l),a=n?mv(t,l):zc(t,l,!0),u=n;do{if(a===0){Dn&&!n&&$l(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!dv(e)){a=zc(t,l,!1),u=!1;continue}if(a===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;a=fa;var f=c.current.memoizedState.isDehydrated;if(f&&(zn(c,i).flags|=256),i=zc(c,i,!1),i!==2){if(dr&&!f){c.errorRecoveryDisabledLanes|=u,_e|=u,a=4;break t}u=xt,xt=a,u!==null&&(xt===null?xt=u:xt.push.apply(xt,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){zn(t,0),$l(t,l,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(S(345));case 4:if((l&4194048)!==l)break;case 6:$l(n,l,Ht,!Wl);break t;case 2:xt=null;break;case 3:case 5:break;default:throw Error(S(329))}if((l&62914560)===l&&(a=vi+300-qt(),10<a)){if($l(n,l,Ht,!Wl),ui(n,0,!0)!==0)break t;Ol=l,n.timeoutHandle=xh(zs.bind(null,n,e,xt,ku,df,l,Ht,_e,bn,Wl,u,\\\"Throttled\\\",-0,0),a);break t}zs(n,e,xt,ku,df,l,Ht,_e,bn,Wl,u,null,-0,0)}}break}while(!0);ml(t)}function zs(t,l,e,n,a,u,i,c,f,r,h,m,y,v){if(t.timeoutHandle=-1,m=l.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xl},th(l,u,m);var E=(u&62914560)===u?vi-qt():(u&4194048)===u?ah-qt():0;if(E=Fv(m,E),E!==null){Ol=u,t.cancelPendingCommit=E(xs.bind(null,t,l,u,e,n,a,i,c,f,h,m,null,y,v)),$l(t,u,i,!r);return}}xs(t,l,u,e,n,a,i,c,f)}function dv(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var n=0;n<e.length;n++){var a=e[n],u=a.getSnapshot;a=a.value;try{if(!Lt(u(),a))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function $l(t,l,e,n){l&=~yr,l&=~_e,t.suspendedLanes|=l,t.pingedLanes&=~l,n&&(t.warmLanes|=l),n=t.expirationTimes;for(var a=l;0<a;){var u=31-Xt(a),i=1<<u;n[u]=-1,a&=~i}e!==0&&s0(t,e,l)}function gi(){return(Y&6)===0?(Ra(0,!1),!1):!0}function mr(){if(D!==null){if(G===0)var t=D.return;else t=D,Bl=He=null,tr(t),yn=null,ga=0,t=D;for(;t!==null;)G1(t.alternate,t),t=t.return;D=null}}function zn(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,Ov(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),Ol=0,mr(),j=t,D=e=Ml(t.current,null),C=l,G=0,Ct=null,Wl=!1,Dn=xa(t,l),dr=!1,bn=Ht=yr=_e=se=tt=0,xt=fa=null,df=!1,(l&8)!==0&&(l|=l&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=l;0<n;){var a=31-Xt(n),u=1<<a;l|=t[a],n&=~u}return Hl=l,ri(),e}function fh(t,l){M=null,z.H=Sa,l===On||l===si?(l=ns(),G=3):l===Jf?(l=ns(),G=4):G=l===rr?8:l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"?6:1,Ct=l,D===null&&(tt=1,ju(t,Pt(l,t.current)))}function rh(){var t=Qt.current;return t===null?!0:(C&4194048)===C?ll===null:(C&62914560)===C||(C&536870912)!==0?t===ll:!1}function oh(){var t=z.H;return z.H=Sa,t===null?Sa:t}function sh(){var t=z.A;return z.A=sv,t}function Fu(){tt=4,Wl||(C&4194048)!==C&&Qt.current!==null||(Dn=!0),(se&134217727)===0&&(_e&134217727)===0||j===null||$l(j,C,Ht,!1)}function zc(t,l,e){var n=Y;Y|=2;var a=oh(),u=sh();(j!==t||C!==l)&&(ku=null,zn(t,l)),l=!1;var i=tt;t:do try{if(G!==0&&D!==null){var c=D,f=Ct;switch(G){case 8:mr(),i=6;break t;case 3:case 2:case 9:case 6:Qt.current===null&&(l=!0);var r=G;if(G=0,Ct=null,rn(t,c,f,r),e&&Dn){i=0;break t}break;default:r=G,G=0,Ct=null,rn(t,c,f,r)}}yv(),i=tt;break}catch(h){fh(t,h)}while(!0);return l&&t.shellSuspendCounter++,Bl=He=null,Y=n,z.H=a,z.A=u,D===null&&(j=null,C=0,ri()),i}function yv(){for(;D!==null;)hh(D)}function mv(t,l){var e=Y;Y|=2;var n=oh(),a=sh();j!==t||C!==l?(ku=null,Ju=qt()+500,zn(t,l)):Dn=xa(t,l);t:do try{if(G!==0&&D!==null){l=D;var u=Ct;l:switch(G){case 1:G=0,Ct=null,rn(t,l,u,1);break;case 2:case 9:if(es(u)){G=0,Ct=null,_s(l);break}l=function(){G!==2&&G!==9||j!==t||(G=7),ml(t)},u.then(l,l);break t;case 3:G=7;break t;case 4:G=5;break t;case 7:es(u)?(G=0,Ct=null,_s(l)):(G=0,Ct=null,rn(t,l,u,7));break;case 5:var i=null;switch(D.tag){case 26:i=D.memoizedState;case 5:case 27:var c=D;if(i?Dh(i):c.stateNode.complete){G=0,Ct=null;var f=c.sibling;if(f!==null)D=f;else{var r=c.return;r!==null?(D=r,pi(r)):D=null}break l}}G=0,Ct=null,rn(t,l,u,5);break;case 6:G=0,Ct=null,rn(t,l,u,6);break;case 8:mr(),tt=6;break t;default:throw Error(S(462))}}vv();break}catch(h){fh(t,h)}while(!0);return Bl=He=null,z.H=n,z.A=a,Y=e,D!==null?0:(j=null,C=0,ri(),tt)}function vv(){for(;D!==null&&!Xy();)hh(D)}function hh(t){var l=X1(t.alternate,t,Hl);t.memoizedProps=t.pendingProps,l===null?pi(t):D=l}function _s(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=Ss(e,l,l.pendingProps,l.type,void 0,C);break;case 11:l=Ss(e,l,l.pendingProps,l.type.render,l.ref,C);break;case 5:tr(l);default:G1(e,l),l=D=G0(l,Hl),l=X1(e,l,Hl)}t.memoizedProps=t.pendingProps,l===null?pi(t):D=l}function rn(t,l,e,n){Bl=He=null,tr(l),yn=null,ga=0;var a=l.return;try{if(av(t,a,l,e,C)){tt=1,ju(t,Pt(e,t.current)),D=null;return}}catch(u){if(a!==null)throw D=a,u;tt=1,ju(t,Pt(e,t.current)),D=null;return}l.flags&32768?(q||n===1?t=!0:Dn||(C&536870912)!==0?t=!1:(Wl=t=!0,(n===2||n===9||n===3||n===6)&&(n=Qt.current,n!==null&&n.tag===13&&(n.flags|=16384))),dh(l,t)):pi(l)}function pi(t){var l=t;do{if((l.flags&32768)!==0){dh(l,Wl);return}t=l.return;var e=cv(l.alternate,l,Hl);if(e!==null){D=e;return}if(l=l.sibling,l!==null){D=l;return}D=l=t}while(l!==null);tt===0&&(tt=5)}function dh(t,l){do{var e=fv(t.alternate,t);if(e!==null){e.flags&=32767,D=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){D=t;return}D=t=e}while(t!==null);tt=6,D=null}function xs(t,l,e,n,a,u,i,c,f){t.cancelPendingCommit=null;do Si();while(ct!==0);if((Y&6)!==0)throw Error(S(327));if(l!==null){if(l===t.current)throw Error(S(177));if(u=l.lanes|l.childLanes,u|=Gf,Fy(t,e,u,i,c,f),t===j&&(D=j=null,C=0),Nn=l,ae=t,Ol=e,yf=u,mf=a,uh=n,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ev(Cu,function(){return ph(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||n){n=z.T,z.T=null,a=X.p,X.p=2,i=Y,Y|=4;try{rv(t,l,e)}finally{Y=i,X.p=a,z.T=n}}ct=1,yh(),mh(),vh()}}function yh(){if(ct===1){ct=0;var t=ae,l=Nn,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=z.T,z.T=null;var n=X.p;X.p=2;var a=Y;Y|=4;try{$1(l,t);var u=Ef,i=D0(t.containerInfo),c=u.focusedElem,f=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&O0(c.ownerDocument.documentElement,c)){if(f!==null&&Xf(c)){var r=f.start,h=f.end;if(h===void 0&&(h=r),\\\"selectionStart\\\"in c)c.selectionStart=r,c.selectionEnd=Math.min(h,c.value.length);else{var m=c.ownerDocument||document,y=m&&m.defaultView||window;if(y.getSelection){var v=y.getSelection(),E=c.textContent.length,T=Math.min(f.start,E),_=f.end===void 0?T:Math.min(f.end,E);!v.extend&&T>_&&(i=_,_=T,T=i);var s=Fo(c,T),o=Fo(c,_);if(s&&o&&(v.rangeCount!==1||v.anchorNode!==s.node||v.anchorOffset!==s.offset||v.focusNode!==o.node||v.focusOffset!==o.offset)){var d=m.createRange();d.setStart(s.node,s.offset),v.removeAllRanges(),T>_?(v.addRange(d),v.extend(o.node,o.offset)):(d.setEnd(o.node,o.offset),v.addRange(d))}}}}for(m=[],v=c;v=v.parentNode;)v.nodeType===1&&m.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof c.focus==\\\"function\\\"&&c.focus(),c=0;c<m.length;c++){var p=m[c];p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}ni=!!Sf,Ef=Sf=null}finally{Y=a,X.p=n,z.T=e}}t.current=l,ct=2}}function mh(){if(ct===2){ct=0;var t=ae,l=Nn,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=z.T,z.T=null;var n=X.p;X.p=2;var a=Y;Y|=4;try{K1(t,l.alternate,l)}finally{Y=a,X.p=n,z.T=e}}ct=3}}function vh(){if(ct===4||ct===3){ct=0,Gy();var t=ae,l=Nn,e=Ol,n=uh;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?ct=5:(ct=0,Nn=ae=null,gh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(ne=null),Df(e),l=l.stateNode,Yt&&typeof Yt.onCommitFiberRoot==\\\"function\\\")try{Yt.onCommitFiberRoot(_a,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=z.T,a=X.p,X.p=2,z.T=null;try{for(var u=t.onRecoverableError,i=0;i<n.length;i++){var c=n[i];u(c.value,{componentStack:c.stack})}}finally{z.T=l,X.p=a}}(Ol&3)!==0&&Si(),ml(t),a=t.pendingLanes,(e&261930)!==0&&(a&42)!==0?t===vf?ra++:(ra=0,vf=t):ra=0,Ra(0,!1)}}function gh(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Oa(l)))}function Si(){return yh(),mh(),vh(),ph()}function ph(){if(ct!==5)return!1;var t=ae,l=yf;yf=0;var e=Df(Ol),n=z.T,a=X.p;try{X.p=32>e?32:e,z.T=null,e=mf,mf=null;var u=ae,i=Ol;if(ct=0,Nn=ae=null,Ol=0,(Y&6)!==0)throw Error(S(331));var c=Y;if(Y|=4,eh(u.current),P1(u,u.current,i,e),Y=c,Ra(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot==\\\"function\\\")try{Yt.onPostCommitFiberRoot(_a,u)}catch{}return!0}finally{X.p=a,z.T=n,gh(t,l)}}function Bs(t,l,e){l=Pt(e,l),l=rf(t.stateNode,l,2),t=ee(t,l,2),t!==null&&(Ba(t,2),ml(t))}function L(t,l,e){if(t.tag===3)Bs(t,t,e);else for(;l!==null;){if(l.tag===3){Bs(l,t,e);break}else if(l.tag===1){var n=l.stateNode;if(typeof l.type.getDerivedStateFromError==\\\"function\\\"||typeof n.componentDidCatch==\\\"function\\\"&&(ne===null||!ne.has(n))){t=Pt(e,t),e=C1(2),n=ee(l,e,2),n!==null&&(R1(e,n,l,t),Ba(n,2),ml(n));break}}l=l.return}}function _c(t,l,e){var n=t.pingCache;if(n===null){n=t.pingCache=new hv;var a=new Set;n.set(l,a)}else a=n.get(l),a===void 0&&(a=new Set,n.set(l,a));a.has(e)||(dr=!0,a.add(e),t=gv.bind(null,t,l,e),l.then(t,t))}function gv(t,l,e){var n=t.pingCache;n!==null&&n.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,j===t&&(C&e)===e&&(tt===4||tt===3&&(C&62914560)===C&&300>qt()-vi?(Y&2)===0&&zn(t,0):yr|=e,bn===C&&(bn=0)),ml(t)}function Sh(t,l){l===0&&(l=o0()),t=we(t,l),t!==null&&(Ba(t,l),ml(t))}function pv(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Sh(t,e)}function Sv(t,l){var e=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(e=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(S(314))}n!==null&&n.delete(l),Sh(t,e)}function Ev(t,l){return Uf(t,l)}var Wu=null,We=null,gf=!1,$u=!1,xc=!1,Il=0;function ml(t){t!==We&&t.next===null&&(We===null?Wu=We=t:We=We.next=t),$u=!0,gf||(gf=!0,Av())}function Ra(t,l){if(!xc&&$u){xc=!0;do for(var e=!1,n=Wu;n!==null;){if(!l)if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var i=n.suspendedLanes,c=n.pingedLanes;u=(1<<31-Xt(42|t)+1)-1,u&=a&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Ms(n,u))}else u=C,u=ui(n,n===j?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||xa(n,u)||(e=!0,Ms(n,u));n=n.next}while(e);xc=!1}}function Tv(){Eh()}function Eh(){$u=gf=!1;var t=0;Il!==0&&Uv()&&(t=Il);for(var l=qt(),e=null,n=Wu;n!==null;){var a=n.next,u=Th(n,l);u===0?(n.next=null,e===null?Wu=a:e.next=a,a===null&&(We=e)):(e=n,(t!==0||(u&3)!==0)&&($u=!0)),n=a}ct!==0&&ct!==5||Ra(t,!1),Il!==0&&(Il=0)}function Th(t,l){for(var e=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-Xt(u),c=1<<i,f=a[i];f===-1?((c&e)===0||(c&n)!==0)&&(a[i]=ky(c,l)):f<=l&&(t.expiredLanes|=c),u&=~c}if(l=j,e=C,e=ui(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,e===0||t===l&&(G===2||G===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&ec(n),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||xa(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(n!==null&&ec(n),Df(e)){case 2:case 8:e=f0;break;case 32:e=Cu;break;case 268435456:e=r0;break;default:e=Cu}return n=Ah.bind(null,t),e=Uf(e,n),t.callbackPriority=l,t.callbackNode=e,l}return n!==null&&n!==null&&ec(n),t.callbackPriority=2,t.callbackNode=null,2}function Ah(t,l){if(ct!==0&&ct!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Si()&&t.callbackNode!==e)return null;var n=C;return n=ui(t,t===j?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(ch(t,n,l),Th(t,qt()),t.callbackNode!=null&&t.callbackNode===e?Ah.bind(null,t):null)}function Ms(t,l){if(Si())return null;ch(t,l,!0)}function Av(){Dv(function(){(Y&6)!==0?Uf(c0,Tv):Eh()})}function vr(){if(Il===0){var t=En;t===0&&(t=Ia,Ia<<=1,(Ia&261888)===0&&(Ia=256)),Il=t}return Il}function Us(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:vu(\\\"\\\"+t)}function Os(t,l){var e=l.ownerDocument.createElement(\\\"input\\\");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute(\\\"form\\\",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function bv(t,l,e,n,a){if(l===\\\"submit\\\"&&e&&e.stateNode===a){var u=Us((a[Mt]||null).action),i=n.submitter;i&&(l=(l=i[Mt]||null)?Us(l.formAction):i.getAttribute(\\\"formAction\\\"),l!==null&&(u=l,i=null));var c=new ii(\\\"action\\\",\\\"action\\\",null,n,a);t.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Il!==0){var f=i?Os(a,i):new FormData(a);cf(e,{pending:!0,data:f,method:a.method,action:u},null,f)}}else typeof u==\\\"function\\\"&&(c.preventDefault(),f=i?Os(a,i):new FormData(a),cf(e,{pending:!0,data:f,method:a.method,action:u},u,f))},currentTarget:a}]})}}for(ou=0;ou<kc.length;ou++)su=kc[ou],Ds=su.toLowerCase(),Cs=su[0].toUpperCase()+su.slice(1),il(Ds,\\\"on\\\"+Cs);var su,Ds,Cs,ou;il(R0,\\\"onAnimationEnd\\\");il(w0,\\\"onAnimationIteration\\\");il(H0,\\\"onAnimationStart\\\");il(\\\"dblclick\\\",\\\"onDoubleClick\\\");il(\\\"focusin\\\",\\\"onFocus\\\");il(\\\"focusout\\\",\\\"onBlur\\\");il(Lm,\\\"onTransitionRun\\\");il(Qm,\\\"onTransitionStart\\\");il(Zm,\\\"onTransitionCancel\\\");il(q0,\\\"onTransitionEnd\\\");pn(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);pn(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);pn(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);pn(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);De(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));De(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));De(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);De(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));De(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));De(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var Ea=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),Nv=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(Ea));function bh(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var n=t[e],a=n.event;n=n.listeners;t:{var u=void 0;if(l)for(var i=n.length-1;0<=i;i--){var c=n[i],f=c.instance,r=c.currentTarget;if(c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(h){wu(h)}a.currentTarget=null,u=f}else for(i=0;i<n.length;i++){if(c=n[i],f=c.instance,r=c.currentTarget,c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(h){wu(h)}a.currentTarget=null,u=f}}}}function O(t,l){var e=l[Gc];e===void 0&&(e=l[Gc]=new Set);var n=t+\\\"__bubble\\\";e.has(n)||(Nh(l,t,2,!1),e.add(n))}function Bc(t,l,e){var n=0;l&&(n|=4),Nh(e,t,n,l)}var hu=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function gr(t){if(!t[hu]){t[hu]=!0,m0.forEach(function(e){e!==\\\"selectionchange\\\"&&(Nv.has(e)||Bc(e,!1,t),Bc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[hu]||(l[hu]=!0,Bc(\\\"selectionchange\\\",!1,l))}}function Nh(t,l,e,n){switch(qh(l)){case 2:var a=Iv;break;case 8:a=Pv;break;default:a=Tr}e=a.bind(null,l,e,t),a=void 0,!Vc||l!==\\\"touchstart\\\"&&l!==\\\"touchmove\\\"&&l!==\\\"wheel\\\"||(a=!0),n?a!==void 0?t.addEventListener(l,e,{capture:!0,passive:a}):t.addEventListener(l,e,!0):a!==void 0?t.addEventListener(l,e,{passive:a}):t.addEventListener(l,e,!1)}function Mc(t,l,e,n,a){var u=n;if((l&1)===0&&(l&2)===0&&n!==null)t:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var c=n.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=n.return;i!==null;){var f=i.tag;if((f===3||f===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=Pe(c),i===null)return;if(f=i.tag,f===5||f===6||f===26||f===27){n=u=i;continue t}c=c.parentNode}}n=n.return}b0(function(){var r=u,h=wf(e),m=[];t:{var y=Y0.get(t);if(y!==void 0){var v=ii,E=t;switch(t){case\\\"keypress\\\":if(pu(e)===0)break t;case\\\"keydown\\\":case\\\"keyup\\\":v=Sm;break;case\\\"focusin\\\":E=\\\"focus\\\",v=cc;break;case\\\"focusout\\\":E=\\\"blur\\\",v=cc;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":v=cc;break;case\\\"click\\\":if(e.button===2)break t;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":v=Go;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":v=cm;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":v=Am;break;case R0:case w0:case H0:v=om;break;case q0:v=Nm;break;case\\\"scroll\\\":case\\\"scrollend\\\":v=um;break;case\\\"wheel\\\":v=_m;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":v=hm;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":v=Qo;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":v=Bm}var T=(l&4)!==0,_=!T&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),s=T?y!==null?y+\\\"Capture\\\":null:y;T=[];for(var o=r,d;o!==null;){var p=o;if(d=p.stateNode,p=p.tag,p!==5&&p!==26&&p!==27||d===null||s===null||(p=ha(o,s),p!=null&&T.push(Ta(o,p,d))),_)break;o=o.return}0<T.length&&(y=new v(y,E,null,e,h),m.push({event:y,listeners:T}))}}if((l&7)===0){t:{if(y=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",v=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",y&&e!==jc&&(E=e.relatedTarget||e.fromElement)&&(Pe(E)||E[Bn]))break t;if((v||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,v?(E=e.relatedTarget||e.toElement,v=r,E=E?Pe(E):null,E!==null&&(_=za(E),T=E.tag,E!==_||T!==5&&T!==27&&T!==6)&&(E=null)):(v=null,E=r),v!==E)){if(T=Go,p=\\\"onMouseLeave\\\",s=\\\"onMouseEnter\\\",o=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(T=Qo,p=\\\"onPointerLeave\\\",s=\\\"onPointerEnter\\\",o=\\\"pointer\\\"),_=v==null?y:Fn(v),d=E==null?y:Fn(E),y=new T(p,o+\\\"leave\\\",v,e,h),y.target=_,y.relatedTarget=d,p=null,Pe(h)===r&&(T=new T(s,o+\\\"enter\\\",E,e,h),T.target=d,T.relatedTarget=_,p=T),_=p,v&&E)l:{for(T=zv,s=v,o=E,d=0,p=s;p;p=T(p))d++;p=0;for(var b=o;b;b=T(b))p++;for(;0<d-p;)s=T(s),d--;for(;0<p-d;)o=T(o),p--;for(;d--;){if(s===o||o!==null&&s===o.alternate){T=s;break l}s=T(s),o=T(o)}T=null}else T=null;v!==null&&Rs(m,y,v,T,!1),E!==null&&_!==null&&Rs(m,_,E,T,!0)}}t:{if(y=r?Fn(r):window,v=y.nodeName&&y.nodeName.toLowerCase(),v===\\\"select\\\"||v===\\\"input\\\"&&y.type===\\\"file\\\")var w=Ko;else if(Vo(y))if(M0)w=Ym;else{w=Hm;var A=wm}else v=y.nodeName,!v||v.toLowerCase()!==\\\"input\\\"||y.type!==\\\"checkbox\\\"&&y.type!==\\\"radio\\\"?r&&Rf(r.elementType)&&(w=Ko):w=qm;if(w&&(w=w(t,r))){B0(m,w,e,h);break t}A&&A(t,y,r),t===\\\"focusout\\\"&&r&&y.type===\\\"number\\\"&&r.memoizedProps.value!=null&&Zc(y,\\\"number\\\",y.value)}switch(A=r?Fn(r):window,t){case\\\"focusin\\\":(Vo(A)||A.contentEditable===\\\"true\\\")&&(en=A,Kc=r,ta=null);break;case\\\"focusout\\\":ta=Kc=en=null;break;case\\\"mousedown\\\":Jc=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":Jc=!1,Wo(m,e,h);break;case\\\"selectionchange\\\":if(Gm)break;case\\\"keydown\\\":case\\\"keyup\\\":Wo(m,e,h)}var x;if(Yf)t:{switch(t){case\\\"compositionstart\\\":var U=\\\"onCompositionStart\\\";break t;case\\\"compositionend\\\":U=\\\"onCompositionEnd\\\";break t;case\\\"compositionupdate\\\":U=\\\"onCompositionUpdate\\\";break t}U=void 0}else ln?_0(t,e)&&(U=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&e.keyCode===229&&(U=\\\"onCompositionStart\\\");U&&(z0&&e.locale!==\\\"ko\\\"&&(ln||U!==\\\"onCompositionStart\\\"?U===\\\"onCompositionEnd\\\"&&ln&&(x=N0()):(Fl=h,Hf=\\\"value\\\"in Fl?Fl.value:Fl.textContent,ln=!0)),A=Iu(r,U),0<A.length&&(U=new Lo(U,t,null,e,h),m.push({event:U,listeners:A}),x?U.data=x:(x=x0(e),x!==null&&(U.data=x)))),(x=Um?Om(t,e):Dm(t,e))&&(U=Iu(r,\\\"onBeforeInput\\\"),0<U.length&&(A=new Lo(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,e,h),m.push({event:A,listeners:U}),A.data=x)),bv(m,t,r,e,h)}bh(m,l)})}function Ta(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Iu(t,l){for(var e=l+\\\"Capture\\\",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=ha(t,e),a!=null&&n.unshift(Ta(t,a,u)),a=ha(t,l),a!=null&&n.push(Ta(t,a,u))),t.tag===3)return n;t=t.return}return[]}function zv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Rs(t,l,e,n,a){for(var u=l._reactName,i=[];e!==null&&e!==n;){var c=e,f=c.alternate,r=c.stateNode;if(c=c.tag,f!==null&&f===n)break;c!==5&&c!==26&&c!==27||r===null||(f=r,a?(r=ha(e,u),r!=null&&i.unshift(Ta(e,r,f))):a||(r=ha(e,u),r!=null&&i.push(Ta(e,r,f)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var _v=/\\\\r\\\\n?/g,xv=/\\\\u0000|\\\\uFFFD/g;function ws(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(_v,`\\n`).replace(xv,\\\"\\\")}function zh(t,l){return l=ws(l),ws(t)===l}function Q(t,l,e,n,a,u){switch(e){case\\\"children\\\":typeof n==\\\"string\\\"?l===\\\"body\\\"||l===\\\"textarea\\\"&&n===\\\"\\\"||Sn(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&l!==\\\"body\\\"&&Sn(t,\\\"\\\"+n);break;case\\\"className\\\":lu(t,\\\"class\\\",n);break;case\\\"tabIndex\\\":lu(t,\\\"tabindex\\\",n);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":lu(t,e,n);break;case\\\"style\\\":A0(t,n,u);break;case\\\"data\\\":if(l!==\\\"object\\\"){lu(t,\\\"data\\\",n);break}case\\\"src\\\":case\\\"href\\\":if(n===\\\"\\\"&&(l!==\\\"a\\\"||e!==\\\"href\\\")){t.removeAttribute(e);break}if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(e);break}n=vu(\\\"\\\"+n),t.setAttribute(e,n);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof n==\\\"function\\\"){t.setAttribute(e,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof u==\\\"function\\\"&&(e===\\\"formAction\\\"?(l!==\\\"input\\\"&&Q(t,l,\\\"name\\\",a.name,a,null),Q(t,l,\\\"formEncType\\\",a.formEncType,a,null),Q(t,l,\\\"formMethod\\\",a.formMethod,a,null),Q(t,l,\\\"formTarget\\\",a.formTarget,a,null)):(Q(t,l,\\\"encType\\\",a.encType,a,null),Q(t,l,\\\"method\\\",a.method,a,null),Q(t,l,\\\"target\\\",a.target,a,null)));if(n==null||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(e);break}n=vu(\\\"\\\"+n),t.setAttribute(e,n);break;case\\\"onClick\\\":n!=null&&(t.onclick=xl);break;case\\\"onScroll\\\":n!=null&&O(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&O(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(S(61));if(e=n.__html,e!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=e}}break;case\\\"multiple\\\":t.multiple=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"boolean\\\"||typeof n==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}e=vu(\\\"\\\"+n),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",e);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,\\\"\\\"+n):t.removeAttribute(e);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,\\\"\\\"):t.removeAttribute(e);break;case\\\"capture\\\":case\\\"download\\\":n===!0?t.setAttribute(e,\\\"\\\"):n!==!1&&n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,n):t.removeAttribute(e);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!isNaN(n)&&1<=n?t.setAttribute(e,n):t.removeAttribute(e);break;case\\\"rowSpan\\\":case\\\"start\\\":n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||isNaN(n)?t.removeAttribute(e):t.setAttribute(e,n);break;case\\\"popover\\\":O(\\\"beforetoggle\\\",t),O(\\\"toggle\\\",t),mu(t,\\\"popover\\\",n);break;case\\\"xlinkActuate\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",n);break;case\\\"xlinkArcrole\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",n);break;case\\\"xlinkRole\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",n);break;case\\\"xlinkShow\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",n);break;case\\\"xlinkTitle\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",n);break;case\\\"xlinkType\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",n);break;case\\\"xmlBase\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",n);break;case\\\"xmlLang\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",n);break;case\\\"xmlSpace\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",n);break;case\\\"is\\\":mu(t,\\\"is\\\",n);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<e.length)||e[0]!==\\\"o\\\"&&e[0]!==\\\"O\\\"||e[1]!==\\\"n\\\"&&e[1]!==\\\"N\\\")&&(e=nm.get(e)||e,mu(t,e,n))}}function pf(t,l,e,n,a,u){switch(e){case\\\"style\\\":A0(t,n,u);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(S(61));if(e=n.__html,e!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=e}}break;case\\\"children\\\":typeof n==\\\"string\\\"?Sn(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&Sn(t,\\\"\\\"+n);break;case\\\"onScroll\\\":n!=null&&O(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&O(\\\"scrollend\\\",t);break;case\\\"onClick\\\":n!=null&&(t.onclick=xl);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!v0.hasOwnProperty(e))t:{if(e[0]===\\\"o\\\"&&e[1]===\\\"n\\\"&&(a=e.endsWith(\\\"Capture\\\"),l=e.slice(2,a?e.length-7:void 0),u=t[Mt]||null,u=u!=null?u[e]:null,typeof u==\\\"function\\\"&&t.removeEventListener(l,u,a),typeof n==\\\"function\\\")){typeof u!=\\\"function\\\"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,n,a);break t}e in t?t[e]=n:n===!0?t.setAttribute(e,\\\"\\\"):mu(t,e,n)}}}function gt(t,l,e){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);var n=!1,a=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case\\\"src\\\":n=!0;break;case\\\"srcSet\\\":a=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:Q(t,l,u,i,e,null)}}a&&Q(t,l,\\\"srcSet\\\",e.srcSet,e,null),n&&Q(t,l,\\\"src\\\",e.src,e,null);return;case\\\"input\\\":O(\\\"invalid\\\",t);var c=u=i=a=null,f=null,r=null;for(n in e)if(e.hasOwnProperty(n)){var h=e[n];if(h!=null)switch(n){case\\\"name\\\":a=h;break;case\\\"type\\\":i=h;break;case\\\"checked\\\":f=h;break;case\\\"defaultChecked\\\":r=h;break;case\\\"value\\\":u=h;break;case\\\"defaultValue\\\":c=h;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(h!=null)throw Error(S(137,l));break;default:Q(t,l,n,h,e,null)}}S0(t,u,c,f,r,i,a,!1);return;case\\\"select\\\":O(\\\"invalid\\\",t),n=i=u=null;for(a in e)if(e.hasOwnProperty(a)&&(c=e[a],c!=null))switch(a){case\\\"value\\\":u=c;break;case\\\"defaultValue\\\":i=c;break;case\\\"multiple\\\":n=c;default:Q(t,l,a,c,e,null)}l=u,e=i,t.multiple=!!n,l!=null?sn(t,!!n,l,!1):e!=null&&sn(t,!!n,e,!0);return;case\\\"textarea\\\":O(\\\"invalid\\\",t),u=a=n=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case\\\"value\\\":n=c;break;case\\\"defaultValue\\\":a=c;break;case\\\"children\\\":u=c;break;case\\\"dangerouslySetInnerHTML\\\":if(c!=null)throw Error(S(91));break;default:Q(t,l,i,c,e,null)}T0(t,n,a,u);return;case\\\"option\\\":for(f in e)e.hasOwnProperty(f)&&(n=e[f],n!=null)&&(f===\\\"selected\\\"?t.selected=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\":Q(t,l,f,n,e,null));return;case\\\"dialog\\\":O(\\\"beforetoggle\\\",t),O(\\\"toggle\\\",t),O(\\\"cancel\\\",t),O(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":O(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<Ea.length;n++)O(Ea[n],t);break;case\\\"image\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);break;case\\\"details\\\":O(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(r in e)if(e.hasOwnProperty(r)&&(n=e[r],n!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:Q(t,l,r,n,e,null)}return;default:if(Rf(l)){for(h in e)e.hasOwnProperty(h)&&(n=e[h],n!==void 0&&pf(t,l,h,n,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(n=e[c],n!=null&&Q(t,l,c,n,e,null))}function Bv(t,l,e,n){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var a=null,u=null,i=null,c=null,f=null,r=null,h=null;for(v in e){var m=e[v];if(e.hasOwnProperty(v)&&m!=null)switch(v){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":f=m;default:n.hasOwnProperty(v)||Q(t,l,v,null,n,m)}}for(var y in n){var v=n[y];if(m=e[y],n.hasOwnProperty(y)&&(v!=null||m!=null))switch(y){case\\\"type\\\":u=v;break;case\\\"name\\\":a=v;break;case\\\"checked\\\":r=v;break;case\\\"defaultChecked\\\":h=v;break;case\\\"value\\\":i=v;break;case\\\"defaultValue\\\":c=v;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(v!=null)throw Error(S(137,l));break;default:v!==m&&Q(t,l,y,v,n,m)}}Qc(t,i,c,f,r,h,u,a);return;case\\\"select\\\":v=i=c=y=null;for(u in e)if(f=e[u],e.hasOwnProperty(u)&&f!=null)switch(u){case\\\"value\\\":break;case\\\"multiple\\\":v=f;default:n.hasOwnProperty(u)||Q(t,l,u,null,n,f)}for(a in n)if(u=n[a],f=e[a],n.hasOwnProperty(a)&&(u!=null||f!=null))switch(a){case\\\"value\\\":y=u;break;case\\\"defaultValue\\\":c=u;break;case\\\"multiple\\\":i=u;default:u!==f&&Q(t,l,a,u,n,f)}l=c,e=i,n=v,y!=null?sn(t,!!e,y,!1):!!n!=!!e&&(l!=null?sn(t,!!e,l,!0):sn(t,!!e,e?[]:\\\"\\\",!1));return;case\\\"textarea\\\":v=y=null;for(c in e)if(a=e[c],e.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case\\\"value\\\":break;case\\\"children\\\":break;default:Q(t,l,c,null,n,a)}for(i in n)if(a=n[i],u=e[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case\\\"value\\\":y=a;break;case\\\"defaultValue\\\":v=a;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null)throw Error(S(91));break;default:a!==u&&Q(t,l,i,a,n,u)}E0(t,y,v);return;case\\\"option\\\":for(var E in e)y=e[E],e.hasOwnProperty(E)&&y!=null&&!n.hasOwnProperty(E)&&(E===\\\"selected\\\"?t.selected=!1:Q(t,l,E,null,n,y));for(f in n)y=n[f],v=e[f],n.hasOwnProperty(f)&&y!==v&&(y!=null||v!=null)&&(f===\\\"selected\\\"?t.selected=y&&typeof y!=\\\"function\\\"&&typeof y!=\\\"symbol\\\":Q(t,l,f,y,n,v));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var T in e)y=e[T],e.hasOwnProperty(T)&&y!=null&&!n.hasOwnProperty(T)&&Q(t,l,T,null,n,y);for(r in n)if(y=n[r],v=e[r],n.hasOwnProperty(r)&&y!==v&&(y!=null||v!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(y!=null)throw Error(S(137,l));break;default:Q(t,l,r,y,n,v)}return;default:if(Rf(l)){for(var _ in e)y=e[_],e.hasOwnProperty(_)&&y!==void 0&&!n.hasOwnProperty(_)&&pf(t,l,_,void 0,n,y);for(h in n)y=n[h],v=e[h],!n.hasOwnProperty(h)||y===v||y===void 0&&v===void 0||pf(t,l,h,y,n,v);return}}for(var s in e)y=e[s],e.hasOwnProperty(s)&&y!=null&&!n.hasOwnProperty(s)&&Q(t,l,s,null,n,y);for(m in n)y=n[m],v=e[m],!n.hasOwnProperty(m)||y===v||y==null&&v==null||Q(t,l,m,y,n,v)}function Hs(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function Mv(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,l=0,e=performance.getEntriesByType(\\\"resource\\\"),n=0;n<e.length;n++){var a=e[n],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&Hs(i)){for(i=0,c=a.responseEnd,n+=1;n<e.length;n++){var f=e[n],r=f.startTime;if(r>c)break;var h=f.transferSize,m=f.initiatorType;h&&Hs(m)&&(f=f.responseEnd,i+=h*(f<c?1:(c-r)/(f-r)))}if(--n,l+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var Sf=null,Ef=null;function Pu(t){return t.nodeType===9?t:t.ownerDocument}function qs(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function _h(t,l){if(t===0)switch(l){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&l===\\\"foreignObject\\\"?0:t}function Tf(t,l){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof l.children==\\\"string\\\"||typeof l.children==\\\"number\\\"||typeof l.children==\\\"bigint\\\"||typeof l.dangerouslySetInnerHTML==\\\"object\\\"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Uc=null;function Uv(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===Uc?!1:(Uc=t,!0):(Uc=null,!1)}var xh=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,Ov=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,Ys=typeof Promise==\\\"function\\\"?Promise:void 0,Dv=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof Ys<\\\"u\\\"?function(t){return Ys.resolve(null).then(t).catch(Cv)}:xh;function Cv(t){setTimeout(function(){throw t})}function de(t){return t===\\\"head\\\"}function Xs(t,l){var e=l,n=0;do{var a=e.nextSibling;if(t.removeChild(e),a&&a.nodeType===8)if(e=a.data,e===\\\"/$\\\"||e===\\\"/&\\\"){if(n===0){t.removeChild(a),xn(l);return}n--}else if(e===\\\"$\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"$!\\\"||e===\\\"&\\\")n++;else if(e===\\\"html\\\")oa(t.ownerDocument.documentElement);else if(e===\\\"head\\\"){e=t.ownerDocument.head,oa(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Ma]||c===\\\"SCRIPT\\\"||c===\\\"STYLE\\\"||c===\\\"LINK\\\"&&u.rel.toLowerCase()===\\\"stylesheet\\\"||e.removeChild(u),u=i}}else e===\\\"body\\\"&&oa(t.ownerDocument.body);e=a}while(e);xn(l)}function Gs(t,l){var e=t;t=0;do{var n=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display=\\\"none\\\"):(e.style.display=e._stashedDisplay||\\\"\\\",e.getAttribute(\\\"style\\\")===\\\"\\\"&&e.removeAttribute(\\\"style\\\")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=\\\"\\\"):e.nodeValue=e._stashedText||\\\"\\\"),n&&n.nodeType===8)if(e=n.data,e===\\\"/$\\\"){if(t===0)break;t--}else e!==\\\"$\\\"&&e!==\\\"$?\\\"&&e!==\\\"$~\\\"&&e!==\\\"$!\\\"||t++;e=n}while(e)}function Af(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":Af(e),Cf(e);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(e.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(e)}}function Rv(t,l,e,n){for(;t.nodeType===1;){var a=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!n&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(n){if(!t[Ma])switch(l){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(u=t.getAttribute(\\\"rel\\\"),u===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(u!==a.rel||t.getAttribute(\\\"href\\\")!==(a.href==null||a.href===\\\"\\\"?null:a.href)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute(\\\"title\\\")!==(a.title==null?null:a.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(u=t.getAttribute(\\\"src\\\"),(u!==(a.src==null?null:a.src)||t.getAttribute(\\\"type\\\")!==(a.type==null?null:a.type)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(l===\\\"input\\\"&&t.type===\\\"hidden\\\"){var u=a.name==null?null:\\\"\\\"+a.name;if(a.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===u)return t}else return t;if(t=el(t.nextSibling),t===null)break}return null}function wv(t,l,e){if(l===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!e||(t=el(t.nextSibling),t===null))return null;return t}function Bh(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!l||(t=el(t.nextSibling),t===null))return null;return t}function bf(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function Nf(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function Hv(t,l){var e=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=l;else if(t.data!==\\\"$?\\\"||e.readyState!==\\\"loading\\\")l();else{var n=function(){l(),e.removeEventListener(\\\"DOMContentLoaded\\\",n)};e.addEventListener(\\\"DOMContentLoaded\\\",n),t._reactRetry=n}}function el(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l===\\\"$\\\"||l===\\\"$!\\\"||l===\\\"$?\\\"||l===\\\"$~\\\"||l===\\\"&\\\"||l===\\\"F!\\\"||l===\\\"F\\\")break;if(l===\\\"/$\\\"||l===\\\"/&\\\")return null}}return t}var zf=null;function Ls(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e===\\\"/$\\\"||e===\\\"/&\\\"){if(l===0)return el(t.nextSibling);l--}else e!==\\\"$\\\"&&e!==\\\"$!\\\"&&e!==\\\"$?\\\"&&e!==\\\"$~\\\"&&e!==\\\"&\\\"||l++}t=t.nextSibling}return null}function Qs(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e===\\\"$\\\"||e===\\\"$!\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"&\\\"){if(l===0)return t;l--}else e!==\\\"/$\\\"&&e!==\\\"/&\\\"||l++}t=t.previousSibling}return null}function Mh(t,l,e){switch(l=Pu(e),t){case\\\"html\\\":if(t=l.documentElement,!t)throw Error(S(452));return t;case\\\"head\\\":if(t=l.head,!t)throw Error(S(453));return t;case\\\"body\\\":if(t=l.body,!t)throw Error(S(454));return t;default:throw Error(S(451))}}function oa(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Cf(t)}var nl=new Map,Zs=new Set;function ti(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ql=X.d;X.d={f:qv,r:Yv,D:Xv,C:Gv,L:Lv,m:Qv,X:jv,S:Zv,M:Vv};function qv(){var t=ql.f(),l=gi();return t||l}function Yv(t){var l=Mn(t);l!==null&&l.tag===5&&l.type===\\\"form\\\"?A1(l):ql.r(t)}var Cn=typeof document>\\\"u\\\"?null:document;function Uh(t,l,e){var n=Cn;if(n&&typeof l==\\\"string\\\"&&l){var a=It(l);a='link[rel=\\\"'+t+'\\\"][href=\\\"'+a+'\\\"]',typeof e==\\\"string\\\"&&(a+='[crossorigin=\\\"'+e+'\\\"]'),Zs.has(a)||(Zs.add(a),t={rel:t,crossOrigin:e,href:l},n.querySelector(a)===null&&(l=n.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),st(l),n.head.appendChild(l)))}}function Xv(t){ql.D(t),Uh(\\\"dns-prefetch\\\",t,null)}function Gv(t,l){ql.C(t,l),Uh(\\\"preconnect\\\",t,l)}function Lv(t,l,e){ql.L(t,l,e);var n=Cn;if(n&&t&&l){var a='link[rel=\\\"preload\\\"][as=\\\"'+It(l)+'\\\"]';l===\\\"image\\\"&&e&&e.imageSrcSet?(a+='[imagesrcset=\\\"'+It(e.imageSrcSet)+'\\\"]',typeof e.imageSizes==\\\"string\\\"&&(a+='[imagesizes=\\\"'+It(e.imageSizes)+'\\\"]')):a+='[href=\\\"'+It(t)+'\\\"]';var u=a;switch(l){case\\\"style\\\":u=_n(t);break;case\\\"script\\\":u=Rn(t)}nl.has(u)||(t=F({rel:\\\"preload\\\",href:l===\\\"image\\\"&&e&&e.imageSrcSet?void 0:t,as:l},e),nl.set(u,t),n.querySelector(a)!==null||l===\\\"style\\\"&&n.querySelector(wa(u))||l===\\\"script\\\"&&n.querySelector(Ha(u))||(l=n.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),st(l),n.head.appendChild(l)))}}function Qv(t,l){ql.m(t,l);var e=Cn;if(e&&t){var n=l&&typeof l.as==\\\"string\\\"?l.as:\\\"script\\\",a='link[rel=\\\"modulepreload\\\"][as=\\\"'+It(n)+'\\\"][href=\\\"'+It(t)+'\\\"]',u=a;switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":u=Rn(t)}if(!nl.has(u)&&(t=F({rel:\\\"modulepreload\\\",href:t},l),nl.set(u,t),e.querySelector(a)===null)){switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(e.querySelector(Ha(u)))return}n=e.createElement(\\\"link\\\"),gt(n,\\\"link\\\",t),st(n),e.head.appendChild(n)}}}function Zv(t,l,e){ql.S(t,l,e);var n=Cn;if(n&&t){var a=on(n).hoistableStyles,u=_n(t);l=l||\\\"default\\\";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=n.querySelector(wa(u)))c.loading=5;else{t=F({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":l},e),(e=nl.get(u))&&pr(t,e);var f=i=n.createElement(\\\"link\\\");st(f),gt(f,\\\"link\\\",t),f._p=new Promise(function(r,h){f.onload=r,f.onerror=h}),f.addEventListener(\\\"load\\\",function(){c.loading|=1}),f.addEventListener(\\\"error\\\",function(){c.loading|=2}),c.loading|=4,_u(i,l,n)}i={type:\\\"stylesheet\\\",instance:i,count:1,state:c},a.set(u,i)}}}function jv(t,l){ql.X(t,l);var e=Cn;if(e&&t){var n=on(e).hoistableScripts,a=Rn(t),u=n.get(a);u||(u=e.querySelector(Ha(a)),u||(t=F({src:t,async:!0},l),(l=nl.get(a))&&Sr(t,l),u=e.createElement(\\\"script\\\"),st(u),gt(u,\\\"link\\\",t),e.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},n.set(a,u))}}function Vv(t,l){ql.M(t,l);var e=Cn;if(e&&t){var n=on(e).hoistableScripts,a=Rn(t),u=n.get(a);u||(u=e.querySelector(Ha(a)),u||(t=F({src:t,async:!0,type:\\\"module\\\"},l),(l=nl.get(a))&&Sr(t,l),u=e.createElement(\\\"script\\\"),st(u),gt(u,\\\"link\\\",t),e.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},n.set(a,u))}}function js(t,l,e,n){var a=(a=Pl.current)?ti(a):null;if(!a)throw Error(S(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof e.precedence==\\\"string\\\"&&typeof e.href==\\\"string\\\"?(l=_n(e.href),e=on(a).hoistableStyles,n=e.get(l),n||(n={type:\\\"style\\\",instance:null,count:0,state:null},e.set(l,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(e.rel===\\\"stylesheet\\\"&&typeof e.href==\\\"string\\\"&&typeof e.precedence==\\\"string\\\"){t=_n(e.href);var u=on(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(wa(t)))&&!u._p&&(i.instance=u,i.state.loading=5),nl.has(t)||(e={rel:\\\"preload\\\",as:\\\"style\\\",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},nl.set(t,e),u||Kv(a,t,e,i.state))),l&&n===null)throw Error(S(528,\\\"\\\"));return i}if(l&&n!==null)throw Error(S(529,\\\"\\\"));return null;case\\\"script\\\":return l=e.async,e=e.src,typeof e==\\\"string\\\"&&l&&typeof l!=\\\"function\\\"&&typeof l!=\\\"symbol\\\"?(l=Rn(e),e=on(a).hoistableScripts,n=e.get(l),n||(n={type:\\\"script\\\",instance:null,count:0,state:null},e.set(l,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(S(444,t))}}function _n(t){return'href=\\\"'+It(t)+'\\\"'}function wa(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function Oh(t){return F({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function Kv(t,l,e,n){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+l+\\\"]\\\")?n.loading=1:(l=t.createElement(\\\"link\\\"),n.preload=l,l.addEventListener(\\\"load\\\",function(){return n.loading|=1}),l.addEventListener(\\\"error\\\",function(){return n.loading|=2}),gt(l,\\\"link\\\",e),st(l),t.head.appendChild(l))}function Rn(t){return'[src=\\\"'+It(t)+'\\\"]'}function Ha(t){return\\\"script[async]\\\"+t}function Vs(t,l,e){if(l.count++,l.instance===null)switch(l.type){case\\\"style\\\":var n=t.querySelector('style[data-href~=\\\"'+It(e.href)+'\\\"]');if(n)return l.instance=n,st(n),n;var a=F({},e,{\\\"data-href\\\":e.href,\\\"data-precedence\\\":e.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement(\\\"style\\\"),st(n),gt(n,\\\"style\\\",a),_u(n,e.precedence,t),l.instance=n;case\\\"stylesheet\\\":a=_n(e.href);var u=t.querySelector(wa(a));if(u)return l.state.loading|=4,l.instance=u,st(u),u;n=Oh(e),(a=nl.get(a))&&pr(n,a),u=(t.ownerDocument||t).createElement(\\\"link\\\"),st(u);var i=u;return i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",n),l.state.loading|=4,_u(u,e.precedence,t),l.instance=u;case\\\"script\\\":return u=Rn(e.src),(a=t.querySelector(Ha(u)))?(l.instance=a,st(a),a):(n=e,(a=nl.get(u))&&(n=F({},e),Sr(n,a)),t=t.ownerDocument||t,a=t.createElement(\\\"script\\\"),st(a),gt(a,\\\"link\\\",n),t.head.appendChild(a),l.instance=a);case\\\"void\\\":return null;default:throw Error(S(443,l.type))}else l.type===\\\"stylesheet\\\"&&(l.state.loading&4)===0&&(n=l.instance,l.state.loading|=4,_u(n,e.precedence,t));return l.instance}function _u(t,l,e){for(var n=e.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var c=n[i];if(c.dataset.precedence===l)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function pr(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Sr(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var xu=null;function Ks(t,l,e){if(xu===null){var n=new Map,a=xu=new Map;a.set(e,n)}else a=xu,n=a.get(e),n||(n=new Map,a.set(e,n));if(n.has(t))return n;for(n.set(t,null),e=e.getElementsByTagName(t),a=0;a<e.length;a++){var u=e[a];if(!(u[Ma]||u[yt]||t===\\\"link\\\"&&u.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&u.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var i=u.getAttribute(l)||\\\"\\\";i=t+i;var c=n.get(i);c?c.push(u):n.set(i,[u])}}return n}function Js(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function Jv(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof l.precedence!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof l.rel!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\"||l.onLoad||l.onError)break;return l.rel===\\\"stylesheet\\\"?(t=l.disabled,typeof l.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(l.async&&typeof l.async!=\\\"function\\\"&&typeof l.async!=\\\"symbol\\\"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src==\\\"string\\\")return!0}return!1}function Dh(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function kv(t,l,e,n){if(e.type===\\\"stylesheet\\\"&&(typeof n.media!=\\\"string\\\"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=_n(n.href),u=l.querySelector(wa(a));if(u){l=u._p,l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"&&(t.count++,t=li.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,st(u);return}u=l.ownerDocument||l,n=Oh(n),(a=nl.get(a))&&pr(n,a),u=u.createElement(\\\"link\\\"),st(u);var i=u;i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",n),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=li.bind(t),l.addEventListener(\\\"load\\\",e),l.addEventListener(\\\"error\\\",e))}}var Oc=0;function Fv(t,l){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var n=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&Oc===0&&(Oc=62500*Mv());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Oc?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function li(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ei=null;function Bu(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ei=new Map,l.forEach(Wv,t),ei=null,li.call(t))}function Wv(t,l){if(!(l.state.loading&4)){var e=ei.get(t);if(e)var n=e.get(null);else{e=new Map,ei.set(t,e);for(var a=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),u=0;u<a.length;u++){var i=a[u];(i.nodeName===\\\"LINK\\\"||i.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(e.set(i.dataset.precedence,i),n=i)}n&&e.set(null,n)}a=l.instance,i=a.getAttribute(\\\"data-precedence\\\"),u=e.get(i)||n,u===n&&e.set(null,a),e.set(i,a),this.count++,n=li.bind(this),a.addEventListener(\\\"load\\\",n),a.addEventListener(\\\"error\\\",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),l.state.loading|=4}}var Aa={$$typeof:_l,Provider:null,Consumer:null,_currentValue:Ae,_currentValue2:Ae,_threadCount:0};function $v(t,l,e,n,a,u,i,c,f){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.hiddenUpdates=nc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Ch(t,l,e,n,a,u,i,c,f,r,h,m){return t=new $v(t,l,e,i,f,r,h,m,c),l=1,u===!0&&(l|=24),u=wt(3,null,null,l),t.current=u,u.stateNode=t,l=Vf(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:n,isDehydrated:e,cache:l},kf(u),t}function Rh(t){return t?(t=un,t):un}function wh(t,l,e,n,a,u){a=Rh(a),n.context===null?n.context=a:n.pendingContext=a,n=le(l),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=ee(t,n,l),e!==null&&(Bt(e,t,l),ea(e,t,l))}function ks(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function Er(t,l){ks(t,l),(t=t.alternate)&&ks(t,l)}function Hh(t){if(t.tag===13||t.tag===31){var l=we(t,67108864);l!==null&&Bt(l,t,67108864),Er(t,67108864)}}function Fs(t){if(t.tag===13||t.tag===31){var l=Gt();l=Of(l);var e=we(t,l);e!==null&&Bt(e,t,l),Er(t,l)}}var ni=!0;function Iv(t,l,e,n){var a=z.T;z.T=null;var u=X.p;try{X.p=2,Tr(t,l,e,n)}finally{X.p=u,z.T=a}}function Pv(t,l,e,n){var a=z.T;z.T=null;var u=X.p;try{X.p=8,Tr(t,l,e,n)}finally{X.p=u,z.T=a}}function Tr(t,l,e,n){if(ni){var a=_f(n);if(a===null)Mc(t,l,n,ai,e),Ws(t,n);else if(lg(a,t,l,e,n))n.stopPropagation();else if(Ws(t,n),l&4&&-1<tg.indexOf(t)){for(;a!==null;){var u=Mn(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Se(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var f=1<<31-Xt(i);c.entanglements[1]|=f,i&=~f}ml(u),(Y&6)===0&&(Ju=qt()+500,Ra(0,!1))}}break;case 31:case 13:c=we(u,2),c!==null&&Bt(c,u,2),gi(),Er(u,2)}if(u=_f(n),u===null&&Mc(t,l,n,ai,e),u===a)break;a=u}a!==null&&n.stopPropagation()}else Mc(t,l,n,null,e)}}function _f(t){return t=wf(t),Ar(t)}var ai=null;function Ar(t){if(ai=null,t=Pe(t),t!==null){var l=za(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=e0(l),t!==null)return t;t=null}else if(e===31){if(t=n0(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return ai=t,null}function qh(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(Ly()){case c0:return 2;case f0:return 8;case Cu:case Qy:return 32;case r0:return 268435456;default:return 32}default:return 32}}var xf=!1,ue=null,ie=null,ce=null,ba=new Map,Na=new Map,Jl=[],tg=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function Ws(t,l){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":ue=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":ie=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":ce=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":ba.delete(l.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":Na.delete(l.pointerId)}}function Vn(t,l,e,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},l!==null&&(l=Mn(l),l!==null&&Hh(l)),t):(t.eventSystemFlags|=n,l=t.targetContainers,a!==null&&l.indexOf(a)===-1&&l.push(a),t)}function lg(t,l,e,n,a){switch(l){case\\\"focusin\\\":return ue=Vn(ue,t,l,e,n,a),!0;case\\\"dragenter\\\":return ie=Vn(ie,t,l,e,n,a),!0;case\\\"mouseover\\\":return ce=Vn(ce,t,l,e,n,a),!0;case\\\"pointerover\\\":var u=a.pointerId;return ba.set(u,Vn(ba.get(u)||null,t,l,e,n,a)),!0;case\\\"gotpointercapture\\\":return u=a.pointerId,Na.set(u,Vn(Na.get(u)||null,t,l,e,n,a)),!0}return!1}function Yh(t){var l=Pe(t.target);if(l!==null){var e=za(l);if(e!==null){if(l=e.tag,l===13){if(l=e0(e),l!==null){t.blockedOn=l,Co(t.priority,function(){Fs(e)});return}}else if(l===31){if(l=n0(e),l!==null){t.blockedOn=l,Co(t.priority,function(){Fs(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Mu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=_f(t.nativeEvent);if(e===null){e=t.nativeEvent;var n=new e.constructor(e.type,e);jc=n,e.target.dispatchEvent(n),jc=null}else return l=Mn(e),l!==null&&Hh(l),t.blockedOn=e,!1;l.shift()}return!0}function $s(t,l,e){Mu(t)&&e.delete(l)}function eg(){xf=!1,ue!==null&&Mu(ue)&&(ue=null),ie!==null&&Mu(ie)&&(ie=null),ce!==null&&Mu(ce)&&(ce=null),ba.forEach($s),Na.forEach($s)}function du(t,l){t.blockedOn===l&&(t.blockedOn=null,xf||(xf=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,eg)))}var yu=null;function Is(t){yu!==t&&(yu=t,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,function(){yu===t&&(yu=null);for(var l=0;l<t.length;l+=3){var e=t[l],n=t[l+1],a=t[l+2];if(typeof n!=\\\"function\\\"){if(Ar(n||e)===null)continue;break}var u=Mn(e);u!==null&&(t.splice(l,3),l-=3,cf(u,{pending:!0,data:a,method:e.method,action:n},n,a))}}))}function xn(t){function l(f){return du(f,t)}ue!==null&&du(ue,t),ie!==null&&du(ie,t),ce!==null&&du(ce,t),ba.forEach(l),Na.forEach(l);for(var e=0;e<Jl.length;e++){var n=Jl[e];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Jl.length&&(e=Jl[0],e.blockedOn===null);)Yh(e),e.blockedOn===null&&Jl.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(n=0;n<e.length;n+=3){var a=e[n],u=e[n+1],i=a[Mt]||null;if(typeof u==\\\"function\\\")i||Is(e);else if(i){var c=null;if(u&&u.hasAttribute(\\\"formAction\\\")){if(a=u,i=u[Mt]||null)c=i.formAction;else if(Ar(a)!==null)continue}else c=i.action;typeof c==\\\"function\\\"?e[n+1]=c:(e.splice(n,3),n-=3),Is(e)}}}function Xh(){function t(u){u.canIntercept&&u.info===\\\"react-transition\\\"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function l(){a!==null&&(a(),a=null),n||setTimeout(e,20)}function e(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var n=!1,a=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",l),navigation.addEventListener(\\\"navigateerror\\\",l),setTimeout(e,100),function(){n=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",l),navigation.removeEventListener(\\\"navigateerror\\\",l),a!==null&&(a(),a=null)}}}function br(t){this._internalRoot=t}Ei.prototype.render=br.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(S(409));var e=l.current,n=Gt();wh(e,n,t,l,null,null)};Ei.prototype.unmount=br.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;wh(t.current,2,null,t,null,null),gi(),l[Bn]=null}};function Ei(t){this._internalRoot=t}Ei.prototype.unstable_scheduleHydration=function(t){if(t){var l=y0();t={blockedOn:null,target:t,priority:l};for(var e=0;e<Jl.length&&l!==0&&l<Jl[e].priority;e++);Jl.splice(e,0,t),e===0&&Yh(t)}};var Ps=t0.version;if(Ps!==\\\"19.2.4\\\")throw Error(S(527,Ps,\\\"19.2.4\\\"));X.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render==\\\"function\\\"?Error(S(188)):(t=Object.keys(t).join(\\\",\\\"),Error(S(268,t)));return t=Ry(l),t=t!==null?a0(t):null,t=t===null?null:t.stateNode,t};var ng={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:z,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(Kn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Kn.isDisabled&&Kn.supportsFiber))try{_a=Kn.inject(ng),Yt=Kn}catch{}var Kn;Ti.createRoot=function(t,l){if(!l0(t))throw Error(S(299));var e=!1,n=\\\"\\\",a=U1,u=O1,i=D1;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(a=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=Ch(t,1,!1,null,null,e,n,null,a,u,i,Xh),t[Bn]=l.current,gr(t),new br(l)};Ti.hydrateRoot=function(t,l,e){if(!l0(t))throw Error(S(299));var n=!1,a=\\\"\\\",u=U1,i=O1,c=D1,f=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(f=e.formState)),l=Ch(t,1,!0,l,e??null,n,a,f,u,i,c,Xh),l.context=Rh(null),e=l.current,n=Gt(),n=Of(n),a=le(n),a.callback=null,ee(e,a,n),e=n,l.current.lanes=e,Ba(l,e),ml(l),t[Bn]=l.current,gr(t),new Ei(l)};Ti.version=\\\"19.2.4\\\"});var Zh=Dt((Fg,Qh)=>{\\\"use strict\\\";N();function Lh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lh)}catch(t){console.error(t)}}Lh(),Qh.exports=Gh()});var $h=Dt(zi=>{\\\"use strict\\\";N();var sg=Symbol.for(\\\"react.transitional.element\\\"),hg=Symbol.for(\\\"react.fragment\\\");function Wh(t,l,e){var n=null;if(e!==void 0&&(n=\\\"\\\"+e),l.key!==void 0&&(n=\\\"\\\"+l.key),\\\"key\\\"in l){e={};for(var a in l)a!==\\\"key\\\"&&(e[a]=l[a])}else e=l;return l=e.ref,{$$typeof:sg,type:t,key:n,ref:l!==void 0?l:null,props:e}}zi.Fragment=hg;zi.jsx=Wh;zi.jsxs=Wh});var Yl=Dt((c2,Ih)=>{\\\"use strict\\\";N();Ih.exports=$h()});N();var gd=At(Zh(),1);N();var Zt=At(ve(),1);N();N();var ag=Object.defineProperty,ug=(t,l,e)=>l in t?ag(t,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[l]=e,Nr=(t,l,e)=>ug(t,typeof l!=\\\"symbol\\\"?l+\\\"\\\":l,e),jh=\\\"stacks\\\",Ai=\\\"stacks:1\\\",bi=\\\"stacks:2147483648\\\",Ni=\\\"exact-direct\\\",ig=\\\"https://api.mainnet.hiro.so\\\",cg=\\\"https://api.testnet.hiro.so\\\",$g={[Ai]:{name:\\\"Stacks Mainnet\\\",caip2:Ai,apiUrl:ig,chainId:1,addressPrefix:\\\"SP\\\",isTestnet:!1},[bi]:{name:\\\"Stacks Testnet\\\",caip2:bi,apiUrl:cg,chainId:2147483648,addressPrefix:\\\"ST\\\",isTestnet:!0}};var Vh={contractAddress:\\\"SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-susdc\\\",symbol:\\\"sUSDC\\\",name:\\\"Stacks USDC\\\",decimals:6,issuer:\\\"Stacks\\\"},Kh={contractAddress:\\\"ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.token-susdc\\\",symbol:\\\"sUSDC\\\",name:\\\"Test Stacks USDC\\\",decimals:6},fg={[Ai]:{sUSDC:Vh},[bi]:{sUSDC:Kh}},Ig={[Ai]:Vh,[bi]:Kh};function rg(t,l=\\\"sUSDC\\\"){return fg[t]?.[l]}function Jh(t,l=\\\"sUSDC\\\"){return rg(t,l)?.contractAddress}function kh(t){if(!t||typeof t!=\\\"string\\\")return!1;let l=t.split(\\\".\\\"),e=l[0];if(!/^(SP|ST)[0-9A-HJ-NP-Za-km-z]{33,41}$/.test(e))return!1;if(l.length===2){let a=l[1];return/^[a-zA-Z][a-zA-Z0-9\\\\-_]{0,127}$/.test(a)}return l.length===1}var og=class{constructor(t){Nr(this,\\\"scheme\\\",Ni),Nr(this,\\\"signer\\\"),this.signer=t.signer}async createPaymentPayload(t,l){this.validateRequirements(l);let{network:e,amount:n,payTo:a,extra:u}=l,i=u?.assetSymbol||\\\"sUSDC\\\",c=u?.contractAddress??Jh(e,i);if(!c)throw new Error(`Unknown asset ${i} on network ${e}`);let f=await this.signer.getAddress(),{txId:r}=await this.signer.transferToken(c,a,n);return{t402Version:t,payload:{txId:r,from:f,to:a,amount:n,contractAddress:c}}}validateRequirements(t){if(t.scheme!==Ni)throw new Error(`Invalid scheme: expected ${Ni}, got ${t.scheme}`);if(!t.network.startsWith(`${jh}:`))throw new Error(`Invalid network: ${t.network}`);if(!kh(t.payTo))throw new Error(`Invalid payTo address: ${t.payTo}`);if(BigInt(t.amount)<=0n)throw new Error(`Invalid amount: ${t.amount}`)}};function Fh(t){return new og(t)}N();var zr=At(Yl(),1);function _r(){return(0,zr.jsx)(\\\"span\\\",{className:\\\"spinner\\\",role:\\\"status\\\",\\\"aria-label\\\":\\\"Loading\\\",children:(0,zr.jsx)(\\\"div\\\",{})})}N();var dg={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var yg={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},mg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},Ph={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},vg={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},td={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},gg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function ld(t){if(t.startsWith(\\\"eip155:\\\")){let l=parseInt(t.split(\\\":\\\")[1]);return dg[l]??`Chain ${l}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===yg.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===mg.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let l=t.split(\\\":\\\")[1];return l===Ph.NILE?\\\"TRON Nile Testnet\\\":l===Ph.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===vg.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let l=t.split(\\\":\\\")[1];return l===td.NOBLE_MAINNET?\\\"Noble\\\":l===td.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${l}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===gg.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}N();var Ot=At(Yl(),1),qa=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function pg(t){return qa.findIndex(l=>l.key===t)}function Sg(){return(0,Ot.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Ot.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function Eg(){return(0,Ot.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Ot.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function ed({currentStep:t,isProcessing:l=!1,hasError:e=!1}){let n=pg(t);return(0,Ot.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":n+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":qa.length,\\\"aria-label\\\":`Payment progress: ${qa[n].label}`,children:qa.map((a,u)=>{let i=u<n,c=u===n,f=u>n,r=\\\"progress-step\\\";return i&&(r+=\\\" completed\\\"),c&&(r+=\\\" current\\\"),c&&l&&(r+=\\\" processing\\\"),c&&e&&(r+=\\\" error\\\"),f&&(r+=\\\" pending\\\"),(0,Ot.jsxs)(\\\"div\\\",{className:r,children:[(0,Ot.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:i?(0,Ot.jsx)(Sg,{}):c&&l?(0,Ot.jsx)(Eg,{}):(0,Ot.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:u+1})}),(0,Ot.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:a.label}),u<qa.length-1&&(0,Ot.jsx)(\\\"div\\\",{className:`progress-connector ${i?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},a.key)})})}N();var vl=At(ve(),1);N();N();var I={MAINNET:\\\"stacks:1\\\",TESTNET:\\\"stacks:2147483648\\\"},m2={[I.MAINNET]:1,[I.TESTNET]:2147483648},nd={[I.MAINNET]:\\\"SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-susdc\\\",[I.TESTNET]:\\\"ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.token-susdc\\\"},xr={[I.MAINNET]:\\\"https://api.mainnet.hiro.so\\\",[I.TESTNET]:\\\"https://api.testnet.hiro.so\\\"},v2={[I.MAINNET]:\\\"https://explorer.hiro.so\\\",[I.TESTNET]:\\\"https://explorer.hiro.so/?chain=testnet\\\"},Ya={leather:{name:\\\"Leather\\\",installUrl:\\\"https://leather.io/install-extension\\\"},xverse:{name:\\\"Xverse\\\",installUrl:\\\"https://www.xverse.app/download\\\"}};function Tg(t){return t===I.MAINNET?xr[I.MAINNET]:xr[I.TESTNET]}function ad(t){return t===I.MAINNET}function ud(t){return t===I.MAINNET?I.MAINNET:I.TESTNET}function id(t){return nd[t]}function cd(t){let l=t.split(\\\".\\\");if(l.length!==2)throw new Error(`Invalid contract ID: ${t}`);return{address:l[0],name:l[1]}}function Xa(){return typeof window<\\\"u\\\"&&(!!window.LeatherProvider||!!window.HiroWalletProvider)}function _i(){return typeof window<\\\"u\\\"&&!!window.XverseProviders?.StacksProvider}function fd(){return Xa()||_i()}function rd(){let t=[];return Xa()&&t.push(\\\"leather\\\"),_i()&&t.push(\\\"xverse\\\"),t}async function od(t,l,e){let n=Tg(e);try{let a=await fetch(`${n}/extended/v1/address/${t}/balances`);if(!a.ok)return console.error(\\\"Failed to fetch balance:\\\",a.status),null;let u=await a.json(),i=Object.keys(u.fungible_tokens||{}).find(c=>c.toLowerCase()===l.toLowerCase());return i&&u.fungible_tokens[i]?u.fungible_tokens[i]:null}catch(a){return console.error(\\\"Error fetching token balance:\\\",a),null}}async function Ag(t){let l=window.LeatherProvider||window.HiroWalletProvider;if(!l)throw new Error(\\\"Leather wallet not found\\\");let n=(await l.request(\\\"getAddresses\\\")).result?.addresses;if(!n||n.length===0)throw new Error(\\\"No addresses returned from wallet\\\");let a=n.find(u=>u.type===\\\"p2wpkh\\\"||u.type===\\\"stacks\\\");return a?{address:a.address,publicKey:a.publicKey}:{address:n[0].address,publicKey:n[0].publicKey}}async function bg(t){let l=window.XverseProviders?.StacksProvider;if(!l)throw new Error(\\\"Xverse wallet not found\\\");let n=(await l.request(\\\"getAddresses\\\",{purposes:[\\\"stacks\\\"]})).result?.addresses;if(!n||n.length===0)throw new Error(\\\"No addresses returned from wallet\\\");return{address:n[0].address,publicKey:n[0].publicKey}}function sd(t=I.MAINNET,l){let[e,n]=(0,vl.useState)(null),[a,u]=(0,vl.useState)(null),[i,c]=(0,vl.useState)(!1),[f,r]=(0,vl.useState)(null),h=fd(),m=!!e,y=rd();(0,vl.useEffect)(()=>{if(!Xa())return;let T=_=>{_.data?.type===\\\"leather-provider-update\\\"&&a===\\\"leather\\\"&&(n(null),l?.(\\\"Wallet state changed, please reconnect\\\"))};return window.addEventListener(\\\"message\\\",T),()=>window.removeEventListener(\\\"message\\\",T)},[a,l]);let v=(0,vl.useCallback)(async T=>{if(T===\\\"leather\\\"&&!Xa()){r(\\\"Leather wallet is not installed\\\"),l?.(\\\"Please install Leather wallet extension\\\");return}if(T===\\\"xverse\\\"&&!_i()){r(\\\"Xverse wallet is not installed\\\"),l?.(\\\"Please install Xverse wallet extension\\\");return}c(!0),r(null),l?.(`Connecting to ${T===\\\"leather\\\"?\\\"Leather\\\":\\\"Xverse\\\"}...`);try{let _;T===\\\"leather\\\"?_=await Ag(t):_=await bg(t),n(_),u(T),l?.(\\\"\\\")}catch(_){let s=_ instanceof Error?_.message:\\\"Failed to connect wallet\\\";r(s),l?.(s)}finally{c(!1)}},[t,l]),E=(0,vl.useCallback)(()=>{n(null),u(null),r(null),l?.(\\\"\\\")},[l]);return{account:e,isConnected:m,isInstalled:h,isConnecting:i,availableWallets:y,selectedWallet:a,connect:v,disconnect:E,error:f}}function hd(t){return t.length<=12?t:`${t.slice(0,8)}...${t.slice(-4)}`}N();var qe=At(ve(),1);function dd(t){let{address:l,paymentRequired:e,onStatus:n}=t,[a,u]=(0,qe.useState)(null),[i,c]=(0,qe.useState)(null),[f,r]=(0,qe.useState)(!1),h=e.accepts[0]?.network,m=ud(h||\\\"stacks:1\\\"),y=(0,qe.useCallback)(async E=>{let T=E||l;if(!T)return null;r(!0);try{let _=id(m),s=await od(T,_,m);if(s){let o=BigInt(s.balance);u(o);let d=(Number(o)/1e6).toFixed(2);return c(d),o}return u(0n),c(\\\"0.00\\\"),0n}catch(_){return console.error(\\\"Error fetching Stacks balance:\\\",_),n?.(\\\"Failed to fetch balance\\\"),null}finally{r(!1)}},[l,m,n]),v=(0,qe.useCallback)(()=>{u(null),c(null)},[]);return{balance:a,formattedBalance:i,isFetching:f,refreshBalance:y,resetBalance:v}}N();var yd=At(ve(),1);function Ng(t){let{address:l,name:e}=cd(t.tokenContract);return{functionName:\\\"transfer\\\",contractAddress:l,contractName:e,args:[t.amount,t.sender,t.recipient,\\\"\\\"]}}async function zg(t,l){let e=window.LeatherProvider||window.HiroWalletProvider;if(!e)throw new Error(\\\"Leather wallet not available\\\");let n=l===I.MAINNET?\\\"mainnet\\\":\\\"testnet\\\",u=await e.request(\\\"stx_callContract\\\",{contract:`${t.contractAddress}.${t.contractName}`,functionName:t.functionName,functionArgs:t.args,network:n});if(!u.result?.txId)throw new Error(\\\"Transaction failed - no txId returned\\\");return u.result.txId}async function _g(t,l){let e=window.XverseProviders?.StacksProvider;if(!e)throw new Error(\\\"Xverse wallet not available\\\");let n=l===I.MAINNET?\\\"mainnet\\\":\\\"testnet\\\",u=await e.request(\\\"stx_callContract\\\",{contract:`${t.contractAddress}.${t.contractName}`,functionName:t.functionName,functionArgs:t.args,network:n});if(!u.result?.txId)throw new Error(\\\"Transaction failed - no txId returned\\\");return u.result.txId}function md(t,l,e){return(0,yd.useMemo)(()=>!t||!l?null:{async getAddress(){return t.address},async transferToken(u,i,c){let f=Ng({recipient:i,amount:c,tokenContract:u,sender:t.address}),r;return l===\\\"leather\\\"?r=await zg(f,e):r=await _g(f,e),{txId:r}}},[t,l,e])}var R=At(Yl(),1);function vd({paymentRequired:t,onSuccessfulResponse:l}){let[e,n]=(0,Zt.useState)(\\\"\\\"),[a,u]=(0,Zt.useState)(!1),[i,c]=(0,Zt.useState)(!0),[f,r]=(0,Zt.useState)(\\\"connect\\\"),[h,m]=(0,Zt.useState)(!1),y=window.t402,v=y.amount,E=t.accepts[0];if(!E)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let T=E.network,_=ld(T),s=ad(T),o=s?I.MAINNET:I.TESTNET,{account:d,isConnected:p,isInstalled:b,isConnecting:w,availableWallets:A,selectedWallet:x,connect:U,disconnect:H}=sd(o,n),{balance:jt,formattedBalance:Ga,isFetching:Sd,refreshBalance:La,resetBalance:Br}=dd({address:d?.address||null,paymentRequired:t,onStatus:n}),xi=md(d,x,o);(0,Zt.useEffect)(()=>{d?.address&&La(d.address)},[d?.address,La]),(0,Zt.useEffect)(()=>{p?f===\\\"connect\\\"&&r(\\\"sign\\\"):r(\\\"connect\\\")},[p,f]);let Ed=(0,Zt.useCallback)(async Vt=>{await U(Vt)},[U]),Td=(0,Zt.useCallback)(()=>{H(),Br(),n(\\\"\\\")},[H,Br]),Ad=(0,Zt.useCallback)(async()=>{if(y){if(!xi||!d?.address){n(\\\"Connect a Stacks wallet before paying.\\\");return}u(!0),m(!0);try{if(jt===null||jt===0n){n(\\\"Checking sUSDC balance...\\\");let Mr=await La();if(!Mr||Mr===0n)throw new Error(`Insufficient balance. Make sure you have sUSDC on ${_}.`)}r(\\\"sign\\\"),n(\\\"Executing token transfer...\\\");let Vt=Fh({signer:xi}),{t402Version:Nd,payload:zd}=await Vt.createPaymentPayload(2,E),_d={t402Version:Nd,accepted:{scheme:E.scheme,network:E.network},payload:zd},xd=btoa(JSON.stringify(_d));r(\\\"submit\\\"),n(\\\"Requesting content with payment...\\\");let Qa=await fetch(y.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":xd,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(Qa.ok)r(\\\"confirm\\\"),m(!1),await l(Qa);else throw new Error(`Request failed: ${Qa.status} ${Qa.statusText}`)}catch(Vt){n(Vt instanceof Error?Vt.message:\\\"Payment failed.\\\"),m(!1)}finally{u(!1)}}},[y,xi,d,jt,La,_,E,l]),bd=d?.address?hd(d.address):\\\"-\\\";return(0,R.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,R.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,R.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,R.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",v,\\\" \\\",_,\\\" sUSDC.\\\"]}),!s&&(0,R.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"Need Stacks Testnet sUSDC?\\\",\\\" \\\",(0,R.jsxs)(\\\"a\\\",{href:\\\"https://explorer.hiro.so/sandbox/faucet?chain=testnet\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:[\\\"Get testnet STX \\\",(0,R.jsx)(\\\"u\\\",{children:\\\"here\\\"})]}),\\\" \\\",\\\"and swap for sUSDC.\\\"]})]}),(0,R.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[p&&(0,R.jsx)(ed,{currentStep:f,isProcessing:h,hasError:!!e&&!a}),(0,R.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,R.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,R.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,R.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:bd})]}),(0,R.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,R.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,R.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:d?.address?(0,R.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>c(Vt=>!Vt),children:!i&&Ga?`$${Ga} sUSDC`:Sd?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 sUSDC\\\"}):\\\"-\\\"})]}),(0,R.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,R.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,R.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",v,\\\" sUSDC\\\"]})]}),(0,R.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,R.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,R.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:_})]})]}),(0,R.jsxs)(\\\"div\\\",{className:\\\"cta-container\\\",children:[p?(0,R.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:Td,children:\\\"Disconnect\\\"}):A.length>0?A.map(Vt=>(0,R.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:()=>Ed(Vt),disabled:w,children:w?(0,R.jsx)(_r,{}):`Connect ${Ya[Vt].name}`},Vt)):(0,R.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:()=>window.open(Ya.leather.installUrl,\\\"_blank\\\"),children:\\\"Install Leather Wallet\\\"}),p&&(0,R.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:Ad,disabled:a,children:a?(0,R.jsx)(_r,{}):\\\"Pay now\\\"})]}),!b&&(0,R.jsxs)(\\\"div\\\",{className:\\\"status\\\",children:[\\\"Install a Stacks wallet (\\\",(0,R.jsx)(\\\"a\\\",{href:Ya.leather.installUrl,target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"Leather\\\"}),\\\" or \\\",(0,R.jsx)(\\\"a\\\",{href:Ya.xverse.installUrl,target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"Xverse\\\"}),\\\") to continue, then refresh this page.\\\"]}),e&&(0,R.jsx)(\\\"div\\\",{className:\\\"status\\\",children:e})]})]})}var pd=At(Yl(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let e=window.t402.paymentRequired;if(!e?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,gd.createRoot)(t).render((0,pd.jsx)(vd,{paymentRequired:e,onSuccessfulResponse:async a=>{let u=a.headers.get(\\\"content-type\\\");if(u&&u.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await a.text();else{let i=await a.blob(),c=window.URL.createObjectURL(i);window.location.href=c}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for STACKS paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const STACKS_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/stacks.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/stacks.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline COSMOS paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const COSMOS_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var vy=Object.create;var Mr=Object.defineProperty;var py=Object.getOwnPropertyDescriptor;var Sy=Object.getOwnPropertyNames;var Ey=Object.getPrototypeOf,by=Object.prototype.hasOwnProperty;var Ay=(t,l)=>()=>(t&&(l=t(t=0)),l);var Rt=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var Ty=(t,l,n,e)=>{if(l&&typeof l==\\\"object\\\"||typeof l==\\\"function\\\")for(let a of Sy(l))!by.call(t,a)&&a!==n&&Mr(t,a,{get:()=>l[a],enumerable:!(e=py(l,a))||e.enumerable});return t};var Tt=(t,l,n)=>(n=t!=null?vy(Ey(t)):{},Ty(l||!t||!t.__esModule?Mr(n,\\\"default\\\",{value:t,enumerable:!0}):n,t));var Cr=Rt(Ja=>{\\\"use strict\\\";B();Ja.byteLength=By;Ja.toByteArray=Uy;Ja.fromByteArray=My;var ol=[],Vt=[],Ny=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,xi=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(pn=0,Or=xi.length;pn<Or;++pn)ol[pn]=xi[pn],Vt[xi.charCodeAt(pn)]=pn;var pn,Or;Vt[45]=62;Vt[95]=63;function Dr(t){var l=t.length;if(l%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var n=t.indexOf(\\\"=\\\");n===-1&&(n=l);var e=n===l?0:4-n%4;return[n,e]}function By(t){var l=Dr(t),n=l[0],e=l[1];return(n+e)*3/4-e}function zy(t,l,n){return(l+n)*3/4-n}function Uy(t){var l,n=Dr(t),e=n[0],a=n[1],u=new Ny(zy(t,e,a)),i=0,c=a>0?e-4:e,f;for(f=0;f<c;f+=4)l=Vt[t.charCodeAt(f)]<<18|Vt[t.charCodeAt(f+1)]<<12|Vt[t.charCodeAt(f+2)]<<6|Vt[t.charCodeAt(f+3)],u[i++]=l>>16&255,u[i++]=l>>8&255,u[i++]=l&255;return a===2&&(l=Vt[t.charCodeAt(f)]<<2|Vt[t.charCodeAt(f+1)]>>4,u[i++]=l&255),a===1&&(l=Vt[t.charCodeAt(f)]<<10|Vt[t.charCodeAt(f+1)]<<4|Vt[t.charCodeAt(f+2)]>>2,u[i++]=l>>8&255,u[i++]=l&255),u}function _y(t){return ol[t>>18&63]+ol[t>>12&63]+ol[t>>6&63]+ol[t&63]}function xy(t,l,n){for(var e,a=[],u=l;u<n;u+=3)e=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(t[u+2]&255),a.push(_y(e));return a.join(\\\"\\\")}function My(t){for(var l,n=t.length,e=n%3,a=[],u=16383,i=0,c=n-e;i<c;i+=u)a.push(xy(t,i,i+u>c?c:i+u));return e===1?(l=t[n-1],a.push(ol[l>>2]+ol[l<<4&63]+\\\"==\\\")):e===2&&(l=(t[n-2]<<8)+t[n-1],a.push(ol[l>>10]+ol[l>>4&63]+ol[l<<2&63]+\\\"=\\\")),a.join(\\\"\\\")}});var Rr=Rt(Mi=>{B();Mi.read=function(t,l,n,e,a){var u,i,c=a*8-e-1,f=(1<<c)-1,r=f>>1,y=-7,g=n?a-1:0,d=n?-1:1,m=t[l+g];for(g+=d,u=m&(1<<-y)-1,m>>=-y,y+=c;y>0;u=u*256+t[l+g],g+=d,y-=8);for(i=u&(1<<-y)-1,u>>=-y,y+=e;y>0;i=i*256+t[l+g],g+=d,y-=8);if(u===0)u=1-r;else{if(u===f)return i?NaN:(m?-1:1)*(1/0);i=i+Math.pow(2,e),u=u-r}return(m?-1:1)*i*Math.pow(2,u-e)};Mi.write=function(t,l,n,e,a,u){var i,c,f,r=u*8-a-1,y=(1<<r)-1,g=y>>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=e?0:u-1,E=e?1:-1,b=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(c=isNaN(l)?1:0,i=y):(i=Math.floor(Math.log(l)/Math.LN2),l*(f=Math.pow(2,-i))<1&&(i--,f*=2),i+g>=1?l+=d/f:l+=d*Math.pow(2,1-g),l*f>=2&&(i++,f/=2),i+g>=y?(c=0,i=y):i+g>=1?(c=(l*f-1)*Math.pow(2,a),i=i+g):(c=l*Math.pow(2,g-1)*Math.pow(2,a),i=0));a>=8;t[n+m]=c&255,m+=E,c/=256,a-=8);for(i=i<<a|c,r+=a;r>0;t[n+m]=i&255,m+=E,i/=256,r-=8);t[n+m-E]|=b*128}});var kr=Rt(Kn=>{\\\"use strict\\\";B();var Oi=Cr(),Zn=Rr(),Hr=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Kn.Buffer=v;Kn.SlowBuffer=wy;Kn.INSPECT_MAX_BYTES=50;var Fa=2147483647;Kn.kMaxLength=Fa;v.TYPED_ARRAY_SUPPORT=Oy();!v.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function Oy(){try{let t=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(t,l),t.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}});Object.defineProperty(v.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function Sl(t){if(t>Fa)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let l=new Uint8Array(t);return Object.setPrototypeOf(l,v.prototype),l}function v(t,l,n){if(typeof t==\\\"number\\\"){if(typeof l==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return Hi(t)}return Lr(t,l,n)}v.poolSize=8192;function Lr(t,l,n){if(typeof t==\\\"string\\\")return Cy(t,l);if(ArrayBuffer.isView(t))return Ry(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(sl(t,ArrayBuffer)||t&&sl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(sl(t,SharedArrayBuffer)||t&&sl(t.buffer,SharedArrayBuffer)))return Ci(t,l,n);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let e=t.valueOf&&t.valueOf();if(e!=null&&e!==t)return v.from(e,l,n);let a=Hy(t);if(a)return a;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return v.from(t[Symbol.toPrimitive](\\\"string\\\"),l,n);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}v.from=function(t,l,n){return Lr(t,l,n)};Object.setPrototypeOf(v.prototype,Uint8Array.prototype);Object.setPrototypeOf(v,Uint8Array);function Gr(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function Dy(t,l,n){return Gr(t),t<=0?Sl(t):l!==void 0?typeof n==\\\"string\\\"?Sl(t).fill(l,n):Sl(t).fill(l):Sl(t)}v.alloc=function(t,l,n){return Dy(t,l,n)};function Hi(t){return Gr(t),Sl(t<0?0:wi(t)|0)}v.allocUnsafe=function(t){return Hi(t)};v.allocUnsafeSlow=function(t){return Hi(t)};function Cy(t,l){if((typeof l!=\\\"string\\\"||l===\\\"\\\")&&(l=\\\"utf8\\\"),!v.isEncoding(l))throw new TypeError(\\\"Unknown encoding: \\\"+l);let n=Xr(t,l)|0,e=Sl(n),a=e.write(t,l);return a!==n&&(e=e.slice(0,a)),e}function Di(t){let l=t.length<0?0:wi(t.length)|0,n=Sl(l);for(let e=0;e<l;e+=1)n[e]=t[e]&255;return n}function Ry(t){if(sl(t,Uint8Array)){let l=new Uint8Array(t);return Ci(l.buffer,l.byteOffset,l.byteLength)}return Di(t)}function Ci(t,l,n){if(l<0||t.byteLength<l)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<l+(n||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let e;return l===void 0&&n===void 0?e=new Uint8Array(t):n===void 0?e=new Uint8Array(t,l):e=new Uint8Array(t,l,n),Object.setPrototypeOf(e,v.prototype),e}function Hy(t){if(v.isBuffer(t)){let l=wi(t.length)|0,n=Sl(l);return n.length===0||t.copy(n,0,0,l),n}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||Yi(t.length)?Sl(0):Di(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return Di(t.data)}function wi(t){if(t>=Fa)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+Fa.toString(16)+\\\" bytes\\\");return t|0}function wy(t){return+t!=t&&(t=0),v.alloc(+t)}v.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==v.prototype};v.compare=function(l,n){if(sl(l,Uint8Array)&&(l=v.from(l,l.offset,l.byteLength)),sl(n,Uint8Array)&&(n=v.from(n,n.offset,n.byteLength)),!v.isBuffer(l)||!v.isBuffer(n))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(l===n)return 0;let e=l.length,a=n.length;for(let u=0,i=Math.min(e,a);u<i;++u)if(l[u]!==n[u]){e=l[u],a=n[u];break}return e<a?-1:a<e?1:0};v.isEncoding=function(l){switch(String(l).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};v.concat=function(l,n){if(!Array.isArray(l))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(l.length===0)return v.alloc(0);let e;if(n===void 0)for(n=0,e=0;e<l.length;++e)n+=l[e].length;let a=v.allocUnsafe(n),u=0;for(e=0;e<l.length;++e){let i=l[e];if(sl(i,Uint8Array))u+i.length>a.length?(v.isBuffer(i)||(i=v.from(i)),i.copy(a,u)):Uint8Array.prototype.set.call(a,i,u);else if(v.isBuffer(i))i.copy(a,u);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');u+=i.length}return a};function Xr(t,l){if(v.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||sl(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let n=t.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&n===0)return 0;let a=!1;for(;;)switch(l){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return n;case\\\"utf8\\\":case\\\"utf-8\\\":return Ri(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return n*2;case\\\"hex\\\":return n>>>1;case\\\"base64\\\":return $r(t).length;default:if(a)return e?-1:Ri(t).length;l=(\\\"\\\"+l).toLowerCase(),a=!0}}v.byteLength=Xr;function qy(t,l,n){let e=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,l>>>=0,n<=l))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return Jy(this,l,n);case\\\"utf8\\\":case\\\"utf-8\\\":return jr(this,l,n);case\\\"ascii\\\":return Vy(this,l,n);case\\\"latin1\\\":case\\\"binary\\\":return Ky(this,l,n);case\\\"base64\\\":return jy(this,l,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Fy(this,l,n);default:if(e)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),e=!0}}v.prototype._isBuffer=!0;function Sn(t,l,n){let e=t[l];t[l]=t[n],t[n]=e}v.prototype.swap16=function(){let l=this.length;if(l%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let n=0;n<l;n+=2)Sn(this,n,n+1);return this};v.prototype.swap32=function(){let l=this.length;if(l%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let n=0;n<l;n+=4)Sn(this,n,n+3),Sn(this,n+1,n+2);return this};v.prototype.swap64=function(){let l=this.length;if(l%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let n=0;n<l;n+=8)Sn(this,n,n+7),Sn(this,n+1,n+6),Sn(this,n+2,n+5),Sn(this,n+3,n+4);return this};v.prototype.toString=function(){let l=this.length;return l===0?\\\"\\\":arguments.length===0?jr(this,0,l):qy.apply(this,arguments)};v.prototype.toLocaleString=v.prototype.toString;v.prototype.equals=function(l){if(!v.isBuffer(l))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===l?!0:v.compare(this,l)===0};v.prototype.inspect=function(){let l=\\\"\\\",n=Kn.INSPECT_MAX_BYTES;return l=this.toString(\\\"hex\\\",0,n).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>n&&(l+=\\\" ... \\\"),\\\"<Buffer \\\"+l+\\\">\\\"};Hr&&(v.prototype[Hr]=v.prototype.inspect);v.prototype.compare=function(l,n,e,a,u){if(sl(l,Uint8Array)&&(l=v.from(l,l.offset,l.byteLength)),!v.isBuffer(l))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(n===void 0&&(n=0),e===void 0&&(e=l?l.length:0),a===void 0&&(a=0),u===void 0&&(u=this.length),n<0||e>l.length||a<0||u>this.length)throw new RangeError(\\\"out of range index\\\");if(a>=u&&n>=e)return 0;if(a>=u)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,a>>>=0,u>>>=0,this===l)return 0;let i=u-a,c=e-n,f=Math.min(i,c),r=this.slice(a,u),y=l.slice(n,e);for(let g=0;g<f;++g)if(r[g]!==y[g]){i=r[g],c=y[g];break}return i<c?-1:c<i?1:0};function Qr(t,l,n,e,a){if(t.length===0)return-1;if(typeof n==\\\"string\\\"?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Yi(n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof l==\\\"string\\\"&&(l=v.from(l,e)),v.isBuffer(l))return l.length===0?-1:wr(t,l,n,e,a);if(typeof l==\\\"number\\\")return l=l&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?a?Uint8Array.prototype.indexOf.call(t,l,n):Uint8Array.prototype.lastIndexOf.call(t,l,n):wr(t,[l],n,e,a);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function wr(t,l,n,e,a){let u=1,i=t.length,c=l.length;if(e!==void 0&&(e=String(e).toLowerCase(),e===\\\"ucs2\\\"||e===\\\"ucs-2\\\"||e===\\\"utf16le\\\"||e===\\\"utf-16le\\\")){if(t.length<2||l.length<2)return-1;u=2,i/=2,c/=2,n/=2}function f(y,g){return u===1?y[g]:y.readUInt16BE(g*u)}let r;if(a){let y=-1;for(r=n;r<i;r++)if(f(t,r)===f(l,y===-1?0:r-y)){if(y===-1&&(y=r),r-y+1===c)return y*u}else y!==-1&&(r-=r-y),y=-1}else for(n+c>i&&(n=i-c),r=n;r>=0;r--){let y=!0;for(let g=0;g<c;g++)if(f(t,r+g)!==f(l,g)){y=!1;break}if(y)return r}return-1}v.prototype.includes=function(l,n,e){return this.indexOf(l,n,e)!==-1};v.prototype.indexOf=function(l,n,e){return Qr(this,l,n,e,!0)};v.prototype.lastIndexOf=function(l,n,e){return Qr(this,l,n,e,!1)};function Yy(t,l,n,e){n=Number(n)||0;let a=t.length-n;e?(e=Number(e),e>a&&(e=a)):e=a;let u=l.length;e>u/2&&(e=u/2);let i;for(i=0;i<e;++i){let c=parseInt(l.substr(i*2,2),16);if(Yi(c))return i;t[n+i]=c}return i}function Ly(t,l,n,e){return Wa(Ri(l,t.length-n),t,n,e)}function Gy(t,l,n,e){return Wa(Iy(l),t,n,e)}function Xy(t,l,n,e){return Wa($r(l),t,n,e)}function Qy(t,l,n,e){return Wa(Py(l,t.length-n),t,n,e)}v.prototype.write=function(l,n,e,a){if(n===void 0)a=\\\"utf8\\\",e=this.length,n=0;else if(e===void 0&&typeof n==\\\"string\\\")a=n,e=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(e)?(e=e>>>0,a===void 0&&(a=\\\"utf8\\\")):(a=e,e=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let u=this.length-n;if((e===void 0||e>u)&&(e=u),l.length>0&&(e<0||n<0)||n>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");a||(a=\\\"utf8\\\");let i=!1;for(;;)switch(a){case\\\"hex\\\":return Yy(this,l,n,e);case\\\"utf8\\\":case\\\"utf-8\\\":return Ly(this,l,n,e);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return Gy(this,l,n,e);case\\\"base64\\\":return Xy(this,l,n,e);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Qy(this,l,n,e);default:if(i)throw new TypeError(\\\"Unknown encoding: \\\"+a);a=(\\\"\\\"+a).toLowerCase(),i=!0}};v.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function jy(t,l,n){return l===0&&n===t.length?Oi.fromByteArray(t):Oi.fromByteArray(t.slice(l,n))}function jr(t,l,n){n=Math.min(t.length,n);let e=[],a=l;for(;a<n;){let u=t[a],i=null,c=u>239?4:u>223?3:u>191?2:1;if(a+c<=n){let f,r,y,g;switch(c){case 1:u<128&&(i=u);break;case 2:f=t[a+1],(f&192)===128&&(g=(u&31)<<6|f&63,g>127&&(i=g));break;case 3:f=t[a+1],r=t[a+2],(f&192)===128&&(r&192)===128&&(g=(u&15)<<12|(f&63)<<6|r&63,g>2047&&(g<55296||g>57343)&&(i=g));break;case 4:f=t[a+1],r=t[a+2],y=t[a+3],(f&192)===128&&(r&192)===128&&(y&192)===128&&(g=(u&15)<<18|(f&63)<<12|(r&63)<<6|y&63,g>65535&&g<1114112&&(i=g))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,e.push(i>>>10&1023|55296),i=56320|i&1023),e.push(i),a+=c}return Zy(e)}var qr=4096;function Zy(t){let l=t.length;if(l<=qr)return String.fromCharCode.apply(String,t);let n=\\\"\\\",e=0;for(;e<l;)n+=String.fromCharCode.apply(String,t.slice(e,e+=qr));return n}function Vy(t,l,n){let e=\\\"\\\";n=Math.min(t.length,n);for(let a=l;a<n;++a)e+=String.fromCharCode(t[a]&127);return e}function Ky(t,l,n){let e=\\\"\\\";n=Math.min(t.length,n);for(let a=l;a<n;++a)e+=String.fromCharCode(t[a]);return e}function Jy(t,l,n){let e=t.length;(!l||l<0)&&(l=0),(!n||n<0||n>e)&&(n=e);let a=\\\"\\\";for(let u=l;u<n;++u)a+=tm[t[u]];return a}function Fy(t,l,n){let e=t.slice(l,n),a=\\\"\\\";for(let u=0;u<e.length-1;u+=2)a+=String.fromCharCode(e[u]+e[u+1]*256);return a}v.prototype.slice=function(l,n){let e=this.length;l=~~l,n=n===void 0?e:~~n,l<0?(l+=e,l<0&&(l=0)):l>e&&(l=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),n<l&&(n=l);let a=this.subarray(l,n);return Object.setPrototypeOf(a,v.prototype),a};function ft(t,l,n){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+l>n)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}v.prototype.readUintLE=v.prototype.readUIntLE=function(l,n,e){l=l>>>0,n=n>>>0,e||ft(l,n,this.length);let a=this[l],u=1,i=0;for(;++i<n&&(u*=256);)a+=this[l+i]*u;return a};v.prototype.readUintBE=v.prototype.readUIntBE=function(l,n,e){l=l>>>0,n=n>>>0,e||ft(l,n,this.length);let a=this[l+--n],u=1;for(;n>0&&(u*=256);)a+=this[l+--n]*u;return a};v.prototype.readUint8=v.prototype.readUInt8=function(l,n){return l=l>>>0,n||ft(l,1,this.length),this[l]};v.prototype.readUint16LE=v.prototype.readUInt16LE=function(l,n){return l=l>>>0,n||ft(l,2,this.length),this[l]|this[l+1]<<8};v.prototype.readUint16BE=v.prototype.readUInt16BE=function(l,n){return l=l>>>0,n||ft(l,2,this.length),this[l]<<8|this[l+1]};v.prototype.readUint32LE=v.prototype.readUInt32LE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216};v.prototype.readUint32BE=v.prototype.readUInt32BE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])};v.prototype.readBigUInt64LE=Ql(function(l){l=l>>>0,Vn(l,\\\"offset\\\");let n=this[l],e=this[l+7];(n===void 0||e===void 0)&&Ge(l,this.length-8);let a=n+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,u=this[++l]+this[++l]*2**8+this[++l]*2**16+e*2**24;return BigInt(a)+(BigInt(u)<<BigInt(32))});v.prototype.readBigUInt64BE=Ql(function(l){l=l>>>0,Vn(l,\\\"offset\\\");let n=this[l],e=this[l+7];(n===void 0||e===void 0)&&Ge(l,this.length-8);let a=n*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],u=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+e;return(BigInt(a)<<BigInt(32))+BigInt(u)});v.prototype.readIntLE=function(l,n,e){l=l>>>0,n=n>>>0,e||ft(l,n,this.length);let a=this[l],u=1,i=0;for(;++i<n&&(u*=256);)a+=this[l+i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*n)),a};v.prototype.readIntBE=function(l,n,e){l=l>>>0,n=n>>>0,e||ft(l,n,this.length);let a=n,u=1,i=this[l+--a];for(;a>0&&(u*=256);)i+=this[l+--a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*n)),i};v.prototype.readInt8=function(l,n){return l=l>>>0,n||ft(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]};v.prototype.readInt16LE=function(l,n){l=l>>>0,n||ft(l,2,this.length);let e=this[l]|this[l+1]<<8;return e&32768?e|4294901760:e};v.prototype.readInt16BE=function(l,n){l=l>>>0,n||ft(l,2,this.length);let e=this[l+1]|this[l]<<8;return e&32768?e|4294901760:e};v.prototype.readInt32LE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24};v.prototype.readInt32BE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]};v.prototype.readBigInt64LE=Ql(function(l){l=l>>>0,Vn(l,\\\"offset\\\");let n=this[l],e=this[l+7];(n===void 0||e===void 0)&&Ge(l,this.length-8);let a=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(e<<24);return(BigInt(a)<<BigInt(32))+BigInt(n+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)});v.prototype.readBigInt64BE=Ql(function(l){l=l>>>0,Vn(l,\\\"offset\\\");let n=this[l],e=this[l+7];(n===void 0||e===void 0)&&Ge(l,this.length-8);let a=(n<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(a)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+e)});v.prototype.readFloatLE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),Zn.read(this,l,!0,23,4)};v.prototype.readFloatBE=function(l,n){return l=l>>>0,n||ft(l,4,this.length),Zn.read(this,l,!1,23,4)};v.prototype.readDoubleLE=function(l,n){return l=l>>>0,n||ft(l,8,this.length),Zn.read(this,l,!0,52,8)};v.prototype.readDoubleBE=function(l,n){return l=l>>>0,n||ft(l,8,this.length),Zn.read(this,l,!1,52,8)};function Nt(t,l,n,e,a,u){if(!v.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(l>a||l<u)throw new RangeError('\\\"value\\\" argument is out of bounds');if(n+e>t.length)throw new RangeError(\\\"Index out of range\\\")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(l,n,e,a){if(l=+l,n=n>>>0,e=e>>>0,!a){let c=Math.pow(2,8*e)-1;Nt(this,l,n,e,c,0)}let u=1,i=0;for(this[n]=l&255;++i<e&&(u*=256);)this[n+i]=l/u&255;return n+e};v.prototype.writeUintBE=v.prototype.writeUIntBE=function(l,n,e,a){if(l=+l,n=n>>>0,e=e>>>0,!a){let c=Math.pow(2,8*e)-1;Nt(this,l,n,e,c,0)}let u=e-1,i=1;for(this[n+u]=l&255;--u>=0&&(i*=256);)this[n+u]=l/i&255;return n+e};v.prototype.writeUint8=v.prototype.writeUInt8=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,1,255,0),this[n]=l&255,n+1};v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,2,65535,0),this[n]=l&255,this[n+1]=l>>>8,n+2};v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,2,65535,0),this[n]=l>>>8,this[n+1]=l&255,n+2};v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,4,4294967295,0),this[n+3]=l>>>24,this[n+2]=l>>>16,this[n+1]=l>>>8,this[n]=l&255,n+4};v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,4,4294967295,0),this[n]=l>>>24,this[n+1]=l>>>16,this[n+2]=l>>>8,this[n+3]=l&255,n+4};function Zr(t,l,n,e,a){Wr(l,e,a,t,n,7);let u=Number(l&BigInt(4294967295));t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[n++]=i,i=i>>8,t[n++]=i,i=i>>8,t[n++]=i,i=i>>8,t[n++]=i,n}function Vr(t,l,n,e,a){Wr(l,e,a,t,n,7);let u=Number(l&BigInt(4294967295));t[n+7]=u,u=u>>8,t[n+6]=u,u=u>>8,t[n+5]=u,u=u>>8,t[n+4]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[n+3]=i,i=i>>8,t[n+2]=i,i=i>>8,t[n+1]=i,i=i>>8,t[n]=i,n+8}v.prototype.writeBigUInt64LE=Ql(function(l,n=0){return Zr(this,l,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});v.prototype.writeBigUInt64BE=Ql(function(l,n=0){return Vr(this,l,n,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});v.prototype.writeIntLE=function(l,n,e,a){if(l=+l,n=n>>>0,!a){let f=Math.pow(2,8*e-1);Nt(this,l,n,e,f-1,-f)}let u=0,i=1,c=0;for(this[n]=l&255;++u<e&&(i*=256);)l<0&&c===0&&this[n+u-1]!==0&&(c=1),this[n+u]=(l/i>>0)-c&255;return n+e};v.prototype.writeIntBE=function(l,n,e,a){if(l=+l,n=n>>>0,!a){let f=Math.pow(2,8*e-1);Nt(this,l,n,e,f-1,-f)}let u=e-1,i=1,c=0;for(this[n+u]=l&255;--u>=0&&(i*=256);)l<0&&c===0&&this[n+u+1]!==0&&(c=1),this[n+u]=(l/i>>0)-c&255;return n+e};v.prototype.writeInt8=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,1,127,-128),l<0&&(l=255+l+1),this[n]=l&255,n+1};v.prototype.writeInt16LE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,2,32767,-32768),this[n]=l&255,this[n+1]=l>>>8,n+2};v.prototype.writeInt16BE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,2,32767,-32768),this[n]=l>>>8,this[n+1]=l&255,n+2};v.prototype.writeInt32LE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,4,2147483647,-2147483648),this[n]=l&255,this[n+1]=l>>>8,this[n+2]=l>>>16,this[n+3]=l>>>24,n+4};v.prototype.writeInt32BE=function(l,n,e){return l=+l,n=n>>>0,e||Nt(this,l,n,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[n]=l>>>24,this[n+1]=l>>>16,this[n+2]=l>>>8,this[n+3]=l&255,n+4};v.prototype.writeBigInt64LE=Ql(function(l,n=0){return Zr(this,l,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});v.prototype.writeBigInt64BE=Ql(function(l,n=0){return Vr(this,l,n,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function Kr(t,l,n,e,a,u){if(n+e>t.length)throw new RangeError(\\\"Index out of range\\\");if(n<0)throw new RangeError(\\\"Index out of range\\\")}function Jr(t,l,n,e,a){return l=+l,n=n>>>0,a||Kr(t,l,n,4,34028234663852886e22,-34028234663852886e22),Zn.write(t,l,n,e,23,4),n+4}v.prototype.writeFloatLE=function(l,n,e){return Jr(this,l,n,!0,e)};v.prototype.writeFloatBE=function(l,n,e){return Jr(this,l,n,!1,e)};function Fr(t,l,n,e,a){return l=+l,n=n>>>0,a||Kr(t,l,n,8,17976931348623157e292,-17976931348623157e292),Zn.write(t,l,n,e,52,8),n+8}v.prototype.writeDoubleLE=function(l,n,e){return Fr(this,l,n,!0,e)};v.prototype.writeDoubleBE=function(l,n,e){return Fr(this,l,n,!1,e)};v.prototype.copy=function(l,n,e,a){if(!v.isBuffer(l))throw new TypeError(\\\"argument should be a Buffer\\\");if(e||(e=0),!a&&a!==0&&(a=this.length),n>=l.length&&(n=l.length),n||(n=0),a>0&&a<e&&(a=e),a===e||l.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(e<0||e>=this.length)throw new RangeError(\\\"Index out of range\\\");if(a<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");a>this.length&&(a=this.length),l.length-n<a-e&&(a=l.length-n+e);let u=a-e;return this===l&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(n,e,a):Uint8Array.prototype.set.call(l,this.subarray(e,a),n),u};v.prototype.fill=function(l,n,e,a){if(typeof l==\\\"string\\\"){if(typeof n==\\\"string\\\"?(a=n,n=0,e=this.length):typeof e==\\\"string\\\"&&(a=e,e=this.length),a!==void 0&&typeof a!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof a==\\\"string\\\"&&!v.isEncoding(a))throw new TypeError(\\\"Unknown encoding: \\\"+a);if(l.length===1){let i=l.charCodeAt(0);(a===\\\"utf8\\\"&&i<128||a===\\\"latin1\\\")&&(l=i)}}else typeof l==\\\"number\\\"?l=l&255:typeof l==\\\"boolean\\\"&&(l=Number(l));if(n<0||this.length<n||this.length<e)throw new RangeError(\\\"Out of range index\\\");if(e<=n)return this;n=n>>>0,e=e===void 0?this.length:e>>>0,l||(l=0);let u;if(typeof l==\\\"number\\\")for(u=n;u<e;++u)this[u]=l;else{let i=v.isBuffer(l)?l:v.from(l,a),c=i.length;if(c===0)throw new TypeError('The value \\\"'+l+'\\\" is invalid for argument \\\"value\\\"');for(u=0;u<e-n;++u)this[u+n]=i[u%c]}return this};var jn={};function qi(t,l,n){jn[t]=class extends n{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(a){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}qi(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);qi(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,l){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof l}`},TypeError);qi(\\\"ERR_OUT_OF_RANGE\\\",function(t,l,n){let e=`The value of \\\"${t}\\\" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=Yr(String(n)):typeof n==\\\"bigint\\\"&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=Yr(a)),a+=\\\"n\\\"),e+=` It must be ${l}. Received ${a}`,e},RangeError);function Yr(t){let l=\\\"\\\",n=t.length,e=t[0]===\\\"-\\\"?1:0;for(;n>=e+4;n-=3)l=`_${t.slice(n-3,n)}${l}`;return`${t.slice(0,n)}${l}`}function Wy(t,l,n){Vn(l,\\\"offset\\\"),(t[l]===void 0||t[l+n]===void 0)&&Ge(l,t.length-(n+1))}function Wr(t,l,n,e,a,u){if(t>n||t<l){let i=typeof l==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",c;throw u>3?l===0||l===BigInt(0)?c=`>= 0${i} and < 2${i} ** ${(u+1)*8}${i}`:c=`>= -(2${i} ** ${(u+1)*8-1}${i}) and < 2 ** ${(u+1)*8-1}${i}`:c=`>= ${l}${i} and <= ${n}${i}`,new jn.ERR_OUT_OF_RANGE(\\\"value\\\",c,t)}Wy(e,a,u)}function Vn(t,l){if(typeof t!=\\\"number\\\")throw new jn.ERR_INVALID_ARG_TYPE(l,\\\"number\\\",t)}function Ge(t,l,n){throw Math.floor(t)!==t?(Vn(t,n),new jn.ERR_OUT_OF_RANGE(n||\\\"offset\\\",\\\"an integer\\\",t)):l<0?new jn.ERR_BUFFER_OUT_OF_BOUNDS:new jn.ERR_OUT_OF_RANGE(n||\\\"offset\\\",`>= ${n?1:0} and <= ${l}`,t)}var $y=/[^+/0-9A-Za-z-_]/g;function ky(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace($y,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function Ri(t,l){l=l||1/0;let n,e=t.length,a=null,u=[];for(let i=0;i<e;++i){if(n=t.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(l-=3)>-1&&u.push(239,191,189);continue}else if(i+1===e){(l-=3)>-1&&u.push(239,191,189);continue}a=n;continue}if(n<56320){(l-=3)>-1&&u.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(l-=3)>-1&&u.push(239,191,189);if(a=null,n<128){if((l-=1)<0)break;u.push(n)}else if(n<2048){if((l-=2)<0)break;u.push(n>>6|192,n&63|128)}else if(n<65536){if((l-=3)<0)break;u.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((l-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\\\"Invalid code point\\\")}return u}function Iy(t){let l=[];for(let n=0;n<t.length;++n)l.push(t.charCodeAt(n)&255);return l}function Py(t,l){let n,e,a,u=[];for(let i=0;i<t.length&&!((l-=2)<0);++i)n=t.charCodeAt(i),e=n>>8,a=n%256,u.push(a),u.push(e);return u}function $r(t){return Oi.toByteArray(ky(t))}function Wa(t,l,n,e){let a;for(a=0;a<e&&!(a+n>=l.length||a>=t.length);++a)l[a+n]=t[a];return a}function sl(t,l){return t instanceof l||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===l.name}function Yi(t){return t!==t}var tm=(function(){let t=\\\"0123456789abcdef\\\",l=new Array(256);for(let n=0;n<16;++n){let e=n*16;for(let a=0;a<16;++a)l[e+a]=t[n]+t[a]}return l})();function Ql(t){return typeof BigInt>\\\"u\\\"?lm:t}function lm(){throw new Error(\\\"BigInt not supported\\\")}});var Ir,B=Ay(()=>{\\\"use strict\\\";Ir=Tt(kr(),1);globalThis.Buffer=Ir.Buffer});var fo=Rt($=>{\\\"use strict\\\";B();function Qi(t,l){var n=t.length;t.push(l);t:for(;0<n;){var e=n-1>>>1,a=t[e];if(0<$a(a,l))t[e]=l,t[n]=a,n=e;else break t}}function hl(t){return t.length===0?null:t[0]}function Ia(t){if(t.length===0)return null;var l=t[0],n=t.pop();if(n!==l){t[0]=n;t:for(var e=0,a=t.length,u=a>>>1;e<u;){var i=2*(e+1)-1,c=t[i],f=i+1,r=t[f];if(0>$a(c,n))f<a&&0>$a(r,c)?(t[e]=r,t[f]=n,e=f):(t[e]=c,t[i]=n,e=i);else if(f<a&&0>$a(r,n))t[e]=r,t[f]=n,e=f;else break t}}return l}function $a(t,l){var n=t.sortIndex-l.sortIndex;return n!==0?n:t.id-l.id}$.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(Pr=performance,$.unstable_now=function(){return Pr.now()}):(Li=Date,to=Li.now(),$.unstable_now=function(){return Li.now()-to});var Pr,Li,to,El=[],jl=[],nm=1,Kt=null,vt=3,ji=!1,Xe=!1,Qe=!1,Zi=!1,eo=typeof setTimeout==\\\"function\\\"?setTimeout:null,ao=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,lo=typeof setImmediate<\\\"u\\\"?setImmediate:null;function ka(t){for(var l=hl(jl);l!==null;){if(l.callback===null)Ia(jl);else if(l.startTime<=t)Ia(jl),l.sortIndex=l.expirationTime,Qi(El,l);else break;l=hl(jl)}}function Vi(t){if(Qe=!1,ka(t),!Xe)if(hl(El)!==null)Xe=!0,Fn||(Fn=!0,Jn());else{var l=hl(jl);l!==null&&Ki(Vi,l.startTime-t)}}var Fn=!1,je=-1,uo=5,io=-1;function co(){return Zi?!0:!($.unstable_now()-io<uo)}function Gi(){if(Zi=!1,Fn){var t=$.unstable_now();io=t;var l=!0;try{t:{Xe=!1,Qe&&(Qe=!1,ao(je),je=-1),ji=!0;var n=vt;try{l:{for(ka(t),Kt=hl(El);Kt!==null&&!(Kt.expirationTime>t&&co());){var e=Kt.callback;if(typeof e==\\\"function\\\"){Kt.callback=null,vt=Kt.priorityLevel;var a=e(Kt.expirationTime<=t);if(t=$.unstable_now(),typeof a==\\\"function\\\"){Kt.callback=a,ka(t),l=!0;break l}Kt===hl(El)&&Ia(El),ka(t)}else Ia(El);Kt=hl(El)}if(Kt!==null)l=!0;else{var u=hl(jl);u!==null&&Ki(Vi,u.startTime-t),l=!1}}break t}finally{Kt=null,vt=n,ji=!1}l=void 0}}finally{l?Jn():Fn=!1}}}var Jn;typeof lo==\\\"function\\\"?Jn=function(){lo(Gi)}:typeof MessageChannel<\\\"u\\\"?(Xi=new MessageChannel,no=Xi.port2,Xi.port1.onmessage=Gi,Jn=function(){no.postMessage(null)}):Jn=function(){eo(Gi,0)};var Xi,no;function Ki(t,l){je=eo(function(){t($.unstable_now())},l)}$.unstable_IdlePriority=5;$.unstable_ImmediatePriority=1;$.unstable_LowPriority=4;$.unstable_NormalPriority=3;$.unstable_Profiling=null;$.unstable_UserBlockingPriority=2;$.unstable_cancelCallback=function(t){t.callback=null};$.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):uo=0<t?Math.floor(1e3/t):5};$.unstable_getCurrentPriorityLevel=function(){return vt};$.unstable_next=function(t){switch(vt){case 1:case 2:case 3:var l=3;break;default:l=vt}var n=vt;vt=l;try{return t()}finally{vt=n}};$.unstable_requestPaint=function(){Zi=!0};$.unstable_runWithPriority=function(t,l){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=vt;vt=t;try{return l()}finally{vt=n}};$.unstable_scheduleCallback=function(t,l,n){var e=$.unstable_now();switch(typeof n==\\\"object\\\"&&n!==null?(n=n.delay,n=typeof n==\\\"number\\\"&&0<n?e+n:e):n=e,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,t={id:nm++,callback:l,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>e?(t.sortIndex=n,Qi(jl,t),hl(El)===null&&t===hl(jl)&&(Qe?(ao(je),je=-1):Qe=!0,Ki(Vi,n-e))):(t.sortIndex=a,Qi(El,t),Xe||ji||(Xe=!0,Fn||(Fn=!0,Jn()))),t};$.unstable_shouldYield=co;$.unstable_wrapCallback=function(t){var l=vt;return function(){var n=vt;vt=l;try{return t.apply(this,arguments)}finally{vt=n}}}});var oo=Rt((S2,ro)=>{\\\"use strict\\\";B();ro.exports=fo()});var Ao=Rt(U=>{\\\"use strict\\\";B();var Wi=Symbol.for(\\\"react.transitional.element\\\"),em=Symbol.for(\\\"react.portal\\\"),am=Symbol.for(\\\"react.fragment\\\"),um=Symbol.for(\\\"react.strict_mode\\\"),im=Symbol.for(\\\"react.profiler\\\"),cm=Symbol.for(\\\"react.consumer\\\"),fm=Symbol.for(\\\"react.context\\\"),rm=Symbol.for(\\\"react.forward_ref\\\"),om=Symbol.for(\\\"react.suspense\\\"),sm=Symbol.for(\\\"react.memo\\\"),go=Symbol.for(\\\"react.lazy\\\"),hm=Symbol.for(\\\"react.activity\\\"),so=Symbol.iterator;function ym(t){return t===null||typeof t!=\\\"object\\\"?null:(t=so&&t[so]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var vo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},po=Object.assign,So={};function $n(t,l,n){this.props=t,this.context=l,this.refs=So,this.updater=n||vo}$n.prototype.isReactComponent={};$n.prototype.setState=function(t,l){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,l,\\\"setState\\\")};$n.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function Eo(){}Eo.prototype=$n.prototype;function $i(t,l,n){this.props=t,this.context=l,this.refs=So,this.updater=n||vo}var ki=$i.prototype=new Eo;ki.constructor=$i;po(ki,$n.prototype);ki.isPureReactComponent=!0;var ho=Array.isArray;function Fi(){}var K={H:null,A:null,T:null,S:null},bo=Object.prototype.hasOwnProperty;function Ii(t,l,n){var e=n.ref;return{$$typeof:Wi,type:t,key:l,ref:e!==void 0?e:null,props:n}}function mm(t,l){return Ii(t.type,l,t.props)}function Pi(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===Wi}function dm(t){var l={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(n){return l[n]})}var yo=/\\\\/+/g;function Ji(t,l){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?dm(\\\"\\\"+t.key):l.toString(36)}function gm(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(Fi,Fi):(t.status=\\\"pending\\\",t.then(function(l){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=l)},function(l){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=l)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function Wn(t,l,n,e,a){var u=typeof t;(u===\\\"undefined\\\"||u===\\\"boolean\\\")&&(t=null);var i=!1;if(t===null)i=!0;else switch(u){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":i=!0;break;case\\\"object\\\":switch(t.$$typeof){case Wi:case em:i=!0;break;case go:return i=t._init,Wn(i(t._payload),l,n,e,a)}}if(i)return a=a(t),i=e===\\\"\\\"?\\\".\\\"+Ji(t,0):e,ho(a)?(n=\\\"\\\",i!=null&&(n=i.replace(yo,\\\"$&/\\\")+\\\"/\\\"),Wn(a,l,n,\\\"\\\",function(r){return r})):a!=null&&(Pi(a)&&(a=mm(a,n+(a.key==null||t&&t.key===a.key?\\\"\\\":(\\\"\\\"+a.key).replace(yo,\\\"$&/\\\")+\\\"/\\\")+i)),l.push(a)),1;i=0;var c=e===\\\"\\\"?\\\".\\\":e+\\\":\\\";if(ho(t))for(var f=0;f<t.length;f++)e=t[f],u=c+Ji(e,f),i+=Wn(e,l,n,u,a);else if(f=ym(t),typeof f==\\\"function\\\")for(t=f.call(t),f=0;!(e=t.next()).done;)e=e.value,u=c+Ji(e,f++),i+=Wn(e,l,n,u,a);else if(u===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Wn(gm(t),l,n,e,a);throw l=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(l===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":l)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return i}function Pa(t,l,n){if(t==null)return t;var e=[],a=0;return Wn(t,e,\\\"\\\",\\\"\\\",function(u){return l.call(n,u,a++)}),e}function vm(t){if(t._status===-1){var l=t._result;l=l(),l.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=l)}if(t._status===1)return t._result.default;throw t._result}var mo=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},pm={map:Pa,forEach:function(t,l,n){Pa(t,function(){l.apply(this,arguments)},n)},count:function(t){var l=0;return Pa(t,function(){l++}),l},toArray:function(t){return Pa(t,function(l){return l})||[]},only:function(t){if(!Pi(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};U.Activity=hm;U.Children=pm;U.Component=$n;U.Fragment=am;U.Profiler=im;U.PureComponent=$i;U.StrictMode=um;U.Suspense=om;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K;U.__COMPILER_RUNTIME={__proto__:null,c:function(t){return K.H.useMemoCache(t)}};U.cache=function(t){return function(){return t.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(t,l,n){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var e=po({},t.props),a=t.key;if(l!=null)for(u in l.key!==void 0&&(a=\\\"\\\"+l.key),l)!bo.call(l,u)||u===\\\"key\\\"||u===\\\"__self\\\"||u===\\\"__source\\\"||u===\\\"ref\\\"&&l.ref===void 0||(e[u]=l[u]);var u=arguments.length-2;if(u===1)e.children=n;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];e.children=i}return Ii(t.type,a,e)};U.createContext=function(t){return t={$$typeof:fm,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:cm,_context:t},t};U.createElement=function(t,l,n){var e,a={},u=null;if(l!=null)for(e in l.key!==void 0&&(u=\\\"\\\"+l.key),l)bo.call(l,e)&&e!==\\\"key\\\"&&e!==\\\"__self\\\"&&e!==\\\"__source\\\"&&(a[e]=l[e]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var c=Array(i),f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}if(t&&t.defaultProps)for(e in i=t.defaultProps,i)a[e]===void 0&&(a[e]=i[e]);return Ii(t,u,a)};U.createRef=function(){return{current:null}};U.forwardRef=function(t){return{$$typeof:rm,render:t}};U.isValidElement=Pi;U.lazy=function(t){return{$$typeof:go,_payload:{_status:-1,_result:t},_init:vm}};U.memo=function(t,l){return{$$typeof:sm,type:t,compare:l===void 0?null:l}};U.startTransition=function(t){var l=K.T,n={};K.T=n;try{var e=t(),a=K.S;a!==null&&a(n,e),typeof e==\\\"object\\\"&&e!==null&&typeof e.then==\\\"function\\\"&&e.then(Fi,mo)}catch(u){mo(u)}finally{l!==null&&n.types!==null&&(l.types=n.types),K.T=l}};U.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()};U.use=function(t){return K.H.use(t)};U.useActionState=function(t,l,n){return K.H.useActionState(t,l,n)};U.useCallback=function(t,l){return K.H.useCallback(t,l)};U.useContext=function(t){return K.H.useContext(t)};U.useDebugValue=function(){};U.useDeferredValue=function(t,l){return K.H.useDeferredValue(t,l)};U.useEffect=function(t,l){return K.H.useEffect(t,l)};U.useEffectEvent=function(t){return K.H.useEffectEvent(t)};U.useId=function(){return K.H.useId()};U.useImperativeHandle=function(t,l,n){return K.H.useImperativeHandle(t,l,n)};U.useInsertionEffect=function(t,l){return K.H.useInsertionEffect(t,l)};U.useLayoutEffect=function(t,l){return K.H.useLayoutEffect(t,l)};U.useMemo=function(t,l){return K.H.useMemo(t,l)};U.useOptimistic=function(t,l){return K.H.useOptimistic(t,l)};U.useReducer=function(t,l,n){return K.H.useReducer(t,l,n)};U.useRef=function(t){return K.H.useRef(t)};U.useState=function(t){return K.H.useState(t)};U.useSyncExternalStore=function(t,l,n){return K.H.useSyncExternalStore(t,l,n)};U.useTransition=function(){return K.H.useTransition()};U.version=\\\"19.2.4\\\"});var En=Rt((T2,To)=>{\\\"use strict\\\";B();To.exports=Ao()});var Bo=Rt(Et=>{\\\"use strict\\\";B();var Sm=En();function No(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function Zl(){}var St={d:{f:Zl,r:function(){throw Error(No(522))},D:Zl,C:Zl,L:Zl,m:Zl,X:Zl,S:Zl,M:Zl},p:0,findDOMNode:null},Em=Symbol.for(\\\"react.portal\\\");function bm(t,l,n){var e=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Em,key:e==null?null:\\\"\\\"+e,children:t,containerInfo:l,implementation:n}}var Ze=Sm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function tu(t,l){if(t===\\\"font\\\")return\\\"\\\";if(typeof l==\\\"string\\\")return l===\\\"use-credentials\\\"?l:\\\"\\\"}Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=St;Et.createPortal=function(t,l){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(No(299));return bm(t,l,null,n)};Et.flushSync=function(t){var l=Ze.T,n=St.p;try{if(Ze.T=null,St.p=2,t)return t()}finally{Ze.T=l,St.p=n,St.d.f()}};Et.preconnect=function(t,l){typeof t==\\\"string\\\"&&(l?(l=l.crossOrigin,l=typeof l==\\\"string\\\"?l===\\\"use-credentials\\\"?l:\\\"\\\":void 0):l=null,St.d.C(t,l))};Et.prefetchDNS=function(t){typeof t==\\\"string\\\"&&St.d.D(t)};Et.preinit=function(t,l){if(typeof t==\\\"string\\\"&&l&&typeof l.as==\\\"string\\\"){var n=l.as,e=tu(n,l.crossOrigin),a=typeof l.integrity==\\\"string\\\"?l.integrity:void 0,u=typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0;n===\\\"style\\\"?St.d.S(t,typeof l.precedence==\\\"string\\\"?l.precedence:void 0,{crossOrigin:e,integrity:a,fetchPriority:u}):n===\\\"script\\\"&&St.d.X(t,{crossOrigin:e,integrity:a,fetchPriority:u,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}};Et.preinitModule=function(t,l){if(typeof t==\\\"string\\\")if(typeof l==\\\"object\\\"&&l!==null){if(l.as==null||l.as===\\\"script\\\"){var n=tu(l.as,l.crossOrigin);St.d.M(t,{crossOrigin:n,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}}else l==null&&St.d.M(t)};Et.preload=function(t,l){if(typeof t==\\\"string\\\"&&typeof l==\\\"object\\\"&&l!==null&&typeof l.as==\\\"string\\\"){var n=l.as,e=tu(n,l.crossOrigin);St.d.L(t,n,{crossOrigin:e,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0,type:typeof l.type==\\\"string\\\"?l.type:void 0,fetchPriority:typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy==\\\"string\\\"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet==\\\"string\\\"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes==\\\"string\\\"?l.imageSizes:void 0,media:typeof l.media==\\\"string\\\"?l.media:void 0})}};Et.preloadModule=function(t,l){if(typeof t==\\\"string\\\")if(l){var n=tu(l.as,l.crossOrigin);St.d.m(t,{as:typeof l.as==\\\"string\\\"&&l.as!==\\\"script\\\"?l.as:void 0,crossOrigin:n,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0})}else St.d.m(t)};Et.requestFormReset=function(t){St.d.r(t)};Et.unstable_batchedUpdates=function(t,l){return t(l)};Et.useFormState=function(t,l,n){return Ze.H.useFormState(t,l,n)};Et.useFormStatus=function(){return Ze.H.useHostTransitionStatus()};Et.version=\\\"19.2.4\\\"});var _o=Rt((U2,Uo)=>{\\\"use strict\\\";B();function zo(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zo)}catch(t){console.error(t)}}zo(),Uo.exports=Bo()});var Gh=Rt(Bi=>{\\\"use strict\\\";B();var ct=oo(),t0=En(),Am=_o();function S(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[n])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function l0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ma(t){var l=t,n=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(n=l.return),t=l.return;while(t)}return l.tag===3?n:null}function n0(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function e0(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function xo(t){if(Ma(t)!==t)throw Error(S(188))}function Tm(t){var l=t.alternate;if(!l){if(l=Ma(t),l===null)throw Error(S(188));return l!==t?null:t}for(var n=t,e=l;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(e=a.return,e!==null){n=e;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return xo(a),t;if(u===e)return xo(a),l;u=u.sibling}throw Error(S(188))}if(n.return!==e.return)n=a,e=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,e=u;break}if(c===e){i=!0,e=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,e=a;break}if(c===e){i=!0,e=u,n=a;break}c=c.sibling}if(!i)throw Error(S(189))}}if(n.alternate!==e)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?t:l}function a0(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=a0(t),l!==null)return l;t=t.sibling}return null}var W=Object.assign,Nm=Symbol.for(\\\"react.element\\\"),lu=Symbol.for(\\\"react.transitional.element\\\"),Ie=Symbol.for(\\\"react.portal\\\"),ne=Symbol.for(\\\"react.fragment\\\"),u0=Symbol.for(\\\"react.strict_mode\\\"),Cc=Symbol.for(\\\"react.profiler\\\"),i0=Symbol.for(\\\"react.consumer\\\"),_l=Symbol.for(\\\"react.context\\\"),xf=Symbol.for(\\\"react.forward_ref\\\"),Rc=Symbol.for(\\\"react.suspense\\\"),Hc=Symbol.for(\\\"react.suspense_list\\\"),Mf=Symbol.for(\\\"react.memo\\\"),Vl=Symbol.for(\\\"react.lazy\\\"),wc=Symbol.for(\\\"react.activity\\\"),Bm=Symbol.for(\\\"react.memo_cache_sentinel\\\"),Mo=Symbol.iterator;function Ve(t){return t===null||typeof t!=\\\"object\\\"?null:(t=Mo&&t[Mo]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var zm=Symbol.for(\\\"react.client.reference\\\");function qc(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===zm?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case ne:return\\\"Fragment\\\";case Cc:return\\\"Profiler\\\";case u0:return\\\"StrictMode\\\";case Rc:return\\\"Suspense\\\";case Hc:return\\\"SuspenseList\\\";case wc:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case Ie:return\\\"Portal\\\";case _l:return t.displayName||\\\"Context\\\";case i0:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case xf:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case Mf:return l=t.displayName||null,l!==null?l:qc(t.type)||\\\"Memo\\\";case Vl:l=t._payload,t=t._init;try{return qc(t(l))}catch{}}return null}var Pe=Array.isArray,N=t0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Am.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zn={pending:!1,data:null,method:null,action:null},Yc=[],ee=-1;function vl(t){return{current:t}}function st(t){0>ee||(t.current=Yc[ee],Yc[ee]=null,ee--)}function V(t,l){ee++,Yc[ee]=t.current,t.current=l}var gl=vl(null),ga=vl(null),nn=vl(null),Ru=vl(null);function Hu(t,l){switch(V(nn,l),V(ga,t),V(gl,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?qs(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=qs(l),t=zh(l,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}st(gl),V(gl,t)}function be(){st(gl),st(ga),st(nn)}function Lc(t){t.memoizedState!==null&&V(Ru,t);var l=gl.current,n=zh(l,t.type);l!==n&&(V(ga,t),V(gl,n))}function wu(t){ga.current===t&&(st(gl),st(ga)),Ru.current===t&&(st(Ru),Ua._currentValue=zn)}var tc,Oo;function An(t){if(tc===void 0)try{throw Error()}catch(n){var l=n.stack.trim().match(/\\\\n( *(at )?)/);tc=l&&l[1]||\\\"\\\",Oo=-1<n.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<n.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+tc+t+Oo}var lc=!1;function nc(t,l){if(!t||lc)return\\\"\\\";lc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var e={DetermineComponentFrameRoot:function(){try{if(l){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(g,[])}catch(m){var d=m}Reflect.construct(t,[],g)}else{try{g.call()}catch(m){d=m}t.call(g.prototype)}}else{try{throw Error()}catch(m){d=m}(g=t())&&typeof g.catch==\\\"function\\\"&&g.catch(function(){})}}catch(m){if(m&&d&&typeof m.stack==\\\"string\\\")return[m.stack,d.stack]}return[null,null]}};e.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var a=Object.getOwnPropertyDescriptor(e.DetermineComponentFrameRoot,\\\"name\\\");a&&a.configurable&&Object.defineProperty(e.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var u=e.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var f=i.split(`\\n`),r=c.split(`\\n`);for(a=e=0;e<f.length&&!f[e].includes(\\\"DetermineComponentFrameRoot\\\");)e++;for(;a<r.length&&!r[a].includes(\\\"DetermineComponentFrameRoot\\\");)a++;if(e===f.length||a===r.length)for(e=f.length-1,a=r.length-1;1<=e&&0<=a&&f[e]!==r[a];)a--;for(;1<=e&&0<=a;e--,a--)if(f[e]!==r[a]){if(e!==1||a!==1)do if(e--,a--,0>a||f[e]!==r[a]){var y=`\\n`+f[e].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&y.includes(\\\"<anonymous>\\\")&&(y=y.replace(\\\"<anonymous>\\\",t.displayName)),y}while(1<=e&&0<=a);break}}}finally{lc=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:\\\"\\\")?An(n):\\\"\\\"}function Um(t,l){switch(t.tag){case 26:case 27:case 5:return An(t.type);case 16:return An(\\\"Lazy\\\");case 13:return t.child!==l&&l!==null?An(\\\"Suspense Fallback\\\"):An(\\\"Suspense\\\");case 19:return An(\\\"SuspenseList\\\");case 0:case 15:return nc(t.type,!1);case 11:return nc(t.type.render,!1);case 1:return nc(t.type,!0);case 31:return An(\\\"Activity\\\");default:return\\\"\\\"}}function Do(t){try{var l=\\\"\\\",n=null;do l+=Um(t,n),n=t,t=t.return;while(t);return l}catch(e){return`\\nError generating stack: `+e.message+`\\n`+e.stack}}var Gc=Object.prototype.hasOwnProperty,Of=ct.unstable_scheduleCallback,ec=ct.unstable_cancelCallback,_m=ct.unstable_shouldYield,xm=ct.unstable_requestPaint,Lt=ct.unstable_now,Mm=ct.unstable_getCurrentPriorityLevel,c0=ct.unstable_ImmediatePriority,f0=ct.unstable_UserBlockingPriority,qu=ct.unstable_NormalPriority,Om=ct.unstable_LowPriority,r0=ct.unstable_IdlePriority,Dm=ct.log,Cm=ct.unstable_setDisableYieldValue,Oa=null,Gt=null;function kl(t){if(typeof Dm==\\\"function\\\"&&Cm(t),Gt&&typeof Gt.setStrictMode==\\\"function\\\")try{Gt.setStrictMode(Oa,t)}catch{}}var Xt=Math.clz32?Math.clz32:wm,Rm=Math.log,Hm=Math.LN2;function wm(t){return t>>>=0,t===0?32:31-(Rm(t)/Hm|0)|0}var nu=256,eu=262144,au=4194304;function Tn(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ri(t,l,n){var e=t.pendingLanes;if(e===0)return 0;var a=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=e&134217727;return c!==0?(e=c&~u,e!==0?a=Tn(e):(i&=c,i!==0?a=Tn(i):n||(n=c&~t,n!==0&&(a=Tn(n))))):(c=e&~u,c!==0?a=Tn(c):i!==0?a=Tn(i):n||(n=e&~t,n!==0&&(a=Tn(n)))),a===0?0:l!==0&&l!==a&&(l&u)===0&&(u=a&-a,n=l&-l,u>=n||u===32&&(n&4194048)!==0)?l:a}function Da(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function qm(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function o0(){var t=au;return au<<=1,(au&62914560)===0&&(au=4194304),t}function ac(t){for(var l=[],n=0;31>n;n++)l.push(t);return l}function Ca(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ym(t,l,n,e,a,u){var i=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var c=t.entanglements,f=t.expirationTimes,r=t.hiddenUpdates;for(n=i&~n;0<n;){var y=31-Xt(n),g=1<<y;c[y]=0,f[y]=-1;var d=r[y];if(d!==null)for(r[y]=null,y=0;y<d.length;y++){var m=d[y];m!==null&&(m.lane&=-536870913)}n&=~g}e!==0&&s0(t,e,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function s0(t,l,n){t.pendingLanes|=l,t.suspendedLanes&=~l;var e=31-Xt(l);t.entangledLanes|=l,t.entanglements[e]=t.entanglements[e]|1073741824|n&261930}function h0(t,l){var n=t.entangledLanes|=l;for(t=t.entanglements;n;){var e=31-Xt(n),a=1<<e;a&l|t[e]&l&&(t[e]|=l),n&=~a}}function y0(t,l){var n=l&-l;return n=(n&42)!==0?1:Df(n),(n&(t.suspendedLanes|l))!==0?0:n}function Df(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Cf(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function m0(){var t=L.p;return t!==0?t:(t=window.event,t===void 0?32:qh(t.type))}function Co(t,l){var n=L.p;try{return L.p=t,l()}finally{L.p=n}}var gn=Math.random().toString(36).slice(2),yt=\\\"__reactFiber$\\\"+gn,Mt=\\\"__reactProps$\\\"+gn,De=\\\"__reactContainer$\\\"+gn,Xc=\\\"__reactEvents$\\\"+gn,Lm=\\\"__reactListeners$\\\"+gn,Gm=\\\"__reactHandles$\\\"+gn,Ro=\\\"__reactResources$\\\"+gn,Ra=\\\"__reactMarker$\\\"+gn;function Rf(t){delete t[yt],delete t[Mt],delete t[Xc],delete t[Lm],delete t[Gm]}function ae(t){var l=t[yt];if(l)return l;for(var n=t.parentNode;n;){if(l=n[De]||n[yt]){if(n=l.alternate,l.child!==null||n!==null&&n.child!==null)for(t=Qs(t);t!==null;){if(n=t[yt])return n;t=Qs(t)}return l}t=n,n=t.parentNode}return null}function Ce(t){if(t=t[yt]||t[De]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function ta(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(S(33))}function me(t){var l=t[Ro];return l||(l=t[Ro]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ot(t){t[Ra]=!0}var d0=new Set,g0={};function wn(t,l){Ae(t,l),Ae(t+\\\"Capture\\\",l)}function Ae(t,l){for(g0[t]=l,t=0;t<l.length;t++)d0.add(l[t])}var Xm=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),Ho={},wo={};function Qm(t){return Gc.call(wo,t)?!0:Gc.call(Ho,t)?!1:Xm.test(t)?wo[t]=!0:(Ho[t]=!0,!1)}function Su(t,l,n){if(Qm(l))if(n===null)t.removeAttribute(l);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(l);return;case\\\"boolean\\\":var e=l.toLowerCase().slice(0,5);if(e!==\\\"data-\\\"&&e!==\\\"aria-\\\"){t.removeAttribute(l);return}}t.setAttribute(l,\\\"\\\"+n)}}function uu(t,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(l);return}t.setAttribute(l,\\\"\\\"+n)}}function bl(t,l,n,e){if(e===null)t.removeAttribute(n);else{switch(typeof e){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(n);return}t.setAttributeNS(l,n,\\\"\\\"+e)}}function Ft(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function v0(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(l===\\\"checkbox\\\"||l===\\\"radio\\\")}function jm(t,l,n){var e=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof e<\\\"u\\\"&&typeof e.get==\\\"function\\\"&&typeof e.set==\\\"function\\\"){var a=e.get,u=e.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=\\\"\\\"+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:e.enumerable}),{getValue:function(){return n},setValue:function(i){n=\\\"\\\"+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function Qc(t){if(!t._valueTracker){var l=v0(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=jm(t,l,\\\"\\\"+t[l])}}function p0(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var n=l.getValue(),e=\\\"\\\";return t&&(e=v0(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=e,t!==n?(l.setValue(t),!0):!1}function Yu(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var Zm=/[\\\\n\\\"\\\\\\\\]/g;function kt(t){return t.replace(Zm,function(l){return\\\"\\\\\\\\\\\"+l.charCodeAt(0).toString(16)+\\\" \\\"})}function jc(t,l,n,e,a,u,i,c){t.name=\\\"\\\",i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"?t.type=i:t.removeAttribute(\\\"type\\\"),l!=null?i===\\\"number\\\"?(l===0&&t.value===\\\"\\\"||t.value!=l)&&(t.value=\\\"\\\"+Ft(l)):t.value!==\\\"\\\"+Ft(l)&&(t.value=\\\"\\\"+Ft(l)):i!==\\\"submit\\\"&&i!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),l!=null?Zc(t,i,Ft(l)):n!=null?Zc(t,i,Ft(n)):e!=null&&t.removeAttribute(\\\"value\\\"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"),c!=null&&typeof c!=\\\"function\\\"&&typeof c!=\\\"symbol\\\"&&typeof c!=\\\"boolean\\\"?t.name=\\\"\\\"+Ft(c):t.removeAttribute(\\\"name\\\")}function S0(t,l,n,e,a,u,i,c){if(u!=null&&typeof u!=\\\"function\\\"&&typeof u!=\\\"symbol\\\"&&typeof u!=\\\"boolean\\\"&&(t.type=u),l!=null||n!=null){if(!(u!==\\\"submit\\\"&&u!==\\\"reset\\\"||l!=null)){Qc(t);return}n=n!=null?\\\"\\\"+Ft(n):\\\"\\\",l=l!=null?\\\"\\\"+Ft(l):n,c||l===t.value||(t.value=l),t.defaultValue=l}e=e??a,e=typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"&&!!e,t.checked=c?t.checked:!!e,t.defaultChecked=!!e,i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"&&(t.name=i),Qc(t)}function Zc(t,l,n){l===\\\"number\\\"&&Yu(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+n||(t.defaultValue=\\\"\\\"+n)}function de(t,l,n,e){if(t=t.options,l){l={};for(var a=0;a<n.length;a++)l[\\\"$\\\"+n[a]]=!0;for(n=0;n<t.length;n++)a=l.hasOwnProperty(\\\"$\\\"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&e&&(t[n].defaultSelected=!0)}else{for(n=\\\"\\\"+Ft(n),l=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,e&&(t[a].defaultSelected=!0);return}l!==null||t[a].disabled||(l=t[a])}l!==null&&(l.selected=!0)}}function E0(t,l,n){if(l!=null&&(l=\\\"\\\"+Ft(l),l!==t.value&&(t.value=l),n==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=n!=null?\\\"\\\"+Ft(n):\\\"\\\"}function b0(t,l,n,e){if(l==null){if(e!=null){if(n!=null)throw Error(S(92));if(Pe(e)){if(1<e.length)throw Error(S(93));e=e[0]}n=e}n==null&&(n=\\\"\\\"),l=n}n=Ft(l),t.defaultValue=n,e=t.textContent,e===n&&e!==\\\"\\\"&&e!==null&&(t.value=e),Qc(t)}function Te(t,l){if(l){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=l;return}}t.textContent=l}var Vm=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function qo(t,l,n){var e=l.indexOf(\\\"--\\\")===0;n==null||typeof n==\\\"boolean\\\"||n===\\\"\\\"?e?t.setProperty(l,\\\"\\\"):l===\\\"float\\\"?t.cssFloat=\\\"\\\":t[l]=\\\"\\\":e?t.setProperty(l,n):typeof n!=\\\"number\\\"||n===0||Vm.has(l)?l===\\\"float\\\"?t.cssFloat=n:t[l]=(\\\"\\\"+n).trim():t[l]=n+\\\"px\\\"}function A0(t,l,n){if(l!=null&&typeof l!=\\\"object\\\")throw Error(S(62));if(t=t.style,n!=null){for(var e in n)!n.hasOwnProperty(e)||l!=null&&l.hasOwnProperty(e)||(e.indexOf(\\\"--\\\")===0?t.setProperty(e,\\\"\\\"):e===\\\"float\\\"?t.cssFloat=\\\"\\\":t[e]=\\\"\\\");for(var a in l)e=l[a],l.hasOwnProperty(a)&&n[a]!==e&&qo(t,a,e)}else for(var u in l)l.hasOwnProperty(u)&&qo(t,u,l[u])}function Hf(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var Km=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),Jm=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function Eu(t){return Jm.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function xl(){}var Vc=null;function wf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ue=null,ge=null;function Yo(t){var l=Ce(t);if(l&&(t=l.stateNode)){var n=t[Mt]||null;t:switch(t=l.stateNode,l.type){case\\\"input\\\":if(jc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),l=n.name,n.type===\\\"radio\\\"&&l!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\\\"'+kt(\\\"\\\"+l)+'\\\"][type=\\\"radio\\\"]'),l=0;l<n.length;l++){var e=n[l];if(e!==t&&e.form===t.form){var a=e[Mt]||null;if(!a)throw Error(S(90));jc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(l=0;l<n.length;l++)e=n[l],e.form===t.form&&p0(e)}break t;case\\\"textarea\\\":E0(t,n.value,n.defaultValue);break t;case\\\"select\\\":l=n.value,l!=null&&de(t,!!n.multiple,l,!1)}}}var uc=!1;function T0(t,l,n){if(uc)return t(l,n);uc=!0;try{var e=t(l);return e}finally{if(uc=!1,(ue!==null||ge!==null)&&(bi(),ue&&(l=ue,t=ge,ge=ue=null,Yo(l),t)))for(l=0;l<t.length;l++)Yo(t[l])}}function va(t,l){var n=t.stateNode;if(n===null)return null;var e=n[Mt]||null;if(e===null)return null;n=e[l];t:switch(l){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(e=!e.disabled)||(t=t.type,e=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!e;break t;default:t=!1}if(t)return null;if(n&&typeof n!=\\\"function\\\")throw Error(S(231,l,typeof n));return n}var Rl=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),Kc=!1;if(Rl)try{kn={},Object.defineProperty(kn,\\\"passive\\\",{get:function(){Kc=!0}}),window.addEventListener(\\\"test\\\",kn,kn),window.removeEventListener(\\\"test\\\",kn,kn)}catch{Kc=!1}var kn,Il=null,qf=null,bu=null;function N0(){if(bu)return bu;var t,l=qf,n=l.length,e,a=\\\"value\\\"in Il?Il.value:Il.textContent,u=a.length;for(t=0;t<n&&l[t]===a[t];t++);var i=n-t;for(e=1;e<=i&&l[n-e]===a[u-e];e++);return bu=a.slice(t,1<e?1-e:void 0)}function Au(t){var l=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function iu(){return!0}function Lo(){return!1}function Ot(t){function l(n,e,a,u,i){this._reactName=n,this._targetInst=a,this.type=e,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(n=t[c],this[c]=n?n(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?iu:Lo,this.isPropagationStopped=Lo,this}return W(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\\\"unknown\\\"&&(n.returnValue=!1),this.isDefaultPrevented=iu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\\\"unknown\\\"&&(n.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),l}var qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oi=Ot(qn),Ha=W({},qn,{view:0,detail:0}),Fm=Ot(Ha),ic,cc,Ke,si=W({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==Ke&&(Ke&&t.type===\\\"mousemove\\\"?(ic=t.screenX-Ke.screenX,cc=t.screenY-Ke.screenY):cc=ic=0,Ke=t),ic)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:cc}}),Go=Ot(si),Wm=W({},si,{dataTransfer:0}),$m=Ot(Wm),km=W({},Ha,{relatedTarget:0}),fc=Ot(km),Im=W({},qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Pm=Ot(Im),td=W({},qn,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),ld=Ot(td),nd=W({},qn,{data:0}),Xo=Ot(nd),ed={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},ad={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},ud={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function id(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=ud[t])?!!l[t]:!1}function Yf(){return id}var cd=W({},Ha,{key:function(t){if(t.key){var l=ed[t.key]||t.key;if(l!==\\\"Unidentified\\\")return l}return t.type===\\\"keypress\\\"?(t=Au(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?ad[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yf,charCode:function(t){return t.type===\\\"keypress\\\"?Au(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?Au(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),fd=Ot(cd),rd=W({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qo=Ot(rd),od=W({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yf}),sd=Ot(od),hd=W({},qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yd=Ot(hd),md=W({},si,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),dd=Ot(md),gd=W({},qn,{newState:0,oldState:0}),vd=Ot(gd),pd=[9,13,27,32],Lf=Rl&&\\\"CompositionEvent\\\"in window,ea=null;Rl&&\\\"documentMode\\\"in document&&(ea=document.documentMode);var Sd=Rl&&\\\"TextEvent\\\"in window&&!ea,B0=Rl&&(!Lf||ea&&8<ea&&11>=ea),jo=\\\" \\\",Zo=!1;function z0(t,l){switch(t){case\\\"keyup\\\":return pd.indexOf(l.keyCode)!==-1;case\\\"keydown\\\":return l.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function U0(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var ie=!1;function Ed(t,l){switch(t){case\\\"compositionend\\\":return U0(l);case\\\"keypress\\\":return l.which!==32?null:(Zo=!0,jo);case\\\"textInput\\\":return t=l.data,t===jo&&Zo?null:t;default:return null}}function bd(t,l){if(ie)return t===\\\"compositionend\\\"||!Lf&&z0(t,l)?(t=N0(),bu=qf=Il=null,ie=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case\\\"compositionend\\\":return B0&&l.locale!==\\\"ko\\\"?null:l.data;default:return null}}var Ad={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vo(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l===\\\"input\\\"?!!Ad[t.type]:l===\\\"textarea\\\"}function _0(t,l,n,e){ue?ge?ge.push(e):ge=[e]:ue=e,l=ni(l,\\\"onChange\\\"),0<l.length&&(n=new oi(\\\"onChange\\\",\\\"change\\\",null,n,e),t.push({event:n,listeners:l}))}var aa=null,pa=null;function Td(t){Th(t,0)}function hi(t){var l=ta(t);if(p0(l))return t}function Ko(t,l){if(t===\\\"change\\\")return l}var x0=!1;Rl&&(Rl?(fu=\\\"oninput\\\"in document,fu||(rc=document.createElement(\\\"div\\\"),rc.setAttribute(\\\"oninput\\\",\\\"return;\\\"),fu=typeof rc.oninput==\\\"function\\\"),cu=fu):cu=!1,x0=cu&&(!document.documentMode||9<document.documentMode));var cu,fu,rc;function Jo(){aa&&(aa.detachEvent(\\\"onpropertychange\\\",M0),pa=aa=null)}function M0(t){if(t.propertyName===\\\"value\\\"&&hi(pa)){var l=[];_0(l,pa,t,wf(t)),T0(Td,l)}}function Nd(t,l,n){t===\\\"focusin\\\"?(Jo(),aa=l,pa=n,aa.attachEvent(\\\"onpropertychange\\\",M0)):t===\\\"focusout\\\"&&Jo()}function Bd(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return hi(pa)}function zd(t,l){if(t===\\\"click\\\")return hi(l)}function Ud(t,l){if(t===\\\"input\\\"||t===\\\"change\\\")return hi(l)}function _d(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var jt=typeof Object.is==\\\"function\\\"?Object.is:_d;function Sa(t,l){if(jt(t,l))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof l!=\\\"object\\\"||l===null)return!1;var n=Object.keys(t),e=Object.keys(l);if(n.length!==e.length)return!1;for(e=0;e<n.length;e++){var a=n[e];if(!Gc.call(l,a)||!jt(t[a],l[a]))return!1}return!0}function Fo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wo(t,l){var n=Fo(t);t=0;for(var e;n;){if(n.nodeType===3){if(e=t+n.textContent.length,t<=l&&e>=l)return{node:n,offset:l-t};t=e}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Fo(n)}}function O0(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?O0(t,l.parentNode):\\\"contains\\\"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function D0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Yu(t.document);l instanceof t.HTMLIFrameElement;){try{var n=typeof l.contentWindow.location.href==\\\"string\\\"}catch{n=!1}if(n)t=l.contentWindow;else break;l=Yu(t.document)}return l}function Gf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||l===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var xd=Rl&&\\\"documentMode\\\"in document&&11>=document.documentMode,ce=null,Jc=null,ua=null,Fc=!1;function $o(t,l,n){var e=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fc||ce==null||ce!==Yu(e)||(e=ce,\\\"selectionStart\\\"in e&&Gf(e)?e={start:e.selectionStart,end:e.selectionEnd}:(e=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection(),e={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}),ua&&Sa(ua,e)||(ua=e,e=ni(Jc,\\\"onSelect\\\"),0<e.length&&(l=new oi(\\\"onSelect\\\",\\\"select\\\",null,l,n),t.push({event:l,listeners:e}),l.target=ce)))}function bn(t,l){var n={};return n[t.toLowerCase()]=l.toLowerCase(),n[\\\"Webkit\\\"+t]=\\\"webkit\\\"+l,n[\\\"Moz\\\"+t]=\\\"moz\\\"+l,n}var fe={animationend:bn(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:bn(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:bn(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:bn(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:bn(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:bn(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:bn(\\\"Transition\\\",\\\"TransitionEnd\\\")},oc={},C0={};Rl&&(C0=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete fe.animationend.animation,delete fe.animationiteration.animation,delete fe.animationstart.animation),\\\"TransitionEvent\\\"in window||delete fe.transitionend.transition);function Yn(t){if(oc[t])return oc[t];if(!fe[t])return t;var l=fe[t],n;for(n in l)if(l.hasOwnProperty(n)&&n in C0)return oc[t]=l[n];return t}var R0=Yn(\\\"animationend\\\"),H0=Yn(\\\"animationiteration\\\"),w0=Yn(\\\"animationstart\\\"),Md=Yn(\\\"transitionrun\\\"),Od=Yn(\\\"transitionstart\\\"),Dd=Yn(\\\"transitioncancel\\\"),q0=Yn(\\\"transitionend\\\"),Y0=new Map,Wc=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");Wc.push(\\\"scrollEnd\\\");function fl(t,l){Y0.set(t,l),wn(l,[t])}var Lu=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},Jt=[],re=0,Xf=0;function yi(){for(var t=re,l=Xf=re=0;l<t;){var n=Jt[l];Jt[l++]=null;var e=Jt[l];Jt[l++]=null;var a=Jt[l];Jt[l++]=null;var u=Jt[l];if(Jt[l++]=null,e!==null&&a!==null){var i=e.pending;i===null?a.next=a:(a.next=i.next,i.next=a),e.pending=a}u!==0&&L0(n,a,u)}}function mi(t,l,n,e){Jt[re++]=t,Jt[re++]=l,Jt[re++]=n,Jt[re++]=e,Xf|=e,t.lanes|=e,t=t.alternate,t!==null&&(t.lanes|=e)}function Qf(t,l,n,e){return mi(t,l,n,e),Gu(t)}function Ln(t,l){return mi(t,null,null,l),Gu(t)}function L0(t,l,n){t.lanes|=n;var e=t.alternate;e!==null&&(e.lanes|=n);for(var a=!1,u=t.return;u!==null;)u.childLanes|=n,e=u.alternate,e!==null&&(e.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&l!==null&&(a=31-Xt(n),t=u.hiddenUpdates,e=t[a],e===null?t[a]=[l]:e.push(l),l.lane=n|536870912),u):null}function Gu(t){if(50<ma)throw ma=0,vf=null,Error(S(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var oe={};function Cd(t,l,n,e){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(t,l,n,e){return new Cd(t,l,n,e)}function jf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ol(t,l){var n=t.alternate;return n===null?(n=qt(t.tag,l,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=l,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,l=t.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function G0(t,l){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,l=n.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Tu(t,l,n,e,a,u){var i=0;if(e=t,typeof t==\\\"function\\\")jf(t)&&(i=1);else if(typeof t==\\\"string\\\")i=wg(t,n,gl.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else t:switch(t){case wc:return t=qt(31,n,l,a),t.elementType=wc,t.lanes=u,t;case ne:return Un(n.children,a,u,l);case u0:i=8,a|=24;break;case Cc:return t=qt(12,n,l,a|2),t.elementType=Cc,t.lanes=u,t;case Rc:return t=qt(13,n,l,a),t.elementType=Rc,t.lanes=u,t;case Hc:return t=qt(19,n,l,a),t.elementType=Hc,t.lanes=u,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case _l:i=10;break t;case i0:i=9;break t;case xf:i=11;break t;case Mf:i=14;break t;case Vl:i=16,e=null;break t}i=29,n=Error(S(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),e=null}return l=qt(i,n,l,a),l.elementType=t,l.type=e,l.lanes=u,l}function Un(t,l,n,e){return t=qt(7,t,e,l),t.lanes=n,t}function sc(t,l,n){return t=qt(6,t,null,l),t.lanes=n,t}function X0(t){var l=qt(18,null,null,0);return l.stateNode=t,l}function hc(t,l,n){return l=qt(4,t.children!==null?t.children:[],t.key,l),l.lanes=n,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var ko=new WeakMap;function It(t,l){if(typeof t==\\\"object\\\"&&t!==null){var n=ko.get(t);return n!==void 0?n:(l={value:t,source:l,stack:Do(l)},ko.set(t,l),l)}return{value:t,source:l,stack:Do(l)}}var se=[],he=0,Xu=null,Ea=0,Wt=[],$t=0,hn=null,yl=1,ml=\\\"\\\";function zl(t,l){se[he++]=Ea,se[he++]=Xu,Xu=t,Ea=l}function Q0(t,l,n){Wt[$t++]=yl,Wt[$t++]=ml,Wt[$t++]=hn,hn=t;var e=yl;t=ml;var a=32-Xt(e)-1;e&=~(1<<a),n+=1;var u=32-Xt(l)+a;if(30<u){var i=a-a%5;u=(e&(1<<i)-1).toString(32),e>>=i,a-=i,yl=1<<32-Xt(l)+a|n<<a|e,ml=u+t}else yl=1<<u|n<<a|e,ml=t}function Zf(t){t.return!==null&&(zl(t,1),Q0(t,1,0))}function Vf(t){for(;t===Xu;)Xu=se[--he],se[he]=null,Ea=se[--he],se[he]=null;for(;t===hn;)hn=Wt[--$t],Wt[$t]=null,ml=Wt[--$t],Wt[$t]=null,yl=Wt[--$t],Wt[$t]=null}function j0(t,l){Wt[$t++]=yl,Wt[$t++]=ml,Wt[$t++]=hn,yl=l.id,ml=l.overflow,hn=t}var mt=null,F=null,q=!1,en=null,Pt=!1,$c=Error(S(519));function yn(t){var l=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw ba(It(l,t)),$c}function Io(t){var l=t.stateNode,n=t.type,e=t.memoizedProps;switch(l[yt]=t,l[Mt]=e,n){case\\\"dialog\\\":O(\\\"cancel\\\",l),O(\\\"close\\\",l);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":O(\\\"load\\\",l);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<Ba.length;n++)O(Ba[n],l);break;case\\\"source\\\":O(\\\"error\\\",l);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":O(\\\"error\\\",l),O(\\\"load\\\",l);break;case\\\"details\\\":O(\\\"toggle\\\",l);break;case\\\"input\\\":O(\\\"invalid\\\",l),S0(l,e.value,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name,!0);break;case\\\"select\\\":O(\\\"invalid\\\",l);break;case\\\"textarea\\\":O(\\\"invalid\\\",l),b0(l,e.value,e.defaultValue,e.children)}n=e.children,typeof n!=\\\"string\\\"&&typeof n!=\\\"number\\\"&&typeof n!=\\\"bigint\\\"||l.textContent===\\\"\\\"+n||e.suppressHydrationWarning===!0||Bh(l.textContent,n)?(e.popover!=null&&(O(\\\"beforetoggle\\\",l),O(\\\"toggle\\\",l)),e.onScroll!=null&&O(\\\"scroll\\\",l),e.onScrollEnd!=null&&O(\\\"scrollend\\\",l),e.onClick!=null&&(l.onclick=xl),l=!0):l=!1,l||yn(t,!0)}function Po(t){for(mt=t.return;mt;)switch(mt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:mt=mt.return}}function In(t){if(t!==mt)return!1;if(!q)return Po(t),q=!0,!1;var l=t.tag,n;if((n=l!==3&&l!==27)&&((n=l===5)&&(n=t.type,n=!(n!==\\\"form\\\"&&n!==\\\"button\\\")||Af(t.type,t.memoizedProps)),n=!n),n&&F&&yn(t),Po(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));F=Xs(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));F=Xs(t)}else l===27?(l=F,vn(t.type)?(t=zf,zf=null,F=t):F=l):F=mt?ll(t.stateNode.nextSibling):null;return!0}function On(){F=mt=null,q=!1}function yc(){var t=en;return t!==null&&(_t===null?_t=t:_t.push.apply(_t,t),en=null),t}function ba(t){en===null?en=[t]:en.push(t)}var kc=vl(null),Gn=null,Ml=null;function Jl(t,l,n){V(kc,l._currentValue),l._currentValue=n}function Dl(t){t._currentValue=kc.current,st(kc)}function Ic(t,l,n){for(;t!==null;){var e=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,e!==null&&(e.childLanes|=l)):e!==null&&(e.childLanes&l)!==l&&(e.childLanes|=l),t===n)break;t=t.return}}function Pc(t,l,n,e){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=a;for(var f=0;f<l.length;f++)if(c.context===l[f]){u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),Ic(u.return,n,t),e||(i=null);break t}u=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(S(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ic(i,n,t),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Re(t,l,n,e){t=null;for(var a=l,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(S(387));if(i=i.memoizedProps,i!==null){var c=a.type;jt(a.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(a===Ru.current){if(i=a.alternate,i===null)throw Error(S(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ua):t=[Ua])}a=a.return}t!==null&&Pc(l,t,n,e),l.flags|=262144}function Qu(t){for(t=t.firstContext;t!==null;){if(!jt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Dn(t){Gn=t,Ml=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function dt(t){return Z0(Gn,t)}function ru(t,l){return Gn===null&&Dn(t),Z0(t,l)}function Z0(t,l){var n=l._currentValue;if(l={context:l,memoizedValue:n,next:null},Ml===null){if(t===null)throw Error(S(308));Ml=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Ml=Ml.next=l;return n}var Rd=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(n,e){t.push(e)}};this.abort=function(){l.aborted=!0,t.forEach(function(n){return n()})}},Hd=ct.unstable_scheduleCallback,wd=ct.unstable_NormalPriority,at={$$typeof:_l,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kf(){return{controller:new Rd,data:new Map,refCount:0}}function wa(t){t.refCount--,t.refCount===0&&Hd(wd,function(){t.controller.abort()})}var ia=null,tf=0,Ne=0,ve=null;function qd(t,l){if(ia===null){var n=ia=[];tf=0,Ne=vr(),ve={status:\\\"pending\\\",value:void 0,then:function(e){n.push(e)}}}return tf++,l.then(ts,ts),l}function ts(){if(--tf===0&&ia!==null){ve!==null&&(ve.status=\\\"fulfilled\\\");var t=ia;ia=null,Ne=0,ve=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function Yd(t,l){var n=[],e={status:\\\"pending\\\",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){e.status=\\\"fulfilled\\\",e.value=l;for(var a=0;a<n.length;a++)(0,n[a])(l)},function(a){for(e.status=\\\"rejected\\\",e.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),e}var ls=N.S;N.S=function(t,l){ah=Lt(),typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\"&&qd(t,l),ls!==null&&ls(t,l)};var _n=vl(null);function Jf(){var t=_n.current;return t!==null?t:Z.pooledCache}function Nu(t,l){l===null?V(_n,_n.current):V(_n,l.pool)}function V0(){var t=Jf();return t===null?null:{parent:at._currentValue,pool:t}}var He=Error(S(460)),Ff=Error(S(474)),di=Error(S(542)),ju={then:function(){}};function ns(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function K0(t,l,n){switch(n=t[n],n===void 0?t.push(l):n!==l&&(l.then(xl,xl),l=n),l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,as(t),t;default:if(typeof l.status==\\\"string\\\")l.then(xl,xl);else{if(t=Z,t!==null&&100<t.shellSuspendCounter)throw Error(S(482));t=l,t.status=\\\"pending\\\",t.then(function(e){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"fulfilled\\\",a.value=e}},function(e){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"rejected\\\",a.reason=e}})}switch(l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,as(t),t}throw xn=l,He}}function Nn(t){try{var l=t._init;return l(t._payload)}catch(n){throw n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?(xn=n,He):n}}var xn=null;function es(){if(xn===null)throw Error(S(459));var t=xn;return xn=null,t}function as(t){if(t===He||t===di)throw Error(S(483))}var pe=null,Aa=0;function ou(t){var l=Aa;return Aa+=1,pe===null&&(pe=[]),K0(pe,t,l)}function Je(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function su(t,l){throw l.$$typeof===Nm?Error(S(525)):(t=Object.prototype.toString.call(l),Error(S(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(l).join(\\\", \\\")+\\\"}\\\":t)))}function J0(t){function l(s,o){if(t){var h=s.deletions;h===null?(s.deletions=[o],s.flags|=16):h.push(o)}}function n(s,o){if(!t)return null;for(;o!==null;)l(s,o),o=o.sibling;return null}function e(s){for(var o=new Map;s!==null;)s.key!==null?o.set(s.key,s):o.set(s.index,s),s=s.sibling;return o}function a(s,o){return s=Ol(s,o),s.index=0,s.sibling=null,s}function u(s,o,h){return s.index=h,t?(h=s.alternate,h!==null?(h=h.index,h<o?(s.flags|=67108866,o):h):(s.flags|=67108866,o)):(s.flags|=1048576,o)}function i(s){return t&&s.alternate===null&&(s.flags|=67108866),s}function c(s,o,h,p){return o===null||o.tag!==6?(o=sc(h,s.mode,p),o.return=s,o):(o=a(o,h),o.return=s,o)}function f(s,o,h,p){var T=h.type;return T===ne?y(s,o,h.props.children,p,h.key):o!==null&&(o.elementType===T||typeof T==\\\"object\\\"&&T!==null&&T.$$typeof===Vl&&Nn(T)===o.type)?(o=a(o,h.props),Je(o,h),o.return=s,o):(o=Tu(h.type,h.key,h.props,null,s.mode,p),Je(o,h),o.return=s,o)}function r(s,o,h,p){return o===null||o.tag!==4||o.stateNode.containerInfo!==h.containerInfo||o.stateNode.implementation!==h.implementation?(o=hc(h,s.mode,p),o.return=s,o):(o=a(o,h.children||[]),o.return=s,o)}function y(s,o,h,p,T){return o===null||o.tag!==7?(o=Un(h,s.mode,p,T),o.return=s,o):(o=a(o,h),o.return=s,o)}function g(s,o,h){if(typeof o==\\\"string\\\"&&o!==\\\"\\\"||typeof o==\\\"number\\\"||typeof o==\\\"bigint\\\")return o=sc(\\\"\\\"+o,s.mode,h),o.return=s,o;if(typeof o==\\\"object\\\"&&o!==null){switch(o.$$typeof){case lu:return h=Tu(o.type,o.key,o.props,null,s.mode,h),Je(h,o),h.return=s,h;case Ie:return o=hc(o,s.mode,h),o.return=s,o;case Vl:return o=Nn(o),g(s,o,h)}if(Pe(o)||Ve(o))return o=Un(o,s.mode,h,null),o.return=s,o;if(typeof o.then==\\\"function\\\")return g(s,ou(o),h);if(o.$$typeof===_l)return g(s,ru(s,o),h);su(s,o)}return null}function d(s,o,h,p){var T=o!==null?o.key:null;if(typeof h==\\\"string\\\"&&h!==\\\"\\\"||typeof h==\\\"number\\\"||typeof h==\\\"bigint\\\")return T!==null?null:c(s,o,\\\"\\\"+h,p);if(typeof h==\\\"object\\\"&&h!==null){switch(h.$$typeof){case lu:return h.key===T?f(s,o,h,p):null;case Ie:return h.key===T?r(s,o,h,p):null;case Vl:return h=Nn(h),d(s,o,h,p)}if(Pe(h)||Ve(h))return T!==null?null:y(s,o,h,p,null);if(typeof h.then==\\\"function\\\")return d(s,o,ou(h),p);if(h.$$typeof===_l)return d(s,o,ru(s,h),p);su(s,h)}return null}function m(s,o,h,p,T){if(typeof p==\\\"string\\\"&&p!==\\\"\\\"||typeof p==\\\"number\\\"||typeof p==\\\"bigint\\\")return s=s.get(h)||null,c(o,s,\\\"\\\"+p,T);if(typeof p==\\\"object\\\"&&p!==null){switch(p.$$typeof){case lu:return s=s.get(p.key===null?h:p.key)||null,f(o,s,p,T);case Ie:return s=s.get(p.key===null?h:p.key)||null,r(o,s,p,T);case Vl:return p=Nn(p),m(s,o,h,p,T)}if(Pe(p)||Ve(p))return s=s.get(h)||null,y(o,s,p,T,null);if(typeof p.then==\\\"function\\\")return m(s,o,h,ou(p),T);if(p.$$typeof===_l)return m(s,o,h,ru(o,p),T);su(o,p)}return null}function E(s,o,h,p){for(var T=null,R=null,A=o,z=o=0,M=null;A!==null&&z<h.length;z++){A.index>z?(M=A,A=null):M=A.sibling;var H=d(s,A,h[z],p);if(H===null){A===null&&(A=M);break}t&&A&&H.alternate===null&&l(s,A),o=u(H,o,z),R===null?T=H:R.sibling=H,R=H,A=M}if(z===h.length)return n(s,A),q&&zl(s,z),T;if(A===null){for(;z<h.length;z++)A=g(s,h[z],p),A!==null&&(o=u(A,o,z),R===null?T=A:R.sibling=A,R=A);return q&&zl(s,z),T}for(A=e(A);z<h.length;z++)M=m(A,s,z,h[z],p),M!==null&&(t&&M.alternate!==null&&A.delete(M.key===null?z:M.key),o=u(M,o,z),R===null?T=M:R.sibling=M,R=M);return t&&A.forEach(function(ul){return l(s,ul)}),q&&zl(s,z),T}function b(s,o,h,p){if(h==null)throw Error(S(151));for(var T=null,R=null,A=o,z=o=0,M=null,H=h.next();A!==null&&!H.done;z++,H=h.next()){A.index>z?(M=A,A=null):M=A.sibling;var ul=d(s,A,H.value,p);if(ul===null){A===null&&(A=M);break}t&&A&&ul.alternate===null&&l(s,A),o=u(ul,o,z),R===null?T=ul:R.sibling=ul,R=ul,A=M}if(H.done)return n(s,A),q&&zl(s,z),T;if(A===null){for(;!H.done;z++,H=h.next())H=g(s,H.value,p),H!==null&&(o=u(H,o,z),R===null?T=H:R.sibling=H,R=H);return q&&zl(s,z),T}for(A=e(A);!H.done;z++,H=h.next())H=m(A,s,z,H.value,p),H!==null&&(t&&H.alternate!==null&&A.delete(H.key===null?z:H.key),o=u(H,o,z),R===null?T=H:R.sibling=H,R=H);return t&&A.forEach(function(Ui){return l(s,Ui)}),q&&zl(s,z),T}function x(s,o,h,p){if(typeof h==\\\"object\\\"&&h!==null&&h.type===ne&&h.key===null&&(h=h.props.children),typeof h==\\\"object\\\"&&h!==null){switch(h.$$typeof){case lu:t:{for(var T=h.key;o!==null;){if(o.key===T){if(T=h.type,T===ne){if(o.tag===7){n(s,o.sibling),p=a(o,h.props.children),p.return=s,s=p;break t}}else if(o.elementType===T||typeof T==\\\"object\\\"&&T!==null&&T.$$typeof===Vl&&Nn(T)===o.type){n(s,o.sibling),p=a(o,h.props),Je(p,h),p.return=s,s=p;break t}n(s,o);break}else l(s,o);o=o.sibling}h.type===ne?(p=Un(h.props.children,s.mode,p,h.key),p.return=s,s=p):(p=Tu(h.type,h.key,h.props,null,s.mode,p),Je(p,h),p.return=s,s=p)}return i(s);case Ie:t:{for(T=h.key;o!==null;){if(o.key===T)if(o.tag===4&&o.stateNode.containerInfo===h.containerInfo&&o.stateNode.implementation===h.implementation){n(s,o.sibling),p=a(o,h.children||[]),p.return=s,s=p;break t}else{n(s,o);break}else l(s,o);o=o.sibling}p=hc(h,s.mode,p),p.return=s,s=p}return i(s);case Vl:return h=Nn(h),x(s,o,h,p)}if(Pe(h))return E(s,o,h,p);if(Ve(h)){if(T=Ve(h),typeof T!=\\\"function\\\")throw Error(S(150));return h=T.call(h),b(s,o,h,p)}if(typeof h.then==\\\"function\\\")return x(s,o,ou(h),p);if(h.$$typeof===_l)return x(s,o,ru(s,h),p);su(s,h)}return typeof h==\\\"string\\\"&&h!==\\\"\\\"||typeof h==\\\"number\\\"||typeof h==\\\"bigint\\\"?(h=\\\"\\\"+h,o!==null&&o.tag===6?(n(s,o.sibling),p=a(o,h),p.return=s,s=p):(n(s,o),p=sc(h,s.mode,p),p.return=s,s=p),i(s)):n(s,o)}return function(s,o,h,p){try{Aa=0;var T=x(s,o,h,p);return pe=null,T}catch(A){if(A===He||A===di)throw A;var R=qt(29,A,null,s.mode);return R.lanes=p,R.return=s,R}}}var Cn=J0(!0),F0=J0(!1),Kl=!1;function Wf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lf(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function an(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function un(t,l,n){var e=t.updateQueue;if(e===null)return null;if(e=e.shared,(Y&2)!==0){var a=e.pending;return a===null?l.next=l:(l.next=a.next,a.next=l),e.pending=l,l=Gu(t),L0(t,null,n),l}return mi(t,e,l,n),Gu(t)}function ca(t,l,n){if(l=l.updateQueue,l!==null&&(l=l.shared,(n&4194048)!==0)){var e=l.lanes;e&=t.pendingLanes,n|=e,l.lanes=n,h0(t,n)}}function mc(t,l){var n=t.updateQueue,e=t.alternate;if(e!==null&&(e=e.updateQueue,n===e)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,n=n.next}while(n!==null);u===null?a=u=l:u=u.next=l}else a=u=l;n={baseState:e.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:e.shared,callbacks:e.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=l:t.next=l,n.lastBaseUpdate=l}var nf=!1;function fa(){if(nf){var t=ve;if(t!==null)throw t}}function ra(t,l,n,e){nf=!1;var a=t.updateQueue;Kl=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var f=c,r=f.next;f.next=null,i===null?u=r:i.next=r,i=f;var y=t.alternate;y!==null&&(y=y.updateQueue,c=y.lastBaseUpdate,c!==i&&(c===null?y.firstBaseUpdate=r:c.next=r,y.lastBaseUpdate=f))}if(u!==null){var g=a.baseState;i=0,y=r=f=null,c=u;do{var d=c.lane&-536870913,m=d!==c.lane;if(m?(w&d)===d:(e&d)===d){d!==0&&d===Ne&&(nf=!0),y!==null&&(y=y.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var E=t,b=c;d=l;var x=n;switch(b.tag){case 1:if(E=b.payload,typeof E==\\\"function\\\"){g=E.call(x,g,d);break t}g=E;break t;case 3:E.flags=E.flags&-65537|128;case 0:if(E=b.payload,d=typeof E==\\\"function\\\"?E.call(x,g,d):E,d==null)break t;g=W({},g,d);break t;case 2:Kl=!0}}d=c.callback,d!==null&&(t.flags|=64,m&&(t.flags|=8192),m=a.callbacks,m===null?a.callbacks=[d]:m.push(d))}else m={lane:d,tag:c.tag,payload:c.payload,callback:c.callback,next:null},y===null?(r=y=m,f=g):y=y.next=m,i|=d;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;m=c,c=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);y===null&&(f=g),a.baseState=f,a.firstBaseUpdate=r,a.lastBaseUpdate=y,u===null&&(a.shared.lanes=0),dn|=i,t.lanes=i,t.memoizedState=g}}function W0(t,l){if(typeof t!=\\\"function\\\")throw Error(S(191,t));t.call(l)}function $0(t,l){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)W0(n[t],l)}var Be=vl(null),Zu=vl(0);function us(t,l){t=Yl,V(Zu,t),V(Be,l),Yl=t|l.baseLanes}function ef(){V(Zu,Yl),V(Be,Be.current)}function $f(){Yl=Zu.current,st(Be),st(Zu)}var Zt=vl(null),tl=null;function Fl(t){var l=t.alternate;V(tt,tt.current&1),V(Zt,t),tl===null&&(l===null||Be.current!==null||l.memoizedState!==null)&&(tl=t)}function af(t){V(tt,tt.current),V(Zt,t),tl===null&&(tl=t)}function k0(t){t.tag===22?(V(tt,tt.current),V(Zt,t),tl===null&&(tl=t)):Wl(t)}function Wl(){V(tt,tt.current),V(Zt,Zt.current)}function wt(t){st(Zt),tl===t&&(tl=null),st(tt)}var tt=vl(0);function Vu(t){for(var l=t;l!==null;){if(l.tag===13){var n=l.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Nf(n)||Bf(n)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder===\\\"forwards\\\"||l.memoizedProps.revealOrder===\\\"backwards\\\"||l.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||l.memoizedProps.revealOrder===\\\"together\\\")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Hl=0,_=null,j=null,nt=null,Ku=!1,Se=!1,Rn=!1,Ju=0,Ta=0,Ee=null,Ld=0;function I(){throw Error(S(321))}function kf(t,l){if(l===null)return!1;for(var n=0;n<l.length&&n<t.length;n++)if(!jt(t[n],l[n]))return!1;return!0}function If(t,l,n,e,a,u){return Hl=u,_=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,N.H=t===null||t.memoizedState===null?_1:rr,Rn=!1,u=n(e,a),Rn=!1,Se&&(u=P0(l,n,e,a)),I0(t),u}function I0(t){N.H=Na;var l=j!==null&&j.next!==null;if(Hl=0,nt=j=_=null,Ku=!1,Ta=0,Ee=null,l)throw Error(S(300));t===null||ut||(t=t.dependencies,t!==null&&Qu(t)&&(ut=!0))}function P0(t,l,n,e){_=t;var a=0;do{if(Se&&(Ee=null),Ta=0,Se=!1,25<=a)throw Error(S(301));if(a+=1,nt=j=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=x1,u=l(n,e)}while(Se);return u}function Gd(){var t=N.H,l=t.useState()[0];return l=typeof l.then==\\\"function\\\"?qa(l):l,t=t.useState()[0],(j!==null?j.memoizedState:null)!==t&&(_.flags|=1024),l}function Pf(){var t=Ju!==0;return Ju=0,t}function tr(t,l,n){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~n}function lr(t){if(Ku){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}Ku=!1}Hl=0,nt=j=_=null,Se=!1,Ta=Ju=0,Ee=null}function bt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?_.memoizedState=nt=t:nt=nt.next=t,nt}function lt(){if(j===null){var t=_.alternate;t=t!==null?t.memoizedState:null}else t=j.next;var l=nt===null?_.memoizedState:nt.next;if(l!==null)nt=l,j=t;else{if(t===null)throw _.alternate===null?Error(S(467)):Error(S(310));j=t,t={memoizedState:j.memoizedState,baseState:j.baseState,baseQueue:j.baseQueue,queue:j.queue,next:null},nt===null?_.memoizedState=nt=t:nt=nt.next=t}return nt}function gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qa(t){var l=Ta;return Ta+=1,Ee===null&&(Ee=[]),t=K0(Ee,t,l),l=_,(nt===null?l.memoizedState:nt.next)===null&&(l=l.alternate,N.H=l===null||l.memoizedState===null?_1:rr),t}function vi(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return qa(t);if(t.$$typeof===_l)return dt(t)}throw Error(S(438,String(t)))}function nr(t){var l=null,n=_.updateQueue;if(n!==null&&(l=n.memoCache),l==null){var e=_.alternate;e!==null&&(e=e.updateQueue,e!==null&&(e=e.memoCache,e!=null&&(l={data:e.data.map(function(a){return a.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),n===null&&(n=gi(),_.updateQueue=n),n.memoCache=l,n=l.data[l.index],n===void 0)for(n=l.data[l.index]=Array(t),e=0;e<t;e++)n[e]=Bm;return l.index++,n}function wl(t,l){return typeof l==\\\"function\\\"?l(t):l}function Bu(t){var l=lt();return er(l,j,t)}function er(t,l,n){var e=t.queue;if(e===null)throw Error(S(311));e.lastRenderedReducer=n;var a=t.baseQueue,u=e.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}l.baseQueue=a=u,e.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{l=a.next;var c=i=null,f=null,r=l,y=!1;do{var g=r.lane&-536870913;if(g!==r.lane?(w&g)===g:(Hl&g)===g){var d=r.revertLane;if(d===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null}),g===Ne&&(y=!0);else if((Hl&d)===d){r=r.next,d===Ne&&(y=!0);continue}else g={lane:0,revertLane:r.revertLane,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=g,i=u):f=f.next=g,_.lanes|=d,dn|=d;g=r.action,Rn&&n(u,g),u=r.hasEagerState?r.eagerState:n(u,g)}else d={lane:g,revertLane:r.revertLane,gesture:r.gesture,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=d,i=u):f=f.next=d,_.lanes|=g,dn|=g;r=r.next}while(r!==null&&r!==l);if(f===null?i=u:f.next=c,!jt(u,t.memoizedState)&&(ut=!0,y&&(n=ve,n!==null)))throw n;t.memoizedState=u,t.baseState=i,t.baseQueue=f,e.lastRenderedState=u}return a===null&&(e.lanes=0),[t.memoizedState,e.dispatch]}function dc(t){var l=lt(),n=l.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=t;var e=n.dispatch,a=n.pending,u=l.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do u=t(u,i.action),i=i.next;while(i!==a);jt(u,l.memoizedState)||(ut=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),n.lastRenderedState=u}return[u,e]}function t1(t,l,n){var e=_,a=lt(),u=q;if(u){if(n===void 0)throw Error(S(407));n=n()}else n=l();var i=!jt((j||a).memoizedState,n);if(i&&(a.memoizedState=n,ut=!0),a=a.queue,ar(e1.bind(null,e,a,t),[t]),a.getSnapshot!==l||i||nt!==null&&nt.memoizedState.tag&1){if(e.flags|=2048,ze(9,{destroy:void 0},n1.bind(null,e,a,n,l),null),Z===null)throw Error(S(349));u||(Hl&127)!==0||l1(e,l,n)}return n}function l1(t,l,n){t.flags|=16384,t={getSnapshot:l,value:n},l=_.updateQueue,l===null?(l=gi(),_.updateQueue=l,l.stores=[t]):(n=l.stores,n===null?l.stores=[t]:n.push(t))}function n1(t,l,n,e){l.value=n,l.getSnapshot=e,a1(l)&&u1(t)}function e1(t,l,n){return n(function(){a1(l)&&u1(t)})}function a1(t){var l=t.getSnapshot;t=t.value;try{var n=l();return!jt(t,n)}catch{return!0}}function u1(t){var l=Ln(t,2);l!==null&&xt(l,t,2)}function uf(t){var l=bt();if(typeof t==\\\"function\\\"){var n=t;if(t=n(),Rn){kl(!0);try{n()}finally{kl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:t},l}function i1(t,l,n,e){return t.baseState=n,er(t,j,typeof e==\\\"function\\\"?e:wl)}function Xd(t,l,n,e,a){if(Si(t))throw Error(S(485));if(t=l.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};N.T!==null?n(!0):u.isTransition=!1,e(u),n=l.pending,n===null?(u.next=l.pending=u,c1(l,u)):(u.next=n.next,l.pending=n.next=u)}}function c1(t,l){var n=l.action,e=l.payload,a=t.state;if(l.isTransition){var u=N.T,i={};N.T=i;try{var c=n(a,e),f=N.S;f!==null&&f(i,c),is(t,l,c)}catch(r){cf(t,l,r)}finally{u!==null&&i.types!==null&&(u.types=i.types),N.T=u}}else try{u=n(a,e),is(t,l,u)}catch(r){cf(t,l,r)}}function is(t,l,n){n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"?n.then(function(e){cs(t,l,e)},function(e){return cf(t,l,e)}):cs(t,l,n)}function cs(t,l,n){l.status=\\\"fulfilled\\\",l.value=n,f1(l),t.state=n,l=t.pending,l!==null&&(n=l.next,n===l?t.pending=null:(n=n.next,l.next=n,c1(t,n)))}function cf(t,l,n){var e=t.pending;if(t.pending=null,e!==null){e=e.next;do l.status=\\\"rejected\\\",l.reason=n,f1(l),l=l.next;while(l!==e)}t.action=null}function f1(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function r1(t,l){return l}function fs(t,l){if(q){var n=Z.formState;if(n!==null){t:{var e=_;if(q){if(F){l:{for(var a=F,u=Pt;a.nodeType!==8;){if(!u){a=null;break l}if(a=ll(a.nextSibling),a===null){a=null;break l}}u=a.data,a=u===\\\"F!\\\"||u===\\\"F\\\"?a:null}if(a){F=ll(a.nextSibling),e=a.data===\\\"F!\\\";break t}}yn(e)}e=!1}e&&(l=n[0])}}return n=bt(),n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r1,lastRenderedState:l},n.queue=e,n=B1.bind(null,_,e),e.dispatch=n,e=uf(!1),u=fr.bind(null,_,!1,e.queue),e=bt(),a={state:l,dispatch:null,action:t,pending:null},e.queue=a,n=Xd.bind(null,_,a,u,n),a.dispatch=n,e.memoizedState=t,[l,n,!1]}function rs(t){var l=lt();return o1(l,j,t)}function o1(t,l,n){if(l=er(t,l,r1)[0],t=Bu(wl)[0],typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\")try{var e=qa(l)}catch(i){throw i===He?di:i}else e=l;l=lt();var a=l.queue,u=a.dispatch;return n!==l.memoizedState&&(_.flags|=2048,ze(9,{destroy:void 0},Qd.bind(null,a,n),null)),[e,u,t]}function Qd(t,l){t.action=l}function os(t){var l=lt(),n=j;if(n!==null)return o1(l,n,t);lt(),l=l.memoizedState,n=lt();var e=n.queue.dispatch;return n.memoizedState=t,[l,e,!1]}function ze(t,l,n,e){return t={tag:t,create:n,deps:e,inst:l,next:null},l=_.updateQueue,l===null&&(l=gi(),_.updateQueue=l),n=l.lastEffect,n===null?l.lastEffect=t.next=t:(e=n.next,n.next=t,t.next=e,l.lastEffect=t),t}function s1(){return lt().memoizedState}function zu(t,l,n,e){var a=bt();_.flags|=t,a.memoizedState=ze(1|l,{destroy:void 0},n,e===void 0?null:e)}function pi(t,l,n,e){var a=lt();e=e===void 0?null:e;var u=a.memoizedState.inst;j!==null&&e!==null&&kf(e,j.memoizedState.deps)?a.memoizedState=ze(l,u,n,e):(_.flags|=t,a.memoizedState=ze(1|l,u,n,e))}function ss(t,l){zu(8390656,8,t,l)}function ar(t,l){pi(2048,8,t,l)}function jd(t){_.flags|=4;var l=_.updateQueue;if(l===null)l=gi(),_.updateQueue=l,l.events=[t];else{var n=l.events;n===null?l.events=[t]:n.push(t)}}function h1(t){var l=lt().memoizedState;return jd({ref:l,nextImpl:t}),function(){if((Y&2)!==0)throw Error(S(440));return l.impl.apply(void 0,arguments)}}function y1(t,l){return pi(4,2,t,l)}function m1(t,l){return pi(4,4,t,l)}function d1(t,l){if(typeof l==\\\"function\\\"){t=t();var n=l(t);return function(){typeof n==\\\"function\\\"?n():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function g1(t,l,n){n=n!=null?n.concat([t]):null,pi(4,4,d1.bind(null,l,t),n)}function ur(){}function v1(t,l){var n=lt();l=l===void 0?null:l;var e=n.memoizedState;return l!==null&&kf(l,e[1])?e[0]:(n.memoizedState=[t,l],t)}function p1(t,l){var n=lt();l=l===void 0?null:l;var e=n.memoizedState;if(l!==null&&kf(l,e[1]))return e[0];if(e=t(),Rn){kl(!0);try{t()}finally{kl(!1)}}return n.memoizedState=[e,l],e}function ir(t,l,n){return n===void 0||(Hl&1073741824)!==0&&(w&261930)===0?t.memoizedState=l:(t.memoizedState=n,t=ih(),_.lanes|=t,dn|=t,n)}function S1(t,l,n,e){return jt(n,l)?n:Be.current!==null?(t=ir(t,n,e),jt(t,l)||(ut=!0),t):(Hl&42)===0||(Hl&1073741824)!==0&&(w&261930)===0?(ut=!0,t.memoizedState=n):(t=ih(),_.lanes|=t,dn|=t,l)}function E1(t,l,n,e,a){var u=L.p;L.p=u!==0&&8>u?u:8;var i=N.T,c={};N.T=c,fr(t,!1,l,n);try{var f=a(),r=N.S;if(r!==null&&r(c,f),f!==null&&typeof f==\\\"object\\\"&&typeof f.then==\\\"function\\\"){var y=Yd(f,e);oa(t,l,y,Qt(t))}else oa(t,l,e,Qt(t))}catch(g){oa(t,l,{then:function(){},status:\\\"rejected\\\",reason:g},Qt())}finally{L.p=u,i!==null&&c.types!==null&&(i.types=c.types),N.T=i}}function Zd(){}function ff(t,l,n,e){if(t.tag!==5)throw Error(S(476));var a=b1(t).queue;E1(t,a,l,zn,n===null?Zd:function(){return A1(t),n(e)})}function b1(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:zn,baseState:zn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:zn},next:null};var n={};return l.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:n},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function A1(t){var l=b1(t);l.next===null&&(l=t.alternate.memoizedState),oa(t,l.next.queue,{},Qt())}function cr(){return dt(Ua)}function T1(){return lt().memoizedState}function N1(){return lt().memoizedState}function Vd(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var n=Qt();t=an(n);var e=un(l,t,n);e!==null&&(xt(e,l,n),ca(e,l,n)),l={cache:Kf()},t.payload=l;return}l=l.return}}function Kd(t,l,n){var e=Qt();n={lane:e,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Si(t)?z1(l,n):(n=Qf(t,l,n,e),n!==null&&(xt(n,t,e),U1(n,l,e)))}function B1(t,l,n){var e=Qt();oa(t,l,n,e)}function oa(t,l,n,e){var a={lane:e,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Si(t))z1(l,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,n);if(a.hasEagerState=!0,a.eagerState=c,jt(c,i))return mi(t,l,a,0),Z===null&&yi(),!1}catch{}if(n=Qf(t,l,a,e),n!==null)return xt(n,t,e),U1(n,l,e),!0}return!1}function fr(t,l,n,e){if(e={lane:2,revertLane:vr(),gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},Si(t)){if(l)throw Error(S(479))}else l=Qf(t,n,e,2),l!==null&&xt(l,t,2)}function Si(t){var l=t.alternate;return t===_||l!==null&&l===_}function z1(t,l){Se=Ku=!0;var n=t.pending;n===null?l.next=l:(l.next=n.next,n.next=l),t.pending=l}function U1(t,l,n){if((n&4194048)!==0){var e=l.lanes;e&=t.pendingLanes,n|=e,l.lanes=n,h0(t,n)}}var Na={readContext:dt,use:vi,useCallback:I,useContext:I,useEffect:I,useImperativeHandle:I,useLayoutEffect:I,useInsertionEffect:I,useMemo:I,useReducer:I,useRef:I,useState:I,useDebugValue:I,useDeferredValue:I,useTransition:I,useSyncExternalStore:I,useId:I,useHostTransitionStatus:I,useFormState:I,useActionState:I,useOptimistic:I,useMemoCache:I,useCacheRefresh:I};Na.useEffectEvent=I;var _1={readContext:dt,use:vi,useCallback:function(t,l){return bt().memoizedState=[t,l===void 0?null:l],t},useContext:dt,useEffect:ss,useImperativeHandle:function(t,l,n){n=n!=null?n.concat([t]):null,zu(4194308,4,d1.bind(null,l,t),n)},useLayoutEffect:function(t,l){return zu(4194308,4,t,l)},useInsertionEffect:function(t,l){zu(4,2,t,l)},useMemo:function(t,l){var n=bt();l=l===void 0?null:l;var e=t();if(Rn){kl(!0);try{t()}finally{kl(!1)}}return n.memoizedState=[e,l],e},useReducer:function(t,l,n){var e=bt();if(n!==void 0){var a=n(l);if(Rn){kl(!0);try{n(l)}finally{kl(!1)}}}else a=l;return e.memoizedState=e.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},e.queue=t,t=t.dispatch=Kd.bind(null,_,t),[e.memoizedState,t]},useRef:function(t){var l=bt();return t={current:t},l.memoizedState=t},useState:function(t){t=uf(t);var l=t.queue,n=B1.bind(null,_,l);return l.dispatch=n,[t.memoizedState,n]},useDebugValue:ur,useDeferredValue:function(t,l){var n=bt();return ir(n,t,l)},useTransition:function(){var t=uf(!1);return t=E1.bind(null,_,t.queue,!0,!1),bt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,n){var e=_,a=bt();if(q){if(n===void 0)throw Error(S(407));n=n()}else{if(n=l(),Z===null)throw Error(S(349));(w&127)!==0||l1(e,l,n)}a.memoizedState=n;var u={value:n,getSnapshot:l};return a.queue=u,ss(e1.bind(null,e,u,t),[t]),e.flags|=2048,ze(9,{destroy:void 0},n1.bind(null,e,u,n,l),null),n},useId:function(){var t=bt(),l=Z.identifierPrefix;if(q){var n=ml,e=yl;n=(e&~(1<<32-Xt(e)-1)).toString(32)+n,l=\\\"_\\\"+l+\\\"R_\\\"+n,n=Ju++,0<n&&(l+=\\\"H\\\"+n.toString(32)),l+=\\\"_\\\"}else n=Ld++,l=\\\"_\\\"+l+\\\"r_\\\"+n.toString(32)+\\\"_\\\";return t.memoizedState=l},useHostTransitionStatus:cr,useFormState:fs,useActionState:fs,useOptimistic:function(t){var l=bt();l.memoizedState=l.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=n,l=fr.bind(null,_,!0,n),n.dispatch=l,[t,l]},useMemoCache:nr,useCacheRefresh:function(){return bt().memoizedState=Vd.bind(null,_)},useEffectEvent:function(t){var l=bt(),n={impl:t};return l.memoizedState=n,function(){if((Y&2)!==0)throw Error(S(440));return n.impl.apply(void 0,arguments)}}},rr={readContext:dt,use:vi,useCallback:v1,useContext:dt,useEffect:ar,useImperativeHandle:g1,useInsertionEffect:y1,useLayoutEffect:m1,useMemo:p1,useReducer:Bu,useRef:s1,useState:function(){return Bu(wl)},useDebugValue:ur,useDeferredValue:function(t,l){var n=lt();return S1(n,j.memoizedState,t,l)},useTransition:function(){var t=Bu(wl)[0],l=lt().memoizedState;return[typeof t==\\\"boolean\\\"?t:qa(t),l]},useSyncExternalStore:t1,useId:T1,useHostTransitionStatus:cr,useFormState:rs,useActionState:rs,useOptimistic:function(t,l){var n=lt();return i1(n,j,t,l)},useMemoCache:nr,useCacheRefresh:N1};rr.useEffectEvent=h1;var x1={readContext:dt,use:vi,useCallback:v1,useContext:dt,useEffect:ar,useImperativeHandle:g1,useInsertionEffect:y1,useLayoutEffect:m1,useMemo:p1,useReducer:dc,useRef:s1,useState:function(){return dc(wl)},useDebugValue:ur,useDeferredValue:function(t,l){var n=lt();return j===null?ir(n,t,l):S1(n,j.memoizedState,t,l)},useTransition:function(){var t=dc(wl)[0],l=lt().memoizedState;return[typeof t==\\\"boolean\\\"?t:qa(t),l]},useSyncExternalStore:t1,useId:T1,useHostTransitionStatus:cr,useFormState:os,useActionState:os,useOptimistic:function(t,l){var n=lt();return j!==null?i1(n,j,t,l):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:nr,useCacheRefresh:N1};x1.useEffectEvent=h1;function gc(t,l,n,e){l=t.memoizedState,n=n(e,l),n=n==null?l:W({},l,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var rf={enqueueSetState:function(t,l,n){t=t._reactInternals;var e=Qt(),a=an(e);a.payload=l,n!=null&&(a.callback=n),l=un(t,a,e),l!==null&&(xt(l,t,e),ca(l,t,e))},enqueueReplaceState:function(t,l,n){t=t._reactInternals;var e=Qt(),a=an(e);a.tag=1,a.payload=l,n!=null&&(a.callback=n),l=un(t,a,e),l!==null&&(xt(l,t,e),ca(l,t,e))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var n=Qt(),e=an(n);e.tag=2,l!=null&&(e.callback=l),l=un(t,e,n),l!==null&&(xt(l,t,n),ca(l,t,n))}};function hs(t,l,n,e,a,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(e,u,i):l.prototype&&l.prototype.isPureReactComponent?!Sa(n,e)||!Sa(a,u):!0}function ys(t,l,n,e){t=l.state,typeof l.componentWillReceiveProps==\\\"function\\\"&&l.componentWillReceiveProps(n,e),typeof l.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&l.UNSAFE_componentWillReceiveProps(n,e),l.state!==t&&rf.enqueueReplaceState(l,l.state,null)}function Hn(t,l){var n=l;if(\\\"ref\\\"in l){n={};for(var e in l)e!==\\\"ref\\\"&&(n[e]=l[e])}if(t=t.defaultProps){n===l&&(n=W({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function M1(t){Lu(t)}function O1(t){console.error(t)}function D1(t){Lu(t)}function Fu(t,l){try{var n=t.onUncaughtError;n(l.value,{componentStack:l.stack})}catch(e){setTimeout(function(){throw e})}}function ms(t,l,n){try{var e=t.onCaughtError;e(n.value,{componentStack:n.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function of(t,l,n){return n=an(n),n.tag=3,n.payload={element:null},n.callback=function(){Fu(t,l)},n}function C1(t){return t=an(t),t.tag=3,t}function R1(t,l,n,e){var a=n.type.getDerivedStateFromError;if(typeof a==\\\"function\\\"){var u=e.value;t.payload=function(){return a(u)},t.callback=function(){ms(l,n,e)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch==\\\"function\\\"&&(t.callback=function(){ms(l,n,e),typeof a!=\\\"function\\\"&&(cn===null?cn=new Set([this]):cn.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:\\\"\\\"})})}function Jd(t,l,n,e,a){if(n.flags|=32768,e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"){if(l=n.alternate,l!==null&&Re(l,n,a,!0),n=Zt.current,n!==null){switch(n.tag){case 31:case 13:return tl===null?Pu():n.alternate===null&&P===0&&(P=3),n.flags&=-257,n.flags|=65536,n.lanes=a,e===ju?n.flags|=16384:(l=n.updateQueue,l===null?n.updateQueue=new Set([e]):l.add(e),Uc(t,e,a)),!1;case 22:return n.flags|=65536,e===ju?n.flags|=16384:(l=n.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([e])},n.updateQueue=l):(n=l.retryQueue,n===null?l.retryQueue=new Set([e]):n.add(e)),Uc(t,e,a)),!1}throw Error(S(435,n.tag))}return Uc(t,e,a),Pu(),!1}if(q)return l=Zt.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=a,e!==$c&&(t=Error(S(422),{cause:e}),ba(It(t,n)))):(e!==$c&&(l=Error(S(423),{cause:e}),ba(It(l,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,e=It(e,n),a=of(t.stateNode,e,a),mc(t,a),P!==4&&(P=2)),!1;var u=Error(S(520),{cause:e});if(u=It(u,n),ya===null?ya=[u]:ya.push(u),P!==4&&(P=2),l===null)return!0;e=It(e,n),n=l;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=of(n.stateNode,e,t),mc(n,t),!1;case 1:if(l=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof l.getDerivedStateFromError==\\\"function\\\"||u!==null&&typeof u.componentDidCatch==\\\"function\\\"&&(cn===null||!cn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=C1(a),R1(a,t,n,e),mc(n,a),!1}n=n.return}while(n!==null);return!1}var or=Error(S(461)),ut=!1;function ht(t,l,n,e){l.child=t===null?F0(l,null,n,e):Cn(l,t.child,n,e)}function ds(t,l,n,e,a){n=n.render;var u=l.ref;if(\\\"ref\\\"in e){var i={};for(var c in e)c!==\\\"ref\\\"&&(i[c]=e[c])}else i=e;return Dn(l),e=If(t,l,n,i,u,a),c=Pf(),t!==null&&!ut?(tr(t,l,a),ql(t,l,a)):(q&&c&&Zf(l),l.flags|=1,ht(t,l,e,a),l.child)}function gs(t,l,n,e,a){if(t===null){var u=n.type;return typeof u==\\\"function\\\"&&!jf(u)&&u.defaultProps===void 0&&n.compare===null?(l.tag=15,l.type=u,H1(t,l,u,e,a)):(t=Tu(n.type,null,e,l,l.mode,a),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!sr(t,a)){var i=u.memoizedProps;if(n=n.compare,n=n!==null?n:Sa,n(i,e)&&t.ref===l.ref)return ql(t,l,a)}return l.flags|=1,t=Ol(u,e),t.ref=l.ref,t.return=l,l.child=t}function H1(t,l,n,e,a){if(t!==null){var u=t.memoizedProps;if(Sa(u,e)&&t.ref===l.ref)if(ut=!1,l.pendingProps=e=u,sr(t,a))(t.flags&131072)!==0&&(ut=!0);else return l.lanes=t.lanes,ql(t,l,a)}return sf(t,l,n,e,a)}function w1(t,l,n,e){var a=e.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.mode===\\\"hidden\\\"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(e=l.child=t.child,a=0;e!==null;)a=a|e.lanes|e.childLanes,e=e.sibling;e=a&~u}else e=0,l.child=null;return vs(t,l,u,n,e)}if((n&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Nu(l,u!==null?u.cachePool:null),u!==null?us(l,u):ef(),k0(l);else return e=l.lanes=536870912,vs(t,l,u!==null?u.baseLanes|n:n,n,e)}else u!==null?(Nu(l,u.cachePool),us(l,u),Wl(l),l.memoizedState=null):(t!==null&&Nu(l,null),ef(),Wl(l));return ht(t,l,a,n),l.child}function la(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function vs(t,l,n,e,a){var u=Jf();return u=u===null?null:{parent:at._currentValue,pool:u},l.memoizedState={baseLanes:n,cachePool:u},t!==null&&Nu(l,null),ef(),k0(l),t!==null&&Re(t,l,e,!0),l.childLanes=a,null}function Uu(t,l){return l=Wu({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function ps(t,l,n){return Cn(l,t.child,null,n),t=Uu(l,l.pendingProps),t.flags|=2,wt(l),l.memoizedState=null,t}function Fd(t,l,n){var e=l.pendingProps,a=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(q){if(e.mode===\\\"hidden\\\")return t=Uu(l,e),l.lanes=536870912,la(null,t);if(af(l),(t=F)?(t=_h(t,Pt),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:hn!==null?{id:yl,overflow:ml}:null,retryLane:536870912,hydrationErrors:null},n=X0(t),n.return=l,l.child=n,mt=l,F=null)):t=null,t===null)throw yn(l);return l.lanes=536870912,null}return Uu(l,e)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(af(l),a)if(l.flags&256)l.flags&=-257,l=ps(t,l,n);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(S(558));else if(ut||Re(t,l,n,!1),a=(n&t.childLanes)!==0,ut||a){if(e=Z,e!==null&&(i=y0(e,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ln(t,i),xt(e,t,i),or;Pu(),l=ps(t,l,n)}else t=u.treeContext,F=ll(i.nextSibling),mt=l,q=!0,en=null,Pt=!1,t!==null&&j0(l,t),l=Uu(l,e),l.flags|=4096;return l}return t=Ol(t.child,{mode:e.mode,children:e.children}),t.ref=l.ref,l.child=t,t.return=l,t}function _u(t,l){var n=l.ref;if(n===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof n!=\\\"function\\\"&&typeof n!=\\\"object\\\")throw Error(S(284));(t===null||t.ref!==n)&&(l.flags|=4194816)}}function sf(t,l,n,e,a){return Dn(l),n=If(t,l,n,e,void 0,a),e=Pf(),t!==null&&!ut?(tr(t,l,a),ql(t,l,a)):(q&&e&&Zf(l),l.flags|=1,ht(t,l,n,a),l.child)}function Ss(t,l,n,e,a,u){return Dn(l),l.updateQueue=null,n=P0(l,e,n,a),I0(t),e=Pf(),t!==null&&!ut?(tr(t,l,u),ql(t,l,u)):(q&&e&&Zf(l),l.flags|=1,ht(t,l,n,u),l.child)}function Es(t,l,n,e,a){if(Dn(l),l.stateNode===null){var u=oe,i=n.contextType;typeof i==\\\"object\\\"&&i!==null&&(u=dt(i)),u=new n(e,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=rf,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=e,u.state=l.memoizedState,u.refs={},Wf(l),i=n.contextType,u.context=typeof i==\\\"object\\\"&&i!==null?dt(i):oe,u.state=l.memoizedState,i=n.getDerivedStateFromProps,typeof i==\\\"function\\\"&&(gc(l,n,i,e),u.state=l.memoizedState),typeof n.getDerivedStateFromProps==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\"||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(i=u.state,typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount(),i!==u.state&&rf.enqueueReplaceState(u,u.state,null),ra(l,e,u,a),fa(),u.state=l.memoizedState),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),e=!0}else if(t===null){u=l.stateNode;var c=l.memoizedProps,f=Hn(n,c);u.props=f;var r=u.context,y=n.contextType;i=oe,typeof y==\\\"object\\\"&&y!==null&&(i=dt(y));var g=n.getDerivedStateFromProps;y=typeof g==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\",c=l.pendingProps!==c,y||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(c||r!==i)&&ys(l,u,e,i),Kl=!1;var d=l.memoizedState;u.state=d,ra(l,e,u,a),fa(),r=l.memoizedState,c||d!==r||Kl?(typeof g==\\\"function\\\"&&(gc(l,n,g,e),r=l.memoizedState),(f=Kl||hs(l,n,f,e,d,r,i))?(y||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308)):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),l.memoizedProps=e,l.memoizedState=r),u.props=e,u.state=r,u.context=i,e=f):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),e=!1)}else{u=l.stateNode,lf(t,l),i=l.memoizedProps,y=Hn(n,i),u.props=y,g=l.pendingProps,d=u.context,r=n.contextType,f=oe,typeof r==\\\"object\\\"&&r!==null&&(f=dt(r)),c=n.getDerivedStateFromProps,(r=typeof c==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\")||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(i!==g||d!==f)&&ys(l,u,e,f),Kl=!1,d=l.memoizedState,u.state=d,ra(l,e,u,a),fa();var m=l.memoizedState;i!==g||d!==m||Kl||t!==null&&t.dependencies!==null&&Qu(t.dependencies)?(typeof c==\\\"function\\\"&&(gc(l,n,c,e),m=l.memoizedState),(y=Kl||hs(l,n,y,e,d,m,f)||t!==null&&t.dependencies!==null&&Qu(t.dependencies))?(r||typeof u.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof u.componentWillUpdate!=\\\"function\\\"||(typeof u.componentWillUpdate==\\\"function\\\"&&u.componentWillUpdate(e,m,f),typeof u.UNSAFE_componentWillUpdate==\\\"function\\\"&&u.UNSAFE_componentWillUpdate(e,m,f)),typeof u.componentDidUpdate==\\\"function\\\"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate==\\\"function\\\"&&(l.flags|=1024)):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=1024),l.memoizedProps=e,l.memoizedState=m),u.props=e,u.state=m,u.context=f,e=y):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=1024),e=!1)}return u=e,_u(t,l),e=(l.flags&128)!==0,u||e?(u=l.stateNode,n=e&&typeof n.getDerivedStateFromError!=\\\"function\\\"?null:u.render(),l.flags|=1,t!==null&&e?(l.child=Cn(l,t.child,null,a),l.child=Cn(l,null,n,a)):ht(t,l,n,a),l.memoizedState=u.state,t=l.child):t=ql(t,l,a),t}function bs(t,l,n,e){return On(),l.flags|=256,ht(t,l,n,e),l.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(t){return{baseLanes:t,cachePool:V0()}}function Sc(t,l,n){return t=t!==null?t.childLanes&~n:0,l&&(t|=Yt),t}function q1(t,l,n){var e=l.pendingProps,a=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(tt.current&2)!==0),i&&(a=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(q){if(a?Fl(l):Wl(l),(t=F)?(t=_h(t,Pt),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:hn!==null?{id:yl,overflow:ml}:null,retryLane:536870912,hydrationErrors:null},n=X0(t),n.return=l,l.child=n,mt=l,F=null)):t=null,t===null)throw yn(l);return Bf(t)?l.lanes=32:l.lanes=536870912,null}var c=e.children;return e=e.fallback,a?(Wl(l),a=l.mode,c=Wu({mode:\\\"hidden\\\",children:c},a),e=Un(e,a,n,null),c.return=l,e.return=l,c.sibling=e,l.child=c,e=l.child,e.memoizedState=pc(n),e.childLanes=Sc(t,i,n),l.memoizedState=vc,la(null,e)):(Fl(l),hf(l,c))}var f=t.memoizedState;if(f!==null&&(c=f.dehydrated,c!==null)){if(u)l.flags&256?(Fl(l),l.flags&=-257,l=Ec(t,l,n)):l.memoizedState!==null?(Wl(l),l.child=t.child,l.flags|=128,l=null):(Wl(l),c=e.fallback,a=l.mode,e=Wu({mode:\\\"visible\\\",children:e.children},a),c=Un(c,a,n,null),c.flags|=2,e.return=l,c.return=l,e.sibling=c,l.child=e,Cn(l,t.child,null,n),e=l.child,e.memoizedState=pc(n),e.childLanes=Sc(t,i,n),l.memoizedState=vc,l=la(null,e));else if(Fl(l),Bf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var r=i.dgst;i=r,e=Error(S(419)),e.stack=\\\"\\\",e.digest=i,ba({value:e,source:null,stack:null}),l=Ec(t,l,n)}else if(ut||Re(t,l,n,!1),i=(n&t.childLanes)!==0,ut||i){if(i=Z,i!==null&&(e=y0(i,n),e!==0&&e!==f.retryLane))throw f.retryLane=e,Ln(t,e),xt(i,t,e),or;Nf(c)||Pu(),l=Ec(t,l,n)}else Nf(c)?(l.flags|=192,l.child=t.child,l=null):(t=f.treeContext,F=ll(c.nextSibling),mt=l,q=!0,en=null,Pt=!1,t!==null&&j0(l,t),l=hf(l,e.children),l.flags|=4096);return l}return a?(Wl(l),c=e.fallback,a=l.mode,f=t.child,r=f.sibling,e=Ol(f,{mode:\\\"hidden\\\",children:e.children}),e.subtreeFlags=f.subtreeFlags&65011712,r!==null?c=Ol(r,c):(c=Un(c,a,n,null),c.flags|=2),c.return=l,e.return=l,e.sibling=c,l.child=e,la(null,e),e=l.child,c=t.child.memoizedState,c===null?c=pc(n):(a=c.cachePool,a!==null?(f=at._currentValue,a=a.parent!==f?{parent:f,pool:f}:a):a=V0(),c={baseLanes:c.baseLanes|n,cachePool:a}),e.memoizedState=c,e.childLanes=Sc(t,i,n),l.memoizedState=vc,la(t.child,e)):(Fl(l),n=t.child,t=n.sibling,n=Ol(n,{mode:\\\"visible\\\",children:e.children}),n.return=l,n.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=n,l.memoizedState=null,n)}function hf(t,l){return l=Wu({mode:\\\"visible\\\",children:l},t.mode),l.return=t,t.child=l}function Wu(t,l){return t=qt(22,t,null,l),t.lanes=0,t}function Ec(t,l,n){return Cn(l,t.child,null,n),t=hf(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function As(t,l,n){t.lanes|=l;var e=t.alternate;e!==null&&(e.lanes|=l),Ic(t.return,l,n)}function bc(t,l,n,e,a,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:e,tail:n,tailMode:a,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=e,i.tail=n,i.tailMode=a,i.treeForkCount=u)}function Y1(t,l,n){var e=l.pendingProps,a=e.revealOrder,u=e.tail;e=e.children;var i=tt.current,c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,V(tt,i),ht(t,l,e,n),e=q?Ea:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&As(t,n,l);else if(t.tag===19)As(t,n,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case\\\"forwards\\\":for(n=l.child,a=null;n!==null;)t=n.alternate,t!==null&&Vu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=l.child,l.child=null):(a=n.sibling,n.sibling=null),bc(l,!1,a,n,u,e);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(n=null,a=l.child,l.child=null;a!==null;){if(t=a.alternate,t!==null&&Vu(t)===null){l.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}bc(l,!0,n,null,u,e);break;case\\\"together\\\":bc(l,!1,null,null,void 0,e);break;default:l.memoizedState=null}return l.child}function ql(t,l,n){if(t!==null&&(l.dependencies=t.dependencies),dn|=l.lanes,(n&l.childLanes)===0)if(t!==null){if(Re(t,l,n,!1),(n&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(S(153));if(l.child!==null){for(t=l.child,n=Ol(t,t.pendingProps),l.child=n,n.return=l;t.sibling!==null;)t=t.sibling,n=n.sibling=Ol(t,t.pendingProps),n.return=l;n.sibling=null}return l.child}function sr(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Qu(t)))}function Wd(t,l,n){switch(l.tag){case 3:Hu(l,l.stateNode.containerInfo),Jl(l,at,t.memoizedState.cache),On();break;case 27:case 5:Lc(l);break;case 4:Hu(l,l.stateNode.containerInfo);break;case 10:Jl(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,af(l),null;break;case 13:var e=l.memoizedState;if(e!==null)return e.dehydrated!==null?(Fl(l),l.flags|=128,null):(n&l.child.childLanes)!==0?q1(t,l,n):(Fl(l),t=ql(t,l,n),t!==null?t.sibling:null);Fl(l);break;case 19:var a=(t.flags&128)!==0;if(e=(n&l.childLanes)!==0,e||(Re(t,l,n,!1),e=(n&l.childLanes)!==0),a){if(e)return Y1(t,l,n);l.flags|=128}if(a=l.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),V(tt,tt.current),e)break;return null;case 22:return l.lanes=0,w1(t,l,n,l.pendingProps);case 24:Jl(l,at,t.memoizedState.cache)}return ql(t,l,n)}function L1(t,l,n){if(t!==null)if(t.memoizedProps!==l.pendingProps)ut=!0;else{if(!sr(t,n)&&(l.flags&128)===0)return ut=!1,Wd(t,l,n);ut=(t.flags&131072)!==0}else ut=!1,q&&(l.flags&1048576)!==0&&Q0(l,Ea,l.index);switch(l.lanes=0,l.tag){case 16:t:{var e=l.pendingProps;if(t=Nn(l.elementType),l.type=t,typeof t==\\\"function\\\")jf(t)?(e=Hn(t,e),l.tag=1,l=Es(null,l,t,e,n)):(l.tag=0,l=sf(null,l,t,e,n));else{if(t!=null){var a=t.$$typeof;if(a===xf){l.tag=11,l=ds(null,l,t,e,n);break t}else if(a===Mf){l.tag=14,l=gs(null,l,t,e,n);break t}}throw l=qc(t)||t,Error(S(306,l,\\\"\\\"))}}return l;case 0:return sf(t,l,l.type,l.pendingProps,n);case 1:return e=l.type,a=Hn(e,l.pendingProps),Es(t,l,e,a,n);case 3:t:{if(Hu(l,l.stateNode.containerInfo),t===null)throw Error(S(387));e=l.pendingProps;var u=l.memoizedState;a=u.element,lf(t,l),ra(l,e,null,n);var i=l.memoizedState;if(e=i.cache,Jl(l,at,e),e!==u.cache&&Pc(l,[at],n,!0),fa(),e=i.element,u.isDehydrated)if(u={element:e,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=bs(t,l,e,n);break t}else if(e!==a){a=It(Error(S(424)),l),ba(a),l=bs(t,l,e,n);break t}else for(t=l.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,F=ll(t.firstChild),mt=l,q=!0,en=null,Pt=!0,n=F0(l,null,e,n),l.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(On(),e===a){l=ql(t,l,n);break t}ht(t,l,e,n)}l=l.child}return l;case 26:return _u(t,l),t===null?(n=Zs(l.type,null,l.pendingProps,null))?l.memoizedState=n:q||(n=l.type,t=l.pendingProps,e=ei(nn.current).createElement(n),e[yt]=l,e[Mt]=t,gt(e,n,t),ot(e),l.stateNode=e):l.memoizedState=Zs(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Lc(l),t===null&&q&&(e=l.stateNode=xh(l.type,l.pendingProps,nn.current),mt=l,Pt=!0,a=F,vn(l.type)?(zf=a,F=ll(e.firstChild)):F=a),ht(t,l,l.pendingProps.children,n),_u(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&q&&((a=e=F)&&(e=Tg(e,l.type,l.pendingProps,Pt),e!==null?(l.stateNode=e,mt=l,F=ll(e.firstChild),Pt=!1,a=!0):a=!1),a||yn(l)),Lc(l),a=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,e=u.children,Af(a,u)?e=null:i!==null&&Af(a,i)&&(l.flags|=32),l.memoizedState!==null&&(a=If(t,l,Gd,null,null,n),Ua._currentValue=a),_u(t,l),ht(t,l,e,n),l.child;case 6:return t===null&&q&&((t=n=F)&&(n=Ng(n,l.pendingProps,Pt),n!==null?(l.stateNode=n,mt=l,F=null,t=!0):t=!1),t||yn(l)),null;case 13:return q1(t,l,n);case 4:return Hu(l,l.stateNode.containerInfo),e=l.pendingProps,t===null?l.child=Cn(l,null,e,n):ht(t,l,e,n),l.child;case 11:return ds(t,l,l.type,l.pendingProps,n);case 7:return ht(t,l,l.pendingProps,n),l.child;case 8:return ht(t,l,l.pendingProps.children,n),l.child;case 12:return ht(t,l,l.pendingProps.children,n),l.child;case 10:return e=l.pendingProps,Jl(l,l.type,e.value),ht(t,l,e.children,n),l.child;case 9:return a=l.type._context,e=l.pendingProps.children,Dn(l),a=dt(a),e=e(a),l.flags|=1,ht(t,l,e,n),l.child;case 14:return gs(t,l,l.type,l.pendingProps,n);case 15:return H1(t,l,l.type,l.pendingProps,n);case 19:return Y1(t,l,n);case 31:return Fd(t,l,n);case 22:return w1(t,l,n,l.pendingProps);case 24:return Dn(l),e=dt(at),t===null?(a=Jf(),a===null&&(a=Z,u=Kf(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),l.memoizedState={parent:e,cache:a},Wf(l),Jl(l,at,a)):((t.lanes&n)!==0&&(lf(t,l),ra(l,null,null,n),fa()),a=t.memoizedState,u=l.memoizedState,a.parent!==e?(a={parent:e,cache:e},l.memoizedState=a,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=a),Jl(l,at,e)):(e=u.cache,Jl(l,at,e),e!==a.cache&&Pc(l,[at],n,!0))),ht(t,l,l.pendingProps.children,n),l.child;case 29:throw l.pendingProps}throw Error(S(156,l.tag))}function Al(t){t.flags|=4}function Ac(t,l,n,e,a){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(rh())t.flags|=8192;else throw xn=ju,Ff}else t.flags&=-16777217}function Ts(t,l){if(l.type!==\\\"stylesheet\\\"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Dh(l))if(rh())t.flags|=8192;else throw xn=ju,Ff}function hu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?o0():536870912,t.lanes|=l,Ue|=l)}function Fe(t,l){if(!q)switch(t.tailMode){case\\\"hidden\\\":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t.tail=null:n.sibling=null;break;case\\\"collapsed\\\":n=t.tail;for(var e=null;n!==null;)n.alternate!==null&&(e=n),n=n.sibling;e===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:e.sibling=null}}function J(t){var l=t.alternate!==null&&t.alternate.child===t.child,n=0,e=0;if(l)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,e|=a.subtreeFlags&65011712,e|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,e|=a.subtreeFlags,e|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=e,t.childLanes=n,l}function $d(t,l,n){var e=l.pendingProps;switch(Vf(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return J(l),null;case 1:return J(l),null;case 3:return n=l.stateNode,e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Dl(at),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(In(l)?Al(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,yc())),J(l),null;case 26:var a=l.type,u=l.memoizedState;return t===null?(Al(l),u!==null?(J(l),Ts(l,u)):(J(l),Ac(l,a,null,e,n))):u?u!==t.memoizedState?(Al(l),J(l),Ts(l,u)):(J(l),l.flags&=-16777217):(t=t.memoizedProps,t!==e&&Al(l),J(l),Ac(l,a,t,e,n)),null;case 27:if(wu(l),n=nn.current,a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Al(l);else{if(!e){if(l.stateNode===null)throw Error(S(166));return J(l),null}t=gl.current,In(l)?Io(l,t):(t=xh(a,e,n),l.stateNode=t,Al(l))}return J(l),null;case 5:if(wu(l),a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Al(l);else{if(!e){if(l.stateNode===null)throw Error(S(166));return J(l),null}if(u=gl.current,In(l))Io(l,u);else{var i=ei(nn.current);switch(u){case 1:u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case 2:u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;default:switch(a){case\\\"svg\\\":u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case\\\"math\\\":u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;case\\\"script\\\":u=i.createElement(\\\"div\\\"),u.innerHTML=\\\"<script><\\\\/script>\\\",u=u.removeChild(u.firstChild);break;case\\\"select\\\":u=typeof e.is==\\\"string\\\"?i.createElement(\\\"select\\\",{is:e.is}):i.createElement(\\\"select\\\"),e.multiple?u.multiple=!0:e.size&&(u.size=e.size);break;default:u=typeof e.is==\\\"string\\\"?i.createElement(a,{is:e.is}):i.createElement(a)}}u[yt]=l,u[Mt]=e;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(gt(u,a,e),a){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":e=!!e.autoFocus;break t;case\\\"img\\\":e=!0;break t;default:e=!1}e&&Al(l)}}return J(l),Ac(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,n),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==e&&Al(l);else{if(typeof e!=\\\"string\\\"&&l.stateNode===null)throw Error(S(166));if(t=nn.current,In(l)){if(t=l.stateNode,n=l.memoizedProps,e=null,a=mt,a!==null)switch(a.tag){case 27:case 5:e=a.memoizedProps}t[yt]=l,t=!!(t.nodeValue===n||e!==null&&e.suppressHydrationWarning===!0||Bh(t.nodeValue,n)),t||yn(l,!0)}else t=ei(t).createTextNode(e),t[yt]=l,l.stateNode=t}return J(l),null;case 31:if(n=l.memoizedState,t===null||t.memoizedState!==null){if(e=In(l),n!==null){if(t===null){if(!e)throw Error(S(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(557));t[yt]=l}else On(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),t=!1}else n=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return l.flags&256?(wt(l),l):(wt(l),null);if((l.flags&128)!==0)throw Error(S(558))}return J(l),null;case 13:if(e=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=In(l),e!==null&&e.dehydrated!==null){if(t===null){if(!a)throw Error(S(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(S(317));a[yt]=l}else On(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),a=!1}else a=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return l.flags&256?(wt(l),l):(wt(l),null)}return wt(l),(l.flags&128)!==0?(l.lanes=n,l):(n=e!==null,t=t!==null&&t.memoizedState!==null,n&&(e=l.child,a=null,e.alternate!==null&&e.alternate.memoizedState!==null&&e.alternate.memoizedState.cachePool!==null&&(a=e.alternate.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==a&&(e.flags|=2048)),n!==t&&n&&(l.child.flags|=8192),hu(l,l.updateQueue),J(l),null);case 4:return be(),t===null&&pr(l.stateNode.containerInfo),J(l),null;case 10:return Dl(l.type),J(l),null;case 19:if(st(tt),e=l.memoizedState,e===null)return J(l),null;if(a=(l.flags&128)!==0,u=e.rendering,u===null)if(a)Fe(e,!1);else{if(P!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=Vu(t),u!==null){for(l.flags|=128,Fe(e,!1),t=u.updateQueue,l.updateQueue=t,hu(l,t),l.subtreeFlags=0,t=n,n=l.child;n!==null;)G0(n,t),n=n.sibling;return V(tt,tt.current&1|2),q&&zl(l,e.treeForkCount),l.child}t=t.sibling}e.tail!==null&&Lt()>ku&&(l.flags|=128,a=!0,Fe(e,!1),l.lanes=4194304)}else{if(!a)if(t=Vu(u),t!==null){if(l.flags|=128,a=!0,t=t.updateQueue,l.updateQueue=t,hu(l,t),Fe(e,!0),e.tail===null&&e.tailMode===\\\"hidden\\\"&&!u.alternate&&!q)return J(l),null}else 2*Lt()-e.renderingStartTime>ku&&n!==536870912&&(l.flags|=128,a=!0,Fe(e,!1),l.lanes=4194304);e.isBackwards?(u.sibling=l.child,l.child=u):(t=e.last,t!==null?t.sibling=u:l.child=u,e.last=u)}return e.tail!==null?(t=e.tail,e.rendering=t,e.tail=t.sibling,e.renderingStartTime=Lt(),t.sibling=null,n=tt.current,V(tt,a?n&1|2:n&1),q&&zl(l,e.treeForkCount),t):(J(l),null);case 22:case 23:return wt(l),$f(),e=l.memoizedState!==null,t!==null?t.memoizedState!==null!==e&&(l.flags|=8192):e&&(l.flags|=8192),e?(n&536870912)!==0&&(l.flags&128)===0&&(J(l),l.subtreeFlags&6&&(l.flags|=8192)):J(l),n=l.updateQueue,n!==null&&hu(l,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),e=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),e!==n&&(l.flags|=2048),t!==null&&st(_n),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),l.memoizedState.cache!==n&&(l.flags|=2048),Dl(at),J(l),null;case 25:return null;case 30:return null}throw Error(S(156,l.tag))}function kd(t,l){switch(Vf(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Dl(at),be(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return wu(l),null;case 31:if(l.memoizedState!==null){if(wt(l),l.alternate===null)throw Error(S(340));On()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(wt(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(S(340));On()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return st(tt),null;case 4:return be(),null;case 10:return Dl(l.type),null;case 22:case 23:return wt(l),$f(),t!==null&&st(_n),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Dl(at),null;case 25:return null;default:return null}}function G1(t,l){switch(Vf(l),l.tag){case 3:Dl(at),be();break;case 26:case 27:case 5:wu(l);break;case 4:be();break;case 31:l.memoizedState!==null&&wt(l);break;case 13:wt(l);break;case 19:st(tt);break;case 10:Dl(l.type);break;case 22:case 23:wt(l),$f(),t!==null&&st(_n);break;case 24:Dl(at)}}function Ya(t,l){try{var n=l.updateQueue,e=n!==null?n.lastEffect:null;if(e!==null){var a=e.next;n=a;do{if((n.tag&t)===t){e=void 0;var u=n.create,i=n.inst;e=u(),i.destroy=e}n=n.next}while(n!==a)}}catch(c){X(l,l.return,c)}}function mn(t,l,n){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var u=a.next;e=u;do{if((e.tag&t)===t){var i=e.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=l;var f=n,r=c;try{r()}catch(y){X(a,f,y)}}}e=e.next}while(e!==u)}}catch(y){X(l,l.return,y)}}function X1(t){var l=t.updateQueue;if(l!==null){var n=t.stateNode;try{$0(l,n)}catch(e){X(t,t.return,e)}}}function Q1(t,l,n){n.props=Hn(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(e){X(t,l,e)}}function sa(t,l){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var e=t.stateNode;break;case 30:e=t.stateNode;break;default:e=t.stateNode}typeof n==\\\"function\\\"?t.refCleanup=n(e):n.current=e}}catch(a){X(t,l,a)}}function dl(t,l){var n=t.ref,e=t.refCleanup;if(n!==null)if(typeof e==\\\"function\\\")try{e()}catch(a){X(t,l,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n==\\\"function\\\")try{n(null)}catch(a){X(t,l,a)}else n.current=null}function j1(t){var l=t.type,n=t.memoizedProps,e=t.stateNode;try{t:switch(l){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n.autoFocus&&e.focus();break t;case\\\"img\\\":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}catch(a){X(t,t.return,a)}}function Tc(t,l,n){try{var e=t.stateNode;vg(e,t.type,n,l),e[Mt]=l}catch(a){X(t,t.return,a)}}function Z1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&vn(t.type)||t.tag===4}function Nc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Z1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&vn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function yf(t,l,n){var e=t.tag;if(e===5||e===6)t=t.stateNode,l?(n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n).insertBefore(t,l):(l=n.nodeType===9?n.body:n.nodeName===\\\"HTML\\\"?n.ownerDocument.body:n,l.appendChild(t),n=n._reactRootContainer,n!=null||l.onclick!==null||(l.onclick=xl));else if(e!==4&&(e===27&&vn(t.type)&&(n=t.stateNode,l=null),t=t.child,t!==null))for(yf(t,l,n),t=t.sibling;t!==null;)yf(t,l,n),t=t.sibling}function $u(t,l,n){var e=t.tag;if(e===5||e===6)t=t.stateNode,l?n.insertBefore(t,l):n.appendChild(t);else if(e!==4&&(e===27&&vn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for($u(t,l,n),t=t.sibling;t!==null;)$u(t,l,n),t=t.sibling}function V1(t){var l=t.stateNode,n=t.memoizedProps;try{for(var e=t.type,a=l.attributes;a.length;)l.removeAttributeNode(a[0]);gt(l,e,n),l[yt]=t,l[Mt]=n}catch(u){X(t,t.return,u)}}var Ul=!1,et=!1,Bc=!1,Ns=typeof WeakSet==\\\"function\\\"?WeakSet:Set,rt=null;function Id(t,l){if(t=t.containerInfo,Ef=ci,t=D0(t),Gf(t)){if(\\\"selectionStart\\\"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var e=n.getSelection&&n.getSelection();if(e&&e.rangeCount!==0){n=e.anchorNode;var a=e.anchorOffset,u=e.focusNode;e=e.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var i=0,c=-1,f=-1,r=0,y=0,g=t,d=null;l:for(;;){for(var m;g!==n||a!==0&&g.nodeType!==3||(c=i+a),g!==u||e!==0&&g.nodeType!==3||(f=i+e),g.nodeType===3&&(i+=g.nodeValue.length),(m=g.firstChild)!==null;)d=g,g=m;for(;;){if(g===t)break l;if(d===n&&++r===a&&(c=i),d===u&&++y===e&&(f=i),(m=g.nextSibling)!==null)break;g=d,d=g.parentNode}g=m}n=c===-1||f===-1?null:{start:c,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(bf={focusedElem:t,selectionRange:n},ci=!1,rt=l;rt!==null;)if(l=rt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,rt=t;else for(;rt!==null;){switch(l=rt,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=l,a=u.memoizedProps,u=u.memoizedState,e=n.stateNode;try{var E=Hn(n.type,a);t=e.getSnapshotBeforeUpdate(E,u),e.__reactInternalSnapshotBeforeUpdate=t}catch(b){X(n,n.return,b)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,n=t.nodeType,n===9)Tf(t);else if(n===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":Tf(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(S(163))}if(t=l.sibling,t!==null){t.return=l.return,rt=t;break}rt=l.return}}function K1(t,l,n){var e=n.flags;switch(n.tag){case 0:case 11:case 15:Nl(t,n),e&4&&Ya(5,n);break;case 1:if(Nl(t,n),e&4)if(t=n.stateNode,l===null)try{t.componentDidMount()}catch(i){X(n,n.return,i)}else{var a=Hn(n.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(a,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){X(n,n.return,i)}}e&64&&X1(n),e&512&&sa(n,n.return);break;case 3:if(Nl(t,n),e&64&&(t=n.updateQueue,t!==null)){if(l=null,n.child!==null)switch(n.child.tag){case 27:case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}try{$0(t,l)}catch(i){X(n,n.return,i)}}break;case 27:l===null&&e&4&&V1(n);case 26:case 5:Nl(t,n),l===null&&e&4&&j1(n),e&512&&sa(n,n.return);break;case 12:Nl(t,n);break;case 31:Nl(t,n),e&4&&W1(t,n);break;case 13:Nl(t,n),e&4&&$1(t,n),e&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=cg.bind(null,n),Bg(t,n))));break;case 22:if(e=n.memoizedState!==null||Ul,!e){l=l!==null&&l.memoizedState!==null||et,a=Ul;var u=et;Ul=e,(et=l)&&!u?Bl(t,n,(n.subtreeFlags&8772)!==0):Nl(t,n),Ul=a,et=u}break;case 30:break;default:Nl(t,n)}}function J1(t){var l=t.alternate;l!==null&&(t.alternate=null,J1(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Rf(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var k=null,Ut=!1;function Tl(t,l,n){for(n=n.child;n!==null;)F1(t,l,n),n=n.sibling}function F1(t,l,n){if(Gt&&typeof Gt.onCommitFiberUnmount==\\\"function\\\")try{Gt.onCommitFiberUnmount(Oa,n)}catch{}switch(n.tag){case 26:et||dl(n,l),Tl(t,l,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||dl(n,l);var e=k,a=Ut;vn(n.type)&&(k=n.stateNode,Ut=!1),Tl(t,l,n),da(n.stateNode),k=e,Ut=a;break;case 5:et||dl(n,l);case 6:if(e=k,a=Ut,k=null,Tl(t,l,n),k=e,Ut=a,k!==null)if(Ut)try{(k.nodeType===9?k.body:k.nodeName===\\\"HTML\\\"?k.ownerDocument.body:k).removeChild(n.stateNode)}catch(u){X(n,l,u)}else try{k.removeChild(n.stateNode)}catch(u){X(n,l,u)}break;case 18:k!==null&&(Ut?(t=k,Ls(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,n.stateNode),Oe(t)):Ls(k,n.stateNode));break;case 4:e=k,a=Ut,k=n.stateNode.containerInfo,Ut=!0,Tl(t,l,n),k=e,Ut=a;break;case 0:case 11:case 14:case 15:mn(2,n,l),et||mn(4,n,l),Tl(t,l,n);break;case 1:et||(dl(n,l),e=n.stateNode,typeof e.componentWillUnmount==\\\"function\\\"&&Q1(n,l,e)),Tl(t,l,n);break;case 21:Tl(t,l,n);break;case 22:et=(e=et)||n.memoizedState!==null,Tl(t,l,n),et=e;break;default:Tl(t,l,n)}}function W1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Oe(t)}catch(n){X(l,l.return,n)}}}function $1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Oe(t)}catch(n){X(l,l.return,n)}}function Pd(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Ns),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Ns),l;default:throw Error(S(435,t.tag))}}function yu(t,l){var n=Pd(t);l.forEach(function(e){if(!n.has(e)){n.add(e);var a=fg.bind(null,t,e);e.then(a,a)}})}function Bt(t,l){var n=l.deletions;if(n!==null)for(var e=0;e<n.length;e++){var a=n[e],u=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(vn(c.type)){k=c.stateNode,Ut=!1;break t}break;case 5:k=c.stateNode,Ut=!1;break t;case 3:case 4:k=c.stateNode.containerInfo,Ut=!0;break t}c=c.return}if(k===null)throw Error(S(160));F1(u,i,a),k=null,Ut=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)k1(l,t),l=l.sibling}var cl=null;function k1(t,l){var n=t.alternate,e=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Bt(l,t),zt(t),e&4&&(mn(3,t,t.return),Ya(3,t),mn(5,t,t.return));break;case 1:Bt(l,t),zt(t),e&512&&(et||n===null||dl(n,n.return)),e&64&&Ul&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:var a=cl;if(Bt(l,t),zt(t),e&512&&(et||n===null||dl(n,n.return)),e&4){var u=n!==null?n.memoizedState:null;if(e=t.memoizedState,n===null)if(e===null)if(t.stateNode===null){t:{e=t.type,n=t.memoizedProps,a=a.ownerDocument||a;l:switch(e){case\\\"title\\\":u=a.getElementsByTagName(\\\"title\\\")[0],(!u||u[Ra]||u[yt]||u.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||u.hasAttribute(\\\"itemprop\\\"))&&(u=a.createElement(e),a.head.insertBefore(u,a.querySelector(\\\"head > title\\\"))),gt(u,e,n),u[yt]=t,ot(u),e=u;break t;case\\\"link\\\":var i=Ks(\\\"link\\\",\\\"href\\\",a).get(e+(n.href||\\\"\\\"));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"href\\\")===(n.href==null||n.href===\\\"\\\"?null:n.href)&&u.getAttribute(\\\"rel\\\")===(n.rel==null?null:n.rel)&&u.getAttribute(\\\"title\\\")===(n.title==null?null:n.title)&&u.getAttribute(\\\"crossorigin\\\")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(c,1);break l}}u=a.createElement(e),gt(u,e,n),a.head.appendChild(u);break;case\\\"meta\\\":if(i=Ks(\\\"meta\\\",\\\"content\\\",a).get(e+(n.content||\\\"\\\"))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"content\\\")===(n.content==null?null:\\\"\\\"+n.content)&&u.getAttribute(\\\"name\\\")===(n.name==null?null:n.name)&&u.getAttribute(\\\"property\\\")===(n.property==null?null:n.property)&&u.getAttribute(\\\"http-equiv\\\")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute(\\\"charset\\\")===(n.charSet==null?null:n.charSet)){i.splice(c,1);break l}}u=a.createElement(e),gt(u,e,n),a.head.appendChild(u);break;default:throw Error(S(468,e))}u[yt]=t,ot(u),e=u}t.stateNode=e}else Js(a,t.type,t.stateNode);else t.stateNode=Vs(a,e,t.memoizedProps);else u!==e?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,e===null?Js(a,t.type,t.stateNode):Vs(a,e,t.memoizedProps)):e===null&&t.stateNode!==null&&Tc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Bt(l,t),zt(t),e&512&&(et||n===null||dl(n,n.return)),n!==null&&e&4&&Tc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Bt(l,t),zt(t),e&512&&(et||n===null||dl(n,n.return)),t.flags&32){a=t.stateNode;try{Te(a,\\\"\\\")}catch(E){X(t,t.return,E)}}e&4&&t.stateNode!=null&&(a=t.memoizedProps,Tc(t,a,n!==null?n.memoizedProps:a)),e&1024&&(Bc=!0);break;case 6:if(Bt(l,t),zt(t),e&4){if(t.stateNode===null)throw Error(S(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e}catch(E){X(t,t.return,E)}}break;case 3:if(Ou=null,a=cl,cl=ai(l.containerInfo),Bt(l,t),cl=a,zt(t),e&4&&n!==null&&n.memoizedState.isDehydrated)try{Oe(l.containerInfo)}catch(E){X(t,t.return,E)}Bc&&(Bc=!1,I1(t));break;case 4:e=cl,cl=ai(t.stateNode.containerInfo),Bt(l,t),zt(t),cl=e;break;case 12:Bt(l,t),zt(t);break;case 31:Bt(l,t),zt(t),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yu(t,e)));break;case 13:Bt(l,t),zt(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ei=Lt()),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yu(t,e)));break;case 22:a=t.memoizedState!==null;var f=n!==null&&n.memoizedState!==null,r=Ul,y=et;if(Ul=r||a,et=y||f,Bt(l,t),et=y,Ul=r,zt(t),e&8192)t:for(l=t.stateNode,l._visibility=a?l._visibility&-2:l._visibility|1,a&&(n===null||f||Ul||et||Bn(t)),n=null,l=t;;){if(l.tag===5||l.tag===26){if(n===null){f=n=l;try{if(u=f.stateNode,a)i=u.style,typeof i.setProperty==\\\"function\\\"?i.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):i.display=\\\"none\\\";else{c=f.stateNode;var g=f.memoizedProps.style,d=g!=null&&g.hasOwnProperty(\\\"display\\\")?g.display:null;c.style.display=d==null||typeof d==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+d).trim()}}catch(E){X(f,f.return,E)}}}else if(l.tag===6){if(n===null){f=l;try{f.stateNode.nodeValue=a?\\\"\\\":f.memoizedProps}catch(E){X(f,f.return,E)}}}else if(l.tag===18){if(n===null){f=l;try{var m=f.stateNode;a?Gs(m,!0):Gs(f.stateNode,!1)}catch(E){X(f,f.return,E)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;n===l&&(n=null),l=l.return}n===l&&(n=null),l.sibling.return=l.return,l=l.sibling}e&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,yu(t,n))));break;case 19:Bt(l,t),zt(t),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yu(t,e)));break;case 30:break;case 21:break;default:Bt(l,t),zt(t)}}function zt(t){var l=t.flags;if(l&2){try{for(var n,e=t.return;e!==null;){if(Z1(e)){n=e;break}e=e.return}if(n==null)throw Error(S(160));switch(n.tag){case 27:var a=n.stateNode,u=Nc(t);$u(t,u,a);break;case 5:var i=n.stateNode;n.flags&32&&(Te(i,\\\"\\\"),n.flags&=-33);var c=Nc(t);$u(t,c,i);break;case 3:case 4:var f=n.stateNode.containerInfo,r=Nc(t);yf(t,r,f);break;default:throw Error(S(161))}}catch(y){X(t,t.return,y)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function I1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;I1(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Nl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)K1(t,l.alternate,l),l=l.sibling}function Bn(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:mn(4,l,l.return),Bn(l);break;case 1:dl(l,l.return);var n=l.stateNode;typeof n.componentWillUnmount==\\\"function\\\"&&Q1(l,l.return,n),Bn(l);break;case 27:da(l.stateNode);case 26:case 5:dl(l,l.return),Bn(l);break;case 22:l.memoizedState===null&&Bn(l);break;case 30:Bn(l);break;default:Bn(l)}t=t.sibling}}function Bl(t,l,n){for(n=n&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var e=l.alternate,a=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:Bl(a,u,n),Ya(4,u);break;case 1:if(Bl(a,u,n),e=u,a=e.stateNode,typeof a.componentDidMount==\\\"function\\\")try{a.componentDidMount()}catch(r){X(e,e.return,r)}if(e=u,a=e.updateQueue,a!==null){var c=e.stateNode;try{var f=a.shared.hiddenCallbacks;if(f!==null)for(a.shared.hiddenCallbacks=null,a=0;a<f.length;a++)W0(f[a],c)}catch(r){X(e,e.return,r)}}n&&i&64&&X1(u),sa(u,u.return);break;case 27:V1(u);case 26:case 5:Bl(a,u,n),n&&e===null&&i&4&&j1(u),sa(u,u.return);break;case 12:Bl(a,u,n);break;case 31:Bl(a,u,n),n&&i&4&&W1(a,u);break;case 13:Bl(a,u,n),n&&i&4&&$1(a,u);break;case 22:u.memoizedState===null&&Bl(a,u,n),sa(u,u.return);break;case 30:break;default:Bl(a,u,n)}l=l.sibling}}function hr(t,l){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&wa(n))}function yr(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&wa(t))}function il(t,l,n,e){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)P1(t,l,n,e),l=l.sibling}function P1(t,l,n,e){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(t,l,n,e),a&2048&&Ya(9,l);break;case 1:il(t,l,n,e);break;case 3:il(t,l,n,e),a&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&wa(t)));break;case 12:if(a&2048){il(t,l,n,e),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c==\\\"function\\\"&&c(i,l.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(f){X(l,l.return,f)}}else il(t,l,n,e);break;case 31:il(t,l,n,e);break;case 13:il(t,l,n,e);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?il(t,l,n,e):ha(t,l):u._visibility&2?il(t,l,n,e):(u._visibility|=2,te(t,l,n,e,(l.subtreeFlags&10256)!==0||!1)),a&2048&&hr(i,l);break;case 24:il(t,l,n,e),a&2048&&yr(l.alternate,l);break;default:il(t,l,n,e)}}function te(t,l,n,e,a){for(a=a&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,c=n,f=e,r=i.flags;switch(i.tag){case 0:case 11:case 15:te(u,i,c,f,a),Ya(8,i);break;case 23:break;case 22:var y=i.stateNode;i.memoizedState!==null?y._visibility&2?te(u,i,c,f,a):ha(u,i):(y._visibility|=2,te(u,i,c,f,a)),a&&r&2048&&hr(i.alternate,i);break;case 24:te(u,i,c,f,a),a&&r&2048&&yr(i.alternate,i);break;default:te(u,i,c,f,a)}l=l.sibling}}function ha(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var n=t,e=l,a=e.flags;switch(e.tag){case 22:ha(n,e),a&2048&&hr(e.alternate,e);break;case 24:ha(n,e),a&2048&&yr(e.alternate,e);break;default:ha(n,e)}l=l.sibling}}var na=8192;function Pn(t,l,n){if(t.subtreeFlags&na)for(t=t.child;t!==null;)th(t,l,n),t=t.sibling}function th(t,l,n){switch(t.tag){case 26:Pn(t,l,n),t.flags&na&&t.memoizedState!==null&&qg(n,cl,t.memoizedState,t.memoizedProps);break;case 5:Pn(t,l,n);break;case 3:case 4:var e=cl;cl=ai(t.stateNode.containerInfo),Pn(t,l,n),cl=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=na,na=16777216,Pn(t,l,n),na=e):Pn(t,l,n));break;default:Pn(t,l,n)}}function lh(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function We(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var n=0;n<l.length;n++){var e=l[n];rt=e,eh(e,t)}lh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)nh(t),t=t.sibling}function nh(t){switch(t.tag){case 0:case 11:case 15:We(t),t.flags&2048&&mn(9,t,t.return);break;case 3:We(t);break;case 12:We(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,xu(t)):We(t);break;default:We(t)}}function xu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var n=0;n<l.length;n++){var e=l[n];rt=e,eh(e,t)}lh(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:mn(8,l,l.return),xu(l);break;case 22:n=l.stateNode,n._visibility&2&&(n._visibility&=-3,xu(l));break;default:xu(l)}t=t.sibling}}function eh(t,l){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:mn(8,n,l);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var e=n.memoizedState.cachePool.pool;e!=null&&e.refCount++}break;case 24:wa(n.memoizedState.cache)}if(e=n.child,e!==null)e.return=n,rt=e;else t:for(n=t;rt!==null;){e=rt;var a=e.sibling,u=e.return;if(J1(e),e===n){rt=null;break t}if(a!==null){a.return=u,rt=a;break t}rt=u}}}var tg={getCacheForType:function(t){var l=dt(at),n=l.data.get(t);return n===void 0&&(n=t(),l.data.set(t,n)),n},cacheSignal:function(){return dt(at).controller.signal}},lg=typeof WeakMap==\\\"function\\\"?WeakMap:Map,Y=0,Z=null,D=null,w=0,G=0,Ht=null,Pl=!1,we=!1,mr=!1,Yl=0,P=0,dn=0,Mn=0,dr=0,Yt=0,Ue=0,ya=null,_t=null,mf=!1,Ei=0,ah=0,ku=1/0,Iu=null,cn=null,it=0,fn=null,_e=null,Cl=0,df=0,gf=null,uh=null,ma=0,vf=null;function Qt(){return(Y&2)!==0&&w!==0?w&-w:N.T!==null?vr():m0()}function ih(){if(Yt===0)if((w&536870912)===0||q){var t=eu;eu<<=1,(eu&3932160)===0&&(eu=262144),Yt=t}else Yt=536870912;return t=Zt.current,t!==null&&(t.flags|=32),Yt}function xt(t,l,n){(t===Z&&(G===2||G===9)||t.cancelPendingCommit!==null)&&(xe(t,0),tn(t,w,Yt,!1)),Ca(t,n),((Y&2)===0||t!==Z)&&(t===Z&&((Y&2)===0&&(Mn|=n),P===4&&tn(t,w,Yt,!1)),pl(t))}function ch(t,l,n){if((Y&6)!==0)throw Error(S(327));var e=!n&&(l&127)===0&&(l&t.expiredLanes)===0||Da(t,l),a=e?ag(t,l):zc(t,l,!0),u=e;do{if(a===0){we&&!e&&tn(t,l,0,!1);break}else{if(n=t.current.alternate,u&&!ng(n)){a=zc(t,l,!1),u=!1;continue}if(a===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;a=ya;var f=c.current.memoizedState.isDehydrated;if(f&&(xe(c,i).flags|=256),i=zc(c,i,!1),i!==2){if(mr&&!f){c.errorRecoveryDisabledLanes|=u,Mn|=u,a=4;break t}u=_t,_t=a,u!==null&&(_t===null?_t=u:_t.push.apply(_t,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){xe(t,0),tn(t,l,0,!0);break}t:{switch(e=t,u=a,u){case 0:case 1:throw Error(S(345));case 4:if((l&4194048)!==l)break;case 6:tn(e,l,Yt,!Pl);break t;case 2:_t=null;break;case 3:case 5:break;default:throw Error(S(329))}if((l&62914560)===l&&(a=Ei+300-Lt(),10<a)){if(tn(e,l,Yt,!Pl),ri(e,0,!0)!==0)break t;Cl=l,e.timeoutHandle=Uh(Bs.bind(null,e,n,_t,Iu,mf,l,Yt,Mn,Ue,Pl,u,\\\"Throttled\\\",-0,0),a);break t}Bs(e,n,_t,Iu,mf,l,Yt,Mn,Ue,Pl,u,null,-0,0)}}break}while(!0);pl(t)}function Bs(t,l,n,e,a,u,i,c,f,r,y,g,d,m){if(t.timeoutHandle=-1,g=l.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xl},th(l,u,g);var E=(u&62914560)===u?Ei-Lt():(u&4194048)===u?ah-Lt():0;if(E=Yg(g,E),E!==null){Cl=u,t.cancelPendingCommit=E(Us.bind(null,t,l,u,n,e,a,i,c,f,y,g,null,d,m)),tn(t,u,i,!r);return}}Us(t,l,u,n,e,a,i,c,f)}function ng(t){for(var l=t;;){var n=l.tag;if((n===0||n===11||n===15)&&l.flags&16384&&(n=l.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var e=0;e<n.length;e++){var a=n[e],u=a.getSnapshot;a=a.value;try{if(!jt(u(),a))return!1}catch{return!1}}if(n=l.child,l.subtreeFlags&16384&&n!==null)n.return=l,l=n;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function tn(t,l,n,e){l&=~dr,l&=~Mn,t.suspendedLanes|=l,t.pingedLanes&=~l,e&&(t.warmLanes|=l),e=t.expirationTimes;for(var a=l;0<a;){var u=31-Xt(a),i=1<<u;e[u]=-1,a&=~i}n!==0&&s0(t,n,l)}function bi(){return(Y&6)===0?(La(0,!1),!1):!0}function gr(){if(D!==null){if(G===0)var t=D.return;else t=D,Ml=Gn=null,lr(t),pe=null,Aa=0,t=D;for(;t!==null;)G1(t.alternate,t),t=t.return;D=null}}function xe(t,l){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Eg(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Cl=0,gr(),Z=t,D=n=Ol(t.current,null),w=l,G=0,Ht=null,Pl=!1,we=Da(t,l),mr=!1,Ue=Yt=dr=Mn=dn=P=0,_t=ya=null,mf=!1,(l&8)!==0&&(l|=l&32);var e=t.entangledLanes;if(e!==0)for(t=t.entanglements,e&=l;0<e;){var a=31-Xt(e),u=1<<a;l|=t[a],e&=~u}return Yl=l,yi(),n}function fh(t,l){_=null,N.H=Na,l===He||l===di?(l=es(),G=3):l===Ff?(l=es(),G=4):G=l===or?8:l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"?6:1,Ht=l,D===null&&(P=1,Fu(t,It(l,t.current)))}function rh(){var t=Zt.current;return t===null?!0:(w&4194048)===w?tl===null:(w&62914560)===w||(w&536870912)!==0?t===tl:!1}function oh(){var t=N.H;return N.H=Na,t===null?Na:t}function sh(){var t=N.A;return N.A=tg,t}function Pu(){P=4,Pl||(w&4194048)!==w&&Zt.current!==null||(we=!0),(dn&134217727)===0&&(Mn&134217727)===0||Z===null||tn(Z,w,Yt,!1)}function zc(t,l,n){var e=Y;Y|=2;var a=oh(),u=sh();(Z!==t||w!==l)&&(Iu=null,xe(t,l)),l=!1;var i=P;t:do try{if(G!==0&&D!==null){var c=D,f=Ht;switch(G){case 8:gr(),i=6;break t;case 3:case 2:case 9:case 6:Zt.current===null&&(l=!0);var r=G;if(G=0,Ht=null,ye(t,c,f,r),n&&we){i=0;break t}break;default:r=G,G=0,Ht=null,ye(t,c,f,r)}}eg(),i=P;break}catch(y){fh(t,y)}while(!0);return l&&t.shellSuspendCounter++,Ml=Gn=null,Y=e,N.H=a,N.A=u,D===null&&(Z=null,w=0,yi()),i}function eg(){for(;D!==null;)hh(D)}function ag(t,l){var n=Y;Y|=2;var e=oh(),a=sh();Z!==t||w!==l?(Iu=null,ku=Lt()+500,xe(t,l)):we=Da(t,l);t:do try{if(G!==0&&D!==null){l=D;var u=Ht;l:switch(G){case 1:G=0,Ht=null,ye(t,l,u,1);break;case 2:case 9:if(ns(u)){G=0,Ht=null,zs(l);break}l=function(){G!==2&&G!==9||Z!==t||(G=7),pl(t)},u.then(l,l);break t;case 3:G=7;break t;case 4:G=5;break t;case 7:ns(u)?(G=0,Ht=null,zs(l)):(G=0,Ht=null,ye(t,l,u,7));break;case 5:var i=null;switch(D.tag){case 26:i=D.memoizedState;case 5:case 27:var c=D;if(i?Dh(i):c.stateNode.complete){G=0,Ht=null;var f=c.sibling;if(f!==null)D=f;else{var r=c.return;r!==null?(D=r,Ai(r)):D=null}break l}}G=0,Ht=null,ye(t,l,u,5);break;case 6:G=0,Ht=null,ye(t,l,u,6);break;case 8:gr(),P=6;break t;default:throw Error(S(462))}}ug();break}catch(y){fh(t,y)}while(!0);return Ml=Gn=null,N.H=e,N.A=a,Y=n,D!==null?0:(Z=null,w=0,yi(),P)}function ug(){for(;D!==null&&!_m();)hh(D)}function hh(t){var l=L1(t.alternate,t,Yl);t.memoizedProps=t.pendingProps,l===null?Ai(t):D=l}function zs(t){var l=t,n=l.alternate;switch(l.tag){case 15:case 0:l=Ss(n,l,l.pendingProps,l.type,void 0,w);break;case 11:l=Ss(n,l,l.pendingProps,l.type.render,l.ref,w);break;case 5:lr(l);default:G1(n,l),l=D=G0(l,Yl),l=L1(n,l,Yl)}t.memoizedProps=t.pendingProps,l===null?Ai(t):D=l}function ye(t,l,n,e){Ml=Gn=null,lr(l),pe=null,Aa=0;var a=l.return;try{if(Jd(t,a,l,n,w)){P=1,Fu(t,It(n,t.current)),D=null;return}}catch(u){if(a!==null)throw D=a,u;P=1,Fu(t,It(n,t.current)),D=null;return}l.flags&32768?(q||e===1?t=!0:we||(w&536870912)!==0?t=!1:(Pl=t=!0,(e===2||e===9||e===3||e===6)&&(e=Zt.current,e!==null&&e.tag===13&&(e.flags|=16384))),yh(l,t)):Ai(l)}function Ai(t){var l=t;do{if((l.flags&32768)!==0){yh(l,Pl);return}t=l.return;var n=$d(l.alternate,l,Yl);if(n!==null){D=n;return}if(l=l.sibling,l!==null){D=l;return}D=l=t}while(l!==null);P===0&&(P=5)}function yh(t,l){do{var n=kd(t.alternate,t);if(n!==null){n.flags&=32767,D=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!l&&(t=t.sibling,t!==null)){D=t;return}D=t=n}while(t!==null);P=6,D=null}function Us(t,l,n,e,a,u,i,c,f){t.cancelPendingCommit=null;do Ti();while(it!==0);if((Y&6)!==0)throw Error(S(327));if(l!==null){if(l===t.current)throw Error(S(177));if(u=l.lanes|l.childLanes,u|=Xf,Ym(t,n,u,i,c,f),t===Z&&(D=Z=null,w=0),_e=l,fn=t,Cl=n,df=u,gf=a,uh=e,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,rg(qu,function(){return ph(),null})):(t.callbackNode=null,t.callbackPriority=0),e=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||e){e=N.T,N.T=null,a=L.p,L.p=2,i=Y,Y|=4;try{Id(t,l,n)}finally{Y=i,L.p=a,N.T=e}}it=1,mh(),dh(),gh()}}function mh(){if(it===1){it=0;var t=fn,l=_e,n=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var e=L.p;L.p=2;var a=Y;Y|=4;try{k1(l,t);var u=bf,i=D0(t.containerInfo),c=u.focusedElem,f=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&O0(c.ownerDocument.documentElement,c)){if(f!==null&&Gf(c)){var r=f.start,y=f.end;if(y===void 0&&(y=r),\\\"selectionStart\\\"in c)c.selectionStart=r,c.selectionEnd=Math.min(y,c.value.length);else{var g=c.ownerDocument||document,d=g&&g.defaultView||window;if(d.getSelection){var m=d.getSelection(),E=c.textContent.length,b=Math.min(f.start,E),x=f.end===void 0?b:Math.min(f.end,E);!m.extend&&b>x&&(i=x,x=b,b=i);var s=Wo(c,b),o=Wo(c,x);if(s&&o&&(m.rangeCount!==1||m.anchorNode!==s.node||m.anchorOffset!==s.offset||m.focusNode!==o.node||m.focusOffset!==o.offset)){var h=g.createRange();h.setStart(s.node,s.offset),m.removeAllRanges(),b>x?(m.addRange(h),m.extend(o.node,o.offset)):(h.setEnd(o.node,o.offset),m.addRange(h))}}}}for(g=[],m=c;m=m.parentNode;)m.nodeType===1&&g.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof c.focus==\\\"function\\\"&&c.focus(),c=0;c<g.length;c++){var p=g[c];p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}ci=!!Ef,bf=Ef=null}finally{Y=a,L.p=e,N.T=n}}t.current=l,it=2}}function dh(){if(it===2){it=0;var t=fn,l=_e,n=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var e=L.p;L.p=2;var a=Y;Y|=4;try{K1(t,l.alternate,l)}finally{Y=a,L.p=e,N.T=n}}it=3}}function gh(){if(it===4||it===3){it=0,xm();var t=fn,l=_e,n=Cl,e=uh;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?it=5:(it=0,_e=fn=null,vh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(cn=null),Cf(n),l=l.stateNode,Gt&&typeof Gt.onCommitFiberRoot==\\\"function\\\")try{Gt.onCommitFiberRoot(Oa,l,void 0,(l.current.flags&128)===128)}catch{}if(e!==null){l=N.T,a=L.p,L.p=2,N.T=null;try{for(var u=t.onRecoverableError,i=0;i<e.length;i++){var c=e[i];u(c.value,{componentStack:c.stack})}}finally{N.T=l,L.p=a}}(Cl&3)!==0&&Ti(),pl(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===vf?ma++:(ma=0,vf=t):ma=0,La(0,!1)}}function vh(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,wa(l)))}function Ti(){return mh(),dh(),gh(),ph()}function ph(){if(it!==5)return!1;var t=fn,l=df;df=0;var n=Cf(Cl),e=N.T,a=L.p;try{L.p=32>n?32:n,N.T=null,n=gf,gf=null;var u=fn,i=Cl;if(it=0,_e=fn=null,Cl=0,(Y&6)!==0)throw Error(S(331));var c=Y;if(Y|=4,nh(u.current),P1(u,u.current,i,n),Y=c,La(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot==\\\"function\\\")try{Gt.onPostCommitFiberRoot(Oa,u)}catch{}return!0}finally{L.p=a,N.T=e,vh(t,l)}}function _s(t,l,n){l=It(n,l),l=of(t.stateNode,l,2),t=un(t,l,2),t!==null&&(Ca(t,2),pl(t))}function X(t,l,n){if(t.tag===3)_s(t,t,n);else for(;l!==null;){if(l.tag===3){_s(l,t,n);break}else if(l.tag===1){var e=l.stateNode;if(typeof l.type.getDerivedStateFromError==\\\"function\\\"||typeof e.componentDidCatch==\\\"function\\\"&&(cn===null||!cn.has(e))){t=It(n,t),n=C1(2),e=un(l,n,2),e!==null&&(R1(n,e,l,t),Ca(e,2),pl(e));break}}l=l.return}}function Uc(t,l,n){var e=t.pingCache;if(e===null){e=t.pingCache=new lg;var a=new Set;e.set(l,a)}else a=e.get(l),a===void 0&&(a=new Set,e.set(l,a));a.has(n)||(mr=!0,a.add(n),t=ig.bind(null,t,l,n),l.then(t,t))}function ig(t,l,n){var e=t.pingCache;e!==null&&e.delete(l),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Z===t&&(w&n)===n&&(P===4||P===3&&(w&62914560)===w&&300>Lt()-Ei?(Y&2)===0&&xe(t,0):dr|=n,Ue===w&&(Ue=0)),pl(t)}function Sh(t,l){l===0&&(l=o0()),t=Ln(t,l),t!==null&&(Ca(t,l),pl(t))}function cg(t){var l=t.memoizedState,n=0;l!==null&&(n=l.retryLane),Sh(t,n)}function fg(t,l){var n=0;switch(t.tag){case 31:case 13:var e=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:e=t.stateNode;break;case 22:e=t.stateNode._retryCache;break;default:throw Error(S(314))}e!==null&&e.delete(l),Sh(t,n)}function rg(t,l){return Of(t,l)}var ti=null,le=null,pf=!1,li=!1,_c=!1,ln=0;function pl(t){t!==le&&t.next===null&&(le===null?ti=le=t:le=le.next=t),li=!0,pf||(pf=!0,sg())}function La(t,l){if(!_c&&li){_c=!0;do for(var n=!1,e=ti;e!==null;){if(!l)if(t!==0){var a=e.pendingLanes;if(a===0)var u=0;else{var i=e.suspendedLanes,c=e.pingedLanes;u=(1<<31-Xt(42|t)+1)-1,u&=a&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,xs(e,u))}else u=w,u=ri(e,e===Z?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),(u&3)===0||Da(e,u)||(n=!0,xs(e,u));e=e.next}while(n);_c=!1}}function og(){Eh()}function Eh(){li=pf=!1;var t=0;ln!==0&&Sg()&&(t=ln);for(var l=Lt(),n=null,e=ti;e!==null;){var a=e.next,u=bh(e,l);u===0?(e.next=null,n===null?ti=a:n.next=a,a===null&&(le=n)):(n=e,(t!==0||(u&3)!==0)&&(li=!0)),e=a}it!==0&&it!==5||La(t,!1),ln!==0&&(ln=0)}function bh(t,l){for(var n=t.suspendedLanes,e=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-Xt(u),c=1<<i,f=a[i];f===-1?((c&n)===0||(c&e)!==0)&&(a[i]=qm(c,l)):f<=l&&(t.expiredLanes|=c),u&=~c}if(l=Z,n=w,n=ri(t,t===l?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),e=t.callbackNode,n===0||t===l&&(G===2||G===9)||t.cancelPendingCommit!==null)return e!==null&&e!==null&&ec(e),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Da(t,n)){if(l=n&-n,l===t.callbackPriority)return l;switch(e!==null&&ec(e),Cf(n)){case 2:case 8:n=f0;break;case 32:n=qu;break;case 268435456:n=r0;break;default:n=qu}return e=Ah.bind(null,t),n=Of(n,e),t.callbackPriority=l,t.callbackNode=n,l}return e!==null&&e!==null&&ec(e),t.callbackPriority=2,t.callbackNode=null,2}function Ah(t,l){if(it!==0&&it!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ti()&&t.callbackNode!==n)return null;var e=w;return e=ri(t,t===Z?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),e===0?null:(ch(t,e,l),bh(t,Lt()),t.callbackNode!=null&&t.callbackNode===n?Ah.bind(null,t):null)}function xs(t,l){if(Ti())return null;ch(t,l,!0)}function sg(){bg(function(){(Y&6)!==0?Of(c0,og):Eh()})}function vr(){if(ln===0){var t=Ne;t===0&&(t=nu,nu<<=1,(nu&261888)===0&&(nu=256)),ln=t}return ln}function Ms(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:Eu(\\\"\\\"+t)}function Os(t,l){var n=l.ownerDocument.createElement(\\\"input\\\");return n.name=l.name,n.value=l.value,t.id&&n.setAttribute(\\\"form\\\",t.id),l.parentNode.insertBefore(n,l),t=new FormData(t),n.parentNode.removeChild(n),t}function hg(t,l,n,e,a){if(l===\\\"submit\\\"&&n&&n.stateNode===a){var u=Ms((a[Mt]||null).action),i=e.submitter;i&&(l=(l=i[Mt]||null)?Ms(l.formAction):i.getAttribute(\\\"formAction\\\"),l!==null&&(u=l,i=null));var c=new oi(\\\"action\\\",\\\"action\\\",null,e,a);t.push({event:c,listeners:[{instance:null,listener:function(){if(e.defaultPrevented){if(ln!==0){var f=i?Os(a,i):new FormData(a);ff(n,{pending:!0,data:f,method:a.method,action:u},null,f)}}else typeof u==\\\"function\\\"&&(c.preventDefault(),f=i?Os(a,i):new FormData(a),ff(n,{pending:!0,data:f,method:a.method,action:u},u,f))},currentTarget:a}]})}}for(mu=0;mu<Wc.length;mu++)du=Wc[mu],Ds=du.toLowerCase(),Cs=du[0].toUpperCase()+du.slice(1),fl(Ds,\\\"on\\\"+Cs);var du,Ds,Cs,mu;fl(R0,\\\"onAnimationEnd\\\");fl(H0,\\\"onAnimationIteration\\\");fl(w0,\\\"onAnimationStart\\\");fl(\\\"dblclick\\\",\\\"onDoubleClick\\\");fl(\\\"focusin\\\",\\\"onFocus\\\");fl(\\\"focusout\\\",\\\"onBlur\\\");fl(Md,\\\"onTransitionRun\\\");fl(Od,\\\"onTransitionStart\\\");fl(Dd,\\\"onTransitionCancel\\\");fl(q0,\\\"onTransitionEnd\\\");Ae(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);Ae(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);Ae(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);Ae(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);wn(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));wn(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));wn(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);wn(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));wn(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));wn(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var Ba=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),yg=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(Ba));function Th(t,l){l=(l&4)!==0;for(var n=0;n<t.length;n++){var e=t[n],a=e.event;e=e.listeners;t:{var u=void 0;if(l)for(var i=e.length-1;0<=i;i--){var c=e[i],f=c.instance,r=c.currentTarget;if(c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(y){Lu(y)}a.currentTarget=null,u=f}else for(i=0;i<e.length;i++){if(c=e[i],f=c.instance,r=c.currentTarget,c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(y){Lu(y)}a.currentTarget=null,u=f}}}}function O(t,l){var n=l[Xc];n===void 0&&(n=l[Xc]=new Set);var e=t+\\\"__bubble\\\";n.has(e)||(Nh(l,t,2,!1),n.add(e))}function xc(t,l,n){var e=0;l&&(e|=4),Nh(n,t,e,l)}var gu=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function pr(t){if(!t[gu]){t[gu]=!0,d0.forEach(function(n){n!==\\\"selectionchange\\\"&&(yg.has(n)||xc(n,!1,t),xc(n,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[gu]||(l[gu]=!0,xc(\\\"selectionchange\\\",!1,l))}}function Nh(t,l,n,e){switch(qh(l)){case 2:var a=Xg;break;case 8:a=Qg;break;default:a=Ar}n=a.bind(null,l,n,t),a=void 0,!Kc||l!==\\\"touchstart\\\"&&l!==\\\"touchmove\\\"&&l!==\\\"wheel\\\"||(a=!0),e?a!==void 0?t.addEventListener(l,n,{capture:!0,passive:a}):t.addEventListener(l,n,!0):a!==void 0?t.addEventListener(l,n,{passive:a}):t.addEventListener(l,n,!1)}function Mc(t,l,n,e,a){var u=e;if((l&1)===0&&(l&2)===0&&e!==null)t:for(;;){if(e===null)return;var i=e.tag;if(i===3||i===4){var c=e.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=e.return;i!==null;){var f=i.tag;if((f===3||f===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=ae(c),i===null)return;if(f=i.tag,f===5||f===6||f===26||f===27){e=u=i;continue t}c=c.parentNode}}e=e.return}T0(function(){var r=u,y=wf(n),g=[];t:{var d=Y0.get(t);if(d!==void 0){var m=oi,E=t;switch(t){case\\\"keypress\\\":if(Au(n)===0)break t;case\\\"keydown\\\":case\\\"keyup\\\":m=fd;break;case\\\"focusin\\\":E=\\\"focus\\\",m=fc;break;case\\\"focusout\\\":E=\\\"blur\\\",m=fc;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":m=fc;break;case\\\"click\\\":if(n.button===2)break t;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":m=Go;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":m=$m;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":m=sd;break;case R0:case H0:case w0:m=Pm;break;case q0:m=yd;break;case\\\"scroll\\\":case\\\"scrollend\\\":m=Fm;break;case\\\"wheel\\\":m=dd;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":m=ld;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":m=Qo;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":m=vd}var b=(l&4)!==0,x=!b&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),s=b?d!==null?d+\\\"Capture\\\":null:d;b=[];for(var o=r,h;o!==null;){var p=o;if(h=p.stateNode,p=p.tag,p!==5&&p!==26&&p!==27||h===null||s===null||(p=va(o,s),p!=null&&b.push(za(o,p,h))),x)break;o=o.return}0<b.length&&(d=new m(d,E,null,n,y),g.push({event:d,listeners:b}))}}if((l&7)===0){t:{if(d=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",m=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",d&&n!==Vc&&(E=n.relatedTarget||n.fromElement)&&(ae(E)||E[De]))break t;if((m||d)&&(d=y.window===y?y:(d=y.ownerDocument)?d.defaultView||d.parentWindow:window,m?(E=n.relatedTarget||n.toElement,m=r,E=E?ae(E):null,E!==null&&(x=Ma(E),b=E.tag,E!==x||b!==5&&b!==27&&b!==6)&&(E=null)):(m=null,E=r),m!==E)){if(b=Go,p=\\\"onMouseLeave\\\",s=\\\"onMouseEnter\\\",o=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(b=Qo,p=\\\"onPointerLeave\\\",s=\\\"onPointerEnter\\\",o=\\\"pointer\\\"),x=m==null?d:ta(m),h=E==null?d:ta(E),d=new b(p,o+\\\"leave\\\",m,n,y),d.target=x,d.relatedTarget=h,p=null,ae(y)===r&&(b=new b(s,o+\\\"enter\\\",E,n,y),b.target=h,b.relatedTarget=x,p=b),x=p,m&&E)l:{for(b=mg,s=m,o=E,h=0,p=s;p;p=b(p))h++;p=0;for(var T=o;T;T=b(T))p++;for(;0<h-p;)s=b(s),h--;for(;0<p-h;)o=b(o),p--;for(;h--;){if(s===o||o!==null&&s===o.alternate){b=s;break l}s=b(s),o=b(o)}b=null}else b=null;m!==null&&Rs(g,d,m,b,!1),E!==null&&x!==null&&Rs(g,x,E,b,!0)}}t:{if(d=r?ta(r):window,m=d.nodeName&&d.nodeName.toLowerCase(),m===\\\"select\\\"||m===\\\"input\\\"&&d.type===\\\"file\\\")var R=Ko;else if(Vo(d))if(x0)R=Ud;else{R=Bd;var A=Nd}else m=d.nodeName,!m||m.toLowerCase()!==\\\"input\\\"||d.type!==\\\"checkbox\\\"&&d.type!==\\\"radio\\\"?r&&Hf(r.elementType)&&(R=Ko):R=zd;if(R&&(R=R(t,r))){_0(g,R,n,y);break t}A&&A(t,d,r),t===\\\"focusout\\\"&&r&&d.type===\\\"number\\\"&&r.memoizedProps.value!=null&&Zc(d,\\\"number\\\",d.value)}switch(A=r?ta(r):window,t){case\\\"focusin\\\":(Vo(A)||A.contentEditable===\\\"true\\\")&&(ce=A,Jc=r,ua=null);break;case\\\"focusout\\\":ua=Jc=ce=null;break;case\\\"mousedown\\\":Fc=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":Fc=!1,$o(g,n,y);break;case\\\"selectionchange\\\":if(xd)break;case\\\"keydown\\\":case\\\"keyup\\\":$o(g,n,y)}var z;if(Lf)t:{switch(t){case\\\"compositionstart\\\":var M=\\\"onCompositionStart\\\";break t;case\\\"compositionend\\\":M=\\\"onCompositionEnd\\\";break t;case\\\"compositionupdate\\\":M=\\\"onCompositionUpdate\\\";break t}M=void 0}else ie?z0(t,n)&&(M=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&n.keyCode===229&&(M=\\\"onCompositionStart\\\");M&&(B0&&n.locale!==\\\"ko\\\"&&(ie||M!==\\\"onCompositionStart\\\"?M===\\\"onCompositionEnd\\\"&&ie&&(z=N0()):(Il=y,qf=\\\"value\\\"in Il?Il.value:Il.textContent,ie=!0)),A=ni(r,M),0<A.length&&(M=new Xo(M,t,null,n,y),g.push({event:M,listeners:A}),z?M.data=z:(z=U0(n),z!==null&&(M.data=z)))),(z=Sd?Ed(t,n):bd(t,n))&&(M=ni(r,\\\"onBeforeInput\\\"),0<M.length&&(A=new Xo(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,n,y),g.push({event:A,listeners:M}),A.data=z)),hg(g,t,r,n,y)}Th(g,l)})}function za(t,l,n){return{instance:t,listener:l,currentTarget:n}}function ni(t,l){for(var n=l+\\\"Capture\\\",e=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=va(t,n),a!=null&&e.unshift(za(t,a,u)),a=va(t,l),a!=null&&e.push(za(t,a,u))),t.tag===3)return e;t=t.return}return[]}function mg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Rs(t,l,n,e,a){for(var u=l._reactName,i=[];n!==null&&n!==e;){var c=n,f=c.alternate,r=c.stateNode;if(c=c.tag,f!==null&&f===e)break;c!==5&&c!==26&&c!==27||r===null||(f=r,a?(r=va(n,u),r!=null&&i.unshift(za(n,r,f))):a||(r=va(n,u),r!=null&&i.push(za(n,r,f)))),n=n.return}i.length!==0&&t.push({event:l,listeners:i})}var dg=/\\\\r\\\\n?/g,gg=/\\\\u0000|\\\\uFFFD/g;function Hs(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(dg,`\\n`).replace(gg,\\\"\\\")}function Bh(t,l){return l=Hs(l),Hs(t)===l}function Q(t,l,n,e,a,u){switch(n){case\\\"children\\\":typeof e==\\\"string\\\"?l===\\\"body\\\"||l===\\\"textarea\\\"&&e===\\\"\\\"||Te(t,e):(typeof e==\\\"number\\\"||typeof e==\\\"bigint\\\")&&l!==\\\"body\\\"&&Te(t,\\\"\\\"+e);break;case\\\"className\\\":uu(t,\\\"class\\\",e);break;case\\\"tabIndex\\\":uu(t,\\\"tabindex\\\",e);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":uu(t,n,e);break;case\\\"style\\\":A0(t,e,u);break;case\\\"data\\\":if(l!==\\\"object\\\"){uu(t,\\\"data\\\",e);break}case\\\"src\\\":case\\\"href\\\":if(e===\\\"\\\"&&(l!==\\\"a\\\"||n!==\\\"href\\\")){t.removeAttribute(n);break}if(e==null||typeof e==\\\"function\\\"||typeof e==\\\"symbol\\\"||typeof e==\\\"boolean\\\"){t.removeAttribute(n);break}e=Eu(\\\"\\\"+e),t.setAttribute(n,e);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof e==\\\"function\\\"){t.setAttribute(n,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof u==\\\"function\\\"&&(n===\\\"formAction\\\"?(l!==\\\"input\\\"&&Q(t,l,\\\"name\\\",a.name,a,null),Q(t,l,\\\"formEncType\\\",a.formEncType,a,null),Q(t,l,\\\"formMethod\\\",a.formMethod,a,null),Q(t,l,\\\"formTarget\\\",a.formTarget,a,null)):(Q(t,l,\\\"encType\\\",a.encType,a,null),Q(t,l,\\\"method\\\",a.method,a,null),Q(t,l,\\\"target\\\",a.target,a,null)));if(e==null||typeof e==\\\"symbol\\\"||typeof e==\\\"boolean\\\"){t.removeAttribute(n);break}e=Eu(\\\"\\\"+e),t.setAttribute(n,e);break;case\\\"onClick\\\":e!=null&&(t.onclick=xl);break;case\\\"onScroll\\\":e!=null&&O(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":e!=null&&O(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(e!=null){if(typeof e!=\\\"object\\\"||!(\\\"__html\\\"in e))throw Error(S(61));if(n=e.__html,n!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=n}}break;case\\\"multiple\\\":t.multiple=e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(e==null||typeof e==\\\"function\\\"||typeof e==\\\"boolean\\\"||typeof e==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}n=Eu(\\\"\\\"+e),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",n);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":e!=null&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"+e):t.removeAttribute(n);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?t.setAttribute(n,\\\"\\\"):t.removeAttribute(n);break;case\\\"capture\\\":case\\\"download\\\":e===!0?t.setAttribute(n,\\\"\\\"):e!==!1&&e!=null&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"?t.setAttribute(n,e):t.removeAttribute(n);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":e!=null&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\"&&!isNaN(e)&&1<=e?t.setAttribute(n,e):t.removeAttribute(n);break;case\\\"rowSpan\\\":case\\\"start\\\":e==null||typeof e==\\\"function\\\"||typeof e==\\\"symbol\\\"||isNaN(e)?t.removeAttribute(n):t.setAttribute(n,e);break;case\\\"popover\\\":O(\\\"beforetoggle\\\",t),O(\\\"toggle\\\",t),Su(t,\\\"popover\\\",e);break;case\\\"xlinkActuate\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",e);break;case\\\"xlinkArcrole\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",e);break;case\\\"xlinkRole\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",e);break;case\\\"xlinkShow\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",e);break;case\\\"xlinkTitle\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",e);break;case\\\"xlinkType\\\":bl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",e);break;case\\\"xmlBase\\\":bl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",e);break;case\\\"xmlLang\\\":bl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",e);break;case\\\"xmlSpace\\\":bl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",e);break;case\\\"is\\\":Su(t,\\\"is\\\",e);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<n.length)||n[0]!==\\\"o\\\"&&n[0]!==\\\"O\\\"||n[1]!==\\\"n\\\"&&n[1]!==\\\"N\\\")&&(n=Km.get(n)||n,Su(t,n,e))}}function Sf(t,l,n,e,a,u){switch(n){case\\\"style\\\":A0(t,e,u);break;case\\\"dangerouslySetInnerHTML\\\":if(e!=null){if(typeof e!=\\\"object\\\"||!(\\\"__html\\\"in e))throw Error(S(61));if(n=e.__html,n!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=n}}break;case\\\"children\\\":typeof e==\\\"string\\\"?Te(t,e):(typeof e==\\\"number\\\"||typeof e==\\\"bigint\\\")&&Te(t,\\\"\\\"+e);break;case\\\"onScroll\\\":e!=null&&O(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":e!=null&&O(\\\"scrollend\\\",t);break;case\\\"onClick\\\":e!=null&&(t.onclick=xl);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!g0.hasOwnProperty(n))t:{if(n[0]===\\\"o\\\"&&n[1]===\\\"n\\\"&&(a=n.endsWith(\\\"Capture\\\"),l=n.slice(2,a?n.length-7:void 0),u=t[Mt]||null,u=u!=null?u[n]:null,typeof u==\\\"function\\\"&&t.removeEventListener(l,u,a),typeof e==\\\"function\\\")){typeof u!=\\\"function\\\"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(l,e,a);break t}n in t?t[n]=e:e===!0?t.setAttribute(n,\\\"\\\"):Su(t,n,e)}}}function gt(t,l,n){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);var e=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var i=n[u];if(i!=null)switch(u){case\\\"src\\\":e=!0;break;case\\\"srcSet\\\":a=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:Q(t,l,u,i,n,null)}}a&&Q(t,l,\\\"srcSet\\\",n.srcSet,n,null),e&&Q(t,l,\\\"src\\\",n.src,n,null);return;case\\\"input\\\":O(\\\"invalid\\\",t);var c=u=i=a=null,f=null,r=null;for(e in n)if(n.hasOwnProperty(e)){var y=n[e];if(y!=null)switch(e){case\\\"name\\\":a=y;break;case\\\"type\\\":i=y;break;case\\\"checked\\\":f=y;break;case\\\"defaultChecked\\\":r=y;break;case\\\"value\\\":u=y;break;case\\\"defaultValue\\\":c=y;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(y!=null)throw Error(S(137,l));break;default:Q(t,l,e,y,n,null)}}S0(t,u,c,f,r,i,a,!1);return;case\\\"select\\\":O(\\\"invalid\\\",t),e=i=u=null;for(a in n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case\\\"value\\\":u=c;break;case\\\"defaultValue\\\":i=c;break;case\\\"multiple\\\":e=c;default:Q(t,l,a,c,n,null)}l=u,n=i,t.multiple=!!e,l!=null?de(t,!!e,l,!1):n!=null&&de(t,!!e,n,!0);return;case\\\"textarea\\\":O(\\\"invalid\\\",t),u=a=e=null;for(i in n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case\\\"value\\\":e=c;break;case\\\"defaultValue\\\":a=c;break;case\\\"children\\\":u=c;break;case\\\"dangerouslySetInnerHTML\\\":if(c!=null)throw Error(S(91));break;default:Q(t,l,i,c,n,null)}b0(t,e,a,u);return;case\\\"option\\\":for(f in n)n.hasOwnProperty(f)&&(e=n[f],e!=null)&&(f===\\\"selected\\\"?t.selected=e&&typeof e!=\\\"function\\\"&&typeof e!=\\\"symbol\\\":Q(t,l,f,e,n,null));return;case\\\"dialog\\\":O(\\\"beforetoggle\\\",t),O(\\\"toggle\\\",t),O(\\\"cancel\\\",t),O(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":O(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(e=0;e<Ba.length;e++)O(Ba[e],t);break;case\\\"image\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);break;case\\\"details\\\":O(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":O(\\\"error\\\",t),O(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(r in n)if(n.hasOwnProperty(r)&&(e=n[r],e!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:Q(t,l,r,e,n,null)}return;default:if(Hf(l)){for(y in n)n.hasOwnProperty(y)&&(e=n[y],e!==void 0&&Sf(t,l,y,e,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(e=n[c],e!=null&&Q(t,l,c,e,n,null))}function vg(t,l,n,e){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var a=null,u=null,i=null,c=null,f=null,r=null,y=null;for(m in n){var g=n[m];if(n.hasOwnProperty(m)&&g!=null)switch(m){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":f=g;default:e.hasOwnProperty(m)||Q(t,l,m,null,e,g)}}for(var d in e){var m=e[d];if(g=n[d],e.hasOwnProperty(d)&&(m!=null||g!=null))switch(d){case\\\"type\\\":u=m;break;case\\\"name\\\":a=m;break;case\\\"checked\\\":r=m;break;case\\\"defaultChecked\\\":y=m;break;case\\\"value\\\":i=m;break;case\\\"defaultValue\\\":c=m;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(m!=null)throw Error(S(137,l));break;default:m!==g&&Q(t,l,d,m,e,g)}}jc(t,i,c,f,r,y,u,a);return;case\\\"select\\\":m=i=c=d=null;for(u in n)if(f=n[u],n.hasOwnProperty(u)&&f!=null)switch(u){case\\\"value\\\":break;case\\\"multiple\\\":m=f;default:e.hasOwnProperty(u)||Q(t,l,u,null,e,f)}for(a in e)if(u=e[a],f=n[a],e.hasOwnProperty(a)&&(u!=null||f!=null))switch(a){case\\\"value\\\":d=u;break;case\\\"defaultValue\\\":c=u;break;case\\\"multiple\\\":i=u;default:u!==f&&Q(t,l,a,u,e,f)}l=c,n=i,e=m,d!=null?de(t,!!n,d,!1):!!e!=!!n&&(l!=null?de(t,!!n,l,!0):de(t,!!n,n?[]:\\\"\\\",!1));return;case\\\"textarea\\\":m=d=null;for(c in n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!e.hasOwnProperty(c))switch(c){case\\\"value\\\":break;case\\\"children\\\":break;default:Q(t,l,c,null,e,a)}for(i in e)if(a=e[i],u=n[i],e.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case\\\"value\\\":d=a;break;case\\\"defaultValue\\\":m=a;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null)throw Error(S(91));break;default:a!==u&&Q(t,l,i,a,e,u)}E0(t,d,m);return;case\\\"option\\\":for(var E in n)d=n[E],n.hasOwnProperty(E)&&d!=null&&!e.hasOwnProperty(E)&&(E===\\\"selected\\\"?t.selected=!1:Q(t,l,E,null,e,d));for(f in e)d=e[f],m=n[f],e.hasOwnProperty(f)&&d!==m&&(d!=null||m!=null)&&(f===\\\"selected\\\"?t.selected=d&&typeof d!=\\\"function\\\"&&typeof d!=\\\"symbol\\\":Q(t,l,f,d,e,m));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!e.hasOwnProperty(b)&&Q(t,l,b,null,e,d);for(r in e)if(d=e[r],m=n[r],e.hasOwnProperty(r)&&d!==m&&(d!=null||m!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(d!=null)throw Error(S(137,l));break;default:Q(t,l,r,d,e,m)}return;default:if(Hf(l)){for(var x in n)d=n[x],n.hasOwnProperty(x)&&d!==void 0&&!e.hasOwnProperty(x)&&Sf(t,l,x,void 0,e,d);for(y in e)d=e[y],m=n[y],!e.hasOwnProperty(y)||d===m||d===void 0&&m===void 0||Sf(t,l,y,d,e,m);return}}for(var s in n)d=n[s],n.hasOwnProperty(s)&&d!=null&&!e.hasOwnProperty(s)&&Q(t,l,s,null,e,d);for(g in e)d=e[g],m=n[g],!e.hasOwnProperty(g)||d===m||d==null&&m==null||Q(t,l,g,d,e,m)}function ws(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function pg(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,l=0,n=performance.getEntriesByType(\\\"resource\\\"),e=0;e<n.length;e++){var a=n[e],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&ws(i)){for(i=0,c=a.responseEnd,e+=1;e<n.length;e++){var f=n[e],r=f.startTime;if(r>c)break;var y=f.transferSize,g=f.initiatorType;y&&ws(g)&&(f=f.responseEnd,i+=y*(f<c?1:(c-r)/(f-r)))}if(--e,l+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var Ef=null,bf=null;function ei(t){return t.nodeType===9?t:t.ownerDocument}function qs(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function zh(t,l){if(t===0)switch(l){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&l===\\\"foreignObject\\\"?0:t}function Af(t,l){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof l.children==\\\"string\\\"||typeof l.children==\\\"number\\\"||typeof l.children==\\\"bigint\\\"||typeof l.dangerouslySetInnerHTML==\\\"object\\\"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Oc=null;function Sg(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===Oc?!1:(Oc=t,!0):(Oc=null,!1)}var Uh=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,Eg=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,Ys=typeof Promise==\\\"function\\\"?Promise:void 0,bg=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof Ys<\\\"u\\\"?function(t){return Ys.resolve(null).then(t).catch(Ag)}:Uh;function Ag(t){setTimeout(function(){throw t})}function vn(t){return t===\\\"head\\\"}function Ls(t,l){var n=l,e=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n===\\\"/$\\\"||n===\\\"/&\\\"){if(e===0){t.removeChild(a),Oe(l);return}e--}else if(n===\\\"$\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"$!\\\"||n===\\\"&\\\")e++;else if(n===\\\"html\\\")da(t.ownerDocument.documentElement);else if(n===\\\"head\\\"){n=t.ownerDocument.head,da(n);for(var u=n.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Ra]||c===\\\"SCRIPT\\\"||c===\\\"STYLE\\\"||c===\\\"LINK\\\"&&u.rel.toLowerCase()===\\\"stylesheet\\\"||n.removeChild(u),u=i}}else n===\\\"body\\\"&&da(t.ownerDocument.body);n=a}while(n);Oe(l)}function Gs(t,l){var n=t;t=0;do{var e=n.nextSibling;if(n.nodeType===1?l?(n._stashedDisplay=n.style.display,n.style.display=\\\"none\\\"):(n.style.display=n._stashedDisplay||\\\"\\\",n.getAttribute(\\\"style\\\")===\\\"\\\"&&n.removeAttribute(\\\"style\\\")):n.nodeType===3&&(l?(n._stashedText=n.nodeValue,n.nodeValue=\\\"\\\"):n.nodeValue=n._stashedText||\\\"\\\"),e&&e.nodeType===8)if(n=e.data,n===\\\"/$\\\"){if(t===0)break;t--}else n!==\\\"$\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"$!\\\"||t++;n=e}while(n)}function Tf(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var n=l;switch(l=l.nextSibling,n.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":Tf(n),Rf(n);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(n.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(n)}}function Tg(t,l,n,e){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!e&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(e){if(!t[Ra])switch(l){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(u=t.getAttribute(\\\"rel\\\"),u===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(u!==a.rel||t.getAttribute(\\\"href\\\")!==(a.href==null||a.href===\\\"\\\"?null:a.href)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute(\\\"title\\\")!==(a.title==null?null:a.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(u=t.getAttribute(\\\"src\\\"),(u!==(a.src==null?null:a.src)||t.getAttribute(\\\"type\\\")!==(a.type==null?null:a.type)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(l===\\\"input\\\"&&t.type===\\\"hidden\\\"){var u=a.name==null?null:\\\"\\\"+a.name;if(a.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===u)return t}else return t;if(t=ll(t.nextSibling),t===null)break}return null}function Ng(t,l,n){if(l===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!n||(t=ll(t.nextSibling),t===null))return null;return t}function _h(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!l||(t=ll(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function Bf(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function Bg(t,l){var n=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=l;else if(t.data!==\\\"$?\\\"||n.readyState!==\\\"loading\\\")l();else{var e=function(){l(),n.removeEventListener(\\\"DOMContentLoaded\\\",e)};n.addEventListener(\\\"DOMContentLoaded\\\",e),t._reactRetry=e}}function ll(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l===\\\"$\\\"||l===\\\"$!\\\"||l===\\\"$?\\\"||l===\\\"$~\\\"||l===\\\"&\\\"||l===\\\"F!\\\"||l===\\\"F\\\")break;if(l===\\\"/$\\\"||l===\\\"/&\\\")return null}}return t}var zf=null;function Xs(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"/$\\\"||n===\\\"/&\\\"){if(l===0)return ll(t.nextSibling);l--}else n!==\\\"$\\\"&&n!==\\\"$!\\\"&&n!==\\\"$?\\\"&&n!==\\\"$~\\\"&&n!==\\\"&\\\"||l++}t=t.nextSibling}return null}function Qs(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var n=t.data;if(n===\\\"$\\\"||n===\\\"$!\\\"||n===\\\"$?\\\"||n===\\\"$~\\\"||n===\\\"&\\\"){if(l===0)return t;l--}else n!==\\\"/$\\\"&&n!==\\\"/&\\\"||l++}t=t.previousSibling}return null}function xh(t,l,n){switch(l=ei(n),t){case\\\"html\\\":if(t=l.documentElement,!t)throw Error(S(452));return t;case\\\"head\\\":if(t=l.head,!t)throw Error(S(453));return t;case\\\"body\\\":if(t=l.body,!t)throw Error(S(454));return t;default:throw Error(S(451))}}function da(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Rf(t)}var nl=new Map,js=new Set;function ai(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ll=L.d;L.d={f:zg,r:Ug,D:_g,C:xg,L:Mg,m:Og,X:Cg,S:Dg,M:Rg};function zg(){var t=Ll.f(),l=bi();return t||l}function Ug(t){var l=Ce(t);l!==null&&l.tag===5&&l.type===\\\"form\\\"?A1(l):Ll.r(t)}var qe=typeof document>\\\"u\\\"?null:document;function Mh(t,l,n){var e=qe;if(e&&typeof l==\\\"string\\\"&&l){var a=kt(l);a='link[rel=\\\"'+t+'\\\"][href=\\\"'+a+'\\\"]',typeof n==\\\"string\\\"&&(a+='[crossorigin=\\\"'+n+'\\\"]'),js.has(a)||(js.add(a),t={rel:t,crossOrigin:n,href:l},e.querySelector(a)===null&&(l=e.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),ot(l),e.head.appendChild(l)))}}function _g(t){Ll.D(t),Mh(\\\"dns-prefetch\\\",t,null)}function xg(t,l){Ll.C(t,l),Mh(\\\"preconnect\\\",t,l)}function Mg(t,l,n){Ll.L(t,l,n);var e=qe;if(e&&t&&l){var a='link[rel=\\\"preload\\\"][as=\\\"'+kt(l)+'\\\"]';l===\\\"image\\\"&&n&&n.imageSrcSet?(a+='[imagesrcset=\\\"'+kt(n.imageSrcSet)+'\\\"]',typeof n.imageSizes==\\\"string\\\"&&(a+='[imagesizes=\\\"'+kt(n.imageSizes)+'\\\"]')):a+='[href=\\\"'+kt(t)+'\\\"]';var u=a;switch(l){case\\\"style\\\":u=Me(t);break;case\\\"script\\\":u=Ye(t)}nl.has(u)||(t=W({rel:\\\"preload\\\",href:l===\\\"image\\\"&&n&&n.imageSrcSet?void 0:t,as:l},n),nl.set(u,t),e.querySelector(a)!==null||l===\\\"style\\\"&&e.querySelector(Ga(u))||l===\\\"script\\\"&&e.querySelector(Xa(u))||(l=e.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),ot(l),e.head.appendChild(l)))}}function Og(t,l){Ll.m(t,l);var n=qe;if(n&&t){var e=l&&typeof l.as==\\\"string\\\"?l.as:\\\"script\\\",a='link[rel=\\\"modulepreload\\\"][as=\\\"'+kt(e)+'\\\"][href=\\\"'+kt(t)+'\\\"]',u=a;switch(e){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":u=Ye(t)}if(!nl.has(u)&&(t=W({rel:\\\"modulepreload\\\",href:t},l),nl.set(u,t),n.querySelector(a)===null)){switch(e){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(n.querySelector(Xa(u)))return}e=n.createElement(\\\"link\\\"),gt(e,\\\"link\\\",t),ot(e),n.head.appendChild(e)}}}function Dg(t,l,n){Ll.S(t,l,n);var e=qe;if(e&&t){var a=me(e).hoistableStyles,u=Me(t);l=l||\\\"default\\\";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(Ga(u)))c.loading=5;else{t=W({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":l},n),(n=nl.get(u))&&Sr(t,n);var f=i=e.createElement(\\\"link\\\");ot(f),gt(f,\\\"link\\\",t),f._p=new Promise(function(r,y){f.onload=r,f.onerror=y}),f.addEventListener(\\\"load\\\",function(){c.loading|=1}),f.addEventListener(\\\"error\\\",function(){c.loading|=2}),c.loading|=4,Mu(i,l,e)}i={type:\\\"stylesheet\\\",instance:i,count:1,state:c},a.set(u,i)}}}function Cg(t,l){Ll.X(t,l);var n=qe;if(n&&t){var e=me(n).hoistableScripts,a=Ye(t),u=e.get(a);u||(u=n.querySelector(Xa(a)),u||(t=W({src:t,async:!0},l),(l=nl.get(a))&&Er(t,l),u=n.createElement(\\\"script\\\"),ot(u),gt(u,\\\"link\\\",t),n.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},e.set(a,u))}}function Rg(t,l){Ll.M(t,l);var n=qe;if(n&&t){var e=me(n).hoistableScripts,a=Ye(t),u=e.get(a);u||(u=n.querySelector(Xa(a)),u||(t=W({src:t,async:!0,type:\\\"module\\\"},l),(l=nl.get(a))&&Er(t,l),u=n.createElement(\\\"script\\\"),ot(u),gt(u,\\\"link\\\",t),n.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},e.set(a,u))}}function Zs(t,l,n,e){var a=(a=nn.current)?ai(a):null;if(!a)throw Error(S(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof n.precedence==\\\"string\\\"&&typeof n.href==\\\"string\\\"?(l=Me(n.href),n=me(a).hoistableStyles,e=n.get(l),e||(e={type:\\\"style\\\",instance:null,count:0,state:null},n.set(l,e)),e):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(n.rel===\\\"stylesheet\\\"&&typeof n.href==\\\"string\\\"&&typeof n.precedence==\\\"string\\\"){t=Me(n.href);var u=me(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(Ga(t)))&&!u._p&&(i.instance=u,i.state.loading=5),nl.has(t)||(n={rel:\\\"preload\\\",as:\\\"style\\\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nl.set(t,n),u||Hg(a,t,n,i.state))),l&&e===null)throw Error(S(528,\\\"\\\"));return i}if(l&&e!==null)throw Error(S(529,\\\"\\\"));return null;case\\\"script\\\":return l=n.async,n=n.src,typeof n==\\\"string\\\"&&l&&typeof l!=\\\"function\\\"&&typeof l!=\\\"symbol\\\"?(l=Ye(n),n=me(a).hoistableScripts,e=n.get(l),e||(e={type:\\\"script\\\",instance:null,count:0,state:null},n.set(l,e)),e):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(S(444,t))}}function Me(t){return'href=\\\"'+kt(t)+'\\\"'}function Ga(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function Oh(t){return W({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function Hg(t,l,n,e){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+l+\\\"]\\\")?e.loading=1:(l=t.createElement(\\\"link\\\"),e.preload=l,l.addEventListener(\\\"load\\\",function(){return e.loading|=1}),l.addEventListener(\\\"error\\\",function(){return e.loading|=2}),gt(l,\\\"link\\\",n),ot(l),t.head.appendChild(l))}function Ye(t){return'[src=\\\"'+kt(t)+'\\\"]'}function Xa(t){return\\\"script[async]\\\"+t}function Vs(t,l,n){if(l.count++,l.instance===null)switch(l.type){case\\\"style\\\":var e=t.querySelector('style[data-href~=\\\"'+kt(n.href)+'\\\"]');if(e)return l.instance=e,ot(e),e;var a=W({},n,{\\\"data-href\\\":n.href,\\\"data-precedence\\\":n.precedence,href:null,precedence:null});return e=(t.ownerDocument||t).createElement(\\\"style\\\"),ot(e),gt(e,\\\"style\\\",a),Mu(e,n.precedence,t),l.instance=e;case\\\"stylesheet\\\":a=Me(n.href);var u=t.querySelector(Ga(a));if(u)return l.state.loading|=4,l.instance=u,ot(u),u;e=Oh(n),(a=nl.get(a))&&Sr(e,a),u=(t.ownerDocument||t).createElement(\\\"link\\\"),ot(u);var i=u;return i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",e),l.state.loading|=4,Mu(u,n.precedence,t),l.instance=u;case\\\"script\\\":return u=Ye(n.src),(a=t.querySelector(Xa(u)))?(l.instance=a,ot(a),a):(e=n,(a=nl.get(u))&&(e=W({},n),Er(e,a)),t=t.ownerDocument||t,a=t.createElement(\\\"script\\\"),ot(a),gt(a,\\\"link\\\",e),t.head.appendChild(a),l.instance=a);case\\\"void\\\":return null;default:throw Error(S(443,l.type))}else l.type===\\\"stylesheet\\\"&&(l.state.loading&4)===0&&(e=l.instance,l.state.loading|=4,Mu(e,n.precedence,t));return l.instance}function Mu(t,l,n){for(var e=n.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),a=e.length?e[e.length-1]:null,u=a,i=0;i<e.length;i++){var c=e[i];if(c.dataset.precedence===l)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=n.nodeType===9?n.head:n,l.insertBefore(t,l.firstChild))}function Sr(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Er(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Ou=null;function Ks(t,l,n){if(Ou===null){var e=new Map,a=Ou=new Map;a.set(n,e)}else a=Ou,e=a.get(n),e||(e=new Map,a.set(n,e));if(e.has(t))return e;for(e.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var u=n[a];if(!(u[Ra]||u[yt]||t===\\\"link\\\"&&u.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&u.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var i=u.getAttribute(l)||\\\"\\\";i=t+i;var c=e.get(i);c?c.push(u):e.set(i,[u])}}return e}function Js(t,l,n){t=t.ownerDocument||t,t.head.insertBefore(n,l===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function wg(t,l,n){if(n===1||l.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof l.precedence!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof l.rel!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\"||l.onLoad||l.onError)break;return l.rel===\\\"stylesheet\\\"?(t=l.disabled,typeof l.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(l.async&&typeof l.async!=\\\"function\\\"&&typeof l.async!=\\\"symbol\\\"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src==\\\"string\\\")return!0}return!1}function Dh(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function qg(t,l,n,e){if(n.type===\\\"stylesheet\\\"&&(typeof e.media!=\\\"string\\\"||matchMedia(e.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Me(e.href),u=l.querySelector(Ga(a));if(u){l=u._p,l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"&&(t.count++,t=ui.bind(t),l.then(t,t)),n.state.loading|=4,n.instance=u,ot(u);return}u=l.ownerDocument||l,e=Oh(e),(a=nl.get(a))&&Sr(e,a),u=u.createElement(\\\"link\\\"),ot(u);var i=u;i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",e),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,l),(l=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=ui.bind(t),l.addEventListener(\\\"load\\\",n),l.addEventListener(\\\"error\\\",n))}}var Dc=0;function Yg(t,l){return t.stylesheets&&t.count===0&&Du(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var e=setTimeout(function(){if(t.stylesheets&&Du(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&Dc===0&&(Dc=62500*pg());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Du(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Dc?50:800)+l);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(e),clearTimeout(a)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Du(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ii=null;function Du(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ii=new Map,l.forEach(Lg,t),ii=null,ui.call(t))}function Lg(t,l){if(!(l.state.loading&4)){var n=ii.get(t);if(n)var e=n.get(null);else{n=new Map,ii.set(t,n);for(var a=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),u=0;u<a.length;u++){var i=a[u];(i.nodeName===\\\"LINK\\\"||i.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(n.set(i.dataset.precedence,i),e=i)}e&&n.set(null,e)}a=l.instance,i=a.getAttribute(\\\"data-precedence\\\"),u=n.get(i)||e,u===e&&n.set(null,a),n.set(i,a),this.count++,e=ui.bind(this),a.addEventListener(\\\"load\\\",e),a.addEventListener(\\\"error\\\",e),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),l.state.loading|=4}}var Ua={$$typeof:_l,Provider:null,Consumer:null,_currentValue:zn,_currentValue2:zn,_threadCount:0};function Gg(t,l,n,e,a,u,i,c,f){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=e,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Ch(t,l,n,e,a,u,i,c,f,r,y,g){return t=new Gg(t,l,n,i,f,r,y,g,c),l=1,u===!0&&(l|=24),u=qt(3,null,null,l),t.current=u,u.stateNode=t,l=Kf(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:e,isDehydrated:n,cache:l},Wf(u),t}function Rh(t){return t?(t=oe,t):oe}function Hh(t,l,n,e,a,u){a=Rh(a),e.context===null?e.context=a:e.pendingContext=a,e=an(l),e.payload={element:n},u=u===void 0?null:u,u!==null&&(e.callback=u),n=un(t,e,l),n!==null&&(xt(n,t,l),ca(n,t,l))}function Fs(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<l?n:l}}function br(t,l){Fs(t,l),(t=t.alternate)&&Fs(t,l)}function wh(t){if(t.tag===13||t.tag===31){var l=Ln(t,67108864);l!==null&&xt(l,t,67108864),br(t,67108864)}}function Ws(t){if(t.tag===13||t.tag===31){var l=Qt();l=Df(l);var n=Ln(t,l);n!==null&&xt(n,t,l),br(t,l)}}var ci=!0;function Xg(t,l,n,e){var a=N.T;N.T=null;var u=L.p;try{L.p=2,Ar(t,l,n,e)}finally{L.p=u,N.T=a}}function Qg(t,l,n,e){var a=N.T;N.T=null;var u=L.p;try{L.p=8,Ar(t,l,n,e)}finally{L.p=u,N.T=a}}function Ar(t,l,n,e){if(ci){var a=Uf(e);if(a===null)Mc(t,l,e,fi,n),$s(t,e);else if(Zg(a,t,l,n,e))e.stopPropagation();else if($s(t,e),l&4&&-1<jg.indexOf(t)){for(;a!==null;){var u=Ce(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Tn(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var f=1<<31-Xt(i);c.entanglements[1]|=f,i&=~f}pl(u),(Y&6)===0&&(ku=Lt()+500,La(0,!1))}}break;case 31:case 13:c=Ln(u,2),c!==null&&xt(c,u,2),bi(),br(u,2)}if(u=Uf(e),u===null&&Mc(t,l,e,fi,n),u===a)break;a=u}a!==null&&e.stopPropagation()}else Mc(t,l,e,null,n)}}function Uf(t){return t=wf(t),Tr(t)}var fi=null;function Tr(t){if(fi=null,t=ae(t),t!==null){var l=Ma(t);if(l===null)t=null;else{var n=l.tag;if(n===13){if(t=n0(l),t!==null)return t;t=null}else if(n===31){if(t=e0(l),t!==null)return t;t=null}else if(n===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return fi=t,null}function qh(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(Mm()){case c0:return 2;case f0:return 8;case qu:case Om:return 32;case r0:return 268435456;default:return 32}default:return 32}}var _f=!1,rn=null,on=null,sn=null,_a=new Map,xa=new Map,$l=[],jg=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function $s(t,l){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":rn=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":on=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":sn=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":_a.delete(l.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":xa.delete(l.pointerId)}}function $e(t,l,n,e,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:n,eventSystemFlags:e,nativeEvent:u,targetContainers:[a]},l!==null&&(l=Ce(l),l!==null&&wh(l)),t):(t.eventSystemFlags|=e,l=t.targetContainers,a!==null&&l.indexOf(a)===-1&&l.push(a),t)}function Zg(t,l,n,e,a){switch(l){case\\\"focusin\\\":return rn=$e(rn,t,l,n,e,a),!0;case\\\"dragenter\\\":return on=$e(on,t,l,n,e,a),!0;case\\\"mouseover\\\":return sn=$e(sn,t,l,n,e,a),!0;case\\\"pointerover\\\":var u=a.pointerId;return _a.set(u,$e(_a.get(u)||null,t,l,n,e,a)),!0;case\\\"gotpointercapture\\\":return u=a.pointerId,xa.set(u,$e(xa.get(u)||null,t,l,n,e,a)),!0}return!1}function Yh(t){var l=ae(t.target);if(l!==null){var n=Ma(l);if(n!==null){if(l=n.tag,l===13){if(l=n0(n),l!==null){t.blockedOn=l,Co(t.priority,function(){Ws(n)});return}}else if(l===31){if(l=e0(n),l!==null){t.blockedOn=l,Co(t.priority,function(){Ws(n)});return}}else if(l===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Cu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var n=Uf(t.nativeEvent);if(n===null){n=t.nativeEvent;var e=new n.constructor(n.type,n);Vc=e,n.target.dispatchEvent(e),Vc=null}else return l=Ce(n),l!==null&&wh(l),t.blockedOn=n,!1;l.shift()}return!0}function ks(t,l,n){Cu(t)&&n.delete(l)}function Vg(){_f=!1,rn!==null&&Cu(rn)&&(rn=null),on!==null&&Cu(on)&&(on=null),sn!==null&&Cu(sn)&&(sn=null),_a.forEach(ks),xa.forEach(ks)}function vu(t,l){t.blockedOn===l&&(t.blockedOn=null,_f||(_f=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,Vg)))}var pu=null;function Is(t){pu!==t&&(pu=t,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,function(){pu===t&&(pu=null);for(var l=0;l<t.length;l+=3){var n=t[l],e=t[l+1],a=t[l+2];if(typeof e!=\\\"function\\\"){if(Tr(e||n)===null)continue;break}var u=Ce(n);u!==null&&(t.splice(l,3),l-=3,ff(u,{pending:!0,data:a,method:n.method,action:e},e,a))}}))}function Oe(t){function l(f){return vu(f,t)}rn!==null&&vu(rn,t),on!==null&&vu(on,t),sn!==null&&vu(sn,t),_a.forEach(l),xa.forEach(l);for(var n=0;n<$l.length;n++){var e=$l[n];e.blockedOn===t&&(e.blockedOn=null)}for(;0<$l.length&&(n=$l[0],n.blockedOn===null);)Yh(n),n.blockedOn===null&&$l.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(e=0;e<n.length;e+=3){var a=n[e],u=n[e+1],i=a[Mt]||null;if(typeof u==\\\"function\\\")i||Is(n);else if(i){var c=null;if(u&&u.hasAttribute(\\\"formAction\\\")){if(a=u,i=u[Mt]||null)c=i.formAction;else if(Tr(a)!==null)continue}else c=i.action;typeof c==\\\"function\\\"?n[e+1]=c:(n.splice(e,3),e-=3),Is(n)}}}function Lh(){function t(u){u.canIntercept&&u.info===\\\"react-transition\\\"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function l(){a!==null&&(a(),a=null),e||setTimeout(n,20)}function n(){if(!e&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var e=!1,a=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",l),navigation.addEventListener(\\\"navigateerror\\\",l),setTimeout(n,100),function(){e=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",l),navigation.removeEventListener(\\\"navigateerror\\\",l),a!==null&&(a(),a=null)}}}function Nr(t){this._internalRoot=t}Ni.prototype.render=Nr.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(S(409));var n=l.current,e=Qt();Hh(n,e,t,l,null,null)};Ni.prototype.unmount=Nr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;Hh(t.current,2,null,t,null,null),bi(),l[De]=null}};function Ni(t){this._internalRoot=t}Ni.prototype.unstable_scheduleHydration=function(t){if(t){var l=m0();t={blockedOn:null,target:t,priority:l};for(var n=0;n<$l.length&&l!==0&&l<$l[n].priority;n++);$l.splice(n,0,t),n===0&&Yh(t)}};var Ps=t0.version;if(Ps!==\\\"19.2.4\\\")throw Error(S(527,Ps,\\\"19.2.4\\\"));L.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render==\\\"function\\\"?Error(S(188)):(t=Object.keys(t).join(\\\",\\\"),Error(S(268,t)));return t=Tm(l),t=t!==null?a0(t):null,t=t===null?null:t.stateNode,t};var Kg={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:N,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(ke=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ke.isDisabled&&ke.supportsFiber))try{Oa=ke.inject(Kg),Gt=ke}catch{}var ke;Bi.createRoot=function(t,l){if(!l0(t))throw Error(S(299));var n=!1,e=\\\"\\\",a=M1,u=O1,i=D1;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(e=l.identifierPrefix),l.onUncaughtError!==void 0&&(a=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=Ch(t,1,!1,null,null,n,e,null,a,u,i,Lh),t[De]=l.current,pr(t),new Nr(l)};Bi.hydrateRoot=function(t,l,n){if(!l0(t))throw Error(S(299));var e=!1,a=\\\"\\\",u=M1,i=O1,c=D1,f=null;return n!=null&&(n.unstable_strictMode===!0&&(e=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(c=n.onRecoverableError),n.formState!==void 0&&(f=n.formState)),l=Ch(t,1,!0,l,n??null,e,a,f,u,i,c,Lh),l.context=Rh(null),n=l.current,e=Qt(),e=Df(e),a=an(e),a.callback=null,un(n,a,e),n=e,l.current.lanes=n,Ca(l,n),pl(l),t[De]=l.current,pr(t),new Ni(l)};Bi.version=\\\"19.2.4\\\"});var jh=Rt((O2,Qh)=>{\\\"use strict\\\";B();function Xh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xh)}catch(t){console.error(t)}}Xh(),Qh.exports=Gh()});var Vh=Rt(zi=>{\\\"use strict\\\";B();var Jg=Symbol.for(\\\"react.transitional.element\\\"),Fg=Symbol.for(\\\"react.fragment\\\");function Zh(t,l,n){var e=null;if(n!==void 0&&(e=\\\"\\\"+n),l.key!==void 0&&(e=\\\"\\\"+l.key),\\\"key\\\"in l){n={};for(var a in l)a!==\\\"key\\\"&&(n[a]=l[a])}else n=l;return l=n.ref,{$$typeof:Jg,type:t,key:e,ref:l!==void 0?l:null,props:n}}zi.Fragment=Fg;zi.jsx=Zh;zi.jsxs=Zh});var Gl=Rt((H2,Kh)=>{\\\"use strict\\\";B();Kh.exports=Vh()});B();var fy=Tt(jh(),1);B();var At=Tt(En(),1);B();var Br=Tt(Gl(),1);function zr({className:t=\\\"\\\"}){return(0,Br.jsx)(\\\"div\\\",{className:`spinner ${t}`,children:(0,Br.jsx)(\\\"div\\\",{})})}B();var Wg={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var $g={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},kg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},Jh={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},Ig={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},Fh={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},Pg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function Wh(t){if(t.startsWith(\\\"eip155:\\\")){let l=parseInt(t.split(\\\":\\\")[1]);return Wg[l]??`Chain ${l}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===$g.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===kg.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let l=t.split(\\\":\\\")[1];return l===Jh.NILE?\\\"TRON Nile Testnet\\\":l===Jh.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===Ig.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let l=t.split(\\\":\\\")[1];return l===Fh.NOBLE_MAINNET?\\\"Noble\\\":l===Fh.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${l}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===Pg.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}B();var Dt=Tt(Gl(),1),Qa=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function t2(t){return Qa.findIndex(l=>l.key===t)}function l2(){return(0,Dt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Dt.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function n2(){return(0,Dt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,Dt.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function $h({currentStep:t,isProcessing:l=!1,hasError:n=!1}){let e=t2(t);return(0,Dt.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":e+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":Qa.length,\\\"aria-label\\\":`Payment progress: ${Qa[e].label}`,children:Qa.map((a,u)=>{let i=u<e,c=u===e,f=u>e,r=\\\"progress-step\\\";return i&&(r+=\\\" completed\\\"),c&&(r+=\\\" current\\\"),c&&l&&(r+=\\\" processing\\\"),c&&n&&(r+=\\\" error\\\"),f&&(r+=\\\" pending\\\"),(0,Dt.jsxs)(\\\"div\\\",{className:r,children:[(0,Dt.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:i?(0,Dt.jsx)(l2,{}):c&&l?(0,Dt.jsx)(n2,{}):(0,Dt.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:u+1})}),(0,Dt.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:a.label}),u<Qa.length-1&&(0,Dt.jsx)(\\\"div\\\",{className:`progress-connector ${i?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},a.key)})})}B();var rl=Tt(En(),1);B();var el={NOBLE_MAINNET:\\\"cosmos:noble-1\\\",NOBLE_TESTNET:\\\"cosmos:grand-1\\\"},Le={[el.NOBLE_MAINNET]:\\\"noble-1\\\",[el.NOBLE_TESTNET]:\\\"grand-1\\\"},ja=\\\"uusdc\\\",kh={[el.NOBLE_MAINNET]:\\\"https://noble-rpc.polkachu.com\\\",[el.NOBLE_TESTNET]:\\\"https://rpc.testnet.noble.strange.love\\\"},Za={[el.NOBLE_MAINNET]:\\\"https://noble-api.polkachu.com\\\",[el.NOBLE_TESTNET]:\\\"https://api.testnet.noble.strange.love\\\"};function e2(t){let l=Le[t],n=t===el.NOBLE_MAINNET;return{chainId:l,chainName:n?\\\"Noble\\\":\\\"Noble Testnet\\\",rpc:kh[t],rest:Za[t],bip44:{coinType:118},bech32Config:{bech32PrefixAccAddr:\\\"noble\\\",bech32PrefixAccPub:\\\"noblepub\\\",bech32PrefixValAddr:\\\"noblevaloper\\\",bech32PrefixValPub:\\\"noblevaloperpub\\\",bech32PrefixConsAddr:\\\"noblevalcons\\\",bech32PrefixConsPub:\\\"noblevalconspub\\\"},currencies:[{coinDenom:\\\"USDC\\\",coinMinimalDenom:\\\"uusdc\\\",coinDecimals:6}],feeCurrencies:[{coinDenom:\\\"USDC\\\",coinMinimalDenom:\\\"uusdc\\\",coinDecimals:6,gasPriceStep:{low:.1,average:.25,high:.5}}],stakeCurrency:{coinDenom:\\\"STAKE\\\",coinMinimalDenom:\\\"ustake\\\",coinDecimals:6}}}function Ih(t){let[l,n]=(0,rl.useState)(null),[e,a]=(0,rl.useState)(null),[u,i]=(0,rl.useState)(!1),[c,f]=(0,rl.useState)(null),[r,y]=(0,rl.useState)([]);(0,rl.useEffect)(()=>{let m=()=>{let b=[];window.keplr&&b.push(\\\"keplr\\\"),window.leap&&b.push(\\\"leap\\\"),y(b)};m();let E=setTimeout(m,500);return()=>clearTimeout(E)},[]);let g=(0,rl.useCallback)(async m=>{i(!0),f(null);try{let E=m===\\\"keplr\\\"?window.keplr:window.leap;if(!E)throw new Error(`${m===\\\"keplr\\\"?\\\"Keplr\\\":\\\"Leap\\\"} wallet not found. Please install the extension.`);let b=Le[t];try{await E.experimentalSuggestChain(e2(t))}catch{}await E.enable(b);let x=await E.getKey(b);n({address:x.bech32Address,pubKey:Array.from(x.pubKey).map(s=>s.toString(16).padStart(2,\\\"0\\\")).join(\\\"\\\"),walletName:x.name}),a(m)}catch(E){let b=E instanceof Error?E.message:\\\"Failed to connect wallet\\\";f(b),console.error(\\\"Wallet connection error:\\\",E)}finally{i(!1)}},[t]),d=(0,rl.useCallback)(()=>{n(null),a(null),f(null)},[]);return{account:l,walletId:e,isConnecting:u,error:c,availableWallets:r,connect:g,disconnect:d}}B();var Xn=Tt(En(),1);B();function Ur(t){return Za[t]||Za[\\\"cosmos:noble-1\\\"]}async function Ph(t,l){let e=`${Ur(l)}/cosmos/bank/v1beta1/balances/${t}/by_denom?denom=${ja}`;try{let a=await fetch(e);if(!a.ok)return console.warn(`Failed to fetch balance: ${a.status}`),0n;let u=await a.json();return u.balance?.amount?BigInt(u.balance.amount):0n}catch(a){return console.error(\\\"Error fetching USDC balance:\\\",a),0n}}async function ty(t,l){let e=`${Ur(l)}/cosmos/auth/v1beta1/accounts/${t}`;try{let a=await fetch(e);if(!a.ok)return null;let i=(await a.json()).account;return i?i.account_number!==void 0?{accountNumber:i.account_number||\\\"0\\\",sequence:i.sequence||\\\"0\\\"}:i.base_account?{accountNumber:i.base_account.account_number||\\\"0\\\",sequence:i.base_account.sequence||\\\"0\\\"}:null:null}catch(a){return console.error(\\\"Error fetching account info:\\\",a),null}}async function ly(t,l){let e=`${Ur(l)}/cosmos/tx/v1beta1/txs`,u=await(await fetch(e,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify({tx_bytes:a2(t),mode:\\\"BROADCAST_MODE_SYNC\\\"})})).json();if(!u.tx_response)throw new Error(\\\"Invalid broadcast response\\\");return{txHash:u.tx_response.txhash,code:u.tx_response.code,rawLog:u.tx_response.raw_log}}function a2(t){let l=\\\"\\\";for(let n=0;n<t.length;n++)l+=String.fromCharCode(t[n]);return btoa(l)}function ny(t){let l=1000000n,n=t/l,a=(t%l).toString().padStart(6,\\\"0\\\").slice(0,2);return`${n}.${a}`}function ey(t,l,n){let[e,a]=(0,Xn.useState)(null),[u,i]=(0,Xn.useState)(null),[c,f]=(0,Xn.useState)(!1),r=(0,Xn.useCallback)(async g=>{let d=g||t;if(!d)return null;f(!0),n?.(\\\"Fetching USDC balance...\\\");try{let m=await Ph(d,l);return a(m),i(ny(m)),n?.(\\\"\\\"),m}catch(m){return console.error(\\\"Error fetching balance:\\\",m),n?.(m instanceof Error?m.message:\\\"Failed to fetch balance\\\"),null}finally{f(!1)}},[t,l,n]),y=(0,Xn.useCallback)(()=>{a(null),i(null)},[]);return{balance:e,formattedBalance:u,isFetching:c,refreshBalance:r,resetBalance:y}}B();var ay=Tt(En(),1);function pt(t){let l=[],n=typeof t==\\\"bigint\\\"?t:BigInt(t);for(;n>127n;)l.push(Number(n&0x7fn)|128),n>>=7n;return l.push(Number(n)),new Uint8Array(l)}function Xl(t){let n=new TextEncoder().encode(t);return al(pt(n.length),n)}function al(...t){let l=t.reduce((a,u)=>a+u.length,0),n=new Uint8Array(l),e=0;for(let a of t)n.set(a,e),e+=a.length;return n}function u2(t,l,n,e){let a=n.toString(),u=al(new Uint8Array([10]),Xl(e),new Uint8Array([18]),Xl(a));return al(new Uint8Array([10]),Xl(t),new Uint8Array([18]),Xl(l),new Uint8Array([26]),pt(u.length),u)}function i2(t,l,n){let e=al(new Uint8Array([10]),Xl(t),new Uint8Array([18]),pt(l.length),l),a=[new Uint8Array([10]),pt(e.length),e];return n&&a.push(new Uint8Array([18]),Xl(n)),al(...a)}function c2(t,l,n,e,a){let u=\\\"/cosmos.crypto.secp256k1.PubKey\\\",i=al(new Uint8Array([10]),pt(t.length),t),c=al(new Uint8Array([10]),Xl(u),new Uint8Array([18]),pt(i.length),i),f=new Uint8Array([10,2,8,1]),r=al(new Uint8Array([10]),pt(c.length),c,new Uint8Array([18]),pt(f.length),f,new Uint8Array([24]),pt(l)),y=al(new Uint8Array([10]),Xl(a),new Uint8Array([18]),Xl(e.toString())),g=al(new Uint8Array([10]),pt(y.length),y,new Uint8Array([16]),pt(n));return al(new Uint8Array([10]),pt(r.length),r,new Uint8Array([18]),pt(g.length),g)}function f2(t,l,n){return al(new Uint8Array([10]),pt(t.length),t,new Uint8Array([18]),pt(l.length),l,new Uint8Array([26]),pt(n.length),n)}function uy(t,l,n){return(0,ay.useMemo)(()=>{if(!t||!l)return null;let e=Le[n];return{get address(){return t.address},async signAndBroadcastTransfer(u){let i=l===\\\"keplr\\\"?window.keplr:window.leap;if(!i)throw new Error(`${l} wallet not available`);let c=await ty(t.address,n);if(!c)throw new Error(\\\"Failed to fetch account info\\\");let f=u2(t.address,u.recipient,u.amount,ja),r=i2(\\\"/cosmos.bank.v1beta1.MsgSend\\\",f,u.memo||\\\"\\\"),y=t.pubKey||\\\"\\\",g=new Uint8Array(y.match(/.{1,2}/g)?.map(T=>parseInt(T,16))||[]),E=c2(g,BigInt(c.sequence),100000n,25000n,ja),b={bodyBytes:r,authInfoBytes:E,chainId:e,accountNumber:c.accountNumber},x=await i.signDirect(e,t.address,b),s=x.signature.signature,o=Uint8Array.from(atob(s),T=>T.charCodeAt(0)),h=f2(x.signed.bodyBytes,x.signed.authInfoBytes,o),p=await ly(h,n);if(p.code!==0)throw new Error(`Transaction failed: ${p.rawLog||\\\"Unknown error\\\"}`);return p.txHash}}},[t,l,n])}var C=Tt(Gl(),1);function iy(t){switch(t){case\\\"keplr\\\":return\\\"Keplr\\\";case\\\"leap\\\":return\\\"Leap\\\";default:return t}}function cy({paymentRequired:t,onSuccessfulResponse:l}){let[n,e]=(0,At.useState)(\\\"\\\"),[a,u]=(0,At.useState)(!1),[i,c]=(0,At.useState)(!0),[f,r]=(0,At.useState)(\\\"connect\\\"),[y,g]=(0,At.useState)(!1),d=window.t402,m=d.amount,E=t.accepts[0];if(!E)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let b=E.network,x=Wh(b),s=b===el.NOBLE_MAINNET,o=s?el.NOBLE_MAINNET:el.NOBLE_TESTNET,{account:h,walletId:p,isConnecting:T,error:R,availableWallets:A,connect:z,disconnect:M}=Ih(o),{balance:H,formattedBalance:ul,isFetching:Ui,refreshBalance:Va,resetBalance:_r}=ey(h?.address||null,o,e),_i=uy(h,p,o);(0,At.useEffect)(()=>{h?.address&&Va(h.address)},[h?.address,Va]),(0,At.useEffect)(()=>{h?f===\\\"connect\\\"&&r(\\\"sign\\\"):r(\\\"connect\\\")},[h,f]),(0,At.useEffect)(()=>{R&&e(R)},[R]);let oy=(0,At.useCallback)(async Ct=>{e(\\\"Connecting to wallet...\\\");try{await z(Ct),e(\\\"\\\")}catch(Qn){console.error(\\\"Failed to connect wallet\\\",Qn),e(Qn instanceof Error?Qn.message:\\\"Failed to connect wallet.\\\")}},[z]),sy=(0,At.useCallback)(()=>{M(),_r(),e(\\\"\\\"),r(\\\"connect\\\")},[M,_r]),hy=(0,At.useCallback)(async()=>{if(!d||!_i||!h){e(\\\"Connect a wallet before paying.\\\");return}u(!0),g(!0);try{if(H===null||H===0n){e(\\\"Checking USDC balance...\\\");let xr=await Va();if(!xr||xr===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${x}.`)}r(\\\"sign\\\"),e(\\\"Signing transaction...\\\");let Ct=BigInt(Math.floor(m*1e6)),Qn=E.payTo,my=await _i.signAndBroadcastTransfer({recipient:Qn,amount:Ct,memo:`t402 payment for ${d.currentUrl}`});r(\\\"submit\\\"),e(\\\"Transaction submitted, requesting content...\\\");let dy={t402Version:2,scheme:E.scheme,network:E.network,payload:{txHash:my,from:h.address,to:Qn,amount:Ct.toString()}},gy=btoa(JSON.stringify(dy)),Ka=await fetch(d.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":gy,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(Ka.ok)r(\\\"confirm\\\"),g(!1),await l(Ka);else throw new Error(`Request failed: ${Ka.status} ${Ka.statusText}`)}catch(Ct){e(Ct instanceof Error?Ct.message:\\\"Payment failed.\\\"),g(!1)}finally{u(!1)}},[d,_i,h,H,Va,x,m,E,l]);(0,At.useEffect)(()=>{h&&e(\\\"\\\")},[h]);let yy=h?.address?`${h.address.slice(0,10)}...${h.address.slice(-6)}`:\\\"-\\\";return(0,C.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,C.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,C.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,C.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",m,\\\" USDC.\\\"]}),!s&&(0,C.jsx)(\\\"p\\\",{className:\\\"instructions\\\",children:\\\"This is a testnet payment. You can get testnet USDC from a Noble testnet faucet.\\\"})]}),(0,C.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[h&&(0,C.jsx)($h,{currentStep:f,isProcessing:y,hasError:!!n&&!a}),(0,C.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,C.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,C.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,C.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:h?`${iy(p)} - ${yy}`:\\\"-\\\"})]}),(0,C.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,C.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,C.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:h?.address?(0,C.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>c(Ct=>!Ct),children:!i&&ul?`$${ul} USDC`:Ui?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\\\"}):\\\"-\\\"})]}),(0,C.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,C.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,C.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",m,\\\" USDC\\\"]})]}),(0,C.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,C.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,C.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:x})]})]}),(0,C.jsx)(\\\"div\\\",{className:\\\"cta-container\\\",children:h?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:sy,children:\\\"Disconnect\\\"}),(0,C.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:hy,disabled:a,children:a?(0,C.jsx)(zr,{}):\\\"Pay now\\\"})]}):(0,C.jsx)(\\\"div\\\",{className:\\\"wallet-options\\\",children:A.length===0?(0,C.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"No Cosmos wallet detected. Please install\\\",\\\" \\\",(0,C.jsx)(\\\"a\\\",{href:\\\"https://www.keplr.app/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"Keplr\\\"}),\\\" \\\",\\\"or\\\",\\\" \\\",(0,C.jsx)(\\\"a\\\",{href:\\\"https://www.leapwallet.io/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"Leap\\\"}),\\\" \\\",\\\"wallet.\\\"]}):A.map(Ct=>(0,C.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:()=>oy(Ct),disabled:T,children:T?(0,C.jsx)(zr,{}):`Connect ${iy(Ct)}`},Ct))})}),n&&(0,C.jsx)(\\\"div\\\",{className:\\\"status\\\",children:n})]})]})}var ry=Tt(Gl(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let n=window.t402.paymentRequired;if(!n?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,fy.createRoot)(t).render((0,ry.jsx)(cy,{paymentRequired:n,onSuccessfulResponse:async a=>{let u=a.headers.get(\\\"content-type\\\");if(u&&u.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await a.text();else{let i=await a.blob(),c=window.URL.createObjectURL(i);window.location.href=c}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for COSMOS paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const COSMOS_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/cosmos.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/cosmos.min.js\\\"></script>\\n</body>\\n</html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Full inline NEAR paywall template with all JS/CSS embedded.\n * Use deliveryMode: \"inline\" to enable this template.\n */\nexport const NEAR_PAYWALL_TEMPLATE_INLINE = \"<!DOCTYPE html><html lang=\\\"en\\\"><head>\\n        <meta charset=\\\"UTF-8\\\">\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: #ffffff;--text-color: #111827;--secondary-text-color: #4b5563;--muted-text-color: #6b7280;--border-color: #e5e7eb;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626;--focus-ring-color: rgba(37, 99, 235, .4);--shadow-color: rgba(0, 0, 0, .1);--shadow-color-light: rgba(0, 0, 0, .06)}.dark{--background-color: #111827;--container-background-color: #1f2937;--text-color: #f9fafb;--secondary-text-color: #d1d5db;--muted-text-color: #9ca3af;--border-color: #374151;--details-background-color: #374151;--details-background-color-hover: #4b5563;--button-primary-color: #3b82f6;--button-primary-hover-color: #2563eb;--button-secondary-color: #374151;--button-secondary-hover-color: #4b5563;--button-positive-color: #10b981;--button-positive-hover-color: #059669;--button-error-color: #f87171;--button-error-hover-color: #ef4444;--focus-ring-color: rgba(59, 130, 246, .5);--shadow-color: rgba(0, 0, 0, .3);--shadow-color-light: rgba(0, 0, 0, .2)}body{min-height:100vh;background-color:var(--background-color);color:var(--text-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px var(--shadow-color),0 2px 4px -1px var(--shadow-color-light)}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.instructions a{color:var(--button-primary-color);text-decoration:none}.instructions a:hover{text-decoration:underline}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:var(--container-background-color);color:var(--text-color);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px var(--focus-ring-color)}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s,transform .1s;min-height:44px}.button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.button:active{transform:scale(.98)}.button:disabled{opacity:.6;cursor:not-allowed}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover:not(:disabled){background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover:not(:disabled){background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover:not(:disabled){background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover:not(:disabled){background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem;color:var(--secondary-text-color)}.status[role=status]{min-height:1.5rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center;color:var(--text-color)}.balance-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid var(--border-color);border-top-color:var(--button-primary-color);border-radius:50%;width:1rem;height:1rem}.network-selector{width:100%}.network-selector-header{margin-bottom:1.5rem}.network-selector-title{font-size:1.25rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.network-selector-subtitle{font-size:.875rem;color:var(--secondary-text-color)}.network-options{display:flex;flex-direction:column;gap:.75rem}.network-option{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;cursor:pointer;transition:background-color .15s,border-color .15s,transform .1s;text-align:left}.network-option:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color)}.network-option:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.network-option:active{transform:scale(.98)}.network-option-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.network-option-icon svg{width:32px;height:32px}.network-option-info{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.network-option-name{font-weight:600;color:var(--text-color)}.network-option-amount{font-size:.875rem;color:var(--muted-text-color)}.network-option-arrow{flex-shrink:0;color:var(--muted-text-color)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;background-color:transparent;border:none;color:var(--secondary-text-color);font-size:.875rem;cursor:pointer;transition:color .15s;align-self:flex-start}.back-button:hover{color:var(--text-color)}.back-button:focus-visible{outline:2px solid var(--button-primary-color);outline-offset:2px;border-radius:4px}.back-button svg{width:16px;height:16px}.w-full{width:100%}.gap-8{gap:2rem}@media(max-width:640px){.container{margin:1rem;padding:1rem;border-radius:.5rem}.title{font-size:1.25rem}.cta-container{flex-direction:column}.network-option{padding:.75rem}.network-option-icon{width:32px;height:32px}.network-option-icon svg{width:24px;height:24px}}.payment-progress{display:flex;align-items:flex-start;justify-content:center;gap:0;width:100%;margin-bottom:1.5rem}.progress-step{display:flex;flex-direction:column;align-items:center;position:relative;flex:1;max-width:80px}.progress-step-indicator{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;position:relative;z-index:1}.progress-step.pending .progress-step-indicator{background-color:var(--details-background-color);border:2px solid var(--border-color);color:var(--muted-text-color)}.progress-step.current .progress-step-indicator,.progress-step.current.processing .progress-step-indicator{background-color:var(--button-primary-color);border:2px solid var(--button-primary-color);color:#fff}.progress-step.current.error .progress-step-indicator{background-color:var(--button-error-color);border:2px solid var(--button-error-color);color:#fff}.progress-step.completed .progress-step-indicator{background-color:var(--button-positive-color);border:2px solid var(--button-positive-color);color:#fff}.progress-step-number{line-height:1}.progress-step-label{font-size:.75rem;color:var(--muted-text-color);margin-top:.5rem;text-align:center;transition:color .2s}.progress-step.current .progress-step-label{color:var(--text-color);font-weight:500}.progress-step.completed .progress-step-label{color:var(--button-positive-color)}.progress-connector{position:absolute;top:16px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background-color:var(--border-color);transition:background-color .2s}.progress-connector.completed{background-color:var(--button-positive-color)}@keyframes progress-spin{to{transform:rotate(360deg)}}.progress-spinner{animation:progress-spin 1s linear infinite}@media(max-width:640px){.progress-step{max-width:60px}.progress-step-indicator{width:28px;height:28px;font-size:.7rem}.progress-step-label{font-size:.65rem}.progress-connector{top:14px;left:calc(50% + 14px);width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;background-color:var(--container-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1rem}.qr-code-canvas{border-radius:.5rem;background-color:var(--container-background-color)}.qr-code-label{font-size:.875rem;color:var(--secondary-text-color);text-align:center;max-width:200px;word-break:break-all}.qr-code-copy-button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;font-size:.875rem;min-height:36px;width:auto}@media(max-width:640px){.qr-code-container{padding:.75rem}.qr-code-canvas{max-width:160px;max-height:160px}}.tx-status-container{width:100%;padding:1rem;background-color:var(--details-background-color);border:1px solid var(--border-color);border-radius:.75rem;margin-top:1rem}.tx-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.tx-status-label{font-size:.875rem;font-weight:500;color:var(--secondary-text-color)}.tx-status-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500}.tx-status-pending{background-color:#3b82f61a;color:var(--button-primary-color)}.tx-status-success{background-color:#10b9811a;color:var(--button-positive-color)}.tx-status-error{background-color:#ef44441a;color:var(--button-error-color)}.tx-hash-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.tx-hash{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem;color:var(--text-color);background-color:var(--container-background-color);padding:.375rem .625rem;border-radius:.375rem;border:1px solid var(--border-color)}.tx-hash-actions{display:flex;gap:.25rem}.tx-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background-color:transparent;border:1px solid var(--border-color);border-radius:.375rem;color:var(--secondary-text-color);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.tx-action-button:hover{background-color:var(--details-background-color-hover);border-color:var(--button-primary-color);color:var(--button-primary-color)}.tx-action-button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color);border-color:var(--button-primary-color)}.tx-confirmations-bar{height:4px;background-color:var(--border-color);border-radius:2px;margin-top:.75rem;overflow:hidden}.tx-confirmations-progress{height:100%;background-color:var(--button-primary-color);border-radius:2px;transition:width .3s ease-out}@keyframes tx-spin{to{transform:rotate(360deg)}}.tx-status-spinner{animation:tx-spin 1s linear infinite}.dark .tx-status-pending{background-color:#3b82f626}.dark .tx-status-success{background-color:#10b98126}.dark .tx-status-error{background-color:#f8717126}@media(max-width:640px){.tx-status-container{padding:.75rem}.tx-status-header{flex-direction:column;align-items:flex-start;gap:.5rem}.tx-hash-row{flex-direction:column;align-items:stretch;gap:.5rem}.tx-hash{font-size:.8rem;text-align:center}.tx-hash-actions{justify-content:center}}\\n</style></head>\\n    <body>\\n        <div id=\\\"root\\\"></div>\\n    \\n    \\n  <script type=\\\"module\\\">\\\"use strict\\\";(()=>{var sy=Object.create;var _r=Object.defineProperty;var hy=Object.getOwnPropertyDescriptor;var yy=Object.getOwnPropertyNames;var my=Object.getPrototypeOf,dy=Object.prototype.hasOwnProperty;var gy=(t,l)=>()=>(t&&(l=t(t=0)),l);var Rt=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var vy=(t,l,e,n)=>{if(l&&typeof l==\\\"object\\\"||typeof l==\\\"function\\\")for(let a of yy(l))!dy.call(t,a)&&a!==e&&_r(t,a,{get:()=>l[a],enumerable:!(n=hy(l,a))||n.enumerable});return t};var Tt=(t,l,e)=>(e=t!=null?sy(my(t)):{},vy(l||!t||!t.__esModule?_r(e,\\\"default\\\",{value:t,enumerable:!0}):e,t));var Ur=Rt(La=>{\\\"use strict\\\";z();La.byteLength=Sy;La.toByteArray=by;La.fromByteArray=Ny;var cl=[],Zt=[],py=typeof Uint8Array<\\\"u\\\"?Uint8Array:Array,Ni=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\";for(me=0,Br=Ni.length;me<Br;++me)cl[me]=Ni[me],Zt[Ni.charCodeAt(me)]=me;var me,Br;Zt[45]=62;Zt[95]=63;function Mr(t){var l=t.length;if(l%4>0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");var e=t.indexOf(\\\"=\\\");e===-1&&(e=l);var n=e===l?0:4-e%4;return[e,n]}function Sy(t){var l=Mr(t),e=l[0],n=l[1];return(e+n)*3/4-n}function Ey(t,l,e){return(l+e)*3/4-e}function by(t){var l,e=Mr(t),n=e[0],a=e[1],u=new py(Ey(t,n,a)),i=0,c=a>0?n-4:n,f;for(f=0;f<c;f+=4)l=Zt[t.charCodeAt(f)]<<18|Zt[t.charCodeAt(f+1)]<<12|Zt[t.charCodeAt(f+2)]<<6|Zt[t.charCodeAt(f+3)],u[i++]=l>>16&255,u[i++]=l>>8&255,u[i++]=l&255;return a===2&&(l=Zt[t.charCodeAt(f)]<<2|Zt[t.charCodeAt(f+1)]>>4,u[i++]=l&255),a===1&&(l=Zt[t.charCodeAt(f)]<<10|Zt[t.charCodeAt(f+1)]<<4|Zt[t.charCodeAt(f+2)]>>2,u[i++]=l>>8&255,u[i++]=l&255),u}function Ty(t){return cl[t>>18&63]+cl[t>>12&63]+cl[t>>6&63]+cl[t&63]}function Ay(t,l,e){for(var n,a=[],u=l;u<e;u+=3)n=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(t[u+2]&255),a.push(Ty(n));return a.join(\\\"\\\")}function Ny(t){for(var l,e=t.length,n=e%3,a=[],u=16383,i=0,c=e-n;i<c;i+=u)a.push(Ay(t,i,i+u>c?c:i+u));return n===1?(l=t[e-1],a.push(cl[l>>2]+cl[l<<4&63]+\\\"==\\\")):n===2&&(l=(t[e-2]<<8)+t[e-1],a.push(cl[l>>10]+cl[l>>4&63]+cl[l<<2&63]+\\\"=\\\")),a.join(\\\"\\\")}});var Or=Rt(zi=>{z();zi.read=function(t,l,e,n,a){var u,i,c=a*8-n-1,f=(1<<c)-1,r=f>>1,m=-7,g=e?a-1:0,d=e?-1:1,y=t[l+g];for(g+=d,u=y&(1<<-m)-1,y>>=-m,m+=c;m>0;u=u*256+t[l+g],g+=d,m-=8);for(i=u&(1<<-m)-1,u>>=-m,m+=n;m>0;i=i*256+t[l+g],g+=d,m-=8);if(u===0)u=1-r;else{if(u===f)return i?NaN:(y?-1:1)*(1/0);i=i+Math.pow(2,n),u=u-r}return(y?-1:1)*i*Math.pow(2,u-n)};zi.write=function(t,l,e,n,a,u){var i,c,f,r=u*8-a-1,m=(1<<r)-1,g=m>>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:u-1,E=n?1:-1,b=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(c=isNaN(l)?1:0,i=m):(i=Math.floor(Math.log(l)/Math.LN2),l*(f=Math.pow(2,-i))<1&&(i--,f*=2),i+g>=1?l+=d/f:l+=d*Math.pow(2,1-g),l*f>=2&&(i++,f/=2),i+g>=m?(c=0,i=m):i+g>=1?(c=(l*f-1)*Math.pow(2,a),i=i+g):(c=l*Math.pow(2,g-1)*Math.pow(2,a),i=0));a>=8;t[e+y]=c&255,y+=E,c/=256,a-=8);for(i=i<<a|c,r+=a;r>0;t[e+y]=i&255,y+=E,i/=256,r-=8);t[e+y-E]|=b*128}});var Jr=Rt(Le=>{\\\"use strict\\\";z();var _i=Ur(),Xe=Or(),xr=typeof Symbol==\\\"function\\\"&&typeof Symbol.for==\\\"function\\\"?Symbol.for(\\\"nodejs.util.inspect.custom\\\"):null;Le.Buffer=v;Le.SlowBuffer=Oy;Le.INSPECT_MAX_BYTES=50;var ja=2147483647;Le.kMaxLength=ja;v.TYPED_ARRAY_SUPPORT=zy();!v.TYPED_ARRAY_SUPPORT&&typeof console<\\\"u\\\"&&typeof console.error==\\\"function\\\"&&console.error(\\\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\\\");function zy(){try{let t=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(t,l),t.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,\\\"parent\\\",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}});Object.defineProperty(v.prototype,\\\"offset\\\",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function vl(t){if(t>ja)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"');let l=new Uint8Array(t);return Object.setPrototypeOf(l,v.prototype),l}function v(t,l,e){if(typeof t==\\\"number\\\"){if(typeof l==\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be of type string. Received type number');return Oi(t)}return wr(t,l,e)}v.poolSize=8192;function wr(t,l,e){if(typeof t==\\\"string\\\")return By(t,l);if(ArrayBuffer.isView(t))return My(t);if(t==null)throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t);if(fl(t,ArrayBuffer)||t&&fl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\\\"u\\\"&&(fl(t,SharedArrayBuffer)||t&&fl(t.buffer,SharedArrayBuffer)))return Mi(t,l,e);if(typeof t==\\\"number\\\")throw new TypeError('The \\\"value\\\" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return v.from(n,l,e);let a=Uy(t);if(a)return a;if(typeof Symbol<\\\"u\\\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\\\"function\\\")return v.from(t[Symbol.toPrimitive](\\\"string\\\"),l,e);throw new TypeError(\\\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \\\"+typeof t)}v.from=function(t,l,e){return wr(t,l,e)};Object.setPrototypeOf(v.prototype,Uint8Array.prototype);Object.setPrototypeOf(v,Uint8Array);function Hr(t){if(typeof t!=\\\"number\\\")throw new TypeError('\\\"size\\\" argument must be of type number');if(t<0)throw new RangeError('The value \\\"'+t+'\\\" is invalid for option \\\"size\\\"')}function _y(t,l,e){return Hr(t),t<=0?vl(t):l!==void 0?typeof e==\\\"string\\\"?vl(t).fill(l,e):vl(t).fill(l):vl(t)}v.alloc=function(t,l,e){return _y(t,l,e)};function Oi(t){return Hr(t),vl(t<0?0:xi(t)|0)}v.allocUnsafe=function(t){return Oi(t)};v.allocUnsafeSlow=function(t){return Oi(t)};function By(t,l){if((typeof l!=\\\"string\\\"||l===\\\"\\\")&&(l=\\\"utf8\\\"),!v.isEncoding(l))throw new TypeError(\\\"Unknown encoding: \\\"+l);let e=qr(t,l)|0,n=vl(e),a=n.write(t,l);return a!==e&&(n=n.slice(0,a)),n}function Bi(t){let l=t.length<0?0:xi(t.length)|0,e=vl(l);for(let n=0;n<l;n+=1)e[n]=t[n]&255;return e}function My(t){if(fl(t,Uint8Array)){let l=new Uint8Array(t);return Mi(l.buffer,l.byteOffset,l.byteLength)}return Bi(t)}function Mi(t,l,e){if(l<0||t.byteLength<l)throw new RangeError('\\\"offset\\\" is outside of buffer bounds');if(t.byteLength<l+(e||0))throw new RangeError('\\\"length\\\" is outside of buffer bounds');let n;return l===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,l):n=new Uint8Array(t,l,e),Object.setPrototypeOf(n,v.prototype),n}function Uy(t){if(v.isBuffer(t)){let l=xi(t.length)|0,e=vl(l);return e.length===0||t.copy(e,0,0,l),e}if(t.length!==void 0)return typeof t.length!=\\\"number\\\"||Ri(t.length)?vl(0):Bi(t);if(t.type===\\\"Buffer\\\"&&Array.isArray(t.data))return Bi(t.data)}function xi(t){if(t>=ja)throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+ja.toString(16)+\\\" bytes\\\");return t|0}function Oy(t){return+t!=t&&(t=0),v.alloc(+t)}v.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==v.prototype};v.compare=function(l,e){if(fl(l,Uint8Array)&&(l=v.from(l,l.offset,l.byteLength)),fl(e,Uint8Array)&&(e=v.from(e,e.offset,e.byteLength)),!v.isBuffer(l)||!v.isBuffer(e))throw new TypeError('The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array');if(l===e)return 0;let n=l.length,a=e.length;for(let u=0,i=Math.min(n,a);u<i;++u)if(l[u]!==e[u]){n=l[u],a=e[u];break}return n<a?-1:a<n?1:0};v.isEncoding=function(l){switch(String(l).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}};v.concat=function(l,e){if(!Array.isArray(l))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(l.length===0)return v.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<l.length;++n)e+=l[n].length;let a=v.allocUnsafe(e),u=0;for(n=0;n<l.length;++n){let i=l[n];if(fl(i,Uint8Array))u+i.length>a.length?(v.isBuffer(i)||(i=v.from(i)),i.copy(a,u)):Uint8Array.prototype.set.call(a,i,u);else if(v.isBuffer(i))i.copy(a,u);else throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');u+=i.length}return a};function qr(t,l){if(v.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||fl(t,ArrayBuffer))return t.byteLength;if(typeof t!=\\\"string\\\")throw new TypeError('The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let a=!1;for(;;)switch(l){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return e;case\\\"utf8\\\":case\\\"utf-8\\\":return Ui(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return e*2;case\\\"hex\\\":return e>>>1;case\\\"base64\\\":return Kr(t).length;default:if(a)return n?-1:Ui(t).length;l=(\\\"\\\"+l).toLowerCase(),a=!0}}v.byteLength=qr;function xy(t,l,e){let n=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,l>>>=0,e<=l))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return Qy(this,l,e);case\\\"utf8\\\":case\\\"utf-8\\\":return Gr(this,l,e);case\\\"ascii\\\":return Gy(this,l,e);case\\\"latin1\\\":case\\\"binary\\\":return Xy(this,l,e);case\\\"base64\\\":return qy(this,l,e);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Ly(this,l,e);default:if(n)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),n=!0}}v.prototype._isBuffer=!0;function de(t,l,e){let n=t[l];t[l]=t[e],t[e]=n}v.prototype.swap16=function(){let l=this.length;if(l%2!==0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(let e=0;e<l;e+=2)de(this,e,e+1);return this};v.prototype.swap32=function(){let l=this.length;if(l%4!==0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(let e=0;e<l;e+=4)de(this,e,e+3),de(this,e+1,e+2);return this};v.prototype.swap64=function(){let l=this.length;if(l%8!==0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(let e=0;e<l;e+=8)de(this,e,e+7),de(this,e+1,e+6),de(this,e+2,e+5),de(this,e+3,e+4);return this};v.prototype.toString=function(){let l=this.length;return l===0?\\\"\\\":arguments.length===0?Gr(this,0,l):xy.apply(this,arguments)};v.prototype.toLocaleString=v.prototype.toString;v.prototype.equals=function(l){if(!v.isBuffer(l))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===l?!0:v.compare(this,l)===0};v.prototype.inspect=function(){let l=\\\"\\\",e=Le.INSPECT_MAX_BYTES;return l=this.toString(\\\"hex\\\",0,e).replace(/(.{2})/g,\\\"$1 \\\").trim(),this.length>e&&(l+=\\\" ... \\\"),\\\"<Buffer \\\"+l+\\\">\\\"};xr&&(v.prototype[xr]=v.prototype.inspect);v.prototype.compare=function(l,e,n,a,u){if(fl(l,Uint8Array)&&(l=v.from(l,l.offset,l.byteLength)),!v.isBuffer(l))throw new TypeError('The \\\"target\\\" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(e===void 0&&(e=0),n===void 0&&(n=l?l.length:0),a===void 0&&(a=0),u===void 0&&(u=this.length),e<0||n>l.length||a<0||u>this.length)throw new RangeError(\\\"out of range index\\\");if(a>=u&&e>=n)return 0;if(a>=u)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,a>>>=0,u>>>=0,this===l)return 0;let i=u-a,c=n-e,f=Math.min(i,c),r=this.slice(a,u),m=l.slice(e,n);for(let g=0;g<f;++g)if(r[g]!==m[g]){i=r[g],c=m[g];break}return i<c?-1:c<i?1:0};function Yr(t,l,e,n,a){if(t.length===0)return-1;if(typeof e==\\\"string\\\"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Ri(e)&&(e=a?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(a)return-1;e=t.length-1}else if(e<0)if(a)e=0;else return-1;if(typeof l==\\\"string\\\"&&(l=v.from(l,n)),v.isBuffer(l))return l.length===0?-1:Dr(t,l,e,n,a);if(typeof l==\\\"number\\\")return l=l&255,typeof Uint8Array.prototype.indexOf==\\\"function\\\"?a?Uint8Array.prototype.indexOf.call(t,l,e):Uint8Array.prototype.lastIndexOf.call(t,l,e):Dr(t,[l],e,n,a);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function Dr(t,l,e,n,a){let u=1,i=t.length,c=l.length;if(n!==void 0&&(n=String(n).toLowerCase(),n===\\\"ucs2\\\"||n===\\\"ucs-2\\\"||n===\\\"utf16le\\\"||n===\\\"utf-16le\\\")){if(t.length<2||l.length<2)return-1;u=2,i/=2,c/=2,e/=2}function f(m,g){return u===1?m[g]:m.readUInt16BE(g*u)}let r;if(a){let m=-1;for(r=e;r<i;r++)if(f(t,r)===f(l,m===-1?0:r-m)){if(m===-1&&(m=r),r-m+1===c)return m*u}else m!==-1&&(r-=r-m),m=-1}else for(e+c>i&&(e=i-c),r=e;r>=0;r--){let m=!0;for(let g=0;g<c;g++)if(f(t,r+g)!==f(l,g)){m=!1;break}if(m)return r}return-1}v.prototype.includes=function(l,e,n){return this.indexOf(l,e,n)!==-1};v.prototype.indexOf=function(l,e,n){return Yr(this,l,e,n,!0)};v.prototype.lastIndexOf=function(l,e,n){return Yr(this,l,e,n,!1)};function Dy(t,l,e,n){e=Number(e)||0;let a=t.length-e;n?(n=Number(n),n>a&&(n=a)):n=a;let u=l.length;n>u/2&&(n=u/2);let i;for(i=0;i<n;++i){let c=parseInt(l.substr(i*2,2),16);if(Ri(c))return i;t[e+i]=c}return i}function Ry(t,l,e,n){return Za(Ui(l,t.length-e),t,e,n)}function Cy(t,l,e,n){return Za(Ky(l),t,e,n)}function wy(t,l,e,n){return Za(Kr(l),t,e,n)}function Hy(t,l,e,n){return Za(Jy(l,t.length-e),t,e,n)}v.prototype.write=function(l,e,n,a){if(e===void 0)a=\\\"utf8\\\",n=this.length,e=0;else if(n===void 0&&typeof e==\\\"string\\\")a=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a=\\\"utf8\\\")):(a=n,n=void 0);else throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");let u=this.length-e;if((n===void 0||n>u)&&(n=u),l.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");a||(a=\\\"utf8\\\");let i=!1;for(;;)switch(a){case\\\"hex\\\":return Dy(this,l,e,n);case\\\"utf8\\\":case\\\"utf-8\\\":return Ry(this,l,e,n);case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return Cy(this,l,e,n);case\\\"base64\\\":return wy(this,l,e,n);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Hy(this,l,e,n);default:if(i)throw new TypeError(\\\"Unknown encoding: \\\"+a);a=(\\\"\\\"+a).toLowerCase(),i=!0}};v.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};function qy(t,l,e){return l===0&&e===t.length?_i.fromByteArray(t):_i.fromByteArray(t.slice(l,e))}function Gr(t,l,e){e=Math.min(t.length,e);let n=[],a=l;for(;a<e;){let u=t[a],i=null,c=u>239?4:u>223?3:u>191?2:1;if(a+c<=e){let f,r,m,g;switch(c){case 1:u<128&&(i=u);break;case 2:f=t[a+1],(f&192)===128&&(g=(u&31)<<6|f&63,g>127&&(i=g));break;case 3:f=t[a+1],r=t[a+2],(f&192)===128&&(r&192)===128&&(g=(u&15)<<12|(f&63)<<6|r&63,g>2047&&(g<55296||g>57343)&&(i=g));break;case 4:f=t[a+1],r=t[a+2],m=t[a+3],(f&192)===128&&(r&192)===128&&(m&192)===128&&(g=(u&15)<<18|(f&63)<<12|(r&63)<<6|m&63,g>65535&&g<1114112&&(i=g))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),a+=c}return Yy(n)}var Rr=4096;function Yy(t){let l=t.length;if(l<=Rr)return String.fromCharCode.apply(String,t);let e=\\\"\\\",n=0;for(;n<l;)e+=String.fromCharCode.apply(String,t.slice(n,n+=Rr));return e}function Gy(t,l,e){let n=\\\"\\\";e=Math.min(t.length,e);for(let a=l;a<e;++a)n+=String.fromCharCode(t[a]&127);return n}function Xy(t,l,e){let n=\\\"\\\";e=Math.min(t.length,e);for(let a=l;a<e;++a)n+=String.fromCharCode(t[a]);return n}function Qy(t,l,e){let n=t.length;(!l||l<0)&&(l=0),(!e||e<0||e>n)&&(e=n);let a=\\\"\\\";for(let u=l;u<e;++u)a+=Fy[t[u]];return a}function Ly(t,l,e){let n=t.slice(l,e),a=\\\"\\\";for(let u=0;u<n.length-1;u+=2)a+=String.fromCharCode(n[u]+n[u+1]*256);return a}v.prototype.slice=function(l,e){let n=this.length;l=~~l,e=e===void 0?n:~~e,l<0?(l+=n,l<0&&(l=0)):l>n&&(l=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<l&&(e=l);let a=this.subarray(l,e);return Object.setPrototypeOf(a,v.prototype),a};function ft(t,l,e){if(t%1!==0||t<0)throw new RangeError(\\\"offset is not uint\\\");if(t+l>e)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}v.prototype.readUintLE=v.prototype.readUIntLE=function(l,e,n){l=l>>>0,e=e>>>0,n||ft(l,e,this.length);let a=this[l],u=1,i=0;for(;++i<e&&(u*=256);)a+=this[l+i]*u;return a};v.prototype.readUintBE=v.prototype.readUIntBE=function(l,e,n){l=l>>>0,e=e>>>0,n||ft(l,e,this.length);let a=this[l+--e],u=1;for(;e>0&&(u*=256);)a+=this[l+--e]*u;return a};v.prototype.readUint8=v.prototype.readUInt8=function(l,e){return l=l>>>0,e||ft(l,1,this.length),this[l]};v.prototype.readUint16LE=v.prototype.readUInt16LE=function(l,e){return l=l>>>0,e||ft(l,2,this.length),this[l]|this[l+1]<<8};v.prototype.readUint16BE=v.prototype.readUInt16BE=function(l,e){return l=l>>>0,e||ft(l,2,this.length),this[l]<<8|this[l+1]};v.prototype.readUint32LE=v.prototype.readUInt32LE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216};v.prototype.readUint32BE=v.prototype.readUInt32BE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])};v.prototype.readBigUInt64LE=Gl(function(l){l=l>>>0,Qe(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&Hn(l,this.length-8);let a=e+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,u=this[++l]+this[++l]*2**8+this[++l]*2**16+n*2**24;return BigInt(a)+(BigInt(u)<<BigInt(32))});v.prototype.readBigUInt64BE=Gl(function(l){l=l>>>0,Qe(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&Hn(l,this.length-8);let a=e*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],u=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+n;return(BigInt(a)<<BigInt(32))+BigInt(u)});v.prototype.readIntLE=function(l,e,n){l=l>>>0,e=e>>>0,n||ft(l,e,this.length);let a=this[l],u=1,i=0;for(;++i<e&&(u*=256);)a+=this[l+i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*e)),a};v.prototype.readIntBE=function(l,e,n){l=l>>>0,e=e>>>0,n||ft(l,e,this.length);let a=e,u=1,i=this[l+--a];for(;a>0&&(u*=256);)i+=this[l+--a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*e)),i};v.prototype.readInt8=function(l,e){return l=l>>>0,e||ft(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]};v.prototype.readInt16LE=function(l,e){l=l>>>0,e||ft(l,2,this.length);let n=this[l]|this[l+1]<<8;return n&32768?n|4294901760:n};v.prototype.readInt16BE=function(l,e){l=l>>>0,e||ft(l,2,this.length);let n=this[l+1]|this[l]<<8;return n&32768?n|4294901760:n};v.prototype.readInt32LE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24};v.prototype.readInt32BE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]};v.prototype.readBigInt64LE=Gl(function(l){l=l>>>0,Qe(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&Hn(l,this.length-8);let a=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(n<<24);return(BigInt(a)<<BigInt(32))+BigInt(e+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)});v.prototype.readBigInt64BE=Gl(function(l){l=l>>>0,Qe(l,\\\"offset\\\");let e=this[l],n=this[l+7];(e===void 0||n===void 0)&&Hn(l,this.length-8);let a=(e<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(a)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+n)});v.prototype.readFloatLE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),Xe.read(this,l,!0,23,4)};v.prototype.readFloatBE=function(l,e){return l=l>>>0,e||ft(l,4,this.length),Xe.read(this,l,!1,23,4)};v.prototype.readDoubleLE=function(l,e){return l=l>>>0,e||ft(l,8,this.length),Xe.read(this,l,!0,52,8)};v.prototype.readDoubleBE=function(l,e){return l=l>>>0,e||ft(l,8,this.length),Xe.read(this,l,!1,52,8)};function At(t,l,e,n,a,u){if(!v.isBuffer(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(l>a||l<u)throw new RangeError('\\\"value\\\" argument is out of bounds');if(e+n>t.length)throw new RangeError(\\\"Index out of range\\\")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(l,e,n,a){if(l=+l,e=e>>>0,n=n>>>0,!a){let c=Math.pow(2,8*n)-1;At(this,l,e,n,c,0)}let u=1,i=0;for(this[e]=l&255;++i<n&&(u*=256);)this[e+i]=l/u&255;return e+n};v.prototype.writeUintBE=v.prototype.writeUIntBE=function(l,e,n,a){if(l=+l,e=e>>>0,n=n>>>0,!a){let c=Math.pow(2,8*n)-1;At(this,l,e,n,c,0)}let u=n-1,i=1;for(this[e+u]=l&255;--u>=0&&(i*=256);)this[e+u]=l/i&255;return e+n};v.prototype.writeUint8=v.prototype.writeUInt8=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,1,255,0),this[e]=l&255,e+1};v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,2,65535,0),this[e]=l&255,this[e+1]=l>>>8,e+2};v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,2,65535,0),this[e]=l>>>8,this[e+1]=l&255,e+2};v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,4,4294967295,0),this[e+3]=l>>>24,this[e+2]=l>>>16,this[e+1]=l>>>8,this[e]=l&255,e+4};v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,4,4294967295,0),this[e]=l>>>24,this[e+1]=l>>>16,this[e+2]=l>>>8,this[e+3]=l&255,e+4};function Xr(t,l,e,n,a){Vr(l,n,a,t,e,7);let u=Number(l&BigInt(4294967295));t[e++]=u,u=u>>8,t[e++]=u,u=u>>8,t[e++]=u,u=u>>8,t[e++]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[e++]=i,i=i>>8,t[e++]=i,i=i>>8,t[e++]=i,i=i>>8,t[e++]=i,e}function Qr(t,l,e,n,a){Vr(l,n,a,t,e,7);let u=Number(l&BigInt(4294967295));t[e+7]=u,u=u>>8,t[e+6]=u,u=u>>8,t[e+5]=u,u=u>>8,t[e+4]=u;let i=Number(l>>BigInt(32)&BigInt(4294967295));return t[e+3]=i,i=i>>8,t[e+2]=i,i=i>>8,t[e+1]=i,i=i>>8,t[e]=i,e+8}v.prototype.writeBigUInt64LE=Gl(function(l,e=0){return Xr(this,l,e,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});v.prototype.writeBigUInt64BE=Gl(function(l,e=0){return Qr(this,l,e,BigInt(0),BigInt(\\\"0xffffffffffffffff\\\"))});v.prototype.writeIntLE=function(l,e,n,a){if(l=+l,e=e>>>0,!a){let f=Math.pow(2,8*n-1);At(this,l,e,n,f-1,-f)}let u=0,i=1,c=0;for(this[e]=l&255;++u<n&&(i*=256);)l<0&&c===0&&this[e+u-1]!==0&&(c=1),this[e+u]=(l/i>>0)-c&255;return e+n};v.prototype.writeIntBE=function(l,e,n,a){if(l=+l,e=e>>>0,!a){let f=Math.pow(2,8*n-1);At(this,l,e,n,f-1,-f)}let u=n-1,i=1,c=0;for(this[e+u]=l&255;--u>=0&&(i*=256);)l<0&&c===0&&this[e+u+1]!==0&&(c=1),this[e+u]=(l/i>>0)-c&255;return e+n};v.prototype.writeInt8=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,1,127,-128),l<0&&(l=255+l+1),this[e]=l&255,e+1};v.prototype.writeInt16LE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,2,32767,-32768),this[e]=l&255,this[e+1]=l>>>8,e+2};v.prototype.writeInt16BE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,2,32767,-32768),this[e]=l>>>8,this[e+1]=l&255,e+2};v.prototype.writeInt32LE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,4,2147483647,-2147483648),this[e]=l&255,this[e+1]=l>>>8,this[e+2]=l>>>16,this[e+3]=l>>>24,e+4};v.prototype.writeInt32BE=function(l,e,n){return l=+l,e=e>>>0,n||At(this,l,e,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[e]=l>>>24,this[e+1]=l>>>16,this[e+2]=l>>>8,this[e+3]=l&255,e+4};v.prototype.writeBigInt64LE=Gl(function(l,e=0){return Xr(this,l,e,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});v.prototype.writeBigInt64BE=Gl(function(l,e=0){return Qr(this,l,e,-BigInt(\\\"0x8000000000000000\\\"),BigInt(\\\"0x7fffffffffffffff\\\"))});function Lr(t,l,e,n,a,u){if(e+n>t.length)throw new RangeError(\\\"Index out of range\\\");if(e<0)throw new RangeError(\\\"Index out of range\\\")}function jr(t,l,e,n,a){return l=+l,e=e>>>0,a||Lr(t,l,e,4,34028234663852886e22,-34028234663852886e22),Xe.write(t,l,e,n,23,4),e+4}v.prototype.writeFloatLE=function(l,e,n){return jr(this,l,e,!0,n)};v.prototype.writeFloatBE=function(l,e,n){return jr(this,l,e,!1,n)};function Zr(t,l,e,n,a){return l=+l,e=e>>>0,a||Lr(t,l,e,8,17976931348623157e292,-17976931348623157e292),Xe.write(t,l,e,n,52,8),e+8}v.prototype.writeDoubleLE=function(l,e,n){return Zr(this,l,e,!0,n)};v.prototype.writeDoubleBE=function(l,e,n){return Zr(this,l,e,!1,n)};v.prototype.copy=function(l,e,n,a){if(!v.isBuffer(l))throw new TypeError(\\\"argument should be a Buffer\\\");if(n||(n=0),!a&&a!==0&&(a=this.length),e>=l.length&&(e=l.length),e||(e=0),a>0&&a<n&&(a=n),a===n||l.length===0||this.length===0)return 0;if(e<0)throw new RangeError(\\\"targetStart out of bounds\\\");if(n<0||n>=this.length)throw new RangeError(\\\"Index out of range\\\");if(a<0)throw new RangeError(\\\"sourceEnd out of bounds\\\");a>this.length&&(a=this.length),l.length-e<a-n&&(a=l.length-e+n);let u=a-n;return this===l&&typeof Uint8Array.prototype.copyWithin==\\\"function\\\"?this.copyWithin(e,n,a):Uint8Array.prototype.set.call(l,this.subarray(n,a),e),u};v.prototype.fill=function(l,e,n,a){if(typeof l==\\\"string\\\"){if(typeof e==\\\"string\\\"?(a=e,e=0,n=this.length):typeof n==\\\"string\\\"&&(a=n,n=this.length),a!==void 0&&typeof a!=\\\"string\\\")throw new TypeError(\\\"encoding must be a string\\\");if(typeof a==\\\"string\\\"&&!v.isEncoding(a))throw new TypeError(\\\"Unknown encoding: \\\"+a);if(l.length===1){let i=l.charCodeAt(0);(a===\\\"utf8\\\"&&i<128||a===\\\"latin1\\\")&&(l=i)}}else typeof l==\\\"number\\\"?l=l&255:typeof l==\\\"boolean\\\"&&(l=Number(l));if(e<0||this.length<e||this.length<n)throw new RangeError(\\\"Out of range index\\\");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,l||(l=0);let u;if(typeof l==\\\"number\\\")for(u=e;u<n;++u)this[u]=l;else{let i=v.isBuffer(l)?l:v.from(l,a),c=i.length;if(c===0)throw new TypeError('The value \\\"'+l+'\\\" is invalid for argument \\\"value\\\"');for(u=0;u<n-e;++u)this[u+e]=i[u%c]}return this};var Ge={};function Di(t,l,e){Ge[t]=class extends e{constructor(){super(),Object.defineProperty(this,\\\"message\\\",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(a){Object.defineProperty(this,\\\"code\\\",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Di(\\\"ERR_BUFFER_OUT_OF_BOUNDS\\\",function(t){return t?`${t} is outside of buffer bounds`:\\\"Attempt to access memory outside buffer bounds\\\"},RangeError);Di(\\\"ERR_INVALID_ARG_TYPE\\\",function(t,l){return`The \\\"${t}\\\" argument must be of type number. Received type ${typeof l}`},TypeError);Di(\\\"ERR_OUT_OF_RANGE\\\",function(t,l,e){let n=`The value of \\\"${t}\\\" is out of range.`,a=e;return Number.isInteger(e)&&Math.abs(e)>2**32?a=Cr(String(e)):typeof e==\\\"bigint\\\"&&(a=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(a=Cr(a)),a+=\\\"n\\\"),n+=` It must be ${l}. Received ${a}`,n},RangeError);function Cr(t){let l=\\\"\\\",e=t.length,n=t[0]===\\\"-\\\"?1:0;for(;e>=n+4;e-=3)l=`_${t.slice(e-3,e)}${l}`;return`${t.slice(0,e)}${l}`}function jy(t,l,e){Qe(l,\\\"offset\\\"),(t[l]===void 0||t[l+e]===void 0)&&Hn(l,t.length-(e+1))}function Vr(t,l,e,n,a,u){if(t>e||t<l){let i=typeof l==\\\"bigint\\\"?\\\"n\\\":\\\"\\\",c;throw u>3?l===0||l===BigInt(0)?c=`>= 0${i} and < 2${i} ** ${(u+1)*8}${i}`:c=`>= -(2${i} ** ${(u+1)*8-1}${i}) and < 2 ** ${(u+1)*8-1}${i}`:c=`>= ${l}${i} and <= ${e}${i}`,new Ge.ERR_OUT_OF_RANGE(\\\"value\\\",c,t)}jy(n,a,u)}function Qe(t,l){if(typeof t!=\\\"number\\\")throw new Ge.ERR_INVALID_ARG_TYPE(l,\\\"number\\\",t)}function Hn(t,l,e){throw Math.floor(t)!==t?(Qe(t,e),new Ge.ERR_OUT_OF_RANGE(e||\\\"offset\\\",\\\"an integer\\\",t)):l<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE(e||\\\"offset\\\",`>= ${e?1:0} and <= ${l}`,t)}var Zy=/[^+/0-9A-Za-z-_]/g;function Vy(t){if(t=t.split(\\\"=\\\")[0],t=t.trim().replace(Zy,\\\"\\\"),t.length<2)return\\\"\\\";for(;t.length%4!==0;)t=t+\\\"=\\\";return t}function Ui(t,l){l=l||1/0;let e,n=t.length,a=null,u=[];for(let i=0;i<n;++i){if(e=t.charCodeAt(i),e>55295&&e<57344){if(!a){if(e>56319){(l-=3)>-1&&u.push(239,191,189);continue}else if(i+1===n){(l-=3)>-1&&u.push(239,191,189);continue}a=e;continue}if(e<56320){(l-=3)>-1&&u.push(239,191,189),a=e;continue}e=(a-55296<<10|e-56320)+65536}else a&&(l-=3)>-1&&u.push(239,191,189);if(a=null,e<128){if((l-=1)<0)break;u.push(e)}else if(e<2048){if((l-=2)<0)break;u.push(e>>6|192,e&63|128)}else if(e<65536){if((l-=3)<0)break;u.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((l-=4)<0)break;u.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error(\\\"Invalid code point\\\")}return u}function Ky(t){let l=[];for(let e=0;e<t.length;++e)l.push(t.charCodeAt(e)&255);return l}function Jy(t,l){let e,n,a,u=[];for(let i=0;i<t.length&&!((l-=2)<0);++i)e=t.charCodeAt(i),n=e>>8,a=e%256,u.push(a),u.push(n);return u}function Kr(t){return _i.toByteArray(Vy(t))}function Za(t,l,e,n){let a;for(a=0;a<n&&!(a+e>=l.length||a>=t.length);++a)l[a+e]=t[a];return a}function fl(t,l){return t instanceof l||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===l.name}function Ri(t){return t!==t}var Fy=(function(){let t=\\\"0123456789abcdef\\\",l=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let a=0;a<16;++a)l[n+a]=t[e]+t[a]}return l})();function Gl(t){return typeof BigInt>\\\"u\\\"?Wy:t}function Wy(){throw new Error(\\\"BigInt not supported\\\")}});var Fr,z=gy(()=>{\\\"use strict\\\";Fr=Tt(Jr(),1);globalThis.Buffer=Fr.Buffer});var ao=Rt(k=>{\\\"use strict\\\";z();function qi(t,l){var e=t.length;t.push(l);t:for(;0<e;){var n=e-1>>>1,a=t[n];if(0<Va(a,l))t[n]=l,t[e]=a,e=n;else break t}}function rl(t){return t.length===0?null:t[0]}function Ja(t){if(t.length===0)return null;var l=t[0],e=t.pop();if(e!==l){t[0]=e;t:for(var n=0,a=t.length,u=a>>>1;n<u;){var i=2*(n+1)-1,c=t[i],f=i+1,r=t[f];if(0>Va(c,e))f<a&&0>Va(r,c)?(t[n]=r,t[f]=e,n=f):(t[n]=c,t[i]=e,n=i);else if(f<a&&0>Va(r,e))t[n]=r,t[f]=e,n=f;else break t}}return l}function Va(t,l){var e=t.sortIndex-l.sortIndex;return e!==0?e:t.id-l.id}k.unstable_now=void 0;typeof performance==\\\"object\\\"&&typeof performance.now==\\\"function\\\"?(Wr=performance,k.unstable_now=function(){return Wr.now()}):(Ci=Date,kr=Ci.now(),k.unstable_now=function(){return Ci.now()-kr});var Wr,Ci,kr,pl=[],Xl=[],ky=1,Vt=null,vt=3,Yi=!1,qn=!1,Yn=!1,Gi=!1,Pr=typeof setTimeout==\\\"function\\\"?setTimeout:null,to=typeof clearTimeout==\\\"function\\\"?clearTimeout:null,$r=typeof setImmediate<\\\"u\\\"?setImmediate:null;function Ka(t){for(var l=rl(Xl);l!==null;){if(l.callback===null)Ja(Xl);else if(l.startTime<=t)Ja(Xl),l.sortIndex=l.expirationTime,qi(pl,l);else break;l=rl(Xl)}}function Xi(t){if(Yn=!1,Ka(t),!qn)if(rl(pl)!==null)qn=!0,Ze||(Ze=!0,je());else{var l=rl(Xl);l!==null&&Qi(Xi,l.startTime-t)}}var Ze=!1,Gn=-1,lo=5,eo=-1;function no(){return Gi?!0:!(k.unstable_now()-eo<lo)}function wi(){if(Gi=!1,Ze){var t=k.unstable_now();eo=t;var l=!0;try{t:{qn=!1,Yn&&(Yn=!1,to(Gn),Gn=-1),Yi=!0;var e=vt;try{l:{for(Ka(t),Vt=rl(pl);Vt!==null&&!(Vt.expirationTime>t&&no());){var n=Vt.callback;if(typeof n==\\\"function\\\"){Vt.callback=null,vt=Vt.priorityLevel;var a=n(Vt.expirationTime<=t);if(t=k.unstable_now(),typeof a==\\\"function\\\"){Vt.callback=a,Ka(t),l=!0;break l}Vt===rl(pl)&&Ja(pl),Ka(t)}else Ja(pl);Vt=rl(pl)}if(Vt!==null)l=!0;else{var u=rl(Xl);u!==null&&Qi(Xi,u.startTime-t),l=!1}}break t}finally{Vt=null,vt=e,Yi=!1}l=void 0}}finally{l?je():Ze=!1}}}var je;typeof $r==\\\"function\\\"?je=function(){$r(wi)}:typeof MessageChannel<\\\"u\\\"?(Hi=new MessageChannel,Ir=Hi.port2,Hi.port1.onmessage=wi,je=function(){Ir.postMessage(null)}):je=function(){Pr(wi,0)};var Hi,Ir;function Qi(t,l){Gn=Pr(function(){t(k.unstable_now())},l)}k.unstable_IdlePriority=5;k.unstable_ImmediatePriority=1;k.unstable_LowPriority=4;k.unstable_NormalPriority=3;k.unstable_Profiling=null;k.unstable_UserBlockingPriority=2;k.unstable_cancelCallback=function(t){t.callback=null};k.unstable_forceFrameRate=function(t){0>t||125<t?console.error(\\\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\\\"):lo=0<t?Math.floor(1e3/t):5};k.unstable_getCurrentPriorityLevel=function(){return vt};k.unstable_next=function(t){switch(vt){case 1:case 2:case 3:var l=3;break;default:l=vt}var e=vt;vt=l;try{return t()}finally{vt=e}};k.unstable_requestPaint=function(){Gi=!0};k.unstable_runWithPriority=function(t,l){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var e=vt;vt=t;try{return l()}finally{vt=e}};k.unstable_scheduleCallback=function(t,l,e){var n=k.unstable_now();switch(typeof e==\\\"object\\\"&&e!==null?(e=e.delay,e=typeof e==\\\"number\\\"&&0<e?n+e:n):e=n,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=e+a,t={id:ky++,callback:l,priorityLevel:t,startTime:e,expirationTime:a,sortIndex:-1},e>n?(t.sortIndex=e,qi(Xl,t),rl(pl)===null&&t===rl(Xl)&&(Yn?(to(Gn),Gn=-1):Yn=!0,Qi(Xi,e-n))):(t.sortIndex=a,qi(pl,t),qn||Yi||(qn=!0,Ze||(Ze=!0,je()))),t};k.unstable_shouldYield=no;k.unstable_wrapCallback=function(t){var l=vt;return function(){var e=vt;vt=l;try{return t.apply(this,arguments)}finally{vt=e}}}});var io=Rt((o2,uo)=>{\\\"use strict\\\";z();uo.exports=ao()});var po=Rt(B=>{\\\"use strict\\\";z();var Zi=Symbol.for(\\\"react.transitional.element\\\"),$y=Symbol.for(\\\"react.portal\\\"),Iy=Symbol.for(\\\"react.fragment\\\"),Py=Symbol.for(\\\"react.strict_mode\\\"),tm=Symbol.for(\\\"react.profiler\\\"),lm=Symbol.for(\\\"react.consumer\\\"),em=Symbol.for(\\\"react.context\\\"),nm=Symbol.for(\\\"react.forward_ref\\\"),am=Symbol.for(\\\"react.suspense\\\"),um=Symbol.for(\\\"react.memo\\\"),so=Symbol.for(\\\"react.lazy\\\"),im=Symbol.for(\\\"react.activity\\\"),co=Symbol.iterator;function cm(t){return t===null||typeof t!=\\\"object\\\"?null:(t=co&&t[co]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var ho={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yo=Object.assign,mo={};function Ke(t,l,e){this.props=t,this.context=l,this.refs=mo,this.updater=e||ho}Ke.prototype.isReactComponent={};Ke.prototype.setState=function(t,l){if(typeof t!=\\\"object\\\"&&typeof t!=\\\"function\\\"&&t!=null)throw Error(\\\"takes an object of state variables to update or a function which returns an object of state variables.\\\");this.updater.enqueueSetState(this,t,l,\\\"setState\\\")};Ke.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,\\\"forceUpdate\\\")};function go(){}go.prototype=Ke.prototype;function Vi(t,l,e){this.props=t,this.context=l,this.refs=mo,this.updater=e||ho}var Ki=Vi.prototype=new go;Ki.constructor=Vi;yo(Ki,Ke.prototype);Ki.isPureReactComponent=!0;var fo=Array.isArray;function ji(){}var K={H:null,A:null,T:null,S:null},vo=Object.prototype.hasOwnProperty;function Ji(t,l,e){var n=e.ref;return{$$typeof:Zi,type:t,key:l,ref:n!==void 0?n:null,props:e}}function fm(t,l){return Ji(t.type,l,t.props)}function Fi(t){return typeof t==\\\"object\\\"&&t!==null&&t.$$typeof===Zi}function rm(t){var l={\\\"=\\\":\\\"=0\\\",\\\":\\\":\\\"=2\\\"};return\\\"$\\\"+t.replace(/[=:]/g,function(e){return l[e]})}var ro=/\\\\/+/g;function Li(t,l){return typeof t==\\\"object\\\"&&t!==null&&t.key!=null?rm(\\\"\\\"+t.key):l.toString(36)}function om(t){switch(t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason;default:switch(typeof t.status==\\\"string\\\"?t.then(ji,ji):(t.status=\\\"pending\\\",t.then(function(l){t.status===\\\"pending\\\"&&(t.status=\\\"fulfilled\\\",t.value=l)},function(l){t.status===\\\"pending\\\"&&(t.status=\\\"rejected\\\",t.reason=l)})),t.status){case\\\"fulfilled\\\":return t.value;case\\\"rejected\\\":throw t.reason}}throw t}function Ve(t,l,e,n,a){var u=typeof t;(u===\\\"undefined\\\"||u===\\\"boolean\\\")&&(t=null);var i=!1;if(t===null)i=!0;else switch(u){case\\\"bigint\\\":case\\\"string\\\":case\\\"number\\\":i=!0;break;case\\\"object\\\":switch(t.$$typeof){case Zi:case $y:i=!0;break;case so:return i=t._init,Ve(i(t._payload),l,e,n,a)}}if(i)return a=a(t),i=n===\\\"\\\"?\\\".\\\"+Li(t,0):n,fo(a)?(e=\\\"\\\",i!=null&&(e=i.replace(ro,\\\"$&/\\\")+\\\"/\\\"),Ve(a,l,e,\\\"\\\",function(r){return r})):a!=null&&(Fi(a)&&(a=fm(a,e+(a.key==null||t&&t.key===a.key?\\\"\\\":(\\\"\\\"+a.key).replace(ro,\\\"$&/\\\")+\\\"/\\\")+i)),l.push(a)),1;i=0;var c=n===\\\"\\\"?\\\".\\\":n+\\\":\\\";if(fo(t))for(var f=0;f<t.length;f++)n=t[f],u=c+Li(n,f),i+=Ve(n,l,e,u,a);else if(f=cm(t),typeof f==\\\"function\\\")for(t=f.call(t),f=0;!(n=t.next()).done;)n=n.value,u=c+Li(n,f++),i+=Ve(n,l,e,u,a);else if(u===\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Ve(om(t),l,e,n,a);throw l=String(t),Error(\\\"Objects are not valid as a React child (found: \\\"+(l===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(t).join(\\\", \\\")+\\\"}\\\":l)+\\\"). If you meant to render a collection of children, use an array instead.\\\")}return i}function Fa(t,l,e){if(t==null)return t;var n=[],a=0;return Ve(t,n,\\\"\\\",\\\"\\\",function(u){return l.call(e,u,a++)}),n}function sm(t){if(t._status===-1){var l=t._result;l=l(),l.then(function(e){(t._status===0||t._status===-1)&&(t._status=1,t._result=e)},function(e){(t._status===0||t._status===-1)&&(t._status=2,t._result=e)}),t._status===-1&&(t._status=0,t._result=l)}if(t._status===1)return t._result.default;throw t._result}var oo=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},hm={map:Fa,forEach:function(t,l,e){Fa(t,function(){l.apply(this,arguments)},e)},count:function(t){var l=0;return Fa(t,function(){l++}),l},toArray:function(t){return Fa(t,function(l){return l})||[]},only:function(t){if(!Fi(t))throw Error(\\\"React.Children.only expected to receive a single React element child.\\\");return t}};B.Activity=im;B.Children=hm;B.Component=Ke;B.Fragment=Iy;B.Profiler=tm;B.PureComponent=Vi;B.StrictMode=Py;B.Suspense=am;B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K;B.__COMPILER_RUNTIME={__proto__:null,c:function(t){return K.H.useMemoCache(t)}};B.cache=function(t){return function(){return t.apply(null,arguments)}};B.cacheSignal=function(){return null};B.cloneElement=function(t,l,e){if(t==null)throw Error(\\\"The argument must be a React element, but you passed \\\"+t+\\\".\\\");var n=yo({},t.props),a=t.key;if(l!=null)for(u in l.key!==void 0&&(a=\\\"\\\"+l.key),l)!vo.call(l,u)||u===\\\"key\\\"||u===\\\"__self\\\"||u===\\\"__source\\\"||u===\\\"ref\\\"&&l.ref===void 0||(n[u]=l[u]);var u=arguments.length-2;if(u===1)n.children=e;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];n.children=i}return Ji(t.type,a,n)};B.createContext=function(t){return t={$$typeof:em,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:lm,_context:t},t};B.createElement=function(t,l,e){var n,a={},u=null;if(l!=null)for(n in l.key!==void 0&&(u=\\\"\\\"+l.key),l)vo.call(l,n)&&n!==\\\"key\\\"&&n!==\\\"__self\\\"&&n!==\\\"__source\\\"&&(a[n]=l[n]);var i=arguments.length-2;if(i===1)a.children=e;else if(1<i){for(var c=Array(i),f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}if(t&&t.defaultProps)for(n in i=t.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return Ji(t,u,a)};B.createRef=function(){return{current:null}};B.forwardRef=function(t){return{$$typeof:nm,render:t}};B.isValidElement=Fi;B.lazy=function(t){return{$$typeof:so,_payload:{_status:-1,_result:t},_init:sm}};B.memo=function(t,l){return{$$typeof:um,type:t,compare:l===void 0?null:l}};B.startTransition=function(t){var l=K.T,e={};K.T=e;try{var n=t(),a=K.S;a!==null&&a(e,n),typeof n==\\\"object\\\"&&n!==null&&typeof n.then==\\\"function\\\"&&n.then(ji,oo)}catch(u){oo(u)}finally{l!==null&&e.types!==null&&(l.types=e.types),K.T=l}};B.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()};B.use=function(t){return K.H.use(t)};B.useActionState=function(t,l,e){return K.H.useActionState(t,l,e)};B.useCallback=function(t,l){return K.H.useCallback(t,l)};B.useContext=function(t){return K.H.useContext(t)};B.useDebugValue=function(){};B.useDeferredValue=function(t,l){return K.H.useDeferredValue(t,l)};B.useEffect=function(t,l){return K.H.useEffect(t,l)};B.useEffectEvent=function(t){return K.H.useEffectEvent(t)};B.useId=function(){return K.H.useId()};B.useImperativeHandle=function(t,l,e){return K.H.useImperativeHandle(t,l,e)};B.useInsertionEffect=function(t,l){return K.H.useInsertionEffect(t,l)};B.useLayoutEffect=function(t,l){return K.H.useLayoutEffect(t,l)};B.useMemo=function(t,l){return K.H.useMemo(t,l)};B.useOptimistic=function(t,l){return K.H.useOptimistic(t,l)};B.useReducer=function(t,l,e){return K.H.useReducer(t,l,e)};B.useRef=function(t){return K.H.useRef(t)};B.useState=function(t){return K.H.useState(t)};B.useSyncExternalStore=function(t,l,e){return K.H.useSyncExternalStore(t,l,e)};B.useTransition=function(){return K.H.useTransition()};B.version=\\\"19.2.4\\\"});var ge=Rt((m2,So)=>{\\\"use strict\\\";z();So.exports=po()});var bo=Rt(St=>{\\\"use strict\\\";z();var ym=ge();function Eo(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[e])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function Ql(){}var pt={d:{f:Ql,r:function(){throw Error(Eo(522))},D:Ql,C:Ql,L:Ql,m:Ql,X:Ql,S:Ql,M:Ql},p:0,findDOMNode:null},mm=Symbol.for(\\\"react.portal\\\");function dm(t,l,e){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mm,key:n==null?null:\\\"\\\"+n,children:t,containerInfo:l,implementation:e}}var Xn=ym.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Wa(t,l){if(t===\\\"font\\\")return\\\"\\\";if(typeof l==\\\"string\\\")return l===\\\"use-credentials\\\"?l:\\\"\\\"}St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pt;St.createPortal=function(t,l){var e=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(Eo(299));return dm(t,l,null,e)};St.flushSync=function(t){var l=Xn.T,e=pt.p;try{if(Xn.T=null,pt.p=2,t)return t()}finally{Xn.T=l,pt.p=e,pt.d.f()}};St.preconnect=function(t,l){typeof t==\\\"string\\\"&&(l?(l=l.crossOrigin,l=typeof l==\\\"string\\\"?l===\\\"use-credentials\\\"?l:\\\"\\\":void 0):l=null,pt.d.C(t,l))};St.prefetchDNS=function(t){typeof t==\\\"string\\\"&&pt.d.D(t)};St.preinit=function(t,l){if(typeof t==\\\"string\\\"&&l&&typeof l.as==\\\"string\\\"){var e=l.as,n=Wa(e,l.crossOrigin),a=typeof l.integrity==\\\"string\\\"?l.integrity:void 0,u=typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0;e===\\\"style\\\"?pt.d.S(t,typeof l.precedence==\\\"string\\\"?l.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:u}):e===\\\"script\\\"&&pt.d.X(t,{crossOrigin:n,integrity:a,fetchPriority:u,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}};St.preinitModule=function(t,l){if(typeof t==\\\"string\\\")if(typeof l==\\\"object\\\"&&l!==null){if(l.as==null||l.as===\\\"script\\\"){var e=Wa(l.as,l.crossOrigin);pt.d.M(t,{crossOrigin:e,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0})}}else l==null&&pt.d.M(t)};St.preload=function(t,l){if(typeof t==\\\"string\\\"&&typeof l==\\\"object\\\"&&l!==null&&typeof l.as==\\\"string\\\"){var e=l.as,n=Wa(e,l.crossOrigin);pt.d.L(t,e,{crossOrigin:n,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0,nonce:typeof l.nonce==\\\"string\\\"?l.nonce:void 0,type:typeof l.type==\\\"string\\\"?l.type:void 0,fetchPriority:typeof l.fetchPriority==\\\"string\\\"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy==\\\"string\\\"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet==\\\"string\\\"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes==\\\"string\\\"?l.imageSizes:void 0,media:typeof l.media==\\\"string\\\"?l.media:void 0})}};St.preloadModule=function(t,l){if(typeof t==\\\"string\\\")if(l){var e=Wa(l.as,l.crossOrigin);pt.d.m(t,{as:typeof l.as==\\\"string\\\"&&l.as!==\\\"script\\\"?l.as:void 0,crossOrigin:e,integrity:typeof l.integrity==\\\"string\\\"?l.integrity:void 0})}else pt.d.m(t)};St.requestFormReset=function(t){pt.d.r(t)};St.unstable_batchedUpdates=function(t,l){return t(l)};St.useFormState=function(t,l,e){return Xn.H.useFormState(t,l,e)};St.useFormStatus=function(){return Xn.H.useHostTransitionStatus()};St.version=\\\"19.2.4\\\"});var No=Rt((p2,Ao)=>{\\\"use strict\\\";z();function To(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(To)}catch(t){console.error(t)}}To(),Ao.exports=bo()});var Hh=Rt(Ei=>{\\\"use strict\\\";z();var ct=io(),k0=ge(),gm=No();function S(t){var l=\\\"https://react.dev/errors/\\\"+t;if(1<arguments.length){l+=\\\"?args[]=\\\"+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+=\\\"&args[]=\\\"+encodeURIComponent(arguments[e])}return\\\"Minified React error #\\\"+t+\\\"; visit \\\"+l+\\\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\\\"}function $0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function _a(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function I0(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function P0(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function zo(t){if(_a(t)!==t)throw Error(S(188))}function vm(t){var l=t.alternate;if(!l){if(l=_a(t),l===null)throw Error(S(188));return l!==t?null:t}for(var e=t,n=l;;){var a=e.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){e=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===e)return zo(a),t;if(u===n)return zo(a),l;u=u.sibling}throw Error(S(188))}if(e.return!==n.return)e=a,n=u;else{for(var i=!1,c=a.child;c;){if(c===e){i=!0,e=a,n=u;break}if(c===n){i=!0,n=a,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,n=a;break}if(c===n){i=!0,n=u,e=a;break}c=c.sibling}if(!i)throw Error(S(189))}}if(e.alternate!==n)throw Error(S(190))}if(e.tag!==3)throw Error(S(188));return e.stateNode.current===e?t:l}function ts(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=ts(t),l!==null)return l;t=t.sibling}return null}var W=Object.assign,pm=Symbol.for(\\\"react.element\\\"),ka=Symbol.for(\\\"react.transitional.element\\\"),Fn=Symbol.for(\\\"react.portal\\\"),Ie=Symbol.for(\\\"react.fragment\\\"),ls=Symbol.for(\\\"react.strict_mode\\\"),Mc=Symbol.for(\\\"react.profiler\\\"),es=Symbol.for(\\\"react.consumer\\\"),_l=Symbol.for(\\\"react.context\\\"),Nf=Symbol.for(\\\"react.forward_ref\\\"),Uc=Symbol.for(\\\"react.suspense\\\"),Oc=Symbol.for(\\\"react.suspense_list\\\"),zf=Symbol.for(\\\"react.memo\\\"),Ll=Symbol.for(\\\"react.lazy\\\"),xc=Symbol.for(\\\"react.activity\\\"),Sm=Symbol.for(\\\"react.memo_cache_sentinel\\\"),_o=Symbol.iterator;function Qn(t){return t===null||typeof t!=\\\"object\\\"?null:(t=_o&&t[_o]||t[\\\"@@iterator\\\"],typeof t==\\\"function\\\"?t:null)}var Em=Symbol.for(\\\"react.client.reference\\\");function Dc(t){if(t==null)return null;if(typeof t==\\\"function\\\")return t.$$typeof===Em?null:t.displayName||t.name||null;if(typeof t==\\\"string\\\")return t;switch(t){case Ie:return\\\"Fragment\\\";case Mc:return\\\"Profiler\\\";case ls:return\\\"StrictMode\\\";case Uc:return\\\"Suspense\\\";case Oc:return\\\"SuspenseList\\\";case xc:return\\\"Activity\\\"}if(typeof t==\\\"object\\\")switch(t.$$typeof){case Fn:return\\\"Portal\\\";case _l:return t.displayName||\\\"Context\\\";case es:return(t._context.displayName||\\\"Context\\\")+\\\".Consumer\\\";case Nf:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||\\\"\\\",t=t!==\\\"\\\"?\\\"ForwardRef(\\\"+t+\\\")\\\":\\\"ForwardRef\\\"),t;case zf:return l=t.displayName||null,l!==null?l:Dc(t.type)||\\\"Memo\\\";case Ll:l=t._payload,t=t._init;try{return Dc(t(l))}catch{}}return null}var Wn=Array.isArray,N=k0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=gm.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},Rc=[],Pe=-1;function ml(t){return{current:t}}function st(t){0>Pe||(t.current=Rc[Pe],Rc[Pe]=null,Pe--)}function V(t,l){Pe++,Rc[Pe]=t.current,t.current=l}var yl=ml(null),ha=ml(null),Pl=ml(null),Uu=ml(null);function Ou(t,l){switch(V(Pl,l),V(ha,t),V(yl,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?R0(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=R0(l),t=Th(l,t);else switch(t){case\\\"svg\\\":t=1;break;case\\\"math\\\":t=2;break;default:t=0}}st(yl),V(yl,t)}function pn(){st(yl),st(ha),st(Pl)}function Cc(t){t.memoizedState!==null&&V(Uu,t);var l=yl.current,e=Th(l,t.type);l!==e&&(V(ha,t),V(yl,e))}function xu(t){ha.current===t&&(st(yl),st(ha)),Uu.current===t&&(st(Uu),Aa._currentValue=Te)}var Wi,Bo;function pe(t){if(Wi===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\\\\n( *(at )?)/);Wi=l&&l[1]||\\\"\\\",Bo=-1<e.stack.indexOf(`\\n    at`)?\\\" (<anonymous>)\\\":-1<e.stack.indexOf(\\\"@\\\")?\\\"@unknown:0:0\\\":\\\"\\\"}return`\\n`+Wi+t+Bo}var ki=!1;function $i(t,l){if(!t||ki)return\\\"\\\";ki=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(l){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,\\\"props\\\",{set:function(){throw Error()}}),typeof Reflect==\\\"object\\\"&&Reflect.construct){try{Reflect.construct(g,[])}catch(y){var d=y}Reflect.construct(t,[],g)}else{try{g.call()}catch(y){d=y}t.call(g.prototype)}}else{try{throw Error()}catch(y){d=y}(g=t())&&typeof g.catch==\\\"function\\\"&&g.catch(function(){})}}catch(y){if(y&&d&&typeof y.stack==\\\"string\\\")return[y.stack,d.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=\\\"DetermineComponentFrameRoot\\\";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,\\\"name\\\");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,\\\"name\\\",{value:\\\"DetermineComponentFrameRoot\\\"});var u=n.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var f=i.split(`\\n`),r=c.split(`\\n`);for(a=n=0;n<f.length&&!f[n].includes(\\\"DetermineComponentFrameRoot\\\");)n++;for(;a<r.length&&!r[a].includes(\\\"DetermineComponentFrameRoot\\\");)a++;if(n===f.length||a===r.length)for(n=f.length-1,a=r.length-1;1<=n&&0<=a&&f[n]!==r[a];)a--;for(;1<=n&&0<=a;n--,a--)if(f[n]!==r[a]){if(n!==1||a!==1)do if(n--,a--,0>a||f[n]!==r[a]){var m=`\\n`+f[n].replace(\\\" at new \\\",\\\" at \\\");return t.displayName&&m.includes(\\\"<anonymous>\\\")&&(m=m.replace(\\\"<anonymous>\\\",t.displayName)),m}while(1<=n&&0<=a);break}}}finally{ki=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:\\\"\\\")?pe(e):\\\"\\\"}function bm(t,l){switch(t.tag){case 26:case 27:case 5:return pe(t.type);case 16:return pe(\\\"Lazy\\\");case 13:return t.child!==l&&l!==null?pe(\\\"Suspense Fallback\\\"):pe(\\\"Suspense\\\");case 19:return pe(\\\"SuspenseList\\\");case 0:case 15:return $i(t.type,!1);case 11:return $i(t.type.render,!1);case 1:return $i(t.type,!0);case 31:return pe(\\\"Activity\\\");default:return\\\"\\\"}}function Mo(t){try{var l=\\\"\\\",e=null;do l+=bm(t,e),e=t,t=t.return;while(t);return l}catch(n){return`\\nError generating stack: `+n.message+`\\n`+n.stack}}var wc=Object.prototype.hasOwnProperty,_f=ct.unstable_scheduleCallback,Ii=ct.unstable_cancelCallback,Tm=ct.unstable_shouldYield,Am=ct.unstable_requestPaint,Yt=ct.unstable_now,Nm=ct.unstable_getCurrentPriorityLevel,ns=ct.unstable_ImmediatePriority,as=ct.unstable_UserBlockingPriority,Du=ct.unstable_NormalPriority,zm=ct.unstable_LowPriority,us=ct.unstable_IdlePriority,_m=ct.log,Bm=ct.unstable_setDisableYieldValue,Ba=null,Gt=null;function Fl(t){if(typeof _m==\\\"function\\\"&&Bm(t),Gt&&typeof Gt.setStrictMode==\\\"function\\\")try{Gt.setStrictMode(Ba,t)}catch{}}var Xt=Math.clz32?Math.clz32:Om,Mm=Math.log,Um=Math.LN2;function Om(t){return t>>>=0,t===0?32:31-(Mm(t)/Um|0)|0}var $a=256,Ia=262144,Pa=4194304;function Se(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ai(t,l,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=n&134217727;return c!==0?(n=c&~u,n!==0?a=Se(n):(i&=c,i!==0?a=Se(i):e||(e=c&~t,e!==0&&(a=Se(e))))):(c=n&~u,c!==0?a=Se(c):i!==0?a=Se(i):e||(e=n&~t,e!==0&&(a=Se(e)))),a===0?0:l!==0&&l!==a&&(l&u)===0&&(u=a&-a,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:a}function Ma(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function xm(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function is(){var t=Pa;return Pa<<=1,(Pa&62914560)===0&&(Pa=4194304),t}function Pi(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ua(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dm(t,l,e,n,a,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,f=t.expirationTimes,r=t.hiddenUpdates;for(e=i&~e;0<e;){var m=31-Xt(e),g=1<<m;c[m]=0,f[m]=-1;var d=r[m];if(d!==null)for(r[m]=null,m=0;m<d.length;m++){var y=d[m];y!==null&&(y.lane&=-536870913)}e&=~g}n!==0&&cs(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function cs(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var n=31-Xt(l);t.entangledLanes|=l,t.entanglements[n]=t.entanglements[n]|1073741824|e&261930}function fs(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var n=31-Xt(e),a=1<<n;a&l|t[n]&l&&(t[n]|=l),e&=~a}}function rs(t,l){var e=l&-l;return e=(e&42)!==0?1:Bf(e),(e&(t.suspendedLanes|l))!==0?0:e}function Bf(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mf(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function os(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:Rh(t.type))}function Uo(t,l){var e=G.p;try{return G.p=t,l()}finally{G.p=e}}var he=Math.random().toString(36).slice(2),yt=\\\"__reactFiber$\\\"+he,Ut=\\\"__reactProps$\\\"+he,Un=\\\"__reactContainer$\\\"+he,Hc=\\\"__reactEvents$\\\"+he,Rm=\\\"__reactListeners$\\\"+he,Cm=\\\"__reactHandles$\\\"+he,Oo=\\\"__reactResources$\\\"+he,Oa=\\\"__reactMarker$\\\"+he;function Uf(t){delete t[yt],delete t[Ut],delete t[Hc],delete t[Rm],delete t[Cm]}function tn(t){var l=t[yt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Un]||e[yt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=Y0(t);t!==null;){if(e=t[yt])return e;t=Y0(t)}return l}t=e,e=t.parentNode}return null}function On(t){if(t=t[yt]||t[Un]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function kn(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(S(33))}function sn(t){var l=t[Oo];return l||(l=t[Oo]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ot(t){t[Oa]=!0}var ss=new Set,hs={};function De(t,l){Sn(t,l),Sn(t+\\\"Capture\\\",l)}function Sn(t,l){for(hs[t]=l,t=0;t<l.length;t++)ss.add(l[t])}var wm=RegExp(\\\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\\\"),xo={},Do={};function Hm(t){return wc.call(Do,t)?!0:wc.call(xo,t)?!1:wm.test(t)?Do[t]=!0:(xo[t]=!0,!1)}function mu(t,l,e){if(Hm(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":t.removeAttribute(l);return;case\\\"boolean\\\":var n=l.toLowerCase().slice(0,5);if(n!==\\\"data-\\\"&&n!==\\\"aria-\\\"){t.removeAttribute(l);return}}t.setAttribute(l,\\\"\\\"+e)}}function tu(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(l);return}t.setAttribute(l,\\\"\\\"+e)}}function Sl(t,l,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case\\\"undefined\\\":case\\\"function\\\":case\\\"symbol\\\":case\\\"boolean\\\":t.removeAttribute(e);return}t.setAttributeNS(l,e,\\\"\\\"+n)}}function Jt(t){switch(typeof t){case\\\"bigint\\\":case\\\"boolean\\\":case\\\"number\\\":case\\\"string\\\":case\\\"undefined\\\":return t;case\\\"object\\\":return t;default:return\\\"\\\"}}function ys(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()===\\\"input\\\"&&(l===\\\"checkbox\\\"||l===\\\"radio\\\")}function qm(t,l,e){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof n<\\\"u\\\"&&typeof n.get==\\\"function\\\"&&typeof n.set==\\\"function\\\"){var a=n.get,u=n.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return a.call(this)},set:function(i){e=\\\"\\\"+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:n.enumerable}),{getValue:function(){return e},setValue:function(i){e=\\\"\\\"+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function qc(t){if(!t._valueTracker){var l=ys(t)?\\\"checked\\\":\\\"value\\\";t._valueTracker=qm(t,l,\\\"\\\"+t[l])}}function ms(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),n=\\\"\\\";return t&&(n=ys(t)?t.checked?\\\"true\\\":\\\"false\\\":t.value),t=n,t!==e?(l.setValue(t),!0):!1}function Ru(t){if(t=t||(typeof document<\\\"u\\\"?document:void 0),typeof t>\\\"u\\\")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ym=/[\\\\n\\\"\\\\\\\\]/g;function kt(t){return t.replace(Ym,function(l){return\\\"\\\\\\\\\\\"+l.charCodeAt(0).toString(16)+\\\" \\\"})}function Yc(t,l,e,n,a,u,i,c){t.name=\\\"\\\",i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"?t.type=i:t.removeAttribute(\\\"type\\\"),l!=null?i===\\\"number\\\"?(l===0&&t.value===\\\"\\\"||t.value!=l)&&(t.value=\\\"\\\"+Jt(l)):t.value!==\\\"\\\"+Jt(l)&&(t.value=\\\"\\\"+Jt(l)):i!==\\\"submit\\\"&&i!==\\\"reset\\\"||t.removeAttribute(\\\"value\\\"),l!=null?Gc(t,i,Jt(l)):e!=null?Gc(t,i,Jt(e)):n!=null&&t.removeAttribute(\\\"value\\\"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!=\\\"function\\\"&&typeof a!=\\\"symbol\\\"),c!=null&&typeof c!=\\\"function\\\"&&typeof c!=\\\"symbol\\\"&&typeof c!=\\\"boolean\\\"?t.name=\\\"\\\"+Jt(c):t.removeAttribute(\\\"name\\\")}function ds(t,l,e,n,a,u,i,c){if(u!=null&&typeof u!=\\\"function\\\"&&typeof u!=\\\"symbol\\\"&&typeof u!=\\\"boolean\\\"&&(t.type=u),l!=null||e!=null){if(!(u!==\\\"submit\\\"&&u!==\\\"reset\\\"||l!=null)){qc(t);return}e=e!=null?\\\"\\\"+Jt(e):\\\"\\\",l=l!=null?\\\"\\\"+Jt(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}n=n??a,n=typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!!n,t.checked=c?t.checked:!!n,t.defaultChecked=!!n,i!=null&&typeof i!=\\\"function\\\"&&typeof i!=\\\"symbol\\\"&&typeof i!=\\\"boolean\\\"&&(t.name=i),qc(t)}function Gc(t,l,e){l===\\\"number\\\"&&Ru(t.ownerDocument)===t||t.defaultValue===\\\"\\\"+e||(t.defaultValue=\\\"\\\"+e)}function hn(t,l,e,n){if(t=t.options,l){l={};for(var a=0;a<e.length;a++)l[\\\"$\\\"+e[a]]=!0;for(e=0;e<t.length;e++)a=l.hasOwnProperty(\\\"$\\\"+t[e].value),t[e].selected!==a&&(t[e].selected=a),a&&n&&(t[e].defaultSelected=!0)}else{for(e=\\\"\\\"+Jt(e),l=null,a=0;a<t.length;a++){if(t[a].value===e){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}l!==null||t[a].disabled||(l=t[a])}l!==null&&(l.selected=!0)}}function gs(t,l,e){if(l!=null&&(l=\\\"\\\"+Jt(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?\\\"\\\"+Jt(e):\\\"\\\"}function vs(t,l,e,n){if(l==null){if(n!=null){if(e!=null)throw Error(S(92));if(Wn(n)){if(1<n.length)throw Error(S(93));n=n[0]}e=n}e==null&&(e=\\\"\\\"),l=e}e=Jt(l),t.defaultValue=e,n=t.textContent,n===e&&n!==\\\"\\\"&&n!==null&&(t.value=n),qc(t)}function En(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var Gm=new Set(\\\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\\\".split(\\\" \\\"));function Ro(t,l,e){var n=l.indexOf(\\\"--\\\")===0;e==null||typeof e==\\\"boolean\\\"||e===\\\"\\\"?n?t.setProperty(l,\\\"\\\"):l===\\\"float\\\"?t.cssFloat=\\\"\\\":t[l]=\\\"\\\":n?t.setProperty(l,e):typeof e!=\\\"number\\\"||e===0||Gm.has(l)?l===\\\"float\\\"?t.cssFloat=e:t[l]=(\\\"\\\"+e).trim():t[l]=e+\\\"px\\\"}function ps(t,l,e){if(l!=null&&typeof l!=\\\"object\\\")throw Error(S(62));if(t=t.style,e!=null){for(var n in e)!e.hasOwnProperty(n)||l!=null&&l.hasOwnProperty(n)||(n.indexOf(\\\"--\\\")===0?t.setProperty(n,\\\"\\\"):n===\\\"float\\\"?t.cssFloat=\\\"\\\":t[n]=\\\"\\\");for(var a in l)n=l[a],l.hasOwnProperty(a)&&e[a]!==n&&Ro(t,a,n)}else for(var u in l)l.hasOwnProperty(u)&&Ro(t,u,l[u])}function Of(t){if(t.indexOf(\\\"-\\\")===-1)return!1;switch(t){case\\\"annotation-xml\\\":case\\\"color-profile\\\":case\\\"font-face\\\":case\\\"font-face-src\\\":case\\\"font-face-uri\\\":case\\\"font-face-format\\\":case\\\"font-face-name\\\":case\\\"missing-glyph\\\":return!1;default:return!0}}var Xm=new Map([[\\\"acceptCharset\\\",\\\"accept-charset\\\"],[\\\"htmlFor\\\",\\\"for\\\"],[\\\"httpEquiv\\\",\\\"http-equiv\\\"],[\\\"crossOrigin\\\",\\\"crossorigin\\\"],[\\\"accentHeight\\\",\\\"accent-height\\\"],[\\\"alignmentBaseline\\\",\\\"alignment-baseline\\\"],[\\\"arabicForm\\\",\\\"arabic-form\\\"],[\\\"baselineShift\\\",\\\"baseline-shift\\\"],[\\\"capHeight\\\",\\\"cap-height\\\"],[\\\"clipPath\\\",\\\"clip-path\\\"],[\\\"clipRule\\\",\\\"clip-rule\\\"],[\\\"colorInterpolation\\\",\\\"color-interpolation\\\"],[\\\"colorInterpolationFilters\\\",\\\"color-interpolation-filters\\\"],[\\\"colorProfile\\\",\\\"color-profile\\\"],[\\\"colorRendering\\\",\\\"color-rendering\\\"],[\\\"dominantBaseline\\\",\\\"dominant-baseline\\\"],[\\\"enableBackground\\\",\\\"enable-background\\\"],[\\\"fillOpacity\\\",\\\"fill-opacity\\\"],[\\\"fillRule\\\",\\\"fill-rule\\\"],[\\\"floodColor\\\",\\\"flood-color\\\"],[\\\"floodOpacity\\\",\\\"flood-opacity\\\"],[\\\"fontFamily\\\",\\\"font-family\\\"],[\\\"fontSize\\\",\\\"font-size\\\"],[\\\"fontSizeAdjust\\\",\\\"font-size-adjust\\\"],[\\\"fontStretch\\\",\\\"font-stretch\\\"],[\\\"fontStyle\\\",\\\"font-style\\\"],[\\\"fontVariant\\\",\\\"font-variant\\\"],[\\\"fontWeight\\\",\\\"font-weight\\\"],[\\\"glyphName\\\",\\\"glyph-name\\\"],[\\\"glyphOrientationHorizontal\\\",\\\"glyph-orientation-horizontal\\\"],[\\\"glyphOrientationVertical\\\",\\\"glyph-orientation-vertical\\\"],[\\\"horizAdvX\\\",\\\"horiz-adv-x\\\"],[\\\"horizOriginX\\\",\\\"horiz-origin-x\\\"],[\\\"imageRendering\\\",\\\"image-rendering\\\"],[\\\"letterSpacing\\\",\\\"letter-spacing\\\"],[\\\"lightingColor\\\",\\\"lighting-color\\\"],[\\\"markerEnd\\\",\\\"marker-end\\\"],[\\\"markerMid\\\",\\\"marker-mid\\\"],[\\\"markerStart\\\",\\\"marker-start\\\"],[\\\"overlinePosition\\\",\\\"overline-position\\\"],[\\\"overlineThickness\\\",\\\"overline-thickness\\\"],[\\\"paintOrder\\\",\\\"paint-order\\\"],[\\\"panose-1\\\",\\\"panose-1\\\"],[\\\"pointerEvents\\\",\\\"pointer-events\\\"],[\\\"renderingIntent\\\",\\\"rendering-intent\\\"],[\\\"shapeRendering\\\",\\\"shape-rendering\\\"],[\\\"stopColor\\\",\\\"stop-color\\\"],[\\\"stopOpacity\\\",\\\"stop-opacity\\\"],[\\\"strikethroughPosition\\\",\\\"strikethrough-position\\\"],[\\\"strikethroughThickness\\\",\\\"strikethrough-thickness\\\"],[\\\"strokeDasharray\\\",\\\"stroke-dasharray\\\"],[\\\"strokeDashoffset\\\",\\\"stroke-dashoffset\\\"],[\\\"strokeLinecap\\\",\\\"stroke-linecap\\\"],[\\\"strokeLinejoin\\\",\\\"stroke-linejoin\\\"],[\\\"strokeMiterlimit\\\",\\\"stroke-miterlimit\\\"],[\\\"strokeOpacity\\\",\\\"stroke-opacity\\\"],[\\\"strokeWidth\\\",\\\"stroke-width\\\"],[\\\"textAnchor\\\",\\\"text-anchor\\\"],[\\\"textDecoration\\\",\\\"text-decoration\\\"],[\\\"textRendering\\\",\\\"text-rendering\\\"],[\\\"transformOrigin\\\",\\\"transform-origin\\\"],[\\\"underlinePosition\\\",\\\"underline-position\\\"],[\\\"underlineThickness\\\",\\\"underline-thickness\\\"],[\\\"unicodeBidi\\\",\\\"unicode-bidi\\\"],[\\\"unicodeRange\\\",\\\"unicode-range\\\"],[\\\"unitsPerEm\\\",\\\"units-per-em\\\"],[\\\"vAlphabetic\\\",\\\"v-alphabetic\\\"],[\\\"vHanging\\\",\\\"v-hanging\\\"],[\\\"vIdeographic\\\",\\\"v-ideographic\\\"],[\\\"vMathematical\\\",\\\"v-mathematical\\\"],[\\\"vectorEffect\\\",\\\"vector-effect\\\"],[\\\"vertAdvY\\\",\\\"vert-adv-y\\\"],[\\\"vertOriginX\\\",\\\"vert-origin-x\\\"],[\\\"vertOriginY\\\",\\\"vert-origin-y\\\"],[\\\"wordSpacing\\\",\\\"word-spacing\\\"],[\\\"writingMode\\\",\\\"writing-mode\\\"],[\\\"xmlnsXlink\\\",\\\"xmlns:xlink\\\"],[\\\"xHeight\\\",\\\"x-height\\\"]]),Qm=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i;function du(t){return Qm.test(\\\"\\\"+t)?\\\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\\\":t}function Bl(){}var Xc=null;function xf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ln=null,yn=null;function Co(t){var l=On(t);if(l&&(t=l.stateNode)){var e=t[Ut]||null;t:switch(t=l.stateNode,l.type){case\\\"input\\\":if(Yc(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type===\\\"radio\\\"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name=\\\"'+kt(\\\"\\\"+l)+'\\\"][type=\\\"radio\\\"]'),l=0;l<e.length;l++){var n=e[l];if(n!==t&&n.form===t.form){var a=n[Ut]||null;if(!a)throw Error(S(90));Yc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(l=0;l<e.length;l++)n=e[l],n.form===t.form&&ms(n)}break t;case\\\"textarea\\\":gs(t,e.value,e.defaultValue);break t;case\\\"select\\\":l=e.value,l!=null&&hn(t,!!e.multiple,l,!1)}}}var tc=!1;function Ss(t,l,e){if(tc)return t(l,e);tc=!0;try{var n=t(l);return n}finally{if(tc=!1,(ln!==null||yn!==null)&&(gi(),ln&&(l=ln,t=yn,yn=ln=null,Co(l),t)))for(l=0;l<t.length;l++)Co(t[l])}}function ya(t,l){var e=t.stateNode;if(e===null)return null;var n=e[Ut]||null;if(n===null)return null;e=n[l];t:switch(l){case\\\"onClick\\\":case\\\"onClickCapture\\\":case\\\"onDoubleClick\\\":case\\\"onDoubleClickCapture\\\":case\\\"onMouseDown\\\":case\\\"onMouseDownCapture\\\":case\\\"onMouseMove\\\":case\\\"onMouseMoveCapture\\\":case\\\"onMouseUp\\\":case\\\"onMouseUpCapture\\\":case\\\"onMouseEnter\\\":(n=!n.disabled)||(t=t.type,n=!(t===\\\"button\\\"||t===\\\"input\\\"||t===\\\"select\\\"||t===\\\"textarea\\\")),t=!n;break t;default:t=!1}if(t)return null;if(e&&typeof e!=\\\"function\\\")throw Error(S(231,l,typeof e));return e}var Dl=!(typeof window>\\\"u\\\"||typeof window.document>\\\"u\\\"||typeof window.document.createElement>\\\"u\\\"),Qc=!1;if(Dl)try{Je={},Object.defineProperty(Je,\\\"passive\\\",{get:function(){Qc=!0}}),window.addEventListener(\\\"test\\\",Je,Je),window.removeEventListener(\\\"test\\\",Je,Je)}catch{Qc=!1}var Je,Wl=null,Df=null,gu=null;function Es(){if(gu)return gu;var t,l=Df,e=l.length,n,a=\\\"value\\\"in Wl?Wl.value:Wl.textContent,u=a.length;for(t=0;t<e&&l[t]===a[t];t++);var i=e-t;for(n=1;n<=i&&l[e-n]===a[u-n];n++);return gu=a.slice(t,1<n?1-n:void 0)}function vu(t){var l=t.keyCode;return\\\"charCode\\\"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function lu(){return!0}function wo(){return!1}function Ot(t){function l(e,n,a,u,i){this._reactName=e,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(e=t[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?lu:wo,this.isPropagationStopped=wo,this}return W(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=\\\"unknown\\\"&&(e.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=\\\"unknown\\\"&&(e.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),l}var Re={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=Ot(Re),xa=W({},Re,{view:0,detail:0}),Lm=Ot(xa),lc,ec,Ln,ii=W({},xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return\\\"movementX\\\"in t?t.movementX:(t!==Ln&&(Ln&&t.type===\\\"mousemove\\\"?(lc=t.screenX-Ln.screenX,ec=t.screenY-Ln.screenY):ec=lc=0,Ln=t),lc)},movementY:function(t){return\\\"movementY\\\"in t?t.movementY:ec}}),Ho=Ot(ii),jm=W({},ii,{dataTransfer:0}),Zm=Ot(jm),Vm=W({},xa,{relatedTarget:0}),nc=Ot(Vm),Km=W({},Re,{animationName:0,elapsedTime:0,pseudoElement:0}),Jm=Ot(Km),Fm=W({},Re,{clipboardData:function(t){return\\\"clipboardData\\\"in t?t.clipboardData:window.clipboardData}}),Wm=Ot(Fm),km=W({},Re,{data:0}),qo=Ot(km),$m={Esc:\\\"Escape\\\",Spacebar:\\\" \\\",Left:\\\"ArrowLeft\\\",Up:\\\"ArrowUp\\\",Right:\\\"ArrowRight\\\",Down:\\\"ArrowDown\\\",Del:\\\"Delete\\\",Win:\\\"OS\\\",Menu:\\\"ContextMenu\\\",Apps:\\\"ContextMenu\\\",Scroll:\\\"ScrollLock\\\",MozPrintableKey:\\\"Unidentified\\\"},Im={8:\\\"Backspace\\\",9:\\\"Tab\\\",12:\\\"Clear\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Control\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Escape\\\",32:\\\" \\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"ArrowLeft\\\",38:\\\"ArrowUp\\\",39:\\\"ArrowRight\\\",40:\\\"ArrowDown\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",112:\\\"F1\\\",113:\\\"F2\\\",114:\\\"F3\\\",115:\\\"F4\\\",116:\\\"F5\\\",117:\\\"F6\\\",118:\\\"F7\\\",119:\\\"F8\\\",120:\\\"F9\\\",121:\\\"F10\\\",122:\\\"F11\\\",123:\\\"F12\\\",144:\\\"NumLock\\\",145:\\\"ScrollLock\\\",224:\\\"Meta\\\"},Pm={Alt:\\\"altKey\\\",Control:\\\"ctrlKey\\\",Meta:\\\"metaKey\\\",Shift:\\\"shiftKey\\\"};function td(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=Pm[t])?!!l[t]:!1}function Rf(){return td}var ld=W({},xa,{key:function(t){if(t.key){var l=$m[t.key]||t.key;if(l!==\\\"Unidentified\\\")return l}return t.type===\\\"keypress\\\"?(t=vu(t),t===13?\\\"Enter\\\":String.fromCharCode(t)):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?Im[t.keyCode]||\\\"Unidentified\\\":\\\"\\\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rf,charCode:function(t){return t.type===\\\"keypress\\\"?vu(t):0},keyCode:function(t){return t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0},which:function(t){return t.type===\\\"keypress\\\"?vu(t):t.type===\\\"keydown\\\"||t.type===\\\"keyup\\\"?t.keyCode:0}}),ed=Ot(ld),nd=W({},ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yo=Ot(nd),ad=W({},xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rf}),ud=Ot(ad),id=W({},Re,{propertyName:0,elapsedTime:0,pseudoElement:0}),cd=Ot(id),fd=W({},ii,{deltaX:function(t){return\\\"deltaX\\\"in t?t.deltaX:\\\"wheelDeltaX\\\"in t?-t.wheelDeltaX:0},deltaY:function(t){return\\\"deltaY\\\"in t?t.deltaY:\\\"wheelDeltaY\\\"in t?-t.wheelDeltaY:\\\"wheelDelta\\\"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rd=Ot(fd),od=W({},Re,{newState:0,oldState:0}),sd=Ot(od),hd=[9,13,27,32],Cf=Dl&&\\\"CompositionEvent\\\"in window,Pn=null;Dl&&\\\"documentMode\\\"in document&&(Pn=document.documentMode);var yd=Dl&&\\\"TextEvent\\\"in window&&!Pn,bs=Dl&&(!Cf||Pn&&8<Pn&&11>=Pn),Go=\\\" \\\",Xo=!1;function Ts(t,l){switch(t){case\\\"keyup\\\":return hd.indexOf(l.keyCode)!==-1;case\\\"keydown\\\":return l.keyCode!==229;case\\\"keypress\\\":case\\\"mousedown\\\":case\\\"focusout\\\":return!0;default:return!1}}function As(t){return t=t.detail,typeof t==\\\"object\\\"&&\\\"data\\\"in t?t.data:null}var en=!1;function md(t,l){switch(t){case\\\"compositionend\\\":return As(l);case\\\"keypress\\\":return l.which!==32?null:(Xo=!0,Go);case\\\"textInput\\\":return t=l.data,t===Go&&Xo?null:t;default:return null}}function dd(t,l){if(en)return t===\\\"compositionend\\\"||!Cf&&Ts(t,l)?(t=Es(),gu=Df=Wl=null,en=!1,t):null;switch(t){case\\\"paste\\\":return null;case\\\"keypress\\\":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case\\\"compositionend\\\":return bs&&l.locale!==\\\"ko\\\"?null:l.data;default:return null}}var gd={color:!0,date:!0,datetime:!0,\\\"datetime-local\\\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qo(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l===\\\"input\\\"?!!gd[t.type]:l===\\\"textarea\\\"}function Ns(t,l,e,n){ln?yn?yn.push(n):yn=[n]:ln=n,l=$u(l,\\\"onChange\\\"),0<l.length&&(e=new ui(\\\"onChange\\\",\\\"change\\\",null,e,n),t.push({event:e,listeners:l}))}var ta=null,ma=null;function vd(t){Sh(t,0)}function ci(t){var l=kn(t);if(ms(l))return t}function Lo(t,l){if(t===\\\"change\\\")return l}var zs=!1;Dl&&(Dl?(nu=\\\"oninput\\\"in document,nu||(ac=document.createElement(\\\"div\\\"),ac.setAttribute(\\\"oninput\\\",\\\"return;\\\"),nu=typeof ac.oninput==\\\"function\\\"),eu=nu):eu=!1,zs=eu&&(!document.documentMode||9<document.documentMode));var eu,nu,ac;function jo(){ta&&(ta.detachEvent(\\\"onpropertychange\\\",_s),ma=ta=null)}function _s(t){if(t.propertyName===\\\"value\\\"&&ci(ma)){var l=[];Ns(l,ma,t,xf(t)),Ss(vd,l)}}function pd(t,l,e){t===\\\"focusin\\\"?(jo(),ta=l,ma=e,ta.attachEvent(\\\"onpropertychange\\\",_s)):t===\\\"focusout\\\"&&jo()}function Sd(t){if(t===\\\"selectionchange\\\"||t===\\\"keyup\\\"||t===\\\"keydown\\\")return ci(ma)}function Ed(t,l){if(t===\\\"click\\\")return ci(l)}function bd(t,l){if(t===\\\"input\\\"||t===\\\"change\\\")return ci(l)}function Td(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var Lt=typeof Object.is==\\\"function\\\"?Object.is:Td;function da(t,l){if(Lt(t,l))return!0;if(typeof t!=\\\"object\\\"||t===null||typeof l!=\\\"object\\\"||l===null)return!1;var e=Object.keys(t),n=Object.keys(l);if(e.length!==n.length)return!1;for(n=0;n<e.length;n++){var a=e[n];if(!wc.call(l,a)||!Lt(t[a],l[a]))return!1}return!0}function Zo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vo(t,l){var e=Zo(t);t=0;for(var n;e;){if(e.nodeType===3){if(n=t+e.textContent.length,t<=l&&n>=l)return{node:e,offset:l-t};t=n}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=Zo(e)}}function Bs(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?Bs(t,l.parentNode):\\\"contains\\\"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function Ms(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Ru(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href==\\\"string\\\"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Ru(t.document)}return l}function wf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l===\\\"input\\\"&&(t.type===\\\"text\\\"||t.type===\\\"search\\\"||t.type===\\\"tel\\\"||t.type===\\\"url\\\"||t.type===\\\"password\\\")||l===\\\"textarea\\\"||t.contentEditable===\\\"true\\\")}var Ad=Dl&&\\\"documentMode\\\"in document&&11>=document.documentMode,nn=null,Lc=null,la=null,jc=!1;function Ko(t,l,e){var n=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;jc||nn==null||nn!==Ru(n)||(n=nn,\\\"selectionStart\\\"in n&&wf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),la&&da(la,n)||(la=n,n=$u(Lc,\\\"onSelect\\\"),0<n.length&&(l=new ui(\\\"onSelect\\\",\\\"select\\\",null,l,e),t.push({event:l,listeners:n}),l.target=nn)))}function ve(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e[\\\"Webkit\\\"+t]=\\\"webkit\\\"+l,e[\\\"Moz\\\"+t]=\\\"moz\\\"+l,e}var an={animationend:ve(\\\"Animation\\\",\\\"AnimationEnd\\\"),animationiteration:ve(\\\"Animation\\\",\\\"AnimationIteration\\\"),animationstart:ve(\\\"Animation\\\",\\\"AnimationStart\\\"),transitionrun:ve(\\\"Transition\\\",\\\"TransitionRun\\\"),transitionstart:ve(\\\"Transition\\\",\\\"TransitionStart\\\"),transitioncancel:ve(\\\"Transition\\\",\\\"TransitionCancel\\\"),transitionend:ve(\\\"Transition\\\",\\\"TransitionEnd\\\")},uc={},Us={};Dl&&(Us=document.createElement(\\\"div\\\").style,\\\"AnimationEvent\\\"in window||(delete an.animationend.animation,delete an.animationiteration.animation,delete an.animationstart.animation),\\\"TransitionEvent\\\"in window||delete an.transitionend.transition);function Ce(t){if(uc[t])return uc[t];if(!an[t])return t;var l=an[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in Us)return uc[t]=l[e];return t}var Os=Ce(\\\"animationend\\\"),xs=Ce(\\\"animationiteration\\\"),Ds=Ce(\\\"animationstart\\\"),Nd=Ce(\\\"transitionrun\\\"),zd=Ce(\\\"transitionstart\\\"),_d=Ce(\\\"transitioncancel\\\"),Rs=Ce(\\\"transitionend\\\"),Cs=new Map,Zc=\\\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\\\".split(\\\" \\\");Zc.push(\\\"scrollEnd\\\");function il(t,l){Cs.set(t,l),De(l,[t])}var Cu=typeof reportError==\\\"function\\\"?reportError:function(t){if(typeof window==\\\"object\\\"&&typeof window.ErrorEvent==\\\"function\\\"){var l=new window.ErrorEvent(\\\"error\\\",{bubbles:!0,cancelable:!0,message:typeof t==\\\"object\\\"&&t!==null&&typeof t.message==\\\"string\\\"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process==\\\"object\\\"&&typeof process.emit==\\\"function\\\"){process.emit(\\\"uncaughtException\\\",t);return}console.error(t)},Kt=[],un=0,Hf=0;function fi(){for(var t=un,l=Hf=un=0;l<t;){var e=Kt[l];Kt[l++]=null;var n=Kt[l];Kt[l++]=null;var a=Kt[l];Kt[l++]=null;var u=Kt[l];if(Kt[l++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}u!==0&&ws(e,a,u)}}function ri(t,l,e,n){Kt[un++]=t,Kt[un++]=l,Kt[un++]=e,Kt[un++]=n,Hf|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function qf(t,l,e,n){return ri(t,l,e,n),wu(t)}function we(t,l){return ri(t,null,null,l),wu(t)}function ws(t,l,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e);for(var a=!1,u=t.return;u!==null;)u.childLanes|=e,n=u.alternate,n!==null&&(n.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&l!==null&&(a=31-Xt(e),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[l]:n.push(l),l.lane=e|536870912),u):null}function wu(t){if(50<oa)throw oa=0,hf=null,Error(S(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var cn={};function Bd(t,l,e,n){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(t,l,e,n){return new Bd(t,l,e,n)}function Yf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ul(t,l){var e=t.alternate;return e===null?(e=Ht(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function Hs(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function pu(t,l,e,n,a,u){var i=0;if(n=t,typeof t==\\\"function\\\")Yf(t)&&(i=1);else if(typeof t==\\\"string\\\")i=Og(t,e,yl.current)?26:t===\\\"html\\\"||t===\\\"head\\\"||t===\\\"body\\\"?27:5;else t:switch(t){case xc:return t=Ht(31,e,l,a),t.elementType=xc,t.lanes=u,t;case Ie:return Ae(e.children,a,u,l);case ls:i=8,a|=24;break;case Mc:return t=Ht(12,e,l,a|2),t.elementType=Mc,t.lanes=u,t;case Uc:return t=Ht(13,e,l,a),t.elementType=Uc,t.lanes=u,t;case Oc:return t=Ht(19,e,l,a),t.elementType=Oc,t.lanes=u,t;default:if(typeof t==\\\"object\\\"&&t!==null)switch(t.$$typeof){case _l:i=10;break t;case es:i=9;break t;case Nf:i=11;break t;case zf:i=14;break t;case Ll:i=16,n=null;break t}i=29,e=Error(S(130,t===null?\\\"null\\\":typeof t,\\\"\\\")),n=null}return l=Ht(i,e,l,a),l.elementType=t,l.type=n,l.lanes=u,l}function Ae(t,l,e,n){return t=Ht(7,t,n,l),t.lanes=e,t}function ic(t,l,e){return t=Ht(6,t,null,l),t.lanes=e,t}function qs(t){var l=Ht(18,null,null,0);return l.stateNode=t,l}function cc(t,l,e){return l=Ht(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var Jo=new WeakMap;function $t(t,l){if(typeof t==\\\"object\\\"&&t!==null){var e=Jo.get(t);return e!==void 0?e:(l={value:t,source:l,stack:Mo(l)},Jo.set(t,l),l)}return{value:t,source:l,stack:Mo(l)}}var fn=[],rn=0,Hu=null,ga=0,Ft=[],Wt=0,fe=null,ol=1,sl=\\\"\\\";function Nl(t,l){fn[rn++]=ga,fn[rn++]=Hu,Hu=t,ga=l}function Ys(t,l,e){Ft[Wt++]=ol,Ft[Wt++]=sl,Ft[Wt++]=fe,fe=t;var n=ol;t=sl;var a=32-Xt(n)-1;n&=~(1<<a),e+=1;var u=32-Xt(l)+a;if(30<u){var i=a-a%5;u=(n&(1<<i)-1).toString(32),n>>=i,a-=i,ol=1<<32-Xt(l)+a|e<<a|n,sl=u+t}else ol=1<<u|e<<a|n,sl=t}function Gf(t){t.return!==null&&(Nl(t,1),Ys(t,1,0))}function Xf(t){for(;t===Hu;)Hu=fn[--rn],fn[rn]=null,ga=fn[--rn],fn[rn]=null;for(;t===fe;)fe=Ft[--Wt],Ft[Wt]=null,sl=Ft[--Wt],Ft[Wt]=null,ol=Ft[--Wt],Ft[Wt]=null}function Gs(t,l){Ft[Wt++]=ol,Ft[Wt++]=sl,Ft[Wt++]=fe,ol=l.id,sl=l.overflow,fe=t}var mt=null,F=null,H=!1,te=null,It=!1,Vc=Error(S(519));function re(t){var l=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\\\"text\\\":\\\"HTML\\\",\\\"\\\"));throw va($t(l,t)),Vc}function Fo(t){var l=t.stateNode,e=t.type,n=t.memoizedProps;switch(l[yt]=t,l[Ut]=n,e){case\\\"dialog\\\":x(\\\"cancel\\\",l),x(\\\"close\\\",l);break;case\\\"iframe\\\":case\\\"object\\\":case\\\"embed\\\":x(\\\"load\\\",l);break;case\\\"video\\\":case\\\"audio\\\":for(e=0;e<ba.length;e++)x(ba[e],l);break;case\\\"source\\\":x(\\\"error\\\",l);break;case\\\"img\\\":case\\\"image\\\":case\\\"link\\\":x(\\\"error\\\",l),x(\\\"load\\\",l);break;case\\\"details\\\":x(\\\"toggle\\\",l);break;case\\\"input\\\":x(\\\"invalid\\\",l),ds(l,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case\\\"select\\\":x(\\\"invalid\\\",l);break;case\\\"textarea\\\":x(\\\"invalid\\\",l),vs(l,n.value,n.defaultValue,n.children)}e=n.children,typeof e!=\\\"string\\\"&&typeof e!=\\\"number\\\"&&typeof e!=\\\"bigint\\\"||l.textContent===\\\"\\\"+e||n.suppressHydrationWarning===!0||bh(l.textContent,e)?(n.popover!=null&&(x(\\\"beforetoggle\\\",l),x(\\\"toggle\\\",l)),n.onScroll!=null&&x(\\\"scroll\\\",l),n.onScrollEnd!=null&&x(\\\"scrollend\\\",l),n.onClick!=null&&(l.onclick=Bl),l=!0):l=!1,l||re(t,!0)}function Wo(t){for(mt=t.return;mt;)switch(mt.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:mt=mt.return}}function Fe(t){if(t!==mt)return!1;if(!H)return Wo(t),H=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!==\\\"form\\\"&&e!==\\\"button\\\")||vf(t.type,t.memoizedProps)),e=!e),e&&F&&re(t),Wo(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));F=q0(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));F=q0(t)}else l===27?(l=F,ye(t.type)?(t=bf,bf=null,F=t):F=l):F=mt?tl(t.stateNode.nextSibling):null;return!0}function Be(){F=mt=null,H=!1}function fc(){var t=te;return t!==null&&(Bt===null?Bt=t:Bt.push.apply(Bt,t),te=null),t}function va(t){te===null?te=[t]:te.push(t)}var Kc=ml(null),He=null,Ml=null;function Zl(t,l,e){V(Kc,l._currentValue),l._currentValue=e}function Ol(t){t._currentValue=Kc.current,st(Kc)}function Jc(t,l,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,n!==null&&(n.childLanes|=l)):n!==null&&(n.childLanes&l)!==l&&(n.childLanes|=l),t===e)break;t=t.return}}function Fc(t,l,e,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=a;for(var f=0;f<l.length;f++)if(c.context===l[f]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),Jc(u.return,e,t),n||(i=null);break t}u=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(S(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Jc(i,e,t),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function xn(t,l,e,n){t=null;for(var a=l,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(S(387));if(i=i.memoizedProps,i!==null){var c=a.type;Lt(a.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(a===Uu.current){if(i=a.alternate,i===null)throw Error(S(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Aa):t=[Aa])}a=a.return}t!==null&&Fc(l,t,e,n),l.flags|=262144}function qu(t){for(t=t.firstContext;t!==null;){if(!Lt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Me(t){He=t,Ml=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function dt(t){return Xs(He,t)}function au(t,l){return He===null&&Me(t),Xs(t,l)}function Xs(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Ml===null){if(t===null)throw Error(S(308));Ml=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Ml=Ml.next=l;return e}var Md=typeof AbortController<\\\"u\\\"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,n){t.push(n)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Ud=ct.unstable_scheduleCallback,Od=ct.unstable_NormalPriority,at={$$typeof:_l,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qf(){return{controller:new Md,data:new Map,refCount:0}}function Da(t){t.refCount--,t.refCount===0&&Ud(Od,function(){t.controller.abort()})}var ea=null,Wc=0,bn=0,mn=null;function xd(t,l){if(ea===null){var e=ea=[];Wc=0,bn=hr(),mn={status:\\\"pending\\\",value:void 0,then:function(n){e.push(n)}}}return Wc++,l.then(ko,ko),l}function ko(){if(--Wc===0&&ea!==null){mn!==null&&(mn.status=\\\"fulfilled\\\");var t=ea;ea=null,bn=0,mn=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function Dd(t,l){var e=[],n={status:\\\"pending\\\",value:null,reason:null,then:function(a){e.push(a)}};return t.then(function(){n.status=\\\"fulfilled\\\",n.value=l;for(var a=0;a<e.length;a++)(0,e[a])(l)},function(a){for(n.status=\\\"rejected\\\",n.reason=a,a=0;a<e.length;a++)(0,e[a])(void 0)}),n}var $o=N.S;N.S=function(t,l){th=Yt(),typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\"&&xd(t,l),$o!==null&&$o(t,l)};var Ne=ml(null);function Lf(){var t=Ne.current;return t!==null?t:Z.pooledCache}function Su(t,l){l===null?V(Ne,Ne.current):V(Ne,l.pool)}function Qs(){var t=Lf();return t===null?null:{parent:at._currentValue,pool:t}}var Dn=Error(S(460)),jf=Error(S(474)),oi=Error(S(542)),Yu={then:function(){}};function Io(t){return t=t.status,t===\\\"fulfilled\\\"||t===\\\"rejected\\\"}function Ls(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(Bl,Bl),l=e),l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,t0(t),t;default:if(typeof l.status==\\\"string\\\")l.then(Bl,Bl);else{if(t=Z,t!==null&&100<t.shellSuspendCounter)throw Error(S(482));t=l,t.status=\\\"pending\\\",t.then(function(n){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"fulfilled\\\",a.value=n}},function(n){if(l.status===\\\"pending\\\"){var a=l;a.status=\\\"rejected\\\",a.reason=n}})}switch(l.status){case\\\"fulfilled\\\":return l.value;case\\\"rejected\\\":throw t=l.reason,t0(t),t}throw ze=l,Dn}}function Ee(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?(ze=e,Dn):e}}var ze=null;function Po(){if(ze===null)throw Error(S(459));var t=ze;return ze=null,t}function t0(t){if(t===Dn||t===oi)throw Error(S(483))}var dn=null,pa=0;function uu(t){var l=pa;return pa+=1,dn===null&&(dn=[]),Ls(dn,t,l)}function jn(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function iu(t,l){throw l.$$typeof===pm?Error(S(525)):(t=Object.prototype.toString.call(l),Error(S(31,t===\\\"[object Object]\\\"?\\\"object with keys {\\\"+Object.keys(l).join(\\\", \\\")+\\\"}\\\":t)))}function js(t){function l(s,o){if(t){var h=s.deletions;h===null?(s.deletions=[o],s.flags|=16):h.push(o)}}function e(s,o){if(!t)return null;for(;o!==null;)l(s,o),o=o.sibling;return null}function n(s){for(var o=new Map;s!==null;)s.key!==null?o.set(s.key,s):o.set(s.index,s),s=s.sibling;return o}function a(s,o){return s=Ul(s,o),s.index=0,s.sibling=null,s}function u(s,o,h){return s.index=h,t?(h=s.alternate,h!==null?(h=h.index,h<o?(s.flags|=67108866,o):h):(s.flags|=67108866,o)):(s.flags|=1048576,o)}function i(s){return t&&s.alternate===null&&(s.flags|=67108866),s}function c(s,o,h,p){return o===null||o.tag!==6?(o=ic(h,s.mode,p),o.return=s,o):(o=a(o,h),o.return=s,o)}function f(s,o,h,p){var A=h.type;return A===Ie?m(s,o,h.props.children,p,h.key):o!==null&&(o.elementType===A||typeof A==\\\"object\\\"&&A!==null&&A.$$typeof===Ll&&Ee(A)===o.type)?(o=a(o,h.props),jn(o,h),o.return=s,o):(o=pu(h.type,h.key,h.props,null,s.mode,p),jn(o,h),o.return=s,o)}function r(s,o,h,p){return o===null||o.tag!==4||o.stateNode.containerInfo!==h.containerInfo||o.stateNode.implementation!==h.implementation?(o=cc(h,s.mode,p),o.return=s,o):(o=a(o,h.children||[]),o.return=s,o)}function m(s,o,h,p,A){return o===null||o.tag!==7?(o=Ae(h,s.mode,p,A),o.return=s,o):(o=a(o,h),o.return=s,o)}function g(s,o,h){if(typeof o==\\\"string\\\"&&o!==\\\"\\\"||typeof o==\\\"number\\\"||typeof o==\\\"bigint\\\")return o=ic(\\\"\\\"+o,s.mode,h),o.return=s,o;if(typeof o==\\\"object\\\"&&o!==null){switch(o.$$typeof){case ka:return h=pu(o.type,o.key,o.props,null,s.mode,h),jn(h,o),h.return=s,h;case Fn:return o=cc(o,s.mode,h),o.return=s,o;case Ll:return o=Ee(o),g(s,o,h)}if(Wn(o)||Qn(o))return o=Ae(o,s.mode,h,null),o.return=s,o;if(typeof o.then==\\\"function\\\")return g(s,uu(o),h);if(o.$$typeof===_l)return g(s,au(s,o),h);iu(s,o)}return null}function d(s,o,h,p){var A=o!==null?o.key:null;if(typeof h==\\\"string\\\"&&h!==\\\"\\\"||typeof h==\\\"number\\\"||typeof h==\\\"bigint\\\")return A!==null?null:c(s,o,\\\"\\\"+h,p);if(typeof h==\\\"object\\\"&&h!==null){switch(h.$$typeof){case ka:return h.key===A?f(s,o,h,p):null;case Fn:return h.key===A?r(s,o,h,p):null;case Ll:return h=Ee(h),d(s,o,h,p)}if(Wn(h)||Qn(h))return A!==null?null:m(s,o,h,p,null);if(typeof h.then==\\\"function\\\")return d(s,o,uu(h),p);if(h.$$typeof===_l)return d(s,o,au(s,h),p);iu(s,h)}return null}function y(s,o,h,p,A){if(typeof p==\\\"string\\\"&&p!==\\\"\\\"||typeof p==\\\"number\\\"||typeof p==\\\"bigint\\\")return s=s.get(h)||null,c(o,s,\\\"\\\"+p,A);if(typeof p==\\\"object\\\"&&p!==null){switch(p.$$typeof){case ka:return s=s.get(p.key===null?h:p.key)||null,f(o,s,p,A);case Fn:return s=s.get(p.key===null?h:p.key)||null,r(o,s,p,A);case Ll:return p=Ee(p),y(s,o,h,p,A)}if(Wn(p)||Qn(p))return s=s.get(h)||null,m(o,s,p,A,null);if(typeof p.then==\\\"function\\\")return y(s,o,h,uu(p),A);if(p.$$typeof===_l)return y(s,o,h,au(o,p),A);iu(o,p)}return null}function E(s,o,h,p){for(var A=null,R=null,T=o,_=o=0,U=null;T!==null&&_<h.length;_++){T.index>_?(U=T,T=null):U=T.sibling;var C=d(s,T,h[_],p);if(C===null){T===null&&(T=U);break}t&&T&&C.alternate===null&&l(s,T),o=u(C,o,_),R===null?A=C:R.sibling=C,R=C,T=U}if(_===h.length)return e(s,T),H&&Nl(s,_),A;if(T===null){for(;_<h.length;_++)T=g(s,h[_],p),T!==null&&(o=u(T,o,_),R===null?A=T:R.sibling=T,R=T);return H&&Nl(s,_),A}for(T=n(T);_<h.length;_++)U=y(T,s,_,h[_],p),U!==null&&(t&&U.alternate!==null&&T.delete(U.key===null?_:U.key),o=u(U,o,_),R===null?A=U:R.sibling=U,R=U);return t&&T.forEach(function(nl){return l(s,nl)}),H&&Nl(s,_),A}function b(s,o,h,p){if(h==null)throw Error(S(151));for(var A=null,R=null,T=o,_=o=0,U=null,C=h.next();T!==null&&!C.done;_++,C=h.next()){T.index>_?(U=T,T=null):U=T.sibling;var nl=d(s,T,C.value,p);if(nl===null){T===null&&(T=U);break}t&&T&&nl.alternate===null&&l(s,T),o=u(nl,o,_),R===null?A=nl:R.sibling=nl,R=nl,T=U}if(C.done)return e(s,T),H&&Nl(s,_),A;if(T===null){for(;!C.done;_++,C=h.next())C=g(s,C.value,p),C!==null&&(o=u(C,o,_),R===null?A=C:R.sibling=C,R=C);return H&&Nl(s,_),A}for(T=n(T);!C.done;_++,C=h.next())C=y(T,s,_,C.value,p),C!==null&&(t&&C.alternate!==null&&T.delete(C.key===null?_:C.key),o=u(C,o,_),R===null?A=C:R.sibling=C,R=C);return t&&T.forEach(function(Ti){return l(s,Ti)}),H&&Nl(s,_),A}function q(s,o,h,p){if(typeof h==\\\"object\\\"&&h!==null&&h.type===Ie&&h.key===null&&(h=h.props.children),typeof h==\\\"object\\\"&&h!==null){switch(h.$$typeof){case ka:t:{for(var A=h.key;o!==null;){if(o.key===A){if(A=h.type,A===Ie){if(o.tag===7){e(s,o.sibling),p=a(o,h.props.children),p.return=s,s=p;break t}}else if(o.elementType===A||typeof A==\\\"object\\\"&&A!==null&&A.$$typeof===Ll&&Ee(A)===o.type){e(s,o.sibling),p=a(o,h.props),jn(p,h),p.return=s,s=p;break t}e(s,o);break}else l(s,o);o=o.sibling}h.type===Ie?(p=Ae(h.props.children,s.mode,p,h.key),p.return=s,s=p):(p=pu(h.type,h.key,h.props,null,s.mode,p),jn(p,h),p.return=s,s=p)}return i(s);case Fn:t:{for(A=h.key;o!==null;){if(o.key===A)if(o.tag===4&&o.stateNode.containerInfo===h.containerInfo&&o.stateNode.implementation===h.implementation){e(s,o.sibling),p=a(o,h.children||[]),p.return=s,s=p;break t}else{e(s,o);break}else l(s,o);o=o.sibling}p=cc(h,s.mode,p),p.return=s,s=p}return i(s);case Ll:return h=Ee(h),q(s,o,h,p)}if(Wn(h))return E(s,o,h,p);if(Qn(h)){if(A=Qn(h),typeof A!=\\\"function\\\")throw Error(S(150));return h=A.call(h),b(s,o,h,p)}if(typeof h.then==\\\"function\\\")return q(s,o,uu(h),p);if(h.$$typeof===_l)return q(s,o,au(s,h),p);iu(s,h)}return typeof h==\\\"string\\\"&&h!==\\\"\\\"||typeof h==\\\"number\\\"||typeof h==\\\"bigint\\\"?(h=\\\"\\\"+h,o!==null&&o.tag===6?(e(s,o.sibling),p=a(o,h),p.return=s,s=p):(e(s,o),p=ic(h,s.mode,p),p.return=s,s=p),i(s)):e(s,o)}return function(s,o,h,p){try{pa=0;var A=q(s,o,h,p);return dn=null,A}catch(T){if(T===Dn||T===oi)throw T;var R=Ht(29,T,null,s.mode);return R.lanes=p,R.return=s,R}}}var Ue=js(!0),Zs=js(!1),jl=!1;function Zf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function le(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ee(t,l,e){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Y&2)!==0){var a=n.pending;return a===null?l.next=l:(l.next=a.next,a.next=l),n.pending=l,l=wu(t),ws(t,null,e),l}return ri(t,n,l,e),wu(t)}function na(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var n=l.lanes;n&=t.pendingLanes,e|=n,l.lanes=e,fs(t,e)}}function rc(t,l){var e=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,e===n)){var a=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?a=u=l:u=u.next=l}else a=u=l;e={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var $c=!1;function aa(){if($c){var t=mn;if(t!==null)throw t}}function ua(t,l,e,n){$c=!1;var a=t.updateQueue;jl=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var f=c,r=f.next;f.next=null,i===null?u=r:i.next=r,i=f;var m=t.alternate;m!==null&&(m=m.updateQueue,c=m.lastBaseUpdate,c!==i&&(c===null?m.firstBaseUpdate=r:c.next=r,m.lastBaseUpdate=f))}if(u!==null){var g=a.baseState;i=0,m=r=f=null,c=u;do{var d=c.lane&-536870913,y=d!==c.lane;if(y?(w&d)===d:(n&d)===d){d!==0&&d===bn&&($c=!0),m!==null&&(m=m.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var E=t,b=c;d=l;var q=e;switch(b.tag){case 1:if(E=b.payload,typeof E==\\\"function\\\"){g=E.call(q,g,d);break t}g=E;break t;case 3:E.flags=E.flags&-65537|128;case 0:if(E=b.payload,d=typeof E==\\\"function\\\"?E.call(q,g,d):E,d==null)break t;g=W({},g,d);break t;case 2:jl=!0}}d=c.callback,d!==null&&(t.flags|=64,y&&(t.flags|=8192),y=a.callbacks,y===null?a.callbacks=[d]:y.push(d))}else y={lane:d,tag:c.tag,payload:c.payload,callback:c.callback,next:null},m===null?(r=m=y,f=g):m=m.next=y,i|=d;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;y=c,c=y.next,y.next=null,a.lastBaseUpdate=y,a.shared.pending=null}}while(!0);m===null&&(f=g),a.baseState=f,a.firstBaseUpdate=r,a.lastBaseUpdate=m,u===null&&(a.shared.lanes=0),se|=i,t.lanes=i,t.memoizedState=g}}function Vs(t,l){if(typeof t!=\\\"function\\\")throw Error(S(191,t));t.call(l)}function Ks(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)Vs(e[t],l)}var Tn=ml(null),Gu=ml(0);function l0(t,l){t=Hl,V(Gu,t),V(Tn,l),Hl=t|l.baseLanes}function Ic(){V(Gu,Hl),V(Tn,Tn.current)}function Vf(){Hl=Gu.current,st(Tn),st(Gu)}var jt=ml(null),Pt=null;function Vl(t){var l=t.alternate;V(tt,tt.current&1),V(jt,t),Pt===null&&(l===null||Tn.current!==null||l.memoizedState!==null)&&(Pt=t)}function Pc(t){V(tt,tt.current),V(jt,t),Pt===null&&(Pt=t)}function Js(t){t.tag===22?(V(tt,tt.current),V(jt,t),Pt===null&&(Pt=t)):Kl(t)}function Kl(){V(tt,tt.current),V(jt,jt.current)}function wt(t){st(jt),Pt===t&&(Pt=null),st(tt)}var tt=ml(0);function Xu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||Sf(e)||Ef(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder===\\\"forwards\\\"||l.memoizedProps.revealOrder===\\\"backwards\\\"||l.memoizedProps.revealOrder===\\\"unstable_legacy-backwards\\\"||l.memoizedProps.revealOrder===\\\"together\\\")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Rl=0,M=null,j=null,et=null,Qu=!1,gn=!1,Oe=!1,Lu=0,Sa=0,vn=null,Rd=0;function I(){throw Error(S(321))}function Kf(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!Lt(t[e],l[e]))return!1;return!0}function Jf(t,l,e,n,a,u){return Rl=u,M=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,N.H=t===null||t.memoizedState===null?N1:ar,Oe=!1,u=e(n,a),Oe=!1,gn&&(u=Ws(l,e,n,a)),Fs(t),u}function Fs(t){N.H=Ea;var l=j!==null&&j.next!==null;if(Rl=0,et=j=M=null,Qu=!1,Sa=0,vn=null,l)throw Error(S(300));t===null||ut||(t=t.dependencies,t!==null&&qu(t)&&(ut=!0))}function Ws(t,l,e,n){M=t;var a=0;do{if(gn&&(vn=null),Sa=0,gn=!1,25<=a)throw Error(S(301));if(a+=1,et=j=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=z1,u=l(e,n)}while(gn);return u}function Cd(){var t=N.H,l=t.useState()[0];return l=typeof l.then==\\\"function\\\"?Ra(l):l,t=t.useState()[0],(j!==null?j.memoizedState:null)!==t&&(M.flags|=1024),l}function Ff(){var t=Lu!==0;return Lu=0,t}function Wf(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function kf(t){if(Qu){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}Qu=!1}Rl=0,et=j=M=null,gn=!1,Sa=Lu=0,vn=null}function Et(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?M.memoizedState=et=t:et=et.next=t,et}function lt(){if(j===null){var t=M.alternate;t=t!==null?t.memoizedState:null}else t=j.next;var l=et===null?M.memoizedState:et.next;if(l!==null)et=l,j=t;else{if(t===null)throw M.alternate===null?Error(S(467)):Error(S(310));j=t,t={memoizedState:j.memoizedState,baseState:j.baseState,baseQueue:j.baseQueue,queue:j.queue,next:null},et===null?M.memoizedState=et=t:et=et.next=t}return et}function si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ra(t){var l=Sa;return Sa+=1,vn===null&&(vn=[]),t=Ls(vn,t,l),l=M,(et===null?l.memoizedState:et.next)===null&&(l=l.alternate,N.H=l===null||l.memoizedState===null?N1:ar),t}function hi(t){if(t!==null&&typeof t==\\\"object\\\"){if(typeof t.then==\\\"function\\\")return Ra(t);if(t.$$typeof===_l)return dt(t)}throw Error(S(438,String(t)))}function $f(t){var l=null,e=M.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var n=M.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(l={data:n.data.map(function(a){return a.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=si(),M.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),n=0;n<t;n++)e[n]=Sm;return l.index++,e}function Cl(t,l){return typeof l==\\\"function\\\"?l(t):l}function Eu(t){var l=lt();return If(l,j,t)}function If(t,l,e){var n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}l.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{l=a.next;var c=i=null,f=null,r=l,m=!1;do{var g=r.lane&-536870913;if(g!==r.lane?(w&g)===g:(Rl&g)===g){var d=r.revertLane;if(d===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null}),g===bn&&(m=!0);else if((Rl&d)===d){r=r.next,d===bn&&(m=!0);continue}else g={lane:0,revertLane:r.revertLane,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=g,i=u):f=f.next=g,M.lanes|=d,se|=d;g=r.action,Oe&&e(u,g),u=r.hasEagerState?r.eagerState:e(u,g)}else d={lane:g,revertLane:r.revertLane,gesture:r.gesture,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},f===null?(c=f=d,i=u):f=f.next=d,M.lanes|=g,se|=g;r=r.next}while(r!==null&&r!==l);if(f===null?i=u:f.next=c,!Lt(u,t.memoizedState)&&(ut=!0,m&&(e=mn,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=f,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function oc(t){var l=lt(),e=l.queue;if(e===null)throw Error(S(311));e.lastRenderedReducer=t;var n=e.dispatch,a=e.pending,u=l.memoizedState;if(a!==null){e.pending=null;var i=a=a.next;do u=t(u,i.action),i=i.next;while(i!==a);Lt(u,l.memoizedState)||(ut=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,n]}function ks(t,l,e){var n=M,a=lt(),u=H;if(u){if(e===void 0)throw Error(S(407));e=e()}else e=l();var i=!Lt((j||a).memoizedState,e);if(i&&(a.memoizedState=e,ut=!0),a=a.queue,Pf(Ps.bind(null,n,a,t),[t]),a.getSnapshot!==l||i||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,An(9,{destroy:void 0},Is.bind(null,n,a,e,l),null),Z===null)throw Error(S(349));u||(Rl&127)!==0||$s(n,l,e)}return e}function $s(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=M.updateQueue,l===null?(l=si(),M.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function Is(t,l,e,n){l.value=e,l.getSnapshot=n,t1(l)&&l1(t)}function Ps(t,l,e){return e(function(){t1(l)&&l1(t)})}function t1(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!Lt(t,e)}catch{return!0}}function l1(t){var l=we(t,2);l!==null&&Mt(l,t,2)}function tf(t){var l=Et();if(typeof t==\\\"function\\\"){var e=t;if(t=e(),Oe){Fl(!0);try{e()}finally{Fl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:t},l}function e1(t,l,e,n){return t.baseState=e,If(t,j,typeof n==\\\"function\\\"?n:Cl)}function wd(t,l,e,n,a){if(mi(t))throw Error(S(485));if(t=l.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:\\\"pending\\\",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};N.T!==null?e(!0):u.isTransition=!1,n(u),e=l.pending,e===null?(u.next=l.pending=u,n1(l,u)):(u.next=e.next,l.pending=e.next=u)}}function n1(t,l){var e=l.action,n=l.payload,a=t.state;if(l.isTransition){var u=N.T,i={};N.T=i;try{var c=e(a,n),f=N.S;f!==null&&f(i,c),e0(t,l,c)}catch(r){lf(t,l,r)}finally{u!==null&&i.types!==null&&(u.types=i.types),N.T=u}}else try{u=e(a,n),e0(t,l,u)}catch(r){lf(t,l,r)}}function e0(t,l,e){e!==null&&typeof e==\\\"object\\\"&&typeof e.then==\\\"function\\\"?e.then(function(n){n0(t,l,n)},function(n){return lf(t,l,n)}):n0(t,l,e)}function n0(t,l,e){l.status=\\\"fulfilled\\\",l.value=e,a1(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,n1(t,e)))}function lf(t,l,e){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do l.status=\\\"rejected\\\",l.reason=e,a1(l),l=l.next;while(l!==n)}t.action=null}function a1(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function u1(t,l){return l}function a0(t,l){if(H){var e=Z.formState;if(e!==null){t:{var n=M;if(H){if(F){l:{for(var a=F,u=It;a.nodeType!==8;){if(!u){a=null;break l}if(a=tl(a.nextSibling),a===null){a=null;break l}}u=a.data,a=u===\\\"F!\\\"||u===\\\"F\\\"?a:null}if(a){F=tl(a.nextSibling),n=a.data===\\\"F!\\\";break t}}re(n)}n=!1}n&&(l=e[0])}}return e=Et(),e.memoizedState=e.baseState=l,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u1,lastRenderedState:l},e.queue=n,e=b1.bind(null,M,n),n.dispatch=e,n=tf(!1),u=nr.bind(null,M,!1,n.queue),n=Et(),a={state:l,dispatch:null,action:t,pending:null},n.queue=a,e=wd.bind(null,M,a,u,e),a.dispatch=e,n.memoizedState=t,[l,e,!1]}function u0(t){var l=lt();return i1(l,j,t)}function i1(t,l,e){if(l=If(t,l,u1)[0],t=Eu(Cl)[0],typeof l==\\\"object\\\"&&l!==null&&typeof l.then==\\\"function\\\")try{var n=Ra(l)}catch(i){throw i===Dn?oi:i}else n=l;l=lt();var a=l.queue,u=a.dispatch;return e!==l.memoizedState&&(M.flags|=2048,An(9,{destroy:void 0},Hd.bind(null,a,e),null)),[n,u,t]}function Hd(t,l){t.action=l}function i0(t){var l=lt(),e=j;if(e!==null)return i1(l,e,t);lt(),l=l.memoizedState,e=lt();var n=e.queue.dispatch;return e.memoizedState=t,[l,n,!1]}function An(t,l,e,n){return t={tag:t,create:e,deps:n,inst:l,next:null},l=M.updateQueue,l===null&&(l=si(),M.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(n=e.next,e.next=t,t.next=n,l.lastEffect=t),t}function c1(){return lt().memoizedState}function bu(t,l,e,n){var a=Et();M.flags|=t,a.memoizedState=An(1|l,{destroy:void 0},e,n===void 0?null:n)}function yi(t,l,e,n){var a=lt();n=n===void 0?null:n;var u=a.memoizedState.inst;j!==null&&n!==null&&Kf(n,j.memoizedState.deps)?a.memoizedState=An(l,u,e,n):(M.flags|=t,a.memoizedState=An(1|l,u,e,n))}function c0(t,l){bu(8390656,8,t,l)}function Pf(t,l){yi(2048,8,t,l)}function qd(t){M.flags|=4;var l=M.updateQueue;if(l===null)l=si(),M.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function f1(t){var l=lt().memoizedState;return qd({ref:l,nextImpl:t}),function(){if((Y&2)!==0)throw Error(S(440));return l.impl.apply(void 0,arguments)}}function r1(t,l){return yi(4,2,t,l)}function o1(t,l){return yi(4,4,t,l)}function s1(t,l){if(typeof l==\\\"function\\\"){t=t();var e=l(t);return function(){typeof e==\\\"function\\\"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function h1(t,l,e){e=e!=null?e.concat([t]):null,yi(4,4,s1.bind(null,l,t),e)}function tr(){}function y1(t,l){var e=lt();l=l===void 0?null:l;var n=e.memoizedState;return l!==null&&Kf(l,n[1])?n[0]:(e.memoizedState=[t,l],t)}function m1(t,l){var e=lt();l=l===void 0?null:l;var n=e.memoizedState;if(l!==null&&Kf(l,n[1]))return n[0];if(n=t(),Oe){Fl(!0);try{t()}finally{Fl(!1)}}return e.memoizedState=[n,l],n}function lr(t,l,e){return e===void 0||(Rl&1073741824)!==0&&(w&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=eh(),M.lanes|=t,se|=t,e)}function d1(t,l,e,n){return Lt(e,l)?e:Tn.current!==null?(t=lr(t,e,n),Lt(t,l)||(ut=!0),t):(Rl&42)===0||(Rl&1073741824)!==0&&(w&261930)===0?(ut=!0,t.memoizedState=e):(t=eh(),M.lanes|=t,se|=t,l)}function g1(t,l,e,n,a){var u=G.p;G.p=u!==0&&8>u?u:8;var i=N.T,c={};N.T=c,nr(t,!1,l,e);try{var f=a(),r=N.S;if(r!==null&&r(c,f),f!==null&&typeof f==\\\"object\\\"&&typeof f.then==\\\"function\\\"){var m=Dd(f,n);ia(t,l,m,Qt(t))}else ia(t,l,n,Qt(t))}catch(g){ia(t,l,{then:function(){},status:\\\"rejected\\\",reason:g},Qt())}finally{G.p=u,i!==null&&c.types!==null&&(i.types=c.types),N.T=i}}function Yd(){}function ef(t,l,e,n){if(t.tag!==5)throw Error(S(476));var a=v1(t).queue;g1(t,a,l,Te,e===null?Yd:function(){return p1(t),e(n)})}function v1(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:Te},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function p1(t){var l=v1(t);l.next===null&&(l=t.alternate.memoizedState),ia(t,l.next.queue,{},Qt())}function er(){return dt(Aa)}function S1(){return lt().memoizedState}function E1(){return lt().memoizedState}function Gd(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=Qt();t=le(e);var n=ee(l,t,e);n!==null&&(Mt(n,l,e),na(n,l,e)),l={cache:Qf()},t.payload=l;return}l=l.return}}function Xd(t,l,e){var n=Qt();e={lane:n,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},mi(t)?T1(l,e):(e=qf(t,l,e,n),e!==null&&(Mt(e,t,n),A1(e,l,n)))}function b1(t,l,e){var n=Qt();ia(t,l,e,n)}function ia(t,l,e,n){var a={lane:n,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(mi(t))T1(l,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,e);if(a.hasEagerState=!0,a.eagerState=c,Lt(c,i))return ri(t,l,a,0),Z===null&&fi(),!1}catch{}if(e=qf(t,l,a,n),e!==null)return Mt(e,t,n),A1(e,l,n),!0}return!1}function nr(t,l,e,n){if(n={lane:2,revertLane:hr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mi(t)){if(l)throw Error(S(479))}else l=qf(t,e,n,2),l!==null&&Mt(l,t,2)}function mi(t){var l=t.alternate;return t===M||l!==null&&l===M}function T1(t,l){gn=Qu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function A1(t,l,e){if((e&4194048)!==0){var n=l.lanes;n&=t.pendingLanes,e|=n,l.lanes=e,fs(t,e)}}var Ea={readContext:dt,use:hi,useCallback:I,useContext:I,useEffect:I,useImperativeHandle:I,useLayoutEffect:I,useInsertionEffect:I,useMemo:I,useReducer:I,useRef:I,useState:I,useDebugValue:I,useDeferredValue:I,useTransition:I,useSyncExternalStore:I,useId:I,useHostTransitionStatus:I,useFormState:I,useActionState:I,useOptimistic:I,useMemoCache:I,useCacheRefresh:I};Ea.useEffectEvent=I;var N1={readContext:dt,use:hi,useCallback:function(t,l){return Et().memoizedState=[t,l===void 0?null:l],t},useContext:dt,useEffect:c0,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,bu(4194308,4,s1.bind(null,l,t),e)},useLayoutEffect:function(t,l){return bu(4194308,4,t,l)},useInsertionEffect:function(t,l){bu(4,2,t,l)},useMemo:function(t,l){var e=Et();l=l===void 0?null:l;var n=t();if(Oe){Fl(!0);try{t()}finally{Fl(!1)}}return e.memoizedState=[n,l],n},useReducer:function(t,l,e){var n=Et();if(e!==void 0){var a=e(l);if(Oe){Fl(!0);try{e(l)}finally{Fl(!1)}}}else a=l;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Xd.bind(null,M,t),[n.memoizedState,t]},useRef:function(t){var l=Et();return t={current:t},l.memoizedState=t},useState:function(t){t=tf(t);var l=t.queue,e=b1.bind(null,M,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:tr,useDeferredValue:function(t,l){var e=Et();return lr(e,t,l)},useTransition:function(){var t=tf(!1);return t=g1.bind(null,M,t.queue,!0,!1),Et().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var n=M,a=Et();if(H){if(e===void 0)throw Error(S(407));e=e()}else{if(e=l(),Z===null)throw Error(S(349));(w&127)!==0||$s(n,l,e)}a.memoizedState=e;var u={value:e,getSnapshot:l};return a.queue=u,c0(Ps.bind(null,n,u,t),[t]),n.flags|=2048,An(9,{destroy:void 0},Is.bind(null,n,u,e,l),null),e},useId:function(){var t=Et(),l=Z.identifierPrefix;if(H){var e=sl,n=ol;e=(n&~(1<<32-Xt(n)-1)).toString(32)+e,l=\\\"_\\\"+l+\\\"R_\\\"+e,e=Lu++,0<e&&(l+=\\\"H\\\"+e.toString(32)),l+=\\\"_\\\"}else e=Rd++,l=\\\"_\\\"+l+\\\"r_\\\"+e.toString(32)+\\\"_\\\";return t.memoizedState=l},useHostTransitionStatus:er,useFormState:a0,useActionState:a0,useOptimistic:function(t){var l=Et();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=nr.bind(null,M,!0,e),e.dispatch=l,[t,l]},useMemoCache:$f,useCacheRefresh:function(){return Et().memoizedState=Gd.bind(null,M)},useEffectEvent:function(t){var l=Et(),e={impl:t};return l.memoizedState=e,function(){if((Y&2)!==0)throw Error(S(440));return e.impl.apply(void 0,arguments)}}},ar={readContext:dt,use:hi,useCallback:y1,useContext:dt,useEffect:Pf,useImperativeHandle:h1,useInsertionEffect:r1,useLayoutEffect:o1,useMemo:m1,useReducer:Eu,useRef:c1,useState:function(){return Eu(Cl)},useDebugValue:tr,useDeferredValue:function(t,l){var e=lt();return d1(e,j.memoizedState,t,l)},useTransition:function(){var t=Eu(Cl)[0],l=lt().memoizedState;return[typeof t==\\\"boolean\\\"?t:Ra(t),l]},useSyncExternalStore:ks,useId:S1,useHostTransitionStatus:er,useFormState:u0,useActionState:u0,useOptimistic:function(t,l){var e=lt();return e1(e,j,t,l)},useMemoCache:$f,useCacheRefresh:E1};ar.useEffectEvent=f1;var z1={readContext:dt,use:hi,useCallback:y1,useContext:dt,useEffect:Pf,useImperativeHandle:h1,useInsertionEffect:r1,useLayoutEffect:o1,useMemo:m1,useReducer:oc,useRef:c1,useState:function(){return oc(Cl)},useDebugValue:tr,useDeferredValue:function(t,l){var e=lt();return j===null?lr(e,t,l):d1(e,j.memoizedState,t,l)},useTransition:function(){var t=oc(Cl)[0],l=lt().memoizedState;return[typeof t==\\\"boolean\\\"?t:Ra(t),l]},useSyncExternalStore:ks,useId:S1,useHostTransitionStatus:er,useFormState:i0,useActionState:i0,useOptimistic:function(t,l){var e=lt();return j!==null?e1(e,j,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:$f,useCacheRefresh:E1};z1.useEffectEvent=f1;function sc(t,l,e,n){l=t.memoizedState,e=e(n,l),e=e==null?l:W({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var nf={enqueueSetState:function(t,l,e){t=t._reactInternals;var n=Qt(),a=le(n);a.payload=l,e!=null&&(a.callback=e),l=ee(t,a,n),l!==null&&(Mt(l,t,n),na(l,t,n))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var n=Qt(),a=le(n);a.tag=1,a.payload=l,e!=null&&(a.callback=e),l=ee(t,a,n),l!==null&&(Mt(l,t,n),na(l,t,n))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=Qt(),n=le(e);n.tag=2,l!=null&&(n.callback=l),l=ee(t,n,e),l!==null&&(Mt(l,t,e),na(l,t,e))}};function f0(t,l,e,n,a,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate==\\\"function\\\"?t.shouldComponentUpdate(n,u,i):l.prototype&&l.prototype.isPureReactComponent?!da(e,n)||!da(a,u):!0}function r0(t,l,e,n){t=l.state,typeof l.componentWillReceiveProps==\\\"function\\\"&&l.componentWillReceiveProps(e,n),typeof l.UNSAFE_componentWillReceiveProps==\\\"function\\\"&&l.UNSAFE_componentWillReceiveProps(e,n),l.state!==t&&nf.enqueueReplaceState(l,l.state,null)}function xe(t,l){var e=l;if(\\\"ref\\\"in l){e={};for(var n in l)n!==\\\"ref\\\"&&(e[n]=l[n])}if(t=t.defaultProps){e===l&&(e=W({},e));for(var a in t)e[a]===void 0&&(e[a]=t[a])}return e}function _1(t){Cu(t)}function B1(t){console.error(t)}function M1(t){Cu(t)}function ju(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(n){setTimeout(function(){throw n})}}function o0(t,l,e){try{var n=t.onCaughtError;n(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function af(t,l,e){return e=le(e),e.tag=3,e.payload={element:null},e.callback=function(){ju(t,l)},e}function U1(t){return t=le(t),t.tag=3,t}function O1(t,l,e,n){var a=e.type.getDerivedStateFromError;if(typeof a==\\\"function\\\"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){o0(l,e,n)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch==\\\"function\\\"&&(t.callback=function(){o0(l,e,n),typeof a!=\\\"function\\\"&&(ne===null?ne=new Set([this]):ne.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:\\\"\\\"})})}function Qd(t,l,e,n,a){if(e.flags|=32768,n!==null&&typeof n==\\\"object\\\"&&typeof n.then==\\\"function\\\"){if(l=e.alternate,l!==null&&xn(l,e,a,!0),e=jt.current,e!==null){switch(e.tag){case 31:case 13:return Pt===null?Fu():e.alternate===null&&P===0&&(P=3),e.flags&=-257,e.flags|=65536,e.lanes=a,n===Yu?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([n]):l.add(n),Tc(t,n,a)),!1;case 22:return e.flags|=65536,n===Yu?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([n])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([n]):e.add(n)),Tc(t,n,a)),!1}throw Error(S(435,e.tag))}return Tc(t,n,a),Fu(),!1}if(H)return l=jt.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=a,n!==Vc&&(t=Error(S(422),{cause:n}),va($t(t,e)))):(n!==Vc&&(l=Error(S(423),{cause:n}),va($t(l,e))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=$t(n,e),a=af(t.stateNode,n,a),rc(t,a),P!==4&&(P=2)),!1;var u=Error(S(520),{cause:n});if(u=$t(u,e),ra===null?ra=[u]:ra.push(u),P!==4&&(P=2),l===null)return!0;n=$t(n,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=a&-a,e.lanes|=t,t=af(e.stateNode,n,t),rc(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError==\\\"function\\\"||u!==null&&typeof u.componentDidCatch==\\\"function\\\"&&(ne===null||!ne.has(u))))return e.flags|=65536,a&=-a,e.lanes|=a,a=U1(a),O1(a,t,e,n),rc(e,a),!1}e=e.return}while(e!==null);return!1}var ur=Error(S(461)),ut=!1;function ht(t,l,e,n){l.child=t===null?Zs(l,null,e,n):Ue(l,t.child,e,n)}function s0(t,l,e,n,a){e=e.render;var u=l.ref;if(\\\"ref\\\"in n){var i={};for(var c in n)c!==\\\"ref\\\"&&(i[c]=n[c])}else i=n;return Me(l),n=Jf(t,l,e,i,u,a),c=Ff(),t!==null&&!ut?(Wf(t,l,a),wl(t,l,a)):(H&&c&&Gf(l),l.flags|=1,ht(t,l,n,a),l.child)}function h0(t,l,e,n,a){if(t===null){var u=e.type;return typeof u==\\\"function\\\"&&!Yf(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,x1(t,l,u,n,a)):(t=pu(e.type,null,n,l,l.mode,a),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!ir(t,a)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:da,e(i,n)&&t.ref===l.ref)return wl(t,l,a)}return l.flags|=1,t=Ul(u,n),t.ref=l.ref,t.return=l,l.child=t}function x1(t,l,e,n,a){if(t!==null){var u=t.memoizedProps;if(da(u,n)&&t.ref===l.ref)if(ut=!1,l.pendingProps=n=u,ir(t,a))(t.flags&131072)!==0&&(ut=!0);else return l.lanes=t.lanes,wl(t,l,a)}return uf(t,l,e,n,a)}function D1(t,l,e,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode===\\\"hidden\\\"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(n=l.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,l.child=null;return y0(t,l,u,e,n)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Su(l,u!==null?u.cachePool:null),u!==null?l0(l,u):Ic(),Js(l);else return n=l.lanes=536870912,y0(t,l,u!==null?u.baseLanes|e:e,e,n)}else u!==null?(Su(l,u.cachePool),l0(l,u),Kl(l),l.memoizedState=null):(t!==null&&Su(l,null),Ic(),Kl(l));return ht(t,l,a,e),l.child}function $n(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function y0(t,l,e,n,a){var u=Lf();return u=u===null?null:{parent:at._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&Su(l,null),Ic(),Js(l),t!==null&&xn(t,l,n,!0),l.childLanes=a,null}function Tu(t,l){return l=Zu({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function m0(t,l,e){return Ue(l,t.child,null,e),t=Tu(l,l.pendingProps),t.flags|=2,wt(l),l.memoizedState=null,t}function Ld(t,l,e){var n=l.pendingProps,a=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(H){if(n.mode===\\\"hidden\\\")return t=Tu(l,n),l.lanes=536870912,$n(null,t);if(Pc(l),(t=F)?(t=Nh(t,It),t=t!==null&&t.data===\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:fe!==null?{id:ol,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},e=qs(t),e.return=l,l.child=e,mt=l,F=null)):t=null,t===null)throw re(l);return l.lanes=536870912,null}return Tu(l,n)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Pc(l),a)if(l.flags&256)l.flags&=-257,l=m0(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(S(558));else if(ut||xn(t,l,e,!1),a=(e&t.childLanes)!==0,ut||a){if(n=Z,n!==null&&(i=rs(n,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,we(t,i),Mt(n,t,i),ur;Fu(),l=m0(t,l,e)}else t=u.treeContext,F=tl(i.nextSibling),mt=l,H=!0,te=null,It=!1,t!==null&&Gs(l,t),l=Tu(l,n),l.flags|=4096;return l}return t=Ul(t.child,{mode:n.mode,children:n.children}),t.ref=l.ref,l.child=t,t.return=l,t}function Au(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!=\\\"function\\\"&&typeof e!=\\\"object\\\")throw Error(S(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function uf(t,l,e,n,a){return Me(l),e=Jf(t,l,e,n,void 0,a),n=Ff(),t!==null&&!ut?(Wf(t,l,a),wl(t,l,a)):(H&&n&&Gf(l),l.flags|=1,ht(t,l,e,a),l.child)}function d0(t,l,e,n,a,u){return Me(l),l.updateQueue=null,e=Ws(l,n,e,a),Fs(t),n=Ff(),t!==null&&!ut?(Wf(t,l,u),wl(t,l,u)):(H&&n&&Gf(l),l.flags|=1,ht(t,l,e,u),l.child)}function g0(t,l,e,n,a){if(Me(l),l.stateNode===null){var u=cn,i=e.contextType;typeof i==\\\"object\\\"&&i!==null&&(u=dt(i)),u=new e(n,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=nf,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=n,u.state=l.memoizedState,u.refs={},Zf(l),i=e.contextType,u.context=typeof i==\\\"object\\\"&&i!==null?dt(i):cn,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i==\\\"function\\\"&&(sc(l,e,i,n),u.state=l.memoizedState),typeof e.getDerivedStateFromProps==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\"||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(i=u.state,typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount(),i!==u.state&&nf.enqueueReplaceState(u,u.state,null),ua(l,n,u,a),aa(),u.state=l.memoizedState),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),n=!0}else if(t===null){u=l.stateNode;var c=l.memoizedProps,f=xe(e,c);u.props=f;var r=u.context,m=e.contextType;i=cn,typeof m==\\\"object\\\"&&m!==null&&(i=dt(m));var g=e.getDerivedStateFromProps;m=typeof g==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\",c=l.pendingProps!==c,m||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(c||r!==i)&&r0(l,u,n,i),jl=!1;var d=l.memoizedState;u.state=d,ua(l,n,u,a),aa(),r=l.memoizedState,c||d!==r||jl?(typeof g==\\\"function\\\"&&(sc(l,e,g,n),r=l.memoizedState),(f=jl||f0(l,e,f,n,d,r,i))?(m||typeof u.UNSAFE_componentWillMount!=\\\"function\\\"&&typeof u.componentWillMount!=\\\"function\\\"||(typeof u.componentWillMount==\\\"function\\\"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount==\\\"function\\\"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308)):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),l.memoizedProps=n,l.memoizedState=r),u.props=n,u.state=r,u.context=i,n=f):(typeof u.componentDidMount==\\\"function\\\"&&(l.flags|=4194308),n=!1)}else{u=l.stateNode,kc(t,l),i=l.memoizedProps,m=xe(e,i),u.props=m,g=l.pendingProps,d=u.context,r=e.contextType,f=cn,typeof r==\\\"object\\\"&&r!==null&&(f=dt(r)),c=e.getDerivedStateFromProps,(r=typeof c==\\\"function\\\"||typeof u.getSnapshotBeforeUpdate==\\\"function\\\")||typeof u.UNSAFE_componentWillReceiveProps!=\\\"function\\\"&&typeof u.componentWillReceiveProps!=\\\"function\\\"||(i!==g||d!==f)&&r0(l,u,n,f),jl=!1,d=l.memoizedState,u.state=d,ua(l,n,u,a),aa();var y=l.memoizedState;i!==g||d!==y||jl||t!==null&&t.dependencies!==null&&qu(t.dependencies)?(typeof c==\\\"function\\\"&&(sc(l,e,c,n),y=l.memoizedState),(m=jl||f0(l,e,m,n,d,y,f)||t!==null&&t.dependencies!==null&&qu(t.dependencies))?(r||typeof u.UNSAFE_componentWillUpdate!=\\\"function\\\"&&typeof u.componentWillUpdate!=\\\"function\\\"||(typeof u.componentWillUpdate==\\\"function\\\"&&u.componentWillUpdate(n,y,f),typeof u.UNSAFE_componentWillUpdate==\\\"function\\\"&&u.UNSAFE_componentWillUpdate(n,y,f)),typeof u.componentDidUpdate==\\\"function\\\"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate==\\\"function\\\"&&(l.flags|=1024)):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=1024),l.memoizedProps=n,l.memoizedState=y),u.props=n,u.state=y,u.context=f,n=m):(typeof u.componentDidUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!=\\\"function\\\"||i===t.memoizedProps&&d===t.memoizedState||(l.flags|=1024),n=!1)}return u=n,Au(t,l),n=(l.flags&128)!==0,u||n?(u=l.stateNode,e=n&&typeof e.getDerivedStateFromError!=\\\"function\\\"?null:u.render(),l.flags|=1,t!==null&&n?(l.child=Ue(l,t.child,null,a),l.child=Ue(l,null,e,a)):ht(t,l,e,a),l.memoizedState=u.state,t=l.child):t=wl(t,l,a),t}function v0(t,l,e,n){return Be(),l.flags|=256,ht(t,l,e,n),l.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(t){return{baseLanes:t,cachePool:Qs()}}function mc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=qt),t}function R1(t,l,e){var n=l.pendingProps,a=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(tt.current&2)!==0),i&&(a=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(H){if(a?Vl(l):Kl(l),(t=F)?(t=Nh(t,It),t=t!==null&&t.data!==\\\"&\\\"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:fe!==null?{id:ol,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},e=qs(t),e.return=l,l.child=e,mt=l,F=null)):t=null,t===null)throw re(l);return Ef(t)?l.lanes=32:l.lanes=536870912,null}var c=n.children;return n=n.fallback,a?(Kl(l),a=l.mode,c=Zu({mode:\\\"hidden\\\",children:c},a),n=Ae(n,a,e,null),c.return=l,n.return=l,c.sibling=n,l.child=c,n=l.child,n.memoizedState=yc(e),n.childLanes=mc(t,i,e),l.memoizedState=hc,$n(null,n)):(Vl(l),cf(l,c))}var f=t.memoizedState;if(f!==null&&(c=f.dehydrated,c!==null)){if(u)l.flags&256?(Vl(l),l.flags&=-257,l=dc(t,l,e)):l.memoizedState!==null?(Kl(l),l.child=t.child,l.flags|=128,l=null):(Kl(l),c=n.fallback,a=l.mode,n=Zu({mode:\\\"visible\\\",children:n.children},a),c=Ae(c,a,e,null),c.flags|=2,n.return=l,c.return=l,n.sibling=c,l.child=n,Ue(l,t.child,null,e),n=l.child,n.memoizedState=yc(e),n.childLanes=mc(t,i,e),l.memoizedState=hc,l=$n(null,n));else if(Vl(l),Ef(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var r=i.dgst;i=r,n=Error(S(419)),n.stack=\\\"\\\",n.digest=i,va({value:n,source:null,stack:null}),l=dc(t,l,e)}else if(ut||xn(t,l,e,!1),i=(e&t.childLanes)!==0,ut||i){if(i=Z,i!==null&&(n=rs(i,e),n!==0&&n!==f.retryLane))throw f.retryLane=n,we(t,n),Mt(i,t,n),ur;Sf(c)||Fu(),l=dc(t,l,e)}else Sf(c)?(l.flags|=192,l.child=t.child,l=null):(t=f.treeContext,F=tl(c.nextSibling),mt=l,H=!0,te=null,It=!1,t!==null&&Gs(l,t),l=cf(l,n.children),l.flags|=4096);return l}return a?(Kl(l),c=n.fallback,a=l.mode,f=t.child,r=f.sibling,n=Ul(f,{mode:\\\"hidden\\\",children:n.children}),n.subtreeFlags=f.subtreeFlags&65011712,r!==null?c=Ul(r,c):(c=Ae(c,a,e,null),c.flags|=2),c.return=l,n.return=l,n.sibling=c,l.child=n,$n(null,n),n=l.child,c=t.child.memoizedState,c===null?c=yc(e):(a=c.cachePool,a!==null?(f=at._currentValue,a=a.parent!==f?{parent:f,pool:f}:a):a=Qs(),c={baseLanes:c.baseLanes|e,cachePool:a}),n.memoizedState=c,n.childLanes=mc(t,i,e),l.memoizedState=hc,$n(t.child,n)):(Vl(l),e=t.child,t=e.sibling,e=Ul(e,{mode:\\\"visible\\\",children:n.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function cf(t,l){return l=Zu({mode:\\\"visible\\\",children:l},t.mode),l.return=t,t.child=l}function Zu(t,l){return t=Ht(22,t,null,l),t.lanes=0,t}function dc(t,l,e){return Ue(l,t.child,null,e),t=cf(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function p0(t,l,e){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l),Jc(t.return,l,e)}function gc(t,l,e,n,a,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:n,tail:e,tailMode:a,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=e,i.tailMode=a,i.treeForkCount=u)}function C1(t,l,e){var n=l.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var i=tt.current,c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,V(tt,i),ht(t,l,n,e),n=H?ga:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&p0(t,e,l);else if(t.tag===19)p0(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case\\\"forwards\\\":for(e=l.child,a=null;e!==null;)t=e.alternate,t!==null&&Xu(t)===null&&(a=e),e=e.sibling;e=a,e===null?(a=l.child,l.child=null):(a=e.sibling,e.sibling=null),gc(l,!1,a,e,u,n);break;case\\\"backwards\\\":case\\\"unstable_legacy-backwards\\\":for(e=null,a=l.child,l.child=null;a!==null;){if(t=a.alternate,t!==null&&Xu(t)===null){l.child=a;break}t=a.sibling,a.sibling=e,e=a,a=t}gc(l,!0,e,null,u,n);break;case\\\"together\\\":gc(l,!1,null,null,void 0,n);break;default:l.memoizedState=null}return l.child}function wl(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),se|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(xn(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(S(153));if(l.child!==null){for(t=l.child,e=Ul(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=Ul(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function ir(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&qu(t)))}function jd(t,l,e){switch(l.tag){case 3:Ou(l,l.stateNode.containerInfo),Zl(l,at,t.memoizedState.cache),Be();break;case 27:case 5:Cc(l);break;case 4:Ou(l,l.stateNode.containerInfo);break;case 10:Zl(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Pc(l),null;break;case 13:var n=l.memoizedState;if(n!==null)return n.dehydrated!==null?(Vl(l),l.flags|=128,null):(e&l.child.childLanes)!==0?R1(t,l,e):(Vl(l),t=wl(t,l,e),t!==null?t.sibling:null);Vl(l);break;case 19:var a=(t.flags&128)!==0;if(n=(e&l.childLanes)!==0,n||(xn(t,l,e,!1),n=(e&l.childLanes)!==0),a){if(n)return C1(t,l,e);l.flags|=128}if(a=l.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),V(tt,tt.current),n)break;return null;case 22:return l.lanes=0,D1(t,l,e,l.pendingProps);case 24:Zl(l,at,t.memoizedState.cache)}return wl(t,l,e)}function w1(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)ut=!0;else{if(!ir(t,e)&&(l.flags&128)===0)return ut=!1,jd(t,l,e);ut=(t.flags&131072)!==0}else ut=!1,H&&(l.flags&1048576)!==0&&Ys(l,ga,l.index);switch(l.lanes=0,l.tag){case 16:t:{var n=l.pendingProps;if(t=Ee(l.elementType),l.type=t,typeof t==\\\"function\\\")Yf(t)?(n=xe(t,n),l.tag=1,l=g0(null,l,t,n,e)):(l.tag=0,l=uf(null,l,t,n,e));else{if(t!=null){var a=t.$$typeof;if(a===Nf){l.tag=11,l=s0(null,l,t,n,e);break t}else if(a===zf){l.tag=14,l=h0(null,l,t,n,e);break t}}throw l=Dc(t)||t,Error(S(306,l,\\\"\\\"))}}return l;case 0:return uf(t,l,l.type,l.pendingProps,e);case 1:return n=l.type,a=xe(n,l.pendingProps),g0(t,l,n,a,e);case 3:t:{if(Ou(l,l.stateNode.containerInfo),t===null)throw Error(S(387));n=l.pendingProps;var u=l.memoizedState;a=u.element,kc(t,l),ua(l,n,null,e);var i=l.memoizedState;if(n=i.cache,Zl(l,at,n),n!==u.cache&&Fc(l,[at],e,!0),aa(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=v0(t,l,n,e);break t}else if(n!==a){a=$t(Error(S(424)),l),va(a),l=v0(t,l,n,e);break t}else for(t=l.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,F=tl(t.firstChild),mt=l,H=!0,te=null,It=!0,e=Zs(l,null,n,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(Be(),n===a){l=wl(t,l,e);break t}ht(t,l,n,e)}l=l.child}return l;case 26:return Au(t,l),t===null?(e=X0(l.type,null,l.pendingProps,null))?l.memoizedState=e:H||(e=l.type,t=l.pendingProps,n=Iu(Pl.current).createElement(e),n[yt]=l,n[Ut]=t,gt(n,e,t),ot(n),l.stateNode=n):l.memoizedState=X0(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Cc(l),t===null&&H&&(n=l.stateNode=zh(l.type,l.pendingProps,Pl.current),mt=l,It=!0,a=F,ye(l.type)?(bf=a,F=tl(n.firstChild)):F=a),ht(t,l,l.pendingProps.children,e),Au(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&H&&((a=n=F)&&(n=vg(n,l.type,l.pendingProps,It),n!==null?(l.stateNode=n,mt=l,F=tl(n.firstChild),It=!1,a=!0):a=!1),a||re(l)),Cc(l),a=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,n=u.children,vf(a,u)?n=null:i!==null&&vf(a,i)&&(l.flags|=32),l.memoizedState!==null&&(a=Jf(t,l,Cd,null,null,e),Aa._currentValue=a),Au(t,l),ht(t,l,n,e),l.child;case 6:return t===null&&H&&((t=e=F)&&(e=pg(e,l.pendingProps,It),e!==null?(l.stateNode=e,mt=l,F=null,t=!0):t=!1),t||re(l)),null;case 13:return R1(t,l,e);case 4:return Ou(l,l.stateNode.containerInfo),n=l.pendingProps,t===null?l.child=Ue(l,null,n,e):ht(t,l,n,e),l.child;case 11:return s0(t,l,l.type,l.pendingProps,e);case 7:return ht(t,l,l.pendingProps,e),l.child;case 8:return ht(t,l,l.pendingProps.children,e),l.child;case 12:return ht(t,l,l.pendingProps.children,e),l.child;case 10:return n=l.pendingProps,Zl(l,l.type,n.value),ht(t,l,n.children,e),l.child;case 9:return a=l.type._context,n=l.pendingProps.children,Me(l),a=dt(a),n=n(a),l.flags|=1,ht(t,l,n,e),l.child;case 14:return h0(t,l,l.type,l.pendingProps,e);case 15:return x1(t,l,l.type,l.pendingProps,e);case 19:return C1(t,l,e);case 31:return Ld(t,l,e);case 22:return D1(t,l,e,l.pendingProps);case 24:return Me(l),n=dt(at),t===null?(a=Lf(),a===null&&(a=Z,u=Qf(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=e),a=u),l.memoizedState={parent:n,cache:a},Zf(l),Zl(l,at,a)):((t.lanes&e)!==0&&(kc(t,l),ua(l,null,null,e),aa()),a=t.memoizedState,u=l.memoizedState,a.parent!==n?(a={parent:n,cache:n},l.memoizedState=a,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=a),Zl(l,at,n)):(n=u.cache,Zl(l,at,n),n!==a.cache&&Fc(l,[at],e,!0))),ht(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(S(156,l.tag))}function El(t){t.flags|=4}function vc(t,l,e,n,a){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(uh())t.flags|=8192;else throw ze=Yu,jf}else t.flags&=-16777217}function S0(t,l){if(l.type!==\\\"stylesheet\\\"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Mh(l))if(uh())t.flags|=8192;else throw ze=Yu,jf}function cu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?is():536870912,t.lanes|=l,Nn|=l)}function Zn(t,l){if(!H)switch(t.tailMode){case\\\"hidden\\\":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case\\\"collapsed\\\":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function J(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,n=0;if(l)for(var a=t.child;a!==null;)e|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)e|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=e,l}function Zd(t,l,e){var n=l.pendingProps;switch(Xf(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return J(l),null;case 1:return J(l),null;case 3:return e=l.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),l.memoizedState.cache!==n&&(l.flags|=2048),Ol(at),pn(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(Fe(l)?El(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,fc())),J(l),null;case 26:var a=l.type,u=l.memoizedState;return t===null?(El(l),u!==null?(J(l),S0(l,u)):(J(l),vc(l,a,null,n,e))):u?u!==t.memoizedState?(El(l),J(l),S0(l,u)):(J(l),l.flags&=-16777217):(t=t.memoizedProps,t!==n&&El(l),J(l),vc(l,a,t,n,e)),null;case 27:if(xu(l),e=Pl.current,a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(!n){if(l.stateNode===null)throw Error(S(166));return J(l),null}t=yl.current,Fe(l)?Fo(l,t):(t=zh(a,n,e),l.stateNode=t,El(l))}return J(l),null;case 5:if(xu(l),a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(!n){if(l.stateNode===null)throw Error(S(166));return J(l),null}if(u=yl.current,Fe(l))Fo(l,u);else{var i=Iu(Pl.current);switch(u){case 1:u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case 2:u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;default:switch(a){case\\\"svg\\\":u=i.createElementNS(\\\"http://www.w3.org/2000/svg\\\",a);break;case\\\"math\\\":u=i.createElementNS(\\\"http://www.w3.org/1998/Math/MathML\\\",a);break;case\\\"script\\\":u=i.createElement(\\\"div\\\"),u.innerHTML=\\\"<script><\\\\/script>\\\",u=u.removeChild(u.firstChild);break;case\\\"select\\\":u=typeof n.is==\\\"string\\\"?i.createElement(\\\"select\\\",{is:n.is}):i.createElement(\\\"select\\\"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is==\\\"string\\\"?i.createElement(a,{is:n.is}):i.createElement(a)}}u[yt]=l,u[Ut]=n;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(gt(u,a,n),a){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":n=!!n.autoFocus;break t;case\\\"img\\\":n=!0;break t;default:n=!1}n&&El(l)}}return J(l),vc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==n&&El(l);else{if(typeof n!=\\\"string\\\"&&l.stateNode===null)throw Error(S(166));if(t=Pl.current,Fe(l)){if(t=l.stateNode,e=l.memoizedProps,n=null,a=mt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[yt]=l,t=!!(t.nodeValue===e||n!==null&&n.suppressHydrationWarning===!0||bh(t.nodeValue,e)),t||re(l,!0)}else t=Iu(t).createTextNode(n),t[yt]=l,l.stateNode=t}return J(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(n=Fe(l),e!==null){if(t===null){if(!n)throw Error(S(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(557));t[yt]=l}else Be(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),t=!1}else e=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(wt(l),l):(wt(l),null);if((l.flags&128)!==0)throw Error(S(558))}return J(l),null;case 13:if(n=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Fe(l),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(S(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(S(317));a[yt]=l}else Be(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;J(l),a=!1}else a=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return l.flags&256?(wt(l),l):(wt(l),null)}return wt(l),(l.flags&128)!==0?(l.lanes=e,l):(e=n!==null,t=t!==null&&t.memoizedState!==null,e&&(n=l.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),cu(l,l.updateQueue),J(l),null);case 4:return pn(),t===null&&yr(l.stateNode.containerInfo),J(l),null;case 10:return Ol(l.type),J(l),null;case 19:if(st(tt),n=l.memoizedState,n===null)return J(l),null;if(a=(l.flags&128)!==0,u=n.rendering,u===null)if(a)Zn(n,!1);else{if(P!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=Xu(t),u!==null){for(l.flags|=128,Zn(n,!1),t=u.updateQueue,l.updateQueue=t,cu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)Hs(e,t),e=e.sibling;return V(tt,tt.current&1|2),H&&Nl(l,n.treeForkCount),l.child}t=t.sibling}n.tail!==null&&Yt()>Ku&&(l.flags|=128,a=!0,Zn(n,!1),l.lanes=4194304)}else{if(!a)if(t=Xu(u),t!==null){if(l.flags|=128,a=!0,t=t.updateQueue,l.updateQueue=t,cu(l,t),Zn(n,!0),n.tail===null&&n.tailMode===\\\"hidden\\\"&&!u.alternate&&!H)return J(l),null}else 2*Yt()-n.renderingStartTime>Ku&&e!==536870912&&(l.flags|=128,a=!0,Zn(n,!1),l.lanes=4194304);n.isBackwards?(u.sibling=l.child,l.child=u):(t=n.last,t!==null?t.sibling=u:l.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Yt(),t.sibling=null,e=tt.current,V(tt,a?e&1|2:e&1),H&&Nl(l,n.treeForkCount),t):(J(l),null);case 22:case 23:return wt(l),Vf(),n=l.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(l.flags|=8192):n&&(l.flags|=8192),n?(e&536870912)!==0&&(l.flags&128)===0&&(J(l),l.subtreeFlags&6&&(l.flags|=8192)):J(l),e=l.updateQueue,e!==null&&cu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==e&&(l.flags|=2048),t!==null&&st(Ne),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Ol(at),J(l),null;case 25:return null;case 30:return null}throw Error(S(156,l.tag))}function Vd(t,l){switch(Xf(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Ol(at),pn(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return xu(l),null;case 31:if(l.memoizedState!==null){if(wt(l),l.alternate===null)throw Error(S(340));Be()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(wt(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(S(340));Be()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return st(tt),null;case 4:return pn(),null;case 10:return Ol(l.type),null;case 22:case 23:return wt(l),Vf(),t!==null&&st(Ne),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Ol(at),null;case 25:return null;default:return null}}function H1(t,l){switch(Xf(l),l.tag){case 3:Ol(at),pn();break;case 26:case 27:case 5:xu(l);break;case 4:pn();break;case 31:l.memoizedState!==null&&wt(l);break;case 13:wt(l);break;case 19:st(tt);break;case 10:Ol(l.type);break;case 22:case 23:wt(l),Vf(),t!==null&&st(Ne);break;case 24:Ol(at)}}function Ca(t,l){try{var e=l.updateQueue,n=e!==null?e.lastEffect:null;if(n!==null){var a=n.next;e=a;do{if((e.tag&t)===t){n=void 0;var u=e.create,i=e.inst;n=u(),i.destroy=n}e=e.next}while(e!==a)}}catch(c){Q(l,l.return,c)}}function oe(t,l,e){try{var n=l.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var i=n.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=l;var f=e,r=c;try{r()}catch(m){Q(a,f,m)}}}n=n.next}while(n!==u)}}catch(m){Q(l,l.return,m)}}function q1(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Ks(l,e)}catch(n){Q(t,t.return,n)}}}function Y1(t,l,e){e.props=xe(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(n){Q(t,l,n)}}function ca(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof e==\\\"function\\\"?t.refCleanup=e(n):e.current=n}}catch(a){Q(t,l,a)}}function hl(t,l){var e=t.ref,n=t.refCleanup;if(e!==null)if(typeof n==\\\"function\\\")try{n()}catch(a){Q(t,l,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e==\\\"function\\\")try{e(null)}catch(a){Q(t,l,a)}else e.current=null}function G1(t){var l=t.type,e=t.memoizedProps,n=t.stateNode;try{t:switch(l){case\\\"button\\\":case\\\"input\\\":case\\\"select\\\":case\\\"textarea\\\":e.autoFocus&&n.focus();break t;case\\\"img\\\":e.src?n.src=e.src:e.srcSet&&(n.srcset=e.srcSet)}}catch(a){Q(t,t.return,a)}}function pc(t,l,e){try{var n=t.stateNode;sg(n,t.type,e,l),n[Ut]=l}catch(a){Q(t,t.return,a)}}function X1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ye(t.type)||t.tag===4}function Sc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||X1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ye(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ff(t,l,e){var n=t.tag;if(n===5||n===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName===\\\"HTML\\\"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Bl));else if(n!==4&&(n===27&&ye(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(ff(t,l,e),t=t.sibling;t!==null;)ff(t,l,e),t=t.sibling}function Vu(t,l,e){var n=t.tag;if(n===5||n===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(n!==4&&(n===27&&ye(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(Vu(t,l,e),t=t.sibling;t!==null;)Vu(t,l,e),t=t.sibling}function Q1(t){var l=t.stateNode,e=t.memoizedProps;try{for(var n=t.type,a=l.attributes;a.length;)l.removeAttributeNode(a[0]);gt(l,n,e),l[yt]=t,l[Ut]=e}catch(u){Q(t,t.return,u)}}var zl=!1,nt=!1,Ec=!1,E0=typeof WeakSet==\\\"function\\\"?WeakSet:Set,rt=null;function Kd(t,l){if(t=t.containerInfo,df=ei,t=Ms(t),wf(t)){if(\\\"selectionStart\\\"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var n=e.getSelection&&e.getSelection();if(n&&n.rangeCount!==0){e=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,c=-1,f=-1,r=0,m=0,g=t,d=null;l:for(;;){for(var y;g!==e||a!==0&&g.nodeType!==3||(c=i+a),g!==u||n!==0&&g.nodeType!==3||(f=i+n),g.nodeType===3&&(i+=g.nodeValue.length),(y=g.firstChild)!==null;)d=g,g=y;for(;;){if(g===t)break l;if(d===e&&++r===a&&(c=i),d===u&&++m===n&&(f=i),(y=g.nextSibling)!==null)break;g=d,d=g.parentNode}g=y}e=c===-1||f===-1?null:{start:c,end:f}}else e=null}e=e||{start:0,end:0}}else e=null;for(gf={focusedElem:t,selectionRange:e},ei=!1,rt=l;rt!==null;)if(l=rt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,rt=t;else for(;rt!==null;){switch(l=rt,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)a=t[e],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,a=u.memoizedProps,u=u.memoizedState,n=e.stateNode;try{var E=xe(e.type,a);t=n.getSnapshotBeforeUpdate(E,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(b){Q(e,e.return,b)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)pf(t);else if(e===1)switch(t.nodeName){case\\\"HEAD\\\":case\\\"HTML\\\":case\\\"BODY\\\":pf(t);break;default:t.textContent=\\\"\\\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(S(163))}if(t=l.sibling,t!==null){t.return=l.return,rt=t;break}rt=l.return}}function L1(t,l,e){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Tl(t,e),n&4&&Ca(5,e);break;case 1:if(Tl(t,e),n&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){Q(e,e.return,i)}else{var a=xe(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(a,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){Q(e,e.return,i)}}n&64&&q1(e),n&512&&ca(e,e.return);break;case 3:if(Tl(t,e),n&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{Ks(t,l)}catch(i){Q(e,e.return,i)}}break;case 27:l===null&&n&4&&Q1(e);case 26:case 5:Tl(t,e),l===null&&n&4&&G1(e),n&512&&ca(e,e.return);break;case 12:Tl(t,e);break;case 31:Tl(t,e),n&4&&V1(t,e);break;case 13:Tl(t,e),n&4&&K1(t,e),n&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=lg.bind(null,e),Sg(t,e))));break;case 22:if(n=e.memoizedState!==null||zl,!n){l=l!==null&&l.memoizedState!==null||nt,a=zl;var u=nt;zl=n,(nt=l)&&!u?Al(t,e,(e.subtreeFlags&8772)!==0):Tl(t,e),zl=a,nt=u}break;case 30:break;default:Tl(t,e)}}function j1(t){var l=t.alternate;l!==null&&(t.alternate=null,j1(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Uf(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var $=null,_t=!1;function bl(t,l,e){for(e=e.child;e!==null;)Z1(t,l,e),e=e.sibling}function Z1(t,l,e){if(Gt&&typeof Gt.onCommitFiberUnmount==\\\"function\\\")try{Gt.onCommitFiberUnmount(Ba,e)}catch{}switch(e.tag){case 26:nt||hl(e,l),bl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:nt||hl(e,l);var n=$,a=_t;ye(e.type)&&($=e.stateNode,_t=!1),bl(t,l,e),sa(e.stateNode),$=n,_t=a;break;case 5:nt||hl(e,l);case 6:if(n=$,a=_t,$=null,bl(t,l,e),$=n,_t=a,$!==null)if(_t)try{($.nodeType===9?$.body:$.nodeName===\\\"HTML\\\"?$.ownerDocument.body:$).removeChild(e.stateNode)}catch(u){Q(e,l,u)}else try{$.removeChild(e.stateNode)}catch(u){Q(e,l,u)}break;case 18:$!==null&&(_t?(t=$,w0(t.nodeType===9?t.body:t.nodeName===\\\"HTML\\\"?t.ownerDocument.body:t,e.stateNode),Mn(t)):w0($,e.stateNode));break;case 4:n=$,a=_t,$=e.stateNode.containerInfo,_t=!0,bl(t,l,e),$=n,_t=a;break;case 0:case 11:case 14:case 15:oe(2,e,l),nt||oe(4,e,l),bl(t,l,e);break;case 1:nt||(hl(e,l),n=e.stateNode,typeof n.componentWillUnmount==\\\"function\\\"&&Y1(e,l,n)),bl(t,l,e);break;case 21:bl(t,l,e);break;case 22:nt=(n=nt)||e.memoizedState!==null,bl(t,l,e),nt=n;break;default:bl(t,l,e)}}function V1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Mn(t)}catch(e){Q(l,l.return,e)}}}function K1(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Mn(t)}catch(e){Q(l,l.return,e)}}function Jd(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new E0),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new E0),l;default:throw Error(S(435,t.tag))}}function fu(t,l){var e=Jd(t);l.forEach(function(n){if(!e.has(n)){e.add(n);var a=eg.bind(null,t,n);n.then(a,a)}})}function Nt(t,l){var e=l.deletions;if(e!==null)for(var n=0;n<e.length;n++){var a=e[n],u=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(ye(c.type)){$=c.stateNode,_t=!1;break t}break;case 5:$=c.stateNode,_t=!1;break t;case 3:case 4:$=c.stateNode.containerInfo,_t=!0;break t}c=c.return}if($===null)throw Error(S(160));Z1(u,i,a),$=null,_t=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)J1(l,t),l=l.sibling}var ul=null;function J1(t,l){var e=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Nt(l,t),zt(t),n&4&&(oe(3,t,t.return),Ca(3,t),oe(5,t,t.return));break;case 1:Nt(l,t),zt(t),n&512&&(nt||e===null||hl(e,e.return)),n&64&&zl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?n:e.concat(n))));break;case 26:var a=ul;if(Nt(l,t),zt(t),n&512&&(nt||e===null||hl(e,e.return)),n&4){var u=e!==null?e.memoizedState:null;if(n=t.memoizedState,e===null)if(n===null)if(t.stateNode===null){t:{n=t.type,e=t.memoizedProps,a=a.ownerDocument||a;l:switch(n){case\\\"title\\\":u=a.getElementsByTagName(\\\"title\\\")[0],(!u||u[Oa]||u[yt]||u.namespaceURI===\\\"http://www.w3.org/2000/svg\\\"||u.hasAttribute(\\\"itemprop\\\"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector(\\\"head > title\\\"))),gt(u,n,e),u[yt]=t,ot(u),n=u;break t;case\\\"link\\\":var i=L0(\\\"link\\\",\\\"href\\\",a).get(n+(e.href||\\\"\\\"));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"href\\\")===(e.href==null||e.href===\\\"\\\"?null:e.href)&&u.getAttribute(\\\"rel\\\")===(e.rel==null?null:e.rel)&&u.getAttribute(\\\"title\\\")===(e.title==null?null:e.title)&&u.getAttribute(\\\"crossorigin\\\")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break l}}u=a.createElement(n),gt(u,n,e),a.head.appendChild(u);break;case\\\"meta\\\":if(i=L0(\\\"meta\\\",\\\"content\\\",a).get(n+(e.content||\\\"\\\"))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute(\\\"content\\\")===(e.content==null?null:\\\"\\\"+e.content)&&u.getAttribute(\\\"name\\\")===(e.name==null?null:e.name)&&u.getAttribute(\\\"property\\\")===(e.property==null?null:e.property)&&u.getAttribute(\\\"http-equiv\\\")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute(\\\"charset\\\")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break l}}u=a.createElement(n),gt(u,n,e),a.head.appendChild(u);break;default:throw Error(S(468,n))}u[yt]=t,ot(u),n=u}t.stateNode=n}else j0(a,t.type,t.stateNode);else t.stateNode=Q0(a,n,t.memoizedProps);else u!==n?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,n===null?j0(a,t.type,t.stateNode):Q0(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&pc(t,t.memoizedProps,e.memoizedProps)}break;case 27:Nt(l,t),zt(t),n&512&&(nt||e===null||hl(e,e.return)),e!==null&&n&4&&pc(t,t.memoizedProps,e.memoizedProps);break;case 5:if(Nt(l,t),zt(t),n&512&&(nt||e===null||hl(e,e.return)),t.flags&32){a=t.stateNode;try{En(a,\\\"\\\")}catch(E){Q(t,t.return,E)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,pc(t,a,e!==null?e.memoizedProps:a)),n&1024&&(Ec=!0);break;case 6:if(Nt(l,t),zt(t),n&4){if(t.stateNode===null)throw Error(S(162));n=t.memoizedProps,e=t.stateNode;try{e.nodeValue=n}catch(E){Q(t,t.return,E)}}break;case 3:if(_u=null,a=ul,ul=Pu(l.containerInfo),Nt(l,t),ul=a,zt(t),n&4&&e!==null&&e.memoizedState.isDehydrated)try{Mn(l.containerInfo)}catch(E){Q(t,t.return,E)}Ec&&(Ec=!1,F1(t));break;case 4:n=ul,ul=Pu(t.stateNode.containerInfo),Nt(l,t),zt(t),ul=n;break;case 12:Nt(l,t),zt(t);break;case 31:Nt(l,t),zt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fu(t,n)));break;case 13:Nt(l,t),zt(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(di=Yt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fu(t,n)));break;case 22:a=t.memoizedState!==null;var f=e!==null&&e.memoizedState!==null,r=zl,m=nt;if(zl=r||a,nt=m||f,Nt(l,t),nt=m,zl=r,zt(t),n&8192)t:for(l=t.stateNode,l._visibility=a?l._visibility&-2:l._visibility|1,a&&(e===null||f||zl||nt||be(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){f=e=l;try{if(u=f.stateNode,a)i=u.style,typeof i.setProperty==\\\"function\\\"?i.setProperty(\\\"display\\\",\\\"none\\\",\\\"important\\\"):i.display=\\\"none\\\";else{c=f.stateNode;var g=f.memoizedProps.style,d=g!=null&&g.hasOwnProperty(\\\"display\\\")?g.display:null;c.style.display=d==null||typeof d==\\\"boolean\\\"?\\\"\\\":(\\\"\\\"+d).trim()}}catch(E){Q(f,f.return,E)}}}else if(l.tag===6){if(e===null){f=l;try{f.stateNode.nodeValue=a?\\\"\\\":f.memoizedProps}catch(E){Q(f,f.return,E)}}}else if(l.tag===18){if(e===null){f=l;try{var y=f.stateNode;a?H0(y,!0):H0(f.stateNode,!1)}catch(E){Q(f,f.return,E)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}n&4&&(n=t.updateQueue,n!==null&&(e=n.retryQueue,e!==null&&(n.retryQueue=null,fu(t,e))));break;case 19:Nt(l,t),zt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fu(t,n)));break;case 30:break;case 21:break;default:Nt(l,t),zt(t)}}function zt(t){var l=t.flags;if(l&2){try{for(var e,n=t.return;n!==null;){if(X1(n)){e=n;break}n=n.return}if(e==null)throw Error(S(160));switch(e.tag){case 27:var a=e.stateNode,u=Sc(t);Vu(t,u,a);break;case 5:var i=e.stateNode;e.flags&32&&(En(i,\\\"\\\"),e.flags&=-33);var c=Sc(t);Vu(t,c,i);break;case 3:case 4:var f=e.stateNode.containerInfo,r=Sc(t);ff(t,r,f);break;default:throw Error(S(161))}}catch(m){Q(t,t.return,m)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function F1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;F1(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Tl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)L1(t,l.alternate,l),l=l.sibling}function be(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:oe(4,l,l.return),be(l);break;case 1:hl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount==\\\"function\\\"&&Y1(l,l.return,e),be(l);break;case 27:sa(l.stateNode);case 26:case 5:hl(l,l.return),be(l);break;case 22:l.memoizedState===null&&be(l);break;case 30:be(l);break;default:be(l)}t=t.sibling}}function Al(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var n=l.alternate,a=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:Al(a,u,e),Ca(4,u);break;case 1:if(Al(a,u,e),n=u,a=n.stateNode,typeof a.componentDidMount==\\\"function\\\")try{a.componentDidMount()}catch(r){Q(n,n.return,r)}if(n=u,a=n.updateQueue,a!==null){var c=n.stateNode;try{var f=a.shared.hiddenCallbacks;if(f!==null)for(a.shared.hiddenCallbacks=null,a=0;a<f.length;a++)Vs(f[a],c)}catch(r){Q(n,n.return,r)}}e&&i&64&&q1(u),ca(u,u.return);break;case 27:Q1(u);case 26:case 5:Al(a,u,e),e&&n===null&&i&4&&G1(u),ca(u,u.return);break;case 12:Al(a,u,e);break;case 31:Al(a,u,e),e&&i&4&&V1(a,u);break;case 13:Al(a,u,e),e&&i&4&&K1(a,u);break;case 22:u.memoizedState===null&&Al(a,u,e),ca(u,u.return);break;case 30:break;default:Al(a,u,e)}l=l.sibling}}function cr(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Da(e))}function fr(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Da(t))}function al(t,l,e,n){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)W1(t,l,e,n),l=l.sibling}function W1(t,l,e,n){var a=l.flags;switch(l.tag){case 0:case 11:case 15:al(t,l,e,n),a&2048&&Ca(9,l);break;case 1:al(t,l,e,n);break;case 3:al(t,l,e,n),a&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Da(t)));break;case 12:if(a&2048){al(t,l,e,n),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c==\\\"function\\\"&&c(i,l.alternate===null?\\\"mount\\\":\\\"update\\\",t.passiveEffectDuration,-0)}catch(f){Q(l,l.return,f)}}else al(t,l,e,n);break;case 31:al(t,l,e,n);break;case 13:al(t,l,e,n);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?al(t,l,e,n):fa(t,l):u._visibility&2?al(t,l,e,n):(u._visibility|=2,ke(t,l,e,n,(l.subtreeFlags&10256)!==0||!1)),a&2048&&cr(i,l);break;case 24:al(t,l,e,n),a&2048&&fr(l.alternate,l);break;default:al(t,l,e,n)}}function ke(t,l,e,n,a){for(a=a&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,c=e,f=n,r=i.flags;switch(i.tag){case 0:case 11:case 15:ke(u,i,c,f,a),Ca(8,i);break;case 23:break;case 22:var m=i.stateNode;i.memoizedState!==null?m._visibility&2?ke(u,i,c,f,a):fa(u,i):(m._visibility|=2,ke(u,i,c,f,a)),a&&r&2048&&cr(i.alternate,i);break;case 24:ke(u,i,c,f,a),a&&r&2048&&fr(i.alternate,i);break;default:ke(u,i,c,f,a)}l=l.sibling}}function fa(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,n=l,a=n.flags;switch(n.tag){case 22:fa(e,n),a&2048&&cr(n.alternate,n);break;case 24:fa(e,n),a&2048&&fr(n.alternate,n);break;default:fa(e,n)}l=l.sibling}}var In=8192;function We(t,l,e){if(t.subtreeFlags&In)for(t=t.child;t!==null;)k1(t,l,e),t=t.sibling}function k1(t,l,e){switch(t.tag){case 26:We(t,l,e),t.flags&In&&t.memoizedState!==null&&xg(e,ul,t.memoizedState,t.memoizedProps);break;case 5:We(t,l,e);break;case 3:case 4:var n=ul;ul=Pu(t.stateNode.containerInfo),We(t,l,e),ul=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=In,In=16777216,We(t,l,e),In=n):We(t,l,e));break;default:We(t,l,e)}}function $1(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function Vn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var n=l[e];rt=n,P1(n,t)}$1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)I1(t),t=t.sibling}function I1(t){switch(t.tag){case 0:case 11:case 15:Vn(t),t.flags&2048&&oe(9,t,t.return);break;case 3:Vn(t);break;case 12:Vn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,Nu(t)):Vn(t);break;default:Vn(t)}}function Nu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var n=l[e];rt=n,P1(n,t)}$1(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:oe(8,l,l.return),Nu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,Nu(l));break;default:Nu(l)}t=t.sibling}}function P1(t,l){for(;rt!==null;){var e=rt;switch(e.tag){case 0:case 11:case 15:oe(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var n=e.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Da(e.memoizedState.cache)}if(n=e.child,n!==null)n.return=e,rt=n;else t:for(e=t;rt!==null;){n=rt;var a=n.sibling,u=n.return;if(j1(n),n===e){rt=null;break t}if(a!==null){a.return=u,rt=a;break t}rt=u}}}var Fd={getCacheForType:function(t){var l=dt(at),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return dt(at).controller.signal}},Wd=typeof WeakMap==\\\"function\\\"?WeakMap:Map,Y=0,Z=null,D=null,w=0,X=0,Ct=null,kl=!1,Rn=!1,rr=!1,Hl=0,P=0,se=0,_e=0,or=0,qt=0,Nn=0,ra=null,Bt=null,rf=!1,di=0,th=0,Ku=1/0,Ju=null,ne=null,it=0,ae=null,zn=null,xl=0,of=0,sf=null,lh=null,oa=0,hf=null;function Qt(){return(Y&2)!==0&&w!==0?w&-w:N.T!==null?hr():os()}function eh(){if(qt===0)if((w&536870912)===0||H){var t=Ia;Ia<<=1,(Ia&3932160)===0&&(Ia=262144),qt=t}else qt=536870912;return t=jt.current,t!==null&&(t.flags|=32),qt}function Mt(t,l,e){(t===Z&&(X===2||X===9)||t.cancelPendingCommit!==null)&&(_n(t,0),$l(t,w,qt,!1)),Ua(t,e),((Y&2)===0||t!==Z)&&(t===Z&&((Y&2)===0&&(_e|=e),P===4&&$l(t,w,qt,!1)),dl(t))}function nh(t,l,e){if((Y&6)!==0)throw Error(S(327));var n=!e&&(l&127)===0&&(l&t.expiredLanes)===0||Ma(t,l),a=n?Id(t,l):bc(t,l,!0),u=n;do{if(a===0){Rn&&!n&&$l(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!kd(e)){a=bc(t,l,!1),u=!1;continue}if(a===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;a=ra;var f=c.current.memoizedState.isDehydrated;if(f&&(_n(c,i).flags|=256),i=bc(c,i,!1),i!==2){if(rr&&!f){c.errorRecoveryDisabledLanes|=u,_e|=u,a=4;break t}u=Bt,Bt=a,u!==null&&(Bt===null?Bt=u:Bt.push.apply(Bt,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){_n(t,0),$l(t,l,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(S(345));case 4:if((l&4194048)!==l)break;case 6:$l(n,l,qt,!kl);break t;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(S(329))}if((l&62914560)===l&&(a=di+300-Yt(),10<a)){if($l(n,l,qt,!kl),ai(n,0,!0)!==0)break t;xl=l,n.timeoutHandle=Ah(b0.bind(null,n,e,Bt,Ju,rf,l,qt,_e,Nn,kl,u,\\\"Throttled\\\",-0,0),a);break t}b0(n,e,Bt,Ju,rf,l,qt,_e,Nn,kl,u,null,-0,0)}}break}while(!0);dl(t)}function b0(t,l,e,n,a,u,i,c,f,r,m,g,d,y){if(t.timeoutHandle=-1,g=l.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bl},k1(l,u,g);var E=(u&62914560)===u?di-Yt():(u&4194048)===u?th-Yt():0;if(E=Dg(g,E),E!==null){xl=u,t.cancelPendingCommit=E(A0.bind(null,t,l,u,e,n,a,i,c,f,m,g,null,d,y)),$l(t,u,i,!r);return}}A0(t,l,u,e,n,a,i,c,f)}function kd(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var n=0;n<e.length;n++){var a=e[n],u=a.getSnapshot;a=a.value;try{if(!Lt(u(),a))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function $l(t,l,e,n){l&=~or,l&=~_e,t.suspendedLanes|=l,t.pingedLanes&=~l,n&&(t.warmLanes|=l),n=t.expirationTimes;for(var a=l;0<a;){var u=31-Xt(a),i=1<<u;n[u]=-1,a&=~i}e!==0&&cs(t,e,l)}function gi(){return(Y&6)===0?(wa(0,!1),!1):!0}function sr(){if(D!==null){if(X===0)var t=D.return;else t=D,Ml=He=null,kf(t),dn=null,pa=0,t=D;for(;t!==null;)H1(t.alternate,t),t=t.return;D=null}}function _n(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,mg(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),xl=0,sr(),Z=t,D=e=Ul(t.current,null),w=l,X=0,Ct=null,kl=!1,Rn=Ma(t,l),rr=!1,Nn=qt=or=_e=se=P=0,Bt=ra=null,rf=!1,(l&8)!==0&&(l|=l&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=l;0<n;){var a=31-Xt(n),u=1<<a;l|=t[a],n&=~u}return Hl=l,fi(),e}function ah(t,l){M=null,N.H=Ea,l===Dn||l===oi?(l=Po(),X=3):l===jf?(l=Po(),X=4):X=l===ur?8:l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"?6:1,Ct=l,D===null&&(P=1,ju(t,$t(l,t.current)))}function uh(){var t=jt.current;return t===null?!0:(w&4194048)===w?Pt===null:(w&62914560)===w||(w&536870912)!==0?t===Pt:!1}function ih(){var t=N.H;return N.H=Ea,t===null?Ea:t}function ch(){var t=N.A;return N.A=Fd,t}function Fu(){P=4,kl||(w&4194048)!==w&&jt.current!==null||(Rn=!0),(se&134217727)===0&&(_e&134217727)===0||Z===null||$l(Z,w,qt,!1)}function bc(t,l,e){var n=Y;Y|=2;var a=ih(),u=ch();(Z!==t||w!==l)&&(Ju=null,_n(t,l)),l=!1;var i=P;t:do try{if(X!==0&&D!==null){var c=D,f=Ct;switch(X){case 8:sr(),i=6;break t;case 3:case 2:case 9:case 6:jt.current===null&&(l=!0);var r=X;if(X=0,Ct=null,on(t,c,f,r),e&&Rn){i=0;break t}break;default:r=X,X=0,Ct=null,on(t,c,f,r)}}$d(),i=P;break}catch(m){ah(t,m)}while(!0);return l&&t.shellSuspendCounter++,Ml=He=null,Y=n,N.H=a,N.A=u,D===null&&(Z=null,w=0,fi()),i}function $d(){for(;D!==null;)fh(D)}function Id(t,l){var e=Y;Y|=2;var n=ih(),a=ch();Z!==t||w!==l?(Ju=null,Ku=Yt()+500,_n(t,l)):Rn=Ma(t,l);t:do try{if(X!==0&&D!==null){l=D;var u=Ct;l:switch(X){case 1:X=0,Ct=null,on(t,l,u,1);break;case 2:case 9:if(Io(u)){X=0,Ct=null,T0(l);break}l=function(){X!==2&&X!==9||Z!==t||(X=7),dl(t)},u.then(l,l);break t;case 3:X=7;break t;case 4:X=5;break t;case 7:Io(u)?(X=0,Ct=null,T0(l)):(X=0,Ct=null,on(t,l,u,7));break;case 5:var i=null;switch(D.tag){case 26:i=D.memoizedState;case 5:case 27:var c=D;if(i?Mh(i):c.stateNode.complete){X=0,Ct=null;var f=c.sibling;if(f!==null)D=f;else{var r=c.return;r!==null?(D=r,vi(r)):D=null}break l}}X=0,Ct=null,on(t,l,u,5);break;case 6:X=0,Ct=null,on(t,l,u,6);break;case 8:sr(),P=6;break t;default:throw Error(S(462))}}Pd();break}catch(m){ah(t,m)}while(!0);return Ml=He=null,N.H=n,N.A=a,Y=e,D!==null?0:(Z=null,w=0,fi(),P)}function Pd(){for(;D!==null&&!Tm();)fh(D)}function fh(t){var l=w1(t.alternate,t,Hl);t.memoizedProps=t.pendingProps,l===null?vi(t):D=l}function T0(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=d0(e,l,l.pendingProps,l.type,void 0,w);break;case 11:l=d0(e,l,l.pendingProps,l.type.render,l.ref,w);break;case 5:kf(l);default:H1(e,l),l=D=Hs(l,Hl),l=w1(e,l,Hl)}t.memoizedProps=t.pendingProps,l===null?vi(t):D=l}function on(t,l,e,n){Ml=He=null,kf(l),dn=null,pa=0;var a=l.return;try{if(Qd(t,a,l,e,w)){P=1,ju(t,$t(e,t.current)),D=null;return}}catch(u){if(a!==null)throw D=a,u;P=1,ju(t,$t(e,t.current)),D=null;return}l.flags&32768?(H||n===1?t=!0:Rn||(w&536870912)!==0?t=!1:(kl=t=!0,(n===2||n===9||n===3||n===6)&&(n=jt.current,n!==null&&n.tag===13&&(n.flags|=16384))),rh(l,t)):vi(l)}function vi(t){var l=t;do{if((l.flags&32768)!==0){rh(l,kl);return}t=l.return;var e=Zd(l.alternate,l,Hl);if(e!==null){D=e;return}if(l=l.sibling,l!==null){D=l;return}D=l=t}while(l!==null);P===0&&(P=5)}function rh(t,l){do{var e=Vd(t.alternate,t);if(e!==null){e.flags&=32767,D=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){D=t;return}D=t=e}while(t!==null);P=6,D=null}function A0(t,l,e,n,a,u,i,c,f){t.cancelPendingCommit=null;do pi();while(it!==0);if((Y&6)!==0)throw Error(S(327));if(l!==null){if(l===t.current)throw Error(S(177));if(u=l.lanes|l.childLanes,u|=Hf,Dm(t,e,u,i,c,f),t===Z&&(D=Z=null,w=0),zn=l,ae=t,xl=e,of=u,sf=a,lh=n,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ng(Du,function(){return mh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||n){n=N.T,N.T=null,a=G.p,G.p=2,i=Y,Y|=4;try{Kd(t,l,e)}finally{Y=i,G.p=a,N.T=n}}it=1,oh(),sh(),hh()}}function oh(){if(it===1){it=0;var t=ae,l=zn,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=N.T,N.T=null;var n=G.p;G.p=2;var a=Y;Y|=4;try{J1(l,t);var u=gf,i=Ms(t.containerInfo),c=u.focusedElem,f=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Bs(c.ownerDocument.documentElement,c)){if(f!==null&&wf(c)){var r=f.start,m=f.end;if(m===void 0&&(m=r),\\\"selectionStart\\\"in c)c.selectionStart=r,c.selectionEnd=Math.min(m,c.value.length);else{var g=c.ownerDocument||document,d=g&&g.defaultView||window;if(d.getSelection){var y=d.getSelection(),E=c.textContent.length,b=Math.min(f.start,E),q=f.end===void 0?b:Math.min(f.end,E);!y.extend&&b>q&&(i=q,q=b,b=i);var s=Vo(c,b),o=Vo(c,q);if(s&&o&&(y.rangeCount!==1||y.anchorNode!==s.node||y.anchorOffset!==s.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)){var h=g.createRange();h.setStart(s.node,s.offset),y.removeAllRanges(),b>q?(y.addRange(h),y.extend(o.node,o.offset)):(h.setEnd(o.node,o.offset),y.addRange(h))}}}}for(g=[],y=c;y=y.parentNode;)y.nodeType===1&&g.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof c.focus==\\\"function\\\"&&c.focus(),c=0;c<g.length;c++){var p=g[c];p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}ei=!!df,gf=df=null}finally{Y=a,G.p=n,N.T=e}}t.current=l,it=2}}function sh(){if(it===2){it=0;var t=ae,l=zn,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=N.T,N.T=null;var n=G.p;G.p=2;var a=Y;Y|=4;try{L1(t,l.alternate,l)}finally{Y=a,G.p=n,N.T=e}}it=3}}function hh(){if(it===4||it===3){it=0,Am();var t=ae,l=zn,e=xl,n=lh;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?it=5:(it=0,zn=ae=null,yh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(ne=null),Mf(e),l=l.stateNode,Gt&&typeof Gt.onCommitFiberRoot==\\\"function\\\")try{Gt.onCommitFiberRoot(Ba,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=N.T,a=G.p,G.p=2,N.T=null;try{for(var u=t.onRecoverableError,i=0;i<n.length;i++){var c=n[i];u(c.value,{componentStack:c.stack})}}finally{N.T=l,G.p=a}}(xl&3)!==0&&pi(),dl(t),a=t.pendingLanes,(e&261930)!==0&&(a&42)!==0?t===hf?oa++:(oa=0,hf=t):oa=0,wa(0,!1)}}function yh(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Da(l)))}function pi(){return oh(),sh(),hh(),mh()}function mh(){if(it!==5)return!1;var t=ae,l=of;of=0;var e=Mf(xl),n=N.T,a=G.p;try{G.p=32>e?32:e,N.T=null,e=sf,sf=null;var u=ae,i=xl;if(it=0,zn=ae=null,xl=0,(Y&6)!==0)throw Error(S(331));var c=Y;if(Y|=4,I1(u.current),W1(u,u.current,i,e),Y=c,wa(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot==\\\"function\\\")try{Gt.onPostCommitFiberRoot(Ba,u)}catch{}return!0}finally{G.p=a,N.T=n,yh(t,l)}}function N0(t,l,e){l=$t(e,l),l=af(t.stateNode,l,2),t=ee(t,l,2),t!==null&&(Ua(t,2),dl(t))}function Q(t,l,e){if(t.tag===3)N0(t,t,e);else for(;l!==null;){if(l.tag===3){N0(l,t,e);break}else if(l.tag===1){var n=l.stateNode;if(typeof l.type.getDerivedStateFromError==\\\"function\\\"||typeof n.componentDidCatch==\\\"function\\\"&&(ne===null||!ne.has(n))){t=$t(e,t),e=U1(2),n=ee(l,e,2),n!==null&&(O1(e,n,l,t),Ua(n,2),dl(n));break}}l=l.return}}function Tc(t,l,e){var n=t.pingCache;if(n===null){n=t.pingCache=new Wd;var a=new Set;n.set(l,a)}else a=n.get(l),a===void 0&&(a=new Set,n.set(l,a));a.has(e)||(rr=!0,a.add(e),t=tg.bind(null,t,l,e),l.then(t,t))}function tg(t,l,e){var n=t.pingCache;n!==null&&n.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,Z===t&&(w&e)===e&&(P===4||P===3&&(w&62914560)===w&&300>Yt()-di?(Y&2)===0&&_n(t,0):or|=e,Nn===w&&(Nn=0)),dl(t)}function dh(t,l){l===0&&(l=is()),t=we(t,l),t!==null&&(Ua(t,l),dl(t))}function lg(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),dh(t,e)}function eg(t,l){var e=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(e=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(S(314))}n!==null&&n.delete(l),dh(t,e)}function ng(t,l){return _f(t,l)}var Wu=null,$e=null,yf=!1,ku=!1,Ac=!1,Il=0;function dl(t){t!==$e&&t.next===null&&($e===null?Wu=$e=t:$e=$e.next=t),ku=!0,yf||(yf=!0,ug())}function wa(t,l){if(!Ac&&ku){Ac=!0;do for(var e=!1,n=Wu;n!==null;){if(!l)if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var i=n.suspendedLanes,c=n.pingedLanes;u=(1<<31-Xt(42|t)+1)-1,u&=a&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,z0(n,u))}else u=w,u=ai(n,n===Z?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Ma(n,u)||(e=!0,z0(n,u));n=n.next}while(e);Ac=!1}}function ag(){gh()}function gh(){ku=yf=!1;var t=0;Il!==0&&yg()&&(t=Il);for(var l=Yt(),e=null,n=Wu;n!==null;){var a=n.next,u=vh(n,l);u===0?(n.next=null,e===null?Wu=a:e.next=a,a===null&&($e=e)):(e=n,(t!==0||(u&3)!==0)&&(ku=!0)),n=a}it!==0&&it!==5||wa(t,!1),Il!==0&&(Il=0)}function vh(t,l){for(var e=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-Xt(u),c=1<<i,f=a[i];f===-1?((c&e)===0||(c&n)!==0)&&(a[i]=xm(c,l)):f<=l&&(t.expiredLanes|=c),u&=~c}if(l=Z,e=w,e=ai(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,e===0||t===l&&(X===2||X===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Ii(n),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||Ma(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(n!==null&&Ii(n),Mf(e)){case 2:case 8:e=as;break;case 32:e=Du;break;case 268435456:e=us;break;default:e=Du}return n=ph.bind(null,t),e=_f(e,n),t.callbackPriority=l,t.callbackNode=e,l}return n!==null&&n!==null&&Ii(n),t.callbackPriority=2,t.callbackNode=null,2}function ph(t,l){if(it!==0&&it!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(pi()&&t.callbackNode!==e)return null;var n=w;return n=ai(t,t===Z?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(nh(t,n,l),vh(t,Yt()),t.callbackNode!=null&&t.callbackNode===e?ph.bind(null,t):null)}function z0(t,l){if(pi())return null;nh(t,l,!0)}function ug(){dg(function(){(Y&6)!==0?_f(ns,ag):gh()})}function hr(){if(Il===0){var t=bn;t===0&&(t=$a,$a<<=1,($a&261888)===0&&($a=256)),Il=t}return Il}function _0(t){return t==null||typeof t==\\\"symbol\\\"||typeof t==\\\"boolean\\\"?null:typeof t==\\\"function\\\"?t:du(\\\"\\\"+t)}function B0(t,l){var e=l.ownerDocument.createElement(\\\"input\\\");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute(\\\"form\\\",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function ig(t,l,e,n,a){if(l===\\\"submit\\\"&&e&&e.stateNode===a){var u=_0((a[Ut]||null).action),i=n.submitter;i&&(l=(l=i[Ut]||null)?_0(l.formAction):i.getAttribute(\\\"formAction\\\"),l!==null&&(u=l,i=null));var c=new ui(\\\"action\\\",\\\"action\\\",null,n,a);t.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Il!==0){var f=i?B0(a,i):new FormData(a);ef(e,{pending:!0,data:f,method:a.method,action:u},null,f)}}else typeof u==\\\"function\\\"&&(c.preventDefault(),f=i?B0(a,i):new FormData(a),ef(e,{pending:!0,data:f,method:a.method,action:u},u,f))},currentTarget:a}]})}}for(ru=0;ru<Zc.length;ru++)ou=Zc[ru],M0=ou.toLowerCase(),U0=ou[0].toUpperCase()+ou.slice(1),il(M0,\\\"on\\\"+U0);var ou,M0,U0,ru;il(Os,\\\"onAnimationEnd\\\");il(xs,\\\"onAnimationIteration\\\");il(Ds,\\\"onAnimationStart\\\");il(\\\"dblclick\\\",\\\"onDoubleClick\\\");il(\\\"focusin\\\",\\\"onFocus\\\");il(\\\"focusout\\\",\\\"onBlur\\\");il(Nd,\\\"onTransitionRun\\\");il(zd,\\\"onTransitionStart\\\");il(_d,\\\"onTransitionCancel\\\");il(Rs,\\\"onTransitionEnd\\\");Sn(\\\"onMouseEnter\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);Sn(\\\"onMouseLeave\\\",[\\\"mouseout\\\",\\\"mouseover\\\"]);Sn(\\\"onPointerEnter\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);Sn(\\\"onPointerLeave\\\",[\\\"pointerout\\\",\\\"pointerover\\\"]);De(\\\"onChange\\\",\\\"change click focusin focusout input keydown keyup selectionchange\\\".split(\\\" \\\"));De(\\\"onSelect\\\",\\\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\\\".split(\\\" \\\"));De(\\\"onBeforeInput\\\",[\\\"compositionend\\\",\\\"keypress\\\",\\\"textInput\\\",\\\"paste\\\"]);De(\\\"onCompositionEnd\\\",\\\"compositionend focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));De(\\\"onCompositionStart\\\",\\\"compositionstart focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));De(\\\"onCompositionUpdate\\\",\\\"compositionupdate focusout keydown keypress keyup mousedown\\\".split(\\\" \\\"));var ba=\\\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\\\".split(\\\" \\\"),cg=new Set(\\\"beforetoggle cancel close invalid load scroll scrollend toggle\\\".split(\\\" \\\").concat(ba));function Sh(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var n=t[e],a=n.event;n=n.listeners;t:{var u=void 0;if(l)for(var i=n.length-1;0<=i;i--){var c=n[i],f=c.instance,r=c.currentTarget;if(c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(m){Cu(m)}a.currentTarget=null,u=f}else for(i=0;i<n.length;i++){if(c=n[i],f=c.instance,r=c.currentTarget,c=c.listener,f!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=r;try{u(a)}catch(m){Cu(m)}a.currentTarget=null,u=f}}}}function x(t,l){var e=l[Hc];e===void 0&&(e=l[Hc]=new Set);var n=t+\\\"__bubble\\\";e.has(n)||(Eh(l,t,2,!1),e.add(n))}function Nc(t,l,e){var n=0;l&&(n|=4),Eh(e,t,n,l)}var su=\\\"_reactListening\\\"+Math.random().toString(36).slice(2);function yr(t){if(!t[su]){t[su]=!0,ss.forEach(function(e){e!==\\\"selectionchange\\\"&&(cg.has(e)||Nc(e,!1,t),Nc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[su]||(l[su]=!0,Nc(\\\"selectionchange\\\",!1,l))}}function Eh(t,l,e,n){switch(Rh(l)){case 2:var a=wg;break;case 8:a=Hg;break;default:a=vr}e=a.bind(null,l,e,t),a=void 0,!Qc||l!==\\\"touchstart\\\"&&l!==\\\"touchmove\\\"&&l!==\\\"wheel\\\"||(a=!0),n?a!==void 0?t.addEventListener(l,e,{capture:!0,passive:a}):t.addEventListener(l,e,!0):a!==void 0?t.addEventListener(l,e,{passive:a}):t.addEventListener(l,e,!1)}function zc(t,l,e,n,a){var u=n;if((l&1)===0&&(l&2)===0&&n!==null)t:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var c=n.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=n.return;i!==null;){var f=i.tag;if((f===3||f===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=tn(c),i===null)return;if(f=i.tag,f===5||f===6||f===26||f===27){n=u=i;continue t}c=c.parentNode}}n=n.return}Ss(function(){var r=u,m=xf(e),g=[];t:{var d=Cs.get(t);if(d!==void 0){var y=ui,E=t;switch(t){case\\\"keypress\\\":if(vu(e)===0)break t;case\\\"keydown\\\":case\\\"keyup\\\":y=ed;break;case\\\"focusin\\\":E=\\\"focus\\\",y=nc;break;case\\\"focusout\\\":E=\\\"blur\\\",y=nc;break;case\\\"beforeblur\\\":case\\\"afterblur\\\":y=nc;break;case\\\"click\\\":if(e.button===2)break t;case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"mousedown\\\":case\\\"mousemove\\\":case\\\"mouseup\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"contextmenu\\\":y=Ho;break;case\\\"drag\\\":case\\\"dragend\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"dragstart\\\":case\\\"drop\\\":y=Zm;break;case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchmove\\\":case\\\"touchstart\\\":y=ud;break;case Os:case xs:case Ds:y=Jm;break;case Rs:y=cd;break;case\\\"scroll\\\":case\\\"scrollend\\\":y=Lm;break;case\\\"wheel\\\":y=rd;break;case\\\"copy\\\":case\\\"cut\\\":case\\\"paste\\\":y=Wm;break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"pointerup\\\":y=Yo;break;case\\\"toggle\\\":case\\\"beforetoggle\\\":y=sd}var b=(l&4)!==0,q=!b&&(t===\\\"scroll\\\"||t===\\\"scrollend\\\"),s=b?d!==null?d+\\\"Capture\\\":null:d;b=[];for(var o=r,h;o!==null;){var p=o;if(h=p.stateNode,p=p.tag,p!==5&&p!==26&&p!==27||h===null||s===null||(p=ya(o,s),p!=null&&b.push(Ta(o,p,h))),q)break;o=o.return}0<b.length&&(d=new y(d,E,null,e,m),g.push({event:d,listeners:b}))}}if((l&7)===0){t:{if(d=t===\\\"mouseover\\\"||t===\\\"pointerover\\\",y=t===\\\"mouseout\\\"||t===\\\"pointerout\\\",d&&e!==Xc&&(E=e.relatedTarget||e.fromElement)&&(tn(E)||E[Un]))break t;if((y||d)&&(d=m.window===m?m:(d=m.ownerDocument)?d.defaultView||d.parentWindow:window,y?(E=e.relatedTarget||e.toElement,y=r,E=E?tn(E):null,E!==null&&(q=_a(E),b=E.tag,E!==q||b!==5&&b!==27&&b!==6)&&(E=null)):(y=null,E=r),y!==E)){if(b=Ho,p=\\\"onMouseLeave\\\",s=\\\"onMouseEnter\\\",o=\\\"mouse\\\",(t===\\\"pointerout\\\"||t===\\\"pointerover\\\")&&(b=Yo,p=\\\"onPointerLeave\\\",s=\\\"onPointerEnter\\\",o=\\\"pointer\\\"),q=y==null?d:kn(y),h=E==null?d:kn(E),d=new b(p,o+\\\"leave\\\",y,e,m),d.target=q,d.relatedTarget=h,p=null,tn(m)===r&&(b=new b(s,o+\\\"enter\\\",E,e,m),b.target=h,b.relatedTarget=q,p=b),q=p,y&&E)l:{for(b=fg,s=y,o=E,h=0,p=s;p;p=b(p))h++;p=0;for(var A=o;A;A=b(A))p++;for(;0<h-p;)s=b(s),h--;for(;0<p-h;)o=b(o),p--;for(;h--;){if(s===o||o!==null&&s===o.alternate){b=s;break l}s=b(s),o=b(o)}b=null}else b=null;y!==null&&O0(g,d,y,b,!1),E!==null&&q!==null&&O0(g,q,E,b,!0)}}t:{if(d=r?kn(r):window,y=d.nodeName&&d.nodeName.toLowerCase(),y===\\\"select\\\"||y===\\\"input\\\"&&d.type===\\\"file\\\")var R=Lo;else if(Qo(d))if(zs)R=bd;else{R=Sd;var T=pd}else y=d.nodeName,!y||y.toLowerCase()!==\\\"input\\\"||d.type!==\\\"checkbox\\\"&&d.type!==\\\"radio\\\"?r&&Of(r.elementType)&&(R=Lo):R=Ed;if(R&&(R=R(t,r))){Ns(g,R,e,m);break t}T&&T(t,d,r),t===\\\"focusout\\\"&&r&&d.type===\\\"number\\\"&&r.memoizedProps.value!=null&&Gc(d,\\\"number\\\",d.value)}switch(T=r?kn(r):window,t){case\\\"focusin\\\":(Qo(T)||T.contentEditable===\\\"true\\\")&&(nn=T,Lc=r,la=null);break;case\\\"focusout\\\":la=Lc=nn=null;break;case\\\"mousedown\\\":jc=!0;break;case\\\"contextmenu\\\":case\\\"mouseup\\\":case\\\"dragend\\\":jc=!1,Ko(g,e,m);break;case\\\"selectionchange\\\":if(Ad)break;case\\\"keydown\\\":case\\\"keyup\\\":Ko(g,e,m)}var _;if(Cf)t:{switch(t){case\\\"compositionstart\\\":var U=\\\"onCompositionStart\\\";break t;case\\\"compositionend\\\":U=\\\"onCompositionEnd\\\";break t;case\\\"compositionupdate\\\":U=\\\"onCompositionUpdate\\\";break t}U=void 0}else en?Ts(t,e)&&(U=\\\"onCompositionEnd\\\"):t===\\\"keydown\\\"&&e.keyCode===229&&(U=\\\"onCompositionStart\\\");U&&(bs&&e.locale!==\\\"ko\\\"&&(en||U!==\\\"onCompositionStart\\\"?U===\\\"onCompositionEnd\\\"&&en&&(_=Es()):(Wl=m,Df=\\\"value\\\"in Wl?Wl.value:Wl.textContent,en=!0)),T=$u(r,U),0<T.length&&(U=new qo(U,t,null,e,m),g.push({event:U,listeners:T}),_?U.data=_:(_=As(e),_!==null&&(U.data=_)))),(_=yd?md(t,e):dd(t,e))&&(U=$u(r,\\\"onBeforeInput\\\"),0<U.length&&(T=new qo(\\\"onBeforeInput\\\",\\\"beforeinput\\\",null,e,m),g.push({event:T,listeners:U}),T.data=_)),ig(g,t,r,e,m)}Sh(g,l)})}function Ta(t,l,e){return{instance:t,listener:l,currentTarget:e}}function $u(t,l){for(var e=l+\\\"Capture\\\",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=ya(t,e),a!=null&&n.unshift(Ta(t,a,u)),a=ya(t,l),a!=null&&n.push(Ta(t,a,u))),t.tag===3)return n;t=t.return}return[]}function fg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function O0(t,l,e,n,a){for(var u=l._reactName,i=[];e!==null&&e!==n;){var c=e,f=c.alternate,r=c.stateNode;if(c=c.tag,f!==null&&f===n)break;c!==5&&c!==26&&c!==27||r===null||(f=r,a?(r=ya(e,u),r!=null&&i.unshift(Ta(e,r,f))):a||(r=ya(e,u),r!=null&&i.push(Ta(e,r,f)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var rg=/\\\\r\\\\n?/g,og=/\\\\u0000|\\\\uFFFD/g;function x0(t){return(typeof t==\\\"string\\\"?t:\\\"\\\"+t).replace(rg,`\\n`).replace(og,\\\"\\\")}function bh(t,l){return l=x0(l),x0(t)===l}function L(t,l,e,n,a,u){switch(e){case\\\"children\\\":typeof n==\\\"string\\\"?l===\\\"body\\\"||l===\\\"textarea\\\"&&n===\\\"\\\"||En(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&l!==\\\"body\\\"&&En(t,\\\"\\\"+n);break;case\\\"className\\\":tu(t,\\\"class\\\",n);break;case\\\"tabIndex\\\":tu(t,\\\"tabindex\\\",n);break;case\\\"dir\\\":case\\\"role\\\":case\\\"viewBox\\\":case\\\"width\\\":case\\\"height\\\":tu(t,e,n);break;case\\\"style\\\":ps(t,n,u);break;case\\\"data\\\":if(l!==\\\"object\\\"){tu(t,\\\"data\\\",n);break}case\\\"src\\\":case\\\"href\\\":if(n===\\\"\\\"&&(l!==\\\"a\\\"||e!==\\\"href\\\")){t.removeAttribute(e);break}if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(e);break}n=du(\\\"\\\"+n),t.setAttribute(e,n);break;case\\\"action\\\":case\\\"formAction\\\":if(typeof n==\\\"function\\\"){t.setAttribute(e,\\\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\\\");break}else typeof u==\\\"function\\\"&&(e===\\\"formAction\\\"?(l!==\\\"input\\\"&&L(t,l,\\\"name\\\",a.name,a,null),L(t,l,\\\"formEncType\\\",a.formEncType,a,null),L(t,l,\\\"formMethod\\\",a.formMethod,a,null),L(t,l,\\\"formTarget\\\",a.formTarget,a,null)):(L(t,l,\\\"encType\\\",a.encType,a,null),L(t,l,\\\"method\\\",a.method,a,null),L(t,l,\\\"target\\\",a.target,a,null)));if(n==null||typeof n==\\\"symbol\\\"||typeof n==\\\"boolean\\\"){t.removeAttribute(e);break}n=du(\\\"\\\"+n),t.setAttribute(e,n);break;case\\\"onClick\\\":n!=null&&(t.onclick=Bl);break;case\\\"onScroll\\\":n!=null&&x(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&x(\\\"scrollend\\\",t);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(S(61));if(e=n.__html,e!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=e}}break;case\\\"multiple\\\":t.multiple=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"muted\\\":t.muted=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\";break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"defaultValue\\\":case\\\"defaultChecked\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"autoFocus\\\":break;case\\\"xlinkHref\\\":if(n==null||typeof n==\\\"function\\\"||typeof n==\\\"boolean\\\"||typeof n==\\\"symbol\\\"){t.removeAttribute(\\\"xlink:href\\\");break}e=du(\\\"\\\"+n),t.setAttributeNS(\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:href\\\",e);break;case\\\"contentEditable\\\":case\\\"spellCheck\\\":case\\\"draggable\\\":case\\\"value\\\":case\\\"autoReverse\\\":case\\\"externalResourcesRequired\\\":case\\\"focusable\\\":case\\\"preserveAlpha\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,\\\"\\\"+n):t.removeAttribute(e);break;case\\\"inert\\\":case\\\"allowFullScreen\\\":case\\\"async\\\":case\\\"autoPlay\\\":case\\\"controls\\\":case\\\"default\\\":case\\\"defer\\\":case\\\"disabled\\\":case\\\"disablePictureInPicture\\\":case\\\"disableRemotePlayback\\\":case\\\"formNoValidate\\\":case\\\"hidden\\\":case\\\"loop\\\":case\\\"noModule\\\":case\\\"noValidate\\\":case\\\"open\\\":case\\\"playsInline\\\":case\\\"readOnly\\\":case\\\"required\\\":case\\\"reversed\\\":case\\\"scoped\\\":case\\\"seamless\\\":case\\\"itemScope\\\":n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,\\\"\\\"):t.removeAttribute(e);break;case\\\"capture\\\":case\\\"download\\\":n===!0?t.setAttribute(e,\\\"\\\"):n!==!1&&n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"?t.setAttribute(e,n):t.removeAttribute(e);break;case\\\"cols\\\":case\\\"rows\\\":case\\\"size\\\":case\\\"span\\\":n!=null&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\"&&!isNaN(n)&&1<=n?t.setAttribute(e,n):t.removeAttribute(e);break;case\\\"rowSpan\\\":case\\\"start\\\":n==null||typeof n==\\\"function\\\"||typeof n==\\\"symbol\\\"||isNaN(n)?t.removeAttribute(e):t.setAttribute(e,n);break;case\\\"popover\\\":x(\\\"beforetoggle\\\",t),x(\\\"toggle\\\",t),mu(t,\\\"popover\\\",n);break;case\\\"xlinkActuate\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:actuate\\\",n);break;case\\\"xlinkArcrole\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:arcrole\\\",n);break;case\\\"xlinkRole\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:role\\\",n);break;case\\\"xlinkShow\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:show\\\",n);break;case\\\"xlinkTitle\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:title\\\",n);break;case\\\"xlinkType\\\":Sl(t,\\\"http://www.w3.org/1999/xlink\\\",\\\"xlink:type\\\",n);break;case\\\"xmlBase\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:base\\\",n);break;case\\\"xmlLang\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:lang\\\",n);break;case\\\"xmlSpace\\\":Sl(t,\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"xml:space\\\",n);break;case\\\"is\\\":mu(t,\\\"is\\\",n);break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:(!(2<e.length)||e[0]!==\\\"o\\\"&&e[0]!==\\\"O\\\"||e[1]!==\\\"n\\\"&&e[1]!==\\\"N\\\")&&(e=Xm.get(e)||e,mu(t,e,n))}}function mf(t,l,e,n,a,u){switch(e){case\\\"style\\\":ps(t,n,u);break;case\\\"dangerouslySetInnerHTML\\\":if(n!=null){if(typeof n!=\\\"object\\\"||!(\\\"__html\\\"in n))throw Error(S(61));if(e=n.__html,e!=null){if(a.children!=null)throw Error(S(60));t.innerHTML=e}}break;case\\\"children\\\":typeof n==\\\"string\\\"?En(t,n):(typeof n==\\\"number\\\"||typeof n==\\\"bigint\\\")&&En(t,\\\"\\\"+n);break;case\\\"onScroll\\\":n!=null&&x(\\\"scroll\\\",t);break;case\\\"onScrollEnd\\\":n!=null&&x(\\\"scrollend\\\",t);break;case\\\"onClick\\\":n!=null&&(t.onclick=Bl);break;case\\\"suppressContentEditableWarning\\\":case\\\"suppressHydrationWarning\\\":case\\\"innerHTML\\\":case\\\"ref\\\":break;case\\\"innerText\\\":case\\\"textContent\\\":break;default:if(!hs.hasOwnProperty(e))t:{if(e[0]===\\\"o\\\"&&e[1]===\\\"n\\\"&&(a=e.endsWith(\\\"Capture\\\"),l=e.slice(2,a?e.length-7:void 0),u=t[Ut]||null,u=u!=null?u[e]:null,typeof u==\\\"function\\\"&&t.removeEventListener(l,u,a),typeof n==\\\"function\\\")){typeof u!=\\\"function\\\"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,n,a);break t}e in t?t[e]=n:n===!0?t.setAttribute(e,\\\"\\\"):mu(t,e,n)}}}function gt(t,l,e){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"img\\\":x(\\\"error\\\",t),x(\\\"load\\\",t);var n=!1,a=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case\\\"src\\\":n=!0;break;case\\\"srcSet\\\":a=!0;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:L(t,l,u,i,e,null)}}a&&L(t,l,\\\"srcSet\\\",e.srcSet,e,null),n&&L(t,l,\\\"src\\\",e.src,e,null);return;case\\\"input\\\":x(\\\"invalid\\\",t);var c=u=i=a=null,f=null,r=null;for(n in e)if(e.hasOwnProperty(n)){var m=e[n];if(m!=null)switch(n){case\\\"name\\\":a=m;break;case\\\"type\\\":i=m;break;case\\\"checked\\\":f=m;break;case\\\"defaultChecked\\\":r=m;break;case\\\"value\\\":u=m;break;case\\\"defaultValue\\\":c=m;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(m!=null)throw Error(S(137,l));break;default:L(t,l,n,m,e,null)}}ds(t,u,c,f,r,i,a,!1);return;case\\\"select\\\":x(\\\"invalid\\\",t),n=i=u=null;for(a in e)if(e.hasOwnProperty(a)&&(c=e[a],c!=null))switch(a){case\\\"value\\\":u=c;break;case\\\"defaultValue\\\":i=c;break;case\\\"multiple\\\":n=c;default:L(t,l,a,c,e,null)}l=u,e=i,t.multiple=!!n,l!=null?hn(t,!!n,l,!1):e!=null&&hn(t,!!n,e,!0);return;case\\\"textarea\\\":x(\\\"invalid\\\",t),u=a=n=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case\\\"value\\\":n=c;break;case\\\"defaultValue\\\":a=c;break;case\\\"children\\\":u=c;break;case\\\"dangerouslySetInnerHTML\\\":if(c!=null)throw Error(S(91));break;default:L(t,l,i,c,e,null)}vs(t,n,a,u);return;case\\\"option\\\":for(f in e)e.hasOwnProperty(f)&&(n=e[f],n!=null)&&(f===\\\"selected\\\"?t.selected=n&&typeof n!=\\\"function\\\"&&typeof n!=\\\"symbol\\\":L(t,l,f,n,e,null));return;case\\\"dialog\\\":x(\\\"beforetoggle\\\",t),x(\\\"toggle\\\",t),x(\\\"cancel\\\",t),x(\\\"close\\\",t);break;case\\\"iframe\\\":case\\\"object\\\":x(\\\"load\\\",t);break;case\\\"video\\\":case\\\"audio\\\":for(n=0;n<ba.length;n++)x(ba[n],t);break;case\\\"image\\\":x(\\\"error\\\",t),x(\\\"load\\\",t);break;case\\\"details\\\":x(\\\"toggle\\\",t);break;case\\\"embed\\\":case\\\"source\\\":case\\\"link\\\":x(\\\"error\\\",t),x(\\\"load\\\",t);case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(r in e)if(e.hasOwnProperty(r)&&(n=e[r],n!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":throw Error(S(137,l));default:L(t,l,r,n,e,null)}return;default:if(Of(l)){for(m in e)e.hasOwnProperty(m)&&(n=e[m],n!==void 0&&mf(t,l,m,n,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(n=e[c],n!=null&&L(t,l,c,n,e,null))}function sg(t,l,e,n){switch(l){case\\\"div\\\":case\\\"span\\\":case\\\"svg\\\":case\\\"path\\\":case\\\"a\\\":case\\\"g\\\":case\\\"p\\\":case\\\"li\\\":break;case\\\"input\\\":var a=null,u=null,i=null,c=null,f=null,r=null,m=null;for(y in e){var g=e[y];if(e.hasOwnProperty(y)&&g!=null)switch(y){case\\\"checked\\\":break;case\\\"value\\\":break;case\\\"defaultValue\\\":f=g;default:n.hasOwnProperty(y)||L(t,l,y,null,n,g)}}for(var d in n){var y=n[d];if(g=e[d],n.hasOwnProperty(d)&&(y!=null||g!=null))switch(d){case\\\"type\\\":u=y;break;case\\\"name\\\":a=y;break;case\\\"checked\\\":r=y;break;case\\\"defaultChecked\\\":m=y;break;case\\\"value\\\":i=y;break;case\\\"defaultValue\\\":c=y;break;case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(y!=null)throw Error(S(137,l));break;default:y!==g&&L(t,l,d,y,n,g)}}Yc(t,i,c,f,r,m,u,a);return;case\\\"select\\\":y=i=c=d=null;for(u in e)if(f=e[u],e.hasOwnProperty(u)&&f!=null)switch(u){case\\\"value\\\":break;case\\\"multiple\\\":y=f;default:n.hasOwnProperty(u)||L(t,l,u,null,n,f)}for(a in n)if(u=n[a],f=e[a],n.hasOwnProperty(a)&&(u!=null||f!=null))switch(a){case\\\"value\\\":d=u;break;case\\\"defaultValue\\\":c=u;break;case\\\"multiple\\\":i=u;default:u!==f&&L(t,l,a,u,n,f)}l=c,e=i,n=y,d!=null?hn(t,!!e,d,!1):!!n!=!!e&&(l!=null?hn(t,!!e,l,!0):hn(t,!!e,e?[]:\\\"\\\",!1));return;case\\\"textarea\\\":y=d=null;for(c in e)if(a=e[c],e.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case\\\"value\\\":break;case\\\"children\\\":break;default:L(t,l,c,null,n,a)}for(i in n)if(a=n[i],u=e[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case\\\"value\\\":d=a;break;case\\\"defaultValue\\\":y=a;break;case\\\"children\\\":break;case\\\"dangerouslySetInnerHTML\\\":if(a!=null)throw Error(S(91));break;default:a!==u&&L(t,l,i,a,n,u)}gs(t,d,y);return;case\\\"option\\\":for(var E in e)d=e[E],e.hasOwnProperty(E)&&d!=null&&!n.hasOwnProperty(E)&&(E===\\\"selected\\\"?t.selected=!1:L(t,l,E,null,n,d));for(f in n)d=n[f],y=e[f],n.hasOwnProperty(f)&&d!==y&&(d!=null||y!=null)&&(f===\\\"selected\\\"?t.selected=d&&typeof d!=\\\"function\\\"&&typeof d!=\\\"symbol\\\":L(t,l,f,d,n,y));return;case\\\"img\\\":case\\\"link\\\":case\\\"area\\\":case\\\"base\\\":case\\\"br\\\":case\\\"col\\\":case\\\"embed\\\":case\\\"hr\\\":case\\\"keygen\\\":case\\\"meta\\\":case\\\"param\\\":case\\\"source\\\":case\\\"track\\\":case\\\"wbr\\\":case\\\"menuitem\\\":for(var b in e)d=e[b],e.hasOwnProperty(b)&&d!=null&&!n.hasOwnProperty(b)&&L(t,l,b,null,n,d);for(r in n)if(d=n[r],y=e[r],n.hasOwnProperty(r)&&d!==y&&(d!=null||y!=null))switch(r){case\\\"children\\\":case\\\"dangerouslySetInnerHTML\\\":if(d!=null)throw Error(S(137,l));break;default:L(t,l,r,d,n,y)}return;default:if(Of(l)){for(var q in e)d=e[q],e.hasOwnProperty(q)&&d!==void 0&&!n.hasOwnProperty(q)&&mf(t,l,q,void 0,n,d);for(m in n)d=n[m],y=e[m],!n.hasOwnProperty(m)||d===y||d===void 0&&y===void 0||mf(t,l,m,d,n,y);return}}for(var s in e)d=e[s],e.hasOwnProperty(s)&&d!=null&&!n.hasOwnProperty(s)&&L(t,l,s,null,n,d);for(g in n)d=n[g],y=e[g],!n.hasOwnProperty(g)||d===y||d==null&&y==null||L(t,l,g,d,n,y)}function D0(t){switch(t){case\\\"css\\\":case\\\"script\\\":case\\\"font\\\":case\\\"img\\\":case\\\"image\\\":case\\\"input\\\":case\\\"link\\\":return!0;default:return!1}}function hg(){if(typeof performance.getEntriesByType==\\\"function\\\"){for(var t=0,l=0,e=performance.getEntriesByType(\\\"resource\\\"),n=0;n<e.length;n++){var a=e[n],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&D0(i)){for(i=0,c=a.responseEnd,n+=1;n<e.length;n++){var f=e[n],r=f.startTime;if(r>c)break;var m=f.transferSize,g=f.initiatorType;m&&D0(g)&&(f=f.responseEnd,i+=m*(f<c?1:(c-r)/(f-r)))}if(--n,l+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t==\\\"number\\\")?t:5}var df=null,gf=null;function Iu(t){return t.nodeType===9?t:t.ownerDocument}function R0(t){switch(t){case\\\"http://www.w3.org/2000/svg\\\":return 1;case\\\"http://www.w3.org/1998/Math/MathML\\\":return 2;default:return 0}}function Th(t,l){if(t===0)switch(l){case\\\"svg\\\":return 1;case\\\"math\\\":return 2;default:return 0}return t===1&&l===\\\"foreignObject\\\"?0:t}function vf(t,l){return t===\\\"textarea\\\"||t===\\\"noscript\\\"||typeof l.children==\\\"string\\\"||typeof l.children==\\\"number\\\"||typeof l.children==\\\"bigint\\\"||typeof l.dangerouslySetInnerHTML==\\\"object\\\"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var _c=null;function yg(){var t=window.event;return t&&t.type===\\\"popstate\\\"?t===_c?!1:(_c=t,!0):(_c=null,!1)}var Ah=typeof setTimeout==\\\"function\\\"?setTimeout:void 0,mg=typeof clearTimeout==\\\"function\\\"?clearTimeout:void 0,C0=typeof Promise==\\\"function\\\"?Promise:void 0,dg=typeof queueMicrotask==\\\"function\\\"?queueMicrotask:typeof C0<\\\"u\\\"?function(t){return C0.resolve(null).then(t).catch(gg)}:Ah;function gg(t){setTimeout(function(){throw t})}function ye(t){return t===\\\"head\\\"}function w0(t,l){var e=l,n=0;do{var a=e.nextSibling;if(t.removeChild(e),a&&a.nodeType===8)if(e=a.data,e===\\\"/$\\\"||e===\\\"/&\\\"){if(n===0){t.removeChild(a),Mn(l);return}n--}else if(e===\\\"$\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"$!\\\"||e===\\\"&\\\")n++;else if(e===\\\"html\\\")sa(t.ownerDocument.documentElement);else if(e===\\\"head\\\"){e=t.ownerDocument.head,sa(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Oa]||c===\\\"SCRIPT\\\"||c===\\\"STYLE\\\"||c===\\\"LINK\\\"&&u.rel.toLowerCase()===\\\"stylesheet\\\"||e.removeChild(u),u=i}}else e===\\\"body\\\"&&sa(t.ownerDocument.body);e=a}while(e);Mn(l)}function H0(t,l){var e=t;t=0;do{var n=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display=\\\"none\\\"):(e.style.display=e._stashedDisplay||\\\"\\\",e.getAttribute(\\\"style\\\")===\\\"\\\"&&e.removeAttribute(\\\"style\\\")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=\\\"\\\"):e.nodeValue=e._stashedText||\\\"\\\"),n&&n.nodeType===8)if(e=n.data,e===\\\"/$\\\"){if(t===0)break;t--}else e!==\\\"$\\\"&&e!==\\\"$?\\\"&&e!==\\\"$~\\\"&&e!==\\\"$!\\\"||t++;e=n}while(e)}function pf(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case\\\"HTML\\\":case\\\"HEAD\\\":case\\\"BODY\\\":pf(e),Uf(e);continue;case\\\"SCRIPT\\\":case\\\"STYLE\\\":continue;case\\\"LINK\\\":if(e.rel.toLowerCase()===\\\"stylesheet\\\")continue}t.removeChild(e)}}function vg(t,l,e,n){for(;t.nodeType===1;){var a=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!n&&(t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\"))break}else if(n){if(!t[Oa])switch(l){case\\\"meta\\\":if(!t.hasAttribute(\\\"itemprop\\\"))break;return t;case\\\"link\\\":if(u=t.getAttribute(\\\"rel\\\"),u===\\\"stylesheet\\\"&&t.hasAttribute(\\\"data-precedence\\\"))break;if(u!==a.rel||t.getAttribute(\\\"href\\\")!==(a.href==null||a.href===\\\"\\\"?null:a.href)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute(\\\"title\\\")!==(a.title==null?null:a.title))break;return t;case\\\"style\\\":if(t.hasAttribute(\\\"data-precedence\\\"))break;return t;case\\\"script\\\":if(u=t.getAttribute(\\\"src\\\"),(u!==(a.src==null?null:a.src)||t.getAttribute(\\\"type\\\")!==(a.type==null?null:a.type)||t.getAttribute(\\\"crossorigin\\\")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute(\\\"async\\\")&&!t.hasAttribute(\\\"itemprop\\\"))break;return t;default:return t}}else if(l===\\\"input\\\"&&t.type===\\\"hidden\\\"){var u=a.name==null?null:\\\"\\\"+a.name;if(a.type===\\\"hidden\\\"&&t.getAttribute(\\\"name\\\")===u)return t}else return t;if(t=tl(t.nextSibling),t===null)break}return null}function pg(t,l,e){if(l===\\\"\\\")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!e||(t=tl(t.nextSibling),t===null))return null;return t}function Nh(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!==\\\"INPUT\\\"||t.type!==\\\"hidden\\\")&&!l||(t=tl(t.nextSibling),t===null))return null;return t}function Sf(t){return t.data===\\\"$?\\\"||t.data===\\\"$~\\\"}function Ef(t){return t.data===\\\"$!\\\"||t.data===\\\"$?\\\"&&t.ownerDocument.readyState!==\\\"loading\\\"}function Sg(t,l){var e=t.ownerDocument;if(t.data===\\\"$~\\\")t._reactRetry=l;else if(t.data!==\\\"$?\\\"||e.readyState!==\\\"loading\\\")l();else{var n=function(){l(),e.removeEventListener(\\\"DOMContentLoaded\\\",n)};e.addEventListener(\\\"DOMContentLoaded\\\",n),t._reactRetry=n}}function tl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l===\\\"$\\\"||l===\\\"$!\\\"||l===\\\"$?\\\"||l===\\\"$~\\\"||l===\\\"&\\\"||l===\\\"F!\\\"||l===\\\"F\\\")break;if(l===\\\"/$\\\"||l===\\\"/&\\\")return null}}return t}var bf=null;function q0(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e===\\\"/$\\\"||e===\\\"/&\\\"){if(l===0)return tl(t.nextSibling);l--}else e!==\\\"$\\\"&&e!==\\\"$!\\\"&&e!==\\\"$?\\\"&&e!==\\\"$~\\\"&&e!==\\\"&\\\"||l++}t=t.nextSibling}return null}function Y0(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e===\\\"$\\\"||e===\\\"$!\\\"||e===\\\"$?\\\"||e===\\\"$~\\\"||e===\\\"&\\\"){if(l===0)return t;l--}else e!==\\\"/$\\\"&&e!==\\\"/&\\\"||l++}t=t.previousSibling}return null}function zh(t,l,e){switch(l=Iu(e),t){case\\\"html\\\":if(t=l.documentElement,!t)throw Error(S(452));return t;case\\\"head\\\":if(t=l.head,!t)throw Error(S(453));return t;case\\\"body\\\":if(t=l.body,!t)throw Error(S(454));return t;default:throw Error(S(451))}}function sa(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Uf(t)}var ll=new Map,G0=new Set;function Pu(t){return typeof t.getRootNode==\\\"function\\\"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ql=G.d;G.d={f:Eg,r:bg,D:Tg,C:Ag,L:Ng,m:zg,X:Bg,S:_g,M:Mg};function Eg(){var t=ql.f(),l=gi();return t||l}function bg(t){var l=On(t);l!==null&&l.tag===5&&l.type===\\\"form\\\"?p1(l):ql.r(t)}var Cn=typeof document>\\\"u\\\"?null:document;function _h(t,l,e){var n=Cn;if(n&&typeof l==\\\"string\\\"&&l){var a=kt(l);a='link[rel=\\\"'+t+'\\\"][href=\\\"'+a+'\\\"]',typeof e==\\\"string\\\"&&(a+='[crossorigin=\\\"'+e+'\\\"]'),G0.has(a)||(G0.add(a),t={rel:t,crossOrigin:e,href:l},n.querySelector(a)===null&&(l=n.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),ot(l),n.head.appendChild(l)))}}function Tg(t){ql.D(t),_h(\\\"dns-prefetch\\\",t,null)}function Ag(t,l){ql.C(t,l),_h(\\\"preconnect\\\",t,l)}function Ng(t,l,e){ql.L(t,l,e);var n=Cn;if(n&&t&&l){var a='link[rel=\\\"preload\\\"][as=\\\"'+kt(l)+'\\\"]';l===\\\"image\\\"&&e&&e.imageSrcSet?(a+='[imagesrcset=\\\"'+kt(e.imageSrcSet)+'\\\"]',typeof e.imageSizes==\\\"string\\\"&&(a+='[imagesizes=\\\"'+kt(e.imageSizes)+'\\\"]')):a+='[href=\\\"'+kt(t)+'\\\"]';var u=a;switch(l){case\\\"style\\\":u=Bn(t);break;case\\\"script\\\":u=wn(t)}ll.has(u)||(t=W({rel:\\\"preload\\\",href:l===\\\"image\\\"&&e&&e.imageSrcSet?void 0:t,as:l},e),ll.set(u,t),n.querySelector(a)!==null||l===\\\"style\\\"&&n.querySelector(Ha(u))||l===\\\"script\\\"&&n.querySelector(qa(u))||(l=n.createElement(\\\"link\\\"),gt(l,\\\"link\\\",t),ot(l),n.head.appendChild(l)))}}function zg(t,l){ql.m(t,l);var e=Cn;if(e&&t){var n=l&&typeof l.as==\\\"string\\\"?l.as:\\\"script\\\",a='link[rel=\\\"modulepreload\\\"][as=\\\"'+kt(n)+'\\\"][href=\\\"'+kt(t)+'\\\"]',u=a;switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":u=wn(t)}if(!ll.has(u)&&(t=W({rel:\\\"modulepreload\\\",href:t},l),ll.set(u,t),e.querySelector(a)===null)){switch(n){case\\\"audioworklet\\\":case\\\"paintworklet\\\":case\\\"serviceworker\\\":case\\\"sharedworker\\\":case\\\"worker\\\":case\\\"script\\\":if(e.querySelector(qa(u)))return}n=e.createElement(\\\"link\\\"),gt(n,\\\"link\\\",t),ot(n),e.head.appendChild(n)}}}function _g(t,l,e){ql.S(t,l,e);var n=Cn;if(n&&t){var a=sn(n).hoistableStyles,u=Bn(t);l=l||\\\"default\\\";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=n.querySelector(Ha(u)))c.loading=5;else{t=W({rel:\\\"stylesheet\\\",href:t,\\\"data-precedence\\\":l},e),(e=ll.get(u))&&mr(t,e);var f=i=n.createElement(\\\"link\\\");ot(f),gt(f,\\\"link\\\",t),f._p=new Promise(function(r,m){f.onload=r,f.onerror=m}),f.addEventListener(\\\"load\\\",function(){c.loading|=1}),f.addEventListener(\\\"error\\\",function(){c.loading|=2}),c.loading|=4,zu(i,l,n)}i={type:\\\"stylesheet\\\",instance:i,count:1,state:c},a.set(u,i)}}}function Bg(t,l){ql.X(t,l);var e=Cn;if(e&&t){var n=sn(e).hoistableScripts,a=wn(t),u=n.get(a);u||(u=e.querySelector(qa(a)),u||(t=W({src:t,async:!0},l),(l=ll.get(a))&&dr(t,l),u=e.createElement(\\\"script\\\"),ot(u),gt(u,\\\"link\\\",t),e.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},n.set(a,u))}}function Mg(t,l){ql.M(t,l);var e=Cn;if(e&&t){var n=sn(e).hoistableScripts,a=wn(t),u=n.get(a);u||(u=e.querySelector(qa(a)),u||(t=W({src:t,async:!0,type:\\\"module\\\"},l),(l=ll.get(a))&&dr(t,l),u=e.createElement(\\\"script\\\"),ot(u),gt(u,\\\"link\\\",t),e.head.appendChild(u)),u={type:\\\"script\\\",instance:u,count:1,state:null},n.set(a,u))}}function X0(t,l,e,n){var a=(a=Pl.current)?Pu(a):null;if(!a)throw Error(S(446));switch(t){case\\\"meta\\\":case\\\"title\\\":return null;case\\\"style\\\":return typeof e.precedence==\\\"string\\\"&&typeof e.href==\\\"string\\\"?(l=Bn(e.href),e=sn(a).hoistableStyles,n=e.get(l),n||(n={type:\\\"style\\\",instance:null,count:0,state:null},e.set(l,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};case\\\"link\\\":if(e.rel===\\\"stylesheet\\\"&&typeof e.href==\\\"string\\\"&&typeof e.precedence==\\\"string\\\"){t=Bn(e.href);var u=sn(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:\\\"stylesheet\\\",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(Ha(t)))&&!u._p&&(i.instance=u,i.state.loading=5),ll.has(t)||(e={rel:\\\"preload\\\",as:\\\"style\\\",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},ll.set(t,e),u||Ug(a,t,e,i.state))),l&&n===null)throw Error(S(528,\\\"\\\"));return i}if(l&&n!==null)throw Error(S(529,\\\"\\\"));return null;case\\\"script\\\":return l=e.async,e=e.src,typeof e==\\\"string\\\"&&l&&typeof l!=\\\"function\\\"&&typeof l!=\\\"symbol\\\"?(l=wn(e),e=sn(a).hoistableScripts,n=e.get(l),n||(n={type:\\\"script\\\",instance:null,count:0,state:null},e.set(l,n)),n):{type:\\\"void\\\",instance:null,count:0,state:null};default:throw Error(S(444,t))}}function Bn(t){return'href=\\\"'+kt(t)+'\\\"'}function Ha(t){return'link[rel=\\\"stylesheet\\\"]['+t+\\\"]\\\"}function Bh(t){return W({},t,{\\\"data-precedence\\\":t.precedence,precedence:null})}function Ug(t,l,e,n){t.querySelector('link[rel=\\\"preload\\\"][as=\\\"style\\\"]['+l+\\\"]\\\")?n.loading=1:(l=t.createElement(\\\"link\\\"),n.preload=l,l.addEventListener(\\\"load\\\",function(){return n.loading|=1}),l.addEventListener(\\\"error\\\",function(){return n.loading|=2}),gt(l,\\\"link\\\",e),ot(l),t.head.appendChild(l))}function wn(t){return'[src=\\\"'+kt(t)+'\\\"]'}function qa(t){return\\\"script[async]\\\"+t}function Q0(t,l,e){if(l.count++,l.instance===null)switch(l.type){case\\\"style\\\":var n=t.querySelector('style[data-href~=\\\"'+kt(e.href)+'\\\"]');if(n)return l.instance=n,ot(n),n;var a=W({},e,{\\\"data-href\\\":e.href,\\\"data-precedence\\\":e.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement(\\\"style\\\"),ot(n),gt(n,\\\"style\\\",a),zu(n,e.precedence,t),l.instance=n;case\\\"stylesheet\\\":a=Bn(e.href);var u=t.querySelector(Ha(a));if(u)return l.state.loading|=4,l.instance=u,ot(u),u;n=Bh(e),(a=ll.get(a))&&mr(n,a),u=(t.ownerDocument||t).createElement(\\\"link\\\"),ot(u);var i=u;return i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",n),l.state.loading|=4,zu(u,e.precedence,t),l.instance=u;case\\\"script\\\":return u=wn(e.src),(a=t.querySelector(qa(u)))?(l.instance=a,ot(a),a):(n=e,(a=ll.get(u))&&(n=W({},e),dr(n,a)),t=t.ownerDocument||t,a=t.createElement(\\\"script\\\"),ot(a),gt(a,\\\"link\\\",n),t.head.appendChild(a),l.instance=a);case\\\"void\\\":return null;default:throw Error(S(443,l.type))}else l.type===\\\"stylesheet\\\"&&(l.state.loading&4)===0&&(n=l.instance,l.state.loading|=4,zu(n,e.precedence,t));return l.instance}function zu(t,l,e){for(var n=e.querySelectorAll('link[rel=\\\"stylesheet\\\"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var c=n[i];if(c.dataset.precedence===l)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function mr(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function dr(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var _u=null;function L0(t,l,e){if(_u===null){var n=new Map,a=_u=new Map;a.set(e,n)}else a=_u,n=a.get(e),n||(n=new Map,a.set(e,n));if(n.has(t))return n;for(n.set(t,null),e=e.getElementsByTagName(t),a=0;a<e.length;a++){var u=e[a];if(!(u[Oa]||u[yt]||t===\\\"link\\\"&&u.getAttribute(\\\"rel\\\")===\\\"stylesheet\\\")&&u.namespaceURI!==\\\"http://www.w3.org/2000/svg\\\"){var i=u.getAttribute(l)||\\\"\\\";i=t+i;var c=n.get(i);c?c.push(u):n.set(i,[u])}}return n}function j0(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l===\\\"title\\\"?t.querySelector(\\\"head > title\\\"):null)}function Og(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case\\\"meta\\\":case\\\"title\\\":return!0;case\\\"style\\\":if(typeof l.precedence!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\")break;return!0;case\\\"link\\\":if(typeof l.rel!=\\\"string\\\"||typeof l.href!=\\\"string\\\"||l.href===\\\"\\\"||l.onLoad||l.onError)break;return l.rel===\\\"stylesheet\\\"?(t=l.disabled,typeof l.precedence==\\\"string\\\"&&t==null):!0;case\\\"script\\\":if(l.async&&typeof l.async!=\\\"function\\\"&&typeof l.async!=\\\"symbol\\\"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src==\\\"string\\\")return!0}return!1}function Mh(t){return!(t.type===\\\"stylesheet\\\"&&(t.state.loading&3)===0)}function xg(t,l,e,n){if(e.type===\\\"stylesheet\\\"&&(typeof n.media!=\\\"string\\\"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Bn(n.href),u=l.querySelector(Ha(a));if(u){l=u._p,l!==null&&typeof l==\\\"object\\\"&&typeof l.then==\\\"function\\\"&&(t.count++,t=ti.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,ot(u);return}u=l.ownerDocument||l,n=Bh(n),(a=ll.get(a))&&mr(n,a),u=u.createElement(\\\"link\\\"),ot(u);var i=u;i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),gt(u,\\\"link\\\",n),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=ti.bind(t),l.addEventListener(\\\"load\\\",e),l.addEventListener(\\\"error\\\",e))}}var Bc=0;function Dg(t,l){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var n=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&Bc===0&&(Bc=62500*hg());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Bc?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var li=null;function Bu(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,li=new Map,l.forEach(Rg,t),li=null,ti.call(t))}function Rg(t,l){if(!(l.state.loading&4)){var e=li.get(t);if(e)var n=e.get(null);else{e=new Map,li.set(t,e);for(var a=t.querySelectorAll(\\\"link[data-precedence],style[data-precedence]\\\"),u=0;u<a.length;u++){var i=a[u];(i.nodeName===\\\"LINK\\\"||i.getAttribute(\\\"media\\\")!==\\\"not all\\\")&&(e.set(i.dataset.precedence,i),n=i)}n&&e.set(null,n)}a=l.instance,i=a.getAttribute(\\\"data-precedence\\\"),u=e.get(i)||n,u===n&&e.set(null,a),e.set(i,a),this.count++,n=ti.bind(this),a.addEventListener(\\\"load\\\",n),a.addEventListener(\\\"error\\\",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),l.state.loading|=4}}var Aa={$$typeof:_l,Provider:null,Consumer:null,_currentValue:Te,_currentValue2:Te,_threadCount:0};function Cg(t,l,e,n,a,u,i,c,f){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pi(0),this.hiddenUpdates=Pi(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Uh(t,l,e,n,a,u,i,c,f,r,m,g){return t=new Cg(t,l,e,i,f,r,m,g,c),l=1,u===!0&&(l|=24),u=Ht(3,null,null,l),t.current=u,u.stateNode=t,l=Qf(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:n,isDehydrated:e,cache:l},Zf(u),t}function Oh(t){return t?(t=cn,t):cn}function xh(t,l,e,n,a,u){a=Oh(a),n.context===null?n.context=a:n.pendingContext=a,n=le(l),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=ee(t,n,l),e!==null&&(Mt(e,t,l),na(e,t,l))}function Z0(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function gr(t,l){Z0(t,l),(t=t.alternate)&&Z0(t,l)}function Dh(t){if(t.tag===13||t.tag===31){var l=we(t,67108864);l!==null&&Mt(l,t,67108864),gr(t,67108864)}}function V0(t){if(t.tag===13||t.tag===31){var l=Qt();l=Bf(l);var e=we(t,l);e!==null&&Mt(e,t,l),gr(t,l)}}var ei=!0;function wg(t,l,e,n){var a=N.T;N.T=null;var u=G.p;try{G.p=2,vr(t,l,e,n)}finally{G.p=u,N.T=a}}function Hg(t,l,e,n){var a=N.T;N.T=null;var u=G.p;try{G.p=8,vr(t,l,e,n)}finally{G.p=u,N.T=a}}function vr(t,l,e,n){if(ei){var a=Tf(n);if(a===null)zc(t,l,n,ni,e),K0(t,n);else if(Yg(a,t,l,e,n))n.stopPropagation();else if(K0(t,n),l&4&&-1<qg.indexOf(t)){for(;a!==null;){var u=On(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Se(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var f=1<<31-Xt(i);c.entanglements[1]|=f,i&=~f}dl(u),(Y&6)===0&&(Ku=Yt()+500,wa(0,!1))}}break;case 31:case 13:c=we(u,2),c!==null&&Mt(c,u,2),gi(),gr(u,2)}if(u=Tf(n),u===null&&zc(t,l,n,ni,e),u===a)break;a=u}a!==null&&n.stopPropagation()}else zc(t,l,n,null,e)}}function Tf(t){return t=xf(t),pr(t)}var ni=null;function pr(t){if(ni=null,t=tn(t),t!==null){var l=_a(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=I0(l),t!==null)return t;t=null}else if(e===31){if(t=P0(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return ni=t,null}function Rh(t){switch(t){case\\\"beforetoggle\\\":case\\\"cancel\\\":case\\\"click\\\":case\\\"close\\\":case\\\"contextmenu\\\":case\\\"copy\\\":case\\\"cut\\\":case\\\"auxclick\\\":case\\\"dblclick\\\":case\\\"dragend\\\":case\\\"dragstart\\\":case\\\"drop\\\":case\\\"focusin\\\":case\\\"focusout\\\":case\\\"input\\\":case\\\"invalid\\\":case\\\"keydown\\\":case\\\"keypress\\\":case\\\"keyup\\\":case\\\"mousedown\\\":case\\\"mouseup\\\":case\\\"paste\\\":case\\\"pause\\\":case\\\"play\\\":case\\\"pointercancel\\\":case\\\"pointerdown\\\":case\\\"pointerup\\\":case\\\"ratechange\\\":case\\\"reset\\\":case\\\"resize\\\":case\\\"seeked\\\":case\\\"submit\\\":case\\\"toggle\\\":case\\\"touchcancel\\\":case\\\"touchend\\\":case\\\"touchstart\\\":case\\\"volumechange\\\":case\\\"change\\\":case\\\"selectionchange\\\":case\\\"textInput\\\":case\\\"compositionstart\\\":case\\\"compositionend\\\":case\\\"compositionupdate\\\":case\\\"beforeblur\\\":case\\\"afterblur\\\":case\\\"beforeinput\\\":case\\\"blur\\\":case\\\"fullscreenchange\\\":case\\\"focus\\\":case\\\"hashchange\\\":case\\\"popstate\\\":case\\\"select\\\":case\\\"selectstart\\\":return 2;case\\\"drag\\\":case\\\"dragenter\\\":case\\\"dragexit\\\":case\\\"dragleave\\\":case\\\"dragover\\\":case\\\"mousemove\\\":case\\\"mouseout\\\":case\\\"mouseover\\\":case\\\"pointermove\\\":case\\\"pointerout\\\":case\\\"pointerover\\\":case\\\"scroll\\\":case\\\"touchmove\\\":case\\\"wheel\\\":case\\\"mouseenter\\\":case\\\"mouseleave\\\":case\\\"pointerenter\\\":case\\\"pointerleave\\\":return 8;case\\\"message\\\":switch(Nm()){case ns:return 2;case as:return 8;case Du:case zm:return 32;case us:return 268435456;default:return 32}default:return 32}}var Af=!1,ue=null,ie=null,ce=null,Na=new Map,za=new Map,Jl=[],qg=\\\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\\\".split(\\\" \\\");function K0(t,l){switch(t){case\\\"focusin\\\":case\\\"focusout\\\":ue=null;break;case\\\"dragenter\\\":case\\\"dragleave\\\":ie=null;break;case\\\"mouseover\\\":case\\\"mouseout\\\":ce=null;break;case\\\"pointerover\\\":case\\\"pointerout\\\":Na.delete(l.pointerId);break;case\\\"gotpointercapture\\\":case\\\"lostpointercapture\\\":za.delete(l.pointerId)}}function Kn(t,l,e,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},l!==null&&(l=On(l),l!==null&&Dh(l)),t):(t.eventSystemFlags|=n,l=t.targetContainers,a!==null&&l.indexOf(a)===-1&&l.push(a),t)}function Yg(t,l,e,n,a){switch(l){case\\\"focusin\\\":return ue=Kn(ue,t,l,e,n,a),!0;case\\\"dragenter\\\":return ie=Kn(ie,t,l,e,n,a),!0;case\\\"mouseover\\\":return ce=Kn(ce,t,l,e,n,a),!0;case\\\"pointerover\\\":var u=a.pointerId;return Na.set(u,Kn(Na.get(u)||null,t,l,e,n,a)),!0;case\\\"gotpointercapture\\\":return u=a.pointerId,za.set(u,Kn(za.get(u)||null,t,l,e,n,a)),!0}return!1}function Ch(t){var l=tn(t.target);if(l!==null){var e=_a(l);if(e!==null){if(l=e.tag,l===13){if(l=I0(e),l!==null){t.blockedOn=l,Uo(t.priority,function(){V0(e)});return}}else if(l===31){if(l=P0(e),l!==null){t.blockedOn=l,Uo(t.priority,function(){V0(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Mu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=Tf(t.nativeEvent);if(e===null){e=t.nativeEvent;var n=new e.constructor(e.type,e);Xc=n,e.target.dispatchEvent(n),Xc=null}else return l=On(e),l!==null&&Dh(l),t.blockedOn=e,!1;l.shift()}return!0}function J0(t,l,e){Mu(t)&&e.delete(l)}function Gg(){Af=!1,ue!==null&&Mu(ue)&&(ue=null),ie!==null&&Mu(ie)&&(ie=null),ce!==null&&Mu(ce)&&(ce=null),Na.forEach(J0),za.forEach(J0)}function hu(t,l){t.blockedOn===l&&(t.blockedOn=null,Af||(Af=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,Gg)))}var yu=null;function F0(t){yu!==t&&(yu=t,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,function(){yu===t&&(yu=null);for(var l=0;l<t.length;l+=3){var e=t[l],n=t[l+1],a=t[l+2];if(typeof n!=\\\"function\\\"){if(pr(n||e)===null)continue;break}var u=On(e);u!==null&&(t.splice(l,3),l-=3,ef(u,{pending:!0,data:a,method:e.method,action:n},n,a))}}))}function Mn(t){function l(f){return hu(f,t)}ue!==null&&hu(ue,t),ie!==null&&hu(ie,t),ce!==null&&hu(ce,t),Na.forEach(l),za.forEach(l);for(var e=0;e<Jl.length;e++){var n=Jl[e];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Jl.length&&(e=Jl[0],e.blockedOn===null);)Ch(e),e.blockedOn===null&&Jl.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(n=0;n<e.length;n+=3){var a=e[n],u=e[n+1],i=a[Ut]||null;if(typeof u==\\\"function\\\")i||F0(e);else if(i){var c=null;if(u&&u.hasAttribute(\\\"formAction\\\")){if(a=u,i=u[Ut]||null)c=i.formAction;else if(pr(a)!==null)continue}else c=i.action;typeof c==\\\"function\\\"?e[n+1]=c:(e.splice(n,3),n-=3),F0(e)}}}function wh(){function t(u){u.canIntercept&&u.info===\\\"react-transition\\\"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:\\\"manual\\\",scroll:\\\"manual\\\"})}function l(){a!==null&&(a(),a=null),n||setTimeout(e,20)}function e(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:\\\"react-transition\\\",history:\\\"replace\\\"})}}if(typeof navigation==\\\"object\\\"){var n=!1,a=null;return navigation.addEventListener(\\\"navigate\\\",t),navigation.addEventListener(\\\"navigatesuccess\\\",l),navigation.addEventListener(\\\"navigateerror\\\",l),setTimeout(e,100),function(){n=!0,navigation.removeEventListener(\\\"navigate\\\",t),navigation.removeEventListener(\\\"navigatesuccess\\\",l),navigation.removeEventListener(\\\"navigateerror\\\",l),a!==null&&(a(),a=null)}}}function Sr(t){this._internalRoot=t}Si.prototype.render=Sr.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(S(409));var e=l.current,n=Qt();xh(e,n,t,l,null,null)};Si.prototype.unmount=Sr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;xh(t.current,2,null,t,null,null),gi(),l[Un]=null}};function Si(t){this._internalRoot=t}Si.prototype.unstable_scheduleHydration=function(t){if(t){var l=os();t={blockedOn:null,target:t,priority:l};for(var e=0;e<Jl.length&&l!==0&&l<Jl[e].priority;e++);Jl.splice(e,0,t),e===0&&Ch(t)}};var W0=k0.version;if(W0!==\\\"19.2.4\\\")throw Error(S(527,W0,\\\"19.2.4\\\"));G.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render==\\\"function\\\"?Error(S(188)):(t=Object.keys(t).join(\\\",\\\"),Error(S(268,t)));return t=vm(l),t=t!==null?ts(t):null,t=t===null?null:t.stateNode,t};var Xg={bundleType:0,version:\\\"19.2.4\\\",rendererPackageName:\\\"react-dom\\\",currentDispatcherRef:N,reconcilerVersion:\\\"19.2.4\\\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\\\"u\\\"&&(Jn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Jn.isDisabled&&Jn.supportsFiber))try{Ba=Jn.inject(Xg),Gt=Jn}catch{}var Jn;Ei.createRoot=function(t,l){if(!$0(t))throw Error(S(299));var e=!1,n=\\\"\\\",a=_1,u=B1,i=M1;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(a=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=Uh(t,1,!1,null,null,e,n,null,a,u,i,wh),t[Un]=l.current,yr(t),new Sr(l)};Ei.hydrateRoot=function(t,l,e){if(!$0(t))throw Error(S(299));var n=!1,a=\\\"\\\",u=_1,i=B1,c=M1,f=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(f=e.formState)),l=Uh(t,1,!0,l,e??null,n,a,f,u,i,c,wh),l.context=Oh(null),e=l.current,n=Qt(),n=Bf(n),a=le(n),a.callback=null,ee(e,a,n),e=n,l.current.lanes=e,Ua(l,e),dl(l),t[Un]=l.current,yr(t),new Si(l)};Ei.version=\\\"19.2.4\\\"});var Gh=Rt((T2,Yh)=>{\\\"use strict\\\";z();function qh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\\\"u\\\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\\\"function\\\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qh)}catch(t){console.error(t)}}qh(),Yh.exports=Hh()});var Qh=Rt(bi=>{\\\"use strict\\\";z();var Qg=Symbol.for(\\\"react.transitional.element\\\"),Lg=Symbol.for(\\\"react.fragment\\\");function Xh(t,l,e){var n=null;if(e!==void 0&&(n=\\\"\\\"+e),l.key!==void 0&&(n=\\\"\\\"+l.key),\\\"key\\\"in l){e={};for(var a in l)a!==\\\"key\\\"&&(e[a]=l[a])}else e=l;return l=e.ref,{$$typeof:Qg,type:t,key:n,ref:l!==void 0?l:null,props:e}}bi.Fragment=Lg;bi.jsx=Xh;bi.jsxs=Xh});var Yl=Rt((_2,Lh)=>{\\\"use strict\\\";z();Lh.exports=Qh()});z();var ey=Tt(Gh(),1);z();var bt=Tt(ge(),1);z();var Er=Tt(Yl(),1);function br({className:t=\\\"\\\"}){return(0,Er.jsx)(\\\"div\\\",{className:`spinner ${t}`,children:(0,Er.jsx)(\\\"div\\\",{})})}z();var jg={1:\\\"Ethereum\\\",10:\\\"Optimism\\\",56:\\\"BNB Smart Chain\\\",100:\\\"Gnosis\\\",137:\\\"Polygon\\\",250:\\\"Fantom\\\",324:\\\"zkSync Era\\\",5e3:\\\"Mantle\\\",8453:\\\"Base\\\",42161:\\\"Arbitrum One\\\",42170:\\\"Arbitrum Nova\\\",43114:\\\"Avalanche\\\",42220:\\\"Celo\\\",59144:\\\"Linea\\\",534352:\\\"Scroll\\\",81457:\\\"Blast\\\",34443:\\\"Mode\\\",7777777:\\\"Zora\\\",11155111:\\\"Sepolia\\\",84532:\\\"Base Sepolia\\\",421614:\\\"Arbitrum Sepolia\\\",11155420:\\\"OP Sepolia\\\",80002:\\\"Polygon Amoy\\\",97:\\\"BNB Testnet\\\",43113:\\\"Avalanche Fuji\\\",59141:\\\"Linea Sepolia\\\",534351:\\\"Scroll Sepolia\\\",300:\\\"zkSync Sepolia\\\",5003:\\\"Mantle Sepolia\\\",168587773:\\\"Blast Sepolia\\\",999999999:\\\"Zora Sepolia\\\"};var Zg={MAINNET:\\\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\\\",DEVNET:\\\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\\\"},Vg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"},jh={MAINNET:\\\"mainnet\\\",NILE:\\\"nile\\\",SHASTA:\\\"shasta\\\"},Kg={MAINNET:\\\"1\\\",TESTNET:\\\"2147483648\\\"},Zh={NOBLE_MAINNET:\\\"noble-1\\\",NOBLE_TESTNET:\\\"grand-1\\\"},Jg={MAINNET:\\\"mainnet\\\",TESTNET:\\\"testnet\\\"};function Vh(t){if(t.startsWith(\\\"eip155:\\\")){let l=parseInt(t.split(\\\":\\\")[1]);return jg[l]??`Chain ${l}`}if(t.startsWith(\\\"solana:\\\"))return t.split(\\\":\\\")[1]===Zg.DEVNET?\\\"Solana Devnet\\\":\\\"Solana Mainnet\\\";if(t.startsWith(\\\"ton:\\\"))return t.split(\\\":\\\")[1]===Vg.TESTNET?\\\"TON Testnet\\\":\\\"TON Mainnet\\\";if(t.startsWith(\\\"tron:\\\")){let l=t.split(\\\":\\\")[1];return l===jh.NILE?\\\"TRON Nile Testnet\\\":l===jh.SHASTA?\\\"TRON Shasta Testnet\\\":\\\"TRON Mainnet\\\"}if(t.startsWith(\\\"stacks:\\\"))return t.split(\\\":\\\")[1]===Kg.TESTNET?\\\"Stacks Testnet\\\":\\\"Stacks Mainnet\\\";if(t.startsWith(\\\"cosmos:\\\")){let l=t.split(\\\":\\\")[1];return l===Zh.NOBLE_MAINNET?\\\"Noble\\\":l===Zh.NOBLE_TESTNET?\\\"Noble Testnet\\\":`Cosmos ${l}`}return t.startsWith(\\\"near:\\\")?t.split(\\\":\\\")[1]===Jg.TESTNET?\\\"NEAR Testnet\\\":\\\"NEAR Mainnet\\\":t}z();var xt=Tt(Yl(),1),Ya=[{key:\\\"connect\\\",label:\\\"Connect\\\"},{key:\\\"sign\\\",label:\\\"Sign\\\"},{key:\\\"submit\\\",label:\\\"Submit\\\"},{key:\\\"confirm\\\",label:\\\"Confirm\\\"}];function Fg(t){return Ya.findIndex(l=>l.key===t)}function Wg(){return(0,xt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,xt.jsx)(\\\"path\\\",{d:\\\"M11.5 4L5.5 10L2.5 7\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeLinejoin:\\\"round\\\"})})}function kg(){return(0,xt.jsx)(\\\"svg\\\",{width:\\\"14\\\",height:\\\"14\\\",viewBox:\\\"0 0 14 14\\\",fill:\\\"none\\\",className:\\\"progress-spinner\\\",\\\"aria-hidden\\\":\\\"true\\\",children:(0,xt.jsx)(\\\"circle\\\",{cx:\\\"7\\\",cy:\\\"7\\\",r:\\\"5\\\",stroke:\\\"currentColor\\\",strokeWidth:\\\"2\\\",strokeLinecap:\\\"round\\\",strokeDasharray:\\\"20\\\",strokeDashoffset:\\\"10\\\"})})}function Kh({currentStep:t,isProcessing:l=!1,hasError:e=!1}){let n=Fg(t);return(0,xt.jsx)(\\\"div\\\",{className:\\\"payment-progress\\\",role:\\\"progressbar\\\",\\\"aria-valuenow\\\":n+1,\\\"aria-valuemin\\\":1,\\\"aria-valuemax\\\":Ya.length,\\\"aria-label\\\":`Payment progress: ${Ya[n].label}`,children:Ya.map((a,u)=>{let i=u<n,c=u===n,f=u>n,r=\\\"progress-step\\\";return i&&(r+=\\\" completed\\\"),c&&(r+=\\\" current\\\"),c&&l&&(r+=\\\" processing\\\"),c&&e&&(r+=\\\" error\\\"),f&&(r+=\\\" pending\\\"),(0,xt.jsxs)(\\\"div\\\",{className:r,children:[(0,xt.jsx)(\\\"div\\\",{className:\\\"progress-step-indicator\\\",children:i?(0,xt.jsx)(Wg,{}):c&&l?(0,xt.jsx)(kg,{}):(0,xt.jsx)(\\\"span\\\",{className:\\\"progress-step-number\\\",children:u+1})}),(0,xt.jsx)(\\\"span\\\",{className:\\\"progress-step-label\\\",children:a.label}),u<Ya.length-1&&(0,xt.jsx)(\\\"div\\\",{className:`progress-connector ${i?\\\"completed\\\":\\\"\\\"}`,\\\"aria-hidden\\\":\\\"true\\\"})]},a.key)})})}z();var el=Tt(ge(),1);z();z();var gl={MAINNET:\\\"near:mainnet\\\",TESTNET:\\\"near:testnet\\\"},$g={[gl.MAINNET]:\\\"mainnet\\\",[gl.TESTNET]:\\\"testnet\\\"},Tr={[gl.MAINNET]:\\\"17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1\\\",[gl.TESTNET]:\\\"usdc.fakes.testnet\\\"},Ar={[gl.MAINNET]:\\\"https://rpc.mainnet.near.org\\\",[gl.TESTNET]:\\\"https://rpc.testnet.near.org\\\"};function Ig(t){return Ar[t]||Ar[\\\"near:mainnet\\\"]}function Ga(t){return Tr[t]||Tr[\\\"near:mainnet\\\"]}async function Pg(t,l,e){let n=Ig(t),u=await(await fetch(n,{method:\\\"POST\\\",headers:{\\\"Content-Type\\\":\\\"application/json\\\"},body:JSON.stringify({jsonrpc:\\\"2.0\\\",id:\\\"1\\\",method:l,params:e})})).json();if(u.error)throw new Error(u.error.message);return u.result}async function Jh(t,l){let e=Ga(l);try{let n=await Pg(l,\\\"query\\\",{request_type:\\\"call_function\\\",finality:\\\"final\\\",account_id:e,method_name:\\\"ft_balance_of\\\",args_base64:btoa(JSON.stringify({account_id:t}))}),a=new Uint8Array(n.result),i=new TextDecoder().decode(a).replace(/\\\"/g,\\\"\\\");return BigInt(i)}catch(n){return console.error(\\\"Error fetching USDC balance:\\\",n),0n}}function Fh(t){let l=1000000n,e=t/l,a=(t%l).toString().padStart(6,\\\"0\\\").slice(0,2);return`${e}.${a}`}function Wh(t,l,e){return{type:\\\"FunctionCall\\\",params:{methodName:\\\"ft_transfer\\\",args:{receiver_id:t,amount:l.toString(),memo:e||null},gas:\\\"30000000000000\\\",deposit:\\\"1\\\"}}}function kh(t){let[l,e]=(0,el.useState)(null),[n,a]=(0,el.useState)(null),[u,i]=(0,el.useState)(!1),[c,f]=(0,el.useState)(null),[r,m]=(0,el.useState)([]);(0,el.useEffect)(()=>{let y=()=>{let b=[];window.near&&b.push(\\\"mynearwallet\\\"),window.meteorWallet&&b.push(\\\"meteor\\\"),b.length===0&&b.push(\\\"mynearwallet\\\"),m(b)};y();let E=setTimeout(y,500);return()=>clearTimeout(E)},[]),(0,el.useEffect)(()=>{(async()=>{if(window.near?.isSignedIn()){let E=window.near.getAccountId();e({accountId:E,walletName:\\\"MyNearWallet\\\"}),a(\\\"mynearwallet\\\");return}if(window.meteorWallet)try{if(await window.meteorWallet.isSignedIn()){let b=await window.meteorWallet.getAccountId();e({accountId:b,walletName:\\\"Meteor\\\"}),a(\\\"meteor\\\")}}catch{}})()},[]);let g=(0,el.useCallback)(async y=>{i(!0),f(null);try{let E=Ga(t);if(y===\\\"mynearwallet\\\")if(window.near){if(await window.near.requestSignIn({contractId:E,methodNames:[\\\"ft_transfer\\\"]}),window.near.isSignedIn()){let b=window.near.getAccountId();e({accountId:b,walletName:\\\"MyNearWallet\\\"}),a(\\\"mynearwallet\\\")}}else{let b=window.location.href,s=(t===\\\"near:mainnet\\\"?\\\"mainnet\\\":\\\"testnet\\\")===\\\"mainnet\\\"?\\\"https://app.mynearwallet.com\\\":\\\"https://testnet.mynearwallet.com\\\",o=new URL(`${s}/login`);o.searchParams.set(\\\"referrer\\\",\\\"T402 Payment\\\"),o.searchParams.set(\\\"success_url\\\",b),o.searchParams.set(\\\"failure_url\\\",b),o.searchParams.set(\\\"contract_id\\\",E),window.location.href=o.toString();return}else if(y===\\\"meteor\\\"){if(!window.meteorWallet)throw new Error(\\\"Meteor wallet not found. Please install the extension.\\\");let b=await window.meteorWallet.signIn();e({accountId:b.accountId,walletName:\\\"Meteor\\\"}),a(\\\"meteor\\\")}}catch(E){let b=E instanceof Error?E.message:\\\"Failed to connect wallet\\\";f(b),console.error(\\\"Wallet connection error:\\\",E)}finally{i(!1)}},[t]),d=(0,el.useCallback)(async()=>{try{n===\\\"mynearwallet\\\"&&window.near?await window.near.signOut():n===\\\"meteor\\\"&&window.meteorWallet&&await window.meteorWallet.signOut()}catch(y){console.error(\\\"Disconnect error:\\\",y)}e(null),a(null),f(null)},[n]);return{account:l,walletId:n,isConnecting:u,error:c,availableWallets:r,connect:g,disconnect:d}}z();var qe=Tt(ge(),1);function $h(t,l,e){let[n,a]=(0,qe.useState)(null),[u,i]=(0,qe.useState)(null),[c,f]=(0,qe.useState)(!1),r=(0,qe.useCallback)(async g=>{let d=g||t;if(!d)return null;f(!0),e?.(\\\"Fetching USDC balance...\\\");try{let y=await Jh(d,l);return a(y),i(Fh(y)),e?.(\\\"\\\"),y}catch(y){return console.error(\\\"Error fetching balance:\\\",y),e?.(y instanceof Error?y.message:\\\"Failed to fetch balance\\\"),null}finally{f(!1)}},[t,l,e]),m=(0,qe.useCallback)(()=>{a(null),i(null)},[]);return{balance:n,formattedBalance:u,isFetching:c,refreshBalance:r,resetBalance:m}}z();var Ih=Tt(ge(),1);function Ph(t,l,e){return(0,Ih.useMemo)(()=>{if(!t||!l)return null;let n=Ga(e);return{get accountId(){return t.accountId},async signAndBroadcastTransfer(u){let i=Wh(u.recipient,u.amount,u.memo),c;if(l===\\\"mynearwallet\\\"){if(!window.near)throw new Error(\\\"MyNearWallet not available\\\");c=await window.near.signAndSendTransaction({receiverId:n,actions:[i]})}else if(l===\\\"meteor\\\"){if(!window.meteorWallet)throw new Error(\\\"Meteor wallet not available\\\");c=await window.meteorWallet.signAndSendTransaction({receiverId:n,actions:[i]})}else throw new Error(`Unknown wallet: ${l}`);return c.transaction.hash}}},[t,l,e])}var O=Tt(Yl(),1);function ty(t){switch(t){case\\\"mynearwallet\\\":return\\\"MyNearWallet\\\";case\\\"meteor\\\":return\\\"Meteor\\\";default:return t}}function ly({paymentRequired:t,onSuccessfulResponse:l}){let[e,n]=(0,bt.useState)(\\\"\\\"),[a,u]=(0,bt.useState)(!1),[i,c]=(0,bt.useState)(!0),[f,r]=(0,bt.useState)(\\\"connect\\\"),[m,g]=(0,bt.useState)(!1),d=window.t402,y=d.amount,E=t.accepts[0];if(!E)throw new Error(\\\"No payment requirements in paymentRequired.accepts\\\");let b=E.network,q=Vh(b),s=b===gl.MAINNET,o=s?gl.MAINNET:gl.TESTNET,{account:h,walletId:p,isConnecting:A,error:R,availableWallets:T,connect:_,disconnect:U}=kh(o),{balance:C,formattedBalance:nl,isFetching:Ti,refreshBalance:Xa,resetBalance:Nr}=$h(h?.accountId||null,o,n),Ai=Ph(h,p,o);(0,bt.useEffect)(()=>{h?.accountId&&Xa(h.accountId)},[h?.accountId,Xa]),(0,bt.useEffect)(()=>{h?f===\\\"connect\\\"&&r(\\\"sign\\\"):r(\\\"connect\\\")},[h,f]),(0,bt.useEffect)(()=>{R&&n(R)},[R]);let ay=(0,bt.useCallback)(async Dt=>{n(\\\"Connecting to wallet...\\\");try{await _(Dt),n(\\\"\\\")}catch(Ye){console.error(\\\"Failed to connect wallet\\\",Ye),n(Ye instanceof Error?Ye.message:\\\"Failed to connect wallet.\\\")}},[_]),uy=(0,bt.useCallback)(()=>{U(),Nr(),n(\\\"\\\"),r(\\\"connect\\\")},[U,Nr]),iy=(0,bt.useCallback)(async()=>{if(!d||!Ai||!h){n(\\\"Connect a wallet before paying.\\\");return}u(!0),g(!0);try{if(C===null||C===0n){n(\\\"Checking USDC balance...\\\");let zr=await Xa();if(!zr||zr===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${q}.`)}r(\\\"sign\\\"),n(\\\"Signing transaction...\\\");let Dt=BigInt(Math.floor(y*1e6)),Ye=E.payTo,fy=await Ai.signAndBroadcastTransfer({recipient:Ye,amount:Dt,memo:`t402 payment for ${d.currentUrl}`});r(\\\"submit\\\"),n(\\\"Transaction submitted, requesting content...\\\");let ry={t402Version:2,scheme:E.scheme,network:E.network,payload:{txHash:fy,from:h.accountId,to:Ye,amount:Dt.toString()}},oy=btoa(JSON.stringify(ry)),Qa=await fetch(d.currentUrl,{headers:{\\\"PAYMENT-SIGNATURE\\\":oy,\\\"Access-Control-Expose-Headers\\\":\\\"PAYMENT-RESPONSE\\\"}});if(Qa.ok)r(\\\"confirm\\\"),g(!1),await l(Qa);else throw new Error(`Request failed: ${Qa.status} ${Qa.statusText}`)}catch(Dt){n(Dt instanceof Error?Dt.message:\\\"Payment failed.\\\"),g(!1)}finally{u(!1)}},[d,Ai,h,C,Xa,q,y,E,l]);(0,bt.useEffect)(()=>{h&&n(\\\"\\\")},[h]);let cy=h?.accountId?h.accountId.length>20?`${h.accountId.slice(0,10)}...${h.accountId.slice(-6)}`:h.accountId:\\\"-\\\";return(0,O.jsxs)(\\\"div\\\",{className:\\\"container gap-8\\\",children:[(0,O.jsxs)(\\\"div\\\",{className:\\\"header\\\",children:[(0,O.jsx)(\\\"h1\\\",{className:\\\"title\\\",children:\\\"Payment Required\\\"}),(0,O.jsxs)(\\\"p\\\",{children:[t.resource?.description&&`${t.resource.description}.`,\\\" To access this content, please pay $\\\",y,\\\" USDC.\\\"]}),!s&&(0,O.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"This is a testnet payment. You can get testnet USDC from\\\",\\\" \\\",(0,O.jsx)(\\\"a\\\",{href:\\\"https://near-faucet.io\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"NEAR Faucet\\\"}),\\\".\\\"]})]}),(0,O.jsxs)(\\\"div\\\",{className:\\\"content w-full\\\",children:[h&&(0,O.jsx)(Kh,{currentStep:f,isProcessing:m,hasError:!!e&&!a}),(0,O.jsxs)(\\\"div\\\",{className:\\\"payment-details\\\",children:[(0,O.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,O.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Wallet:\\\"}),(0,O.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:h?`${ty(p)} - ${cy}`:\\\"-\\\"})]}),(0,O.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,O.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Available balance:\\\"}),(0,O.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:h?.accountId?(0,O.jsx)(\\\"button\\\",{className:\\\"balance-button\\\",onClick:()=>c(Dt=>!Dt),children:!i&&nl?`$${nl} USDC`:Ti?\\\"Loading...\\\":\\\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\\\"}):\\\"-\\\"})]}),(0,O.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,O.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Amount:\\\"}),(0,O.jsxs)(\\\"span\\\",{className:\\\"payment-value\\\",children:[\\\"$\\\",y,\\\" USDC\\\"]})]}),(0,O.jsxs)(\\\"div\\\",{className:\\\"payment-row\\\",children:[(0,O.jsx)(\\\"span\\\",{className:\\\"payment-label\\\",children:\\\"Network:\\\"}),(0,O.jsx)(\\\"span\\\",{className:\\\"payment-value\\\",children:q})]})]}),(0,O.jsx)(\\\"div\\\",{className:\\\"cta-container\\\",children:h?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(\\\"button\\\",{className:\\\"button button-secondary\\\",onClick:uy,children:\\\"Disconnect\\\"}),(0,O.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:iy,disabled:a,children:a?(0,O.jsx)(br,{}):\\\"Pay now\\\"})]}):(0,O.jsx)(\\\"div\\\",{className:\\\"wallet-options\\\",children:T.length===0?(0,O.jsxs)(\\\"p\\\",{className:\\\"instructions\\\",children:[\\\"No NEAR wallet detected. Please install\\\",\\\" \\\",(0,O.jsx)(\\\"a\\\",{href:\\\"https://mynearwallet.com/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"MyNearWallet\\\"}),\\\" \\\",\\\"or\\\",\\\" \\\",(0,O.jsx)(\\\"a\\\",{href:\\\"https://meteorwallet.app/\\\",target:\\\"_blank\\\",rel:\\\"noopener noreferrer\\\",children:\\\"Meteor\\\"}),\\\" \\\",\\\"wallet.\\\"]}):T.map(Dt=>(0,O.jsx)(\\\"button\\\",{className:\\\"button button-primary\\\",onClick:()=>ay(Dt),disabled:A,children:A?(0,O.jsx)(br,{}):`Connect ${ty(Dt)}`},Dt))})}),e&&(0,O.jsx)(\\\"div\\\",{className:\\\"status\\\",children:e})]})]})}var ny=Tt(Yl(),1);window.addEventListener(\\\"load\\\",()=>{let t=document.getElementById(\\\"root\\\");if(!t){console.error(\\\"Root element not found\\\");return}let e=window.t402.paymentRequired;if(!e?.accepts?.[0]){console.error(\\\"No payment requirements found\\\");return}(0,ey.createRoot)(t).render((0,ny.jsx)(ly,{paymentRequired:e,onSuccessfulResponse:async a=>{let u=a.headers.get(\\\"content-type\\\");if(u&&u.includes(\\\"text/html\\\"))document.documentElement.innerHTML=await a.text();else{let i=await a.blob(),c=window.URL.createObjectURL(i);window.location.href=c}}}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.production.js:\\n  (**\\n   * @license React\\n   * scheduler.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.production.js:\\n  (**\\n   * @license React\\n   * react.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.production.js:\\n  (**\\n   * @license React\\n   * react-dom.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.production.js:\\n  (**\\n   * @license React\\n   * react-dom-client.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.production.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.production.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n*/\\n</script></body></html>\";\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * Lightweight CDN shell template for NEAR paywall.\n * JS/CSS loaded from jsDelivr CDN at runtime.\n */\nexport const NEAR_PAYWALL_TEMPLATE = \"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n    <meta charset=\\\"UTF-8\\\">\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n    <title>Payment Required</title>\\n    <link rel=\\\"stylesheet\\\" href=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/near.min.css\\\">\\n</head>\\n<body>\\n    <div id=\\\"root\\\"></div>\\n    <script src=\\\"https://cdn.jsdelivr.net/npm/@t402/paywall@2.8.1/dist/browser/near.min.js\\\"></script>\\n</body>\\n</html>\";\n","import type {\n  PaywallConfig,\n  PaywallProvider,\n  PaymentRequired,\n  PaywallNetworkHandler,\n} from \"./types\";\n\n/**\n * Builder for creating configured paywall providers\n */\nexport class PaywallBuilder {\n  private config: PaywallConfig = {};\n  private handlers: PaywallNetworkHandler[] = [];\n\n  /**\n   * Register a network-specific paywall handler\n   *\n   * @param handler - Network handler to register\n   * @returns This builder instance for chaining\n   */\n  withNetwork(handler: PaywallNetworkHandler): this {\n    this.handlers.push(handler);\n    return this;\n  }\n\n  /**\n   * Set configuration options for the paywall\n   *\n   * @param config - Paywall configuration options\n   * @returns This builder instance for chaining\n   */\n  withConfig(config: PaywallConfig): this {\n    this.config = { ...this.config, ...config };\n    return this;\n  }\n\n  /**\n   * Build the paywall provider\n   *\n   * @returns A configured PaywallProvider instance\n   */\n  build(): PaywallProvider {\n    const builderConfig = this.config;\n    const handlers = this.handlers;\n\n    return {\n      generateHtml: (paymentRequired: PaymentRequired, runtimeConfig?: PaywallConfig): string => {\n        // Merge builder config with runtime config (runtime takes precedence)\n        const finalConfig = { ...builderConfig, ...runtimeConfig };\n\n        if (handlers.length === 0) {\n          throw new Error(\n            \"No paywall handlers registered. Use .withNetwork(evmPaywall) or .withNetwork(svmPaywall)\",\n          );\n        }\n\n        for (const requirement of paymentRequired.accepts) {\n          const handler = handlers.find(h => h.supports(requirement));\n          if (handler) {\n            return handler.generateHtml(requirement, paymentRequired, finalConfig);\n          }\n        }\n\n        const networks = paymentRequired.accepts.map(r => r.network).join(\", \");\n        throw new Error(\n          `No paywall handler supports networks: ${networks}. Register appropriate handlers with .withNetwork()`,\n        );\n      },\n    };\n  }\n}\n\n/**\n * Create a new paywall builder\n *\n * @returns A new PaywallBuilder instance\n */\nexport function createPaywall(): PaywallBuilder {\n  return new PaywallBuilder();\n}\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the EVM paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getEvmTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.EVM_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.EVM_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaywallTheme } from \"./types\";\n\n/**\n * Generates the theme injection script for the paywall HTML.\n * This script applies dark mode and custom CSS variables at runtime.\n *\n * @param theme - Theme configuration\n * @returns Script string to inject into HTML\n */\nexport function generateThemeScript(theme?: PaywallTheme): string {\n  if (!theme) {\n    return \"\";\n  }\n\n  const themeConfig = JSON.stringify(theme);\n\n  return `\n  <script>\n    (function() {\n      var theme = ${themeConfig};\n      var root = document.documentElement;\n\n      // Apply dark mode\n      if (theme.mode === 'dark' ||\n          (theme.mode === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n        root.classList.add('dark');\n      }\n\n      // Listen for system theme changes when mode is 'auto'\n      if (theme.mode === 'auto') {\n        window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function(e) {\n          if (e.matches) {\n            root.classList.add('dark');\n          } else {\n            root.classList.remove('dark');\n          }\n        });\n      }\n\n      // Apply custom colors\n      if (theme.colors) {\n        if (theme.colors.primary) {\n          root.style.setProperty('--button-primary-color', theme.colors.primary);\n        }\n        if (theme.colors.background) {\n          root.style.setProperty('--background-color', theme.colors.background);\n        }\n        if (theme.colors.containerBackground) {\n          root.style.setProperty('--container-background-color', theme.colors.containerBackground);\n        }\n        if (theme.colors.text) {\n          root.style.setProperty('--text-color', theme.colors.text);\n        }\n        if (theme.colors.secondaryText) {\n          root.style.setProperty('--secondary-text-color', theme.colors.secondaryText);\n        }\n        if (theme.colors.border) {\n          root.style.setProperty('--border-color', theme.colors.border);\n        }\n      }\n\n      // Apply border radius\n      if (theme.borderRadius) {\n        root.style.setProperty('--container-border-radius', theme.borderRadius);\n      }\n\n      // Apply font family\n      if (theme.fontFamily) {\n        root.style.setProperty('--font-family', theme.fontFamily);\n        document.body.style.fontFamily = theme.fontFamily;\n      }\n    })();\n  </script>`;\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getEvmTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\n/**\n * Gets the EVM chain config\n *\n * @returns The EVM chain config\n */\nfunction getChainConfig() {\n  return {\n    base: {\n      usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n      usdcName: \"USDC\",\n    },\n    \"base-sepolia\": {\n      usdcAddress: \"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",\n      usdcName: \"USDC\",\n    },\n  };\n}\n\ninterface EvmPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  walletConnectProjectId?: string;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates EVM-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @returns HTML string for the paywall page\n */\nexport function getEvmPaywallHtml(options: EvmPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const EVM_PAYWALL_TEMPLATE = getEvmTemplate(mode);\n\n  if (!EVM_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>EVM Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const {\n    amount,\n    testnet,\n    paymentRequired,\n    currentUrl,\n    appName,\n    appLogo,\n    theme,\n    walletConnectProjectId,\n  } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('EVM Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const config = getChainConfig();\n  const themeScript = generateThemeScript(theme);\n\n  // Only include walletConnectProjectId if provided\n  const walletConnectLine = walletConnectProjectId\n    ? `walletConnectProjectId: \"${escapeString(walletConnectProjectId)}\",`\n    : \"\";\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: ${JSON.stringify(config)},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      ${walletConnectLine}\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return EVM_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getEvmPaywallHtml } from \"./paywall\";\n\n/**\n * EVM paywall handler that supports EVM-based networks (CAIP-2 format only)\n */\nexport const evmPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - Payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"eip155:\");\n  },\n\n  /**\n   * Generate EVM-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getEvmPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n      walletConnectProjectId: config.walletConnectProjectId,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the SVM paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getSvmTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.SVM_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.SVM_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getSvmTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface SvmPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates SVM-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @returns HTML string for the paywall page\n */\nexport function getSvmPaywallHtml(options: SvmPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const SVM_PAYWALL_TEMPLATE = getSvmTemplate(mode);\n\n  if (!SVM_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>SVM Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('SVM Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return SVM_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getSvmPaywallHtml } from \"./paywall\";\n\n/**\n * SVM paywall handler that supports Solana-based networks (CAIP-2 format only)\n */\nexport const svmPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"solana:\");\n  },\n\n  /**\n   * Generate SVM-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getSvmPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the TON paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getTonTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.TON_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.TON_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","/**\n * Dynamic TON Connect wallet registry integration.\n *\n * Fetches the official wallet list from ton-blockchain/wallets-list,\n * with a bundled fallback for offline/error scenarios.\n */\n\n/**\n * Platform types supported by TON Connect wallets\n */\nexport type TonWalletPlatform =\n  | \"ios\"\n  | \"android\"\n  | \"chrome\"\n  | \"firefox\"\n  | \"safari\"\n  | \"windows\"\n  | \"macos\"\n  | \"linux\";\n\n/**\n * TON wallet bridge configuration\n */\nexport interface TonWalletBridge {\n  type: \"sse\" | \"js\";\n  url?: string;\n  key?: string;\n}\n\n/**\n * Information about a TON Connect compatible wallet\n */\nexport interface TonWalletInfo {\n  /** Display name */\n  name: string;\n  /** Machine-readable identifier */\n  appName: string;\n  /** Wallet icon URL */\n  imageUrl: string;\n  /** Wallet info page */\n  aboutUrl: string;\n  /** Supported platforms */\n  platforms: TonWalletPlatform[];\n  /** Bridge configurations */\n  bridges: TonWalletBridge[];\n  /** Universal link for connection */\n  universalUrl?: string;\n  /** Native deep link scheme */\n  deepLink?: string;\n}\n\n/**\n * Bundled snapshot of top TON Connect wallets.\n * Used as offline fallback when the remote list cannot be fetched.\n */\nconst BUNDLED_WALLETS: TonWalletInfo[] = [\n  {\n    name: \"Tonkeeper\",\n    appName: \"tonkeeper\",\n    imageUrl: \"https://tonkeeper.com/assets/tonconnect-icon.png\",\n    aboutUrl: \"https://tonkeeper.com\",\n    platforms: [\"ios\", \"android\", \"chrome\", \"firefox\", \"macos\", \"windows\", \"linux\"],\n    bridges: [\n      { type: \"sse\", url: \"https://bridge.tonapi.io/bridge\" },\n      { type: \"js\", key: \"tonkeeper\" },\n    ],\n    universalUrl: \"https://app.tonkeeper.com/ton-connect\",\n    deepLink: \"tonkeeper-tc://\",\n  },\n  {\n    name: \"MyTonWallet\",\n    appName: \"mytonwallet\",\n    imageUrl: \"https://static.mytonwallet.io/icon-256.png\",\n    aboutUrl: \"https://mytonwallet.io\",\n    platforms: [\"chrome\", \"windows\", \"macos\", \"linux\", \"ios\", \"android\", \"firefox\"],\n    bridges: [\n      { type: \"js\", key: \"mytonwallet\" },\n      { type: \"sse\", url: \"https://tonconnectbridge.mytonwallet.org/bridge/\" },\n    ],\n    universalUrl: \"https://connect.mytonwallet.org\",\n    deepLink: \"mytonwallet-tc://\",\n  },\n  {\n    name: \"Wallet\",\n    appName: \"telegram-wallet\",\n    imageUrl: \"https://wallet.tg/images/logo-288.png\",\n    aboutUrl: \"https://wallet.tg/\",\n    platforms: [\"ios\", \"android\", \"macos\", \"windows\", \"linux\"],\n    bridges: [{ type: \"sse\", url: \"https://walletbot.me/tonconnect-bridge/bridge\" }],\n    universalUrl: \"https://t.me/wallet?attach=wallet\",\n  },\n  {\n    name: \"Tonhub\",\n    appName: \"tonhub\",\n    imageUrl: \"https://tonhub.com/tonconnect_logo.png\",\n    aboutUrl: \"https://tonhub.com\",\n    platforms: [\"ios\", \"android\"],\n    bridges: [\n      { type: \"js\", key: \"tonhub\" },\n      { type: \"sse\", url: \"https://connect.tonhubapi.com/tonconnect\" },\n    ],\n    universalUrl: \"https://tonhub.com/ton-connect\",\n  },\n  {\n    name: \"Bitget Wallet\",\n    appName: \"bitgetTonWallet\",\n    imageUrl:\n      \"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png\",\n    aboutUrl: \"https://web3.bitget.com\",\n    platforms: [\"ios\", \"android\", \"chrome\"],\n    bridges: [\n      { type: \"js\", key: \"bitgetTonWallet\" },\n      { type: \"sse\", url: \"https://ton-connect-bridge.bgwapi.io/bridge\" },\n    ],\n    universalUrl: \"https://bkcode.vip/ton-connect\",\n    deepLink: \"bitkeep://\",\n  },\n  {\n    name: \"OKX Wallet\",\n    appName: \"okxWallet\",\n    imageUrl:\n      \"https://static.okx.com/cdn/web3/assets/imgs/70d223c0-8527-40c1-8292-b3cc10b53d88.png\",\n    aboutUrl: \"https://web3.okx.com\",\n    platforms: [\"chrome\", \"safari\", \"firefox\", \"ios\", \"android\"],\n    bridges: [\n      { type: \"js\", key: \"okxTonWallet\" },\n      { type: \"sse\", url: \"https://web3.okx.com/tonbridge/discover/rpc/bridge\" },\n    ],\n    universalUrl:\n      \"https://web3.okx.com/download?appendQuery=true&deeplink=okxwallet://web3/wallet/tonconnect\",\n  },\n  {\n    name: \"Binance Wallet\",\n    appName: \"binanceWeb3TonWallet\",\n    imageUrl: \"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png\",\n    aboutUrl: \"https://www.binance.com/en/web3wallet\",\n    platforms: [\"ios\", \"android\", \"macos\", \"windows\", \"linux\", \"chrome\"],\n    bridges: [\n      { type: \"js\", key: \"binancew3w\" },\n      { type: \"sse\", url: \"https://wallet.binance.com/tonbridge/bridge\" },\n    ],\n    universalUrl: \"https://app.binance.com/cedefi/ton-connect\",\n    deepLink: \"bnc://app.binance.com/cedefi/ton-connect\",\n  },\n  {\n    name: \"HOT\",\n    appName: \"hot\",\n    imageUrl: \"https://raw.githubusercontent.com/hot-dao/media/main/logo.png\",\n    aboutUrl: \"https://hot-labs.org/\",\n    platforms: [\"ios\", \"android\", \"macos\", \"windows\", \"linux\"],\n    bridges: [\n      { type: \"sse\", url: \"https://sse-bridge.hot-labs.org\" },\n      { type: \"js\", key: \"hotWallet\" },\n    ],\n    universalUrl: \"https://t.me/herewalletbot?attach=wallet\",\n  },\n  {\n    name: \"Bybit Wallet\",\n    appName: \"bybitTonWallet\",\n    imageUrl:\n      \"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png\",\n    aboutUrl: \"https://www.bybit.com/web3\",\n    platforms: [\"ios\", \"android\", \"chrome\"],\n    bridges: [\n      { type: \"js\", key: \"bybitTonWallet\" },\n      { type: \"sse\", url: \"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge\" },\n    ],\n    universalUrl: \"https://app.bybit.com/ton-connect\",\n    deepLink: \"bybitapp://\",\n  },\n  {\n    name: \"DeWallet\",\n    appName: \"dewallet\",\n    imageUrl: \"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png\",\n    aboutUrl: \"https://delabwallet.com\",\n    platforms: [\"ios\", \"android\", \"macos\", \"windows\", \"linux\"],\n    bridges: [{ type: \"sse\", url: \"https://bridge.dewallet.pro/bridge\" }],\n    universalUrl: \"https://t.me/dewallet?attach=wallet\",\n  },\n  {\n    name: \"SafePal\",\n    appName: \"safepalwallet\",\n    imageUrl: \"https://s.pvcliping.com/web/public_image/SafePal_x288.png\",\n    aboutUrl: \"https://www.safepal.com\",\n    platforms: [\"ios\", \"android\", \"chrome\", \"firefox\"],\n    bridges: [\n      { type: \"sse\", url: \"https://ton-bridge.safepal.com/tonbridge/v1/bridge\" },\n      { type: \"js\", key: \"safepalwallet\" },\n    ],\n    universalUrl: \"https://link.safepal.io/ton-connect\",\n    deepLink: \"safepal-tc://\",\n  },\n  {\n    name: \"OpenMask\",\n    appName: \"openmask\",\n    imageUrl:\n      \"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png\",\n    aboutUrl: \"https://www.openmask.app/\",\n    platforms: [\"chrome\"],\n    bridges: [{ type: \"js\", key: \"openmask\" }],\n  },\n];\n\nconst WALLETS_LIST_URL =\n  \"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json\";\n\ninterface WalletsCacheEntry {\n  wallets: TonWalletInfo[];\n  fetchedAt: number;\n}\n\nlet walletsCache: WalletsCacheEntry | null = null;\n\n/**\n * Fetch the official TON Connect wallets list with caching.\n * Falls back to bundled snapshot if the fetch fails.\n *\n * @param cacheTTL - Cache duration in milliseconds (default: 1 hour)\n * @returns Array of wallet information\n */\nexport async function fetchTonWallets(cacheTTL: number = 3_600_000): Promise<TonWalletInfo[]> {\n  const now = Date.now();\n  if (walletsCache && now - walletsCache.fetchedAt < cacheTTL) {\n    return walletsCache.wallets;\n  }\n\n  try {\n    const response = await fetch(WALLETS_LIST_URL);\n    if (!response.ok) throw new Error(`HTTP ${response.status}`);\n    const data = await response.json();\n    const wallets = parseWalletsList(data);\n    walletsCache = { wallets, fetchedAt: now };\n    return wallets;\n  } catch {\n    // Fallback to bundled snapshot\n    return BUNDLED_WALLETS;\n  }\n}\n\n/**\n * Get the bundled wallet list synchronously (no network request).\n *\n * @returns Bundled wallet list\n */\nexport function getBundledWallets(): TonWalletInfo[] {\n  return BUNDLED_WALLETS;\n}\n\n/**\n * Reset the in-memory wallet cache.\n * Useful for testing or forcing a fresh fetch.\n */\nexport function resetWalletsCache(): void {\n  walletsCache = null;\n}\n\n/**\n * Detect the current platform from the user agent string.\n *\n * @returns Detected platform category\n */\nexport function detectPlatform(): \"ios\" | \"android\" | \"desktop\" | \"browser\" {\n  if (typeof navigator === \"undefined\") return \"desktop\";\n  const ua = navigator.userAgent.toLowerCase();\n  if (/iphone|ipad|ipod/.test(ua)) return \"ios\";\n  if (/android/.test(ua)) return \"android\";\n  return \"desktop\";\n}\n\n/**\n * Browser extension platform values that map to \"browser\" filter\n */\nconst BROWSER_PLATFORMS = new Set<TonWalletPlatform>([\"chrome\", \"firefox\", \"safari\"]);\n\n/**\n * Desktop platform values\n */\nconst DESKTOP_PLATFORMS = new Set<TonWalletPlatform>([\"windows\", \"macos\", \"linux\"]);\n\n/**\n * Filter wallets by the detected platform.\n *\n * @param wallets - Full wallet list\n * @param platform - Target platform\n * @returns Wallets that support the given platform\n */\nexport function filterWalletsByPlatform(\n  wallets: TonWalletInfo[],\n  platform: \"ios\" | \"android\" | \"desktop\" | \"browser\",\n): TonWalletInfo[] {\n  return wallets.filter(wallet => {\n    if (platform === \"browser\") {\n      return wallet.platforms.some(p => BROWSER_PLATFORMS.has(p));\n    }\n    if (platform === \"desktop\") {\n      return wallet.platforms.some(p => DESKTOP_PLATFORMS.has(p) || BROWSER_PLATFORMS.has(p));\n    }\n    return wallet.platforms.includes(platform);\n  });\n}\n\n/**\n * Generate a deep link or universal link for a wallet.\n *\n * @param wallet - Wallet info\n * @param connectUrl - TON Connect session URL\n * @returns Link string, or null if the wallet has no link support\n */\nexport function generateWalletDeepLink(wallet: TonWalletInfo, connectUrl: string): string | null {\n  const encodedUrl = encodeURIComponent(connectUrl);\n\n  if (wallet.deepLink) {\n    return `${wallet.deepLink}?v=2&id=${encodedUrl}`;\n  }\n  if (wallet.universalUrl) {\n    const separator = wallet.universalUrl.includes(\"?\") ? \"&\" : \"?\";\n    return `${wallet.universalUrl}${separator}v=2&id=${encodedUrl}`;\n  }\n  return null;\n}\n\n/**\n * Parse the upstream wallets-v2.json format into TonWalletInfo[].\n */\nexport function parseWalletsList(data: unknown): TonWalletInfo[] {\n  if (!Array.isArray(data)) return BUNDLED_WALLETS;\n\n  const wallets: TonWalletInfo[] = [];\n\n  for (const entry of data) {\n    if (!entry || typeof entry !== \"object\") continue;\n    const e = entry as Record<string, unknown>;\n\n    const name = typeof e.name === \"string\" ? e.name : \"\";\n    const appName = typeof e.app_name === \"string\" ? e.app_name : \"\";\n    const imageUrl = typeof e.image === \"string\" ? e.image : \"\";\n    const aboutUrl = typeof e.about_url === \"string\" ? e.about_url : \"\";\n\n    if (!name || !appName) continue;\n\n    const platforms: TonWalletPlatform[] = [];\n    if (Array.isArray(e.platforms)) {\n      for (const p of e.platforms) {\n        if (typeof p === \"string\") {\n          platforms.push(p as TonWalletPlatform);\n        }\n      }\n    }\n\n    const bridges: TonWalletBridge[] = [];\n    if (Array.isArray(e.bridge)) {\n      for (const b of e.bridge) {\n        if (!b || typeof b !== \"object\") continue;\n        const bridge = b as Record<string, unknown>;\n        if (bridge.type === \"sse\" && typeof bridge.url === \"string\") {\n          bridges.push({ type: \"sse\", url: bridge.url });\n        } else if (bridge.type === \"js\" && typeof bridge.key === \"string\") {\n          bridges.push({ type: \"js\", key: bridge.key });\n        }\n      }\n    }\n\n    const universalUrl = typeof e.universal_url === \"string\" ? e.universal_url : undefined;\n    const deepLink = typeof e.deepLink === \"string\" ? e.deepLink : undefined;\n\n    wallets.push({\n      name,\n      appName,\n      imageUrl,\n      aboutUrl,\n      platforms,\n      bridges,\n      universalUrl,\n      deepLink,\n    });\n  }\n\n  return wallets.length > 0 ? wallets : BUNDLED_WALLETS;\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getTonTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\nimport { getBundledWallets, type TonWalletInfo } from \"./wallets\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface TonPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  tonConnectManifestUrl?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n  /**\n   * TON Connect wallet list to embed in the paywall HTML.\n   * If not provided, the bundled snapshot is used.\n   * Use `fetchTonWallets()` to get a fresh list at server start.\n   */\n  tonWallets?: TonWalletInfo[];\n}\n\n/**\n * Generates TON-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @param options.tonConnectManifestUrl - Optional TonConnect manifest URL\n * @param options.tonWallets - Optional dynamic wallet list (falls back to bundled)\n * @returns HTML string for the paywall page\n */\nexport function getTonPaywallHtml(options: TonPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const TON_PAYWALL_TEMPLATE = getTonTemplate(mode);\n\n  if (!TON_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>TON Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const {\n    amount,\n    testnet,\n    paymentRequired,\n    currentUrl,\n    appName,\n    appLogo,\n    tonConnectManifestUrl,\n    theme,\n    tonWallets,\n  } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('TON Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const manifestUrl = tonConnectManifestUrl || \"https://t402.io/tonconnect-manifest.json\";\n  const themeScript = generateThemeScript(theme);\n\n  // Embed wallet list for client-side wallet selection UI\n  const walletList = tonWallets ?? getBundledWallets();\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      tonConnectManifestUrl: \"${escapeString(manifestUrl)}\",\n      tonWallets: ${JSON.stringify(walletList)},\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return TON_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getTonPaywallHtml } from \"./paywall\";\n\n// Re-export wallet utilities for server-side use\nexport {\n  fetchTonWallets,\n  getBundledWallets,\n  filterWalletsByPlatform,\n  generateWalletDeepLink,\n  resetWalletsCache,\n} from \"./wallets\";\nexport type { TonWalletInfo, TonWalletPlatform, TonWalletBridge } from \"./wallets\";\n\n/**\n * TON paywall handler that supports TON-based networks (CAIP-2 format)\n */\nexport const tonPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"ton:\");\n  },\n\n  /**\n   * Generate TON-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    // USDT on TON uses 6 decimals\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getTonPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the TRON paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getTronTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.TRON_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.TRON_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getTronTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface TronPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates TRON-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display\n * @param options.appLogo - The logo of the application to display\n * @returns HTML string for the paywall page\n */\nexport function getTronPaywallHtml(options: TronPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const TRON_PAYWALL_TEMPLATE = getTronTemplate(mode);\n\n  if (!TRON_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>TRON Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('TRON Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return TRON_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getTronPaywallHtml } from \"./paywall\";\n\n/**\n * TRON paywall handler that supports TRON-based networks (CAIP-2 format)\n */\nexport const tronPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"tron:\");\n  },\n\n  /**\n   * Generate TRON-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    // USDT on TRON uses 6 decimals\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getTronPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the Stacks paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getStacksTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.STACKS_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.STACKS_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getStacksTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface StacksPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates Stacks-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display\n * @param options.appLogo - The logo of the application to display\n * @returns HTML string for the paywall page\n */\nexport function getStacksPaywallHtml(options: StacksPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const STACKS_PAYWALL_TEMPLATE = getStacksTemplate(mode);\n\n  if (!STACKS_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>Stacks Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('Stacks Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return STACKS_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getStacksPaywallHtml } from \"./paywall\";\n\n/**\n * Stacks paywall handler that supports Stacks-based networks (CAIP-2 format)\n */\nexport const stacksPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"stacks:\");\n  },\n\n  /**\n   * Generate Stacks-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    // sUSDC on Stacks uses 6 decimals\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getStacksPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the Cosmos paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getCosmosTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.COSMOS_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.COSMOS_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getCosmosTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface CosmosPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates Cosmos-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display\n * @param options.appLogo - The logo of the application to display\n * @returns HTML string for the paywall page\n */\nexport function getCosmosPaywallHtml(options: CosmosPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const COSMOS_PAYWALL_TEMPLATE = getCosmosTemplate(mode);\n\n  if (!COSMOS_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>Cosmos Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('Cosmos Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return COSMOS_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getCosmosPaywallHtml } from \"./paywall\";\n\n/**\n * Cosmos paywall handler that supports Cosmos-based networks (CAIP-2 format)\n * Currently supports Noble for native USDC payments\n */\nexport const cosmosPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"cosmos:\");\n  },\n\n  /**\n   * Generate Cosmos-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    // USDC uses 6 decimals\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getCosmosPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","let cachedCdnTemplate: string | null = null;\nlet cachedInlineTemplate: string | null = null;\n\n/**\n * Loads the NEAR paywall template.\n *\n * @param mode - \"cdn\" for lightweight CDN shell (default), \"inline\" for full embedded HTML\n * @returns The template HTML string, or null if not found\n */\nexport function getNearTemplate(mode: \"cdn\" | \"inline\" = \"cdn\"): string | null {\n  if (mode === \"inline\") {\n    if (cachedInlineTemplate !== null) {\n      return cachedInlineTemplate;\n    }\n    try {\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const template = require(\"./gen/template-inline\");\n      cachedInlineTemplate = template.NEAR_PAYWALL_TEMPLATE_INLINE;\n      return cachedInlineTemplate;\n    } catch {\n      return null;\n    }\n  }\n\n  if (cachedCdnTemplate !== null) {\n    return cachedCdnTemplate;\n  }\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedCdnTemplate = template.NEAR_PAYWALL_TEMPLATE;\n    return cachedCdnTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { getNearTemplate } from \"./template-loader\";\nimport { generateThemeScript } from \"../themeUtils\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface NearPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n  deliveryMode?: \"cdn\" | \"inline\";\n  cdnBaseUrl?: string;\n}\n\n/**\n * Generates NEAR-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display\n * @param options.appLogo - The logo of the application to display\n * @returns HTML string for the paywall page\n */\nexport function getNearPaywallHtml(options: NearPaywallOptions): string {\n  const mode = options.deliveryMode ?? \"cdn\";\n  const NEAR_PAYWALL_TEMPLATE = getNearTemplate(mode);\n\n  if (!NEAR_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>NEAR Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('NEAR Payment required initialized:', window.t402);\"\n    : \"\";\n\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: {},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return NEAR_PAYWALL_TEMPLATE.replace(\"</head>\", `${themeScript}${configScript}\\n</head>`);\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getNearPaywallHtml } from \"./paywall\";\n\n/**\n * NEAR paywall handler that supports NEAR-based networks (CAIP-2 format)\n */\nexport const nearPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - The payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"near:\");\n  },\n\n  /**\n   * Generate NEAR-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    // USDC uses 6 decimals\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getNearPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","import type { PaymentRequired, PaywallTheme } from \"../types\";\nimport { generateThemeScript } from \"../themeUtils\";\n\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\ninterface GaslessPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  theme?: PaywallTheme;\n}\n\n/**\n * Generates gasless ERC-4337 paywall HTML\n *\n * Unlike the regular EVM paywall, this doesn't require wallet connection.\n * The payment is processed via a smart account with gas sponsorship.\n */\nexport function getGaslessPaywallHtml(options: GaslessPaywallOptions): string {\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, theme } = options;\n  const themeScript = generateThemeScript(theme);\n\n  const configScript = `\n  <script>\n    window.t402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      gasless: true,\n    };\n  </script>`;\n\n  return `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>Payment Required - ${escapeString(appName || \"t402\")}</title>\n  ${themeScript}\n  ${configScript}\n  <style>\n    :root {\n      --primary: #00d4aa;\n      --bg: #0a0a0a;\n      --container-bg: #141414;\n      --text: #ffffff;\n      --secondary-text: #888888;\n      --border: #2a2a2a;\n      --radius: 0.75rem;\n      --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n    }\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n    body {\n      font-family: var(--font);\n      background: var(--bg);\n      color: var(--text);\n      min-height: 100vh;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      padding: 1rem;\n    }\n    .container {\n      background: var(--container-bg);\n      border: 1px solid var(--border);\n      border-radius: var(--radius);\n      padding: 2rem;\n      max-width: 420px;\n      width: 100%;\n      text-align: center;\n    }\n    .logo { width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 50%; }\n    h1 { font-size: 1.25rem; margin-bottom: 0.5rem; }\n    .amount { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 1rem 0; }\n    .badge {\n      display: inline-flex;\n      align-items: center;\n      gap: 0.375rem;\n      background: rgba(0, 212, 170, 0.1);\n      color: var(--primary);\n      border: 1px solid rgba(0, 212, 170, 0.3);\n      border-radius: 2rem;\n      padding: 0.375rem 0.875rem;\n      font-size: 0.8125rem;\n      font-weight: 500;\n      margin-bottom: 1.5rem;\n    }\n    .badge svg { width: 14px; height: 14px; }\n    .info {\n      background: rgba(255, 255, 255, 0.03);\n      border: 1px solid var(--border);\n      border-radius: calc(var(--radius) - 2px);\n      padding: 1rem;\n      margin-bottom: 1.5rem;\n      text-align: left;\n      font-size: 0.875rem;\n    }\n    .info-row { display: flex; justify-content: space-between; padding: 0.375rem 0; }\n    .info-row .label { color: var(--secondary-text); }\n    .info-row .value { font-weight: 500; }\n    .divider { height: 1px; background: var(--border); margin: 0.5rem 0; }\n    .btn {\n      width: 100%;\n      padding: 0.875rem;\n      background: var(--primary);\n      color: #000;\n      border: none;\n      border-radius: var(--radius);\n      font-size: 1rem;\n      font-weight: 600;\n      cursor: pointer;\n      transition: opacity 0.15s;\n    }\n    .btn:hover { opacity: 0.9; }\n    .btn:disabled { opacity: 0.5; cursor: not-allowed; }\n    .btn.loading { position: relative; color: transparent; }\n    .btn.loading::after {\n      content: '';\n      position: absolute;\n      width: 1.25rem;\n      height: 1.25rem;\n      top: 50%;\n      left: 50%;\n      margin: -0.625rem 0 0 -0.625rem;\n      border: 2px solid rgba(0,0,0,0.2);\n      border-top-color: #000;\n      border-radius: 50%;\n      animation: spin 0.6s linear infinite;\n    }\n    @keyframes spin { to { transform: rotate(360deg); } }\n    .status {\n      margin-top: 1rem;\n      padding: 0.75rem;\n      border-radius: calc(var(--radius) - 2px);\n      font-size: 0.875rem;\n    }\n    .status.success { background: rgba(0, 212, 170, 0.1); color: var(--primary); }\n    .status.error { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }\n    .footer { margin-top: 1.5rem; font-size: 0.75rem; color: var(--secondary-text); }\n  </style>\n</head>\n<body>\n  <div class=\"container\">\n    ${appLogo ? `<img class=\"logo\" src=\"${escapeString(appLogo)}\" alt=\"\" />` : \"\"}\n    <h1>Payment Required</h1>\n    <div class=\"amount\">$${amount.toFixed(2)}</div>\n    <div class=\"badge\">\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n        <path d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"/>\n      </svg>\n      Gasless Payment\n    </div>\n    <div class=\"info\">\n      <div class=\"info-row\">\n        <span class=\"label\">Token</span>\n        <span class=\"value\">USDT0</span>\n      </div>\n      <div class=\"divider\"></div>\n      <div class=\"info-row\">\n        <span class=\"label\">Gas Fee</span>\n        <span class=\"value\" style=\"color: var(--primary)\">Sponsored (Free)</span>\n      </div>\n      <div class=\"divider\"></div>\n      <div class=\"info-row\">\n        <span class=\"label\">Method</span>\n        <span class=\"value\">Smart Account (ERC-4337)</span>\n      </div>\n    </div>\n    <button class=\"btn\" id=\"payBtn\" onclick=\"handlePay()\">\n      Pay $${amount.toFixed(2)} — No Gas Required\n    </button>\n    <div id=\"status\"></div>\n    <div class=\"footer\">\n      Powered by t402 Protocol${testnet ? \" (Testnet)\" : \"\"}\n    </div>\n  </div>\n  <script>\n    async function handlePay() {\n      var btn = document.getElementById('payBtn');\n      var statusEl = document.getElementById('status');\n      btn.classList.add('loading');\n      btn.disabled = true;\n      statusEl.innerHTML = '';\n      try {\n        var response = await fetch(window.t402.currentUrl, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json', 'X-T402-Gasless': 'true' },\n          body: JSON.stringify({ paymentRequired: window.t402.paymentRequired }),\n        });\n        if (response.ok) {\n          statusEl.innerHTML = '<div class=\"status success\">Payment confirmed! Redirecting...</div>';\n          setTimeout(function() { window.location.reload(); }, 1500);\n        } else {\n          var data = await response.json().catch(function() { return {}; });\n          throw new Error(data.error || 'Payment failed');\n        }\n      } catch (err) {\n        statusEl.innerHTML = '<div class=\"status error\">' + (err.message || 'Payment failed') + '</div>';\n        btn.classList.remove('loading');\n        btn.disabled = false;\n      }\n    }\n  </script>\n</body>\n</html>`;\n}\n","import type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getGaslessPaywallHtml } from \"./paywall\";\n\n/**\n * Gasless ERC-4337 paywall handler for EVM networks.\n *\n * Renders a paywall page that indicates the payment will be gasless\n * (sponsored by a paymaster). Use this handler instead of `evmPaywall`\n * when your application supports gasless payments.\n *\n * The handler checks for `eip155:` network prefix AND\n * the `extra.gasless` field in payment requirements.\n *\n * @example\n * ```typescript\n * import { createPaywall, gaslessPaywall, evmPaywall } from '@t402/paywall';\n *\n * const paywall = createPaywall()\n *   .withNetwork(gaslessPaywall) // gasless first (checked before evm)\n *   .withNetwork(evmPaywall)     // fallback to regular EVM\n *   .build();\n * ```\n */\nexport const gaslessPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement.\n   * Matches EVM networks with gasless support indicated.\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    if (!requirement.network.startsWith(\"eip155:\")) {\n      return false;\n    }\n\n    // Check for gasless flag in extra metadata\n    if (requirement.extra?.gasless === true) {\n      return true;\n    }\n\n    // Check for ERC-4337 scheme\n    if (requirement.scheme === \"erc4337\" || requirement.scheme === \"gasless\") {\n      return true;\n    }\n\n    return false;\n  },\n\n  /**\n   * Generate gasless paywall HTML\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    const amount = requirement.amount\n      ? parseFloat(requirement.amount) / 1000000\n      : requirement.maxAmountRequired\n        ? parseFloat(requirement.maxAmountRequired) / 1000000\n        : 0;\n\n    return getGaslessPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      theme: config.theme,\n    });\n  },\n};\n","import { useState, useEffect, useCallback } from \"react\";\n\n/**\n * Transaction status states\n */\nexport type TxStatus = \"pending\" | \"confirming\" | \"confirmed\" | \"failed\";\n\nexport interface TransactionStatusProps {\n  /**\n   * Transaction hash\n   */\n  txHash: string;\n  /**\n   * Network identifier (CAIP-2 format)\n   */\n  network: string;\n  /**\n   * Number of confirmations required (default: 1)\n   */\n  requiredConfirmations?: number;\n  /**\n   * Callback when transaction is confirmed\n   */\n  onConfirmed?: () => void;\n  /**\n   * Callback when transaction fails\n   */\n  onFailed?: (error: string) => void;\n}\n\n/**\n * Get block explorer URL for a transaction\n */\nfunction getExplorerUrl(txHash: string, network: string): string | null {\n  // EVM chains\n  if (network.startsWith(\"eip155:\")) {\n    const chainId = parseInt(network.split(\":\")[1]);\n    const explorers: Record<number, string> = {\n      1: \"https://etherscan.io/tx/\",\n      8453: \"https://basescan.org/tx/\",\n      84532: \"https://sepolia.basescan.org/tx/\",\n      42161: \"https://arbiscan.io/tx/\",\n      421614: \"https://sepolia.arbiscan.io/tx/\",\n      10: \"https://optimistic.etherscan.io/tx/\",\n      11155420: \"https://sepolia-optimism.etherscan.io/tx/\",\n      137: \"https://polygonscan.com/tx/\",\n    };\n    const baseUrl = explorers[chainId];\n    return baseUrl ? `${baseUrl}${txHash}` : null;\n  }\n\n  // Solana\n  if (network.startsWith(\"solana:\")) {\n    const ref = network.split(\":\")[1];\n    const isDevnet = ref === \"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\";\n    const cluster = isDevnet ? \"?cluster=devnet\" : \"\";\n    return `https://solscan.io/tx/${txHash}${cluster}`;\n  }\n\n  // TON\n  if (network.startsWith(\"ton:\")) {\n    const ref = network.split(\":\")[1];\n    const isTestnet = ref === \"testnet\";\n    return isTestnet\n      ? `https://testnet.tonscan.org/tx/${txHash}`\n      : `https://tonscan.org/tx/${txHash}`;\n  }\n\n  // TRON\n  if (network.startsWith(\"tron:\")) {\n    const ref = network.split(\":\")[1];\n    if (ref === \"nile\") return `https://nile.tronscan.org/#/transaction/${txHash}`;\n    if (ref === \"shasta\") return `https://shasta.tronscan.org/#/transaction/${txHash}`;\n    return `https://tronscan.org/#/transaction/${txHash}`;\n  }\n\n  // Stacks\n  if (network.startsWith(\"stacks:\")) {\n    const chainId = network.split(\":\")[1];\n    const isTestnet = chainId === \"2147483648\";\n    return isTestnet\n      ? `https://explorer.hiro.so/txid/${txHash}?chain=testnet`\n      : `https://explorer.hiro.so/txid/${txHash}`;\n  }\n\n  // Cosmos/Noble\n  if (network.startsWith(\"cosmos:\")) {\n    const chainId = network.split(\":\")[1];\n    if (chainId === \"noble-1\") return `https://www.mintscan.io/noble/tx/${txHash}`;\n    if (chainId === \"grand-1\") return `https://testnet.mintscan.io/noble-testnet/tx/${txHash}`;\n    return null;\n  }\n\n  // NEAR\n  if (network.startsWith(\"near:\")) {\n    const ref = network.split(\":\")[1];\n    const isTestnet = ref === \"testnet\";\n    return isTestnet\n      ? `https://testnet.nearblocks.io/txns/${txHash}`\n      : `https://nearblocks.io/txns/${txHash}`;\n  }\n\n  return null;\n}\n\n/**\n * Truncate transaction hash for display\n */\nfunction truncateHash(hash: string): string {\n  if (hash.length <= 16) return hash;\n  return `${hash.slice(0, 8)}...${hash.slice(-6)}`;\n}\n\n/**\n * Copy icon SVG\n */\nfunction CopyIcon() {\n  return (\n    <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" aria-hidden=\"true\">\n      <rect x=\"4\" y=\"4\" width=\"8\" height=\"8\" rx=\"1\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n      <path\n        d=\"M2 10V3a1 1 0 011-1h7\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n      />\n    </svg>\n  );\n}\n\n/**\n * Check icon SVG\n */\nfunction CheckIcon() {\n  return (\n    <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" aria-hidden=\"true\">\n      <path\n        d=\"M11.5 4L5.5 10L2.5 7\"\n        stroke=\"currentColor\"\n        strokeWidth=\"2\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\n/**\n * External link icon SVG\n */\nfunction ExternalLinkIcon() {\n  return (\n    <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n      <path\n        d=\"M9 6.5v3a1 1 0 01-1 1H2.5a1 1 0 01-1-1V4a1 1 0 011-1H6M8 1.5h2.5m0 0V4m0-2.5L6 6\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\n/**\n * Spinner for pending state\n */\nfunction StatusSpinner() {\n  return (\n    <svg\n      width=\"16\"\n      height=\"16\"\n      viewBox=\"0 0 16 16\"\n      fill=\"none\"\n      className=\"tx-status-spinner\"\n      aria-hidden=\"true\"\n    >\n      <circle\n        cx=\"8\"\n        cy=\"8\"\n        r=\"6\"\n        stroke=\"currentColor\"\n        strokeWidth=\"2\"\n        strokeLinecap=\"round\"\n        strokeDasharray=\"24\"\n        strokeDashoffset=\"12\"\n      />\n    </svg>\n  );\n}\n\n/**\n * Transaction status display component.\n * Shows transaction hash, explorer link, and confirmation status.\n */\nexport function TransactionStatus({\n  txHash,\n  network,\n  requiredConfirmations = 1,\n  onConfirmed,\n  onFailed,\n}: TransactionStatusProps) {\n  const [status, setStatus] = useState<TxStatus>(\"pending\");\n  const [confirmations, setConfirmations] = useState(0);\n  const [copied, setCopied] = useState(false);\n\n  const explorerUrl = getExplorerUrl(txHash, network);\n\n  const copyToClipboard = useCallback(async () => {\n    try {\n      await navigator.clipboard.writeText(txHash);\n      setCopied(true);\n      setTimeout(() => setCopied(false), 2000);\n    } catch {\n      // Fallback for older browsers\n      const textArea = document.createElement(\"textarea\");\n      textArea.value = txHash;\n      document.body.appendChild(textArea);\n      textArea.select();\n      document.execCommand(\"copy\");\n      document.body.removeChild(textArea);\n      setCopied(true);\n      setTimeout(() => setCopied(false), 2000);\n    }\n  }, [txHash]);\n\n  // Simulate confirmation polling (in a real implementation, this would poll the blockchain)\n  useEffect(() => {\n    if (status === \"confirmed\" || status === \"failed\") return;\n\n    // For demo purposes, simulate confirmation after a delay\n    // In production, this would poll the blockchain for actual confirmation status\n    const timer = setTimeout(() => {\n      if (confirmations < requiredConfirmations) {\n        setConfirmations(prev => prev + 1);\n        setStatus(\"confirming\");\n      }\n    }, 2000);\n\n    return () => clearTimeout(timer);\n  }, [confirmations, requiredConfirmations, status]);\n\n  // Check if confirmed or failed\n  useEffect(() => {\n    if (confirmations >= requiredConfirmations && status !== \"confirmed\") {\n      setStatus(\"confirmed\");\n      onConfirmed?.();\n    }\n    if (status === \"failed\") {\n      onFailed?.(\"Transaction failed\");\n    }\n  }, [confirmations, requiredConfirmations, status, onConfirmed, onFailed]);\n\n  const getStatusText = () => {\n    switch (status) {\n      case \"pending\":\n        return \"Waiting for confirmation...\";\n      case \"confirming\":\n        return `${confirmations}/${requiredConfirmations} confirmation${confirmations !== 1 ? \"s\" : \"\"}`;\n      case \"confirmed\":\n        return \"Transaction confirmed\";\n      case \"failed\":\n        return \"Transaction failed\";\n      default:\n        return \"\";\n    }\n  };\n\n  const getStatusClass = () => {\n    switch (status) {\n      case \"confirmed\":\n        return \"tx-status-success\";\n      case \"failed\":\n        return \"tx-status-error\";\n      default:\n        return \"tx-status-pending\";\n    }\n  };\n\n  return (\n    <div className=\"tx-status-container\" role=\"status\" aria-live=\"polite\">\n      <div className=\"tx-status-header\">\n        <span className=\"tx-status-label\">Transaction</span>\n        <div className={`tx-status-badge ${getStatusClass()}`}>\n          {status === \"pending\" || status === \"confirming\" ? (\n            <StatusSpinner />\n          ) : status === \"confirmed\" ? (\n            <CheckIcon />\n          ) : null}\n          <span>{getStatusText()}</span>\n        </div>\n      </div>\n\n      <div className=\"tx-hash-row\">\n        <code className=\"tx-hash\">{truncateHash(txHash)}</code>\n        <div className=\"tx-hash-actions\">\n          <button\n            className=\"tx-action-button\"\n            onClick={copyToClipboard}\n            title={copied ? \"Copied!\" : \"Copy transaction hash\"}\n            aria-label={copied ? \"Copied to clipboard\" : \"Copy transaction hash\"}\n          >\n            {copied ? <CheckIcon /> : <CopyIcon />}\n          </button>\n          {explorerUrl && (\n            <a\n              href={explorerUrl}\n              target=\"_blank\"\n              rel=\"noopener noreferrer\"\n              className=\"tx-action-button\"\n              title=\"View on explorer\"\n              aria-label=\"View transaction on block explorer\"\n            >\n              <ExternalLinkIcon />\n            </a>\n          )}\n        </div>\n      </div>\n\n      {status === \"confirming\" && (\n        <div\n          className=\"tx-confirmations-bar\"\n          role=\"progressbar\"\n          aria-valuenow={confirmations}\n          aria-valuemax={requiredConfirmations}\n        >\n          <div\n            className=\"tx-confirmations-progress\"\n            style={{ width: `${(confirmations / requiredConfirmations) * 100}%` }}\n          />\n        </div>\n      )}\n    </div>\n  );\n}\n\n/**\n * Hook to manage transaction status\n */\nexport function useTransactionStatus() {\n  const [txHash, setTxHash] = useState<string | null>(null);\n  const [txNetwork, setTxNetwork] = useState<string | null>(null);\n\n  const setTransaction = useCallback((hash: string, network: string) => {\n    setTxHash(hash);\n    setTxNetwork(network);\n  }, []);\n\n  const clearTransaction = useCallback(() => {\n    setTxHash(null);\n    setTxNetwork(null);\n  }, []);\n\n  return {\n    txHash,\n    txNetwork,\n    setTransaction,\n    clearTransaction,\n    hasTransaction: txHash !== null,\n  };\n}\n"]}