ambient-display 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/build/client/_app/immutable/chunks/-6v_nyr3.js +5 -0
  2. package/build/client/_app/immutable/chunks/-6v_nyr3.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/-6v_nyr3.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/C7I4vMbc.js +1 -0
  5. package/build/client/_app/immutable/chunks/C7I4vMbc.js.br +2 -0
  6. package/build/client/_app/immutable/chunks/C7I4vMbc.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/CDVeMiAl.js +1 -0
  8. package/build/client/_app/immutable/chunks/CDVeMiAl.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/CDVeMiAl.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/CvUX3i4L.js +1 -0
  11. package/build/client/_app/immutable/chunks/CvUX3i4L.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/CvUX3i4L.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/D1JCCJf3.js +4 -0
  14. package/build/client/_app/immutable/chunks/D1JCCJf3.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/D1JCCJf3.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/DGTGMr-5.js +2 -0
  17. package/build/client/_app/immutable/chunks/DGTGMr-5.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/DGTGMr-5.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/DnG2xkSB.js +1 -0
  20. package/build/client/_app/immutable/chunks/DnG2xkSB.js.br +2 -0
  21. package/build/client/_app/immutable/chunks/DnG2xkSB.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/EvVuwjft.js +1 -0
  23. package/build/client/_app/immutable/chunks/EvVuwjft.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/EvVuwjft.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/jqhKT5WL.js +3 -0
  26. package/build/client/_app/immutable/chunks/jqhKT5WL.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/jqhKT5WL.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/qSIFE6bv.js +1 -0
  29. package/build/client/_app/immutable/chunks/qSIFE6bv.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/qSIFE6bv.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/ynvIH2CR.js +1 -0
  32. package/build/client/_app/immutable/chunks/ynvIH2CR.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/ynvIH2CR.js.gz +0 -0
  34. package/build/client/_app/immutable/entry/app.BqIwniV2.js +2 -0
  35. package/build/client/_app/immutable/entry/app.BqIwniV2.js.br +0 -0
  36. package/build/client/_app/immutable/entry/app.BqIwniV2.js.gz +0 -0
  37. package/build/client/_app/immutable/entry/start.DdZVr3Jo.js +1 -0
  38. package/build/client/_app/immutable/entry/start.DdZVr3Jo.js.br +2 -0
  39. package/build/client/_app/immutable/entry/start.DdZVr3Jo.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/0.BvW6GQpn.js +2 -0
  41. package/build/client/_app/immutable/nodes/0.BvW6GQpn.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/0.BvW6GQpn.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/1.CGEOGhQ6.js +1 -0
  44. package/build/client/_app/immutable/nodes/1.CGEOGhQ6.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/1.CGEOGhQ6.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/2.BCvH_-7k.js +1 -0
  47. package/build/client/_app/immutable/nodes/2.BCvH_-7k.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/2.BCvH_-7k.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js +1 -0
  50. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js.gz +0 -0
  52. package/build/client/_app/version.json +1 -1
  53. package/build/client/_app/version.json.br +0 -0
  54. package/build/client/_app/version.json.gz +0 -0
  55. package/build/server/chunks/{0-CcOQpCXU.js → 0-Byw92AzS.js} +3 -3
  56. package/build/server/chunks/0-Byw92AzS.js.map +1 -0
  57. package/build/server/chunks/1-BAnl2We4.js +9 -0
  58. package/build/server/chunks/1-BAnl2We4.js.map +1 -0
  59. package/build/server/chunks/2-B3ii1avX.js +9 -0
  60. package/build/server/chunks/2-B3ii1avX.js.map +1 -0
  61. package/build/server/chunks/3-Cz5Rp48l.js +9 -0
  62. package/build/server/chunks/3-Cz5Rp48l.js.map +1 -0
  63. package/build/server/chunks/LoadingIndicator-BjVqwEwa.js +10 -0
  64. package/build/server/chunks/LoadingIndicator-BjVqwEwa.js.map +1 -0
  65. package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DEM6cLRl.js → LoadingIndicator.svelte_svelte_type_style_lang-CzuFb3Rb.js} +2 -2
  66. package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DEM6cLRl.js.map → LoadingIndicator.svelte_svelte_type_style_lang-CzuFb3Rb.js.map} +1 -1
  67. package/build/server/chunks/{PlayingTracker-CNLMY2hy.js → PlayingTracker-DagWUwKl.js} +3 -3
  68. package/build/server/chunks/{PlayingTracker-CNLMY2hy.js.map → PlayingTracker-DagWUwKl.js.map} +1 -1
  69. package/build/server/chunks/{_layout.svelte-BHhTC2tp.js → _layout.svelte-D_Vfu08M.js} +5 -4
  70. package/build/server/chunks/_layout.svelte-D_Vfu08M.js.map +1 -0
  71. package/build/server/chunks/{_page.svelte-D9L5iBit.js → _page.svelte-CY_oFa2x.js} +15 -16
  72. package/build/server/chunks/_page.svelte-CY_oFa2x.js.map +1 -0
  73. package/build/server/chunks/_page.svelte-Csehl0cs.js +114 -0
  74. package/build/server/chunks/_page.svelte-Csehl0cs.js.map +1 -0
  75. package/build/server/chunks/error.svelte-DGl1DMvJ.js +55 -0
  76. package/build/server/chunks/error.svelte-DGl1DMvJ.js.map +1 -0
  77. package/build/server/chunks/{exports-DAjI6ZSp.js → exports-D0QHgeSL.js} +2 -17
  78. package/build/server/chunks/exports-D0QHgeSL.js.map +1 -0
  79. package/build/server/chunks/{index2-BA59f76P.js → index2-DObisaVF.js} +337 -297
  80. package/build/server/chunks/index2-DObisaVF.js.map +1 -0
  81. package/build/server/index.js +345 -156
  82. package/build/server/index.js.map +1 -1
  83. package/build/server/manifest.js +6 -5
  84. package/build/server/manifest.js.map +1 -1
  85. package/package.json +1 -1
  86. package/server/spotify/sdk.js +2 -11
  87. package/server/spotify_auth.json +7 -1
  88. package/build/client/_app/immutable/chunks/LoadingIndicator.BukS53i0.js +0 -1
  89. package/build/client/_app/immutable/chunks/LoadingIndicator.BukS53i0.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/LoadingIndicator.BukS53i0.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/PlayingTracker.98fc0gbU.js +0 -5
  92. package/build/client/_app/immutable/chunks/PlayingTracker.98fc0gbU.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/PlayingTracker.98fc0gbU.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js +0 -1
  95. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.br +0 -0
  96. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/entry.ejCVhezY.js +0 -3
  98. package/build/client/_app/immutable/chunks/entry.ejCVhezY.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/entry.ejCVhezY.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js +0 -1
  101. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/index.CSSyc5xk.js +0 -4
  104. package/build/client/_app/immutable/chunks/index.CSSyc5xk.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/index.CSSyc5xk.js.gz +0 -0
  106. package/build/client/_app/immutable/chunks/index.DFULH2AN.js +0 -1
  107. package/build/client/_app/immutable/chunks/index.DFULH2AN.js.br +0 -0
  108. package/build/client/_app/immutable/chunks/index.DFULH2AN.js.gz +0 -0
  109. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js +0 -1
  110. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/props.DYfFZGja.js +0 -1
  113. package/build/client/_app/immutable/chunks/props.DYfFZGja.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/props.DYfFZGja.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js +0 -1
  116. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js +0 -1
  119. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js +0 -1
  122. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.gz +0 -0
  124. package/build/client/_app/immutable/entry/app.RUcGX1JI.js +0 -2
  125. package/build/client/_app/immutable/entry/app.RUcGX1JI.js.br +0 -0
  126. package/build/client/_app/immutable/entry/app.RUcGX1JI.js.gz +0 -0
  127. package/build/client/_app/immutable/entry/start.BESP6Y2s.js +0 -1
  128. package/build/client/_app/immutable/entry/start.BESP6Y2s.js.br +0 -2
  129. package/build/client/_app/immutable/entry/start.BESP6Y2s.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/0.YOQIp7Zo.js +0 -2
  131. package/build/client/_app/immutable/nodes/0.YOQIp7Zo.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/0.YOQIp7Zo.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/1.LDqagCtz.js +0 -1
  134. package/build/client/_app/immutable/nodes/1.LDqagCtz.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/1.LDqagCtz.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/2.D6pNjKYR.js +0 -1
  137. package/build/client/_app/immutable/nodes/2.D6pNjKYR.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/2.D6pNjKYR.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/3.C7gikcXT.js +0 -1
  140. package/build/client/_app/immutable/nodes/3.C7gikcXT.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/3.C7gikcXT.js.gz +0 -0
  142. package/build/server/chunks/0-CcOQpCXU.js.map +0 -1
  143. package/build/server/chunks/1-BOId0K8p.js +0 -9
  144. package/build/server/chunks/1-BOId0K8p.js.map +0 -1
  145. package/build/server/chunks/2-Bn-uEZm1.js +0 -9
  146. package/build/server/chunks/2-Bn-uEZm1.js.map +0 -1
  147. package/build/server/chunks/3-D5OhaZz4.js +0 -9
  148. package/build/server/chunks/3-D5OhaZz4.js.map +0 -1
  149. package/build/server/chunks/LoadingIndicator-CW4ord-4.js +0 -10
  150. package/build/server/chunks/LoadingIndicator-CW4ord-4.js.map +0 -1
  151. package/build/server/chunks/_layout.svelte-BHhTC2tp.js.map +0 -1
  152. package/build/server/chunks/_page.svelte-D9L5iBit.js.map +0 -1
  153. package/build/server/chunks/_page.svelte-IR8zDMaR.js +0 -115
  154. package/build/server/chunks/_page.svelte-IR8zDMaR.js.map +0 -1
  155. package/build/server/chunks/error.svelte-BZE1ioPX.js +0 -116
  156. package/build/server/chunks/error.svelte-BZE1ioPX.js.map +0 -1
  157. package/build/server/chunks/exports-DAjI6ZSp.js.map +0 -1
  158. package/build/server/chunks/index2-BA59f76P.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import{t as Ii,a as Ce,f as Ee,r as eo}from"./qSIFE6bv.js";import{v as yc,u as Ri,I as Vr,J as Ti,z as rl,o as Or,B as el,A as tl,x as Me,y as dc}from"./CDVeMiAl.js";import{i as to,p as Qr,b as ie,s as nl,a as no}from"./CvUX3i4L.js";import{s as al,e as ao,n as Rr,r as il,g as ol,m as ul,f as sl}from"./DGTGMr-5.js";var fl=Ii('<img class="full svelte-1nicoyy" alt="">'),cl=Ii('<img class="low svelte-1nicoyy" alt="">'),ll=Ii("<span><!> <!></span>");function ov(r,e){yc(e,!0);const t={INITIAL:0,LOAD:1,FULL:2,COMPLETE:3};let n=Ti(void 0);function a(){Or(n)===t.INITIAL&&Vr(n,Qr(t.LOAD))}function i(){Vr(n,Qr(t.FULL))}let o=Ti(!1);Ri(()=>{setTimeout(()=>{Vr(o,!0)},50)});var u=ll();let g;var _=rl(u);{var b=s=>{var l=fl();Me(()=>ao(l,"src",e.full)),Ee("load",l,i),Ee("transitionend",l,()=>Vr(n,Qr(t.COMPLETE))),eo(l),Ce(s,l)};to(_,s=>{Or(n)!==t.INITIAL&&Or(o)&&s(b)})}var c=el(_,2);{var v=s=>{var l=cl();Me(()=>ao(l,"src",e.low)),Ee("load",l,a),eo(l),Ce(s,l)};to(c,s=>{Or(n)!==t.COMPLETE&&s(v)})}tl(u),Me(s=>g=al(u,1,"image svelte-1nicoyy",null,g,s),[()=>({display:(Or(n)===t.FULL||Or(n)===t.COMPLETE)&&Or(o)})]),Ce(r,u),dc()}var hr={},Ur={},xe={},io;function ce(){return io||(io=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.getColorIndex=r.getColorDiffStatus=r.hexDiff=r.rgbDiff=r.deltaE94=r.rgbToCIELab=r.xyzToCIELab=r.rgbToXyz=r.hslToRgb=r.rgbToHsl=r.rgbToHex=r.hexToRgb=r.defer=r.RSHIFT=r.SIGBITS=r.DELTAE94_DIFF_STATUS=void 0,r.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},r.SIGBITS=5,r.RSHIFT=8-r.SIGBITS;function e(){var l,d,f=new Promise(function(h,m){l=h,d=m});return{resolve:l,reject:d,promise:f}}r.defer=e;function t(l){var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l);return d===null?null:[d[1],d[2],d[3]].map(function(f){return parseInt(f,16)})}r.hexToRgb=t;function n(l,d,f){return"#"+((1<<24)+(l<<16)+(d<<8)+f).toString(16).slice(1,7)}r.rgbToHex=n;function a(l,d,f){l/=255,d/=255,f/=255;var h=Math.max(l,d,f),m=Math.min(l,d,f),O,S,y=(h+m)/2;if(h===m)O=S=0;else{var q=h-m;switch(S=y>.5?q/(2-h-m):q/(h+m),h){case l:O=(d-f)/q+(d<f?6:0);break;case d:O=(f-l)/q+2;break;case f:O=(l-d)/q+4;break}O/=6}return[O,S,y]}r.rgbToHsl=a;function i(l,d,f){var h,m,O;function S(p,T,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?p+(T-p)*6*I:I<1/2?T:I<2/3?p+(T-p)*(2/3-I)*6:p}if(d===0)h=m=O=f;else{var y=f<.5?f*(1+d):f+d-f*d,q=2*f-y;h=S(q,y,l+1/3),m=S(q,y,l),O=S(q,y,l-1/3)}return[h*255,m*255,O*255]}r.hslToRgb=i;function o(l,d,f){l/=255,d/=255,f/=255,l=l>.04045?Math.pow((l+.005)/1.055,2.4):l/12.92,d=d>.04045?Math.pow((d+.005)/1.055,2.4):d/12.92,f=f>.04045?Math.pow((f+.005)/1.055,2.4):f/12.92,l*=100,d*=100,f*=100;var h=l*.4124+d*.3576+f*.1805,m=l*.2126+d*.7152+f*.0722,O=l*.0193+d*.1192+f*.9505;return[h,m,O]}r.rgbToXyz=o;function u(l,d,f){var h=95.047,m=100,O=108.883;l/=h,d/=m,f/=O,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116;var S=116*d-16,y=500*(l-d),q=200*(d-f);return[S,y,q]}r.xyzToCIELab=u;function g(l,d,f){var h=o(l,d,f),m=h[0],O=h[1],S=h[2];return u(m,O,S)}r.rgbToCIELab=g;function _(l,d){var f=1,h=1,m=1,O=l[0],S=l[1],y=l[2],q=d[0],p=d[1],T=d[2],I=O-q,C=S-p,P=y-T,R=Math.sqrt(S*S+y*y),H=Math.sqrt(p*p+T*T),F=q-O,K=H-R,er=Math.sqrt(I*I+C*C+P*P),Q=Math.sqrt(er)>Math.sqrt(Math.abs(F))+Math.sqrt(Math.abs(K))?Math.sqrt(er*er-F*F-K*K):0,E=1+.045*R,Z=1+.015*R;return F/=f,K/=h*E,Q/=m*Z,Math.sqrt(F*F+K*K+Q*Q)}r.deltaE94=_;function b(l,d){var f=g.apply(void 0,l),h=g.apply(void 0,d);return _(f,h)}r.rgbDiff=b;function c(l,d){var f=t(l),h=t(d);return b(f,h)}r.hexDiff=c;function v(l){return l<r.DELTAE94_DIFF_STATUS.NA?"N/A":l<=r.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":l<=r.DELTAE94_DIFF_STATUS.CLOSE?"Close":l<=r.DELTAE94_DIFF_STATUS.GOOD?"Good":l<r.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"}r.getColorDiffStatus=v;function s(l,d,f){return(l<<2*r.SIGBITS)+(d<<r.SIGBITS)+f}r.getColorIndex=s}(xe)),xe}var De,oo;function gc(){if(oo)return De;oo=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}return De=r,De}var Fe,uo;function hl(){if(uo)return Fe;uo=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),g=u.length;g--;){var _=u[e?g:++i];if(n(o[_],_,o)===!1)break}return t}}return Fe=r,Fe}var Le,so;function pl(){if(so)return Le;so=1;var r=hl(),e=r();return Le=e,Le}var je,fo;function vl(){if(fo)return je;fo=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return je=r,je}var Be,co;function _c(){if(co)return Be;co=1;var r=typeof Rr=="object"&&Rr&&Rr.Object===Object&&Rr;return Be=r,Be}var Ne,lo;function br(){if(lo)return Ne;lo=1;var r=_c(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ne=t,Ne}var Ge,ho;function Jr(){if(ho)return Ge;ho=1;var r=br(),e=r.Symbol;return Ge=e,Ge}var Ue,po;function yl(){if(po)return Ue;po=1;var r=Jr(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var u=t.call(o,a),g=o[a];try{o[a]=void 0;var _=!0}catch{}var b=n.call(o);return _&&(u?o[a]=g:delete o[a]),b}return Ue=i,Ue}var He,vo;function dl(){if(vo)return He;vo=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return He=t,He}var $e,yo;function Xr(){if(yo)return $e;yo=1;var r=Jr(),e=yl(),t=dl(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?e(u):t(u)}return $e=o,$e}var Ve,go;function Pr(){if(go)return Ve;go=1;function r(e){return e!=null&&typeof e=="object"}return Ve=r,Ve}var Ke,_o;function gl(){if(_o)return Ke;_o=1;var r=Xr(),e=Pr(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Ke=n,Ke}var ze,bo;function bc(){if(bo)return ze;bo=1;var r=gl(),e=Pr(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return ze=i,ze}var We,mo;function mr(){if(mo)return We;mo=1;var r=Array.isArray;return We=r,We}var Kr={exports:{}},ke,So;function _l(){if(So)return ke;So=1;function r(){return!1}return ke=r,ke}Kr.exports;var qo;function Pi(){return qo||(qo=1,function(r,e){var t=br(),n=_l(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,u=o?t.Buffer:void 0,g=u?u.isBuffer:void 0,_=g||n;r.exports=_}(Kr,Kr.exports)),Kr.exports}var Qe,Ao;function Ci(){if(Ao)return Qe;Ao=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Qe=t,Qe}var Je,wo;function Ei(){if(wo)return Je;wo=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Je=e,Je}var Xe,Oo;function bl(){if(Oo)return Xe;Oo=1;var r=Xr(),e=Ei(),t=Pr(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",g="[object Function]",_="[object Map]",b="[object Number]",c="[object Object]",v="[object RegExp]",s="[object Set]",l="[object String]",d="[object WeakMap]",f="[object ArrayBuffer]",h="[object DataView]",m="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",y="[object Int16Array]",q="[object Int32Array]",p="[object Uint8Array]",T="[object Uint8ClampedArray]",I="[object Uint16Array]",C="[object Uint32Array]",P={};P[m]=P[O]=P[S]=P[y]=P[q]=P[p]=P[T]=P[I]=P[C]=!0,P[n]=P[a]=P[f]=P[i]=P[h]=P[o]=P[u]=P[g]=P[_]=P[b]=P[c]=P[v]=P[s]=P[l]=P[d]=!1;function R(H){return t(H)&&e(H.length)&&!!P[r(H)]}return Xe=R,Xe}var Ye,Ro;function Mi(){if(Ro)return Ye;Ro=1;function r(e){return function(t){return e(t)}}return Ye=r,Ye}var zr={exports:{}};zr.exports;var To;function xi(){return To||(To=1,function(r,e){var t=_c(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var g=a&&a.require&&a.require("util").types;return g||o&&o.binding&&o.binding("util")}catch{}}();r.exports=u}(zr,zr.exports)),zr.exports}var Ze,Io;function mc(){if(Io)return Ze;Io=1;var r=bl(),e=Mi(),t=xi(),n=t&&t.isTypedArray,a=n?e(n):r;return Ze=a,Ze}var rt,Po;function Sc(){if(Po)return rt;Po=1;var r=vl(),e=bc(),t=mr(),n=Pi(),a=Ci(),i=mc(),o=Object.prototype,u=o.hasOwnProperty;function g(_,b){var c=t(_),v=!c&&e(_),s=!c&&!v&&n(_),l=!c&&!v&&!s&&i(_),d=c||v||s||l,f=d?r(_.length,String):[],h=f.length;for(var m in _)(b||u.call(_,m))&&!(d&&(m=="length"||s&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||a(m,h)))&&f.push(m);return f}return rt=g,rt}var et,Co;function Di(){if(Co)return et;Co=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return et=e,et}var tt,Eo;function qc(){if(Eo)return tt;Eo=1;function r(e,t){return function(n){return e(t(n))}}return tt=r,tt}var nt,Mo;function ml(){if(Mo)return nt;Mo=1;var r=qc(),e=r(Object.keys,Object);return nt=e,nt}var at,xo;function Sl(){if(xo)return at;xo=1;var r=Di(),e=ml(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return at=a,at}var it,Do;function Cr(){if(Do)return it;Do=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return it=r,it}var ot,Fo;function Ac(){if(Fo)return ot;Fo=1;var r=Xr(),e=Cr(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!e(u))return!1;var g=r(u);return g==n||g==a||g==t||g==i}return ot=o,ot}var ut,Lo;function le(){if(Lo)return ut;Lo=1;var r=Ac(),e=Ei();function t(n){return n!=null&&e(n.length)&&!r(n)}return ut=t,ut}var st,jo;function Yr(){if(jo)return st;jo=1;var r=Sc(),e=Sl(),t=le();function n(a){return t(a)?r(a):e(a)}return st=n,st}var ft,Bo;function ql(){if(Bo)return ft;Bo=1;var r=pl(),e=Yr();function t(n,a){return n&&r(n,a,e)}return ft=t,ft}var ct,No;function Al(){if(No)return ct;No=1;var r=le();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,u=n?o:-1,g=Object(a);(n?u--:++u<o)&&i(g[u],u,g)!==!1;);return a}}return ct=e,ct}var lt,Go;function wl(){if(Go)return lt;Go=1;var r=ql(),e=Al(),t=e(r);return lt=t,lt}var ht,Uo;function Ol(){if(Uo)return ht;Uo=1;var r=wl();function e(t,n){var a=[];return r(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return ht=e,ht}var pt,Ho;function Rl(){if(Ho)return pt;Ho=1;function r(){this.__data__=[],this.size=0}return pt=r,pt}var vt,$o;function Zr(){if($o)return vt;$o=1;function r(e,t){return e===t||e!==e&&t!==t}return vt=r,vt}var yt,Vo;function he(){if(Vo)return yt;Vo=1;var r=Zr();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return yt=e,yt}var dt,Ko;function Tl(){if(Ko)return dt;Ko=1;var r=he(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var u=i.length-1;return o==u?i.pop():t.call(i,o,1),--this.size,!0}return dt=n,dt}var gt,zo;function Il(){if(zo)return gt;zo=1;var r=he();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return gt=e,gt}var _t,Wo;function Pl(){if(Wo)return _t;Wo=1;var r=he();function e(t){return r(this.__data__,t)>-1}return _t=e,_t}var bt,ko;function Cl(){if(ko)return bt;ko=1;var r=he();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return bt=e,bt}var mt,Qo;function pe(){if(Qo)return mt;Qo=1;var r=Rl(),e=Tl(),t=Il(),n=Pl(),a=Cl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,mt=i,mt}var St,Jo;function El(){if(Jo)return St;Jo=1;var r=pe();function e(){this.__data__=new r,this.size=0}return St=e,St}var qt,Xo;function Ml(){if(Xo)return qt;Xo=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return qt=r,qt}var At,Yo;function xl(){if(Yo)return At;Yo=1;function r(e){return this.__data__.get(e)}return At=r,At}var wt,Zo;function Dl(){if(Zo)return wt;Zo=1;function r(e){return this.__data__.has(e)}return wt=r,wt}var Ot,ru;function Fl(){if(ru)return Ot;ru=1;var r=br(),e=r["__core-js_shared__"];return Ot=e,Ot}var Rt,eu;function Ll(){if(eu)return Rt;eu=1;var r=Fl(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Rt=t,Rt}var Tt,tu;function wc(){if(tu)return Tt;tu=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Tt=t,Tt}var It,nu;function jl(){if(nu)return It;nu=1;var r=Ac(),e=Ll(),t=Cr(),n=wc(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,g=o.toString,_=u.hasOwnProperty,b=RegExp("^"+g.call(_).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(v){if(!t(v)||e(v))return!1;var s=r(v)?b:i;return s.test(n(v))}return It=c,It}var Pt,au;function Bl(){if(au)return Pt;au=1;function r(e,t){return e==null?void 0:e[t]}return Pt=r,Pt}var Ct,iu;function Er(){if(iu)return Ct;iu=1;var r=jl(),e=Bl();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return Ct=t,Ct}var Et,ou;function Fi(){if(ou)return Et;ou=1;var r=Er(),e=br(),t=r(e,"Map");return Et=t,Et}var Mt,uu;function ve(){if(uu)return Mt;uu=1;var r=Er(),e=r(Object,"create");return Mt=e,Mt}var xt,su;function Nl(){if(su)return xt;su=1;var r=ve();function e(){this.__data__=r?r(null):{},this.size=0}return xt=e,xt}var Dt,fu;function Gl(){if(fu)return Dt;fu=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Dt=r,Dt}var Ft,cu;function Ul(){if(cu)return Ft;cu=1;var r=ve(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var u=o[i];return u===e?void 0:u}return n.call(o,i)?o[i]:void 0}return Ft=a,Ft}var Lt,lu;function Hl(){if(lu)return Lt;lu=1;var r=ve(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return Lt=n,Lt}var jt,hu;function $l(){if(hu)return jt;hu=1;var r=ve(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return jt=t,jt}var Bt,pu;function Vl(){if(pu)return Bt;pu=1;var r=Nl(),e=Gl(),t=Ul(),n=Hl(),a=$l();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,Bt=i,Bt}var Nt,vu;function Kl(){if(vu)return Nt;vu=1;var r=Vl(),e=pe(),t=Fi();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Nt=n,Nt}var Gt,yu;function zl(){if(yu)return Gt;yu=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Gt=r,Gt}var Ut,du;function ye(){if(du)return Ut;du=1;var r=zl();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Ut=e,Ut}var Ht,gu;function Wl(){if(gu)return Ht;gu=1;var r=ye();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Ht=e,Ht}var $t,_u;function kl(){if(_u)return $t;_u=1;var r=ye();function e(t){return r(this,t).get(t)}return $t=e,$t}var Vt,bu;function Ql(){if(bu)return Vt;bu=1;var r=ye();function e(t){return r(this,t).has(t)}return Vt=e,Vt}var Kt,mu;function Jl(){if(mu)return Kt;mu=1;var r=ye();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Kt=e,Kt}var zt,Su;function Li(){if(Su)return zt;Su=1;var r=Kl(),e=Wl(),t=kl(),n=Ql(),a=Jl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,zt=i,zt}var Wt,qu;function Xl(){if(qu)return Wt;qu=1;var r=pe(),e=Fi(),t=Li(),n=200;function a(i,o){var u=this.__data__;if(u instanceof r){var g=u.__data__;if(!e||g.length<n-1)return g.push([i,o]),this.size=++u.size,this;u=this.__data__=new t(g)}return u.set(i,o),this.size=u.size,this}return Wt=a,Wt}var kt,Au;function ji(){if(Au)return kt;Au=1;var r=pe(),e=El(),t=Ml(),n=xl(),a=Dl(),i=Xl();function o(u){var g=this.__data__=new r(u);this.size=g.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,kt=o,kt}var Qt,wu;function Yl(){if(wu)return Qt;wu=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Qt=e,Qt}var Jt,Ou;function Zl(){if(Ou)return Jt;Ou=1;function r(e){return this.__data__.has(e)}return Jt=r,Jt}var Xt,Ru;function rh(){if(Ru)return Xt;Ru=1;var r=Li(),e=Yl(),t=Zl();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Xt=n,Xt}var Yt,Tu;function eh(){if(Tu)return Yt;Tu=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Yt=r,Yt}var Zt,Iu;function th(){if(Iu)return Zt;Iu=1;function r(e,t){return e.has(t)}return Zt=r,Zt}var rn,Pu;function Oc(){if(Pu)return rn;Pu=1;var r=rh(),e=eh(),t=th(),n=1,a=2;function i(o,u,g,_,b,c){var v=g&n,s=o.length,l=u.length;if(s!=l&&!(v&&l>s))return!1;var d=c.get(o),f=c.get(u);if(d&&f)return d==u&&f==o;var h=-1,m=!0,O=g&a?new r:void 0;for(c.set(o,u),c.set(u,o);++h<s;){var S=o[h],y=u[h];if(_)var q=v?_(y,S,h,u,o,c):_(S,y,h,o,u,c);if(q!==void 0){if(q)continue;m=!1;break}if(O){if(!e(u,function(p,T){if(!t(O,T)&&(S===p||b(S,p,g,_,c)))return O.push(T)})){m=!1;break}}else if(!(S===y||b(S,y,g,_,c))){m=!1;break}}return c.delete(o),c.delete(u),m}return rn=i,rn}var en,Cu;function Rc(){if(Cu)return en;Cu=1;var r=br(),e=r.Uint8Array;return en=e,en}var tn,Eu;function nh(){if(Eu)return tn;Eu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return tn=r,tn}var nn,Mu;function ah(){if(Mu)return nn;Mu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return nn=r,nn}var an,xu;function ih(){if(xu)return an;xu=1;var r=Jr(),e=Rc(),t=Zr(),n=Oc(),a=nh(),i=ah(),o=1,u=2,g="[object Boolean]",_="[object Date]",b="[object Error]",c="[object Map]",v="[object Number]",s="[object RegExp]",l="[object Set]",d="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,S=O?O.valueOf:void 0;function y(q,p,T,I,C,P,R){switch(T){case m:if(q.byteLength!=p.byteLength||q.byteOffset!=p.byteOffset)return!1;q=q.buffer,p=p.buffer;case h:return!(q.byteLength!=p.byteLength||!P(new e(q),new e(p)));case g:case _:case v:return t(+q,+p);case b:return q.name==p.name&&q.message==p.message;case s:case d:return q==p+"";case c:var H=a;case l:var F=I&o;if(H||(H=i),q.size!=p.size&&!F)return!1;var K=R.get(q);if(K)return K==p;I|=u,R.set(q,p);var er=n(H(q),H(p),I,C,P,R);return R.delete(q),er;case f:if(S)return S.call(q)==S.call(p)}return!1}return an=y,an}var on,Du;function Tc(){if(Du)return on;Du=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return on=r,on}var un,Fu;function Ic(){if(Fu)return un;Fu=1;var r=Tc(),e=mr();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return un=t,un}var sn,Lu;function Pc(){if(Lu)return sn;Lu=1;function r(){return[]}return sn=r,sn}var fn,ju;function Bi(){if(ju)return fn;ju=1;var r=gc(),e=Pc(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(u){return n.call(o,u)}))}:e;return fn=i,fn}var cn,Bu;function Cc(){if(Bu)return cn;Bu=1;var r=Ic(),e=Bi(),t=Yr();function n(a){return r(a,t,e)}return cn=n,cn}var ln,Nu;function oh(){if(Nu)return ln;Nu=1;var r=Cc(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,g,_,b){var c=u&e,v=r(i),s=v.length,l=r(o),d=l.length;if(s!=d&&!c)return!1;for(var f=s;f--;){var h=v[f];if(!(c?h in o:n.call(o,h)))return!1}var m=b.get(i),O=b.get(o);if(m&&O)return m==o&&O==i;var S=!0;b.set(i,o),b.set(o,i);for(var y=c;++f<s;){h=v[f];var q=i[h],p=o[h];if(g)var T=c?g(p,q,h,o,i,b):g(q,p,h,i,o,b);if(!(T===void 0?q===p||_(q,p,u,g,b):T)){S=!1;break}y||(y=h=="constructor")}if(S&&!y){var I=i.constructor,C=o.constructor;I!=C&&"constructor"in i&&"constructor"in o&&!(typeof I=="function"&&I instanceof I&&typeof C=="function"&&C instanceof C)&&(S=!1)}return b.delete(i),b.delete(o),S}return ln=a,ln}var hn,Gu;function uh(){if(Gu)return hn;Gu=1;var r=Er(),e=br(),t=r(e,"DataView");return hn=t,hn}var pn,Uu;function sh(){if(Uu)return pn;Uu=1;var r=Er(),e=br(),t=r(e,"Promise");return pn=t,pn}var vn,Hu;function fh(){if(Hu)return vn;Hu=1;var r=Er(),e=br(),t=r(e,"Set");return vn=t,vn}var yn,$u;function ch(){if($u)return yn;$u=1;var r=Er(),e=br(),t=r(e,"WeakMap");return yn=t,yn}var dn,Vu;function de(){if(Vu)return dn;Vu=1;var r=uh(),e=Fi(),t=sh(),n=fh(),a=ch(),i=Xr(),o=wc(),u="[object Map]",g="[object Object]",_="[object Promise]",b="[object Set]",c="[object WeakMap]",v="[object DataView]",s=o(r),l=o(e),d=o(t),f=o(n),h=o(a),m=i;return(r&&m(new r(new ArrayBuffer(1)))!=v||e&&m(new e)!=u||t&&m(t.resolve())!=_||n&&m(new n)!=b||a&&m(new a)!=c)&&(m=function(O){var S=i(O),y=S==g?O.constructor:void 0,q=y?o(y):"";if(q)switch(q){case s:return v;case l:return u;case d:return _;case f:return b;case h:return c}return S}),dn=m,dn}var gn,Ku;function lh(){if(Ku)return gn;Ku=1;var r=ji(),e=Oc(),t=ih(),n=oh(),a=de(),i=mr(),o=Pi(),u=mc(),g=1,_="[object Arguments]",b="[object Array]",c="[object Object]",v=Object.prototype,s=v.hasOwnProperty;function l(d,f,h,m,O,S){var y=i(d),q=i(f),p=y?b:a(d),T=q?b:a(f);p=p==_?c:p,T=T==_?c:T;var I=p==c,C=T==c,P=p==T;if(P&&o(d)){if(!o(f))return!1;y=!0,I=!1}if(P&&!I)return S||(S=new r),y||u(d)?e(d,f,h,m,O,S):t(d,f,p,h,m,O,S);if(!(h&g)){var R=I&&s.call(d,"__wrapped__"),H=C&&s.call(f,"__wrapped__");if(R||H){var F=R?d.value():d,K=H?f.value():f;return S||(S=new r),O(F,K,h,m,S)}}return P?(S||(S=new r),n(d,f,h,m,O,S)):!1}return gn=l,gn}var _n,zu;function Ec(){if(zu)return _n;zu=1;var r=lh(),e=Pr();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,u)}return _n=t,_n}var bn,Wu;function hh(){if(Wu)return bn;Wu=1;var r=ji(),e=Ec(),t=1,n=2;function a(i,o,u,g){var _=u.length,b=_,c=!g;if(i==null)return!b;for(i=Object(i);_--;){var v=u[_];if(c&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++_<b;){v=u[_];var s=v[0],l=i[s],d=v[1];if(c&&v[2]){if(l===void 0&&!(s in i))return!1}else{var f=new r;if(g)var h=g(l,d,s,i,o,f);if(!(h===void 0?e(d,l,t|n,g,f):h))return!1}}return!0}return bn=a,bn}var mn,ku;function Mc(){if(ku)return mn;ku=1;var r=Cr();function e(t){return t===t&&!r(t)}return mn=e,mn}var Sn,Qu;function ph(){if(Qu)return Sn;Qu=1;var r=Mc(),e=Yr();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,r(u)]}return a}return Sn=t,Sn}var qn,Ju;function xc(){if(Ju)return qn;Ju=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return qn=r,qn}var An,Xu;function vh(){if(Xu)return An;Xu=1;var r=hh(),e=ph(),t=xc();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return An=n,An}var wn,Yu;function Ni(){if(Yu)return wn;Yu=1;var r=Xr(),e=Pr(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return wn=n,wn}var On,Zu;function Gi(){if(Zu)return On;Zu=1;var r=mr(),e=Ni(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return On=a,On}var Rn,rs;function yh(){if(rs)return Rn;rs=1;var r=Li(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,u=a?a.apply(this,o):o[0],g=i.cache;if(g.has(u))return g.get(u);var _=n.apply(this,o);return i.cache=g.set(u,_)||g,_};return i.cache=new(t.Cache||r),i}return t.Cache=r,Rn=t,Rn}var Tn,es;function dh(){if(es)return Tn;es=1;var r=yh(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Tn=t,Tn}var In,ts;function gh(){if(ts)return In;ts=1;var r=dh(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,u,g,_){i.push(g?_.replace(t,"$1"):u||o)}),i});return In=n,In}var Pn,ns;function _h(){if(ns)return Pn;ns=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Pn=r,Pn}var Cn,as;function bh(){if(as)return Cn;as=1;var r=Jr(),e=_h(),t=mr(),n=Ni(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return e(u,o)+"";if(n(u))return i?i.call(u):"";var g=u+"";return g=="0"&&1/u==-1/0?"-0":g}return Cn=o,Cn}var En,is;function mh(){if(is)return En;is=1;var r=bh();function e(t){return t==null?"":r(t)}return En=e,En}var Mn,os;function Dc(){if(os)return Mn;os=1;var r=mr(),e=Gi(),t=gh(),n=mh();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return Mn=a,Mn}var xn,us;function ge(){if(us)return xn;us=1;var r=Ni();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return xn=e,xn}var Dn,ss;function Fc(){if(ss)return Dn;ss=1;var r=Dc(),e=ge();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return Dn=t,Dn}var Fn,fs;function Sh(){if(fs)return Fn;fs=1;var r=Fc();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return Fn=e,Fn}var Ln,cs;function qh(){if(cs)return Ln;cs=1;function r(e,t){return e!=null&&t in Object(e)}return Ln=r,Ln}var jn,ls;function Ah(){if(ls)return jn;ls=1;var r=Dc(),e=bc(),t=mr(),n=Ci(),a=Ei(),i=ge();function o(u,g,_){g=r(g,u);for(var b=-1,c=g.length,v=!1;++b<c;){var s=i(g[b]);if(!(v=u!=null&&_(u,s)))break;u=u[s]}return v||++b!=c?v:(c=u==null?0:u.length,!!c&&a(c)&&n(s,c)&&(t(u)||e(u)))}return jn=o,jn}var Bn,hs;function wh(){if(hs)return Bn;hs=1;var r=qh(),e=Ah();function t(n,a){return n!=null&&e(n,a,r)}return Bn=t,Bn}var Nn,ps;function Oh(){if(ps)return Nn;ps=1;var r=Ec(),e=Sh(),t=wh(),n=Gi(),a=Mc(),i=xc(),o=ge(),u=1,g=2;function _(b,c){return n(b)&&a(c)?i(o(b),c):function(v){var s=e(v,b);return s===void 0&&s===c?t(v,b):r(c,s,u|g)}}return Nn=_,Nn}var Gn,vs;function Ui(){if(vs)return Gn;vs=1;function r(e){return e}return Gn=r,Gn}var Un,ys;function Rh(){if(ys)return Un;ys=1;function r(e){return function(t){return t==null?void 0:t[e]}}return Un=r,Un}var Hn,ds;function Th(){if(ds)return Hn;ds=1;var r=Fc();function e(t){return function(n){return r(n,t)}}return Hn=e,Hn}var $n,gs;function Ih(){if(gs)return $n;gs=1;var r=Rh(),e=Th(),t=Gi(),n=ge();function a(i){return t(i)?r(n(i)):e(i)}return $n=a,$n}var Vn,_s;function Ph(){if(_s)return Vn;_s=1;var r=vh(),e=Oh(),t=Ui(),n=mr(),a=Ih();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return Vn=i,Vn}var Kn,bs;function Ch(){if(bs)return Kn;bs=1;var r=gc(),e=Ol(),t=Ph(),n=mr();function a(i,o){var u=n(i)?r:e;return u(i,t(o,3))}return Kn=a,Kn}var ms;function Hi(){if(ms)return Ur;ms=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.Swatch=void 0;var r=ce(),e=Ch(),t=function(){function n(a,i){this._rgb=a,this._population=i}return n.applyFilter=function(a,i){return typeof i=="function"?e(a,function(o){var u=o.r,g=o.g,_=o.b;return i(u,g,_,255)}):a},Object.defineProperty(n.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rgb",{get:function(){return this._rgb},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hsl",{get:function(){if(!this._hsl){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hsl=r.rgbToHsl(i,o,u)}return this._hsl},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hex",{get:function(){if(!this._hex){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hex=r.rgbToHex(i,o,u)}return this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"population",{get:function(){return this._population},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},n.prototype.getRgb=function(){return this._rgb},n.prototype.getHsl=function(){return this.hsl},n.prototype.getPopulation=function(){return this._population},n.prototype.getHex=function(){return this.hex},n.prototype.getYiq=function(){if(!this._yiq){var a=this._rgb;this._yiq=(a[0]*299+a[1]*587+a[2]*114)/1e3}return this._yiq},Object.defineProperty(n.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!1,configurable:!0}),n.prototype.getTitleTextColor=function(){return this.titleTextColor},n.prototype.getBodyTextColor=function(){return this.bodyTextColor},n}();return Ur.Swatch=t,Ur}var Lr={},zn,Ss;function Eh(){if(Ss)return zn;Ss=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return zn=r,zn}var Wn,qs;function Lc(){if(qs)return Wn;qs=1;var r=Er(),e=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Wn=e,Wn}var kn,As;function jc(){if(As)return kn;As=1;var r=Lc();function e(t,n,a){n=="__proto__"&&r?r(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}return kn=e,kn}var Qn,ws;function Bc(){if(ws)return Qn;ws=1;var r=jc(),e=Zr(),t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u){var g=i[o];(!(n.call(i,o)&&e(g,u))||u===void 0&&!(o in i))&&r(i,o,u)}return Qn=a,Qn}var Jn,Os;function _e(){if(Os)return Jn;Os=1;var r=Bc(),e=jc();function t(n,a,i,o){var u=!i;i||(i={});for(var g=-1,_=a.length;++g<_;){var b=a[g],c=o?o(i[b],n[b],b,i,n):void 0;c===void 0&&(c=n[b]),u?e(i,b,c):r(i,b,c)}return i}return Jn=t,Jn}var Xn,Rs;function Mh(){if(Rs)return Xn;Rs=1;var r=_e(),e=Yr();function t(n,a){return n&&r(a,e(a),n)}return Xn=t,Xn}var Yn,Ts;function xh(){if(Ts)return Yn;Ts=1;function r(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}return Yn=r,Yn}var Zn,Is;function Dh(){if(Is)return Zn;Is=1;var r=Cr(),e=Di(),t=xh(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!r(o))return t(o);var u=e(o),g=[];for(var _ in o)_=="constructor"&&(u||!a.call(o,_))||g.push(_);return g}return Zn=i,Zn}var ra,Ps;function be(){if(Ps)return ra;Ps=1;var r=Sc(),e=Dh(),t=le();function n(a){return t(a)?r(a,!0):e(a)}return ra=n,ra}var ea,Cs;function Fh(){if(Cs)return ea;Cs=1;var r=_e(),e=be();function t(n,a){return n&&r(a,e(a),n)}return ea=t,ea}var Wr={exports:{}};Wr.exports;var Es;function Lh(){return Es||(Es=1,function(r,e){var t=br(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i?t.Buffer:void 0,u=o?o.allocUnsafe:void 0;function g(_,b){if(b)return _.slice();var c=_.length,v=u?u(c):new _.constructor(c);return _.copy(v),v}r.exports=g}(Wr,Wr.exports)),Wr.exports}var ta,Ms;function jh(){if(Ms)return ta;Ms=1;function r(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}return ta=r,ta}var na,xs;function Bh(){if(xs)return na;xs=1;var r=_e(),e=Bi();function t(n,a){return r(n,e(n),a)}return na=t,na}var aa,Ds;function Nc(){if(Ds)return aa;Ds=1;var r=qc(),e=r(Object.getPrototypeOf,Object);return aa=e,aa}var ia,Fs;function Gc(){if(Fs)return ia;Fs=1;var r=Tc(),e=Nc(),t=Bi(),n=Pc(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var u=[];o;)r(u,t(o)),o=e(o);return u}:n;return ia=i,ia}var oa,Ls;function Nh(){if(Ls)return oa;Ls=1;var r=_e(),e=Gc();function t(n,a){return r(n,e(n),a)}return oa=t,oa}var ua,js;function Gh(){if(js)return ua;js=1;var r=Ic(),e=Gc(),t=be();function n(a){return r(a,t,e)}return ua=n,ua}var sa,Bs;function Uh(){if(Bs)return sa;Bs=1;var r=Object.prototype,e=r.hasOwnProperty;function t(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return sa=t,sa}var fa,Ns;function $i(){if(Ns)return fa;Ns=1;var r=Rc();function e(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}return fa=e,fa}var ca,Gs;function Hh(){if(Gs)return ca;Gs=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}return ca=e,ca}var la,Us;function $h(){if(Us)return la;Us=1;var r=/\w*$/;function e(t){var n=new t.constructor(t.source,r.exec(t));return n.lastIndex=t.lastIndex,n}return la=e,la}var ha,Hs;function Vh(){if(Hs)return ha;Hs=1;var r=Jr(),e=r?r.prototype:void 0,t=e?e.valueOf:void 0;function n(a){return t?Object(t.call(a)):{}}return ha=n,ha}var pa,$s;function Kh(){if($s)return pa;$s=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}return pa=e,pa}var va,Vs;function zh(){if(Vs)return va;Vs=1;var r=$i(),e=Hh(),t=$h(),n=Vh(),a=Kh(),i="[object Boolean]",o="[object Date]",u="[object Map]",g="[object Number]",_="[object RegExp]",b="[object Set]",c="[object String]",v="[object Symbol]",s="[object ArrayBuffer]",l="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",h="[object Int8Array]",m="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",y="[object Uint8ClampedArray]",q="[object Uint16Array]",p="[object Uint32Array]";function T(I,C,P){var R=I.constructor;switch(C){case s:return r(I);case i:case o:return new R(+I);case l:return e(I,P);case d:case f:case h:case m:case O:case S:case y:case q:case p:return a(I,P);case u:return new R;case g:case c:return new R(I);case _:return t(I);case b:return new R;case v:return n(I)}}return va=T,va}var ya,Ks;function Wh(){if(Ks)return ya;Ks=1;var r=Cr(),e=Object.create,t=function(){function n(){}return function(a){if(!r(a))return{};if(e)return e(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}}();return ya=t,ya}var da,zs;function kh(){if(zs)return da;zs=1;var r=Wh(),e=Nc(),t=Di();function n(a){return typeof a.constructor=="function"&&!t(a)?r(e(a)):{}}return da=n,da}var ga,Ws;function Qh(){if(Ws)return ga;Ws=1;var r=de(),e=Pr(),t="[object Map]";function n(a){return e(a)&&r(a)==t}return ga=n,ga}var _a,ks;function Jh(){if(ks)return _a;ks=1;var r=Qh(),e=Mi(),t=xi(),n=t&&t.isMap,a=n?e(n):r;return _a=a,_a}var ba,Qs;function Xh(){if(Qs)return ba;Qs=1;var r=de(),e=Pr(),t="[object Set]";function n(a){return e(a)&&r(a)==t}return ba=n,ba}var ma,Js;function Yh(){if(Js)return ma;Js=1;var r=Xh(),e=Mi(),t=xi(),n=t&&t.isSet,a=n?e(n):r;return ma=a,ma}var Sa,Xs;function Zh(){if(Xs)return Sa;Xs=1;var r=ji(),e=Eh(),t=Bc(),n=Mh(),a=Fh(),i=Lh(),o=jh(),u=Bh(),g=Nh(),_=Cc(),b=Gh(),c=de(),v=Uh(),s=zh(),l=kh(),d=mr(),f=Pi(),h=Jh(),m=Cr(),O=Yh(),S=Yr(),y=be(),q=1,p=2,T=4,I="[object Arguments]",C="[object Array]",P="[object Boolean]",R="[object Date]",H="[object Error]",F="[object Function]",K="[object GeneratorFunction]",er="[object Map]",Q="[object Number]",E="[object Object]",Z="[object RegExp]",x="[object Set]",D="[object String]",B="[object Symbol]",M="[object WeakMap]",j="[object ArrayBuffer]",k="[object DataView]",V="[object Float32Array]",J="[object Float64Array]",nr="[object Int8Array]",z="[object Int16Array]",L="[object Int32Array]",U="[object Uint8Array]",$="[object Uint8ClampedArray]",X="[object Uint16Array]",Y="[object Uint32Array]",N={};N[I]=N[C]=N[j]=N[k]=N[P]=N[R]=N[V]=N[J]=N[nr]=N[z]=N[L]=N[er]=N[Q]=N[E]=N[Z]=N[x]=N[D]=N[B]=N[U]=N[$]=N[X]=N[Y]=!0,N[H]=N[F]=N[M]=!1;function tr(G,or,cr,gr,sr,fr){var ur,vr=or&q,Mr=or&p,qe=or&T;if(cr&&(ur=sr?cr(G,gr,sr,fr):cr(G)),ur!==void 0)return ur;if(!m(G))return G;var Nr=d(G);if(Nr){if(ur=v(G),!vr)return o(G,ur)}else{var Sr=c(G),qr=Sr==F||Sr==K;if(f(G))return i(G,vr);if(Sr==E||Sr==I||qr&&!sr){if(ur=Mr||qr?{}:l(G),!vr)return Mr?g(G,a(ur,G)):u(G,n(ur,G))}else{if(!N[Sr])return sr?G:{};ur=s(G,Sr,vr)}}fr||(fr=new r);var xr=fr.get(G);if(xr)return xr;fr.set(G,ur),O(G)?G.forEach(function(_r){ur.add(tr(_r,or,cr,_r,G,fr))}):h(G)&&G.forEach(function(_r,yr){ur.set(yr,tr(_r,or,cr,yr,G,fr))});var re=qe?Mr?b:_:Mr?y:S,ee=Nr?void 0:re(G);return e(ee||G,function(_r,yr){ee&&(yr=_r,_r=G[yr]),t(ur,yr,tr(_r,or,cr,yr,G,fr))}),ur}return Sa=tr,Sa}var qa,Ys;function rp(){if(Ys)return qa;Ys=1;var r=Zh(),e=4;function t(n){return r(n,e)}return qa=t,qa}var Zs;function ep(){if(Zs)return Lr;Zs=1;var r=Lr&&Lr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Lr,"__esModule",{value:!0});var e=r(Hc()),t=rp(),n=function(){function a(i,o){o===void 0&&(o={}),this._src=i,this._opts=o,this._opts.filters=t(e.default.DefaultOpts.filters)}return a.prototype.maxColorCount=function(i){return this._opts.colorCount=i,this},a.prototype.maxDimension=function(i){return this._opts.maxDimension=i,this},a.prototype.addFilter=function(i){return this._opts.filters.push(i),this},a.prototype.removeFilter=function(i){var o=this._opts.filters.indexOf(i);return o>0&&this._opts.filters.splice(o),this},a.prototype.clearFilters=function(){return this._opts.filters=[],this},a.prototype.quality=function(i){return this._opts.quality=i,this},a.prototype.useImageClass=function(i){return this._opts.ImageClass=i,this},a.prototype.useGenerator=function(i){return this._opts.generator=i,this},a.prototype.useQuantizer=function(i){return this._opts.quantizer=i,this},a.prototype.build=function(){return new e.default(this._src,this._opts)},a.prototype.getPalette=function(i){return this.build().getPalette(i)},a.prototype.getSwatches=function(i){return this.build().getPalette(i)},a}();return Lr.default=n,Lr}var Aa={},jr={},oe={},rf;function tp(){if(rf)return oe;rf=1,Object.defineProperty(oe,"__esModule",{value:!0});var r=ce(),e=function(){function t(n,a,i,o,u,g,_){this._volume=-1,this._count=-1,this.dimension={r1:n,r2:a,g1:i,g2:o,b1:u,b2:g},this.hist=_}return t.build=function(n,a){var i=1<<3*r.SIGBITS,o=new Uint32Array(i),u,g,_,b,c,v,s,l,d,f;u=_=c=0,g=b=v=Number.MAX_VALUE;for(var h=n.length/4,m=0;m<h;){var O=m*4;if(m++,s=n[O+0],l=n[O+1],d=n[O+2],f=n[O+3],f!==0){s=s>>r.RSHIFT,l=l>>r.RSHIFT,d=d>>r.RSHIFT;var S=r.getColorIndex(s,l,d);o[S]+=1,s>u&&(u=s),s<g&&(g=s),l>_&&(_=l),l<b&&(b=l),d>c&&(c=d),d<v&&(v=d)}}return new t(g,u,b,_,v,c,o)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(this._volume<0){var n=this.dimension,a=n.r1,i=n.r2,o=n.g1,u=n.g2,g=n.b1,_=n.b2;this._volume=(i-a+1)*(u-o+1)*(_-g+1)}return this._volume},t.prototype.count=function(){if(this._count<0){for(var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=i;v<=o;v++)for(var s=u;s<=g;s++)for(var l=_;l<=b;l++){var d=r.getColorIndex(v,s,l);c+=n[d]}this._count=c}return this._count},t.prototype.clone=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2;return new t(i,o,u,g,_,b,n)},t.prototype.avg=function(){if(!this._avg){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=1<<8-r.SIGBITS,s=void 0,l=void 0,d=void 0;s=l=d=0;for(var f=i;f<=o;f++)for(var h=u;h<=g;h++)for(var m=_;m<=b;m++){var O=r.getColorIndex(f,h,m),S=n[O];c+=S,s+=S*(f+.5)*v,l+=S*(h+.5)*v,d+=S*(m+.5)*v}c?this._avg=[~~(s/c),~~(l/c),~~(d/c)]:this._avg=[~~(v*(i+o+1)/2),~~(v*(u+g+1)/2),~~(v*(_+b+1)/2)]}return this._avg},t.prototype.contains=function(n){var a=n[0],i=n[1],o=n[2],u=this.dimension,g=u.r1,_=u.r2,b=u.g1,c=u.g2,v=u.b1,s=u.b2;return a>>=r.RSHIFT,i>>=r.RSHIFT,o>>=r.RSHIFT,a>=g&&a<=_&&i>=b&&i<=c&&o>=v&&o<=s},t.prototype.split=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=this.count();if(!c)return[];if(c===1)return[this.clone()];var v=o-i+1,s=g-u+1,l=b-_+1,d=Math.max(v,s,l),f=null,h,m;h=m=0;var O=null;if(d===v){O="r",f=new Uint32Array(o+1);for(var S=i;S<=o;S++){h=0;for(var y=u;y<=g;y++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[S]=m}}else if(d===s){O="g",f=new Uint32Array(g+1);for(var y=u;y<=g;y++){h=0;for(var S=i;S<=o;S++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[y]=m}}else{O="b",f=new Uint32Array(b+1);for(var q=_;q<=b;q++){h=0;for(var S=i;S<=o;S++)for(var y=u;y<=g;y++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[q]=m}}for(var T=-1,I=new Uint32Array(f.length),C=0;C<f.length;C++){var P=f[C];T<0&&P>m/2&&(T=C),I[C]=m-P}var R=this;function H(F){var K=F+"1",er=F+"2",Q=R.dimension[K],E=R.dimension[er],Z=R.clone(),x=R.clone(),D=T-Q,B=E-T;for(D<=B?(E=Math.min(E-1,~~(T+B/2)),E=Math.max(0,E)):(E=Math.max(Q,~~(T-1-D/2)),E=Math.min(R.dimension[er],E));!f[E];)E++;for(var M=I[E];!M&&f[E-1];)M=I[--E];return Z.dimension[er]=E,x.dimension[K]=E+1,[Z,x]}return H(O)},t}();return oe.default=e,oe}var ue={},ef;function np(){if(ef)return ue;ef=1,Object.defineProperty(ue,"__esModule",{value:!0});var r=function(){function e(t){this._comparator=t,this.contents=[],this._sorted=!1}return e.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},e.prototype.push=function(t){this.contents.push(t),this._sorted=!1},e.prototype.peek=function(t){return this._sort(),t=typeof t=="number"?t:this.contents.length-1,this.contents[t]},e.prototype.pop=function(){return this._sort(),this.contents.pop()},e.prototype.size=function(){return this.contents.length},e.prototype.map=function(t){return this._sort(),this.contents.map(t)},e}();return ue.default=r,ue}var tf;function ap(){if(tf)return jr;tf=1;var r=jr&&jr.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(jr,"__esModule",{value:!0});var e=Hi(),t=r(tp()),n=r(np()),a=.75;function i(g,_){for(var b=g.size();g.size()<_;){var c=g.pop();if(c&&c.count()>0){var v=c.split(),s=v[0],l=v[1];if(g.push(s),l&&l.count()>0&&g.push(l),g.size()===b)break;b=g.size()}else break}}var o=function(g,_){if(g.length===0||_.colorCount<2||_.colorCount>256)throw new Error("Wrong MMCQ parameters");var b=t.default.build(g),c=b.hist;Object.keys(c).length;var v=new n.default(function(l,d){return l.count()-d.count()});v.push(b),i(v,a*_.colorCount);var s=new n.default(function(l,d){return l.count()*l.volume()-d.count()*d.volume()});return s.contents=v.contents,i(s,_.colorCount-s.size()),u(s)};function u(g){for(var _=[];g.size();){var b=g.pop(),c=b.avg();c[0],c[1],c[2],_.push(new e.Swatch(c,b.count()))}return _}return jr.default=o,jr}var nf;function ip(){return nf||(nf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorker=void 0;var e=ap();Object.defineProperty(r,"MMCQ",{enumerable:!0,get:function(){return e.default}}),r.WebWorker=null}(Aa)),Aa}var wa={},se={},Oa,af;function op(){if(af)return Oa;af=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return Oa=r,Oa}var Ra,of;function up(){if(of)return Ra;of=1;var r=op(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,g=e(o.length-a,0),_=Array(g);++u<g;)_[u]=o[a+u];u=-1;for(var b=Array(a+1);++u<a;)b[u]=o[u];return b[a]=i(_),r(n,this,b)}}return Ra=t,Ra}var Ta,uf;function sp(){if(uf)return Ta;uf=1;function r(e){return function(){return e}}return Ta=r,Ta}var Ia,sf;function fp(){if(sf)return Ia;sf=1;var r=sp(),e=Lc(),t=Ui(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Ia=n,Ia}var Pa,ff;function cp(){if(ff)return Pa;ff=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),g=e-(u-o);if(o=u,g>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Pa=n,Pa}var Ca,cf;function lp(){if(cf)return Ca;cf=1;var r=fp(),e=cp(),t=e(r);return Ca=t,Ca}var Ea,lf;function hp(){if(lf)return Ea;lf=1;var r=Ui(),e=up(),t=lp();function n(a,i){return t(e(a,i,r),a+"")}return Ea=n,Ea}var Ma,hf;function pp(){if(hf)return Ma;hf=1;var r=Zr(),e=le(),t=Ci(),n=Cr();function a(i,o,u){if(!n(u))return!1;var g=typeof o;return(g=="number"?e(u)&&t(o,u.length):g=="string"&&o in u)?r(u[o],i):!1}return Ma=a,Ma}var xa,pf;function Uc(){if(pf)return xa;pf=1;var r=hp(),e=Zr(),t=pp(),n=be(),a=Object.prototype,i=a.hasOwnProperty,o=r(function(u,g){u=Object(u);var _=-1,b=g.length,c=b>2?g[2]:void 0;for(c&&t(g[0],g[1],c)&&(b=1);++_<b;)for(var v=g[_],s=n(v),l=-1,d=s.length;++l<d;){var f=s[l],h=u[f];(h===void 0||e(h,a[f])&&!i.call(u,f))&&(u[f]=v[f])}return u});return xa=o,xa}var vf;function vp(){if(vf)return se;vf=1,Object.defineProperty(se,"__esModule",{value:!0});var r=Hi(),e=ce(),t=Uc(),n={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function a(c){var v=0;return c.forEach(function(s){v=Math.max(v,s.getPopulation())}),v}function i(c,v){return c.Vibrant===v||c.DarkVibrant===v||c.LightVibrant===v||c.Muted===v||c.DarkMuted===v||c.LightMuted===v}function o(c,v,s,l,d,f,h){function m(){for(var S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];for(var q=0,p=0,T=0;T<S.length;T+=2){var I=S[T],C=S[T+1];q+=I*C,p+=C}return q/p}function O(S,y){return 1-Math.abs(S-y)}return m(O(c,v),h.weightSaturation,O(s,l),h.weightLuma,d/f,h.weightPopulation)}function u(c,v,s,l,d,f,h,m,O,S){var y=null,q=0;return v.forEach(function(p){var T=p.getHsl(),I=T[1],C=T[2];if(I>=m&&I<=O&&C>=d&&C<=f&&!i(c,p)){var P=o(I,h,C,l,p.getPopulation(),s,S);(y===null||P>q)&&(y=p,q=P)}}),y}function g(c,v,s){var l={};return l.Vibrant=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.LightVibrant=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.DarkVibrant=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.Muted=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.LightMuted=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.DarkMuted=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l}function _(c,v,s){if(c.Vibrant===null&&c.DarkVibrant===null&&c.LightVibrant===null){if(c.DarkVibrant===null&&c.DarkMuted!==null){var l=c.DarkMuted.getHsl(),d=l[0],f=l[1],h=l[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.LightMuted!==null){var m=c.LightMuted.getHsl(),d=m[0],f=m[1],h=m[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}}if(c.Vibrant===null&&c.DarkVibrant!==null){var O=c.DarkVibrant.getHsl(),d=O[0],f=O[1],h=O[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}else if(c.Vibrant===null&&c.LightVibrant!==null){var S=c.LightVibrant.getHsl(),d=S[0],f=S[1],h=S[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkVibrant===null&&c.Vibrant!==null){var y=c.Vibrant.getHsl(),d=y[0],f=y[1],h=y[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.Vibrant!==null){var q=c.Vibrant.getHsl(),d=q[0],f=q[1],h=q[2];h=s.targetLightLuma,c.LightVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.Muted===null&&c.Vibrant!==null){var p=c.Vibrant.getHsl(),d=p[0],f=p[1],h=p[2];h=s.targetMutesSaturation,c.Muted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkMuted===null&&c.DarkVibrant!==null){var T=c.DarkVibrant.getHsl(),d=T[0],f=T[1],h=T[2];h=s.targetMutesSaturation,c.DarkMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightMuted===null&&c.LightVibrant!==null){var I=c.LightVibrant.getHsl(),d=I[0],f=I[1],h=I[2];h=s.targetMutesSaturation,c.LightMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}}var b=function(c,v){v=t({},v,n);var s=a(c),l=g(c,s,v);return _(l,s,v),l};return se.default=b,se}var yf;function yp(){return yf||(yf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var e=vp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}})}(wa)),wa}var Da={},fe={},df;function dp(){if(df)return fe;df=1,Object.defineProperty(fe,"__esModule",{value:!0});function r(e,t,n,a){return a>=125&&!(e>250&&t>250&&n>250)}return fe.default=r,fe}var gf;function gp(){return gf||(gf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineFilters=void 0;var e=dp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}});function t(n){return!Array.isArray(n)||n.length===0?null:function(a,i,o,u){if(u===0)return!1;for(var g=0;g<n.length;g++)if(!n[g](a,i,o,u))return!1;return!0}}r.combineFilters=t}(Da)),Da}var _f;function Hc(){if(_f)return hr;_f=1;var r=hr&&hr.__createBinding||(Object.create?function(v,s,l,d){d===void 0&&(d=l),Object.defineProperty(v,d,{enumerable:!0,get:function(){return s[l]}})}:function(v,s,l,d){d===void 0&&(d=l),v[d]=s[l]}),e=hr&&hr.__setModuleDefault||(Object.create?function(v,s){Object.defineProperty(v,"default",{enumerable:!0,value:s})}:function(v,s){v.default=s}),t=hr&&hr.__importStar||function(v){if(v&&v.__esModule)return v;var s={};if(v!=null)for(var l in v)l!=="default"&&Object.hasOwnProperty.call(v,l)&&r(s,v,l);return e(s,v),s},n=hr&&hr.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(hr,"__esModule",{value:!0});var a=Hi(),i=n(ep()),o=t(ce()),u=t(ip()),g=t(yp()),_=t(gp()),b=Uc(),c=function(){function v(s,l){this._src=s,this.opts=b({},l,v.DefaultOpts),this.opts.combinedFilter=_.combineFilters(this.opts.filters)}return v.from=function(s){return new i.default(s)},v.prototype._process=function(s,l){var d=l.quantizer,f=l.generator;return s.scaleDown(l),s.applyFilter(l.combinedFilter).then(function(h){return d(h.data,l)}).then(function(h){return a.Swatch.applyFilter(h,l.combinedFilter)}).then(function(h){return Promise.resolve(f(h))})},v.prototype.palette=function(){return this.swatches()},v.prototype.swatches=function(){return this._palette},v.prototype.getPalette=function(s){var l=this,d=new this.opts.ImageClass,f=d.load(this._src).then(function(h){return l._process(h,l.opts)}).then(function(h){return l._palette=h,d.remove(),h},function(h){throw d.remove(),h});return s&&f.then(function(h){return s(null,h)},function(h){return s(h)}),f},v.Builder=i.default,v.Quantizer=u,v.Generator=g,v.Filter=_,v.Util=o,v.Swatch=a.Swatch,v.DefaultOpts={colorCount:64,quality:5,generator:g.Default,ImageClass:null,quantizer:u.MMCQ,filters:[_.Default]},v}();return hr.default=c,hr}var pr={},Hr={},bf;function _p(){if(bf)return Hr;bf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.ImageBase=void 0;var r=function(){function e(){}return e.prototype.scaleDown=function(t){var n=this.getWidth(),a=this.getHeight(),i=1;if(t.maxDimension>0){var o=Math.max(n,a);o>t.maxDimension&&(i=t.maxDimension/o)}else i=1/t.quality;i<1&&this.resize(n*i,a*i,i)},e.prototype.applyFilter=function(t){var n=this.getImageData();if(typeof t=="function")for(var a=n.data,i=a.length/4,o=void 0,u=void 0,g=void 0,_=void 0,b=void 0,c=0;c<i;c++)o=c*4,u=a[o+0],g=a[o+1],_=a[o+2],b=a[o+3],t(u,g,_,b)||(a[o+3]=0);return Promise.resolve(n)},e}();return Hr.ImageBase=r,Hr}var Ir={},kr={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var bp=kr.exports,mf;function mp(){return mf||(mf=1,function(r,e){(function(t){var n=e&&!e.nodeType&&e,a=r&&!r.nodeType&&r,i=typeof Rr=="object"&&Rr;(i.global===i||i.window===i||i.self===i)&&(t=i);var o,u=2147483647,g=36,_=1,b=26,c=38,v=700,s=72,l=128,d="-",f=/^xn--/,h=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=g-_,y=Math.floor,q=String.fromCharCode,p;function T(x){throw new RangeError(O[x])}function I(x,D){for(var B=x.length,M=[];B--;)M[B]=D(x[B]);return M}function C(x,D){var B=x.split("@"),M="";B.length>1&&(M=B[0]+"@",x=B[1]),x=x.replace(m,".");var j=x.split("."),k=I(j,D).join(".");return M+k}function P(x){for(var D=[],B=0,M=x.length,j,k;B<M;)j=x.charCodeAt(B++),j>=55296&&j<=56319&&B<M?(k=x.charCodeAt(B++),(k&64512)==56320?D.push(((j&1023)<<10)+(k&1023)+65536):(D.push(j),B--)):D.push(j);return D}function R(x){return I(x,function(D){var B="";return D>65535&&(D-=65536,B+=q(D>>>10&1023|55296),D=56320|D&1023),B+=q(D),B}).join("")}function H(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g}function F(x,D){return x+22+75*(x<26)-((D!=0)<<5)}function K(x,D,B){var M=0;for(x=B?y(x/v):x>>1,x+=y(x/D);x>S*b>>1;M+=g)x=y(x/S);return y(M+(S+1)*x/(x+c))}function er(x){var D=[],B=x.length,M,j=0,k=l,V=s,J,nr,z,L,U,$,X,Y,N;for(J=x.lastIndexOf(d),J<0&&(J=0),nr=0;nr<J;++nr)x.charCodeAt(nr)>=128&&T("not-basic"),D.push(x.charCodeAt(nr));for(z=J>0?J+1:0;z<B;){for(L=j,U=1,$=g;z>=B&&T("invalid-input"),X=H(x.charCodeAt(z++)),(X>=g||X>y((u-j)/U))&&T("overflow"),j+=X*U,Y=$<=V?_:$>=V+b?b:$-V,!(X<Y);$+=g)N=g-Y,U>y(u/N)&&T("overflow"),U*=N;M=D.length+1,V=K(j-L,M,L==0),y(j/M)>u-k&&T("overflow"),k+=y(j/M),j%=M,D.splice(j++,0,k)}return R(D)}function Q(x){var D,B,M,j,k,V,J,nr,z,L,U,$=[],X,Y,N,tr;for(x=P(x),X=x.length,D=l,B=0,k=s,V=0;V<X;++V)U=x[V],U<128&&$.push(q(U));for(M=j=$.length,j&&$.push(d);M<X;){for(J=u,V=0;V<X;++V)U=x[V],U>=D&&U<J&&(J=U);for(Y=M+1,J-D>y((u-B)/Y)&&T("overflow"),B+=(J-D)*Y,D=J,V=0;V<X;++V)if(U=x[V],U<D&&++B>u&&T("overflow"),U==D){for(nr=B,z=g;L=z<=k?_:z>=k+b?b:z-k,!(nr<L);z+=g)tr=nr-L,N=g-L,$.push(q(F(L+tr%N,0))),nr=y(tr/N);$.push(q(F(nr,0))),k=K(B,Y,M==j),B=0,++M}++B,++D}return $.join("")}function E(x){return C(x,function(D){return f.test(D)?er(D.slice(4).toLowerCase()):D})}function Z(x){return C(x,function(D){return h.test(D)?"xn--"+Q(D):D})}if(o={version:"1.4.1",ucs2:{decode:P,encode:R},decode:er,encode:Q,toASCII:Z,toUnicode:E},n&&a)if(r.exports==n)a.exports=o;else for(p in o)o.hasOwnProperty(p)&&(n[p]=o[p]);else t.punycode=o})(bp)}(kr,kr.exports)),kr.exports}var Fa,Sf;function Br(){return Sf||(Sf=1,Fa=TypeError),Fa}var La,qf;function me(){if(qf)return La;qf=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,u=a&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,_=g?WeakMap.prototype.has:null,b=typeof WeakSet=="function"&&WeakSet.prototype,c=b?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,s=v?WeakRef.prototype.deref:null,l=Boolean.prototype.valueOf,d=Object.prototype.toString,f=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,O=String.prototype.replace,S=String.prototype.toUpperCase,y=String.prototype.toLowerCase,q=RegExp.prototype.test,p=Array.prototype.concat,T=Array.prototype.join,I=Array.prototype.slice,C=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||!0)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,Q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function E(A,w){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||q.call(/e/,w))return w;var rr=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var ar=A<0?-C(-A):C(A);if(ar!==A){var ir=String(ar),W=m.call(w,ir.length+1);return O.call(ir,rr,"$&_")+"."+O.call(O.call(W,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(w,rr,"$&_")}var Z=il,x=Z.custom,D=Y(x)?x:null,B={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};La=function A(w,rr,ar,ir){var W=rr||{};if(G(W,"quoteStyle")&&!G(B,W.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(W,"maxStringLength")&&(typeof W.maxStringLength=="number"?W.maxStringLength<0&&W.maxStringLength!==1/0:W.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ar=G(W,"customInspect")?W.customInspect:!0;if(typeof Ar!="boolean"&&Ar!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(W,"indent")&&W.indent!==null&&W.indent!==" "&&!(parseInt(W.indent,10)===W.indent&&W.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(W,"numericSeparator")&&typeof W.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Tr=W.numericSeparator;if(typeof w>"u")return"undefined";if(w===null)return"null";if(typeof w=="boolean")return w?"true":"false";if(typeof w=="string")return Nr(w,W);if(typeof w=="number"){if(w===0)return 1/0/w>0?"0":"-0";var lr=String(w);return Tr?E(w,lr):lr}if(typeof w=="bigint"){var wr=String(w)+"n";return Tr?E(w,wr):wr}var Ae=typeof W.depth>"u"?5:W.depth;if(typeof ar>"u"&&(ar=0),ar>=Ae&&Ae>0&&typeof w=="object")return J(w)?"[Array]":"[Object]";var Dr=_r(W,ar);if(typeof ir>"u")ir=[];else if(gr(ir,w)>=0)return"[Circular]";function dr(Fr,ae,Zc){if(ae&&(ir=I.call(ir),ir.push(ae)),Zc){var ro={depth:W.depth};return G(W,"quoteStyle")&&(ro.quoteStyle=W.quoteStyle),A(Fr,ro,ar+1,ir)}return A(Fr,W,ar+1,ir)}if(typeof w=="function"&&!z(w)){var Wi=cr(w),ki=te(w,dr);return"[Function"+(Wi?": "+Wi:" (anonymous)")+"]"+(ki.length>0?" { "+T.call(ki,", ")+" }":"")}if(Y(w)){var Qi=F?O.call(String(w),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(w);return typeof w=="object"&&!F?qr(Qi):Qi}if(qe(w)){for(var Gr="<"+y.call(String(w.nodeName)),we=w.attributes||[],ne=0;ne<we.length;ne++)Gr+=" "+we[ne].name+"="+j(k(we[ne].value),"double",W);return Gr+=">",w.childNodes&&w.childNodes.length&&(Gr+="..."),Gr+="</"+y.call(String(w.nodeName))+">",Gr}if(J(w)){if(w.length===0)return"[]";var Oe=te(w,dr);return Dr&&!ee(Oe)?"["+yr(Oe,Dr)+"]":"[ "+T.call(Oe,", ")+" ]"}if(L(w)){var Re=te(w,dr);return!("cause"in Error.prototype)&&"cause"in w&&!er.call(w,"cause")?"{ ["+String(w)+"] "+T.call(p.call("[cause]: "+dr(w.cause),Re),", ")+" }":Re.length===0?"["+String(w)+"]":"{ ["+String(w)+"] "+T.call(Re,", ")+" }"}if(typeof w=="object"&&Ar){if(D&&typeof w[D]=="function"&&Z)return Z(w,{depth:Ae-ar});if(Ar!=="symbol"&&typeof w.inspect=="function")return w.inspect()}if(sr(w)){var Ji=[];return n&&n.call(w,function(Fr,ae){Ji.push(dr(ae,w,!0)+" => "+dr(Fr,w))}),re("Map",t.call(w),Ji,Dr)}if(vr(w)){var Xi=[];return u&&u.call(w,function(Fr){Xi.push(dr(Fr,w))}),re("Set",o.call(w),Xi,Dr)}if(fr(w))return xr("WeakMap");if(Mr(w))return xr("WeakSet");if(ur(w))return xr("WeakRef");if($(w))return qr(dr(Number(w)));if(N(w))return qr(dr(P.call(w)));if(X(w))return qr(l.call(w));if(U(w))return qr(dr(String(w)));if(typeof window<"u"&&w===window)return"{ [object Window] }";if(typeof globalThis<"u"&&w===globalThis||typeof Rr<"u"&&w===Rr)return"{ [object globalThis] }";if(!nr(w)&&!z(w)){var Te=te(w,dr),Yi=Q?Q(w)===Object.prototype:w instanceof Object||w.constructor===Object,Ie=w instanceof Object?"":"null prototype",Zi=!Yi&&K&&Object(w)===w&&K in w?m.call(or(w),8,-1):Ie?"Object":"",Yc=Yi||typeof w.constructor!="function"?"":w.constructor.name?w.constructor.name+" ":"",Pe=Yc+(Zi||Ie?"["+T.call(p.call([],Zi||[],Ie||[]),": ")+"] ":"");return Te.length===0?Pe+"{}":Dr?Pe+"{"+yr(Te,Dr)+"}":Pe+"{ "+T.call(Te,", ")+" }"}return String(w)};function j(A,w,rr){var ar=rr.quoteStyle||w,ir=B[ar];return ir+A+ir}function k(A){return O.call(String(A),/"/g,"&quot;")}function V(A){return!K||!(typeof A=="object"&&(K in A||typeof A[K]<"u"))}function J(A){return or(A)==="[object Array]"&&V(A)}function nr(A){return or(A)==="[object Date]"&&V(A)}function z(A){return or(A)==="[object RegExp]"&&V(A)}function L(A){return or(A)==="[object Error]"&&V(A)}function U(A){return or(A)==="[object String]"&&V(A)}function $(A){return or(A)==="[object Number]"&&V(A)}function X(A){return or(A)==="[object Boolean]"&&V(A)}function Y(A){if(F)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!H)return!1;try{return H.call(A),!0}catch{}return!1}function N(A){if(!A||typeof A!="object"||!P)return!1;try{return P.call(A),!0}catch{}return!1}var tr=Object.prototype.hasOwnProperty||function(A){return A in this};function G(A,w){return tr.call(A,w)}function or(A){return d.call(A)}function cr(A){if(A.name)return A.name;var w=h.call(f.call(A),/^function\s*([\w$]+)/);return w?w[1]:null}function gr(A,w){if(A.indexOf)return A.indexOf(w);for(var rr=0,ar=A.length;rr<ar;rr++)if(A[rr]===w)return rr;return-1}function sr(A){if(!t||!A||typeof A!="object")return!1;try{t.call(A);try{o.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function fr(A){if(!_||!A||typeof A!="object")return!1;try{_.call(A,_);try{c.call(A,c)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function ur(A){if(!s||!A||typeof A!="object")return!1;try{return s.call(A),!0}catch{}return!1}function vr(A){if(!o||!A||typeof A!="object")return!1;try{o.call(A);try{t.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function Mr(A){if(!c||!A||typeof A!="object")return!1;try{c.call(A,c);try{_.call(A,_)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function qe(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function Nr(A,w){if(A.length>w.maxStringLength){var rr=A.length-w.maxStringLength,ar="... "+rr+" more character"+(rr>1?"s":"");return Nr(m.call(A,0,w.maxStringLength),w)+ar}var ir=M[w.quoteStyle||"single"];ir.lastIndex=0;var W=O.call(O.call(A,ir,"\\$1"),/[\x00-\x1f]/g,Sr);return j(W,"single",w)}function Sr(A){var w=A.charCodeAt(0),rr={8:"b",9:"t",10:"n",12:"f",13:"r"}[w];return rr?"\\"+rr:"\\x"+(w<16?"0":"")+S.call(w.toString(16))}function qr(A){return"Object("+A+")"}function xr(A){return A+" { ? }"}function re(A,w,rr,ar){var ir=ar?yr(rr,ar):T.call(rr,", ");return A+" ("+w+") {"+ir+"}"}function ee(A){for(var w=0;w<A.length;w++)if(gr(A[w],`
2
+ `)>=0)return!1;return!0}function _r(A,w){var rr;if(A.indent===" ")rr=" ";else if(typeof A.indent=="number"&&A.indent>0)rr=T.call(Array(A.indent+1)," ");else return null;return{base:rr,prev:T.call(Array(w+1),rr)}}function yr(A,w){if(A.length===0)return"";var rr=`
3
+ `+w.prev+w.base;return rr+T.call(A,","+rr)+`
4
+ `+w.prev}function te(A,w){var rr=J(A),ar=[];if(rr){ar.length=A.length;for(var ir=0;ir<A.length;ir++)ar[ir]=G(A,ir)?w(A[ir],A):""}var W=typeof R=="function"?R(A):[],Ar;if(F){Ar={};for(var Tr=0;Tr<W.length;Tr++)Ar["$"+W[Tr]]=W[Tr]}for(var lr in A)G(A,lr)&&(rr&&String(Number(lr))===lr&&lr<A.length||F&&Ar["$"+lr]instanceof Symbol||(q.call(/[^\w$]/,lr)?ar.push(w(lr,A)+": "+w(A[lr],A)):ar.push(lr+": "+w(A[lr],A))));if(typeof R=="function")for(var wr=0;wr<W.length;wr++)er.call(A,W[wr])&&ar.push("["+w(W[wr])+"]: "+w(A[W[wr]],A));return ar}return La}var ja,Af;function Sp(){if(Af)return ja;Af=1;var r=me(),e=Br(),t=function(u,g,_){for(var b=u,c;(c=b.next)!=null;b=c)if(c.key===g)return b.next=c.next,_||(c.next=u.next,u.next=c),c},n=function(u,g){if(u){var _=t(u,g);return _&&_.value}},a=function(u,g,_){var b=t(u,g);b?b.value=_:u.next={key:g,next:u.next,value:_}},i=function(u,g){return u?!!t(u,g):!1},o=function(u,g){if(u)return t(u,g,!0)};return ja=function(){var g,_={assert:function(b){if(!_.has(b))throw new e("Side channel does not contain "+r(b))},delete:function(b){var c=g&&g.next,v=o(g,b);return v&&c&&c===v&&(g=void 0),!!v},get:function(b){return n(g,b)},has:function(b){return i(g,b)},set:function(b,c){g||(g={next:void 0}),a(g,b,c)}};return _},ja}var Ba,wf;function $c(){return wf||(wf=1,Ba=Object),Ba}var Na,Of;function qp(){return Of||(Of=1,Na=Error),Na}var Ga,Rf;function Ap(){return Rf||(Rf=1,Ga=EvalError),Ga}var Ua,Tf;function wp(){return Tf||(Tf=1,Ua=RangeError),Ua}var Ha,If;function Op(){return If||(If=1,Ha=ReferenceError),Ha}var $a,Pf;function Rp(){return Pf||(Pf=1,$a=SyntaxError),$a}var Va,Cf;function Tp(){return Cf||(Cf=1,Va=URIError),Va}var Ka,Ef;function Ip(){return Ef||(Ef=1,Ka=Math.abs),Ka}var za,Mf;function Pp(){return Mf||(Mf=1,za=Math.floor),za}var Wa,xf;function Cp(){return xf||(xf=1,Wa=Math.max),Wa}var ka,Df;function Ep(){return Df||(Df=1,ka=Math.min),ka}var Qa,Ff;function Mp(){return Ff||(Ff=1,Qa=Math.pow),Qa}var Ja,Lf;function xp(){return Lf||(Lf=1,Ja=Math.round),Ja}var Xa,jf;function Dp(){return jf||(jf=1,Xa=Number.isNaN||function(e){return e!==e}),Xa}var Ya,Bf;function Fp(){if(Bf)return Ya;Bf=1;var r=Dp();return Ya=function(t){return r(t)||t===0?t:t<0?-1:1},Ya}var Za,Nf;function Lp(){return Nf||(Nf=1,Za=Object.getOwnPropertyDescriptor),Za}var ri,Gf;function Vc(){if(Gf)return ri;Gf=1;var r=Lp();if(r)try{r([],"length")}catch{r=null}return ri=r,ri}var ei,Uf;function jp(){if(Uf)return ei;Uf=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return ei=r,ei}var ti,Hf;function Bp(){return Hf||(Hf=1,ti=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==a||u.enumerable!==!0)return!1}return!0}),ti}var ni,$f;function Np(){if($f)return ni;$f=1;var r=typeof Symbol<"u"&&Symbol,e=Bp();return ni=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ni}var ai,Vf;function Kc(){return Vf||(Vf=1,ai=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ai}var ii,Kf;function zc(){if(Kf)return ii;Kf=1;var r=$c();return ii=r.getPrototypeOf||null,ii}var oi,zf;function Gp(){if(zf)return oi;zf=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(g,_){for(var b=[],c=0;c<g.length;c+=1)b[c]=g[c];for(var v=0;v<_.length;v+=1)b[v+g.length]=_[v];return b},i=function(g,_){for(var b=[],c=_,v=0;c<g.length;c+=1,v+=1)b[v]=g[c];return b},o=function(u,g){for(var _="",b=0;b<u.length;b+=1)_+=u[b],b+1<u.length&&(_+=g);return _};return oi=function(g){var _=this;if(typeof _!="function"||e.apply(_)!==n)throw new TypeError(r+_);for(var b=i(arguments,1),c,v=function(){if(this instanceof c){var h=_.apply(this,a(b,arguments));return Object(h)===h?h:this}return _.apply(g,a(b,arguments))},s=t(0,_.length-b.length),l=[],d=0;d<s;d++)l[d]="$"+d;if(c=Function("binder","return function ("+o(l,",")+"){ return binder.apply(this,arguments); }")(v),_.prototype){var f=function(){};f.prototype=_.prototype,c.prototype=new f,f.prototype=null}return c},oi}var ui,Wf;function Se(){if(Wf)return ui;Wf=1;var r=Gp();return ui=Function.prototype.bind||r,ui}var si,kf;function Vi(){return kf||(kf=1,si=Function.prototype.call),si}var fi,Qf;function Wc(){return Qf||(Qf=1,fi=Function.prototype.apply),fi}var ci,Jf;function Up(){return Jf||(Jf=1,ci=typeof Reflect<"u"&&Reflect&&Reflect.apply),ci}var li,Xf;function Hp(){if(Xf)return li;Xf=1;var r=Se(),e=Wc(),t=Vi(),n=Up();return li=n||r.call(t,e),li}var hi,Yf;function kc(){if(Yf)return hi;Yf=1;var r=Se(),e=Br(),t=Vi(),n=Hp();return hi=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},hi}var pi,Zf;function $p(){if(Zf)return pi;Zf=1;var r=kc(),e=Vc(),t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!t&&e&&e(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return pi=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(u){return i(u==null?u:a(u))}:!1,pi}var vi,rc;function Vp(){if(rc)return vi;rc=1;var r=Kc(),e=zc(),t=$p();return vi=r?function(a){return r(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:t?function(a){return t(a)}:null,vi}var yi,ec;function Kp(){if(ec)return yi;ec=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Se();return yi=t.call(r,e),yi}var di,tc;function Ki(){if(tc)return di;tc=1;var r,e=$c(),t=qp(),n=Ap(),a=wp(),i=Op(),o=Rp(),u=Br(),g=Tp(),_=Ip(),b=Pp(),c=Cp(),v=Ep(),s=Mp(),l=xp(),d=Fp(),f=Function,h=function(z){try{return f('"use strict"; return ('+z+").constructor;")()}catch{}},m=Vc(),O=jp(),S=function(){throw new u},y=m?function(){try{return arguments.callee,S}catch{try{return m(arguments,"callee").get}catch{return S}}}():S,q=Np()(),p=Vp(),T=zc(),I=Kc(),C=Wc(),P=Vi(),R={},H=typeof Uint8Array>"u"||!p?r:p(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":q&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&p?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!p?r:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!p?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&p?p(""[Symbol.iterator]()):r,"%Symbol%":q?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":H,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":C,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":T,"%Math.abs%":_,"%Math.floor%":b,"%Math.max%":c,"%Math.min%":v,"%Math.pow%":s,"%Math.round%":l,"%Math.sign%":d,"%Reflect.getPrototypeOf%":I};if(p)try{null.error}catch(z){var K=p(p(z));F["%Error.prototype%"]=K}var er=function z(L){var U;if(L==="%AsyncFunction%")U=h("async function () {}");else if(L==="%GeneratorFunction%")U=h("function* () {}");else if(L==="%AsyncGeneratorFunction%")U=h("async function* () {}");else if(L==="%AsyncGenerator%"){var $=z("%AsyncGeneratorFunction%");$&&(U=$.prototype)}else if(L==="%AsyncIteratorPrototype%"){var X=z("%AsyncGenerator%");X&&p&&(U=p(X.prototype))}return F[L]=U,U},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=Se(),Z=Kp(),x=E.call(P,Array.prototype.concat),D=E.call(C,Array.prototype.splice),B=E.call(P,String.prototype.replace),M=E.call(P,String.prototype.slice),j=E.call(P,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,J=function(L){var U=M(L,0,1),$=M(L,-1);if(U==="%"&&$!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if($==="%"&&U!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var X=[];return B(L,k,function(Y,N,tr,G){X[X.length]=tr?B(G,V,"$1"):N||Y}),X},nr=function(L,U){var $=L,X;if(Z(Q,$)&&(X=Q[$],$="%"+X[0]+"%"),Z(F,$)){var Y=F[$];if(Y===R&&(Y=er($)),typeof Y>"u"&&!U)throw new u("intrinsic "+L+" exists, but is not available. Please file an issue!");return{alias:X,name:$,value:Y}}throw new o("intrinsic "+L+" does not exist!")};return di=function(L,U){if(typeof L!="string"||L.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof U!="boolean")throw new u('"allowMissing" argument must be a boolean');if(j(/^%?[^%]*%?$/,L)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=J(L),X=$.length>0?$[0]:"",Y=nr("%"+X+"%",U),N=Y.name,tr=Y.value,G=!1,or=Y.alias;or&&(X=or[0],D($,x([0,1],or)));for(var cr=1,gr=!0;cr<$.length;cr+=1){var sr=$[cr],fr=M(sr,0,1),ur=M(sr,-1);if((fr==='"'||fr==="'"||fr==="`"||ur==='"'||ur==="'"||ur==="`")&&fr!==ur)throw new o("property names with quotes must have matching quotes");if((sr==="constructor"||!gr)&&(G=!0),X+="."+sr,N="%"+X+"%",Z(F,N))tr=F[N];else if(tr!=null){if(!(sr in tr)){if(!U)throw new u("base intrinsic for "+L+" exists, but the property is not available.");return}if(m&&cr+1>=$.length){var vr=m(tr,sr);gr=!!vr,gr&&"get"in vr&&!("originalValue"in vr.get)?tr=vr.get:tr=tr[sr]}else gr=Z(tr,sr),tr=tr[sr];gr&&!G&&(F[N]=tr)}}return tr},di}var gi,nc;function Qc(){if(nc)return gi;nc=1;var r=Ki(),e=kc(),t=e([r("%String.prototype.indexOf%")]);return gi=function(a,i){var o=r(a,!!i);return typeof o=="function"&&t(a,".prototype.")>-1?e([o]):o},gi}var _i,ac;function Jc(){if(ac)return _i;ac=1;var r=Ki(),e=Qc(),t=me(),n=Br(),a=r("%Map%",!0),i=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),u=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),_=e("Map.prototype.size",!0);return _i=!!a&&function(){var c,v={assert:function(s){if(!v.has(s))throw new n("Side channel does not contain "+t(s))},delete:function(s){if(c){var l=g(c,s);return _(c)===0&&(c=void 0),l}return!1},get:function(s){if(c)return i(c,s)},has:function(s){return c?u(c,s):!1},set:function(s,l){c||(c=new a),o(c,s,l)}};return v},_i}var bi,ic;function zp(){if(ic)return bi;ic=1;var r=Ki(),e=Qc(),t=me(),n=Jc(),a=Br(),i=r("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),u=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),_=e("WeakMap.prototype.delete",!0);return bi=i?function(){var c,v,s={assert:function(l){if(!s.has(l))throw new a("Side channel does not contain "+t(l))},delete:function(l){if(i&&l&&(typeof l=="object"||typeof l=="function")){if(c)return _(c,l)}else if(n&&v)return v.delete(l);return!1},get:function(l){return i&&l&&(typeof l=="object"||typeof l=="function")&&c?o(c,l):v&&v.get(l)},has:function(l){return i&&l&&(typeof l=="object"||typeof l=="function")&&c?g(c,l):!!v&&v.has(l)},set:function(l,d){i&&l&&(typeof l=="object"||typeof l=="function")?(c||(c=new i),u(c,l,d)):n&&(v||(v=n()),v.set(l,d))}};return s}:n,bi}var mi,oc;function Wp(){if(oc)return mi;oc=1;var r=Br(),e=me(),t=Sp(),n=Jc(),a=zp(),i=a||n||t;return mi=function(){var u,g={assert:function(_){if(!g.has(_))throw new r("Side channel does not contain "+e(_))},delete:function(_){return!!u&&u.delete(_)},get:function(_){return u&&u.get(_)},has:function(_){return!!u&&u.has(_)},set:function(_,b){u||(u=i()),u.set(_,b)}};return g},mi}var Si,uc;function zi(){if(uc)return Si;uc=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Si={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Si}var qi,sc;function Xc(){if(sc)return qi;sc=1;var r=zi(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var f=[],h=0;h<256;++h)f.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return f}(),a=function(h){for(;h.length>1;){var m=h.pop(),O=m.obj[m.prop];if(t(O)){for(var S=[],y=0;y<O.length;++y)typeof O[y]<"u"&&S.push(O[y]);m.obj[m.prop]=S}}},i=function(h,m){for(var O=m&&m.plainObjects?{__proto__:null}:{},S=0;S<h.length;++S)typeof h[S]<"u"&&(O[S]=h[S]);return O},o=function f(h,m,O){if(!m)return h;if(typeof m!="object"&&typeof m!="function"){if(t(h))h.push(m);else if(h&&typeof h=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,m))&&(h[m]=!0);else return[h,m];return h}if(!h||typeof h!="object")return[h].concat(m);var S=h;return t(h)&&!t(m)&&(S=i(h,O)),t(h)&&t(m)?(m.forEach(function(y,q){if(e.call(h,q)){var p=h[q];p&&typeof p=="object"&&y&&typeof y=="object"?h[q]=f(p,y,O):h.push(y)}else h[q]=y}),h):Object.keys(m).reduce(function(y,q){var p=m[q];return e.call(y,q)?y[q]=f(y[q],p,O):y[q]=p,y},S)},u=function(h,m){return Object.keys(m).reduce(function(O,S){return O[S]=m[S],O},h)},g=function(f,h,m){var O=f.replace(/\+/g," ");if(m==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},_=1024,b=function(h,m,O,S,y){if(h.length===0)return h;var q=h;if(typeof h=="symbol"?q=Symbol.prototype.toString.call(h):typeof h!="string"&&(q=String(h)),O==="iso-8859-1")return escape(q).replace(/%u[0-9a-f]{4}/gi,function(H){return"%26%23"+parseInt(H.slice(2),16)+"%3B"});for(var p="",T=0;T<q.length;T+=_){for(var I=q.length>=_?q.slice(T,T+_):q,C=[],P=0;P<I.length;++P){var R=I.charCodeAt(P);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||y===r.RFC1738&&(R===40||R===41)){C[C.length]=I.charAt(P);continue}if(R<128){C[C.length]=n[R];continue}if(R<2048){C[C.length]=n[192|R>>6]+n[128|R&63];continue}if(R<55296||R>=57344){C[C.length]=n[224|R>>12]+n[128|R>>6&63]+n[128|R&63];continue}P+=1,R=65536+((R&1023)<<10|I.charCodeAt(P)&1023),C[C.length]=n[240|R>>18]+n[128|R>>12&63]+n[128|R>>6&63]+n[128|R&63]}p+=C.join("")}return p},c=function(h){for(var m=[{obj:{o:h},prop:"o"}],O=[],S=0;S<m.length;++S)for(var y=m[S],q=y.obj[y.prop],p=Object.keys(q),T=0;T<p.length;++T){var I=p[T],C=q[I];typeof C=="object"&&C!==null&&O.indexOf(C)===-1&&(m.push({obj:q,prop:I}),O.push(C))}return a(m),h},v=function(h){return Object.prototype.toString.call(h)==="[object RegExp]"},s=function(h){return!h||typeof h!="object"?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},l=function(h,m){return[].concat(h,m)},d=function(h,m){if(t(h)){for(var O=[],S=0;S<h.length;S+=1)O.push(m(h[S]));return O}return m(h)};return qi={arrayToObject:i,assign:u,combine:l,compact:c,decode:g,encode:b,isBuffer:s,isRegExp:v,maybeMap:d,merge:o},qi}var Ai,fc;function kp(){if(fc)return Ai;fc=1;var r=Wp(),e=Xc(),t=zi(),n=Object.prototype.hasOwnProperty,a={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,h){return f+"["+h+"]"},repeat:function(f){return f}},i=Array.isArray,o=Array.prototype.push,u=function(d,f){o.apply(d,i(f)?f:[f])},g=Date.prototype.toISOString,_=t.default,b={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:_,formatter:t.formatters[_],indices:!1,serializeDate:function(f){return g.call(f)},skipNulls:!1,strictNullHandling:!1},c=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},v={},s=function d(f,h,m,O,S,y,q,p,T,I,C,P,R,H,F,K,er,Q){for(var E=f,Z=Q,x=0,D=!1;(Z=Z.get(v))!==void 0&&!D;){var B=Z.get(f);if(x+=1,typeof B<"u"){if(B===x)throw new RangeError("Cyclic object value");D=!0}typeof Z.get(v)>"u"&&(x=0)}if(typeof I=="function"?E=I(h,E):E instanceof Date?E=R(E):m==="comma"&&i(E)&&(E=e.maybeMap(E,function(N){return N instanceof Date?R(N):N})),E===null){if(y)return T&&!K?T(h,b.encoder,er,"key",H):h;E=""}if(c(E)||e.isBuffer(E)){if(T){var M=K?h:T(h,b.encoder,er,"key",H);return[F(M)+"="+F(T(E,b.encoder,er,"value",H))]}return[F(h)+"="+F(String(E))]}var j=[];if(typeof E>"u")return j;var k;if(m==="comma"&&i(E))K&&T&&(E=e.maybeMap(E,T)),k=[{value:E.length>0?E.join(",")||null:void 0}];else if(i(I))k=I;else{var V=Object.keys(E);k=C?V.sort(C):V}var J=p?String(h).replace(/\./g,"%2E"):String(h),nr=O&&i(E)&&E.length===1?J+"[]":J;if(S&&i(E)&&E.length===0)return nr+"[]";for(var z=0;z<k.length;++z){var L=k[z],U=typeof L=="object"&&L&&typeof L.value<"u"?L.value:E[L];if(!(q&&U===null)){var $=P&&p?String(L).replace(/\./g,"%2E"):String(L),X=i(E)?typeof m=="function"?m(nr,$):nr:nr+(P?"."+$:"["+$+"]");Q.set(f,x);var Y=r();Y.set(v,Q),u(j,d(U,X,m,O,S,y,q,p,m==="comma"&&K&&i(E)?null:T,I,C,P,R,H,F,K,er,Y))}}return j},l=function(f){if(!f)return b;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var h=f.charset||b.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=t.default;if(typeof f.format<"u"){if(!n.call(t.formatters,f.format))throw new TypeError("Unknown format option provided.");m=f.format}var O=t.formatters[m],S=b.filter;(typeof f.filter=="function"||i(f.filter))&&(S=f.filter);var y;if(f.arrayFormat in a?y=f.arrayFormat:"indices"in f?y=f.indices?"indices":"repeat":y=b.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var q=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:b.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:b.addQueryPrefix,allowDots:q,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:b.allowEmptyArrays,arrayFormat:y,charset:h,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:b.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?b.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:b.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:b.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:b.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:b.encodeValuesOnly,filter:S,format:m,formatter:O,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:b.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:b.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:b.strictNullHandling}};return Ai=function(d,f){var h=d,m=l(f),O,S;typeof m.filter=="function"?(S=m.filter,h=S("",h)):i(m.filter)&&(S=m.filter,O=S);var y=[];if(typeof h!="object"||h===null)return"";var q=a[m.arrayFormat],p=q==="comma"&&m.commaRoundTrip;O||(O=Object.keys(h)),m.sort&&O.sort(m.sort);for(var T=r(),I=0;I<O.length;++I){var C=O[I],P=h[C];m.skipNulls&&P===null||u(y,s(P,C,q,p,m.allowEmptyArrays,m.strictNullHandling,m.skipNulls,m.encodeDotInKeys,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,T))}var R=y.join(m.delimiter),H=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?H+="utf8=%26%2310003%3B&":H+="utf8=%E2%9C%93&"),R.length>0?H+R:""},Ai}var wi,cc;function Qp(){if(cc)return wi;cc=1;var r=Xc(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(v){return v.replace(/&#(\d+);/g,function(s,l){return String.fromCharCode(parseInt(l,10))})},i=function(v,s,l){if(v&&typeof v=="string"&&s.comma&&v.indexOf(",")>-1)return v.split(",");if(s.throwOnLimitExceeded&&l>=s.arrayLimit)throw new RangeError("Array limit exceeded. Only "+s.arrayLimit+" element"+(s.arrayLimit===1?"":"s")+" allowed in an array.");return v},o="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",g=function(s,l){var d={__proto__:null},f=l.ignoreQueryPrefix?s.replace(/^\?/,""):s;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=l.parameterLimit===1/0?void 0:l.parameterLimit,m=f.split(l.delimiter,l.throwOnLimitExceeded?h+1:h);if(l.throwOnLimitExceeded&&m.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(h===1?"":"s")+" allowed.");var O=-1,S,y=l.charset;if(l.charsetSentinel)for(S=0;S<m.length;++S)m[S].indexOf("utf8=")===0&&(m[S]===u?y="utf-8":m[S]===o&&(y="iso-8859-1"),O=S,S=m.length);for(S=0;S<m.length;++S)if(S!==O){var q=m[S],p=q.indexOf("]="),T=p===-1?q.indexOf("="):p+1,I,C;T===-1?(I=l.decoder(q,n.decoder,y,"key"),C=l.strictNullHandling?null:""):(I=l.decoder(q.slice(0,T),n.decoder,y,"key"),C=r.maybeMap(i(q.slice(T+1),l,t(d[I])?d[I].length:0),function(R){return l.decoder(R,n.decoder,y,"value")})),C&&l.interpretNumericEntities&&y==="iso-8859-1"&&(C=a(String(C))),q.indexOf("[]=")>-1&&(C=t(C)?[C]:C);var P=e.call(d,I);P&&l.duplicates==="combine"?d[I]=r.combine(d[I],C):(!P||l.duplicates==="last")&&(d[I]=C)}return d},_=function(v,s,l,d){var f=0;if(v.length>0&&v[v.length-1]==="[]"){var h=v.slice(0,-1).join("");f=Array.isArray(s)&&s[h]?s[h].length:0}for(var m=d?s:i(s,l,f),O=v.length-1;O>=0;--O){var S,y=v[O];if(y==="[]"&&l.parseArrays)S=l.allowEmptyArrays&&(m===""||l.strictNullHandling&&m===null)?[]:r.combine([],m);else{S=l.plainObjects?{__proto__:null}:{};var q=y.charAt(0)==="["&&y.charAt(y.length-1)==="]"?y.slice(1,-1):y,p=l.decodeDotInKeys?q.replace(/%2E/g,"."):q,T=parseInt(p,10);!l.parseArrays&&p===""?S={0:m}:!isNaN(T)&&y!==p&&String(T)===p&&T>=0&&l.parseArrays&&T<=l.arrayLimit?(S=[],S[T]=m):p!=="__proto__"&&(S[p]=m)}m=S}return m},b=function(s,l,d,f){if(s){var h=d.allowDots?s.replace(/\.([^.[]+)/g,"[$1]"):s,m=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,S=d.depth>0&&m.exec(h),y=S?h.slice(0,S.index):h,q=[];if(y){if(!d.plainObjects&&e.call(Object.prototype,y)&&!d.allowPrototypes)return;q.push(y)}for(var p=0;d.depth>0&&(S=O.exec(h))!==null&&p<d.depth;){if(p+=1,!d.plainObjects&&e.call(Object.prototype,S[1].slice(1,-1))&&!d.allowPrototypes)return;q.push(S[1])}if(S){if(d.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+d.depth+" and strictDepth is true");q.push("["+h.slice(S.index)+"]")}return _(q,l,d,f)}},c=function(s){if(!s)return n;if(typeof s.allowEmptyArrays<"u"&&typeof s.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof s.decodeDotInKeys<"u"&&typeof s.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(s.decoder!==null&&typeof s.decoder<"u"&&typeof s.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof s.charset<"u"&&s.charset!=="utf-8"&&s.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof s.throwOnLimitExceeded<"u"&&typeof s.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var l=typeof s.charset>"u"?n.charset:s.charset,d=typeof s.duplicates>"u"?n.duplicates:s.duplicates;if(d!=="combine"&&d!=="first"&&d!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var f=typeof s.allowDots>"u"?s.decodeDotInKeys===!0?!0:n.allowDots:!!s.allowDots;return{allowDots:f,allowEmptyArrays:typeof s.allowEmptyArrays=="boolean"?!!s.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof s.allowPrototypes=="boolean"?s.allowPrototypes:n.allowPrototypes,allowSparse:typeof s.allowSparse=="boolean"?s.allowSparse:n.allowSparse,arrayLimit:typeof s.arrayLimit=="number"?s.arrayLimit:n.arrayLimit,charset:l,charsetSentinel:typeof s.charsetSentinel=="boolean"?s.charsetSentinel:n.charsetSentinel,comma:typeof s.comma=="boolean"?s.comma:n.comma,decodeDotInKeys:typeof s.decodeDotInKeys=="boolean"?s.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof s.decoder=="function"?s.decoder:n.decoder,delimiter:typeof s.delimiter=="string"||r.isRegExp(s.delimiter)?s.delimiter:n.delimiter,depth:typeof s.depth=="number"||s.depth===!1?+s.depth:n.depth,duplicates:d,ignoreQueryPrefix:s.ignoreQueryPrefix===!0,interpretNumericEntities:typeof s.interpretNumericEntities=="boolean"?s.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof s.parameterLimit=="number"?s.parameterLimit:n.parameterLimit,parseArrays:s.parseArrays!==!1,plainObjects:typeof s.plainObjects=="boolean"?s.plainObjects:n.plainObjects,strictDepth:typeof s.strictDepth=="boolean"?!!s.strictDepth:n.strictDepth,strictNullHandling:typeof s.strictNullHandling=="boolean"?s.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof s.throwOnLimitExceeded=="boolean"?s.throwOnLimitExceeded:!1}};return wi=function(v,s){var l=c(s);if(v===""||v===null||typeof v>"u")return l.plainObjects?{__proto__:null}:{};for(var d=typeof v=="string"?g(v,l):v,f=l.plainObjects?{__proto__:null}:{},h=Object.keys(d),m=0;m<h.length;++m){var O=h[m],S=b(O,d[O],l,typeof v=="string");f=r.merge(f,S,l)}return l.allowSparse===!0?f:r.compact(f)},wi}var Oi,lc;function Jp(){if(lc)return Oi;lc=1;var r=kp(),e=Qp(),t=zi();return Oi={formats:t,parse:e,stringify:r},Oi}var hc;function Xp(){if(hc)return Ir;hc=1;var r=mp();function e(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
5
+ `," "],o=["{","}","|","\\","^","`"].concat(i),u=["'"].concat(o),g=["%","/","?",";","#"].concat(u),_=["/","?","#"],b=255,c=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,s={javascript:!0,"javascript:":!0},l={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=Jp();function h(y,q,p){if(y&&typeof y=="object"&&y instanceof e)return y;var T=new e;return T.parse(y,q,p),T}e.prototype.parse=function(y,q,p){if(typeof y!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var T=y.indexOf("?"),I=T!==-1&&T<y.indexOf("#")?"?":"#",C=y.split(I),P=/\\/g;C[0]=C[0].replace(P,"/"),y=C.join(I);var R=y;if(R=R.trim(),!p&&y.split("#").length===1){var H=a.exec(R);if(H)return this.path=R,this.href=R,this.pathname=H[1],H[2]?(this.search=H[2],q?this.query=f.parse(this.search.substr(1)):this.query=this.search.substr(1)):q&&(this.search="",this.query={}),this}var F=t.exec(R);if(F){F=F[0];var K=F.toLowerCase();this.protocol=K,R=R.substr(F.length)}if(p||F||R.match(/^\/\/[^@/]+@[^@/]+/)){var er=R.substr(0,2)==="//";er&&!(F&&l[F])&&(R=R.substr(2),this.slashes=!0)}if(!l[F]&&(er||F&&!d[F])){for(var Q=-1,E=0;E<_.length;E++){var Z=R.indexOf(_[E]);Z!==-1&&(Q===-1||Z<Q)&&(Q=Z)}var x,D;Q===-1?D=R.lastIndexOf("@"):D=R.lastIndexOf("@",Q),D!==-1&&(x=R.slice(0,D),R=R.slice(D+1),this.auth=decodeURIComponent(x)),Q=-1;for(var E=0;E<g.length;E++){var Z=R.indexOf(g[E]);Z!==-1&&(Q===-1||Z<Q)&&(Q=Z)}Q===-1&&(Q=R.length),this.host=R.slice(0,Q),R=R.slice(Q),this.parseHost(),this.hostname=this.hostname||"";var B=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!B)for(var M=this.hostname.split(/\./),E=0,j=M.length;E<j;E++){var k=M[E];if(k&&!k.match(c)){for(var V="",J=0,nr=k.length;J<nr;J++)k.charCodeAt(J)>127?V+="x":V+=k[J];if(!V.match(c)){var z=M.slice(0,E),L=M.slice(E+1),U=k.match(v);U&&(z.push(U[1]),L.unshift(U[2])),L.length&&(R="/"+L.join(".")+R),this.hostname=z.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var $=this.port?":"+this.port:"",X=this.hostname||"";this.host=X+$,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!s[K])for(var E=0,j=u.length;E<j;E++){var Y=u[E];if(R.indexOf(Y)!==-1){var N=encodeURIComponent(Y);N===Y&&(N=escape(Y)),R=R.split(Y).join(N)}}var tr=R.indexOf("#");tr!==-1&&(this.hash=R.substr(tr),R=R.slice(0,tr));var G=R.indexOf("?");if(G!==-1?(this.search=R.substr(G),this.query=R.substr(G+1),q&&(this.query=f.parse(this.query)),R=R.slice(0,G)):q&&(this.search="",this.query={}),R&&(this.pathname=R),d[K]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",or=this.search||"";this.path=$+or}return this.href=this.format(),this};function m(y){return typeof y=="string"&&(y=h(y)),y instanceof e?y.format():e.prototype.format.call(y)}e.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var q=this.protocol||"",p=this.pathname||"",T=this.hash||"",I=!1,C="";this.host?I=y+this.host:this.hostname&&(I=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(C=f.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var P=this.search||C&&"?"+C||"";return q&&q.substr(-1)!==":"&&(q+=":"),this.slashes||(!q||d[q])&&I!==!1?(I="//"+(I||""),p&&p.charAt(0)!=="/"&&(p="/"+p)):I||(I=""),T&&T.charAt(0)!=="#"&&(T="#"+T),P&&P.charAt(0)!=="?"&&(P="?"+P),p=p.replace(/[?#]/g,function(R){return encodeURIComponent(R)}),P=P.replace("#","%23"),q+I+p+P+T};function O(y,q){return h(y,!1,!0).resolve(q)}e.prototype.resolve=function(y){return this.resolveObject(h(y,!1,!0)).format()};function S(y,q){return y?h(y,!1,!0).resolveObject(q):q}return e.prototype.resolveObject=function(y){if(typeof y=="string"){var q=new e;q.parse(y,!1,!0),y=q}for(var p=new e,T=Object.keys(this),I=0;I<T.length;I++){var C=T[I];p[C]=this[C]}if(p.hash=y.hash,y.href==="")return p.href=p.format(),p;if(y.slashes&&!y.protocol){for(var P=Object.keys(y),R=0;R<P.length;R++){var H=P[R];H!=="protocol"&&(p[H]=y[H])}return d[p.protocol]&&p.hostname&&!p.pathname&&(p.pathname="/",p.path=p.pathname),p.href=p.format(),p}if(y.protocol&&y.protocol!==p.protocol){if(!d[y.protocol]){for(var F=Object.keys(y),K=0;K<F.length;K++){var er=F[K];p[er]=y[er]}return p.href=p.format(),p}if(p.protocol=y.protocol,!y.host&&!l[y.protocol]){for(var j=(y.pathname||"").split("/");j.length&&!(y.host=j.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),j[0]!==""&&j.unshift(""),j.length<2&&j.unshift(""),p.pathname=j.join("/")}else p.pathname=y.pathname;if(p.search=y.search,p.query=y.query,p.host=y.host||"",p.auth=y.auth,p.hostname=y.hostname||y.host,p.port=y.port,p.pathname||p.search){var Q=p.pathname||"",E=p.search||"";p.path=Q+E}return p.slashes=p.slashes||y.slashes,p.href=p.format(),p}var Z=p.pathname&&p.pathname.charAt(0)==="/",x=y.host||y.pathname&&y.pathname.charAt(0)==="/",D=x||Z||p.host&&y.pathname,B=D,M=p.pathname&&p.pathname.split("/")||[],j=y.pathname&&y.pathname.split("/")||[],k=p.protocol&&!d[p.protocol];if(k&&(p.hostname="",p.port=null,p.host&&(M[0]===""?M[0]=p.host:M.unshift(p.host)),p.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(j[0]===""?j[0]=y.host:j.unshift(y.host)),y.host=null),D=D&&(j[0]===""||M[0]==="")),x)p.host=y.host||y.host===""?y.host:p.host,p.hostname=y.hostname||y.hostname===""?y.hostname:p.hostname,p.search=y.search,p.query=y.query,M=j;else if(j.length)M||(M=[]),M.pop(),M=M.concat(j),p.search=y.search,p.query=y.query;else if(y.search!=null){if(k){p.host=M.shift(),p.hostname=p.host;var V=p.host&&p.host.indexOf("@")>0?p.host.split("@"):!1;V&&(p.auth=V.shift(),p.hostname=V.shift(),p.host=p.hostname)}return p.search=y.search,p.query=y.query,(p.pathname!==null||p.search!==null)&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.href=p.format(),p}if(!M.length)return p.pathname=null,p.search?p.path="/"+p.search:p.path=null,p.href=p.format(),p;for(var J=M.slice(-1)[0],nr=(p.host||y.host||M.length>1)&&(J==="."||J==="..")||J==="",z=0,L=M.length;L>=0;L--)J=M[L],J==="."?M.splice(L,1):J===".."?(M.splice(L,1),z++):z&&(M.splice(L,1),z--);if(!D&&!B)for(;z--;z)M.unshift("..");D&&M[0]!==""&&(!M[0]||M[0].charAt(0)!=="/")&&M.unshift(""),nr&&M.join("/").substr(-1)!=="/"&&M.push("");var U=M[0]===""||M[0]&&M[0].charAt(0)==="/";if(k){p.hostname=U?"":M.length?M.shift():"",p.host=p.hostname;var V=p.host&&p.host.indexOf("@")>0?p.host.split("@"):!1;V&&(p.auth=V.shift(),p.hostname=V.shift(),p.host=p.hostname)}return D=D||p.host&&M.length,D&&!U&&M.unshift(""),M.length>0?p.pathname=M.join("/"):(p.pathname=null,p.path=null),(p.pathname!==null||p.search!==null)&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.auth=y.auth||p.auth,p.slashes=p.slashes||y.slashes,p.href=p.format(),p},e.prototype.parseHost=function(){var y=this.host,q=n.exec(y);q&&(q=q[0],q!==":"&&(this.port=q.substr(1)),y=y.substr(0,y.length-q.length)),y&&(this.hostname=y)},Ir.parse=h,Ir.resolve=O,Ir.resolveObject=S,Ir.format=m,Ir.Url=e,Ir}var pc;function Yp(){if(pc)return pr;pc=1;var r=pr&&pr.__extends||function(){var _=function(b,c){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,s){v.__proto__=s}||function(v,s){for(var l in s)s.hasOwnProperty(l)&&(v[l]=s[l])},_(b,c)};return function(b,c){_(b,c);function v(){this.constructor=b}b.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}(),e=pr&&pr.__createBinding||(Object.create?function(_,b,c,v){v===void 0&&(v=c),Object.defineProperty(_,v,{enumerable:!0,get:function(){return b[c]}})}:function(_,b,c,v){v===void 0&&(v=c),_[v]=b[c]}),t=pr&&pr.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),n=pr&&pr.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var c in _)c!=="default"&&Object.hasOwnProperty.call(_,c)&&e(b,_,c);return t(b,_),b};Object.defineProperty(pr,"__esModule",{value:!0});var a=_p(),i=n(Xp());function o(_){var b=i.parse(_);return b.protocol===null&&b.host===null&&b.port===null}function u(_,b){var c=i.parse(_),v=i.parse(b);return c.protocol===v.protocol&&c.hostname===v.hostname&&c.port===v.port}var g=function(_){r(b,_);function b(){return _!==null&&_.apply(this,arguments)||this}return b.prototype._initCanvas=function(){var c=this.image,v=this._canvas=document.createElement("canvas"),s=this._context=v.getContext("2d");v.className="vibrant-canvas",v.style.display="none",this._width=v.width=c.width,this._height=v.height=c.height,s.drawImage(c,0,0),document.body.appendChild(v)},b.prototype.load=function(c){var v=this,s=null,l=null;if(typeof c=="string")s=document.createElement("img"),!o(c)&&!u(window.location.href,c)&&(s.crossOrigin="anonymous"),l=s.src=c;else if(c instanceof HTMLImageElement)s=c,l=c.src;else return Promise.reject(new Error("Cannot load buffer as an image in browser"));return this.image=s,new Promise(function(d,f){var h=function(){v._initCanvas(),d(v)};s.complete?h():(s.onload=h,s.onerror=function(m){return f(new Error("Fail to load image: "+l))})})},b.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},b.prototype.update=function(c){this._context.putImageData(c,0,0)},b.prototype.getWidth=function(){return this._width},b.prototype.getHeight=function(){return this._height},b.prototype.resize=function(c,v,s){var l=this,d=l._canvas,f=l._context,h=l.image;this._width=d.width=c,this._height=d.height=v,f.scale(s,s),f.drawImage(h,0,0)},b.prototype.getPixelCount=function(){return this._width*this._height},b.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},b.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},b}(a.ImageBase);return pr.default=g,pr}var $r,vc;function Zp(){if(vc)return $r;vc=1;var r=$r&&$r.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},e=r(Hc()),t=r(Yp());return e.default.DefaultOpts.ImageClass=t.default,$r=e.default,$r}var rv=Zp();const ev=ol(rv);function uv(r,e){yc(e,!0);const[t,n]=nl(),a=()=>no(sl,"$api",t),i=()=>no(ul,"$socket",t);let o=ie(e,"playing",15,null),u=ie(e,"polling",3,!1),g=ie(e,"pollingTime",3,5e3),_=ie(e,"activate",15),b=Ti(Qr({}));Ri(()=>{Object.entries(Or(b)).forEach(([d,f])=>{document.documentElement.style.setProperty(d,f)})});async function c(d){var m,O,S,y,q;const f=new Image;f.crossOrigin="Anonymous",f.src=d;const h=await ev.from(f).getPalette();return h?{"--color-1":(m=h.LightVibrant)==null?void 0:m.hex,"--color-2":(O=h.DarkVibrant)==null?void 0:O.hex,"--color-3":(S=h.Muted)==null?void 0:S.hex,"--color-bg":(y=h.DarkMuted)==null?void 0:y.hex,"--color-highlight":(q=h.Vibrant)==null?void 0:q.hex}:{}}async function v(d){var f,h,m,O;((f=d==null?void 0:d.track)==null?void 0:f.uri)!==((m=(h=o())==null?void 0:h.track)==null?void 0:m.uri)&&(O=d==null?void 0:d.track)!=null&&O.normalised&&Vr(b,Qr(await c(d.track.normalised.image.low.url))),o(d)}async function s(){const d=await a().info();v(d)}function l(){const d=async()=>{await s(),f.current=window.setTimeout(d,g())},f={current:0};return d(),()=>{clearTimeout(f.current)}}Ri(()=>{var d;if(u())return l();(d=i())==null||d.on("info",f=>{v(f)}),_(s)}),dc(),n()}export{ov as I,uv as P};
@@ -0,0 +1 @@
1
+ import{c as d,j as g,u as l,k as i,b as m,m as b,o as p,p as k,s as v,t as h}from"./CDVeMiAl.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>k(s.s);if(n){let o=0,t={};const _=v(()=>{let c=!1;const r=s.s;for(const a in r)r[a]!==t[a]&&(t[a]=r[a],c=!0);return c&&o++,o});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),i(e.b)}),l(()=>{const o=m(()=>e.m.map(b));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&l(()=>{u(s,f),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}h();export{x as i};
@@ -0,0 +1,2 @@
1
+  �����E�Gb�L�5�i�l�Js���W`�lv��6���
2
+ D�;���WC��6R����peW��J�u�;�F�������;V�""i�r�v��f��9��Ku�m|m���v�X���b�IQ�Qb�g>����)�����ɨ"��k&��l)��9���
@@ -0,0 +1 @@
1
+ var jn=Array.isArray,Qt=Array.prototype.indexOf,Un=Array.from,Vn=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,Wt=Object.getOwnPropertyDescriptors,Gn=Object.prototype,$n=Array.prototype,Xt=Object.getPrototypeOf;function zn(t){return typeof t=="function"}const F=()=>{};function Kn(t){return t()}function ct(t){for(var n=0;n<t.length;n++)t[n]()}const g=2,mt=4,tt=8,_t=16,x=32,M=64,$=128,w=256,z=512,E=1024,O=2048,q=4096,L=8192,nt=16384,tn=32768,At=65536,Zn=1<<17,nn=1<<19,bt=1<<20,Et=Symbol("$state"),Jn=Symbol("legacy props"),Qn=Symbol("");function xt(t){return t===this.v}function It(t,n){return t!=t?n==n:t!==n||t!==null&&typeof t=="object"||typeof t=="function"}function Wn(t,n){return t!==n}function Rt(t){return!It(t,this.v)}function rn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function an(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function tr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function nr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let rt=!1;function er(){rt=!0}const sr=1,ar=2,lr=4,ur=8,or=16,ir=1,fr=2,cr=4,_r=8,vr=16,pr=1,hr=2,dr=4,Er=1,wr=2,on="[",fn="[!",cn="]",Ot={},yr=Symbol(),gr="http://www.w3.org/1999/xhtml";function St(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function _n(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let c=null;function wt(t){c=t}function Tr(t){return vn().get(t)}function mr(t,n=!1,r){c={p:c,c:null,e:null,m:!1,s:t,x:null,l:null},rt&&!n&&(c.l={s:null,u:null,r1:[],r2:vt(!1)})}function Ar(t){const n=c;if(n!==null){const l=n.e;if(l!==null){var r=_,e=o;n.e=null;try{for(var s=0;s<l.length;s++){var a=l[s];Q(a.effect),J(a.reaction),Mt(a.fn)}}finally{Q(r),J(e)}}c=n.p,n.m=!0}return{}}function et(){return!rt||c!==null&&c.l===null}function vn(t){return c===null&&_n(),c.c??(c.c=new Map(pn(c)||void 0))}function pn(t){let n=t.p;for(;n!==null;){const r=n.c;if(r!==null)return r;n=n.p}return null}function vt(t,n){var r={f:0,v:t,reactions:null,equals:xt,rv:0,wv:0};return r}function br(t){return hn(vt(t))}function xr(t,n=!1){var e;const r=vt(t);return n||(r.equals=Rt),rt&&c!==null&&c.l!==null&&((e=c.l).s??(e.s=[])).push(r),r}function hn(t){return o!==null&&!y&&(o.f&g)!==0&&(m===null?On([t]):m.push(t)),t}function Ir(t,n){return o!==null&&!y&&et()&&(o.f&(g|_t))!==0&&(m===null||!m.includes(t))&&un(),dn(t,n)}function dn(t,n){return t.equals(n)||(t.v,t.v=n,t.wv=Gt(),Nt(t,O),et()&&_!==null&&(_.f&E)!==0&&(_.f&(x|M))===0&&(b===null?Sn([t]):b.push(t))),n}function Nt(t,n){var r=t.reactions;if(r!==null)for(var e=et(),s=r.length,a=0;a<s;a++){var l=r[a],u=l.f;(u&O)===0&&(!e&&l===_||(A(l,n),(u&(E|w))!==0&&((u&g)!==0?Nt(l,q):at(l))))}}let N=!1;function Rr(t){N=t}let T;function B(t){if(t===null)throw St(),Ot;return T=t}function Or(){return B(k(T))}function Sr(t){if(N){if(k(T)!==null)throw St(),Ot;T=t}}function Nr(t=1){if(N){for(var n=t,r=T;n--;)r=k(r);T=r}}function Dr(){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===cn){if(t===0)return n;t-=1}else(r===on||r===fn)&&(t+=1)}var e=k(n);n.remove(),n=e}}var yt,En,wn,Dt,kt;function kr(){if(yt===void 0){yt=window,En=document,wn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,n=Node.prototype;Dt=dt(n,"firstChild").get,kt=dt(n,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0}}function ut(t=""){return document.createTextNode(t)}function ot(t){return Dt.call(t)}function k(t){return kt.call(t)}function Cr(t,n){if(!N)return ot(t);var r=ot(T);if(r===null)r=T.appendChild(ut());else if(n&&r.nodeType!==3){var e=ut();return r==null||r.before(e),B(e),e}return B(r),r}function Pr(t,n){if(!N){var r=ot(t);return r instanceof Comment&&r.data===""?k(r):r}return T}function Fr(t,n=1,r=!1){let e=N?T:t;for(var s;n--;)s=e,e=k(e);if(!N)return e;var a=e==null?void 0:e.nodeType;if(r&&a!==3){var l=ut();return e===null?s==null||s.after(l):e.before(l),B(l),l}return B(e),e}function Lr(t){t.textContent=""}function Ct(t){var n=g|O,r=o!==null&&(o.f&g)!==0?o:null;return _===null||r!==null&&(r.f&w)!==0?n|=w:_.f|=bt,{ctx:c,deps:null,effects:null,equals:xt,f:n,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??_}}function Mr(t){const n=Ct(t);return n.equals=Rt,n}function Pt(t){var n=t.effects;if(n!==null){t.effects=null;for(var r=0;r<n.length;r+=1)D(n[r])}}function yn(t){for(var n=t.parent;n!==null;){if((n.f&g)===0)return n;n=n.parent}return null}function gn(t){var n,r=_;Q(yn(t));try{Pt(t),n=zt(t)}finally{Q(r)}return n}function Ft(t){var n=gn(t),r=(R||(t.f&w)!==0)&&t.deps!==null?q:E;A(t,r),t.equals(n)||(t.v=n,t.wv=Gt())}function Lt(t){_===null&&o===null&&sn(),o!==null&&(o.f&w)!==0&&_===null&&en(),pt&&rn()}function Tn(t,n){var r=n.last;r===null?n.last=n.first=t:(r.next=t,t.prev=r,n.last=t)}function Y(t,n,r,e=!0){var s=_,a={ctx:c,deps:null,nodes_start:null,nodes_end:null,f:t|O,first:null,fn:n,last:null,next:null,parent:s,prev:null,teardown:null,transitions:null,wv:0};if(r)try{ht(a),a.f|=tn}catch(f){throw D(a),f}else n!==null&&at(a);var l=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(bt|$))===0;if(!l&&e&&(s!==null&&Tn(a,s),o!==null&&(o.f&g)!==0)){var u=o;(u.effects??(u.effects=[])).push(a)}return a}function qr(t){const n=Y(tt,null,!1);return A(n,E),n.teardown=t,n}function Yr(t){Lt();var n=_!==null&&(_.f&x)!==0&&c!==null&&!c.m;if(n){var r=c;(r.e??(r.e=[])).push({fn:t,effect:_,reaction:o})}else{var e=Mt(t);return e}}function Hr(t){return Lt(),mn(t)}function Br(t){const n=Y(M,t,!0);return(r={})=>new Promise(e=>{r.outro?xn(n,()=>{D(n),e(void 0)}):(D(n),e(void 0))})}function Mt(t){return Y(mt,t,!1)}function mn(t){return Y(tt,t,!0)}function jr(t,n=[],r=Ct){const e=n.map(r);return An(()=>t(...e.map(Mn)))}function An(t,n=0){return Y(tt|_t|n,t,!0)}function Ur(t,n=!0){return Y(tt|x,t,!0,n)}function qt(t){var n=t.teardown;if(n!==null){const r=pt,e=o;Tt(!0),J(null);try{n.call(null)}finally{Tt(r),J(e)}}}function Yt(t,n=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var e=r.next;(r.f&M)!==0?r.parent=null:D(r,n),r=e}}function bn(t){for(var n=t.first;n!==null;){var r=n.next;(n.f&x)===0&&D(n),n=r}}function D(t,n=!0){var r=!1;if((n||(t.f&nn)!==0)&&t.nodes_start!==null){for(var e=t.nodes_start,s=t.nodes_end;e!==null;){var a=e===s?null:k(e);e.remove(),e=a}r=!0}Yt(t,n&&!r),X(t,0),A(t,nt);var l=t.transitions;if(l!==null)for(const f of l)f.stop();qt(t);var u=t.parent;u!==null&&u.first!==null&&Ht(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ht(t){var n=t.parent,r=t.prev,e=t.next;r!==null&&(r.next=e),e!==null&&(e.prev=r),n!==null&&(n.first===t&&(n.first=e),n.last===t&&(n.last=r))}function xn(t,n){var r=[];Bt(t,r,!0),In(r,()=>{D(t),n&&n()})}function In(t,n){var r=t.length;if(r>0){var e=()=>--r||n();for(var s of t)s.out(e)}else n()}function Bt(t,n,r){if((t.f&L)===0){if(t.f^=L,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&n.push(l);for(var e=t.first;e!==null;){var s=e.next,a=(e.f&At)!==0||(e.f&x)!==0;Bt(e,n,a?r:!1),e=s}}}function Vr(t){jt(t,!0)}function jt(t,n){if((t.f&L)!==0){t.f^=L,(t.f&E)===0&&(t.f^=E),U(t)&&(A(t,O),at(t));for(var r=t.first;r!==null;){var e=r.next,s=(r.f&At)!==0||(r.f&x)!==0;jt(r,s?n:!1),r=e}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&a.in()}}let j=[],it=[];function Ut(){var t=j;j=[],ct(t)}function Rn(){var t=it;it=[],ct(t)}function Gr(t){j.length===0&&queueMicrotask(Ut),j.push(t)}function gt(){j.length>0&&Ut(),it.length>0&&Rn()}let G=!1,K=!1,Z=null,S=!1,pt=!1;function Tt(t){pt=t}let H=[];let o=null,y=!1;function J(t){o=t}let _=null;function Q(t){_=t}let m=null;function On(t){m=t}let h=null,d=0,b=null;function Sn(t){b=t}let Vt=1,W=0,R=!1;function Gt(){return++Vt}function U(t){var v;var n=t.f;if((n&O)!==0)return!0;if((n&q)!==0){var r=t.deps,e=(n&w)!==0;if(r!==null){var s,a,l=(n&z)!==0,u=e&&_!==null&&!R,f=r.length;if(l||u){var i=t,I=i.parent;for(s=0;s<f;s++)a=r[s],(l||!((v=a==null?void 0:a.reactions)!=null&&v.includes(i)))&&(a.reactions??(a.reactions=[])).push(i);l&&(i.f^=z),u&&I!==null&&(I.f&w)===0&&(i.f^=w)}for(s=0;s<f;s++)if(a=r[s],U(a)&&Ft(a),a.wv>t.wv)return!0}(!e||_!==null&&!R)&&A(t,E)}return!1}function Nn(t,n){for(var r=n;r!==null;){if((r.f&$)!==0)try{r.fn(t);return}catch{r.f^=$}r=r.parent}throw G=!1,t}function Dn(t){return(t.f&nt)===0&&(t.parent===null||(t.parent.f&$)===0)}function st(t,n,r,e){if(G){if(r===null&&(G=!1),Dn(n))throw t;return}r!==null&&(G=!0);{Nn(t,n);return}}function $t(t,n,r=!0){var e=t.reactions;if(e!==null)for(var s=0;s<e.length;s++){var a=e[s];(a.f&g)!==0?$t(a,n,!1):n===a&&(r?A(a,O):(a.f&E)!==0&&A(a,q),at(a))}}function zt(t){var V;var n=h,r=d,e=b,s=o,a=R,l=m,u=c,f=y,i=t.f;h=null,d=0,b=null,R=(i&w)!==0&&(y||!S||o===null),o=(i&(x|M))===0?t:null,m=null,wt(t.ctx),y=!1,W++;try{var I=(0,t.fn)(),v=t.deps;if(h!==null){var p;if(X(t,d),v!==null&&d>0)for(v.length=d+h.length,p=0;p<h.length;p++)v[d+p]=h[p];else t.deps=v=h;if(!R)for(p=d;p<v.length;p++)((V=v[p]).reactions??(V.reactions=[])).push(t)}else v!==null&&d<v.length&&(X(t,d),v.length=d);if(et()&&b!==null&&!y&&v!==null&&(t.f&(g|q|O))===0)for(p=0;p<b.length;p++)$t(b[p],t);return s!==null&&W++,I}finally{h=n,d=r,b=e,o=s,R=a,m=l,wt(u),y=f}}function kn(t,n){let r=n.reactions;if(r!==null){var e=Qt.call(r,t);if(e!==-1){var s=r.length-1;s===0?r=n.reactions=null:(r[e]=r[s],r.pop())}}r===null&&(n.f&g)!==0&&(h===null||!h.includes(n))&&(A(n,q),(n.f&(w|z))===0&&(n.f^=z),Pt(n),X(n,0))}function X(t,n){var r=t.deps;if(r!==null)for(var e=n;e<r.length;e++)kn(t,r[e])}function ht(t){var n=t.f;if((n&nt)===0){A(t,E);var r=_,e=c,s=S;_=t,S=!0;try{(n&_t)!==0?bn(t):Yt(t),qt(t);var a=zt(t);t.teardown=typeof a=="function"?a:null,t.wv=Vt;var l=t.deps,u}catch(f){st(f,t,r,e||t.ctx)}finally{S=s,_=r}}}function Cn(){try{an()}catch(t){if(Z!==null)st(t,Z,null);else throw t}}function Kt(){var t=S;try{var n=0;for(S=!0;H.length>0;){n++>1e3&&Cn();var r=H,e=r.length;H=[];for(var s=0;s<e;s++){var a=Fn(r[s]);Pn(a)}}}finally{K=!1,S=t,Z=null}}function Pn(t){var n=t.length;if(n!==0)for(var r=0;r<n;r++){var e=t[r];if((e.f&(nt|L))===0)try{U(e)&&(ht(e),e.deps===null&&e.first===null&&e.nodes_start===null&&(e.teardown===null?Ht(e):e.fn=null))}catch(s){st(s,e,null,e.ctx)}}}function at(t){K||(K=!0,queueMicrotask(Kt));for(var n=Z=t;n.parent!==null;){n=n.parent;var r=n.f;if((r&(M|x))!==0){if((r&E)===0)return;n.f^=E}}H.push(n)}function Fn(t){for(var n=[],r=t;r!==null;){var e=r.f,s=(e&(x|M))!==0,a=s&&(e&E)!==0;if(!a&&(e&L)===0){if((e&mt)!==0)n.push(r);else if(s)r.f^=E;else{var l=o;try{o=r,U(r)&&ht(r)}catch(i){st(i,r,null,r.ctx)}finally{o=l}}var u=r.first;if(u!==null){r=u;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}return n}function Ln(t){var n;for(gt();H.length>0;)K=!0,Kt(),gt();return n}async function $r(){await Promise.resolve(),Ln()}function Mn(t){var n=t.f,r=(n&g)!==0;if(o!==null&&!y){m!==null&&m.includes(t)&&ln();var e=o.deps;t.rv<W&&(t.rv=W,h===null&&e!==null&&e[d]===t?d++:h===null?h=[t]:(!R||!h.includes(t))&&h.push(t))}else if(r&&t.deps===null&&t.effects===null){var s=t,a=s.parent;a!==null&&(a.f&w)===0&&(s.f^=w)}return r&&(s=t,U(s)&&Ft(s)),t.v}function qn(t){var n=y;try{return y=!0,t()}finally{y=n}}const Yn=-7169;function A(t,n){t.f=t.f&Yn|n}function zr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Et in t)ft(t);else if(!Array.isArray(t))for(let n in t){const r=t[n];typeof r=="object"&&r&&Et in r&&ft(r)}}}function ft(t,n=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!n.has(t)){n.add(t),t instanceof Date&&t.getTime();for(let e in t)try{ft(t[e],n)}catch{}const r=Xt(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=Wt(r);for(let s in e){const a=e[s].get;if(a)try{a.call(t)}catch{}}}}}function Zt(t,n,r){if(t==null)return n(void 0),r&&r(void 0),F;const e=qn(()=>t.subscribe(n,r));return e.unsubscribe?()=>e.unsubscribe():e}const P=[];function Hn(t,n){return{subscribe:Bn(t,n).subscribe}}function Bn(t,n=F){let r=null;const e=new Set;function s(u){if(It(t,u)&&(t=u,r)){const f=!P.length;for(const i of e)i[1](),P.push(i,t);if(f){for(let i=0;i<P.length;i+=2)P[i][0](P[i+1]);P.length=0}}}function a(u){s(u(t))}function l(u,f=F){const i=[u,f];return e.add(i),e.size===1&&(r=n(s,a)||F),u(t),()=>{e.delete(i),e.size===0&&r&&(r(),r=null)}}return{set:s,update:a,subscribe:l}}function Kr(t,n,r){const e=!Array.isArray(t),s=e?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return Hn(r,(l,u)=>{let f=!1;const i=[];let I=0,v=F;const p=()=>{if(I)return;v();const C=n(e?i[0]:i,l,u);a?l(C):v=typeof C=="function"?C:F},V=s.map((C,lt)=>Zt(C,Jt=>{i[lt]=Jt,I&=~(1<<lt),f&&p()},()=>{I|=1<<lt}));return f=!0,p(),function(){ct(V),v(),f=!1}})}function Zr(t){let n;return Zt(t,r=>n=r)(),n}export{qr as $,Sr as A,Fr as B,Or as C,et as D,At as E,Wn as F,It as G,xn as H,Ir as I,br as J,Gn as K,$n as L,vt as M,rr as N,dt as O,_ as P,nr as Q,Xt as R,Et as S,jn as T,yr as U,on as V,fn as W,Dr as X,B as Y,Rr as Z,Vr as _,rt as a,Vn as a0,xr as a1,Zt as a2,Zr as a3,tr as a4,Zn as a5,Mr as a6,cr as a7,Rt as a8,_r as a9,Xn as aA,Lr as aB,Un as aC,Br as aD,Tr as aE,Nr as aF,En as aG,L as aH,ar as aI,dn as aJ,Bt as aK,In as aL,sr as aM,or as aN,lr as aO,ur as aP,gr as aQ,Wt as aR,Qn as aS,Bn as aT,Kr as aU,Jn as aa,fr as ab,ir as ac,vr as ad,zn as ae,Ln as af,$r as ag,_t as ah,tn as ai,dr as aj,pr as ak,hr as al,J as am,Q as an,o as ao,ut as ap,nn as aq,k as ar,ot as as,wn as at,Er as au,wr as av,kr as aw,Ot as ax,cn as ay,St as az,qn as b,c,An as d,Mt as e,Ur as f,D as g,N as h,T as i,Hr as j,ct as k,_n as l,Kn as m,F as n,Mn as o,zr as p,Gr as q,mn as r,Ct as s,er as t,Yr as u,mr as v,Pr as w,jr as x,Ar as y,Cr as z};
@@ -0,0 +1 @@
1
+ import{S as A,K as x,L as z,M as w,N as Q,o as y,U as g,I as P,O as m,P as W,Q as X,R as J,T as k,d as ee,h as Y,C as re,E as ne,V as te,W as se,X as ie,Y as ae,Z as q,_ as j,f as B,H as C,i as fe,$ as ue,a0 as le,n as $,a1 as G,a2 as ce,a3 as oe,a4 as ve,a5 as de,s as H,a6 as _e,a7 as be,a8 as ge,b as Z,a9 as pe,aa as V,a as Pe,ab as ye,ac as he,ad as we,ae as N}from"./CDVeMiAl.js";function S(e,r=null,i){if(typeof e!="object"||e===null||A in e)return e;const n=J(e);if(n!==x&&n!==z)return e;var s=new Map,o=k(e),b=w(0);o&&s.set("length",w(e.length));var p;return new Proxy(e,{defineProperty(l,t,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&X();var u=s.get(t);return u===void 0?(u=w(a.value),s.set(t,u)):P(u,S(a.value,p)),!0},deleteProperty(l,t){var a=s.get(t);if(a===void 0)t in l&&s.set(t,w(g));else{if(o&&typeof t=="string"){var u=s.get("length"),f=Number(t);Number.isInteger(f)&&f<u.v&&P(u,f)}P(a,g),F(b)}return!0},get(l,t,a){var d;if(t===A)return e;var u=s.get(t),f=t in l;if(u===void 0&&(!f||(d=m(l,t))!=null&&d.writable)&&(u=w(S(f?l[t]:g,p)),s.set(t,u)),u!==void 0){var c=y(u);return c===g?void 0:c}return Reflect.get(l,t,a)},getOwnPropertyDescriptor(l,t){var a=Reflect.getOwnPropertyDescriptor(l,t);if(a&&"value"in a){var u=s.get(t);u&&(a.value=y(u))}else if(a===void 0){var f=s.get(t),c=f==null?void 0:f.v;if(f!==void 0&&c!==g)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,t){var c;if(t===A)return!0;var a=s.get(t),u=a!==void 0&&a.v!==g||Reflect.has(l,t);if(a!==void 0||W!==null&&(!u||(c=m(l,t))!=null&&c.writable)){a===void 0&&(a=w(u?S(l[t],p):g),s.set(t,a));var f=y(a);if(f===g)return!1}return u},set(l,t,a,u){var I;var f=s.get(t),c=t in l;if(o&&t==="length")for(var d=a;d<f.v;d+=1){var h=s.get(d+"");h!==void 0?P(h,g):d in l&&(h=w(g),s.set(d+"",h))}f===void 0?(!c||(I=m(l,t))!=null&&I.writable)&&(f=w(void 0),P(f,S(a,p)),s.set(t,f)):(c=f.v!==g,P(f,S(a,p)));var _=Reflect.getOwnPropertyDescriptor(l,t);if(_!=null&&_.set&&_.set.call(u,a),!c){if(o&&typeof t=="string"){var O=s.get("length"),E=Number(t);Number.isInteger(E)&&E>=O.v&&P(O,E+1)}F(b)}return!0},ownKeys(l){y(b);var t=Reflect.ownKeys(l).filter(f=>{var c=s.get(f);return c===void 0||c.v!==g});for(var[a,u]of s)u.v!==g&&!(a in l)&&t.push(a);return t},setPrototypeOf(){Q()}})}function F(e,r=1){P(e,e.v+r)}function Oe(e,r,[i,n]=[0,0]){Y&&i===0&&re();var s=e,o=null,b=null,p=g,l=i>0?ne:0,t=!1;const a=(f,c=!0)=>{t=!0,u(c,f)},u=(f,c)=>{if(p===(p=f))return;let d=!1;if(Y&&n!==-1){if(i===0){const _=s.data;_===te?n=0:_===se?n=1/0:(n=parseInt(_.substring(1)),n!==n&&(n=p?1/0:-1))}const h=n>i;!!p===h&&(s=ie(),ae(s),q(!1),d=!0,n=-1)}p?(o?j(o):c&&(o=B(()=>c(s))),b&&C(b,()=>{b=null})):(b?j(b):c&&(b=B(()=>c(s,[i+1,n]))),o&&C(o,()=>{o=null})),d&&q(!0)};ee(()=>{t=!1,r(a),t||u(null,null)},l),Y&&(s=fe)}let D=!1,K=Symbol();function Ee(e,r,i){const n=i[r]??(i[r]={store:null,source:G(void 0),unsubscribe:$});if(n.store!==e&&!(K in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=$;else{var s=!0;n.unsubscribe=ce(e,o=>{s?n.source.v=o:P(n.source,o)}),s=!1}return e&&K in i?oe(e):y(n.source)}function Te(){const e={};function r(){ue(()=>{for(var i in e)e[i].unsubscribe();le(e,K,{enumerable:!1,value:!0})})}return[e,r]}function Ie(e){var r=D;try{return D=!1,[e(),D]}finally{D=r}}const Re={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Ne(e,r,i){return new Proxy({props:e,exclude:r},Re)}const Se={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(N(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let s=e.props[n];N(s)&&(s=s());const o=m(s,r);if(o&&o.set)return o.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(N(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const s=m(n,r);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,r){if(r===A||r===V)return!1;for(let i of e.props)if(N(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props){N(i)&&(i=i());for(const n in i)r.includes(n)||r.push(n)}return r}};function Ae(...e){return new Proxy({props:e},Se)}function De(e,r,i,n){var M;var s=(i&he)!==0,o=!Pe||(i&ye)!==0,b=(i&pe)!==0,p=(i&we)!==0,l=!1,t;b?[t,l]=Ie(()=>e[r]):t=e[r];var a=A in e||V in e,u=b&&(((M=m(e,r))==null?void 0:M.set)??(a&&r in e&&(v=>e[r]=v)))||void 0,f=n,c=!0,d=!1,h=()=>(d=!0,c&&(c=!1,p?f=Z(n):f=n),f);t===void 0&&n!==void 0&&(u&&o&&ve(),t=h(),u&&u(t));var _;if(o)_=()=>{var v=e[r];return v===void 0?h():(c=!0,d=!1,v)};else{var O=(s?H:_e)(()=>e[r]);O.f|=de,_=()=>{var v=y(O);return v!==void 0&&(f=void 0),v===void 0?f:v}}if((i&be)===0)return _;if(u){var E=e.$$legacy;return function(v,R){return arguments.length>0?((!o||!R||E||l)&&u(R?_():v),v):_()}}var I=!1,L=G(t),T=H(()=>{var v=_(),R=y(L);return I?(I=!1,R):L.v=v});return s||(T.equals=ge),function(v,R){if(arguments.length>0){const U=R?y(T):o&&b?S(v):v;return T.equals(U)||(I=!0,P(L,U),d&&f!==void 0&&(f=U),Z(()=>y(T))),v}return y(T)}}export{Ee as a,De as b,Ae as c,Oe as i,S as p,Ne as r,Te as s};
@@ -0,0 +1,4 @@
1
+ import{e as Z,b as q,r as rt,p as nt,G as it,P as X,E as at,ah as st,ai as ot,aj as ft,ak as ut,ae as ht,q as vt,n as H,al as lt,am as z,an as Y,ao as gt,u as dt}from"./CDVeMiAl.js";import{d as ct,w as pt}from"./qSIFE6bv.js";import{b as mt,r as Et,g as wt}from"./DGTGMr-5.js";function Rt(f,o,l){Z(()=>{var h=q(()=>o(f,l==null?void 0:l())||{});if(l&&(h!=null&&h.update)){var d=!1,E={};rt(()=>{var u=l();nt(u),d&&it(E,u)&&(E=u,h.update(u))}),d=!0}if(h!=null&&h.destroy)return()=>h.destroy()})}const Tt=()=>performance.now(),k={tick:f=>requestAnimationFrame(f),now:()=>Tt(),tasks:new Set};function j(){const f=k.now();k.tasks.forEach(o=>{o.c(f)||(k.tasks.delete(o),o.f())}),k.tasks.size!==0&&k.tick(j)}function _t(f){let o;return k.tasks.size===0&&k.tick(j),{promise:new Promise(l=>{k.tasks.add(o={c:f,f:l})}),abort(){k.tasks.delete(o)}}}function G(f,o){pt(()=>{f.dispatchEvent(new CustomEvent(o))})}function Lt(f){if(f==="float")return"cssFloat";if(f==="offset")return"cssOffset";if(f.startsWith("--"))return f;const o=f.split("-");return o.length===1?o[0]:o[0]+o.slice(1).map(l=>l[0].toUpperCase()+l.slice(1)).join("")}function J(f){const o={},l=f.split(";");for(const h of l){const[d,E]=h.split(":");if(!d||E===void 0)break;const u=Lt(d.trim());o[u]=E.trim()}return o}const Dt=f=>f;function kt(f,o,l){var h=mt,d,E,u,p=null;h.a??(h.a={element:f,measure(){d=this.element.getBoundingClientRect()},apply(){if(u==null||u.abort(),E=this.element.getBoundingClientRect(),d.left!==E.left||d.right!==E.right||d.top!==E.top||d.bottom!==E.bottom){const m=o()(this.element,{from:d,to:E},l==null?void 0:l());u=U(this.element,m,void 0,1,()=>{u==null||u.abort(),u=void 0})}},fix(){if(!f.getAnimations().length){var{position:m,width:B,height:T}=getComputedStyle(f);if(m!=="absolute"&&m!=="fixed"){var D=f.style;p={position:D.position,width:D.width,height:D.height,transform:D.transform},D.position="absolute",D.width=B,D.height=T;var _=f.getBoundingClientRect();if(d.left!==_.left||d.top!==_.top){var L=`translate(${d.left-_.left}px, ${d.top-_.top}px)`;D.transform=D.transform?`${D.transform} ${L}`:L}}}},unfix(){if(p){var m=f.style;m.position=p.position,m.width=p.width,m.height=p.height,m.transform=p.transform}}}),h.a.element=f}function It(f,o,l,h){var d=(f&ut)!==0,E=(f&lt)!==0,u=d&&E,p=(f&ft)!==0,m=u?"both":d?"in":"out",B,T=o.inert,D=o.style.overflow,_,L;function e(){var a=gt,v=X;z(null),Y(null);try{return B??(B=l()(o,(h==null?void 0:h())??{},{direction:m}))}finally{z(a),Y(v)}}var t={is_global:p,in(){var a;if(o.inert=T,!d){L==null||L.abort(),(a=L==null?void 0:L.reset)==null||a.call(L);return}E||_==null||_.abort(),G(o,"introstart"),_=U(o,e(),L,1,()=>{G(o,"introend"),_==null||_.abort(),_=B=void 0,o.style.overflow=D})},out(a){if(!E){a==null||a(),B=void 0;return}o.inert=!0,G(o,"outrostart"),L=U(o,e(),_,0,()=>{G(o,"outroend"),a==null||a()})},stop:()=>{_==null||_.abort(),L==null||L.abort()}},i=X;if((i.transitions??(i.transitions=[])).push(t),d&&ct){var r=p;if(!r){for(var n=i.parent;n&&(n.f&at)!==0;)for(;(n=n.parent)&&(n.f&st)===0;);r=!n||(n.f&ot)!==0}r&&Z(()=>{q(()=>t.in())})}}function U(f,o,l,h,d){var E=h===1;if(ht(o)){var u,p=!1;return vt(()=>{if(!p){var i=o({direction:E?"in":"out"});u=U(f,i,l,h,d)}}),{abort:()=>{p=!0,u==null||u.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(l==null||l.deactivate(),!(o!=null&&o.duration))return d(),{abort:H,deactivate:H,reset:H,t:()=>h};const{delay:m=0,css:B,tick:T,easing:D=Dt}=o;var _=[];if(E&&l===void 0&&(T&&T(0,1),B)){var L=J(B(0,1));_.push(L,L)}var e=()=>1-h,t=f.animate(_,{duration:m});return t.onfinish=()=>{var i=(l==null?void 0:l.t())??1-h;l==null||l.abort();var r=h-i,n=o.duration*Math.abs(r),a=[];if(n>0){var v=!1;if(B)for(var s=Math.ceil(n/16.666666666666668),g=0;g<=s;g+=1){var w=i+r*D(g/s),c=J(B(w,1-w));a.push(c),v||(v=c.overflow==="hidden")}v&&(f.style.overflow="hidden"),e=()=>{var A=t.currentTime;return i+r*D(A/n)},T&&_t(()=>{if(t.playState!=="running")return!1;var A=e();return T(A,1-A),!0})}t=f.animate(a,{duration:n,fill:"forwards"}),t.onfinish=()=>{e=()=>h,T==null||T(h,1-h),d()}},{abort:()=>{t&&(t.cancel(),t.effect=null,t.onfinish=H)},deactivate:()=>{d=H},reset:()=>{h===0&&(T==null||T(1,0))},t:()=>e()}}var $={exports:{}},V;function Bt(){return V||(V=1,function(f){function o(e){this.mode=h.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,i=this.data.length;t<i;t++){var r=[],n=this.data.charCodeAt(t);n>65536?(r[0]=240|(n&1835008)>>>18,r[1]=128|(n&258048)>>>12,r[2]=128|(n&4032)>>>6,r[3]=128|n&63):n>2048?(r[0]=224|(n&61440)>>>12,r[1]=128|(n&4032)>>>6,r[2]=128|n&63):n>128?(r[0]=192|(n&1984)>>>6,r[1]=128|n&63):r[0]=n,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}o.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,i=this.parsedData.length;t<i;t++)e.put(this.parsedData[t],8)}};function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}l.prototype={addData:function(e){var t=new o(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var i=-1;i<=7;i++)if(!(e+i<=-1||this.moduleCount<=e+i))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=i&&i<=6&&(r==0||r==6)||0<=r&&r<=6&&(i==0||i==6)||2<=i&&i<=4&&2<=r&&r<=4?this.modules[e+i][t+r]=!0:this.modules[e+i][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;i<8;i++){this.makeImpl(!0,i);var r=u.getLostPoint(this);(i==0||e>r)&&(e=r,t=i)}return t},createMovieClip:function(e,t,i){var r=e.createEmptyMovieClip(t,i),n=1;this.make();for(var a=0;a<this.modules.length;a++)for(var v=a*n,s=0;s<this.modules[a].length;s++){var g=s*n,w=this.modules[a][s];w&&(r.beginFill(0,100),r.moveTo(g,v),r.lineTo(g+n,v),r.lineTo(g+n,v+n),r.lineTo(g,v+n),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=u.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var r=e[t],n=e[i];if(this.modules[r][n]==null)for(var a=-2;a<=2;a++)for(var v=-2;v<=2;v++)a==-2||a==2||v==-2||v==2||a==0&&v==0?this.modules[r+a][n+v]=!0:this.modules[r+a][n+v]=!1}},setupTypeNumber:function(e){for(var t=u.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=r}for(var i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=r}},setupTypeInfo:function(e,t){for(var i=this.errorCorrectLevel<<3|t,r=u.getBCHTypeInfo(i),n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(var n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,r=this.moduleCount-1,n=7,a=0,v=this.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(var s=0;s<2;s++)if(this.modules[r][v-s]==null){var g=!1;a<e.length&&(g=(e[a]>>>n&1)==1);var w=u.getMask(t,r,v-s);w&&(g=!g),this.modules[r][v-s]=g,n--,n==-1&&(a++,n=7)}if(r+=i,r<0||this.moduleCount<=r){r-=i,i=-i;break}}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,i){for(var r=T.getRSBlocks(e,t),n=new D,a=0;a<i.length;a++){var v=i[a];n.put(v.mode,4),n.put(v.getLength(),u.getLengthInBits(v.mode,e)),v.write(n)}for(var s=0,a=0;a<r.length;a++)s+=r[a].dataCount;if(n.getLengthInBits()>s*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+s*8+")");for(n.getLengthInBits()+4<=s*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=s*8||(n.put(l.PAD0,8),n.getLengthInBits()>=s*8));)n.put(l.PAD1,8);return l.createBytes(n,r)},l.createBytes=function(e,t){for(var i=0,r=0,n=0,a=new Array(t.length),v=new Array(t.length),s=0;s<t.length;s++){var g=t[s].dataCount,w=t[s].totalCount-g;r=Math.max(r,g),n=Math.max(n,w),a[s]=new Array(g);for(var c=0;c<a[s].length;c++)a[s][c]=255&e.buffer[c+i];i+=g;var A=u.getErrorCorrectPolynomial(w),M=new B(a[s],A.getLength()-1),R=M.mod(A);v[s]=new Array(A.getLength()-1);for(var c=0;c<v[s].length;c++){var y=c+R.getLength()-v[s].length;v[s][c]=y>=0?R.get(y):0}}for(var C=0,c=0;c<t.length;c++)C+=t[c].totalCount;for(var I=new Array(C),N=0,c=0;c<r;c++)for(var s=0;s<t.length;s++)c<a[s].length&&(I[N++]=a[s][c]);for(var c=0;c<n;c++)for(var s=0;s<t.length;s++)c<v[s].length&&(I[N++]=v[s][c]);return I};for(var h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},E={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},u={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;u.getBCHDigit(t)-u.getBCHDigit(u.G15)>=0;)t^=u.G15<<u.getBCHDigit(t)-u.getBCHDigit(u.G15);return(e<<10|t)^u.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;u.getBCHDigit(t)-u.getBCHDigit(u.G18)>=0;)t^=u.G18<<u.getBCHDigit(t)-u.getBCHDigit(u.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return u.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case E.PATTERN000:return(t+i)%2==0;case E.PATTERN001:return t%2==0;case E.PATTERN010:return i%3==0;case E.PATTERN011:return(t+i)%3==0;case E.PATTERN100:return(Math.floor(t/2)+Math.floor(i/3))%2==0;case E.PATTERN101:return t*i%2+t*i%3==0;case E.PATTERN110:return(t*i%2+t*i%3)%2==0;case E.PATTERN111:return(t*i%3+(t+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new B([1],0),i=0;i<e;i++)t=t.multiply(new B([1,p.gexp(i)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:return 8;case h.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,r=0;r<t;r++)for(var n=0;n<t;n++){for(var a=0,v=e.isDark(r,n),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var g=-1;g<=1;g++)n+g<0||t<=n+g||s==0&&g==0||v==e.isDark(r+s,n+g)&&a++;a>5&&(i+=3+a-5)}for(var r=0;r<t-1;r++)for(var n=0;n<t-1;n++){var w=0;e.isDark(r,n)&&w++,e.isDark(r+1,n)&&w++,e.isDark(r,n+1)&&w++,e.isDark(r+1,n+1)&&w++,(w==0||w==4)&&(i+=3)}for(var r=0;r<t;r++)for(var n=0;n<t-6;n++)e.isDark(r,n)&&!e.isDark(r,n+1)&&e.isDark(r,n+2)&&e.isDark(r,n+3)&&e.isDark(r,n+4)&&!e.isDark(r,n+5)&&e.isDark(r,n+6)&&(i+=40);for(var n=0;n<t;n++)for(var r=0;r<t-6;r++)e.isDark(r,n)&&!e.isDark(r+1,n)&&e.isDark(r+2,n)&&e.isDark(r+3,n)&&e.isDark(r+4,n)&&!e.isDark(r+5,n)&&e.isDark(r+6,n)&&(i+=40);for(var c=0,n=0;n<t;n++)for(var r=0;r<t;r++)e.isDark(r,n)&&c++;var A=Math.abs(100*c/t/t-50)/5;return i+=A*10,i}},p={glog:function(e){if(e<1)throw new Error("glog("+e+")");return p.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return p.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},m=0;m<8;m++)p.EXP_TABLE[m]=1<<m;for(var m=8;m<256;m++)p.EXP_TABLE[m]=p.EXP_TABLE[m-4]^p.EXP_TABLE[m-5]^p.EXP_TABLE[m-6]^p.EXP_TABLE[m-8];for(var m=0;m<255;m++)p.LOG_TABLE[p.EXP_TABLE[m]]=m;function B(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var i=0;i<e.length&&e[i]==0;)i++;this.num=new Array(e.length-i+t);for(var r=0;r<e.length-i;r++)this.num[r]=e[r+i]}B.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<e.getLength();r++)t[i+r]^=p.gexp(p.glog(this.get(i))+p.glog(e.get(r)));return new B(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=p.glog(this.get(0))-p.glog(e.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<e.getLength();r++)i[r]^=p.gexp(p.glog(e.get(r))+t);return new B(i,0).mod(e)}};function T(e,t){this.totalCount=e,this.dataCount=t}T.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T.getRSBlocks=function(e,t){var i=T.getRsBlockTable(e,t);if(i==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=i.length/3,n=[],a=0;a<r;a++)for(var v=i[a*3+0],s=i[a*3+1],g=i[a*3+2],w=0;w<v;w++)n.push(new T(s,g));return n},T.getRsBlockTable=function(e,t){switch(t){case d.L:return T.RS_BLOCK_TABLE[(e-1)*4+0];case d.M:return T.RS_BLOCK_TABLE[(e-1)*4+1];case d.Q:return T.RS_BLOCK_TABLE[(e-1)*4+2];case d.H:return T.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function D(){this.buffer=[],this.length=0}D.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var i=0;i<t;i++)this.putBit((e>>>t-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var _=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function L(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function i(g){switch(g){case"L":return d.L;case"M":return d.M;case"Q":return d.Q;case"H":return d.H;default:throw new Error("Unknwon error correction level: "+g)}}function r(g,w){for(var c=n(g),A=1,M=0,R=0,y=_.length;R<=y;R++){var C=_[R];if(!C)throw new Error("Content too long: expected "+M+" but got "+c);switch(w){case"L":M=C[0];break;case"M":M=C[1];break;case"Q":M=C[2];break;case"H":M=C[3];break;default:throw new Error("Unknwon error correction level: "+w)}if(c<=M)break;A++}if(A>_.length)throw new Error("Content too long");return A}function n(g){var w=encodeURI(g).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return w.length+(w.length!=g?3:0)}var a=this.options.content,v=r(a,this.options.ecl),s=i(this.options.ecl);this.qrcode=new l(v,s),this.qrcode.addData(a),this.qrcode.make()}L.prototype.svg=function(e){var t=this.options||{},i=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var r=typeof t.pretty<"u"?!!t.pretty:!0,n=r?" ":"",a=r?`\r
2
+ `:"",v=t.width,s=t.height,g=i.length,w=v/(g+2*t.padding),c=s/(g+2*t.padding),A=typeof t.join<"u"?!!t.join:!1,M=typeof t.swap<"u"?!!t.swap:!1,R=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,y=typeof t.predefined<"u"?!!t.predefined:!1,C=y?n+'<defs><path id="qrmodule" d="M0 0 h'+c+" v"+w+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+a:"",I=n+'<rect x="0" y="0" width="'+v+'" height="'+s+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+a,N="",K="",S=0;S<g;S++)for(var Q=0;Q<g;Q++){var tt=i[Q][S];if(tt){var P=Q*w+t.padding*w,x=S*c+t.padding*c;if(M){var et=P;P=x,x=et}if(A){var O=w+P,F=c+x;P=Number.isInteger(P)?Number(P):P.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),O=Number.isInteger(O)?Number(O):O.toFixed(2),F=Number.isInteger(F)?Number(F):F.toFixed(2),K+="M"+P+","+x+" V"+F+" H"+O+" V"+x+" H"+P+" Z "}else y?N+=n+'<use x="'+P.toString()+'" y="'+x.toString()+'" href="#qrmodule" />'+a:N+=n+'<rect x="'+P.toString()+'" y="'+x.toString()+'" width="'+w+'" height="'+c+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+a}}A&&(N=n+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+K+'" />');var b="";switch(e.container){case"svg":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"svg-viewbox":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+v+" "+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"g":b+='<g width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</g>";break;default:b+=(C+I+N).replace(/^\s+/,"");break}return b},L.prototype.save=function(e,t){var i=this.svg();typeof t!="function"&&(t=function(n,a){});try{var r=Et;r.writeFile(e,i,t)}catch(n){t(n)}},f.exports=L}($)),$.exports}var At=Bt();const Ct=wt(At),yt=(f,{url:o,...l})=>{dt(()=>{var h=new Ct({color:"currentColor",background:"transparent",padding:0,join:!0,container:"svg-viewbox",...l,content:o}).svg();return f.innerHTML=h,()=>{f.innerHTML=""}})},bt=f=>f;function Pt(f){const o=f-1;return o*o*o+1}function W(f){const o=typeof f=="string"&&f.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return o?[parseFloat(o[1]),o[2]||"px"]:[f,"px"]}function Ot(f,{delay:o=0,duration:l=400,easing:h=bt}={}){const d=+getComputedStyle(f).opacity;return{delay:o,duration:l,easing:h,css:E=>`opacity: ${E*d}`}}function Ft(f,{delay:o=0,duration:l=400,easing:h=Pt,x:d=0,y:E=0,opacity:u=0}={}){const p=getComputedStyle(f),m=+p.opacity,B=p.transform==="none"?"":p.transform,T=m*(1-u),[D,_]=W(d),[L,e]=W(E);return{delay:o,duration:l,easing:h,css:(t,i)=>`
3
+ transform: ${B} translate(${(1-t)*D}${_}, ${(1-t)*L}${e});
4
+ opacity: ${m-T*i}`}}export{Rt as a,Ft as b,kt as c,Ot as f,yt as q,It as t};
@@ -0,0 +1,2 @@
1
+ import{q as We,Y as te,h as T,as as wt,ap as Et,C as At,d as kt,o as Ce,a6 as Tt,W as Ot,X as Ne,Z as F,i as I,ay as Rt,_ as je,f as ze,H as St,aC as Je,T as Ct,a1 as Nt,M as Be,aH as se,P as Le,aI as _e,aJ as Pe,aK as Bt,aB as Lt,aL as Pt,g as xt,aM as me,aN as qt,ar as It,aO as Xe,aP as Dt,aQ as Mt,R as Ut,aR as Vt,aS as Ft,aT as H,aU as $,x as Ht}from"./CDVeMiAl.js";import{k as $t,l as Kt,e as Yt,o as Wt,p as jt,t as zt,a as Jt}from"./qSIFE6bv.js";import{b as Xt}from"./CvUX3i4L.js";function Qt(s,e){if(e){const t=document.body;s.autofocus=!0,We(()=>{document.activeElement===t&&s.focus()})}}let re=null;function ur(s,e){return e}function Gt(s,e,t,r){for(var i=[],n=e.length,o=0;o<n;o++)Bt(e[o].e,i,!0);var a=n>0&&i.length===0&&t!==null;if(a){var c=t.parentNode;Lt(c),c.append(t),r.clear(),L(s,e[0].prev,e[n-1].next)}Pt(i,()=>{for(var u=0;u<n;u++){var l=e[u];a||(r.delete(l.k),L(s,l.prev,l.next)),xt(l.e,!a)}})}function lr(s,e,t,r,i,n=null){var o=s,a={flags:e,items:new Map,first:null},c=(e&Xe)!==0;if(c){var u=s;o=T?te(wt(u)):u.appendChild(Et())}T&&At();var l=null,_=!1,f=Tt(()=>{var v=t();return Ct(v)?v:v==null?[]:Je(v)});kt(()=>{var v=Ce(f),g=v.length;if(_&&g===0)return;_=g===0;let m=!1;if(T){var A=o.data===Ot;A!==(g===0)&&(o=Ne(),te(o),F(!1),m=!0)}if(T){for(var b=null,k,p=0;p<g;p++){if(I.nodeType===8&&I.data===Rt){o=I,m=!0,F(!1);break}var h=v[p],d=r(h,p);k=Qe(I,a,b,null,h,d,p,i,e,t),a.items.set(d,k),b=k}g>0&&te(Ne())}T||Zt(v,a,o,i,e,r,t),n!==null&&(g===0?l?je(l):l=ze(()=>n(o)):l!==null&&St(l,()=>{l=null})),m&&F(!0),Ce(f)}),T&&(o=I)}function Zt(s,e,t,r,i,n,o){var ke,Te,Oe,Re;var a=(i&Dt)!==0,c=(i&(me|_e))!==0,u=s.length,l=e.items,_=e.first,f=_,v,g=null,m,A=[],b=[],k,p,h,d;if(a)for(d=0;d<u;d+=1)k=s[d],p=n(k,d),h=l.get(p),h!==void 0&&((ke=h.a)==null||ke.measure(),(m??(m=new Set)).add(h));for(d=0;d<u;d+=1){if(k=s[d],p=n(k,d),h=l.get(p),h===void 0){var B=f?f.e.nodes_start:t;g=Qe(B,e,g,g===null?e.first:g.next,k,p,d,r,i,o),l.set(p,g),A=[],b=[],f=g.next;continue}if(c&&es(h,k,d,i),(h.e.f&se)!==0&&(je(h.e),a&&((Te=h.a)==null||Te.unfix(),(m??(m=new Set)).delete(h))),h!==f){if(v!==void 0&&v.has(h)){if(A.length<b.length){var w=b[0],S;g=w.prev;var K=A[0],Z=A[A.length-1];for(S=0;S<A.length;S+=1)xe(A[S],w,t);for(S=0;S<b.length;S+=1)v.delete(b[S]);L(e,K.prev,Z.next),L(e,g,K),L(e,Z,w),f=w,g=Z,d-=1,A=[],b=[]}else v.delete(h),xe(h,f,t),L(e,h.prev,h.next),L(e,h,g===null?e.first:g.next),L(e,g,h),g=h;continue}for(A=[],b=[];f!==null&&f.k!==p;)(f.e.f&se)===0&&(v??(v=new Set)).add(f),b.push(f),f=f.next;if(f===null)continue;h=f}A.push(h),g=h,f=h.next}if(f!==null||v!==void 0){for(var q=v===void 0?[]:Je(v);f!==null;)(f.e.f&se)===0&&q.push(f),f=f.next;var ee=q.length;if(ee>0){var bt=(i&Xe)!==0&&u===0?t:null;if(a){for(d=0;d<ee;d+=1)(Oe=q[d].a)==null||Oe.measure();for(d=0;d<ee;d+=1)(Re=q[d].a)==null||Re.fix()}Gt(e,q,bt,l)}}a&&We(()=>{var Se;if(m!==void 0)for(h of m)(Se=h.a)==null||Se.apply()}),Le.first=e.first&&e.first.e,Le.last=g&&g.e}function es(s,e,t,r){(r&me)!==0&&Pe(s.v,e),(r&_e)!==0?Pe(s.i,t):s.i=t}function Qe(s,e,t,r,i,n,o,a,c,u){var l=re,_=(c&me)!==0,f=(c&qt)===0,v=_?f?Nt(i):Be(i):i,g=(c&_e)===0?o:Be(o),m={i:g,v,k:n,a:null,e:null,prev:t,next:r};re=m;try{return m.e=ze(()=>a(s,v,g,u),T),m.e.prev=t&&t.e,m.e.next=r&&r.e,t===null?e.first=m:(t.next=m,t.e.next=m.e),r!==null&&(r.prev=m,r.e.prev=m.e),m}finally{re=l}}function xe(s,e,t){for(var r=s.next?s.next.e.nodes_start:t,i=e?e.e.nodes_start:t,n=s.e.nodes_start;n!==r;){var o=It(n);i.before(n),n=o}}function L(s,e,t){e===null?s.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ge(s){var e,t,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var i=s.length;for(e=0;e<i;e++)s[e]&&(t=Ge(s[e]))&&(r&&(r+=" "),r+=t)}else for(t in s)s[t]&&(r&&(r+=" "),r+=t);return r}function ts(){for(var s,e,t=0,r="",i=arguments.length;t<i;t++)(s=arguments[t])&&(e=Ge(s))&&(r&&(r+=" "),r+=e);return r}function ss(s){return typeof s=="object"?ts(s):s??""}const qe=[...`
2
+ \r\f \v\uFEFF`];function rs(s,e,t){var r=s==null?"":""+s;if(e&&(r=r?r+" "+e:e),t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+n;(o===0||qe.includes(r[o-1]))&&(a===r.length||qe.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Ie(s,e=!1){var t=e?" !important;":";",r="";for(var i in s){var n=s[i];n!=null&&n!==""&&(r+=" "+i+": "+n+t)}return r}function ie(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function is(s,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,o=0,a=!1,c=[];r&&c.push(...Object.keys(r).map(ie)),i&&c.push(...Object.keys(i).map(ie));var u=0,l=-1;const m=s.length;for(var _=0;_<m;_++){var f=s[_];if(a?f==="/"&&s[_-1]==="*"&&(a=!1):n?n===f&&(n=!1):f==="/"&&s[_+1]==="*"?a=!0:f==='"'||f==="'"?n=f:f==="("?o++:f===")"&&o--,!a&&n===!1&&o===0){if(f===":"&&l===-1)l=_;else if(f===";"||_===m-1){if(l!==-1){var v=ie(s.substring(u,l).trim());if(!c.includes(v)){f!==";"&&_++;var g=s.substring(u,_).trim();t+=" "+g+";"}}u=_+1,l=-1}}}}return r&&(t+=Ie(r)),i&&(t+=Ie(i,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function Ze(s,e,t,r,i,n){var o=s.__className;if(T||o!==t){var a=rs(t,r,n);(!T||a!==s.getAttribute("class"))&&(a==null?s.removeAttribute("class"):e?s.className=a:s.setAttribute("class",a)),s.__className=t}else if(n&&i!==n)for(var c in n){var u=!!n[c];(i==null||u!==!!i[c])&&s.classList.toggle(c,u)}return n}function ne(s,e={},t,r){for(var i in t){var n=t[i];e[i]!==n&&(t[i]==null?s.style.removeProperty(i):s.style.setProperty(i,n,r))}}function ns(s,e,t,r){var i=s.__style;if(T||i!==e){var n=is(e,r);(!T||n!==s.getAttribute("style"))&&(n==null?s.removeAttribute("style"):s.style.cssText=n),s.__style=e}else r&&(Array.isArray(r)?(ne(s,t==null?void 0:t[0],r[0]),ne(s,t==null?void 0:t[1],r[1],"important")):ne(s,t,r));return r}const D=Symbol("class"),M=Symbol("style"),et=Symbol("is custom element"),tt=Symbol("is html");function os(s,e){e?s.hasAttribute("selected")||s.setAttribute("selected",""):s.removeAttribute("selected")}function De(s,e,t,r){var i=st(s);T&&(i[e]=s.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&s.nodeName==="LINK")||i[e]!==(i[e]=t)&&(e==="loading"&&(s[Ft]=t),t==null?s.removeAttribute(e):typeof t!="string"&&rt(s).includes(e)?s[e]=t:s.setAttribute(e,t))}function dr(s,e,t,r,i=!1){var n=st(s),o=n[et],a=!n[tt];let c=T&&o;c&&F(!1);var u=e||{},l=s.tagName==="OPTION";for(var _ in e)_ in t||(t[_]=null);t.class?t.class=ss(t.class):t[D]&&(t.class=null),t[M]&&(t.style??(t.style=null));var f=rt(s);for(const p in t){let h=t[p];if(l&&p==="value"&&h==null){s.value=s.__value="",u[p]=h;continue}if(p==="class"){var v=s.namespaceURI==="http://www.w3.org/1999/xhtml";Ze(s,v,h,r,e==null?void 0:e[D],t[D]),u[p]=h,u[D]=t[D];continue}if(p==="style"){ns(s,h,e==null?void 0:e[M],t[M]),u[p]=h,u[M]=t[M];continue}var g=u[p];if(h!==g){u[p]=h;var m=p[0]+p[1];if(m!=="$$")if(m==="on"){const d={},B="$$"+p;let w=p.slice(2);var A=jt(w);if($t(w)&&(w=w.slice(0,-7),d.capture=!0),!A&&g){if(h!=null)continue;s.removeEventListener(w,u[B],d),u[B]=null}if(h!=null)if(A)s[`__${w}`]=h,Yt([w]);else{let S=function(K){u[p].call(this,K)};u[B]=Kt(w,s,S,d)}else A&&(s[`__${w}`]=void 0)}else if(p==="style")De(s,p,h);else if(p==="autofocus")Qt(s,!!h);else if(!o&&(p==="__value"||p==="value"&&h!=null))s.value=s.__value=h;else if(p==="selected"&&l)os(s,h);else{var b=p;a||(b=Wt(b));var k=b==="defaultValue"||b==="defaultChecked";if(h==null&&!o&&!k)if(n[p]=null,b==="value"||b==="checked"){let d=s;const B=e===void 0;if(b==="value"){let w=d.defaultValue;d.removeAttribute(b),d.defaultValue=w,d.value=d.__value=B?w:null}else{let w=d.defaultChecked;d.removeAttribute(b),d.defaultChecked=w,d.checked=B?w:!1}}else s.removeAttribute(p);else k||f.includes(b)&&(o||typeof h!="string")?s[b]=h:typeof h!="function"&&De(s,b,h)}}}return c&&F(!0),u}function st(s){return s.__attributes??(s.__attributes={[et]:s.nodeName.includes("-"),[tt]:s.namespaceURI===Mt})}var Me=new Map;function rt(s){var e=Me.get(s.nodeName);if(e)return e;Me.set(s.nodeName,e=[]);for(var t,r=s,i=Element.prototype;i!==r;){t=Vt(r);for(var n in t)t[n].set&&e.push(n);r=Ut(r)}return e}const oe=H([]);let Ue=0;const it={...oe,addItem(s){const e=Ue+1;return oe.update(t=>[...t,{id:e,...s}]),Ue=e,()=>it.removeItem(e)},removeItem(s){oe.update(e=>{const t=e.slice();return t.splice(t.findIndex(r=>r.id===s),1),t})}},as=H(!1),pr=H(!1),cs=H(!1),nt=H({}),hs=$([nt],([s])=>[s==null?void 0:s.protocol,s==null?void 0:s.origin].join("")),fs=$([nt],([s])=>s.port),Ve=s=>Object.values(s).length>0,ot=$([as,hs,fs],([s,e,t])=>{const r=`${typeof window<"u"?window.location.protocol:"http:"}//${e}:${t}`;return{full:r,naked:[e,t].join(":"),get(i){return`${r}${i}`},endpoint:s||!e?"":`${e}:${t}`,server(i){return`${this.endpoint}${i}`}}}),yr=$([ot],([s])=>{const e=async(t,r={},i={})=>{try{const n=new URL([s.endpoint.startsWith("http")?"":window.location.origin,s.endpoint,"/api",t].join(""));i.method==="POST"&&Ve(r)?i.body=JSON.stringify(r):Ve(r)&&(n.search=new URLSearchParams(r).toString());const o=await fetch(n,i),a=await o.json();if(o.status!==200)throw new Error(a);return a}catch(n){throw it.addItem({message:"Api Error",type:"error"}),n}};return{health(){return e("/health")},info(){return e("/info")},search(t){return e("/search",{q:t})},artist(t){return e(`/artist/${t}`)},album(t){return e(`/album/${t}`)},addTrack(t,r){return e("/add",{uri:t,name:r})},play(){return e("/play")},pause(){return e("/pause")},skipForward(){return e("/skipForward")},skipBackward(){return e("/skipBackward")}}}),N=Object.create(null);N.open="0";N.close="1";N.ping="2";N.pong="3";N.message="4";N.upgrade="5";N.noop="6";const j=Object.create(null);Object.keys(N).forEach(s=>{j[N[s]]=s});const ue={type:"error",data:"parser error"},at=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ct=typeof ArrayBuffer=="function",ht=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,ve=({type:s,data:e},t,r)=>at&&e instanceof Blob?t?r(e):Fe(e,r):ct&&(e instanceof ArrayBuffer||ht(e))?t?r(e):Fe(new Blob([e]),r):r(N[s]+(e||"")),Fe=(s,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(s)};function He(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ae;function us(s,e){if(at&&s.data instanceof Blob)return s.data.arrayBuffer().then(He).then(e);if(ct&&(s.data instanceof ArrayBuffer||ht(s.data)))return e(He(s.data));ve(s,!1,t=>{ae||(ae=new TextEncoder),e(ae.encode(t))})}const $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<$e.length;s++)V[$e.charCodeAt(s)]=s;const ls=s=>{let e=s.length*.75,t=s.length,r,i=0,n,o,a,c;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const u=new ArrayBuffer(e),l=new Uint8Array(u);for(r=0;r<t;r+=4)n=V[s.charCodeAt(r)],o=V[s.charCodeAt(r+1)],a=V[s.charCodeAt(r+2)],c=V[s.charCodeAt(r+3)],l[i++]=n<<2|o>>4,l[i++]=(o&15)<<4|a>>2,l[i++]=(a&3)<<6|c&63;return u},ds=typeof ArrayBuffer=="function",be=(s,e)=>{if(typeof s!="string")return{type:"message",data:ft(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:ps(s.substring(1),e)}:j[t]?s.length>1?{type:j[t],data:s.substring(1)}:{type:j[t]}:ue},ps=(s,e)=>{if(ds){const t=ls(s);return ft(t,e)}else return{base64:!0,data:s}},ft=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ut="",ys=(s,e)=>{const t=s.length,r=new Array(t);let i=0;s.forEach((n,o)=>{ve(n,!1,a=>{r[o]=a,++i===t&&e(r.join(ut))})})},gs=(s,e)=>{const t=s.split(ut),r=[];for(let i=0;i<t.length;i++){const n=be(t[i],e);if(r.push(n),n.type==="error")break}return r};function _s(){return new TransformStream({transform(s,e){us(s,t=>{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{i=new Uint8Array(9);const n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let ce;function Y(s){return s.reduce((e,t)=>e+t.length,0)}function W(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)t[i]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),t}function ms(s,e){ce||(ce=new TextDecoder);const t=[];let r=0,i=-1,n=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(r===0){if(Y(t)<1)break;const c=W(t,1);n=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Y(t)<2)break;const c=W(t,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Y(t)<8)break;const c=W(t,8),u=new DataView(c.buffer,c.byteOffset,c.length),l=u.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(ue);break}i=l*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Y(t)<i)break;const c=W(t,i);a.enqueue(be(n?c:ce.decode(c),e)),r=0}if(i===0||i>s){a.enqueue(ue);break}}}})}const lt=4;function E(s){if(s)return vs(s)}function vs(s){for(var e in E.prototype)s[e]=E.prototype[e];return s}E.prototype.on=E.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};E.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,i=0;i<t.length;i++)if(r=t[i],r===e||r.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+s],this};E.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,i=t.length;r<i;++r)t[r].apply(this,e)}return this};E.prototype.emitReserved=E.prototype.emit;E.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};E.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Q=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),bs="arraybuffer";function dt(s,...e){return e.reduce((t,r)=>(s.hasOwnProperty(r)&&(t[r]=s[r]),t),{})}const ws=O.setTimeout,Es=O.clearTimeout;function G(s,e){e.useNativeTimers?(s.setTimeoutFn=ws.bind(O),s.clearTimeoutFn=Es.bind(O)):(s.setTimeoutFn=O.setTimeout.bind(O),s.clearTimeoutFn=O.clearTimeout.bind(O))}const As=1.33;function ks(s){return typeof s=="string"?Ts(s):Math.ceil((s.byteLength||s.size)*As)}function Ts(s){let e=0,t=0;for(let r=0,i=s.length;r<i;r++)e=s.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function pt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Os(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function Rs(s){let e={},t=s.split("&");for(let r=0,i=t.length;r<i;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Ss extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class we extends E{constructor(e){super(),this.writable=!1,G(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new Ss(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=be(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Os(e);return t.length?"?"+t:""}}class Cs extends we{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};gs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ys(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=pt()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let yt=!1;try{yt=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ns=yt;function Bs(){}class Ls extends Cs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class C extends E{constructor(e,t,r){super(),this.createRequest=e,G(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=dt(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=C.requestsCount++,C.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Bs,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete C.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}C.requestsCount=0;C.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ke);else if(typeof addEventListener=="function"){const s="onpagehide"in O?"pagehide":"unload";addEventListener(s,Ke,!1)}}function Ke(){for(let s in C.requests)C.requests.hasOwnProperty(s)&&C.requests[s].abort()}const Ps=function(){const s=gt({xdomain:!1});return s&&s.responseType!==null}();class xs extends Ls{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ps&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new C(gt,this.uri(),e)}}function gt(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ns))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _t=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qs extends we{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=_t?{}:dt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;ve(r,this.supportsBinary,n=>{try{this.doWrite(r,n)}catch{}i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const he=O.WebSocket||O.MozWebSocket;class Is extends qs{createSocket(e,t,r){return _t?new he(e,t,r):t?new he(e,t):new he(e)}doWrite(e,t){this.ws.send(t)}}class Ds extends we{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ms(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=_s();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const n=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),n())}).catch(a=>{})};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;this._writer.write(r).then(()=>{i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ms={websocket:Is,webtransport:Ds,polling:xs},Us=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function le(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),r=s.indexOf("]");t!=-1&&r!=-1&&(s=s.substring(0,t)+s.substring(t,r).replace(/:/g,";")+s.substring(r,s.length));let i=Us.exec(s||""),n={},o=14;for(;o--;)n[Vs[o]]=i[o]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=Fs(n,n.path),n.queryKey=Hs(n,n.query),n}function Fs(s,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Hs(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,n){i&&(t[i]=n)}),t}const de=typeof addEventListener=="function"&&typeof removeEventListener=="function",z=[];de&&addEventListener("offline",()=>{z.forEach(s=>s())},!1);class P extends E{constructor(e,t){if(super(),this.binaryType=bs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=le(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=le(t.host).host);G(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rs(this.opts.query)),de&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},z.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=lt,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&P.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",P.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(t+=ks(i)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Q(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(P.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),de&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=z.indexOf(this._offlineEventListener);r!==-1&&z.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}P.protocol=lt;class $s extends P{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;P.priorWebsocketSuccess=!1;const i=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;P.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=t.name,this.emitReserved("upgradeError",f)}}))};function n(){r||(r=!0,l(),t.close(),t=null)}const o=_=>{const f=new Error("probe error: "+_);f.transport=t.name,n(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function c(){o("socket closed")}function u(_){t&&_.name!==t.name&&n()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let Ks=class extends $s{constructor(e,t={}){const r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ms[i]).filter(i=>!!i)),super(e,r)}};function Ys(s,e="",t){let r=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),r=le(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const Ws=typeof ArrayBuffer=="function",js=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,mt=Object.prototype.toString,zs=typeof Blob=="function"||typeof Blob<"u"&&mt.call(Blob)==="[object BlobConstructor]",Js=typeof File=="function"||typeof File<"u"&&mt.call(File)==="[object FileConstructor]";function Ee(s){return Ws&&(s instanceof ArrayBuffer||js(s))||zs&&s instanceof Blob||Js&&s instanceof File}function J(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,r=s.length;t<r;t++)if(J(s[t]))return!0;return!1}if(Ee(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return J(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&J(s[t]))return!0;return!1}function Xs(s){const e=[],t=s.data,r=s;return r.data=pe(t,e),r.attachments=e.length,{packet:r,buffers:e}}function pe(s,e){if(!s)return s;if(Ee(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let r=0;r<s.length;r++)t[r]=pe(s[r],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=pe(s[r],e));return t}return s}function Qs(s,e){return s.data=ye(s.data,e),delete s.attachments,s}function ye(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ye(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ye(s[t],e));return s}const Gs=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zs=5;var y;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(y||(y={}));class er{constructor(e){this.replacer=e}encode(e){return(e.type===y.EVENT||e.type===y.ACK)&&J(e)?this.encodeAsBinary({type:e.type===y.EVENT?y.BINARY_EVENT:y.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===y.BINARY_EVENT||e.type===y.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Xs(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function Ye(s){return Object.prototype.toString.call(s)==="[object Object]"}class Ae extends E{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===y.BINARY_EVENT;r||t.type===y.BINARY_ACK?(t.type=r?y.EVENT:y.ACK,this.reconstructor=new tr(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Ee(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(y[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===y.BINARY_EVENT||r.type===y.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const n=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(Ae.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case y.CONNECT:return Ye(t);case y.DISCONNECT:return t===void 0;case y.CONNECT_ERROR:return typeof t=="string"||Ye(t);case y.EVENT:case y.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Gs.indexOf(t[0])===-1);case y.ACK:case y.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tr{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Qs(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ae,Encoder:er,get PacketType(){return y},protocol:Zs},Symbol.toStringTag,{value:"Module"}));function R(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const rr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vt extends E{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[R(e,"open",this.onopen.bind(this)),R(e,"packet",this.onpacket.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,i,n;if(rr.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:y.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const l=this.ids++,_=t.pop();this._registerAckCallback(l,_),o.id=l}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(n),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const n=(o,a)=>o?i(o):r(a);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case y.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case y.EVENT:case y.BINARY_EVENT:this.onevent(e);break;case y.ACK:case y.BINARY_ACK:this.onack(e);break;case y.DISCONNECT:this.ondisconnect();break;case y.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:y.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class ge extends E{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,G(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||sr;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ks(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){r.onopen(),e&&e()}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=R(t,"error",n);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Q(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new vt(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const U={};function X(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Ys(s,e.path||"/socket.io"),r=t.source,i=t.id,n=t.path,o=U[i]&&n in U[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ge(r,e):(U[i]||(U[i]=new ge(r,e)),c=U[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(X,{Manager:ge,Socket:vt,io:X,connect:X});const fe={current:null},_r=$([ot,cs],([s,e])=>{if(!e)return null;const t=X(s.endpoint);return fe.current&&fe.current.disconnect(),fe.current=t,t});var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ir(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}const nr={},or=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),br=ir(or);var ar=zt('<div><div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div></div>');function wr(s,e){const t=Xt(e,"floating",3,!1);var r=ar();let i;Ht(n=>i=Ze(r,1,"loading svelte-1aqhn4j",null,i,n),[()=>({floating:t()})]),Jt(s,r)}export{wr as L,ot as a,re as b,nt as c,dr as d,De as e,yr as f,vr as g,lr as h,ur as i,cs as j,pr as k,as as l,_r as m,mr as n,br as r,Ze as s,it as t};