lab.waku.org/buddybook/assets/index-CEoqBmQK.js

55 lines
135 KiB
JavaScript
Raw Normal View History

2024-11-08 07:33:43 +00:00
import{T as $t,M as re,R as N,E as k,C as $,a as X,b as Bo,O as Z,c as ht}from"./index-xoNRwz7B.js";import{C as Wo}from"./index-Gmp6KMX1.js";class Uo{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}function jo(e,t){e.indexOf(t)===-1&&e.push(t)}const Gr=(e,t,r)=>Math.min(Math.max(r,e),t),V={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ne=e=>typeof e=="number",bt=e=>Array.isArray(e)&&!ne(e[0]),ko=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function Ho(e,t){return bt(e)?e[ko(0,e.length,t)]:e}const Jr=(e,t,r)=>-r*e+r*t+e,Qr=()=>{},et=e=>e,ur=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function Xr(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ur(0,t,n);e.push(Jr(r,1,o))}}function zo(e){const t=[0];return Xr(t,e-1),t}function Fo(e,t=zo(e.length),r=et){const n=e.length,o=n-t.length;return o>0&&Xr(t,o),i=>{let s=0;for(;s<n-2&&!(i<t[s+1]);s++);let l=Gr(0,1,ur(t[s],t[s+1],i));return l=Ho(r,s)(l),Jr(e[s],e[s+1],l)}}const to=e=>Array.isArray(e)&&ne(e[0]),ke=e=>typeof e=="object"&&!!e.createAnimation,xt=e=>typeof e=="function",Vo=e=>typeof e=="string",Nt={ms:e=>e*1e3,s:e=>e/1e3},eo=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Zo=1e-7,Ko=12;function qo(e,t,r,n,o){let i,s,l=0;do s=t+(r-t)/2,i=eo(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>Zo&&++l<Ko);return s}function Lt(e,t,r,n){if(e===t&&r===n)return et;const o=i=>qo(i,0,1,e,r);return i=>i===0||i===1?i:eo(o(i),t,n)}const Yo=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return Gr(0,1,o/e)},Go={ease:Lt(.25,.1,.25,1),"ease-in":Lt(.42,0,1,1),"ease-in-out":Lt(.42,0,.58,1),"ease-out":Lt(0,0,.58,1)},Jo=/\((.*?)\)/;function Er(e){if(xt(e))return e;if(to(e))return Lt(...e);const t=Go[e];if(t)return t;if(e.startsWith("steps")){const r=Jo.exec(e);if(r){const n=r[1].split(",");return Yo(parseFloat(n[0]),n[1].trim())}}return et}class ro{constructor(t,r=[0,1],{easing:n,duration:o=V.duration,delay:i=V.delay,endDelay:s=V.endDelay,repeat:l=V.repeat,offset:a,direction:c="normal",autoplay:d=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=et,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,p)=>{this.resolve=h,this.reject=p}),n=n||V.easing,ke(n)){const h=n.createAnimation(r);n=h.easing,r=h.keyframes||r,o=h.duration||o}this.repeat=l,this.easing=bt(n)?et:Er(n),this.updateDuration(o);const y=Fo(r,a,bt(n)?n.map(Er):et);this.tick=h=>{var p;i=i;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(h-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);const f=g/this.duration;let O=Math.floor(f),m=f%1;!m&&f>=1&&(m=1),m===1&&O--;const b=O%2;(c==="reverse"||c==="alternate"&&b||c==="alternate-reverse"&&!b)&&(m=1-m);const w=g>=this.totalDuration?1:Math.min(m,1),v=y(this.easing(w));t(v),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+s)?(this.playState="finished",(p=this.resolve)===null||p===void 0||p.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},d&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get play
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const oe=window,mr=oe.ShadowRoot&&(oe.ShadyCSS===void 0||oe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fr=Symbol(),Ar=new WeakMap;let oo=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==fr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(mr&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Ar.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ar.set(r,t))}return t}toString(){return this.cssText}};const Qo=e=>new oo(typeof e=="string"?e:e+"",void 0,fr),I=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new oo(r,e,fr)},Xo=(e,t)=>{mr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{const n=document.createElement("style"),o=oe.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},Or=mr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return Qo(r)})(e):e;/**
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/var _e;const ie=window,Pr=ie.trustedTypes,tn=Pr?Pr.emptyScript:"",Ir=ie.reactiveElementPolyfillSupport,He={toAttribute(e,t){switch(t){case Boolean:e=e?tn:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},no=(e,t)=>t!==e&&(t==t||e==e),Ce={attribute:!0,type:String,converter:He,reflect:!1,hasChanged:no},ze="finalized";let wt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((r,n)=>{const o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Ce){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){const n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){const i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ce}static finalize(){if(this.hasOwnProperty(ze))return!1;this[ze]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Or(o))}else t!==void 0&&r.push(Or(t));return r}static _$Ep(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;const r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Xo(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Ce){var o;const i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:He).toAttribute(r,n.type);this._$El=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,r){var n;const o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){const s=o.getPropertyOptions(i),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:He;this._$El=i,this[i]=l.fromAttribute(r,s.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getProp
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/var Ee;const se=window,_t=se.trustedTypes,Tr=_t?_t.createPolicy("lit-html",{createHTML:e=>e}):void 0,Fe="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,io="?"+Q,en=`<${io}>`,ut=document,Wt=()=>ut.createComment(""),Ut=e=>e===null||typeof e!="object"&&typeof e!="function",so=Array.isArray,rn=e=>so(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ae=`[
\f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mr=/-->/g,Sr=/>/g,at=RegExp(`>|${Ae}(?:([^\\s"'>=/]+)(${Ae}*=${Ae}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rr=/'/g,Dr=/"/g,lo=/^(?:script|style|textarea|title)$/i,ao=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),u=ao(1),L=ao(2),mt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Lr=new WeakMap,ct=ut.createTreeWalker(ut,129,null,!1);function co(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tr!==void 0?Tr.createHTML(t):t}const on=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":"",s=Dt;for(let l=0;l<r;l++){const a=e[l];let c,d,y=-1,h=0;for(;h<a.length&&(s.lastIndex=h,d=s.exec(a),d!==null);)h=s.lastIndex,s===Dt?d[1]==="!--"?s=Mr:d[1]!==void 0?s=Sr:d[2]!==void 0?(lo.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=at):d[3]!==void 0&&(s=at):s===at?d[0]===">"?(s=o??Dt,y=-1):d[1]===void 0?y=-2:(y=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?at:d[3]==='"'?Dr:Rr):s===Dr||s===Rr?s=at:s===Mr||s===Sr?s=Dt:(s=at,o=void 0);const p=s===at&&e[l+1].startsWith("/>")?" ":"";i+=s===Dt?a+en:y>=0?(n.push(c),a.slice(0,y)+Fe+a.slice(y)+Q+p):a+Q+(y===-2?(n.push(void 0),l):p)}return[co(e,i+(e[r]||"<?>")+(t===2?"</svg>":"")),n]};class jt{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0;const l=t.length-1,a=this.parts,[c,d]=on(t,r);if(this.el=jt.createElement(c,n),ct.currentNode=this.el.content,r===2){const y=this.el.content,h=y.firstChild;h.remove(),y.append(...h.childNodes)}for(;(o=ct.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes()){const y=[];for(const h of o.getAttributeNames())if(h.endsWith(Fe)||h.startsWith(Q)){const p=d[s++];if(y.push(h),p!==void 0){const g=o.getAttribute(p.toLowerCase()+Fe).split(Q),f=/([.?@])?(.*)/.exec(p);a.push({type:1,index:i,name:f[2],strings:g,ctor:f[1]==="."?sn:f[1]==="?"?an:f[1]==="@"?cn:ge})}else a.push({type:6,index:i})}for(const h of y)o.removeAttribute(h)}if(lo.test(o.tagName)){const y=o.textContent.split(Q),h=y.length-1;if(h>0){o.textContent=_t?_t.emptyScript:"";for(let p=0;p<h;p++)o.append(y[p],Wt()),ct.nextNode(),a.push({type:2,index:++i});o.append(y[h],Wt())}}}else if(o.nodeType===8)if(o.data===io)a.push({type:2,index:i});else{let y=-1;for(;(y=o.data.indexOf(Q,y+1))!==-1;)a.push({type:7,index:i}),y+=Q.length-1}i++}}static createElement(t,r){const n=ut.createElement("template");return n.innerHTML=t,n}}function Ct(e,t,r=e,n){var o,i,s,l;if(t===mt)return t;let a=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const c=Ut(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((i=a==null?void 0:a._$AO)===null||i===void 0||i.call(a,!1),c===void 0?a=void 0:(a=new c(e),a._$AT(e,r,n)),n!==void 0?((s=(l=r)._$Co)!==null&&s!==void 0?s:l._$Co=[])[n]=a:r._$Cl=a),a!==void 0&&(t=Ct(e,a._$AS(e,t.values),a,n)),t}class nn{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;const{el:{content:n},parts:o}=this._$AD,i=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:ut).importNode(n,!0);ct.currentNode=i;let s=ct.nextNode(),l=0,a=0,c=o[0];for(;c!==void 0;){if(l===c.index){let d;c.type===2?d=new Kt(s,s.nextSibling,this,t):c.type===1?d=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(d=new dn(s,this,t)),this._$AV.push(d),c=o[++a]}l!==(c==null?void 0:c.index)&&(s=ct.nextNode(),l++)}return ct.currentNode=ut,i}v(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class Kt{constructor(t,r,n,o){var i;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cp=(i=o==null?void 0:o.isConnected)===null||i===void 0||i}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ct(this,t,r),Ut(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==mt&&this._(t):t.
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/var Oe,Pe;class E extends wt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hn(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return mt}}E.finalized=!0,E._$litElement$=!0,(Oe=globalThis.litElementHydrateSupport)===null||Oe===void 0||Oe.call(globalThis,{LitElement:E});const Br=globalThis.litElementPolyfillSupport;Br==null||Br({LitElement:E});((Pe=globalThis.litElementVersions)!==null&&Pe!==void 0?Pe:globalThis.litElementVersions=[]).push("3.3.3");/**
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const P=e=>t=>typeof t=="function"?((r,n)=>(customElements.define(r,n),n))(e,t):((r,n)=>{const{kind:o,elements:i}=n;return{kind:o,elements:i,finisher(s){customElements.define(r,s)}}})(e,t);/**
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const un=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(r){r.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}},mn=(e,t,r)=>{t.constructor.createProperty(r,e)};function _(e){return(t,r)=>r!==void 0?mn(e,t,r):un(e,t)}/**
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function H(e){return _({...e,state:!0})}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var Ie;((Ie=window.HTMLSlotElement)===null||Ie===void 0?void 0:Ie.prototype.assignedElements)!=null;/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const fn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},pn=e=>(...t)=>({_$litDirective$:e,values:t});class gn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}/**
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const J=pn(class extends gn{constructor(e){var t;if(super(e),e.type!==fn.ATTRIBUTE||e.name!=="class"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,n;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!(!((r=this.nt)===null||r===void 0)&&r.has(i))&&this.it.add(i);return this.render(t)}const o=e.element.classList;this.it.forEach(i=>{i in t||(o.remove(i),this.it.delete(i))});for(const i in t){const s=!!t[i];s===this.it.has(i)||!((n=this.nt)===null||n===void 0)&&n.has(i)||(s?(o.add(i),this.it.add(i)):(o.remove(i),this.it.delete(i)))}return mt}}),Te=new WeakMap;function ho(e){return Te.has(e)||Te.set(e,{transforms:[],values:new Map}),Te.get(e)}function wn(e,t){return e.has(t)||e.set(t,new Uo),e.get(t)}const vn=["","X","Y","Z"],bn=["translate","scale","rotate","skew"],le={x:"translateX",y:"translateY",z:"translateZ"},Wr={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},yn={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Wr,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:et},skew:Wr},kt=new Map,pr=e=>`--motion-${e}`,ae=["x","y","z"];bn.forEach(e=>{vn.forEach(t=>{ae.push(e+t),kt.set(pr(e+t),yn[e])})});const $n=(e,t)=>ae.indexOf(e)-ae.indexOf(t),xn=new Set(ae),uo=e=>xn.has(e),_n=(e,t)=>{le[t]&&(t=le[t]);const{transforms:r}=ho(e);jo(r,t),e.style.transform=Cn(r)},Cn=e=>e.sort($n).reduce(En,"").trim(),En=(e,t)=>`${e} ${t}(var(${pr(t)}))`,Ve=e=>e.startsWith("--"),Ur=new Set;function An(e){if(!Ur.has(e)){Ur.add(e);try{const{syntax:t,initialValue:r}=kt.has(e)?kt.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const Me=(e,t)=>document.createElement("div").animate(e,t),jr={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Me({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Me({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Me({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Se={},vt={};for(const e in jr)vt[e]=()=>(Se[e]===void 0&&(Se[e]=jr[e]()),Se[e]);const On=.015,Pn=(e,t)=>{let r="";const n=Math.round(t/On);for(let o=0;o<n;o++)r+=e(ur(0,n-1,o))+", ";return r.substring(0,r.length-2)},kr=(e,t)=>xt(e)?vt.linearEasing()?`linear(${Pn(e,t)})`:V.easing:to(e)?In(e):e,In=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`;function Tn(e,t){for(let r=0;r<e.length;r++)e[r]===null&&(e[r]=r?e[r-1]:t());return e}const Mn=e=>Array.isArray(e)?e:[e];function Ze(e){return le[e]&&(e=le[e]),uo(e)?pr(e):e}const Xt={get:(e,t)=>{t=Ze(t);let r=Ve(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=kt.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=Ze(t),Ve(t)?e.style.setProperty(t,r):e.style[t]=r}};function mo(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function Sn(e,t){var r;let n=(t==null?void 0:t.toDefaultUnit)||et;const o=e[e.length-1];if(Vo(o)){const i=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";i&&(n=s=>s+i)}return n}function Rn(){return window.__MOTION_DEV_TOOLS_RECORD}function Dn(e,t,r,n={},o){const i=Rn(),s=n.record!==!1&&i;let l,{duration:a=V.duration,delay:c=V.delay,endDelay:d=V.endDelay,repeat:y=V.repeat,easing:h=V.easing,persist:p=!1,direction:g,offset:f,allowWebkitAcceleration:O=!1,autoplay:m=!0}=n;const b=ho(e),w=uo(t);let v=vt.waapi();w&&_n(e,t);const C=Ze(t),S=wn(b.values,C),R=kt.get(C);return mo(S.animation,!(ke(h)&&S.generator)&&n.record!==!1),()=>{const U=()=>{var D,Y;return(Y=(D=Xt.get(e,C))!==null&&D!==void 0?D:R==null?void 0:R.initialValue)!==null&&Y!==void 0?Y:0};let M=Tn(Mn(r),U);const z=Sn(M,R);if(ke(h)){const D=h.createAnimation(M,t!=="opacity",U,C
2024-10-29 10:40:40 +00:00
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
2024-11-02 18:54:09 +00:00
*/const j=e=>e??B;var qt={},Vn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},po={},F={};let gr;const Zn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];F.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};F.getSymbolTotalCodewords=function(t){return Zn[t]};F.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};F.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');gr=t};F.isKanjiModeEnabled=function(){return typeof gr<"u"};F.toSJIS=function(t){return gr(t)};var we={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,o){if(e.isValid(n))return n;try{return t(n)}catch{return o}}})(we);function go(){this.buffer=[],this.length=0}go.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Kn=go;function Yt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Yt.prototype.set=function(e,t,r,n){const o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Yt.prototype.get=function(e,t){return this.data[e*this.size+t]};Yt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Yt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var qn=Yt,wo={};(function(e){const t=F.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const o=Math.floor(n/7)+2,i=t(n),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,l=[i-7];for(let a=1;a<o-1;a++)l[a]=l[a-1]-s;return l.push(6),l.reverse()},e.getPositions=function(n){const o=[],i=e.getRowColCoords(n),s=i.length;for(let l=0;l<s;l++)for(let a=0;a<s;a++)l===0&&a===0||l===0&&a===s-1||l===s-1&&a===0||o.push([i[l],i[a]]);return o}})(wo);var vo={};const Yn=F.getSymbolSize,Hr=7;vo.getPositions=function(t){const r=Yn(t);return[[0,0],[r-Hr,0],[0,r-Hr]]};var bo={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,l=0,a=0,c=null,d=null;for(let y=0;y<i;y++){l=a=0,c=d=null;for(let h=0;h<i;h++){let p=o.get(y,h);p===c?l++:(l>=5&&(s+=t.N1+(l-5)),c=p,l=1),p=o.get(h,y),p===d?a++:(a>=5&&(s+=t.N1+(a-5)),d=p,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let l=0;l<i-1;l++)for(let a=0;a<i-1;a++){const c=o.get(l,a)+o.get(l,a+1)+o.get(l+1,a)+o.get(l+1,a+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,l=0,a=0;for(let c=0;c<i;c++){l=a=0;for(let d=0;d<i;d++)l=l<<1&2047|o.get(c,d),d>=10&&(l===1488||l===93)&&s++,a=a<<1&2047|o.get(d,c),d>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let a=0;a<s;a++)i+=o.data[a];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(n,o,i){switch(n){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%
]))+`;q.KANJI=new RegExp(Ht,"g");q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");q.BYTE=new RegExp(Qn,"g");q.NUMERIC=new RegExp(_o,"g");q.ALPHANUMERIC=new RegExp(Jn,"g");const Xn=new RegExp("^"+Ht+"$"),ti=new RegExp("^"+_o+"$"),ei=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(t){return Xn.test(t)};q.testNumeric=function(t){return ti.test(t)};q.testAlphanumeric=function(t){return ei.test(t)};(function(e){const t=vr,r=q;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return n(i)}catch{return s}}})(st);(function(e){const t=F,r=ve,n=we,o=st,i=vr,s=7973,l=t.getBCHDigit(s);function a(h,p,g){for(let f=1;f<=40;f++)if(p<=e.getCapacity(f,g,h))return f}function c(h,p){return o.getCharCountIndicator(h,p)+4}function d(h,p){let g=0;return h.forEach(function(f){const O=c(f.mode,p);g+=O+f.getBitsLength()}),g}function y(h,p){for(let g=1;g<=40;g++)if(d(h,g)<=e.getCapacity(g,p,o.MIXED))return g}e.from=function(p,g){return i.isValid(p)?parseInt(p,10):g},e.getCapacity=function(p,g,f){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=o.BYTE);const O=t.getSymbolTotalCodewords(p),m=r.getTotalCodewordsCount(p,g),b=(O-m)*8;if(f===o.MIXED)return b;const w=b-c(f,p);switch(f){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(p,g){let f;const O=n.from(g,n.M);if(Array.isArray(p)){if(p.length>1)return y(p,O);if(p.length===0)return 1;f=p[0]}else f=p;return a(f.mode,f.getLength(),O)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;t.getBCHDigit(g)-l>=0;)g^=s<<t.getBCHDigit(g)-l;return p<<12|g}})(xo);var Co={};const Ke=F,Eo=1335,ri=21522,zr=Ke.getBCHDigit(Eo);Co.getEncodedBits=function(t,r){const n=t.bit<<3|r;let o=n<<10;for(;Ke.getBCHDigit(o)-zr>=0;)o^=Eo<<Ke.getBCHDigit(o)-zr;return(n<<10|o)^ri};var Ao={};const oi=st;function Et(e){this.mode=oi.NUMERIC,this.data=e.toString()}Et.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Et.prototype.getLength=function(){return this.data.length};Et.prototype.getBitsLength=function(){return Et.getBitsLength(this.data.length)};Et.prototype.write=function(t){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),t.put(o,10);const i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),t.put(o,i*3+1))};var ni=Et;const ii=st,Re=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function At(e){this.mode=ii.ALPHANUMERIC,this.data=e}At.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};At.prototype.getLength=function(){return this.data.length};At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)};At.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Re.indexOf(this.data[r])*45;n+=Re.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Re.indexOf(this.data[r]),6)};var si=At,li=func
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var mi=Pt;(function(e){const t=st,r=ni,n=si,o=di,i=mi,s=q,l=F,a=Wo;function c(m){return unescape(encodeURIComponent(m)).length}function d(m,b,w){const v=[];let C;for(;(C=m.exec(w))!==null;)v.push({data:C[0],index:C.index,mode:b,length:C[0].length});return v}function y(m){const b=d(s.NUMERIC,t.NUMERIC,m),w=d(s.ALPHANUMERIC,t.ALPHANUMERIC,m);let v,C;return l.isKanjiModeEnabled()?(v=d(s.BYTE,t.BYTE,m),C=d(s.KANJI,t.KANJI,m)):(v=d(s.BYTE_KANJI,t.BYTE,m),C=[]),b.concat(w,v,C).sort(function(R,U){return R.index-U.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function h(m,b){switch(b){case t.NUMERIC:return r.getBitsLength(m);case t.ALPHANUMERIC:return n.getBitsLength(m);case t.KANJI:return i.getBitsLength(m);case t.BYTE:return o.getBitsLength(m)}}function p(m){return m.reduce(function(b,w){const v=b.length-1>=0?b[b.length-1]:null;return v&&v.mode===w.mode?(b[b.length-1].data+=w.data,b):(b.push(w),b)},[])}function g(m){const b=[];for(let w=0;w<m.length;w++){const v=m[w];switch(v.mode){case t.NUMERIC:b.push([v,{data:v.data,mode:t.ALPHANUMERIC,length:v.length},{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.ALPHANUMERIC:b.push([v,{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.KANJI:b.push([v,{data:v.data,mode:t.BYTE,length:c(v.data)}]);break;case t.BYTE:b.push([{data:v.data,mode:t.BYTE,length:c(v.data)}])}}return b}function f(m,b){const w={},v={start:{}};let C=["start"];for(let S=0;S<m.length;S++){const R=m[S],U=[];for(let M=0;M<R.length;M++){const z=R[M],D=""+S+M;U.push(D),w[D]={node:z,lastCount:0},v[D]={};for(let Y=0;Y<C.length;Y++){const W=C[Y];w[W]&&w[W].node.mode===z.mode?(v[W][D]=h(w[W].lastCount+z.length,z.mode)-h(w[W].lastCount,z.mode),w[W].lastCount+=z.length):(w[W]&&(w[W].lastCount=z.length),v[W][D]=h(z.length,z.mode)+4+t.getCharCountIndicator(z.mode,b))}}C=U}for(let S=0;S<C.length;S++)v[C[S]].end=0;return{map:v,table:w}}function O(m,b){let w;const v=t.getBestModeForData(m);if(w=t.from(b,v),w!==t.BYTE&&w.bit<v.bit)throw new Error('"'+m+'" cannot be encoded with mode '+t.toString(w)+`.
Suggested mode is: `+t.toString(v));switch(w===t.KANJI&&!l.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new r(m);case t.ALPHANUMERIC:return new n(m);case t.KANJI:return new i(m);case t.BYTE:return new o(m)}}e.fromArray=function(b){return b.reduce(function(w,v){return typeof v=="string"?w.push(O(v,null)):v.data&&w.push(O(v.data,v.mode)),w},[])},e.fromString=function(b,w){const v=y(b,l.isKanjiModeEnabled()),C=g(v),S=f(C,w),R=a.find_path(S.map,"start","end"),U=[];for(let M=1;M<R.length-1;M++)U.push(S.table[R[M]].node);return e.fromArray(p(U))},e.rawSplit=function(b){return e.fromArray(y(b,l.isKanjiModeEnabled()))}})(Ao);const ye=F,De=we,fi=Kn,pi=qn,gi=wo,wi=vo,qe=bo,Ye=ve,vi=Gn,de=xo,bi=Co,yi=st,Le=Ao;function $i(e,t){const r=e.size,n=wi.getPositions(t);for(let o=0;o<n.length;o++){const i=n[o][0],s=n[o][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||r<=i+l))for(let a=-1;a<=7;a++)s+a<=-1||r<=s+a||(l>=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(i+l,s+a,!0,!0):e.set(i+l,s+a,!1,!0))}}function xi(e){const t=e.size;for(let r=8;r<t-8;r++){const n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function _i(e,t){const r=gi.getPositions(t);for(let n=0;n<r.length;n++){const o=r[n][0],i=r[n][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(o+s,i+l,!0,!0):e.set(o+s,i+l,!1,!0)}}function Ci(e,t){const r=e.size,n=de.getEncodedBits(t);let o,i,s;for(let l=0;l<18;l++)o=Math.floor(l/3),i=l%3+r-8-3,s=(n>>l&1)===1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function Ne(e,t,r){const n=e.size,o=bi.getEncodedBits(t,r);let i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(n-15+i,8,s,!0),i<8?e.set(8,n-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(n-8,8,1,!0)}function Ei(e,t){const r=e.size;let n=-1,o=r-1,i=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(o,l-a)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)===1),e.set(o,l-a,c),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function Ai(e,t,r){const n=new fi;r.forEach(function(a){n.put(a.mode.bit,4),n.put(a.getLength(),yi.getCharCountIndicator(a.mode,e)),a.write(n)});const o=ye.getSymbolTotalCodewords(e),i=Ye.getTotalCodewordsCount(e,t),s=(o-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const l=(s-n.getLengthInBits())/8;for(let a=0;a<l;a++)n.put(a%2?17:236,8);return Oi(n,e,t)}function Oi(e,t,r){const n=ye.getSymbolTotalCodewords(t),o=Ye.getTotalCodewordsCount(t,r),i=n-o,s=Ye.getBlocksCount(t,r),l=n%s,a=s-l,c=Math.floor(n/s),d=Math.floor(i/s),y=d+1,h=c-d,p=new vi(h);let g=0;const f=new Array(s),O=new Array(s);let m=0;const b=new Uint8Array(e.buffer);for(let R=0;R<s;R++){const U=R<a?d:y;f[R]=b.slice(g,g+U),O[R]=p.encode(f[R]),g+=U,m=Math.max(m,U)}const w=new Uint8Array(n);let v=0,C,S;for(C=0;C<m;C++)for(S=0;S<s;S++)C<f[S].length&&(w[v++]=f[S][C]);for(C=0;C<h;C++)for(S=0;S<s;S++)w[v++]=O[S][C];return w}function Pi(e,t,r,n){let o;if(Array.isArray(e))o=Le.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=Le.rawSplit(e);c=de.getBestVersionForData(d,r)}o=Le.fromString(e,c||40)}else throw new Error("Invalid data");const i=de.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
2024-10-29 10:40:40 +00:00
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+i+`.
2024-11-02 18:54:09 +00:00
`);const s=Ai(t,r,o),l=ye.getSymbolSize(t),a=new pi(l);return $i(a,t),xi(a),_i(a,t),Ne(a,r,0),t>=7&&Ci(a,t),Ei(a,s),isNaN(n)&&(n=qe.getBestMask(a,Ne.bind(null,a,r))),qe.applyMask(n,a),Ne(a,r,n),{modules:a,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}po.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=De.M,o,i;return typeof r<"u"&&(n=De.from(r.errorCorrectionLevel,De.M),o=de.from(r.version),i=qe.from(r.maskPattern),r.toSJISFunc&&ye.setToSJISFunction(r.toSJISFunc)),Pi(t,o,n,i)};var Oo={},br={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const o=parseInt(n.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const o=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,o){return o.width&&o.width>=n+o.margin*2?o.width/(n+o.margin*2):o.scale},e.getImageWidth=function(n,o){const i=e.getScale(n,o);return Math.floor((n+o.margin*2)*i)},e.qrToImageData=function(n,o,i){const s=o.modules.size,l=o.modules.data,a=e.getScale(s,i),c=Math.floor((s+i.margin*2)*a),d=i.margin*a,y=[i.color.light,i.color.dark];for(let h=0;h<c;h++)for(let p=0;p<c;p++){let g=(h*c+p)*4,f=i.color.light;if(h>=d&&p>=d&&h<c-d&&p<c-d){const O=Math.floor((h-d)/a),m=Math.floor((p-d)/a);f=y[l[O*s+m]?1:0]}n[g++]=f.r,n[g++]=f.g,n[g++]=f.b,n[g]=f.a}}})(br);(function(e){const t=br;function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,l){let a=l,c=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(c=n()),a=t.getOptions(a);const d=t.getImageWidth(i.modules.size,a),y=c.getContext("2d"),h=y.createImageData(d,d);return t.qrToImageData(h.data,i,a),r(y,c,d),y.putImageData(h,0,0),c},e.renderToDataURL=function(i,s,l){let a=l;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const c=e.render(i,s,a),d=a.type||"image/png",y=a.rendererOpts||{};return c.toDataURL(d,y.quality)}})(Oo);var Po={};const Ii=br;function Fr(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Be(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function Ti(e,t,r){let n="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const a=Math.floor(l%t),c=Math.floor(l/t);!a&&!i&&(i=!0),e[l]?(s++,l>0&&a>0&&e[l-1]||(n+=i?Be("M",a+r,.5+c+r):Be("m",o,0),o=0,i=!1),a+1<t&&e[l+1]||(n+=Be("h",s),s=0)):o++}return n}Po.render=function(t,r,n){const o=Ii.getOptions(r),i=t.modules.size,s=t.modules.data,l=i+o.margin*2,a=o.color.light.a?"<path "+Fr(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",c="<path "+Fr(o.color.dark,"stroke")+' d="'+Ti(s,i,o.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+d+' shape-rendering="crispEdges">'+a+c+`</svg>
`;return typeof n=="function"&&n(null,h),h};const Mi=Vn,Ge=po,Io=Oo,Si=Po;function yr(e,t,r,n,o){const i=[].slice.call(arguments,1),s=i.length,l=typeof i[s-1]=="function";if(!l&&!Mi())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=n,n=void 0):(o=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(a,c){try{const d=Ge.create(r,n);a(e(d,t,n))}catch(d){c(d)}})}try{const a=Ge.create(r,n);o(null,e(a,t,n))}catch(a){o(a)}}qt.create=Ge.create;qt.toCanvas=yr.bind(null,Io.render);qt.toDataURL=yr.bind(null,Io.renderToDataURL);qt.toString=yr.bind(null,function(e,t,r){return Si.render(e,r)});var Ri=Object.defineProperty,Vr=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,Zr=(e,t,r)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,We=(e,t)=>{for(var r in t||(t={}))Di.call(t,r)&&Zr(e,r,t[r]);if(Vr)for(var r of Vr(t))Li.call(t,r)&&Zr(e,r,t[r]);return e};function Ni(){var e;const t=(e=$t.state.themeMode)!=null?e:"dark",n={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[t];return{"--wcm-color-fg-1":n.foreground[1],"--wcm-color-fg-2":n.foreground[2],"--wcm-color-fg-3":n.foreground[3],"--wcm-color-bg-1":n.background[1],"--wcm-color-bg-2":n.background[2],"--wcm-color-bg-3":n.background[3],"--wcm-color-overlay":n.overlay}}function Kr(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color