@worldcoin/idkit 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/idkit-js.js CHANGED
@@ -12,7 +12,7 @@ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};$P.exp
12
12
  The chosen QR Code version cannot contain this amount of data.
13
13
  Minimum version required to store current data is: `+o+`.
14
14
  `);let s=qz(t,r,i),a=bm.getSymbolSize(t),u=new kz(a);return Bz(u,t),jz(u),zz(u,t),Qw(u,r,0),t>=7&&Hz(u,t),Kz(u,s),isNaN(n)&&(n=ex.getBestMask(u,Qw.bind(null,u,r))),ex.applyMask(n,u),Qw(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}YP.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Jw.M,i,o;return typeof r<"u"&&(n=Jw.from(r.errorCorrectionLevel,Jw.M),i=xm.from(r.version),o=ex.from(r.maskPattern),r.toSJISFunc&&bm.setToSJISFunction(r.toSJISFunc)),Gz(t,i,n,o)}});var rx=ee(Xs=>{c();d();f();function JP(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Xs.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:JP(t.color.dark||"#000000ff"),light:JP(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Xs.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Xs.getImageWidth=function(t,r){let n=Xs.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Xs.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=Xs.getScale(i,n),a=Math.floor((i+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let p=0;p<a;p++)for(let h=0;h<a;h++){let y=(p*a+h)*4,v=n.color.light;if(p>=u&&h>=u&&p<a-u&&h<a-u){let w=Math.floor((p-u)/s),_=Math.floor((h-u)/s);v=l[o[w*i+_]?1:0]}t[y++]=v.r,t[y++]=v.g,t[y++]=v.b,t[y]=v.a}}});var ZP=ee(Em=>{c();d();f();var nx=rx();function Yz(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function Xz(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}Em.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=Xz()),i=nx.getOptions(i);let s=nx.getImageWidth(t.modules.size,i),a=o.getContext("2d"),u=a.createImageData(s,s);return nx.qrToImageData(u.data,t,i),Yz(a,o,s),a.putImageData(u,0,0),o};Em.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=Em.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var tD=ee(eD=>{c();d();f();var Jz=rx();function QP(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function ix(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function Zz(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(n+=o?ix("M",u+r,.5+l+r):ix("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(n+=ix("h",s),s=0)):i++}return n}eD.render=function(t,r,n){let i=Jz.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,u=i.color.light.a?"<path "+QP(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+QP(i.color.dark,"stroke")+' d="'+Zz(s,o,i.margin)+'"/>',p='viewBox="0 0 '+a+" "+a+'"',h=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",y='<svg xmlns="http://www.w3.org/2000/svg" '+h+p+' shape-rendering="crispEdges">'+u+l+`</svg>
