@imtbl/sdk 1.72.2 → 1.72.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{blockchain_data-BmbQdP_C.js → blockchain_data-0kChjZIu.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-C918Ka5O.js → AddTokensWidget-XEOxeUOK.js} +235 -78
- package/dist/browser/checkout/{BridgeWidget-DwOaJNgM.js → BridgeWidget-Clj0rpb5.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-BEHSNVbA.js → CommerceWidget-DKW0PiJu.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-DH1QtMCe.js → CryptoFiatProvider-DPaok_1B.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-BQw9Exu_.js → EllipsizedText-CGGaR7N1.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-D98ZPV26.js → FeesBreakdown-CrCYjQsN.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-syg1vRxh.js → HandoverContent-5SX9_Xiq.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-CM1ahbEg.js → OnRampWidget-RGyz_t74.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-Cq24qGtF.js → SaleWidget-CJySbSv8.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-Bw4WAKvv.js → SpendingCapHero-ezwxfLmM.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-noAcQ7jQ.js → SwapWidget-CyxxcafB.js} +9 -9
- package/dist/browser/checkout/{TokenImage-BZa8JxyT.js → TokenImage-BA0u7Bgh.js} +1 -1
- package/dist/browser/checkout/{TopUpView-aoP2uGnf.js → TopUpView-B1a8J1mC.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-BjA2Cbm9.js → WalletApproveHero-DAITG5M0.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-CDmQBUXd.js → WalletWidget-BxGPxriO.js} +4 -4
- package/dist/browser/checkout/{auto-track-Dbsvy-BT.js → auto-track-Dk9WOiOp.js} +1 -1
- package/dist/browser/checkout/{index-CB0_Fnoc.js → index-C6lPs4SY.js} +1 -1
- package/dist/browser/checkout/{index-DQz9auHI.js → index-CFuDYPeI.js} +171 -21
- package/dist/browser/checkout/{index-DAJPMfAh.js → index-CcjuvsGM.js} +1 -1
- package/dist/browser/checkout/{index-BV70tfMD.js → index-CyfOrvHW.js} +1 -1
- package/dist/browser/checkout/{index-DDvik2By.js → index-D0Tv6Vsb.js} +1 -1
- package/dist/browser/checkout/{index-bA4D9UiZ.js → index-DFz090oi.js} +1 -1
- package/dist/browser/checkout/{index-XsDcGvgn.js → index-Dok96qDW.js} +1 -1
- package/dist/browser/checkout/{index-DntlgHvp.js → index-Oc5pNJz9.js} +2 -2
- package/dist/browser/checkout/{index-wcn_TiaN.js → index-mrxzvJu8.js} +1 -1
- package/dist/browser/checkout/{index.umd-DVAP-cA9.js → index.umd-rVoY7U1T.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-Cu2NeYF8.js → useInterval-BQ8_ct2v.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +410 -103
- package/dist/{checkout-B6gBhJWx.js → checkout-Bgc48Lxw.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-QbGV-jxY.js → config-pYuTD3Af.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BqES76q8.js → index-BslxZ3y3.js} +1 -1
- package/dist/{index-kFE9jNzl.js → index-Bw-fkJuR.js} +1 -1
- package/dist/{index-DTd9zrBY.js → index-CiyZImUV.js} +4 -4
- package/dist/{index-DLu9g736.js → index-DUMVMNz0.js} +1 -1
- package/dist/{index-DK_xTGSI.js → index-DcdCONZR.js} +1 -1
- package/dist/{index-08gcLjI3.js → index-nHc9hHY2.js} +3 -3
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-Drblkmez.js → minting_backend-Z9FukJb6.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CzoIIUYR.js → orderbook-Klsd_rC0.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DueWl0WJ.js → passport-vEDnR05l.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-BOOTRK5K.js → webhook-CXwsk7JH.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-6mmW-KST.js → x-WVtOJXVe.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -3958,6 +3958,153 @@
|
|
|
3958
3958
|
errorBoundary$1(getGlobalisedValue$2('startFlushing', startFlushing$1))();
|
|
3959
3959
|
}
|
|
3960
3960
|
|
|
3961
|
+
/**
|
|
3962
|
+
* Track an event and it's performance. Works similarly to `track`, but also includes a duration.
|
|
3963
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
3964
|
+
* @param eventName Name of the event, e.g. `clickItem`
|
|
3965
|
+
* @param duration Duration of the event in milliseconds, e.g. `1000`
|
|
3966
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
3967
|
+
*
|
|
3968
|
+
* @example
|
|
3969
|
+
* ```ts
|
|
3970
|
+
* trackDuration("passport", "performTransaction", 1000);
|
|
3971
|
+
* trackDuration("passport", "performTransaction", 1000, { transationType: "transfer" });
|
|
3972
|
+
* ```
|
|
3973
|
+
*/
|
|
3974
|
+
const trackDuration = (moduleName, eventName, duration, properties) => track$1(moduleName, eventName, {
|
|
3975
|
+
...(properties || {}),
|
|
3976
|
+
duration: Math.round(duration),
|
|
3977
|
+
});
|
|
3978
|
+
|
|
3979
|
+
// UUID not playing well with browser, using this for now
|
|
3980
|
+
const generateFlowId = () => {
|
|
3981
|
+
const s4 = () => Math.floor((1 + Math.random()) * 0x10000)
|
|
3982
|
+
.toString(16)
|
|
3983
|
+
.substring(1);
|
|
3984
|
+
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
|
|
3985
|
+
};
|
|
3986
|
+
|
|
3987
|
+
// Flow Tracking Functions
|
|
3988
|
+
// -----------------------------------
|
|
3989
|
+
// Write a function to take multiple objects as arguments, and merge them into one object
|
|
3990
|
+
const mergeProperties = (...args) => {
|
|
3991
|
+
const hasProperties = args.some((arg) => !!arg);
|
|
3992
|
+
if (!hasProperties) {
|
|
3993
|
+
return {};
|
|
3994
|
+
}
|
|
3995
|
+
let finalProperties = {};
|
|
3996
|
+
args.forEach((arg) => {
|
|
3997
|
+
if (arg) {
|
|
3998
|
+
finalProperties = {
|
|
3999
|
+
...finalProperties,
|
|
4000
|
+
...arg,
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
});
|
|
4004
|
+
return finalProperties;
|
|
4005
|
+
};
|
|
4006
|
+
const cleanEventName = (eventName) => eventName.replace(/[^a-zA-Z0-9\s\-_]/g, '');
|
|
4007
|
+
const getEventName = (flowName, eventName) => `${flowName}_${cleanEventName(eventName)}`;
|
|
4008
|
+
const trackFlowFn = (moduleName, flowName, properties) => {
|
|
4009
|
+
// Track the start of the flow
|
|
4010
|
+
const flowId = generateFlowId();
|
|
4011
|
+
const flowStartTime = Date.now();
|
|
4012
|
+
// Flow tracking
|
|
4013
|
+
let currentStepCount = 0;
|
|
4014
|
+
let previousStepTime = 0;
|
|
4015
|
+
let flowProperties = {};
|
|
4016
|
+
const mergeFlowProps = (...args) => mergeProperties(flowProperties, ...args, {
|
|
4017
|
+
flowId,
|
|
4018
|
+
flowName,
|
|
4019
|
+
});
|
|
4020
|
+
// Set up flow properties
|
|
4021
|
+
flowProperties = mergeFlowProps(properties);
|
|
4022
|
+
const addFlowProperties = (newProperties) => {
|
|
4023
|
+
if (newProperties) {
|
|
4024
|
+
flowProperties = mergeFlowProps(newProperties);
|
|
4025
|
+
}
|
|
4026
|
+
};
|
|
4027
|
+
const addEvent = (eventName, eventProperties) => {
|
|
4028
|
+
const event = getEventName(flowName, eventName);
|
|
4029
|
+
// Calculate duration since previous step
|
|
4030
|
+
let duration = 0;
|
|
4031
|
+
const currentTime = performance.now();
|
|
4032
|
+
if (currentStepCount > 0) {
|
|
4033
|
+
duration = currentTime - previousStepTime;
|
|
4034
|
+
}
|
|
4035
|
+
const mergedProps = mergeFlowProps(eventProperties, {
|
|
4036
|
+
flowEventName: eventName,
|
|
4037
|
+
flowStep: currentStepCount,
|
|
4038
|
+
});
|
|
4039
|
+
trackDuration(moduleName, event, duration, mergedProps);
|
|
4040
|
+
// Increment counters
|
|
4041
|
+
currentStepCount++;
|
|
4042
|
+
previousStepTime = currentTime;
|
|
4043
|
+
};
|
|
4044
|
+
// Trigger a Start Event as a record of creating the flow
|
|
4045
|
+
addEvent('Start');
|
|
4046
|
+
return {
|
|
4047
|
+
details: {
|
|
4048
|
+
moduleName,
|
|
4049
|
+
flowName,
|
|
4050
|
+
flowId,
|
|
4051
|
+
flowStartTime,
|
|
4052
|
+
},
|
|
4053
|
+
addEvent: errorBoundary$1(addEvent),
|
|
4054
|
+
addFlowProperties: errorBoundary$1(addFlowProperties),
|
|
4055
|
+
};
|
|
4056
|
+
};
|
|
4057
|
+
/**
|
|
4058
|
+
* Track a flow of events, including the start and end of the flow.
|
|
4059
|
+
* Works similarly to `track`
|
|
4060
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
4061
|
+
* @param flowName Name of the flow, e.g. `performTransaction`
|
|
4062
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
4063
|
+
*
|
|
4064
|
+
* @example
|
|
4065
|
+
* ```ts
|
|
4066
|
+
* const flow = trackFlow("passport", "performTransaction", { transationType: "transfer" });
|
|
4067
|
+
* // Do something...
|
|
4068
|
+
* flow.addEvent("clickItem");
|
|
4069
|
+
* // Do something...
|
|
4070
|
+
* flow.addFlowProperties({ item: "item1" });
|
|
4071
|
+
* flow.addEvent("guardianCheck", {"invisible": "true"});
|
|
4072
|
+
* // Do something...
|
|
4073
|
+
* flow.addEvent("guardianCheckComplete");
|
|
4074
|
+
* flow.end();
|
|
4075
|
+
* ```
|
|
4076
|
+
*/
|
|
4077
|
+
const trackFlow = errorBoundary$1(trackFlowFn);
|
|
4078
|
+
|
|
4079
|
+
const trackErrorFn = (moduleName, eventName, error, properties) => {
|
|
4080
|
+
const { message } = error;
|
|
4081
|
+
let stack = error.stack || '';
|
|
4082
|
+
const { cause } = error;
|
|
4083
|
+
if (cause instanceof Error) {
|
|
4084
|
+
stack = `${stack} \nCause: ${cause.message}\n ${cause.stack}`;
|
|
4085
|
+
}
|
|
4086
|
+
track$1(moduleName, `trackError_${eventName}`, {
|
|
4087
|
+
...(properties || {}),
|
|
4088
|
+
errorMessage: message,
|
|
4089
|
+
errorStack: stack,
|
|
4090
|
+
isTrackError: true,
|
|
4091
|
+
});
|
|
4092
|
+
};
|
|
4093
|
+
/**
|
|
4094
|
+
* Track an event and it's performance. Works similarly to `track`, but also includes a duration.
|
|
4095
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
4096
|
+
* @param eventName Name of the event, e.g. `clickItem`
|
|
4097
|
+
* @param error Error object to be tracked
|
|
4098
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
4099
|
+
*
|
|
4100
|
+
* @example
|
|
4101
|
+
* ```ts
|
|
4102
|
+
* trackError("passport", "sendTransactionFailed", error);
|
|
4103
|
+
* trackError("passport", "getItemFailed", error, { otherProperty: "value" });
|
|
4104
|
+
* ```
|
|
4105
|
+
*/
|
|
4106
|
+
const trackError = errorBoundary$1(trackErrorFn);
|
|
4107
|
+
|
|
3961
4108
|
const setEnvironmentFn$1 = (env) => {
|
|
3962
4109
|
storeDetail$1(Detail$1.ENVIRONMENT, env);
|
|
3963
4110
|
};
|
|
@@ -90561,12 +90708,12 @@
|
|
|
90561
90708
|
*
|
|
90562
90709
|
* @_section: api/utils/errors:Errors [about-errors]
|
|
90563
90710
|
*/
|
|
90564
|
-
function stringify$
|
|
90711
|
+
function stringify$4(value) {
|
|
90565
90712
|
if (value == null) {
|
|
90566
90713
|
return "null";
|
|
90567
90714
|
}
|
|
90568
90715
|
if (Array.isArray(value)) {
|
|
90569
|
-
return "[ " + (value.map(stringify$
|
|
90716
|
+
return "[ " + (value.map(stringify$4)).join(", ") + " ]";
|
|
90570
90717
|
}
|
|
90571
90718
|
if (value instanceof Uint8Array) {
|
|
90572
90719
|
const HEX = "0123456789abcdef";
|
|
@@ -90578,7 +90725,7 @@
|
|
|
90578
90725
|
return result;
|
|
90579
90726
|
}
|
|
90580
90727
|
if (typeof (value) === "object" && typeof (value.toJSON) === "function") {
|
|
90581
|
-
return stringify$
|
|
90728
|
+
return stringify$4(value.toJSON());
|
|
90582
90729
|
}
|
|
90583
90730
|
switch (typeof (value)) {
|
|
90584
90731
|
case "boolean":
|
|
@@ -90593,7 +90740,7 @@
|
|
|
90593
90740
|
case "object": {
|
|
90594
90741
|
const keys = Object.keys(value);
|
|
90595
90742
|
keys.sort();
|
|
90596
|
-
return "{ " + keys.map((k) => `${stringify$
|
|
90743
|
+
return "{ " + keys.map((k) => `${stringify$4(k)}: ${stringify$4(value[k])}`).join(", ") + " }";
|
|
90597
90744
|
}
|
|
90598
90745
|
}
|
|
90599
90746
|
return `[ COULD NOT SERIALIZE ]`;
|
|
@@ -90614,7 +90761,7 @@
|
|
|
90614
90761
|
const details = [];
|
|
90615
90762
|
if (info) {
|
|
90616
90763
|
if ("message" in info || "code" in info || "name" in info) {
|
|
90617
|
-
throw new Error(`value will overwrite populated values: ${stringify$
|
|
90764
|
+
throw new Error(`value will overwrite populated values: ${stringify$4(info)}`);
|
|
90618
90765
|
}
|
|
90619
90766
|
for (const key in info) {
|
|
90620
90767
|
if (key === "shortMessage") {
|
|
@@ -90622,7 +90769,7 @@
|
|
|
90622
90769
|
}
|
|
90623
90770
|
const value = (info[key]);
|
|
90624
90771
|
// try {
|
|
90625
|
-
details.push(key + "=" + stringify$
|
|
90772
|
+
details.push(key + "=" + stringify$4(value));
|
|
90626
90773
|
// } catch (error: any) {
|
|
90627
90774
|
// console.log("MMM", error.message);
|
|
90628
90775
|
// details.push(key + "=[could not serialize object]");
|
|
@@ -131362,7 +131509,7 @@
|
|
|
131362
131509
|
|
|
131363
131510
|
var e$9 = /*@__PURE__*/getDefaultExportFromCjs$3(voidElements);
|
|
131364
131511
|
|
|
131365
|
-
var t$9=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$b(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(e$9[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return {type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(t$9),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--;}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r$9=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$
|
|
131512
|
+
var t$9=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$b(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(e$9[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return {type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(t$9),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--;}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r$9=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$9=/^\s*$/,s$7=Object.create(null);function a$7(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a$7,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var c$9={parse:function(e,t){t||(t={}),t.components||(t.components=s$7);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)});}return e.replace(r$9,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1;}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=n$b(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=n$b(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);i$9.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g});}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a$7("",t)},"")}};
|
|
131366
131513
|
|
|
131367
131514
|
function warn() {
|
|
131368
131515
|
if (console && console.warn) {
|
|
@@ -141708,7 +141855,7 @@
|
|
|
141708
141855
|
const proto = Object.getPrototypeOf(value);
|
|
141709
141856
|
return !proto || proto.isPrototypeOf(Object);
|
|
141710
141857
|
}
|
|
141711
|
-
function stringify$
|
|
141858
|
+
function stringify$3(value) {
|
|
141712
141859
|
if (isPrimitive(value)) {
|
|
141713
141860
|
return String(value);
|
|
141714
141861
|
}
|
|
@@ -141716,7 +141863,7 @@
|
|
|
141716
141863
|
return JSON.stringify(value);
|
|
141717
141864
|
}
|
|
141718
141865
|
if (typeof value.toJSON === "function") {
|
|
141719
|
-
return stringify$
|
|
141866
|
+
return stringify$3(value.toJSON());
|
|
141720
141867
|
}
|
|
141721
141868
|
throw new Error("[unstorage] Cannot stringify value!");
|
|
141722
141869
|
}
|
|
@@ -141958,7 +142105,7 @@
|
|
|
141958
142105
|
if (!driver.setItem) {
|
|
141959
142106
|
return;
|
|
141960
142107
|
}
|
|
141961
|
-
await asyncCall(driver.setItem, relativeKey, stringify$
|
|
142108
|
+
await asyncCall(driver.setItem, relativeKey, stringify$3(value), opts);
|
|
141962
142109
|
if (!driver.watch) {
|
|
141963
142110
|
onChange("update", key);
|
|
141964
142111
|
}
|
|
@@ -141970,7 +142117,7 @@
|
|
|
141970
142117
|
batch.driver.setItems,
|
|
141971
142118
|
batch.items.map((item) => ({
|
|
141972
142119
|
key: item.relativeKey,
|
|
141973
|
-
value: stringify$
|
|
142120
|
+
value: stringify$3(item.value),
|
|
141974
142121
|
options: item.options
|
|
141975
142122
|
})),
|
|
141976
142123
|
commonOptions
|
|
@@ -141984,7 +142131,7 @@
|
|
|
141984
142131
|
return asyncCall(
|
|
141985
142132
|
batch.driver.setItem,
|
|
141986
142133
|
item.relativeKey,
|
|
141987
|
-
stringify$
|
|
142134
|
+
stringify$3(item.value),
|
|
141988
142135
|
item.options
|
|
141989
142136
|
);
|
|
141990
142137
|
})
|
|
@@ -148295,7 +148442,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
148295
148442
|
* @param {function} callback
|
|
148296
148443
|
* @return {string}
|
|
148297
148444
|
*/
|
|
148298
|
-
function stringify$
|
|
148445
|
+
function stringify$2 (element, index, children, callback) {
|
|
148299
148446
|
switch (element.type) {
|
|
148300
148447
|
case LAYER: if (element.children.length) break
|
|
148301
148448
|
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
@@ -148751,7 +148898,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
148751
148898
|
|
|
148752
148899
|
{
|
|
148753
148900
|
var currentSheet;
|
|
148754
|
-
var finalizingPlugins = [stringify$
|
|
148901
|
+
var finalizingPlugins = [stringify$2, rulesheet(function (rule) {
|
|
148755
148902
|
currentSheet.insert(rule);
|
|
148756
148903
|
})];
|
|
148757
148904
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -150225,7 +150372,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
150225
150372
|
var IDX=256, HEX=[], BUFFER;
|
|
150226
150373
|
while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
|
|
150227
150374
|
|
|
150228
|
-
function v4() {
|
|
150375
|
+
function v4$1() {
|
|
150229
150376
|
var i=0, num, out='';
|
|
150230
150377
|
|
|
150231
150378
|
if (!BUFFER || ((IDX + 16) > 256)) {
|
|
@@ -150389,7 +150536,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
150389
150536
|
}());
|
|
150390
150537
|
var CoreContext = /** @class */ (function () {
|
|
150391
150538
|
function CoreContext(event, id, stats, logger) {
|
|
150392
|
-
if (id === void 0) { id = v4(); }
|
|
150539
|
+
if (id === void 0) { id = v4$1(); }
|
|
150393
150540
|
if (stats === void 0) { stats = new NullStats(); }
|
|
150394
150541
|
if (logger === void 0) { logger = new CoreLogger(); }
|
|
150395
150542
|
this.attempts = 0;
|
|
@@ -152683,7 +152830,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
152683
152830
|
var _d = this.context(event), context = _d[0], overrides = _d[1];
|
|
152684
152831
|
event.options; var rest = __rest(event, ["options"]);
|
|
152685
152832
|
var body = __assign(__assign(__assign({ timestamp: new Date() }, rest), { context: context, integrations: allIntegrations }), overrides);
|
|
152686
|
-
var messageId = 'ajs-next-' + md5$1.hash(JSON.stringify(body) + v4());
|
|
152833
|
+
var messageId = 'ajs-next-' + md5$1.hash(JSON.stringify(body) + v4$1());
|
|
152687
152834
|
var evt = __assign(__assign({}, body), { messageId: messageId });
|
|
152688
152835
|
return evt;
|
|
152689
152836
|
};
|
|
@@ -152872,7 +153019,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
152872
153019
|
_this.identityStore.set(_this.anonKey, null);
|
|
152873
153020
|
return _this.identityStore.getAndSync(_this.anonKey);
|
|
152874
153021
|
}
|
|
152875
|
-
_this.identityStore.set(_this.anonKey, id !== null && id !== void 0 ? id : v4());
|
|
153022
|
+
_this.identityStore.set(_this.anonKey, id !== null && id !== void 0 ? id : v4$1());
|
|
152876
153023
|
return _this.identityStore.getAndSync(_this.anonKey);
|
|
152877
153024
|
};
|
|
152878
153025
|
this.traits = function (traits) {
|
|
@@ -154579,12 +154726,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154579
154726
|
}
|
|
154580
154727
|
identify.Identify = Identify;
|
|
154581
154728
|
inherits_1$4.default(Identify, facade_1$3.Facade);
|
|
154582
|
-
var i$
|
|
154583
|
-
i$
|
|
154729
|
+
var i$8 = Identify.prototype;
|
|
154730
|
+
i$8.action = function () {
|
|
154584
154731
|
return "identify";
|
|
154585
154732
|
};
|
|
154586
|
-
i$
|
|
154587
|
-
i$
|
|
154733
|
+
i$8.type = i$8.action;
|
|
154734
|
+
i$8.traits = function (aliases) {
|
|
154588
154735
|
var ret = this.field("traits") || {};
|
|
154589
154736
|
var id = this.userId();
|
|
154590
154737
|
aliases = aliases || {};
|
|
@@ -154600,7 +154747,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154600
154747
|
}
|
|
154601
154748
|
return ret;
|
|
154602
154749
|
};
|
|
154603
|
-
i$
|
|
154750
|
+
i$8.email = function () {
|
|
154604
154751
|
var email = this.proxy("traits.email");
|
|
154605
154752
|
if (email)
|
|
154606
154753
|
return email;
|
|
@@ -154608,22 +154755,22 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154608
154755
|
if (is_email_1$2.default(userId))
|
|
154609
154756
|
return userId;
|
|
154610
154757
|
};
|
|
154611
|
-
i$
|
|
154758
|
+
i$8.created = function () {
|
|
154612
154759
|
var created = this.proxy("traits.created") || this.proxy("traits.createdAt");
|
|
154613
154760
|
if (created)
|
|
154614
154761
|
return new_date_1.default(created);
|
|
154615
154762
|
};
|
|
154616
|
-
i$
|
|
154763
|
+
i$8.companyCreated = function () {
|
|
154617
154764
|
var created = this.proxy("traits.company.created") ||
|
|
154618
154765
|
this.proxy("traits.company.createdAt");
|
|
154619
154766
|
if (created) {
|
|
154620
154767
|
return new_date_1.default(created);
|
|
154621
154768
|
}
|
|
154622
154769
|
};
|
|
154623
|
-
i$
|
|
154770
|
+
i$8.companyName = function () {
|
|
154624
154771
|
return this.proxy("traits.company.name");
|
|
154625
154772
|
};
|
|
154626
|
-
i$
|
|
154773
|
+
i$8.name = function () {
|
|
154627
154774
|
var name = this.proxy("traits.name");
|
|
154628
154775
|
if (typeof name === "string") {
|
|
154629
154776
|
return trim$2(name);
|
|
@@ -154634,7 +154781,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154634
154781
|
return trim$2(firstName + " " + lastName);
|
|
154635
154782
|
}
|
|
154636
154783
|
};
|
|
154637
|
-
i$
|
|
154784
|
+
i$8.firstName = function () {
|
|
154638
154785
|
var firstName = this.proxy("traits.firstName");
|
|
154639
154786
|
if (typeof firstName === "string") {
|
|
154640
154787
|
return trim$2(firstName);
|
|
@@ -154644,7 +154791,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154644
154791
|
return trim$2(name).split(" ")[0];
|
|
154645
154792
|
}
|
|
154646
154793
|
};
|
|
154647
|
-
i$
|
|
154794
|
+
i$8.lastName = function () {
|
|
154648
154795
|
var lastName = this.proxy("traits.lastName");
|
|
154649
154796
|
if (typeof lastName === "string") {
|
|
154650
154797
|
return trim$2(lastName);
|
|
@@ -154659,13 +154806,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154659
154806
|
}
|
|
154660
154807
|
return trim$2(name.substr(space + 1));
|
|
154661
154808
|
};
|
|
154662
|
-
i$
|
|
154809
|
+
i$8.uid = function () {
|
|
154663
154810
|
return this.userId() || this.username() || this.email();
|
|
154664
154811
|
};
|
|
154665
|
-
i$
|
|
154812
|
+
i$8.description = function () {
|
|
154666
154813
|
return this.proxy("traits.description") || this.proxy("traits.background");
|
|
154667
154814
|
};
|
|
154668
|
-
i$
|
|
154815
|
+
i$8.age = function () {
|
|
154669
154816
|
var date = this.birthday();
|
|
154670
154817
|
var age = obj_case_1$1.default(this.traits(), "age");
|
|
154671
154818
|
if (age != null)
|
|
@@ -154675,22 +154822,22 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
154675
154822
|
var now = new Date();
|
|
154676
154823
|
return now.getFullYear() - date.getFullYear();
|
|
154677
154824
|
};
|
|
154678
|
-
i$
|
|
154825
|
+
i$8.avatar = function () {
|
|
154679
154826
|
var traits = this.traits();
|
|
154680
154827
|
return (obj_case_1$1.default(traits, "avatar") || obj_case_1$1.default(traits, "photoUrl") || obj_case_1$1.default(traits, "avatarUrl"));
|
|
154681
154828
|
};
|
|
154682
|
-
i$
|
|
154829
|
+
i$8.position = function () {
|
|
154683
154830
|
var traits = this.traits();
|
|
154684
154831
|
return obj_case_1$1.default(traits, "position") || obj_case_1$1.default(traits, "jobTitle");
|
|
154685
154832
|
};
|
|
154686
|
-
i$
|
|
154687
|
-
i$
|
|
154688
|
-
i$
|
|
154689
|
-
i$
|
|
154690
|
-
i$
|
|
154691
|
-
i$
|
|
154692
|
-
i$
|
|
154693
|
-
i$
|
|
154833
|
+
i$8.username = facade_1$3.Facade.proxy("traits.username");
|
|
154834
|
+
i$8.website = facade_1$3.Facade.one("traits.website");
|
|
154835
|
+
i$8.websites = facade_1$3.Facade.multi("traits.website");
|
|
154836
|
+
i$8.phone = facade_1$3.Facade.one("traits.phone");
|
|
154837
|
+
i$8.phones = facade_1$3.Facade.multi("traits.phone");
|
|
154838
|
+
i$8.address = facade_1$3.Facade.proxy("traits.address");
|
|
154839
|
+
i$8.gender = facade_1$3.Facade.proxy("traits.gender");
|
|
154840
|
+
i$8.birthday = facade_1$3.Facade.proxy("traits.birthday");
|
|
154694
154841
|
|
|
154695
154842
|
var track = {};
|
|
154696
154843
|
|
|
@@ -155274,7 +155421,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
155274
155421
|
};
|
|
155275
155422
|
return ActionDestination;
|
|
155276
155423
|
}());
|
|
155277
|
-
function validate$
|
|
155424
|
+
function validate$2(pluginLike) {
|
|
155278
155425
|
if (!Array.isArray(pluginLike)) {
|
|
155279
155426
|
throw new Error('Not a valid list of plugins');
|
|
155280
155427
|
}
|
|
@@ -155360,7 +155507,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
155360
155507
|
case 10:
|
|
155361
155508
|
plugin = _a.sent();
|
|
155362
155509
|
plugins = Array.isArray(plugin) ? plugin : [plugin];
|
|
155363
|
-
validate$
|
|
155510
|
+
validate$2(plugins);
|
|
155364
155511
|
routing_1 = routingRules.filter(function (rule) { return rule.destinationName === remotePlugin.creationName; });
|
|
155365
155512
|
plugins.forEach(function (plugin) {
|
|
155366
155513
|
var wrapper = new ActionDestination(remotePlugin.creationName, plugin);
|
|
@@ -155753,7 +155900,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
155753
155900
|
});
|
|
155754
155901
|
}
|
|
155755
155902
|
|
|
155756
|
-
function validate(ctx) {
|
|
155903
|
+
function validate$1(ctx) {
|
|
155757
155904
|
var _a;
|
|
155758
155905
|
var event = ctx.event;
|
|
155759
155906
|
assertEventExists(event);
|
|
@@ -155774,12 +155921,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
155774
155921
|
version: '1.0.0',
|
|
155775
155922
|
isLoaded: function () { return true; },
|
|
155776
155923
|
load: function () { return Promise.resolve(); },
|
|
155777
|
-
track: validate,
|
|
155778
|
-
identify: validate,
|
|
155779
|
-
page: validate,
|
|
155780
|
-
alias: validate,
|
|
155781
|
-
group: validate,
|
|
155782
|
-
screen: validate,
|
|
155924
|
+
track: validate$1,
|
|
155925
|
+
identify: validate$1,
|
|
155926
|
+
page: validate$1,
|
|
155927
|
+
alias: validate$1,
|
|
155928
|
+
group: validate$1,
|
|
155929
|
+
screen: validate$1,
|
|
155783
155930
|
};
|
|
155784
155931
|
|
|
155785
155932
|
/**
|
|
@@ -156344,7 +156491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
156344
156491
|
return AnalyticsBrowser;
|
|
156345
156492
|
}(AnalyticsBuffered));
|
|
156346
156493
|
|
|
156347
|
-
var e$7=Object.create,r$6=Object.defineProperty,t$5=Object.getOwnPropertyDescriptor,n$7=Object.getOwnPropertyNames,o$7=Object.getOwnPropertySymbols,a$3=Object.getPrototypeOf,s$5=Object.prototype.hasOwnProperty,i$6=Object.prototype.propertyIsEnumerable,c$4=(e,t,n)=>t in e?r$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u$2=(e,r)=>{for(var t in r||(r={}))s$5.call(r,t)&&c$4(e,t,r[t]);if(o$7)for(var t of o$7(r))i$6.call(r,t)&&c$4(e,t,r[t]);return e},l$4=(e,r)=>function(){return r||(0, e[n$7(e)[0]])((r={exports:{}}).exports,r),r.exports},f$3=(o,i,c)=>(c=null!=o?e$7(a$3(o)):{},((e,o,a,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of n$7(o))s$5.call(e,c)||c===a||r$6(e,c,{get:()=>o[c],enumerable:!(i=t$5(o,c))||i.enumerable});return e})(o&&o.__esModule?c:r$6(c,"default",{value:o,enumerable:!0}),o)),p$2=l$4({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var r="function"==typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,h=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case u:case l:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case y:case m:case i:return e;default:return r}}case n:return r}}}function E(e){return w(e)===l}e.AsyncMode=u,e.ConcurrentMode=l,e.ContextConsumer=c,e.ContextProvider=i,e.Element=t,e.ForwardRef=f,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=s,e.StrictMode=a,e.Suspense=p,e.isAsyncMode=function(e){return E(e)||w(e)===u},e.isConcurrentMode=E,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===i},e.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},e.isForwardRef=function(e){return w(e)===f},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===y},e.isMemo=function(e){return w(e)===m},e.isPortal=function(e){return w(e)===n},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===a},e.isSuspense=function(e){return w(e)===p},e.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===o||e===l||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===i||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},e.typeOf=w;}}),m$1=l$4({"../../node_modules/react-is/index.js"(e,r){r.exports=p$2();}}),y$2=l$4({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,r){var t=m$1(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function i(e){return t.isMemo(e)?a:s[e.$$typeof]||n}s[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[t.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;r.exports=function e(r,t,n){if("string"!=typeof t){if(d){var a=p(t);a&&a!==d&&e(r,a,n);}var s=u(t);l&&(s=s.concat(l(t)));for(var m=i(r),y=i(t),h=0;h<s.length;++h){var v=s[h];if(!(o[v]||n&&n[v]||y&&y[v]||m&&m[v])){var g=f(t,v);try{c(r,v,g);}catch(e){}}}}return r};}}),h$3=l$4({"../../node_modules/@babel/runtime/helpers/extends.js"(e,r){function t(){return r.exports=t=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},r.exports.__esModule=!0,r.exports.default=r.exports,t.apply(this,arguments)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports;}});function O(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}var k$1=function(){function e(e){var r=this;this._insertTag=function(e){var t;t=0===r.tags.length?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,t),r.tags.push(e);},this.isSpeedy=void 0===e.speedy?"production"==="production":e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null;}var r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag);},r.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),void 0!==e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(r);try{n.insertRule(e,n.cssRules.length);}catch(r){}}else r.appendChild(document.createTextNode(e));this.ctr++;},r.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0;},e}(),C$1="-ms-",P$1="-moz-",j$1="-webkit-",A$2="comm",D$2="rule",M$1="decl",T$2="@keyframes",V$1=Math.abs,I$1=String.fromCharCode,R$1=Object.assign;function z$1(e){return e.trim()}function F$2(e,r,t){return e.replace(r,t)}function L$2(e,r){return e.indexOf(r)}function W(e,r){return 0|e.charCodeAt(r)}function Y$1(e,r,t){return e.slice(r,t)}function q$1(e){return e.length}function U$1(e){return e.length}function G$1(e,r){return r.push(e),e}var J=1,K$1=1,H$1=0,Z$2=0,B$2=0,Q$1="";function X(e,r,t,n,o,a,s){return {value:e,root:r,parent:t,type:n,props:o,children:a,line:J,column:K$1,length:s,return:""}}function ee$1(e,r){return R$1(X("",null,null,"",null,null,0),e,{length:-e.length},r)}function re$1(){return B$2=Z$2<H$1?W(Q$1,Z$2++):0,K$1++,10===B$2&&(K$1=1,J++),B$2}function te$1(){return W(Q$1,Z$2)}function ne$1(){return Z$2}function oe$1(e,r){return Y$1(Q$1,e,r)}function ae$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function se$1(e){return J=K$1=1,H$1=q$1(Q$1=e),Z$2=0,[]}function ie$1(e){return Q$1="",e}function ce$1(e){return z$1(oe$1(Z$2-1,fe$1(91===e?e+2:40===e?e+1:e)))}function ue$1(e){for(;(B$2=te$1())&&B$2<33;)re$1();return ae$1(e)>2||ae$1(B$2)>3?"":" "}function le$1(e,r){for(;--r&&re$1()&&!(B$2<48||B$2>102||B$2>57&&B$2<65||B$2>70&&B$2<97););return oe$1(e,ne$1()+(r<6&&32==te$1()&&32==re$1()))}function fe$1(e){for(;re$1();)switch(B$2){case e:return Z$2;case 34:case 39:34!==e&&39!==e&&fe$1(B$2);break;case 40:41===e&&fe$1(e);break;case 92:re$1();}return Z$2}function pe(e,r){for(;re$1()&&e+B$2!==57&&(e+B$2!==84||47!==te$1()););return "/*"+oe$1(r,Z$2-1)+"*"+I$1(47===e?e:re$1())}function de$1(e){for(;!ae$1(te$1());)re$1();return oe$1(e,Z$2)}function me$1(e){return ie$1(ye$1("",null,null,null,[""],e=se$1(e),0,[0],e))}function ye$1(e,r,t,n,o,a,s,i,c){for(var u=0,l=0,f=s,p=0,d=0,m=0,y=1,h=1,v=1,g=0,b="",w=o,E=a,x=n,O=b;h;)switch(m=g,g=re$1()){case 40:if(108!=m&&58==W(O,f-1)){-1!=L$2(O+=F$2(ce$1(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:O+=ce$1(g);break;case 9:case 10:case 13:case 32:O+=ue$1(m);break;case 92:O+=le$1(ne$1()-1,7);continue;case 47:switch(te$1()){case 42:case 47:G$1(ve$1(pe(re$1(),ne$1()),r,t),c);break;default:O+="/";}break;case 123*y:i[u++]=q$1(O)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+l:-1==v&&(O=F$2(O,/\f/g,"")),d>0&&q$1(O)-f&&G$1(d>32?ge(O+";",n,t,f-1):ge(F$2(O," ","")+";",n,t,f-2),c);break;case 59:O+=";";default:if(G$1(x=he$1(O,r,t,u,l,o,i,b,w=[],E=[],f),a),123===g)if(0===l)ye$1(O,r,x,x,w,a,f,i,E);else switch(99===p&&110===W(O,3)?100:p){case 100:case 108:case 109:case 115:ye$1(e,x,x,n&&G$1(he$1(e,x,x,0,0,o,i,b,o,w=[],f),E),o,E,f,i,n?w:E);break;default:ye$1(O,x,x,x,[""],E,0,i,E);}}u=l=d=0,y=v=1,b=O="",f=s;break;case 58:f=1+q$1(O),d=m;default:if(y<1)if(123==g)--y;else if(125==g&&0==y++&&125==(B$2=Z$2>0?W(Q$1,--Z$2):0,K$1--,10===B$2&&(K$1=1,J--),B$2))continue;switch(O+=I$1(g),g*y){case 38:v=l>0?1:(O+="\f",-1);break;case 44:i[u++]=(q$1(O)-1)*v,v=1;break;case 64:45===te$1()&&(O+=ce$1(re$1())),p=te$1(),l=f=q$1(b=O+=de$1(ne$1())),g++;break;case 45:45===m&&2==q$1(O)&&(y=0);}}return a}function he$1(e,r,t,n,o,a,s,i,c,u,l){for(var f=o-1,p=0===o?a:[""],d=U$1(p),m=0,y=0,h=0;m<n;++m)for(var v=0,g=Y$1(e,f+1,f=V$1(y=s[m])),b=e;v<d;++v)(b=z$1(y>0?p[v]+" "+g:F$2(g,/&\f/g,p[v])))&&(c[h++]=b);return X(e,r,t,0===o?D$2:i,c,u,l)}function ve$1(e,r,t){return X(e,r,t,A$2,I$1(B$2),Y$1(e,2,-2),0)}function ge(e,r,t,n){return X(e,r,t,M$1,Y$1(e,0,n),Y$1(e,n+1,-1),n)}function be$1(e,r){for(var t="",n=U$1(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function we$1(e,r,t,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M$1:return e.return=e.return||e.value;case A$2:return "";case T$2:return e.return=e.value+"{"+be$1(e.children,n)+"}";case D$2:e.value=e.props.join(",");}return q$1(t=be$1(e.children,n))?e.return=e.value+"{"+t+"}":""}function Ee$1(e){var r=U$1(e);return function(t,n,o,a){for(var s="",i=0;i<r;i++)s+=e[i](t,n,o,a)||"";return s}}function xe$1(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}var Oe$1=function(e,r,t){for(var n=0,o=0;n=o,o=te$1(),38===n&&12===o&&(r[t]=1),!ae$1(o);)re$1();return oe$1(e,Z$2)},_e$1=function(e,r){return ie$1(function(e,r){var t=-1,n=44;do{switch(ae$1(n)){case 0:38===n&&12===te$1()&&(r[t]=1),e[t]+=Oe$1(Z$2-1,r,t);break;case 2:e[t]+=ce$1(n);break;case 4:if(44===n){e[++t]=58===te$1()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=I$1(n);}}while(n=re$1());return e}(se$1(e),r))},Se=new WeakMap,Ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||Se.get(t))&&!n){Se.set(e,!0);for(var o=[],a=_e$1(r,o),s=t.props,i=0,c=0;i<a.length;i++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[i]?a[i].replace(/&\f/g,s[u]):s[u]+" "+a[i];}}},$e$1=function(e){if("decl"===e.type){var r=e.value;108===r.charCodeAt(0)&&98===r.charCodeAt(2)&&(e.return="",e.value="");}};function Ae$1(e,r){switch(function(e,r){return 45^W(e,0)?(((r<<2^W(e,0))<<2^W(e,1))<<2^W(e,2))<<2^W(e,3):0}(e,r)){case 5103:return j$1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j$1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j$1+e+P$1+e+C$1+e+e;case 6828:case 4268:return j$1+e+C$1+e+e;case 6165:return j$1+e+C$1+"flex-"+e+e;case 5187:return j$1+e+F$2(e,/(\w+).+(:[^]+)/,j$1+"box-$1$2"+C$1+"flex-$1$2")+e;case 5443:return j$1+e+C$1+"flex-item-"+F$2(e,/flex-|-self/,"")+e;case 4675:return j$1+e+C$1+"flex-line-pack"+F$2(e,/align-content|flex-|-self/,"")+e;case 5548:return j$1+e+C$1+F$2(e,"shrink","negative")+e;case 5292:return j$1+e+C$1+F$2(e,"basis","preferred-size")+e;case 6060:return j$1+"box-"+F$2(e,"-grow","")+j$1+e+C$1+F$2(e,"grow","positive")+e;case 4554:return j$1+F$2(e,/([^-])(transform)/g,"$1"+j$1+"$2")+e;case 6187:return F$2(F$2(F$2(e,/(zoom-|grab)/,j$1+"$1"),/(image-set)/,j$1+"$1"),e,"")+e;case 5495:case 3959:return F$2(e,/(image-set\([^]*)/,j$1+"$1$`$1");case 4968:return F$2(F$2(e,/(.+:)(flex-)?(.*)/,j$1+"box-pack:$3"+C$1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j$1+e+e;case 4095:case 3583:case 4068:case 2532:return F$2(e,/(.+)-inline(.+)/,j$1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q$1(e)-1-r>6)switch(W(e,r+1)){case 109:if(45!==W(e,r+4))break;case 102:return F$2(e,/(.+:)(.+)-([^]+)/,"$1"+j$1+"$2-$3$1"+P$1+(108==W(e,r+3)?"$3":"$2-$3"))+e;case 115:return ~L$2(e,"stretch")?Ae$1(F$2(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==W(e,r+1))break;case 6444:switch(W(e,q$1(e)-3-(~L$2(e,"!important")&&10))){case 107:return F$2(e,":",":"+j$1)+e;case 101:return F$2(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j$1+(45===W(e,14)?"inline-":"")+"box$3$1"+j$1+"$2$3$1"+C$1+"$2box$3")+e}break;case 5936:switch(W(e,r+11)){case 114:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j$1+e+C$1+e+e}return e}var De$1,Me$1,Te$1="undefined"!=typeof document,Ve$1=Te$1?void 0:(De$1=function(){return xe$1((function(){var e={};return function(r){return e[r]}}))},Me$1=new WeakMap,function(e){if(Me$1.has(e))return Me$1.get(e);var r=De$1(e);return Me$1.set(e,r),r}),Ie$1=[function(e,r,t,n){if(e.length>-1&&!e.return)switch(e.type){case M$1:e.return=Ae$1(e.value,e.length);break;case T$2:return be$1([ee$1(e,{value:F$2(e.value,"@","@"+j$1)})],n);case D$2:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return (e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be$1([ee$1(e,{props:[F$2(r,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return be$1([ee$1(e,{props:[F$2(r,/:(plac\w+)/,":"+j$1+"input-$1")]}),ee$1(e,{props:[F$2(r,/:(plac\w+)/,":-moz-$1")]}),ee$1(e,{props:[F$2(r,/:(plac\w+)/,C$1+"input-$1")]})],n)}return ""}))}}],Re$1=function(e){var r=e.key;if(Te$1&&"css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""));}));}var n=e.stylisPlugins||Ie$1;var o,a,s={},i=[];Te$1&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t<r.length;t++)s[r[t]]=!0;i.push(e);})));var c,u=[Ne,$e$1];if(Te$1){var l,f=[we$1,(c=function(e){l.insert(e);},function(e){e.root||(e=e.return)&&c(e);})],p=Ee$1(u.concat(n,f));a=function(e,r,t,n){l=t,be$1(me$1(e?e+"{"+r.styles+"}":r.styles),p),n&&(v.inserted[r.name]=!0);};}else {var d=[we$1],m=Ee$1(u.concat(n,d)),y=Ve$1(n)(r),h=function(e,r){var t=r.name;return void 0===y[t]&&(y[t]=be$1(me$1(e?e+"{"+r.styles+"}":r.styles),m)),y[t]};a=function(e,r,t,n){var o=r.name,a=h(e,r);return void 0===v.compat?(n&&(v.inserted[o]=!0),a):n?void(v.inserted[o]=a):a};}var v={key:r,sheet:new k$1({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return v.sheet.hydrate(i),v},ze$1="undefined"!=typeof document;var Fe$1=function(e,r,t){var n=e.key+"-"+r.name;(!1===t||!1===ze$1&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=r.styles);};var Je={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ze=/[A-Z]|^ms/g,Be$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qe$1=function(e){return 45===e.charCodeAt(1)},Xe=function(e){return null!=e&&"boolean"!=typeof e},er$1=xe$1((function(e){return Qe$1(e)?e:e.replace(Ze,"-$&").toLowerCase()})),rr$1=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(Be$1,(function(e,r,t){return ar={name:r,styles:t,next:ar},r}))}return 1===Je[e]||Qe$1(e)||"number"!=typeof r||0===r?r:r+"px"};var tr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nr$1(e,r,t){if(null==t)return "";if(void 0!==t.__emotion_styles){return t}switch(typeof t){case"boolean":return "";case"object":if(1===t.anim)return ar={name:t.name,styles:t.styles,next:ar},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)ar={name:n.name,styles:n.styles,next:ar},n=n.next;var o=t.styles+";";return o}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=nr$1(e,r,t[o])+";";else for(var a in t){var s=t[a];if("object"!=typeof s)Xe(s)&&(n+=er$1(a)+":"+rr$1(a,s)+";");else {if("NO_COMPONENT_SELECTOR"===a&&"production"!=="production")throw new Error(tr);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=r){var i=nr$1(e,r,s);switch(a){case"animation":case"animationName":n+=er$1(a)+":"+i+";";break;default:n+=a+"{"+i+"}";}}else for(var c=0;c<s.length;c++)Xe(s[c])&&(n+=er$1(a)+":"+rr$1(a,s[c])+";");}}return n}(e,r,t);case"function":if(void 0!==e){var a=ar,s=t(e);return ar=a,nr$1(e,r,s)}break;}return t;}var ar,sr$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ir$1=function(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";ar=void 0;var s=e[0];null==s||void 0===s.raw?(n=!1,o+=nr$1(t,r,s)):(o+=s[0]);for(var i=1;i<e.length;i++)o+=nr$1(t,r,e[i]),n&&(o+=s[i]);sr$1.lastIndex=0;for(var c,u="";null!==(c=sr$1.exec(o));)u+="-"+c[1];var l=function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16);}return (((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(o)+u;return {name:l,styles:o,next:ar}};var ur="undefined"!=typeof document,lr=function(e){return e()},fr=!!reactExports.useInsertionEffect&&reactExports.useInsertionEffect,pr=ur&&fr||lr,dr$1="undefined"!=typeof document,mr$1={}.hasOwnProperty,yr=reactExports.createContext("undefined"!=typeof HTMLElement?Re$1({key:"css"}):null);yr.Provider;var hr$1=function(e){return reactExports.forwardRef((function(r,t){var n=reactExports.useContext(yr);return e(r,n,t)}))};dr$1||(hr$1=function(e){return function(r){var t=reactExports.useContext(yr);return null===t?(t=Re$1({key:"css"}),reactExports.createElement(yr.Provider,{value:t},e(r,t))):e(r,t)}});var vr=reactExports.createContext({});var wr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xr=function(e,r){var t={};for(var n in r)mr$1.call(r,n)&&(t[n]=r[n]);if(t[wr]=e,"production"!=="production");return t},Or=function(e){var r=e.cache,t=e.serialized,n=e.isStringTag;Fe$1(r,t,n);var o=pr((function(){return function(e,r,t){Fe$1(e,r,t);var n=e.key+"-"+r.name;if(void 0===e.inserted[r.name]){var o="",a=r;do{var s=e.insert(r===a?"."+n:"",a,e.sheet,!0);ze$1||void 0===s||(o+=s),a=a.next;}while(void 0!==a);if(!ze$1&&0!==o.length)return o}}(r,t,n)}));if(!dr$1&&void 0!==o){for(var a,s=t.name,i=t.next;void 0!==i;)s+=" "+i.name,i=i.next;return reactExports.createElement("style",((a={})["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:o},a.nonce=r.sheet.nonce,a))}return null},_r=hr$1((function(e,r,t){var n=e.css;"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var o=e[wr],a=[n],s="";"string"==typeof e.className?s=function(e,r,t){var n="";return t.split(" ").forEach((function(t){void 0!==e[t]?r.push(e[t]+";"):n+=t+" ";})),n}(r.registered,a,e.className):null!=e.className&&(s=e.className+" ");var i=ir$1(a,void 0,reactExports.useContext(vr));s+=r.key+"-"+i.name;var u={};for(var l in e)!mr$1.call(e,l)||"css"===l||l===wr||"production"!=="production"||(u[l]=e[l]);return u.ref=t,u.className=s,reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Or,{cache:r,serialized:i,isStringTag:"string"==typeof o}),reactExports.createElement(o,u))}));var Sr=_r;f$3(h$3()),f$3(y$2());function Nr(e,r,t){return mr$1.call(r,"css")?jsxRuntimeExports.jsx(Sr,xr(e,r),t):jsxRuntimeExports.jsx(e,r,t)}function $r({appName:e,writeKey:r}){const t=reactExports.createContext(void 0);return {AnalyticsProvider:function({children:n,loaderOverride:a=AnalyticsBrowser,log:c=console.log}){const[l,f]=reactExports.useState(r),p=reactExports.useMemo((()=>l?a.load({writeKey:l}):function(e,r){const t=e.load({writeKey:"",cdnSettings:{integrations:{}}},{integrations:{All:!1}});return ["identify","group","alias","page","track"].forEach((e=>{t.on(e,((...t)=>r(u$2({method:e},t))));})),t}(a,c)),[a,l,c]),d=reactExports.useCallback((({userJourney:r,screen:t,action:n,extras:o={}})=>{const a=[e+O(r)+O(t)+O(n)].join("");return p.page(a,o)}),[p]),m=reactExports.useCallback((r=>{var t=r,{userJourney:n,screen:a,action:c,extras:l={}}=t,f=((e,r)=>{var t={};for(var n in e)s$5.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&o$7)for(var n of o$7(e))r.indexOf(n)<0&&i$6.call(e,n)&&(t[n]=e[n]);return t})(t,["userJourney","screen","action","extras"]);let d="";"control"in f&&"controlType"in f&&(d=O(f.control)+O(f.controlType));const m=[e+O(n)+O(a),d+O(c)].join("_");return p.track(m,u$2({},l))}),[p]),y=reactExports.useCallback((()=>{return e=this,r=null,t=function*(){const e=("undefined"==typeof document?"":document.cookie).split("; ").find((e=>e.startsWith("ajs_user_id=")));if(e){const r=e.split("=")[1];return p.identify(r)}return Promise.reject(new Error("No user ID found in cookie"))},new Promise(((n,o)=>{var a=e=>{try{i(t.next(e));}catch(e){o(e);}},s=e=>{try{i(t.throw(e));}catch(e){o(e);}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);i((t=t.apply(e,r)).next());}));var e,r,t;}),[p]),h=reactExports.useMemo((()=>({page:d,track:m,identifyFromCookie:y,identify:p.identify,group:p.group,alias:p.alias,updateWriteKey:f})),[p,d,m,y]);return Nr(t.Provider,{value:h,children:n})},useAnalytics:function(){const e=reactExports.useContext(t);if(!e)throw new Error("useAnalytics: Store not found");return e}}}
|
|
156494
|
+
var e$7=Object.create,r$6=Object.defineProperty,t$5=Object.getOwnPropertyDescriptor,n$7=Object.getOwnPropertyNames,o$7=Object.getOwnPropertySymbols,a$3=Object.getPrototypeOf,s$5=Object.prototype.hasOwnProperty,i$7=Object.prototype.propertyIsEnumerable,c$4=(e,t,n)=>t in e?r$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u$2=(e,r)=>{for(var t in r||(r={}))s$5.call(r,t)&&c$4(e,t,r[t]);if(o$7)for(var t of o$7(r))i$7.call(r,t)&&c$4(e,t,r[t]);return e},l$4=(e,r)=>function(){return r||(0, e[n$7(e)[0]])((r={exports:{}}).exports,r),r.exports},f$3=(o,i,c)=>(c=null!=o?e$7(a$3(o)):{},((e,o,a,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of n$7(o))s$5.call(e,c)||c===a||r$6(e,c,{get:()=>o[c],enumerable:!(i=t$5(o,c))||i.enumerable});return e})(o&&o.__esModule?c:r$6(c,"default",{value:o,enumerable:!0}),o)),p$2=l$4({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var r="function"==typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,h=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case u:case l:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case y:case m:case i:return e;default:return r}}case n:return r}}}function E(e){return w(e)===l}e.AsyncMode=u,e.ConcurrentMode=l,e.ContextConsumer=c,e.ContextProvider=i,e.Element=t,e.ForwardRef=f,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=s,e.StrictMode=a,e.Suspense=p,e.isAsyncMode=function(e){return E(e)||w(e)===u},e.isConcurrentMode=E,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===i},e.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},e.isForwardRef=function(e){return w(e)===f},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===y},e.isMemo=function(e){return w(e)===m},e.isPortal=function(e){return w(e)===n},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===a},e.isSuspense=function(e){return w(e)===p},e.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===o||e===l||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===i||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},e.typeOf=w;}}),m$1=l$4({"../../node_modules/react-is/index.js"(e,r){r.exports=p$2();}}),y$2=l$4({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,r){var t=m$1(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function i(e){return t.isMemo(e)?a:s[e.$$typeof]||n}s[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[t.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;r.exports=function e(r,t,n){if("string"!=typeof t){if(d){var a=p(t);a&&a!==d&&e(r,a,n);}var s=u(t);l&&(s=s.concat(l(t)));for(var m=i(r),y=i(t),h=0;h<s.length;++h){var v=s[h];if(!(o[v]||n&&n[v]||y&&y[v]||m&&m[v])){var g=f(t,v);try{c(r,v,g);}catch(e){}}}}return r};}}),h$3=l$4({"../../node_modules/@babel/runtime/helpers/extends.js"(e,r){function t(){return r.exports=t=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},r.exports.__esModule=!0,r.exports.default=r.exports,t.apply(this,arguments)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports;}});function O(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}var k$1=function(){function e(e){var r=this;this._insertTag=function(e){var t;t=0===r.tags.length?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,t),r.tags.push(e);},this.isSpeedy=void 0===e.speedy?"production"==="production":e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null;}var r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag);},r.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),void 0!==e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(r);try{n.insertRule(e,n.cssRules.length);}catch(r){}}else r.appendChild(document.createTextNode(e));this.ctr++;},r.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0;},e}(),C$1="-ms-",P$1="-moz-",j$1="-webkit-",A$2="comm",D$2="rule",M$1="decl",T$2="@keyframes",V$1=Math.abs,I$1=String.fromCharCode,R$1=Object.assign;function z$1(e){return e.trim()}function F$2(e,r,t){return e.replace(r,t)}function L$2(e,r){return e.indexOf(r)}function W(e,r){return 0|e.charCodeAt(r)}function Y$1(e,r,t){return e.slice(r,t)}function q$1(e){return e.length}function U$1(e){return e.length}function G$1(e,r){return r.push(e),e}var J=1,K$1=1,H$1=0,Z$2=0,B$2=0,Q$1="";function X(e,r,t,n,o,a,s){return {value:e,root:r,parent:t,type:n,props:o,children:a,line:J,column:K$1,length:s,return:""}}function ee$1(e,r){return R$1(X("",null,null,"",null,null,0),e,{length:-e.length},r)}function re$1(){return B$2=Z$2<H$1?W(Q$1,Z$2++):0,K$1++,10===B$2&&(K$1=1,J++),B$2}function te$1(){return W(Q$1,Z$2)}function ne$1(){return Z$2}function oe$1(e,r){return Y$1(Q$1,e,r)}function ae$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function se$1(e){return J=K$1=1,H$1=q$1(Q$1=e),Z$2=0,[]}function ie$1(e){return Q$1="",e}function ce$1(e){return z$1(oe$1(Z$2-1,fe$1(91===e?e+2:40===e?e+1:e)))}function ue$1(e){for(;(B$2=te$1())&&B$2<33;)re$1();return ae$1(e)>2||ae$1(B$2)>3?"":" "}function le$1(e,r){for(;--r&&re$1()&&!(B$2<48||B$2>102||B$2>57&&B$2<65||B$2>70&&B$2<97););return oe$1(e,ne$1()+(r<6&&32==te$1()&&32==re$1()))}function fe$1(e){for(;re$1();)switch(B$2){case e:return Z$2;case 34:case 39:34!==e&&39!==e&&fe$1(B$2);break;case 40:41===e&&fe$1(e);break;case 92:re$1();}return Z$2}function pe(e,r){for(;re$1()&&e+B$2!==57&&(e+B$2!==84||47!==te$1()););return "/*"+oe$1(r,Z$2-1)+"*"+I$1(47===e?e:re$1())}function de$1(e){for(;!ae$1(te$1());)re$1();return oe$1(e,Z$2)}function me$1(e){return ie$1(ye$1("",null,null,null,[""],e=se$1(e),0,[0],e))}function ye$1(e,r,t,n,o,a,s,i,c){for(var u=0,l=0,f=s,p=0,d=0,m=0,y=1,h=1,v=1,g=0,b="",w=o,E=a,x=n,O=b;h;)switch(m=g,g=re$1()){case 40:if(108!=m&&58==W(O,f-1)){-1!=L$2(O+=F$2(ce$1(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:O+=ce$1(g);break;case 9:case 10:case 13:case 32:O+=ue$1(m);break;case 92:O+=le$1(ne$1()-1,7);continue;case 47:switch(te$1()){case 42:case 47:G$1(ve$1(pe(re$1(),ne$1()),r,t),c);break;default:O+="/";}break;case 123*y:i[u++]=q$1(O)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+l:-1==v&&(O=F$2(O,/\f/g,"")),d>0&&q$1(O)-f&&G$1(d>32?ge(O+";",n,t,f-1):ge(F$2(O," ","")+";",n,t,f-2),c);break;case 59:O+=";";default:if(G$1(x=he$1(O,r,t,u,l,o,i,b,w=[],E=[],f),a),123===g)if(0===l)ye$1(O,r,x,x,w,a,f,i,E);else switch(99===p&&110===W(O,3)?100:p){case 100:case 108:case 109:case 115:ye$1(e,x,x,n&&G$1(he$1(e,x,x,0,0,o,i,b,o,w=[],f),E),o,E,f,i,n?w:E);break;default:ye$1(O,x,x,x,[""],E,0,i,E);}}u=l=d=0,y=v=1,b=O="",f=s;break;case 58:f=1+q$1(O),d=m;default:if(y<1)if(123==g)--y;else if(125==g&&0==y++&&125==(B$2=Z$2>0?W(Q$1,--Z$2):0,K$1--,10===B$2&&(K$1=1,J--),B$2))continue;switch(O+=I$1(g),g*y){case 38:v=l>0?1:(O+="\f",-1);break;case 44:i[u++]=(q$1(O)-1)*v,v=1;break;case 64:45===te$1()&&(O+=ce$1(re$1())),p=te$1(),l=f=q$1(b=O+=de$1(ne$1())),g++;break;case 45:45===m&&2==q$1(O)&&(y=0);}}return a}function he$1(e,r,t,n,o,a,s,i,c,u,l){for(var f=o-1,p=0===o?a:[""],d=U$1(p),m=0,y=0,h=0;m<n;++m)for(var v=0,g=Y$1(e,f+1,f=V$1(y=s[m])),b=e;v<d;++v)(b=z$1(y>0?p[v]+" "+g:F$2(g,/&\f/g,p[v])))&&(c[h++]=b);return X(e,r,t,0===o?D$2:i,c,u,l)}function ve$1(e,r,t){return X(e,r,t,A$2,I$1(B$2),Y$1(e,2,-2),0)}function ge(e,r,t,n){return X(e,r,t,M$1,Y$1(e,0,n),Y$1(e,n+1,-1),n)}function be$1(e,r){for(var t="",n=U$1(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function we$1(e,r,t,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M$1:return e.return=e.return||e.value;case A$2:return "";case T$2:return e.return=e.value+"{"+be$1(e.children,n)+"}";case D$2:e.value=e.props.join(",");}return q$1(t=be$1(e.children,n))?e.return=e.value+"{"+t+"}":""}function Ee$1(e){var r=U$1(e);return function(t,n,o,a){for(var s="",i=0;i<r;i++)s+=e[i](t,n,o,a)||"";return s}}function xe$1(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}var Oe$1=function(e,r,t){for(var n=0,o=0;n=o,o=te$1(),38===n&&12===o&&(r[t]=1),!ae$1(o);)re$1();return oe$1(e,Z$2)},_e$1=function(e,r){return ie$1(function(e,r){var t=-1,n=44;do{switch(ae$1(n)){case 0:38===n&&12===te$1()&&(r[t]=1),e[t]+=Oe$1(Z$2-1,r,t);break;case 2:e[t]+=ce$1(n);break;case 4:if(44===n){e[++t]=58===te$1()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=I$1(n);}}while(n=re$1());return e}(se$1(e),r))},Se=new WeakMap,Ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||Se.get(t))&&!n){Se.set(e,!0);for(var o=[],a=_e$1(r,o),s=t.props,i=0,c=0;i<a.length;i++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[i]?a[i].replace(/&\f/g,s[u]):s[u]+" "+a[i];}}},$e$1=function(e){if("decl"===e.type){var r=e.value;108===r.charCodeAt(0)&&98===r.charCodeAt(2)&&(e.return="",e.value="");}};function Ae$1(e,r){switch(function(e,r){return 45^W(e,0)?(((r<<2^W(e,0))<<2^W(e,1))<<2^W(e,2))<<2^W(e,3):0}(e,r)){case 5103:return j$1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j$1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j$1+e+P$1+e+C$1+e+e;case 6828:case 4268:return j$1+e+C$1+e+e;case 6165:return j$1+e+C$1+"flex-"+e+e;case 5187:return j$1+e+F$2(e,/(\w+).+(:[^]+)/,j$1+"box-$1$2"+C$1+"flex-$1$2")+e;case 5443:return j$1+e+C$1+"flex-item-"+F$2(e,/flex-|-self/,"")+e;case 4675:return j$1+e+C$1+"flex-line-pack"+F$2(e,/align-content|flex-|-self/,"")+e;case 5548:return j$1+e+C$1+F$2(e,"shrink","negative")+e;case 5292:return j$1+e+C$1+F$2(e,"basis","preferred-size")+e;case 6060:return j$1+"box-"+F$2(e,"-grow","")+j$1+e+C$1+F$2(e,"grow","positive")+e;case 4554:return j$1+F$2(e,/([^-])(transform)/g,"$1"+j$1+"$2")+e;case 6187:return F$2(F$2(F$2(e,/(zoom-|grab)/,j$1+"$1"),/(image-set)/,j$1+"$1"),e,"")+e;case 5495:case 3959:return F$2(e,/(image-set\([^]*)/,j$1+"$1$`$1");case 4968:return F$2(F$2(e,/(.+:)(flex-)?(.*)/,j$1+"box-pack:$3"+C$1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j$1+e+e;case 4095:case 3583:case 4068:case 2532:return F$2(e,/(.+)-inline(.+)/,j$1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q$1(e)-1-r>6)switch(W(e,r+1)){case 109:if(45!==W(e,r+4))break;case 102:return F$2(e,/(.+:)(.+)-([^]+)/,"$1"+j$1+"$2-$3$1"+P$1+(108==W(e,r+3)?"$3":"$2-$3"))+e;case 115:return ~L$2(e,"stretch")?Ae$1(F$2(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==W(e,r+1))break;case 6444:switch(W(e,q$1(e)-3-(~L$2(e,"!important")&&10))){case 107:return F$2(e,":",":"+j$1)+e;case 101:return F$2(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j$1+(45===W(e,14)?"inline-":"")+"box$3$1"+j$1+"$2$3$1"+C$1+"$2box$3")+e}break;case 5936:switch(W(e,r+11)){case 114:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j$1+e+C$1+F$2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j$1+e+C$1+e+e}return e}var De$1,Me$1,Te$1="undefined"!=typeof document,Ve$1=Te$1?void 0:(De$1=function(){return xe$1((function(){var e={};return function(r){return e[r]}}))},Me$1=new WeakMap,function(e){if(Me$1.has(e))return Me$1.get(e);var r=De$1(e);return Me$1.set(e,r),r}),Ie$1=[function(e,r,t,n){if(e.length>-1&&!e.return)switch(e.type){case M$1:e.return=Ae$1(e.value,e.length);break;case T$2:return be$1([ee$1(e,{value:F$2(e.value,"@","@"+j$1)})],n);case D$2:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return (e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be$1([ee$1(e,{props:[F$2(r,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return be$1([ee$1(e,{props:[F$2(r,/:(plac\w+)/,":"+j$1+"input-$1")]}),ee$1(e,{props:[F$2(r,/:(plac\w+)/,":-moz-$1")]}),ee$1(e,{props:[F$2(r,/:(plac\w+)/,C$1+"input-$1")]})],n)}return ""}))}}],Re$1=function(e){var r=e.key;if(Te$1&&"css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""));}));}var n=e.stylisPlugins||Ie$1;var o,a,s={},i=[];Te$1&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t<r.length;t++)s[r[t]]=!0;i.push(e);})));var c,u=[Ne,$e$1];if(Te$1){var l,f=[we$1,(c=function(e){l.insert(e);},function(e){e.root||(e=e.return)&&c(e);})],p=Ee$1(u.concat(n,f));a=function(e,r,t,n){l=t,be$1(me$1(e?e+"{"+r.styles+"}":r.styles),p),n&&(v.inserted[r.name]=!0);};}else {var d=[we$1],m=Ee$1(u.concat(n,d)),y=Ve$1(n)(r),h=function(e,r){var t=r.name;return void 0===y[t]&&(y[t]=be$1(me$1(e?e+"{"+r.styles+"}":r.styles),m)),y[t]};a=function(e,r,t,n){var o=r.name,a=h(e,r);return void 0===v.compat?(n&&(v.inserted[o]=!0),a):n?void(v.inserted[o]=a):a};}var v={key:r,sheet:new k$1({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return v.sheet.hydrate(i),v},ze$1="undefined"!=typeof document;var Fe$1=function(e,r,t){var n=e.key+"-"+r.name;(!1===t||!1===ze$1&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=r.styles);};var Je={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ze=/[A-Z]|^ms/g,Be$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qe$1=function(e){return 45===e.charCodeAt(1)},Xe=function(e){return null!=e&&"boolean"!=typeof e},er$1=xe$1((function(e){return Qe$1(e)?e:e.replace(Ze,"-$&").toLowerCase()})),rr$1=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(Be$1,(function(e,r,t){return ar={name:r,styles:t,next:ar},r}))}return 1===Je[e]||Qe$1(e)||"number"!=typeof r||0===r?r:r+"px"};var tr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nr$1(e,r,t){if(null==t)return "";if(void 0!==t.__emotion_styles){return t}switch(typeof t){case"boolean":return "";case"object":if(1===t.anim)return ar={name:t.name,styles:t.styles,next:ar},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)ar={name:n.name,styles:n.styles,next:ar},n=n.next;var o=t.styles+";";return o}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=nr$1(e,r,t[o])+";";else for(var a in t){var s=t[a];if("object"!=typeof s)Xe(s)&&(n+=er$1(a)+":"+rr$1(a,s)+";");else {if("NO_COMPONENT_SELECTOR"===a&&"production"!=="production")throw new Error(tr);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=r){var i=nr$1(e,r,s);switch(a){case"animation":case"animationName":n+=er$1(a)+":"+i+";";break;default:n+=a+"{"+i+"}";}}else for(var c=0;c<s.length;c++)Xe(s[c])&&(n+=er$1(a)+":"+rr$1(a,s[c])+";");}}return n}(e,r,t);case"function":if(void 0!==e){var a=ar,s=t(e);return ar=a,nr$1(e,r,s)}break;}return t;}var ar,sr$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ir$1=function(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";ar=void 0;var s=e[0];null==s||void 0===s.raw?(n=!1,o+=nr$1(t,r,s)):(o+=s[0]);for(var i=1;i<e.length;i++)o+=nr$1(t,r,e[i]),n&&(o+=s[i]);sr$1.lastIndex=0;for(var c,u="";null!==(c=sr$1.exec(o));)u+="-"+c[1];var l=function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16);}return (((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(o)+u;return {name:l,styles:o,next:ar}};var ur="undefined"!=typeof document,lr=function(e){return e()},fr=!!reactExports.useInsertionEffect&&reactExports.useInsertionEffect,pr=ur&&fr||lr,dr$1="undefined"!=typeof document,mr$1={}.hasOwnProperty,yr=reactExports.createContext("undefined"!=typeof HTMLElement?Re$1({key:"css"}):null);yr.Provider;var hr$1=function(e){return reactExports.forwardRef((function(r,t){var n=reactExports.useContext(yr);return e(r,n,t)}))};dr$1||(hr$1=function(e){return function(r){var t=reactExports.useContext(yr);return null===t?(t=Re$1({key:"css"}),reactExports.createElement(yr.Provider,{value:t},e(r,t))):e(r,t)}});var vr=reactExports.createContext({});var wr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xr=function(e,r){var t={};for(var n in r)mr$1.call(r,n)&&(t[n]=r[n]);if(t[wr]=e,"production"!=="production");return t},Or=function(e){var r=e.cache,t=e.serialized,n=e.isStringTag;Fe$1(r,t,n);var o=pr((function(){return function(e,r,t){Fe$1(e,r,t);var n=e.key+"-"+r.name;if(void 0===e.inserted[r.name]){var o="",a=r;do{var s=e.insert(r===a?"."+n:"",a,e.sheet,!0);ze$1||void 0===s||(o+=s),a=a.next;}while(void 0!==a);if(!ze$1&&0!==o.length)return o}}(r,t,n)}));if(!dr$1&&void 0!==o){for(var a,s=t.name,i=t.next;void 0!==i;)s+=" "+i.name,i=i.next;return reactExports.createElement("style",((a={})["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:o},a.nonce=r.sheet.nonce,a))}return null},_r=hr$1((function(e,r,t){var n=e.css;"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var o=e[wr],a=[n],s="";"string"==typeof e.className?s=function(e,r,t){var n="";return t.split(" ").forEach((function(t){void 0!==e[t]?r.push(e[t]+";"):n+=t+" ";})),n}(r.registered,a,e.className):null!=e.className&&(s=e.className+" ");var i=ir$1(a,void 0,reactExports.useContext(vr));s+=r.key+"-"+i.name;var u={};for(var l in e)!mr$1.call(e,l)||"css"===l||l===wr||"production"!=="production"||(u[l]=e[l]);return u.ref=t,u.className=s,reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Or,{cache:r,serialized:i,isStringTag:"string"==typeof o}),reactExports.createElement(o,u))}));var Sr=_r;f$3(h$3()),f$3(y$2());function Nr(e,r,t){return mr$1.call(r,"css")?jsxRuntimeExports.jsx(Sr,xr(e,r),t):jsxRuntimeExports.jsx(e,r,t)}function $r({appName:e,writeKey:r}){const t=reactExports.createContext(void 0);return {AnalyticsProvider:function({children:n,loaderOverride:a=AnalyticsBrowser,log:c=console.log}){const[l,f]=reactExports.useState(r),p=reactExports.useMemo((()=>l?a.load({writeKey:l}):function(e,r){const t=e.load({writeKey:"",cdnSettings:{integrations:{}}},{integrations:{All:!1}});return ["identify","group","alias","page","track"].forEach((e=>{t.on(e,((...t)=>r(u$2({method:e},t))));})),t}(a,c)),[a,l,c]),d=reactExports.useCallback((({userJourney:r,screen:t,action:n,extras:o={}})=>{const a=[e+O(r)+O(t)+O(n)].join("");return p.page(a,o)}),[p]),m=reactExports.useCallback((r=>{var t=r,{userJourney:n,screen:a,action:c,extras:l={}}=t,f=((e,r)=>{var t={};for(var n in e)s$5.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&o$7)for(var n of o$7(e))r.indexOf(n)<0&&i$7.call(e,n)&&(t[n]=e[n]);return t})(t,["userJourney","screen","action","extras"]);let d="";"control"in f&&"controlType"in f&&(d=O(f.control)+O(f.controlType));const m=[e+O(n)+O(a),d+O(c)].join("_");return p.track(m,u$2({},l))}),[p]),y=reactExports.useCallback((()=>{return e=this,r=null,t=function*(){const e=("undefined"==typeof document?"":document.cookie).split("; ").find((e=>e.startsWith("ajs_user_id=")));if(e){const r=e.split("=")[1];return p.identify(r)}return Promise.reject(new Error("No user ID found in cookie"))},new Promise(((n,o)=>{var a=e=>{try{i(t.next(e));}catch(e){o(e);}},s=e=>{try{i(t.throw(e));}catch(e){o(e);}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);i((t=t.apply(e,r)).next());}));var e,r,t;}),[p]),h=reactExports.useMemo((()=>({page:d,track:m,identifyFromCookie:y,identify:p.identify,group:p.group,alias:p.alias,updateWriteKey:f})),[p,d,m,y]);return Nr(t.Provider,{value:h,children:n})},useAnalytics:function(){const e=reactExports.useContext(t);if(!e)throw new Error("useAnalytics: Store not found");return e}}}
|
|
156348
156495
|
|
|
156349
156496
|
var UserJourney;
|
|
156350
156497
|
(function (UserJourney) {
|
|
@@ -201004,7 +201151,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
201004
201151
|
return `${CMCD_PARAM}=${encodeURIComponent(params)}`;
|
|
201005
201152
|
}
|
|
201006
201153
|
|
|
201007
|
-
const REGEX = /CMCD=[^&#]+/;
|
|
201154
|
+
const REGEX$1 = /CMCD=[^&#]+/;
|
|
201008
201155
|
/**
|
|
201009
201156
|
* Append CMCD query args to a URL.
|
|
201010
201157
|
*
|
|
@@ -201025,8 +201172,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
201025
201172
|
if (!query) {
|
|
201026
201173
|
return url;
|
|
201027
201174
|
}
|
|
201028
|
-
if (REGEX.test(url)) {
|
|
201029
|
-
return url.replace(REGEX, query);
|
|
201175
|
+
if (REGEX$1.test(url)) {
|
|
201176
|
+
return url.replace(REGEX$1, query);
|
|
201030
201177
|
}
|
|
201031
201178
|
const separator = url.includes('?') ? '&' : '?';
|
|
201032
201179
|
return `${url}${separator}${query}`;
|
|
@@ -224660,7 +224807,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224660
224807
|
return value == null ? '' : baseToString(value);
|
|
224661
224808
|
}
|
|
224662
224809
|
|
|
224663
|
-
var e$6=Object.defineProperty,r$5=Object.defineProperties,t$4=Object.getOwnPropertyDescriptors,a$2=Object.getOwnPropertySymbols,o$6=Object.prototype.hasOwnProperty,n$6=Object.prototype.propertyIsEnumerable,s$4=(r,t,a)=>t in r?e$6(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,i$5=(e,r)=>{for(var t in r||(r={}))o$6.call(r,t)&&s$4(e,t,r[t]);if(a$2)for(var t of a$2(r))n$6.call(r,t)&&s$4(e,t,r[t]);return e},p$1=(e,a)=>r$5(e,t$4(a)),x$1={1:{spectrum:"linear-gradient(105.76deg, #F191FA -46.96%, #83E3F0 99.99%)",blendMode:"normal",svgDefs:'\n <linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#C9A2F6" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'\n <radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'\n <radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},d$2={1:{spectrum:"linear-gradient(90.68deg, #F191FA 0%, #83E3F0 99.82%)",blendMode:"normal",svgDefs:'<linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#F191FA" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'<radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'<radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},F$1={spacing:{x1:"4px",x2:"8px",x3:"12px",x4:"16px",x5:"20px",x6:"24px",x7:"28px",x8:"32px",x9:"36px",x10:"40px",x11:"44px",x12:"48px",x13:"52px",x14:"56px",x15:"60px",x16:"64px",x17:"68px",x18:"72px",x19:"76px",x20:"80px",x21:"84px",x22:"88px",x23:"92px",x24:"96px",x25:"100px",x26:"104px",x27:"108px",x28:"112px",x29:"116px",x30:"120px",x31:"124px",x32:"128px",x33:"132px",x34:"136px",x35:"140px",x36:"144px",x37:"148px",x38:"152px",x39:"156px",x40:"160px",x41:"164px",x42:"168px",x43:"172px",x44:"176px",x45:"180px",x46:"184px",x47:"188px",x48:"192px",x49:"196px",x50:"200px"},borderRadius:{x1:"2px",x2:"4px",x3:"6px",x4:"8px",x5:"10px",x6:"12px",x7:"14px",x8:"16px",x9:"18px",x10:"20px",x11:"22px",x12:"24px",x13:"26px",x14:"28px",x15:"30px",x16:"32px",x17:"34px",x18:"36px",x19:"38px",x20:"40px",x21:"42px",x22:"44px",x23:"46px",x24:"48px",x25:"50px"},font:{family:{heading:{primary:"'Suisse-Intl', sans-serif",secondary:"'Suisse-Intl', sans-serif"},body:{primary:"'Roboto', sans-serif",secondary:"'Roboto Mono', monospace"}},decoration:{underline:"underline",lineThrough:"line-through",none:"none"},casing:{uppercase:"uppercase",none:"none"}},text:{body:{large:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:400},bold:{fontWeight:500}},medium:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:400},bold:{fontWeight:500}},small:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400},bold:{fontWeight:500}},xSmall:{regular:{fontSize:"12px",lineHeight:"16px",fontWeight:400},bold:{fontWeight:500}},xxSmall:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400},bold:{fontWeight:500}}},caption:{medium:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"14px",lineHeight:"20px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}},small:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"10px",lineHeight:"14px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}}},heading:{xxLarge:{regular:{fontSize:"96px",lineHeight:"112px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xLarge:{regular:{fontSize:"64px",lineHeight:"72px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},large:{regular:{fontSize:"40px",lineHeight:"48px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},medium:{regular:{fontSize:"28px",lineHeight:"32px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},small:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xSmall:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}}}},breakpoint:{small:450,medium:768,large:1024,xLarge:1280,xxLarge:1536,xxxLarge:1920},icon:{size:{600:"64px",500:"48px",400:"32px",300:"24px",250:"20px",200:"16px",100:"12px"}},border:{size:{600:"6px",500:"5px",400:"4px",300:"3px",200:"2px",100:"1px"}},zLevel:{tooltip:12,toast:11,popover:10,modal:9,drawer:8},motion:{normal:{gentle:{cssDuration:"0.4s",jsDuration:.4,cssEase:"ease-in-out",jsEase:"easeInOut"},fast:{cssDuration:"0.25s",jsDuration:.25,cssEase:"ease-in-out",jsEase:"easeInOut"}},bounce:{gentle:{cssDuration:"0.7s",jsDuration:.7,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]},fast:{cssDuration:"0.45s",jsDuration:.45,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]}}},frost:{100:"blur(16px)",200:"blur(24px)",300:"blur(48px)",400:"blur(56px)",500:"blur(64px)",600:"blur(112px)"}},c$3=p$1(i$5({},F$1),{colorMode:"onLight",color:{brand:{1:"#131313",2:"#FFFFFF",3:"#E0E0E0",4:"#868686",5:"#36E0F8",6:"#1F8290"},neutral:{1e3:"#E7E7E7",900:"#ECECEC",800:"#F1F1F1",700:"#F6F6F6",600:"#FAFAFA",500:"#FFFFFF"},accent:{1:"#B026BD",2:"#1FD3F5",3:"#67C6E0",4:"#5AA0D9",5:"#8395E5",6:"#D8EFF4",7:"#F5BDD0",8:"#EC98CA"},translucent:{emphasis:{500:"#0D0D0D1F",400:"#0D0D0D1A",300:"#0D0D0D14",200:"#0D0D0D0F",100:"#0D0D0D0A"},standard:{1e3:"#0D0D0DFF",900:"#0D0D0DE0",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D1A",150:"#0D0D0D14",100:"#0D0D0D0A",50:"#0D0D0D05"},inverse:{1e3:"#FFFFFFFF",900:"#FFFFFFE6",800:"#FFFFFFCC",700:"#FFFFFFA3",600:"#FFFFFF7A",500:"#FFFFFF3D",400:"#FFFFFF29",300:"#FFFFFF1F",200:"#FFFFFF14",150:"#FFFFFF0F",100:"#FFFFFF0A",50:"#FFFFFF05"}},status:{guidance:{bright:"#36E0F8",dim:"#9AEFFB"},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FBFF6D",dim:"#FCFEBF"},fatal:{bright:"#BB3049",dim:"#EA6385"}},fixed:{black:{1e3:"#0D0D0D",100:"#0D0D0D14"},white:{1e3:"#FFFFFF",100:"#FFFFFF14"}},text:{highlight:"#36E0F866",heading:{primary:"base.color.brand.1",secondary:"base.color.brand.4",emphasis:"base.gradient.1",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},body:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},caption:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},link:{primary:"base.color.accent.1",secondary:"base.color.brand.1",inverse:{primary:"#f191fa",secondary:"base.color.brand.2"}},status:{success:{primary:"#426336",secondary:"#486D3B"},guidance:{primary:"#206A74",secondary:"#22727E"},attention:{primary:"base.color.status.attention.bright",secondary:"base.color.status.attention.dim"},fatal:{primary:"base.color.status.fatal.bright",secondary:"base.color.status.fatal.dim"}}},overlay:"base.color.translucent.standard.600"},gradient:d$2,shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 8px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"}}),g$1=p$1(i$5({},F$1),{colorMode:"onDark",color:{brand:{1:"#F3F3F3",2:"#131313",3:"#E0E0E0",4:"#B6B6B6",5:"#36E0F8",6:"#1F8290"},neutral:{1e3:"#0D0D0D",900:"#131313",800:"#1C1C1C",700:"#202020",600:"#252525",500:"#292929"},accent:{1:"#F191FA",2:"#36E0F8",3:"#6FD6F2",4:"#61ADEB",5:"#99A8EA",6:"#E4F4F7",7:"#F8D1DE",8:"#F2B7DA"},translucent:{emphasis:{500:"#F7F7F729",400:"#F7F7F71F",300:"#F7F7F71A",200:"#F7F7F714",100:"#F7F7F70F"},standard:{1e3:"#F7F7F7",900:"#F7F7F7E0",800:"#F7F7F7CC",700:"#F7F7F7A3",600:"#F7F7F77A",500:"#F7F7F73D",400:"#F7F7F729",300:"#F7F7F71F",200:"#F7F7F714",150:"#F7F7F70F",100:"#F7F7F70A",50:"#F7F7F705"},inverse:{1e3:"#0D0D0D",900:"#0D0D0DE0",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D14",150:"#0D0D0D0F",100:"#0D0D0D0A",50:"#0D0D0D05"}},status:{guidance:{bright:"#36E0F8",dim:"#94E9F5 "},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FAFD7E",dim:"#F6F8B9"},fatal:{bright:"#FF637F",dim:"#F9ABB9"}},fixed:{black:{1e3:"#131313",100:"#13131314"},white:{1e3:"#F3F3F3",100:"#F3F3F314"}},text:{highlight:"#36E0F833",heading:{primary:"base.color.brand.1",secondary:"base.color.brand.4",emphasis:"base.gradient.1",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},body:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},caption:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},link:{primary:"base.color.accent.1",secondary:"base.color.brand.1",inverse:{primary:"#b026bd",secondary:"base.color.brand.2"}},status:{success:{primary:"base.color.status.success.bright",secondary:"base.color.status.success.dim"},guidance:{primary:"base.color.status.guidance.bright",secondary:"base.color.status.guidance.dim"},attention:{primary:"base.color.status.attention.bright",secondary:"base.color.status.attention.dim"},fatal:{primary:"base.color.status.fatal.bright",secondary:"base.color.status.fatal.dim"}}},overlay:"base.color.translucent.standard.500"},gradient:x$1,shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 6px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"}});var {version:y$1}={name:"@biom3/design-tokens",version:"0.4.4",main:"./src/index.ts",module:"./src/index.ts",types:"./src/index.ts",directories:{css:"css",fonts:"fonts"},license:"Apache-2.0",sideEffects:!1,repository:{type:"git",url:"git+https://github.com/immutable/biom3.git"},scripts:{lint:"npm run typecheck && npm run lint:check","lint:check":"biome check ./","lint:check:fix":"biome check --apply ./","format:fix":"biome format --write ./",typecheck:"tsc --noEmit",prebuild:"rm -rf ./dist",build:"npm run build:tokens; npm run build:ts",pack:"npm pack","prebuild:tokens":"rm -rf ./css; mkdir css;","build:tokens":"ts-node ./src/packageScripts/dumpTokens.ts","build:ts":"tsup src/index.ts --dts","publish-package":"if can-npm-publish; then cd dist; npm publish --access public; else echo 'Skipping package npm publish'; fi"},dependencies:{"lodash.get":"^4.4.2"},devDependencies:{"@biomejs/biome":"1.7.0","@types/node":"^18.15.11","can-npm-publish":"^1.3.6",nodemon:"^2.0.20","prepend-file":"^2.0.1","@repo/ts-config":"*","ts-node":"^10.9.2",tsup:"^7.2.0",typescript:"^5.4.5"}};console.log(`\n @biom3/design-tokens\n \n version: ${y$1}\n\n`);
|
|
224810
|
+
var e$6=Object.defineProperty,r$5=Object.defineProperties,t$4=Object.getOwnPropertyDescriptors,a$2=Object.getOwnPropertySymbols,o$6=Object.prototype.hasOwnProperty,n$6=Object.prototype.propertyIsEnumerable,s$4=(r,t,a)=>t in r?e$6(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,i$6=(e,r)=>{for(var t in r||(r={}))o$6.call(r,t)&&s$4(e,t,r[t]);if(a$2)for(var t of a$2(r))n$6.call(r,t)&&s$4(e,t,r[t]);return e},p$1=(e,a)=>r$5(e,t$4(a)),x$1={1:{spectrum:"linear-gradient(105.76deg, #F191FA -46.96%, #83E3F0 99.99%)",blendMode:"normal",svgDefs:'\n <linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#C9A2F6" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'\n <radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'\n <radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},d$2={1:{spectrum:"linear-gradient(90.68deg, #F191FA 0%, #83E3F0 99.82%)",blendMode:"normal",svgDefs:'<linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#F191FA" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'<radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'<radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},F$1={spacing:{x1:"4px",x2:"8px",x3:"12px",x4:"16px",x5:"20px",x6:"24px",x7:"28px",x8:"32px",x9:"36px",x10:"40px",x11:"44px",x12:"48px",x13:"52px",x14:"56px",x15:"60px",x16:"64px",x17:"68px",x18:"72px",x19:"76px",x20:"80px",x21:"84px",x22:"88px",x23:"92px",x24:"96px",x25:"100px",x26:"104px",x27:"108px",x28:"112px",x29:"116px",x30:"120px",x31:"124px",x32:"128px",x33:"132px",x34:"136px",x35:"140px",x36:"144px",x37:"148px",x38:"152px",x39:"156px",x40:"160px",x41:"164px",x42:"168px",x43:"172px",x44:"176px",x45:"180px",x46:"184px",x47:"188px",x48:"192px",x49:"196px",x50:"200px"},borderRadius:{x1:"2px",x2:"4px",x3:"6px",x4:"8px",x5:"10px",x6:"12px",x7:"14px",x8:"16px",x9:"18px",x10:"20px",x11:"22px",x12:"24px",x13:"26px",x14:"28px",x15:"30px",x16:"32px",x17:"34px",x18:"36px",x19:"38px",x20:"40px",x21:"42px",x22:"44px",x23:"46px",x24:"48px",x25:"50px"},font:{family:{heading:{primary:"'Suisse-Intl', sans-serif",secondary:"'Suisse-Intl', sans-serif"},body:{primary:"'Roboto', sans-serif",secondary:"'Roboto Mono', monospace"}},decoration:{underline:"underline",lineThrough:"line-through",none:"none"},casing:{uppercase:"uppercase",none:"none"}},text:{body:{large:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:400},bold:{fontWeight:500}},medium:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:400},bold:{fontWeight:500}},small:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400},bold:{fontWeight:500}},xSmall:{regular:{fontSize:"12px",lineHeight:"16px",fontWeight:400},bold:{fontWeight:500}},xxSmall:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400},bold:{fontWeight:500}}},caption:{medium:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"14px",lineHeight:"20px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}},small:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"10px",lineHeight:"14px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}}},heading:{xxLarge:{regular:{fontSize:"96px",lineHeight:"112px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xLarge:{regular:{fontSize:"64px",lineHeight:"72px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},large:{regular:{fontSize:"40px",lineHeight:"48px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},medium:{regular:{fontSize:"28px",lineHeight:"32px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},small:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xSmall:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}}}},breakpoint:{small:450,medium:768,large:1024,xLarge:1280,xxLarge:1536,xxxLarge:1920},icon:{size:{600:"64px",500:"48px",400:"32px",300:"24px",250:"20px",200:"16px",100:"12px"}},border:{size:{600:"6px",500:"5px",400:"4px",300:"3px",200:"2px",100:"1px"}},zLevel:{tooltip:12,toast:11,popover:10,modal:9,drawer:8},motion:{normal:{gentle:{cssDuration:"0.4s",jsDuration:.4,cssEase:"ease-in-out",jsEase:"easeInOut"},fast:{cssDuration:"0.25s",jsDuration:.25,cssEase:"ease-in-out",jsEase:"easeInOut"}},bounce:{gentle:{cssDuration:"0.7s",jsDuration:.7,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]},fast:{cssDuration:"0.45s",jsDuration:.45,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]}}},frost:{100:"blur(16px)",200:"blur(24px)",300:"blur(48px)",400:"blur(56px)",500:"blur(64px)",600:"blur(112px)"}},c$3=p$1(i$6({},F$1),{colorMode:"onLight",color:{brand:{1:"#131313",2:"#FFFFFF",3:"#E0E0E0",4:"#868686",5:"#36E0F8",6:"#1F8290"},neutral:{1e3:"#E7E7E7",900:"#ECECEC",800:"#F1F1F1",700:"#F6F6F6",600:"#FAFAFA",500:"#FFFFFF"},accent:{1:"#B026BD",2:"#1FD3F5",3:"#67C6E0",4:"#5AA0D9",5:"#8395E5",6:"#D8EFF4",7:"#F5BDD0",8:"#EC98CA"},translucent:{emphasis:{500:"#0D0D0D1F",400:"#0D0D0D1A",300:"#0D0D0D14",200:"#0D0D0D0F",100:"#0D0D0D0A"},standard:{1e3:"#0D0D0DFF",900:"#0D0D0DE0",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D1A",150:"#0D0D0D14",100:"#0D0D0D0A",50:"#0D0D0D05"},inverse:{1e3:"#FFFFFFFF",900:"#FFFFFFE6",800:"#FFFFFFCC",700:"#FFFFFFA3",600:"#FFFFFF7A",500:"#FFFFFF3D",400:"#FFFFFF29",300:"#FFFFFF1F",200:"#FFFFFF14",150:"#FFFFFF0F",100:"#FFFFFF0A",50:"#FFFFFF05"}},status:{guidance:{bright:"#36E0F8",dim:"#9AEFFB"},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FBFF6D",dim:"#FCFEBF"},fatal:{bright:"#BB3049",dim:"#EA6385"}},fixed:{black:{1e3:"#0D0D0D",100:"#0D0D0D14"},white:{1e3:"#FFFFFF",100:"#FFFFFF14"}},text:{highlight:"#36E0F866",heading:{primary:"base.color.brand.1",secondary:"base.color.brand.4",emphasis:"base.gradient.1",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},body:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},caption:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}},link:{primary:"base.color.accent.1",secondary:"base.color.brand.1",inverse:{primary:"#f191fa",secondary:"base.color.brand.2"}},status:{success:{primary:"#426336",secondary:"#486D3B"},guidance:{primary:"#206A74",secondary:"#22727E"},attention:{primary:"base.color.status.attention.bright",secondary:"base.color.status.attention.dim"},fatal:{primary:"base.color.status.fatal.bright",secondary:"base.color.status.fatal.dim"}}},overlay:"base.color.translucent.standard.600"},gradient:d$2,shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 8px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"}}),g$1=p$1(i$6({},F$1),{colorMode:"onDark",color:{brand:{1:"#F3F3F3",2:"#131313",3:"#E0E0E0",4:"#B6B6B6",5:"#36E0F8",6:"#1F8290"},neutral:{1e3:"#0D0D0D",900:"#131313",800:"#1C1C1C",700:"#202020",600:"#252525",500:"#292929"},accent:{1:"#F191FA",2:"#36E0F8",3:"#6FD6F2",4:"#61ADEB",5:"#99A8EA",6:"#E4F4F7",7:"#F8D1DE",8:"#F2B7DA"},translucent:{emphasis:{500:"#F7F7F729",400:"#F7F7F71F",300:"#F7F7F71A",200:"#F7F7F714",100:"#F7F7F70F"},standard:{1e3:"#F7F7F7",900:"#F7F7F7E0",800:"#F7F7F7CC",700:"#F7F7F7A3",600:"#F7F7F77A",500:"#F7F7F73D",400:"#F7F7F729",300:"#F7F7F71F",200:"#F7F7F714",150:"#F7F7F70F",100:"#F7F7F70A",50:"#F7F7F705"},inverse:{1e3:"#0D0D0D",900:"#0D0D0DE0",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D14",150:"#0D0D0D0F",100:"#0D0D0D0A",50:"#0D0D0D05"}},status:{guidance:{bright:"#36E0F8",dim:"#94E9F5 "},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FAFD7E",dim:"#F6F8B9"},fatal:{bright:"#FF637F",dim:"#F9ABB9"}},fixed:{black:{1e3:"#131313",100:"#13131314"},white:{1e3:"#F3F3F3",100:"#F3F3F314"}},text:{highlight:"#36E0F833",heading:{primary:"base.color.brand.1",secondary:"base.color.brand.4",emphasis:"base.gradient.1",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},body:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},caption:{primary:"base.color.brand.1",secondary:"base.color.brand.4",inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.4"}},link:{primary:"base.color.accent.1",secondary:"base.color.brand.1",inverse:{primary:"#b026bd",secondary:"base.color.brand.2"}},status:{success:{primary:"base.color.status.success.bright",secondary:"base.color.status.success.dim"},guidance:{primary:"base.color.status.guidance.bright",secondary:"base.color.status.guidance.dim"},attention:{primary:"base.color.status.attention.bright",secondary:"base.color.status.attention.dim"},fatal:{primary:"base.color.status.fatal.bright",secondary:"base.color.status.fatal.dim"}}},overlay:"base.color.translucent.standard.500"},gradient:x$1,shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 6px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"}});var {version:y$1}={name:"@biom3/design-tokens",version:"0.4.4",main:"./src/index.ts",module:"./src/index.ts",types:"./src/index.ts",directories:{css:"css",fonts:"fonts"},license:"Apache-2.0",sideEffects:!1,repository:{type:"git",url:"git+https://github.com/immutable/biom3.git"},scripts:{lint:"npm run typecheck && npm run lint:check","lint:check":"biome check ./","lint:check:fix":"biome check --apply ./","format:fix":"biome format --write ./",typecheck:"tsc --noEmit",prebuild:"rm -rf ./dist",build:"npm run build:tokens; npm run build:ts",pack:"npm pack","prebuild:tokens":"rm -rf ./css; mkdir css;","build:tokens":"ts-node ./src/packageScripts/dumpTokens.ts","build:ts":"tsup src/index.ts --dts","publish-package":"if can-npm-publish; then cd dist; npm publish --access public; else echo 'Skipping package npm publish'; fi"},dependencies:{"lodash.get":"^4.4.2"},devDependencies:{"@biomejs/biome":"1.7.0","@types/node":"^18.15.11","can-npm-publish":"^1.3.6",nodemon:"^2.0.20","prepend-file":"^2.0.1","@repo/ts-config":"*","ts-node":"^10.9.2",tsup:"^7.2.0",typescript:"^5.4.5"}};console.log(`\n @biom3/design-tokens\n \n version: ${y$1}\n\n`);
|
|
224664
224811
|
|
|
224665
224812
|
const widgetTheme = (theme) => (theme.toLowerCase() === WidgetTheme.LIGHT.toLowerCase()
|
|
224666
224813
|
? c$3
|
|
@@ -224820,6 +224967,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224820
224967
|
function compareStr(a, b) {
|
|
224821
224968
|
return a.toLowerCase() === b.toLowerCase();
|
|
224822
224969
|
}
|
|
224970
|
+
function removeSpace(str) {
|
|
224971
|
+
return str.replace(/\s/g, '');
|
|
224972
|
+
}
|
|
224823
224973
|
|
|
224824
224974
|
function isValidWalletProvider(walletProviderName) {
|
|
224825
224975
|
if (walletProviderName === undefined)
|
|
@@ -226760,7 +226910,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
226760
226910
|
track({
|
|
226761
226911
|
userJourney: UserJourney.CONNECT,
|
|
226762
226912
|
screen: 'ConnectWallet',
|
|
226763
|
-
control: providerDetail.info.name,
|
|
226913
|
+
control: removeSpace(providerDetail.info.name),
|
|
226764
226914
|
controlType: 'MenuItem',
|
|
226765
226915
|
extras: {
|
|
226766
226916
|
wallet: getProviderSlugFromRdns(providerDetail.info.rdns),
|
|
@@ -226785,7 +226935,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
226785
226935
|
track({
|
|
226786
226936
|
userJourney: UserJourney.CONNECT,
|
|
226787
226937
|
screen: 'ConnectWallet',
|
|
226788
|
-
control: providerDetail.info.name,
|
|
226938
|
+
control: removeSpace(providerDetail.info.name),
|
|
226789
226939
|
controlType: 'MenuItem',
|
|
226790
226940
|
extras: {
|
|
226791
226941
|
wallet: getProviderSlugFromRdns(providerDetail.info.rdns),
|
|
@@ -228132,7 +228282,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228132
228282
|
* Copyright 2019 Google LLC
|
|
228133
228283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228134
228284
|
*/
|
|
228135
|
-
const t$3=window,e$5=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$5=new WeakMap;let o$5 = class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$5&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$5.set(s,t));}return t}toString(){return this.cssText}};const r$4=t=>new o$5("string"==typeof t?t:t+"",void 0,s$3),i$
|
|
228285
|
+
const t$3=window,e$5=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$5=new WeakMap;let o$5 = class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$5&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$5.set(s,t));}return t}toString(){return this.cssText}};const r$4=t=>new o$5("string"==typeof t?t:t+"",void 0,s$3),i$5=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$5(n,t,s$3)},S$2=(s,n)=>{e$5?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$3.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$2=e$5?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$4(e)})(t):t;
|
|
228136
228286
|
|
|
228137
228287
|
/**
|
|
228138
228288
|
* @license
|
|
@@ -228145,7 +228295,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228145
228295
|
* Copyright 2017 Google LLC
|
|
228146
228296
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228147
228297
|
*/
|
|
228148
|
-
var t$2;const i$
|
|
228298
|
+
var t$2;const i$4=window,s$1=i$4.trustedTypes,e$3=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$3="$lit$",n$3=`lit$${(Math.random()+"").slice(9)}$`,l$2="?"+n$3,h$1=`<${l$2}>`,r$2=document,u=()=>r$2.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$1=Array.isArray,v$1=t=>c$1(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$1=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),b=w(2),T$1=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),E=new WeakMap,C=r$2.createTreeWalker(r$2,129,null,!1);function P(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$3?e$3.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f$2;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f$2?"!--"===c[1]?u=_$1:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=l?l:f$2,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_$1||u===m?u=f$2:(u=p,l=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";r+=u===f$2?s+h$1:v>=0?(e.push(d),s.slice(0,v)+o$3+s.slice(v)+n$3+w):s+n$3+(-2===v?(e.push(void 0),i):w);}return [P(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V(t,i);if(this.el=N.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$3)||i.startsWith(n$3)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$3).split(n$3),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?L$1:"@"===i[1]?z:k});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y.test(h.tagName)){const t=h.textContent.split(n$3),i=t.length-1;if(i>0){h.textContent=s$1?s$1.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],u());}}}else if(8===h.nodeType)if(h.data===l$2)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$3,t+1));)v.push({type:7,index:r}),t+=n$3.length-1;}r++;}}static createElement(t,i){const s=r$2.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){var o,n,l,h;if(i===T$1)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S$1(t,r._$AS(t,i.values),r,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r$2).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z$1(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C.nextNode(),l++);}return C.currentNode=r$2,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{constructor(t,i,s,e){var o;this.type=2,this._$AH=A$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),d(t)?t===A$1||null==t||""===t?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v$1(t)?this.T(t):this._(t);}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t));}_(t){this._$AH!==A$1&&d(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$2.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N.createElement(P(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else {const t=new M(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t;}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new N(t)),i}T(t){c$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new R(this.k(u()),this.k(u()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t));}}class k{constructor(t,i,s,e,o){this.type=1,this._$AH=A$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A$1;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S$1(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==T$1,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S$1(this,e[s+l],i,l),h===T$1&&(h=this._$AH[l]),n||(n=!d(h)||h!==this._$AH[l]),h===A$1?t=A$1:t!==A$1&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h;}n&&!e&&this.j(t);}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$1?void 0:t;}}const I=s$1?s$1.emptyScript:"";let L$1 = class L extends k{constructor(){super(...arguments),this.type=4;}j(t){t&&t!==A$1?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name);}};class z extends k{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5;}_$AI(t,i=this){var s;if((t=null!==(s=S$1(this,t,i,0))&&void 0!==s?s:A$1)===T$1)return;const e=this._$AH,o=t===A$1&&e!==A$1||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A$1&&(e===A$1||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t);}}let Z$1 = class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}};const B$1=i$4.litHtmlPolyfillSupport;null==B$1||B$1(N,R),(null!==(t$2=i$4.litHtmlVersions)&&void 0!==t$2?t$2:i$4.litHtmlVersions=[]).push("2.8.0");const D$1=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R(i.insertBefore(u(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l};
|
|
228149
228299
|
|
|
228150
228300
|
/**
|
|
228151
228301
|
* @license
|
|
@@ -228165,7 +228315,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228165
228315
|
* Copyright 2017 Google LLC
|
|
228166
228316
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228167
228317
|
*/
|
|
228168
|
-
const i$
|
|
228318
|
+
const i$3=(i,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this));},finisher(n){n.createProperty(e.key,i);}},e$1=(i,e,n)=>{e.constructor.createProperty(n,i);};function n$1(n){return (t,o)=>void 0!==o?e$1(n,t,o):i$3(n,t)}
|
|
228169
228319
|
|
|
228170
228320
|
/**
|
|
228171
228321
|
* @license
|
|
@@ -228184,13 +228334,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
228184
228334
|
* Copyright 2017 Google LLC
|
|
228185
228335
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228186
228336
|
*/
|
|
228187
|
-
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});let i$
|
|
228337
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});let i$2 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
228188
228338
|
|
|
228189
228339
|
/**
|
|
228190
228340
|
* @license
|
|
228191
228341
|
* Copyright 2018 Google LLC
|
|
228192
228342
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228193
|
-
*/const o$1=e(class extends i$
|
|
228343
|
+
*/const o$1=e(class extends i$2{constructor(t$1){var i;if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||(null===(i=t$1.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t));}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)));}return T$1}});
|
|
228194
228344
|
|
|
228195
228345
|
function addUniqueItem(array, item) {
|
|
228196
228346
|
array.indexOf(item) === -1 && array.push(item);
|
|
@@ -232029,7 +232179,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
232029
232179
|
return SvgRenderer.render(data, opts)
|
|
232030
232180
|
});
|
|
232031
232181
|
|
|
232032
|
-
var et=Object.defineProperty,Be=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Ue=(e,o,r)=>o in e?et(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,ve=(e,o)=>{for(var r in o||(o={}))tt.call(o,r)&&Ue(e,r,o[r]);if(Be)for(var r of Be(o))ot.call(o,r)&&Ue(e,r,o[r]);return e};function rt(){var e;const o=(e=ne$3.state.themeMode)!=null?e:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[o];return {"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function He(){return {"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const h={getPreset(e){return He()[e]},setTheme(){const e=document.querySelector(":root"),{themeVariables:o}=ne$3.state;if(e){const r=ve(ve(ve({},rt()),He()),o);Object.entries(r).forEach(([a,t])=>e.style.setProperty(a,t));}},globalCss:i$4`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},at=i$4`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var lt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,F=(e,o,r,a)=>{for(var t=a>1?void 0:a?it(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&<(o,r,t),t};let T=class extends s{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default";}render(){const e={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let o="inverse";return this.variant==="ghost"&&(o="secondary"),this.variant==="outline"&&(o="accent"),x`<button class="${o$1(e)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${o}"><slot></slot></wcm-text>${this.iconRight}</button>`}};T.styles=[h.globalCss,at],F([n$1({type:Boolean})],T.prototype,"disabled",2),F([n$1()],T.prototype,"iconLeft",2),F([n$1()],T.prototype,"iconRight",2),F([n$1()],T.prototype,"onClick",2),F([n$1()],T.prototype,"variant",2),T=F([e$2("wcm-button")],T);const nt=i$4`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var ct=Object.defineProperty,st=Object.getOwnPropertyDescriptor,ue=(e,o,r,a)=>{for(var t=a>1?void 0:a?st(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&ct(o,r,t),t};let ee=class extends s{constructor(){super(...arguments),this.disabled=!1,this.variant="primary";}render(){const e={"wcm-secondary":this.variant==="secondary"};return x`<button ?disabled="${this.disabled}" class="${o$1(e)}"><slot></slot></button>`}};ee.styles=[h.globalCss,nt],ue([n$1({type:Boolean})],ee.prototype,"disabled",2),ue([n$1()],ee.prototype,"variant",2),ee=ue([e$2("wcm-button-big")],ee);const dt=i$4`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var wt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let be=class extends s{render(){return x`<div><slot></slot></div>`}};be.styles=[h.globalCss,dt],be=wt([e$2("wcm-info-footer")],be);const v={CROSS_ICON:b`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:b`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:b`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:b`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:b`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:b`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:b`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:b`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:b`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:b`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:b`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:b`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:b`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:b`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:b`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},pt=i$4`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var ut=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let fe=class extends s{render(){return x`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${v.WALLET_CONNECT_LOGO} <button @click="${se$3.close}">${v.CROSS_ICON}</button></div>`}};fe.styles=[h.globalCss,pt],fe=ut([e$2("wcm-modal-backcard")],fe);const bt=i$4`main{padding:20px;padding-top:0;width:100%}`;var yt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let xe=class extends s{render(){return x`<main><slot></slot></main>`}};xe.styles=[h.globalCss,bt],xe=yt([e$2("wcm-modal-content")],xe);const $t=i$4`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var Ot=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let ye=class extends s{render(){return x`<footer><slot></slot></footer>`}};ye.styles=[h.globalCss,$t],ye=Ot([e$2("wcm-modal-footer")],ye);const Wt=i$4`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var It=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,te=(e,o,r,a)=>{for(var t=a>1?void 0:a?Et(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&It(o,r,t),t};let S=class extends s{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1;}backBtnTemplate(){return x`<button class="wcm-back-btn" @click="${T$4.goBack}">${v.BACK_ICON}</button>`}actionBtnTemplate(){return x`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const e={"wcm-border":this.border},o=T$4.state.history.length>1,r=this.title?x`<wcm-text variant="big-bold">${this.title}</wcm-text>`:x`<slot></slot>`;return x`<header class="${o$1(e)}">${o?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};S.styles=[h.globalCss,Wt],te([n$1()],S.prototype,"title",2),te([n$1()],S.prototype,"onAction",2),te([n$1()],S.prototype,"actionIcon",2),te([n$1({type:Boolean})],S.prototype,"border",2),S=te([e$2("wcm-modal-header")],S);const c={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,o){const r=e.renderRoot.querySelector(o);if(!r)throw new Error(`${o} not found`);return r},getWalletIcon({id:e,image_id:o}){const{walletImages:r}=y$7.state;return r!=null&&r[e]?r[e]:o?te$5.getWalletImageUrl(o):""},getWalletName(e,o=!1){return o&&e.length>8?`${e.substring(0,8)}..`:e},isMobileAnimation(){return window.innerWidth<=c.MOBILE_BREAKPOINT},async preloadImage(e){const o=new Promise((r,a)=>{const t=new Image;t.onload=r,t.onerror=a,t.crossOrigin="anonymous",t.src=e;});return Promise.race([o,a$6.wait(3e3)])},getErrorMessage(e){return e instanceof Error?e.message:"Unknown Error"},debounce(e,o=500){let r;return (...a)=>{function t(){e(...a);}r&&clearTimeout(r),r=setTimeout(t,o);}},handleMobileLinking(e){const{walletConnectUri:o}=p$a.state,{mobile:r,name:a}=e,t=r?.native,l=r?.universal;c.setRecentWallet(e);function i(s){let $="";t?$=a$6.formatUniversalUrl(t,s,a):l&&($=a$6.formatNativeUrl(l,s,a)),a$6.openHref($,"_self");}o&&i(o);},handleAndroidLinking(){const{walletConnectUri:e}=p$a.state;e&&(a$6.setWalletConnectAndroidDeepLink(e),a$6.openHref(e,"_self"));},async handleUriCopy(){const{walletConnectUri:e}=p$a.state;if(e)try{await navigator.clipboard.writeText(e),oe$5.openToast("Link copied","success");}catch{oe$5.openToast("Failed to copy","error");}},getCustomImageUrls(){const{walletImages:e}=y$7.state,o=Object.values(e??{});return Object.values(o)},truncate(e,o=8){return e.length<=o?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`},setRecentWallet(e){try{localStorage.setItem(c.WCM_RECENT_WALLET_DATA,JSON.stringify(e));}catch{console.info("Unable to set recent wallet");}},getRecentWallet(){try{const e=localStorage.getItem(c.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet");}},caseSafeIncludes(e,o){return e.toUpperCase().includes(o.toUpperCase())},openWalletExplorerUrl(){a$6.openHref(c.EXPLORER_WALLET_URL,"_blank");},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:o}=a$6.getWalletRouterData(),r=Boolean(e?.native),a=Boolean(e?.universal),t=Boolean(o?.native)||Boolean(o?.universal);return {isDesktop:r,isMobile:t,isWeb:a}},goToConnectingView(e){T$4.setData({Wallet:e});const o=a$6.isMobile(),{isDesktop:r,isWeb:a,isMobile:t}=c.getCachedRouterWalletPlatforms();o?t?T$4.push("MobileConnecting"):a?T$4.push("WebConnecting"):T$4.push("InstallWallet"):r?T$4.push("DesktopConnecting"):a?T$4.push("WebConnecting"):t?T$4.push("MobileQrcodeConnecting"):T$4.push("InstallWallet");}},Mt=i$4`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Lt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,$e=(e,o,r,a)=>{for(var t=a>1?void 0:a?Rt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Lt(o,r,t),t};let oe=class extends s{constructor(){super(),this.view=T$4.state.view,this.prevView=T$4.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=T$4.subscribe(e=>{this.view!==e.view&&this.onChangeRoute();});}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const o=`${e.contentRect.height}px`;this.oldHeight!=="0px"&&animate(this.routerEl,{height:[this.oldHeight,o]},{duration:.2}),this.oldHeight=o;}),this.resizeObserver.observe(this.contentEl);}disconnectedCallback(){var e,o;(e=this.unsubscribe)==null||e.call(this),(o=this.resizeObserver)==null||o.disconnect();}get routerEl(){return c.getShadowRootElement(this,".wcm-router")}get contentEl(){return c.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return x`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return x`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return x`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return x`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return x`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return x`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return x`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return x`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return x`<div>Not Found</div>`}}async onChangeRoute(){await animate(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=T$4.state.view,animate(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05});}render(){return x`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};oe.styles=[h.globalCss,Mt],$e([t$1()],oe.prototype,"view",2),$e([t$1()],oe.prototype,"prevView",2),oe=$e([e$2("wcm-modal-router")],oe);const At=i$4`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var Pt=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,ze=(e,o,r,a)=>{for(var t=a>1?void 0:a?Tt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Pt(o,r,t),t};let ne=class extends s{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=oe$5.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>oe$5.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout));});}disconnectedCallback(){var e;(e=this.unsubscribe)==null||e.call(this),clearTimeout(this.timeout),oe$5.closeToast();}render(){const{message:e,variant:o}=oe$5.state,r={"wcm-success":o==="success","wcm-error":o==="error"};return this.open?x`<div class="${o$1(r)}">${o==="success"?v.CHECKMARK_ICON:null} ${o==="error"?v.CROSS_ICON:null}<wcm-text variant="small-regular">${e}</wcm-text></div>`:null}};ne.styles=[h.globalCss,At],ze([t$1()],ne.prototype,"open",2),ne=ze([e$2("wcm-modal-toast")],ne);const jt=.1,Ve=2.5,A=7;function Ce(e,o,r){return e===o?!1:(e-o<0?o-e:e-o)<=r+jt}function _t(e,o){const r=Array.prototype.slice.call(browser$1.create(e,{errorCorrectionLevel:o}).modules.data,0),a=Math.sqrt(r.length);return r.reduce((t,l,i)=>(i%a===0?t.push([l]):t[t.length-1].push(l))&&t,[])}const Dt={generate(e,o,r){const a="#141414",t="#ffffff",l=[],i=_t(e,"Q"),s=o/i.length,$=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];$.forEach(({x:y,y:u})=>{const O=(i.length-A)*s*y,b$1=(i.length-A)*s*u,E=.45;for(let M=0;M<$.length;M+=1){const V=s*(A-M*2);l.push(b`<rect fill="${M%2===0?a:t}" height="${V}" rx="${V*E}" ry="${V*E}" width="${V}" x="${O+s*M}" y="${b$1+s*M}">`);}});const f=Math.floor((r+25)/s),Ne=i.length/2-f/2,Ze=i.length/2+f/2-1,Se=[];i.forEach((y,u)=>{y.forEach((O,b)=>{if(i[u][b]&&!(u<A&&b<A||u>i.length-(A+1)&&b<A||u<A&&b>i.length-(A+1))&&!(u>Ne&&u<Ze&&b>Ne&&b<Ze)){const E=u*s+s/2,M=b*s+s/2;Se.push([E,M]);}});});const J={};return Se.forEach(([y,u])=>{J[y]?J[y].push(u):J[y]=[u];}),Object.entries(J).map(([y,u])=>{const O=u.filter(b=>u.every(E=>!Ce(b,E,s)));return [Number(y),O]}).forEach(([y,u])=>{u.forEach(O=>{l.push(b`<circle cx="${y}" cy="${O}" fill="${a}" r="${s/Ve}">`);});}),Object.entries(J).filter(([y,u])=>u.length>1).map(([y,u])=>{const O=u.filter(b=>u.some(E=>Ce(b,E,s)));return [Number(y),O]}).map(([y,u])=>{u.sort((b,E)=>b<E?-1:1);const O=[];for(const b of u){const E=O.find(M=>M.some(V=>Ce(b,V,s)));E?E.push(b):O.push([b]);}return [y,O.map(b=>[b[0],b[b.length-1]])]}).forEach(([y,u])=>{u.forEach(([O,b$1])=>{l.push(b`<line x1="${y}" x2="${y}" y1="${O}" y2="${b$1}" stroke="${a}" stroke-width="${s/(Ve/2)}" stroke-linecap="round">`);});}),l}},Nt=i$4`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Zt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,q=(e,o,r,a)=>{for(var t=a>1?void 0:a?St(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Zt(o,r,t),t};let j=class extends s{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0;}svgTemplate(){const e=ne$3.state.themeMode==="light"?this.size:this.size-36;return b`<svg height="${e}" width="${e}">${Dt.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":ne$3.state.themeMode==="dark"};return x`<div style="${`width: ${this.size}px`}" class="${o$1(e)}">${this.walletId||this.imageUrl?x`<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}" imageUrl="${l(this.imageUrl)}"></wcm-wallet-image>`:v.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};j.styles=[h.globalCss,Nt],q([n$1()],j.prototype,"uri",2),q([n$1({type:Number})],j.prototype,"size",2),q([n$1()],j.prototype,"imageId",2),q([n$1()],j.prototype,"walletId",2),q([n$1()],j.prototype,"imageUrl",2),j=q([e$2("wcm-qrcode")],j);const Bt=i$4`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Ut=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Fe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Ht(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ut(o,r,t),t};let ce=class extends s{constructor(){super(...arguments),this.onChange=()=>null;}render(){return x`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${v.SEARCH_ICON}`}};ce.styles=[h.globalCss,Bt],Fe([n$1()],ce.prototype,"onChange",2),ce=Fe([e$2("wcm-search-input")],ce);const zt=i$4`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var qt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let ke=class extends s{render(){return x`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};ke.styles=[h.globalCss,zt],ke=qt([e$2("wcm-spinner")],ke);const Qt=i$4`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,Oe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Yt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Kt(o,r,t),t};let re=class extends s{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary";}render(){const e={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return x`<span><slot class="${o$1(e)}"></slot></span>`}};re.styles=[h.globalCss,Qt],Oe([n$1()],re.prototype,"variant",2),Oe([n$1()],re.prototype,"color",2),re=Oe([e$2("wcm-text")],re);const Gt=i$4`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Xt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,_=(e,o,r,a)=>{for(var t=a>1?void 0:a?Jt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Xt(o,r,t),t};let L=class extends s{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1;}sublabelTemplate(){return this.recent?x`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?x`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){R$6.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick();}render(){var e;return x`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${l(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${(e=this.label)!=null?e:c.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};L.styles=[h.globalCss,Gt],_([n$1()],L.prototype,"onClick",2),_([n$1()],L.prototype,"name",2),_([n$1()],L.prototype,"walletId",2),_([n$1()],L.prototype,"label",2),_([n$1()],L.prototype,"imageId",2),_([n$1({type:Boolean})],L.prototype,"installed",2),_([n$1({type:Boolean})],L.prototype,"recent",2),L=_([e$2("wcm-wallet-button")],L);const eo=i$4`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var to=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,se=(e,o,r,a)=>{for(var t=a>1?void 0:a?oo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&to(o,r,t),t};let Q=class extends s{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0;}render(){var e;const o=(e=this.imageUrl)!=null&&e.length?this.imageUrl:c.getWalletIcon({id:this.walletId,image_id:this.imageId});return x`${o.length?x`<div><img crossorigin="anonymous" src="${o}" alt="${this.id}"></div>`:v.WALLET_PLACEHOLDER}`}};Q.styles=[h.globalCss,eo],se([n$1()],Q.prototype,"walletId",2),se([n$1()],Q.prototype,"imageId",2),se([n$1()],Q.prototype,"imageUrl",2),Q=se([e$2("wcm-wallet-image")],Q);var ro=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,qe=(e,o,r,a)=>{for(var t=a>1?void 0:a?ao(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&ro(o,r,t),t};let We=class extends s{constructor(){super(),this.preload=!0,this.preloadData();}async loadImages(e){try{e!=null&&e.length&&await Promise.all(e.map(async o=>c.preloadImage(o)));}catch{console.info("Unsuccessful attempt at preloading some images",e);}}async preloadListings(){if(y$7.state.enableExplorer){await te$5.getRecomendedWallets(),p$a.setIsDataLoaded(!0);const{recomendedWallets:e}=te$5.state,o=e.map(r=>c.getWalletIcon(r));await this.loadImages(o);}else p$a.setIsDataLoaded(!0);}async preloadCustomImages(){const e=c.getCustomImageUrls();await this.loadImages(e);}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]));}catch(e){console.error(e),oe$5.openToast("Failed preloading","error");}}};qe([t$1()],We.prototype,"preload",2),We=qe([e$2("wcm-explorer-context")],We);var no=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Qe=class extends s{constructor(){super(),this.unsubscribeTheme=void 0,h.setTheme(),this.unsubscribeTheme=ne$3.subscribe(h.setTheme);}disconnectedCallback(){var e;(e=this.unsubscribeTheme)==null||e.call(this);}};Qe=no([e$2("wcm-theme-context")],Qe);const co=i$4`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ho=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ie=class extends s{onGoToQrcode(){T$4.push("Qrcode");}render(){const{recomendedWallets:e}=te$5.state,o=[...e,...e],r=a$6.RECOMMENDED_WALLET_AMOUNT*2;return x`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${v.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${v.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map((a,t)=>{const l=o[t%o.length];return l?x`<wcm-wallet-image walletId="${l.id}" imageId="${l.image_id}"></wcm-wallet-image>`:v.WALLET_PLACEHOLDER})}</div><wcm-button-big @click="${c.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};Ie.styles=[h.globalCss,co],Ie=ho([e$2("wcm-android-wallet-selection")],Ie);const wo=i$4`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var po=Object.defineProperty,go=Object.getOwnPropertyDescriptor,K=(e,o,r,a)=>{for(var t=a>1?void 0:a?go(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&po(o,r,t),t};let D=class extends s{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label="";}svgLoaderTemplate(){var e,o;const r=(o=(e=ne$3.state.themeVariables)==null?void 0:e["--wcm-wallet-icon-large-border-radius"])!=null?o:h.getPreset("--wcm-wallet-icon-large-border-radius");let a=0;r.includes("%")?a=88/100*parseInt(r,10):a=parseInt(r,10),a*=1.17;const t=317-a*1.57,l=425-a*1.8;return x`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${a}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${t}" stroke-dashoffset="${l}"></use></svg>`}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return x`<div class="${o$1(e)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};D.styles=[h.globalCss,wo],K([n$1()],D.prototype,"walletId",2),K([n$1()],D.prototype,"imageId",2),K([n$1({type:Boolean})],D.prototype,"isError",2),K([n$1({type:Boolean})],D.prototype,"isStale",2),K([n$1()],D.prototype,"label",2),D=K([e$2("wcm-connector-waiting")],D);const G={manualWallets(){var e,o;const{mobileWallets:r,desktopWallets:a}=y$7.state,t=(e=G.recentWallet())==null?void 0:e.id,l=a$6.isMobile()?r:a,i=l?.filter(s=>t!==s.id);return (o=a$6.isMobile()?i?.map(({id:s,name:$,links:f})=>({id:s,name:$,mobile:f,links:f})):i?.map(({id:s,name:$,links:f})=>({id:s,name:$,desktop:f,links:f})))!=null?o:[]},recentWallet(){return c.getRecentWallet()},recomendedWallets(e=!1){var o;const r=e||(o=G.recentWallet())==null?void 0:o.id,{recomendedWallets:a}=te$5.state;return a.filter(t=>r!==t.id)}},Z={onConnecting(e){c.goToConnectingView(e);},manualWalletsTemplate(){return G.manualWallets().map(e=>x`<wcm-wallet-button walletId="${e.id}" name="${e.name}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`)},recomendedWalletsTemplate(e=!1){return G.recomendedWallets(e).map(o=>x`<wcm-wallet-button name="${o.name}" walletId="${o.id}" imageId="${o.image_id}" .onClick="${()=>this.onConnecting(o)}"></wcm-wallet-button>`)},recentWalletTemplate(){const e=G.recentWallet();if(e)return x`<wcm-wallet-button name="${e.name}" walletId="${e.id}" imageId="${l(e.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`}},vo=i$4`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var fo=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ee=class extends s{render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=y$7.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>4||r;let s=[];i?s=l.slice(0,3):s=l;const $=Boolean(s.length);return x`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${v.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${v.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${$?x`<wcm-modal-footer><div class="wcm-desktop-title">${v.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${s} ${i?x`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};Ee.styles=[h.globalCss,vo],Ee=fo([e$2("wcm-desktop-wallet-selection")],Ee);const xo=i$4`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Co=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Me=class extends s{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:o}=y$7.state;return e??o?x`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${e?x`<a href="${e}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${e&&o?"and":null} ${o?x`<a href="${o}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};Me.styles=[h.globalCss,xo],Me=Co([e$2("wcm-legal-notice")],Me);const ko=i$4`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Io=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Le=class extends s{onQrcode(){T$4.push("Qrcode");}render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=y$7.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>8||r;let s=[];i?s=l.slice(0,7):s=l;const $=Boolean(s.length);return x`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${v.QRCODE_ICON}"></wcm-modal-header>${$?x`<wcm-modal-content><div>${s} ${i?x`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};Le.styles=[h.globalCss,ko],Le=Io([e$2("wcm-mobile-wallet-selection")],Le);const Eo=i$4`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Mo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Re=(e,o,r,a)=>{for(var t=a>1?void 0:a?Lo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Mo(o,r,t),t};let ae=class extends s{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=se$3.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent();});}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this);}get overlayEl(){return c.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return c.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const o=document.getElementById("wcm-styles");o?.remove();}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>');}onCloseModal(e){e.target===e.currentTarget&&se$3.close();}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=c.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},o=.1,r=.2;await Promise.all([animate(this.overlayEl,{opacity:[0,1]},{delay:o,duration:r}).finished,animate(this.containerEl,e,{delay:o,duration:r}).finished]),this.active=!0;},0);}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=c.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},o=.2;await Promise.all([animate(this.overlayEl,{opacity:[1,0]},{duration:o}).finished,animate(this.containerEl,e,{duration:o}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1;}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var o;e.key==="Escape"?se$3.close():e.key==="Tab"&&((o=e.target)!=null&&o.tagName.includes("wcm-")||this.containerEl.focus());},this.abortController),this.containerEl.focus();}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0;}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${o$1(e)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?x`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};ae.styles=[h.globalCss,Eo],Re([t$1()],ae.prototype,"open",2),Re([t$1()],ae.prototype,"active",2),ae=Re([e$2("wcm-modal")],ae);const Ro=i$4`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var Ao=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,le=(e,o,r,a)=>{for(var t=a>1?void 0:a?Po(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ao(o,r,t),t};let B=class extends s{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1;}onMobile(){a$6.isMobile()?T$4.replace("MobileConnecting"):T$4.replace("MobileQrcodeConnecting");}onDesktop(){T$4.replace("DesktopConnecting");}onWeb(){T$4.replace("WebConnecting");}render(){return x`<div>${this.isRetry?x`<slot></slot>`:null} ${this.isMobile?x`<wcm-button .onClick="${this.onMobile}" .iconLeft="${v.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?x`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${v.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?x`<wcm-button .onClick="${this.onWeb}" .iconLeft="${v.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};B.styles=[h.globalCss,Ro],le([n$1({type:Boolean})],B.prototype,"isMobile",2),le([n$1({type:Boolean})],B.prototype,"isDesktop",2),le([n$1({type:Boolean})],B.prototype,"isWeb",2),le([n$1({type:Boolean})],B.prototype,"isRetry",2),B=le([e$2("wcm-platform-selection")],B);const To=i$4`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Do=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ae=class extends s{onClick(){T$4.push("WalletExplorer");}render(){const{recomendedWallets:e}=te$5.state,o=G.manualWallets(),r=[...e,...o].reverse().slice(0,4);return x`<button @click="${this.onClick}"><div class="wcm-icons">${r.map(a=>{const t=c.getWalletIcon(a);if(t)return x`<img crossorigin="anonymous" src="${t}">`;const l=c.getWalletIcon({id:a.id});return l?x`<img crossorigin="anonymous" src="${l}">`:v.WALLET_PLACEHOLDER})} ${[...Array(4-r.length)].map(()=>v.WALLET_PLACEHOLDER)}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};Ae.styles=[h.globalCss,To],Ae=Do([e$2("wcm-view-all-wallets-button")],Ae);const No=i$4`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var Zo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,de=(e,o,r,a)=>{for(var t=a>1?void 0:a?So(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Zo(o,r,t),t};let Y=class extends s{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:e}=p$a.state;this.uri=e;},0);}get overlayEl(){return c.getShadowRootElement(this,".wcm-qr-container")}render(){return x`<div class="wcm-qr-container">${this.uri?x`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-qrcode>`:x`<wcm-spinner></wcm-spinner>`}</div>`}};Y.styles=[h.globalCss,No],de([n$1()],Y.prototype,"walletId",2),de([n$1()],Y.prototype,"imageId",2),de([t$1()],Y.prototype,"uri",2),Y=de([e$2("wcm-walletconnect-qr")],Y);var Ho=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Pe=class extends s{viewTemplate(){return a$6.isAndroid()?x`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:a$6.isMobile()?x`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:x`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return x`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};Pe.styles=[h.globalCss],Pe=Ho([e$2("wcm-connect-wallet-view")],Pe);const zo=i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Vo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Ke=(e,o,r,a)=>{for(var t=a>1?void 0:a?Fo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Vo(o,r,t),t};let me=class extends s{constructor(){super(),this.isError=!1,this.openDesktopApp();}onFormatAndRedirect(e){const{desktop:o,name:r}=a$6.getWalletRouterData(),a=o?.native;if(a){const t=a$6.formatNativeUrl(a,e,r);a$6.openHref(t,"_self");}}openDesktopApp(){const{walletConnectUri:e}=p$a.state,o=a$6.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e);}render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isMobile:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${e} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isWeb="${t}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};me.styles=[h.globalCss,zo],Ke([t$1()],me.prototype,"isError",2),me=Ke([e$2("wcm-desktop-connecting-view")],me);const qo=i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var Yo=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Te=class extends s{onInstall(e){e&&a$6.openHref(e,"_blank");}render(){const{name:e,id:o,image_id:r,homepage:a}=a$6.getWalletRouterData();return x`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(a)}" .iconLeft="${v.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};Te.styles=[h.globalCss,qo],Te=Yo([e$2("wcm-install-wallet-view")],Te);const Go=i$4`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Ye=(e,o,r,a)=>{for(var t=a>1?void 0:a?Jo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Xo(o,r,t),t};let he=class extends s{constructor(){super(),this.isError=!1,this.openMobileApp();}onFormatAndRedirect(e,o=!1){const{mobile:r,name:a}=a$6.getWalletRouterData(),t=r?.native,l=r?.universal;if(t&&!o){const i=a$6.formatNativeUrl(t,e,a);a$6.openHref(i,"_self");}else if(l){const i=a$6.formatUniversalUrl(l,e,a);a$6.openHref(i,"_self");}}openMobileApp(e=!1){const{walletConnectUri:o}=p$a.state,r=a$6.getWalletRouterData();c.setRecentWallet(r),o&&this.onFormatAndRedirect(o,e);}onGoToAppStore(e){e&&a$6.openHref(e,"_blank");}render(){const{name:e,id:o,image_id:r,app:a,mobile:t}=a$6.getWalletRouterData(),{isWeb:l$1}=c.getCachedRouterWalletPlatforms(),i=a?.ios,s=t?.universal;return x`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${l$1}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${s?x`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${o}" imageId="${l(r)}"></wcm-wallet-image><wcm-text>${`Get ${e}`}</wcm-text></div><wcm-button .iconRight="${v.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(i)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};he.styles=[h.globalCss,Go],Ye([t$1()],he.prototype,"isError",2),he=Ye([e$2("wcm-mobile-connecting-view")],he);const er=i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rr=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let je=class extends s{render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isDesktop:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${o}" imageId="${l(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${e} app`}</wcm-text><wcm-platform-selection .isDesktop="${a}" .isWeb="${t}"></wcm-platform-selection></wcm-info-footer>`}};je.styles=[h.globalCss,er],je=rr([e$2("wcm-mobile-qr-connecting-view")],je);var ir=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let _e=class extends s{render(){return x`<wcm-modal-header title="Scan the code" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};_e.styles=[h.globalCss],_e=ir([e$2("wcm-qrcode-view")],_e);const nr=i$4`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var cr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ie=(e,o,r,a)=>{for(var t=a>1?void 0:a?sr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&cr(o,r,t),t};const De=40;let U=class extends s{constructor(){super(...arguments),this.loading=!te$5.state.wallets.listings.length,this.firstFetch=!te$5.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=c.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,te$5.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),te$5.resetSearch());});}firstUpdated(){this.createPaginationObserver();}disconnectedCallback(){var e;(e=this.intersectionObserver)==null||e.disconnect();}get placeholderEl(){return c.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets();}),this.intersectionObserver.observe(this.placeholderEl);}isLastPage(){const{wallets:e,search:o}=te$5.state,{listings:r,total:a}=this.search?o:e;return a<=De||r.length>=a}async fetchWallets(){var e;const{wallets:o,search:r}=te$5.state,{listings:a,total:t,page:l}=this.search?r:o;if(!this.endReached&&(this.firstFetch||t>De&&a.length<t))try{this.loading=!0;const i=(e=p$a.state.chains)==null?void 0:e.join(","),{listings:s}=await te$5.getWallets({page:this.firstFetch?1:l+1,entries:De,search:this.search,version:2,chains:i}),$=s.map(f=>c.getWalletIcon(f));await Promise.all([...$.map(async f=>c.preloadImage(f)),a$6.wait(300)]),this.endReached=this.isLastPage();}catch(i){console.error(i),oe$5.openToast(c.getErrorMessage(i),"error");}finally{this.loading=!1,this.firstFetch=!1;}}onConnect(e){a$6.isAndroid()?c.handleMobileLinking(e):c.goToConnectingView(e);}onSearchChange(e){const{value:o}=e.target;this.searchDebounce(o);}render(){const{wallets:e,search:o}=te$5.state,{listings:r}=this.search?o:e,a=this.loading&&!r.length,t=this.search.length>=3;let l=Z.manualWalletsTemplate(),i=Z.recomendedWalletsTemplate(!0);t&&(l=l.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)),i=i.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)));const s=!this.loading&&!r.length&&!i.length,$={"wcm-loading":a,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${o$1($)}"><div class="wcm-grid">${a?null:l} ${a?null:i} ${a?null:r.map(f=>x`${f?x`<wcm-wallet-button imageId="${f.image_id}" name="${f.name}" walletId="${f.id}" .onClick="${()=>this.onConnect(f)}"></wcm-wallet-button>`:null}`)}</div><div class="wcm-placeholder-block">${s?x`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!s&&this.loading?x`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};U.styles=[h.globalCss,nr],ie([t$1()],U.prototype,"loading",2),ie([t$1()],U.prototype,"firstFetch",2),ie([t$1()],U.prototype,"search",2),ie([t$1()],U.prototype,"endReached",2),U=ie([e$2("wcm-wallet-explorer-view")],U);const dr=i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var mr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,Ge=(e,o,r,a)=>{for(var t=a>1?void 0:a?hr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&mr(o,r,t),t};let we=class extends s{constructor(){super(),this.isError=!1,this.openWebWallet();}onFormatAndRedirect(e){const{desktop:o,name:r}=a$6.getWalletRouterData(),a=o?.universal;if(a){const t=a$6.formatUniversalUrl(a,e,r);a$6.openHref(t,"_blank");}}openWebWallet(){const{walletConnectUri:e}=p$a.state,o=a$6.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e);}render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isMobile:a,isDesktop:t}=c.getCachedRouterWalletPlatforms(),l$1=a$6.isMobile();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isDesktop="${l$1?!1:t}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};we.styles=[h.globalCss,dr],Ge([t$1()],we.prototype,"isError",2),we=Ge([e$2("wcm-web-connecting-view")],we);
|
|
232182
|
+
var et=Object.defineProperty,Be=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Ue=(e,o,r)=>o in e?et(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,ve=(e,o)=>{for(var r in o||(o={}))tt.call(o,r)&&Ue(e,r,o[r]);if(Be)for(var r of Be(o))ot.call(o,r)&&Ue(e,r,o[r]);return e};function rt(){var e;const o=(e=ne$3.state.themeMode)!=null?e:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[o];return {"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function He(){return {"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const h={getPreset(e){return He()[e]},setTheme(){const e=document.querySelector(":root"),{themeVariables:o}=ne$3.state;if(e){const r=ve(ve(ve({},rt()),He()),o);Object.entries(r).forEach(([a,t])=>e.style.setProperty(a,t));}},globalCss:i$5`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},at=i$5`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var lt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,F=(e,o,r,a)=>{for(var t=a>1?void 0:a?it(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&<(o,r,t),t};let T=class extends s{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default";}render(){const e={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let o="inverse";return this.variant==="ghost"&&(o="secondary"),this.variant==="outline"&&(o="accent"),x`<button class="${o$1(e)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${o}"><slot></slot></wcm-text>${this.iconRight}</button>`}};T.styles=[h.globalCss,at],F([n$1({type:Boolean})],T.prototype,"disabled",2),F([n$1()],T.prototype,"iconLeft",2),F([n$1()],T.prototype,"iconRight",2),F([n$1()],T.prototype,"onClick",2),F([n$1()],T.prototype,"variant",2),T=F([e$2("wcm-button")],T);const nt=i$5`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var ct=Object.defineProperty,st=Object.getOwnPropertyDescriptor,ue=(e,o,r,a)=>{for(var t=a>1?void 0:a?st(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&ct(o,r,t),t};let ee=class extends s{constructor(){super(...arguments),this.disabled=!1,this.variant="primary";}render(){const e={"wcm-secondary":this.variant==="secondary"};return x`<button ?disabled="${this.disabled}" class="${o$1(e)}"><slot></slot></button>`}};ee.styles=[h.globalCss,nt],ue([n$1({type:Boolean})],ee.prototype,"disabled",2),ue([n$1()],ee.prototype,"variant",2),ee=ue([e$2("wcm-button-big")],ee);const dt=i$5`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var wt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let be=class extends s{render(){return x`<div><slot></slot></div>`}};be.styles=[h.globalCss,dt],be=wt([e$2("wcm-info-footer")],be);const v={CROSS_ICON:b`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:b`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:b`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:b`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:b`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:b`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:b`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:b`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:b`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:b`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:b`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:b`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:b`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:b`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:b`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},pt=i$5`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var ut=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let fe=class extends s{render(){return x`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${v.WALLET_CONNECT_LOGO} <button @click="${se$3.close}">${v.CROSS_ICON}</button></div>`}};fe.styles=[h.globalCss,pt],fe=ut([e$2("wcm-modal-backcard")],fe);const bt=i$5`main{padding:20px;padding-top:0;width:100%}`;var yt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let xe=class extends s{render(){return x`<main><slot></slot></main>`}};xe.styles=[h.globalCss,bt],xe=yt([e$2("wcm-modal-content")],xe);const $t=i$5`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var Ot=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let ye=class extends s{render(){return x`<footer><slot></slot></footer>`}};ye.styles=[h.globalCss,$t],ye=Ot([e$2("wcm-modal-footer")],ye);const Wt=i$5`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var It=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,te=(e,o,r,a)=>{for(var t=a>1?void 0:a?Et(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&It(o,r,t),t};let S=class extends s{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1;}backBtnTemplate(){return x`<button class="wcm-back-btn" @click="${T$4.goBack}">${v.BACK_ICON}</button>`}actionBtnTemplate(){return x`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const e={"wcm-border":this.border},o=T$4.state.history.length>1,r=this.title?x`<wcm-text variant="big-bold">${this.title}</wcm-text>`:x`<slot></slot>`;return x`<header class="${o$1(e)}">${o?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};S.styles=[h.globalCss,Wt],te([n$1()],S.prototype,"title",2),te([n$1()],S.prototype,"onAction",2),te([n$1()],S.prototype,"actionIcon",2),te([n$1({type:Boolean})],S.prototype,"border",2),S=te([e$2("wcm-modal-header")],S);const c={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,o){const r=e.renderRoot.querySelector(o);if(!r)throw new Error(`${o} not found`);return r},getWalletIcon({id:e,image_id:o}){const{walletImages:r}=y$7.state;return r!=null&&r[e]?r[e]:o?te$5.getWalletImageUrl(o):""},getWalletName(e,o=!1){return o&&e.length>8?`${e.substring(0,8)}..`:e},isMobileAnimation(){return window.innerWidth<=c.MOBILE_BREAKPOINT},async preloadImage(e){const o=new Promise((r,a)=>{const t=new Image;t.onload=r,t.onerror=a,t.crossOrigin="anonymous",t.src=e;});return Promise.race([o,a$6.wait(3e3)])},getErrorMessage(e){return e instanceof Error?e.message:"Unknown Error"},debounce(e,o=500){let r;return (...a)=>{function t(){e(...a);}r&&clearTimeout(r),r=setTimeout(t,o);}},handleMobileLinking(e){const{walletConnectUri:o}=p$a.state,{mobile:r,name:a}=e,t=r?.native,l=r?.universal;c.setRecentWallet(e);function i(s){let $="";t?$=a$6.formatUniversalUrl(t,s,a):l&&($=a$6.formatNativeUrl(l,s,a)),a$6.openHref($,"_self");}o&&i(o);},handleAndroidLinking(){const{walletConnectUri:e}=p$a.state;e&&(a$6.setWalletConnectAndroidDeepLink(e),a$6.openHref(e,"_self"));},async handleUriCopy(){const{walletConnectUri:e}=p$a.state;if(e)try{await navigator.clipboard.writeText(e),oe$5.openToast("Link copied","success");}catch{oe$5.openToast("Failed to copy","error");}},getCustomImageUrls(){const{walletImages:e}=y$7.state,o=Object.values(e??{});return Object.values(o)},truncate(e,o=8){return e.length<=o?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`},setRecentWallet(e){try{localStorage.setItem(c.WCM_RECENT_WALLET_DATA,JSON.stringify(e));}catch{console.info("Unable to set recent wallet");}},getRecentWallet(){try{const e=localStorage.getItem(c.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet");}},caseSafeIncludes(e,o){return e.toUpperCase().includes(o.toUpperCase())},openWalletExplorerUrl(){a$6.openHref(c.EXPLORER_WALLET_URL,"_blank");},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:o}=a$6.getWalletRouterData(),r=Boolean(e?.native),a=Boolean(e?.universal),t=Boolean(o?.native)||Boolean(o?.universal);return {isDesktop:r,isMobile:t,isWeb:a}},goToConnectingView(e){T$4.setData({Wallet:e});const o=a$6.isMobile(),{isDesktop:r,isWeb:a,isMobile:t}=c.getCachedRouterWalletPlatforms();o?t?T$4.push("MobileConnecting"):a?T$4.push("WebConnecting"):T$4.push("InstallWallet"):r?T$4.push("DesktopConnecting"):a?T$4.push("WebConnecting"):t?T$4.push("MobileQrcodeConnecting"):T$4.push("InstallWallet");}},Mt=i$5`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Lt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,$e=(e,o,r,a)=>{for(var t=a>1?void 0:a?Rt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Lt(o,r,t),t};let oe=class extends s{constructor(){super(),this.view=T$4.state.view,this.prevView=T$4.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=T$4.subscribe(e=>{this.view!==e.view&&this.onChangeRoute();});}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const o=`${e.contentRect.height}px`;this.oldHeight!=="0px"&&animate(this.routerEl,{height:[this.oldHeight,o]},{duration:.2}),this.oldHeight=o;}),this.resizeObserver.observe(this.contentEl);}disconnectedCallback(){var e,o;(e=this.unsubscribe)==null||e.call(this),(o=this.resizeObserver)==null||o.disconnect();}get routerEl(){return c.getShadowRootElement(this,".wcm-router")}get contentEl(){return c.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return x`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return x`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return x`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return x`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return x`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return x`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return x`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return x`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return x`<div>Not Found</div>`}}async onChangeRoute(){await animate(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=T$4.state.view,animate(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05});}render(){return x`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};oe.styles=[h.globalCss,Mt],$e([t$1()],oe.prototype,"view",2),$e([t$1()],oe.prototype,"prevView",2),oe=$e([e$2("wcm-modal-router")],oe);const At=i$5`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var Pt=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,ze=(e,o,r,a)=>{for(var t=a>1?void 0:a?Tt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Pt(o,r,t),t};let ne=class extends s{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=oe$5.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>oe$5.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout));});}disconnectedCallback(){var e;(e=this.unsubscribe)==null||e.call(this),clearTimeout(this.timeout),oe$5.closeToast();}render(){const{message:e,variant:o}=oe$5.state,r={"wcm-success":o==="success","wcm-error":o==="error"};return this.open?x`<div class="${o$1(r)}">${o==="success"?v.CHECKMARK_ICON:null} ${o==="error"?v.CROSS_ICON:null}<wcm-text variant="small-regular">${e}</wcm-text></div>`:null}};ne.styles=[h.globalCss,At],ze([t$1()],ne.prototype,"open",2),ne=ze([e$2("wcm-modal-toast")],ne);const jt=.1,Ve=2.5,A=7;function Ce(e,o,r){return e===o?!1:(e-o<0?o-e:e-o)<=r+jt}function _t(e,o){const r=Array.prototype.slice.call(browser$1.create(e,{errorCorrectionLevel:o}).modules.data,0),a=Math.sqrt(r.length);return r.reduce((t,l,i)=>(i%a===0?t.push([l]):t[t.length-1].push(l))&&t,[])}const Dt={generate(e,o,r){const a="#141414",t="#ffffff",l=[],i=_t(e,"Q"),s=o/i.length,$=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];$.forEach(({x:y,y:u})=>{const O=(i.length-A)*s*y,b$1=(i.length-A)*s*u,E=.45;for(let M=0;M<$.length;M+=1){const V=s*(A-M*2);l.push(b`<rect fill="${M%2===0?a:t}" height="${V}" rx="${V*E}" ry="${V*E}" width="${V}" x="${O+s*M}" y="${b$1+s*M}">`);}});const f=Math.floor((r+25)/s),Ne=i.length/2-f/2,Ze=i.length/2+f/2-1,Se=[];i.forEach((y,u)=>{y.forEach((O,b)=>{if(i[u][b]&&!(u<A&&b<A||u>i.length-(A+1)&&b<A||u<A&&b>i.length-(A+1))&&!(u>Ne&&u<Ze&&b>Ne&&b<Ze)){const E=u*s+s/2,M=b*s+s/2;Se.push([E,M]);}});});const J={};return Se.forEach(([y,u])=>{J[y]?J[y].push(u):J[y]=[u];}),Object.entries(J).map(([y,u])=>{const O=u.filter(b=>u.every(E=>!Ce(b,E,s)));return [Number(y),O]}).forEach(([y,u])=>{u.forEach(O=>{l.push(b`<circle cx="${y}" cy="${O}" fill="${a}" r="${s/Ve}">`);});}),Object.entries(J).filter(([y,u])=>u.length>1).map(([y,u])=>{const O=u.filter(b=>u.some(E=>Ce(b,E,s)));return [Number(y),O]}).map(([y,u])=>{u.sort((b,E)=>b<E?-1:1);const O=[];for(const b of u){const E=O.find(M=>M.some(V=>Ce(b,V,s)));E?E.push(b):O.push([b]);}return [y,O.map(b=>[b[0],b[b.length-1]])]}).forEach(([y,u])=>{u.forEach(([O,b$1])=>{l.push(b`<line x1="${y}" x2="${y}" y1="${O}" y2="${b$1}" stroke="${a}" stroke-width="${s/(Ve/2)}" stroke-linecap="round">`);});}),l}},Nt=i$5`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Zt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,q=(e,o,r,a)=>{for(var t=a>1?void 0:a?St(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Zt(o,r,t),t};let j=class extends s{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0;}svgTemplate(){const e=ne$3.state.themeMode==="light"?this.size:this.size-36;return b`<svg height="${e}" width="${e}">${Dt.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":ne$3.state.themeMode==="dark"};return x`<div style="${`width: ${this.size}px`}" class="${o$1(e)}">${this.walletId||this.imageUrl?x`<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}" imageUrl="${l(this.imageUrl)}"></wcm-wallet-image>`:v.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};j.styles=[h.globalCss,Nt],q([n$1()],j.prototype,"uri",2),q([n$1({type:Number})],j.prototype,"size",2),q([n$1()],j.prototype,"imageId",2),q([n$1()],j.prototype,"walletId",2),q([n$1()],j.prototype,"imageUrl",2),j=q([e$2("wcm-qrcode")],j);const Bt=i$5`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Ut=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Fe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Ht(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ut(o,r,t),t};let ce=class extends s{constructor(){super(...arguments),this.onChange=()=>null;}render(){return x`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${v.SEARCH_ICON}`}};ce.styles=[h.globalCss,Bt],Fe([n$1()],ce.prototype,"onChange",2),ce=Fe([e$2("wcm-search-input")],ce);const zt=i$5`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var qt=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let ke=class extends s{render(){return x`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};ke.styles=[h.globalCss,zt],ke=qt([e$2("wcm-spinner")],ke);const Qt=i$5`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,Oe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Yt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Kt(o,r,t),t};let re=class extends s{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary";}render(){const e={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return x`<span><slot class="${o$1(e)}"></slot></span>`}};re.styles=[h.globalCss,Qt],Oe([n$1()],re.prototype,"variant",2),Oe([n$1()],re.prototype,"color",2),re=Oe([e$2("wcm-text")],re);const Gt=i$5`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Xt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,_=(e,o,r,a)=>{for(var t=a>1?void 0:a?Jt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Xt(o,r,t),t};let L=class extends s{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1;}sublabelTemplate(){return this.recent?x`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?x`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){R$6.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick();}render(){var e;return x`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${l(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${(e=this.label)!=null?e:c.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};L.styles=[h.globalCss,Gt],_([n$1()],L.prototype,"onClick",2),_([n$1()],L.prototype,"name",2),_([n$1()],L.prototype,"walletId",2),_([n$1()],L.prototype,"label",2),_([n$1()],L.prototype,"imageId",2),_([n$1({type:Boolean})],L.prototype,"installed",2),_([n$1({type:Boolean})],L.prototype,"recent",2),L=_([e$2("wcm-wallet-button")],L);const eo=i$5`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var to=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,se=(e,o,r,a)=>{for(var t=a>1?void 0:a?oo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&to(o,r,t),t};let Q=class extends s{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0;}render(){var e;const o=(e=this.imageUrl)!=null&&e.length?this.imageUrl:c.getWalletIcon({id:this.walletId,image_id:this.imageId});return x`${o.length?x`<div><img crossorigin="anonymous" src="${o}" alt="${this.id}"></div>`:v.WALLET_PLACEHOLDER}`}};Q.styles=[h.globalCss,eo],se([n$1()],Q.prototype,"walletId",2),se([n$1()],Q.prototype,"imageId",2),se([n$1()],Q.prototype,"imageUrl",2),Q=se([e$2("wcm-wallet-image")],Q);var ro=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,qe=(e,o,r,a)=>{for(var t=a>1?void 0:a?ao(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&ro(o,r,t),t};let We=class extends s{constructor(){super(),this.preload=!0,this.preloadData();}async loadImages(e){try{e!=null&&e.length&&await Promise.all(e.map(async o=>c.preloadImage(o)));}catch{console.info("Unsuccessful attempt at preloading some images",e);}}async preloadListings(){if(y$7.state.enableExplorer){await te$5.getRecomendedWallets(),p$a.setIsDataLoaded(!0);const{recomendedWallets:e}=te$5.state,o=e.map(r=>c.getWalletIcon(r));await this.loadImages(o);}else p$a.setIsDataLoaded(!0);}async preloadCustomImages(){const e=c.getCustomImageUrls();await this.loadImages(e);}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]));}catch(e){console.error(e),oe$5.openToast("Failed preloading","error");}}};qe([t$1()],We.prototype,"preload",2),We=qe([e$2("wcm-explorer-context")],We);var no=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Qe=class extends s{constructor(){super(),this.unsubscribeTheme=void 0,h.setTheme(),this.unsubscribeTheme=ne$3.subscribe(h.setTheme);}disconnectedCallback(){var e;(e=this.unsubscribeTheme)==null||e.call(this);}};Qe=no([e$2("wcm-theme-context")],Qe);const co=i$5`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ho=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ie=class extends s{onGoToQrcode(){T$4.push("Qrcode");}render(){const{recomendedWallets:e}=te$5.state,o=[...e,...e],r=a$6.RECOMMENDED_WALLET_AMOUNT*2;return x`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${v.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${v.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map((a,t)=>{const l=o[t%o.length];return l?x`<wcm-wallet-image walletId="${l.id}" imageId="${l.image_id}"></wcm-wallet-image>`:v.WALLET_PLACEHOLDER})}</div><wcm-button-big @click="${c.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};Ie.styles=[h.globalCss,co],Ie=ho([e$2("wcm-android-wallet-selection")],Ie);const wo=i$5`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var po=Object.defineProperty,go=Object.getOwnPropertyDescriptor,K=(e,o,r,a)=>{for(var t=a>1?void 0:a?go(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&po(o,r,t),t};let D=class extends s{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label="";}svgLoaderTemplate(){var e,o;const r=(o=(e=ne$3.state.themeVariables)==null?void 0:e["--wcm-wallet-icon-large-border-radius"])!=null?o:h.getPreset("--wcm-wallet-icon-large-border-radius");let a=0;r.includes("%")?a=88/100*parseInt(r,10):a=parseInt(r,10),a*=1.17;const t=317-a*1.57,l=425-a*1.8;return x`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${a}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${t}" stroke-dashoffset="${l}"></use></svg>`}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return x`<div class="${o$1(e)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};D.styles=[h.globalCss,wo],K([n$1()],D.prototype,"walletId",2),K([n$1()],D.prototype,"imageId",2),K([n$1({type:Boolean})],D.prototype,"isError",2),K([n$1({type:Boolean})],D.prototype,"isStale",2),K([n$1()],D.prototype,"label",2),D=K([e$2("wcm-connector-waiting")],D);const G={manualWallets(){var e,o;const{mobileWallets:r,desktopWallets:a}=y$7.state,t=(e=G.recentWallet())==null?void 0:e.id,l=a$6.isMobile()?r:a,i=l?.filter(s=>t!==s.id);return (o=a$6.isMobile()?i?.map(({id:s,name:$,links:f})=>({id:s,name:$,mobile:f,links:f})):i?.map(({id:s,name:$,links:f})=>({id:s,name:$,desktop:f,links:f})))!=null?o:[]},recentWallet(){return c.getRecentWallet()},recomendedWallets(e=!1){var o;const r=e||(o=G.recentWallet())==null?void 0:o.id,{recomendedWallets:a}=te$5.state;return a.filter(t=>r!==t.id)}},Z={onConnecting(e){c.goToConnectingView(e);},manualWalletsTemplate(){return G.manualWallets().map(e=>x`<wcm-wallet-button walletId="${e.id}" name="${e.name}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`)},recomendedWalletsTemplate(e=!1){return G.recomendedWallets(e).map(o=>x`<wcm-wallet-button name="${o.name}" walletId="${o.id}" imageId="${o.image_id}" .onClick="${()=>this.onConnecting(o)}"></wcm-wallet-button>`)},recentWalletTemplate(){const e=G.recentWallet();if(e)return x`<wcm-wallet-button name="${e.name}" walletId="${e.id}" imageId="${l(e.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`}},vo=i$5`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var fo=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ee=class extends s{render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=y$7.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>4||r;let s=[];i?s=l.slice(0,3):s=l;const $=Boolean(s.length);return x`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${v.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${v.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${$?x`<wcm-modal-footer><div class="wcm-desktop-title">${v.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${s} ${i?x`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};Ee.styles=[h.globalCss,vo],Ee=fo([e$2("wcm-desktop-wallet-selection")],Ee);const xo=i$5`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Co=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Me=class extends s{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:o}=y$7.state;return e??o?x`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${e?x`<a href="${e}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${e&&o?"and":null} ${o?x`<a href="${o}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};Me.styles=[h.globalCss,xo],Me=Co([e$2("wcm-legal-notice")],Me);const ko=i$5`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Io=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Le=class extends s{onQrcode(){T$4.push("Qrcode");}render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=y$7.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>8||r;let s=[];i?s=l.slice(0,7):s=l;const $=Boolean(s.length);return x`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${v.QRCODE_ICON}"></wcm-modal-header>${$?x`<wcm-modal-content><div>${s} ${i?x`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};Le.styles=[h.globalCss,ko],Le=Io([e$2("wcm-mobile-wallet-selection")],Le);const Eo=i$5`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Mo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Re=(e,o,r,a)=>{for(var t=a>1?void 0:a?Lo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Mo(o,r,t),t};let ae=class extends s{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=se$3.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent();});}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this);}get overlayEl(){return c.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return c.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const o=document.getElementById("wcm-styles");o?.remove();}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>');}onCloseModal(e){e.target===e.currentTarget&&se$3.close();}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=c.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},o=.1,r=.2;await Promise.all([animate(this.overlayEl,{opacity:[0,1]},{delay:o,duration:r}).finished,animate(this.containerEl,e,{delay:o,duration:r}).finished]),this.active=!0;},0);}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=c.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},o=.2;await Promise.all([animate(this.overlayEl,{opacity:[1,0]},{duration:o}).finished,animate(this.containerEl,e,{duration:o}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1;}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var o;e.key==="Escape"?se$3.close():e.key==="Tab"&&((o=e.target)!=null&&o.tagName.includes("wcm-")||this.containerEl.focus());},this.abortController),this.containerEl.focus();}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0;}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${o$1(e)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?x`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};ae.styles=[h.globalCss,Eo],Re([t$1()],ae.prototype,"open",2),Re([t$1()],ae.prototype,"active",2),ae=Re([e$2("wcm-modal")],ae);const Ro=i$5`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var Ao=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,le=(e,o,r,a)=>{for(var t=a>1?void 0:a?Po(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ao(o,r,t),t};let B=class extends s{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1;}onMobile(){a$6.isMobile()?T$4.replace("MobileConnecting"):T$4.replace("MobileQrcodeConnecting");}onDesktop(){T$4.replace("DesktopConnecting");}onWeb(){T$4.replace("WebConnecting");}render(){return x`<div>${this.isRetry?x`<slot></slot>`:null} ${this.isMobile?x`<wcm-button .onClick="${this.onMobile}" .iconLeft="${v.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?x`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${v.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?x`<wcm-button .onClick="${this.onWeb}" .iconLeft="${v.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};B.styles=[h.globalCss,Ro],le([n$1({type:Boolean})],B.prototype,"isMobile",2),le([n$1({type:Boolean})],B.prototype,"isDesktop",2),le([n$1({type:Boolean})],B.prototype,"isWeb",2),le([n$1({type:Boolean})],B.prototype,"isRetry",2),B=le([e$2("wcm-platform-selection")],B);const To=i$5`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Do=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Ae=class extends s{onClick(){T$4.push("WalletExplorer");}render(){const{recomendedWallets:e}=te$5.state,o=G.manualWallets(),r=[...e,...o].reverse().slice(0,4);return x`<button @click="${this.onClick}"><div class="wcm-icons">${r.map(a=>{const t=c.getWalletIcon(a);if(t)return x`<img crossorigin="anonymous" src="${t}">`;const l=c.getWalletIcon({id:a.id});return l?x`<img crossorigin="anonymous" src="${l}">`:v.WALLET_PLACEHOLDER})} ${[...Array(4-r.length)].map(()=>v.WALLET_PLACEHOLDER)}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};Ae.styles=[h.globalCss,To],Ae=Do([e$2("wcm-view-all-wallets-button")],Ae);const No=i$5`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var Zo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,de=(e,o,r,a)=>{for(var t=a>1?void 0:a?So(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Zo(o,r,t),t};let Y=class extends s{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:e}=p$a.state;this.uri=e;},0);}get overlayEl(){return c.getShadowRootElement(this,".wcm-qr-container")}render(){return x`<div class="wcm-qr-container">${this.uri?x`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-qrcode>`:x`<wcm-spinner></wcm-spinner>`}</div>`}};Y.styles=[h.globalCss,No],de([n$1()],Y.prototype,"walletId",2),de([n$1()],Y.prototype,"imageId",2),de([t$1()],Y.prototype,"uri",2),Y=de([e$2("wcm-walletconnect-qr")],Y);var Ho=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Pe=class extends s{viewTemplate(){return a$6.isAndroid()?x`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:a$6.isMobile()?x`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:x`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return x`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};Pe.styles=[h.globalCss],Pe=Ho([e$2("wcm-connect-wallet-view")],Pe);const zo=i$5`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Vo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Ke=(e,o,r,a)=>{for(var t=a>1?void 0:a?Fo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Vo(o,r,t),t};let me=class extends s{constructor(){super(),this.isError=!1,this.openDesktopApp();}onFormatAndRedirect(e){const{desktop:o,name:r}=a$6.getWalletRouterData(),a=o?.native;if(a){const t=a$6.formatNativeUrl(a,e,r);a$6.openHref(t,"_self");}}openDesktopApp(){const{walletConnectUri:e}=p$a.state,o=a$6.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e);}render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isMobile:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${e} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isWeb="${t}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};me.styles=[h.globalCss,zo],Ke([t$1()],me.prototype,"isError",2),me=Ke([e$2("wcm-desktop-connecting-view")],me);const qo=i$5`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var Yo=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let Te=class extends s{onInstall(e){e&&a$6.openHref(e,"_blank");}render(){const{name:e,id:o,image_id:r,homepage:a}=a$6.getWalletRouterData();return x`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(a)}" .iconLeft="${v.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};Te.styles=[h.globalCss,qo],Te=Yo([e$2("wcm-install-wallet-view")],Te);const Go=i$5`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Ye=(e,o,r,a)=>{for(var t=a>1?void 0:a?Jo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Xo(o,r,t),t};let he=class extends s{constructor(){super(),this.isError=!1,this.openMobileApp();}onFormatAndRedirect(e,o=!1){const{mobile:r,name:a}=a$6.getWalletRouterData(),t=r?.native,l=r?.universal;if(t&&!o){const i=a$6.formatNativeUrl(t,e,a);a$6.openHref(i,"_self");}else if(l){const i=a$6.formatUniversalUrl(l,e,a);a$6.openHref(i,"_self");}}openMobileApp(e=!1){const{walletConnectUri:o}=p$a.state,r=a$6.getWalletRouterData();c.setRecentWallet(r),o&&this.onFormatAndRedirect(o,e);}onGoToAppStore(e){e&&a$6.openHref(e,"_blank");}render(){const{name:e,id:o,image_id:r,app:a,mobile:t}=a$6.getWalletRouterData(),{isWeb:l$1}=c.getCachedRouterWalletPlatforms(),i=a?.ios,s=t?.universal;return x`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${l$1}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${s?x`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${o}" imageId="${l(r)}"></wcm-wallet-image><wcm-text>${`Get ${e}`}</wcm-text></div><wcm-button .iconRight="${v.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(i)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};he.styles=[h.globalCss,Go],Ye([t$1()],he.prototype,"isError",2),he=Ye([e$2("wcm-mobile-connecting-view")],he);const er=i$5`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rr=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let je=class extends s{render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isDesktop:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${o}" imageId="${l(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${e} app`}</wcm-text><wcm-platform-selection .isDesktop="${a}" .isWeb="${t}"></wcm-platform-selection></wcm-info-footer>`}};je.styles=[h.globalCss,er],je=rr([e$2("wcm-mobile-qr-connecting-view")],je);var ir=(e,o,r,a)=>{for(var t=o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(i(t))||t);return t};let _e=class extends s{render(){return x`<wcm-modal-header title="Scan the code" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};_e.styles=[h.globalCss],_e=ir([e$2("wcm-qrcode-view")],_e);const nr=i$5`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var cr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ie=(e,o,r,a)=>{for(var t=a>1?void 0:a?sr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&cr(o,r,t),t};const De=40;let U=class extends s{constructor(){super(...arguments),this.loading=!te$5.state.wallets.listings.length,this.firstFetch=!te$5.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=c.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,te$5.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),te$5.resetSearch());});}firstUpdated(){this.createPaginationObserver();}disconnectedCallback(){var e;(e=this.intersectionObserver)==null||e.disconnect();}get placeholderEl(){return c.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets();}),this.intersectionObserver.observe(this.placeholderEl);}isLastPage(){const{wallets:e,search:o}=te$5.state,{listings:r,total:a}=this.search?o:e;return a<=De||r.length>=a}async fetchWallets(){var e;const{wallets:o,search:r}=te$5.state,{listings:a,total:t,page:l}=this.search?r:o;if(!this.endReached&&(this.firstFetch||t>De&&a.length<t))try{this.loading=!0;const i=(e=p$a.state.chains)==null?void 0:e.join(","),{listings:s}=await te$5.getWallets({page:this.firstFetch?1:l+1,entries:De,search:this.search,version:2,chains:i}),$=s.map(f=>c.getWalletIcon(f));await Promise.all([...$.map(async f=>c.preloadImage(f)),a$6.wait(300)]),this.endReached=this.isLastPage();}catch(i){console.error(i),oe$5.openToast(c.getErrorMessage(i),"error");}finally{this.loading=!1,this.firstFetch=!1;}}onConnect(e){a$6.isAndroid()?c.handleMobileLinking(e):c.goToConnectingView(e);}onSearchChange(e){const{value:o}=e.target;this.searchDebounce(o);}render(){const{wallets:e,search:o}=te$5.state,{listings:r}=this.search?o:e,a=this.loading&&!r.length,t=this.search.length>=3;let l=Z.manualWalletsTemplate(),i=Z.recomendedWalletsTemplate(!0);t&&(l=l.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)),i=i.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)));const s=!this.loading&&!r.length&&!i.length,$={"wcm-loading":a,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${o$1($)}"><div class="wcm-grid">${a?null:l} ${a?null:i} ${a?null:r.map(f=>x`${f?x`<wcm-wallet-button imageId="${f.image_id}" name="${f.name}" walletId="${f.id}" .onClick="${()=>this.onConnect(f)}"></wcm-wallet-button>`:null}`)}</div><div class="wcm-placeholder-block">${s?x`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!s&&this.loading?x`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};U.styles=[h.globalCss,nr],ie([t$1()],U.prototype,"loading",2),ie([t$1()],U.prototype,"firstFetch",2),ie([t$1()],U.prototype,"search",2),ie([t$1()],U.prototype,"endReached",2),U=ie([e$2("wcm-wallet-explorer-view")],U);const dr=i$5`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var mr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,Ge=(e,o,r,a)=>{for(var t=a>1?void 0:a?hr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&mr(o,r,t),t};let we=class extends s{constructor(){super(),this.isError=!1,this.openWebWallet();}onFormatAndRedirect(e){const{desktop:o,name:r}=a$6.getWalletRouterData(),a=o?.universal;if(a){const t=a$6.formatUniversalUrl(a,e,r);a$6.openHref(t,"_blank");}}openWebWallet(){const{walletConnectUri:e}=p$a.state,o=a$6.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e);}render(){const{name:e,id:o,image_id:r}=a$6.getWalletRouterData(),{isMobile:a,isDesktop:t}=c.getCachedRouterWalletPlatforms(),l$1=a$6.isMobile();return x`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${v.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${l(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isDesktop="${l$1?!1:t}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${v.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};we.styles=[h.globalCss,dr],Ge([t$1()],we.prototype,"isError",2),we=Ge([e$2("wcm-web-connecting-view")],we);
|
|
232033
232183
|
|
|
232034
232184
|
var index$7 = /*#__PURE__*/Object.freeze({
|
|
232035
232185
|
__proto__: null,
|
|
@@ -238467,6 +238617,70 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238467
238617
|
remoteMiddlewares: remoteMiddlewares
|
|
238468
238618
|
});
|
|
238469
238619
|
|
|
238620
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
238621
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
238622
|
+
// generators (like Math.random()).
|
|
238623
|
+
var getRandomValues;
|
|
238624
|
+
var rnds8 = new Uint8Array(16);
|
|
238625
|
+
function rng() {
|
|
238626
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
238627
|
+
if (!getRandomValues) {
|
|
238628
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
238629
|
+
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
238630
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
238631
|
+
|
|
238632
|
+
if (!getRandomValues) {
|
|
238633
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
238634
|
+
}
|
|
238635
|
+
}
|
|
238636
|
+
|
|
238637
|
+
return getRandomValues(rnds8);
|
|
238638
|
+
}
|
|
238639
|
+
|
|
238640
|
+
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
238641
|
+
|
|
238642
|
+
function validate(uuid) {
|
|
238643
|
+
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
238644
|
+
}
|
|
238645
|
+
|
|
238646
|
+
/**
|
|
238647
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
238648
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
238649
|
+
*/
|
|
238650
|
+
|
|
238651
|
+
var byteToHex = [];
|
|
238652
|
+
|
|
238653
|
+
for (var i$1 = 0; i$1 < 256; ++i$1) {
|
|
238654
|
+
byteToHex.push((i$1 + 0x100).toString(16).substr(1));
|
|
238655
|
+
}
|
|
238656
|
+
|
|
238657
|
+
function stringify$1(arr) {
|
|
238658
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
238659
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
238660
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
238661
|
+
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
238662
|
+
// of the following:
|
|
238663
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
238664
|
+
// "undefined" in the uuid)
|
|
238665
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
238666
|
+
|
|
238667
|
+
if (!validate(uuid)) {
|
|
238668
|
+
throw TypeError('Stringified UUID is invalid');
|
|
238669
|
+
}
|
|
238670
|
+
|
|
238671
|
+
return uuid;
|
|
238672
|
+
}
|
|
238673
|
+
|
|
238674
|
+
function v4(options, buf, offset) {
|
|
238675
|
+
options = options || {};
|
|
238676
|
+
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
238677
|
+
|
|
238678
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
238679
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
238680
|
+
|
|
238681
|
+
return stringify$1(rnds);
|
|
238682
|
+
}
|
|
238683
|
+
|
|
238470
238684
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
238471
238685
|
function sendAddTokensCloseEvent(eventTarget) {
|
|
238472
238686
|
const closeWidgetEvent = new CustomEvent(IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
|
|
@@ -238528,6 +238742,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238528
238742
|
};
|
|
238529
238743
|
|
|
238530
238744
|
const initialAddTokensState = {
|
|
238745
|
+
id: '',
|
|
238531
238746
|
allowedTokens: null,
|
|
238532
238747
|
squid: null,
|
|
238533
238748
|
chains: null,
|
|
@@ -238541,6 +238756,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238541
238756
|
};
|
|
238542
238757
|
var AddTokensActions;
|
|
238543
238758
|
(function (AddTokensActions) {
|
|
238759
|
+
AddTokensActions["SET_ID"] = "SET_ID";
|
|
238544
238760
|
AddTokensActions["SET_ALLOWED_TOKENS"] = "SET_ALLOWED_TOKENS";
|
|
238545
238761
|
AddTokensActions["SET_SQUID"] = "SET_SQUID";
|
|
238546
238762
|
AddTokensActions["SET_CHAINS"] = "SET_CHAINS";
|
|
@@ -238560,6 +238776,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238560
238776
|
AddTokensContext.displayName = 'AddTokensContext';
|
|
238561
238777
|
const addTokensReducer = (state, action) => {
|
|
238562
238778
|
switch (action.payload.type) {
|
|
238779
|
+
case AddTokensActions.SET_ID:
|
|
238780
|
+
return {
|
|
238781
|
+
...state,
|
|
238782
|
+
id: action.payload.id,
|
|
238783
|
+
};
|
|
238563
238784
|
case AddTokensActions.SET_ALLOWED_TOKENS:
|
|
238564
238785
|
return {
|
|
238565
238786
|
...state,
|
|
@@ -239898,7 +240119,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
239898
240119
|
const BASE_SLIPPAGE = 0.02;
|
|
239899
240120
|
const useRoutes = () => {
|
|
239900
240121
|
const latestRequestIdRef = reactExports.useRef(0);
|
|
239901
|
-
const { addTokensDispatch } = reactExports.useContext(AddTokensContext);
|
|
240122
|
+
const { addTokensState: { id }, addTokensDispatch } = reactExports.useContext(AddTokensContext);
|
|
239902
240123
|
const { providersState: { toProvider, }, } = useProvidersContext();
|
|
239903
240124
|
const { track } = useAnalytics();
|
|
239904
240125
|
const setRoutes = (routes) => {
|
|
@@ -240006,6 +240227,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240006
240227
|
screen: 'Routes',
|
|
240007
240228
|
action: 'Failed',
|
|
240008
240229
|
extras: {
|
|
240230
|
+
contextId: id,
|
|
240009
240231
|
fromToken: fromToken.symbol,
|
|
240010
240232
|
toToken: toToken.symbol,
|
|
240011
240233
|
fromChain: fromToken.chainId,
|
|
@@ -240196,7 +240418,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240196
240418
|
track({
|
|
240197
240419
|
userJourney: UserJourney.CONNECT,
|
|
240198
240420
|
screen: 'ConnectWallet',
|
|
240199
|
-
control: info.name,
|
|
240421
|
+
control: removeSpace(info.name),
|
|
240200
240422
|
controlType: 'MenuItem',
|
|
240201
240423
|
extras: {
|
|
240202
240424
|
providerType,
|
|
@@ -243353,7 +243575,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243353
243575
|
screen: 'Error',
|
|
243354
243576
|
extras: {
|
|
243355
243577
|
errorType,
|
|
243356
|
-
data,
|
|
243578
|
+
...data,
|
|
243357
243579
|
},
|
|
243358
243580
|
});
|
|
243359
243581
|
addHandover({
|
|
@@ -243403,11 +243625,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243403
243625
|
}
|
|
243404
243626
|
`;
|
|
243405
243627
|
|
|
243406
|
-
function TokenDrawerMenu({ checkout, config, toTokenAddress, }) {
|
|
243407
|
-
const { addTokensState: { tokens, selectedToken }, addTokensDispatch, } = reactExports.useContext(AddTokensContext);
|
|
243628
|
+
function TokenDrawerMenu({ checkout, config, toTokenAddress, addTokensState, addTokensDispatch, }) {
|
|
243408
243629
|
const { showErrorHandover } = useError(config.environment);
|
|
243409
243630
|
const [visible, setVisible] = reactExports.useState(false);
|
|
243410
|
-
const [allowedTokens, setAllowedTokens] = reactExports.useState([]);
|
|
243411
243631
|
const [searchValue, setSearchValue] = reactExports.useState('');
|
|
243412
243632
|
const defaultTokenImage = getDefaultTokenImage(checkout?.config.environment, config.theme);
|
|
243413
243633
|
const { track } = useAnalytics();
|
|
@@ -243427,19 +243647,27 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243427
243647
|
control: 'TokensMenu',
|
|
243428
243648
|
controlType: 'MenuItem',
|
|
243429
243649
|
extras: {
|
|
243650
|
+
contextId: addTokensState.id,
|
|
243430
243651
|
tokenAddress: token?.address,
|
|
243431
243652
|
},
|
|
243432
243653
|
});
|
|
243433
243654
|
setSelectedToken(token);
|
|
243434
243655
|
setVisible(false);
|
|
243435
243656
|
setSearchValue('');
|
|
243436
|
-
}, []);
|
|
243437
|
-
const isSelected = reactExports.useCallback((token) => token.address === selectedToken?.address, [selectedToken]);
|
|
243438
|
-
const tokenChoiceOptions = reactExports.useMemo(() => allowedTokens
|
|
243657
|
+
}, [addTokensState.id]);
|
|
243658
|
+
const isSelected = reactExports.useCallback((token) => token.address === addTokensState.selectedToken?.address, [addTokensState.selectedToken]);
|
|
243659
|
+
const tokenChoiceOptions = reactExports.useMemo(() => addTokensState.allowedTokens?.filter((token) => {
|
|
243439
243660
|
if (!searchValue)
|
|
243440
243661
|
return true;
|
|
243441
243662
|
return token.symbol.toLowerCase().startsWith(searchValue.toLowerCase());
|
|
243442
|
-
}), [
|
|
243663
|
+
}), [
|
|
243664
|
+
addTokensState.allowedTokens,
|
|
243665
|
+
addTokensState.tokens,
|
|
243666
|
+
handleTokenChange,
|
|
243667
|
+
isSelected,
|
|
243668
|
+
defaultTokenImage,
|
|
243669
|
+
searchValue,
|
|
243670
|
+
]);
|
|
243443
243671
|
const handleTokenIconClick = reactExports.useCallback(() => {
|
|
243444
243672
|
setVisible(!visible);
|
|
243445
243673
|
}, [visible]);
|
|
@@ -243448,7 +243676,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243448
243676
|
setSearchValue('');
|
|
243449
243677
|
}, [setVisible, setSearchValue]);
|
|
243450
243678
|
reactExports.useEffect(() => {
|
|
243451
|
-
if (!checkout)
|
|
243679
|
+
if (!checkout || addTokensState.tokens != null)
|
|
243452
243680
|
return;
|
|
243453
243681
|
(async () => {
|
|
243454
243682
|
try {
|
|
@@ -243483,7 +243711,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243483
243711
|
// If both tokens are in the priority list, sort by index
|
|
243484
243712
|
return aIndex < bIndex ? -1 : 1;
|
|
243485
243713
|
});
|
|
243486
|
-
setAllowedTokens(updatedTokens);
|
|
243487
243714
|
if (toTokenAddress) {
|
|
243488
243715
|
const preselectedToken = updatedTokens.find((token) => token.address?.toLowerCase() === toTokenAddress.toLowerCase());
|
|
243489
243716
|
if (preselectedToken) {
|
|
@@ -243493,26 +243720,30 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243493
243720
|
addTokensDispatch({
|
|
243494
243721
|
payload: {
|
|
243495
243722
|
type: AddTokensActions.SET_ALLOWED_TOKENS,
|
|
243496
|
-
allowedTokens:
|
|
243723
|
+
allowedTokens: updatedTokens,
|
|
243497
243724
|
},
|
|
243498
243725
|
});
|
|
243499
243726
|
}
|
|
243500
243727
|
}
|
|
243501
243728
|
catch (error) {
|
|
243502
|
-
showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { error });
|
|
243729
|
+
showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { contextId: addTokensState.id, error });
|
|
243503
243730
|
}
|
|
243504
243731
|
})();
|
|
243505
|
-
}, [checkout, toTokenAddress]);
|
|
243506
|
-
return (jsxs(Drawer, { visible: visible, onCloseDrawer: handleDrawerClose, size: "full", headerBarTitle: t('views.ADD_TOKENS.tokenSelection.drawerHeading'), drawerCloseIcon: "ChevronExpand", showHeaderBar: true, outsideClicksClose: true, escapeKeyClose: true, children: [jsx$1(Drawer.Target, { children: selectedToken ? (jsx$1(SmartClone, { onClick: handleTokenIconClick, children: jsx$1(FramedImage, { size: "xLarge", use: (jsx$1(TokenImage, { src: selectedToken?.icon, name: selectedToken?.name, defaultImage: defaultTokenImage })), padded: true, emphasized: true, circularFrame: true, sx: {
|
|
243732
|
+
}, [addTokensState.tokens, checkout, toTokenAddress]);
|
|
243733
|
+
return (jsxs(Drawer, { visible: visible, onCloseDrawer: handleDrawerClose, size: "full", headerBarTitle: t('views.ADD_TOKENS.tokenSelection.drawerHeading'), drawerCloseIcon: "ChevronExpand", showHeaderBar: true, outsideClicksClose: true, escapeKeyClose: true, children: [jsx$1(Drawer.Target, { children: addTokensState.selectedToken ? (jsx$1(SmartClone, { onClick: handleTokenIconClick, children: jsx$1(FramedImage, { size: "xLarge", use: (jsx$1(TokenImage, { src: addTokensState.selectedToken?.icon, name: addTokensState.selectedToken?.name, defaultImage: defaultTokenImage })), padded: true, emphasized: true, circularFrame: true, sx: {
|
|
243507
243734
|
cursor: 'pointer',
|
|
243508
243735
|
mb: 'base.spacing.x1',
|
|
243509
243736
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
243510
243737
|
'&:hover': {
|
|
243511
243738
|
boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
|
|
243512
243739
|
},
|
|
243513
|
-
} }) })) : (jsx$1(Box, { sx: {
|
|
243740
|
+
} }) })) : (jsx$1(Box, { sx: {
|
|
243741
|
+
animation: `${PULSE_SHADOW} 2s infinite ease-in-out`,
|
|
243742
|
+
borderRadius: '50%',
|
|
243743
|
+
}, children: jsx$1(ButtCon, { size: "large", variant: "tertiary", icon: "Add", onClick: handleTokenIconClick }) })) }), jsxs(Drawer.Content, { sx: { paddingX: 'base.spacing.x2' }, children: [jsx$1(TextInput, { sx: { marginBottom: 'base.spacing.x2' }, placeholder: t('views.ADD_TOKENS.tokenSelection.searchPlaceholder'), sizeVariant: "medium", onChange: (event) => {
|
|
243514
243744
|
setSearchValue(event.target.value);
|
|
243515
|
-
}, children: jsx$1(TextInput.Icon, { icon: "Search" }) }), jsx$1(VerticalMenu, { sx: { maxHeight: '100%' }, children: tokenChoiceOptions
|
|
243745
|
+
}, children: jsx$1(TextInput.Icon, { icon: "Search" }) }), jsx$1(VerticalMenu, { sx: { maxHeight: '100%' }, children: tokenChoiceOptions
|
|
243746
|
+
&& tokenChoiceOptions.length > 0
|
|
243516
243747
|
&& tokenChoiceOptions.map((token) => (jsxs(MenuItem, { size: "medium", onClick: () => handleTokenChange(token), selected: isSelected(token), emphasized: true, children: [jsx$1(MenuItem.FramedImage, { circularFrame: true, use: (jsx$1(TokenImage, { src: token.icon, name: token.name, defaultImage: defaultTokenImage })), emphasized: false }), jsx$1(MenuItem.Label, { children: token.symbol }), token.symbol !== token.name && (jsx$1(MenuItem.Caption, { children: token.name }))] }, token.name))) })] })] }));
|
|
243517
243748
|
}
|
|
243518
243749
|
|
|
@@ -243525,7 +243756,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243525
243756
|
const inputRef = reactExports.useRef(null);
|
|
243526
243757
|
const { fetchRoutesWithRateLimit, resetRoutes } = useRoutes();
|
|
243527
243758
|
const { showErrorHandover } = useError(config.environment);
|
|
243528
|
-
const { addTokensState
|
|
243759
|
+
const { addTokensState, addTokensDispatch, } = reactExports.useContext(AddTokensContext);
|
|
243760
|
+
const { id, squid, chains, balances, tokens, selectedAmount, routes, selectedRouteData, selectedToken, isSwapAvailable, } = addTokensState;
|
|
243529
243761
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
243530
243762
|
const { track, page } = useAnalytics();
|
|
243531
243763
|
const { t } = useTranslation();
|
|
@@ -243555,6 +243787,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243555
243787
|
control: 'RoutesMenu',
|
|
243556
243788
|
controlType: 'MenuItem',
|
|
243557
243789
|
extras: {
|
|
243790
|
+
contextId: id,
|
|
243558
243791
|
toTokenAddress: route.amountData.toToken.address,
|
|
243559
243792
|
toTokenChainId: route.amountData.toToken.chainId,
|
|
243560
243793
|
fromTokenAddress: route.amountData.fromToken.address,
|
|
@@ -243584,6 +243817,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243584
243817
|
control: 'AmountInput',
|
|
243585
243818
|
controlType: 'TextInput',
|
|
243586
243819
|
extras: {
|
|
243820
|
+
contextId: id,
|
|
243587
243821
|
toAmount: value,
|
|
243588
243822
|
},
|
|
243589
243823
|
});
|
|
@@ -243610,16 +243844,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243610
243844
|
return detail;
|
|
243611
243845
|
}), [providers]);
|
|
243612
243846
|
reactExports.useEffect(() => {
|
|
243847
|
+
if (!id) {
|
|
243848
|
+
return;
|
|
243849
|
+
}
|
|
243613
243850
|
page({
|
|
243614
243851
|
userJourney: UserJourney.ADD_TOKENS,
|
|
243615
243852
|
screen: 'InputScreen',
|
|
243616
243853
|
extras: {
|
|
243854
|
+
contextId: id,
|
|
243617
243855
|
toAmount,
|
|
243618
243856
|
toTokenAddress,
|
|
243619
243857
|
geoBlocked: !isSwapAvailable,
|
|
243620
243858
|
},
|
|
243621
243859
|
});
|
|
243622
|
-
}, [isSwapAvailable]);
|
|
243860
|
+
}, [id, isSwapAvailable]);
|
|
243623
243861
|
reactExports.useEffect(() => {
|
|
243624
243862
|
if (!toAmount)
|
|
243625
243863
|
return;
|
|
@@ -243671,11 +243909,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243671
243909
|
}
|
|
243672
243910
|
}
|
|
243673
243911
|
catch (error) {
|
|
243674
|
-
showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { error });
|
|
243912
|
+
showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { contextId: id, error });
|
|
243675
243913
|
}
|
|
243676
243914
|
};
|
|
243677
243915
|
fetchOnRampTokens();
|
|
243678
|
-
}, [checkout]);
|
|
243916
|
+
}, [checkout, id]);
|
|
243679
243917
|
const sendRequestOnRampEvent = async () => {
|
|
243680
243918
|
if (toAddress
|
|
243681
243919
|
&& (await checkSanctionedAddresses([toAddress], checkout.config))) {
|
|
@@ -243696,6 +243934,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243696
243934
|
control: 'PayWithCardMenu',
|
|
243697
243935
|
controlType: 'MenuItem',
|
|
243698
243936
|
extras: {
|
|
243937
|
+
contextId: id,
|
|
243699
243938
|
tokenAddress: selectedToken?.address ?? '',
|
|
243700
243939
|
amount: selectedAmount ?? '',
|
|
243701
243940
|
},
|
|
@@ -243756,6 +243995,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243756
243995
|
control: 'Review',
|
|
243757
243996
|
controlType: 'Button',
|
|
243758
243997
|
extras: {
|
|
243998
|
+
contextId: id,
|
|
243759
243999
|
toTokenAddress: selectedRouteData.amountData.toToken.address,
|
|
243760
244000
|
toTokenChainId: selectedRouteData.amountData.toToken.chainId,
|
|
243761
244001
|
fromTokenAddress: selectedRouteData.amountData.fromToken.address,
|
|
@@ -243808,6 +244048,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243808
244048
|
control: 'WalletsMenu',
|
|
243809
244049
|
controlType: 'MenuItem',
|
|
243810
244050
|
extras: {
|
|
244051
|
+
contextId: id,
|
|
243811
244052
|
providerType,
|
|
243812
244053
|
providerName: providerInfo.name,
|
|
243813
244054
|
providerRdns: providerInfo.rdns,
|
|
@@ -243827,7 +244068,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243827
244068
|
px: 'base.spacing.x2',
|
|
243828
244069
|
w: '100%',
|
|
243829
244070
|
pt: 'base.spacing.x1',
|
|
243830
|
-
}, justifyContent: "center", alignItems: "center", children: [jsx$1(TokenDrawerMenu, { checkout: checkout, config: config, toTokenAddress: toTokenAddress }), showInitialEmptyState ? (jsx$1(Body, { children: t('views.ADD_TOKENS.tokenSelection.buttonText') })) : (jsxs(HeroFormControl, { validationStatus: validateToAmount$1(inputValue).isValid || inputValue === '' ? 'success' : 'error', children: [jsxs(HeroFormControl.Label, { children: [t('views.ADD_TOKENS.tokenSelection.tokenLabel'), ' ', selectedToken.symbol] }), jsx$1(HeroTextInput, { inputRef: inputRef, testId: "add-tokens-amount-input", type: "text", value: inputValue, onChange: (event) => handleOnAmountInputChange(event), placeholder: "0", maxTextSize: "xLarge" }), jsx$1(HeroFormControl.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}
|
|
244071
|
+
}, justifyContent: "center", alignItems: "center", children: [jsx$1(TokenDrawerMenu, { checkout: checkout, config: config, toTokenAddress: toTokenAddress, addTokensState: addTokensState, addTokensDispatch: addTokensDispatch }), showInitialEmptyState ? (jsx$1(Body, { children: t('views.ADD_TOKENS.tokenSelection.buttonText') })) : (jsxs(HeroFormControl, { validationStatus: validateToAmount$1(inputValue).isValid || inputValue === '' ? 'success' : 'error', children: [jsxs(HeroFormControl.Label, { children: [t('views.ADD_TOKENS.tokenSelection.tokenLabel'), ' ', selectedToken.symbol] }), jsx$1(HeroTextInput, { inputRef: inputRef, testId: "add-tokens-amount-input", type: "text", value: inputValue, onChange: (event) => handleOnAmountInputChange(event), placeholder: "0", maxTextSize: "xLarge" }), jsx$1(HeroFormControl.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}
|
|
243831
244072
|
$${getFormattedNumberWithDecimalPlaces(selectedAmountUsd)}` })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
|
|
243832
244073
|
alignSelf: 'stretch',
|
|
243833
244074
|
p: 'base.spacing.x3',
|
|
@@ -410941,9 +411182,29 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
410941
411182
|
|
|
410942
411183
|
const isSquidNativeToken = (token) => token.toLowerCase() === SQUID_NATIVE_TOKEN.toLowerCase();
|
|
410943
411184
|
|
|
410944
|
-
const useExecute = (environment) => {
|
|
411185
|
+
const useExecute = (contextId, environment) => {
|
|
410945
411186
|
const { showErrorHandover } = useError(environment);
|
|
410946
411187
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
411188
|
+
const waitForReceipt = async (provider, txHash, maxAttempts = 60) => {
|
|
411189
|
+
const result = await retry(async () => {
|
|
411190
|
+
const receipt = await provider.getTransactionReceipt(txHash);
|
|
411191
|
+
if (!receipt) {
|
|
411192
|
+
throw new Error('receipt not found');
|
|
411193
|
+
}
|
|
411194
|
+
if (receipt.status === 0) {
|
|
411195
|
+
throw new Error('status failed');
|
|
411196
|
+
}
|
|
411197
|
+
return receipt;
|
|
411198
|
+
}, {
|
|
411199
|
+
retries: maxAttempts,
|
|
411200
|
+
retryIntervalMs: 1000,
|
|
411201
|
+
nonRetryable: (error) => error.message === 'status failed',
|
|
411202
|
+
});
|
|
411203
|
+
if (!result) {
|
|
411204
|
+
throw new Error(`Transaction receipt not found after ${maxAttempts} attempts`);
|
|
411205
|
+
}
|
|
411206
|
+
return result;
|
|
411207
|
+
};
|
|
410947
411208
|
const handleTransactionError = (err) => {
|
|
410948
411209
|
const reason = `${err?.reason || err?.message || ''}`.toLowerCase();
|
|
410949
411210
|
let errorType = AddTokensErrorTypes.WALLET_FAILED;
|
|
@@ -410970,7 +411231,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
410970
411231
|
type: errorType,
|
|
410971
411232
|
data: { error: err },
|
|
410972
411233
|
};
|
|
410973
|
-
showErrorHandover(errorType, { error });
|
|
411234
|
+
showErrorHandover(errorType, { contextId, error });
|
|
410974
411235
|
};
|
|
410975
411236
|
// @TODO: Move to util function
|
|
410976
411237
|
const checkProviderChain = async (provider, chainId) => {
|
|
@@ -411020,7 +411281,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411020
411281
|
return MaxUint256$5; // no approval is needed for native tokens
|
|
411021
411282
|
}
|
|
411022
411283
|
catch (error) {
|
|
411023
|
-
showErrorHandover(AddTokensErrorTypes.DEFAULT, { error });
|
|
411284
|
+
showErrorHandover(AddTokensErrorTypes.DEFAULT, { contextId, error });
|
|
411024
411285
|
return undefined;
|
|
411025
411286
|
}
|
|
411026
411287
|
};
|
|
@@ -411042,7 +411303,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411042
411303
|
throw new Error('transactionRequest target is undefined');
|
|
411043
411304
|
}
|
|
411044
411305
|
const tx = await tokenContract.approve(transactionRequestTarget, fromAmount);
|
|
411045
|
-
return tx.
|
|
411306
|
+
return waitForReceipt(provider, tx.hash);
|
|
411046
411307
|
}
|
|
411047
411308
|
return undefined;
|
|
411048
411309
|
}
|
|
@@ -411060,7 +411321,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411060
411321
|
signer: provider.getSigner(),
|
|
411061
411322
|
route: routeResponse.route,
|
|
411062
411323
|
}));
|
|
411063
|
-
return tx.
|
|
411324
|
+
return waitForReceipt(provider, tx.hash);
|
|
411064
411325
|
}
|
|
411065
411326
|
catch (error) {
|
|
411066
411327
|
handleTransactionError(error);
|
|
@@ -411199,6 +411460,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411199
411460
|
|
|
411200
411461
|
const convertToNetworkChangeableProvider = async (provider) => new Web3Provider(provider.provider, 'any');
|
|
411201
411462
|
|
|
411463
|
+
const withMetricsAsync = async (fn, flowName) => {
|
|
411464
|
+
const flow = trackFlow('checkout', flowName);
|
|
411465
|
+
try {
|
|
411466
|
+
return await fn(flow);
|
|
411467
|
+
}
|
|
411468
|
+
catch (error) {
|
|
411469
|
+
if (error instanceof Error) {
|
|
411470
|
+
trackError('checkout', flowName, error);
|
|
411471
|
+
}
|
|
411472
|
+
flow.addEvent('errored');
|
|
411473
|
+
throw error;
|
|
411474
|
+
}
|
|
411475
|
+
finally {
|
|
411476
|
+
flow.addEvent('End');
|
|
411477
|
+
}
|
|
411478
|
+
};
|
|
411479
|
+
|
|
411202
411480
|
const dividerSx = {
|
|
411203
411481
|
content: "''",
|
|
411204
411482
|
pos: 'absolute',
|
|
@@ -411209,7 +411487,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411209
411487
|
function Review({ data, showBackButton = false, onBackButtonClick, onCloseButtonClick, }) {
|
|
411210
411488
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
411211
411489
|
const { track, page } = useAnalytics();
|
|
411212
|
-
const { addTokensState: { squid, chains, tokens }, } = reactExports.useContext(AddTokensContext);
|
|
411490
|
+
const { addTokensState: { id, squid, chains, tokens, }, } = reactExports.useContext(AddTokensContext);
|
|
411213
411491
|
const { providersState: { checkout, fromProvider, fromAddress, toAddress, }, } = useProvidersContext();
|
|
411214
411492
|
const { eventTargetState: { eventTarget } } = reactExports.useContext(EventTargetContext);
|
|
411215
411493
|
const [route, setRoute] = reactExports.useState();
|
|
@@ -411221,18 +411499,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411221
411499
|
id: HandoverTarget.GLOBAL,
|
|
411222
411500
|
});
|
|
411223
411501
|
const { showErrorHandover } = useError(checkout.config.environment);
|
|
411224
|
-
const { checkProviderChain, getAllowance, approve, execute, } = useExecute(checkout?.config.environment || Environment$1.SANDBOX);
|
|
411502
|
+
const { checkProviderChain, getAllowance, approve, execute, } = useExecute(id, checkout?.config.environment || Environment$1.SANDBOX);
|
|
411225
411503
|
reactExports.useEffect(() => {
|
|
411226
411504
|
page({
|
|
411227
411505
|
userJourney: UserJourney.ADD_TOKENS,
|
|
411228
411506
|
screen: 'Review',
|
|
411229
411507
|
extras: {
|
|
411508
|
+
contextId: id,
|
|
411230
411509
|
toAmount: data.toAmount,
|
|
411231
411510
|
toChainId: data.toChainId,
|
|
411232
411511
|
toTokenAddress: data.toTokenAddress,
|
|
411233
411512
|
},
|
|
411234
411513
|
});
|
|
411235
|
-
}, []);
|
|
411514
|
+
}, [id]);
|
|
411236
411515
|
const getFromAmountAndRoute = async () => {
|
|
411237
411516
|
if (!squid || !tokens)
|
|
411238
411517
|
return;
|
|
@@ -411281,11 +411560,27 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411281
411560
|
return;
|
|
411282
411561
|
}
|
|
411283
411562
|
let currentFromAddress = '';
|
|
411563
|
+
track({
|
|
411564
|
+
userJourney: UserJourney.ADD_TOKENS,
|
|
411565
|
+
screen: 'Review',
|
|
411566
|
+
control: 'Proceed',
|
|
411567
|
+
controlType: 'Button',
|
|
411568
|
+
extras: {
|
|
411569
|
+
contextId: id,
|
|
411570
|
+
toTokenAddress: route.route.params.toToken,
|
|
411571
|
+
toTokenChainId: route.route.params.toChain,
|
|
411572
|
+
fromTokenAddress: route.route.params.fromToken,
|
|
411573
|
+
fromTokenChainId: route.route.params.fromChain,
|
|
411574
|
+
fromAmount: route.route.params.fromAmount,
|
|
411575
|
+
fromAddress: route.route.params.fromAddress,
|
|
411576
|
+
toAddress: route.route.params.toAddress,
|
|
411577
|
+
},
|
|
411578
|
+
});
|
|
411284
411579
|
try {
|
|
411285
411580
|
currentFromAddress = await fromProvider.getSigner().getAddress();
|
|
411286
411581
|
}
|
|
411287
411582
|
catch (error) {
|
|
411288
|
-
showErrorHandover(AddTokensErrorTypes.PROVIDER_ERROR, { error });
|
|
411583
|
+
showErrorHandover(AddTokensErrorTypes.PROVIDER_ERROR, { contextId: id, error });
|
|
411289
411584
|
return;
|
|
411290
411585
|
}
|
|
411291
411586
|
if (currentFromAddress !== fromAddress) {
|
|
@@ -411304,20 +411599,21 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411304
411599
|
const { fromAmount } = route.route.params;
|
|
411305
411600
|
if (allowance?.lt(fromAmount)) {
|
|
411306
411601
|
showHandover(APPROVE_TXN_ANIMATION, RiveStateMachineInput.WAITING, t$b('views.ADD_TOKENS.handover.requestingApproval.heading'), t$b('views.ADD_TOKENS.handover.requestingApproval.subHeading'));
|
|
411307
|
-
const approveTxnReceipt = await approve(changeableProvider, route);
|
|
411602
|
+
const approveTxnReceipt = await withMetricsAsync(() => approve(changeableProvider, route), `${UserJourney.ADD_TOKENS}_Approve`);
|
|
411308
411603
|
if (!approveTxnReceipt) {
|
|
411309
411604
|
return;
|
|
411310
411605
|
}
|
|
411311
411606
|
showHandover(APPROVE_TXN_ANIMATION, RiveStateMachineInput.COMPLETED, t$b('views.ADD_TOKENS.handover.approved.heading'), '', FIXED_HANDOVER_DURATION);
|
|
411312
411607
|
}
|
|
411313
411608
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.WAITING, t$b('views.ADD_TOKENS.handover.requestingExecution.heading'), t$b('views.ADD_TOKENS.handover.requestingExecution.subHeading'));
|
|
411314
|
-
const executeTxnReceipt = await execute(squid, changeableProvider, route);
|
|
411609
|
+
const executeTxnReceipt = await withMetricsAsync(() => execute(squid, changeableProvider, route), `${UserJourney.ADD_TOKENS}_Execute`);
|
|
411315
411610
|
if (executeTxnReceipt) {
|
|
411316
411611
|
track({
|
|
411317
411612
|
userJourney: UserJourney.ADD_TOKENS,
|
|
411318
411613
|
screen: 'FundsAdded',
|
|
411319
411614
|
action: 'Succeeded',
|
|
411320
411615
|
extras: {
|
|
411616
|
+
contextId: id,
|
|
411321
411617
|
txHash: executeTxnReceipt.transactionHash,
|
|
411322
411618
|
},
|
|
411323
411619
|
});
|
|
@@ -411497,7 +411793,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411497
411793
|
}), [viewState, viewReducer]);
|
|
411498
411794
|
const [addTokensState, addTokensDispatch] = reactExports.useReducer(addTokensReducer, initialAddTokensState);
|
|
411499
411795
|
const { providersState: { checkout, fromProvider }, } = useProvidersContext();
|
|
411500
|
-
const { squid, chains } = addTokensState;
|
|
411796
|
+
const { id, squid, chains } = addTokensState;
|
|
411501
411797
|
const addTokensReducerValues = reactExports.useMemo(() => ({
|
|
411502
411798
|
addTokensState,
|
|
411503
411799
|
addTokensDispatch,
|
|
@@ -411505,11 +411801,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411505
411801
|
const squidSdk = useSquid(checkout);
|
|
411506
411802
|
const tokensResponse = useTokens(checkout);
|
|
411507
411803
|
const { showErrorHandover } = useError(checkout.config.environment);
|
|
411804
|
+
reactExports.useEffect(() => {
|
|
411805
|
+
addTokensDispatch({
|
|
411806
|
+
payload: {
|
|
411807
|
+
type: AddTokensActions.SET_ID,
|
|
411808
|
+
id: v4(),
|
|
411809
|
+
},
|
|
411810
|
+
});
|
|
411811
|
+
}, []);
|
|
411508
411812
|
reactExports.useEffect(() => {
|
|
411509
411813
|
if (config.environment !== Environment$1.PRODUCTION) {
|
|
411510
|
-
showErrorHandover(AddTokensErrorTypes.ENVIRONMENT_ERROR);
|
|
411814
|
+
showErrorHandover(AddTokensErrorTypes.ENVIRONMENT_ERROR, { contextId: id });
|
|
411511
411815
|
}
|
|
411512
|
-
}, [config]);
|
|
411816
|
+
}, [config, id]);
|
|
411513
411817
|
reactExports.useEffect(() => {
|
|
411514
411818
|
if (!checkout)
|
|
411515
411819
|
return;
|
|
@@ -411526,9 +411830,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411526
411830
|
const isInvalidToTokenAddress = toTokenAddress && !isValidAddress(toTokenAddress);
|
|
411527
411831
|
const isInvalidToAmount = toAmount && !amountInputValidation(toAmount);
|
|
411528
411832
|
if (isInvalidToTokenAddress || isInvalidToAmount) {
|
|
411529
|
-
showErrorHandover(AddTokensErrorTypes.INVALID_PARAMETERS);
|
|
411833
|
+
showErrorHandover(AddTokensErrorTypes.INVALID_PARAMETERS, { contextId: id });
|
|
411530
411834
|
}
|
|
411531
|
-
}, [toTokenAddress, toAmount]);
|
|
411835
|
+
}, [toTokenAddress, toAmount, id]);
|
|
411532
411836
|
reactExports.useEffect(() => {
|
|
411533
411837
|
if (!squid)
|
|
411534
411838
|
return;
|
|
@@ -411606,6 +411910,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411606
411910
|
page({
|
|
411607
411911
|
userJourney: UserJourney.ADD_TOKENS,
|
|
411608
411912
|
screen: 'Error',
|
|
411913
|
+
extras: {
|
|
411914
|
+
contextId: id,
|
|
411915
|
+
},
|
|
411609
411916
|
});
|
|
411610
411917
|
} })), viewState.view.type
|
|
411611
411918
|
=== SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx$1(ServiceUnavailableErrorView, { onCloseClick: () => sendAddTokensCloseEvent(eventTarget), onBackButtonClick: () => {
|