const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D-nC9WGk.js","./Dp1pzeXC.js","./BV9gqN9y.js"])))=>i.map(i=>d[i]);
import{_ as Pe}from"./Dp1pzeXC.js";import{c as xe,a as kt,d as he,f as Ft,e as Ke}from"./8V7BUHOp.js";import{w as Ue,E as He,F as $e,aQ as ze,aE as Ve,v as Ge,I as Ye,f as re,p as ve,c as X,s as ht,r as J,a as ge,J as Ee,e as _t,b as te,K as We,t as le,g as ft,u as Te}from"./CwuLZfOX.js";import{s as ce}from"./CaaTB9LM.js";import{i as be}from"./ChcH33Yj.js";import{I as ke,f as Oe,e as Ae,a as fe,s as _e,i as Me,r as Je}from"./CQEIL4Zf.js";import{l as Xe,a as qe}from"./DUxDMF0-.js";import{p as pe}from"./XMP94Xkj.js";import{a as Re,m as De,A as de,S as Be}from"./BbeM5ayP.js";import{g as Qe}from"./BPESWi80.js";import{i as Ze}from"./DrQE6hIy.js";import{A as ye,P as tn}from"./1HElZN-P.js";import"./Bbhvs_oy.js";import{l as Se,s as Ie,p as en}from"./CNkT2fMe.js";import{b as nn}from"./CR2j1Dvc.js";import{b as Ce}from"./Bn6k3L-0.js";import{X as rn}from"./6u4y5lHv.js";function on($,K,...z){var R=$,S=ze,ut;Ue(()=>{S!==(S=K())&&(ut&&(Ve(ut),ut=null),ut=$e(()=>S(R,...z)))},He),Ge&&(R=Ye)}const an=!1,rr=Object.freeze(Object.defineProperty({__proto__:null,ssr:an},Symbol.toStringTag,{value:"Module"}));function sn($,K){const z=Se(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const R=[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]];ke($,Ie({name:"grip-vertical"},()=>z,{get iconNode(){return R},children:(S,ut)=>{var Q=xe(),B=re(Q);Oe(B,K,"default",{}),kt(S,Q)},$$slots:{default:!0}}))}function un($,K){const z=Se(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const R=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];ke($,Ie({name:"log-out"},()=>z,{get iconNode(){return R},children:(S,ut)=>{var Q=xe(),B=re(Q);Oe(B,K,"default",{}),kt(S,Q)},$$slots:{default:!0}}))}function cn($,K){const z=Se(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const R=[["path",{d:"M4 12h16"}],["path",{d:"M4 18h16"}],["path",{d:"M4 6h16"}]];ke($,Ie({name:"menu"},()=>z,{get iconNode(){return R},children:(S,ut)=>{var Q=xe(),B=re(Q);Oe(B,K,"default",{}),kt(S,Q)},$$slots:{default:!0}}))}function ln($,K){const z=Se(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const R=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]];ke($,Ie({name:"user"},()=>z,{get iconNode(){return R},children:(S,ut)=>{var Q=xe(),B=re(Q);Oe(B,K,"default",{}),kt(S,Q)},$$slots:{default:!0}}))}he(["click"]);var fn=($,K)=>{var z;return(z=K.onClose)==null?void 0:z.call(K)},dn=($,K)=>{var z;return(z=K.onLogout)==null?void 0:z.call(K)},pn=Ft('<div class="modal modal-open"><div class="modal-box"><h3 class="text-lg font-bold">Are you sure you want to log out?</h3> <div class="modal-action"><button class="btn">Close</button> <button class="btn btn-error">Logout</button></div></div></div>');function hn($,K){ve(K,!0);var z=pn(),R=X(z),S=ht(X(R),2),ut=X(S);ut.__click=[fn,K];var Q=ht(ut,2);Q.__click=[dn,K],J(S),J(R),J(z),kt($,z),ge()}he(["click"]);function vn(){const $=`/users/${de.userId}`;pe.url.pathname===$?history.back():Qe($)}var gn=Ft("<li><a> </a></li>"),mn=($,K)=>_t(K,!0),yn=Ft("<li><a> </a></li>"),bn=Ft('<div id="navbar-wrapper" class=" me-4 lg:me-0 sticky top-0 z-50 bg-base-100 lg:bg-opacity-95 lg:backdrop-blur-sm "><div class="container"><nav class="navbar px-0"><div class="navbar-start gap-2"><div class="flex-none lg:hidden"><label for="my-drawer" aria-label="open sidebar"><!></label></div> <div class="min-w-max"><span> </span></div></div> <div class="navbar-center hidden lg:flex"><ul class="menu menu-horizontal menu-sm px-1"></ul></div> <div class="navbar-end gap-3"><button data-tip="Logout"><!></button> <button data-tip="Edit user"><!></button></div></nav> <div class="drawer"><input id="my-drawer" type="checkbox" class="drawer-toggle"/> <div class="drawer-side"><label for="my-drawer" aria-label="close sidebar" class="drawer-overlay"></label> <ul class="menu min-h-fit min-w-60 gap-2 p-2 text-info rounded-md bg-neutral-content"><li class="badge badge-primary text-xl font-bold p-4"> </li> <!></ul></div></div></div></div> <!>',1);function wn($,K){ve(K,!0);const z=[{link:"/",label:"Home"},{link:"/devices",label:"Devices"},{link:"/zones",label:"Zones"},{link:"/alarms",label:"Alarms"},{link:"/reports",label:"Reports"},{link:"/users",label:"Users"},{link:"/help",label:"Help"},{link:"/settings",label:"Settings"},{link:"/about",label:"About"}];let R=te(!1);const S=new Re("Settings/Name"),ut=new Re("$SYS/SerialNumber");let Q=te(!0);Ee(()=>{window.addEventListener("scroll",B)});const B=()=>{_t(Q,window.scrollY<30)};window.addEventListener("scroll",B),B();const pt=()=>{const Ct=document.getElementById("my-drawer");Ct&&(Ct.checked=!1)};We(()=>{window.removeEventListener("scroll",B)});var mt=bn(),Ot=re(mt),gt=X(Ot),It=X(gt),Pt=X(It),St=X(Pt),Z=X(St),it=X(Z);cn(it,{class:"h-10 w-10"}),J(Z),J(St);var F=ht(St,2),st=X(F),dt=X(st,!0);J(st),J(F),J(Pt);var vt=ht(Pt,2),Mt=X(vt);Ae(Mt,21,()=>z,Me,(Ct,i)=>{let s=()=>ft(i).link,t=()=>ft(i).label;var e=gn(),n=X(e),r=X(n,!0);J(n),J(e),le(o=>{fe(e,1,`font-medium ${o??""}`),_e(n,"href",s()),ce(r,t())},[()=>pe.url.pathname===s()||pe.url.pathname.startsWith(s()+"/")?"underline":""]),kt(Ct,e)}),J(Mt),J(vt);var Kt=ht(vt,2),yt=X(Kt);yt.__click=[mn,R];var Vt=X(yt);un(Vt,{}),J(yt);var Ut=ht(yt,2);Ut.__click=[vn];var Gt=X(Ut);ln(Gt,{}),J(Ut),J(Kt),J(It);var bt=ht(It,2),Dt=ht(X(bt),2),Wt=ht(X(Dt),2),et=X(Wt),L=X(et,!0);J(et);var Lt=ht(et,2);Ae(Lt,17,()=>z,Me,(Ct,i)=>{let s=()=>ft(i).link,t=()=>ft(i).label;var e=yn(),n=X(e);n.__click=pt;var r=X(n,!0);J(n),J(e),le(o=>{fe(e,1,`text-4xl font-medium ${o??""}`),_e(n,"href",s()),ce(r,t())},[()=>pe.url.pathname===s()||pe.url.pathname.startsWith(s()+"/")?"underline":""]),kt(Ct,e)}),J(Wt),J(Dt),J(bt),J(gt),J(Ot);var Jt=ht(Ot,2);{var ee=Ct=>{hn(Ct,{onClose:()=>{_t(R,!1)},get onLogout(){return De.logout}})};be(Jt,Ct=>{ft(R)&&Ct(ee)})}le(()=>{fe(Z,1,`btn btn-square btn-ghost ${ye.value==="dark"?"text-primary":"text-secondary"}`),fe(st,1,`font-bold text-xl md:text-2xl ${ye.value==="dark"?"text-primary-content":"text-secondary"}`),ce(dt,S.value),fe(yt,1,`btn btn-sm btn-ghost tooltip tooltip-bottom tooltip-secondary text-primary ${ye.value==="dark"?"text-primary":"text-secondary"}`),fe(Ut,1,`btn btn-sm btn-ghost tooltip tooltip-bottom tooltip-secondary text-primary ${ye.value==="dark"?"text-primary":"text-secondary"}`),ce(L,ut.value)}),kt($,mt),ge()}he(["click"]);var xn=Ft('<footer class="bg-base-100 text-base-content"><div class="py-2 text-center text-sm me-5 lg:me-0"> </div></footer>');function En($,K){ve(K,!1);const z=new Date().getFullYear();Ze();var R=xn(),S=X(R),ut=X(S);J(S),J(R),le(()=>ce(ut,`Copyright © ${z??""} Function AS`)),kt($,R),ge()}he(["click"]);var kn=($,K)=>$.key==="Enter"&&K,On=Ft('<div class="text-error text-sm mt-1"> </div>'),Sn=Ft('<h1 class="text-2xl font-bold text-center mb-6">Welcome! Please log in.</h1> <form class="form-control space-y-4"><div class="mt-3"><div class="block text-sm font-medium">Username</div> <div class="mt-1"><input type="text" placeholder="Enter username" class="input input-bordered w-full"/></div> <!> <!> <button type="submit" class="btn btn-primary w-full mt-8">Login</button></div></form>',1),In=Ft('<h1 class="text-2xl font-bold text-center mb-6">Loading<span class="loading loading-dots loading-xl"></span></h1>'),Pn=Ft('<div class="flex py-4 md:py-56 items-center justify-center"><div class="w-full max-w-md bg-base-200 shadow-xl rounded-lg p-8"><!></div></div>');function Cn($,K){ve(K,!0);let z=te(!1),R=te(""),S=te(""),ut=sessionStorage.getItem("clientUser")??"",Q=sessionStorage.getItem("clientToken")??"",B=sessionStorage.getItem("clientId")??"",pt=te("");async function mt(){if(ft(R)&&ft(S)){const F=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({Username:ft(R),Password:ft(S)}),credentials:"include"});F.ok?(_t(pt,""),await gt()):F.status===429?_t(pt,"Locked out! Please try again later."):_t(pt,"Incorrect username or password!")}}function Ot(F,st,dt){De.connectWithCredentials(F,st,dt)}async function gt(){if(!ut&&!Q&&!B){const F=await fetch("/api/auth/token",{credentials:"include"});if(!F.ok)_t(z,!0);else{const st=await F.text(),dt=JSON.parse(st);_t(R,dt.username,!0);const vt=dt.clientId,Mt=dt.token;sessionStorage.setItem("clientUser",ft(R)),sessionStorage.setItem("clientToken",Mt),sessionStorage.setItem("clientId",vt),Ot(ft(R),Mt,vt)}}else Ot(ut,Q,B)}Ee(async()=>{await gt()});var It=Pn(),Pt=X(It),St=X(Pt);{var Z=F=>{var st=Sn(),dt=ht(re(st),2);dt.__keydown=[kn,mt];var vt=X(dt),Mt=ht(X(vt),2),Kt=X(Mt);Je(Kt),J(Mt);var yt=ht(Mt,2);tn(yt,{placeholder:"Enter password",minLength:0,maxLength:512,minUpper:0,minDigits:0,minSymbols:0,checkErrors:void 0,get password(){return ft(S)},set password(bt){_t(S,bt,!0)}});var Vt=ht(yt,2);{var Ut=bt=>{var Dt=On(),Wt=X(Dt,!0);J(Dt),le(()=>ce(Wt,ft(pt))),kt(bt,Dt)};be(Vt,bt=>{ft(pt)&&bt(Ut)})}var Gt=ht(Vt,2);J(vt),J(dt),le(()=>Gt.disabled=!ft(R)||!ft(S)),Ke("submit",dt,mt),nn(Kt,()=>ft(R),bt=>_t(R,bt)),kt(F,st)},it=F=>{var st=In();kt(F,st)};be(St,F=>{ft(z)?F(Z):F(it,!1)})}J(Pt),J(It),kt($,It),ge()}he(["keydown"]);var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tn($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function ir($){if(Object.prototype.hasOwnProperty.call($,"__esModule"))return $;var K=$.default;if(typeof K=="function"){var z=function R(){return this instanceof R?Reflect.construct(K,arguments,this.constructor):K.apply(this,arguments)};z.prototype=K.prototype}else z={};return Object.defineProperty(z,"__esModule",{value:!0}),Object.keys($).forEach(function(R){var S=Object.getOwnPropertyDescriptor($,R);Object.defineProperty(z,R,S.get?S:{enumerable:!0,get:function(){return $[R]}})}),z}var we={exports:{}};/*!
 * 
 *   simple-keyboard v3.8.62
 *   https://github.com/hodgef/simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */var An=we.exports,Fe;function _n(){return Fe||(Fe=1,function($,K){(function(z,R){$.exports=R()})(An,function(){return function(){var z={34:function(i,s,t){var e=t(4901);i.exports=function(n){return typeof n=="object"?n!==null:e(n)}},81:function(i,s,t){var e=t(9565),n=t(9306),r=t(8551),o=t(6823),a=t(851),u=TypeError;i.exports=function(c,l){var f=arguments.length<2?a(c):l;if(n(f))return r(e(f,c));throw new u(o(c)+" is not iterable")}},235:function(i,s,t){var e=t(9213).forEach,n=t(4598)("forEach");i.exports=n?[].forEach:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}},283:function(i,s,t){var e=t(9504),n=t(9039),r=t(4901),o=t(9297),a=t(3724),u=t(350).CONFIGURABLE,c=t(3706),l=t(1181),f=l.enforce,v=l.get,d=String,p=Object.defineProperty,g=e("".slice),h=e("".replace),y=e([].join),m=a&&!n(function(){return p(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),x=i.exports=function(w,I,k){g(d(I),0,7)==="Symbol("&&(I="["+h(d(I),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),k&&k.getter&&(I="get "+I),k&&k.setter&&(I="set "+I),(!o(w,"name")||u&&w.name!==I)&&(a?p(w,"name",{value:I,configurable:!0}):w.name=I),m&&k&&o(k,"arity")&&w.length!==k.arity&&p(w,"length",{value:k.arity});try{k&&o(k,"constructor")&&k.constructor?a&&p(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var E=f(w);return o(E,"source")||(E.source=y(b,typeof I=="string"?I:"")),w};Function.prototype.toString=x(function(){return r(this)&&v(this).source||c(this)},"toString")},298:function(i,s,t){var e=t(2195),n=t(5397),r=t(8480).f,o=t(7680),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(u){return a&&e(u)==="Window"?function(c){try{return r(c)}catch{return o(a)}}(u):r(n(u))}},350:function(i,s,t){var e=t(3724),n=t(9297),r=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,a=n(r,"name"),u=a&&(function(){}).name==="something",c=a&&(!e||e&&o(r,"name").configurable);i.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},397:function(i,s,t){var e=t(7751);i.exports=e("document","documentElement")},421:function(i){i.exports={}},511:function(i,s,t){var e=t(9167),n=t(9297),r=t(1951),o=t(4913).f;i.exports=function(a){var u=e.Symbol||(e.Symbol={});n(u,a)||o(u,a,{value:r.f(a)})}},566:function(i,s,t){var e=t(9504),n=t(9306),r=t(34),o=t(9297),a=t(7680),u=t(616),c=Function,l=e([].concat),f=e([].join),v={};i.exports=u?c.bind:function(d){var p=n(this),g=p.prototype,h=a(arguments,1),y=function(){var m=l(h,a(arguments));return this instanceof y?function(b,x,w){if(!o(v,x)){for(var I=[],k=0;k<x;k++)I[k]="a["+k+"]";v[x]=c("C,a","return new C("+f(I,",")+")")}return v[x](b,w)}(p,m.length,m):p.apply(d,m)};return r(g)&&(y.prototype=g),y}},597:function(i,s,t){var e=t(9039),n=t(8227),r=t(9519),o=n("species");i.exports=function(a){return r>=51||!e(function(){var u=[];return(u.constructor={})[o]=function(){return{foo:1}},u[a](Boolean).foo!==1})}},616:function(i,s,t){var e=t(9039);i.exports=!e(function(){var n=(function(){}).bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},655:function(i,s,t){var e=t(6955),n=String;i.exports=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}},687:function(i,s,t){var e=t(4913).f,n=t(9297),r=t(8227)("toStringTag");i.exports=function(o,a,u){o&&!u&&(o=o.prototype),o&&!n(o,r)&&e(o,r,{configurable:!0,value:a})}},706:function(i,s,t){var e=t(350).PROPER,n=t(9039),r=t(7452);i.exports=function(o){return n(function(){return!!r[o]()||"​᠎"[o]()!=="​᠎"||e&&r[o].name!==o})}},739:function(i,s,t){var e=t(6518),n=t(9039),r=t(8981),o=t(2777);e({target:"Date",proto:!0,arity:1,forced:n(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(a){var u=r(this),c=o(u,"number");return typeof c!="number"||isFinite(c)?u.toISOString():null}})},741:function(i){var s=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(e){var n=+e;return(n>0?t:s)(n)}},744:function(i,s,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),u=t(7750),c=t(2293),l=t(7829),f=t(8014),v=t(655),d=t(5966),p=t(6682),g=t(8429),h=t(9039),y=g.UNSUPPORTED_Y,m=Math.min,b=n([].push),x=n("".slice),w=!h(function(){var k=/(?:)/,E=k.exec;k.exec=function(){return E.apply(this,arguments)};var P="ab".split(k);return P.length!==2||P[0]!=="a"||P[1]!=="b"}),I="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(k,E,P){var C="0".split(void 0,0).length?function(O,M){return O===void 0&&M===0?[]:e(E,this,O,M)}:E;return[function(O,M){var T=u(this),A=a(O)?d(O,k):void 0;return A?e(A,O,T,M):e(C,v(T),O,M)},function(O,M){var T=o(this),A=v(O);if(!I){var tt=P(C,T,A,M,C!==E);if(tt.done)return tt.value}var q=c(T,RegExp),_=T.unicode,Y=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(y?"g":"y"),H=new q(y?"^(?:"+T.source+")":T,Y),U=M===void 0?4294967295:M>>>0;if(U===0)return[];if(A.length===0)return p(H,A)===null?[A]:[];for(var V=0,W=0,D=[];W<A.length;){H.lastIndex=y?0:W;var j,N=p(H,y?x(A,W):A);if(N===null||(j=m(f(H.lastIndex+(y?W:0)),A.length))===V)W=l(A,W,_);else{if(b(D,x(A,V,W)),D.length===U)return D;for(var nt=1;nt<=N.length-1;nt++)if(b(D,N[nt]),D.length===U)return D;W=V=j}}return b(D,x(A,V)),D}]},I||!w,y)},757:function(i,s,t){var e=t(7751),n=t(4901),r=t(1625),o=t(7040),a=Object;i.exports=o?function(u){return typeof u=="symbol"}:function(u){var c=e("Symbol");return n(c)&&r(c.prototype,a(u))}},788:function(i,s,t){var e=t(34),n=t(2195),r=t(8227)("match");i.exports=function(o){var a;return e(o)&&((a=o[r])!==void 0?!!a:n(o)==="RegExp")}},825:function(i,s,t){var e=t(6518),n=t(7751),r=t(8745),o=t(566),a=t(5548),u=t(8551),c=t(34),l=t(2360),f=t(9039),v=n("Reflect","construct"),d=Object.prototype,p=[].push,g=f(function(){function m(){}return!(v(function(){},[],m)instanceof m)}),h=!f(function(){v(function(){})}),y=g||h;e({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(m,b){a(m),u(b);var x=arguments.length<3?m:a(arguments[2]);if(h&&!g)return v(m,b,x);if(m===x){switch(b.length){case 0:return new m;case 1:return new m(b[0]);case 2:return new m(b[0],b[1]);case 3:return new m(b[0],b[1],b[2]);case 4:return new m(b[0],b[1],b[2],b[3])}var w=[null];return r(p,w,b),new(r(o,m,w))}var I=x.prototype,k=l(c(I)?I:d),E=r(m,k,b);return c(E)?E:k}})},851:function(i,s,t){var e=t(6955),n=t(5966),r=t(4117),o=t(6269),a=t(8227)("iterator");i.exports=function(u){if(!r(u))return n(u,a)||n(u,"@@iterator")||o[e(u)]}},926:function(i,s,t){var e=t(9306),n=t(8981),r=t(7055),o=t(6198),a=TypeError,u="Reduce of empty array with no initial value",c=function(l){return function(f,v,d,p){var g=n(f),h=r(g),y=o(g);if(e(v),y===0&&d<2)throw new a(u);var m=l?y-1:0,b=l?-1:1;if(d<2)for(;;){if(m in h){p=h[m],m+=b;break}if(m+=b,l?m<0:y<=m)throw new a(u)}for(;l?m>=0:y>m;m+=b)m in h&&(p=v(p,h[m],m,g));return p}};i.exports={left:c(!1),right:c(!0)}},1034:function(i,s,t){var e=t(9565),n=t(9297),r=t(1625),o=t(5213),a=t(7979),u=RegExp.prototype;i.exports=o.correct?function(c){return c.flags}:function(c){return o.correct||!r(u,c)||n(c,"flags")?c.flags:e(a,c)}},1056:function(i,s,t){var e=t(4913).f;i.exports=function(n,r,o){o in n||e(n,o,{configurable:!0,get:function(){return r[o]},set:function(a){r[o]=a}})}},1072:function(i,s,t){var e=t(1828),n=t(8727);i.exports=Object.keys||function(r){return e(r,n)}},1088:function(i,s,t){var e=t(6518),n=t(9565),r=t(6395),o=t(350),a=t(4901),u=t(3994),c=t(2787),l=t(2967),f=t(687),v=t(6699),d=t(6840),p=t(8227),g=t(6269),h=t(7657),y=o.PROPER,m=o.CONFIGURABLE,b=h.IteratorPrototype,x=h.BUGGY_SAFARI_ITERATORS,w=p("iterator"),I="keys",k="values",E="entries",P=function(){return this};i.exports=function(C,O,M,T,A,tt,q){u(M,O,T);var _,Y,H,U=function(wt){if(wt===A&&N)return N;if(!x&&wt&&wt in D)return D[wt];switch(wt){case I:case k:case E:return function(){return new M(this,wt)}}return function(){return new M(this)}},V=O+" Iterator",W=!1,D=C.prototype,j=D[w]||D["@@iterator"]||A&&D[A],N=!x&&j||U(A),nt=O==="Array"&&D.entries||j;if(nt&&(_=c(nt.call(new C)))!==Object.prototype&&_.next&&(r||c(_)===b||(l?l(_,b):a(_[w])||d(_,w,P)),f(_,V,!0,!0),r&&(g[V]=P)),y&&A===k&&j&&j.name!==k&&(!r&&m?v(D,"name",k):(W=!0,N=function(){return n(j,this)})),A)if(Y={values:U(k),keys:tt?N:U(I),entries:U(E)},q)for(H in Y)(x||W||!(H in D))&&d(D,H,Y[H]);else e({target:O,proto:!0,forced:x||W},Y);return r&&!q||D[w]===N||d(D,w,N,{name:A}),g[O]=N,Y}},1181:function(i,s,t){var e,n,r,o=t(8622),a=t(4576),u=t(34),c=t(6699),l=t(9297),f=t(7629),v=t(6119),d=t(421),p="Object already initialized",g=a.TypeError,h=a.WeakMap;if(o||f.state){var y=f.state||(f.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,e=function(b,x){if(y.has(b))throw new g(p);return x.facade=b,y.set(b,x),x},n=function(b){return y.get(b)||{}},r=function(b){return y.has(b)}}else{var m=v("state");d[m]=!0,e=function(b,x){if(l(b,m))throw new g(p);return x.facade=b,c(b,m,x),x},n=function(b){return l(b,m)?b[m]:{}},r=function(b){return l(b,m)}}i.exports={set:e,get:n,has:r,enforce:function(b){return r(b)?n(b):e(b,{})},getterFor:function(b){return function(x){var w;if(!u(x)||(w=n(x)).type!==b)throw new g("Incompatible receiver, "+b+" required");return w}}}},1240:function(i,s,t){var e=t(9504);i.exports=e(1.1.valueOf)},1278:function(i,s,t){var e=t(6518),n=t(3724),r=t(5031),o=t(5397),a=t(7347),u=t(4659);e({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(c){for(var l,f,v=o(c),d=a.f,p=r(v),g={},h=0;p.length>h;)(f=d(v,l=p[h++]))!==void 0&&u(g,l,f);return g}})},1291:function(i,s,t){var e=t(741);i.exports=function(n){var r=+n;return r!=r||r===0?0:e(r)}},1296:function(i,s,t){var e=t(4495);i.exports=e&&!!Symbol.for&&!!Symbol.keyFor},1436:function(i,s,t){var e=t(8227)("match");i.exports=function(n){var r=/./;try{"/./"[n](r)}catch{try{return r[e]=!1,"/./"[n](r)}catch{}}return!1}},1469:function(i,s,t){var e=t(7433);i.exports=function(n,r){return new(e(n))(r===0?0:r)}},1480:function(i,s,t){var e=t(6518),n=t(9039),r=t(298).f;e({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})},1510:function(i,s,t){var e=t(6518),n=t(7751),r=t(9297),o=t(655),a=t(5745),u=t(1296),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{for:function(f){var v=o(f);if(r(c,v))return c[v];var d=n("Symbol")(v);return c[v]=d,l[d]=v,d}})},1625:function(i,s,t){var e=t(9504);i.exports=e({}.isPrototypeOf)},1699:function(i,s,t){var e=t(6518),n=t(9504),r=t(5749),o=t(7750),a=t(655),u=t(1436),c=n("".indexOf);e({target:"String",proto:!0,forced:!u("includes")},{includes:function(l){return!!~c(a(o(this)),a(r(l)),arguments.length>1?arguments[1]:void 0)}})},1761:function(i,s,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),u=t(8014),c=t(655),l=t(7750),f=t(5966),v=t(7829),d=t(1034),p=t(6682),g=n("".indexOf);r("match",function(h,y,m){return[function(b){var x=l(this),w=a(b)?f(b,h):void 0;return w?e(w,b,x):new RegExp(b)[h](c(x))},function(b){var x=o(this),w=c(b),I=m(y,x,w);if(I.done)return I.value;var k=c(d(x));if(g(k,"g")===-1)return p(x,w);var E=g(k,"u")!==-1;x.lastIndex=0;for(var P,C=[],O=0;(P=p(x,w))!==null;){var M=c(P[0]);C[O]=M,M===""&&(x.lastIndex=v(w,u(x.lastIndex),E)),O++}return O===0?null:C}]})},1828:function(i,s,t){var e=t(9504),n=t(9297),r=t(5397),o=t(9617).indexOf,a=t(421),u=e([].push);i.exports=function(c,l){var f,v=r(c),d=0,p=[];for(f in v)!n(a,f)&&n(v,f)&&u(p,f);for(;l.length>d;)n(v,f=l[d++])&&(~o(p,f)||u(p,f));return p}},1951:function(i,s,t){var e=t(8227);s.f=e},2008:function(i,s,t){var e=t(6518),n=t(9213).filter;e({target:"Array",proto:!0,forced:!t(597)("filter")},{filter:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2010:function(i,s,t){var e=t(3724),n=t(350).EXISTS,r=t(9504),o=t(2106),a=Function.prototype,u=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=r(c.exec);e&&!n&&o(a,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch{return""}}})},2062:function(i,s,t){var e=t(6518),n=t(9213).map;e({target:"Array",proto:!0,forced:!t(597)("map")},{map:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2087:function(i,s,t){var e=t(34),n=Math.floor;i.exports=Number.isInteger||function(r){return!e(r)&&isFinite(r)&&n(r)===r}},2106:function(i,s,t){var e=t(283),n=t(4913);i.exports=function(r,o,a){return a.get&&e(a.get,o,{getter:!0}),a.set&&e(a.set,o,{setter:!0}),n.f(r,o,a)}},2140:function(i,s,t){var e={};e[t(8227)("toStringTag")]="z",i.exports=String(e)==="[object z]"},2195:function(i,s,t){var e=t(9504),n=e({}.toString),r=e("".slice);i.exports=function(o){return r(n(o),8,-1)}},2211:function(i,s,t){var e=t(9039);i.exports=!e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},2259:function(i,s,t){t(511)("iterator")},2293:function(i,s,t){var e=t(8551),n=t(5548),r=t(4117),o=t(8227)("species");i.exports=function(a,u){var c,l=e(a).constructor;return l===void 0||r(c=e(l)[o])?u:n(c)}},2360:function(i,s,t){var e,n=t(8551),r=t(6801),o=t(8727),a=t(421),u=t(397),c=t(4055),l=t(6119),f="prototype",v="script",d=l("IE_PROTO"),p=function(){},g=function(m){return"<"+v+">"+m+"</"+v+">"},h=function(m){m.write(g("")),m.close();var b=m.parentWindow.Object;return m=null,b},y=function(){try{e=new ActiveXObject("htmlfile")}catch{}var m,b,x;y=typeof document<"u"?document.domain&&e?h(e):(b=c("iframe"),x="java"+v+":",b.style.display="none",u.appendChild(b),b.src=String(x),(m=b.contentWindow.document).open(),m.write(g("document.F=Object")),m.close(),m.F):h(e);for(var w=o.length;w--;)delete y[f][o[w]];return y()};a[d]=!0,i.exports=Object.create||function(m,b){var x;return m!==null?(p[f]=n(m),x=new p,p[f]=null,x[d]=m):x=y(),b===void 0?x:r.f(x,b)}},2478:function(i,s,t){var e=t(9504),n=t(8981),r=Math.floor,o=e("".charAt),a=e("".replace),u=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;i.exports=function(f,v,d,p,g,h){var y=d+f.length,m=p.length,b=l;return g!==void 0&&(g=n(g),b=c),a(h,b,function(x,w){var I;switch(o(w,0)){case"$":return"$";case"&":return f;case"`":return u(v,0,d);case"'":return u(v,y);case"<":I=g[u(w,1,-1)];break;default:var k=+w;if(k===0)return x;if(k>m){var E=r(k/10);return E===0?x:E<=m?p[E-1]===void 0?o(w,1):p[E-1]+o(w,1):x}I=p[k-1]}return I===void 0?"":I})}},2529:function(i){i.exports=function(s,t){return{value:s,done:t}}},2551:function(i,s,t){var e=t(6395),n=t(4576),r=t(9039),o=t(3607);i.exports=e||!r(function(){if(!(o&&o<535)){var a=Math.random();__defineSetter__.call(null,a,function(){}),delete n[a]}})},2637:function(i,s,t){t(6518)({target:"Number",stat:!0},{isInteger:t(2087)})},2675:function(i,s,t){t(6761),t(1510),t(7812),t(3110),t(9773)},2712:function(i,s,t){var e=t(6518),n=t(926).left,r=t(4598),o=t(9519);e({target:"Array",proto:!0,forced:!t(6193)&&o>79&&o<83||!r("reduce")},{reduce:function(a){var u=arguments.length;return n(this,a,u,u>1?arguments[1]:void 0)}})},2762:function(i,s,t){var e=t(6518),n=t(3802).trim;e({target:"String",proto:!0,forced:t(706)("trim")},{trim:function(){return n(this)}})},2777:function(i,s,t){var e=t(9565),n=t(34),r=t(757),o=t(5966),a=t(4270),u=t(8227),c=TypeError,l=u("toPrimitive");i.exports=function(f,v){if(!n(f)||r(f))return f;var d,p=o(f,l);if(p){if(v===void 0&&(v="default"),d=e(p,f,v),!n(d)||r(d))return d;throw new c("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(f,v)}},2787:function(i,s,t){var e=t(9297),n=t(4901),r=t(8981),o=t(6119),a=t(2211),u=o("IE_PROTO"),c=Object,l=c.prototype;i.exports=a?c.getPrototypeOf:function(f){var v=r(f);if(e(v,u))return v[u];var d=v.constructor;return n(d)&&v instanceof d?d.prototype:v instanceof c?l:null}},2796:function(i,s,t){var e=t(9039),n=t(4901),r=/#|\.prototype\./,o=function(f,v){var d=u[a(f)];return d===l||d!==c&&(n(v)?e(v):!!v)},a=o.normalize=function(f){return String(f).replace(r,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";i.exports=o},2839:function(i,s,t){var e=t(4576).navigator,n=e&&e.userAgent;i.exports=n?String(n):""},2892:function(i,s,t){var e=t(6518),n=t(6395),r=t(3724),o=t(4576),a=t(9167),u=t(9504),c=t(2796),l=t(9297),f=t(3167),v=t(1625),d=t(757),p=t(2777),g=t(9039),h=t(8480).f,y=t(7347).f,m=t(4913).f,b=t(1240),x=t(3802).trim,w="Number",I=o[w],k=a[w],E=I.prototype,P=o.TypeError,C=u("".slice),O=u("".charCodeAt),M=function(q){var _,Y,H,U,V,W,D,j,N=p(q,"number");if(d(N))throw new P("Cannot convert a Symbol value to a number");if(typeof N=="string"&&N.length>2){if(N=x(N),(_=O(N,0))===43||_===45){if((Y=O(N,2))===88||Y===120)return NaN}else if(_===48){switch(O(N,1)){case 66:case 98:H=2,U=49;break;case 79:case 111:H=8,U=55;break;default:return+N}for(W=(V=C(N,2)).length,D=0;D<W;D++)if((j=O(V,D))<48||j>U)return NaN;return parseInt(V,H)}}return+N},T=c(w,!I(" 0o1")||!I("0b1")||I("+0x1")),A=function(q){var _,Y=arguments.length<1?0:I(function(H){var U=p(H,"number");return typeof U=="bigint"?U:M(U)}(q));return v(E,_=this)&&g(function(){b(_)})?f(Object(Y),this,A):Y};A.prototype=E,T&&!n&&(E.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var tt=function(q,_){for(var Y,H=r?h(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),U=0;H.length>U;U++)l(_,Y=H[U])&&!l(q,Y)&&m(q,Y,y(_,Y))};n&&k&&tt(a[w],k),(T||n)&&tt(a[w],I)},2953:function(i,s,t){var e=t(4576),n=t(7400),r=t(9296),o=t(3792),a=t(6699),u=t(687),c=t(8227)("iterator"),l=o.values,f=function(d,p){if(d){if(d[c]!==l)try{a(d,c,l)}catch{d[c]=l}if(u(d,p,!0),n[p]){for(var g in o)if(d[g]!==o[g])try{a(d,g,o[g])}catch{d[g]=o[g]}}}};for(var v in n)f(e[v]&&e[v].prototype,v);f(r,"DOMTokenList")},2967:function(i,s,t){var e=t(6706),n=t(34),r=t(7750),o=t(3506);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,u=!1,c={};try{(a=e(Object.prototype,"__proto__","set"))(c,[]),u=c instanceof Array}catch{}return function(l,f){return r(l),o(f),n(l)&&(u?a(l,f):l.__proto__=f),l}}():void 0)},3110:function(i,s,t){var e=t(6518),n=t(7751),r=t(8745),o=t(9565),a=t(9504),u=t(9039),c=t(4901),l=t(757),f=t(7680),v=t(6933),d=t(4495),p=String,g=n("JSON","stringify"),h=a(/./.exec),y=a("".charAt),m=a("".charCodeAt),b=a("".replace),x=a(1.1.toString),w=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,E=!d||u(function(){var M=n("Symbol")("stringify detection");return g([M])!=="[null]"||g({a:M})!=="{}"||g(Object(M))!=="{}"}),P=u(function(){return g("\uDF06\uD834")!=='"\\udf06\\ud834"'||g("\uDEAD")!=='"\\udead"'}),C=function(M,T){var A=f(arguments),tt=v(T);if(c(tt)||M!==void 0&&!l(M))return A[1]=function(q,_){if(c(tt)&&(_=o(tt,this,p(q),_)),!l(_))return _},r(g,null,A)},O=function(M,T,A){var tt=y(A,T-1),q=y(A,T+1);return h(I,M)&&!h(k,q)||h(k,M)&&!h(I,tt)?"\\u"+x(m(M,0),16):M};g&&e({target:"JSON",stat:!0,arity:3,forced:E||P},{stringify:function(M,T,A){var tt=f(arguments),q=r(E?C:g,null,tt);return P&&typeof q=="string"?b(q,w,O):q}})},3167:function(i,s,t){var e=t(4901),n=t(34),r=t(2967);i.exports=function(o,a,u){var c,l;return r&&e(c=a.constructor)&&c!==u&&n(l=c.prototype)&&l!==u.prototype&&r(o,l),o}},3179:function(i,s,t){var e=t(2140),n=t(6955);i.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}},3392:function(i,s,t){var e=t(9504),n=0,r=Math.random(),o=e(1.1.toString);i.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+o(++n+r,36)}},3418:function(i,s,t){var e=t(6518),n=t(7916);e({target:"Array",stat:!0,forced:!t(4428)(function(r){Array.from(r)})},{from:n})},3500:function(i,s,t){var e=t(4576),n=t(7400),r=t(9296),o=t(235),a=t(6699),u=function(l){if(l&&l.forEach!==o)try{a(l,"forEach",o)}catch{l.forEach=o}};for(var c in n)n[c]&&u(e[c]&&e[c].prototype);u(r)},3506:function(i,s,t){var e=t(3925),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r("Can't set "+n(o)+" as a prototype")}},3517:function(i,s,t){var e=t(9504),n=t(9039),r=t(4901),o=t(6955),a=t(7751),u=t(3706),c=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,v=e(f.exec),d=!f.test(c),p=function(h){if(!r(h))return!1;try{return l(c,[],h),!0}catch{return!1}},g=function(h){if(!r(h))return!1;switch(o(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(f,u(h))}catch{return!0}};g.sham=!0,i.exports=!l||n(function(){var h;return p(p.call)||!p(Object)||!p(function(){h=!0})||h})?g:p},3607:function(i,s,t){var e=t(2839).match(/AppleWebKit\/(\d+)\./);i.exports=!!e&&+e[1]},3635:function(i,s,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n(".","s");return!(r.dotAll&&r.test(`
`)&&r.flags==="s")})},3640:function(i,s,t){var e=t(8551),n=t(4270),r=TypeError;i.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new r("Incorrect hint");return n(this,o)}},3706:function(i,s,t){var e=t(9504),n=t(4901),r=t(7629),o=e(Function.toString);n(r.inspectSource)||(r.inspectSource=function(a){return o(a)}),i.exports=r.inspectSource},3709:function(i,s,t){var e=t(2839).match(/firefox\/(\d+)/i);i.exports=!!e&&+e[1]},3717:function(i,s){s.f=Object.getOwnPropertySymbols},3724:function(i,s,t){var e=t(9039);i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},3763:function(i,s,t){var e=t(2839);i.exports=/MSIE|Trident/.test(e)},3792:function(i,s,t){var e=t(5397),n=t(6469),r=t(6269),o=t(1181),a=t(4913).f,u=t(1088),c=t(2529),l=t(6395),f=t(3724),v="Array Iterator",d=o.set,p=o.getterFor(v);i.exports=u(Array,"Array",function(h,y){d(this,{type:v,target:e(h),index:0,kind:y})},function(){var h=p(this),y=h.target,m=h.index++;if(!y||m>=y.length)return h.target=null,c(void 0,!0);switch(h.kind){case"keys":return c(m,!1);case"values":return c(y[m],!1)}return c([m,y[m]],!1)},"values");var g=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!l&&f&&g.name!=="values")try{a(g,"name",{value:"values"})}catch{}},3802:function(i,s,t){var e=t(9504),n=t(7750),r=t(655),o=t(7452),a=e("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(f){return function(v){var d=r(n(v));return 1&f&&(d=a(d,u,"")),2&f&&(d=a(d,c,"$1")),d}};i.exports={start:l(1),end:l(2),trim:l(3)}},3851:function(i,s,t){var e=t(6518),n=t(9039),r=t(5397),o=t(7347).f,a=t(3724);e({target:"Object",stat:!0,forced:!a||n(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(u,c){return o(r(u),c)}})},3925:function(i,s,t){var e=t(34);i.exports=function(n){return e(n)||n===null}},3994:function(i,s,t){var e=t(7657).IteratorPrototype,n=t(2360),r=t(6980),o=t(687),a=t(6269),u=function(){return this};i.exports=function(c,l,f,v){var d=l+" Iterator";return c.prototype=n(e,{next:r(+!v,f)}),o(c,d,!1,!0),a[d]=u,c}},4055:function(i,s,t){var e=t(4576),n=t(34),r=e.document,o=n(r)&&n(r.createElement);i.exports=function(a){return o?r.createElement(a):{}}},4117:function(i){i.exports=function(s){return s==null}},4209:function(i,s,t){var e=t(8227),n=t(6269),r=e("iterator"),o=Array.prototype;i.exports=function(a){return a!==void 0&&(n.Array===a||o[r]===a)}},4213:function(i,s,t){var e=t(3724),n=t(9504),r=t(9565),o=t(9039),a=t(1072),u=t(3717),c=t(8773),l=t(8981),f=t(7055),v=Object.assign,d=Object.defineProperty,p=n([].concat);i.exports=!v||o(function(){if(e&&v({b:1},v(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},h={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach(function(b){h[b]=b}),v({},g)[y]!==7||a(v({},h)).join("")!==m})?function(g,h){for(var y=l(g),m=arguments.length,b=1,x=u.f,w=c.f;m>b;)for(var I,k=f(arguments[b++]),E=x?p(a(k),x(k)):a(k),P=E.length,C=0;P>C;)I=E[C++],e&&!r(w,k,I)||(y[I]=k[I]);return y}:v},4215:function(i,s,t){var e=t(4576),n=t(2839),r=t(2195),o=function(a){return n.slice(0,a.length)===a};i.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":r(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"},4270:function(i,s,t){var e=t(9565),n=t(4901),r=t(34),o=TypeError;i.exports=function(a,u){var c,l;if(u==="string"&&n(c=a.toString)&&!r(l=e(c,a))||n(c=a.valueOf)&&!r(l=e(c,a))||u!=="string"&&n(c=a.toString)&&!r(l=e(c,a)))return l;throw new o("Can't convert object to primitive value")}},4376:function(i,s,t){var e=t(2195);i.exports=Array.isArray||function(n){return e(n)==="Array"}},4423:function(i,s,t){var e=t(6518),n=t(9617).includes,r=t(9039),o=t(6469);e({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(a){return n(this,a,arguments.length>1?arguments[1]:void 0)}}),o("includes")},4428:function(i,s,t){var e=t(8227)("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch{}i.exports=function(a,u){try{if(!u&&!n)return!1}catch{return!1}var c=!1;try{var l={};l[e]=function(){return{next:function(){return{done:c=!0}}}},a(l)}catch{}return c}},4488:function(i,s,t){var e=t(7680),n=Math.floor,r=function(o,a){var u=o.length;if(u<8)for(var c,l,f=1;f<u;){for(l=f,c=o[f];l&&a(o[l-1],c)>0;)o[l]=o[--l];l!==f++&&(o[l]=c)}else for(var v=n(u/2),d=r(e(o,0,v),a),p=r(e(o,v),a),g=d.length,h=p.length,y=0,m=0;y<g||m<h;)o[y+m]=y<g&&m<h?a(d[y],p[m])<=0?d[y++]:p[m++]:y<g?d[y++]:p[m++];return o};i.exports=r},4495:function(i,s,t){var e=t(9519),n=t(9039),r=t(4576).String;i.exports=!!Object.getOwnPropertySymbols&&!n(function(){var o=Symbol("symbol detection");return!r(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41})},4527:function(i,s,t){var e=t(3724),n=t(4376),r=TypeError,o=Object.getOwnPropertyDescriptor,a=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();i.exports=a?function(u,c){if(n(u)&&!o(u,"length").writable)throw new r("Cannot set read only .length");return u.length=c}:function(u,c){return u.length=c}},4554:function(i,s,t){var e=t(6518),n=t(8981),r=t(5610),o=t(1291),a=t(6198),u=t(4527),c=t(6837),l=t(1469),f=t(4659),v=t(4606),d=t(597)("splice"),p=Math.max,g=Math.min;e({target:"Array",proto:!0,forced:!d},{splice:function(h,y){var m,b,x,w,I,k,E=n(this),P=a(E),C=r(h,P),O=arguments.length;for(O===0?m=b=0:O===1?(m=0,b=P-C):(m=O-2,b=g(p(o(y),0),P-C)),c(P+m-b),x=l(E,b),w=0;w<b;w++)(I=C+w)in E&&f(x,w,E[I]);if(x.length=b,m<b){for(w=C;w<P-b;w++)k=w+m,(I=w+b)in E?E[k]=E[I]:v(E,k);for(w=P;w>P-b+m;w--)v(E,w-1)}else if(m>b)for(w=P-b;w>C;w--)k=w+m-1,(I=w+b-1)in E?E[k]=E[I]:v(E,k);for(w=0;w<m;w++)E[w+C]=arguments[w+2];return u(E,P-b+m),x}})},4576:function(i,s,t){var e=function(n){return n&&n.Math===Math&&n};i.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof t.g=="object"&&t.g)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4598:function(i,s,t){var e=t(9039);i.exports=function(n,r){var o=[][n];return!!o&&e(function(){o.call(null,r||function(){return 1},1)})}},4606:function(i,s,t){var e=t(6823),n=TypeError;i.exports=function(r,o){if(!delete r[o])throw new n("Cannot delete property "+e(o)+" of "+e(r))}},4659:function(i,s,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=function(o,a,u){e?n.f(o,a,r(0,u)):o[a]=u}},4782:function(i,s,t){var e=t(6518),n=t(4376),r=t(3517),o=t(34),a=t(5610),u=t(6198),c=t(5397),l=t(4659),f=t(8227),v=t(597),d=t(7680),p=v("slice"),g=f("species"),h=Array,y=Math.max;e({target:"Array",proto:!0,forced:!p},{slice:function(m,b){var x,w,I,k=c(this),E=u(k),P=a(m,E),C=a(b===void 0?E:b,E);if(n(k)&&(x=k.constructor,(r(x)&&(x===h||n(x.prototype))||o(x)&&(x=x[g])===null)&&(x=void 0),x===h||x===void 0))return d(k,P,C);for(w=new(x===void 0?h:x)(y(C-P,0)),I=0;P<C;P++,I++)P in k&&l(w,I,k[P]);return w.length=I,w}})},4864:function(i,s,t){var e=t(3724),n=t(4576),r=t(9504),o=t(2796),a=t(3167),u=t(6699),c=t(2360),l=t(8480).f,f=t(1625),v=t(788),d=t(655),p=t(1034),g=t(8429),h=t(1056),y=t(6840),m=t(9039),b=t(9297),x=t(1181).enforce,w=t(7633),I=t(8227),k=t(3635),E=t(8814),P=I("match"),C=n.RegExp,O=C.prototype,M=n.SyntaxError,T=r(O.exec),A=r("".charAt),tt=r("".replace),q=r("".indexOf),_=r("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,H=/a/g,U=/a/g,V=new C(H)!==H,W=g.MISSED_STICKY,D=g.UNSUPPORTED_Y,j=e&&(!V||W||k||E||m(function(){return U[P]=!1,C(H)!==H||C(U)===U||String(C(H,"i"))!=="/a/i"}));if(o("RegExp",j)){for(var N=function(lt,at){var Nt,Ht,Xt,qt,Rt,$t,Bt=f(O,this),Qt=v(lt),oe=at===void 0,ie=[],jt=lt;if(!Bt&&Qt&&oe&&lt.constructor===N)return lt;if((Qt||f(O,lt))&&(lt=lt.source,oe&&(at=p(jt))),lt=lt===void 0?"":d(lt),at=at===void 0?"":d(at),jt=lt,k&&"dotAll"in H&&(Ht=!!at&&q(at,"s")>-1)&&(at=tt(at,/s/g,"")),Nt=at,W&&"sticky"in H&&(Xt=!!at&&q(at,"y")>-1)&&D&&(at=tt(at,/y/g,"")),E&&(qt=function(Tt){for(var xt,ae=Tt.length,At=0,zt="",Yt=[],se=c(null),ue=!1,ne=!1,me=0,Zt="";At<=ae;At++){if((xt=A(Tt,At))==="\\")xt+=A(Tt,++At);else if(xt==="]")ue=!1;else if(!ue)switch(!0){case xt==="[":ue=!0;break;case xt==="(":if(zt+=xt,_(Tt,At+1,At+3)==="?:")continue;T(Y,_(Tt,At+1))&&(At+=2,ne=!0),me++;continue;case(xt===">"&&ne):if(Zt===""||b(se,Zt))throw new M("Invalid capture group name");se[Zt]=!0,Yt[Yt.length]=[Zt,me],ne=!1,Zt="";continue}ne?Zt+=xt:zt+=xt}return[zt,Yt]}(lt),lt=qt[0],ie=qt[1]),Rt=a(C(lt,at),Bt?this:O,N),(Ht||Xt||ie.length)&&($t=x(Rt),Ht&&($t.dotAll=!0,$t.raw=N(function(Tt){for(var xt,ae=Tt.length,At=0,zt="",Yt=!1;At<=ae;At++)(xt=A(Tt,At))!=="\\"?Yt||xt!=="."?(xt==="["?Yt=!0:xt==="]"&&(Yt=!1),zt+=xt):zt+="[\\s\\S]":zt+=xt+A(Tt,++At);return zt}(lt),Nt)),Xt&&($t.sticky=!0),ie.length&&($t.groups=ie)),lt!==jt)try{u(Rt,"source",jt===""?"(?:)":jt)}catch{}return Rt},nt=l(C),wt=0;nt.length>wt;)h(N,C,nt[wt++]);O.constructor=N,N.prototype=O,y(n,"RegExp",N,{constructor:!0})}w("RegExp")},4901:function(i){var s=typeof document=="object"&&document.all;i.exports=s===void 0&&s!==void 0?function(t){return typeof t=="function"||t===s}:function(t){return typeof t=="function"}},4913:function(i,s,t){var e=t(3724),n=t(5917),r=t(8686),o=t(8551),a=t(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",d="writable";s.f=e?r?function(p,g,h){if(o(p),g=a(g),o(h),typeof p=="function"&&g==="prototype"&&"value"in h&&d in h&&!h[d]){var y=l(p,g);y&&y[d]&&(p[g]=h.value,h={configurable:v in h?h[v]:y[v],enumerable:f in h?h[f]:y[f],writable:!1})}return c(p,g,h)}:c:function(p,g,h){if(o(p),g=a(g),o(h),n)try{return c(p,g,h)}catch{}if("get"in h||"set"in h)throw new u("Accessors not supported");return"value"in h&&(p[g]=h.value),p}},5031:function(i,s,t){var e=t(7751),n=t(9504),r=t(8480),o=t(3717),a=t(8551),u=n([].concat);i.exports=e("Reflect","ownKeys")||function(c){var l=r.f(a(c)),f=o.f;return f?u(l,f(c)):l}},5213:function(i,s,t){var e=t(4576),n=t(9039),r=e.RegExp,o=!n(function(){var a=!0;try{r(".","d")}catch{a=!1}var u={},c="",l=a?"dgimsy":"gimsy",f=function(p,g){Object.defineProperty(u,p,{get:function(){return c+=g,!0}})},v={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var d in a&&(v.hasIndices="d"),v)f(d,v[d]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(u)!==l||c!==l});i.exports={correct:o}},5276:function(i,s,t){var e=t(6518),n=t(7476),r=t(9617).indexOf,o=t(4598),a=n([].indexOf),u=!!a&&1/a([1],1,-0)<0;e({target:"Array",proto:!0,forced:u||!o("indexOf")},{indexOf:function(c){var l=arguments.length>1?arguments[1]:void 0;return u?a(this,c,l)||0:r(this,c,l)}})},5397:function(i,s,t){var e=t(7055),n=t(7750);i.exports=function(r){return e(n(r))}},5440:function(i,s,t){var e=t(8745),n=t(9565),r=t(9504),o=t(9228),a=t(9039),u=t(8551),c=t(4901),l=t(34),f=t(1291),v=t(8014),d=t(655),p=t(7750),g=t(7829),h=t(5966),y=t(2478),m=t(1034),b=t(6682),x=t(8227)("replace"),w=Math.max,I=Math.min,k=r([].concat),E=r([].push),P=r("".indexOf),C=r("".slice),O="a".replace(/./,"$0")==="$0",M=!!/./[x]&&/./[x]("a","$0")==="";o("replace",function(T,A,tt){var q=M?"$":"$0";return[function(_,Y){var H=p(this),U=l(_)?h(_,x):void 0;return U?n(U,_,H,Y):n(A,d(H),_,Y)},function(_,Y){var H=u(this),U=d(_);if(typeof Y=="string"&&P(Y,q)===-1&&P(Y,"$<")===-1){var V=tt(A,H,U,Y);if(V.done)return V.value}var W=c(Y);W||(Y=d(Y));var D,j=d(m(H)),N=P(j,"g")!==-1;N&&(D=P(j,"u")!==-1,H.lastIndex=0);for(var nt,wt=[];(nt=b(H,U))!==null&&(E(wt,nt),N);)d(nt[0])===""&&(H.lastIndex=g(U,v(H.lastIndex),D));for(var lt,at="",Nt=0,Ht=0;Ht<wt.length;Ht++){for(var Xt,qt=d((nt=wt[Ht])[0]),Rt=w(I(f(nt.index),U.length),0),$t=[],Bt=1;Bt<nt.length;Bt++)E($t,(lt=nt[Bt])===void 0?lt:String(lt));var Qt=nt.groups;if(W){var oe=k([qt],$t,Rt,U);Qt!==void 0&&E(oe,Qt),Xt=d(e(Y,void 0,oe))}else Xt=y(qt,U,Rt,$t,Qt,Y);Rt>=Nt&&(at+=C(U,Nt,Rt)+Xt,Nt=Rt+qt.length)}return at+C(U,Nt)}]},!!a(function(){var T=/./;return T.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(T,"$<a>")!=="7"})||!O||M)},5548:function(i,s,t){var e=t(3517),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a constructor")}},5610:function(i,s,t){var e=t(1291),n=Math.max,r=Math.min;i.exports=function(o,a){var u=e(o);return u<0?n(u+a,0):r(u,a)}},5700:function(i,s,t){var e=t(511),n=t(8242);e("toPrimitive"),n()},5745:function(i,s,t){var e=t(7629);i.exports=function(n,r){return e[n]||(e[n]=r||{})}},5749:function(i,s,t){var e=t(788),n=TypeError;i.exports=function(r){if(e(r))throw new n("The method doesn't accept regular expressions");return r}},5917:function(i,s,t){var e=t(3724),n=t(9039),r=t(4055);i.exports=!e&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7})},5966:function(i,s,t){var e=t(9306),n=t(4117);i.exports=function(r,o){var a=r[o];return n(a)?void 0:e(a)}},6080:function(i,s,t){var e=t(7476),n=t(9306),r=t(616),o=e(e.bind);i.exports=function(a,u){return n(a),u===void 0?a:r?o(a,u):function(){return a.apply(u,arguments)}}},6099:function(i,s,t){var e=t(2140),n=t(6840),r=t(3179);e||n(Object.prototype,"toString",r,{unsafe:!0})},6119:function(i,s,t){var e=t(5745),n=t(3392),r=e("keys");i.exports=function(o){return r[o]||(r[o]=n(o))}},6193:function(i,s,t){var e=t(4215);i.exports=e==="NODE"},6198:function(i,s,t){var e=t(8014);i.exports=function(n){return e(n.length)}},6269:function(i){i.exports={}},6319:function(i,s,t){var e=t(8551),n=t(9539);i.exports=function(r,o,a,u){try{return u?o(e(a)[0],a[1]):o(a)}catch(c){n(r,"throw",c)}}},6395:function(i){i.exports=!1},6469:function(i,s,t){var e=t(8227),n=t(2360),r=t(4913).f,o=e("unscopables"),a=Array.prototype;a[o]===void 0&&r(a,o,{configurable:!0,value:n(null)}),i.exports=function(u){a[o][u]=!0}},6518:function(i,s,t){var e=t(4576),n=t(7347).f,r=t(6699),o=t(6840),a=t(9433),u=t(7740),c=t(2796);i.exports=function(l,f){var v,d,p,g,h,y=l.target,m=l.global,b=l.stat;if(v=m?e:b?e[y]||a(y,{}):e[y]&&e[y].prototype)for(d in f){if(g=f[d],p=l.dontCallGetSet?(h=n(v,d))&&h.value:v[d],!c(m?d:y+(b?".":"#")+d,l.forced)&&p!==void 0){if(typeof g==typeof p)continue;u(g,p)}(l.sham||p&&p.sham)&&r(g,"sham",!0),o(v,d,g,l)}}},6682:function(i,s,t){var e=t(9565),n=t(8551),r=t(4901),o=t(2195),a=t(7323),u=TypeError;i.exports=function(c,l){var f=c.exec;if(r(f)){var v=e(f,c,l);return v!==null&&n(v),v}if(o(c)==="RegExp")return e(a,c,l);throw new u("RegExp#exec called on incompatible receiver")}},6699:function(i,s,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=e?function(o,a,u){return n.f(o,a,r(1,u))}:function(o,a,u){return o[a]=u,o}},6706:function(i,s,t){var e=t(9504),n=t(9306);i.exports=function(r,o,a){try{return e(n(Object.getOwnPropertyDescriptor(r,o)[a]))}catch{}}},6761:function(i,s,t){var e=t(6518),n=t(4576),r=t(9565),o=t(9504),a=t(6395),u=t(3724),c=t(4495),l=t(9039),f=t(9297),v=t(1625),d=t(8551),p=t(5397),g=t(6969),h=t(655),y=t(6980),m=t(2360),b=t(1072),x=t(8480),w=t(298),I=t(3717),k=t(7347),E=t(4913),P=t(6801),C=t(8773),O=t(6840),M=t(2106),T=t(5745),A=t(6119),tt=t(421),q=t(3392),_=t(8227),Y=t(1951),H=t(511),U=t(8242),V=t(687),W=t(1181),D=t(9213).forEach,j=A("hidden"),N="Symbol",nt="prototype",wt=W.set,lt=W.getterFor(N),at=Object[nt],Nt=n.Symbol,Ht=Nt&&Nt[nt],Xt=n.RangeError,qt=n.TypeError,Rt=n.QObject,$t=k.f,Bt=E.f,Qt=w.f,oe=C.f,ie=o([].push),jt=T("symbols"),Tt=T("op-symbols"),xt=T("wks"),ae=!Rt||!Rt[nt]||!Rt[nt].findChild,At=function(G,rt,ot){var ct=$t(at,rt);ct&&delete at[rt],Bt(G,rt,ot),ct&&G!==at&&Bt(at,rt,ct)},zt=u&&l(function(){return m(Bt({},"a",{get:function(){return Bt(this,"a",{value:7}).a}})).a!==7})?At:Bt,Yt=function(G,rt){var ot=jt[G]=m(Ht);return wt(ot,{type:N,tag:G,description:rt}),u||(ot.description=rt),ot},se=function(G,rt,ot){G===at&&se(Tt,rt,ot),d(G);var ct=g(rt);return d(ot),f(jt,ct)?(ot.enumerable?(f(G,j)&&G[j][ct]&&(G[j][ct]=!1),ot=m(ot,{enumerable:y(0,!1)})):(f(G,j)||Bt(G,j,y(1,m(null))),G[j][ct]=!0),zt(G,ct,ot)):Bt(G,ct,ot)},ue=function(G,rt){d(G);var ot=p(rt),ct=b(ot).concat(Ne(ot));return D(ct,function(Et){u&&!r(ne,ot,Et)||se(G,Et,ot[Et])}),G},ne=function(G){var rt=g(G),ot=r(oe,this,rt);return!(this===at&&f(jt,rt)&&!f(Tt,rt))&&(!(ot||!f(this,rt)||!f(jt,rt)||f(this,j)&&this[j][rt])||ot)},me=function(G,rt){var ot=p(G),ct=g(rt);if(ot!==at||!f(jt,ct)||f(Tt,ct)){var Et=$t(ot,ct);return!Et||!f(jt,ct)||f(ot,j)&&ot[j][ct]||(Et.enumerable=!0),Et}},Zt=function(G){var rt=Qt(p(G)),ot=[];return D(rt,function(ct){f(jt,ct)||f(tt,ct)||ie(ot,ct)}),ot},Ne=function(G){var rt=G===at,ot=Qt(rt?Tt:p(G)),ct=[];return D(ot,function(Et){!f(jt,Et)||rt&&!f(at,Et)||ie(ct,jt[Et])}),ct};c||(Nt=function(){if(v(Ht,this))throw new qt("Symbol is not a constructor");var G=arguments.length&&arguments[0]!==void 0?h(arguments[0]):void 0,rt=q(G),ot=function(ct){var Et=this===void 0?n:this;Et===at&&r(ot,Tt,ct),f(Et,j)&&f(Et[j],rt)&&(Et[j][rt]=!1);var je=y(1,ct);try{zt(Et,rt,je)}catch(Le){if(!(Le instanceof Xt))throw Le;At(Et,rt,je)}};return u&&ae&&zt(at,rt,{configurable:!0,set:ot}),Yt(rt,G)},O(Ht=Nt[nt],"toString",function(){return lt(this).tag}),O(Nt,"withoutSetter",function(G){return Yt(q(G),G)}),C.f=ne,E.f=se,P.f=ue,k.f=me,x.f=w.f=Zt,I.f=Ne,Y.f=function(G){return Yt(_(G),G)},u&&(M(Ht,"description",{configurable:!0,get:function(){return lt(this).description}}),a||O(at,"propertyIsEnumerable",ne,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Nt}),D(b(xt),function(G){H(G)}),e({target:N,stat:!0,forced:!c},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),e({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(G,rt){return rt===void 0?m(G):ue(m(G),rt)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:me}),e({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Zt}),U(),V(Nt,N),tt[j]=!0},6801:function(i,s,t){var e=t(3724),n=t(8686),r=t(4913),o=t(8551),a=t(5397),u=t(1072);s.f=e&&!n?Object.defineProperties:function(c,l){o(c);for(var f,v=a(l),d=u(l),p=d.length,g=0;p>g;)r.f(c,f=d[g++],v[f]);return c}},6823:function(i){var s=String;i.exports=function(t){try{return s(t)}catch{return"Object"}}},6837:function(i){var s=TypeError;i.exports=function(t){if(t>9007199254740991)throw s("Maximum allowed index exceeded");return t}},6840:function(i,s,t){var e=t(4901),n=t(4913),r=t(283),o=t(9433);i.exports=function(a,u,c,l){l||(l={});var f=l.enumerable,v=l.name!==void 0?l.name:u;if(e(c)&&r(c,v,l),l.global)f?a[u]=c:o(u,c);else{try{l.unsafe?a[u]&&(f=!0):delete a[u]}catch{}f?a[u]=c:n.f(a,u,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},6910:function(i,s,t){var e=t(6518),n=t(9504),r=t(9306),o=t(8981),a=t(6198),u=t(4606),c=t(655),l=t(9039),f=t(4488),v=t(4598),d=t(3709),p=t(3763),g=t(9519),h=t(3607),y=[],m=n(y.sort),b=n(y.push),x=l(function(){y.sort(void 0)}),w=l(function(){y.sort(null)}),I=v("sort"),k=!l(function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(h)return h<603;var E,P,C,O,M="";for(E=65;E<76;E++){switch(P=String.fromCharCode(E),E){case 66:case 69:case 70:case 72:C=3;break;case 68:case 71:C=4;break;default:C=2}for(O=0;O<47;O++)y.push({k:P+O,v:C})}for(y.sort(function(T,A){return A.v-T.v}),O=0;O<y.length;O++)P=y[O].k.charAt(0),M.charAt(M.length-1)!==P&&(M+=P);return M!=="DGBEFHACIJK"}});e({target:"Array",proto:!0,forced:x||!w||!I||!k},{sort:function(E){E!==void 0&&r(E);var P=o(this);if(k)return E===void 0?m(P):m(P,E);var C,O,M=[],T=a(P);for(O=0;O<T;O++)O in P&&b(M,P[O]);for(f(M,function(A){return function(tt,q){return q===void 0?-1:tt===void 0?1:A!==void 0?+A(tt,q)||0:c(tt)>c(q)?1:-1}}(E)),C=a(M),O=0;O<C;)P[O]=M[O++];for(;O<T;)u(P,O++);return P}})},6933:function(i,s,t){var e=t(9504),n=t(4376),r=t(4901),o=t(2195),a=t(655),u=e([].push);i.exports=function(c){if(r(c))return c;if(n(c)){for(var l=c.length,f=[],v=0;v<l;v++){var d=c[v];typeof d=="string"?u(f,d):typeof d!="number"&&o(d)!=="Number"&&o(d)!=="String"||u(f,a(d))}var p=f.length,g=!0;return function(h,y){if(g)return g=!1,y;if(n(this))return y;for(var m=0;m<p;m++)if(f[m]===h)return y}}}},6955:function(i,s,t){var e=t(2140),n=t(4901),r=t(2195),o=t(8227)("toStringTag"),a=Object,u=r(function(){return arguments}())==="Arguments";i.exports=e?r:function(c){var l,f,v;return c===void 0?"Undefined":c===null?"Null":typeof(f=function(d,p){try{return d[p]}catch{}}(l=a(c),o))=="string"?f:u?r(l):(v=r(l))==="Object"&&n(l.callee)?"Arguments":v}},6969:function(i,s,t){var e=t(2777),n=t(757);i.exports=function(r){var o=e(r,"string");return n(o)?o:o+""}},6980:function(i){i.exports=function(s,t){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:t}}},7040:function(i,s,t){var e=t(4495);i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},7055:function(i,s,t){var e=t(9504),n=t(9039),r=t(2195),o=Object,a=e("".split);i.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(u){return r(u)==="String"?a(u,""):o(u)}:o},7323:function(i,s,t){var e,n,r=t(9565),o=t(9504),a=t(655),u=t(7979),c=t(8429),l=t(5745),f=t(2360),v=t(1181).get,d=t(3635),p=t(8814),g=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,y=h,m=o("".charAt),b=o("".indexOf),x=o("".replace),w=o("".slice),I=(n=/b*/g,r(h,e=/a/,"a"),r(h,n,"a"),e.lastIndex!==0||n.lastIndex!==0),k=c.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0;(I||E||k||d||p)&&(y=function(P){var C,O,M,T,A,tt,q,_=this,Y=v(_),H=a(P),U=Y.raw;if(U)return U.lastIndex=_.lastIndex,C=r(y,U,H),_.lastIndex=U.lastIndex,C;var V=Y.groups,W=k&&_.sticky,D=r(u,_),j=_.source,N=0,nt=H;if(W&&(D=x(D,"y",""),b(D,"g")===-1&&(D+="g"),nt=w(H,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&m(H,_.lastIndex-1)!==`
`)&&(j="(?: "+j+")",nt=" "+nt,N++),O=new RegExp("^(?:"+j+")",D)),E&&(O=new RegExp("^"+j+"$(?!\\s)",D)),I&&(M=_.lastIndex),T=r(h,W?O:_,nt),W?T?(T.input=w(T.input,N),T[0]=w(T[0],N),T.index=_.lastIndex,_.lastIndex+=T[0].length):_.lastIndex=0:I&&T&&(_.lastIndex=_.global?T.index+T[0].length:M),E&&T&&T.length>1&&r(g,T[0],O,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(T[A]=void 0)}),T&&V)for(T.groups=tt=f(null),A=0;A<V.length;A++)tt[(q=V[A])[0]]=T[q[1]];return T}),i.exports=y},7347:function(i,s,t){var e=t(3724),n=t(9565),r=t(8773),o=t(6980),a=t(5397),u=t(6969),c=t(9297),l=t(5917),f=Object.getOwnPropertyDescriptor;s.f=e?f:function(v,d){if(v=a(v),d=u(d),l)try{return f(v,d)}catch{}if(c(v,d))return o(!n(r.f,v,d),v[d])}},7400:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7427:function(i,s,t){var e=t(6518),n=t(3724),r=t(2551),o=t(9306),a=t(8981),u=t(4913);n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(c,l){u.f(a(this),c,{get:o(l),enumerable:!0,configurable:!0})}})},7433:function(i,s,t){var e=t(4376),n=t(3517),r=t(34),o=t(8227)("species"),a=Array;i.exports=function(u){var c;return e(u)&&(c=u.constructor,(n(c)&&(c===a||e(c.prototype))||r(c)&&(c=c[o])===null)&&(c=void 0)),c===void 0?a:c}},7452:function(i){i.exports=`	
\v\f\r                　\u2028\u2029\uFEFF`},7476:function(i,s,t){var e=t(2195),n=t(9504);i.exports=function(r){if(e(r)==="Function")return n(r)}},7495:function(i,s,t){var e=t(6518),n=t(7323);e({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7629:function(i,s,t){var e=t(6395),n=t(4576),r=t(9433),o="__core-js_shared__",a=i.exports=n[o]||r(o,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:function(i,s,t){var e=t(7751),n=t(2106),r=t(8227),o=t(3724),a=r("species");i.exports=function(u){var c=e(u);o&&c&&!c[a]&&n(c,a,{configurable:!0,get:function(){return this}})}},7657:function(i,s,t){var e,n,r,o=t(9039),a=t(4901),u=t(34),c=t(2360),l=t(2787),f=t(6840),v=t(8227),d=t(6395),p=v("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(n=l(l(r)))!==Object.prototype&&(e=n):g=!0),!u(e)||o(function(){var h={};return e[p].call(h)!==h})?e={}:d&&(e=c(e)),a(e[p])||f(e,p,function(){return this}),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},7680:function(i,s,t){var e=t(9504);i.exports=e([].slice)},7740:function(i,s,t){var e=t(9297),n=t(5031),r=t(7347),o=t(4913);i.exports=function(a,u,c){for(var l=n(u),f=o.f,v=r.f,d=0;d<l.length;d++){var p=l[d];e(a,p)||c&&e(c,p)||f(a,p,v(u,p))}}},7750:function(i,s,t){var e=t(4117),n=TypeError;i.exports=function(r){if(e(r))throw new n("Can't call method on "+r);return r}},7751:function(i,s,t){var e=t(4576),n=t(4901);i.exports=function(r,o){return arguments.length<2?(a=e[r],n(a)?a:void 0):e[r]&&e[r][o];var a}},7764:function(i,s,t){var e=t(8183).charAt,n=t(655),r=t(1181),o=t(1088),a=t(2529),u="String Iterator",c=r.set,l=r.getterFor(u);o(String,"String",function(f){c(this,{type:u,string:n(f),index:0})},function(){var f,v=l(this),d=v.string,p=v.index;return p>=d.length?a(void 0,!0):(f=e(d,p),v.index+=f.length,a(f,!1))})},7812:function(i,s,t){var e=t(6518),n=t(9297),r=t(757),o=t(6823),a=t(5745),u=t(1296),c=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{keyFor:function(l){if(!r(l))throw new TypeError(o(l)+" is not a symbol");if(n(c,l))return c[l]}})},7829:function(i,s,t){var e=t(8183).charAt;i.exports=function(n,r,o){return r+(o?e(n,r).length:1)}},7916:function(i,s,t){var e=t(6080),n=t(9565),r=t(8981),o=t(6319),a=t(4209),u=t(3517),c=t(6198),l=t(4659),f=t(81),v=t(851),d=Array;i.exports=function(p){var g=r(p),h=u(this),y=arguments.length,m=y>1?arguments[1]:void 0,b=m!==void 0;b&&(m=e(m,y>2?arguments[2]:void 0));var x,w,I,k,E,P,C=v(g),O=0;if(!C||this===d&&a(C))for(x=c(g),w=h?new this(x):d(x);x>O;O++)P=b?m(g[O],O):g[O],l(w,O,P);else for(w=h?new this:[],E=(k=f(g,C)).next;!(I=n(E,k)).done;O++)P=b?o(k,m,[I.value,O],!0):I.value,l(w,O,P);return w.length=O,w}},7979:function(i,s,t){var e=t(8551);i.exports=function(){var n=e(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}},8014:function(i,s,t){var e=t(1291),n=Math.min;i.exports=function(r){var o=e(r);return o>0?n(o,9007199254740991):0}},8183:function(i,s,t){var e=t(9504),n=t(1291),r=t(655),o=t(7750),a=e("".charAt),u=e("".charCodeAt),c=e("".slice),l=function(f){return function(v,d){var p,g,h=r(o(v)),y=n(d),m=h.length;return y<0||y>=m?f?"":void 0:(p=u(h,y))<55296||p>56319||y+1===m||(g=u(h,y+1))<56320||g>57343?f?a(h,y):p:f?c(h,y,y+2):g-56320+(p-55296<<10)+65536}};i.exports={codeAt:l(!1),charAt:l(!0)}},8227:function(i,s,t){var e=t(4576),n=t(5745),r=t(9297),o=t(3392),a=t(4495),u=t(7040),c=e.Symbol,l=n("wks"),f=u?c.for||c:c&&c.withoutSetter||o;i.exports=function(v){return r(l,v)||(l[v]=a&&r(c,v)?c[v]:f("Symbol."+v)),l[v]}},8242:function(i,s,t){var e=t(9565),n=t(7751),r=t(8227),o=t(6840);i.exports=function(){var a=n("Symbol"),u=a&&a.prototype,c=u&&u.valueOf,l=r("toPrimitive");u&&!u[l]&&o(u,l,function(f){return e(c,this)},{arity:1})}},8344:function(i,s,t){t(8543)},8429:function(i,s,t){var e=t(9039),n=t(4576).RegExp,r=e(function(){var u=n("a","y");return u.lastIndex=2,u.exec("abcd")!==null}),o=r||e(function(){return!n("a","y").sticky}),a=r||e(function(){var u=n("^r","gy");return u.lastIndex=2,u.exec("str")!==null});i.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:r}},8480:function(i,s,t){var e=t(1828),n=t(8727).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(r){return e(r,n)}},8543:function(i,s,t){var e=t(6518),n=t(9565),r=t(7476),o=t(3994),a=t(2529),u=t(7750),c=t(8014),l=t(655),f=t(8551),v=t(34),d=t(2195),p=t(788),g=t(1034),h=t(5966),y=t(6840),m=t(9039),b=t(8227),x=t(2293),w=t(7829),I=t(6682),k=t(1181),E=t(6395),P=b("matchAll"),C="RegExp String",O=C+" Iterator",M=k.set,T=k.getterFor(O),A=RegExp.prototype,tt=TypeError,q=r("".indexOf),_=r("".matchAll),Y=!!_&&!m(function(){_("a",/./)}),H=o(function(V,W,D,j){M(this,{type:O,regexp:V,string:W,global:D,unicode:j,done:!1})},C,function(){var V=T(this);if(V.done)return a(void 0,!0);var W=V.regexp,D=V.string,j=I(W,D);return j===null?(V.done=!0,a(void 0,!0)):V.global?(l(j[0])===""&&(W.lastIndex=w(D,c(W.lastIndex),V.unicode)),a(j,!1)):(V.done=!0,a(j,!1))}),U=function(V){var W,D,j,N=f(this),nt=l(V),wt=x(N,RegExp),lt=l(g(N));return W=new wt(wt===RegExp?N.source:N,lt),D=!!~q(lt,"g"),j=!!~q(lt,"u"),W.lastIndex=c(N.lastIndex),new H(W,nt,D,j)};e({target:"String",proto:!0,forced:Y},{matchAll:function(V){var W,D,j,N,nt=u(this);if(v(V)){if(p(V)&&(W=l(u(g(V))),!~q(W,"g")))throw new tt("`.matchAll` does not allow non-global regexes");if(Y)return _(nt,V);if((j=h(V,P))===void 0&&E&&d(V)==="RegExp"&&(j=U),j)return n(j,V,nt)}else if(Y)return _(nt,V);return D=l(nt),N=new RegExp(V,"g"),E?n(U,N,D):N[P](D)}}),E||P in A||y(A,P,U)},8551:function(i,s,t){var e=t(34),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not an object")}},8598:function(i,s,t){var e=t(6518),n=t(9504),r=t(7055),o=t(5397),a=t(4598),u=n([].join);e({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(c){return u(o(this),c===void 0?",":c)}})},8622:function(i,s,t){var e=t(4576),n=t(4901),r=e.WeakMap;i.exports=n(r)&&/native code/.test(String(r))},8686:function(i,s,t){var e=t(3724),n=t(9039);i.exports=e&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},8706:function(i,s,t){var e=t(6518),n=t(9039),r=t(4376),o=t(34),a=t(8981),u=t(6198),c=t(6837),l=t(4659),f=t(1469),v=t(597),d=t(8227),p=t(9519),g=d("isConcatSpreadable"),h=p>=51||!n(function(){var m=[];return m[g]=!1,m.concat()[0]!==m}),y=function(m){if(!o(m))return!1;var b=m[g];return b!==void 0?!!b:r(m)};e({target:"Array",proto:!0,arity:1,forced:!h||!v("concat")},{concat:function(m){var b,x,w,I,k,E=a(this),P=f(E,0),C=0;for(b=-1,w=arguments.length;b<w;b++)if(y(k=b===-1?E:arguments[b]))for(I=u(k),c(C+I),x=0;x<I;x++,C++)x in k&&l(P,C,k[x]);else c(C+1),l(P,C++,k);return P.length=C,P}})},8727:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(i,s,t){var e=t(616),n=Function.prototype,r=n.apply,o=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(r):function(){return o.apply(r,arguments)})},8773:function(i,s){var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);s.f=n?function(r){var o=e(this,r);return!!o&&o.enumerable}:t},8781:function(i,s,t){var e=t(350).PROPER,n=t(6840),r=t(8551),o=t(655),a=t(9039),u=t(1034),c="toString",l=RegExp.prototype,f=l[c],v=a(function(){return f.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&f.name!==c;(v||d)&&n(l,c,function(){var p=r(this);return"/"+o(p.source)+"/"+o(u(p))},{unsafe:!0})},8814:function(i,s,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})},8981:function(i,s,t){var e=t(7750),n=Object;i.exports=function(r){return n(e(r))}},9039:function(i){i.exports=function(s){try{return!!s()}catch{return!0}}},9085:function(i,s,t){var e=t(6518),n=t(4213);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},9167:function(i,s,t){var e=t(4576);i.exports=e},9213:function(i,s,t){var e=t(6080),n=t(9504),r=t(7055),o=t(8981),a=t(6198),u=t(1469),c=n([].push),l=function(f){var v=f===1,d=f===2,p=f===3,g=f===4,h=f===6,y=f===7,m=f===5||h;return function(b,x,w,I){for(var k,E,P=o(b),C=r(P),O=a(C),M=e(x,w),T=0,A=I||u,tt=v?A(b,O):d||y?A(b,0):void 0;O>T;T++)if((m||T in C)&&(E=M(k=C[T],T,P),f))if(v)tt[T]=E;else if(E)switch(f){case 3:return!0;case 5:return k;case 6:return T;case 2:c(tt,k)}else switch(f){case 4:return!1;case 7:c(tt,k)}return h?-1:p||g?g:tt}};i.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9228:function(i,s,t){t(7495);var e=t(9565),n=t(6840),r=t(7323),o=t(9039),a=t(8227),u=t(6699),c=a("species"),l=RegExp.prototype;i.exports=function(f,v,d,p){var g=a(f),h=!o(function(){var x={};return x[g]=function(){return 7},""[f](x)!==7}),y=h&&!o(function(){var x=!1,w=/a/;return f==="split"&&((w={}).constructor={},w.constructor[c]=function(){return w},w.flags="",w[g]=/./[g]),w.exec=function(){return x=!0,null},w[g](""),!x});if(!h||!y||d){var m=/./[g],b=v(g,""[f],function(x,w,I,k,E){var P=w.exec;return P===r||P===l.exec?h&&!E?{done:!0,value:e(m,w,I,k)}:{done:!0,value:e(x,I,w,k)}:{done:!1}});n(String.prototype,f,b[0]),n(l,g,b[1])}p&&u(l[g],"sham",!0)}},9296:function(i,s,t){var e=t(4055)("span").classList,n=e&&e.constructor&&e.constructor.prototype;i.exports=n===Object.prototype?void 0:n},9297:function(i,s,t){var e=t(9504),n=t(8981),r=e({}.hasOwnProperty);i.exports=Object.hasOwn||function(o,a){return r(n(o),a)}},9306:function(i,s,t){var e=t(4901),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a function")}},9432:function(i,s,t){var e=t(6518),n=t(8981),r=t(1072);e({target:"Object",stat:!0,forced:t(9039)(function(){r(1)})},{keys:function(o){return r(n(o))}})},9433:function(i,s,t){var e=t(4576),n=Object.defineProperty;i.exports=function(r,o){try{n(e,r,{value:o,configurable:!0,writable:!0})}catch{e[r]=o}return o}},9463:function(i,s,t){var e=t(6518),n=t(3724),r=t(4576),o=t(9504),a=t(9297),u=t(4901),c=t(1625),l=t(655),f=t(2106),v=t(7740),d=r.Symbol,p=d&&d.prototype;if(n&&u(d)&&(!("description"in p)||d().description!==void 0)){var g={},h=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:l(arguments[0]),E=c(p,this)?new d(k):k===void 0?d():d(k);return k===""&&(g[E]=!0),E};v(h,d),h.prototype=p,p.constructor=h;var y=String(d("description detection"))==="Symbol(description detection)",m=o(p.valueOf),b=o(p.toString),x=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),I=o("".slice);f(p,"description",{configurable:!0,get:function(){var k=m(this);if(a(g,k))return"";var E=b(k),P=y?I(E,7,-1):w(E,x,"$1");return P===""?void 0:P}}),e({global:!0,constructor:!0,forced:!0},{Symbol:h})}},9504:function(i,s,t){var e=t(616),n=Function.prototype,r=n.call,o=e&&n.bind.bind(r,r);i.exports=e?o:function(a){return function(){return r.apply(a,arguments)}}},9519:function(i,s,t){var e,n,r=t(4576),o=t(2839),a=r.process,u=r.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(n=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(n=+e[1]),i.exports=n},9539:function(i,s,t){var e=t(9565),n=t(8551),r=t(5966);i.exports=function(o,a,u){var c,l;n(o);try{if(!(c=r(o,"return"))){if(a==="throw")throw u;return u}c=e(c,o)}catch(f){l=!0,c=f}if(a==="throw")throw u;if(l)throw c;return n(c),u}},9565:function(i,s,t){var e=t(616),n=Function.prototype.call;i.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},9572:function(i,s,t){var e=t(9297),n=t(6840),r=t(3640),o=t(8227)("toPrimitive"),a=Date.prototype;e(a,o)||n(a,o,r)},9617:function(i,s,t){var e=t(5397),n=t(5610),r=t(6198),o=function(a){return function(u,c,l){var f=e(u),v=r(f);if(v===0)return!a&&-1;var d,p=n(l,v);if(a&&c!=c){for(;v>p;)if((d=f[p++])!=d)return!0}else for(;v>p;p++)if((a||p in f)&&f[p]===c)return a||p||0;return!a&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},9773:function(i,s,t){var e=t(6518),n=t(4495),r=t(9039),o=t(3717),a=t(8981);e({target:"Object",stat:!0,forced:!n||r(function(){o.f(1)})},{getOwnPropertySymbols:function(u){var c=o.f;return c?c(a(u)):[]}})}},R={};function S(i){var s=R[i];if(s!==void 0)return s.exports;var t=R[i]={exports:{}};return z[i].call(t.exports,t,t.exports,S),t.exports}S.d=function(i,s){for(var t in s)S.o(s,t)&&!S.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:s[t]})},S.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),S.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},S.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var ut={};S.r(ut),S.d(ut,{SimpleKeyboard:function(){return ee},default:function(){return Ct}}),S(5276),S(8598),S(4782),S(4554),S(2010),S(7427),S(6099),S(7495),S(8781),S(5440),S(744),S(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(i){if("Element"in i){var s="classList",t="prototype",e=i.Element[t],n=Object,r=String[t].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[t].indexOf||function(d){for(var p=0,g=this.length;p<g;p++)if(p in this&&this[p]===d)return p;return-1},a=function(d,p){this.name=d,this.code=DOMException[d],this.message=p},u=function(d,p){if(p==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(p))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return o.call(d,p)},c=function(d){for(var p=r.call(d.getAttribute("class")||""),g=p?p.split(/\s+/):[],h=0,y=g.length;h<y;h++)this.push(g[h]);this._updateClassName=function(){d.setAttribute("class",this.toString())}},l=c[t]=[],f=function(){return new c(this)};if(a[t]=Error[t],l.item=function(d){return this[d]||null},l.contains=function(d){return~u(this,d+"")},l.add=function(){var d,p=arguments,g=0,h=p.length,y=!1;do~u(this,d=p[g]+"")||(this.push(d),y=!0);while(++g<h);y&&this._updateClassName()},l.remove=function(){var d,p,g=arguments,h=0,y=g.length,m=!1;do for(p=u(this,d=g[h]+"");~p;)this.splice(p,1),m=!0,p=u(this,d);while(++h<y);m&&this._updateClassName()},l.toggle=function(d,p){var g=this.contains(d),h=g?p!==!0&&"remove":p!==!1&&"add";return h&&this[h](d),p===!0||p===!1?p:!g},l.replace=function(d,p){var g=u(d+"");~g&&(this.splice(g,1,p),this._updateClassName())},l.toString=function(){return this.join(" ")},n.defineProperty){var v={get:f,enumerable:!0,configurable:!0};try{n.defineProperty(e,s,v)}catch(d){d.number!==void 0&&d.number!==-2146823252||(v.enumerable=!1,n.defineProperty(e,s,v))}}else n[t].__defineGetter__&&e.__defineGetter__(s,f)}}(self),function(){var i=document.createElement("_");if(i.classList.add("c1","c2"),!i.classList.contains("c2")){var s=function(e){var n=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(r){var o,a=arguments.length;for(o=0;o<a;o++)r=arguments[o],n.call(this,r)}};s("add"),s("remove")}if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,n){return 1 in arguments&&!this.contains(e)==!n?n:t.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,n){var r=this.toString().split(" "),o=r.indexOf(e+"");~o&&(r=r.slice(o),this.remove.apply(this,r),this.add(n),this.add.apply(this,r.slice(1)))}),i=null}()),S(2675),S(9463),S(2259),S(5700),S(8706),S(2008),S(3418),S(4423),S(3792),S(2062),S(6910),S(739),S(9572),S(2892),S(9085),S(3851),S(1278),S(9432),S(4864),S(1699),S(7764),S(8344),S(3500),S(2953),S(2712),S(2637),S(1480),S(825),S(1761);function Q(i){return function(s){if(Array.isArray(s))return pt(s)}(i)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(i)||B(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(i,s){if(i){if(typeof i=="string")return pt(i,s);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pt(i,s):void 0}}function pt(i,s){(s==null||s>i.length)&&(s=i.length);for(var t=0,e=Array(s);t<s;t++)e[t]=i[t];return e}function mt(i){return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},mt(i)}function Ot(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,It(e.key),e)}}function gt(i,s,t){return(s=It(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function It(i){var s=function(t,e){if(mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return mt(s)=="symbol"?s:s+""}var Pt=function(){return i=function e(n){var r=n.getOptions,o=n.getCaretPosition,a=n.getCaretPositionEnd,u=n.dispatch;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e),gt(this,"getOptions",void 0),gt(this,"getCaretPosition",void 0),gt(this,"getCaretPositionEnd",void 0),gt(this,"dispatch",void 0),gt(this,"maxLengthReached",void 0),gt(this,"isStandardButton",function(c){return c&&!(c[0]==="{"&&c[c.length-1]==="}")}),this.getOptions=r,this.getCaretPosition=o,this.getCaretPositionEnd=a,this.dispatch=u,e.bindMethods(e,this)},s=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&e!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var n=this.getButtonType(e),r=e.replace("{","").replace("}",""),o="";return n!=="standardBtn"&&(o=" hg-button-".concat(r)),"hg-".concat(n).concat(o)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,n){return(n=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),n):n||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,a=arguments.length>4&&arguments[4]!==void 0&&arguments[4],u=this.getOptions(),c=[r,o,a],l=n;return(e==="{bksp}"||e==="{backspace}")&&l.length>0?l=this.removeAt.apply(this,[l].concat(c)):(e==="{delete}"||e==="{forwarddelete}")&&l.length>0?l=this.removeForwardsAt.apply(this,[l].concat(c)):e==="{space}"?l=this.addStringAt.apply(this,[l," "].concat(c)):e!=="{tab}"||typeof u.tabCharOnTab=="boolean"&&u.tabCharOnTab===!1?e!=="{enter}"&&e!=="{numpadenter}"||!u.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?l=this.addStringAt.apply(this,[l,e[e.length-2]].concat(c)):e==="{numpaddivide}"?l=this.addStringAt.apply(this,[l,"/"].concat(c)):e==="{numpadmultiply}"?l=this.addStringAt.apply(this,[l,"*"].concat(c)):e==="{numpadsubtract}"?l=this.addStringAt.apply(this,[l,"-"].concat(c)):e==="{numpadadd}"?l=this.addStringAt.apply(this,[l,"+"].concat(c)):e==="{numpaddecimal}"?l=this.addStringAt.apply(this,[l,"."].concat(c)):e==="{"||e==="}"?l=this.addStringAt.apply(this,[l,e].concat(c)):e.includes("{")||e.includes("}")||(l=this.addStringAt.apply(this,[l,e].concat(c))):l=this.addStringAt.apply(this,[l,`
`].concat(c)):l=this.addStringAt.apply(this,[l,"	"].concat(c)),u.debug&&console.log("Input will be: "+l),l}},{key:"updateCaretPos",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.updateCaretPosAction(e,n);this.dispatch(function(o){o.setCaretPosition(r)})}},{key:"updateCaretPosAction",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.getOptions(),o=this.getCaretPosition();return o!=null&&(n?o>0&&(o-=e):o+=e),r.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e.length,u=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return o||o===0?(r=[e.slice(0,o),n,e.slice(a)].join(""),this.isMaxLengthReached()||u&&this.updateCaretPos(n.length)):r=e+n,r}},{key:"removeAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(r===0&&o===0)return e;if(r===o){var u=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;r&&r>=0?e.substring(r-2,r).match(u)?(n=e.substr(0,r-2)+e.substr(r),a&&this.updateCaretPos(2,!0)):(n=e.substr(0,r-1)+e.substr(r),a&&this.updateCaretPos(1,!0)):e.slice(-2).match(u)?(n=e.slice(0,-2),a&&this.updateCaretPos(2,!0)):(n=e.slice(0,-1),a&&this.updateCaretPos(1,!0))}else n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(c){c.setCaretPosition(r)});return n}},{key:"removeForwardsAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return e!=null&&e.length&&r!==null?(r===o?n=e.substring(r,r+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,r)+e.substr(r+2):e.substr(0,r)+e.substr(r+1):(n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(u){u.setCaretPosition(r)})),n):e}},{key:"handleMaxLength",value:function(e,n){var r=this.getOptions(),o=r.maxLength,a=e[r.inputName||"default"],u=n.length-1>=o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return r.debug&&console.log("maxLength (num) reached:",u),u?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(mt(o)==="object"){var c=n.length-1>=o[r.inputName||"default"];return r.debug&&console.log("maxLength (obj) reached:",c),c?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(n,r){return r.length?n+r[0].toUpperCase()+r.slice(1):n}):""}},{key:"chunkArray",value:function(e,n){return Q(Array(Math.ceil(e.length/n))).map(function(r,o){return e.slice(n*o,n+n*o)})}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,n){var r=e,o=n.indexOf("‫");return o<e&&o!=-1&&r--,n.indexOf("‬")<e&&o!=-1&&r--,r<0?0:r}},{key:"isConstructor",value:function(e){try{Reflect.construct(String,[],e)}catch{return!1}return!0}}],t=[{key:"bindMethods",value:function(e,n){var r,o=function(u,c){var l=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!l){if(Array.isArray(u)||(l=B(u))||c){l&&(u=l);var f=0,v=function(){};return{s:v,n:function(){return f>=u.length?{done:!0}:{done:!1,value:u[f++]}},e:function(h){throw h},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,p=!0,g=!1;return{s:function(){l=l.call(u)},n:function(){var h=l.next();return p=h.done,h},e:function(h){g=!0,d=h},f:function(){try{p||l.return==null||l.return()}finally{if(g)throw d}}}}(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(r=o.n()).done;){var a=r.value;a==="constructor"||a==="bindMethods"||(n[a]=n[a].bind(n))}}catch(u){o.e(u)}finally{o.f()}}}],s&&Ot(i.prototype,s),t&&Ot(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t}();gt(Pt,"noop",function(){});var St=Pt;function Z(i){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Z(i)}function it(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,st(e.key),e)}}function F(i,s,t){return(s=st(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function st(i){var s=function(t,e){if(Z(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Z(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return Z(s)=="symbol"?s:s+""}var dt=function(){return i=function e(n){var r=this,o=n.dispatch,a=n.getOptions;(function(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e),F(this,"getOptions",void 0),F(this,"dispatch",void 0),F(this,"isModifierKey",function(u){return u.altKey||u.ctrlKey||u.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(u.code||u.key||r.keyCodeToKey(u==null?void 0:u.keyCode))}),this.dispatch=o,this.getOptions=a,St.bindMethods(e,this)},s=[{key:"handleHighlightKeyDown",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,u,c=o.getButtonElement(r),l=o.getButtonElement("{".concat(r,"}"));if(c)a=c,u=r;else{if(!l)return;a=l,u="{".concat(r,"}")}var f,v,d,p,g=function(y){y.style.background=n.physicalKeyboardHighlightBgColor||"#dadce4",y.style.color=n.physicalKeyboardHighlightTextColor||"black"};if(a)if(Array.isArray(a)){if(a.forEach(function(y){return g(y)}),n.physicalKeyboardHighlightPress)if(n.physicalKeyboardHighlightPressUsePointerEvents)(f=a[0])===null||f===void 0||(v=f.onpointerdown)===null||v===void 0||v.call(f,e);else if(n.physicalKeyboardHighlightPressUseClick){var h;(h=a[0])===null||h===void 0||h.click()}else o.handleButtonClicked(u,e)}else g(a),n.physicalKeyboardHighlightPress&&(n.physicalKeyboardHighlightPressUsePointerEvents?(d=a)===null||d===void 0||(p=d.onpointerdown)===null||p===void 0||p.call(d,e):n.physicalKeyboardHighlightPressUseClick?a.click():o.handleButtonClicked(u,e))})}},{key:"handleHighlightKeyUp",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,u,c,l=o.getButtonElement(r)||o.getButtonElement("{".concat(r,"}")),f=function(v){v.removeAttribute&&v.removeAttribute("style")};l&&(Array.isArray(l)?(l.forEach(function(v){return f(v)}),n.physicalKeyboardHighlightPressUsePointerEvents&&((a=l[0])===null||a===void 0||(u=a.onpointerup)===null||u===void 0||u.call(a,e))):(f(l),n.physicalKeyboardHighlightPressUsePointerEvents&&(l==null||(c=l.onpointerup)===null||c===void 0||c.call(l,e))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var n,r="",o=e.code||e.key||this.keyCodeToKey(e==null?void 0:e.keyCode);return(r=o!=null&&o.includes("Numpad")||o!=null&&o.includes("Shift")||o!=null&&o.includes("Space")||o!=null&&o.includes("Backspace")||o!=null&&o.includes("Control")||o!=null&&o.includes("Alt")||o!=null&&o.includes("Meta")?e.code||"":e.key||this.keyCodeToKey(e==null?void 0:e.keyCode)||"").length>1?(n=r)===null||n===void 0?void 0:n.toLowerCase():r}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}],s&&it(i.prototype,s),t&&it(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t}();function vt(i){return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},vt(i)}function Mt(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,yt(e.key),e)}}function Kt(i,s,t){return(s=yt(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function yt(i){var s=function(t,e){if(vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return vt(s)=="symbol"?s:s+""}var Vt=function(){return i=function e(n){var r=n.utilities,o=n.options;(function(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),Kt(this,"utilities",void 0),Kt(this,"options",void 0),Kt(this,"candidateBoxElement",void 0),Kt(this,"pageIndex",0),Kt(this,"pageSize",void 0),this.utilities=r,this.options=o,St.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},s=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var n=this,r=e.candidateValue,o=e.targetElement,a=e.onSelect;if(r&&r.length){var u=this.utilities.chunkArray(r.split(" "),this.pageSize);this.renderPage({candidateListPages:u,targetElement:o,pageIndex:this.pageIndex,nbPages:u.length,onItemSelected:function(c,l){a(c,l),n.destroy()}})}}},{key:"renderPage",value:function(e){var n,r=this,o=e.candidateListPages,a=e.targetElement,u=e.pageIndex,c=e.nbPages,l=e.onItemSelected;(n=this.candidateBoxElement)===null||n===void 0||n.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var f=document.createElement("ul");f.className="hg-candidate-box-list",o[u].forEach(function(m){var b,x=document.createElement("li"),w=function(){var I=new(r.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(I,"target",{value:x}),I};x.className="hg-candidate-box-list-item",x.innerHTML=((b=r.options.display)===null||b===void 0?void 0:b[m])||m,r.options.useTouchEvents?x.ontouchstart=function(I){return l(m,I||w())}:x.onclick=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w();return l(m,I)},f.appendChild(x)});var v=u>0,d=document.createElement("div");d.classList.add("hg-candidate-box-prev"),v&&d.classList.add("hg-candidate-box-btn-active");var p=function(){v&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:u-1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?d.ontouchstart=p:d.onclick=p,this.candidateBoxElement.appendChild(d),this.candidateBoxElement.appendChild(f);var g=u<c-1,h=document.createElement("div");h.classList.add("hg-candidate-box-next"),g&&h.classList.add("hg-candidate-box-btn-active");var y=function(){g&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:u+1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?h.ontouchstart=y:h.onclick=y,this.candidateBoxElement.appendChild(h),a.prepend(this.candidateBoxElement)}}],s&&Mt(i.prototype,s),t&&Mt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t}(),Ut=Vt;function Gt(i){return function(s){if(Array.isArray(s))return bt(s)}(i)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(i)||function(s,t){if(s){if(typeof s=="string")return bt(s,t);var e={}.toString.call(s).slice(8,-1);return e==="Object"&&s.constructor&&(e=s.constructor.name),e==="Map"||e==="Set"?Array.from(s):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?bt(s,t):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function bt(i,s){(s==null||s>i.length)&&(s=i.length);for(var t=0,e=Array(s);t<s;t++)e[t]=i[t];return e}function Dt(i){return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Dt(i)}function Wt(i,s){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);s&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,e)}return t}function et(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Lt(e.key),e)}}function L(i,s,t){return(s=Lt(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function Lt(i){var s=function(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return Dt(s)=="symbol"?s:s+""}var Jt=function(){return i=function e(n,r){var o=this;if(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,e),L(this,"input",void 0),L(this,"options",void 0),L(this,"utilities",void 0),L(this,"caretPosition",void 0),L(this,"caretPositionEnd",void 0),L(this,"keyboardDOM",void 0),L(this,"keyboardPluginClasses",void 0),L(this,"keyboardDOMClass",void 0),L(this,"buttonElements",void 0),L(this,"currentInstanceName",void 0),L(this,"allKeyboardInstances",void 0),L(this,"keyboardInstanceNames",void 0),L(this,"isFirstKeyboardInstance",void 0),L(this,"physicalKeyboard",void 0),L(this,"modules",void 0),L(this,"activeButtonClass",void 0),L(this,"holdInteractionTimeout",void 0),L(this,"holdTimeout",void 0),L(this,"isMouseHold",void 0),L(this,"initialized",void 0),L(this,"candidateBox",void 0),L(this,"keyboardRowsDOM",void 0),L(this,"defaultName","default"),L(this,"activeInputElement",null),L(this,"handleParams",function(p,g){var h,y,m;if(typeof p=="string")h=p.split(".").join(""),y=document.querySelector(".".concat(h)),m=g;else if(p instanceof HTMLDivElement){if(!p.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");h=p.className.split(" ")[0],y=p,m=g}else h="simple-keyboard",y=document.querySelector(".".concat(h)),m=p;return{keyboardDOMClass:h,keyboardDOM:y,options:m}}),L(this,"getOptions",function(){return o.options}),L(this,"getCaretPosition",function(){return o.caretPosition}),L(this,"getCaretPositionEnd",function(){return o.caretPositionEnd}),L(this,"registerModule",function(p,g){o.modules[p]||(o.modules[p]={}),g(o.modules[p])}),L(this,"getKeyboardClassString",function(){for(var p=arguments.length,g=new Array(p),h=0;h<p;h++)g[h]=arguments[h];return[o.keyboardDOMClass].concat(g).filter(function(y){return!!y}).join(" ")}),typeof window<"u"){var a=this.handleParams(n,r),u=a.keyboardDOMClass,c=a.keyboardDOM,l=a.options,f=l===void 0?{}:l;this.utilities=new St({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=c,this.options=function(p){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?Wt(Object(h),!0).forEach(function(y){L(p,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(h)):Wt(Object(h)).forEach(function(y){Object.defineProperty(p,y,Object.getOwnPropertyDescriptor(h,y))})}return p}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},f),this.keyboardPluginClasses="",St.bindMethods(e,this);var v=this.options.inputName,d=v===void 0?this.defaultName:v;if(this.input={},this.input[d]="",this.keyboardDOMClass=u,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new dt({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new Ut({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(u,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},s=[{key:"setCaretPosition",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=n}},{key:"getInputCandidates",value:function(e){var n=this,r=this.options,o=r.layoutCandidates,a=r.layoutCandidatesCaseSensitiveMatch;if(!o||Dt(o)!=="object")return{};var u=Object.keys(o).filter(function(f){var v=e.substring(0,n.getCaretPositionEnd()||0)||e,d=new RegExp("".concat(n.utilities.escapeRegex(f),"$"),a?"g":"gi");return!!Gt(v.matchAll(d)).length});if(u.length>1){var c=u.sort(function(f,v){return v.length-f.length})[0];return{candidateKey:c,candidateValue:o[c]}}if(u.length){var l=u[0];return{candidateKey:l,candidateValue:o[l]}}return{}}},{key:"showCandidatesBox",value:function(e,n,r){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:n,targetElement:r,onSelect:function(a,u){var c=o.options,l=c.layoutCandidatesCaseSensitiveMatch,f=c.disableCandidateNormalization,v=c.enableLayoutCandidatesKeyPress,d=a;f||(d=a.normalize("NFD")),typeof o.options.beforeInputUpdate=="function"&&o.options.beforeInputUpdate(o);var p=o.getInput(o.options.inputName,!0),g=o.getCaretPositionEnd()||0,h=p.substring(0,g||0)||p,y=new RegExp("".concat(o.utilities.escapeRegex(e),"$"),l?"g":"gi"),m=h.replace(y,d),b=p.replace(h,m),x=m.length-h.length,w=(g||p.length)+x;w<0&&(w=0),o.setInput(b,o.options.inputName,!0),o.setCaretPosition(w),v&&typeof o.options.onKeyPress=="function"&&o.options.onKeyPress(a,u),typeof o.options.onChange=="function"&&o.options.onChange(o.getInput(o.options.inputName,!0),u),typeof o.options.onChangeAll=="function"&&o.options.onChangeAll(o.getAllInputs(),u)}})}},{key:"handleButtonClicked",value:function(e,n){var r=this.options,o=r.inputName,a=o===void 0?this.defaultName:o,u=r.debug;if(e!=="{//}"){this.input[a]||(this.input[a]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var c=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[a]&&this.input[a]===c&&this.caretPosition===0&&this.caretPositionEnd===c.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,n);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(e,n),this.input[a]!==c&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(c))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,c))return;var l=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(l,this.options.inputName,!0),u&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),n==null?void 0:n.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),n),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),n),n!=null&&n.target&&this.options.enableLayoutCandidates){var f,v=this.getInputCandidates(c),d=v.candidateKey,p=v.candidateValue;d&&p?this.showCandidatesBox(d,p,this.keyboardDOM):(f=this.candidateBox)===null||f===void 0||f.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),u&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch(function(n){n.isMouseHold=e}):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,n){var r=this;n&&(this.options.preventMouseDownDefault&&n.preventDefault(),this.options.stopMouseDownPropagation&&n.stopPropagation(),n.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(r.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||e==="{delete}"||e==="{backspace}"||e==="{bksp}"||e==="{space}"||e==="{tab}")||e==="{arrowright}"||e==="{arrowleft}"||e==="{arrowup}"||e==="{arrowdown}")&&(r.options.debug&&console.log("Button held:",e),r.handleButtonHold(e)),clearTimeout(r.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(e,n){var r=this;n&&(this.options.preventMouseUpDefault&&n.preventDefault&&n.preventDefault(),this.options.stopMouseUpPropagation&&n.stopPropagation&&n.stopPropagation(),!(n.target===this.keyboardDOM||n.target&&this.keyboardDOM.contains(n.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(n.target===this.candidateBox.candidateBoxElement||n.target&&this.candidateBox.candidateBoxElement.contains(n.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(o){o.classList.remove(r.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(e,n)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var n=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){n.getMouseHold()?(n.handleButtonClicked(e),n.handleButtonHold(e)):clearTimeout(n.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch(function(n){n.replaceInput(e.input),n.setCaretPosition(e.caretPosition,e.caretPositionEnd)})}},{key:"clearInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!n&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,n={};return Object.keys(this.input).forEach(function(r){n[r]=e.getInput(r,!0)}),n}},{key:"setInput",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,r=arguments.length>2?arguments[2]:void 0;this.input[n]=e,!r&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=this.changedOptions(e);this.options=Object.assign(this.options,e),n.length&&(this.options.debug&&console.log("changedOptions",n),this.onSetOptions(n),this.render())}},{key:"changedOptions",value:function(e){var n=this;return Object.keys(e).filter(function(r){return JSON.stringify(e[r])!==JSON.stringify(n.options[r])})}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new Ut({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(n){e(window.SimpleKeyboardInstances[n],n)})}},{key:"addButtonTheme",value:function(e,n){var r=this;n&&e&&(e.split(" ").forEach(function(o){n.split(" ").forEach(function(a){r.options.buttonTheme||(r.options.buttonTheme=[]);var u=!1;r.options.buttonTheme.map(function(c){if(c!=null&&c.class.split(" ").includes(a)){u=!0;var l=c.buttons.split(" ");l.includes(o)||(u=!0,l.push(o),c.buttons=l.join(" "))}return c}),u||r.options.buttonTheme.push({class:a,buttons:e})})}),this.render())}},{key:"removeButtonTheme",value:function(e,n){var r=this;if(!e&&!n)return this.options.buttonTheme=[],void this.render();e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach(function(o){var a;(a=r.options)===null||a===void 0||(a=a.buttonTheme)===null||a===void 0||a.map(function(u,c){if(u&&n&&n.includes(u.class)||!n){var l,f,v=(l=u)===null||l===void 0?void 0:l.buttons.split(" ").filter(function(d){return d!==o});u&&v!=null&&v.length?u.buttons=v.join(" "):((f=r.options.buttonTheme)===null||f===void 0||f.splice(c,1),u=null)}return u})}),this.render())}},{key:"getButtonElement",value:function(e){var n,r=this.buttonElements[e];return r&&(n=r.length>1?r:r[0]),n}},{key:"inputPatternIsValid",value:function(e){var n,r=this.options.inputPattern;if((n=r instanceof RegExp?r:r[this.options.inputName||this.defaultName])&&e){var o=n.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(n,'"): ').concat(o?"passed":"did not pass!")),o}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.addEventListener("keyup",this.handleKeyUp,n),document.addEventListener("keydown",this.handleKeyDown,n),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var n,r=this;e.target.tagName&&(n=e.target.tagName.toLowerCase()),this.dispatch(function(o){var a=e.target===o.keyboardDOM||e.target&&o.keyboardDOM.contains(e.target);if(r.options.syncInstanceInputs&&Array.isArray(e.path)&&(a=e.path.some(function(l){var f;return l==null||(f=l.hasAttribute)===null||f===void 0?void 0:f.call(l,"data-skInstance")})),(n==="textarea"||n==="input"&&["text","search","url","tel","password"].includes(e.target.type))&&!o.options.disableCaretPositioning){var u=e.target.selectionStart,c=e.target.selectionEnd;o.options.rtl&&(u=o.utilities.getRtlOffset(u,o.getInput()),c=o.utilities.getRtlOffset(c,o.getInput())),o.setCaretPosition(u,c),o.activeInputElement=e.target,o.options.debug&&console.log("Caret at: ",o.getCaretPosition(),o.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(o.keyboardDOMClass,")"),e==null?void 0:e.type)}else!o.options.disableCaretPositioning&&a||(e==null?void 0:e.type)==="selectionchange"||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(e==null?void 0:e.type,'" event'),e))})}},{key:"recurseButtons",value:function(e){var n=this;e&&Object.keys(this.buttonElements).forEach(function(r){return n.buttonElements[r].forEach(e)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.removeEventListener("keyup",this.handleKeyUp,n),document.removeEventListener("keydown",this.handleKeyDown,n),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(r){r&&(r.onpointerdown=null,r.onpointerup=null,r.onpointercancel=null,r.ontouchstart=null,r.ontouchend=null,r.ontouchcancel=null,r.onclick=null,r.onmousedown=null,r.onmouseup=null,r.remove(),r=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var n=this.options.buttonTheme,r=[];return Array.isArray(n)&&n.forEach(function(o){if(o&&o.class&&typeof o.class=="string"&&o.buttons&&typeof o.buttons=="string"){var a=o.class.split(" ");o.buttons.split(" ").includes(e)&&(r=[].concat(Gt(r),Gt(a)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',o)}),r}},{key:"setDOMButtonAttributes",value:function(e,n){var r=this.options.buttonAttributes;Array.isArray(r)&&r.forEach(function(o){o.attribute&&typeof o.attribute=="string"&&o.value&&typeof o.value=="string"&&o.buttons&&typeof o.buttons=="string"?o.buttons.split(" ").includes(e)&&n(o.attribute,o.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',o)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){var n;if((n=e.target.classList)!==null&&n!==void 0&&n.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(n){var r=e.utilities.isConstructor(n)?new n(e):n(e);r.init&&r.init(e)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,n){return!!this.modules[e]&&this.modules[e][n]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,n,r,o){var a=this,u=Array.from(e.children),c=0;return u.length&&r.forEach(function(l,f){var v=o[f];if(!(v&&v>l))return!1;var d=l-c,p=v-c,g=document.createElement("div");g.className+="hg-button-container";var h="".concat(a.options.layoutName,"-r").concat(n,"c").concat(f);g.setAttribute("data-skUID",h);var y=u.splice(d,p-d+1);c+=p-d,y.forEach(function(m){return g.appendChild(m)}),u.splice(d,0,g),e.innerHTML="",u.forEach(function(m){return e.appendChild(m)}),a.options.debug&&console.log("rowDOMContainer",y,d,p,c+1)}),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var n="hg-layout-".concat(this.options.layoutName),r=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},o=this.options.useTouchEvents||!1,a=o?"hg-touch-events":"",u=this.options.useMouseEvents||!1,c=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,n,this.keyboardPluginClasses,a),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",r[this.options.layoutName||this.defaultName].forEach(function(l,f){var v=l.split(" ");e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(v=v.filter(function(h){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(h)}));var d=document.createElement("div");d.className+="hg-row";var p=[],g=[];v.forEach(function(h,y){var m,b=!c&&typeof h=="string"&&h.length>1&&h.indexOf("[")===0,x=!c&&typeof h=="string"&&h.length>1&&h.indexOf("]")===h.length-1;b&&(p.push(y),h=h.replace(/\[/g,"")),x&&(g.push(y),h=h.replace(/\]/g,""));var w=e.utilities.getButtonClass(h),I=e.utilities.getButtonDisplayName(h,e.options.display,e.options.mergeDisplay),k=e.options.useButtonTag?"button":"div",E=document.createElement(k);E.className+="hg-button ".concat(w),(m=E.classList).add.apply(m,Gt(e.getButtonThemeClasses(h))),e.setDOMButtonAttributes(h,function(O,M){E.setAttribute(O,M)}),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||o||u?o?(E.ontouchstart=function(O){e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.ontouchend=function(O){e.handleButtonMouseUp(h,O)},E.ontouchcancel=function(O){e.handleButtonMouseUp(h,O)}):(E.onclick=function(O){e.setMouseHold(!1),typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(h,O)},E.onmousedown=function(O){(typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.onmouseup=function(O){e.handleButtonMouseUp(h,O)}):(E.onpointerdown=function(O){e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.onpointerup=function(O){e.handleButtonMouseUp(h,O)},E.onpointercancel=function(O){e.handleButtonMouseUp(h,O)}),E.setAttribute("data-skBtn",h);var P="".concat(e.options.layoutName,"-r").concat(f,"b").concat(y);E.setAttribute("data-skBtnUID",P);var C=document.createElement("span");C.innerHTML=I,E.appendChild(C),e.buttonElements[h]||(e.buttonElements[h]=[]),e.buttonElements[h].push(E),d.appendChild(E)}),d=e.parseRowDOMContainers(d,f,p,g),e.keyboardRowsDOM.appendChild(d)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||u?o?(document.ontouchend=function(l){return e.handleButtonMouseUp(void 0,l)},document.ontouchcancel=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.ontouchstart=function(l){return e.handleKeyboardContainerMouseDown(l)}):o||(document.onmouseup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onmousedown=function(l){return e.handleKeyboardContainerMouseDown(l)}):(document.onpointerup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onpointerdown=function(l){return e.handleKeyboardContainerMouseDown(l)}),this.onInit())}}],s&&et(i.prototype,s),t&&et(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t}(),ee=Jt,Ct=ee;return ut}()})}(we)),we.exports}var Mn=_n();const Dn=Tn(Mn);var Nn=Ft('<div class="keyboard-wrapper fixed left-0 w-full z-50 transition-transform svelte-1u10jz3"><div class="drag-bar rounded-t-lg relative flex items-center justify-center px-4 bg-base-300 cursor-grab select-none svelte-1u10jz3"><!> <div class="flex items-center justify-between"><button type="button" class="absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-base-200 rounded text-primary hover:text-error" aria-label="Close"><!></button></div></div> <div class="w-full h-full"></div></div>');function jn($,K){ve(K,!0);let z=en(K,"language",3,"no"),R,S,ut,Q,B=null,pt=te(0),mt=te(!1),Ot=0,gt=0,It=!1,Pt=!1,St=!1,Z=!1,it=!1;const F=80;function st(et){if(!It||!S)return;const L=S.offsetHeight,Lt=window.innerHeight,Jt=et.clientY-gt,ee=0,Ct=Lt-L;Ot=Math.min(Math.max(Jt,ee),Ct),S.style.top=`${Ot}px`}function dt(et){It=!1,S.releasePointerCapture(et.pointerId)}Te(()=>{Q&&vt[z()]&&Q.setOptions({...vt[z()].layout,display:vt[z()].display})});const vt={no:{layout:{default:["1 2 3 4 5 6 7 8 9 0 +","q w e r t y u i o p å","a s d f g h j k l ø æ @","{shift} z x c v b n m , . - {bksp}","{alt} {space} .com {enter}"],shift:["1 2 3 4 5 6 7 8 9 0 +","Q W E R T Y U I O P Å","A S D F G H J K L Ø Æ @","{shift} Z X C V B N M , . - {bksp}","{alt} {space} .com {enter}"],alt:["1 2 3 4 5 6 7 8 9 0 ° ℃ ℉",`§ < > @ # € $ & * ( ) ' "`,"% _ - + = / ; : ! ? {bksp}","{default} {space} .com {enter}"]},display:{"{bksp}":"⌫","{enter}":"↵","{space}":"␣","{shift}":"⇧","{alt}":".?123","{default}":"ABC"}},en:{layout:{default:["1 2 3 4 5 6 7 8 9 0 - =","q w e r t y u i o p [ ]","a s d f g h j k l ; ' \\","{shift} z x c v b n m , . / {bksp}","{alt} {space} .com {enter}"],shift:["! @ # $ % ^ & * ( ) _ +","Q W E R T Y U I O P { }",'A S D F G H J K L : " |',"{shift} Z X C V B N M < > ? {bksp}","{alt} {space} .com {enter}"],alt:["1 2 3 4 5 6 7 8 9 0 ° ℃ ℉","© ™ € £ ¥ ¢ § ¶ † ‡ ¤","← ↑ → ↓ • ± × ÷ ≠ ∞ {bksp}","{default} {space} .com {enter}"]},display:{"{bksp}":"⌫","{enter}":"↵","{space}":"␣","{shift}":"⇧","{alt}":".?123","{default}":"ABC"}},de:{layout:{default:["^ 1 2 3 4 5 6 7 8 9 0 ß","q w e r t z u i o p ü +","a s d f g h j k l ö ä #","{shift} y x c v b n m , . - {bksp}","{alt} {space} .com {enter}"],shift:['° ! " § $ % & / ( ) = ?',"Q W E R T Z U I O P Ü *","A S D F G H J K L Ö Ä '","{shift} Y X C V B N M ; : _ {bksp}","{alt} {space} .com {enter}"],alt:["@ € µ £ ¥ ¢ ‰ ¤ † ‡ ±","| ~ ` ´ × ÷ ∞ ≠ ≈ « »","← ↑ → ↓ • √ ∫ ∂ ∆ {bksp}","{default} {space} .com {enter}"]}}};Ee(()=>{R&&S&&ut&&(window.addEventListener("focusin",et=>{const L=et.target;if(L instanceof HTMLInputElement||L instanceof HTMLTextAreaElement){if(L.type==="checkbox")return;L!==B&&(B=L,_t(mt,!0),Kt(L))}}),window.addEventListener("focusout",et=>{et.target===B&&setTimeout(()=>{var L,Lt;if(Pt||it){Pt=!1;return}((L=document.activeElement)==null?void 0:L.tagName)!=="INPUT"&&((Lt=document.activeElement)==null?void 0:Lt.tagName)!=="TEXTAREA"&&S!=null&&S!=null&&(_t(mt,!1),S.style.top="9999px",B=null)},50)}),window.addEventListener("virtual-keypress",()=>{setTimeout(()=>!1,50)}),ut.addEventListener("pointerdown",et=>{et.target.closest("button")||(et.preventDefault(),It=!0,gt=et.clientY-Ot-(St?F:0),S.setPointerCapture(et.pointerId),St=!1)}),S.addEventListener("mousedown",()=>{Pt=!0,setTimeout(()=>Pt=!1,1e3)}),Q=new Dn(R,{layout:vt[z()].layout,display:vt[z()].display,buttonTheme:[{class:"hg-button-medium",buttons:"{enter} {shift} {alt} {default}"},{class:"hg-button-big",buttons:"{bksp}"}],onKeyPress:et=>{Z=!0,setTimeout(()=>{if(B!=null){switch(et!=="{enter}"&&window.dispatchEvent(new CustomEvent("virtual-keypress")),et){case"{bksp}":B.value=B.value.slice(0,-1);break;case"{space}":B.value+=" ";break;case"{enter}":B.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"})),B.dispatchEvent(new KeyboardEvent("keyup",{key:"Enter"}));break;case"{shift}":_t(pt,(ft(pt)+1)%3),Q.setOptions({layoutName:ft(pt)>0?"shift":"default"}),Mt();break;case"{default}":it=!0,setTimeout(()=>{B&&document.activeElement!==B&&B.focus(),setTimeout(()=>{it=!1},500)},0),ft(pt)>0?Q.setOptions({layoutName:"shift"}):Q.setOptions({layoutName:"default"});break;case"{alt}":it=!0,setTimeout(()=>{B&&document.activeElement!==B&&B.focus(),setTimeout(()=>{it=!1},500)},0),Q.setOptions({layoutName:"alt"});break;default:B.value+=et,ft(pt)===1&&!et.startsWith("{")&&(_t(pt,0),Q.setOptions({layoutName:"default"}),Mt());break}setTimeout(()=>{Z&&B&&document.activeElement!==B&&B.focus(),Z=!1},0),B.dispatchEvent(new Event("input",{bubbles:!0}))}})}}))});function Mt(){Q.removeButtonTheme("{shift}","shift");let et="⇧";ft(pt)===1?(et="⇧̲",Q.addButtonTheme("{shift}","shift")):ft(pt)===2&&(et="⇪",Q.addButtonTheme("{shift}","shift")),Q.setOptions({display:{...Q.options.display,"{shift}":et}})}function Kt(et){if(!S)return;const L=et.getBoundingClientRect(),Lt=S.offsetHeight||260,Jt=window.innerHeight,ee=Jt-L.bottom,Ct=L.top;let i;ee>=Lt+F?i=L.bottom:Ct>=Lt+F?i=0:i=Jt-Lt,Ot=Math.max(0,Math.min(i,Jt-Lt)),S.style.transition="top 0.2s ease",S.style.top=`${Ot+F}px`,setTimeout(()=>S.style.transition="",100),St=!0}var yt=Nn();yt.__pointermove=st,yt.__pointerup=dt;var Vt=X(yt),Ut=X(Vt);sn(Ut,{class:"w-4 h-4 text-base-content opacity-70"});var Gt=ht(Ut,2),bt=X(Gt);bt.__click=()=>{_t(mt,!1),S.style.top="9999px",B==null||B.blur(),B=null};var Dt=X(bt);rn(Dt,{class:"w-5 h-5"}),J(bt),J(Gt),J(Vt),Ce(Vt,et=>ut=et,()=>ut);var Wt=ht(Vt,2);Ce(Wt,et=>R=et,()=>R),J(yt),Ce(yt,et=>S=et,()=>S),kt($,yt),ge()}he(["pointermove","pointerup","click"]);var Ln=Ft('<!> <main class="flex-growp-0 me-5 lg:me-0"><!></main>',1),Rn=Ft('<main class="flex-grow me-5 lg:me-0"><!></main>'),Bn=Ft("<a> </a>"),Fn=Ft('<div class="app flex flex-col min-h-screen"><!> <!> <!></div> <div style="display: none"></div>',1);function ar($,K){ve(K,!0);const z=new Be(["Users/+/Username"]),R=new Be(["Users/+/Theme"]);let S=te(!1);Ee(async()=>{const Z=localStorage.getItem("theme"),it="dark";Z?document.documentElement.setAttribute("data-theme",Z):(document.documentElement.setAttribute("data-theme",it),localStorage.setItem("theme",it)),await ut();const F=()=>{_t(S,!0),window.removeEventListener("touchstart",F)};window.addEventListener("touchstart",F,{passive:!0})});async function ut(){const{jsPDF:Z}=await Pe(async()=>{const{jsPDF:F}=await import("./D-nC9WGk.js").then(st=>st.j);return{jsPDF:F}},__vite__mapDeps([0,1]),import.meta.url);await Pe(()=>import("./BV9gqN9y.js").then(F=>F.j),__vite__mapDeps([2,0,1]),import.meta.url);const it=await Pe(()=>import("./DkH2s96g.js"),[],import.meta.url);window.jspdf=Z,window.XLSX=it}Te(()=>{if(de.username!==""){const Z=z.getData();for(const[it,F]of Object.entries(Z)){const st=it.split("/");if(F===de.username&&st.length===3){const dt=parseInt(st[1]);if(!dt)continue;de.updateUserId(dt)}}}}),Te(()=>{if(de.userId!==0){const Z=R.getData();for(const[it,F]of Object.entries(Z)){const st=it.split("/");st.length===3&&parseInt(st[1])===de.userId&&(document.documentElement.setAttribute("data-theme",F),localStorage.setItem("theme",F),ye.update())}}});var Q=Fn(),B=re(Q),pt=X(B);{var mt=Z=>{var it=Ln(),F=re(it);wn(F,{});var st=ht(F,2),dt=X(st);on(dt,()=>K.children),J(st),kt(Z,it)},Ot=Z=>{var it=Rn(),F=X(it);Cn(F,{}),J(it),kt(Z,it)};be(pt,Z=>{De.isLoggedIn?Z(mt):Z(Ot,!1)})}var gt=ht(pt,2);En(gt,{});var It=ht(gt,2);{var Pt=Z=>{jn(Z,{})};be(It,Z=>{ft(S)&&Z(Pt)})}J(B);var St=ht(B,2);Ae(St,21,()=>Xe,Me,(Z,it)=>{var F=Bn(),st=X(F,!0);J(F),le(dt=>{_e(F,"href",dt),ce(st,ft(it))},[()=>qe(pe.url.pathname,{locale:ft(it)})]),kt(Z,F)}),J(St),kt($,Q),ge()}export{rr as _,Tn as a,ar as b,or as c,ir as g};