15
- `;return typeof n=="function"&&n(null,y),y}});var nD=ee(Pf=>{c();d();f();var Qz=nP(),ox=XP(),rD=ZP(),eH=tD();function sx(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!Qz())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let p=ox.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=ox.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Pf.create=ox.create;Pf.toCanvas=sx.bind(null,rD.render);Pf.toDataURL=sx.bind(null,rD.renderToDataURL);Pf.toString=sx.bind(null,function(e,t,r){return eH.render(e,r)})});var pD=ee((y0e,hD)=>{"use strict";c();d();f();function sH(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}hD.exports=aH;function aH(e,t,r){var n=r&&r.stringify||sH,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,y=e&&e.length||0,v=0;v<y;){if(e.charCodeAt(v)===37&&v+1<y){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Number(t[p]),h=v+2,v++;break;case 105:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Math.floor(Number(t[p])),h=v+2,v++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<v&&(l+=e.slice(h,v));var w=typeof t[p];if(w==="string"){l+="'"+t[p]+"'",h=v+2,v++;break}if(w==="function"){l+=t[p].name||"<anonymous>",h=v+2,v++;break}l+=n(t[p]),h=v+2,v++;break;case 115:if(p>=u)break;h<v&&(l+=e.slice(h,v)),l+=String(t[p]),h=v+2,v++;break;case 37:h<v&&(l+=e.slice(h,v)),l+="%",h=v+2,v++,p--;break}++p}++v}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var Tm=ee((v0e,vD)=>{"use strict";c();d();f();var mD=pD();vD.exports=ni;var Df=yH().console||{},uH={mapHttpRequest:Sm,mapHttpResponse:Sm,wrapRequestSerializer:lx,wrapResponseSerializer:lx,wrapErrorSerializer:lx,req:Sm,res:Sm,err:hH};function lH(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ni(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Df;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=lH(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=If),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:pH(e)};u.levels=ni.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=If,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=v,t&&(u._logEvent=cx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,Qu(l,u,"error","log"),Qu(l,u,"fatal","error"),Qu(l,u,"warn","error"),Qu(l,u,"info","log"),Qu(l,u,"debug","log"),Qu(l,u,"trace","log")}function v(w,_){if(!w)throw new Error("missing bindings for child Pino");_=_||{},i&&w.serializers&&(_.serializers=w.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete w.serializers,Cm([w],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=el(R,w,"error"),this.fatal=el(R,w,"fatal"),this.warn=el(R,w,"warn"),this.info=el(R,w,"info"),this.debug=el(R,w,"debug"),this.trace=el(R,w,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=cx([].concat(R._logEvent.bindings,w)))}return P.prototype=this,new P(this)}return u}ni.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};ni.stdSerializers=uH;ni.stdTimeFunctions=Object.assign({},{nullTime:gD,epochTime:yD,unixTime:mH,isoTime:gH});function Qu(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?If:i[r]?i[r]:Df[r]||Df[n]||If,cH(e,t,r)}function cH(e,t,r){!e.transmit&&t[r]===If||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Df?Df:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&Cm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,fH(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=ni.levels.values[l],h=ni.levels.values[r];if(h<p)return;dH(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:ni.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function fH(e,t,r,n){e._serialize&&Cm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=ni.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?mD(i.shift(),i):void 0}else typeof o=="string"&&(o=mD(i.shift(),i));return o!==void 0&&(s.msg=o),s}function Cm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=ni.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function el(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function dH(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;Cm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=cx(u)}function cx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function hH(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function pH(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?gD:yD}function Sm(){return{}}function lx(e){return e}function If(){}function gD(){return!1}function yD(){return Date.now()}function mH(){return Math.round(Date.now()/1e3)}function gH(){return new Date(Date.now()).toISOString()}function yH(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var ko=ee((w0e,fx)=>{"use strict";c();d();f();var tl=typeof Reflect=="object"?Reflect:null,wD=tl&&typeof tl.apply=="function"?tl.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Pm;tl&&typeof tl.ownKeys=="function"?Pm=tl.ownKeys:Object.getOwnPropertySymbols?Pm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Pm=function(t){return Object.getOwnPropertyNames(t)};function vH(e){console&&console.warn&&console.warn(e)}var bD=Number.isNaN||function(t){return t!==t};function Ae(){Ae.init.call(this)}fx.exports=Ae;fx.exports.once=EH;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var xD=10;function Dm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return xD},set:function(e){if(typeof e!="number"||e<0||bD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");xD=e}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||bD(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function ED(e){return e._maxListeners===void 0?Ae.defaultMaxListeners:e._maxListeners}Ae.prototype.getMaxListeners=function(){return ED(this)};Ae.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")wD(u,this,r);else for(var l=u.length,p=PD(u,l),n=0;n<l;++n)wD(p[n],this,r);return!0};function _D(e,t,r,n){var i,o,s;if(Dm(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=ED(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,vH(a)}return e}Ae.prototype.addListener=function(t,r){return _D(this,t,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(t,r){return _D(this,t,r,!0)};function wH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function SD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=wH.bind(n);return i.listener=r,n.wrapFn=i,i}Ae.prototype.once=function(t,r){return Dm(r),this.on(t,SD(this,t,r)),this};Ae.prototype.prependOnceListener=function(t,r){return Dm(r),this.prependListener(t,SD(this,t,r)),this};Ae.prototype.removeListener=function(t,r){var n,i,o,s,a;if(Dm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():xH(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function CD(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?bH(i):PD(i,i.length)}Ae.prototype.listeners=function(t){return CD(this,t,!0)};Ae.prototype.rawListeners=function(t){return CD(this,t,!1)};Ae.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):TD.call(e,t)};Ae.prototype.listenerCount=TD;function TD(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?Pm(this._events):[]};function PD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function xH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function bH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function EH(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}DD(e,t,o,{once:!0}),t!=="error"&&_H(e,i,{once:!0})})}function _H(e,t,r){typeof e.on=="function"&&DD(e,"error",t,r)}function DD(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var hx=ee((x0e,Om)=>{c();d();f();var ID,OD,AD,RD,ND,MD,kD,LD,FD,Im,dx,$D,UD,rl,VD,BD,jD,zD,HD,KD,qD,WD,GD;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Om=="object"&&typeof Om.exports=="object"?e(r(t,r(Om.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};ID=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},OD=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},AD=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},RD=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},ND=function(r,n){return function(i,o){n(i,o,r)}},MD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},kD=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},LD=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},GD=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},FD=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Im=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},dx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},$D=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(dx(arguments[n]));return r},UD=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},rl=function(r){return this instanceof rl?(this.v=r,this):new rl(r)},VD=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},BD=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},jD=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Im=="function"?Im(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},zD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},HD=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},KD=function(r){return r&&r.__esModule?r:{default:r}},qD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},WD=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",ID),e("__assign",OD),e("__rest",AD),e("__decorate",RD),e("__param",ND),e("__metadata",MD),e("__awaiter",kD),e("__generator",LD),e("__exportStar",FD),e("__createBinding",GD),e("__values",Im),e("__read",dx),e("__spread",$D),e("__spreadArrays",UD),e("__await",rl),e("__asyncGenerator",VD),e("__asyncDelegator",BD),e("__asyncValues",jD),e("__makeTemplateObject",zD),e("__importStar",HD),e("__importDefault",KD),e("__classPrivateFieldGet",qD),e("__classPrivateFieldSet",WD)})});var px=ee(Am=>{"use strict";c();d();f();Object.defineProperty(Am,"__esModule",{value:!0});function SH(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}Am.safeJsonParse=SH;function CH(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Am.safeJsonStringify=CH});var YD=ee((E0e,Rm)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?Rm.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Rm.exports=window.localStorage:Rm.exports=new t})()});var XD=ee(Nm=>{"use strict";c();d();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.IKeyValueStorage=void 0;var mx=class{};Nm.IKeyValueStorage=mx});var JD=ee(Mm=>{"use strict";c();d();f();Object.defineProperty(Mm,"__esModule",{value:!0});Mm.parseEntry=void 0;var TH=px();function PH(e){var t;return[e[0],TH.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Mm.parseEntry=PH});var QD=ee(km=>{"use strict";c();d();f();Object.defineProperty(km,"__esModule",{value:!0});var ZD=hx();ZD.__exportStar(XD(),km);ZD.__exportStar(JD(),km)});var tI=ee(Of=>{"use strict";c();d();f();Object.defineProperty(Of,"__esModule",{value:!0});Of.KeyValueStorage=void 0;var nl=hx(),eI=px(),DH=nl.__importDefault(YD()),IH=QD(),Lm=class{constructor(){this.localStorage=DH.default}getKeys(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(IH.parseEntry)})}getItem(t){return nl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return eI.safeJsonParse(r)})}setItem(t,r){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,eI.safeJsonStringify(r))})}removeItem(t){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Of.KeyValueStorage=Lm;Of.default=Lm});var Af=ee((P0e,$m)=>{c();d();f();var rI,nI,iI,oI,sI,aI,uI,lI,cI,Fm,gx,fI,dI,il,hI,pI,mI,gI,yI,vI,wI,xI,bI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof $m=="object"&&typeof $m.exports=="object"?e(r(t,r($m.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};rI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},nI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},iI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},oI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},sI=function(r,n){return function(i,o){n(i,o,r)}},aI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},uI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},lI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},bI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},cI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Fm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},gx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},fI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(gx(arguments[n]));return r},dI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},il=function(r){return this instanceof il?(this.v=r,this):new il(r)},hI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof il?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},pI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:il(r[s](u)),done:s==="return"}:a?a(u):u}:a}},mI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Fm=="function"?Fm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},gI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},yI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},vI=function(r){return r&&r.__esModule?r:{default:r}},wI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},xI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",rI),e("__assign",nI),e("__rest",iI),e("__decorate",oI),e("__param",sI),e("__metadata",aI),e("__awaiter",uI),e("__generator",lI),e("__exportStar",cI),e("__createBinding",bI),e("__values",Fm),e("__read",gx),e("__spread",fI),e("__spreadArrays",dI),e("__await",il),e("__asyncGenerator",hI),e("__asyncDelegator",pI),e("__asyncValues",mI),e("__makeTemplateObject",gI),e("__importStar",yI),e("__importDefault",vI),e("__classPrivateFieldGet",wI),e("__classPrivateFieldSet",xI)})});var Rf=ee((D0e,Vm)=>{c();d();f();var EI,_I,SI,CI,TI,PI,DI,II,OI,Um,yx,AI,RI,ol,NI,MI,kI,LI,FI,$I,UI,VI,BI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Vm=="object"&&typeof Vm.exports=="object"?e(r(t,r(Vm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};EI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},_I=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},SI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},CI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},TI=function(r,n){return function(i,o){n(i,o,r)}},PI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},DI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},II=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},BI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},OI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Um=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},yx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},AI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(yx(arguments[n]));return r},RI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},ol=function(r){return this instanceof ol?(this.v=r,this):new ol(r)},NI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof ol?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},MI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:ol(r[s](u)),done:s==="return"}:a?a(u):u}:a}},kI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Um=="function"?Um(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},LI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},FI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},$I=function(r){return r&&r.__esModule?r:{default:r}},UI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},VI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",EI),e("__assign",_I),e("__rest",SI),e("__decorate",CI),e("__param",TI),e("__metadata",PI),e("__awaiter",DI),e("__generator",II),e("__exportStar",OI),e("__createBinding",BI),e("__values",Um),e("__read",yx),e("__spread",AI),e("__spreadArrays",RI),e("__await",ol),e("__asyncGenerator",NI),e("__asyncDelegator",MI),e("__asyncValues",kI),e("__makeTemplateObject",LI),e("__importStar",FI),e("__importDefault",$I),e("__classPrivateFieldGet",UI),e("__classPrivateFieldSet",VI)})});var jI=ee(Bm=>{"use strict";c();d();f();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.delay=void 0;function OH(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Bm.delay=OH});var zI=ee(sl=>{"use strict";c();d();f();Object.defineProperty(sl,"__esModule",{value:!0});sl.ONE_THOUSAND=sl.ONE_HUNDRED=void 0;sl.ONE_HUNDRED=100;sl.ONE_THOUSAND=1e3});var HI=ee(le=>{"use strict";c();d();f();Object.defineProperty(le,"__esModule",{value:!0});le.ONE_YEAR=le.FOUR_WEEKS=le.THREE_WEEKS=le.TWO_WEEKS=le.ONE_WEEK=le.THIRTY_DAYS=le.SEVEN_DAYS=le.FIVE_DAYS=le.THREE_DAYS=le.ONE_DAY=le.TWENTY_FOUR_HOURS=le.TWELVE_HOURS=le.SIX_HOURS=le.THREE_HOURS=le.ONE_HOUR=le.SIXTY_MINUTES=le.THIRTY_MINUTES=le.TEN_MINUTES=le.FIVE_MINUTES=le.ONE_MINUTE=le.SIXTY_SECONDS=le.THIRTY_SECONDS=le.TEN_SECONDS=le.FIVE_SECONDS=le.ONE_SECOND=void 0;le.ONE_SECOND=1;le.FIVE_SECONDS=5;le.TEN_SECONDS=10;le.THIRTY_SECONDS=30;le.SIXTY_SECONDS=60;le.ONE_MINUTE=le.SIXTY_SECONDS;le.FIVE_MINUTES=le.ONE_MINUTE*5;le.TEN_MINUTES=le.ONE_MINUTE*10;le.THIRTY_MINUTES=le.ONE_MINUTE*30;le.SIXTY_MINUTES=le.ONE_MINUTE*60;le.ONE_HOUR=le.SIXTY_MINUTES;le.THREE_HOURS=le.ONE_HOUR*3;le.SIX_HOURS=le.ONE_HOUR*6;le.TWELVE_HOURS=le.ONE_HOUR*12;le.TWENTY_FOUR_HOURS=le.ONE_HOUR*24;le.ONE_DAY=le.TWENTY_FOUR_HOURS;le.THREE_DAYS=le.ONE_DAY*3;le.FIVE_DAYS=le.ONE_DAY*5;le.SEVEN_DAYS=le.ONE_DAY*7;le.THIRTY_DAYS=le.ONE_DAY*30;le.ONE_WEEK=le.SEVEN_DAYS;le.TWO_WEEKS=le.ONE_WEEK*2;le.THREE_WEEKS=le.ONE_WEEK*3;le.FOUR_WEEKS=le.ONE_WEEK*4;le.ONE_YEAR=le.ONE_DAY*365});var vx=ee(jm=>{"use strict";c();d();f();Object.defineProperty(jm,"__esModule",{value:!0});var KI=Rf();KI.__exportStar(zI(),jm);KI.__exportStar(HI(),jm)});var WI=ee(al=>{"use strict";c();d();f();Object.defineProperty(al,"__esModule",{value:!0});al.fromMiliseconds=al.toMiliseconds=void 0;var qI=vx();function AH(e){return e*qI.ONE_THOUSAND}al.toMiliseconds=AH;function RH(e){return Math.floor(e/qI.ONE_THOUSAND)}al.fromMiliseconds=RH});var YI=ee(zm=>{"use strict";c();d();f();Object.defineProperty(zm,"__esModule",{value:!0});var GI=Rf();GI.__exportStar(jI(),zm);GI.__exportStar(WI(),zm)});var XI=ee(Nf=>{"use strict";c();d();f();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.Watch=void 0;var Hm=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};Nf.Watch=Hm;Nf.default=Hm});var JI=ee(Km=>{"use strict";c();d();f();Object.defineProperty(Km,"__esModule",{value:!0});Km.IWatch=void 0;var wx=class{};Km.IWatch=wx});var ZI=ee(xx=>{"use strict";c();d();f();Object.defineProperty(xx,"__esModule",{value:!0});var NH=Rf();NH.__exportStar(JI(),xx)});var Oi=ee(ul=>{"use strict";c();d();f();Object.defineProperty(ul,"__esModule",{value:!0});var qm=Rf();qm.__exportStar(YI(),ul);qm.__exportStar(XI(),ul);qm.__exportStar(ZI(),ul);qm.__exportStar(vx(),ul)});var jn,QI=ba(()=>{c();d();f();jn=class{}});var eO={};fr(eO,{IEvents:()=>jn});var Wm=ba(()=>{c();d();f();QI()});var tO=ee(Gm=>{"use strict";c();d();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.IHeartBeat=void 0;var MH=(Wm(),I2(eO)),bx=class extends MH.IEvents{constructor(t){super()}};Gm.IHeartBeat=bx});var _x=ee(Ex=>{"use strict";c();d();f();Object.defineProperty(Ex,"__esModule",{value:!0});var kH=Af();kH.__exportStar(tO(),Ex)});var rO=ee(ll=>{"use strict";c();d();f();Object.defineProperty(ll,"__esModule",{value:!0});ll.HEARTBEAT_EVENTS=ll.HEARTBEAT_INTERVAL=void 0;var LH=Oi();ll.HEARTBEAT_INTERVAL=LH.FIVE_SECONDS;ll.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Cx=ee(Sx=>{"use strict";c();d();f();Object.defineProperty(Sx,"__esModule",{value:!0});var FH=Af();FH.__exportStar(rO(),Sx)});var nO=ee(Ym=>{"use strict";c();d();f();Object.defineProperty(Ym,"__esModule",{value:!0});Ym.HeartBeat=void 0;var Tx=Af(),$H=ko(),UH=Oi(),VH=_x(),Px=Cx(),Mf=class extends VH.IHeartBeat{constructor(t){super(t),this.events=new $H.EventEmitter,this.interval=Px.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||Px.HEARTBEAT_INTERVAL}static init(t){return Tx.__awaiter(this,void 0,void 0,function*(){let r=new Mf(t);return yield r.init(),r})}init(){return Tx.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return Tx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),UH.toMiliseconds(this.interval))})}pulse(){this.events.emit(Px.HEARTBEAT_EVENTS.pulse)}};Ym.HeartBeat=Mf});var iO=ee(kf=>{"use strict";c();d();f();Object.defineProperty(kf,"__esModule",{value:!0});var Dx=Af();Dx.__exportStar(nO(),kf);Dx.__exportStar(_x(),kf);Dx.__exportStar(Cx(),kf)});var CO=ee((W0e,Jm)=>{c();d();f();var oO,sO,aO,uO,lO,cO,fO,dO,hO,Xm,Ix,pO,mO,cl,gO,yO,vO,wO,xO,bO,EO,_O,SO;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Jm=="object"&&typeof Jm.exports=="object"?e(r(t,r(Jm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};oO=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},sO=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},aO=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},uO=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},lO=function(r,n){return function(i,o){n(i,o,r)}},cO=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},fO=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},dO=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},SO=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},hO=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Xm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Ix=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},pO=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Ix(arguments[n]));return r},mO=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},cl=function(r){return this instanceof cl?(this.v=r,this):new cl(r)},gO=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof cl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},yO=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:cl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},vO=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Xm=="function"?Xm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},wO=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},xO=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},bO=function(r){return r&&r.__esModule?r:{default:r}},EO=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},_O=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",oO),e("__assign",sO),e("__rest",aO),e("__decorate",uO),e("__param",lO),e("__metadata",cO),e("__awaiter",fO),e("__generator",dO),e("__exportStar",hO),e("__createBinding",SO),e("__values",Xm),e("__read",Ix),e("__spread",pO),e("__spreadArrays",mO),e("__await",cl),e("__asyncGenerator",gO),e("__asyncDelegator",yO),e("__asyncValues",vO),e("__makeTemplateObject",wO),e("__importStar",xO),e("__importDefault",bO),e("__classPrivateFieldGet",EO),e("__classPrivateFieldSet",_O)})});var Ox=ee(fl=>{"use strict";c();d();f();Object.defineProperty(fl,"__esModule",{value:!0});fl.PINO_CUSTOM_CONTEXT_KEY=fl.PINO_LOGGER_DEFAULTS=void 0;fl.PINO_LOGGER_DEFAULTS={level:"info"};fl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var OO=ee(Br=>{"use strict";c();d();f();Object.defineProperty(Br,"__esModule",{value:!0});Br.generateChildLogger=Br.formatChildLoggerContext=Br.getLoggerContext=Br.setBrowserLoggerContext=Br.getBrowserLoggerContext=Br.getDefaultLoggerOptions=void 0;var dl=Ox();function BH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||dl.PINO_LOGGER_DEFAULTS.level})}Br.getDefaultLoggerOptions=BH;function TO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Br.getBrowserLoggerContext=TO;function PO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Br.setBrowserLoggerContext=PO;function DO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=TO(e,t):r=e.bindings().context||"",r}Br.getLoggerContext=DO;function IO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=DO(e,r);return n.trim()?`${n}/${t}`:t}Br.formatChildLoggerContext=IO;function jH(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=IO(e,t,r),i=e.child({context:n});return PO(i,n,r)}Br.generateChildLogger=jH});var Rx=ee(hl=>{"use strict";c();d();f();Object.defineProperty(hl,"__esModule",{value:!0});hl.pino=void 0;var Ax=CO(),zH=Ax.__importDefault(Tm());Object.defineProperty(hl,"pino",{enumerable:!0,get:function(){return zH.default}});Ax.__exportStar(Ox(),hl);Ax.__exportStar(OO(),hl)});var NO=ee(s0=>{"use strict";c();d();f();Object.defineProperty(s0,"__esModule",{value:!0});s0.BrowserRandomSource=void 0;var RO=65536,Nx=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=RO)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,RO)));return r}};s0.BrowserRandomSource=Nx});var Sn=ee(Mx=>{"use strict";c();d();f();Object.defineProperty(Mx,"__esModule",{value:!0});function HH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Mx.wipe=HH});var MO=ee(()=>{c();d();f()});var kO=ee(a0=>{"use strict";c();d();f();Object.defineProperty(a0,"__esModule",{value:!0});a0.NodeRandomSource=void 0;var KH=Sn(),kx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof D2<"u"){let t=MO();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,KH.wipe)(r),n}};a0.NodeRandomSource=kx});var LO=ee(u0=>{"use strict";c();d();f();Object.defineProperty(u0,"__esModule",{value:!0});u0.SystemRandomSource=void 0;var qH=NO(),WH=kO(),Lx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new qH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new WH.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};u0.SystemRandomSource=Lx});var FO=ee(on=>{"use strict";c();d();f();Object.defineProperty(on,"__esModule",{value:!0});function GH(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}on.mul=Math.imul||GH;function YH(e,t){return e+t|0}on.add=YH;function XH(e,t){return e-t|0}on.sub=XH;function JH(e,t){return e<<t|e>>>32-t}on.rotl=JH;function ZH(e,t){return e<<32-t|e>>>t}on.rotr=ZH;function QH(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}on.isInteger=Number.isInteger||QH;on.MAX_SAFE_INTEGER=9007199254740991;on.isSafeInteger=function(e){return on.isInteger(e)&&e>=-on.MAX_SAFE_INTEGER&&e<=on.MAX_SAFE_INTEGER}});var ml=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var $O=FO();function eK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=eK;function tK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=tK;function rK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=rK;function nK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=nK;function UO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}we.writeUint16BE=UO;we.writeInt16BE=UO;function VO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}we.writeUint16LE=VO;we.writeInt16LE=VO;function Fx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Fx;function $x(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}we.readUint32BE=$x;function Ux(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=Ux;function Vx(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}we.readUint32LE=Vx;function l0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}we.writeUint32BE=l0;we.writeInt32BE=l0;function c0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}we.writeUint32LE=c0;we.writeInt32LE=c0;function iK(e,t){t===void 0&&(t=0);var r=Fx(e,t),n=Fx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=iK;function oK(e,t){t===void 0&&(t=0);var r=$x(e,t),n=$x(e,t+4);return r*4294967296+n}we.readUint64BE=oK;function sK(e,t){t===void 0&&(t=0);var r=Ux(e,t),n=Ux(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=sK;function aK(e,t){t===void 0&&(t=0);var r=Vx(e,t),n=Vx(e,t+4);return n*4294967296+r}we.readUint64LE=aK;function BO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),l0(e/4294967296>>>0,t,r),l0(e>>>0,t,r+4),t}we.writeUint64BE=BO;we.writeInt64BE=BO;function jO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),c0(e>>>0,t,r),c0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=jO;we.writeInt64LE=jO;function uK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}we.readUintBE=uK;function lK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}we.readUintLE=lK;function cK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!$O.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}we.writeUintBE=cK;function fK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!$O.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}we.writeUintLE=fK;function dK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=dK;function hK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=hK;function pK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=pK;function mK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=mK;function gK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}we.writeFloat32BE=gK;function yK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}we.writeFloat32LE=yK;function vK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}we.writeFloat64BE=vK;function wK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}we.writeFloat64LE=wK});var Js=ee(xr=>{"use strict";c();d();f();Object.defineProperty(xr,"__esModule",{value:!0});xr.randomStringForEntropy=xr.randomString=xr.randomUint32=xr.randomBytes=xr.defaultRandomSource=void 0;var xK=LO(),bK=ml(),zO=Sn();xr.defaultRandomSource=new xK.SystemRandomSource;function Bx(e,t=xr.defaultRandomSource){return t.randomBytes(e)}xr.randomBytes=Bx;function EK(e=xr.defaultRandomSource){let t=Bx(4,e),r=(0,bK.readUint32LE)(t);return(0,zO.wipe)(t),r}xr.randomUint32=EK;var HO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function KO(e,t=HO,r=xr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=Bx(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,zO.wipe)(s)}return n}xr.randomString=KO;function _K(e,t=HO,r=xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return KO(n,t,r)}xr.randomStringForEntropy=_K});var GO=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var yl=ml(),gl=Sn();Ai.DIGEST_LENGTH=64;Ai.BLOCK_SIZE=128;var WO=function(){function e(){this.digestLength=Ai.DIGEST_LENGTH,this.blockSize=Ai.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){gl.wipe(this._buffer),gl.wipe(this._tempHi),gl.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<Ai.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;yl.writeUint32BE(i,this._buffer,s-8),yl.writeUint32BE(o,this._buffer,s-4),jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)yl.writeUint32BE(this._stateHi[a],t,a*8),yl.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){gl.wipe(t.stateHi),gl.wipe(t.stateLo),t.buffer&&gl.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Ai.SHA512=WO;var qO=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function jx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],v=r[6],w=r[7],_=n[0],D=n[1],C=n[2],I=n[3],P=n[4],R=n[5],U=n[6],j=n[7],F,$,G,X,W,J,N,m;s>=128;){for(var E=0;E<16;E++){var O=8*E+o;e[E]=yl.readUint32BE(i,O),t[E]=yl.readUint32BE(i,O+4)}for(var E=0;E<80;E++){var A=a,M=u,V=l,B=p,k=h,b=y,L=v,Z=w,T=_,z=D,K=C,q=I,Q=P,ie=R,re=U,te=j;if(F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(h>>>14|P<<32-14)^(h>>>18|P<<32-18)^(P>>>41-32|h<<32-(41-32)),$=(P>>>14|h<<32-14)^(P>>>18|h<<32-18)^(h>>>41-32|P<<32-(41-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=h&y^~h&v,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=qO[E*2],$=qO[E*2+1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=e[E%16],$=t[E%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,G=N&65535|m<<16,X=W&65535|J<<16,F=G,$=X,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),$=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=a&u^a&l^u&l,$=_&D^_&C^D&C,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,Z=N&65535|m<<16,te=W&65535|J<<16,F=B,$=q,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=G,$=X,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,B=N&65535|m<<16,q=W&65535|J<<16,u=A,l=M,p=V,h=B,y=k,v=b,w=L,a=Z,D=T,C=z,I=K,P=q,R=Q,U=ie,j=re,_=te,E%16===15)for(var O=0;O<16;O++)F=e[O],$=t[O],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(O+9)%16],$=t[(O+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+1)%16],X=t[(O+1)%16],F=(G>>>1|X<<32-1)^(G>>>8|X<<32-8)^G>>>7,$=(X>>>1|G<<32-1)^(X>>>8|G<<32-8)^(X>>>7|G<<32-7),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+14)%16],X=t[(O+14)%16],F=(G>>>19|X<<32-19)^(X>>>61-32|G<<32-(61-32))^G>>>6,$=(X>>>19|G<<32-19)^(G>>>61-32|X<<32-(61-32))^(X>>>6|G<<32-6),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,e[O]=N&65535|m<<16,t[O]=W&65535|J<<16}F=a,$=_,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[0],$=n[0],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[0]=a=N&65535|m<<16,n[0]=_=W&65535|J<<16,F=u,$=D,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[1],$=n[1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[1]=u=N&65535|m<<16,n[1]=D=W&65535|J<<16,F=l,$=C,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[2],$=n[2],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[2]=l=N&65535|m<<16,n[2]=C=W&65535|J<<16,F=p,$=I,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[3],$=n[3],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[3]=p=N&65535|m<<16,n[3]=I=W&65535|J<<16,F=h,$=P,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[4],$=n[4],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[4]=h=N&65535|m<<16,n[4]=P=W&65535|J<<16,F=y,$=R,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[5],$=n[5],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[5]=y=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=v,$=U,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[6],$=n[6],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[6]=v=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[7],$=n[7],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[7]=w=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function SK(e){var t=new WO;t.update(e);var r=t.digest();return t.clean(),r}Ai.hash=SK});var uA=ee(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertSecretKeyToX25519=Ie.convertPublicKeyToX25519=Ie.verify=Ie.sign=Ie.extractPublicKeyFromSecretKey=Ie.generateKeyPair=Ie.generateKeyPairFromSeed=Ie.SEED_LENGTH=Ie.SECRET_KEY_LENGTH=Ie.PUBLIC_KEY_LENGTH=Ie.SIGNATURE_LENGTH=void 0;var CK=Js(),Ff=GO(),QO=Sn();Ie.SIGNATURE_LENGTH=64;Ie.PUBLIC_KEY_LENGTH=32;Ie.SECRET_KEY_LENGTH=64;Ie.SEED_LENGTH=32;function me(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var TK=new Uint8Array(32);TK[0]=9;var Kx=me(),vl=me([1]),PK=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),DK=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),YO=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),XO=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),IK=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lo(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function zx(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function eA(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function $f(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];zx(n),zx(n),zx(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,eA(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function tA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function JO(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return $f(r,e),$f(n,t),tA(r,n)}function rA(e){let t=new Uint8Array(32);return $f(t,e),t[0]&1}function OK(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Zs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function ea(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Re(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Qs(e,t){Re(e,t,t)}function nA(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Qs(r,r),n!==2&&n!==4&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function AK(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Qs(r,r),n!==1&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function qx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();ea(r,e[1],e[0]),ea(p,t[1],t[0]),Re(r,r,p),Zs(n,e[0],e[1]),Zs(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,DK),Re(o,e[2],t[2]),Zs(o,o,o),ea(s,n,r),ea(a,o,i),Zs(u,o,i),Zs(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function ZO(e,t,r){for(let n=0;n<4;n++)eA(e[n],t[n],r)}function Gx(e,t){let r=me(),n=me(),i=me();nA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),$f(e,n),e[31]^=rA(r)<<7}function iA(e,t,r){Lo(e[0],Kx),Lo(e[1],vl),Lo(e[2],vl),Lo(e[3],Kx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;ZO(e,t,i),qx(t,e),qx(e,e),ZO(e,t,i)}}function Yx(e,t){let r=[me(),me(),me(),me()];Lo(r[0],YO),Lo(r[1],XO),Lo(r[2],vl),Re(r[3],YO,XO),iA(e,r,t)}function oA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,Ff.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Yx(n,t),Gx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=oA;function RK(e){let t=(0,CK.randomBytes)(32,e),r=oA(t);return(0,QO.wipe)(t),r}Ie.generateKeyPair=RK;function NK(e){if(e.length!==Ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Ie.extractPublicKeyFromSecretKey=NK;var Hx=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function sA(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*Hx[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*Hx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Hx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Wx(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;sA(e,t)}function MK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,Ff.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new Ff.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),Wx(a),Yx(n,a),Gx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();Wx(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return sA(o.subarray(32),r),o}Ie.sign=MK;function aA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Lo(e[2],vl),OK(e[1],t),Qs(i,e[1]),Re(o,i,PK),ea(i,i,e[2]),Zs(o,e[2],o),Qs(s,o),Qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),AK(r,r),Re(r,r,i),Re(r,r,o),Re(r,r,o),Re(e[0],r,o),Qs(n,e[0]),Re(n,n,o),JO(n,i)&&Re(e[0],e[0],IK),Qs(n,e[0]),Re(n,n,o),JO(n,i)?-1:(rA(e[0])===t[31]>>7&&ea(e[0],Kx,e[0]),Re(e[3],e[0],e[1]),0)}function kK(e,t,r){let n=new Uint8Array(32),i=[me(),me(),me(),me()],o=[me(),me(),me(),me()];if(r.length!==Ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Ie.SIGNATURE_LENGTH} bytes`);if(aA(o,e))return!1;let s=new Ff.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Wx(a),iA(i,o,a),Yx(o,r.subarray(32)),qx(i,o),Gx(n,i),!tA(r,n)}Ie.verify=kK;function LK(e){let t=[me(),me(),me(),me()];if(aA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Zs(r,vl,i),ea(n,vl,i),nA(n,n),Re(r,r,n);let o=new Uint8Array(32);return $f(o,r),o}Ie.convertPublicKeyToX25519=LK;function FK(e){let t=(0,Ff.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,QO.wipe)(t),r}Ie.convertSecretKeyToX25519=FK});var KA=ee(x0=>{"use strict";c();d();f();Object.defineProperty(x0,"__esModule",{value:!0});var br=ml(),xb=Sn(),Jq=20;function Zq(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],D=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],I=t[15]<<24|t[14]<<16|t[13]<<8|t[12],P=n,R=i,U=o,j=s,F=a,$=u,G=l,X=p,W=h,J=y,N=v,m=w,E=_,O=D,A=C,M=I,V=0;V<Jq;V+=2)P=P+F|0,E^=P,E=E>>>32-16|E<<16,W=W+E|0,F^=W,F=F>>>32-12|F<<12,R=R+$|0,O^=R,O=O>>>32-16|O<<16,J=J+O|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,A^=U,A=A>>>32-16|A<<16,N=N+A|0,G^=N,G=G>>>32-12|G<<12,j=j+X|0,M^=j,M=M>>>32-16|M<<16,m=m+M|0,X^=m,X=X>>>32-12|X<<12,U=U+G|0,A^=U,A=A>>>32-8|A<<8,N=N+A|0,G^=N,G=G>>>32-7|G<<7,j=j+X|0,M^=j,M=M>>>32-8|M<<8,m=m+M|0,X^=m,X=X>>>32-7|X<<7,R=R+$|0,O^=R,O=O>>>32-8|O<<8,J=J+O|0,$^=J,$=$>>>32-7|$<<7,P=P+F|0,E^=P,E=E>>>32-8|E<<8,W=W+E|0,F^=W,F=F>>>32-7|F<<7,P=P+$|0,M^=P,M=M>>>32-16|M<<16,N=N+M|0,$^=N,$=$>>>32-12|$<<12,R=R+G|0,E^=R,E=E>>>32-16|E<<16,m=m+E|0,G^=m,G=G>>>32-12|G<<12,U=U+X|0,O^=U,O=O>>>32-16|O<<16,W=W+O|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,A^=j,A=A>>>32-16|A<<16,J=J+A|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,O^=U,O=O>>>32-8|O<<8,W=W+O|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,A^=j,A=A>>>32-8|A<<8,J=J+A|0,F^=J,F=F>>>32-7|F<<7,R=R+G|0,E^=R,E=E>>>32-8|E<<8,m=m+E|0,G^=m,G=G>>>32-7|G<<7,P=P+$|0,M^=P,M=M>>>32-8|M<<8,N=N+M|0,$^=N,$=$>>>32-7|$<<7;br.writeUint32LE(P+n|0,e,0),br.writeUint32LE(R+i|0,e,4),br.writeUint32LE(U+o|0,e,8),br.writeUint32LE(j+s|0,e,12),br.writeUint32LE(F+a|0,e,16),br.writeUint32LE($+u|0,e,20),br.writeUint32LE(G+l|0,e,24),br.writeUint32LE(X+p|0,e,28),br.writeUint32LE(W+h|0,e,32),br.writeUint32LE(J+y|0,e,36),br.writeUint32LE(N+v|0,e,40),br.writeUint32LE(m+w|0,e,44),br.writeUint32LE(E+_|0,e,48),br.writeUint32LE(O+D|0,e,52),br.writeUint32LE(A+C|0,e,56),br.writeUint32LE(M+I|0,e,60)}function HA(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){Zq(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];eW(o,0,s)}return xb.wipe(a),i===0&&xb.wipe(o),n}x0.streamXOR=HA;function Qq(e,t,r,n){return n===void 0&&(n=0),xb.wipe(r),HA(e,t,r,r,n)}x0.stream=Qq;function eW(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var b0=ee(Tl=>{"use strict";c();d();f();Object.defineProperty(Tl,"__esModule",{value:!0});function tW(e,t,r){return~(e-1)&t|e-1&r}Tl.select=tW;function rW(e,t){return(e|0)-(t|0)-1>>>31&1}Tl.lessOrEqual=rW;function qA(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Tl.compare=qA;function nW(e,t){return e.length===0||t.length===0?!1:qA(e,t)!==0}Tl.equal=nW});var GA=ee(Ni=>{"use strict";c();d();f();Object.defineProperty(Ni,"__esModule",{value:!0});var iW=b0(),E0=Sn();Ni.DIGEST_LENGTH=16;var WA=function(){function e(t){this.digestLength=Ni.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],v=this._h[8],w=this._h[9],_=this._r[0],D=this._r[1],C=this._r[2],I=this._r[3],P=this._r[4],R=this._r[5],U=this._r[6],j=this._r[7],F=this._r[8],$=this._r[9];n>=16;){var G=t[r+0]|t[r+1]<<8;o+=G&8191;var X=t[r+2]|t[r+3]<<8;s+=(G>>>13|X<<3)&8191;var W=t[r+4]|t[r+5]<<8;a+=(X>>>10|W<<6)&8191;var J=t[r+6]|t[r+7]<<8;u+=(W>>>7|J<<9)&8191;var N=t[r+8]|t[r+9]<<8;l+=(J>>>4|N<<12)&8191,p+=N>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(N>>>14|m<<2)&8191;var E=t[r+12]|t[r+13]<<8;y+=(m>>>11|E<<5)&8191;var O=t[r+14]|t[r+15]<<8;v+=(E>>>8|O<<8)&8191,w+=O>>>5|i;var A=0,M=A;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),A=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=y*(5*I),M+=v*(5*C),M+=w*(5*D),A+=M>>>13,M&=8191;var V=A;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),A=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=y*(5*P),V+=v*(5*I),V+=w*(5*C),A+=V>>>13,V&=8191;var B=A;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),A=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=y*(5*R),B+=v*(5*P),B+=w*(5*I),A+=B>>>13,B&=8191;var k=A;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),A=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=y*(5*U),k+=v*(5*R),k+=w*(5*P),A+=k>>>13,k&=8191;var b=A;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,A=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=y*(5*j),b+=v*(5*U),b+=w*(5*R),A+=b>>>13,b&=8191;var L=A;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,A=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=y*(5*F),L+=v*(5*j),L+=w*(5*U),A+=L>>>13,L&=8191;var Z=A;Z+=o*U,Z+=s*R,Z+=a*P,Z+=u*I,Z+=l*C,A=Z>>>13,Z&=8191,Z+=p*D,Z+=h*_,Z+=y*(5*$),Z+=v*(5*F),Z+=w*(5*j),A+=Z>>>13,Z&=8191;var T=A;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,A=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=y*_,T+=v*(5*$),T+=w*(5*F),A+=T>>>13,T&=8191;var z=A;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,A=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=y*D,z+=v*_,z+=w*(5*$),A+=z>>>13,z&=8191;var K=A;K+=o*$,K+=s*F,K+=a*j,K+=u*U,K+=l*R,A=K>>>13,K&=8191,K+=p*P,K+=h*I,K+=y*C,K+=v*D,K+=w*_,A+=K>>>13,K&=8191,A=(A<<2)+A|0,A=A+M|0,M=A&8191,A=A>>>13,V+=A,o=M,s=V,a=B,u=k,l=b,p=L,h=Z,y=T,v=z,w=K,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=v,this._h[9]=w},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return E0.wipe(this._buffer),E0.wipe(this._r),E0.wipe(this._h),E0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ni.Poly1305=WA;function oW(e,t){var r=new WA(e);r.update(t);var n=r.digest();return r.clean(),n}Ni.oneTimeAuth=oW;function sW(e,t){return e.length!==Ni.DIGEST_LENGTH||t.length!==Ni.DIGEST_LENGTH?!1:iW.equal(e,t)}Ni.equal=sW});var S0=ee(Mi=>{"use strict";c();d();f();Object.defineProperty(Mi,"__esModule",{value:!0});var _0=KA(),aW=GA(),Hf=Sn(),YA=ml(),uW=b0();Mi.KEY_LENGTH=32;Mi.NONCE_LENGTH=12;Mi.TAG_LENGTH=16;var XA=new Uint8Array(16),lW=function(){function e(t){if(this.nonceLength=Mi.NONCE_LENGTH,this.tagLength=Mi.TAG_LENGTH,t.length!==Mi.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return _0.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),Hf.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!uW.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return _0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),Hf.wipe(o),l},e.prototype.clean=function(){return Hf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new aW.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(XA.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(XA.subarray(n.length%16));var s=new Uint8Array(8);i&&YA.writeUint64LE(i.length,s),o.update(s),YA.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),Hf.wipe(a),Hf.wipe(s)},e}();Mi.ChaCha20Poly1305=lW});var JA=ee(bb=>{"use strict";c();d();f();Object.defineProperty(bb,"__esModule",{value:!0});function cW(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}bb.isSerializableHash=cW});var QA=ee(Kf=>{"use strict";c();d();f();Object.defineProperty(Kf,"__esModule",{value:!0});var oi=JA(),fW=b0(),dW=Sn(),ZA=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),oi.isSerializableHash(this._inner)&&oi.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),dW.wipe(n)}return e.prototype.reset=function(){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){oi.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),oi.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Kf.HMAC=ZA;function hW(e,t,r){var n=new ZA(e,t);n.update(r);var i=n.digest();return n.clean(),i}Kf.hmac=hW;Kf.equal=fW.equal});var C0=ee(Eb=>{"use strict";c();d();f();Object.defineProperty(Eb,"__esModule",{value:!0});var eR=QA(),tR=Sn(),pW=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=eR.hmac(this._hash,n,r);this._hmac=new eR.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),tR.wipe(this._buffer),tR.wipe(this._counter),this._bufpos=0},e}();Eb.HKDF=pW});var D0=ee($o=>{"use strict";c();d();f();Object.defineProperty($o,"__esModule",{value:!0});var P0=ml(),T0=Sn();$o.DIGEST_LENGTH=32;$o.BLOCK_SIZE=64;var rR=function(){function e(){this.digestLength=$o.DIGEST_LENGTH,this.blockSize=$o.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){T0.wipe(this._buffer),T0.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(_b(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=_b(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;P0.writeUint32BE(i,this._buffer,s-8),P0.writeUint32BE(o,this._buffer,s-4),_b(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)P0.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){T0.wipe(t.state),t.buffer&&T0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();$o.SHA256=rR;var mW=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function _b(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],v=0;v<16;v++){var w=n+v*4;e[v]=P0.readUint32BE(r,w)}for(var v=16;v<64;v++){var _=e[v-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[v-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[v]=(D+e[v-7]|0)+(C+e[v-16]|0)}for(var v=0;v<64;v++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(mW[v]+e[v]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;y=h,h=p,p=l,l=u+D|0,u=a,a=s,s=o,o=D+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,i-=64}return n}function gW(e){var t=new rR;t.update(e);var r=t.digest();return t.clean(),r}$o.hash=gW});var A0=ee(Nt=>{"use strict";c();d();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.sharedKey=Nt.generateKeyPair=Nt.generateKeyPairFromSeed=Nt.scalarMultBase=Nt.scalarMult=Nt.SHARED_KEY_LENGTH=Nt.SECRET_KEY_LENGTH=Nt.PUBLIC_KEY_LENGTH=void 0;var yW=Js(),vW=Sn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function si(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var nR=new Uint8Array(32);nR[0]=9;var wW=si([56129,1]);function Sb(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function qf(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function xW(e,t){let r=si(),n=si();for(let i=0;i<16;i++)n[i]=t[i];Sb(n),Sb(n),Sb(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,qf(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function bW(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function I0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function O0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function ki(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Wf(e,t){ki(e,t,t)}function EW(e,t){let r=si();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Wf(r,r),n!==2&&n!==4&&ki(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function Cb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=si(),o=si(),s=si(),a=si(),u=si(),l=si();for(let v=0;v<31;v++)r[v]=e[v];r[31]=e[31]&127|64,r[0]&=248,bW(n,t);for(let v=0;v<16;v++)o[v]=n[v];i[0]=a[0]=1;for(let v=254;v>=0;--v){let w=r[v>>>3]>>>(v&7)&1;qf(i,o,w),qf(s,a,w),I0(u,i,s),O0(i,i,s),I0(s,o,a),O0(o,o,a),Wf(a,u),Wf(l,i),ki(i,s,i),ki(s,o,u),I0(u,i,s),O0(i,i,s),Wf(o,i),O0(s,a,l),ki(i,s,wW),I0(i,i,a),ki(s,s,i),ki(i,a,l),ki(a,o,n),Wf(o,u),qf(i,o,w),qf(s,a,w)}for(let v=0;v<16;v++)n[v+16]=i[v],n[v+32]=s[v],n[v+48]=o[v],n[v+64]=a[v];let p=n.subarray(32),h=n.subarray(16);EW(p,p),ki(h,h,p);let y=new Uint8Array(32);return xW(y,h),y}Nt.scalarMult=Cb;function iR(e){return Cb(e,nR)}Nt.scalarMultBase=iR;function oR(e){if(e.length!==Nt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Nt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:iR(t),secretKey:t}}Nt.generateKeyPairFromSeed=oR;function _W(e){let t=(0,yW.randomBytes)(32,e),r=oR(t);return(0,vW.wipe)(t),r}Nt.generateKeyPair=_W;function SW(e,t,r=!1){if(e.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Cb(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Nt.sharedKey=SW});var na=ee(Ue=>{"use strict";c();d();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getLocalStorage=Ue.getLocalStorageOrThrow=Ue.getCrypto=Ue.getCryptoOrThrow=Ue.getLocation=Ue.getLocationOrThrow=Ue.getNavigator=Ue.getNavigatorOrThrow=Ue.getDocument=Ue.getDocumentOrThrow=Ue.getFromWindowOrThrow=Ue.getFromWindow=void 0;function ra(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=ra;function Dl(e){let t=ra(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=Dl;function $W(){return Dl("document")}Ue.getDocumentOrThrow=$W;function UW(){return ra("document")}Ue.getDocument=UW;function VW(){return Dl("navigator")}Ue.getNavigatorOrThrow=VW;function BW(){return ra("navigator")}Ue.getNavigator=BW;function jW(){return Dl("location")}Ue.getLocationOrThrow=jW;function zW(){return ra("location")}Ue.getLocation=zW;function HW(){return Dl("crypto")}Ue.getCryptoOrThrow=HW;function KW(){return ra("crypto")}Ue.getCrypto=KW;function qW(){return Dl("localStorage")}Ue.getLocalStorageOrThrow=qW;function WW(){return ra("localStorage")}Ue.getLocalStorage=WW});var pR=ee(N0=>{"use strict";c();d();f();Object.defineProperty(N0,"__esModule",{value:!0});N0.getWindowMetadata=void 0;var hR=na();function GW(){let e,t;try{e=hR.getDocumentOrThrow(),t=hR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}N0.getWindowMetadata=GW});var M0=ee((n1e,mR)=>{"use strict";c();d();f();mR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var k0=ee((i1e,wR)=>{"use strict";c();d();f();var vR="%[a-f0-9]{2}",gR=new RegExp("("+vR+")|([^%]+?)","gi"),yR=new RegExp("("+vR+")+","gi");function Pb(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Pb(r),Pb(n))}function YW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(gR)||[],r=1;r<t.length;r++)e=Pb(t,r).join(""),t=e.match(gR)||[];return e}}function XW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=yR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=YW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=yR.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}wR.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return XW(e)}}});var L0=ee((o1e,xR)=>{"use strict";c();d();f();xR.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var F0=ee((s1e,bR)=>{"use strict";c();d();f();bR.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var IR=ee(jr=>{"use strict";c();d();f();var JW=M0(),ZW=k0(),_R=L0(),QW=F0(),eG=e=>e==null,Db=Symbol("encodeFragmentIdentifier");function tG(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[",i,"]"].join("")]:[...r,[Lt(t,e),"[",Lt(i,e),"]=",Lt(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[]"].join("")]:[...r,[Lt(t,e),"[]=",Lt(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),":list="].join("")]:[...r,[Lt(t,e),":list=",Lt(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Lt(r,e),t,Lt(i,e)].join("")]:[[n,Lt(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Lt(t,e)]:[...r,[Lt(t,e),"=",Lt(n,e)].join("")]}}function rG(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Li(n,e).includes(e.arrayFormatSeparator);n=s?Li(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Li(u,e)):n===null?n:Li(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Li(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Li(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function SR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?JW(e):encodeURIComponent(e):e}function Li(e,t){return t.decode?ZW(e):e}function CR(e){return Array.isArray(e)?e.sort():typeof e=="object"?CR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function TR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function nG(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function PR(e){e=TR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function ER(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function DR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),SR(t.arrayFormatSeparator);let r=rG(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=_R(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Li(s,t),r(Li(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=ER(o[s],t);else n[i]=ER(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=CR(s):i[o]=s,i},Object.create(null))}jr.extract=PR;jr.parse=DR;jr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),SR(t.arrayFormatSeparator);let r=s=>t.skipNull&&eG(e[s])||t.skipEmptyString&&e[s]==="",n=tG(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Lt(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Lt(s,t)+"[]":a.reduce(n(s),[]).join("&"):Lt(s,t)+"="+Lt(a,t)}).filter(s=>s.length>0).join("&")};jr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=_R(e,"#");return Object.assign({url:r.split("?")[0]||"",query:DR(PR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Li(n,t)}:{})};jr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Db]:!0},t);let r=TR(e.url).split("?")[0]||"",n=jr.extract(e.url),i=jr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=jr.stringify(o,t);s&&(s=`?${s}`);let a=nG(e.url);return e.fragmentIdentifier&&(a=`#${t[Db]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};jr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Db]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=jr.parseUrl(e,r);return jr.stringifyUrl({url:n,query:QW(i,t),fragmentIdentifier:o},r)};jr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return jr.pick(e,n,r)}});var DN=ee(($1e,Q0)=>{c();d();f();var uN,lN,cN,fN,dN,hN,pN,mN,gN,Z0,Hb,yN,vN,Rl,wN,xN,bN,EN,_N,SN,CN,TN,PN;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Q0=="object"&&typeof Q0.exports=="object"?e(r(t,r(Q0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};uN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},lN=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},cN=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},fN=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},dN=function(r,n){return function(i,o){n(i,o,r)}},hN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},pN=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},mN=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},PN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},gN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Z0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Hb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},yN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Hb(arguments[n]));return r},vN=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Rl=function(r){return this instanceof Rl?(this.v=r,this):new Rl(r)},wN=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof Rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},xN=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},bN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Z0=="function"?Z0(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},EN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},_N=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},SN=function(r){return r&&r.__esModule?r:{default:r}},CN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},TN=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",uN),e("__assign",lN),e("__rest",cN),e("__decorate",fN),e("__param",dN),e("__metadata",hN),e("__awaiter",pN),e("__generator",mN),e("__exportStar",gN),e("__createBinding",PN),e("__values",Z0),e("__read",Hb),e("__spread",yN),e("__spreadArrays",vN),e("__await",Rl),e("__asyncGenerator",wN),e("__asyncDelegator",xN),e("__asyncValues",bN),e("__makeTemplateObject",EN),e("__importStar",_N),e("__importDefault",SN),e("__classPrivateFieldGet",CN),e("__classPrivateFieldSet",TN)})});var ON=ee(Bo=>{"use strict";c();d();f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.isBrowserCryptoAvailable=Bo.getSubtleCrypto=Bo.getBrowerCrypto=void 0;function Kb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Bo.getBrowerCrypto=Kb;function IN(){let e=Kb();return e.subtle||e.webkitSubtle}Bo.getSubtleCrypto=IN;function AG(){return!!Kb()&&!!IN()}Bo.isBrowserCryptoAvailable=AG});var NN=ee(jo=>{"use strict";c();d();f();Object.defineProperty(jo,"__esModule",{value:!0});jo.isBrowser=jo.isNode=jo.isReactNative=void 0;function AN(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}jo.isReactNative=AN;function RN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}jo.isNode=RN;function RG(){return!AN()&&!RN()}jo.isBrowser=RG});var qb=ee(eg=>{"use strict";c();d();f();Object.defineProperty(eg,"__esModule",{value:!0});var MN=DN();MN.__exportStar(ON(),eg);MN.__exportStar(NN(),eg)});var jN=ee((wve,BN)=>{"use strict";c();d();f();BN.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var PM=ee((rd,Fl)=>{c();d();f();var HG=200,aE="__lodash_hash_undefined__",hg=1,iM=2,oM=9007199254740991,sg="[object Arguments]",eE="[object Array]",KG="[object AsyncFunction]",sM="[object Boolean]",aM="[object Date]",uM="[object Error]",lM="[object Function]",qG="[object GeneratorFunction]",ag="[object Map]",cM="[object Number]",WG="[object Null]",Ll="[object Object]",WN="[object Promise]",GG="[object Proxy]",fM="[object RegExp]",ug="[object Set]",dM="[object String]",YG="[object Symbol]",XG="[object Undefined]",tE="[object WeakMap]",hM="[object ArrayBuffer]",lg="[object DataView]",JG="[object Float32Array]",ZG="[object Float64Array]",QG="[object Int8Array]",eY="[object Int16Array]",tY="[object Int32Array]",rY="[object Uint8Array]",nY="[object Uint8ClampedArray]",iY="[object Uint16Array]",oY="[object Uint32Array]",sY=/[\\^$.*+?()[\]{}|]/g,aY=/^\[object .+?Constructor\]$/,uY=/^(?:0|[1-9]\d*)$/,bt={};bt[JG]=bt[ZG]=bt[QG]=bt[eY]=bt[tY]=bt[rY]=bt[nY]=bt[iY]=bt[oY]=!0;bt[sg]=bt[eE]=bt[hM]=bt[sM]=bt[lg]=bt[aM]=bt[uM]=bt[lM]=bt[ag]=bt[cM]=bt[Ll]=bt[fM]=bt[ug]=bt[dM]=bt[tE]=!1;var pM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,lY=typeof self=="object"&&self&&self.Object===Object&&self,Fi=pM||lY||Function("return this")(),mM=typeof rd=="object"&&rd&&!rd.nodeType&&rd,GN=mM&&typeof Fl=="object"&&Fl&&!Fl.nodeType&&Fl,gM=GN&&GN.exports===mM,Jb=gM&&pM.process,YN=function(){try{return Jb&&Jb.binding&&Jb.binding("util")}catch(e){}}(),XN=YN&&YN.isTypedArray;function cY(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function fY(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function dY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function hY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function pY(e){return function(t){return e(t)}}function mY(e,t){return e.has(t)}function gY(e,t){return e==null?void 0:e[t]}function yY(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function vY(e,t){return function(r){return e(t(r))}}function wY(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var xY=Array.prototype,bY=Function.prototype,pg=Object.prototype,Zb=Fi["__core-js_shared__"],yM=bY.toString,ai=pg.hasOwnProperty,JN=function(){var e=/[^.]+$/.exec(Zb&&Zb.keys&&Zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vM=pg.toString,EY=RegExp("^"+yM.call(ai).replace(sY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZN=gM?Fi.Buffer:void 0,cg=Fi.Symbol,QN=Fi.Uint8Array,wM=pg.propertyIsEnumerable,_Y=xY.splice,ua=cg?cg.toStringTag:void 0,eM=Object.getOwnPropertySymbols,SY=ZN?ZN.isBuffer:void 0,CY=vY(Object.keys,Object),rE=$l(Fi,"DataView"),nd=$l(Fi,"Map"),nE=$l(Fi,"Promise"),iE=$l(Fi,"Set"),oE=$l(Fi,"WeakMap"),id=$l(Object,"create"),TY=fa(rE),PY=fa(nd),DY=fa(nE),IY=fa(iE),OY=fa(oE),tM=cg?cg.prototype:void 0,Qb=tM?tM.valueOf:void 0;function la(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function AY(){this.__data__=id?id(null):{},this.size=0}function RY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function NY(e){var t=this.__data__;if(id){var r=t[e];return r===aE?void 0:r}return ai.call(t,e)?t[e]:void 0}function MY(e){var t=this.__data__;return id?t[e]!==void 0:ai.call(t,e)}function kY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=id&&t===void 0?aE:t,this}la.prototype.clear=AY;la.prototype.delete=RY;la.prototype.get=NY;la.prototype.has=MY;la.prototype.set=kY;function $i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function LY(){this.__data__=[],this.size=0}function FY(e){var t=this.__data__,r=mg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_Y.call(t,r,1),--this.size,!0}function $Y(e){var t=this.__data__,r=mg(t,e);return r<0?void 0:t[r][1]}function UY(e){return mg(this.__data__,e)>-1}function VY(e,t){var r=this.__data__,n=mg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}$i.prototype.clear=LY;$i.prototype.delete=FY;$i.prototype.get=$Y;$i.prototype.has=UY;$i.prototype.set=VY;function ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function BY(){this.size=0,this.__data__={hash:new la,map:new(nd||$i),string:new la}}function jY(e){var t=gg(this,e).delete(e);return this.size-=t?1:0,t}function zY(e){return gg(this,e).get(e)}function HY(e){return gg(this,e).has(e)}function KY(e,t){var r=gg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ca.prototype.clear=BY;ca.prototype.delete=jY;ca.prototype.get=zY;ca.prototype.has=HY;ca.prototype.set=KY;function fg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ca;++t<r;)this.add(e[t])}function qY(e){return this.__data__.set(e,aE),this}function WY(e){return this.__data__.has(e)}fg.prototype.add=fg.prototype.push=qY;fg.prototype.has=WY;function Ko(e){var t=this.__data__=new $i(e);this.size=t.size}function GY(){this.__data__=new $i,this.size=0}function YY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function XY(e){return this.__data__.get(e)}function JY(e){return this.__data__.has(e)}function ZY(e,t){var r=this.__data__;if(r instanceof $i){var n=r.__data__;if(!nd||n.length<HG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ca(n)}return r.set(e,t),this.size=r.size,this}Ko.prototype.clear=GY;Ko.prototype.delete=YY;Ko.prototype.get=XY;Ko.prototype.has=JY;Ko.prototype.set=ZY;function QY(e,t){var r=dg(e),n=!r&&pX(e),i=!r&&!n&&sE(e),o=!r&&!n&&!i&&TM(e),s=r||n||i||o,a=s?hY(e.length,String):[],u=a.length;for(var l in e)(t||ai.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||lX(l,u)))&&a.push(l);return a}function mg(e,t){for(var r=e.length;r--;)if(EM(e[r][0],t))return r;return-1}function eX(e,t,r){var n=t(e);return dg(e)?n:fY(n,r(e))}function sd(e){return e==null?e===void 0?XG:WG:ua&&ua in Object(e)?aX(e):hX(e)}function rM(e){return od(e)&&sd(e)==sg}function xM(e,t,r,n,i){return e===t?!0:e==null||t==null||!od(e)&&!od(t)?e!==e&&t!==t:tX(e,t,r,n,xM,i)}function tX(e,t,r,n,i,o){var s=dg(e),a=dg(t),u=s?eE:Ho(e),l=a?eE:Ho(t);u=u==sg?Ll:u,l=l==sg?Ll:l;var p=u==Ll,h=l==Ll,y=u==l;if(y&&sE(e)){if(!sE(t))return!1;s=!0,p=!1}if(y&&!p)return o||(o=new Ko),s||TM(e)?bM(e,t,r,n,i,o):oX(e,t,u,r,n,i,o);if(!(r&hg)){var v=p&&ai.call(e,"__wrapped__"),w=h&&ai.call(t,"__wrapped__");if(v||w){var _=v?e.value():e,D=w?t.value():t;return o||(o=new Ko),i(_,D,r,n,o)}}return y?(o||(o=new Ko),sX(e,t,r,n,i,o)):!1}function rX(e){if(!CM(e)||fX(e))return!1;var t=_M(e)?EY:aY;return t.test(fa(e))}function nX(e){return od(e)&&SM(e.length)&&!!bt[sd(e)]}function iX(e){if(!dX(e))return CY(e);var t=[];for(var r in Object(e))ai.call(e,r)&&r!="constructor"&&t.push(r);return t}function bM(e,t,r,n,i,o){var s=r&hg,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,y=r&iM?new fg:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var v=e[p],w=t[p];if(n)var _=s?n(w,v,p,t,e,o):n(v,w,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(y){if(!dY(t,function(D,C){if(!mY(y,C)&&(v===D||i(v,D,r,n,o)))return y.push(C)})){h=!1;break}}else if(!(v===w||i(v,w,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function oX(e,t,r,n,i,o,s){switch(r){case lg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hM:return!(e.byteLength!=t.byteLength||!o(new QN(e),new QN(t)));case sM:case aM:case cM:return EM(+e,+t);case uM:return e.name==t.name&&e.message==t.message;case fM:case dM:return e==t+"";case ag:var a=yY;case ug:var u=n&hg;if(a||(a=wY),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=iM,s.set(e,t);var p=bM(a(e),a(t),n,i,o,s);return s.delete(e),p;case YG:if(Qb)return Qb.call(e)==Qb.call(t)}return!1}function sX(e,t,r,n,i,o){var s=r&hg,a=nM(e),u=a.length,l=nM(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:ai.call(t,y)))return!1}var v=o.get(e);if(v&&o.get(t))return v==t;var w=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){y=a[h];var D=e[y],C=t[y];if(n)var I=s?n(C,D,y,t,e,o):n(D,C,y,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){w=!1;break}_||(_=y=="constructor")}if(w&&!_){var P=e.constructor,R=t.constructor;P!=R&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(w=!1)}return o.delete(e),o.delete(t),w}function nM(e){return eX(e,yX,uX)}function gg(e,t){var r=e.__data__;return cX(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $l(e,t){var r=gY(e,t);return rX(r)?r:void 0}function aX(e){var t=ai.call(e,ua),r=e[ua];try{e[ua]=void 0;var n=!0}catch(o){}var i=vM.call(e);return n&&(t?e[ua]=r:delete e[ua]),i}var uX=eM?function(e){return e==null?[]:(e=Object(e),cY(eM(e),function(t){return wM.call(e,t)}))}:vX,Ho=sd;(rE&&Ho(new rE(new ArrayBuffer(1)))!=lg||nd&&Ho(new nd)!=ag||nE&&Ho(nE.resolve())!=WN||iE&&Ho(new iE)!=ug||oE&&Ho(new oE)!=tE)&&(Ho=function(e){var t=sd(e),r=t==Ll?e.constructor:void 0,n=r?fa(r):"";if(n)switch(n){case TY:return lg;case PY:return ag;case DY:return WN;case IY:return ug;case OY:return tE}return t});function lX(e,t){return t=t==null?oM:t,!!t&&(typeof e=="number"||uY.test(e))&&e>-1&&e%1==0&&e<t}function cX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fX(e){return!!JN&&JN in e}function dX(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pg;return e===r}function hX(e){return vM.call(e)}function fa(e){if(e!=null){try{return yM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function EM(e,t){return e===t||e!==e&&t!==t}var pX=rM(function(){return arguments}())?rM:function(e){return od(e)&&ai.call(e,"callee")&&!wM.call(e,"callee")},dg=Array.isArray;function mX(e){return e!=null&&SM(e.length)&&!_M(e)}var sE=SY||wX;function gX(e,t){return xM(e,t)}function _M(e){if(!CM(e))return!1;var t=sd(e);return t==lM||t==qG||t==KG||t==GG}function SM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oM}function CM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function od(e){return e!=null&&typeof e=="object"}var TM=XN?pY(XN):nX;function yX(e){return mX(e)?QY(e):iX(e)}function vX(){return[]}function wX(){return!1}Fl.exports=gX});var u7=ee(Eg=>{"use strict";c();d();f();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getWindowMetadata=void 0;var a7=na();function CZ(){let e,t;try{e=a7.getDocumentOrThrow(),t=a7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Eg.getWindowMetadata=CZ});var g7=ee(Hr=>{"use strict";c();d();f();var TZ=M0(),PZ=k0(),c7=L0(),DZ=F0(),IZ=e=>e==null,AE=Symbol("encodeFragmentIdentifier");function OZ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[",i,"]"].join("")]:[...r,[$t(t,e),"[",$t(i,e),"]=",$t(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[]"].join("")]:[...r,[$t(t,e),"[]=",$t(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),":list="].join("")]:[...r,[$t(t,e),":list=",$t(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[$t(r,e),t,$t(i,e)].join("")]:[[n,$t(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,$t(t,e)]:[...r,[$t(t,e),"=",$t(n,e)].join("")]}}function AZ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Vi(n,e).includes(e.arrayFormatSeparator);n=s?Vi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Vi(u,e)):n===null?n:Vi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Vi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Vi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function f7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $t(e,t){return t.encode?t.strict?TZ(e):encodeURIComponent(e):e}function Vi(e,t){return t.decode?PZ(e):e}function d7(e){return Array.isArray(e)?e.sort():typeof e=="object"?d7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function h7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function RZ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function p7(e){e=h7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function l7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function m7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f7(t.arrayFormatSeparator);let r=AZ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=c7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Vi(s,t),r(Vi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=l7(o[s],t);else n[i]=l7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=d7(s):i[o]=s,i},Object.create(null))}Hr.extract=p7;Hr.parse=m7;Hr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f7(t.arrayFormatSeparator);let r=s=>t.skipNull&&IZ(e[s])||t.skipEmptyString&&e[s]==="",n=OZ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?$t(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?$t(s,t)+"[]":a.reduce(n(s),[]).join("&"):$t(s,t)+"="+$t(a,t)}).filter(s=>s.length>0).join("&")};Hr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=c7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m7(p7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Vi(n,t)}:{})};Hr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[AE]:!0},t);let r=h7(e.url).split("?")[0]||"",n=Hr.extract(e.url),i=Hr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Hr.stringify(o,t);s&&(s=`?${s}`);let a=RZ(e.url);return e.fragmentIdentifier&&(a=`#${t[AE]?$t(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Hr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[AE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Hr.parseUrl(e,r);return Hr.stringifyUrl({url:n,query:DZ(i,t),fragmentIdentifier:o},r)};Hr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Hr.pick(e,n,r)}});var q7=ee(Pg=>{"use strict";c();d();f();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.getWindowMetadata=void 0;var K7=na();function rQ(){let e,t;try{e=K7.getDocumentOrThrow(),t=K7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Pg.getWindowMetadata=rQ});var ek=ee(qr=>{"use strict";c();d();f();var nQ=M0(),iQ=k0(),G7=L0(),oQ=F0(),sQ=e=>e==null,qE=Symbol("encodeFragmentIdentifier");function aQ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[",i,"]"].join("")]:[...r,[Ut(t,e),"[",Ut(i,e),"]=",Ut(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[]"].join("")]:[...r,[Ut(t,e),"[]=",Ut(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),":list="].join("")]:[...r,[Ut(t,e),":list=",Ut(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Ut(r,e),t,Ut(i,e)].join("")]:[[n,Ut(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Ut(t,e)]:[...r,[Ut(t,e),"=",Ut(n,e)].join("")]}}function uQ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Bi(n,e).includes(e.arrayFormatSeparator);n=s?Bi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Bi(u,e)):n===null?n:Bi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Bi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Bi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function Y7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ut(e,t){return t.encode?t.strict?nQ(e):encodeURIComponent(e):e}function Bi(e,t){return t.decode?iQ(e):e}function X7(e){return Array.isArray(e)?e.sort():typeof e=="object"?X7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function J7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function lQ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Z7(e){e=J7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function W7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Q7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),Y7(t.arrayFormatSeparator);let r=uQ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=G7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Bi(s,t),r(Bi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=W7(o[s],t);else n[i]=W7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=X7(s):i[o]=s,i},Object.create(null))}qr.extract=Z7;qr.parse=Q7;qr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Y7(t.arrayFormatSeparator);let r=s=>t.skipNull&&sQ(e[s])||t.skipEmptyString&&e[s]==="",n=aQ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Ut(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Ut(s,t)+"[]":a.reduce(n(s),[]).join("&"):Ut(s,t)+"="+Ut(a,t)}).filter(s=>s.length>0).join("&")};qr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=G7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Q7(Z7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Bi(n,t)}:{})};qr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[qE]:!0},t);let r=J7(e.url).split("?")[0]||"",n=qr.extract(e.url),i=qr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=qr.stringify(o,t);s&&(s=`?${s}`);let a=lQ(e.url);return e.fragmentIdentifier&&(a=`#${t[qE]?Ut(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};qr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[qE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=qr.parseUrl(e,r);return qr.stringifyUrl({url:n,query:oQ(i,t),fragmentIdentifier:o},r)};qr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return qr.pick(e,n,r)}});var ok=ee((Xve,Dg)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Dg=="object"&&Dg.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],v=[6,1536,393216,100663296],w=[0,8,16,24],_=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],D=[224,256,384,512],C=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],P={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var R=function(T,z,K){return function(q){return new b(T,z,T).update(q)[K]()}},U=function(T,z,K){return function(q,Q){return new b(T,z,Q).update(q)[K]()}},j=function(T,z,K){return function(q,Q,ie,re){return m["cshake"+T].update(q,Q,ie,re)[K]()}},F=function(T,z,K){return function(q,Q,ie,re){return m["kmac"+T].update(q,Q,ie,re)[K]()}},$=function(T,z,K,q){for(var Q=0;Q<I.length;++Q){var ie=I[Q];T[ie]=z(K,q,ie)}return T},G=function(T,z){var K=R(T,z,"hex");return K.create=function(){return new b(T,z,T)},K.update=function(q){return K.create().update(q)},$(K,R,T,z)},X=function(T,z){var K=U(T,z,"hex");return K.create=function(q){return new b(T,z,q)},K.update=function(q,Q){return K.create(Q).update(q)},$(K,U,T,z)},W=function(T,z){var K=P[T],q=j(T,z,"hex");return q.create=function(Q,ie,re){return!ie&&!re?m["shake"+T].create(Q):new b(T,z,Q).bytepad([ie,re],K)},q.update=function(Q,ie,re,te){return q.create(ie,re,te).update(Q)},$(q,j,T,z)},J=function(T,z){var K=P[T],q=F(T,z,"hex");return q.create=function(Q,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],K).bytepad([Q],K)},q.update=function(Q,ie,re,te){return q.create(Q,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:y,bits:D,createMethod:G},{name:"sha3",padding:v,bits:D,createMethod:G},{name:"shake",padding:p,bits:C,createMethod:X},{name:"cshake",padding:h,bits:C,createMethod:W},{name:"kmac",padding:h,bits:C,createMethod:J}],m={},E=[],O=0;O<N.length;++O)for(var A=N[O],M=A.bits,V=0;V<M.length;++V){var B=A.name+"_"+M[V];if(E.push(B),m[B]=A.createMethod(M[V],A.padding),A.name!=="sha3"){var k=A.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,K){this.blocks=[],this.s=[],this.padding=z,this.outputBits=K,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}for(var q=this.blocks,Q=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,ae;te<ie;){if(this.reset)for(this.reset=!1,q[0]=this.block,ne=1;ne<re+1;++ne)q[ne]=0;if(z)for(ne=this.start;te<ie&&ne<Q;++te)q[ne>>2]|=T[te]<<w[ne++&3];else for(ne=this.start;te<ie&&ne<Q;++te)ae=T.charCodeAt(te),ae<128?q[ne>>2]|=ae<<w[ne++&3]:ae<2048?(q[ne>>2]|=(192|ae>>6)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):ae<55296||ae>=57344?(q[ne>>2]|=(224|ae>>12)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):(ae=65536+((ae&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|ae>>18)<<w[ne++&3],q[ne>>2]|=(128|ae>>12&63)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]);if(this.lastByteIndex=ne,ne>=Q){for(this.start=ne-Q,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Z(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var K=T&255,q=1,Q=[K];for(T=T>>8,K=T&255;K>0;)Q.unshift(K),T=T>>8,K=T&255,++q;return z?Q.push(q):Q.unshift(q),this.update(Q),Q.length},b.prototype.encodeString=function(T){var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}var q=0,Q=T.length;if(z)q=Q;else for(var ie=0;ie<T.length;++ie){var re=T.charCodeAt(ie);re<128?q+=1:re<2048?q+=2:re<55296||re>=57344?q+=3:(re=65536+((re&1023)<<10|T.charCodeAt(++ie)&1023),q+=4)}return q+=this.encode(q*8),this.update(T),q},b.prototype.bytepad=function(T,z){for(var K=this.encode(z),q=0;q<T.length;++q)K+=this.encodeString(T[q]);var Q=z-K%z,ie=[];return ie.length=Q,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,K=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[K],z=1;z<K+1;++z)T[z]=0;for(T[K-1]|=2147483648,z=0;z<K;++z)q[z]^=T[z];Z(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re="",te;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=z[Q],re+=l[te>>4&15]+l[te&15]+l[te>>12&15]+l[te>>8&15]+l[te>>20&15]+l[te>>16&15]+l[te>>28&15]+l[te>>24&15];ie%T===0&&(Z(z),Q=0)}return q&&(te=z[Q],re+=l[te>>4&15]+l[te&15],q>1&&(re+=l[te>>12&15]+l[te>>8&15]),q>2&&(re+=l[te>>20&15]+l[te>>16&15])),re},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(K+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)he[ie]=z[Q];ie%T===0&&Z(z)}return q&&(he[Q]=z[Q],te=te.slice(0,re)),te},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=[],te,he;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=ie<<2,he=z[Q],re[te]=he&255,re[te+1]=he>>8&255,re[te+2]=he>>16&255,re[te+3]=he>>24&255;ie%T===0&&Z(z)}return q&&(te=ie<<2,he=z[Q],re[te]=he&255,q>1&&(re[te+1]=he>>8&255),q>2&&(re[te+2]=he>>16&255)),re};function L(T,z,K){b.call(this,T,z,K)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Z=function(T){var z,K,q,Q,ie,re,te,he,ne,ae,Xo,Be,je,Jo,ze,He,Zo,Ke,qe,Qo,We,Ge,es,Ye,Xe,ts,Je,Ze,rs,Qe,et,ns,tt,rt,is,nt,it,os,ot,st,ss,at,ut,as,lt,ct,us,ft,dt,ls,ht,pt,cs,mt,gt,fs,yt,vt,Hi,Ki,qi,Wi,Gi;for(q=0;q<48;q+=2)Q=T[0]^T[10]^T[20]^T[30]^T[40],ie=T[1]^T[11]^T[21]^T[31]^T[41],re=T[2]^T[12]^T[22]^T[32]^T[42],te=T[3]^T[13]^T[23]^T[33]^T[43],he=T[4]^T[14]^T[24]^T[34]^T[44],ne=T[5]^T[15]^T[25]^T[35]^T[45],ae=T[6]^T[16]^T[26]^T[36]^T[46],Xo=T[7]^T[17]^T[27]^T[37]^T[47],Be=T[8]^T[18]^T[28]^T[38]^T[48],je=T[9]^T[19]^T[29]^T[39]^T[49],z=Be^(re<<1|te>>>31),K=je^(te<<1|re>>>31),T[0]^=z,T[1]^=K,T[10]^=z,T[11]^=K,T[20]^=z,T[21]^=K,T[30]^=z,T[31]^=K,T[40]^=z,T[41]^=K,z=Q^(he<<1|ne>>>31),K=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=K,T[12]^=z,T[13]^=K,T[22]^=z,T[23]^=K,T[32]^=z,T[33]^=K,T[42]^=z,T[43]^=K,z=re^(ae<<1|Xo>>>31),K=te^(Xo<<1|ae>>>31),T[4]^=z,T[5]^=K,T[14]^=z,T[15]^=K,T[24]^=z,T[25]^=K,T[34]^=z,T[35]^=K,T[44]^=z,T[45]^=K,z=he^(Be<<1|je>>>31),K=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=K,T[16]^=z,T[17]^=K,T[26]^=z,T[27]^=K,T[36]^=z,T[37]^=K,T[46]^=z,T[47]^=K,z=ae^(Q<<1|ie>>>31),K=Xo^(ie<<1|Q>>>31),T[8]^=z,T[9]^=K,T[18]^=z,T[19]^=K,T[28]^=z,T[29]^=K,T[38]^=z,T[39]^=K,T[48]^=z,T[49]^=K,Jo=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,us=T[10]<<4|T[11]>>>28,Ze=T[20]<<3|T[21]>>>29,rs=T[21]<<3|T[20]>>>29,Ki=T[31]<<9|T[30]>>>23,qi=T[30]<<9|T[31]>>>23,at=T[40]<<18|T[41]>>>14,ut=T[41]<<18|T[40]>>>14,rt=T[2]<<1|T[3]>>>31,is=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,Zo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Qe=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Wi=T[42]<<2|T[43]>>>30,Gi=T[43]<<2|T[42]>>>30,mt=T[5]<<30|T[4]>>>2,gt=T[4]<<30|T[5]>>>2,nt=T[14]<<6|T[15]>>>26,it=T[15]<<6|T[14]>>>26,Ke=T[25]<<11|T[24]>>>21,qe=T[24]<<11|T[25]>>>21,ls=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,ns=T[45]<<29|T[44]>>>3,tt=T[44]<<29|T[45]>>>3,Ye=T[6]<<28|T[7]>>>4,Xe=T[7]<<28|T[6]>>>4,fs=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,os=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Qo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,cs=T[46]<<24|T[47]>>>8,as=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,ts=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Hi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,ss=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,es=T[49]<<14|T[48]>>>18,T[0]=Jo^~He&Ke,T[1]=ze^~Zo&qe,T[10]=Ye^~ts&Ze,T[11]=Xe^~Je&rs,T[20]=rt^~nt&os,T[21]=is^~it&ot,T[30]=as^~ct&ft,T[31]=lt^~us&dt,T[40]=mt^~fs&vt,T[41]=gt^~yt&Hi,T[2]=He^~Ke&Qo,T[3]=Zo^~qe&We,T[12]=ts^~Ze&Qe,T[13]=Je^~rs&et,T[22]=nt^~os&st,T[23]=it^~ot&ss,T[32]=ct^~ft&ls,T[33]=us^~dt&ht,T[42]=fs^~vt&Ki,T[43]=yt^~Hi&qi,T[4]=Ke^~Qo&Ge,T[5]=qe^~We&es,T[14]=Ze^~Qe&ns,T[15]=rs^~et&tt,T[24]=os^~st&at,T[25]=ot^~ss&ut,T[34]=ft^~ls&pt,T[35]=dt^~ht&cs,T[44]=vt^~Ki&Wi,T[45]=Hi^~qi&Gi,T[6]=Qo^~Ge&Jo,T[7]=We^~es&ze,T[16]=Qe^~ns&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=ss^~ut&is,T[36]=ls^~pt&as,T[37]=ht^~cs&lt,T[46]=Ki^~Wi&mt,T[47]=qi^~Gi&gt,T[8]=Ge^~Jo&He,T[9]=es^~ze&Zo,T[18]=ns^~Ye&ts,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~is&it,T[38]=pt^~as&ct,T[39]=cs^~lt&us,T[48]=Wi^~mt&fs,T[49]=Gi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)Dg.exports=m;else{for(O=0;O<E.length;++O)n[E[O]]=m[E[O]];a&&define(function(){return m})}})()});var sk=ee(()=>{c();d();f()});var uk=ee((ak,YE)=>{c();d();f();(function(e,t){"use strict";function r(N,m){if(!N)throw new Error(m||"Assertion failed")}function n(N,m){N.super_=m;var E=function(){};E.prototype=m.prototype,N.prototype=new E,N.prototype.constructor=N}function i(N,m,E){if(i.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(N||0,m||10,E||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=sk().Buffer}catch(N){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,E){return m.cmp(E)>0?m:E},i.min=function(m,E){return m.cmp(E)<0?m:E},i.prototype._init=function(m,E,O){if(typeof m=="number")return this._initNumber(m,E,O);if(typeof m=="object")return this._initArray(m,E,O);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A<m.length&&(E===16?this._parseHex(m,A,O):(this._parseBase(m,E,A),O==="le"&&this._initArray(this.toArray(),E,O)))},i.prototype._initNumber=function(m,E,O){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),O==="le"&&this._initArray(this.toArray(),E,O)},i.prototype._initArray=function(m,E,O){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M,V,B=0;if(O==="be")for(A=m.length-1,M=0;A>=0;A-=3)V=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);else if(O==="le")for(A=0,M=0;A<m.length;A+=3)V=m[A]|m[A+1]<<8|m[A+2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);return this._strip()};function s(N,m){var E=N.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+N)}function a(N,m,E){var O=s(N,E);return E-1>=m&&(O|=s(N,E-1)<<4),O}i.prototype._parseHex=function(m,E,O){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M=0,V=0,B;if(O==="be")for(A=m.length-1;A>=E;A-=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8;else{var k=m.length-E;for(A=k%2===0?E+1:E;A<m.length;A+=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8}this._strip()};function u(N,m,E,O){for(var A=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;A*=O,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<O,"Invalid character"),A+=M}return A}i.prototype._parseBase=function(m,E,O){this.words=[0],this.length=1;for(var A=0,M=1;M<=67108863;M*=E)A++;A--,M=M/E|0;for(var V=m.length-O,B=V%A,k=Math.min(V,V-B)+O,b=0,L=O;L<k;L+=A)b=u(m,L,L+A,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Z=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Z*=E;this.imuln(Z),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(N,m){N.words=m.words,N.length=m.length,N.negative=m.negative,N.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(N){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,E){m=m||10,E=E|0||1;var O;if(m===16||m==="hex"){O="";for(var A=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<A|M)&16777215).toString(16);M=B>>>24-A&16777215,A+=2,A>=26&&(A-=26,V--),M!==0||V!==this.length-1?O=h[6-k.length]+k+O:O=k+O}for(M!==0&&(O=M.toString(16)+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(m===(m|0)&&m>=2&&m<=36){var b=y[m],L=v[m];O="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var T=Z.modrn(L).toString(m);Z=Z.idivn(L),Z.isZero()?O=T+O:O=h[b-T.length]+T+O}for(this.isZero()&&(O="0"+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),i.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var w=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,O){this._strip();var A=this.byteLength(),M=O||Math.max(1,A);r(A<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=w(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,A),V},i.prototype._toArrayLikeLE=function(m,E){for(var O=0,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O++]=B&255,O<m.length&&(m[O++]=B>>8&255),O<m.length&&(m[O++]=B>>16&255),V===6?(O<m.length&&(m[O++]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O<m.length)for(m[O++]=A;O<m.length;)m[O++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var O=m.length-1,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O--]=B&255,O>=0&&(m[O--]=B>>8&255),O>=0&&(m[O--]=B>>16&255),V===6?(O>=0&&(m[O--]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O>=0)for(m[O--]=A;O>=0;)m[O--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,O=0;return E>=4096&&(O+=13,E>>>=13),E>=64&&(O+=7,E>>>=7),E>=8&&(O+=4,E>>>=4),E>=2&&(O+=2,E>>>=2),O+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,O=0;return(E&8191)===0&&(O+=13,E>>>=13),(E&127)===0&&(O+=7,E>>>=7),(E&15)===0&&(O+=4,E>>>=4),(E&3)===0&&(O+=2,E>>>=2),(E&1)===0&&O++,O},i.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function _(N){for(var m=new Array(N.bitLength()),E=0;E<m.length;E++){var O=E/26|0,A=E%26;m[E]=N.words[O]>>>A&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var O=this._zeroBits(this.words[E]);if(m+=O,O!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var O=0;O<E.length;O++)this.words[O]=this.words[O]&m.words[O];return this.length=E.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var E,O;this.length>m.length?(E=this,O=m):(E=m,O=this);for(var A=0;A<O.length;A++)this.words[A]=E.words[A]^O.words[A];if(this!==E)for(;A<E.length;A++)this.words[A]=E.words[A];return this.length=E.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,O=m%26;this._expand(E),O>0&&E--;for(var A=0;A<E;A++)this.words[A]=~this.words[A]&67108863;return O>0&&(this.words[A]=~this.words[A]&67108863>>26-O),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var O=m/26|0,A=m%26;return this._expand(O+1),E?this.words[O]=this.words[O]|1<<A:this.words[O]=this.words[O]&~(1<<A),this._strip()},i.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var O,A;this.length>m.length?(O=this,A=m):(O=m,A=this);for(var M=0,V=0;V<A.length;V++)E=(O.words[V]|0)+(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<O.length;V++)E=(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=O.length,M!==0)this.words[this.length]=M,this.length++;else if(O!==this)for(;V<O.length;V++)this.words[V]=O.words[V];return this},i.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var O=this.cmp(m);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,M;O>0?(A=this,M=m):(A=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(A.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<A.length;B++)E=(A.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<A.length&&A!==this)for(;B<A.length;B++)this.words[B]=A.words[B];return this.length=Math.max(this.length,B),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function D(N,m,E){E.negative=m.negative^N.negative;var O=N.length+m.length|0;E.length=O,O=O-1|0;var A=N.words[0]|0,M=m.words[0]|0,V=A*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<O;b++){for(var L=k>>>26,Z=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var K=b-z|0;A=N.words[K]|0,M=m.words[z]|0,V=A*M+Z,L+=V/67108864|0,Z=V&67108863}E.words[b]=Z|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,O){var A=m.words,M=E.words,V=O.words,B=0,k,b,L,Z=A[0]|0,T=Z&8191,z=Z>>>13,K=A[1]|0,q=K&8191,Q=K>>>13,ie=A[2]|0,re=ie&8191,te=ie>>>13,he=A[3]|0,ne=he&8191,ae=he>>>13,Xo=A[4]|0,Be=Xo&8191,je=Xo>>>13,Jo=A[5]|0,ze=Jo&8191,He=Jo>>>13,Zo=A[6]|0,Ke=Zo&8191,qe=Zo>>>13,Qo=A[7]|0,We=Qo&8191,Ge=Qo>>>13,es=A[8]|0,Ye=es&8191,Xe=es>>>13,ts=A[9]|0,Je=ts&8191,Ze=ts>>>13,rs=M[0]|0,Qe=rs&8191,et=rs>>>13,ns=M[1]|0,tt=ns&8191,rt=ns>>>13,is=M[2]|0,nt=is&8191,it=is>>>13,os=M[3]|0,ot=os&8191,st=os>>>13,ss=M[4]|0,at=ss&8191,ut=ss>>>13,as=M[5]|0,lt=as&8191,ct=as>>>13,us=M[6]|0,ft=us&8191,dt=us>>>13,ls=M[7]|0,ht=ls&8191,pt=ls>>>13,cs=M[8]|0,mt=cs&8191,gt=cs>>>13,fs=M[9]|0,yt=fs&8191,vt=fs>>>13;O.negative=m.negative^E.negative,O.length=19,k=Math.imul(T,Qe),b=Math.imul(T,et),b=b+Math.imul(z,Qe)|0,L=Math.imul(z,et);var Hi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,k=Math.imul(q,Qe),b=Math.imul(q,et),b=b+Math.imul(Q,Qe)|0,L=Math.imul(Q,et),k=k+Math.imul(T,tt)|0,b=b+Math.imul(T,rt)|0,b=b+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var Ki=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,k=Math.imul(re,Qe),b=Math.imul(re,et),b=b+Math.imul(te,Qe)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Q,tt)|0,L=L+Math.imul(Q,rt)|0,k=k+Math.imul(T,nt)|0,b=b+Math.imul(T,it)|0,b=b+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var qi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qi>>>26)|0,qi&=67108863,k=Math.imul(ne,Qe),b=Math.imul(ne,et),b=b+Math.imul(ae,Qe)|0,L=Math.imul(ae,et),k=k+Math.imul(re,tt)|0,b=b+Math.imul(re,rt)|0,b=b+Math.imul(te,tt)|0,L=L+Math.imul(te,rt)|0,k=k+Math.imul(q,nt)|0,b=b+Math.imul(q,it)|0,b=b+Math.imul(Q,nt)|0,L=L+Math.imul(Q,it)|0,k=k+Math.imul(T,ot)|0,b=b+Math.imul(T,st)|0,b=b+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Wi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,k=Math.imul(Be,Qe),b=Math.imul(Be,et),b=b+Math.imul(je,Qe)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(ae,tt)|0,L=L+Math.imul(ae,rt)|0,k=k+Math.imul(re,nt)|0,b=b+Math.imul(re,it)|0,b=b+Math.imul(te,nt)|0,L=L+Math.imul(te,it)|0,k=k+Math.imul(q,ot)|0,b=b+Math.imul(q,st)|0,b=b+Math.imul(Q,ot)|0,L=L+Math.imul(Q,st)|0,k=k+Math.imul(T,at)|0,b=b+Math.imul(T,ut)|0,b=b+Math.imul(z,at)|0,L=L+Math.imul(z,ut)|0;var Gi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,k=Math.imul(ze,Qe),b=Math.imul(ze,et),b=b+Math.imul(He,Qe)|0,L=Math.imul(He,et),k=k+Math.imul(Be,tt)|0,b=b+Math.imul(Be,rt)|0,b=b+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(ne,nt)|0,b=b+Math.imul(ne,it)|0,b=b+Math.imul(ae,nt)|0,L=L+Math.imul(ae,it)|0,k=k+Math.imul(re,ot)|0,b=b+Math.imul(re,st)|0,b=b+Math.imul(te,ot)|0,L=L+Math.imul(te,st)|0,k=k+Math.imul(q,at)|0,b=b+Math.imul(q,ut)|0,b=b+Math.imul(Q,at)|0,L=L+Math.imul(Q,ut)|0,k=k+Math.imul(T,lt)|0,b=b+Math.imul(T,ct)|0,b=b+Math.imul(z,lt)|0,L=L+Math.imul(z,ct)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(Ke,Qe),b=Math.imul(Ke,et),b=b+Math.imul(qe,Qe)|0,L=Math.imul(qe,et),k=k+Math.imul(ze,tt)|0,b=b+Math.imul(ze,rt)|0,b=b+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,b=b+Math.imul(Be,it)|0,b=b+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(ne,ot)|0,b=b+Math.imul(ne,st)|0,b=b+Math.imul(ae,ot)|0,L=L+Math.imul(ae,st)|0,k=k+Math.imul(re,at)|0,b=b+Math.imul(re,ut)|0,b=b+Math.imul(te,at)|0,L=L+Math.imul(te,ut)|0,k=k+Math.imul(q,lt)|0,b=b+Math.imul(q,ct)|0,b=b+Math.imul(Q,lt)|0,L=L+Math.imul(Q,ct)|0,k=k+Math.imul(T,ft)|0,b=b+Math.imul(T,dt)|0,b=b+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(We,Qe),b=Math.imul(We,et),b=b+Math.imul(Ge,Qe)|0,L=Math.imul(Ge,et),k=k+Math.imul(Ke,tt)|0,b=b+Math.imul(Ke,rt)|0,b=b+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,b=b+Math.imul(ze,it)|0,b=b+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,b=b+Math.imul(Be,st)|0,b=b+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(ne,at)|0,b=b+Math.imul(ne,ut)|0,b=b+Math.imul(ae,at)|0,L=L+Math.imul(ae,ut)|0,k=k+Math.imul(re,lt)|0,b=b+Math.imul(re,ct)|0,b=b+Math.imul(te,lt)|0,L=L+Math.imul(te,ct)|0,k=k+Math.imul(q,ft)|0,b=b+Math.imul(q,dt)|0,b=b+Math.imul(Q,ft)|0,L=L+Math.imul(Q,dt)|0,k=k+Math.imul(T,ht)|0,b=b+Math.imul(T,pt)|0,b=b+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Ye,Qe),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Qe)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,b=b+Math.imul(We,rt)|0,b=b+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,b=b+Math.imul(Ke,it)|0,b=b+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,b=b+Math.imul(ze,st)|0,b=b+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,b=b+Math.imul(Be,ut)|0,b=b+Math.imul(je,at)|0,L=L+Math.imul(je,ut)|0,k=k+Math.imul(ne,lt)|0,b=b+Math.imul(ne,ct)|0,b=b+Math.imul(ae,lt)|0,L=L+Math.imul(ae,ct)|0,k=k+Math.imul(re,ft)|0,b=b+Math.imul(re,dt)|0,b=b+Math.imul(te,ft)|0,L=L+Math.imul(te,dt)|0,k=k+Math.imul(q,ht)|0,b=b+Math.imul(q,pt)|0,b=b+Math.imul(Q,ht)|0,L=L+Math.imul(Q,pt)|0,k=k+Math.imul(T,mt)|0,b=b+Math.imul(T,gt)|0,b=b+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,Qe),b=Math.imul(Je,et),b=b+Math.imul(Ze,Qe)|0,L=Math.imul(Ze,et),k=k+Math.imul(Ye,tt)|0,b=b+Math.imul(Ye,rt)|0,b=b+Math.imul(Xe,tt)|0,L=L+Math.imul(Xe,rt)|0,k=k+Math.imul(We,nt)|0,b=b+Math.imul(We,it)|0,b=b+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,b=b+Math.imul(Ke,st)|0,b=b+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,b=b+Math.imul(ze,ut)|0,b=b+Math.imul(He,at)|0,L=L+Math.imul(He,ut)|0,k=k+Math.imul(Be,lt)|0,b=b+Math.imul(Be,ct)|0,b=b+Math.imul(je,lt)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(ne,ft)|0,b=b+Math.imul(ne,dt)|0,b=b+Math.imul(ae,ft)|0,L=L+Math.imul(ae,dt)|0,k=k+Math.imul(re,ht)|0,b=b+Math.imul(re,pt)|0,b=b+Math.imul(te,ht)|0,L=L+Math.imul(te,pt)|0,k=k+Math.imul(q,mt)|0,b=b+Math.imul(q,gt)|0,b=b+Math.imul(Q,mt)|0,L=L+Math.imul(Q,gt)|0,k=k+Math.imul(T,yt)|0,b=b+Math.imul(T,vt)|0,b=b+Math.imul(z,yt)|0,L=L+Math.imul(z,vt)|0;var jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Ze,tt)|0,L=Math.imul(Ze,rt),k=k+Math.imul(Ye,nt)|0,b=b+Math.imul(Ye,it)|0,b=b+Math.imul(Xe,nt)|0,L=L+Math.imul(Xe,it)|0,k=k+Math.imul(We,ot)|0,b=b+Math.imul(We,st)|0,b=b+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,b=b+Math.imul(Ke,ut)|0,b=b+Math.imul(qe,at)|0,L=L+Math.imul(qe,ut)|0,k=k+Math.imul(ze,lt)|0,b=b+Math.imul(ze,ct)|0,b=b+Math.imul(He,lt)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,b=b+Math.imul(Be,dt)|0,b=b+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(ne,ht)|0,b=b+Math.imul(ne,pt)|0,b=b+Math.imul(ae,ht)|0,L=L+Math.imul(ae,pt)|0,k=k+Math.imul(re,mt)|0,b=b+Math.imul(re,gt)|0,b=b+Math.imul(te,mt)|0,L=L+Math.imul(te,gt)|0,k=k+Math.imul(q,yt)|0,b=b+Math.imul(q,vt)|0,b=b+Math.imul(Q,yt)|0,L=L+Math.imul(Q,vt)|0;var zg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Ze,nt)|0,L=Math.imul(Ze,it),k=k+Math.imul(Ye,ot)|0,b=b+Math.imul(Ye,st)|0,b=b+Math.imul(Xe,ot)|0,L=L+Math.imul(Xe,st)|0,k=k+Math.imul(We,at)|0,b=b+Math.imul(We,ut)|0,b=b+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,ut)|0,k=k+Math.imul(Ke,lt)|0,b=b+Math.imul(Ke,ct)|0,b=b+Math.imul(qe,lt)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,b=b+Math.imul(ze,dt)|0,b=b+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,b=b+Math.imul(Be,pt)|0,b=b+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(ne,mt)|0,b=b+Math.imul(ne,gt)|0,b=b+Math.imul(ae,mt)|0,L=L+Math.imul(ae,gt)|0,k=k+Math.imul(re,yt)|0,b=b+Math.imul(re,vt)|0,b=b+Math.imul(te,yt)|0,L=L+Math.imul(te,vt)|0;var Hg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hg>>>26)|0,Hg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Ze,ot)|0,L=Math.imul(Ze,st),k=k+Math.imul(Ye,at)|0,b=b+Math.imul(Ye,ut)|0,b=b+Math.imul(Xe,at)|0,L=L+Math.imul(Xe,ut)|0,k=k+Math.imul(We,lt)|0,b=b+Math.imul(We,ct)|0,b=b+Math.imul(Ge,lt)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,b=b+Math.imul(Ke,dt)|0,b=b+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,b=b+Math.imul(ze,pt)|0,b=b+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,b=b+Math.imul(Be,gt)|0,b=b+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0,k=k+Math.imul(ne,yt)|0,b=b+Math.imul(ne,vt)|0,b=b+Math.imul(ae,yt)|0,L=L+Math.imul(ae,vt)|0;var Kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Ze,at)|0,L=Math.imul(Ze,ut),k=k+Math.imul(Ye,lt)|0,b=b+Math.imul(Ye,ct)|0,b=b+Math.imul(Xe,lt)|0,L=L+Math.imul(Xe,ct)|0,k=k+Math.imul(We,ft)|0,b=b+Math.imul(We,dt)|0,b=b+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,b=b+Math.imul(Ke,pt)|0,b=b+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,b=b+Math.imul(ze,gt)|0,b=b+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0,k=k+Math.imul(Be,yt)|0,b=b+Math.imul(Be,vt)|0,b=b+Math.imul(je,yt)|0,L=L+Math.imul(je,vt)|0;var qg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qg>>>26)|0,qg&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Ze,lt)|0,L=Math.imul(Ze,ct),k=k+Math.imul(Ye,ft)|0,b=b+Math.imul(Ye,dt)|0,b=b+Math.imul(Xe,ft)|0,L=L+Math.imul(Xe,dt)|0,k=k+Math.imul(We,ht)|0,b=b+Math.imul(We,pt)|0,b=b+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,b=b+Math.imul(Ke,gt)|0,b=b+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0,k=k+Math.imul(ze,yt)|0,b=b+Math.imul(ze,vt)|0,b=b+Math.imul(He,yt)|0,L=L+Math.imul(He,vt)|0;var Wg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wg>>>26)|0,Wg&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Ze,ft)|0,L=Math.imul(Ze,dt),k=k+Math.imul(Ye,ht)|0,b=b+Math.imul(Ye,pt)|0,b=b+Math.imul(Xe,ht)|0,L=L+Math.imul(Xe,pt)|0,k=k+Math.imul(We,mt)|0,b=b+Math.imul(We,gt)|0,b=b+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0,k=k+Math.imul(Ke,yt)|0,b=b+Math.imul(Ke,vt)|0,b=b+Math.imul(qe,yt)|0,L=L+Math.imul(qe,vt)|0;var Gg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Ze,ht)|0,L=Math.imul(Ze,pt),k=k+Math.imul(Ye,mt)|0,b=b+Math.imul(Ye,gt)|0,b=b+Math.imul(Xe,mt)|0,L=L+Math.imul(Xe,gt)|0,k=k+Math.imul(We,yt)|0,b=b+Math.imul(We,vt)|0,b=b+Math.imul(Ge,yt)|0,L=L+Math.imul(Ge,vt)|0;var Yg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Yg>>>26)|0,Yg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Ze,mt)|0,L=Math.imul(Ze,gt),k=k+Math.imul(Ye,yt)|0,b=b+Math.imul(Ye,vt)|0,b=b+Math.imul(Xe,yt)|0,L=L+Math.imul(Xe,vt)|0;var Xg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Xg>>>26)|0,Xg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Ze,yt)|0,L=Math.imul(Ze,vt);var Jg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(Jg>>>26)|0,Jg&=67108863,V[0]=Hi,V[1]=Ki,V[2]=qi,V[3]=Wi,V[4]=Gi,V[5]=$g,V[6]=Ug,V[7]=Vg,V[8]=Bg,V[9]=jg,V[10]=zg,V[11]=Hg,V[12]=Kg,V[13]=qg,V[14]=Wg,V[15]=Gg,V[16]=Yg,V[17]=Xg,V[18]=Jg,B!==0&&(V[19]=B,O.length++),O};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var O=0,A=0,M=0;M<E.length-1;M++){var V=A;A=0;for(var B=O&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Z=N.words[L]|0,T=m.words[b]|0,z=Z*T,K=z&67108863;V=V+(z/67108864|0)|0,K=K+B|0,B=K&67108863,V=V+(K>>>26)|0,A+=V>>>26,V&=67108863}E.words[M]=B,O=V,V=A}return O!==0?E.words[M]=O:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var O,A=this.length+m.length;return this.length===10&&m.length===10?O=C(this,m,E):A<63?O=D(this,m,E):A<1024?O=I(this,m,E):O=P(this,m,E),O};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),O=i.prototype._countBits(m)-1,A=0;A<m;A++)E[A]=this.revBin(A,O,m);return E},R.prototype.revBin=function(m,E,O){if(m===0||m===O-1)return m;for(var A=0,M=0;M<E;M++)A|=(m&1)<<E-M-1,m>>=1;return A},R.prototype.permute=function(m,E,O,A,M,V){for(var B=0;B<V;B++)A[B]=E[m[B]],M[B]=O[m[B]]},R.prototype.transform=function(m,E,O,A,M,V){this.permute(V,m,E,O,A,M);for(var B=1;B<M;B<<=1)for(var k=B<<1,b=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),Z=0;Z<M;Z+=k)for(var T=b,z=L,K=0;K<B;K++){var q=O[Z+K],Q=A[Z+K],ie=O[Z+K+B],re=A[Z+K+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,O[Z+K]=q+ie,A[Z+K]=Q+re,O[Z+K+B]=q-ie,A[Z+K+B]=Q-re,K!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var O=Math.max(E,m)|1,A=O&1,M=0;for(O=O/2|0;O;O=O>>>1)M++;return 1<<M+1+A},R.prototype.conjugate=function(m,E,O){if(!(O<=1))for(var A=0;A<O/2;A++){var M=m[A];m[A]=m[O-A-1],m[O-A-1]=M,M=E[A],E[A]=-E[O-A-1],E[O-A-1]=-M}},R.prototype.normalize13b=function(m,E){for(var O=0,A=0;A<E/2;A++){var M=Math.round(m[2*A+1]/E)*8192+Math.round(m[2*A]/E)+O;m[A]=M&67108863,M<67108864?O=0:O=M/67108864|0}return m},R.prototype.convert13b=function(m,E,O,A){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),O[2*V]=M&8191,M=M>>>13,O[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<A;++V)O[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),O=0;O<m;O++)E[O]=0;return E},R.prototype.mulp=function(m,E,O){var A=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(A),V=this.stub(A),B=new Array(A),k=new Array(A),b=new Array(A),L=new Array(A),Z=new Array(A),T=new Array(A),z=O.words;z.length=A,this.convert13b(m.words,m.length,B,A),this.convert13b(E.words,E.length,L,A),this.transform(B,V,k,b,A,M),this.transform(L,V,Z,T,A,M);for(var K=0;K<A;K++){var q=k[K]*Z[K]-b[K]*T[K];b[K]=k[K]*T[K]+b[K]*Z[K],k[K]=q}return this.conjugate(k,b,A),this.transform(k,b,z,V,A,M),this.conjugate(z,V,A),this.normalize13b(z,A),O.negative=m.negative^E.negative,O.length=m.length+E.length,O._strip()},i.prototype.mul=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},i.prototype.mulf=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),P(this,m,E)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var O=0,A=0;A<this.length;A++){var M=(this.words[A]|0)*m,V=(M&67108863)+(O&67108863);O>>=26,O+=M/67108864|0,O+=V>>>26,this.words[A]=V&67108863}return O!==0&&(this.words[A]=O,this.length++),E?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var E=_(m);if(E.length===0)return new i(1);for(var O=this,A=0;A<E.length&&E[A]===0;A++,O=O.sqr());if(++A<E.length)for(var M=O.sqr();A<E.length;A++,M=M.sqr())E[A]!==0&&(O=O.mul(M));return O},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&A,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(O!==0){for(M=this.length-1;M>=0;M--)this.words[M+O]=this.words[M];for(M=0;M<O;M++)this.words[M]=0;this.length+=O}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,O){r(typeof m=="number"&&m>=0);var A;E?A=(E-E%26)/26:A=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=O;if(A-=V,A=Math.max(0,A),k){for(var b=0;b<V;b++)k.words[b]=this.words[b];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var L=0;for(b=this.length-1;b>=0&&(L!==0||b>=A);b--){var Z=this.words[b]|0;this.words[b]=L<<26-M|Z>>>M,L=Z&B}return k&&L!==0&&(k.words[k.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,E,O){return r(this.negative===0),this.iushrn(m,E,O)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return!1;var M=this.words[O];return!!(M&A)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(E!==0&&O++,this.length=Math.min(O,this.length),E!==0){var A=67108863^67108863>>>E<<E;this.words[this.length-1]&=A}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,E,O){var A=m.length+O,M;this._expand(A);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+O]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+O]=V&67108863}for(;M<this.length-O;M++)V=(this.words[M+O]|0)+B,B=V>>26,this.words[M+O]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,M=0;M<this.length;M++)V=-(this.words[M]|0)+B,B=V>>26,this.words[M]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,E){var O=this.length-m.length,A=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);O=26-B,O!==0&&(M=M.ushln(O),A.iushln(O),V=M.words[M.length-1]|0);var k=A.length-M.length,b;if(E!=="mod"){b=new i(null),b.length=k+1,b.words=new Array(b.length);for(var L=0;L<b.length;L++)b.words[L]=0}var Z=A.clone()._ishlnsubmul(M,1,k);Z.negative===0&&(A=Z,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(A.words[M.length+T]|0)*67108864+(A.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),A._ishlnsubmul(M,z,T);A.negative!==0;)z--,A.negative=0,A._ishlnsubmul(M,1,T),A.isZero()||(A.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),A._strip(),E!=="div"&&O!==0&&A.iushrn(O),{div:b||null,mod:A}},i.prototype.divmod=function(m,E,O){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var A,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(A=V.div.neg()),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.iadd(m)),{div:A,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(A=V.div.neg()),{div:A,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.isub(m)),{div:V.div,mod:M}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,E)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var O=E.div.negative!==0?E.mod.isub(m):E.mod,A=m.ushrn(1),M=m.andln(1),V=O.cmp(A);return V<0||M===1&&V===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=(1<<26)%m,A=0,M=this.length-1;M>=0;M--)A=(O*A+(this.words[M]|0))%m;return E?-A:A},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=0,A=this.length-1;A>=0;A--){var M=(this.words[A]|0)+O*67108864;this.words[A]=M/m|0,O=M%m}return this._strip(),E?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&O.isEven();)E.iushrn(1),O.iushrn(1),++k;for(var b=O.clone(),L=E.clone();!E.isZero();){for(var Z=0,T=1;(E.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0)for(E.iushrn(Z);Z-- >0;)(A.isOdd()||M.isOdd())&&(A.iadd(b),M.isub(L)),A.iushrn(1),M.iushrn(1);for(var z=0,K=1;(O.words[0]&K)===0&&z<26;++z,K<<=1);if(z>0)for(O.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(V),M.isub(B)):(O.isub(E),V.isub(A),B.isub(M))}return{a:V,b:B,gcd:O.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=O.clone();E.cmpn(1)>0&&O.cmpn(1)>0;){for(var B=0,k=1;(E.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(E.iushrn(B);B-- >0;)A.isOdd()&&A.iadd(V),A.iushrn(1);for(var b=0,L=1;(O.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(O.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(M)):(O.isub(E),M.isub(A))}var Z;return E.cmpn(1)===0?Z=A:Z=M,Z.cmpn(0)<0&&Z.iadd(m),Z},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),O=m.clone();E.negative=0,O.negative=0;for(var A=0;E.isEven()&&O.isEven();A++)E.iushrn(1),O.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;O.isEven();)O.iushrn(1);var M=E.cmp(O);if(M<0){var V=E;E=O,O=V}else if(M===0||O.cmpn(1)===0)break;E.isub(O)}while(!0);return O.iushln(A)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return this._expand(O+1),this.words[O]|=A,this;for(var M=A,V=O;M!==0&&V<this.length;V++){var B=this.words[V]|0;B+=M,M=B>>>26,B&=67108863,this.words[V]=B}return M!==0&&(this.words[V]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var O;if(this.length>1)O=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var A=this.words[0]|0;O=A===m?0:A<m?-1:1}return this.negative!==0?-O|0:O},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,O=this.length-1;O>=0;O--){var A=this.words[O]|0,M=m.words[O]|0;if(A!==M){A<M?E=-1:A>M&&(E=1);break}}return E},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new W(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var U={k256:null,p224:null,p192:null,p25519:null};function j(N,m){this.name=N,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},j.prototype.ireduce=function(m){var E=m,O;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),O=E.bitLength();while(O>this.n);var A=O<this.n?-1:E.ucmp(this.p);return A===0?(E.words[0]=0,E.length=1):A>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},j.prototype.split=function(m,E){m.iushrn(this.n,0,E)},j.prototype.imulK=function(m){return m.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(m,E){for(var O=4194303,A=Math.min(m.length,9),M=0;M<A;M++)E.words[M]=m.words[M];if(E.length=A,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&O,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&O)<<4|V>>>22,V=B}V>>>=22,m.words[M-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},F.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,O=0;O<m.length;O++){var A=m.words[O]|0;E+=A*977,m.words[O]=E&67108863,E=A*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function $(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n($,j);function G(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(m){for(var E=0,O=0;O<m.length;O++){var A=(m.words[O]|0)*19+E,M=A&67108863;A>>>=26,m.words[O]=M,E=A}return E!==0&&(m.words[m.length++]=E),m},i._prime=function(m){if(U[m])return U[m];var E;if(m==="k256")E=new F;else if(m==="p224")E=new $;else if(m==="p192")E=new G;else if(m==="p25519")E=new X;else throw new Error("Unknown prime "+m);return U[m]=E,E};function W(N){if(typeof N=="string"){var m=i._prime(N);this.m=m.p,this.prime=m}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}W.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},W.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},W.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},W.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},W.prototype.add=function(m,E){this._verify2(m,E);var O=m.add(E);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var O=m.iadd(E);return O.cmp(this.m)>=0&&O.isub(this.m),O},W.prototype.sub=function(m,E){this._verify2(m,E);var O=m.sub(E);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var O=m.isub(E);return O.cmpn(0)<0&&O.iadd(this.m),O},W.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},W.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},W.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},W.prototype.isqr=function(m){return this.imul(m,m.clone())},W.prototype.sqr=function(m){return this.mul(m,m)},W.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var O=this.m.add(new i(1)).iushrn(2);return this.pow(m,O)}for(var A=this.m.subn(1),M=0;!A.isZero()&&A.andln(1)===0;)M++,A.iushrn(1);r(!A.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,k).cmp(B)!==0;)b.redIAdd(B);for(var L=this.pow(b,A),Z=this.pow(m,A.addn(1).iushrn(1)),T=this.pow(m,A),z=M;T.cmp(V)!==0;){for(var K=T,q=0;K.cmp(V)!==0;q++)K=K.redSqr();r(q<z);var Q=this.pow(L,new i(1).iushln(z-q-1));Z=Z.redMul(Q),L=Q.redSqr(),T=T.redMul(L),z=q}return Z},W.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},W.prototype.pow=function(m,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var O=4,A=new Array(1<<O);A[0]=new i(1).toRed(this),A[1]=m;for(var M=2;M<A.length;M++)A[M]=this.mul(A[M-1],m);var V=A[0],B=0,k=0,b=E.bitLength()%26;for(b===0&&(b=26),M=E.length-1;M>=0;M--){for(var L=E.words[M],Z=b-1;Z>=0;Z--){var T=L>>Z&1;if(V!==A[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==O&&(M!==0||Z!==0))&&(V=this.mul(V,A[B]),k=0,B=0)}b=26}return V},W.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},W.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},i.mont=function(m){return new J(m)};function J(N){W.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(J,W),J.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},J.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var O=m.imul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new i(0)._forceRed(this);var O=m.mul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof YE>"u"||YE,ak)});var Fee={};fr(Fee,{init:()=>Nee,open:()=>kee,reset:()=>Lee,update:()=>Mee});c();d();f();c();d();f();c();d();f();c();d();f();var s_=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{var u;((u=S)==null?void 0:u.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,a),a},a_=e=>e?s_(e):s_;var y_=Y(ue(),1),v_=Y(m_(),1),{useSyncExternalStoreWithSelector:X9}=v_.default;function J9(e,t=e.getState,r){let n=X9(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,y_.useDebugValue)(n),n}var g_=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?a_(e):e,n=(i,o)=>J9(r,i,o);return Object.assign(n,r),n},Nd=e=>e?g_(e):g_;c();d();f();c();d();f();c();d();f();var cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},cy(e,t)};function Z9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)};function hs(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function ps(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Q9(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var ve;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(ve||(ve={}));function eF(e,t){if(!e)throw new Error(t)}function tF(e){return e==null?void 0:e.replace(/\/+$/,"")}function rF(e,t){return t===void 0&&(t={}),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return ps(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(v){return setTimeout(v,o)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function w_(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function C_(){return new Date().getTime()}function x_(){return new Date().toISOString()}function b_(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var ec=String.fromCharCode,E_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Md={};function nF(e,t){if(!Md[e]){Md[e]={};for(var r=0;r<e.length;r++)Md[e][e.charAt(r)]=r}return Md[e][t]}var nc={compressToBase64:function(e){if(e==null)return"";var t=nc._compress(e,6,function(r){return E_.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32,function(t){return nF(E_,e.charAt(t))})},compress:function(e){return nc._compress(e,16,function(t){return ec(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,y=3,v=2,w=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++)}for(a=2,s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;for(;;)if(w=w<<1,_==t-1){o.push(r(w));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,y,v,w,_,D;for(p=0;p<3;p+=1)n[p]=p;for(y=0,w=Math.pow(2,2),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(y=0,w=Math.pow(2,u),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(D=y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[D])l=n[D];else if(D===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},iF=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),oF=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new iF,eF(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=tF((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&b_(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return Se({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(ve.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(ve.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(ve.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(ve.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(ve.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(ve.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=Q9([ve.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(ve);n<i.length;n++){var o=i[n];r.includes(ve[o])||this.setPersistedProperty(ve[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:Se(Se(Se(Se({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(ve.SessionId),r=this.getPersistedProperty(ve.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=w_(globalThis),this.setPersistedProperty(ve.SessionId,t)),this.setPersistedProperty(ve.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(ve.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(ve.AnonymousId);return t||(t=w_(globalThis),this.setPersistedProperty(ve.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(ve.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=Se(Se({},this.props),t),this.setPersistedProperty(ve.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(ve.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=Se(Se({},this.buildPayload({distinct_id:t,event:"$identify",properties:Se(Se({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(ve.AnonymousId,n),this.setPersistedProperty(ve.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:Se(Se({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:Se(Se({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:Se({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(ve.PersonProperties)||{};return this.setPersistedProperty(ve.PersonProperties,Se(Se({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(ve.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=Se(Se({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,Se(Se({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return ps(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(ve.PersonProperties)||{},s=this.getPersistedProperty(ve.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(ve.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(ve.FeatureFlags),r=this.getPersistedProperty(ve.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){return ps(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return hs(r,void 0,void 0,function(){var n;return ps(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return hs(n,void 0,void 0,function(){var i;return ps(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(ve.OverrideFeatureFlags,null):this.setPersistedProperty(ve.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=Se(Se({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:x_()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(ve.Queue)||[];o.push({message:i}),this.setPersistedProperty(ve.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=b_(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(ve.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(ve.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:x_()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(C_(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(nc.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return hs(this,void 0,void 0,function(){var s=this;return ps(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,rF(function(){return s.fetch(t,Se({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return hs(this,void 0,void 0,function(){return ps(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),T_="2.0.0";function sF(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=Se(Se({},t),{$os:uF(e),$browser:P_(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:cF(e.document.referrer),$device:lF(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:aF(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=Se(Se({},t),{$lib:"js",$lib_version:T_,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:C_()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function P_(e,t,r){return t=t||"",r||Mt(e," OPR/")?Mt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Mt(e,"IEMobile")||Mt(e,"WPDesktop")?"Internet Explorer Mobile":Mt(e,"SamsungBrowser/")?"Samsung Internet":Mt(e,"Edge")||Mt(e,"Edg/")?"Microsoft Edge":Mt(e,"FBIOS")?"Facebook Mobile":Mt(e,"Chrome")?"Chrome":Mt(e,"CriOS")?"Chrome iOS":Mt(e,"UCWEB")||Mt(e,"UCBrowser")?"UC Browser":Mt(e,"FxiOS")?"Firefox iOS":Mt(t,"Apple")?Mt(e,"Mobile")?"Mobile Safari":"Safari":Mt(e,"Android")?"Android Mobile":Mt(e,"Konqueror")?"Konqueror":Mt(e,"Firefox")?"Firefox":Mt(e,"MSIE")||Mt(e,"Trident/")?"Internet Explorer":Mt(e,"Gecko")?"Mozilla":""}function aF(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=P_(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function uF(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function lF(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function cF(e){var t=e.split("/");return t.length>=3?t[2]:""}var D_={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{D_.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},__=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},S_=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},ly=void 0,tc=void 0,rc=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},fF=function(e,t){if(t){if(!localStorage){var r=__(t.localStorage);ly=S_(r)?r:void 0}if(!tc){var n=__(t.sessionStorage);tc=S_(n)?n:void 0}}switch(e){case"cookie":return D_||ly||tc||rc();case"localStorage":return ly||tc||rc();case"sessionStorage":return tc||rc();case"memory":return rc();default:return rc()}},I_=function(e){Z9(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=fF((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return T_},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return Se(Se({},e.prototype.getCommonEventProperties.call(this)),sF(window))},t}(oF);function dF(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function hF(e,t){try{return await fetch(e,t)}catch(r){throw dF(r)}}var In=null;typeof globalThis.window<"u"&&(In=new I_("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),In.fetch=hF);var O_={version:"0.4.0-alpha.2",package:"idkit-js"};var A_=e=>{e?In==null||In.capture("idkit loaded",O_):In==null||In.optOut()},R_=()=>{In==null||In.capture("idkit opened",O_)};var mF=Nd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,action_description:a,walletConnectProjectId:u,autoClose:l,copy:p,theme:h},y)=>{e(v=>({theme:h,signal:i,action:o,app_id:s,autoClose:l,action_description:a,walletConnectProjectId:u,copy:H(H({},v.copy),p)})),n&&t().addSuccessCallback(n,y),r&&t().addVerificationCallback(r,y)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:i}})})},onOpenChange:r=>{if(r)return R_(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result,i=t().successCallbacks;n&&requestAnimationFrame(()=>Object.values(i).forEach(o=>void(o==null?void 0:o(n))))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:"WORLD_ID"})}})),Yr=mF;c();d();f();var M_={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var kL=Y(r5(),1);c();d();f();var NL=Y(ue(),1);c();d();f();c();d();f();var Bt=Y(ue()),d5=Y(Os()),bi=Y(c5()),wU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function h5(e,t){return e(t={exports:{}},t.exports),t.exports}var xU=h5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||y(C)||a(C))return C;var P,R=0,U=0;if(l(C))for(P=[],U=C.length;R<U;R++)P.push(r(D,C[R],I));else for(var j in P={},C)Object.prototype.hasOwnProperty.call(C,j)&&(P[D(j,I)]=r(D,C[j],I));return P},n=function(D){return v(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(C,I){return I?I.toUpperCase():""})).substr(0,1).toLowerCase()+D.substr(1)},i=function(D){var C=n(D);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(D,C){return function(I,P){var R=(P=P||{}).separator||"_",U=P.split||/(?=[A-Z])/;return I.split(U).join(R)}(D,C).toLowerCase()},s=Object.prototype.toString,a=function(D){return typeof D=="function"},u=function(D){return D===Object(D)},l=function(D){return s.call(D)=="[object Array]"},p=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},y=function(D){return s.call(D)=="[object Boolean]"},v=function(D){return(D-=0)==D},w=function(D,C){var I=C&&"process"in C?C.process:C;return typeof I!="function"?D:function(P,R){return I(P,D,R)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,C){return r(w(n,C),D)},decamelizeKeys:function(D,C){return r(w(o,C),D,C)},pascalizeKeys:function(D,C){return r(w(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(wU)}).decamelize,bU=h5(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),EU=function(e){if(Array.isArray(e))return e},_U=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},f5=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},SU=function(e,t){if(e){if(typeof e=="string")return f5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f5(e,t):void 0}},CU=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ `;return typeof n=="function"&&n(null,y),y}});var nD=ee(Pf=>{c();d();f();var Qz=nP(),ox=XP(),rD=ZP(),eH=tD();function sx(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!Qz())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let p=ox.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=ox.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Pf.create=ox.create;Pf.toCanvas=sx.bind(null,rD.render);Pf.toDataURL=sx.bind(null,rD.renderToDataURL);Pf.toString=sx.bind(null,function(e,t,r){return eH.render(e,r)})});var pD=ee((y0e,hD)=>{"use strict";c();d();f();function sH(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}hD.exports=aH;function aH(e,t,r){var n=r&&r.stringify||sH,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,y=e&&e.length||0,v=0;v<y;){if(e.charCodeAt(v)===37&&v+1<y){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Number(t[p]),h=v+2,v++;break;case 105:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Math.floor(Number(t[p])),h=v+2,v++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<v&&(l+=e.slice(h,v));var w=typeof t[p];if(w==="string"){l+="'"+t[p]+"'",h=v+2,v++;break}if(w==="function"){l+=t[p].name||"<anonymous>",h=v+2,v++;break}l+=n(t[p]),h=v+2,v++;break;case 115:if(p>=u)break;h<v&&(l+=e.slice(h,v)),l+=String(t[p]),h=v+2,v++;break;case 37:h<v&&(l+=e.slice(h,v)),l+="%",h=v+2,v++,p--;break}++p}++v}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var Tm=ee((v0e,vD)=>{"use strict";c();d();f();var mD=pD();vD.exports=ni;var Df=yH().console||{},uH={mapHttpRequest:Sm,mapHttpResponse:Sm,wrapRequestSerializer:lx,wrapResponseSerializer:lx,wrapErrorSerializer:lx,req:Sm,res:Sm,err:hH};function lH(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ni(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Df;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=lH(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=If),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:pH(e)};u.levels=ni.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=If,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=v,t&&(u._logEvent=cx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,Qu(l,u,"error","log"),Qu(l,u,"fatal","error"),Qu(l,u,"warn","error"),Qu(l,u,"info","log"),Qu(l,u,"debug","log"),Qu(l,u,"trace","log")}function v(w,_){if(!w)throw new Error("missing bindings for child Pino");_=_||{},i&&w.serializers&&(_.serializers=w.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete w.serializers,Cm([w],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=el(R,w,"error"),this.fatal=el(R,w,"fatal"),this.warn=el(R,w,"warn"),this.info=el(R,w,"info"),this.debug=el(R,w,"debug"),this.trace=el(R,w,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=cx([].concat(R._logEvent.bindings,w)))}return P.prototype=this,new P(this)}return u}ni.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};ni.stdSerializers=uH;ni.stdTimeFunctions=Object.assign({},{nullTime:gD,epochTime:yD,unixTime:mH,isoTime:gH});function Qu(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?If:i[r]?i[r]:Df[r]||Df[n]||If,cH(e,t,r)}function cH(e,t,r){!e.transmit&&t[r]===If||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Df?Df:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&Cm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,fH(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=ni.levels.values[l],h=ni.levels.values[r];if(h<p)return;dH(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:ni.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function fH(e,t,r,n){e._serialize&&Cm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=ni.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?mD(i.shift(),i):void 0}else typeof o=="string"&&(o=mD(i.shift(),i));return o!==void 0&&(s.msg=o),s}function Cm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=ni.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function el(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function dH(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;Cm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=cx(u)}function cx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function hH(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function pH(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?gD:yD}function Sm(){return{}}function lx(e){return e}function If(){}function gD(){return!1}function yD(){return Date.now()}function mH(){return Math.round(Date.now()/1e3)}function gH(){return new Date(Date.now()).toISOString()}function yH(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var ko=ee((w0e,fx)=>{"use strict";c();d();f();var tl=typeof Reflect=="object"?Reflect:null,wD=tl&&typeof tl.apply=="function"?tl.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Pm;tl&&typeof tl.ownKeys=="function"?Pm=tl.ownKeys:Object.getOwnPropertySymbols?Pm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Pm=function(t){return Object.getOwnPropertyNames(t)};function vH(e){console&&console.warn&&console.warn(e)}var bD=Number.isNaN||function(t){return t!==t};function Ae(){Ae.init.call(this)}fx.exports=Ae;fx.exports.once=EH;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var xD=10;function Dm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return xD},set:function(e){if(typeof e!="number"||e<0||bD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");xD=e}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||bD(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function ED(e){return e._maxListeners===void 0?Ae.defaultMaxListeners:e._maxListeners}Ae.prototype.getMaxListeners=function(){return ED(this)};Ae.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")wD(u,this,r);else for(var l=u.length,p=PD(u,l),n=0;n<l;++n)wD(p[n],this,r);return!0};function _D(e,t,r,n){var i,o,s;if(Dm(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=ED(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,vH(a)}return e}Ae.prototype.addListener=function(t,r){return _D(this,t,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(t,r){return _D(this,t,r,!0)};function wH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function SD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=wH.bind(n);return i.listener=r,n.wrapFn=i,i}Ae.prototype.once=function(t,r){return Dm(r),this.on(t,SD(this,t,r)),this};Ae.prototype.prependOnceListener=function(t,r){return Dm(r),this.prependListener(t,SD(this,t,r)),this};Ae.prototype.removeListener=function(t,r){var n,i,o,s,a;if(Dm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():xH(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function CD(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?bH(i):PD(i,i.length)}Ae.prototype.listeners=function(t){return CD(this,t,!0)};Ae.prototype.rawListeners=function(t){return CD(this,t,!1)};Ae.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):TD.call(e,t)};Ae.prototype.listenerCount=TD;function TD(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?Pm(this._events):[]};function PD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function xH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function bH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function EH(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}DD(e,t,o,{once:!0}),t!=="error"&&_H(e,i,{once:!0})})}function _H(e,t,r){typeof e.on=="function"&&DD(e,"error",t,r)}function DD(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var hx=ee((x0e,Om)=>{c();d();f();var ID,OD,AD,RD,ND,MD,kD,LD,FD,Im,dx,$D,UD,rl,VD,BD,jD,zD,HD,KD,qD,WD,GD;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Om=="object"&&typeof Om.exports=="object"?e(r(t,r(Om.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};ID=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},OD=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},AD=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},RD=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},ND=function(r,n){return function(i,o){n(i,o,r)}},MD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},kD=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},LD=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},GD=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},FD=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Im=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},dx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},$D=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(dx(arguments[n]));return r},UD=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},rl=function(r){return this instanceof rl?(this.v=r,this):new rl(r)},VD=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},BD=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},jD=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Im=="function"?Im(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},zD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},HD=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},KD=function(r){return r&&r.__esModule?r:{default:r}},qD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},WD=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",ID),e("__assign",OD),e("__rest",AD),e("__decorate",RD),e("__param",ND),e("__metadata",MD),e("__awaiter",kD),e("__generator",LD),e("__exportStar",FD),e("__createBinding",GD),e("__values",Im),e("__read",dx),e("__spread",$D),e("__spreadArrays",UD),e("__await",rl),e("__asyncGenerator",VD),e("__asyncDelegator",BD),e("__asyncValues",jD),e("__makeTemplateObject",zD),e("__importStar",HD),e("__importDefault",KD),e("__classPrivateFieldGet",qD),e("__classPrivateFieldSet",WD)})});var px=ee(Am=>{"use strict";c();d();f();Object.defineProperty(Am,"__esModule",{value:!0});function SH(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}Am.safeJsonParse=SH;function CH(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Am.safeJsonStringify=CH});var YD=ee((E0e,Rm)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?Rm.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Rm.exports=window.localStorage:Rm.exports=new t})()});var XD=ee(Nm=>{"use strict";c();d();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.IKeyValueStorage=void 0;var mx=class{};Nm.IKeyValueStorage=mx});var JD=ee(Mm=>{"use strict";c();d();f();Object.defineProperty(Mm,"__esModule",{value:!0});Mm.parseEntry=void 0;var TH=px();function PH(e){var t;return[e[0],TH.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Mm.parseEntry=PH});var QD=ee(km=>{"use strict";c();d();f();Object.defineProperty(km,"__esModule",{value:!0});var ZD=hx();ZD.__exportStar(XD(),km);ZD.__exportStar(JD(),km)});var tI=ee(Of=>{"use strict";c();d();f();Object.defineProperty(Of,"__esModule",{value:!0});Of.KeyValueStorage=void 0;var nl=hx(),eI=px(),DH=nl.__importDefault(YD()),IH=QD(),Lm=class{constructor(){this.localStorage=DH.default}getKeys(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(IH.parseEntry)})}getItem(t){return nl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return eI.safeJsonParse(r)})}setItem(t,r){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,eI.safeJsonStringify(r))})}removeItem(t){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Of.KeyValueStorage=Lm;Of.default=Lm});var Af=ee((P0e,$m)=>{c();d();f();var rI,nI,iI,oI,sI,aI,uI,lI,cI,Fm,gx,fI,dI,il,hI,pI,mI,gI,yI,vI,wI,xI,bI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof $m=="object"&&typeof $m.exports=="object"?e(r(t,r($m.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};rI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},nI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},iI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},oI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},sI=function(r,n){return function(i,o){n(i,o,r)}},aI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},uI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},lI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},bI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},cI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Fm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},gx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},fI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(gx(arguments[n]));return r},dI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},il=function(r){return this instanceof il?(this.v=r,this):new il(r)},hI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof il?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},pI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:il(r[s](u)),done:s==="return"}:a?a(u):u}:a}},mI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Fm=="function"?Fm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},gI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},yI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},vI=function(r){return r&&r.__esModule?r:{default:r}},wI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},xI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",rI),e("__assign",nI),e("__rest",iI),e("__decorate",oI),e("__param",sI),e("__metadata",aI),e("__awaiter",uI),e("__generator",lI),e("__exportStar",cI),e("__createBinding",bI),e("__values",Fm),e("__read",gx),e("__spread",fI),e("__spreadArrays",dI),e("__await",il),e("__asyncGenerator",hI),e("__asyncDelegator",pI),e("__asyncValues",mI),e("__makeTemplateObject",gI),e("__importStar",yI),e("__importDefault",vI),e("__classPrivateFieldGet",wI),e("__classPrivateFieldSet",xI)})});var Rf=ee((D0e,Vm)=>{c();d();f();var EI,_I,SI,CI,TI,PI,DI,II,OI,Um,yx,AI,RI,ol,NI,MI,kI,LI,FI,$I,UI,VI,BI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Vm=="object"&&typeof Vm.exports=="object"?e(r(t,r(Vm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};EI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},_I=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},SI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},CI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},TI=function(r,n){return function(i,o){n(i,o,r)}},PI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},DI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},II=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},BI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},OI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Um=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},yx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},AI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(yx(arguments[n]));return r},RI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},ol=function(r){return this instanceof ol?(this.v=r,this):new ol(r)},NI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof ol?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},MI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:ol(r[s](u)),done:s==="return"}:a?a(u):u}:a}},kI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Um=="function"?Um(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},LI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},FI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},$I=function(r){return r&&r.__esModule?r:{default:r}},UI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},VI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",EI),e("__assign",_I),e("__rest",SI),e("__decorate",CI),e("__param",TI),e("__metadata",PI),e("__awaiter",DI),e("__generator",II),e("__exportStar",OI),e("__createBinding",BI),e("__values",Um),e("__read",yx),e("__spread",AI),e("__spreadArrays",RI),e("__await",ol),e("__asyncGenerator",NI),e("__asyncDelegator",MI),e("__asyncValues",kI),e("__makeTemplateObject",LI),e("__importStar",FI),e("__importDefault",$I),e("__classPrivateFieldGet",UI),e("__classPrivateFieldSet",VI)})});var jI=ee(Bm=>{"use strict";c();d();f();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.delay=void 0;function OH(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Bm.delay=OH});var zI=ee(sl=>{"use strict";c();d();f();Object.defineProperty(sl,"__esModule",{value:!0});sl.ONE_THOUSAND=sl.ONE_HUNDRED=void 0;sl.ONE_HUNDRED=100;sl.ONE_THOUSAND=1e3});var HI=ee(le=>{"use strict";c();d();f();Object.defineProperty(le,"__esModule",{value:!0});le.ONE_YEAR=le.FOUR_WEEKS=le.THREE_WEEKS=le.TWO_WEEKS=le.ONE_WEEK=le.THIRTY_DAYS=le.SEVEN_DAYS=le.FIVE_DAYS=le.THREE_DAYS=le.ONE_DAY=le.TWENTY_FOUR_HOURS=le.TWELVE_HOURS=le.SIX_HOURS=le.THREE_HOURS=le.ONE_HOUR=le.SIXTY_MINUTES=le.THIRTY_MINUTES=le.TEN_MINUTES=le.FIVE_MINUTES=le.ONE_MINUTE=le.SIXTY_SECONDS=le.THIRTY_SECONDS=le.TEN_SECONDS=le.FIVE_SECONDS=le.ONE_SECOND=void 0;le.ONE_SECOND=1;le.FIVE_SECONDS=5;le.TEN_SECONDS=10;le.THIRTY_SECONDS=30;le.SIXTY_SECONDS=60;le.ONE_MINUTE=le.SIXTY_SECONDS;le.FIVE_MINUTES=le.ONE_MINUTE*5;le.TEN_MINUTES=le.ONE_MINUTE*10;le.THIRTY_MINUTES=le.ONE_MINUTE*30;le.SIXTY_MINUTES=le.ONE_MINUTE*60;le.ONE_HOUR=le.SIXTY_MINUTES;le.THREE_HOURS=le.ONE_HOUR*3;le.SIX_HOURS=le.ONE_HOUR*6;le.TWELVE_HOURS=le.ONE_HOUR*12;le.TWENTY_FOUR_HOURS=le.ONE_HOUR*24;le.ONE_DAY=le.TWENTY_FOUR_HOURS;le.THREE_DAYS=le.ONE_DAY*3;le.FIVE_DAYS=le.ONE_DAY*5;le.SEVEN_DAYS=le.ONE_DAY*7;le.THIRTY_DAYS=le.ONE_DAY*30;le.ONE_WEEK=le.SEVEN_DAYS;le.TWO_WEEKS=le.ONE_WEEK*2;le.THREE_WEEKS=le.ONE_WEEK*3;le.FOUR_WEEKS=le.ONE_WEEK*4;le.ONE_YEAR=le.ONE_DAY*365});var vx=ee(jm=>{"use strict";c();d();f();Object.defineProperty(jm,"__esModule",{value:!0});var KI=Rf();KI.__exportStar(zI(),jm);KI.__exportStar(HI(),jm)});var WI=ee(al=>{"use strict";c();d();f();Object.defineProperty(al,"__esModule",{value:!0});al.fromMiliseconds=al.toMiliseconds=void 0;var qI=vx();function AH(e){return e*qI.ONE_THOUSAND}al.toMiliseconds=AH;function RH(e){return Math.floor(e/qI.ONE_THOUSAND)}al.fromMiliseconds=RH});var YI=ee(zm=>{"use strict";c();d();f();Object.defineProperty(zm,"__esModule",{value:!0});var GI=Rf();GI.__exportStar(jI(),zm);GI.__exportStar(WI(),zm)});var XI=ee(Nf=>{"use strict";c();d();f();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.Watch=void 0;var Hm=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};Nf.Watch=Hm;Nf.default=Hm});var JI=ee(Km=>{"use strict";c();d();f();Object.defineProperty(Km,"__esModule",{value:!0});Km.IWatch=void 0;var wx=class{};Km.IWatch=wx});var ZI=ee(xx=>{"use strict";c();d();f();Object.defineProperty(xx,"__esModule",{value:!0});var NH=Rf();NH.__exportStar(JI(),xx)});var Oi=ee(ul=>{"use strict";c();d();f();Object.defineProperty(ul,"__esModule",{value:!0});var qm=Rf();qm.__exportStar(YI(),ul);qm.__exportStar(XI(),ul);qm.__exportStar(ZI(),ul);qm.__exportStar(vx(),ul)});var jn,QI=ba(()=>{c();d();f();jn=class{}});var eO={};fr(eO,{IEvents:()=>jn});var Wm=ba(()=>{c();d();f();QI()});var tO=ee(Gm=>{"use strict";c();d();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.IHeartBeat=void 0;var MH=(Wm(),I2(eO)),bx=class extends MH.IEvents{constructor(t){super()}};Gm.IHeartBeat=bx});var _x=ee(Ex=>{"use strict";c();d();f();Object.defineProperty(Ex,"__esModule",{value:!0});var kH=Af();kH.__exportStar(tO(),Ex)});var rO=ee(ll=>{"use strict";c();d();f();Object.defineProperty(ll,"__esModule",{value:!0});ll.HEARTBEAT_EVENTS=ll.HEARTBEAT_INTERVAL=void 0;var LH=Oi();ll.HEARTBEAT_INTERVAL=LH.FIVE_SECONDS;ll.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Cx=ee(Sx=>{"use strict";c();d();f();Object.defineProperty(Sx,"__esModule",{value:!0});var FH=Af();FH.__exportStar(rO(),Sx)});var nO=ee(Ym=>{"use strict";c();d();f();Object.defineProperty(Ym,"__esModule",{value:!0});Ym.HeartBeat=void 0;var Tx=Af(),$H=ko(),UH=Oi(),VH=_x(),Px=Cx(),Mf=class extends VH.IHeartBeat{constructor(t){super(t),this.events=new $H.EventEmitter,this.interval=Px.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||Px.HEARTBEAT_INTERVAL}static init(t){return Tx.__awaiter(this,void 0,void 0,function*(){let r=new Mf(t);return yield r.init(),r})}init(){return Tx.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return Tx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),UH.toMiliseconds(this.interval))})}pulse(){this.events.emit(Px.HEARTBEAT_EVENTS.pulse)}};Ym.HeartBeat=Mf});var iO=ee(kf=>{"use strict";c();d();f();Object.defineProperty(kf,"__esModule",{value:!0});var Dx=Af();Dx.__exportStar(nO(),kf);Dx.__exportStar(_x(),kf);Dx.__exportStar(Cx(),kf)});var CO=ee((W0e,Jm)=>{c();d();f();var oO,sO,aO,uO,lO,cO,fO,dO,hO,Xm,Ix,pO,mO,cl,gO,yO,vO,wO,xO,bO,EO,_O,SO;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Jm=="object"&&typeof Jm.exports=="object"?e(r(t,r(Jm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};oO=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},sO=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},aO=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},uO=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},lO=function(r,n){return function(i,o){n(i,o,r)}},cO=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},fO=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},dO=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},SO=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},hO=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Xm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Ix=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},pO=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Ix(arguments[n]));return r},mO=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},cl=function(r){return this instanceof cl?(this.v=r,this):new cl(r)},gO=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof cl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},yO=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:cl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},vO=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Xm=="function"?Xm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},wO=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},xO=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},bO=function(r){return r&&r.__esModule?r:{default:r}},EO=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},_O=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",oO),e("__assign",sO),e("__rest",aO),e("__decorate",uO),e("__param",lO),e("__metadata",cO),e("__awaiter",fO),e("__generator",dO),e("__exportStar",hO),e("__createBinding",SO),e("__values",Xm),e("__read",Ix),e("__spread",pO),e("__spreadArrays",mO),e("__await",cl),e("__asyncGenerator",gO),e("__asyncDelegator",yO),e("__asyncValues",vO),e("__makeTemplateObject",wO),e("__importStar",xO),e("__importDefault",bO),e("__classPrivateFieldGet",EO),e("__classPrivateFieldSet",_O)})});var Ox=ee(fl=>{"use strict";c();d();f();Object.defineProperty(fl,"__esModule",{value:!0});fl.PINO_CUSTOM_CONTEXT_KEY=fl.PINO_LOGGER_DEFAULTS=void 0;fl.PINO_LOGGER_DEFAULTS={level:"info"};fl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var OO=ee(Br=>{"use strict";c();d();f();Object.defineProperty(Br,"__esModule",{value:!0});Br.generateChildLogger=Br.formatChildLoggerContext=Br.getLoggerContext=Br.setBrowserLoggerContext=Br.getBrowserLoggerContext=Br.getDefaultLoggerOptions=void 0;var dl=Ox();function BH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||dl.PINO_LOGGER_DEFAULTS.level})}Br.getDefaultLoggerOptions=BH;function TO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Br.getBrowserLoggerContext=TO;function PO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Br.setBrowserLoggerContext=PO;function DO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=TO(e,t):r=e.bindings().context||"",r}Br.getLoggerContext=DO;function IO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=DO(e,r);return n.trim()?`${n}/${t}`:t}Br.formatChildLoggerContext=IO;function jH(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=IO(e,t,r),i=e.child({context:n});return PO(i,n,r)}Br.generateChildLogger=jH});var Rx=ee(hl=>{"use strict";c();d();f();Object.defineProperty(hl,"__esModule",{value:!0});hl.pino=void 0;var Ax=CO(),zH=Ax.__importDefault(Tm());Object.defineProperty(hl,"pino",{enumerable:!0,get:function(){return zH.default}});Ax.__exportStar(Ox(),hl);Ax.__exportStar(OO(),hl)});var NO=ee(s0=>{"use strict";c();d();f();Object.defineProperty(s0,"__esModule",{value:!0});s0.BrowserRandomSource=void 0;var RO=65536,Nx=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=RO)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,RO)));return r}};s0.BrowserRandomSource=Nx});var Sn=ee(Mx=>{"use strict";c();d();f();Object.defineProperty(Mx,"__esModule",{value:!0});function HH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Mx.wipe=HH});var MO=ee(()=>{c();d();f()});var kO=ee(a0=>{"use strict";c();d();f();Object.defineProperty(a0,"__esModule",{value:!0});a0.NodeRandomSource=void 0;var KH=Sn(),kx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof D2<"u"){let t=MO();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,KH.wipe)(r),n}};a0.NodeRandomSource=kx});var LO=ee(u0=>{"use strict";c();d();f();Object.defineProperty(u0,"__esModule",{value:!0});u0.SystemRandomSource=void 0;var qH=NO(),WH=kO(),Lx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new qH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new WH.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};u0.SystemRandomSource=Lx});var FO=ee(on=>{"use strict";c();d();f();Object.defineProperty(on,"__esModule",{value:!0});function GH(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}on.mul=Math.imul||GH;function YH(e,t){return e+t|0}on.add=YH;function XH(e,t){return e-t|0}on.sub=XH;function JH(e,t){return e<<t|e>>>32-t}on.rotl=JH;function ZH(e,t){return e<<32-t|e>>>t}on.rotr=ZH;function QH(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}on.isInteger=Number.isInteger||QH;on.MAX_SAFE_INTEGER=9007199254740991;on.isSafeInteger=function(e){return on.isInteger(e)&&e>=-on.MAX_SAFE_INTEGER&&e<=on.MAX_SAFE_INTEGER}});var ml=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var $O=FO();function eK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=eK;function tK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=tK;function rK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=rK;function nK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=nK;function UO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}we.writeUint16BE=UO;we.writeInt16BE=UO;function VO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}we.writeUint16LE=VO;we.writeInt16LE=VO;function Fx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Fx;function $x(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}we.readUint32BE=$x;function Ux(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=Ux;function Vx(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}we.readUint32LE=Vx;function l0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}we.writeUint32BE=l0;we.writeInt32BE=l0;function c0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}we.writeUint32LE=c0;we.writeInt32LE=c0;function iK(e,t){t===void 0&&(t=0);var r=Fx(e,t),n=Fx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=iK;function oK(e,t){t===void 0&&(t=0);var r=$x(e,t),n=$x(e,t+4);return r*4294967296+n}we.readUint64BE=oK;function sK(e,t){t===void 0&&(t=0);var r=Ux(e,t),n=Ux(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=sK;function aK(e,t){t===void 0&&(t=0);var r=Vx(e,t),n=Vx(e,t+4);return n*4294967296+r}we.readUint64LE=aK;function BO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),l0(e/4294967296>>>0,t,r),l0(e>>>0,t,r+4),t}we.writeUint64BE=BO;we.writeInt64BE=BO;function jO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),c0(e>>>0,t,r),c0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=jO;we.writeInt64LE=jO;function uK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}we.readUintBE=uK;function lK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}we.readUintLE=lK;function cK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!$O.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}we.writeUintBE=cK;function fK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!$O.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}we.writeUintLE=fK;function dK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=dK;function hK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=hK;function pK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=pK;function mK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=mK;function gK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}we.writeFloat32BE=gK;function yK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}we.writeFloat32LE=yK;function vK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}we.writeFloat64BE=vK;function wK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}we.writeFloat64LE=wK});var Js=ee(xr=>{"use strict";c();d();f();Object.defineProperty(xr,"__esModule",{value:!0});xr.randomStringForEntropy=xr.randomString=xr.randomUint32=xr.randomBytes=xr.defaultRandomSource=void 0;var xK=LO(),bK=ml(),zO=Sn();xr.defaultRandomSource=new xK.SystemRandomSource;function Bx(e,t=xr.defaultRandomSource){return t.randomBytes(e)}xr.randomBytes=Bx;function EK(e=xr.defaultRandomSource){let t=Bx(4,e),r=(0,bK.readUint32LE)(t);return(0,zO.wipe)(t),r}xr.randomUint32=EK;var HO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function KO(e,t=HO,r=xr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=Bx(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,zO.wipe)(s)}return n}xr.randomString=KO;function _K(e,t=HO,r=xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return KO(n,t,r)}xr.randomStringForEntropy=_K});var GO=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var yl=ml(),gl=Sn();Ai.DIGEST_LENGTH=64;Ai.BLOCK_SIZE=128;var WO=function(){function e(){this.digestLength=Ai.DIGEST_LENGTH,this.blockSize=Ai.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){gl.wipe(this._buffer),gl.wipe(this._tempHi),gl.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<Ai.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;yl.writeUint32BE(i,this._buffer,s-8),yl.writeUint32BE(o,this._buffer,s-4),jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)yl.writeUint32BE(this._stateHi[a],t,a*8),yl.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){gl.wipe(t.stateHi),gl.wipe(t.stateLo),t.buffer&&gl.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Ai.SHA512=WO;var qO=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function jx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],v=r[6],w=r[7],_=n[0],D=n[1],C=n[2],I=n[3],P=n[4],R=n[5],U=n[6],j=n[7],F,$,G,X,W,J,N,m;s>=128;){for(var E=0;E<16;E++){var O=8*E+o;e[E]=yl.readUint32BE(i,O),t[E]=yl.readUint32BE(i,O+4)}for(var E=0;E<80;E++){var A=a,M=u,V=l,B=p,k=h,b=y,L=v,Z=w,T=_,z=D,K=C,q=I,Q=P,ie=R,re=U,te=j;if(F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(h>>>14|P<<32-14)^(h>>>18|P<<32-18)^(P>>>41-32|h<<32-(41-32)),$=(P>>>14|h<<32-14)^(P>>>18|h<<32-18)^(h>>>41-32|P<<32-(41-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=h&y^~h&v,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=qO[E*2],$=qO[E*2+1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=e[E%16],$=t[E%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,G=N&65535|m<<16,X=W&65535|J<<16,F=G,$=X,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),$=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=a&u^a&l^u&l,$=_&D^_&C^D&C,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,Z=N&65535|m<<16,te=W&65535|J<<16,F=B,$=q,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=G,$=X,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,B=N&65535|m<<16,q=W&65535|J<<16,u=A,l=M,p=V,h=B,y=k,v=b,w=L,a=Z,D=T,C=z,I=K,P=q,R=Q,U=ie,j=re,_=te,E%16===15)for(var O=0;O<16;O++)F=e[O],$=t[O],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(O+9)%16],$=t[(O+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+1)%16],X=t[(O+1)%16],F=(G>>>1|X<<32-1)^(G>>>8|X<<32-8)^G>>>7,$=(X>>>1|G<<32-1)^(X>>>8|G<<32-8)^(X>>>7|G<<32-7),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+14)%16],X=t[(O+14)%16],F=(G>>>19|X<<32-19)^(X>>>61-32|G<<32-(61-32))^G>>>6,$=(X>>>19|G<<32-19)^(G>>>61-32|X<<32-(61-32))^(X>>>6|G<<32-6),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,e[O]=N&65535|m<<16,t[O]=W&65535|J<<16}F=a,$=_,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[0],$=n[0],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[0]=a=N&65535|m<<16,n[0]=_=W&65535|J<<16,F=u,$=D,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[1],$=n[1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[1]=u=N&65535|m<<16,n[1]=D=W&65535|J<<16,F=l,$=C,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[2],$=n[2],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[2]=l=N&65535|m<<16,n[2]=C=W&65535|J<<16,F=p,$=I,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[3],$=n[3],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[3]=p=N&65535|m<<16,n[3]=I=W&65535|J<<16,F=h,$=P,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[4],$=n[4],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[4]=h=N&65535|m<<16,n[4]=P=W&65535|J<<16,F=y,$=R,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[5],$=n[5],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[5]=y=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=v,$=U,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[6],$=n[6],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[6]=v=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[7],$=n[7],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[7]=w=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function SK(e){var t=new WO;t.update(e);var r=t.digest();return t.clean(),r}Ai.hash=SK});var uA=ee(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertSecretKeyToX25519=Ie.convertPublicKeyToX25519=Ie.verify=Ie.sign=Ie.extractPublicKeyFromSecretKey=Ie.generateKeyPair=Ie.generateKeyPairFromSeed=Ie.SEED_LENGTH=Ie.SECRET_KEY_LENGTH=Ie.PUBLIC_KEY_LENGTH=Ie.SIGNATURE_LENGTH=void 0;var CK=Js(),Ff=GO(),QO=Sn();Ie.SIGNATURE_LENGTH=64;Ie.PUBLIC_KEY_LENGTH=32;Ie.SECRET_KEY_LENGTH=64;Ie.SEED_LENGTH=32;function me(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var TK=new Uint8Array(32);TK[0]=9;var Kx=me(),vl=me([1]),PK=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),DK=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),YO=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),XO=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),IK=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lo(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function zx(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function eA(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function $f(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];zx(n),zx(n),zx(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,eA(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function tA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function JO(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return $f(r,e),$f(n,t),tA(r,n)}function rA(e){let t=new Uint8Array(32);return $f(t,e),t[0]&1}function OK(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Zs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function ea(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Re(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Qs(e,t){Re(e,t,t)}function nA(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Qs(r,r),n!==2&&n!==4&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function AK(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Qs(r,r),n!==1&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function qx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();ea(r,e[1],e[0]),ea(p,t[1],t[0]),Re(r,r,p),Zs(n,e[0],e[1]),Zs(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,DK),Re(o,e[2],t[2]),Zs(o,o,o),ea(s,n,r),ea(a,o,i),Zs(u,o,i),Zs(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function ZO(e,t,r){for(let n=0;n<4;n++)eA(e[n],t[n],r)}function Gx(e,t){let r=me(),n=me(),i=me();nA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),$f(e,n),e[31]^=rA(r)<<7}function iA(e,t,r){Lo(e[0],Kx),Lo(e[1],vl),Lo(e[2],vl),Lo(e[3],Kx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;ZO(e,t,i),qx(t,e),qx(e,e),ZO(e,t,i)}}function Yx(e,t){let r=[me(),me(),me(),me()];Lo(r[0],YO),Lo(r[1],XO),Lo(r[2],vl),Re(r[3],YO,XO),iA(e,r,t)}function oA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,Ff.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Yx(n,t),Gx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=oA;function RK(e){let t=(0,CK.randomBytes)(32,e),r=oA(t);return(0,QO.wipe)(t),r}Ie.generateKeyPair=RK;function NK(e){if(e.length!==Ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Ie.extractPublicKeyFromSecretKey=NK;var Hx=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function sA(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*Hx[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*Hx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Hx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Wx(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;sA(e,t)}function MK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,Ff.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new Ff.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),Wx(a),Yx(n,a),Gx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();Wx(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return sA(o.subarray(32),r),o}Ie.sign=MK;function aA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Lo(e[2],vl),OK(e[1],t),Qs(i,e[1]),Re(o,i,PK),ea(i,i,e[2]),Zs(o,e[2],o),Qs(s,o),Qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),AK(r,r),Re(r,r,i),Re(r,r,o),Re(r,r,o),Re(e[0],r,o),Qs(n,e[0]),Re(n,n,o),JO(n,i)&&Re(e[0],e[0],IK),Qs(n,e[0]),Re(n,n,o),JO(n,i)?-1:(rA(e[0])===t[31]>>7&&ea(e[0],Kx,e[0]),Re(e[3],e[0],e[1]),0)}function kK(e,t,r){let n=new Uint8Array(32),i=[me(),me(),me(),me()],o=[me(),me(),me(),me()];if(r.length!==Ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Ie.SIGNATURE_LENGTH} bytes`);if(aA(o,e))return!1;let s=new Ff.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Wx(a),iA(i,o,a),Yx(o,r.subarray(32)),qx(i,o),Gx(n,i),!tA(r,n)}Ie.verify=kK;function LK(e){let t=[me(),me(),me(),me()];if(aA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Zs(r,vl,i),ea(n,vl,i),nA(n,n),Re(r,r,n);let o=new Uint8Array(32);return $f(o,r),o}Ie.convertPublicKeyToX25519=LK;function FK(e){let t=(0,Ff.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,QO.wipe)(t),r}Ie.convertSecretKeyToX25519=FK});var KA=ee(x0=>{"use strict";c();d();f();Object.defineProperty(x0,"__esModule",{value:!0});var br=ml(),xb=Sn(),Jq=20;function Zq(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],D=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],I=t[15]<<24|t[14]<<16|t[13]<<8|t[12],P=n,R=i,U=o,j=s,F=a,$=u,G=l,X=p,W=h,J=y,N=v,m=w,E=_,O=D,A=C,M=I,V=0;V<Jq;V+=2)P=P+F|0,E^=P,E=E>>>32-16|E<<16,W=W+E|0,F^=W,F=F>>>32-12|F<<12,R=R+$|0,O^=R,O=O>>>32-16|O<<16,J=J+O|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,A^=U,A=A>>>32-16|A<<16,N=N+A|0,G^=N,G=G>>>32-12|G<<12,j=j+X|0,M^=j,M=M>>>32-16|M<<16,m=m+M|0,X^=m,X=X>>>32-12|X<<12,U=U+G|0,A^=U,A=A>>>32-8|A<<8,N=N+A|0,G^=N,G=G>>>32-7|G<<7,j=j+X|0,M^=j,M=M>>>32-8|M<<8,m=m+M|0,X^=m,X=X>>>32-7|X<<7,R=R+$|0,O^=R,O=O>>>32-8|O<<8,J=J+O|0,$^=J,$=$>>>32-7|$<<7,P=P+F|0,E^=P,E=E>>>32-8|E<<8,W=W+E|0,F^=W,F=F>>>32-7|F<<7,P=P+$|0,M^=P,M=M>>>32-16|M<<16,N=N+M|0,$^=N,$=$>>>32-12|$<<12,R=R+G|0,E^=R,E=E>>>32-16|E<<16,m=m+E|0,G^=m,G=G>>>32-12|G<<12,U=U+X|0,O^=U,O=O>>>32-16|O<<16,W=W+O|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,A^=j,A=A>>>32-16|A<<16,J=J+A|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,O^=U,O=O>>>32-8|O<<8,W=W+O|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,A^=j,A=A>>>32-8|A<<8,J=J+A|0,F^=J,F=F>>>32-7|F<<7,R=R+G|0,E^=R,E=E>>>32-8|E<<8,m=m+E|0,G^=m,G=G>>>32-7|G<<7,P=P+$|0,M^=P,M=M>>>32-8|M<<8,N=N+M|0,$^=N,$=$>>>32-7|$<<7;br.writeUint32LE(P+n|0,e,0),br.writeUint32LE(R+i|0,e,4),br.writeUint32LE(U+o|0,e,8),br.writeUint32LE(j+s|0,e,12),br.writeUint32LE(F+a|0,e,16),br.writeUint32LE($+u|0,e,20),br.writeUint32LE(G+l|0,e,24),br.writeUint32LE(X+p|0,e,28),br.writeUint32LE(W+h|0,e,32),br.writeUint32LE(J+y|0,e,36),br.writeUint32LE(N+v|0,e,40),br.writeUint32LE(m+w|0,e,44),br.writeUint32LE(E+_|0,e,48),br.writeUint32LE(O+D|0,e,52),br.writeUint32LE(A+C|0,e,56),br.writeUint32LE(M+I|0,e,60)}function HA(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){Zq(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];eW(o,0,s)}return xb.wipe(a),i===0&&xb.wipe(o),n}x0.streamXOR=HA;function Qq(e,t,r,n){return n===void 0&&(n=0),xb.wipe(r),HA(e,t,r,r,n)}x0.stream=Qq;function eW(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var b0=ee(Tl=>{"use strict";c();d();f();Object.defineProperty(Tl,"__esModule",{value:!0});function tW(e,t,r){return~(e-1)&t|e-1&r}Tl.select=tW;function rW(e,t){return(e|0)-(t|0)-1>>>31&1}Tl.lessOrEqual=rW;function qA(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Tl.compare=qA;function nW(e,t){return e.length===0||t.length===0?!1:qA(e,t)!==0}Tl.equal=nW});var GA=ee(Ni=>{"use strict";c();d();f();Object.defineProperty(Ni,"__esModule",{value:!0});var iW=b0(),E0=Sn();Ni.DIGEST_LENGTH=16;var WA=function(){function e(t){this.digestLength=Ni.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],v=this._h[8],w=this._h[9],_=this._r[0],D=this._r[1],C=this._r[2],I=this._r[3],P=this._r[4],R=this._r[5],U=this._r[6],j=this._r[7],F=this._r[8],$=this._r[9];n>=16;){var G=t[r+0]|t[r+1]<<8;o+=G&8191;var X=t[r+2]|t[r+3]<<8;s+=(G>>>13|X<<3)&8191;var W=t[r+4]|t[r+5]<<8;a+=(X>>>10|W<<6)&8191;var J=t[r+6]|t[r+7]<<8;u+=(W>>>7|J<<9)&8191;var N=t[r+8]|t[r+9]<<8;l+=(J>>>4|N<<12)&8191,p+=N>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(N>>>14|m<<2)&8191;var E=t[r+12]|t[r+13]<<8;y+=(m>>>11|E<<5)&8191;var O=t[r+14]|t[r+15]<<8;v+=(E>>>8|O<<8)&8191,w+=O>>>5|i;var A=0,M=A;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),A=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=y*(5*I),M+=v*(5*C),M+=w*(5*D),A+=M>>>13,M&=8191;var V=A;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),A=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=y*(5*P),V+=v*(5*I),V+=w*(5*C),A+=V>>>13,V&=8191;var B=A;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),A=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=y*(5*R),B+=v*(5*P),B+=w*(5*I),A+=B>>>13,B&=8191;var k=A;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),A=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=y*(5*U),k+=v*(5*R),k+=w*(5*P),A+=k>>>13,k&=8191;var b=A;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,A=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=y*(5*j),b+=v*(5*U),b+=w*(5*R),A+=b>>>13,b&=8191;var L=A;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,A=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=y*(5*F),L+=v*(5*j),L+=w*(5*U),A+=L>>>13,L&=8191;var Z=A;Z+=o*U,Z+=s*R,Z+=a*P,Z+=u*I,Z+=l*C,A=Z>>>13,Z&=8191,Z+=p*D,Z+=h*_,Z+=y*(5*$),Z+=v*(5*F),Z+=w*(5*j),A+=Z>>>13,Z&=8191;var T=A;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,A=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=y*_,T+=v*(5*$),T+=w*(5*F),A+=T>>>13,T&=8191;var z=A;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,A=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=y*D,z+=v*_,z+=w*(5*$),A+=z>>>13,z&=8191;var K=A;K+=o*$,K+=s*F,K+=a*j,K+=u*U,K+=l*R,A=K>>>13,K&=8191,K+=p*P,K+=h*I,K+=y*C,K+=v*D,K+=w*_,A+=K>>>13,K&=8191,A=(A<<2)+A|0,A=A+M|0,M=A&8191,A=A>>>13,V+=A,o=M,s=V,a=B,u=k,l=b,p=L,h=Z,y=T,v=z,w=K,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=v,this._h[9]=w},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return E0.wipe(this._buffer),E0.wipe(this._r),E0.wipe(this._h),E0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ni.Poly1305=WA;function oW(e,t){var r=new WA(e);r.update(t);var n=r.digest();return r.clean(),n}Ni.oneTimeAuth=oW;function sW(e,t){return e.length!==Ni.DIGEST_LENGTH||t.length!==Ni.DIGEST_LENGTH?!1:iW.equal(e,t)}Ni.equal=sW});var S0=ee(Mi=>{"use strict";c();d();f();Object.defineProperty(Mi,"__esModule",{value:!0});var _0=KA(),aW=GA(),Hf=Sn(),YA=ml(),uW=b0();Mi.KEY_LENGTH=32;Mi.NONCE_LENGTH=12;Mi.TAG_LENGTH=16;var XA=new Uint8Array(16),lW=function(){function e(t){if(this.nonceLength=Mi.NONCE_LENGTH,this.tagLength=Mi.TAG_LENGTH,t.length!==Mi.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return _0.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),Hf.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!uW.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return _0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),Hf.wipe(o),l},e.prototype.clean=function(){return Hf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new aW.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(XA.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(XA.subarray(n.length%16));var s=new Uint8Array(8);i&&YA.writeUint64LE(i.length,s),o.update(s),YA.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),Hf.wipe(a),Hf.wipe(s)},e}();Mi.ChaCha20Poly1305=lW});var JA=ee(bb=>{"use strict";c();d();f();Object.defineProperty(bb,"__esModule",{value:!0});function cW(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}bb.isSerializableHash=cW});var QA=ee(Kf=>{"use strict";c();d();f();Object.defineProperty(Kf,"__esModule",{value:!0});var oi=JA(),fW=b0(),dW=Sn(),ZA=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),oi.isSerializableHash(this._inner)&&oi.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),dW.wipe(n)}return e.prototype.reset=function(){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){oi.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),oi.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Kf.HMAC=ZA;function hW(e,t,r){var n=new ZA(e,t);n.update(r);var i=n.digest();return n.clean(),i}Kf.hmac=hW;Kf.equal=fW.equal});var C0=ee(Eb=>{"use strict";c();d();f();Object.defineProperty(Eb,"__esModule",{value:!0});var eR=QA(),tR=Sn(),pW=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=eR.hmac(this._hash,n,r);this._hmac=new eR.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),tR.wipe(this._buffer),tR.wipe(this._counter),this._bufpos=0},e}();Eb.HKDF=pW});var D0=ee($o=>{"use strict";c();d();f();Object.defineProperty($o,"__esModule",{value:!0});var P0=ml(),T0=Sn();$o.DIGEST_LENGTH=32;$o.BLOCK_SIZE=64;var rR=function(){function e(){this.digestLength=$o.DIGEST_LENGTH,this.blockSize=$o.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){T0.wipe(this._buffer),T0.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(_b(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=_b(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;P0.writeUint32BE(i,this._buffer,s-8),P0.writeUint32BE(o,this._buffer,s-4),_b(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)P0.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){T0.wipe(t.state),t.buffer&&T0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();$o.SHA256=rR;var mW=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function _b(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],v=0;v<16;v++){var w=n+v*4;e[v]=P0.readUint32BE(r,w)}for(var v=16;v<64;v++){var _=e[v-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[v-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[v]=(D+e[v-7]|0)+(C+e[v-16]|0)}for(var v=0;v<64;v++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(mW[v]+e[v]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;y=h,h=p,p=l,l=u+D|0,u=a,a=s,s=o,o=D+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,i-=64}return n}function gW(e){var t=new rR;t.update(e);var r=t.digest();return t.clean(),r}$o.hash=gW});var A0=ee(Nt=>{"use strict";c();d();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.sharedKey=Nt.generateKeyPair=Nt.generateKeyPairFromSeed=Nt.scalarMultBase=Nt.scalarMult=Nt.SHARED_KEY_LENGTH=Nt.SECRET_KEY_LENGTH=Nt.PUBLIC_KEY_LENGTH=void 0;var yW=Js(),vW=Sn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function si(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var nR=new Uint8Array(32);nR[0]=9;var wW=si([56129,1]);function Sb(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function qf(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function xW(e,t){let r=si(),n=si();for(let i=0;i<16;i++)n[i]=t[i];Sb(n),Sb(n),Sb(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,qf(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function bW(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function I0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function O0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function ki(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Wf(e,t){ki(e,t,t)}function EW(e,t){let r=si();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Wf(r,r),n!==2&&n!==4&&ki(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function Cb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=si(),o=si(),s=si(),a=si(),u=si(),l=si();for(let v=0;v<31;v++)r[v]=e[v];r[31]=e[31]&127|64,r[0]&=248,bW(n,t);for(let v=0;v<16;v++)o[v]=n[v];i[0]=a[0]=1;for(let v=254;v>=0;--v){let w=r[v>>>3]>>>(v&7)&1;qf(i,o,w),qf(s,a,w),I0(u,i,s),O0(i,i,s),I0(s,o,a),O0(o,o,a),Wf(a,u),Wf(l,i),ki(i,s,i),ki(s,o,u),I0(u,i,s),O0(i,i,s),Wf(o,i),O0(s,a,l),ki(i,s,wW),I0(i,i,a),ki(s,s,i),ki(i,a,l),ki(a,o,n),Wf(o,u),qf(i,o,w),qf(s,a,w)}for(let v=0;v<16;v++)n[v+16]=i[v],n[v+32]=s[v],n[v+48]=o[v],n[v+64]=a[v];let p=n.subarray(32),h=n.subarray(16);EW(p,p),ki(h,h,p);let y=new Uint8Array(32);return xW(y,h),y}Nt.scalarMult=Cb;function iR(e){return Cb(e,nR)}Nt.scalarMultBase=iR;function oR(e){if(e.length!==Nt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Nt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:iR(t),secretKey:t}}Nt.generateKeyPairFromSeed=oR;function _W(e){let t=(0,yW.randomBytes)(32,e),r=oR(t);return(0,vW.wipe)(t),r}Nt.generateKeyPair=_W;function SW(e,t,r=!1){if(e.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Cb(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Nt.sharedKey=SW});var na=ee(Ue=>{"use strict";c();d();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getLocalStorage=Ue.getLocalStorageOrThrow=Ue.getCrypto=Ue.getCryptoOrThrow=Ue.getLocation=Ue.getLocationOrThrow=Ue.getNavigator=Ue.getNavigatorOrThrow=Ue.getDocument=Ue.getDocumentOrThrow=Ue.getFromWindowOrThrow=Ue.getFromWindow=void 0;function ra(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=ra;function Dl(e){let t=ra(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=Dl;function $W(){return Dl("document")}Ue.getDocumentOrThrow=$W;function UW(){return ra("document")}Ue.getDocument=UW;function VW(){return Dl("navigator")}Ue.getNavigatorOrThrow=VW;function BW(){return ra("navigator")}Ue.getNavigator=BW;function jW(){return Dl("location")}Ue.getLocationOrThrow=jW;function zW(){return ra("location")}Ue.getLocation=zW;function HW(){return Dl("crypto")}Ue.getCryptoOrThrow=HW;function KW(){return ra("crypto")}Ue.getCrypto=KW;function qW(){return Dl("localStorage")}Ue.getLocalStorageOrThrow=qW;function WW(){return ra("localStorage")}Ue.getLocalStorage=WW});var pR=ee(N0=>{"use strict";c();d();f();Object.defineProperty(N0,"__esModule",{value:!0});N0.getWindowMetadata=void 0;var hR=na();function GW(){let e,t;try{e=hR.getDocumentOrThrow(),t=hR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}N0.getWindowMetadata=GW});var M0=ee((n1e,mR)=>{"use strict";c();d();f();mR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var k0=ee((i1e,wR)=>{"use strict";c();d();f();var vR="%[a-f0-9]{2}",gR=new RegExp("("+vR+")|([^%]+?)","gi"),yR=new RegExp("("+vR+")+","gi");function Pb(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Pb(r),Pb(n))}function YW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(gR)||[],r=1;r<t.length;r++)e=Pb(t,r).join(""),t=e.match(gR)||[];return e}}function XW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=yR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=YW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=yR.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}wR.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return XW(e)}}});var L0=ee((o1e,xR)=>{"use strict";c();d();f();xR.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var F0=ee((s1e,bR)=>{"use strict";c();d();f();bR.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var IR=ee(jr=>{"use strict";c();d();f();var JW=M0(),ZW=k0(),_R=L0(),QW=F0(),eG=e=>e==null,Db=Symbol("encodeFragmentIdentifier");function tG(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[",i,"]"].join("")]:[...r,[Lt(t,e),"[",Lt(i,e),"]=",Lt(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[]"].join("")]:[...r,[Lt(t,e),"[]=",Lt(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),":list="].join("")]:[...r,[Lt(t,e),":list=",Lt(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Lt(r,e),t,Lt(i,e)].join("")]:[[n,Lt(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Lt(t,e)]:[...r,[Lt(t,e),"=",Lt(n,e)].join("")]}}function rG(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Li(n,e).includes(e.arrayFormatSeparator);n=s?Li(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Li(u,e)):n===null?n:Li(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Li(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Li(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function SR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?JW(e):encodeURIComponent(e):e}function Li(e,t){return t.decode?ZW(e):e}function CR(e){return Array.isArray(e)?e.sort():typeof e=="object"?CR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function TR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function nG(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function PR(e){e=TR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function ER(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function DR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),SR(t.arrayFormatSeparator);let r=rG(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=_R(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Li(s,t),r(Li(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=ER(o[s],t);else n[i]=ER(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=CR(s):i[o]=s,i},Object.create(null))}jr.extract=PR;jr.parse=DR;jr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),SR(t.arrayFormatSeparator);let r=s=>t.skipNull&&eG(e[s])||t.skipEmptyString&&e[s]==="",n=tG(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Lt(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Lt(s,t)+"[]":a.reduce(n(s),[]).join("&"):Lt(s,t)+"="+Lt(a,t)}).filter(s=>s.length>0).join("&")};jr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=_R(e,"#");return Object.assign({url:r.split("?")[0]||"",query:DR(PR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Li(n,t)}:{})};jr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Db]:!0},t);let r=TR(e.url).split("?")[0]||"",n=jr.extract(e.url),i=jr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=jr.stringify(o,t);s&&(s=`?${s}`);let a=nG(e.url);return e.fragmentIdentifier&&(a=`#${t[Db]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};jr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Db]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=jr.parseUrl(e,r);return jr.stringifyUrl({url:n,query:QW(i,t),fragmentIdentifier:o},r)};jr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return jr.pick(e,n,r)}});var DN=ee(($1e,Q0)=>{c();d();f();var uN,lN,cN,fN,dN,hN,pN,mN,gN,Z0,Hb,yN,vN,Rl,wN,xN,bN,EN,_N,SN,CN,TN,PN;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Q0=="object"&&typeof Q0.exports=="object"?e(r(t,r(Q0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};uN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},lN=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},cN=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},fN=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},dN=function(r,n){return function(i,o){n(i,o,r)}},hN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},pN=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},mN=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},PN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},gN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Z0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Hb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},yN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Hb(arguments[n]));return r},vN=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Rl=function(r){return this instanceof Rl?(this.v=r,this):new Rl(r)},wN=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof Rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},xN=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},bN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Z0=="function"?Z0(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},EN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},_N=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},SN=function(r){return r&&r.__esModule?r:{default:r}},CN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},TN=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",uN),e("__assign",lN),e("__rest",cN),e("__decorate",fN),e("__param",dN),e("__metadata",hN),e("__awaiter",pN),e("__generator",mN),e("__exportStar",gN),e("__createBinding",PN),e("__values",Z0),e("__read",Hb),e("__spread",yN),e("__spreadArrays",vN),e("__await",Rl),e("__asyncGenerator",wN),e("__asyncDelegator",xN),e("__asyncValues",bN),e("__makeTemplateObject",EN),e("__importStar",_N),e("__importDefault",SN),e("__classPrivateFieldGet",CN),e("__classPrivateFieldSet",TN)})});var ON=ee(Bo=>{"use strict";c();d();f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.isBrowserCryptoAvailable=Bo.getSubtleCrypto=Bo.getBrowerCrypto=void 0;function Kb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Bo.getBrowerCrypto=Kb;function IN(){let e=Kb();return e.subtle||e.webkitSubtle}Bo.getSubtleCrypto=IN;function AG(){return!!Kb()&&!!IN()}Bo.isBrowserCryptoAvailable=AG});var NN=ee(jo=>{"use strict";c();d();f();Object.defineProperty(jo,"__esModule",{value:!0});jo.isBrowser=jo.isNode=jo.isReactNative=void 0;function AN(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}jo.isReactNative=AN;function RN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}jo.isNode=RN;function RG(){return!AN()&&!RN()}jo.isBrowser=RG});var qb=ee(eg=>{"use strict";c();d();f();Object.defineProperty(eg,"__esModule",{value:!0});var MN=DN();MN.__exportStar(ON(),eg);MN.__exportStar(NN(),eg)});var jN=ee((wve,BN)=>{"use strict";c();d();f();BN.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var PM=ee((rd,Fl)=>{c();d();f();var HG=200,aE="__lodash_hash_undefined__",hg=1,iM=2,oM=9007199254740991,sg="[object Arguments]",eE="[object Array]",KG="[object AsyncFunction]",sM="[object Boolean]",aM="[object Date]",uM="[object Error]",lM="[object Function]",qG="[object GeneratorFunction]",ag="[object Map]",cM="[object Number]",WG="[object Null]",Ll="[object Object]",WN="[object Promise]",GG="[object Proxy]",fM="[object RegExp]",ug="[object Set]",dM="[object String]",YG="[object Symbol]",XG="[object Undefined]",tE="[object WeakMap]",hM="[object ArrayBuffer]",lg="[object DataView]",JG="[object Float32Array]",ZG="[object Float64Array]",QG="[object Int8Array]",eY="[object Int16Array]",tY="[object Int32Array]",rY="[object Uint8Array]",nY="[object Uint8ClampedArray]",iY="[object Uint16Array]",oY="[object Uint32Array]",sY=/[\\^$.*+?()[\]{}|]/g,aY=/^\[object .+?Constructor\]$/,uY=/^(?:0|[1-9]\d*)$/,bt={};bt[JG]=bt[ZG]=bt[QG]=bt[eY]=bt[tY]=bt[rY]=bt[nY]=bt[iY]=bt[oY]=!0;bt[sg]=bt[eE]=bt[hM]=bt[sM]=bt[lg]=bt[aM]=bt[uM]=bt[lM]=bt[ag]=bt[cM]=bt[Ll]=bt[fM]=bt[ug]=bt[dM]=bt[tE]=!1;var pM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,lY=typeof self=="object"&&self&&self.Object===Object&&self,Fi=pM||lY||Function("return this")(),mM=typeof rd=="object"&&rd&&!rd.nodeType&&rd,GN=mM&&typeof Fl=="object"&&Fl&&!Fl.nodeType&&Fl,gM=GN&&GN.exports===mM,Jb=gM&&pM.process,YN=function(){try{return Jb&&Jb.binding&&Jb.binding("util")}catch(e){}}(),XN=YN&&YN.isTypedArray;function cY(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function fY(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function dY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function hY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function pY(e){return function(t){return e(t)}}function mY(e,t){return e.has(t)}function gY(e,t){return e==null?void 0:e[t]}function yY(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function vY(e,t){return function(r){return e(t(r))}}function wY(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var xY=Array.prototype,bY=Function.prototype,pg=Object.prototype,Zb=Fi["__core-js_shared__"],yM=bY.toString,ai=pg.hasOwnProperty,JN=function(){var e=/[^.]+$/.exec(Zb&&Zb.keys&&Zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vM=pg.toString,EY=RegExp("^"+yM.call(ai).replace(sY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZN=gM?Fi.Buffer:void 0,cg=Fi.Symbol,QN=Fi.Uint8Array,wM=pg.propertyIsEnumerable,_Y=xY.splice,ua=cg?cg.toStringTag:void 0,eM=Object.getOwnPropertySymbols,SY=ZN?ZN.isBuffer:void 0,CY=vY(Object.keys,Object),rE=$l(Fi,"DataView"),nd=$l(Fi,"Map"),nE=$l(Fi,"Promise"),iE=$l(Fi,"Set"),oE=$l(Fi,"WeakMap"),id=$l(Object,"create"),TY=fa(rE),PY=fa(nd),DY=fa(nE),IY=fa(iE),OY=fa(oE),tM=cg?cg.prototype:void 0,Qb=tM?tM.valueOf:void 0;function la(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function AY(){this.__data__=id?id(null):{},this.size=0}function RY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function NY(e){var t=this.__data__;if(id){var r=t[e];return r===aE?void 0:r}return ai.call(t,e)?t[e]:void 0}function MY(e){var t=this.__data__;return id?t[e]!==void 0:ai.call(t,e)}function kY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=id&&t===void 0?aE:t,this}la.prototype.clear=AY;la.prototype.delete=RY;la.prototype.get=NY;la.prototype.has=MY;la.prototype.set=kY;function $i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function LY(){this.__data__=[],this.size=0}function FY(e){var t=this.__data__,r=mg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_Y.call(t,r,1),--this.size,!0}function $Y(e){var t=this.__data__,r=mg(t,e);return r<0?void 0:t[r][1]}function UY(e){return mg(this.__data__,e)>-1}function VY(e,t){var r=this.__data__,n=mg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}$i.prototype.clear=LY;$i.prototype.delete=FY;$i.prototype.get=$Y;$i.prototype.has=UY;$i.prototype.set=VY;function ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function BY(){this.size=0,this.__data__={hash:new la,map:new(nd||$i),string:new la}}function jY(e){var t=gg(this,e).delete(e);return this.size-=t?1:0,t}function zY(e){return gg(this,e).get(e)}function HY(e){return gg(this,e).has(e)}function KY(e,t){var r=gg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ca.prototype.clear=BY;ca.prototype.delete=jY;ca.prototype.get=zY;ca.prototype.has=HY;ca.prototype.set=KY;function fg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ca;++t<r;)this.add(e[t])}function qY(e){return this.__data__.set(e,aE),this}function WY(e){return this.__data__.has(e)}fg.prototype.add=fg.prototype.push=qY;fg.prototype.has=WY;function Ko(e){var t=this.__data__=new $i(e);this.size=t.size}function GY(){this.__data__=new $i,this.size=0}function YY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function XY(e){return this.__data__.get(e)}function JY(e){return this.__data__.has(e)}function ZY(e,t){var r=this.__data__;if(r instanceof $i){var n=r.__data__;if(!nd||n.length<HG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ca(n)}return r.set(e,t),this.size=r.size,this}Ko.prototype.clear=GY;Ko.prototype.delete=YY;Ko.prototype.get=XY;Ko.prototype.has=JY;Ko.prototype.set=ZY;function QY(e,t){var r=dg(e),n=!r&&pX(e),i=!r&&!n&&sE(e),o=!r&&!n&&!i&&TM(e),s=r||n||i||o,a=s?hY(e.length,String):[],u=a.length;for(var l in e)(t||ai.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||lX(l,u)))&&a.push(l);return a}function mg(e,t){for(var r=e.length;r--;)if(EM(e[r][0],t))return r;return-1}function eX(e,t,r){var n=t(e);return dg(e)?n:fY(n,r(e))}function sd(e){return e==null?e===void 0?XG:WG:ua&&ua in Object(e)?aX(e):hX(e)}function rM(e){return od(e)&&sd(e)==sg}function xM(e,t,r,n,i){return e===t?!0:e==null||t==null||!od(e)&&!od(t)?e!==e&&t!==t:tX(e,t,r,n,xM,i)}function tX(e,t,r,n,i,o){var s=dg(e),a=dg(t),u=s?eE:Ho(e),l=a?eE:Ho(t);u=u==sg?Ll:u,l=l==sg?Ll:l;var p=u==Ll,h=l==Ll,y=u==l;if(y&&sE(e)){if(!sE(t))return!1;s=!0,p=!1}if(y&&!p)return o||(o=new Ko),s||TM(e)?bM(e,t,r,n,i,o):oX(e,t,u,r,n,i,o);if(!(r&hg)){var v=p&&ai.call(e,"__wrapped__"),w=h&&ai.call(t,"__wrapped__");if(v||w){var _=v?e.value():e,D=w?t.value():t;return o||(o=new Ko),i(_,D,r,n,o)}}return y?(o||(o=new Ko),sX(e,t,r,n,i,o)):!1}function rX(e){if(!CM(e)||fX(e))return!1;var t=_M(e)?EY:aY;return t.test(fa(e))}function nX(e){return od(e)&&SM(e.length)&&!!bt[sd(e)]}function iX(e){if(!dX(e))return CY(e);var t=[];for(var r in Object(e))ai.call(e,r)&&r!="constructor"&&t.push(r);return t}function bM(e,t,r,n,i,o){var s=r&hg,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,y=r&iM?new fg:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var v=e[p],w=t[p];if(n)var _=s?n(w,v,p,t,e,o):n(v,w,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(y){if(!dY(t,function(D,C){if(!mY(y,C)&&(v===D||i(v,D,r,n,o)))return y.push(C)})){h=!1;break}}else if(!(v===w||i(v,w,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function oX(e,t,r,n,i,o,s){switch(r){case lg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hM:return!(e.byteLength!=t.byteLength||!o(new QN(e),new QN(t)));case sM:case aM:case cM:return EM(+e,+t);case uM:return e.name==t.name&&e.message==t.message;case fM:case dM:return e==t+"";case ag:var a=yY;case ug:var u=n&hg;if(a||(a=wY),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=iM,s.set(e,t);var p=bM(a(e),a(t),n,i,o,s);return s.delete(e),p;case YG:if(Qb)return Qb.call(e)==Qb.call(t)}return!1}function sX(e,t,r,n,i,o){var s=r&hg,a=nM(e),u=a.length,l=nM(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:ai.call(t,y)))return!1}var v=o.get(e);if(v&&o.get(t))return v==t;var w=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){y=a[h];var D=e[y],C=t[y];if(n)var I=s?n(C,D,y,t,e,o):n(D,C,y,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){w=!1;break}_||(_=y=="constructor")}if(w&&!_){var P=e.constructor,R=t.constructor;P!=R&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(w=!1)}return o.delete(e),o.delete(t),w}function nM(e){return eX(e,yX,uX)}function gg(e,t){var r=e.__data__;return cX(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $l(e,t){var r=gY(e,t);return rX(r)?r:void 0}function aX(e){var t=ai.call(e,ua),r=e[ua];try{e[ua]=void 0;var n=!0}catch(o){}var i=vM.call(e);return n&&(t?e[ua]=r:delete e[ua]),i}var uX=eM?function(e){return e==null?[]:(e=Object(e),cY(eM(e),function(t){return wM.call(e,t)}))}:vX,Ho=sd;(rE&&Ho(new rE(new ArrayBuffer(1)))!=lg||nd&&Ho(new nd)!=ag||nE&&Ho(nE.resolve())!=WN||iE&&Ho(new iE)!=ug||oE&&Ho(new oE)!=tE)&&(Ho=function(e){var t=sd(e),r=t==Ll?e.constructor:void 0,n=r?fa(r):"";if(n)switch(n){case TY:return lg;case PY:return ag;case DY:return WN;case IY:return ug;case OY:return tE}return t});function lX(e,t){return t=t==null?oM:t,!!t&&(typeof e=="number"||uY.test(e))&&e>-1&&e%1==0&&e<t}function cX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fX(e){return!!JN&&JN in e}function dX(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pg;return e===r}function hX(e){return vM.call(e)}function fa(e){if(e!=null){try{return yM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function EM(e,t){return e===t||e!==e&&t!==t}var pX=rM(function(){return arguments}())?rM:function(e){return od(e)&&ai.call(e,"callee")&&!wM.call(e,"callee")},dg=Array.isArray;function mX(e){return e!=null&&SM(e.length)&&!_M(e)}var sE=SY||wX;function gX(e,t){return xM(e,t)}function _M(e){if(!CM(e))return!1;var t=sd(e);return t==lM||t==qG||t==KG||t==GG}function SM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oM}function CM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function od(e){return e!=null&&typeof e=="object"}var TM=XN?pY(XN):nX;function yX(e){return mX(e)?QY(e):iX(e)}function vX(){return[]}function wX(){return!1}Fl.exports=gX});var u7=ee(Eg=>{"use strict";c();d();f();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getWindowMetadata=void 0;var a7=na();function CZ(){let e,t;try{e=a7.getDocumentOrThrow(),t=a7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Eg.getWindowMetadata=CZ});var g7=ee(Hr=>{"use strict";c();d();f();var TZ=M0(),PZ=k0(),c7=L0(),DZ=F0(),IZ=e=>e==null,AE=Symbol("encodeFragmentIdentifier");function OZ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[",i,"]"].join("")]:[...r,[$t(t,e),"[",$t(i,e),"]=",$t(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[]"].join("")]:[...r,[$t(t,e),"[]=",$t(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),":list="].join("")]:[...r,[$t(t,e),":list=",$t(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[$t(r,e),t,$t(i,e)].join("")]:[[n,$t(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,$t(t,e)]:[...r,[$t(t,e),"=",$t(n,e)].join("")]}}function AZ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Vi(n,e).includes(e.arrayFormatSeparator);n=s?Vi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Vi(u,e)):n===null?n:Vi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Vi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Vi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function f7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $t(e,t){return t.encode?t.strict?TZ(e):encodeURIComponent(e):e}function Vi(e,t){return t.decode?PZ(e):e}function d7(e){return Array.isArray(e)?e.sort():typeof e=="object"?d7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function h7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function RZ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function p7(e){e=h7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function l7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function m7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f7(t.arrayFormatSeparator);let r=AZ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=c7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Vi(s,t),r(Vi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=l7(o[s],t);else n[i]=l7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=d7(s):i[o]=s,i},Object.create(null))}Hr.extract=p7;Hr.parse=m7;Hr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f7(t.arrayFormatSeparator);let r=s=>t.skipNull&&IZ(e[s])||t.skipEmptyString&&e[s]==="",n=OZ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?$t(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?$t(s,t)+"[]":a.reduce(n(s),[]).join("&"):$t(s,t)+"="+$t(a,t)}).filter(s=>s.length>0).join("&")};Hr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=c7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m7(p7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Vi(n,t)}:{})};Hr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[AE]:!0},t);let r=h7(e.url).split("?")[0]||"",n=Hr.extract(e.url),i=Hr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Hr.stringify(o,t);s&&(s=`?${s}`);let a=RZ(e.url);return e.fragmentIdentifier&&(a=`#${t[AE]?$t(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Hr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[AE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Hr.parseUrl(e,r);return Hr.stringifyUrl({url:n,query:DZ(i,t),fragmentIdentifier:o},r)};Hr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Hr.pick(e,n,r)}});var q7=ee(Pg=>{"use strict";c();d();f();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.getWindowMetadata=void 0;var K7=na();function rQ(){let e,t;try{e=K7.getDocumentOrThrow(),t=K7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Pg.getWindowMetadata=rQ});var ek=ee(qr=>{"use strict";c();d();f();var nQ=M0(),iQ=k0(),G7=L0(),oQ=F0(),sQ=e=>e==null,qE=Symbol("encodeFragmentIdentifier");function aQ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[",i,"]"].join("")]:[...r,[Ut(t,e),"[",Ut(i,e),"]=",Ut(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[]"].join("")]:[...r,[Ut(t,e),"[]=",Ut(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),":list="].join("")]:[...r,[Ut(t,e),":list=",Ut(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Ut(r,e),t,Ut(i,e)].join("")]:[[n,Ut(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Ut(t,e)]:[...r,[Ut(t,e),"=",Ut(n,e)].join("")]}}function uQ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Bi(n,e).includes(e.arrayFormatSeparator);n=s?Bi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Bi(u,e)):n===null?n:Bi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Bi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Bi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function Y7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ut(e,t){return t.encode?t.strict?nQ(e):encodeURIComponent(e):e}function Bi(e,t){return t.decode?iQ(e):e}function X7(e){return Array.isArray(e)?e.sort():typeof e=="object"?X7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function J7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function lQ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Z7(e){e=J7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function W7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Q7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),Y7(t.arrayFormatSeparator);let r=uQ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=G7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Bi(s,t),r(Bi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=W7(o[s],t);else n[i]=W7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=X7(s):i[o]=s,i},Object.create(null))}qr.extract=Z7;qr.parse=Q7;qr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Y7(t.arrayFormatSeparator);let r=s=>t.skipNull&&sQ(e[s])||t.skipEmptyString&&e[s]==="",n=aQ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Ut(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Ut(s,t)+"[]":a.reduce(n(s),[]).join("&"):Ut(s,t)+"="+Ut(a,t)}).filter(s=>s.length>0).join("&")};qr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=G7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Q7(Z7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Bi(n,t)}:{})};qr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[qE]:!0},t);let r=J7(e.url).split("?")[0]||"",n=qr.extract(e.url),i=qr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=qr.stringify(o,t);s&&(s=`?${s}`);let a=lQ(e.url);return e.fragmentIdentifier&&(a=`#${t[qE]?Ut(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};qr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[qE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=qr.parseUrl(e,r);return qr.stringifyUrl({url:n,query:oQ(i,t),fragmentIdentifier:o},r)};qr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return qr.pick(e,n,r)}});var ok=ee((Xve,Dg)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Dg=="object"&&Dg.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],v=[6,1536,393216,100663296],w=[0,8,16,24],_=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],D=[224,256,384,512],C=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],P={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var R=function(T,z,K){return function(q){return new b(T,z,T).update(q)[K]()}},U=function(T,z,K){return function(q,Q){return new b(T,z,Q).update(q)[K]()}},j=function(T,z,K){return function(q,Q,ie,re){return m["cshake"+T].update(q,Q,ie,re)[K]()}},F=function(T,z,K){return function(q,Q,ie,re){return m["kmac"+T].update(q,Q,ie,re)[K]()}},$=function(T,z,K,q){for(var Q=0;Q<I.length;++Q){var ie=I[Q];T[ie]=z(K,q,ie)}return T},G=function(T,z){var K=R(T,z,"hex");return K.create=function(){return new b(T,z,T)},K.update=function(q){return K.create().update(q)},$(K,R,T,z)},X=function(T,z){var K=U(T,z,"hex");return K.create=function(q){return new b(T,z,q)},K.update=function(q,Q){return K.create(Q).update(q)},$(K,U,T,z)},W=function(T,z){var K=P[T],q=j(T,z,"hex");return q.create=function(Q,ie,re){return!ie&&!re?m["shake"+T].create(Q):new b(T,z,Q).bytepad([ie,re],K)},q.update=function(Q,ie,re,te){return q.create(ie,re,te).update(Q)},$(q,j,T,z)},J=function(T,z){var K=P[T],q=F(T,z,"hex");return q.create=function(Q,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],K).bytepad([Q],K)},q.update=function(Q,ie,re,te){return q.create(Q,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:y,bits:D,createMethod:G},{name:"sha3",padding:v,bits:D,createMethod:G},{name:"shake",padding:p,bits:C,createMethod:X},{name:"cshake",padding:h,bits:C,createMethod:W},{name:"kmac",padding:h,bits:C,createMethod:J}],m={},E=[],O=0;O<N.length;++O)for(var A=N[O],M=A.bits,V=0;V<M.length;++V){var B=A.name+"_"+M[V];if(E.push(B),m[B]=A.createMethod(M[V],A.padding),A.name!=="sha3"){var k=A.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,K){this.blocks=[],this.s=[],this.padding=z,this.outputBits=K,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}for(var q=this.blocks,Q=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,ae;te<ie;){if(this.reset)for(this.reset=!1,q[0]=this.block,ne=1;ne<re+1;++ne)q[ne]=0;if(z)for(ne=this.start;te<ie&&ne<Q;++te)q[ne>>2]|=T[te]<<w[ne++&3];else for(ne=this.start;te<ie&&ne<Q;++te)ae=T.charCodeAt(te),ae<128?q[ne>>2]|=ae<<w[ne++&3]:ae<2048?(q[ne>>2]|=(192|ae>>6)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):ae<55296||ae>=57344?(q[ne>>2]|=(224|ae>>12)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):(ae=65536+((ae&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|ae>>18)<<w[ne++&3],q[ne>>2]|=(128|ae>>12&63)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]);if(this.lastByteIndex=ne,ne>=Q){for(this.start=ne-Q,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Z(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var K=T&255,q=1,Q=[K];for(T=T>>8,K=T&255;K>0;)Q.unshift(K),T=T>>8,K=T&255,++q;return z?Q.push(q):Q.unshift(q),this.update(Q),Q.length},b.prototype.encodeString=function(T){var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}var q=0,Q=T.length;if(z)q=Q;else for(var ie=0;ie<T.length;++ie){var re=T.charCodeAt(ie);re<128?q+=1:re<2048?q+=2:re<55296||re>=57344?q+=3:(re=65536+((re&1023)<<10|T.charCodeAt(++ie)&1023),q+=4)}return q+=this.encode(q*8),this.update(T),q},b.prototype.bytepad=function(T,z){for(var K=this.encode(z),q=0;q<T.length;++q)K+=this.encodeString(T[q]);var Q=z-K%z,ie=[];return ie.length=Q,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,K=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[K],z=1;z<K+1;++z)T[z]=0;for(T[K-1]|=2147483648,z=0;z<K;++z)q[z]^=T[z];Z(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re="",te;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=z[Q],re+=l[te>>4&15]+l[te&15]+l[te>>12&15]+l[te>>8&15]+l[te>>20&15]+l[te>>16&15]+l[te>>28&15]+l[te>>24&15];ie%T===0&&(Z(z),Q=0)}return q&&(te=z[Q],re+=l[te>>4&15]+l[te&15],q>1&&(re+=l[te>>12&15]+l[te>>8&15]),q>2&&(re+=l[te>>20&15]+l[te>>16&15])),re},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(K+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)he[ie]=z[Q];ie%T===0&&Z(z)}return q&&(he[Q]=z[Q],te=te.slice(0,re)),te},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=[],te,he;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=ie<<2,he=z[Q],re[te]=he&255,re[te+1]=he>>8&255,re[te+2]=he>>16&255,re[te+3]=he>>24&255;ie%T===0&&Z(z)}return q&&(te=ie<<2,he=z[Q],re[te]=he&255,q>1&&(re[te+1]=he>>8&255),q>2&&(re[te+2]=he>>16&255)),re};function L(T,z,K){b.call(this,T,z,K)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Z=function(T){var z,K,q,Q,ie,re,te,he,ne,ae,Xo,Be,je,Jo,ze,He,Zo,Ke,qe,Qo,We,Ge,es,Ye,Xe,ts,Je,Ze,rs,Qe,et,ns,tt,rt,is,nt,it,os,ot,st,ss,at,ut,as,lt,ct,us,ft,dt,ls,ht,pt,cs,mt,gt,fs,yt,vt,Hi,Ki,qi,Wi,Gi;for(q=0;q<48;q+=2)Q=T[0]^T[10]^T[20]^T[30]^T[40],ie=T[1]^T[11]^T[21]^T[31]^T[41],re=T[2]^T[12]^T[22]^T[32]^T[42],te=T[3]^T[13]^T[23]^T[33]^T[43],he=T[4]^T[14]^T[24]^T[34]^T[44],ne=T[5]^T[15]^T[25]^T[35]^T[45],ae=T[6]^T[16]^T[26]^T[36]^T[46],Xo=T[7]^T[17]^T[27]^T[37]^T[47],Be=T[8]^T[18]^T[28]^T[38]^T[48],je=T[9]^T[19]^T[29]^T[39]^T[49],z=Be^(re<<1|te>>>31),K=je^(te<<1|re>>>31),T[0]^=z,T[1]^=K,T[10]^=z,T[11]^=K,T[20]^=z,T[21]^=K,T[30]^=z,T[31]^=K,T[40]^=z,T[41]^=K,z=Q^(he<<1|ne>>>31),K=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=K,T[12]^=z,T[13]^=K,T[22]^=z,T[23]^=K,T[32]^=z,T[33]^=K,T[42]^=z,T[43]^=K,z=re^(ae<<1|Xo>>>31),K=te^(Xo<<1|ae>>>31),T[4]^=z,T[5]^=K,T[14]^=z,T[15]^=K,T[24]^=z,T[25]^=K,T[34]^=z,T[35]^=K,T[44]^=z,T[45]^=K,z=he^(Be<<1|je>>>31),K=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=K,T[16]^=z,T[17]^=K,T[26]^=z,T[27]^=K,T[36]^=z,T[37]^=K,T[46]^=z,T[47]^=K,z=ae^(Q<<1|ie>>>31),K=Xo^(ie<<1|Q>>>31),T[8]^=z,T[9]^=K,T[18]^=z,T[19]^=K,T[28]^=z,T[29]^=K,T[38]^=z,T[39]^=K,T[48]^=z,T[49]^=K,Jo=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,us=T[10]<<4|T[11]>>>28,Ze=T[20]<<3|T[21]>>>29,rs=T[21]<<3|T[20]>>>29,Ki=T[31]<<9|T[30]>>>23,qi=T[30]<<9|T[31]>>>23,at=T[40]<<18|T[41]>>>14,ut=T[41]<<18|T[40]>>>14,rt=T[2]<<1|T[3]>>>31,is=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,Zo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Qe=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Wi=T[42]<<2|T[43]>>>30,Gi=T[43]<<2|T[42]>>>30,mt=T[5]<<30|T[4]>>>2,gt=T[4]<<30|T[5]>>>2,nt=T[14]<<6|T[15]>>>26,it=T[15]<<6|T[14]>>>26,Ke=T[25]<<11|T[24]>>>21,qe=T[24]<<11|T[25]>>>21,ls=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,ns=T[45]<<29|T[44]>>>3,tt=T[44]<<29|T[45]>>>3,Ye=T[6]<<28|T[7]>>>4,Xe=T[7]<<28|T[6]>>>4,fs=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,os=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Qo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,cs=T[46]<<24|T[47]>>>8,as=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,ts=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Hi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,ss=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,es=T[49]<<14|T[48]>>>18,T[0]=Jo^~He&Ke,T[1]=ze^~Zo&qe,T[10]=Ye^~ts&Ze,T[11]=Xe^~Je&rs,T[20]=rt^~nt&os,T[21]=is^~it&ot,T[30]=as^~ct&ft,T[31]=lt^~us&dt,T[40]=mt^~fs&vt,T[41]=gt^~yt&Hi,T[2]=He^~Ke&Qo,T[3]=Zo^~qe&We,T[12]=ts^~Ze&Qe,T[13]=Je^~rs&et,T[22]=nt^~os&st,T[23]=it^~ot&ss,T[32]=ct^~ft&ls,T[33]=us^~dt&ht,T[42]=fs^~vt&Ki,T[43]=yt^~Hi&qi,T[4]=Ke^~Qo&Ge,T[5]=qe^~We&es,T[14]=Ze^~Qe&ns,T[15]=rs^~et&tt,T[24]=os^~st&at,T[25]=ot^~ss&ut,T[34]=ft^~ls&pt,T[35]=dt^~ht&cs,T[44]=vt^~Ki&Wi,T[45]=Hi^~qi&Gi,T[6]=Qo^~Ge&Jo,T[7]=We^~es&ze,T[16]=Qe^~ns&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=ss^~ut&is,T[36]=ls^~pt&as,T[37]=ht^~cs&lt,T[46]=Ki^~Wi&mt,T[47]=qi^~Gi&gt,T[8]=Ge^~Jo&He,T[9]=es^~ze&Zo,T[18]=ns^~Ye&ts,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~is&it,T[38]=pt^~as&ct,T[39]=cs^~lt&us,T[48]=Wi^~mt&fs,T[49]=Gi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)Dg.exports=m;else{for(O=0;O<E.length;++O)n[E[O]]=m[E[O]];a&&define(function(){return m})}})()});var sk=ee(()=>{c();d();f()});var uk=ee((ak,YE)=>{c();d();f();(function(e,t){"use strict";function r(N,m){if(!N)throw new Error(m||"Assertion failed")}function n(N,m){N.super_=m;var E=function(){};E.prototype=m.prototype,N.prototype=new E,N.prototype.constructor=N}function i(N,m,E){if(i.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(N||0,m||10,E||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=sk().Buffer}catch(N){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,E){return m.cmp(E)>0?m:E},i.min=function(m,E){return m.cmp(E)<0?m:E},i.prototype._init=function(m,E,O){if(typeof m=="number")return this._initNumber(m,E,O);if(typeof m=="object")return this._initArray(m,E,O);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A<m.length&&(E===16?this._parseHex(m,A,O):(this._parseBase(m,E,A),O==="le"&&this._initArray(this.toArray(),E,O)))},i.prototype._initNumber=function(m,E,O){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),O==="le"&&this._initArray(this.toArray(),E,O)},i.prototype._initArray=function(m,E,O){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M,V,B=0;if(O==="be")for(A=m.length-1,M=0;A>=0;A-=3)V=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);else if(O==="le")for(A=0,M=0;A<m.length;A+=3)V=m[A]|m[A+1]<<8|m[A+2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);return this._strip()};function s(N,m){var E=N.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+N)}function a(N,m,E){var O=s(N,E);return E-1>=m&&(O|=s(N,E-1)<<4),O}i.prototype._parseHex=function(m,E,O){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M=0,V=0,B;if(O==="be")for(A=m.length-1;A>=E;A-=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8;else{var k=m.length-E;for(A=k%2===0?E+1:E;A<m.length;A+=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8}this._strip()};function u(N,m,E,O){for(var A=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;A*=O,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<O,"Invalid character"),A+=M}return A}i.prototype._parseBase=function(m,E,O){this.words=[0],this.length=1;for(var A=0,M=1;M<=67108863;M*=E)A++;A--,M=M/E|0;for(var V=m.length-O,B=V%A,k=Math.min(V,V-B)+O,b=0,L=O;L<k;L+=A)b=u(m,L,L+A,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Z=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Z*=E;this.imuln(Z),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(N,m){N.words=m.words,N.length=m.length,N.negative=m.negative,N.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(N){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,E){m=m||10,E=E|0||1;var O;if(m===16||m==="hex"){O="";for(var A=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<A|M)&16777215).toString(16);M=B>>>24-A&16777215,A+=2,A>=26&&(A-=26,V--),M!==0||V!==this.length-1?O=h[6-k.length]+k+O:O=k+O}for(M!==0&&(O=M.toString(16)+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(m===(m|0)&&m>=2&&m<=36){var b=y[m],L=v[m];O="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var T=Z.modrn(L).toString(m);Z=Z.idivn(L),Z.isZero()?O=T+O:O=h[b-T.length]+T+O}for(this.isZero()&&(O="0"+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),i.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var w=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,O){this._strip();var A=this.byteLength(),M=O||Math.max(1,A);r(A<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=w(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,A),V},i.prototype._toArrayLikeLE=function(m,E){for(var O=0,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O++]=B&255,O<m.length&&(m[O++]=B>>8&255),O<m.length&&(m[O++]=B>>16&255),V===6?(O<m.length&&(m[O++]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O<m.length)for(m[O++]=A;O<m.length;)m[O++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var O=m.length-1,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O--]=B&255,O>=0&&(m[O--]=B>>8&255),O>=0&&(m[O--]=B>>16&255),V===6?(O>=0&&(m[O--]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O>=0)for(m[O--]=A;O>=0;)m[O--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,O=0;return E>=4096&&(O+=13,E>>>=13),E>=64&&(O+=7,E>>>=7),E>=8&&(O+=4,E>>>=4),E>=2&&(O+=2,E>>>=2),O+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,O=0;return(E&8191)===0&&(O+=13,E>>>=13),(E&127)===0&&(O+=7,E>>>=7),(E&15)===0&&(O+=4,E>>>=4),(E&3)===0&&(O+=2,E>>>=2),(E&1)===0&&O++,O},i.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function _(N){for(var m=new Array(N.bitLength()),E=0;E<m.length;E++){var O=E/26|0,A=E%26;m[E]=N.words[O]>>>A&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var O=this._zeroBits(this.words[E]);if(m+=O,O!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var O=0;O<E.length;O++)this.words[O]=this.words[O]&m.words[O];return this.length=E.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var E,O;this.length>m.length?(E=this,O=m):(E=m,O=this);for(var A=0;A<O.length;A++)this.words[A]=E.words[A]^O.words[A];if(this!==E)for(;A<E.length;A++)this.words[A]=E.words[A];return this.length=E.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,O=m%26;this._expand(E),O>0&&E--;for(var A=0;A<E;A++)this.words[A]=~this.words[A]&67108863;return O>0&&(this.words[A]=~this.words[A]&67108863>>26-O),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var O=m/26|0,A=m%26;return this._expand(O+1),E?this.words[O]=this.words[O]|1<<A:this.words[O]=this.words[O]&~(1<<A),this._strip()},i.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var O,A;this.length>m.length?(O=this,A=m):(O=m,A=this);for(var M=0,V=0;V<A.length;V++)E=(O.words[V]|0)+(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<O.length;V++)E=(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=O.length,M!==0)this.words[this.length]=M,this.length++;else if(O!==this)for(;V<O.length;V++)this.words[V]=O.words[V];return this},i.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var O=this.cmp(m);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,M;O>0?(A=this,M=m):(A=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(A.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<A.length;B++)E=(A.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<A.length&&A!==this)for(;B<A.length;B++)this.words[B]=A.words[B];return this.length=Math.max(this.length,B),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function D(N,m,E){E.negative=m.negative^N.negative;var O=N.length+m.length|0;E.length=O,O=O-1|0;var A=N.words[0]|0,M=m.words[0]|0,V=A*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<O;b++){for(var L=k>>>26,Z=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var K=b-z|0;A=N.words[K]|0,M=m.words[z]|0,V=A*M+Z,L+=V/67108864|0,Z=V&67108863}E.words[b]=Z|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,O){var A=m.words,M=E.words,V=O.words,B=0,k,b,L,Z=A[0]|0,T=Z&8191,z=Z>>>13,K=A[1]|0,q=K&8191,Q=K>>>13,ie=A[2]|0,re=ie&8191,te=ie>>>13,he=A[3]|0,ne=he&8191,ae=he>>>13,Xo=A[4]|0,Be=Xo&8191,je=Xo>>>13,Jo=A[5]|0,ze=Jo&8191,He=Jo>>>13,Zo=A[6]|0,Ke=Zo&8191,qe=Zo>>>13,Qo=A[7]|0,We=Qo&8191,Ge=Qo>>>13,es=A[8]|0,Ye=es&8191,Xe=es>>>13,ts=A[9]|0,Je=ts&8191,Ze=ts>>>13,rs=M[0]|0,Qe=rs&8191,et=rs>>>13,ns=M[1]|0,tt=ns&8191,rt=ns>>>13,is=M[2]|0,nt=is&8191,it=is>>>13,os=M[3]|0,ot=os&8191,st=os>>>13,ss=M[4]|0,at=ss&8191,ut=ss>>>13,as=M[5]|0,lt=as&8191,ct=as>>>13,us=M[6]|0,ft=us&8191,dt=us>>>13,ls=M[7]|0,ht=ls&8191,pt=ls>>>13,cs=M[8]|0,mt=cs&8191,gt=cs>>>13,fs=M[9]|0,yt=fs&8191,vt=fs>>>13;O.negative=m.negative^E.negative,O.length=19,k=Math.imul(T,Qe),b=Math.imul(T,et),b=b+Math.imul(z,Qe)|0,L=Math.imul(z,et);var Hi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,k=Math.imul(q,Qe),b=Math.imul(q,et),b=b+Math.imul(Q,Qe)|0,L=Math.imul(Q,et),k=k+Math.imul(T,tt)|0,b=b+Math.imul(T,rt)|0,b=b+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var Ki=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,k=Math.imul(re,Qe),b=Math.imul(re,et),b=b+Math.imul(te,Qe)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Q,tt)|0,L=L+Math.imul(Q,rt)|0,k=k+Math.imul(T,nt)|0,b=b+Math.imul(T,it)|0,b=b+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var qi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qi>>>26)|0,qi&=67108863,k=Math.imul(ne,Qe),b=Math.imul(ne,et),b=b+Math.imul(ae,Qe)|0,L=Math.imul(ae,et),k=k+Math.imul(re,tt)|0,b=b+Math.imul(re,rt)|0,b=b+Math.imul(te,tt)|0,L=L+Math.imul(te,rt)|0,k=k+Math.imul(q,nt)|0,b=b+Math.imul(q,it)|0,b=b+Math.imul(Q,nt)|0,L=L+Math.imul(Q,it)|0,k=k+Math.imul(T,ot)|0,b=b+Math.imul(T,st)|0,b=b+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Wi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,k=Math.imul(Be,Qe),b=Math.imul(Be,et),b=b+Math.imul(je,Qe)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(ae,tt)|0,L=L+Math.imul(ae,rt)|0,k=k+Math.imul(re,nt)|0,b=b+Math.imul(re,it)|0,b=b+Math.imul(te,nt)|0,L=L+Math.imul(te,it)|0,k=k+Math.imul(q,ot)|0,b=b+Math.imul(q,st)|0,b=b+Math.imul(Q,ot)|0,L=L+Math.imul(Q,st)|0,k=k+Math.imul(T,at)|0,b=b+Math.imul(T,ut)|0,b=b+Math.imul(z,at)|0,L=L+Math.imul(z,ut)|0;var Gi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,k=Math.imul(ze,Qe),b=Math.imul(ze,et),b=b+Math.imul(He,Qe)|0,L=Math.imul(He,et),k=k+Math.imul(Be,tt)|0,b=b+Math.imul(Be,rt)|0,b=b+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(ne,nt)|0,b=b+Math.imul(ne,it)|0,b=b+Math.imul(ae,nt)|0,L=L+Math.imul(ae,it)|0,k=k+Math.imul(re,ot)|0,b=b+Math.imul(re,st)|0,b=b+Math.imul(te,ot)|0,L=L+Math.imul(te,st)|0,k=k+Math.imul(q,at)|0,b=b+Math.imul(q,ut)|0,b=b+Math.imul(Q,at)|0,L=L+Math.imul(Q,ut)|0,k=k+Math.imul(T,lt)|0,b=b+Math.imul(T,ct)|0,b=b+Math.imul(z,lt)|0,L=L+Math.imul(z,ct)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(Ke,Qe),b=Math.imul(Ke,et),b=b+Math.imul(qe,Qe)|0,L=Math.imul(qe,et),k=k+Math.imul(ze,tt)|0,b=b+Math.imul(ze,rt)|0,b=b+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,b=b+Math.imul(Be,it)|0,b=b+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(ne,ot)|0,b=b+Math.imul(ne,st)|0,b=b+Math.imul(ae,ot)|0,L=L+Math.imul(ae,st)|0,k=k+Math.imul(re,at)|0,b=b+Math.imul(re,ut)|0,b=b+Math.imul(te,at)|0,L=L+Math.imul(te,ut)|0,k=k+Math.imul(q,lt)|0,b=b+Math.imul(q,ct)|0,b=b+Math.imul(Q,lt)|0,L=L+Math.imul(Q,ct)|0,k=k+Math.imul(T,ft)|0,b=b+Math.imul(T,dt)|0,b=b+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(We,Qe),b=Math.imul(We,et),b=b+Math.imul(Ge,Qe)|0,L=Math.imul(Ge,et),k=k+Math.imul(Ke,tt)|0,b=b+Math.imul(Ke,rt)|0,b=b+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,b=b+Math.imul(ze,it)|0,b=b+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,b=b+Math.imul(Be,st)|0,b=b+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(ne,at)|0,b=b+Math.imul(ne,ut)|0,b=b+Math.imul(ae,at)|0,L=L+Math.imul(ae,ut)|0,k=k+Math.imul(re,lt)|0,b=b+Math.imul(re,ct)|0,b=b+Math.imul(te,lt)|0,L=L+Math.imul(te,ct)|0,k=k+Math.imul(q,ft)|0,b=b+Math.imul(q,dt)|0,b=b+Math.imul(Q,ft)|0,L=L+Math.imul(Q,dt)|0,k=k+Math.imul(T,ht)|0,b=b+Math.imul(T,pt)|0,b=b+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Ye,Qe),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Qe)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,b=b+Math.imul(We,rt)|0,b=b+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,b=b+Math.imul(Ke,it)|0,b=b+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,b=b+Math.imul(ze,st)|0,b=b+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,b=b+Math.imul(Be,ut)|0,b=b+Math.imul(je,at)|0,L=L+Math.imul(je,ut)|0,k=k+Math.imul(ne,lt)|0,b=b+Math.imul(ne,ct)|0,b=b+Math.imul(ae,lt)|0,L=L+Math.imul(ae,ct)|0,k=k+Math.imul(re,ft)|0,b=b+Math.imul(re,dt)|0,b=b+Math.imul(te,ft)|0,L=L+Math.imul(te,dt)|0,k=k+Math.imul(q,ht)|0,b=b+Math.imul(q,pt)|0,b=b+Math.imul(Q,ht)|0,L=L+Math.imul(Q,pt)|0,k=k+Math.imul(T,mt)|0,b=b+Math.imul(T,gt)|0,b=b+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,Qe),b=Math.imul(Je,et),b=b+Math.imul(Ze,Qe)|0,L=Math.imul(Ze,et),k=k+Math.imul(Ye,tt)|0,b=b+Math.imul(Ye,rt)|0,b=b+Math.imul(Xe,tt)|0,L=L+Math.imul(Xe,rt)|0,k=k+Math.imul(We,nt)|0,b=b+Math.imul(We,it)|0,b=b+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,b=b+Math.imul(Ke,st)|0,b=b+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,b=b+Math.imul(ze,ut)|0,b=b+Math.imul(He,at)|0,L=L+Math.imul(He,ut)|0,k=k+Math.imul(Be,lt)|0,b=b+Math.imul(Be,ct)|0,b=b+Math.imul(je,lt)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(ne,ft)|0,b=b+Math.imul(ne,dt)|0,b=b+Math.imul(ae,ft)|0,L=L+Math.imul(ae,dt)|0,k=k+Math.imul(re,ht)|0,b=b+Math.imul(re,pt)|0,b=b+Math.imul(te,ht)|0,L=L+Math.imul(te,pt)|0,k=k+Math.imul(q,mt)|0,b=b+Math.imul(q,gt)|0,b=b+Math.imul(Q,mt)|0,L=L+Math.imul(Q,gt)|0,k=k+Math.imul(T,yt)|0,b=b+Math.imul(T,vt)|0,b=b+Math.imul(z,yt)|0,L=L+Math.imul(z,vt)|0;var jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Ze,tt)|0,L=Math.imul(Ze,rt),k=k+Math.imul(Ye,nt)|0,b=b+Math.imul(Ye,it)|0,b=b+Math.imul(Xe,nt)|0,L=L+Math.imul(Xe,it)|0,k=k+Math.imul(We,ot)|0,b=b+Math.imul(We,st)|0,b=b+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,b=b+Math.imul(Ke,ut)|0,b=b+Math.imul(qe,at)|0,L=L+Math.imul(qe,ut)|0,k=k+Math.imul(ze,lt)|0,b=b+Math.imul(ze,ct)|0,b=b+Math.imul(He,lt)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,b=b+Math.imul(Be,dt)|0,b=b+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(ne,ht)|0,b=b+Math.imul(ne,pt)|0,b=b+Math.imul(ae,ht)|0,L=L+Math.imul(ae,pt)|0,k=k+Math.imul(re,mt)|0,b=b+Math.imul(re,gt)|0,b=b+Math.imul(te,mt)|0,L=L+Math.imul(te,gt)|0,k=k+Math.imul(q,yt)|0,b=b+Math.imul(q,vt)|0,b=b+Math.imul(Q,yt)|0,L=L+Math.imul(Q,vt)|0;var zg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Ze,nt)|0,L=Math.imul(Ze,it),k=k+Math.imul(Ye,ot)|0,b=b+Math.imul(Ye,st)|0,b=b+Math.imul(Xe,ot)|0,L=L+Math.imul(Xe,st)|0,k=k+Math.imul(We,at)|0,b=b+Math.imul(We,ut)|0,b=b+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,ut)|0,k=k+Math.imul(Ke,lt)|0,b=b+Math.imul(Ke,ct)|0,b=b+Math.imul(qe,lt)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,b=b+Math.imul(ze,dt)|0,b=b+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,b=b+Math.imul(Be,pt)|0,b=b+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(ne,mt)|0,b=b+Math.imul(ne,gt)|0,b=b+Math.imul(ae,mt)|0,L=L+Math.imul(ae,gt)|0,k=k+Math.imul(re,yt)|0,b=b+Math.imul(re,vt)|0,b=b+Math.imul(te,yt)|0,L=L+Math.imul(te,vt)|0;var Hg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hg>>>26)|0,Hg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Ze,ot)|0,L=Math.imul(Ze,st),k=k+Math.imul(Ye,at)|0,b=b+Math.imul(Ye,ut)|0,b=b+Math.imul(Xe,at)|0,L=L+Math.imul(Xe,ut)|0,k=k+Math.imul(We,lt)|0,b=b+Math.imul(We,ct)|0,b=b+Math.imul(Ge,lt)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,b=b+Math.imul(Ke,dt)|0,b=b+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,b=b+Math.imul(ze,pt)|0,b=b+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,b=b+Math.imul(Be,gt)|0,b=b+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0,k=k+Math.imul(ne,yt)|0,b=b+Math.imul(ne,vt)|0,b=b+Math.imul(ae,yt)|0,L=L+Math.imul(ae,vt)|0;var Kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Ze,at)|0,L=Math.imul(Ze,ut),k=k+Math.imul(Ye,lt)|0,b=b+Math.imul(Ye,ct)|0,b=b+Math.imul(Xe,lt)|0,L=L+Math.imul(Xe,ct)|0,k=k+Math.imul(We,ft)|0,b=b+Math.imul(We,dt)|0,b=b+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,b=b+Math.imul(Ke,pt)|0,b=b+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,b=b+Math.imul(ze,gt)|0,b=b+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0,k=k+Math.imul(Be,yt)|0,b=b+Math.imul(Be,vt)|0,b=b+Math.imul(je,yt)|0,L=L+Math.imul(je,vt)|0;var qg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qg>>>26)|0,qg&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Ze,lt)|0,L=Math.imul(Ze,ct),k=k+Math.imul(Ye,ft)|0,b=b+Math.imul(Ye,dt)|0,b=b+Math.imul(Xe,ft)|0,L=L+Math.imul(Xe,dt)|0,k=k+Math.imul(We,ht)|0,b=b+Math.imul(We,pt)|0,b=b+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,b=b+Math.imul(Ke,gt)|0,b=b+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0,k=k+Math.imul(ze,yt)|0,b=b+Math.imul(ze,vt)|0,b=b+Math.imul(He,yt)|0,L=L+Math.imul(He,vt)|0;var Wg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wg>>>26)|0,Wg&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Ze,ft)|0,L=Math.imul(Ze,dt),k=k+Math.imul(Ye,ht)|0,b=b+Math.imul(Ye,pt)|0,b=b+Math.imul(Xe,ht)|0,L=L+Math.imul(Xe,pt)|0,k=k+Math.imul(We,mt)|0,b=b+Math.imul(We,gt)|0,b=b+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0,k=k+Math.imul(Ke,yt)|0,b=b+Math.imul(Ke,vt)|0,b=b+Math.imul(qe,yt)|0,L=L+Math.imul(qe,vt)|0;var Gg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Ze,ht)|0,L=Math.imul(Ze,pt),k=k+Math.imul(Ye,mt)|0,b=b+Math.imul(Ye,gt)|0,b=b+Math.imul(Xe,mt)|0,L=L+Math.imul(Xe,gt)|0,k=k+Math.imul(We,yt)|0,b=b+Math.imul(We,vt)|0,b=b+Math.imul(Ge,yt)|0,L=L+Math.imul(Ge,vt)|0;var Yg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Yg>>>26)|0,Yg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Ze,mt)|0,L=Math.imul(Ze,gt),k=k+Math.imul(Ye,yt)|0,b=b+Math.imul(Ye,vt)|0,b=b+Math.imul(Xe,yt)|0,L=L+Math.imul(Xe,vt)|0;var Xg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Xg>>>26)|0,Xg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Ze,yt)|0,L=Math.imul(Ze,vt);var Jg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(Jg>>>26)|0,Jg&=67108863,V[0]=Hi,V[1]=Ki,V[2]=qi,V[3]=Wi,V[4]=Gi,V[5]=$g,V[6]=Ug,V[7]=Vg,V[8]=Bg,V[9]=jg,V[10]=zg,V[11]=Hg,V[12]=Kg,V[13]=qg,V[14]=Wg,V[15]=Gg,V[16]=Yg,V[17]=Xg,V[18]=Jg,B!==0&&(V[19]=B,O.length++),O};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var O=0,A=0,M=0;M<E.length-1;M++){var V=A;A=0;for(var B=O&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Z=N.words[L]|0,T=m.words[b]|0,z=Z*T,K=z&67108863;V=V+(z/67108864|0)|0,K=K+B|0,B=K&67108863,V=V+(K>>>26)|0,A+=V>>>26,V&=67108863}E.words[M]=B,O=V,V=A}return O!==0?E.words[M]=O:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var O,A=this.length+m.length;return this.length===10&&m.length===10?O=C(this,m,E):A<63?O=D(this,m,E):A<1024?O=I(this,m,E):O=P(this,m,E),O};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),O=i.prototype._countBits(m)-1,A=0;A<m;A++)E[A]=this.revBin(A,O,m);return E},R.prototype.revBin=function(m,E,O){if(m===0||m===O-1)return m;for(var A=0,M=0;M<E;M++)A|=(m&1)<<E-M-1,m>>=1;return A},R.prototype.permute=function(m,E,O,A,M,V){for(var B=0;B<V;B++)A[B]=E[m[B]],M[B]=O[m[B]]},R.prototype.transform=function(m,E,O,A,M,V){this.permute(V,m,E,O,A,M);for(var B=1;B<M;B<<=1)for(var k=B<<1,b=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),Z=0;Z<M;Z+=k)for(var T=b,z=L,K=0;K<B;K++){var q=O[Z+K],Q=A[Z+K],ie=O[Z+K+B],re=A[Z+K+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,O[Z+K]=q+ie,A[Z+K]=Q+re,O[Z+K+B]=q-ie,A[Z+K+B]=Q-re,K!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var O=Math.max(E,m)|1,A=O&1,M=0;for(O=O/2|0;O;O=O>>>1)M++;return 1<<M+1+A},R.prototype.conjugate=function(m,E,O){if(!(O<=1))for(var A=0;A<O/2;A++){var M=m[A];m[A]=m[O-A-1],m[O-A-1]=M,M=E[A],E[A]=-E[O-A-1],E[O-A-1]=-M}},R.prototype.normalize13b=function(m,E){for(var O=0,A=0;A<E/2;A++){var M=Math.round(m[2*A+1]/E)*8192+Math.round(m[2*A]/E)+O;m[A]=M&67108863,M<67108864?O=0:O=M/67108864|0}return m},R.prototype.convert13b=function(m,E,O,A){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),O[2*V]=M&8191,M=M>>>13,O[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<A;++V)O[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),O=0;O<m;O++)E[O]=0;return E},R.prototype.mulp=function(m,E,O){var A=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(A),V=this.stub(A),B=new Array(A),k=new Array(A),b=new Array(A),L=new Array(A),Z=new Array(A),T=new Array(A),z=O.words;z.length=A,this.convert13b(m.words,m.length,B,A),this.convert13b(E.words,E.length,L,A),this.transform(B,V,k,b,A,M),this.transform(L,V,Z,T,A,M);for(var K=0;K<A;K++){var q=k[K]*Z[K]-b[K]*T[K];b[K]=k[K]*T[K]+b[K]*Z[K],k[K]=q}return this.conjugate(k,b,A),this.transform(k,b,z,V,A,M),this.conjugate(z,V,A),this.normalize13b(z,A),O.negative=m.negative^E.negative,O.length=m.length+E.length,O._strip()},i.prototype.mul=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},i.prototype.mulf=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),P(this,m,E)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var O=0,A=0;A<this.length;A++){var M=(this.words[A]|0)*m,V=(M&67108863)+(O&67108863);O>>=26,O+=M/67108864|0,O+=V>>>26,this.words[A]=V&67108863}return O!==0&&(this.words[A]=O,this.length++),E?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var E=_(m);if(E.length===0)return new i(1);for(var O=this,A=0;A<E.length&&E[A]===0;A++,O=O.sqr());if(++A<E.length)for(var M=O.sqr();A<E.length;A++,M=M.sqr())E[A]!==0&&(O=O.mul(M));return O},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&A,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(O!==0){for(M=this.length-1;M>=0;M--)this.words[M+O]=this.words[M];for(M=0;M<O;M++)this.words[M]=0;this.length+=O}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,O){r(typeof m=="number"&&m>=0);var A;E?A=(E-E%26)/26:A=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=O;if(A-=V,A=Math.max(0,A),k){for(var b=0;b<V;b++)k.words[b]=this.words[b];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var L=0;for(b=this.length-1;b>=0&&(L!==0||b>=A);b--){var Z=this.words[b]|0;this.words[b]=L<<26-M|Z>>>M,L=Z&B}return k&&L!==0&&(k.words[k.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,E,O){return r(this.negative===0),this.iushrn(m,E,O)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return!1;var M=this.words[O];return!!(M&A)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(E!==0&&O++,this.length=Math.min(O,this.length),E!==0){var A=67108863^67108863>>>E<<E;this.words[this.length-1]&=A}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,E,O){var A=m.length+O,M;this._expand(A);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+O]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+O]=V&67108863}for(;M<this.length-O;M++)V=(this.words[M+O]|0)+B,B=V>>26,this.words[M+O]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,M=0;M<this.length;M++)V=-(this.words[M]|0)+B,B=V>>26,this.words[M]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,E){var O=this.length-m.length,A=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);O=26-B,O!==0&&(M=M.ushln(O),A.iushln(O),V=M.words[M.length-1]|0);var k=A.length-M.length,b;if(E!=="mod"){b=new i(null),b.length=k+1,b.words=new Array(b.length);for(var L=0;L<b.length;L++)b.words[L]=0}var Z=A.clone()._ishlnsubmul(M,1,k);Z.negative===0&&(A=Z,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(A.words[M.length+T]|0)*67108864+(A.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),A._ishlnsubmul(M,z,T);A.negative!==0;)z--,A.negative=0,A._ishlnsubmul(M,1,T),A.isZero()||(A.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),A._strip(),E!=="div"&&O!==0&&A.iushrn(O),{div:b||null,mod:A}},i.prototype.divmod=function(m,E,O){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var A,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(A=V.div.neg()),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.iadd(m)),{div:A,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(A=V.div.neg()),{div:A,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.isub(m)),{div:V.div,mod:M}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,E)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var O=E.div.negative!==0?E.mod.isub(m):E.mod,A=m.ushrn(1),M=m.andln(1),V=O.cmp(A);return V<0||M===1&&V===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=(1<<26)%m,A=0,M=this.length-1;M>=0;M--)A=(O*A+(this.words[M]|0))%m;return E?-A:A},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=0,A=this.length-1;A>=0;A--){var M=(this.words[A]|0)+O*67108864;this.words[A]=M/m|0,O=M%m}return this._strip(),E?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&O.isEven();)E.iushrn(1),O.iushrn(1),++k;for(var b=O.clone(),L=E.clone();!E.isZero();){for(var Z=0,T=1;(E.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0)for(E.iushrn(Z);Z-- >0;)(A.isOdd()||M.isOdd())&&(A.iadd(b),M.isub(L)),A.iushrn(1),M.iushrn(1);for(var z=0,K=1;(O.words[0]&K)===0&&z<26;++z,K<<=1);if(z>0)for(O.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(V),M.isub(B)):(O.isub(E),V.isub(A),B.isub(M))}return{a:V,b:B,gcd:O.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=O.clone();E.cmpn(1)>0&&O.cmpn(1)>0;){for(var B=0,k=1;(E.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(E.iushrn(B);B-- >0;)A.isOdd()&&A.iadd(V),A.iushrn(1);for(var b=0,L=1;(O.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(O.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(M)):(O.isub(E),M.isub(A))}var Z;return E.cmpn(1)===0?Z=A:Z=M,Z.cmpn(0)<0&&Z.iadd(m),Z},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),O=m.clone();E.negative=0,O.negative=0;for(var A=0;E.isEven()&&O.isEven();A++)E.iushrn(1),O.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;O.isEven();)O.iushrn(1);var M=E.cmp(O);if(M<0){var V=E;E=O,O=V}else if(M===0||O.cmpn(1)===0)break;E.isub(O)}while(!0);return O.iushln(A)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return this._expand(O+1),this.words[O]|=A,this;for(var M=A,V=O;M!==0&&V<this.length;V++){var B=this.words[V]|0;B+=M,M=B>>>26,B&=67108863,this.words[V]=B}return M!==0&&(this.words[V]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var O;if(this.length>1)O=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var A=this.words[0]|0;O=A===m?0:A<m?-1:1}return this.negative!==0?-O|0:O},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,O=this.length-1;O>=0;O--){var A=this.words[O]|0,M=m.words[O]|0;if(A!==M){A<M?E=-1:A>M&&(E=1);break}}return E},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new W(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var U={k256:null,p224:null,p192:null,p25519:null};function j(N,m){this.name=N,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},j.prototype.ireduce=function(m){var E=m,O;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),O=E.bitLength();while(O>this.n);var A=O<this.n?-1:E.ucmp(this.p);return A===0?(E.words[0]=0,E.length=1):A>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},j.prototype.split=function(m,E){m.iushrn(this.n,0,E)},j.prototype.imulK=function(m){return m.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(m,E){for(var O=4194303,A=Math.min(m.length,9),M=0;M<A;M++)E.words[M]=m.words[M];if(E.length=A,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&O,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&O)<<4|V>>>22,V=B}V>>>=22,m.words[M-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},F.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,O=0;O<m.length;O++){var A=m.words[O]|0;E+=A*977,m.words[O]=E&67108863,E=A*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function $(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n($,j);function G(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(m){for(var E=0,O=0;O<m.length;O++){var A=(m.words[O]|0)*19+E,M=A&67108863;A>>>=26,m.words[O]=M,E=A}return E!==0&&(m.words[m.length++]=E),m},i._prime=function(m){if(U[m])return U[m];var E;if(m==="k256")E=new F;else if(m==="p224")E=new $;else if(m==="p192")E=new G;else if(m==="p25519")E=new X;else throw new Error("Unknown prime "+m);return U[m]=E,E};function W(N){if(typeof N=="string"){var m=i._prime(N);this.m=m.p,this.prime=m}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}W.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},W.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},W.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},W.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},W.prototype.add=function(m,E){this._verify2(m,E);var O=m.add(E);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var O=m.iadd(E);return O.cmp(this.m)>=0&&O.isub(this.m),O},W.prototype.sub=function(m,E){this._verify2(m,E);var O=m.sub(E);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var O=m.isub(E);return O.cmpn(0)<0&&O.iadd(this.m),O},W.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},W.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},W.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},W.prototype.isqr=function(m){return this.imul(m,m.clone())},W.prototype.sqr=function(m){return this.mul(m,m)},W.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var O=this.m.add(new i(1)).iushrn(2);return this.pow(m,O)}for(var A=this.m.subn(1),M=0;!A.isZero()&&A.andln(1)===0;)M++,A.iushrn(1);r(!A.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,k).cmp(B)!==0;)b.redIAdd(B);for(var L=this.pow(b,A),Z=this.pow(m,A.addn(1).iushrn(1)),T=this.pow(m,A),z=M;T.cmp(V)!==0;){for(var K=T,q=0;K.cmp(V)!==0;q++)K=K.redSqr();r(q<z);var Q=this.pow(L,new i(1).iushln(z-q-1));Z=Z.redMul(Q),L=Q.redSqr(),T=T.redMul(L),z=q}return Z},W.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},W.prototype.pow=function(m,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var O=4,A=new Array(1<<O);A[0]=new i(1).toRed(this),A[1]=m;for(var M=2;M<A.length;M++)A[M]=this.mul(A[M-1],m);var V=A[0],B=0,k=0,b=E.bitLength()%26;for(b===0&&(b=26),M=E.length-1;M>=0;M--){for(var L=E.words[M],Z=b-1;Z>=0;Z--){var T=L>>Z&1;if(V!==A[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==O&&(M!==0||Z!==0))&&(V=this.mul(V,A[B]),k=0,B=0)}b=26}return V},W.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},W.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},i.mont=function(m){return new J(m)};function J(N){W.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(J,W),J.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},J.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var O=m.imul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new i(0)._forceRed(this);var O=m.mul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof YE>"u"||YE,ak)});var Fee={};fr(Fee,{init:()=>Nee,open:()=>kee,reset:()=>Lee,update:()=>Mee});c();d();f();c();d();f();c();d();f();c();d();f();var s_=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{var u;((u=S)==null?void 0:u.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,a),a},a_=e=>e?s_(e):s_;var y_=Y(ue(),1),v_=Y(m_(),1),{useSyncExternalStoreWithSelector:X9}=v_.default;function J9(e,t=e.getState,r){let n=X9(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,y_.useDebugValue)(n),n}var g_=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?a_(e):e,n=(i,o)=>J9(r,i,o);return Object.assign(n,r),n},Nd=e=>e?g_(e):g_;c();d();f();c();d();f();c();d();f();var cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},cy(e,t)};function Z9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)};function hs(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function ps(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Q9(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var ve;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(ve||(ve={}));function eF(e,t){if(!e)throw new Error(t)}function tF(e){return e==null?void 0:e.replace(/\/+$/,"")}function rF(e,t){return t===void 0&&(t={}),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return ps(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(v){return setTimeout(v,o)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function w_(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function C_(){return new Date().getTime()}function x_(){return new Date().toISOString()}function b_(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var ec=String.fromCharCode,E_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Md={};function nF(e,t){if(!Md[e]){Md[e]={};for(var r=0;r<e.length;r++)Md[e][e.charAt(r)]=r}return Md[e][t]}var nc={compressToBase64:function(e){if(e==null)return"";var t=nc._compress(e,6,function(r){return E_.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32,function(t){return nF(E_,e.charAt(t))})},compress:function(e){return nc._compress(e,16,function(t){return ec(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,y=3,v=2,w=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++)}for(a=2,s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;for(;;)if(w=w<<1,_==t-1){o.push(r(w));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,y,v,w,_,D;for(p=0;p<3;p+=1)n[p]=p;for(y=0,w=Math.pow(2,2),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(y=0,w=Math.pow(2,u),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(D=y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[D])l=n[D];else if(D===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},iF=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),oF=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new iF,eF(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=tF((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&b_(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return Se({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(ve.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(ve.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(ve.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(ve.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(ve.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(ve.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=Q9([ve.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(ve);n<i.length;n++){var o=i[n];r.includes(ve[o])||this.setPersistedProperty(ve[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:Se(Se(Se(Se({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(ve.SessionId),r=this.getPersistedProperty(ve.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=w_(globalThis),this.setPersistedProperty(ve.SessionId,t)),this.setPersistedProperty(ve.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(ve.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(ve.AnonymousId);return t||(t=w_(globalThis),this.setPersistedProperty(ve.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(ve.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=Se(Se({},this.props),t),this.setPersistedProperty(ve.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(ve.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=Se(Se({},this.buildPayload({distinct_id:t,event:"$identify",properties:Se(Se({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(ve.AnonymousId,n),this.setPersistedProperty(ve.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:Se(Se({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:Se(Se({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:Se({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(ve.PersonProperties)||{};return this.setPersistedProperty(ve.PersonProperties,Se(Se({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(ve.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=Se(Se({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,Se(Se({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return ps(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(ve.PersonProperties)||{},s=this.getPersistedProperty(ve.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(ve.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(ve.FeatureFlags),r=this.getPersistedProperty(ve.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){return ps(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return hs(r,void 0,void 0,function(){var n;return ps(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return hs(n,void 0,void 0,function(){var i;return ps(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(ve.OverrideFeatureFlags,null):this.setPersistedProperty(ve.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=Se(Se({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:x_()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(ve.Queue)||[];o.push({message:i}),this.setPersistedProperty(ve.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=b_(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(ve.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(ve.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:x_()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(C_(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(nc.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return hs(this,void 0,void 0,function(){var s=this;return ps(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,rF(function(){return s.fetch(t,Se({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return hs(this,void 0,void 0,function(){return ps(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),T_="2.0.0";function sF(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=Se(Se({},t),{$os:uF(e),$browser:P_(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:cF(e.document.referrer),$device:lF(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:aF(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=Se(Se({},t),{$lib:"js",$lib_version:T_,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:C_()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function P_(e,t,r){return t=t||"",r||Mt(e," OPR/")?Mt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Mt(e,"IEMobile")||Mt(e,"WPDesktop")?"Internet Explorer Mobile":Mt(e,"SamsungBrowser/")?"Samsung Internet":Mt(e,"Edge")||Mt(e,"Edg/")?"Microsoft Edge":Mt(e,"FBIOS")?"Facebook Mobile":Mt(e,"Chrome")?"Chrome":Mt(e,"CriOS")?"Chrome iOS":Mt(e,"UCWEB")||Mt(e,"UCBrowser")?"UC Browser":Mt(e,"FxiOS")?"Firefox iOS":Mt(t,"Apple")?Mt(e,"Mobile")?"Mobile Safari":"Safari":Mt(e,"Android")?"Android Mobile":Mt(e,"Konqueror")?"Konqueror":Mt(e,"Firefox")?"Firefox":Mt(e,"MSIE")||Mt(e,"Trident/")?"Internet Explorer":Mt(e,"Gecko")?"Mozilla":""}function aF(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=P_(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function uF(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function lF(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function cF(e){var t=e.split("/");return t.length>=3?t[2]:""}var D_={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{D_.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},__=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},S_=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},ly=void 0,tc=void 0,rc=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},fF=function(e,t){if(t){if(!localStorage){var r=__(t.localStorage);ly=S_(r)?r:void 0}if(!tc){var n=__(t.sessionStorage);tc=S_(n)?n:void 0}}switch(e){case"cookie":return D_||ly||tc||rc();case"localStorage":return ly||tc||rc();case"sessionStorage":return tc||rc();case"memory":return rc();default:return rc()}},I_=function(e){Z9(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=fF((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return T_},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return Se(Se({},e.prototype.getCommonEventProperties.call(this)),sF(window))},t}(oF);function dF(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function hF(e,t){try{return await fetch(e,t)}catch(r){throw dF(r)}}var In=null;typeof globalThis.window<"u"&&(In=new I_("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),In.fetch=hF);var O_={version:"0.4.0",package:"idkit-js"};var A_=e=>{e?In==null||In.capture("idkit loaded",O_):In==null||In.optOut()},R_=()=>{In==null||In.capture("idkit opened",O_)};var mF=Nd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,action_description:a,walletConnectProjectId:u,autoClose:l,copy:p,theme:h},y)=>{e(v=>({theme:h,signal:i,action:o,app_id:s,autoClose:l,action_description:a,walletConnectProjectId:u,copy:H(H({},v.copy),p)})),n&&t().addSuccessCallback(n,y),r&&t().addVerificationCallback(r,y)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:i}})})},onOpenChange:r=>{if(r)return R_(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result,i=t().successCallbacks;n&&requestAnimationFrame(()=>Object.values(i).forEach(o=>void(o==null?void 0:o(n))))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:"WORLD_ID"})}})),Yr=mF;c();d();f();var M_={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var kL=Y(r5(),1);c();d();f();var NL=Y(ue(),1);c();d();f();c();d();f();var Bt=Y(ue()),d5=Y(Os()),bi=Y(c5()),wU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function h5(e,t){return e(t={exports:{}},t.exports),t.exports}var xU=h5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||y(C)||a(C))return C;var P,R=0,U=0;if(l(C))for(P=[],U=C.length;R<U;R++)P.push(r(D,C[R],I));else for(var j in P={},C)Object.prototype.hasOwnProperty.call(C,j)&&(P[D(j,I)]=r(D,C[j],I));return P},n=function(D){return v(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(C,I){return I?I.toUpperCase():""})).substr(0,1).toLowerCase()+D.substr(1)},i=function(D){var C=n(D);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(D,C){return function(I,P){var R=(P=P||{}).separator||"_",U=P.split||/(?=[A-Z])/;return I.split(U).join(R)}(D,C).toLowerCase()},s=Object.prototype.toString,a=function(D){return typeof D=="function"},u=function(D){return D===Object(D)},l=function(D){return s.call(D)=="[object Array]"},p=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},y=function(D){return s.call(D)=="[object Boolean]"},v=function(D){return(D-=0)==D},w=function(D,C){var I=C&&"process"in C?C.process:C;return typeof I!="function"?D:function(P,R){return I(P,D,R)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,C){return r(w(n,C),D)},decamelizeKeys:function(D,C){return r(w(o,C),D,C)},pascalizeKeys:function(D,C){return r(w(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(wU)}).decamelize,bU=h5(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),EU=function(e){if(Array.isArray(e))return e},_U=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},f5=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},SU=function(e,t){if(e){if(typeof e=="string")return f5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f5(e,t):void 0}},CU=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
16
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},TU=function(e,t){return EU(e)||_U(e,t)||SU(e,t)||CU()},PU=function(e,t){if(e==null)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},DU=function(e,t){if(e==null)return{};var r,n,i=PU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},IU=(0,Bt.createContext)(null);function Tv(e){var t=e.root,r=e.children;return(0,d5.createPortal)(r,t)}function OU(e){var t=(0,Bt.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=DU(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(o=(0,Bt.useRef)((i=n)&&i.current),(0,Bt.useEffect)(function(){i&&(i.current=o.current)},[i]),o),v=(0,Bt.useState)(null),w=TU(v,2),_=w[0],D=w[1],C="node_".concat(s).concat(a);return(0,Bt.useLayoutEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),l){var I=y.current.shadowRoot;return void D(I)}var P=y.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(P.adoptedStyleSheets=u),D(P)}catch(R){(function(U){var j=U.error,F=U.styleSheets,$=U.root;switch(j.name){case"NotSupportedError":F.length>0&&($.adoptedStyleSheets=F);break;default:throw j}})({error:R,styleSheets:u,root:_})}},[n,y,u]),Bt.default.createElement(Bt.default.Fragment,null,Bt.default.createElement(e.tag,bU({key:C,ref:y},h),(_||l)&&Bt.default.createElement(IU.Provider,{value:_},l?Bt.default.createElement("template",{shadowroot:"open"},e.render({root:_,ssr:l,children:p})):Bt.default.createElement(Tv,{root:_},e.render({root:_,ssr:l,children:p})))))});return t.propTypes={mode:bi.default.oneOf(["open","closed"]),delegatesFocus:bi.default.bool,styleSheets:bi.default.arrayOf(bi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:bi.default.bool,children:bi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Tv.propTypes={root:bi.default.object.isRequired,children:bi.default.node},Tv.defaultProps={children:null};var Cv=new Map;function AU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var o=xU(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Cv.has(s)||Cv.set(s,OU({tag:o,render:r})),Cv.get(s)}})}var RU=AU(),p5=RU;c();d();f();var NU=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
17
17
  /*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-px{bottom:1px;left:1px;right:1px;top:1px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\[2px\\]{margin-top:2px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[300px\\]{height:300px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[72px\\]{width:72px}.w-full{width:100%}.w-max{width:-webkit-max-content;width:max-content}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.scale-x-\\[2\\.0\\]{--tw-scale-x:2.0}.scale-x-\\[2\\.0\\],.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-none{border-style:none}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-conic{background-image:conic-gradient(var(--tw-gradient-stops))}.from-black{--tw-gradient-from:#000;--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-f2f5f9{--tw-gradient-from:#f2f5f9;--tw-gradient-to:rgba(242,245,249,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-gray-200{--tw-gradient-to:rgba(229,231,235,0);--tw-gradient-stops:var(--tw-gradient-from),#e5e7eb,var(--tw-gradient-to)}.via-white\\/30{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.3),var(--tw-gradient-to)}.to-black{--tw-gradient-to:#000}.to-gray-200{--tw-gradient-to:#e5e7eb}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-24{padding-left:6rem;padding-right:6rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.blur{--tw-blur:blur(8px)}.blur,.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.dark .dark\\:border{border-width:1px}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:hidden{display:none}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}`,m5=()=>g.createElement("style",null,NU);c();d();f();var ep=Y(ue(),1),MU=()=>{let[e,t]=(0,ep.useState)("desktop");return(0,ep.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=i=>t(i.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Qa=MU;c();d();f();function eu(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}c();d();f();var kU=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),tp=kU;c();d();f();c();d();f();c();d();f();c();d();f();var Pv=Y(ue(),1),Ns=Y(ue(),1);c();d();f();var g5=Y(ue(),1),tu=(0,g5.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var rp=Y(ue(),1),As=(0,rp.createContext)({});function y5(){return(0,rp.useContext)(As).visualElement}c();d();f();var ru=Y(ue(),1);c();d();f();var v5=Y(ue(),1),Zn=(0,v5.createContext)(null);c();d();f();var np=Y(ue(),1);c();d();f();var yn=typeof document<"u";var yo=yn?np.useLayoutEffect:np.useEffect;c();d();f();var w5=Y(ue(),1),ip=(0,w5.createContext)({strict:!1});function x5(e,t,r,n){let i=y5(),o=(0,ru.useContext)(ip),s=(0,ru.useContext)(Zn),a=(0,ru.useContext)(tu).reducedMotion,u=(0,ru.useRef)();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return yo(()=>{l&&l.render()}),yo(()=>{l&&l.animationState&&l.animationState.animateChanges()}),yo(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var b5=Y(ue(),1);c();d();f();function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E5(e,t,r){return(0,b5.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ei(r)&&(r.current=n))},[t])}c();d();f();var sp=Y(ue(),1);c();d();f();c();d();f();function _i(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function vo(e){return typeof e=="object"&&typeof e.start=="function"}var LU=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Rs(e){return vo(e.animate)||LU.some(t=>_i(e[t]))}function op(e){return Boolean(Rs(e)||e.variants)}function _5(e,t){if(Rs(e)){let{initial:r,animate:n}=e;return{initial:r===!1||_i(r)?r:void 0,animate:_i(n)?n:void 0}}return e.inherit!==!1?t:{}}function C5(e){let{initial:t,animate:r}=_5(e,(0,sp.useContext)(As));return(0,sp.useMemo)(()=>({initial:t,animate:r}),[S5(t),S5(r)])}function S5(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Si=e=>({isEnabled:t=>e.some(r=>!!t[r])}),wo={measureLayout:Si(["layout","layoutId","drag"]),animation:Si(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Si(["exit"]),drag:Si(["drag","dragControls"]),focus:Si(["whileFocus"]),hover:Si(["whileHover","onHoverStart","onHoverEnd"]),tap:Si(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Si(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Si(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function T5(e){for(let t in e)t==="projectionNodeConstructor"?wo.projectionNodeConstructor=e[t]:wo[t].Component=e[t]}c();d();f();c();d();f();var P5=Y(ue(),1);function xo(e){let t=(0,P5.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var FU=1;function D5(){return xo(()=>{if(bo.hasEverUpdated)return FU++})}c();d();f();var I5=Y(ue(),1),nu=(0,I5.createContext)({});c();d();f();var O5=Y(ue(),1),ap=class extends O5.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};c();d();f();var A5=Y(ue(),1),up=(0,A5.createContext)({});c();d();f();var R5=Symbol.for("motionComponentSymbol");function N5({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&T5(e);function s(u,l){let p=se(H(H({},(0,Ns.useContext)(tu)),u),{layoutId:$U(u)}),{isStatic:h}=p,y=null,v=C5(u),w=h?void 0:D5(),_=i(u,h);if(!h&&yn){v.visualElement=x5(o,_,p,t);let D=(0,Ns.useContext)(ip).strict,C=(0,Ns.useContext)(up);v.visualElement&&(y=v.visualElement.loadFeatures(p,D,e,w,r||wo.projectionNodeConstructor,C))}return Pv.createElement(ap,{visualElement:v.visualElement,props:p},y,Pv.createElement(As.Provider,{value:v},n(o,u,w,E5(_,v.visualElement,l),_,h,v.visualElement)))}let a=(0,Ns.forwardRef)(s);return a[R5]=o,a}function $U({layoutId:e}){let t=(0,Ns.useContext)(nu).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function M5(e){function t(n,i={}){return N5(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}c();d();f();c();d();f();c();d();f();var k5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iu(e){return typeof e!="string"||e.includes("-")?!1:!!(k5.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var Q5=Y(ue(),1);c();d();f();var j5=Y(ue(),1);c();d();f();c();d();f();var ou={};function L5(e){Object.assign(ou,e)}c();d();f();var su=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(su);function lp(e,{layout:t,layoutId:r}){return Ur.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ou[e]||e==="opacity")}c();d();f();var er=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var UU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VU=(e,t)=>su.indexOf(e)-su.indexOf(t);function F5({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(VU);for(let a of t)s+=`${UU[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,i?"":s):n&&i&&(s="none"),s}c();d();f();function cp(e){return e.startsWith("--")}c();d();f();var $5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var $n=(e,t,r)=>Math.min(Math.max(r,e),t);var vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo=se(H({},vn),{transform:e=>$n(0,1,e)}),Yc=se(H({},vn),{default:1});c();d();f();c();d();f();var _o=e=>Math.round(e*1e5)/1e5,So=/(-)?([\d]*\.?[\d])+/g,fp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,U5=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ci(e){return typeof e=="string"}var Xc=e=>({test:t=>Ci(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qn=Xc("deg"),Pr=Xc("%"),pe=Xc("px"),V5=Xc("vh"),B5=Xc("vw"),Dv=se(H({},Pr),{parse:e=>Pr.parse(e)/100,transform:e=>Pr.transform(e*100)});c();d();f();var Iv=se(H({},vn),{transform:Math.round});var dp={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,size:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:Yc,scaleX:Yc,scaleY:Yc,scaleZ:Yc,skew:Qn,skewX:Qn,skewY:Qn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Eo,originX:Dv,originY:Dv,originZ:pe,zIndex:Iv,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Iv};function au(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let y in t){let v=t[y];if(cp(y)){o[y]=v;continue}let w=dp[y],_=$5(v,w);if(Ur.has(y)){if(l=!0,s[y]=_,a.push(y),!h)continue;v!==(w.default||0)&&(h=!1)}else y.startsWith("origin")?(p=!0,u[y]=_):i[y]=_}if(t.transform||(l||n?i.transform=F5(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:y="50%",originY:v="50%",originZ:w=0}=u;i.transformOrigin=`${y} ${v} ${w}`}}c();d();f();var uu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Ov(e,t,r){for(let n in t)!er(t[n])&&!lp(n,r)&&(e[n]=t[n])}function BU({transformTemplate:e},t,r){return(0,j5.useMemo)(()=>{let n=uu();return au(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function jU(e,t,r){let n=e.style||{},i={};return Ov(i,n,e),Object.assign(i,BU(e,t,r)),e.transformValues?e.transformValues(i):i}function z5(e,t,r){let n={},i=jU(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=i,n}c();d();f();c();d();f();var zU=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],HU=["whileTap","onTap","onTapStart","onTapCancel"],KU=["onPan","onPanStart","onPanSessionStart","onPanEnd"],qU=["whileInView","onViewportEnter","onViewportLeave","viewport"],WU=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...qU,...HU,...zU,...KU]);function Jc(e){return WU.has(e)}var q5=e=>!Jc(e);function QU(e){!e||(q5=t=>t.startsWith("on")?!Jc(t):e(t))}try{QU(K5().default)}catch(e){}function W5(e,t,r){let n={};for(let i in e)(q5(i)||r===!0&&Jc(i)||!t&&!Jc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var J5=Y(ue(),1);c();d();f();c();d();f();function G5(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function Y5(e,t,r){let n=G5(t,e.x,e.width),i=G5(r,e.y,e.height);return`${n} ${i}`}c();d();f();var eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},tV={offset:"strokeDashoffset",array:"strokeDasharray"};function X5(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?eV:tV;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function lu(e,y,l,p,h){var v=y,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=v,u=de(v,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(au(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:w,style:_,dimensions:D}=e;w.transform&&(D&&(_.transform=w.transform),delete w.transform),D&&(n!==void 0||i!==void 0||_.transform)&&(_.transformOrigin=Y5(D,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(w.x=t),r!==void 0&&(w.y=r),o!==void 0&&X5(w,o,s,a,!1)}c();d();f();var hp=()=>se(H({},uu()),{attrs:{}});c();d();f();var cu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Z5(e,t,r,n){let i=(0,J5.useMemo)(()=>{let o=hp();return lu(o,t,{enableHardwareAcceleration:!1},cu(n),e.transformTemplate),se(H({},o.attrs),{style:H({},o.style)})},[t]);if(e.style){let o={};Ov(o,e.style,e),i.style=H(H({},o),i.style)}return i}function eC(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(iu(r)?Z5:z5)(n,s,a,r),p=W5(n,typeof r=="string",e),h=se(H(H({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,Q5.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var fu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function pp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}c();d();f();var mp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gp(e,t,r,n){pp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(mp.has(i)?i:fu(i),t.attrs[i])}c();d();f();c();d();f();function du(e){let{style:t}=e,r={};for(let n in t)(er(t[n])||lp(n,e))&&(r[n]=t[n]);return r}function yp(e){let t=du(e);for(let r in e)if(er(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var Nv=Y(ue(),1);c();d();f();function hu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}c();d();f();c();d();f();c();d();f();var Ms=e=>Array.isArray(e);var tC=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),rC=e=>Ms(e)?e[e.length-1]||0:e;function pu(e){let t=er(e)?e.get():e;return tC(t)?t.toValue():t}function rV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:nV(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var vp=e=>(t,r)=>{let n=(0,Nv.useContext)(As),i=(0,Nv.useContext)(Zn),o=()=>rV(e,t,n,i);return r?o():xo(o)};function nV(e,t,r,n){let i={},o=n(e);for(let y in o)i[y]=pu(o[y]);let{initial:s,animate:a}=e,u=Rs(e),l=op(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!vo(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{let w=hu(e,v);if(!w)return;let I=w,{transitionEnd:_,transition:D}=I,C=de(I,["transitionEnd","transition"]);for(let P in C){let R=C[P];if(Array.isArray(R)){let U=p?R.length-1:0;R=R[U]}R!==null&&(i[P]=R)}for(let P in _)i[P]=_[P]}),i}var nC={useVisualState:vp({scrapeMotionValuesFromProps:yp,createRenderState:hp,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}lu(r,n,{enableHardwareAcceleration:!1},cu(t.tagName),e.transformTemplate),gp(t,r)}})};c();d();f();var iC={useVisualState:vp({scrapeMotionValuesFromProps:du,createRenderState:uu})};function oC(e,{forwardMotionProps:t=!1},r,n,i){let o=iu(e)?nC:iC;return se(H({},o),{preloadedFeatures:r,useRender:eC(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var Te;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Te||(Te={}));c();d();f();var sC=Y(ue(),1);function ks(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zc(e,t,r,n){(0,sC.useEffect)(()=>{let i=e.current;if(r&&i)return ks(i,t,r,n)},[e,t,r,n])}function aC({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(Te.Focus,!0)},i=()=>{r&&r.setActive(Te.Focus,!1)};Zc(t,"focus",e?n:void 0),Zc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function wp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function xp(e){return!!e.touches}c();d();f();c();d();f();function iV(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var oV={pageX:0,pageY:0};function sV(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||oV;return{x:n[t+"X"],y:n[t+"Y"]}}function aV(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Qc(e,t="page"){return{point:xp(e)?sV(e,t):aV(e,t)}}var Mv=(e,t=!1)=>{let r=n=>e(n,Qc(n));return t?iV(r):r};c();d();f();var uC=()=>yn&&window.onpointerdown===null,lC=()=>yn&&window.ontouchstart===null,cC=()=>yn&&window.onmousedown===null;var uV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},lV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fC(e){return uC()?e:lC()?lV[e]:cC()?uV[e]:e}function Ti(e,t,r,n){return ks(e,fC(t),Mv(r,t==="pointerdown"),n)}function Ls(e,t,r,n){return Zc(e,fC(t),r&&Mv(r,t==="pointerdown"),n)}c();d();f();function pC(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var dC=pC("dragHorizontal"),hC=pC("dragVertical");function kv(e){let t=!1;if(e==="y")t=hC();else if(e==="x")t=dC();else{let r=dC(),n=hC();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function bp(){let e=kv(!0);return e?(e(),!1):!0}function mC(e,t,r){return(n,i)=>{!wp(n)||bp()||(e.animationState&&e.animationState.setActive(Te.Hover,t),r&&r(n,i))}}function gC({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Ls(n,"pointerenter",e||r?mC(n,!0,e):void 0,{passive:!e}),Ls(n,"pointerleave",t||r?mC(n,!1,t):void 0,{passive:!t})}c();d();f();var Fv=Y(ue(),1);c();d();f();var Lv=(e,t)=>t?e===t?!0:Lv(e,t.parentElement):!1;c();d();f();var yC=Y(ue(),1);function mu(e){return(0,yC.useEffect)(()=>()=>e(),[])}c();d();f();var cV=(e,t)=>r=>t(e(r)),Co=(...e)=>e.reduce(cV);function vC({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,Fv.useRef)(!1),a=(0,Fv.useRef)(null),u={passive:!(t||e||r||v)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(Te.Tap,!1),!bp()}function h(w,_){!p()||(Lv(i.current,w.target)?e&&e(w,_):r&&r(w,_))}function y(w,_){!p()||r&&r(w,_)}function v(w,_){l(),!s.current&&(s.current=!0,a.current=Co(Ti(window,"pointerup",h,u),Ti(window,"pointercancel",y,u)),i.animationState&&i.animationState.setActive(Te.Tap,!0),t&&t(w,_))}Ls(i,"pointerdown",o?v:void 0,u),mu(l)}c();d();f();c();d();f();var fV="production",gu=typeof process>"u"||process.env===void 0?fV:"production";var ef=Y(ue(),1);c();d();f();var wC=new Set;function Ep(e,t,r){e||wC.has(t)||(console.warn(t),r&&console.warn(r),wC.add(t))}c();d();f();var Uv=new WeakMap,$v=new WeakMap,dV=e=>{let t=Uv.get(e.target);t&&t(e)},hV=e=>{e.forEach(dV)};function pV(r){var n=r,{root:e}=n,t=de(n,["root"]);let i=e||document;$v.has(i)||$v.set(i,{});let o=$v.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(hV,H({root:e},t))),o[s]}function xC(e,t,r){let n=pV(t);return Uv.set(e,r),n.observe(e),()=>{Uv.delete(e),n.unobserve(e)}}function bC({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,ef.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?yV:gV)(s,o.current,e,i)}var mV={some:0,all:1};function gV(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,ef.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:mV[o]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(Te.InView,p);let h=r.getProps(),y=p?h.onViewportEnter:h.onViewportLeave;y&&y(l)};return xC(r.current,a,u)},[e,n,i,o])}function yV(e,t,r,{fallback:n=!0}){(0,ef.useEffect)(()=>{!e||!n||(gu!=="production"&&Ep(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(Te.InView,!0)}))},[e])}c();d();f();var Un=e=>t=>(e(t),null);var EC={inView:Un(bC),tap:Un(vC),focus:Un(aC),hover:Un(gC)};c();d();f();var hf=Y(ue(),1);c();d();f();var yu=Y(ue(),1);function _p(){let e=(0,yu.useContext)(Zn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,yu.useId)();return(0,yu.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function Vv(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}c();d();f();c();d();f();c();d();f();var _C=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var SC=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var rn={delta:0,timestamp:0};c();d();f();c();d();f();var Bv=16.666666666666668,vV=typeof performance<"u"?()=>performance.now():()=>Date.now(),jv=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(vV()),Bv);c();d();f();function CC(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,y=h?t:r;return l&&s.add(u),y.indexOf(u)===-1&&(y.push(u),h&&i&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}i=!1,o&&(o=!1,a.process(u))}};return a}var wV=40,zv=!0,tf=!1,Hv=!1,rf=["read","update","preRender","render","postRender"],Sp=rf.reduce((e,t)=>(e[t]=CC(()=>tf=!0),e),{}),Ct=rf.reduce((e,t)=>{let r=Sp[t];return e[t]=(n,i=!1,o=!1)=>(tf||bV(),r.schedule(n,i,o)),e},{}),nn=rf.reduce((e,t)=>(e[t]=Sp[t].cancel,e),{}),Cp=rf.reduce((e,t)=>(e[t]=()=>Sp[t].process(rn),e),{}),xV=e=>Sp[e].process(rn),TC=e=>{tf=!1,rn.delta=zv?Bv:Math.max(Math.min(e-rn.timestamp,wV),1),rn.timestamp=e,Hv=!0,rf.forEach(xV),Hv=!1,tf&&(zv=!1,jv(TC))},bV=()=>{tf=!0,zv=!0,Hv||jv(TC)};c();d();f();c();d();f();function vu(e,t){e.indexOf(t)===-1&&e.push(t)}function wu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var To=class{constructor(){this.subscriptions=[]}add(t){return vu(this.subscriptions,t),()=>wu(this.subscriptions,t)}notify(t,r,n){let i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){let s=this.subscriptions[o];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function xu(e,t){return t?e*(1e3/t):0}var EV=e=>!isNaN(parseFloat(e)),Kv=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;let{delta:o,timestamp:s}=rn;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EV(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}};function ei(e,t){return new Kv(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var bu=(e,t)=>r=>Boolean(Ci(r)&&U5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Tp=(e,t,r)=>n=>{if(!Ci(n))return n;let[i,o,s,a]=n.match(So);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var _V=e=>$n(0,255,e),qv=se(H({},vn),{transform:e=>Math.round(_V(e))}),ti={test:bu("rgb","red"),parse:Tp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+qv.transform(e)+", "+qv.transform(t)+", "+qv.transform(r)+", "+_o(Eo.transform(n))+")"};function SV(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var nf={test:bu("#"),parse:SV,transform:ti.transform};c();d();f();var Po={test:bu("hsl","hue"),parse:Tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Pr.transform(_o(t))+", "+Pr.transform(_o(r))+", "+_o(Eo.transform(n))+")"};var jt={test:e=>ti.test(e)||nf.test(e)||Po.test(e),parse:e=>ti.test(e)?ti.parse(e):Po.test(e)?Po.parse(e):nf.parse(e),transform:e=>Ci(e)?e:e.hasOwnProperty("red")?ti.transform(e):Po.transform(e)};var PC="${c}",DC="${n}";function CV(e){var t,r;return isNaN(e)&&Ci(e)&&(((t=e.match(So))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(fp))===null||r===void 0?void 0:r.length)||0)>0}function of(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(fp);i&&(r=i.length,e=e.replace(fp,PC),t.push(...i.map(jt.parse)));let o=e.match(So);return o&&(n=o.length,e=e.replace(So,DC),t.push(...o.map(vn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function IC(e){return of(e).values}function OC(e){let{values:t,numColors:r,tokenised:n}=of(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?PC:DC,a<r?jt.transform(o[a]):_o(o[a]));return s}}var TV=e=>typeof e=="number"?0:e;function PV(e){let t=IC(e);return OC(e)(t.map(TV))}var Dr={test:CV,parse:IC,createTransformer:OC,getAnimatableNone:PV};c();d();f();c();d();f();var DV=new Set(["brightness","contrast","saturate","opacity"]);function IV(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(So)||[];if(!n)return e;let i=r.replace(n,""),o=DV.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var OV=/([a-z-]*)\(.*?\)/g,sf=se(H({},Dr),{getAnimatableNone:e=>{let t=e.match(OV);return t?t.map(IV).join(" "):e}});c();d();f();var AV=se(H({},dp),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:sf,WebkitFilter:sf}),Eu=e=>AV[e];function _u(e,t){var r;let n=Eu(e);return n!==sf&&(n=Dr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Pp=e=>t=>t.test(e);c();d();f();var AC={test:e=>e==="auto",parse:e=>e};var Wv=[vn,pe,Pr,Qn,B5,V5,AC],Su=e=>Wv.find(Pp(e));var RV=[...Wv,jt,Dr],RC=e=>RV.find(Pp(e));c();d();f();function NV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function MV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Fs(e,t,r){let n=e.getProps();return hu(n,t,r!==void 0?r:n.custom,NV(e),MV(e))}function kV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ei(r))}function NC(e,t){let r=Fs(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=de(s,["transitionEnd","transition"]);o=H(H({},o),n);for(let a in o){let u=rC(o[a]);kV(e,a,u)}}function MC(e,t,r){var n,i;let o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(!!s)for(let a=0;a<s;a++){let u=o[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(_C(p)||SC(p))?p=parseFloat(p):!RC(p)&&Dr.test(l)&&(p=_u(u,l)),e.addValue(u,ei(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function LV(e,t){return t?(t[e]||t.default||t).from:void 0}function kC(e,t,r){var n;let i={};for(let o in e){let s=LV(o,t);i[o]=s!==void 0?s:(n=r.getValue(o))===null||n===void 0?void 0:n.get()}return i}c();d();f();function $s(e){return Boolean(er(e)&&e.add)}c();d();f();c();d();f();var LC=(e,t)=>`${e}: ${t}`;function FC(e,t){let{MotionAppearAnimations:r}=window,n=LC(e,Ur.has(t)?"transform":t),i=r&&r.get(n);return i?(Ct.render(()=>{try{i.cancel(),r.delete(n)}catch(o){}}),i.currentTime||0):0}c();d();f();var FV="framerAppearId",$C="data-"+fu(FV);c();d();f();c();d();f();var Cu=function(){},sr=function(){};c();d();f();var Tu=e=>e*1e3;c();d();f();var UC={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Pu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Du=e=>t=>1-e(1-t);var Dp=e=>e*e,VC=Du(Dp),af=Pu(Dp);c();d();f();c();d();f();var Pe=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function Gv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function BC({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,u=2*r-a;i=Gv(u,a,e+1/3),o=Gv(u,a,e),s=Gv(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var Yv=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},$V=[nf,ti,Po],UV=e=>$V.find(t=>t.test(e));function jC(e){let t=UV(e);sr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=BC(r)),r}var Ip=(e,t)=>{let r=jC(e),n=jC(t),i=H({},r);return o=>(i.red=Yv(r.red,n.red,o),i.green=Yv(r.green,n.green,o),i.blue=Yv(r.blue,n.blue,o),i.alpha=Pe(r.alpha,n.alpha,o),ti.transform(i))};c();d();f();function zC(e,t){return typeof e=="number"?r=>Pe(e,t,r):jt.test(e)?Ip(e,t):Jv(e,t)}var Xv=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>zC(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},HC=(e,t)=>{let r=H(H({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zC(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},Jv=(e,t)=>{let r=Dr.createTransformer(t),n=of(e),i=of(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Co(Xv(n.values,i.values),r):(Cu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};c();d();f();var Us=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var KC=(e,t)=>r=>Pe(e,t,r);function VV(e){return typeof e=="number"?KC:typeof e=="string"?jt.test(e)?Ip:Jv:Array.isArray(e)?Xv:typeof e=="object"?HC:KC}function BV(e,t,r){let n=[],i=r||VV(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=Co(u,a)}n.push(a)}return n}function Op(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;sr(o===t.length,"Both input and output ranges must be the same length"),sr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=BV(t,n,i),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=Us(e[p],e[p+1],l);return s[p](h)};return r?l=>u($n(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Iu=e=>e;var qC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,jV=1e-7,zV=12;function HV(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=qC(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>jV&&++a<zV);return s}function Ap(e,t,r,n){if(e===t&&r===n)return Iu;let i=o=>HV(o,0,1,e,r);return o=>o===0||o===1?o:qC(i(o),t,n)}c();d();f();var Zv=e=>1-Math.sin(Math.acos(e)),uf=Du(Zv),WC=Pu(uf);c();d();f();var Qv=Ap(.33,1.53,.69,.99),lf=Du(Qv),GC=Pu(lf);c();d();f();var YC=e=>(e*=2)<1?.5*lf(e):.5*(2-Math.pow(2,-10*(e-1)));var XC={linear:Iu,easeIn:Dp,easeInOut:af,easeOut:VC,circIn:Zv,circInOut:WC,circOut:uf,backIn:lf,backInOut:GC,backOut:Qv,anticipate:YC},ew=e=>{if(Array.isArray(e)){sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Ap(t,r,n,i)}else if(typeof e=="string")return sr(XC[e]!==void 0,`Invalid easing type '${e}'`),XC[e];return e},JC=e=>Array.isArray(e)&&typeof e[0]!="number";function KV(e,t){return e.map(()=>t||af).splice(0,e.length-1)}function qV(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function WV(e,t){return e.map(r=>r*t)}function cf({keyframes:e,ease:t=af,times:r,duration:n=300}){e=[...e];let i=cf[0],o=JC(t)?t.map(ew):ew(t),s={done:!1,value:i},a=WV(r&&r.length===cf.length?r:qV(e),n);function u(){return Op(a,e,{ease:Array.isArray(o)?o:KV(e,o)})}let l=u();return{next:p=>(s.value=l(p),s.done=p>=n,s),flipTarget:()=>{e.reverse(),l=u()}}}c();d();f();c();d();f();var tw=.001,GV=.01,ZC=10,YV=.05,XV=1;function QC({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Cu(e<=ZC*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=$n(YV,XV,s),e=$n(GV,ZC,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,y=p-r,v=Rp(l,s),w=Math.exp(-h);return tw-y/v*w},o=l=>{let h=l*s*e,y=h*r+r,v=Math.pow(s,2)*Math.pow(l,2)*e,w=Math.exp(-h),_=Rp(Math.pow(l,2),s);return(-i(l)+tw>0?-1:1)*((y-v)*w)/_}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-tw+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=ZV(i,o,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var JV=12;function ZV(e,t,r){let n=r;for(let i=1;i<JV;i++)n=n-e(n)/t(n);return n}function Rp(e,t){return e*Math.sqrt(1-t*t)}var QV=["duration","bounce"],eB=["stiffness","damping","mass"];function e8(e,t){return t.some(r=>e[r]!==void 0)}function tB(e){let t=H({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!e8(e,eB)&&e8(e,QV)){let r=QC(e);t=se(H(H({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var rB=5;function rw(i){var o=i,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=o,n=de(o,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],u={done:!1,value:s},{stiffness:l,damping:p,mass:h,velocity:y,duration:v,isResolvedFromDuration:w}=tB(n),_=nB,D=y?-(y/1e3):0,C=p/(2*Math.sqrt(l*h));function I(){let P=a-s,R=Math.sqrt(l/h)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),C<1){let U=Rp(R,C);_=j=>{let F=Math.exp(-C*R*j);return a-F*((D+C*R*P)/U*Math.sin(U*j)+P*Math.cos(U*j))}}else if(C===1)_=U=>a-Math.exp(-R*U)*(P+(D+R*P)*U);else{let U=R*Math.sqrt(C*C-1);_=j=>{let F=Math.exp(-C*R*j),$=Math.min(U*j,300);return a-F*((D+C*R*P)*Math.sinh($)+U*P*Math.cosh($))/U}}}return I(),{next:P=>{let R=_(P);if(w)u.done=P>=v;else{let U=D;if(P!==0)if(C<1){let $=Math.max(0,P-rB);U=xu(R-_($),P-$)}else U=0;let j=Math.abs(U)<=t,F=Math.abs(a-R)<=r;u.done=j&&F}return u.value=u.done?a:R,u},flipTarget:()=>{D=-D,[s,a]=[a,s],I()}}}rw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var nB=e=>0;c();d();f();function t8({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s=e[0],a={done:!1,value:s},u=r*t,l=s+u,p=o===void 0?l:o(l);return p!==l&&(u=p-s),{next:h=>{let y=-u*Math.exp(-h/n);return a.done=!(y>i||y<-i),a.value=a.done?p:p+y,a},flipTarget:()=>{}}}var iB={decay:t8,keyframes:cf,tween:cf,spring:rw};function r8(e,t,r=0){return e-t-r}function oB(e,t=0,r=0,n=!0){return n?r8(t+-e,t,r):t-(e-t)+r}function sB(e,t,r,n){return n?e>=t+r:e<=-r}var aB=e=>{let t=({delta:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>nn.update(t)}};function Vs(_){var D=_,{duration:e,driver:t=aB,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:l,onComplete:p,onRepeat:h,onUpdate:y,type:v="keyframes"}=D,w=de(D,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var C,I;let P,R=0,U=e,j,F=!1,$=!0,G,X=iB[s.length>2?"keyframes":v],W=s[0],J=s[s.length-1];!((I=(C=X).needsInterpolation)===null||I===void 0)&&I.call(C,W,J)&&(G=Op([0,100],[W,J],{clamp:!1}),s=[0,100]);let N=X(se(H({},w),{duration:e,keyframes:s}));function m(){R++,i==="reverse"?($=R%2===0,r=oB(r,U,o,$)):(r=r8(r,U,o),i==="mirror"&&N.flipTarget()),F=!1,h&&h()}function E(){P.stop(),p&&p()}function O(M){if($||(M=-M),r+=M,!F){let V=N.next(Math.max(0,r));j=V.value,G&&(j=G(j)),F=$?V.done:r<=0}y&&y(j),F&&(R===0&&(U=U!==void 0?U:r),R<n?sB(r,U,o,$)&&m():E())}function A(){u&&u(),P=t(O),P.start()}return a&&A(),{stop:()=>{l&&l(),P.stop()},sample:M=>N.next(Math.max(0,M))}}c();d();f();c();d();f();function n8(e){return!e||Array.isArray(e)||typeof e=="string"&&i8[e]}var ff=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,i8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ff([0,.65,.55,1]),circOut:ff([.55,0,1,.45]),backIn:ff([.31,.01,.66,-.59]),backOut:ff([.33,1.53,.69,.99])};function o8(e){if(!!e)return Array.isArray(e)?ff(e):i8[e]}function s8(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){return e.animate({[t]:r,offset:u},{delay:n,duration:i,easing:o8(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var Np=10;function a8(e,t,o){var s=o,{onUpdate:r,onComplete:n}=s,i=de(s,["onUpdate","onComplete"]);let{keyframes:a,duration:u=.3,elapsed:l=0,ease:p}=i;if(i.type==="spring"||!n8(i.ease)){let y=Vs(i),v={done:!1,value:a[0]},w=[],_=0;for(;!v.done;)v=y.sample(_),w.push(v.value),_+=Np;a=w,u=_-Np,p="linear"}let h=s8(e.owner.current,t,a,se(H({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:y}=h;if(y){let v=Vs(i);e.setWithVelocity(v.sample(y-Np).value,v.sample(y).value,Np)}Ct.update(()=>h.cancel())}}c();d();f();c();d();f();function Mp(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(nn.read(n),e(o-t))};return Ct.read(n,!0),()=>nn.read(n)}function u8({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?Mp(i,-t):i()}c();d();f();function l8({keyframes:e,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:y,onStop:v}){let w=e[0],_;function D(R){return r!==void 0&&R<r||n!==void 0&&R>n}function C(R){return r===void 0?n:n===void 0||Math.abs(r-R)<Math.abs(n-R)?r:n}function I(R){_==null||_.stop(),_=Vs(se(H({keyframes:[0,1],velocity:0},R),{driver:p,onUpdate:U=>{var j;h==null||h(U),(j=R.onUpdate)===null||j===void 0||j.call(R,U)},onComplete:y,onStop:v}))}function P(R){I(H({type:"spring",stiffness:s,damping:a,restDelta:u},R))}if(D(w))P({velocity:t,keyframes:[w,C(w)]});else{let R=i*t+w;typeof l<"u"&&(R=l(R));let U=C(R),j=U===r?-1:1,F,$,G=X=>{F=$,$=X,t=xu(X-F,rn.delta),(j===1&&X>U||j===-1&&X<U)&&P({keyframes:[X,U],velocity:t})};I({type:"decay",keyframes:[w,0],velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:D(R)?G:void 0})}return{stop:()=>_==null?void 0:_.stop()}}c();d();f();var Bs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),kp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nw=()=>({type:"keyframes",ease:"linear",duration:.3}),uB={type:"keyframes",duration:.8},c8={x:Bs,y:Bs,z:Bs,rotate:Bs,rotateX:Bs,rotateY:Bs,rotateZ:Bs,scaleX:kp,scaleY:kp,scale:kp,opacity:nw,backgroundColor:nw,color:nw,default:kp},f8=(e,{keyframes:t})=>t.length>2?uB:(c8[e]||c8.default)(t[1]);c();d();f();var df=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Dr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function d8(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u}=h,l=de(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}function iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function ow(e){return typeof e=="number"?0:_u("",e)}function Lp(e,t){return e[t]||e.default||e}function h8(e,t,r,n){let i=df(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=_u(t,r):iw(o)&&typeof r=="string"?o=ow(r):!Array.isArray(r)&&iw(r)&&typeof o=="string"&&(r=ow(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var p8={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},sw={},aw={};for(let e in p8)aw[e]=()=>(sw[e]===void 0&&(sw[e]=p8[e]()),sw[e]);var lB=new Set(["opacity"]),Ou=(e,t,r,n={})=>i=>{let o=Lp(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Tu(s);let u=h8(t,e,r,o),l=u[0],p=u[u.length-1],h=df(e,l),y=df(e,p);Cu(h===y,`You are trying to animate ${e} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let v=se(H({keyframes:u,velocity:t.getVelocity()},o),{elapsed:a,onUpdate:C=>{t.set(C),o.onUpdate&&o.onUpdate(C)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}});if(!h||!y||UC.current||o.type===!1)return u8(v);if(o.type==="inertia"){let C=l8(v);return()=>C.stop()}d8(o)||(v=H(H({},v),f8(e,v))),v.duration&&(v.duration=Tu(v.duration)),v.repeatDelay&&(v.repeatDelay=Tu(v.repeatDelay));let w=t.owner,_=w&&w.current;if(aw.waapi()&&lB.has(e)&&!v.repeatDelay&&v.repeatType!=="mirror"&&v.damping!==0&&w&&_ instanceof HTMLElement&&!w.getProps().onUpdate)return a8(t,e,v);{let C=Vs(v);return()=>C.stop()}};function m8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>uw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=uw(e,t,r);else{let i=typeof t=="function"?Fs(e,t,r.custom):t;n=g8(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function uw(e,t,r={}){var n;let i=Fs(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>g8(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:y}=o;return cB(e,t,p+l,h,y,r)}:()=>Promise.resolve(),{when:u}=o;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function g8(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,u=de(y,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let v in u){let w=e.getValue(v),_=u[v];if(!w||_===void 0||h&&dB(h,v))continue;let D=H({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&Ur.has(v)&&(D=se(H({},D),{type:!1,delay:0})),!w.hasAnimated){let I=e.getProps()[$C];I&&(D.elapsed=FC(I,v))}let C=w.start(Ou(v,w,_,D));$s(l)&&(l.add(v),C=C.then(()=>l.remove(v))),p.push(C)}return Promise.all(p).then(()=>{a&&NC(e,a)})}function cB(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(fB).forEach((l,p)=>{s.push(uw(l,t,se(H({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function fB(e,t){return e.sortNodePosition(t)}function dB({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Fp=[Te.Animate,Te.InView,Te.Focus,Te.Hover,Te.Tap,Te.Drag,Te.Exit],hB=[...Fp].reverse(),pB=Fp.length;function mB(e){return t=>Promise.all(t.map(({animation:r,options:n})=>m8(e,r,n)))}function y8(e){let t=mB(e),r=yB(),n=!0,i=(u,l)=>{let p=Fs(e,l);if(p){let h=p,{transition:y,transitionEnd:v}=h,w=de(h,["transition","transitionEnd"]);u=H(H(H({},u),w),v)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},y=[],v=new Set,w={},_=1/0;for(let C=0;C<pB;C++){let I=hB[C],P=r[I],R=p[I]!==void 0?p[I]:h[I],U=_i(R),j=I===l?P.isActive:null;j===!1&&(_=C);let F=R===h[I]&&R!==p[I]&&U;if(F&&n&&e.manuallyAnimateOnMount&&(F=!1),P.protectedKeys=H({},w),!P.isActive&&j===null||!R&&!P.prevProp||vo(R)||typeof R=="boolean")continue;let $=gB(P.prevProp,R),G=$||I===l&&P.isActive&&!F&&U||C>_&&U,X=Array.isArray(R)?R:[R],W=X.reduce(i,{});j===!1&&(W={});let{prevResolvedValues:J={}}=P,N=H(H({},J),W),m=E=>{G=!0,v.delete(E),P.needsAnimating[E]=!0};for(let E in N){let O=W[E],A=J[E];w.hasOwnProperty(E)||(O!==A?Ms(O)&&Ms(A)?!Vv(O,A)||$?m(E):P.protectedKeys[E]=!0:O!==void 0?m(E):v.add(E):O!==void 0&&v.has(E)?m(E):P.protectedKeys[E]=!0)}P.prevProp=R,P.prevResolvedValues=W,P.isActive&&(w=H(H({},w),W)),n&&e.blockInitialAnimation&&(G=!1),G&&!F&&y.push(...X.map(E=>({animation:E,options:H({type:I},u)})))}if(v.size){let C={};v.forEach(I=>{let P=e.getBaseTarget(I);P!==void 0&&(C[I]=P)}),y.push({animation:C})}let D=Boolean(y.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),n=!1,D?t(y):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(u,l)}),r[u].isActive=l;let y=s(p,u);for(let v in r)r[v].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function gB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vv(t,e):!1}function js(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yB(){return{[Te.Animate]:js(!0),[Te.InView]:js(),[Te.Hover]:js(),[Te.Tap]:js(),[Te.Drag]:js(),[Te.Focus]:js(),[Te.Exit]:js()}}var v8={animation:Un(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=y8(e)),vo(t)&&(0,hf.useEffect)(()=>t.subscribe(e),[t])}),exit:Un(e=>{let{custom:t,visualElement:r}=e,[n,i]=_p(),o=(0,hf.useContext)(Zn);(0,hf.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(Te.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var gw=Y(ue(),1);c();d();f();c();d();f();c();d();f();var w8=(e,t)=>Math.abs(e-t);function x8(e,t){let r=w8(e.x,t.x),n=w8(e.y,t.y);return Math.sqrt(r**2+n**2)}var Au=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=cw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=x8(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:y}=l,{timestamp:v}=rn;this.history.push(se(H({},y),{timestamp:v}));let{onStart:w,onMove:_}=this.handlers;p||(w&&w(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=lw(p,this.transformPagePoint),wp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Ct.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:y}=this.handlers,v=cw(lw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,v),y&&y(l,v)},xp(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=Qc(t),o=lw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=rn;this.history=[se(H({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,cw(o,this.history)),this.removeListeners=Co(Ti(window,"pointermove",this.handlePointerMove),Ti(window,"pointerup",this.handlePointerUp),Ti(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nn.update(this.updatePoint)}};function lw(e,t){return t?{point:t(e.point)}:e}function b8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cw({point:e},t){return{point:e,delta:b8(e,E8(t)),offset:b8(e,vB(t)),velocity:wB(t,.1)}}function vB(e){return e[0]}function E8(e){return e[e.length-1]}function wB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=E8(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Tu(t)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function ar(e){return e.max-e.min}function $p(e,t=0,r=.01){return Math.abs(e-t)<=r}function _8(e,t,r,n=.5){e.origin=n,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ar(r)/ar(t),($p(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(r.min,r.max,e.origin)-e.originPoint,($p(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ru(e,t,r,n){_8(e.x,t.x,r.x,n==null?void 0:n.originX),_8(e.y,t.y,r.y,n==null?void 0:n.originY)}function S8(e,t,r){e.min=r.min+t.min,e.max=e.min+ar(t)}function T8(e,t,r){S8(e.x,t.x,r.x),S8(e.y,t.y,r.y)}function C8(e,t,r){e.min=t.min-r.min,e.max=e.min+ar(t)}function Nu(e,t,r){C8(e.x,t.x,r.x),C8(e.y,t.y,r.y)}function A8(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Pe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Pe(r,e,n.max):Math.min(e,r)),e}function P8(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function R8(e,{top:t,left:r,bottom:n,right:i}){return{x:P8(e.x,r,i),y:P8(e.y,t,n)}}function D8(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function N8(e,t){return{x:D8(e.x,t.x),y:D8(e.y,t.y)}}function M8(e,t){let r=.5,n=ar(e),i=ar(t);return i>n?r=Us(t.min,t.max-n,e.min):n>i&&(r=Us(e.min,e.max-i,t.min)),$n(0,1,r)}function k8(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Up=.35;function L8(e=Up){return e===!1?e=0:e===!0&&(e=Up),{x:I8(e,"left","right"),y:I8(e,"top","bottom")}}function I8(e,t,r){return{min:O8(e,t),max:O8(e,r)}}function O8(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var F8=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mu=()=>({x:F8(),y:F8()}),$8=()=>({min:0,max:0}),It=()=>({x:$8(),y:$8()});c();d();f();function wn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function Vp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function U8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function V8(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}c();d();f();c();d();f();function fw(e){return e===void 0||e===1}function Bp({scale:e,scaleX:t,scaleY:r}){return!fw(e)||!fw(t)||!fw(r)}function Pi(e){return Bp(e)||dw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function dw(e){return B8(e.x)||B8(e.y)}function B8(e){return e&&e!=="0%"}function pf(e,t,r){let n=e-r,i=t*n;return r+i}function j8(e,t,r,n,i){return i!==void 0&&(e=pf(e,i,n)),pf(e,r,n)+t}function hw(e,t=0,r=1,n,i){e.min=j8(e.min,t,r,n,i),e.max=j8(e.max,t,r,n,i)}function pw(e,{x:t,y:r}){hw(e.x,t.translate,t.scale,t.originPoint),hw(e.y,r.translate,r.scale,r.originPoint)}function K8(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,pw(e,u)),n&&Pi(a.latestValues)&&zs(e,a.latestValues));t.x=z8(t.x),t.y=z8(t.y)}function z8(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ri(e,t){e.min=e.min+t,e.max=e.max+t}function H8(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,o);hw(e,t[r],t[n],s,t.scale)}var xB=["x","scaleX","originX"],bB=["y","scaleY","originY"];function zs(e,t){H8(e.x,t,xB),H8(e.y,t,bB)}function mw(e,t){return Vp(V8(e.getBoundingClientRect(),t))}function q8(e,t,r){let n=mw(e,r),{scroll:i}=t;return i&&(ri(n.x,i.offset.x),ri(n.y,i.offset.y)),n}var EB=new WeakMap,zp=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(Qc(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kv(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wn(v=>{var w,_;let D=this.getAxisMotionValue(v).get()||0;if(Pr.test(D)){let C=(_=(w=this.visualElement.projection)===null||w===void 0?void 0:w.layout)===null||_===void 0?void 0:_.layoutBox[v];C&&(D=ar(C)*(parseFloat(D)/100))}this.originPoint[v]=D}),y==null||y(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(Te.Drag,!0))},o=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:v}=u;if(p&&this.currentDirection===null){this.currentDirection=_B(v),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),y==null||y(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Au(t,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o==null||o(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Te.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!jp(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=A8(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=R8(n.layoutBox,t):this.constraints=!1,this.elastic=L8(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=k8(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ei(t))return!1;let n=t.current;sr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=q8(n,i.root,this.visualElement.getTransformPagePoint()),s=N8(i.layout.layoutBox,o);if(r){let a=r(U8(s));this.hasMutatedConstraints=!!a,a&&(s=Vp(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=wn(p=>{if(!jp(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let y=i?200:1e6,v=i?40:1e7,w=H(H({type:"inertia",velocity:n?t[p]:0,bounceStiffness:y,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,w)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Ou(t,n,0,r))}stopAnimation(){wn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){wn(r=>{let{drag:n}=this.getProps();if(!jp(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){let{min:s,max:a}=i.layout.layoutBox[r];o.set(t[r]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ei(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};wn(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=M8({min:l,max:l},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),wn(a=>{if(!jp(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(Pe(l,p,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;EB.set(this.visualElement,this);let r=this.visualElement.current,n=Ti(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();Ei(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();let a=ks(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(wn(h=>{let y=this.getAxisMotionValue(h);!y||(this.originPoint[h]+=l[h].translate,y.set(y.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Up,dragMomentum:a=!0}=t;return se(H({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function jp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _B(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function W8(e){let{dragControls:t,visualElement:r}=e,n=xo(()=>new zp(r));(0,gw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,gw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var ku=Y(ue(),1);function G8({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,ku.useRef)(null),{transformPagePoint:a}=(0,ku.useContext)(tu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,ku.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Au(p,u,{transformPagePoint:a})}Ls(i,"pointerdown",o&&l),mu(()=>s.current&&s.current.end())}var Y8={pan:Un(G8),drag:Un(W8)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function yw(e){return typeof e=="string"&&e.startsWith("var(--")}var ww=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function SB(e){let t=ww.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var CB=4;function vw(e,t,r=1){sr(r<=CB,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=SB(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():yw(i)?vw(i,t,r+1):i}function X8(e,n,r){var t=de(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=H({},r)),e.values.forEach(o=>{let s=o.get();if(!yw(s))return;let a=vw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!yw(s))continue;let a=vw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var TB=new Set(["width","height","top","left","right","bottom","x","y"]),t4=e=>TB.has(e),PB=e=>Object.keys(e).some(t4),r4=(e,t)=>{e.set(t,!1),e.set(t)},Hp=e=>e===vn||e===pe,J8;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(J8||(J8={}));var Z8=(e,t)=>parseFloat(e.split(", ")[t]),Q8=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return Z8(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?Z8(o[1],e):0}},DB=new Set(["x","y","z"]),IB=su.filter(e=>!DB.has(e));function OB(e){let t=[];return IB.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var e4={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Q8(4,13),y:Q8(5,14)},AB=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{a[l]=e4[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);r4(p,a[l]),e[l]=e4[l](u,o)}),e},RB=(e,t,r={},n={})=>{t=H({},t),n=H({},n);let i=Object.keys(t).filter(t4),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Su(p),y=t[u],v;if(Ms(y)){let w=y.length,_=y[0]===null?1:0;p=y[_],h=Su(p);for(let D=_;D<w;D++)v?sr(Su(y[D])===v,"All keyframes must be of the same type"):(v=Su(y[D]),sr(v===h||Hp(h)&&Hp(v),"Keyframes must be of the same dimension as the current value"))}else v=Su(y);if(h!==v)if(Hp(h)&&Hp(v)){let w=l.get();typeof w=="string"&&l.set(parseFloat(w)),typeof y=="string"?t[u]=parseFloat(y):Array.isArray(y)&&v===pe&&(t[u]=y.map(parseFloat))}else(h==null?void 0:h.transform)&&(v==null?void 0:v.transform)&&(p===0||y===0)?p===0?l.set(v.transform(p)):t[u]=h.transform(y):(s||(o=OB(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],r4(l,y))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=AB(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),yn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function n4(e,t,r,n){return PB(t)?RB(e,t,r,n):{target:t,transitionEnd:n}}var i4=(e,t,r,n)=>{let i=X8(e,t,n);return t=i.target,n=i.transitionEnd,n4(e,t,r,n)};c();d();f();var u4=Y(ue(),1);c();d();f();c();d();f();var mf={current:null},Kp={current:!1};function o4(){if(Kp.current=!0,!!yn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}c();d();f();function s4(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(er(o))e.addValue(i,o),$s(n)&&n.add(i);else if(er(s))e.addValue(i,ei(o,{owner:e})),$s(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,ei(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var l4=Object.keys(wo),NB=l4.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qp=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=H({},s),this.initialValues=r.initial?H({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Rs(r),this.isVariantNode=op(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=de(p,["willChange"]);for(let h in l){let y=l[h];s[h]!==void 0&&er(y)&&(y.set(s[h],!1),$s(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Kp.current||o4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),nn.update(this.notifyUpdate),nn.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,r){let n=Ur.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,i,o,s){let a=[];gu!=="production"&&n&&r&&sr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<NB;u++){let l=l4[u],{isEnabled:p,Component:h}=wo[l];p(t)&&h&&a.push((0,u4.createElement)(h,se(H({key:l},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:y}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&Ei(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<a4.length;r++){let n=a4[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=s4(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let o=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let i={};for(let o=0;o<MB;o++){let s=c4[o],a=this.props[s];(_i(a)||a===!1)&&(i[s]=a)}return i}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ei(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=hu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},c4=["initial",...Fp],MB=c4.length;var Lu=class extends qp{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:i},o){var a=s,{transition:t,transitionEnd:r}=a,n=de(a,["transition","transitionEnd"]);let u=kC(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){MC(this,n,u);let l=i4(this,n,u,r);r=l.transitionEnd,n=l.target}return H({transition:t,transitionEnd:r},n)}};function kB(e){return window.getComputedStyle(e)}var Wp=class extends Lu{readValueFromInstance(t,r){if(Ur.has(r)){let n=Eu(r);return n&&n.default||0}else{let n=kB(t),i=(cp(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return mw(t,r)}build(t,r,n,i){au(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return du(t)}renderInstance(t,r,n,i){pp(t,r,n,i)}};c();d();f();var Gp=class extends Lu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Ur.has(r)?((n=Eu(r))===null||n===void 0?void 0:n.default)||0:(r=mp.has(r)?r:fu(r),t.getAttribute(r))}measureInstanceViewportBox(){return It()}scrapeMotionValuesFromProps(t){return yp(t)}build(t,r,n,i){lu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){gp(t,r,n,i)}mount(t){this.isSVGTag=cu(t.tagName),super.mount(t)}};var f4=(e,t)=>iu(e)?new Gp(t,{enableHardwareAcceleration:!1}):new Wp(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var $u=Y(ue(),1);c();d();f();function d4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Fu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=d4(e,t.target.x),n=d4(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var h4="_$css",p4={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(ww,v=>(o.push(v),h4)));let s=Dr.parse(e);if(s.length>5)return n;let a=Dr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=Pe(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let y=a(s);if(i){let v=0;y=y.replace(h4,()=>{let w=o[v];return v++,w})}return y}};var xw=class extends $u.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;L5(LB),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(se(H({},o.options),{onExitComplete:()=>this.safeToRemove()}))),bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Ct.postRender(()=>{var a;!((a=s.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function m4(e){let[t,r]=_p(),n=(0,$u.useContext)(nu);return $u.default.createElement(xw,se(H({},e),{layoutGroup:n,switchLayoutGroup:(0,$u.useContext)(up),isPresent:t,safeToRemove:r}))}var LB={borderRadius:se(H({},Fu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Fu,borderTopRightRadius:Fu,borderBottomLeftRadius:Fu,borderBottomRightRadius:Fu,boxShadow:p4};var g4={measureLayout:m4};c();d();f();c();d();f();c();d();f();function y4(e,t,r={}){let n=er(e)?e:ei(e);return n.start(Ou("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var b4=["TopLeft","TopRight","BottomLeft","BottomRight"],FB=b4.length,v4=e=>typeof e=="string"?parseFloat(e):e,w4=e=>typeof e=="number"||pe.test(e);function E4(e,t,r,n,i,o){i?(e.opacity=Pe(0,r.opacity!==void 0?r.opacity:1,$B(n)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,UB(n))):o&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<FB;s++){let a=`border${b4[s]}Radius`,u=x4(t,a),l=x4(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||w4(u)===w4(l)?(e[a]=Math.max(Pe(v4(u),v4(l),n),0),(Pr.test(l)||Pr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Pe(t.rotate||0,r.rotate||0,n))}function x4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var $B=_4(0,.5,uf),UB=_4(.5,.95,Iu);function _4(e,t,r){return n=>n<e?0:n>t?1:r(Us(e,t,n))}c();d();f();function S4(e,t){e.min=t.min,e.max=t.max}function xn(e,t){S4(e.x,t.x),S4(e.y,t.y)}c();d();f();function C4(e,t,r,n,i){return e-=t,e=pf(e,1/r,n),i!==void 0&&(e=pf(e,1/i,n)),e}function VB(e,t=0,r=1,n=.5,i,o=e,s=e){if(Pr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,n);e===o&&(a-=t),e.min=C4(e.min,t,r,a,i),e.max=C4(e.max,t,r,a,i)}function T4(e,t,[r,n,i],o,s){VB(e,t[r],t[n],t[i],t.scale,o,s)}var BB=["x","scaleX","originX"],jB=["y","scaleY","originY"];function bw(e,t,r,n){T4(e.x,t,BB,r==null?void 0:r.x,n==null?void 0:n.x),T4(e.y,t,jB,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function P4(e){return e.translate===0&&e.scale===1}function Ew(e){return P4(e.x)&&P4(e.y)}function _w(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Sw(e){return ar(e.x)/ar(e.y)}c();d();f();var Yp=class{constructor(){this.members=[]}add(t){vu(this.members,t),t.scheduleRender()}remove(t){if(wu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){let o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();d();f();function Cw(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var D4=(e,t)=>e.depth-t.depth;var Xp=class{constructor(){this.children=[],this.isDirty=!1}add(t){vu(this.children,t),this.isDirty=!0}remove(t){wu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D4),this.isDirty=!1,this.children.forEach(t)}};var I4=["","X","Y","Z"],O4=1e3,zB=0;function Jp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=zB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(qB),this.nodes.forEach(YB),this.nodes.forEach(XB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new To),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let y,v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=Mp(v,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEach(R4))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:_})=>{var D,C,I,P,R;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let U=(C=(D=this.options.transition)!==null&&D!==void 0?D:h.getDefaultTransition())!==null&&C!==void 0?C:tj,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=h.getProps(),$=!this.targetLayout||!_w(this.targetLayout,_)||w,G=!v&&w;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||G||v&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,G);let X=se(H({},Lp(U,"layout")),{onPlay:j,onComplete:F});h.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!v&&this.animationProgress===0&&R4(this),this.isLead()&&((R=(P=this.options).onExitComplete)===null||R===void 0||R.call(P));this.targetLayout=_})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,nn.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(JB),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){let w=this.path[v];w.shouldResetTransform=!0,w.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(A4);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rj),this.potentialNodes.clear()),this.nodes.forEach(GB),this.nodes.forEach(HB),this.nodes.forEach(KB),this.clearAllSnapshots(),Cp.update(),Cp.preRender(),Cp.render())}clearAllSnapshots(){this.nodes.forEach(WB),this.sharedNodes.forEach(ZB)}scheduleUpdateProjection(){Ct.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(s=this.options.visualElement)===null||s===void 0||s.notify("LayoutMeasure",this.layout.layoutBox,a==null?void 0:a.layoutBox)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!Ew(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||Pi(this.latestValues)||h)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),nj(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return It();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(ri(a.x,u.offset.x),ri(a.y,u.offset.y)),a}removeElementScroll(s){let a=It();xn(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){xn(a,s);let{scroll:y}=this.root;y&&(ri(a.x,-y.offset.x),ri(a.y,-y.offset.y))}ri(a.x,p.offset.x),ri(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&zs(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Pi(p.latestValues)&&zs(u,p.latestValues)}return Pi(this.latestValues)&&zs(u,this.latestValues),u}removeTransform(s){var a;let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Pi(p.latestValues))continue;Bp(p.latestValues)&&p.updateSnapshot();let h=It(),y=p.measurePageBox();xn(h,y),bw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Pi(this.latestValues)&&bw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=se(H(H({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Nu(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?T8(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):xn(this.target,this.layout.layoutBox),pw(this.target,this.targetDelta)):xn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Nu(this.relativeTargetOrigin,this.target,p.target),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Bp(this.parent.latestValues)||dw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;xn(this.layoutCorrected,this.layout.layoutBox),K8(this.layoutCorrected,this.treeScale,this.path,p);let{target:w}=l;if(!w)return;this.projectionDelta||(this.projectionDelta=Mu(),this.projectionDeltaWithTransform=Mu());let _=this.treeScale.x,D=this.treeScale.y,C=this.projectionTransform;Ru(this.projectionDelta,this.layoutCorrected,w,this.latestValues),this.projectionTransform=Cw(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==_||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},y=H({},this.latestValues),v=Mu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let w=It(),_=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),D=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,C=Boolean(_&&!D&&this.options.crossfade===!0&&!this.path.some(ej));this.animationProgress=0,this.mixTargetDelta=I=>{var P;let R=I/1e3;N4(v.x,s.x,R),N4(v.y,s.y,R),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(Nu(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QB(this.relativeTarget,this.relativeTargetOrigin,w,R)),_&&(this.animationValues=y,E4(y,h,this.latestValues,R,C,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(nn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{bo.hasAnimatedSinceResize=!0,this.currentAnimation=y4(0,O4,se(H({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,O4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&L4(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||It();let h=ar(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let y=ar(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+y}xn(a,u),zs(a,p),Ru(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Yp),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<I4.length;p++){let h="rotate"+I4[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=pu(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let D={};return this.options.layoutId&&(D.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,D.pointerEvents=pu(s.pointerEvents)||""),this.hasProjected&&!Pi(this.latestValues)&&(D.transform=h?h({},""):"none",this.hasProjected=!1),D}let v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=Cw(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));let{x:w,y:_}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${_.origin*100}% 0`,y.animationValues?p.opacity=y===this?(l=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(let D in ou){if(v[D]===void 0)continue;let{correct:C,applyTo:I}=ou[D],P=C(v[D],y);if(I){let R=I.length;for(let U=0;U<R;U++)p[I[U]]=P}else p[D]=P}return this.options.layoutId&&(p.pointerEvents=y===this?pu(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(A4),this.root.sharedNodes.clear()}}}function HB(e){e.updateLayout()}function KB(e){var t,r,n;let i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=i.source!==e.layout.source;a==="size"?wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(w);w.min=o[v].min,w.max=w.min+_}):L4(a,i.layoutBox,o)&&wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(o[v]);w.max=w.min+_});let l=Mu();Ru(l,o,i.layoutBox);let p=Mu();u?Ru(p,e.applyTransform(s,!0),i.measuredBox):Ru(p,o,i.layoutBox);let h=!Ew(l),y=!1;if(!e.resumeFrom){let v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){let{snapshot:w,layout:_}=v;if(w&&_){let D=It();Nu(D,i.layoutBox,w.layoutBox);let C=It();Nu(C,o,_.layoutBox),_w(D,C)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function qB(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function WB(e){e.clearSnapshot()}function A4(e){e.clearMeasurements()}function GB(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function R4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function YB(e){e.resolveTargetDelta()}function XB(e){e.calcProjection()}function JB(e){e.resetRotation()}function ZB(e){e.removeLeadSnapshot()}function N4(e,t,r){e.translate=Pe(t.translate,0,r),e.scale=Pe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function M4(e,t,r,n){e.min=Pe(t.min,r.min,n),e.max=Pe(t.max,r.max,n)}function QB(e,t,r,n){M4(e.x,t.x,r.x,n),M4(e.y,t.y,r.y,n)}function ej(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var tj={duration:.45,ease:[.4,0,.1,1]};function rj(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}let i=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function k4(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function nj(e){k4(e.x),k4(e.y)}function L4(e,t,r){return e==="position"||e==="preserve-aspect"&&!$p(Sw(t),Sw(r),.2)}c();d();f();var F4=Jp({attachResizeListener:(e,t)=>ks(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Tw={current:void 0},$4=Jp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tw.current){let e=new F4(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Tw.current=e}return Tw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var ij=H(H(H(H({},v8),EC),Y8),g4),zt=M5((e,t)=>oC(e,t,ij,f4,$4));c();d();f();var Di=Y(ue(),1),bn=Y(ue(),1);c();d();f();var gf=Y(ue(),1);c();d();f();var U4=Y(ue(),1);function Zp(){let e=(0,U4.useRef)(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function V4(){let e=Zp(),[t,r]=(0,gf.useState)(0),n=(0,gf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,gf.useCallback)(()=>Ct.postRender(n),[n]),t]}c();d();f();var yf=Y(ue(),1),vf=Y(ue(),1);c();d();f();var Uu=Y(ue(),1),Hs=Y(ue(),1),Pw=class extends Uu.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function B4({children:e,isPresent:t}){let r=(0,Hs.useId)(),n=(0,Hs.useRef)(null),i=(0,Hs.useRef)({width:0,height:0,top:0,left:0});return(0,Hs.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:u}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
18
18
  [data-motion-pop-id="${r}"] {