2 lines
97 KiB
JavaScript
2 lines
97 KiB
JavaScript
(function(){var t={9662:function(t,e,n){var o=n(7854),r=n(614),i=n(6330),s=o.TypeError;t.exports=function(t){if(r(t))return t;throw s(i(t)+" is not a function")}},6077:function(t,e,n){var o=n(7854),r=n(614),i=o.String,s=o.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw s("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var o=n(5112),r=n(30),i=n(3070),s=o("unscopables"),l=Array.prototype;void 0==l[s]&&i.f(l,s,{configurable:!0,value:r(null)}),t.exports=function(t){l[s][t]=!0}},9670:function(t,e,n){var o=n(7854),r=n(111),i=o.String,s=o.TypeError;t.exports=function(t){if(r(t))return t;throw s(i(t)+" is not an object")}},1318:function(t,e,n){var o=n(5656),r=n(1400),i=n(6244),s=function(t){return function(e,n,s){var l,c=o(e),a=i(c),u=r(s,a);if(t&&n!=n){while(a>u)if(l=c[u++],l!=l)return!0}else for(;a>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4326:function(t,e,n){var o=n(1702),r=o({}.toString),i=o("".slice);t.exports=function(t){return i(r(t),8,-1)}},648:function(t,e,n){var o=n(7854),r=n(1694),i=n(614),s=n(4326),l=n(5112),c=l("toStringTag"),a=o.Object,u="Arguments"==s(function(){return arguments}()),p=function(t,e){try{return t[e]}catch(n){}};t.exports=r?s:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=p(e=a(t),c))?n:u?s(e):"Object"==(o=s(e))&&i(e.callee)?"Arguments":o}},7741:function(t,e,n){var o=n(1702),r=Error,i=o("".replace),s=function(t){return String(r(t).stack)}("zxcasd"),l=/\n\s*at [^:]*:[^\n]*/,c=l.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=i(t,l,"");return t}},9920:function(t,e,n){var o=n(2597),r=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e,n){for(var l=r(e),c=s.f,a=i.f,u=0;u<l.length;u++){var p=l[u];o(t,p)||n&&o(n,p)||c(t,p,a(e,p))}}},8880:function(t,e,n){var o=n(9781),r=n(3070),i=n(9114);t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){var o=n(7854),r=n(614),i=n(8880),s=n(6339),l=n(3505);t.exports=function(t,e,n,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet,f=c&&void 0!==c.name?c.name:e;return r(n)&&s(n,f,c),t===o?(u?t[e]=n:l(e,n),t):(a?!p&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n),t)}},9781:function(t,e,n){var o=n(7293);t.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var o=n(7854),r=n(111),i=o.document,s=r(i)&&r(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},8113:function(t,e,n){var o=n(5005);t.exports=o("navigator","userAgent")||""},7392:function(t,e,n){var o,r,i=n(7854),s=n(8113),l=i.process,c=i.Deno,a=l&&l.versions||c&&c.version,u=a&&a.v8;u&&(o=u.split("."),r=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(o=s.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/),o&&(r=+o[1]))),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,n){var o=n(7293),r=n(9114);t.exports=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},2109:function(t,e,n){var o=n(7854),r=n(1236).f,i=n(8880),s=n(8052),l=n(3505),c=n(9920),a=n(4705);t.exports=function(t,e){var n,u,p,f,d,h,m=t.target,v=t.global,g=t.stat;if(u=v?o:g?o[m]||l(m,{}):(o[m]||{}).prototype,u)for(p in e){if(d=e[p],t.noTargetGet?(h=r(u,p),f=h&&h.value):f=u[p],n=a(v?p:m+(g?".":"#")+p,t.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),s(u,p,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},2104:function(t,e,n){var o=n(4374),r=Function.prototype,i=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?s.bind(i):function(){return s.apply(i,arguments)})},4374:function(t,e,n){var o=n(7293);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var o=n(4374),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,n){var o=n(9781),r=n(2597),i=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,l=r(i,"name"),c=l&&"something"===function(){}.name,a=l&&(!o||o&&s(i,"name").configurable);t.exports={EXISTS:l,PROPER:c,CONFIGURABLE:a}},1702:function(t,e,n){var o=n(4374),r=Function.prototype,i=r.bind,s=r.call,l=o&&i.bind(s,s);t.exports=o?function(t){return t&&l(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,n){var o=n(7854),r=n(614),i=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t]):o[t]&&o[t][e]}},8173:function(t,e,n){var o=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:o(n)}},7854:function(t,e,n){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var o=n(1702),r=n(7908),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(r(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var o=n(5005);t.exports=o("document","documentElement")},4664:function(t,e,n){var o=n(9781),r=n(7293),i=n(317);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var o=n(7854),r=n(1702),i=n(7293),s=n(4326),l=o.Object,c=r("".split);t.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?c(t,""):l(t)}:l},9587:function(t,e,n){var o=n(614),r=n(111),i=n(7674);t.exports=function(t,e,n){var s,l;return i&&o(s=e.constructor)&&s!==n&&r(l=s.prototype)&&l!==n.prototype&&i(t,l),t}},2788:function(t,e,n){var o=n(1702),r=n(614),i=n(5465),s=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},8340:function(t,e,n){var o=n(111),r=n(8880);t.exports=function(t,e){o(e)&&"cause"in e&&r(t,"cause",e.cause)}},9909:function(t,e,n){var o,r,i,s=n(8536),l=n(7854),c=n(1702),a=n(111),u=n(8880),p=n(2597),f=n(5465),d=n(6200),h=n(3501),m="Object already initialized",v=l.TypeError,g=l.WeakMap,y=function(t){return i(t)?r(t):o(t,{})},b=function(t){return function(e){var n;if(!a(e)||(n=r(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var x=f.state||(f.state=new g),w=c(x.get),_=c(x.has),C=c(x.set);o=function(t,e){if(_(x,t))throw new v(m);return e.facade=t,C(x,t,e),e},r=function(t){return w(x,t)||{}},i=function(t){return _(x,t)}}else{var k=d("state");h[k]=!0,o=function(t,e){if(p(t,k))throw new v(m);return e.facade=t,u(t,k,e),e},r=function(t){return p(t,k)?t[k]:{}},i=function(t){return p(t,k)}}t.exports={set:o,get:r,has:i,enforce:y,getterFor:b}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,n){var o=n(7293),r=n(614),i=/#|\.prototype\./,s=function(t,e){var n=c[l(t)];return n==u||n!=a&&(r(e)?o(e):!!e)},l=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},a=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},111:function(t,e,n){var o=n(614);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var o=n(7854),r=n(5005),i=n(614),s=n(7976),l=n(3307),c=o.Object;t.exports=l?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&s(e.prototype,c(t))}},6244:function(t,e,n){var o=n(7466);t.exports=function(t){return o(t.length)}},6339:function(t,e,n){var o=n(7293),r=n(614),i=n(2597),s=n(3070).f,l=n(6530).CONFIGURABLE,c=n(2788),a=n(9909),u=a.enforce,p=a.get,f=!o((function(){return 8!==s((function(){}),"length",{value:8}).length})),d=String(String).split("String"),h=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||l&&t.name!==e)&&s(t,"name",{value:e,configurable:!0}),f&&n&&i(n,"arity")&&t.length!==n.arity&&s(t,"length",{value:n.arity});var o=u(t);return i(o,"source")||(o.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=h((function(){return r(this)&&p(this).source||c(this)}),"toString")},133:function(t,e,n){var o=n(7392),r=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},8536:function(t,e,n){var o=n(7854),r=n(614),i=n(2788),s=o.WeakMap;t.exports=r(s)&&/native code/.test(i(s))},6277:function(t,e,n){var o=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:o(t)}},30:function(t,e,n){var o,r=n(9670),i=n(6048),s=n(748),l=n(3501),c=n(490),a=n(317),u=n(6200),p=">",f="<",d="prototype",h="script",m=u("IE_PROTO"),v=function(){},g=function(t){return f+h+p+t+f+"/"+h+p},y=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=a("iframe"),n="java"+h+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},x=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&o?y(o):b():y(o);var t=s.length;while(t--)delete x[d][s[t]];return x()};l[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=r(t),n=new v,v[d]=null,n[m]=t):n=x(),void 0===e?n:i.f(n,e)}},6048:function(t,e,n){var o=n(9781),r=n(3353),i=n(3070),s=n(9670),l=n(5656),c=n(1956);e.f=o&&!r?Object.defineProperties:function(t,e){s(t);var n,o=l(e),r=c(e),a=r.length,u=0;while(a>u)i.f(t,n=r[u++],o[n]);return t}},3070:function(t,e,n){var o=n(7854),r=n(9781),i=n(4664),s=n(3353),l=n(9670),c=n(4948),a=o.TypeError,u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";e.f=r?s?function(t,e,n){if(l(t),e=c(e),l(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var o=p(t,e);o&&o[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:o[d],enumerable:f in n?n[f]:o[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(l(t),e=c(e),l(n),i)try{return u(t,e,n)}catch(o){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var o=n(9781),r=n(6916),i=n(5296),s=n(9114),l=n(5656),c=n(4948),a=n(2597),u=n(4664),p=Object.getOwnPropertyDescriptor;e.f=o?p:function(t,e){if(t=l(t),e=c(e),u)try{return p(t,e)}catch(n){}if(a(t,e))return s(!r(i.f,t,e),t[e])}},8006:function(t,e,n){var o=n(6324),r=n(748),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var o=n(1702);t.exports=o({}.isPrototypeOf)},6324:function(t,e,n){var o=n(1702),r=n(2597),i=n(5656),s=n(1318).indexOf,l=n(3501),c=o([].push);t.exports=function(t,e){var n,o=i(t),a=0,u=[];for(n in o)!r(l,n)&&r(o,n)&&c(u,n);while(e.length>a)r(o,n=e[a++])&&(~s(u,n)||c(u,n));return u}},1956:function(t,e,n){var o=n(6324),r=n(748);t.exports=Object.keys||function(t){return o(t,r)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);e.f=r?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var o=n(1702),r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,o){return r(n),i(o),e?t(n,o):n.__proto__=o,n}}():void 0)},2140:function(t,e,n){var o=n(7854),r=n(6916),i=n(614),s=n(111),l=o.TypeError;t.exports=function(t,e){var n,o;if("string"===e&&i(n=t.toString)&&!s(o=r(n,t)))return o;if(i(n=t.valueOf)&&!s(o=r(n,t)))return o;if("string"!==e&&i(n=t.toString)&&!s(o=r(n,t)))return o;throw l("Can't convert object to primitive value")}},3887:function(t,e,n){var o=n(5005),r=n(1702),i=n(8006),s=n(5181),l=n(9670),c=r([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(l(t)),n=s.f;return n?c(e,n(t)):e}},2626:function(t,e,n){var o=n(3070).f;t.exports=function(t,e,n){n in t||o(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},4488:function(t,e,n){var o=n(7854),r=o.TypeError;t.exports=function(t){if(void 0==t)throw r("Can't call method on "+t);return t}},3505:function(t,e,n){var o=n(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},6200:function(t,e,n){var o=n(2309),r=n(9711),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))}},5465:function(t,e,n){var o=n(7854),r=n(3505),i="__core-js_shared__",s=o[i]||r(i,{});t.exports=s},2309:function(t,e,n){var o=n(1913),r=n(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.4",mode:o?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(t,e,n){var o=n(9303),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},5656:function(t,e,n){var o=n(8361),r=n(4488);t.exports=function(t){return o(r(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var o=+t;return o!==o||0===o?0:(o>0?n:e)(o)}},7466:function(t,e,n){var o=n(9303),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},7908:function(t,e,n){var o=n(7854),r=n(4488),i=o.Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){var o=n(7854),r=n(6916),i=n(111),s=n(2190),l=n(8173),c=n(2140),a=n(5112),u=o.TypeError,p=a("toPrimitive");t.exports=function(t,e){if(!i(t)||s(t))return t;var n,o=l(t,p);if(o){if(void 0===e&&(e="default"),n=r(o,t,e),!i(n)||s(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){var o=n(7593),r=n(2190);t.exports=function(t){var e=o(t,"string");return r(e)?e:e+""}},1694:function(t,e,n){var o=n(5112),r=o("toStringTag"),i={};i[r]="z",t.exports="[object z]"===String(i)},1340:function(t,e,n){var o=n(7854),r=n(648),i=o.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:function(t,e,n){var o=n(7854),r=o.String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},9711:function(t,e,n){var o=n(1702),r=0,i=Math.random(),s=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+i,36)}},3307:function(t,e,n){var o=n(133);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var o=n(9781),r=n(7293);t.exports=o&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(t,e,n){var o=n(7854),r=n(2309),i=n(2597),s=n(9711),l=n(133),c=n(3307),a=r("wks"),u=o.Symbol,p=u&&u["for"],f=c?u:u&&u.withoutSetter||s;t.exports=function(t){if(!i(a,t)||!l&&"string"!=typeof a[t]){var e="Symbol."+t;l&&i(u,t)?a[t]=u[t]:a[t]=c&&p?p(e):f(e)}return a[t]}},9191:function(t,e,n){"use strict";var o=n(5005),r=n(2597),i=n(8880),s=n(7976),l=n(7674),c=n(9920),a=n(2626),u=n(9587),p=n(6277),f=n(8340),d=n(7741),h=n(2914),m=n(9781),v=n(1913);t.exports=function(t,e,n,g){var y="stackTraceLimit",b=g?2:1,x=t.split("."),w=x[x.length-1],_=o.apply(null,x);if(_){var C=_.prototype;if(!v&&r(C,"cause")&&delete C.cause,!n)return _;var k=o("Error"),S=e((function(t,e){var n=p(g?e:t,void 0),o=g?new _(t):new _;return void 0!==n&&i(o,"message",n),h&&i(o,"stack",d(o.stack,2)),this&&s(C,this)&&u(o,this,S),arguments.length>b&&f(o,arguments[b]),o}));if(S.prototype=C,"Error"!==w?l?l(S,k):c(S,k,{name:!0}):m&&y in _&&(a(S,_,y),a(S,_,"prepareStackTrace")),c(S,_),!v)try{C.name!==w&&i(C,"name",w),C.constructor=S}catch(j){}return S}}},6699:function(t,e,n){"use strict";var o=n(2109),r=n(1318).includes,i=n(7293),s=n(1223),l=i((function(){return!Array(1).includes()}));o({target:"Array",proto:!0,forced:l},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},1703:function(t,e,n){var o=n(2109),r=n(7854),i=n(2104),s=n(9191),l="WebAssembly",c=r[l],a=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=s(t,e,a),o({global:!0,arity:1,forced:a},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=s(l+"."+t,e,a),o({target:l,stat:!0,arity:1,forced:a},n)}};u("Error",(function(t){return function(e){return i(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),u("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},89:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n}},7448:function(t,e,n){n(1703);const o="https://embed.twentyuno.net";function r(t){return i(t)>=200?"#000":"#fff"}function i(t){var e=s(t);return.2126*e[0]+.7152*e[1]+.0722*e[2]}function s(t){for(var e=[],n=0;n<=2;n++)e[n]=parseInt(t.substr(2*n,2),16);return e}async function l(t,e,n){const r=await fetch(o+`/invoice?to=${t}&amount=${e}&comment=${n}`,{headers:{Accept:"application/json","Content-Type":"application/json"}});if(!r.ok)throw new Error(r.error);return r.json()}async function c(t){const e=await fetch(o+`/params?to=${t}`,{headers:{Accept:"application/json","Content-Type":"application/json"}});if(!e.ok)throw new Error(e.error);return e.json()}t.exports={fetchInvoice:l,luma:i,contrastingColor:r,fetchParams:c}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}!function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}();!function(){"use strict";n(6699),n(1703);function t(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const e="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o=t(e);function r(t){return!!t||""===t}function i(t){if(C(t)){const e={};for(let n=0;n<t.length;n++){const o=t[n],r=E(o)?c(o):i(o);if(r)for(const t in r)e[t]=r[t]}return e}return E(t)||P(t)?t:void 0}const s=/;(?![^(]*\))/g,l=/:(.+)/;function c(t){const e={};return t.split(s).forEach((t=>{if(t){const n=t.split(l);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function a(t){let e="";if(E(t))e=t;else if(C(t))for(let n=0;n<t.length;n++){const o=a(t[n]);o&&(e+=o+" ")}else if(P(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const u=t=>E(t)?t:null==t?"":C(t)||P(t)&&(t.toString===F||!j(t.toString))?JSON.stringify(t,p,2):String(t),p=(t,e)=>e&&e.__v_isRef?p(t,e.value):k(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:S(e)?{[`Set(${e.size})`]:[...e.values()]}:!P(e)||C(e)||M(e)?e:String(e),f={},d=[],h=()=>{},m=()=>!1,v=/^on[^a-z]/,g=t=>v.test(t),y=t=>t.startsWith("onUpdate:"),b=Object.assign,x=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},w=Object.prototype.hasOwnProperty,_=(t,e)=>w.call(t,e),C=Array.isArray,k=t=>"[object Map]"===T(t),S=t=>"[object Set]"===T(t),j=t=>"function"===typeof t,E=t=>"string"===typeof t,O=t=>"symbol"===typeof t,P=t=>null!==t&&"object"===typeof t,A=t=>P(t)&&j(t.then)&&j(t.catch),F=Object.prototype.toString,T=t=>F.call(t),R=t=>T(t).slice(8,-1),M=t=>"[object Object]"===T(t),L=t=>E(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,N=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=t=>{const e=Object.create(null);return n=>{const o=e[n];return o||(e[n]=t(n))}},q=/-(\w)/g,U=I((t=>t.replace(q,((t,e)=>e?e.toUpperCase():"")))),$=/\B([A-Z])/g,z=I((t=>t.replace($,"-$1").toLowerCase())),B=I((t=>t.charAt(0).toUpperCase()+t.slice(1))),V=I((t=>t?`on${B(t)}`:"")),D=(t,e)=>!Object.is(t,e),W=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},H=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},K=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let G;const Y=()=>G||(G="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});let X;class Q{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&X&&(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1)}run(t){if(this.active){const e=X;try{return X=this,t()}finally{X=e}}else 0}on(){X=this}off(){X=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function Z(t,e=X){e&&e.active&&e.effects.push(t)}const J=t=>{const e=new Set(t);return e.w=0,e.n=0,e},tt=t=>(t.w&st)>0,et=t=>(t.n&st)>0,nt=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=st},ot=t=>{const{deps:e}=t;if(e.length){let n=0;for(let o=0;o<e.length;o++){const r=e[o];tt(r)&&!et(r)?r.delete(t):e[n++]=r,r.w&=~st,r.n&=~st}e.length=n}},rt=new WeakMap;let it=0,st=1;const lt=30;let ct;const at=Symbol(""),ut=Symbol("");class pt{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,Z(this,n)}run(){if(!this.active)return this.fn();let t=ct,e=dt;while(t){if(t===this)return;t=t.parent}try{return this.parent=ct,ct=this,dt=!0,st=1<<++it,it<=lt?nt(this):ft(this),this.fn()}finally{it<=lt&&ot(this),st=1<<--it,ct=this.parent,dt=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ct===this?this.deferStop=!0:this.active&&(ft(this),this.onStop&&this.onStop(),this.active=!1)}}function ft(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let dt=!0;const ht=[];function mt(){ht.push(dt),dt=!1}function vt(){const t=ht.pop();dt=void 0===t||t}function gt(t,e,n){if(dt&&ct){let e=rt.get(t);e||rt.set(t,e=new Map);let o=e.get(n);o||e.set(n,o=J());const r=void 0;yt(o,r)}}function yt(t,e){let n=!1;it<=lt?et(t)||(t.n|=st,n=!tt(t)):n=!t.has(ct),n&&(t.add(ct),ct.deps.push(t))}function bt(t,e,n,o,r,i){const s=rt.get(t);if(!s)return;let l=[];if("clear"===e)l=[...s.values()];else if("length"===n&&C(t))s.forEach(((t,e)=>{("length"===e||e>=o)&&l.push(t)}));else switch(void 0!==n&&l.push(s.get(n)),e){case"add":C(t)?L(n)&&l.push(s.get("length")):(l.push(s.get(at)),k(t)&&l.push(s.get(ut)));break;case"delete":C(t)||(l.push(s.get(at)),k(t)&&l.push(s.get(ut)));break;case"set":k(t)&&l.push(s.get(at));break}if(1===l.length)l[0]&&xt(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);xt(J(t))}}function xt(t,e){for(const n of C(t)?t:[...t])(n!==ct||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const wt=t("__proto__,__v_isRef,__isVue"),_t=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(O)),Ct=Ot(),kt=Ot(!1,!0),St=Ot(!0),jt=Et();function Et(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=be(this);for(let e=0,r=this.length;e<r;e++)gt(n,"get",e+"");const o=n[e](...t);return-1===o||!1===o?n[e](...t.map(be)):o}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){mt();const n=be(this)[e].apply(this,t);return vt(),n}})),t}function Ot(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&r===(t?e?ce:le:e?se:ie).get(n))return n;const i=C(n);if(!t&&i&&_(jt,o))return Reflect.get(jt,o,r);const s=Reflect.get(n,o,r);if(O(o)?_t.has(o):wt(o))return s;if(t||gt(n,"get",o),e)return s;if(Se(s)){const t=!i||!L(o);return t?s.value:s}return P(s)?t?de(s):pe(s):s}}const Pt=Ft(),At=Ft(!0);function Ft(t=!1){return function(e,n,o,r){let i=e[n];if(ve(i)&&Se(i)&&!Se(o))return!1;if(!t&&!ve(o)&&(ge(o)||(o=be(o),i=be(i)),!C(e)&&Se(i)&&!Se(o)))return i.value=o,!0;const s=C(e)&&L(n)?Number(n)<e.length:_(e,n),l=Reflect.set(e,n,o,r);return e===be(r)&&(s?D(o,i)&&bt(e,"set",n,o,i):bt(e,"add",n,o)),l}}function Tt(t,e){const n=_(t,e),o=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&bt(t,"delete",e,void 0,o),r}function Rt(t,e){const n=Reflect.has(t,e);return O(e)&&_t.has(e)||gt(t,"has",e),n}function Mt(t){return gt(t,"iterate",C(t)?"length":at),Reflect.ownKeys(t)}const Lt={get:Ct,set:Pt,deleteProperty:Tt,has:Rt,ownKeys:Mt},Nt={get:St,set(t,e){return!0},deleteProperty(t,e){return!0}},It=b({},Lt,{get:kt,set:At}),qt=t=>t,Ut=t=>Reflect.getPrototypeOf(t);function $t(t,e,n=!1,o=!1){t=t["__v_raw"];const r=be(t),i=be(e);e!==i&&!n&>(r,"get",e),!n&>(r,"get",i);const{has:s}=Ut(r),l=o?qt:n?_e:we;return s.call(r,e)?l(t.get(e)):s.call(r,i)?l(t.get(i)):void(t!==r&&t.get(e))}function zt(t,e=!1){const n=this["__v_raw"],o=be(n),r=be(t);return t!==r&&!e&>(o,"has",t),!e&>(o,"has",r),t===r?n.has(t):n.has(t)||n.has(r)}function Bt(t,e=!1){return t=t["__v_raw"],!e&>(be(t),"iterate",at),Reflect.get(t,"size",t)}function Vt(t){t=be(t);const e=be(this),n=Ut(e),o=n.has.call(e,t);return o||(e.add(t),bt(e,"add",t,t)),this}function Dt(t,e){e=be(e);const n=be(this),{has:o,get:r}=Ut(n);let i=o.call(n,t);i||(t=be(t),i=o.call(n,t));const s=r.call(n,t);return n.set(t,e),i?D(e,s)&&bt(n,"set",t,e,s):bt(n,"add",t,e),this}function Wt(t){const e=be(this),{has:n,get:o}=Ut(e);let r=n.call(e,t);r||(t=be(t),r=n.call(e,t));const i=o?o.call(e,t):void 0,s=e.delete(t);return r&&bt(e,"delete",t,void 0,i),s}function Ht(){const t=be(this),e=0!==t.size,n=void 0,o=t.clear();return e&&bt(t,"clear",void 0,void 0,n),o}function Kt(t,e){return function(n,o){const r=this,i=r["__v_raw"],s=be(i),l=e?qt:t?_e:we;return!t&>(s,"iterate",at),i.forEach(((t,e)=>n.call(o,l(t),l(e),r)))}}function Gt(t,e,n){return function(...o){const r=this["__v_raw"],i=be(r),s=k(i),l="entries"===t||t===Symbol.iterator&&s,c="keys"===t&&s,a=r[t](...o),u=n?qt:e?_e:we;return!e&>(i,"iterate",c?ut:at),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:l?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Yt(t){return function(...e){return"delete"!==t&&this}}function Xt(){const t={get(t){return $t(this,t)},get size(){return Bt(this)},has:zt,add:Vt,set:Dt,delete:Wt,clear:Ht,forEach:Kt(!1,!1)},e={get(t){return $t(this,t,!1,!0)},get size(){return Bt(this)},has:zt,add:Vt,set:Dt,delete:Wt,clear:Ht,forEach:Kt(!1,!0)},n={get(t){return $t(this,t,!0)},get size(){return Bt(this,!0)},has(t){return zt.call(this,t,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:Kt(!0,!1)},o={get(t){return $t(this,t,!0,!0)},get size(){return Bt(this,!0)},has(t){return zt.call(this,t,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:Kt(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{t[r]=Gt(r,!1,!1),n[r]=Gt(r,!0,!1),e[r]=Gt(r,!1,!0),o[r]=Gt(r,!0,!0)})),[t,n,e,o]}const[Qt,Zt,Jt,te]=Xt();function ee(t,e){const n=e?t?te:Jt:t?Zt:Qt;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(_(n,o)&&o in e?n:e,o,r)}const ne={get:ee(!1,!1)},oe={get:ee(!1,!0)},re={get:ee(!0,!1)};const ie=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap;function ae(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ue(t){return t["__v_skip"]||!Object.isExtensible(t)?0:ae(R(t))}function pe(t){return ve(t)?t:he(t,!1,Lt,ne,ie)}function fe(t){return he(t,!1,It,oe,se)}function de(t){return he(t,!0,Nt,re,le)}function he(t,e,n,o,r){if(!P(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const i=r.get(t);if(i)return i;const s=ue(t);if(0===s)return t;const l=new Proxy(t,2===s?o:n);return r.set(t,l),l}function me(t){return ve(t)?me(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function ve(t){return!(!t||!t["__v_isReadonly"])}function ge(t){return!(!t||!t["__v_isShallow"])}function ye(t){return me(t)||ve(t)}function be(t){const e=t&&t["__v_raw"];return e?be(e):t}function xe(t){return H(t,"__v_skip",!0),t}const we=t=>P(t)?pe(t):t,_e=t=>P(t)?de(t):t;function Ce(t){dt&&ct&&(t=be(t),yt(t.dep||(t.dep=J())))}function ke(t,e){t=be(t),t.dep&&xt(t.dep)}function Se(t){return!(!t||!0!==t.__v_isRef)}function je(t){return Se(t)?t.value:t}const Ee={get:(t,e,n)=>je(Reflect.get(t,e,n)),set:(t,e,n,o)=>{const r=t[e];return Se(r)&&!Se(n)?(r.value=n,!0):Reflect.set(t,e,n,o)}};function Oe(t){return me(t)?t:new Proxy(t,Ee)}class Pe{constructor(t,e,n,o){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new pt(t,(()=>{this._dirty||(this._dirty=!0,ke(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this["__v_isReadonly"]=n}get value(){const t=be(this);return Ce(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ae(t,e,n=!1){let o,r;const i=j(t);i?(o=t,r=h):(o=t.get,r=t.set);const s=new Pe(o,r,i||!r,n);return s}function Fe(t,e,n,o){let r;try{r=o?t(...o):t()}catch(i){Re(i,e,n)}return r}function Te(t,e,n,o){if(j(t)){const r=Fe(t,e,n,o);return r&&A(r)&&r.catch((t=>{Re(t,e,n)})),r}const r=[];for(let i=0;i<t.length;i++)r.push(Te(t[i],e,n,o));return r}function Re(t,e,n,o=!0){const r=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,i=n;while(o){const e=o.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,r,i))return;o=o.parent}const s=e.appContext.config.errorHandler;if(s)return void Fe(s,null,10,[t,r,i])}Me(t,n,r,o)}function Me(t,e,n,o=!0){console.error(t)}let Le=!1,Ne=!1;const Ie=[];let qe=0;const Ue=[];let $e=null,ze=0;const Be=[];let Ve=null,De=0;const We=Promise.resolve();let He=null,Ke=null;function Ge(t){const e=He||We;return t?e.then(this?t.bind(this):t):e}function Ye(t){let e=qe+1,n=Ie.length;while(e<n){const o=e+n>>>1,r=rn(Ie[o]);r<t?e=o+1:n=o}return e}function Xe(t){Ie.length&&Ie.includes(t,Le&&t.allowRecurse?qe+1:qe)||t===Ke||(null==t.id?Ie.push(t):Ie.splice(Ye(t.id),0,t),Qe())}function Qe(){Le||Ne||(Ne=!0,He=We.then(sn))}function Ze(t){const e=Ie.indexOf(t);e>qe&&Ie.splice(e,1)}function Je(t,e,n,o){C(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?o+1:o)||n.push(t),Qe()}function tn(t){Je(t,$e,Ue,ze)}function en(t){Je(t,Ve,Be,De)}function nn(t,e=null){if(Ue.length){for(Ke=e,$e=[...new Set(Ue)],Ue.length=0,ze=0;ze<$e.length;ze++)$e[ze]();$e=null,ze=0,Ke=null,nn(t,e)}}function on(t){if(Be.length){const t=[...new Set(Be)];if(Be.length=0,Ve)return void Ve.push(...t);for(Ve=t,Ve.sort(((t,e)=>rn(t)-rn(e))),De=0;De<Ve.length;De++)Ve[De]();Ve=null,De=0}}const rn=t=>null==t.id?1/0:t.id;function sn(t){Ne=!1,Le=!0,nn(t),Ie.sort(((t,e)=>rn(t)-rn(e)));try{for(qe=0;qe<Ie.length;qe++){const t=Ie[qe];t&&!1!==t.active&&Fe(t,null,14)}}finally{qe=0,Ie.length=0,on(t),Le=!1,He=null,(Ie.length||Ue.length||Be.length)&&sn(t)}}new Set;new Map;function ln(t,e,...n){if(t.isUnmounted)return;const o=t.vnode.props||f;let r=n;const i=e.startsWith("update:"),s=i&&e.slice(7);if(s&&s in o){const t=`${"modelValue"===s?"model":s}Modifiers`,{number:e,trim:i}=o[t]||f;i?r=n.map((t=>t.trim())):e&&(r=n.map(K))}let l;let c=o[l=V(e)]||o[l=V(U(e))];!c&&i&&(c=o[l=V(z(e))]),c&&Te(c,t,6,r);const a=o[l+"Once"];if(a){if(t.emitted){if(t.emitted[l])return}else t.emitted={};t.emitted[l]=!0,Te(a,t,6,r)}}function cn(t,e,n=!1){const o=e.emitsCache,r=o.get(t);if(void 0!==r)return r;const i=t.emits;let s={},l=!1;if(!j(t)){const o=t=>{const n=cn(t,e,!0);n&&(l=!0,b(s,n))};!n&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}return i||l?(C(i)?i.forEach((t=>s[t]=null)):b(s,i),o.set(t,s),s):(o.set(t,null),null)}function an(t,e){return!(!t||!g(e))&&(e=e.slice(2).replace(/Once$/,""),_(t,e[0].toLowerCase()+e.slice(1))||_(t,z(e))||_(t,e))}let un=null,pn=null;function fn(t){const e=un;return un=t,pn=t&&t.type.__scopeId||null,e}function dn(t,e=un,n){if(!e)return t;if(t._n)return t;const o=(...n)=>{o._d&&ar(-1);const r=fn(e),i=t(...n);return fn(r),o._d&&ar(1),i};return o._n=!0,o._c=!0,o._d=!0,o}function hn(t){const{type:e,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:c,emit:a,render:u,renderCache:p,data:f,setupState:d,ctx:h,inheritAttrs:m}=t;let v,g;const b=fn(t);try{if(4&n.shapeFlag){const t=r||o;v=jr(u.call(t,t,p,i,d,f,h)),g=c}else{const t=e;0,v=jr(t.length>1?t(i,{attrs:c,slots:l,emit:a}):t(i,null)),g=e.props?c:mn(c)}}catch(w){rr.length=0,Re(w,t,1),v=br(nr)}let x=v;if(g&&!1!==m){const t=Object.keys(g),{shapeFlag:e}=x;t.length&&7&e&&(s&&t.some(y)&&(g=vn(g,s)),x=_r(x,g))}return n.dirs&&(x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,fn(b),v}const mn=t=>{let e;for(const n in t)("class"===n||"style"===n||g(n))&&((e||(e={}))[n]=t[n]);return e},vn=(t,e)=>{const n={};for(const o in t)y(o)&&o.slice(9)in e||(n[o]=t[o]);return n};function gn(t,e,n){const{props:o,children:r,component:i}=t,{props:s,children:l,patchFlag:c}=e,a=i.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||yn(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?yn(o,s,a):!!s;if(8&c){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(s[n]!==o[n]&&!an(a,n))return!0}}return!1}function yn(t,e,n){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(e[i]!==t[i]&&!an(n,i))return!0}return!1}function bn({vnode:t,parent:e},n){while(e&&e.subTree===t)(t=e.vnode).el=n,e=e.parent}const xn=t=>t.__isSuspense;function wn(t,e){e&&e.pendingBranch?C(t)?e.effects.push(...t):e.effects.push(t):en(t)}function _n(t,e){if(Ir){let n=Ir.provides;const o=Ir.parent&&Ir.parent.provides;o===n&&(n=Ir.provides=Object.create(o)),n[t]=e}else 0}function Cn(t,e,n=!1){const o=Ir||un;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&j(e)?e.call(o.proxy):e}else 0}const kn={};function Sn(t,e,n){return jn(t,e,n)}function jn(t,e,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=f){const l=Ir;let c,a,u=!1,p=!1;if(Se(t)?(c=()=>t.value,u=ge(t)):me(t)?(c=()=>t,o=!0):C(t)?(p=!0,u=t.some(me),c=()=>t.map((t=>Se(t)?t.value:me(t)?Pn(t):j(t)?Fe(t,l,2):void 0))):c=j(t)?e?()=>Fe(t,l,2):()=>{if(!l||!l.isUnmounted)return a&&a(),Te(t,l,3,[d])}:h,e&&o){const t=c;c=()=>Pn(t())}let d=t=>{a=y.onStop=()=>{Fe(t,l,4)}};if(Dr)return d=h,e?n&&Te(e,l,3,[c(),p?[]:void 0,d]):c(),h;let m=p?[]:kn;const v=()=>{if(y.active)if(e){const t=y.run();(o||u||(p?t.some(((t,e)=>D(t,m[e]))):D(t,m)))&&(a&&a(),Te(e,l,3,[t,m===kn?void 0:m,d]),m=t)}else y.run()};let g;v.allowRecurse=!!e,g="sync"===r?v:"post"===r?()=>Ho(v,l&&l.suspense):()=>{!l||l.isMounted?tn(v):v()};const y=new pt(c,g);return e?n?v():m=y.run():"post"===r?Ho(y.run.bind(y),l&&l.suspense):y.run(),()=>{y.stop(),l&&l.scope&&x(l.scope.effects,y)}}function En(t,e,n){const o=this.proxy,r=E(t)?t.includes(".")?On(o,t):()=>o[t]:t.bind(o,o);let i;j(e)?i=e:(i=e.handler,n=e);const s=Ir;Ur(this);const l=jn(r,i.bind(o),n);return s?Ur(s):$r(),l}function On(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function Pn(t,e){if(!P(t)||t["__v_skip"])return t;if(e=e||new Set,e.has(t))return t;if(e.add(t),Se(t))Pn(t.value,e);else if(C(t))for(let n=0;n<t.length;n++)Pn(t[n],e);else if(S(t)||k(t))t.forEach((t=>{Pn(t,e)}));else if(M(t))for(const n in t)Pn(t[n],e);return t}function An(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Jn((()=>{t.isMounted=!0})),no((()=>{t.isUnmounting=!0})),t}const Fn=[Function,Array],Tn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fn,onEnter:Fn,onAfterEnter:Fn,onEnterCancelled:Fn,onBeforeLeave:Fn,onLeave:Fn,onAfterLeave:Fn,onLeaveCancelled:Fn,onBeforeAppear:Fn,onAppear:Fn,onAfterAppear:Fn,onAppearCancelled:Fn},setup(t,{slots:e}){const n=qr(),o=An();let r;return()=>{const i=e.default&&Un(e.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let t=!1;for(const e of i)if(e.type!==nr){0,s=e,t=!0;break}}const l=be(t),{mode:c}=l;if(o.isLeaving)return Nn(s);const a=In(s);if(!a)return Nn(s);const u=Ln(a,l,o,n);qn(a,u);const p=n.subTree,f=p&&In(p);let d=!1;const{getTransitionKey:h}=a.type;if(h){const t=h();void 0===r?r=t:t!==r&&(r=t,d=!0)}if(f&&f.type!==nr&&(!hr(a,f)||d)){const t=Ln(f,l,o,n);if(qn(f,t),"out-in"===c)return o.isLeaving=!0,t.afterLeave=()=>{o.isLeaving=!1,n.update()},Nn(s);"in-out"===c&&a.type!==nr&&(t.delayLeave=(t,e,n)=>{const r=Mn(o,f);r[String(f.key)]=f,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}},Rn=Tn;function Mn(t,e){const{leavingVNodes:n}=t;let o=n.get(e.type);return o||(o=Object.create(null),n.set(e.type,o)),o}function Ln(t,e,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:p,onLeave:f,onAfterLeave:d,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:g,onAppearCancelled:y}=e,b=String(t.key),x=Mn(n,t),w=(t,e)=>{t&&Te(t,o,9,e)},_={mode:i,persisted:s,beforeEnter(e){let o=l;if(!n.isMounted){if(!r)return;o=m||l}e._leaveCb&&e._leaveCb(!0);const i=x[b];i&&hr(t,i)&&i.el._leaveCb&&i.el._leaveCb(),w(o,[e])},enter(t){let e=c,o=a,i=u;if(!n.isMounted){if(!r)return;e=v||c,o=g||a,i=y||u}let s=!1;const l=t._enterCb=e=>{s||(s=!0,w(e?i:o,[t]),_.delayedLeave&&_.delayedLeave(),t._enterCb=void 0)};e?(e(t,l),e.length<=1&&l()):l()},leave(e,o){const r=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return o();w(p,[e]);let i=!1;const s=e._leaveCb=n=>{i||(i=!0,o(),w(n?h:d,[e]),e._leaveCb=void 0,x[r]===t&&delete x[r])};x[r]=t,f?(f(e,s),f.length<=1&&s()):s()},clone(t){return Ln(t,e,n,o)}};return _}function Nn(t){if(Bn(t))return t=_r(t),t.children=null,t}function In(t){return Bn(t)?t.children?t.children[0]:void 0:t}function qn(t,e){6&t.shapeFlag&&t.component?qn(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Un(t,e=!1,n){let o=[],r=0;for(let i=0;i<t.length;i++){let s=t[i];const l=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===tr?(128&s.patchFlag&&r++,o=o.concat(Un(s.children,e,l))):(e||s.type!==nr)&&o.push(null!=l?_r(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function $n(t){return j(t)?{setup:t,name:t.name}:t}const zn=t=>!!t.type.__asyncLoader;const Bn=t=>t.type.__isKeepAlive;RegExp,RegExp;function Vn(t,e){return C(t)?t.some((t=>Vn(t,e))):E(t)?t.split(",").includes(e):!!t.test&&t.test(e)}function Dn(t,e){Hn(t,"a",e)}function Wn(t,e){Hn(t,"da",e)}function Hn(t,e,n=Ir){const o=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(Xn(e,o,n),n){let t=n.parent;while(t&&t.parent)Bn(t.parent.vnode)&&Kn(o,e,n,t),t=t.parent}}function Kn(t,e,n,o){const r=Xn(e,t,o,!0);oo((()=>{x(o[e],r)}),n)}function Gn(t){let e=t.shapeFlag;256&e&&256,512&e&&512,t.shapeFlag=e}function Yn(t){return 128&t.shapeFlag?t.ssContent:t}function Xn(t,e,n=Ir,o=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;mt(),Ur(n);const r=Te(e,n,t,o);return $r(),vt(),r});return o?r.unshift(i):r.push(i),i}}const Qn=t=>(e,n=Ir)=>(!Dr||"sp"===t)&&Xn(t,e,n),Zn=Qn("bm"),Jn=Qn("m"),to=Qn("bu"),eo=Qn("u"),no=Qn("bum"),oo=Qn("um"),ro=Qn("sp"),io=Qn("rtg"),so=Qn("rtc");function lo(t,e=Ir){Xn("ec",t,e)}let co=!0;function ao(t){const e=ho(t),n=t.proxy,o=t.ctx;co=!1,e.beforeCreate&&po(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:s,watch:l,provide:c,inject:a,created:u,beforeMount:p,mounted:f,beforeUpdate:d,updated:m,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:x,unmounted:w,render:_,renderTracked:k,renderTriggered:S,errorCaptured:E,serverPrefetch:O,expose:A,inheritAttrs:F,components:T,directives:R,filters:M}=e,L=null;if(a&&uo(a,o,L,t.appContext.config.unwrapInjectedRef),s)for(const h in s){const t=s[h];j(t)&&(o[h]=t.bind(n))}if(r){0;const e=r.call(n,n);0,P(e)&&(t.data=pe(e))}if(co=!0,i)for(const C in i){const t=i[C],e=j(t)?t.bind(n,n):j(t.get)?t.get.bind(n,n):h;0;const r=!j(t)&&j(t.set)?t.set.bind(n):h,s=ti({get:e,set:r});Object.defineProperty(o,C,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(l)for(const h in l)fo(l[h],o,n,h);if(c){const t=j(c)?c.call(n):c;Reflect.ownKeys(t).forEach((e=>{_n(e,t[e])}))}function N(t,e){C(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(u&&po(u,t,"c"),N(Zn,p),N(Jn,f),N(to,d),N(eo,m),N(Dn,v),N(Wn,g),N(lo,E),N(so,k),N(io,S),N(no,b),N(oo,w),N(ro,O),C(A))if(A.length){const e=t.exposed||(t.exposed={});A.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});_&&t.render===h&&(t.render=_),null!=F&&(t.inheritAttrs=F),T&&(t.components=T),R&&(t.directives=R)}function uo(t,e,n=h,o=!1){C(t)&&(t=bo(t));for(const r in t){const n=t[r];let i;i=P(n)?"default"in n?Cn(n.from||r,n.default,!0):Cn(n.from||r):Cn(n),Se(i)&&o?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:t=>i.value=t}):e[r]=i}}function po(t,e,n){Te(C(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function fo(t,e,n,o){const r=o.includes(".")?On(n,o):()=>n[o];if(E(t)){const n=e[t];j(n)&&Sn(r,n)}else if(j(t))Sn(r,t.bind(n));else if(P(t))if(C(t))t.forEach((t=>fo(t,e,n,o)));else{const o=j(t.handler)?t.handler.bind(n):e[t.handler];j(o)&&Sn(r,o,t)}else 0}function ho(t){const e=t.type,{mixins:n,extends:o}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,l=i.get(e);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((t=>mo(c,t,s,!0))),mo(c,e,s)):c=e,i.set(e,c),c}function mo(t,e,n,o=!1){const{mixins:r,extends:i}=e;i&&mo(t,i,n,!0),r&&r.forEach((e=>mo(t,e,n,!0)));for(const s in e)if(o&&"expose"===s);else{const o=vo[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const vo={data:go,props:wo,emits:wo,methods:wo,computed:wo,beforeCreate:xo,created:xo,beforeMount:xo,mounted:xo,beforeUpdate:xo,updated:xo,beforeDestroy:xo,beforeUnmount:xo,destroyed:xo,unmounted:xo,activated:xo,deactivated:xo,errorCaptured:xo,serverPrefetch:xo,components:wo,directives:wo,watch:_o,provide:go,inject:yo};function go(t,e){return e?t?function(){return b(j(t)?t.call(this,this):t,j(e)?e.call(this,this):e)}:e:t}function yo(t,e){return wo(bo(t),bo(e))}function bo(t){if(C(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function xo(t,e){return t?[...new Set([].concat(t,e))]:e}function wo(t,e){return t?b(b(Object.create(null),t),e):e}function _o(t,e){if(!t)return e;if(!e)return t;const n=b(Object.create(null),t);for(const o in e)n[o]=xo(t[o],e[o]);return n}function Co(t,e,n,o=!1){const r={},i={};H(i,mr,1),t.propsDefaults=Object.create(null),So(t,e,r,i);for(const s in t.propsOptions[0])s in r||(r[s]=void 0);n?t.props=o?r:fe(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function ko(t,e,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=t,l=be(r),[c]=t.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;So(t,e,r,i)&&(a=!0);for(const i in l)e&&(_(e,i)||(o=z(i))!==i&&_(e,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=jo(c,l,i,void 0,t,!0)):delete r[i]);if(i!==l)for(const t in i)e&&_(e,t)||(delete i[t],a=!0)}else if(8&s){const n=t.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];if(an(t.emitsOptions,s))continue;const u=e[s];if(c)if(_(i,s))u!==i[s]&&(i[s]=u,a=!0);else{const e=U(s);r[e]=jo(c,l,e,u,t,!1)}else u!==i[s]&&(i[s]=u,a=!0)}}a&&bt(t,"set","$attrs")}function So(t,e,n,o){const[r,i]=t.propsOptions;let s,l=!1;if(e)for(let c in e){if(N(c))continue;const a=e[c];let u;r&&_(r,u=U(c))?i&&i.includes(u)?(s||(s={}))[u]=a:n[u]=a:an(t.emitsOptions,c)||c in o&&a===o[c]||(o[c]=a,l=!0)}if(i){const e=be(n),o=s||f;for(let s=0;s<i.length;s++){const l=i[s];n[l]=jo(r,e,l,o[l],t,!_(o,l))}}return l}function jo(t,e,n,o,r,i){const s=t[n];if(null!=s){const t=_(s,"default");if(t&&void 0===o){const t=s.default;if(s.type!==Function&&j(t)){const{propsDefaults:i}=r;n in i?o=i[n]:(Ur(r),o=i[n]=t.call(null,e),$r())}else o=t}s[0]&&(i&&!t?o=!1:!s[1]||""!==o&&o!==z(n)||(o=!0))}return o}function Eo(t,e,n=!1){const o=e.propsCache,r=o.get(t);if(r)return r;const i=t.props,s={},l=[];let c=!1;if(!j(t)){const o=t=>{c=!0;const[n,o]=Eo(t,e,!0);b(s,n),o&&l.push(...o)};!n&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}if(!i&&!c)return o.set(t,d),d;if(C(i))for(let u=0;u<i.length;u++){0;const t=U(i[u]);Oo(t)&&(s[t]=f)}else if(i){0;for(const t in i){const e=U(t);if(Oo(e)){const n=i[t],o=s[e]=C(n)||j(n)?{type:n}:n;if(o){const t=Fo(Boolean,o.type),n=Fo(String,o.type);o[0]=t>-1,o[1]=n<0||t<n,(t>-1||_(o,"default"))&&l.push(e)}}}}const a=[s,l];return o.set(t,a),a}function Oo(t){return"$"!==t[0]}function Po(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function Ao(t,e){return Po(t)===Po(e)}function Fo(t,e){return C(e)?e.findIndex((e=>Ao(e,t))):j(e)&&Ao(e,t)?0:-1}const To=t=>"_"===t[0]||"$stable"===t,Ro=t=>C(t)?t.map(jr):[jr(t)],Mo=(t,e,n)=>{const o=dn(((...t)=>Ro(e(...t))),n);return o._c=!1,o},Lo=(t,e,n)=>{const o=t._ctx;for(const r in t){if(To(r))continue;const n=t[r];if(j(n))e[r]=Mo(r,n,o);else if(null!=n){0;const t=Ro(n);e[r]=()=>t}}},No=(t,e)=>{const n=Ro(e);t.slots.default=()=>n},Io=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=be(e),H(e,"_",n)):Lo(e,t.slots={})}else t.slots={},e&&No(t,e);H(t.slots,mr,1)},qo=(t,e,n)=>{const{vnode:o,slots:r}=t;let i=!0,s=f;if(32&o.shapeFlag){const t=e._;t?n&&1===t?i=!1:(b(r,e),n||1!==t||delete r._):(i=!e.$stable,Lo(e,r)),s=e}else e&&(No(t,e),s={default:1});if(i)for(const l in r)To(l)||l in s||delete r[l]};function Uo(t,e){const n=un;if(null===n)return t;const o=Qr(n)||n.proxy,r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[t,n,s,l=f]=e[i];j(t)&&(t={mounted:t,updated:t}),t.deep&&Pn(n),r.push({dir:t,instance:o,value:n,oldValue:void 0,arg:s,modifiers:l})}return t}function $o(t,e,n,o){const r=t.dirs,i=e&&e.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let c=l.dir[o];c&&(mt(),Te(c,n,8,[t.el,l,t,e]),vt())}}function zo(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bo=0;function Vo(t,e){return function(n,o=null){j(n)||(n=Object.assign({},n)),null==o||P(o)||(o=null);const r=zo(),i=new Set;let s=!1;const l=r.app={_uid:Bo++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:ni,get config(){return r.config},set config(t){0},use(t,...e){return i.has(t)||(t&&j(t.install)?(i.add(t),t.install(l,...e)):j(t)&&(i.add(t),t(l,...e))),l},mixin(t){return r.mixins.includes(t)||r.mixins.push(t),l},component(t,e){return e?(r.components[t]=e,l):r.components[t]},directive(t,e){return e?(r.directives[t]=e,l):r.directives[t]},mount(i,c,a){if(!s){const u=br(n,o);return u.appContext=r,c&&e?e(u,i):t(u,i,a),s=!0,l._container=i,i.__vue_app__=l,Qr(u.component)||u.component.proxy}},unmount(){s&&(t(null,l._container),delete l._container.__vue_app__)},provide(t,e){return r.provides[t]=e,l}};return l}}function Do(t,e,n,o,r=!1){if(C(t))return void t.forEach(((t,i)=>Do(t,e&&(C(e)?e[i]:e),n,o,r)));if(zn(o)&&!r)return;const i=4&o.shapeFlag?Qr(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:c}=t;const a=e&&e.r,u=l.refs===f?l.refs={}:l.refs,p=l.setupState;if(null!=a&&a!==c&&(E(a)?(u[a]=null,_(p,a)&&(p[a]=null)):Se(a)&&(a.value=null)),j(c))Fe(c,l,12,[s,u]);else{const e=E(c),o=Se(c);if(e||o){const o=()=>{if(t.f){const n=e?u[c]:c.value;r?C(n)&&x(n,i):C(n)?n.includes(i)||n.push(i):e?(u[c]=[i],_(p,c)&&(p[c]=u[c])):(c.value=[i],t.k&&(u[t.k]=c.value))}else e?(u[c]=s,_(p,c)&&(p[c]=s)):Se(c)&&(c.value=s,t.k&&(u[t.k]=s))};s?(o.id=-1,Ho(o,n)):o()}else 0}}function Wo(){}const Ho=wn;function Ko(t){return Go(t)}function Go(t,e){Wo();const n=Y();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:c,setText:a,setElementText:u,parentNode:p,nextSibling:m,setScopeId:v=h,cloneNode:g,insertStaticContent:y}=t,b=(t,e,n,o=null,r=null,i=null,s=!1,l=null,c=!!e.dynamicChildren)=>{if(t===e)return;t&&!hr(t,e)&&(o=X(t),V(t,r,i,!0),t=null),-2===e.patchFlag&&(c=!1,e.dynamicChildren=null);const{type:a,ref:u,shapeFlag:p}=e;switch(a){case er:x(t,e,n,o);break;case nr:w(t,e,n,o);break;case or:null==t&&_(e,n,o,s);break;case tr:T(t,e,n,o,r,i,s,l,c);break;default:1&p?S(t,e,n,o,r,i,s,l,c):6&p?R(t,e,n,o,r,i,s,l,c):(64&p||128&p)&&a.process(t,e,n,o,r,i,s,l,c,Z)}null!=u&&r&&Do(u,t&&t.ref,i,e||t,!e)},x=(t,e,n,r)=>{if(null==t)o(e.el=l(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&a(n,e.children)}},w=(t,e,n,r)=>{null==t?o(e.el=c(e.children||""),n,r):e.el=t.el},_=(t,e,n,o)=>{[t.el,t.anchor]=y(t.children,e,n,o,t.el,t.anchor)},C=({el:t,anchor:e},n,r)=>{let i;while(t&&t!==e)i=m(t),o(t,n,r),t=i;o(e,n,r)},k=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=m(t),r(t),t=n;r(e)},S=(t,e,n,o,r,i,s,l,c)=>{s=s||"svg"===e.type,null==t?j(e,n,o,r,i,s,l,c):P(t,e,r,i,s,l,c)},j=(t,e,n,r,l,c,a,p)=>{let f,d;const{type:h,props:m,shapeFlag:v,transition:y,patchFlag:b,dirs:x}=t;if(t.el&&void 0!==g&&-1===b)f=t.el=g(t.el);else{if(f=t.el=s(t.type,c,m&&m.is,m),8&v?u(f,t.children):16&v&&O(t.children,f,null,r,l,c&&"foreignObject"!==h,a,p),x&&$o(t,null,r,"created"),m){for(const e in m)"value"===e||N(e)||i(f,e,null,m[e],c,t.children,r,l,G);"value"in m&&i(f,"value",null,m.value),(d=m.onVnodeBeforeMount)&&Ar(d,r,t)}E(f,t,t.scopeId,a,r)}x&&$o(t,null,r,"beforeMount");const w=(!l||l&&!l.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(f),o(f,e,n),((d=m&&m.onVnodeMounted)||w||x)&&Ho((()=>{d&&Ar(d,r,t),w&&y.enter(f),x&&$o(t,null,r,"mounted")}),l)},E=(t,e,n,o,r)=>{if(n&&v(t,n),o)for(let i=0;i<o.length;i++)v(t,o[i]);if(r){let n=r.subTree;if(e===n){const e=r.vnode;E(t,e,e.scopeId,e.slotScopeIds,r.parent)}}},O=(t,e,n,o,r,i,s,l,c=0)=>{for(let a=c;a<t.length;a++){const c=t[a]=l?Er(t[a]):jr(t[a]);b(null,c,e,n,o,r,i,s,l)}},P=(t,e,n,o,r,s,l)=>{const c=e.el=t.el;let{patchFlag:a,dynamicChildren:p,dirs:d}=e;a|=16&t.patchFlag;const h=t.props||f,m=e.props||f;let v;n&&Yo(n,!1),(v=m.onVnodeBeforeUpdate)&&Ar(v,n,e,t),d&&$o(e,t,n,"beforeUpdate"),n&&Yo(n,!0);const g=r&&"foreignObject"!==e.type;if(p?A(t.dynamicChildren,p,c,n,o,g,s):l||U(t,e,c,null,n,o,g,s,!1),a>0){if(16&a)F(c,e,h,m,n,o,r);else if(2&a&&h.class!==m.class&&i(c,"class",null,m.class,r),4&a&&i(c,"style",h.style,m.style,r),8&a){const s=e.dynamicProps;for(let e=0;e<s.length;e++){const l=s[e],a=h[l],u=m[l];u===a&&"value"!==l||i(c,l,a,u,r,t.children,n,o,G)}}1&a&&t.children!==e.children&&u(c,e.children)}else l||null!=p||F(c,e,h,m,n,o,r);((v=m.onVnodeUpdated)||d)&&Ho((()=>{v&&Ar(v,n,e,t),d&&$o(e,t,n,"updated")}),o)},A=(t,e,n,o,r,i,s)=>{for(let l=0;l<e.length;l++){const c=t[l],a=e[l],u=c.el&&(c.type===tr||!hr(c,a)||70&c.shapeFlag)?p(c.el):n;b(c,a,u,null,o,r,i,s,!0)}},F=(t,e,n,o,r,s,l)=>{if(n!==o){for(const c in o){if(N(c))continue;const a=o[c],u=n[c];a!==u&&"value"!==c&&i(t,c,u,a,l,e.children,r,s,G)}if(n!==f)for(const c in n)N(c)||c in o||i(t,c,n[c],null,l,e.children,r,s,G);"value"in o&&i(t,"value",n.value,o.value)}},T=(t,e,n,r,i,s,c,a,u)=>{const p=e.el=t?t.el:l(""),f=e.anchor=t?t.anchor:l("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:m}=e;m&&(a=a?a.concat(m):m),null==t?(o(p,n,r),o(f,n,r),O(e.children,n,f,i,s,c,a,u)):d>0&&64&d&&h&&t.dynamicChildren?(A(t.dynamicChildren,h,n,i,s,c,a),(null!=e.key||i&&e===i.subTree)&&Xo(t,e,!0)):U(t,e,n,f,i,s,c,a,u)},R=(t,e,n,o,r,i,s,l,c)=>{e.slotScopeIds=l,null==t?512&e.shapeFlag?r.ctx.activate(e,n,o,s,c):M(e,n,o,r,i,s,c):L(t,e,c)},M=(t,e,n,o,r,i,s)=>{const l=t.component=Nr(t,o,r);if(Bn(t)&&(l.ctx.renderer=Z),Wr(l),l.asyncDep){if(r&&r.registerDep(l,I),!t.el){const t=l.subTree=br(nr);w(null,t,e,n)}}else I(l,t,e,n,r,i,s)},L=(t,e,n)=>{const o=e.component=t.component;if(gn(t,e,n)){if(o.asyncDep&&!o.asyncResolved)return void q(o,e,n);o.next=e,Ze(o.update),o.update()}else e.component=t.component,e.el=t.el,o.vnode=e},I=(t,e,n,o,r,i,s)=>{const l=()=>{if(t.isMounted){let e,{next:n,bu:o,u:l,parent:c,vnode:a}=t,u=n;0,Yo(t,!1),n?(n.el=a.el,q(t,n,s)):n=a,o&&W(o),(e=n.props&&n.props.onVnodeBeforeUpdate)&&Ar(e,c,n,a),Yo(t,!0);const f=hn(t);0;const d=t.subTree;t.subTree=f,b(d,f,p(d.el),X(d),t,r,i),n.el=f.el,null===u&&bn(t,f.el),l&&Ho(l,r),(e=n.props&&n.props.onVnodeUpdated)&&Ho((()=>Ar(e,c,n,a)),r)}else{let s;const{el:l,props:c}=e,{bm:a,m:u,parent:p}=t,f=zn(e);if(Yo(t,!1),a&&W(a),!f&&(s=c&&c.onVnodeBeforeMount)&&Ar(s,p,e),Yo(t,!0),l&&tt){const n=()=>{t.subTree=hn(t),tt(l,t.subTree,t,r,null)};f?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const s=t.subTree=hn(t);0,b(null,s,n,o,t,r,i),e.el=s.el}if(u&&Ho(u,r),!f&&(s=c&&c.onVnodeMounted)){const t=e;Ho((()=>Ar(s,p,t)),r)}256&e.shapeFlag&&t.a&&Ho(t.a,r),t.isMounted=!0,e=n=o=null}},c=t.effect=new pt(l,(()=>Xe(t.update)),t.scope),a=t.update=c.run.bind(c);a.id=t.uid,Yo(t,!0),a()},q=(t,e,n)=>{e.component=t;const o=t.vnode.props;t.vnode=e,t.next=null,ko(t,e.props,o,n),qo(t,e.children,n),mt(),nn(void 0,t.update),vt()},U=(t,e,n,o,r,i,s,l,c=!1)=>{const a=t&&t.children,p=t?t.shapeFlag:0,f=e.children,{patchFlag:d,shapeFlag:h}=e;if(d>0){if(128&d)return void z(a,f,n,o,r,i,s,l,c);if(256&d)return void $(a,f,n,o,r,i,s,l,c)}8&h?(16&p&&G(a,r,i),f!==a&&u(n,f)):16&p?16&h?z(a,f,n,o,r,i,s,l,c):G(a,r,i,!0):(8&p&&u(n,""),16&h&&O(f,n,o,r,i,s,l,c))},$=(t,e,n,o,r,i,s,l,c)=>{t=t||d,e=e||d;const a=t.length,u=e.length,p=Math.min(a,u);let f;for(f=0;f<p;f++){const o=e[f]=c?Er(e[f]):jr(e[f]);b(t[f],o,n,null,r,i,s,l,c)}a>u?G(t,r,i,!0,!1,p):O(e,n,o,r,i,s,l,c,p)},z=(t,e,n,o,r,i,s,l,c)=>{let a=0;const u=e.length;let p=t.length-1,f=u-1;while(a<=p&&a<=f){const o=t[a],u=e[a]=c?Er(e[a]):jr(e[a]);if(!hr(o,u))break;b(o,u,n,null,r,i,s,l,c),a++}while(a<=p&&a<=f){const o=t[p],a=e[f]=c?Er(e[f]):jr(e[f]);if(!hr(o,a))break;b(o,a,n,null,r,i,s,l,c),p--,f--}if(a>p){if(a<=f){const t=f+1,p=t<u?e[t].el:o;while(a<=f)b(null,e[a]=c?Er(e[a]):jr(e[a]),n,p,r,i,s,l,c),a++}}else if(a>f)while(a<=p)V(t[a],r,i,!0),a++;else{const h=a,m=a,v=new Map;for(a=m;a<=f;a++){const t=e[a]=c?Er(e[a]):jr(e[a]);null!=t.key&&v.set(t.key,a)}let g,y=0;const x=f-m+1;let w=!1,_=0;const C=new Array(x);for(a=0;a<x;a++)C[a]=0;for(a=h;a<=p;a++){const o=t[a];if(y>=x){V(o,r,i,!0);continue}let u;if(null!=o.key)u=v.get(o.key);else for(g=m;g<=f;g++)if(0===C[g-m]&&hr(o,e[g])){u=g;break}void 0===u?V(o,r,i,!0):(C[u-m]=a+1,u>=_?_=u:w=!0,b(o,e[u],n,null,r,i,s,l,c),y++)}const k=w?Qo(C):d;for(g=k.length-1,a=x-1;a>=0;a--){const t=m+a,p=e[t],f=t+1<u?e[t+1].el:o;0===C[a]?b(null,p,n,f,r,i,s,l,c):w&&(g<0||a!==k[g]?B(p,n,f,2):g--)}}},B=(t,e,n,r,i=null)=>{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=t;if(6&u)return void B(t.component.subTree,e,n,r);if(128&u)return void t.suspense.move(e,n,r);if(64&u)return void l.move(t,e,n,Z);if(l===tr){o(s,e,n);for(let t=0;t<a.length;t++)B(a[t],e,n,r);return void o(t.anchor,e,n)}if(l===or)return void C(t,e,n);const p=2!==r&&1&u&&c;if(p)if(0===r)c.beforeEnter(s),o(s,e,n),Ho((()=>c.enter(s)),i);else{const{leave:t,delayLeave:r,afterLeave:i}=c,l=()=>o(s,e,n),a=()=>{t(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else o(s,e,n)},V=(t,e,n,o=!1,r=!1)=>{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:p,dirs:f}=t;if(null!=l&&Do(l,null,n,t,!0),256&u)return void e.ctx.deactivate(t);const d=1&u&&f,h=!zn(t);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&Ar(m,e,t),6&u)K(t.component,n,o);else{if(128&u)return void t.suspense.unmount(n,o);d&&$o(t,null,e,"beforeUnmount"),64&u?t.type.remove(t,e,n,r,Z,o):a&&(i!==tr||p>0&&64&p)?G(a,e,n,!1,!0):(i===tr&&384&p||!r&&16&u)&&G(c,e,n),o&&D(t)}(h&&(m=s&&s.onVnodeUnmounted)||d)&&Ho((()=>{m&&Ar(m,e,t),d&&$o(t,null,e,"unmounted")}),n)},D=t=>{const{type:e,el:n,anchor:o,transition:i}=t;if(e===tr)return void H(n,o);if(e===or)return void k(t);const s=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:o}=i,r=()=>e(n,s);o?o(t.el,s,r):r()}else s()},H=(t,e)=>{let n;while(t!==e)n=m(t),r(t),t=n;r(e)},K=(t,e,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l}=t;o&&W(o),r.stop(),i&&(i.active=!1,V(s,t,e,n)),l&&Ho(l,e),Ho((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},G=(t,e,n,o=!1,r=!1,i=0)=>{for(let s=i;s<t.length;s++)V(t[s],e,n,o,r)},X=t=>6&t.shapeFlag?X(t.component.subTree):128&t.shapeFlag?t.suspense.next():m(t.anchor||t.el),Q=(t,e,n)=>{null==t?e._vnode&&V(e._vnode,null,null,!0):b(e._vnode||null,t,e,null,null,null,n),on(),e._vnode=t},Z={p:b,um:V,m:B,r:D,mt:M,mc:O,pc:U,pbc:A,n:X,o:t};let J,tt;return e&&([J,tt]=e(Z)),{render:Q,hydrate:J,createApp:Vo(Q,J)}}function Yo({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Xo(t,e,n=!1){const o=t.children,r=e.children;if(C(o)&&C(r))for(let i=0;i<o.length;i++){const t=o[i];let e=r[i];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=r[i]=Er(r[i]),e.el=t.el),n||Xo(t,e))}}function Qo(t){const e=t.slice(),n=[0];let o,r,i,s,l;const c=t.length;for(o=0;o<c;o++){const c=t[o];if(0!==c){if(r=n[n.length-1],t[r]<c){e[o]=r,n.push(o);continue}i=0,s=n.length-1;while(i<s)l=i+s>>1,t[n[l]]<c?i=l+1:s=l;c<t[n[i]]&&(i>0&&(e[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];while(i-- >0)n[i]=s,s=e[s];return n}const Zo=t=>t.__isTeleport;const Jo=Symbol();const tr=Symbol(void 0),er=Symbol(void 0),nr=Symbol(void 0),or=Symbol(void 0),rr=[];let ir=null;function sr(t=!1){rr.push(ir=t?null:[])}function lr(){rr.pop(),ir=rr[rr.length-1]||null}let cr=1;function ar(t){cr+=t}function ur(t){return t.dynamicChildren=cr>0?ir||d:null,lr(),cr>0&&ir&&ir.push(t),t}function pr(t,e,n,o,r,i){return ur(yr(t,e,n,o,r,i,!0))}function fr(t,e,n,o,r){return ur(br(t,e,n,o,r,!0))}function dr(t){return!!t&&!0===t.__v_isVNode}function hr(t,e){return t.type===e.type&&t.key===e.key}const mr="__vInternal",vr=({key:t})=>null!=t?t:null,gr=({ref:t,ref_key:e,ref_for:n})=>null!=t?E(t)||Se(t)||j(t)?{i:un,r:t,k:e,f:!!n}:t:null;function yr(t,e=null,n=null,o=0,r=null,i=(t===tr?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&vr(e),ref:e&&gr(e),scopeId:pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(Or(c,n),128&i&&t.normalize(c)):n&&(c.shapeFlag|=E(n)?8:16),cr>0&&!s&&ir&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&ir.push(c),c}const br=xr;function xr(t,e=null,n=null,o=0,r=null,s=!1){if(t&&t!==Jo||(t=nr),dr(t)){const o=_r(t,e,!0);return n&&Or(o,n),o}if(Jr(t)&&(t=t.__vccOpts),e){e=wr(e);let{class:t,style:n}=e;t&&!E(t)&&(e.class=a(t)),P(n)&&(ye(n)&&!C(n)&&(n=b({},n)),e.style=i(n))}const l=E(t)?1:xn(t)?128:Zo(t)?64:P(t)?4:j(t)?2:0;return yr(t,e,n,o,r,l,s,!0)}function wr(t){return t?ye(t)||mr in t?b({},t):t:null}function _r(t,e,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=t,l=e?Pr(o||{},e):o,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&vr(l),ref:e&&e.ref?n&&r?C(r)?r.concat(gr(e)):[r,gr(e)]:gr(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==tr?-1===i?16:16|i:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&_r(t.ssContent),ssFallback:t.ssFallback&&_r(t.ssFallback),el:t.el,anchor:t.anchor};return c}function Cr(t=" ",e=0){return br(er,null,t,e)}function kr(t,e){const n=br(or,null,t);return n.staticCount=e,n}function Sr(t="",e=!1){return e?(sr(),fr(nr,null,t)):br(nr,null,t)}function jr(t){return null==t||"boolean"===typeof t?br(nr):C(t)?br(tr,null,t.slice()):"object"===typeof t?Er(t):br(er,null,String(t))}function Er(t){return null===t.el||t.memo?t:_r(t)}function Or(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(C(e))n=16;else if("object"===typeof e){if(65&o){const n=e.default;return void(n&&(n._c&&(n._d=!1),Or(t,n()),n._c&&(n._d=!0)))}{n=32;const o=e._;o||mr in e?3===o&&un&&(1===un.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=un}}else j(e)?(e={default:e,_ctx:un},n=32):(e=String(e),64&o?(n=16,e=[Cr(e)]):n=8);t.children=e,t.shapeFlag|=n}function Pr(...t){const e={};for(let n=0;n<t.length;n++){const o=t[n];for(const t in o)if("class"===t)e.class!==o.class&&(e.class=a([e.class,o.class]));else if("style"===t)e.style=i([e.style,o.style]);else if(g(t)){const n=e[t],r=o[t];!r||n===r||C(n)&&n.includes(r)||(e[t]=n?[].concat(n,r):r)}else""!==t&&(e[t]=o[t])}return e}function Ar(t,e,n,o=null){Te(t,e,7,[n,o])}const Fr=t=>t?zr(t)?Qr(t)||t.proxy:Fr(t.parent):null,Tr=b(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Fr(t.parent),$root:t=>Fr(t.root),$emit:t=>t.emit,$options:t=>ho(t),$forceUpdate:t=>()=>Xe(t.update),$nextTick:t=>Ge.bind(t.proxy),$watch:t=>En.bind(t)}),Rr={get({_:t},e){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:c}=t;let a;if("$"!==e[0]){const l=s[e];if(void 0!==l)switch(l){case 1:return o[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(o!==f&&_(o,e))return s[e]=1,o[e];if(r!==f&&_(r,e))return s[e]=2,r[e];if((a=t.propsOptions[0])&&_(a,e))return s[e]=3,i[e];if(n!==f&&_(n,e))return s[e]=4,n[e];co&&(s[e]=0)}}const u=Tr[e];let p,d;return u?("$attrs"===e&>(t,"get",e),u(t)):(p=l.__cssModules)&&(p=p[e])?p:n!==f&&_(n,e)?(s[e]=4,n[e]):(d=c.config.globalProperties,_(d,e)?d[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:i}=t;return r!==f&&_(r,e)?(r[e]=n,!0):o!==f&&_(o,e)?(o[e]=n,!0):!_(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(i[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||t!==f&&_(t,s)||e!==f&&_(e,s)||(l=i[0])&&_(l,s)||_(o,s)||_(Tr,s)||_(r.config.globalProperties,s)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:_(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};const Mr=zo();let Lr=0;function Nr(t,e,n){const o=t.type,r=(e?e.appContext:t.appContext)||Mr,i={uid:Lr++,vnode:t,type:o,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Q(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Eo(o,r),emitsOptions:cn(o,r),emit:null,emitted:null,propsDefaults:f,inheritAttrs:o.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=ln.bind(null,i),t.ce&&t.ce(i),i}let Ir=null;const qr=()=>Ir||un,Ur=t=>{Ir=t,t.scope.on()},$r=()=>{Ir&&Ir.scope.off(),Ir=null};function zr(t){return 4&t.vnode.shapeFlag}let Br,Vr,Dr=!1;function Wr(t,e=!1){Dr=e;const{props:n,children:o}=t.vnode,r=zr(t);Co(t,n,r,e),Io(t,o);const i=r?Hr(t,e):void 0;return Dr=!1,i}function Hr(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=xe(new Proxy(t.ctx,Rr));const{setup:o}=n;if(o){const n=t.setupContext=o.length>1?Xr(t):null;Ur(t),mt();const r=Fe(o,t,0,[t.props,n]);if(vt(),$r(),A(r)){if(r.then($r,$r),e)return r.then((n=>{Kr(t,n,e)})).catch((e=>{Re(e,t,0)}));t.asyncDep=r}else Kr(t,r,e)}else Gr(t,e)}function Kr(t,e,n){j(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:P(e)&&(t.setupState=Oe(e)),Gr(t,n)}function Gr(t,e,n){const o=t.type;if(!t.render){if(!e&&Br&&!o.render){const e=o.template;if(e){0;const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:i,compilerOptions:s}=o,l=b(b({isCustomElement:n,delimiters:i},r),s);o.render=Br(e,l)}}t.render=o.render||h,Vr&&Vr(t)}Ur(t),mt(),ao(t),vt(),$r()}function Yr(t){return new Proxy(t.attrs,{get(e,n){return gt(t,"get","$attrs"),e[n]}})}function Xr(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=Yr(t))},slots:t.slots,emit:t.emit,expose:e}}function Qr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Oe(xe(t.exposed)),{get(e,n){return n in e?e[n]:n in Tr?Tr[n](t):void 0}}))}function Zr(t){return j(t)&&t.displayName||t.name}function Jr(t){return j(t)&&"__vccOpts"in t}const ti=(t,e)=>Ae(t,e,Dr);function ei(t,e,n){const o=arguments.length;return 2===o?P(e)&&!C(e)?dr(e)?br(t,null,[e]):br(t,e):br(t,null,e):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&dr(n)&&(n=[n]),br(t,e,n))}Symbol("");const ni="3.2.33",oi="http://www.w3.org/2000/svg",ri="undefined"!==typeof document?document:null,ii=ri&&ri.createElement("template"),si={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,o)=>{const r=e?ri.createElementNS(oi,t):ri.createElement(t,n?{is:n}:void 0);return"select"===t&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:t=>ri.createTextNode(t),createComment:t=>ri.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ri.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,o,r,i){const s=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling)){while(1)if(e.insertBefore(r.cloneNode(!0),n),r===i||!(r=r.nextSibling))break}else{ii.innerHTML=o?`<svg>${t}</svg>`:t;const r=ii.content;if(o){const t=r.firstChild;while(t.firstChild)r.appendChild(t.firstChild);r.removeChild(t)}e.insertBefore(r,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function li(t,e,n){const o=t._vtc;o&&(e=(e?[e,...o]:[...o]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function ci(t,e,n){const o=t.style,r=E(n);if(n&&!r){for(const t in n)ui(o,t,n[t]);if(e&&!E(e))for(const t in e)null==n[t]&&ui(o,t,"")}else{const i=o.display;r?e!==n&&(o.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=i)}}const ai=/\s*!important$/;function ui(t,e,n){if(C(n))n.forEach((n=>ui(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const o=di(t,e);ai.test(n)?t.setProperty(z(o),n.replace(ai,""),"important"):t[o]=n}}const pi=["Webkit","Moz","ms"],fi={};function di(t,e){const n=fi[e];if(n)return n;let o=U(e);if("filter"!==o&&o in t)return fi[e]=o;o=B(o);for(let r=0;r<pi.length;r++){const n=pi[r]+o;if(n in t)return fi[e]=n}return e}const hi="http://www.w3.org/1999/xlink";function mi(t,e,n,i,s){if(i&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(hi,e.slice(6,e.length)):t.setAttributeNS(hi,e,n);else{const i=o(e);null==n||i&&!r(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function vi(t,e,n,o,i,s,l){if("innerHTML"===e||"textContent"===e)return o&&l(o,i,s),void(t[e]=null==n?"":n);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=n;const o=null==n?"":n;return t.value===o&&"OPTION"!==t.tagName||(t.value=o),void(null==n&&t.removeAttribute(e))}let c=!1;if(""===n||null==n){const o=typeof t[e];"boolean"===o?n=r(n):null==n&&"string"===o?(n="",c=!0):"number"===o&&(n=0,c=!0)}try{t[e]=n}catch(a){0}c&&t.removeAttribute(e)}const[gi,yi]=(()=>{let t=Date.now,e=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(t=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);e=!!(n&&Number(n[1])<=53)}return[t,e]})();let bi=0;const xi=Promise.resolve(),wi=()=>{bi=0},_i=()=>bi||(xi.then(wi),bi=gi());function Ci(t,e,n,o){t.addEventListener(e,n,o)}function ki(t,e,n,o){t.removeEventListener(e,n,o)}function Si(t,e,n,o,r=null){const i=t._vei||(t._vei={}),s=i[e];if(o&&s)s.value=o;else{const[n,l]=Ei(e);if(o){const s=i[e]=Oi(o,r);Ci(t,n,s,l)}else s&&(ki(t,n,s,l),i[e]=void 0)}}const ji=/(?:Once|Passive|Capture)$/;function Ei(t){let e;if(ji.test(t)){let n;e={};while(n=t.match(ji))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[z(t.slice(2)),e]}function Oi(t,e){const n=t=>{const o=t.timeStamp||gi();(yi||o>=n.attached-1)&&Te(Pi(t,n.value),e,5,[t])};return n.value=t,n.attached=_i(),n}function Pi(t,e){if(C(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const Ai=/^on[a-z]/,Fi=(t,e,n,o,r=!1,i,s,l,c)=>{"class"===e?li(t,o,r):"style"===e?ci(t,n,o):g(e)?y(e)||Si(t,e,n,o,s):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):Ti(t,e,o,r))?vi(t,e,o,i,s,l,c):("true-value"===e?t._trueValue=o:"false-value"===e&&(t._falseValue=o),mi(t,e,o,r))};function Ti(t,e,n,o){return o?"innerHTML"===e||"textContent"===e||!!(e in t&&Ai.test(e)&&j(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!Ai.test(e)||!E(n))&&e in t))))}function Ri(t,e){const n=$n(t);class o extends Li{constructor(t){super(n,t,e)}}return o.def=n,o}const Mi="undefined"!==typeof HTMLElement?HTMLElement:class{};class Li extends Mi{constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Ge((()=>{this._connected||(cs(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver((t=>{for(const e of t)this._setAttr(e.attributeName)})).observe(this,{attributes:!0});const t=t=>{const{props:e,styles:n}=t,o=!C(e),r=e?o?Object.keys(e):e:[];let i;if(o)for(const s in this._props){const t=e[s];(t===Number||t&&t.type===Number)&&(this._props[s]=K(this._props[s]),(i||(i=Object.create(null)))[s]=!0)}this._numberProps=i;for(const s of Object.keys(this))"_"!==s[0]&&this._setProp(s,this[s],!0,!1);for(const s of r.map(U))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(t){this._setProp(s,t)}});this._applyStyles(n),this._update()},e=this._def.__asyncLoader;e?e().then(t):t(this._def)}_setAttr(t){let e=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(e=K(e)),this._setProp(U(t),e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,o=!0){e!==this._props[t]&&(this._props[t]=e,o&&this._instance&&this._update(),n&&(!0===e?this.setAttribute(z(t),""):"string"===typeof e||"number"===typeof e?this.setAttribute(z(t),e+""):e||this.removeAttribute(z(t))))}_update(){cs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=br(this._def,b({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0,t.emit=(t,...e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};let e=this;while(e=e&&(e.parentNode||e.host))if(e instanceof Li){t.parent=e._instance;break}}),t}_applyStyles(t){t&&t.forEach((t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)}))}}const Ni="transition",Ii="animation",qi=(t,{slots:e})=>ei(Rn,Bi(t),e);qi.displayName="Transition";const Ui={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$i=(qi.props=b({},Rn.props,Ui),(t,e=[])=>{C(t)?t.forEach((t=>t(...e))):t&&t(...e)}),zi=t=>!!t&&(C(t)?t.some((t=>t.length>1)):t.length>1);function Bi(t){const e={};for(const b in t)b in Ui||(e[b]=t[b]);if(!1===t.css)return e;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=s,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,h=Vi(r),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:x,onLeave:w,onLeaveCancelled:_,onBeforeAppear:C=g,onAppear:k=y,onAppearCancelled:S=x}=e,j=(t,e,n)=>{Hi(t,e?u:l),Hi(t,e?a:s),n&&n()},E=(t,e)=>{Hi(t,d),Hi(t,f),e&&e()},O=t=>(e,n)=>{const r=t?k:y,s=()=>j(e,t,n);$i(r,[e,s]),Ki((()=>{Hi(e,t?c:i),Wi(e,t?u:l),zi(r)||Yi(e,o,m,s)}))};return b(e,{onBeforeEnter(t){$i(g,[t]),Wi(t,i),Wi(t,s)},onBeforeAppear(t){$i(C,[t]),Wi(t,c),Wi(t,a)},onEnter:O(!1),onAppear:O(!0),onLeave(t,e){const n=()=>E(t,e);Wi(t,p),Ji(),Wi(t,f),Ki((()=>{Hi(t,p),Wi(t,d),zi(w)||Yi(t,o,v,n)})),$i(w,[t,n])},onEnterCancelled(t){j(t,!1),$i(x,[t])},onAppearCancelled(t){j(t,!0),$i(S,[t])},onLeaveCancelled(t){E(t),$i(_,[t])}})}function Vi(t){if(null==t)return null;if(P(t))return[Di(t.enter),Di(t.leave)];{const e=Di(t);return[e,e]}}function Di(t){const e=K(t);return e}function Wi(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Hi(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Ki(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let Gi=0;function Yi(t,e,n,o){const r=t._endId=++Gi,i=()=>{r===t._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=Xi(t,e);if(!s)return o();const a=s+"end";let u=0;const p=()=>{t.removeEventListener(a,f),i()},f=e=>{e.target===t&&++u>=c&&p()};setTimeout((()=>{u<c&&p()}),l+1),t.addEventListener(a,f)}function Xi(t,e){const n=window.getComputedStyle(t),o=t=>(n[t]||"").split(", "),r=o(Ni+"Delay"),i=o(Ni+"Duration"),s=Qi(r,i),l=o(Ii+"Delay"),c=o(Ii+"Duration"),a=Qi(l,c);let u=null,p=0,f=0;e===Ni?s>0&&(u=Ni,p=s,f=i.length):e===Ii?a>0&&(u=Ii,p=a,f=c.length):(p=Math.max(s,a),u=p>0?s>a?Ni:Ii:null,f=u?u===Ni?i.length:c.length:0);const d=u===Ni&&/\b(transform|all)(,|$)/.test(n[Ni+"Property"]);return{type:u,timeout:p,propCount:f,hasTransform:d}}function Qi(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map(((e,n)=>Zi(e)+Zi(t[n]))))}function Zi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ji(){return document.body.offsetHeight}new WeakMap,new WeakMap;const ts=t=>{const e=t.props["onUpdate:modelValue"];return C(e)?t=>W(e,t):e};function es(t){t.target.composing=!0}function ns(t){const e=t.target;e.composing&&(e.composing=!1,os(e,"input"))}function os(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}const rs={created(t,{modifiers:{lazy:e,trim:n,number:o}},r){t._assign=ts(r);const i=o||r.props&&"number"===r.props.type;Ci(t,e?"change":"input",(e=>{if(e.target.composing)return;let o=t.value;n?o=o.trim():i&&(o=K(o)),t._assign(o)})),n&&Ci(t,"change",(()=>{t.value=t.value.trim()})),e||(Ci(t,"compositionstart",es),Ci(t,"compositionend",ns),Ci(t,"change",ns))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:o,number:r}},i){if(t._assign=ts(i),t.composing)return;if(document.activeElement===t){if(n)return;if(o&&t.value.trim()===e)return;if((r||"number"===t.type)&&K(t.value)===e)return}const s=null==e?"":e;t.value!==s&&(t.value=s)}};const is=b({patchProp:Fi},si);let ss;function ls(){return ss||(ss=Ko(is))}const cs=(...t)=>{ls().render(...t)};const as={id:"confetti",ref:"confetti"},us=yr("div",{class:"logo"},[yr("a",{href:"https://widgets.twentyuno.net",target:"_blank",rel:"noreferer noopener"},[yr("svg",{width:"16",height:"16",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"vertical-align":"top"}},[yr("path",{class:"map-fill-color",d:"M734.996 365.822C735.163 402.397 729.869 438.926 719.176 474.179C705.521 519.191 683.391 561.042 654.102 597.533C647.681 605.534 640.915 613.277 633.82 620.739L434.558 820H820V434.558L751.95 502.608C753.904 497.05 755.739 491.443 757.453 485.791C776.906 421.662 780.244 353.726 767.17 288C764.214 273.137 760.439 258.491 755.875 244.125L1000 0V1000H0L494.151 505.762C531.551 471.484 555 422.23 555 367.5C555 263.947 471.053 180 367.5 180C263.947 180 180 263.947 180 367.5C180 471.053 263.947 555 367.5 555C374.99 555 382.377 554.561 389.637 553.707L233.528 709.816C96.8161 656.27 0 523.191 0 367.5C0 164.535 164.535 0 367.5 0C569.905 0 734.092 163.629 734.996 365.822Z",fill:"#FFF"})])])],-1),ps={class:"back"},fs=kr('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_27_452)"><path class="inherit-textcolor" d="M13.8994 6.99833e-10L4.70703 9.19239C4.3165 9.58291 4.3165 10.2161 4.70703 10.6066L13.8994 19.799" stroke="white" stroke-width="2" stroke-linecap="round"></path></g><defs><clipPath id="clip0_27_452"><rect width="20" height="20" fill="white"></rect></clipPath></defs></svg>',1),ds=[fs],hs={key:0},ms=["src","alt"],vs={key:1},gs=yr("div",null,[yr("h3",null,"How many sats?")],-1),ys={class:"mb-1"},bs={class:"pill-container"},xs={key:2},ws=yr("h3",null,"Want to add a note?",-1),_s={key:3},Cs={width:"100",height:"100",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},ks={x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},Ss=["stop-color"],js=["stop-color"],Es=["stop-color"],Os=yr("g",{fill:"none","fill-rule":"evenodd"},[yr("g",{transform:"translate(1 1)"},[yr("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)","stroke-width":"2"},[yr("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),yr("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},[yr("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])],-1),Ps=yr("h4",{class:"mb-2"},"Waiting for payment with your browser wallet...",-1),As=yr("svg",{style:{"vertical-align":"middle"},width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[yr("rect",{class:"map-stroke-color",x:"3.75",y:"3.75",width:"3",height:"3",stroke:"white","stroke-width":"1.5"}),yr("rect",{class:"map-stroke-color",t:"",x:"13.2499",y:"3.75",width:"3",height:"3",stroke:"white","stroke-width":"1.5"}),yr("rect",{class:"map-stroke-color",x:"3.75",y:"13.25",width:"3",height:"3",stroke:"white","stroke-width":"1.5"}),yr("rect",{class:"map-fill-color",x:"3",y:"9.25",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"6",y:"9.25",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"9.16663",y:"9.25",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"9.16663",y:"12.375",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"9.16663",y:"15.5",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"9.16663",y:"6.125",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"9.16663",y:"3",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"12.3333",y:"9.25",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"15.4999",y:"9.25",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"12.3333",y:"12.375",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"15.4999",y:"12.375",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"12.3333",y:"15.5",width:"1.5",height:"1.5",fill:"white"}),yr("rect",{class:"map-fill-color",x:"15.4999",y:"15.5",width:"1.5",height:"1.5",fill:"white"})],-1),Fs=Cr(" Use QR code "),Ts=[As,Fs],Rs={key:4},Ms={class:"mb-1"},Ls=["href"],Ns=["src"],Is={key:0,class:"qr-heading"},qs={key:5},Us=["src","alt"],$s=yr("div",null,[yr("h3",null,"Thank you")],-1),zs={key:6},Bs={style:{"margin-bottom":"0"}},Vs=["innerHTML"];function Ds(t,e,n,o,r,s){return sr(),pr("div",{id:"root",style:i(s.cssProps)},[yr("canvas",as,null,512),us,yr("div",ps,["start"!=r.step&&"error"!=r.step&&"thankyou"!=r.step?(sr(),pr("a",{key:0,href:"javascript:void(0)",onClick:e[0]||(e[0]=t=>s.back())},ds)):Sr("",!0)]),yr("div",{class:"card",style:i(s.backgroundImageStyle)},[br(qi,{name:"fade",mode:"out-in"},{default:dn((()=>["start"==r.step?(sr(),pr("div",hs,[yr("div",null,[n.image?(sr(),pr("img",{key:0,class:"image",src:n.image,width:"150",height:"150",alt:n.name},null,8,ms)):Sr("",!0)]),yr("div",null,[yr("h3",null,u(n.name),1)]),yr("div",null,[yr("button",{type:"button",class:"button",onClick:e[1]||(e[1]=t=>r.step="amount")},u(n.buttonText),1)])])):"amount"==r.step?(sr(),pr("div",vs,[gs,yr("div",ys,[yr("div",bs,[yr("div",{class:"pill",onClick:e[2]||(e[2]=t=>r.currentAmount=5e3)},"5000"),yr("div",{class:"pill",onClick:e[3]||(e[3]=t=>r.currentAmount=15e3)},"15000"),yr("div",{class:"pill",onClick:e[4]||(e[4]=t=>r.currentAmount=3e4)},"30000")]),Uo(yr("input",{type:"number",class:"mb-1",name:"amount",placeholder:"Enter an amount",required:"","onUpdate:modelValue":e[5]||(e[5]=t=>r.currentAmount=t)},null,512),[[rs,r.currentAmount,void 0,{number:!0}]])]),yr("div",null,[yr("button",{type:"button",class:"button",onClick:e[6]||(e[6]=t=>r.currentAmount>0?r.step="note":"")},"Next")])])):"note"==r.step?(sr(),pr("div",xs,[ws,Uo(yr("textarea",{id:"comment",class:"mb-1",name:"comment",placeholder:"Enter your note",rows:"4","onUpdate:modelValue":e[7]||(e[7]=t=>r.comment=t)},null,512),[[rs,r.comment]]),yr("button",{type:"button",class:"button",onClick:e[8]||(e[8]=t=>{r.step="pay",s.pay()})},"Next")])):"pay"==r.step?(sr(),pr("div",_s,[(sr(),pr("svg",Cs,[yr("defs",null,[yr("linearGradient",ks,[yr("stop",{"stop-color":s.color,"stop-opacity":"0",offset:"0%"},null,8,Ss),yr("stop",{"stop-color":s.color,"stop-opacity":".631",offset:"63.146%"},null,8,js),yr("stop",{"stop-color":s.color,offset:"100%"},null,8,Es)])]),Os])),Ps,"Invoice"==r.paymentType?(sr(),pr("a",{key:0,href:"javascript:void(0)",onClick:e[9]||(e[9]=t=>s.showQR())},Ts)):Sr("",!0)])):"qr"==r.step?(sr(),pr("div",Rs,[yr("div",Ms,[yr("a",{href:"lightning:"+r.paymentRequest},[yr("img",{class:"qr",width:"150",height:"150",src:"https://embed.twentyuno.net/qr/"+r.paymentRequest,alt:"qr"},null,8,Ns)],8,Ls)]),br(qi,{name:"fade",mode:"out-in"},{default:dn((()=>[r.qrTimeoutElapsed?(sr(),pr("button",{key:1,class:"button",onClick:e[10]||(e[10]=t=>{r.step="thankyou",s.celebrate()})},"Done?")):(sr(),pr("h4",Is,"Scan or Click to pay"))])),_:1})])):"thankyou"==r.step?(sr(),pr("div",qs,[yr("div",null,[n.image?(sr(),pr("img",{key:0,class:"image",src:n.image,width:"150",height:"150",alt:n.name},null,8,Us)):Sr("",!0)]),$s,yr("div",null,[yr("button",{class:"button",onClick:e[11]||(e[11]=t=>{s.reset(),r.step="start"})},"Start over")])])):"error"==r.step?(sr(),pr("div",zs,[yr("h3",Bs,u(r.errorTitle),1),yr("p",{class:"mb-2",innerHTML:r.errorMessage},null,8,Vs),yr("button",{class:"button",onClick:e[12]||(e[12]=t=>{s.reset(),r.step="start"})},"Start over")])):Sr("",!0)])),_:1})],4)],4)}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hs(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ks(t,e,n){return e&&Hs(t.prototype,e),n&&Hs(t,n),t}function Gs(t){return+t.replace(/px/,"")}function Ys(t){var e=window.devicePixelRatio,n=getComputedStyle(t),o=Gs(n.getPropertyValue("width")),r=Gs(n.getPropertyValue("height"));t.setAttribute("width",(o*e).toString()),t.setAttribute("height",(r*e).toString())}function Xs(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Math.random()*(e-t)+t;return Math.floor(o*Math.pow(10,n))/Math.pow(10,n)}function Qs(t){return t[Xs(0,t.length)]}var Zs=.00125,Js=5e-4,tl=9e-4,el=1e-5,nl=6,ol=80,rl=.9,il=1.7,sl=.2,ll=.6,cl=.03,al=.07,ul=15,pl=82,fl=150,dl=100,hl=250,ml=40,vl=["#fcf403","#62fc03","#f4fc03","#03e7fc","#03fca5","#a503fc","#fc03ad","#fc03c2"];function gl(t){var e=1920;return Math.log(t)/Math.log(e)}var yl=function(){function t(e){Ws(this,t);var n=e.initialPosition,o=e.direction,r=e.confettiRadius,i=e.confettiColors,s=e.emojis,l=e.emojiSize,c=e.canvasWidth,a=Xs(rl,il,3),u=a*gl(c);this.confettiSpeed={x:u,y:u},this.finalConfettiSpeedX=Xs(sl,ll,3),this.rotationSpeed=s.length?.01:Xs(cl,al,3)*gl(c),this.dragForceCoefficient=Xs(Js,tl,6),this.radius={x:r,y:r},this.initialRadius=r,this.rotationAngle="left"===o?Xs(0,.2,3):Xs(-.2,0,3),this.emojiSize=l,this.emojiRotationAngle=Xs(0,2*Math.PI),this.radiusYUpdateDirection="down";var p="left"===o?Xs(pl,ul)*Math.PI/180:Xs(-ul,-pl)*Math.PI/180;this.absCos=Math.abs(Math.cos(p)),this.absSin=Math.abs(Math.sin(p));var f=Xs(-fl,0),d={x:n.x+("left"===o?-f:f)*this.absCos,y:n.y-f*this.absSin};this.currentPosition=Object.assign({},d),this.initialPosition=Object.assign({},d),this.color=s.length?null:Qs(i),this.emoji=s.length?Qs(s):null,this.createdAt=(new Date).getTime(),this.direction=o}return Ks(t,[{key:"draw",value:function(t){var e=this.currentPosition,n=this.radius,o=this.color,r=this.emoji,i=this.rotationAngle,s=this.emojiRotationAngle,l=this.emojiSize,c=window.devicePixelRatio;o?(t.fillStyle=o,t.beginPath(),t.ellipse(e.x*c,e.y*c,n.x*c,n.y*c,i,0,2*Math.PI),t.fill()):r&&(t.font="".concat(l,"px serif"),t.save(),t.translate(c*e.x,c*e.y),t.rotate(s),t.textAlign="center",t.fillText(r,0,0),t.restore())}},{key:"updatePosition",value:function(t,e){var n=this.confettiSpeed,o=this.dragForceCoefficient,r=this.finalConfettiSpeedX,i=this.radiusYUpdateDirection,s=this.rotationSpeed,l=this.createdAt,c=this.direction,a=e-l;n.x>r&&(this.confettiSpeed.x-=o*t),this.currentPosition.x+=n.x*("left"===c?-this.absCos:this.absCos)*t,this.currentPosition.y=this.initialPosition.y-n.y*this.absSin*a+Zs*Math.pow(a,2)/2,this.rotationSpeed-=this.emoji?1e-4:el*t,this.rotationSpeed<0&&(this.rotationSpeed=0),this.emoji?this.emojiRotationAngle+=this.rotationSpeed*t%(2*Math.PI):"down"===i?(this.radius.y-=t*s,this.radius.y<=0&&(this.radius.y=0,this.radiusYUpdateDirection="up")):(this.radius.y+=t*s,this.radius.y>=this.initialRadius&&(this.radius.y=this.initialRadius,this.radiusYUpdateDirection="down"))}},{key:"getIsVisibleOnCanvas",value:function(t){return this.currentPosition.y<t+dl}}]),t}();function bl(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.width="100%",t.style.height="100%",t.style.top="0",t.style.left="0",t.style.zIndex="1000",t.style.pointerEvents="none",document.body.appendChild(t),t}function xl(t){var e=t.confettiRadius,n=void 0===e?nl:e,o=t.confettiNumber,r=void 0===o?t.confettiesNumber||(t.emojis?ml:hl):o,i=t.confettiColors,s=void 0===i?vl:i,l=t.emojis,c=void 0===l?t.emojies||[]:l,a=t.emojiSize,u=void 0===a?ol:a;return t.emojies&&console.error("emojies argument is deprecated, please use emojis instead"),t.confettiesNumber&&console.error("confettiesNumber argument is deprecated, please use confettiNumber instead"),{confettiRadius:n,confettiNumber:r,confettiColors:s,emojis:c,emojiSize:u}}var wl=function(){function t(e){var n=this;Ws(this,t),this.canvasContext=e,this.shapes=[],this.promise=new Promise((function(t){return n.resolvePromise=t}))}return Ks(t,[{key:"getBatchCompletePromise",value:function(){return this.promise}},{key:"addShapes",value:function(){var t;(t=this.shapes).push.apply(t,arguments)}},{key:"complete",value:function(){var t;return!this.shapes.length&&(null===(t=this.resolvePromise)||void 0===t||t.call(this),!0)}},{key:"processShapes",value:function(t,e,n){var o=this,r=t.timeDelta,i=t.currentTime;this.shapes=this.shapes.filter((function(t){return t.updatePosition(r,i),t.draw(o.canvasContext),!n||t.getIsVisibleOnCanvas(e)}))}}]),t}(),_l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ws(this,t),this.activeConfettiBatches=[],this.canvas=e.canvas||bl(),this.canvasContext=this.canvas.getContext("2d"),this.requestAnimationFrameRequested=!1,this.lastUpdated=(new Date).getTime(),this.iterationIndex=0,this.loop=this.loop.bind(this),requestAnimationFrame(this.loop)}return Ks(t,[{key:"loop",value:function(){this.requestAnimationFrameRequested=!1,Ys(this.canvas);var t=(new Date).getTime(),e=t-this.lastUpdated,n=this.canvas.offsetHeight,o=this.iterationIndex%10===0;this.activeConfettiBatches=this.activeConfettiBatches.filter((function(r){return r.processShapes({timeDelta:e,currentTime:t},n,o),!o||!r.complete()})),this.iterationIndex++,this.queueAnimationFrameIfNeeded(t)}},{key:"queueAnimationFrameIfNeeded",value:function(t){this.requestAnimationFrameRequested||this.activeConfettiBatches.length<1||(this.requestAnimationFrameRequested=!0,this.lastUpdated=t||(new Date).getTime(),requestAnimationFrame(this.loop))}},{key:"addConfetti",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=xl(t),n=e.confettiRadius,o=e.confettiNumber,r=e.confettiColors,i=e.emojis,s=e.emojiSize,l=this.canvas.getBoundingClientRect(),c=l.width,a=l.height,u=5*a/7,p={x:0,y:u},f={x:c,y:u},d=new wl(this.canvasContext),h=0;h<o/2;h++){var m=new yl({initialPosition:p,direction:"right",confettiRadius:n,confettiColors:r,confettiNumber:o,emojis:i,emojiSize:s,canvasWidth:c}),v=new yl({initialPosition:f,direction:"left",confettiRadius:n,confettiColors:r,confettiNumber:o,emojis:i,emojiSize:s,canvasWidth:c});d.addShapes(m,v)}return this.activeConfettiBatches.push(d),this.queueAnimationFrameIfNeeded(),d.getBatchCompletePromise()}}]),t}(),Cl=_l,kl=n(7448),Sl={name:"LightningWidget",props:{name:{type:String,required:!0},to:{type:String,required:!0,default:"reneaaron@getalby.com"},image:{type:String,required:!0},accent:{type:String,default:"#20C997"},buttonText:{type:String,default:"Donate sats"},backgroundImage:{type:String,default:null},address:{type:String,required:!1,default:"reneaaron@getalby.com"},debug:{type:Boolean,default:!1},initialStep:{type:String,default:"start"}},data(){return{currentAmount:this.amount,params:{},loading:!1,paymentRequest:null,step:this.initialStep,comment:"",qrTimeoutElapsed:!1,paymentType:"Invoice",errorTitle:"",errorMessage:""}},computed:{cssProps(){return{"--accent":this.accent,"--color":this.color,"--button-color":(0,kl.luma)(this.accent.substring(1))<200?this.accent:"#000"}},color(){return(0,kl.contrastingColor)(this.accent.substring(1))},backgroundImageStyle(){return this.backgroundImage?{"background-image":`url('${this.backgroundImage}')`}:{}}},async mounted(){const t=document.createElement("link");if(t.setAttribute("href","https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),document.head.appendChild(t),this.to.match(/^[0-9a-fA-F]{66}$/i))this.paymentType="Keysend";else if(this.debug)try{this.params=await(0,kl.fetchParams)(this.to),console.log(this.params,this.to),this.params.min>100||this.params.max<3e4?this.error("Configuration error",`Please make sure the LNURL you provided allows payments between 10 and 1000 sats. (min: ${this.params.min}, max: ${this.params.max})`):(!this.params.commentAllowed||this.params.commentAllowed<100)&&this.error("Configuration error","Please make sure the LNURL you provided allows comments of at least 100 characters in length.")}catch(e){this.error("Configuration error","Are you sure this is a valid lightning address or LNURL?")}},methods:{error:function(t,e){this.errorTitle=t,this.errorMessage=e,this.step="error"},pay:async function(){await this["pay"+this.paymentType]()},payKeysend:async function(){let t=!1;try{this.loading=!0,window.webln?(await window.webln.enable(),await window.webln.keysend({destination:this.to,amount:this.currentAmount,customRecords:{34349334:this.comment}}),this.step="thankyou",this.celebrate()):t=!0}catch(e){t=!0}finally{this.loading=!1}t&&this.error("No wallet available",'You first need to install a browser extension.<br><br><a class="text-link" href="https://www.getalby.com" target="_blank" rel="noopener noreferrer">Learn more</a>')},payInvoice:async function(){let t,e=!1;try{let o;this.loading=!0;try{o=await(0,kl.fetchInvoice)(this.to||this.address,this.currentAmount,this.comment),this.paymentRequest=o.payment_request}catch(n){return this.error("Sorry","An error happend during the payment. Try again?"),void(this.loading=!1)}t=window.webln,t?(await t.enable(),await t.sendPayment(o.payment_request),this.step="thankyou",this.celebrate()):e=!0}catch(n){e=!0}finally{this.loading=!1}e&&this.showQR()},showQR:function(){this.qrTimeoutElapsed=!1,this.step="qr",setTimeout((()=>{this.qrTimeoutElapsed=!0}),3e3)},back:function(){const t=["start","amount","note","pay","qr"];this.step=t[t.indexOf(this.step)-1]},celebrate:function(){const t=this.$refs["confetti"],e=new Cl({canvas:t});e.addConfetti({confettiColors:[this.color]})},reset:function(){this.comment="",this.currentAmount=null,this.paymentRequest=null}}},jl='\n\n/* Reset CSS */\nabbr,address,article,aside,audio,b,blockquote,body,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{text-decoration:none}ins,mark{background-color:#ff9;color:#000}mark{font-style:italic;font-weight:700}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}\n@import url(\'https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap\');\n* {\n font-family: "Inter", sans-serif;\n}\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 0.2s ease-in-out;\n}\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n#root {\n position: relative;\n min-width: 250px;\n width: 100%;\n}\n.card {\n box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.07), 0px 16px 16px rgba(0, 0, 0, 0.07), 0px 8px 8px rgba(0, 0, 0, 0.07), 0px 4px 4px rgba(0, 0, 0, 0.07), 0px 2px 2px rgba(0, 0, 0, 0.07);\n border-radius: 25px;\n color: var(--color);\n padding: 25px;\n background-color: var(--accent);\n /* min-height: 290px; */\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center; \n background-size: cover;\n background-position: center center;\n}\n.card > div {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n.qr {\n background: #FFFFFF;\n box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.07), 0px 16px 16px rgba(0, 0, 0, 0.07), 0px 8px 8px rgba(0, 0, 0, 0.07), 0px 4px 4px rgba(0, 0, 0, 0.07), 0px 2px 2px rgba(0, 0, 0, 0.07);\n border-radius: 5px;\n padding: 8px;\n}\n.mb-1 {\n margin-bottom: 1em;\n}\n.mb-2 {\n margin-bottom: 2em;\n}\n.button {\n font-size: 17px;\n background: #FFFFFF;\n box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.07), 0px 16px 16px rgba(0, 0, 0, 0.07), 0px 8px 8px rgba(0, 0, 0, 0.07), 0px 4px 4px rgba(0, 0, 0, 0.07), 0px 2px 2px rgba(0, 0, 0, 0.07);\n border-radius: 50px;\n padding: 10px 30px;\n border: none;\n flex: none;\n color: var(--button-color);\n font-weight: bold;\n border: 1px solid transparent;\n transition: all 0.1s ease-in;\n}\n.button:hover {\n cursor: pointer;\n background: var(--accent);\n border: 1px solid #FFF;\n color: var(--color);\n}\n.card .image {\n background: #FFFFFF;\n box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.07), 0px 16px 16px rgba(0, 0, 0, 0.07), 0px 8px 8px rgba(0, 0, 0, 0.07), 0px 4px 4px rgba(0, 0, 0, 0.07), 0px 2px 2px rgba(0, 0, 0, 0.07);\n border-radius: 100px;\n max-width: 150px;\n}\n.logo {\n position: absolute;\n top: 16px;\n right: 16px;\n}\ntextarea {\n max-width: 90%;\n background: none;\n border: none;\n outline: none;\n resize: none;\n text-align: center;\n color: var(--color);\n font-size: 17px;\n}\ntextarea::-moz-placeholder {\n color: var(--color);\n opacity: 0.5;\n}\ntextarea::placeholder {\n color: var(--color);\n opacity: 0.5;\n}\ninput {\n font-size: 17px;\n border: none;\n border-radius: 50px;\n padding: 10px 20px;\n text-align: center;\n color: var(--button-color);\n font-weight: bold;\n outline: none;\n font-size: 16px;\n max-width: 200px;\n}\ninput::-moz-placeholder {\n color: var(--button-color);\n opacity: 0.5;\n}\ninput::placeholder {\n color: var(--button-color);\n opacity: 0.5;\n}\ninput[type="number"] {\n -moz-appearance:textfield;\n}\ninput::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n}\na, a:visited, a:active, a:hover {\n color: var(--color);\n font-weight: 500;\n text-decoration: none;\n}\n.pill {\n font-size: 17px;\n border: 1px solid var(--color);\n color: var(--color);\n padding: 0.5em;\n border-radius: 50px;\n flex-grow: 1;\n text-align: center;\n margin-bottom: 1em;\n margin-left: 0.25em;\n margin-right: 0.25em;\n cursor: pointer;\n}\n.pill:hover {\n color: var(--accent);\n background: var(--color);\n}\n.pill-container {\n display: flex; \n flex-direction: row; \n justify-content: center;\n}\n.back {\n position: absolute;\n top: 15px;\n left: 15px;\n z-index: 10;\n}\n#confetti {\n position: absolute; \n top: 0; \n left: 0;\n width: 100%; \n height: 100%; \n border-radius: 25px;\n pointer-events: none;\n}\nh3 {\n font-size: 24px;\n margin: 1em;\n line-height: 29px;\n}\nh4 {\n font-size: 17px;\n margin: 1em;\n line-height: 21px;\n}\np {\n margin: 1em 0;\n line-height: 1.5em;\n}\na.text-link, a.text-link:hover, a.text-link:visited, a.text-link:active {\n color: var(--color);\n text-decoration: underline;\n}\n\n/* Conditional SVG fill / stroke colors */\n.inherit-textcolor, .map-stroke-color {\n stroke: var(--color);\n}\n.map-fill-color {\n fill: var(--color);\n}\n.qr-heading {\n text-align: center; \n margin: 0;\n}\n\n',El=n(89);const Ol=(0,El.Z)(Sl,[["render",Ds],["styles",[jl]]]);var Pl=Ol;const Al=Ri(Pl);customElements.define("lightning-widget",Al)}()})();
|
|
//# sourceMappingURL=app.js.map
|