From cb769235c2ab4b5139a36f29534dee5dcec85b84 Mon Sep 17 00:00:00 2001 From: Jeffrieh Date: Thu, 4 Jul 2024 12:36:13 +0000 Subject: [PATCH] deploy: 82ce00519bf0f6da4fcb976e13bafc487993f201 --- 200.html | 26 +++++++++---------- 404.html | 26 +++++++++---------- _nuxt/5zMrqJhS.js | 1 - _nuxt/{ChJCoYqL.js => 9IrzKzNm.js} | 2 +- _nuxt/{JeNKN-o9.js => B0-aTjMC.js} | 2 +- _nuxt/{CLSFKFYC.js => BA7fD-2p.js} | 2 +- _nuxt/{JiFQw_g2.js => BJOVPnNC.js} | 2 +- _nuxt/{Db0ZVnqc.js => BM1cpa3O.js} | 2 +- _nuxt/{BCSHVULZ.js => BT4kKLKx.js} | 2 +- _nuxt/{0TDMLFnH.js => BTsQld6Q.js} | 2 +- _nuxt/BVnr0zBR.js | 1 + _nuxt/{BC4ZBaMa.js => B_7H3lrK.js} | 2 +- _nuxt/{Cqz1o8c6.js => BbJ2BBF_.js} | 2 +- _nuxt/{DAvJvj7x.js => BcFUG_ju.js} | 2 +- _nuxt/BlZyVAoE.js | 1 - _nuxt/BvYdkKW2.js | 1 - _nuxt/{CWKlYbIB.js => C5MozBZ_.js} | 2 +- _nuxt/{CR8J8Wv6.js => C5SSPv0b.js} | 2 +- _nuxt/{CpJISfwI.js => C6ha4_5s.js} | 2 +- _nuxt/CECp_Xf5.js | 1 + _nuxt/{BqzSR0QY.js => CQR7ibKW.js} | 2 +- _nuxt/{s7zkGM1B.js => CVqqKe1e.js} | 2 +- _nuxt/{BZpomPOF.js => CbSZFrki.js} | 2 +- _nuxt/{7gRTJ--m.js => CpVWsJji.js} | 2 +- _nuxt/{DiPmplMJ.js => Cq_U2Yt_.js} | 2 +- _nuxt/{BwZUl92F.js => CqvrLO8u.js} | 2 +- _nuxt/{BhBQiKNq.js => CrCkutar.js} | 2 +- _nuxt/{BWAbWtNn.js => D-XeeU7p.js} | 2 +- _nuxt/D1ARI5ig.js | 1 - _nuxt/{BOi99RIz.js => D7KKUu8f.js} | 2 +- _nuxt/{BYCMiOz6.js => DC3C1jHW.js} | 2 +- _nuxt/{CbAMCw4j.js => DGbaRamz.js} | 2 +- _nuxt/{Bk7_z8zR.js => DRzdypsL.js} | 8 +++--- _nuxt/{CufKaKGR.js => DSs6u6dv.js} | 2 +- _nuxt/{DK8Uo_Hk.js => DT1p3C1d.js} | 2 +- _nuxt/{D50eLN2o.js => DW0yCbNR.js} | 2 +- _nuxt/{BxbXPpYz.js => DWe_QcPy.js} | 2 +- _nuxt/{CUZ5-2j8.js => DXUHfGYI.js} | 2 +- _nuxt/{DXM240z2.js => DYgeqj2A.js} | 2 +- _nuxt/{CgpvmZr1.js => DZvHjpzl.js} | 2 +- _nuxt/{DHgh_nFT.js => Dc7Ef35y.js} | 2 +- _nuxt/{CFT4hcsC.js => DhUbynuL.js} | 2 +- _nuxt/Dna4PVgy.js | 1 - _nuxt/{CYVKd2LE.js => DrmMPU4W.js} | 2 +- _nuxt/{CadYdy7U.js => DsZb1hsf.js} | 2 +- _nuxt/Dtabo8Ev.js | 1 + _nuxt/{Dvbh4inv.js => Dy8-xdSN.js} | 2 +- _nuxt/{CwxWHj84.js => DyhP3oSh.js} | 2 +- _nuxt/FhxOfykq.js | 1 + _nuxt/{BG6wdasp.js => HAH9zurp.js} | 2 +- _nuxt/IEnkyGq6.js | 1 + _nuxt/{D9erlvBj.js => IXhQLKK7.js} | 2 +- _nuxt/{CvhRWxfN.js => Mhp9soAi.js} | 2 +- _nuxt/{CTbn5rF3.js => N3Zb81fI.js} | 2 +- _nuxt/{2BrHaVLh.js => PgmTAEsv.js} | 2 +- _nuxt/{Cg5AdoJL.js => W4soxq2T.js} | 2 +- _nuxt/{CE1bXBtk.js => _yT1To6n.js} | 4 +-- _nuxt/builds/latest.json | 2 +- .../4b0459f7-d71b-43e6-a75d-15561da3af83.json | 1 + .../6471a257-7062-4d76-8424-8f77129008b4.json | 1 - _nuxt/{C4gPAXLa.js => czY1a8yr.js} | 2 +- _nuxt/{ULjoJCf3.js => imxI89Y8.js} | 2 +- _nuxt/{CKqPg9-t.js => jQVLJ7NR.js} | 2 +- _nuxt/{CmkKtLv1.js => jn6rmPcS.js} | 2 +- _nuxt/{DNgSKQ__.js => nLZ1R_uv.js} | 2 +- _nuxt/{ABQydVn7.js => qURTcPoC.js} | 2 +- _nuxt/{9O8xrwna.js => tIiR6N12.js} | 2 +- _nuxt/{JUdSmwzW.js => u30xRvTG.js} | 2 +- _nuxt/{DIqeZryz.js => vCcY93uT.js} | 4 +-- _nuxt/{Cb25f9Ir.js => xFswHJo3.js} | 2 +- _nuxt/{33ex26Pi.js => xo8hsDaG.js} | 2 +- _nuxt/{D8_oxPFk.js => yL9Sm9hV.js} | 2 +- api/_content/cache.1720093685430.json | 1 - api/_content/cache.1720096559909.json | 1 + index.html | 26 +++++++++---------- 75 files changed, 109 insertions(+), 109 deletions(-) delete mode 100644 _nuxt/5zMrqJhS.js rename _nuxt/{ChJCoYqL.js => 9IrzKzNm.js} (81%) rename _nuxt/{JeNKN-o9.js => B0-aTjMC.js} (95%) rename _nuxt/{CLSFKFYC.js => BA7fD-2p.js} (79%) rename _nuxt/{JiFQw_g2.js => BJOVPnNC.js} (99%) rename _nuxt/{Db0ZVnqc.js => BM1cpa3O.js} (97%) rename _nuxt/{BCSHVULZ.js => BT4kKLKx.js} (56%) rename _nuxt/{0TDMLFnH.js => BTsQld6Q.js} (64%) create mode 100644 _nuxt/BVnr0zBR.js rename _nuxt/{BC4ZBaMa.js => B_7H3lrK.js} (84%) rename _nuxt/{Cqz1o8c6.js => BbJ2BBF_.js} (64%) rename _nuxt/{DAvJvj7x.js => BcFUG_ju.js} (83%) delete mode 100644 _nuxt/BlZyVAoE.js delete mode 100644 _nuxt/BvYdkKW2.js rename _nuxt/{CWKlYbIB.js => C5MozBZ_.js} (77%) rename _nuxt/{CR8J8Wv6.js => C5SSPv0b.js} (65%) rename _nuxt/{CpJISfwI.js => C6ha4_5s.js} (77%) create mode 100644 _nuxt/CECp_Xf5.js rename _nuxt/{BqzSR0QY.js => CQR7ibKW.js} (77%) rename _nuxt/{s7zkGM1B.js => CVqqKe1e.js} (65%) rename _nuxt/{BZpomPOF.js => CbSZFrki.js} (99%) rename _nuxt/{7gRTJ--m.js => CpVWsJji.js} (64%) rename _nuxt/{DiPmplMJ.js => Cq_U2Yt_.js} (66%) rename _nuxt/{BwZUl92F.js => CqvrLO8u.js} (95%) rename _nuxt/{BhBQiKNq.js => CrCkutar.js} (57%) rename _nuxt/{BWAbWtNn.js => D-XeeU7p.js} (64%) delete mode 100644 _nuxt/D1ARI5ig.js rename _nuxt/{BOi99RIz.js => D7KKUu8f.js} (77%) rename _nuxt/{BYCMiOz6.js => DC3C1jHW.js} (64%) rename _nuxt/{CbAMCw4j.js => DGbaRamz.js} (85%) rename _nuxt/{Bk7_z8zR.js => DRzdypsL.js} (99%) rename _nuxt/{CufKaKGR.js => DSs6u6dv.js} (91%) rename _nuxt/{DK8Uo_Hk.js => DT1p3C1d.js} (65%) rename _nuxt/{D50eLN2o.js => DW0yCbNR.js} (92%) rename _nuxt/{BxbXPpYz.js => DWe_QcPy.js} (58%) rename _nuxt/{CUZ5-2j8.js => DXUHfGYI.js} (64%) rename _nuxt/{DXM240z2.js => DYgeqj2A.js} (92%) rename _nuxt/{CgpvmZr1.js => DZvHjpzl.js} (96%) rename _nuxt/{DHgh_nFT.js => Dc7Ef35y.js} (65%) rename _nuxt/{CFT4hcsC.js => DhUbynuL.js} (98%) delete mode 100644 _nuxt/Dna4PVgy.js rename _nuxt/{CYVKd2LE.js => DrmMPU4W.js} (89%) rename _nuxt/{CadYdy7U.js => DsZb1hsf.js} (82%) create mode 100644 _nuxt/Dtabo8Ev.js rename _nuxt/{Dvbh4inv.js => Dy8-xdSN.js} (65%) rename _nuxt/{CwxWHj84.js => DyhP3oSh.js} (64%) create mode 100644 _nuxt/FhxOfykq.js rename _nuxt/{BG6wdasp.js => HAH9zurp.js} (92%) create mode 100644 _nuxt/IEnkyGq6.js rename _nuxt/{D9erlvBj.js => IXhQLKK7.js} (53%) rename _nuxt/{CvhRWxfN.js => Mhp9soAi.js} (89%) rename _nuxt/{CTbn5rF3.js => N3Zb81fI.js} (64%) rename _nuxt/{2BrHaVLh.js => PgmTAEsv.js} (72%) rename _nuxt/{Cg5AdoJL.js => W4soxq2T.js} (77%) rename _nuxt/{CE1bXBtk.js => _yT1To6n.js} (74%) create mode 100644 _nuxt/builds/meta/4b0459f7-d71b-43e6-a75d-15561da3af83.json delete mode 100644 _nuxt/builds/meta/6471a257-7062-4d76-8424-8f77129008b4.json rename _nuxt/{C4gPAXLa.js => czY1a8yr.js} (63%) rename _nuxt/{ULjoJCf3.js => imxI89Y8.js} (99%) rename _nuxt/{CKqPg9-t.js => jQVLJ7NR.js} (64%) rename _nuxt/{CmkKtLv1.js => jn6rmPcS.js} (92%) rename _nuxt/{DNgSKQ__.js => nLZ1R_uv.js} (99%) rename _nuxt/{ABQydVn7.js => qURTcPoC.js} (77%) rename _nuxt/{9O8xrwna.js => tIiR6N12.js} (87%) rename _nuxt/{JUdSmwzW.js => u30xRvTG.js} (77%) rename _nuxt/{DIqeZryz.js => vCcY93uT.js} (95%) rename _nuxt/{Cb25f9Ir.js => xFswHJo3.js} (61%) rename _nuxt/{33ex26Pi.js => xo8hsDaG.js} (99%) rename _nuxt/{D8_oxPFk.js => yL9Sm9hV.js} (98%) delete mode 100644 api/_content/cache.1720093685430.json create mode 100644 api/_content/cache.1720096559909.json diff --git a/200.html b/200.html index afc7442e..5d7edcc2 100644 --- a/200.html +++ b/200.html @@ -1,21 +1,21 @@ - - + + - - - - - + + + + + - + - - + + - -
- \ No newline at end of file + +
+ \ No newline at end of file diff --git a/404.html b/404.html index afc7442e..5d7edcc2 100644 --- a/404.html +++ b/404.html @@ -1,21 +1,21 @@ - - + + - - - - - + + + + + - + - - + + - -
- \ No newline at end of file + +
+ \ No newline at end of file diff --git a/_nuxt/5zMrqJhS.js b/_nuxt/5zMrqJhS.js deleted file mode 100644 index d13763d4..00000000 --- a/_nuxt/5zMrqJhS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t}from"./CmkKtLv1.js";import{g as o,u as n,o as c,c as s,b as _}from"./Bk7_z8zR.js";const a={class:"mt-5"},f=o({__name:"login",setup(r){return n(),(m,p)=>{const e=t;return c(),s("div",a,[_(e)])}}});export{f as default}; diff --git a/_nuxt/ChJCoYqL.js b/_nuxt/9IrzKzNm.js similarity index 81% rename from _nuxt/ChJCoYqL.js rename to _nuxt/9IrzKzNm.js index fb1b0c3f..e9d12382 100644 --- a/_nuxt/ChJCoYqL.js +++ b/_nuxt/9IrzKzNm.js @@ -1,4 +1,4 @@ -import{_ as r,o,c as s,G as a}from"./Bk7_z8zR.js";const c={},n={class:"",style:`background: +import{_ as r,o,c as s,G as a}from"./DRzdypsL.js";const c={},n={class:"",style:`background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 1) 100%), url('/img/preview-bg.png'); background-size: cover; `};function t(e,d){return o(),s("div",n,[a(e.$slots,"default")])}const l=r(c,[["render",t]]);export{l as default}; diff --git a/_nuxt/JeNKN-o9.js b/_nuxt/B0-aTjMC.js similarity index 95% rename from _nuxt/JeNKN-o9.js rename to _nuxt/B0-aTjMC.js index ae1b41f7..901098b0 100644 --- a/_nuxt/JeNKN-o9.js +++ b/_nuxt/B0-aTjMC.js @@ -1 +1 @@ -import{_ as a}from"./D8_oxPFk.js";import{u as s}from"./DAvJvj7x.js";import{_ as i,o as u,c,a as e,t as o,b as d,w as l,d as p,p as h,e as b}from"./Bk7_z8zR.js";const f=t=>(h("data-v-922baad2"),t=t(),b(),t),g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},m=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),x={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(z,S)=>{const r=a;return u(),c("div",g,[m,e("div",x,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[d(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:l(()=>[p(o(t.backHome),1)]),_:1})])])])}}},I=i(w,[["__scopeId","data-v-922baad2"]]);export{I as default}; +import{_ as a}from"./yL9Sm9hV.js";import{u as s}from"./BcFUG_ju.js";import{_ as i,o as u,c,a as e,t as o,b as d,w as l,d as p,p as h,e as b}from"./DRzdypsL.js";const f=t=>(h("data-v-922baad2"),t=t(),b(),t),g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},m=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),x={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(z,S)=>{const r=a;return u(),c("div",g,[m,e("div",x,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[d(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:l(()=>[p(o(t.backHome),1)]),_:1})])])])}}},I=i(w,[["__scopeId","data-v-922baad2"]]);export{I as default}; diff --git a/_nuxt/CLSFKFYC.js b/_nuxt/BA7fD-2p.js similarity index 79% rename from _nuxt/CLSFKFYC.js rename to _nuxt/BA7fD-2p.js index 0cf0ae11..d70684ca 100644 --- a/_nuxt/CLSFKFYC.js +++ b/_nuxt/BA7fD-2p.js @@ -1 +1 @@ -import{g as t,G as n}from"./Bk7_z8zR.js";const o=t({__name:"ProseCode",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null}},setup(r){return(e,a)=>n(e.$slots,"default")}});export{o as _}; +import{g as t,G as n}from"./DRzdypsL.js";const o=t({__name:"ProseCode",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null}},setup(r){return(e,a)=>n(e.$slots,"default")}});export{o as _}; diff --git a/_nuxt/JiFQw_g2.js b/_nuxt/BJOVPnNC.js similarity index 99% rename from _nuxt/JiFQw_g2.js rename to _nuxt/BJOVPnNC.js index 3c6fba5c..94d2ce24 100644 --- a/_nuxt/JiFQw_g2.js +++ b/_nuxt/BJOVPnNC.js @@ -1 +1 @@ -import{p as E}from"./C-v3KzvZ.js";import{aE as m,y as g,an as y,ap as A}from"./Bk7_z8zR.js";var h={exports:{}};(function(e,l){(function(i,o,t){e.exports=t(),e.exports.default=t()})("slugify",m,function(){var i=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),o=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function t(s,a){if(typeof s!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var d=o[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,p=a.trim===void 0?!0:a.trim,r=s.normalize().split("").reduce(function(f,u){var n=d[u];return n===void 0&&(n=i[u]),n===void 0&&(n=u),n===c&&(n=" "),f+n.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(r=r.replace(/[^A-Za-z0-9\s]/g,"")),p&&(r=r.trim()),r=r.replace(/\s+/g,c),a.lower&&(r=r.toLowerCase()),r}return t.extend=function(s){Object.assign(i,s)},t})})(h);var O=h.exports;const U=g(O),Y=/^(\d+)(\.\d+)*(\.x)?$/,z=(e,{forceLeadingSlash:l=!0,respectPathCase:i=!1}={})=>(e=e.split("/").map(o=>U(S(o),{lower:!i})).join("/"),l?y(A(e)):e),w=e=>e.split(/[\s-]/g).map(E).join(" ");function S(e){return e=e.split(/[/:]/).pop(),Y.test(e)?e:e.replace(/(\d+\.)?(.*)/,"$2").replace(/^index(\.draft)?$/,"").replace(/\.draft$/,"")}export{w as a,z as g}; +import{p as E}from"./C-v3KzvZ.js";import{aE as m,y as g,an as y,ap as A}from"./DRzdypsL.js";var h={exports:{}};(function(e,l){(function(i,o,t){e.exports=t(),e.exports.default=t()})("slugify",m,function(){var i=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),o=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function t(s,a){if(typeof s!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var d=o[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,p=a.trim===void 0?!0:a.trim,r=s.normalize().split("").reduce(function(f,u){var n=d[u];return n===void 0&&(n=i[u]),n===void 0&&(n=u),n===c&&(n=" "),f+n.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(r=r.replace(/[^A-Za-z0-9\s]/g,"")),p&&(r=r.trim()),r=r.replace(/\s+/g,c),a.lower&&(r=r.toLowerCase()),r}return t.extend=function(s){Object.assign(i,s)},t})})(h);var O=h.exports;const U=g(O),Y=/^(\d+)(\.\d+)*(\.x)?$/,z=(e,{forceLeadingSlash:l=!0,respectPathCase:i=!1}={})=>(e=e.split("/").map(o=>U(S(o),{lower:!i})).join("/"),l?y(A(e)):e),w=e=>e.split(/[\s-]/g).map(E).join(" ");function S(e){return e=e.split(/[/:]/).pop(),Y.test(e)?e:e.replace(/(\d+\.)?(.*)/,"$2").replace(/^index(\.draft)?$/,"").replace(/\.draft$/,"")}export{w as a,z as g}; diff --git a/_nuxt/Db0ZVnqc.js b/_nuxt/BM1cpa3O.js similarity index 97% rename from _nuxt/Db0ZVnqc.js rename to _nuxt/BM1cpa3O.js index de713770..66b9126d 100644 --- a/_nuxt/Db0ZVnqc.js +++ b/_nuxt/BM1cpa3O.js @@ -1 +1 @@ -import{g as h,u as I,o as e,c as o,a,t as r,k as t,_ as b,E as O,r as L,M as F,O as Q,I as U,F as w,w as C,b as y,P as Y,d as R,l as T,Q as G,S as P,T as V,U as K,i as W,V as j,p as S,e as B,G as x}from"./Bk7_z8zR.js";import{_ as z}from"./CvhRWxfN.js";import{_ as H}from"./D8_oxPFk.js";import{f as J}from"./VZpoIE_P.js";const X={class:"tasks-available-banner"},Z=h({__name:"TasksAvailableBanner",setup(i){const{useCampaigns:c}=I(),{totalTasksAvailable:d,data:_}=c({calculateAvailableTasks:!0});return(p,s)=>(e(),o("div",X,[a("p",null,"You have "+r(t(d))+" new tasks available!",1)]))}}),aa=b(Z,[["__scopeId","data-v-c0a542cf"]]),sa={class:"reservation-container"},na={class:"started-on"},ea={class:"card-title"},ta=h({__name:"ReservationCard",props:{id:{},campaignId:{},reservedOn:{},taskIdx:{}},setup(i){const c=i,{useCampaign:d}=I(),{mutate:_,loading:p}=O(),s=L(!1),n=L(null),{data:k}=d(c.campaignId,s),u=F(()=>n.value??k.value),m=Q(),g=async()=>{const l=m.getQueriesData({queryKey:["campaigns"]});if(l){const v=l[0][1].find(A=>A.id===c.campaignId);return v?n.value=v:null}},f=l=>l.reservations_done/l.total_tasks>1?100:l.reservations_done/l.total_tasks*100;return U(async()=>{g()||(s.value=!0)}),(l,$)=>{const v=G,A=z,M=H;return t(u)?(e(),w(M,{key:0,to:`/campaign/${t(u).id}`,class:"card reservation"},{default:C(()=>{var N,q;return[a("div",sa,[a("div",null,[a("span",na," started "+r(("formatDateStringToTimeAgo"in l?l.formatDateStringToTimeAgo:t(J))(c.reservedOn)),1),a("h2",ea,[a("span",null,r((N=t(u).info)==null?void 0:N.title),1)]),a("p",null,r((q=t(u).info)==null?void 0:q.description),1)]),y(v,{reverse:!1,progress:f(t(u))},null,8,["progress"]),y(A,{"is-loading":t(p),class:"button",onClick:$[0]||($[0]=Y(Ua=>t(_)(l.campaignId),["prevent"]))},{default:C(()=>[R(" Continue to earn "+r(t(u).reward.quantity),1)]),_:1},8,["is-loading"])])]}),_:1},8,["to"])):T("",!0)}}}),oa=b(ta,[["__scopeId","data-v-f76ea93a"]]),ia={class:"reservation-list"},ca={key:0},ra={key:1,class:"reservation-container"},la=h({__name:"ReservationsList",props:{loading:{type:Boolean},reservations:{},max:{}},setup(i){const c=i,d=F(()=>{var _;return(_=c.reservations)==null?void 0:_.toSorted((p,s)=>new Date(s.reserved_on).getTime()-new Date(p.reserved_on).getTime()).slice(0,c.max)});return(_,p)=>{const s=oa;return e(),o("div",ia,[_.loading?(e(),o("div",ca," Loading.. ")):_.reservations?(e(),o("div",ra,[(e(!0),o(P,null,V(t(d),n=>(e(),w(s,{id:n.id,key:n.id,"task-idx":n.task_idx,"reserved-on":n.reserved_on,"campaign-id":n.campaign_id},null,8,["id","task-idx","reserved-on","campaign-id"]))),128))])):T("",!0)])}}}),da={class:"avatar"},_a=a("img",{src:"/img/default-avatar.webp",alt:"Rounded avatar"},null,-1),pa=[_a],ua=h({__name:"UserAvatar",props:{id:{}},setup(i){return(c,d)=>(e(),o("div",da,pa))}}),D=i=>(S("data-v-69795f98"),i=i(),B(),i),ma={class:"campaign-user"},ga={key:0,class:"campaign-title"},va={key:1},ha=D(()=>a("br",null,null,-1)),ka=D(()=>a("div",null,r("No description"),-1)),fa={key:0},$a={key:1},Ta={key:0},ya=D(()=>a("br",null,null,-1)),ba={key:0},Ca={key:1},Ia={class:"campaign-quantity"},wa=h({__name:"CampaignTableRow",props:{campaign:{},accTaskIndex:{}},async setup(i){let c,d;const _=([c,d]=K(()=>j()),c=await c,d(),c),p=W();return(s,n)=>{var u,m;const k=ua;return e(),o("tr",{onClick:n[0]||(n[0]=g=>t(p).push(`/campaign/${s.campaign.id}`))},[a("td",null,[a("div",ma,[y(k,{id:s.campaign.owner.at(1)},null,8,["id"]),a("span",null,r(s.campaign.owner.at(1)),1)])]),s.campaign&&s.campaign?(e(),o("td",ga,[a("h4",null,r((u=s.campaign.info)==null?void 0:u.title),1),a("span",null,r((m=s.campaign.info)==null?void 0:m.description),1)])):(e(),o("td",va,[R(r("No title")+" "),ha,ka])),a("td",null,[s.campaign.campaignTasksAvailable===null?(e(),o("span",fa,r(s.campaign.total_tasks)+" tasks ",1)):(e(),o("span",$a,[R(r(s.campaign.campaignTasksAvailable)+"/"+r(s.campaign.total_tasks)+" left ",1),s.campaign.campaignTasksAvailable>s.campaign.batchTaskAvailable?(e(),o("small",Ta,[ya,s.campaign.batchTaskAvailable?(e(),o("span",ba,r(s.campaign.batchTaskAvailable)+" tasks in current batch ",1)):(e(),o("span",Ca," Wait for current batch to finish "))])):T("",!0)]))]),a("td",Ia,[a("h4",null,r(s.campaign.reward.quantity),1),a("span",null," $"+r((parseFloat(s.campaign.reward.quantity.split(" ")[0])*t(_)).toFixed(2))+" per task ",1)])])}}}),Aa=b(wa,[["__scopeId","data-v-69795f98"]]),La=i=>(S("data-v-c49f648a"),i=i(),B(),i),Ra={class:"campaign-list"},Sa={key:0},Ba={key:1},Da={key:2,class:"table-container"},Na=La(()=>a("thead",null,[a("tr",null,[a("th",null,"Dataset"),a("th",null,"Title"),a("th",null,"Tasks"),a("th",null,"Reward Per Task")])],-1)),qa=h({__name:"CampaignList",props:{campaigns:{},loading:{type:Boolean}},setup(i){const{useAccTaskIdx:c}=I(),{data:d,isLoading:_}=c(),p=L(0),s=n=>{p.value+=n};return(n,k)=>{const u=Aa;return e(),o("div",Ra,[n.loading?(e(),o("div",Sa,[x(n.$slots,"loading",{},void 0,!0)])):n.campaigns&&n.campaigns.length===0?(e(),o("div",Ba,[x(n.$slots,"empty",{},void 0,!0)])):n.campaigns&&n.campaigns.length>0?(e(),o("div",Da,[a("table",null,[Na,a("tbody",null,[(e(!0),o(P,null,V(n.campaigns,m=>{var g,f;return e(),w(u,{key:m.id,campaign:m,accTaskIndex:(f=(g=t(d))==null?void 0:g.find(l=>l.campaign_id===m.id))==null?void 0:f.value,onTasksCounted:s},null,8,["campaign","accTaskIndex"])}),128))])])])):T("",!0)])}}}),xa=b(qa,[["__scopeId","data-v-c49f648a"]]),E=i=>(S("data-v-4dcfba47"),i=i(),B(),i),Fa={class:"container"},Pa={key:0},Va={class:"title mb-0"},Ea={class:"title mb-0"},Ma=E(()=>a("div",null,"No campaigns found.",-1)),Oa=E(()=>a("div",null,"Loading campaigns",-1)),Qa=h({__name:"index",setup(i){const{useCampaigns:c,useReservations:d,isLoggedIn:_}=I(),{data:p,isLoading:s}=c({calculateAvailableTasks:!0}),{data:n,isLoading:k}=d();return(u,m)=>{var $,v;const g=aa,f=la,l=xa;return e(),o("div",Fa,[y(g),t(_)?(e(),o("div",Pa,[a("h2",Va," Your active Datasets ("+r(($=t(n))==null?void 0:$.length)+") ",1),t(p)?(e(),w(f,{key:0,max:3,loading:t(k),reservations:t(n)},null,8,["loading","reservations"])):T("",!0)])):T("",!0),a("div",null,[a("h2",Ea," All Datasets ("+r((v=t(p))==null?void 0:v.length)+") ",1),y(l,{loading:t(s),campaigns:t(p)},{empty:C(()=>[Ma]),loading:C(()=>[Oa]),_:1},8,["loading","campaigns"])])])}}}),ja=b(Qa,[["__scopeId","data-v-4dcfba47"]]);export{ja as default}; +import{g as h,u as I,o as e,c as o,a,t as r,k as t,_ as b,E as O,r as L,M as F,O as Q,I as U,F as w,w as C,b as y,P as Y,d as R,l as T,Q as G,S as P,T as V,U as K,i as W,V as j,p as S,e as B,G as x}from"./DRzdypsL.js";import{_ as z}from"./Mhp9soAi.js";import{_ as H}from"./yL9Sm9hV.js";import{f as J}from"./VZpoIE_P.js";const X={class:"tasks-available-banner"},Z=h({__name:"TasksAvailableBanner",setup(i){const{useCampaigns:c}=I(),{totalTasksAvailable:d,data:_}=c({calculateAvailableTasks:!0});return(p,s)=>(e(),o("div",X,[a("p",null,"You have "+r(t(d))+" new tasks available!",1)]))}}),aa=b(Z,[["__scopeId","data-v-c0a542cf"]]),sa={class:"reservation-container"},na={class:"started-on"},ea={class:"card-title"},ta=h({__name:"ReservationCard",props:{id:{},campaignId:{},reservedOn:{},taskIdx:{}},setup(i){const c=i,{useCampaign:d}=I(),{mutate:_,loading:p}=O(),s=L(!1),n=L(null),{data:k}=d(c.campaignId,s),u=F(()=>n.value??k.value),m=Q(),g=async()=>{const l=m.getQueriesData({queryKey:["campaigns"]});if(l){const v=l[0][1].find(A=>A.id===c.campaignId);return v?n.value=v:null}},f=l=>l.reservations_done/l.total_tasks>1?100:l.reservations_done/l.total_tasks*100;return U(async()=>{g()||(s.value=!0)}),(l,$)=>{const v=G,A=z,M=H;return t(u)?(e(),w(M,{key:0,to:`/campaign/${t(u).id}`,class:"card reservation"},{default:C(()=>{var N,q;return[a("div",sa,[a("div",null,[a("span",na," started "+r(("formatDateStringToTimeAgo"in l?l.formatDateStringToTimeAgo:t(J))(c.reservedOn)),1),a("h2",ea,[a("span",null,r((N=t(u).info)==null?void 0:N.title),1)]),a("p",null,r((q=t(u).info)==null?void 0:q.description),1)]),y(v,{reverse:!1,progress:f(t(u))},null,8,["progress"]),y(A,{"is-loading":t(p),class:"button",onClick:$[0]||($[0]=Y(Ua=>t(_)(l.campaignId),["prevent"]))},{default:C(()=>[R(" Continue to earn "+r(t(u).reward.quantity),1)]),_:1},8,["is-loading"])])]}),_:1},8,["to"])):T("",!0)}}}),oa=b(ta,[["__scopeId","data-v-f76ea93a"]]),ia={class:"reservation-list"},ca={key:0},ra={key:1,class:"reservation-container"},la=h({__name:"ReservationsList",props:{loading:{type:Boolean},reservations:{},max:{}},setup(i){const c=i,d=F(()=>{var _;return(_=c.reservations)==null?void 0:_.toSorted((p,s)=>new Date(s.reserved_on).getTime()-new Date(p.reserved_on).getTime()).slice(0,c.max)});return(_,p)=>{const s=oa;return e(),o("div",ia,[_.loading?(e(),o("div",ca," Loading.. ")):_.reservations?(e(),o("div",ra,[(e(!0),o(P,null,V(t(d),n=>(e(),w(s,{id:n.id,key:n.id,"task-idx":n.task_idx,"reserved-on":n.reserved_on,"campaign-id":n.campaign_id},null,8,["id","task-idx","reserved-on","campaign-id"]))),128))])):T("",!0)])}}}),da={class:"avatar"},_a=a("img",{src:"/img/default-avatar.webp",alt:"Rounded avatar"},null,-1),pa=[_a],ua=h({__name:"UserAvatar",props:{id:{}},setup(i){return(c,d)=>(e(),o("div",da,pa))}}),D=i=>(S("data-v-69795f98"),i=i(),B(),i),ma={class:"campaign-user"},ga={key:0,class:"campaign-title"},va={key:1},ha=D(()=>a("br",null,null,-1)),ka=D(()=>a("div",null,r("No description"),-1)),fa={key:0},$a={key:1},Ta={key:0},ya=D(()=>a("br",null,null,-1)),ba={key:0},Ca={key:1},Ia={class:"campaign-quantity"},wa=h({__name:"CampaignTableRow",props:{campaign:{},accTaskIndex:{}},async setup(i){let c,d;const _=([c,d]=K(()=>j()),c=await c,d(),c),p=W();return(s,n)=>{var u,m;const k=ua;return e(),o("tr",{onClick:n[0]||(n[0]=g=>t(p).push(`/campaign/${s.campaign.id}`))},[a("td",null,[a("div",ma,[y(k,{id:s.campaign.owner.at(1)},null,8,["id"]),a("span",null,r(s.campaign.owner.at(1)),1)])]),s.campaign&&s.campaign?(e(),o("td",ga,[a("h4",null,r((u=s.campaign.info)==null?void 0:u.title),1),a("span",null,r((m=s.campaign.info)==null?void 0:m.description),1)])):(e(),o("td",va,[R(r("No title")+" "),ha,ka])),a("td",null,[s.campaign.campaignTasksAvailable===null?(e(),o("span",fa,r(s.campaign.total_tasks)+" tasks ",1)):(e(),o("span",$a,[R(r(s.campaign.campaignTasksAvailable)+"/"+r(s.campaign.total_tasks)+" left ",1),s.campaign.campaignTasksAvailable>s.campaign.batchTaskAvailable?(e(),o("small",Ta,[ya,s.campaign.batchTaskAvailable?(e(),o("span",ba,r(s.campaign.batchTaskAvailable)+" tasks in current batch ",1)):(e(),o("span",Ca," Wait for current batch to finish "))])):T("",!0)]))]),a("td",Ia,[a("h4",null,r(s.campaign.reward.quantity),1),a("span",null," $"+r((parseFloat(s.campaign.reward.quantity.split(" ")[0])*t(_)).toFixed(2))+" per task ",1)])])}}}),Aa=b(wa,[["__scopeId","data-v-69795f98"]]),La=i=>(S("data-v-c49f648a"),i=i(),B(),i),Ra={class:"campaign-list"},Sa={key:0},Ba={key:1},Da={key:2,class:"table-container"},Na=La(()=>a("thead",null,[a("tr",null,[a("th",null,"Dataset"),a("th",null,"Title"),a("th",null,"Tasks"),a("th",null,"Reward Per Task")])],-1)),qa=h({__name:"CampaignList",props:{campaigns:{},loading:{type:Boolean}},setup(i){const{useAccTaskIdx:c}=I(),{data:d,isLoading:_}=c(),p=L(0),s=n=>{p.value+=n};return(n,k)=>{const u=Aa;return e(),o("div",Ra,[n.loading?(e(),o("div",Sa,[x(n.$slots,"loading",{},void 0,!0)])):n.campaigns&&n.campaigns.length===0?(e(),o("div",Ba,[x(n.$slots,"empty",{},void 0,!0)])):n.campaigns&&n.campaigns.length>0?(e(),o("div",Da,[a("table",null,[Na,a("tbody",null,[(e(!0),o(P,null,V(n.campaigns,m=>{var g,f;return e(),w(u,{key:m.id,campaign:m,accTaskIndex:(f=(g=t(d))==null?void 0:g.find(l=>l.campaign_id===m.id))==null?void 0:f.value,onTasksCounted:s},null,8,["campaign","accTaskIndex"])}),128))])])])):T("",!0)])}}}),xa=b(qa,[["__scopeId","data-v-c49f648a"]]),E=i=>(S("data-v-4dcfba47"),i=i(),B(),i),Fa={class:"container"},Pa={key:0},Va={class:"title mb-0"},Ea={class:"title mb-0"},Ma=E(()=>a("div",null,"No campaigns found.",-1)),Oa=E(()=>a("div",null,"Loading campaigns",-1)),Qa=h({__name:"index",setup(i){const{useCampaigns:c,useReservations:d,isLoggedIn:_}=I(),{data:p,isLoading:s}=c({calculateAvailableTasks:!0}),{data:n,isLoading:k}=d();return(u,m)=>{var $,v;const g=aa,f=la,l=xa;return e(),o("div",Fa,[y(g),t(_)?(e(),o("div",Pa,[a("h2",Va," Your active Datasets ("+r(($=t(n))==null?void 0:$.length)+") ",1),t(p)?(e(),w(f,{key:0,max:3,loading:t(k),reservations:t(n)},null,8,["loading","reservations"])):T("",!0)])):T("",!0),a("div",null,[a("h2",Ea," All Datasets ("+r((v=t(p))==null?void 0:v.length)+") ",1),y(l,{loading:t(s),campaigns:t(p)},{empty:C(()=>[Ma]),loading:C(()=>[Oa]),_:1},8,["loading","campaigns"])])])}}}),ja=b(Qa,[["__scopeId","data-v-4dcfba47"]]);export{ja as default}; diff --git a/_nuxt/BCSHVULZ.js b/_nuxt/BT4kKLKx.js similarity index 56% rename from _nuxt/BCSHVULZ.js rename to _nuxt/BT4kKLKx.js index a8193a08..ed307328 100644 --- a/_nuxt/BCSHVULZ.js +++ b/_nuxt/BT4kKLKx.js @@ -1 +1 @@ -import{_ as r,G as t}from"./Bk7_z8zR.js";const s={};function n(e,o){return t(e.$slots,"default")}const _=r(s,[["render",n]]);export{_ as default}; +import{_ as r,G as t}from"./DRzdypsL.js";const s={};function n(e,o){return t(e.$slots,"default")}const _=r(s,[["render",n]]);export{_ as default}; diff --git a/_nuxt/0TDMLFnH.js b/_nuxt/BTsQld6Q.js similarity index 64% rename from _nuxt/0TDMLFnH.js rename to _nuxt/BTsQld6Q.js index 06d02a3d..968f2d8a 100644 --- a/_nuxt/0TDMLFnH.js +++ b/_nuxt/BTsQld6Q.js @@ -1 +1 @@ -import{_ as o,o as n,c as r,G as c}from"./Bk7_z8zR.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const _=o(s,[["render",t]]);export{_ as default}; +import{_ as o,o as n,c as r,G as c}from"./DRzdypsL.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const _=o(s,[["render",t]]);export{_ as default}; diff --git a/_nuxt/BVnr0zBR.js b/_nuxt/BVnr0zBR.js new file mode 100644 index 00000000..ef2f4f09 --- /dev/null +++ b/_nuxt/BVnr0zBR.js @@ -0,0 +1 @@ +import{g as e}from"./DRzdypsL.js";const _=e({__name:"settings",setup(t){return(n,r)=>null}});export{_ as default}; diff --git a/_nuxt/BC4ZBaMa.js b/_nuxt/B_7H3lrK.js similarity index 84% rename from _nuxt/BC4ZBaMa.js rename to _nuxt/B_7H3lrK.js index 232e5496..57108664 100644 --- a/_nuxt/BC4ZBaMa.js +++ b/_nuxt/B_7H3lrK.js @@ -1 +1 @@ -import{_ as f}from"./BZpomPOF.js";import{g as s,a2 as l,a3 as d,a5 as c}from"./Bk7_z8zR.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./DNgSKQ__.js";const m=s({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){l(()=>t.excerpt,n=>{var e,a,i;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(i=t==null?void 0:t.value)==null?void 0:i._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var u,o;const n=d(),{value:e,excerpt:a,tag:i}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((u=r==null?void 0:r.children)!=null&&u.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:i,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:i,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((o=r==null?void 0:r.children)!=null&&o.length)?c(f,{value:e,excerpt:a,tag:i,...this.$attrs}):c("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:i},null,2))}}),$=m;export{$ as default}; +import{_ as f}from"./CbSZFrki.js";import{g as s,a2 as l,a3 as d,a5 as c}from"./DRzdypsL.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./nLZ1R_uv.js";const m=s({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){l(()=>t.excerpt,n=>{var e,a,i;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(i=t==null?void 0:t.value)==null?void 0:i._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var u,o;const n=d(),{value:e,excerpt:a,tag:i}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((u=r==null?void 0:r.children)!=null&&u.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:i,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:i,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((o=r==null?void 0:r.children)!=null&&o.length)?c(f,{value:e,excerpt:a,tag:i,...this.$attrs}):c("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:i},null,2))}}),$=m;export{$ as default}; diff --git a/_nuxt/Cqz1o8c6.js b/_nuxt/BbJ2BBF_.js similarity index 64% rename from _nuxt/Cqz1o8c6.js rename to _nuxt/BbJ2BBF_.js index 10c42500..fbe0af60 100644 --- a/_nuxt/Cqz1o8c6.js +++ b/_nuxt/BbJ2BBF_.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as s}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),t("th",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as t,G as s}from"./DRzdypsL.js";const c={};function n(e,a){return r(),t("th",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/DAvJvj7x.js b/_nuxt/BcFUG_ju.js similarity index 83% rename from _nuxt/DAvJvj7x.js rename to _nuxt/BcFUG_ju.js index 40c6da8e..05c91f11 100644 --- a/_nuxt/DAvJvj7x.js +++ b/_nuxt/BcFUG_ju.js @@ -1 +1 @@ -import{a6 as o,r as u,j as f,a7 as d,a2 as v,a8 as l,a9 as i,aa as h,ab as m}from"./Bk7_z8zR.js";function U(t,a={}){const e=a.head||o();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});f(()=>{n.value=s.value?{}:d(a)});const r=t.push(n.value,e);return v(n,c=>{r.patch(c)}),l()&&(i(()=>{r.dispose()}),h(()=>{s.value=!0}),m(()=>{s.value=!1})),r}export{U as u}; +import{a6 as o,r as u,j as f,a7 as d,a2 as v,a8 as l,a9 as i,aa as h,ab as m}from"./DRzdypsL.js";function U(t,a={}){const e=a.head||o();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});f(()=>{n.value=s.value?{}:d(a)});const r=t.push(n.value,e);return v(n,c=>{r.patch(c)}),l()&&(i(()=>{r.dispose()}),h(()=>{s.value=!0}),m(()=>{s.value=!1})),r}export{U as u}; diff --git a/_nuxt/BlZyVAoE.js b/_nuxt/BlZyVAoE.js deleted file mode 100644 index c1c1c49c..00000000 --- a/_nuxt/BlZyVAoE.js +++ /dev/null @@ -1 +0,0 @@ -import{g as e}from"./Bk7_z8zR.js";const _=e({__name:"settings",setup(t){return(n,r)=>null}});export{_ as default}; diff --git a/_nuxt/BvYdkKW2.js b/_nuxt/BvYdkKW2.js deleted file mode 100644 index 3ec13b7e..00000000 --- a/_nuxt/BvYdkKW2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./CLSFKFYC.js";import"./Bk7_z8zR.js";export{m as default}; diff --git a/_nuxt/CWKlYbIB.js b/_nuxt/C5MozBZ_.js similarity index 77% rename from _nuxt/CWKlYbIB.js rename to _nuxt/C5MozBZ_.js index 83278fec..491dc45b 100644 --- a/_nuxt/CWKlYbIB.js +++ b/_nuxt/C5MozBZ_.js @@ -1 +1 @@ -import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./Bk7_z8zR.js";const l=["id"],d=["href"],_=p({__name:"ProseH2",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h2))});return(e,k)=>(t(),s("h2",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./DRzdypsL.js";const l=["id"],d=["href"],_=p({__name:"ProseH2",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h2))});return(e,k)=>(t(),s("h2",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/CR8J8Wv6.js b/_nuxt/C5SSPv0b.js similarity index 65% rename from _nuxt/CR8J8Wv6.js rename to _nuxt/C5SSPv0b.js index 06538515..abcc48f7 100644 --- a/_nuxt/CR8J8Wv6.js +++ b/_nuxt/C5SSPv0b.js @@ -1 +1 @@ -import{_ as o,o as t,c,G as r}from"./Bk7_z8zR.js";const s={};function n(e,l){return t(),c("blockquote",null,[r(e.$slots,"default")])}const _=o(s,[["render",n]]);export{_ as default}; +import{_ as o,o as t,c,G as r}from"./DRzdypsL.js";const s={};function n(e,l){return t(),c("blockquote",null,[r(e.$slots,"default")])}const _=o(s,[["render",n]]);export{_ as default}; diff --git a/_nuxt/CpJISfwI.js b/_nuxt/C6ha4_5s.js similarity index 77% rename from _nuxt/CpJISfwI.js rename to _nuxt/C6ha4_5s.js index 80ae3d61..d504e851 100644 --- a/_nuxt/CpJISfwI.js +++ b/_nuxt/C6ha4_5s.js @@ -1 +1 @@ -import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./Bk7_z8zR.js";const l=["id"],d=["href"],_=p({__name:"ProseH5",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h5))});return(e,k)=>(t(),s("h5",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./DRzdypsL.js";const l=["id"],d=["href"],_=p({__name:"ProseH5",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h5))});return(e,k)=>(t(),s("h5",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/CECp_Xf5.js b/_nuxt/CECp_Xf5.js new file mode 100644 index 00000000..1407aaeb --- /dev/null +++ b/_nuxt/CECp_Xf5.js @@ -0,0 +1 @@ +import{_ as m}from"./BA7fD-2p.js";import"./DRzdypsL.js";export{m as default}; diff --git a/_nuxt/BqzSR0QY.js b/_nuxt/CQR7ibKW.js similarity index 77% rename from _nuxt/BqzSR0QY.js rename to _nuxt/CQR7ibKW.js index d214abc7..3381c41a 100644 --- a/_nuxt/BqzSR0QY.js +++ b/_nuxt/CQR7ibKW.js @@ -1 +1 @@ -import{g as n,a5 as e}from"./Bk7_z8zR.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; +import{g as n,a5 as e}from"./DRzdypsL.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; diff --git a/_nuxt/s7zkGM1B.js b/_nuxt/CVqqKe1e.js similarity index 65% rename from _nuxt/s7zkGM1B.js rename to _nuxt/CVqqKe1e.js index 58cacda8..152aa79b 100644 --- a/_nuxt/s7zkGM1B.js +++ b/_nuxt/CVqqKe1e.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as s}from"./Bk7_z8zR.js";const a={};function c(e,n){return r(),t("thead",null,[s(e.$slots,"default")])}const _=o(a,[["render",c]]);export{_ as default}; +import{_ as o,o as r,c as t,G as s}from"./DRzdypsL.js";const a={};function c(e,n){return r(),t("thead",null,[s(e.$slots,"default")])}const _=o(a,[["render",c]]);export{_ as default}; diff --git a/_nuxt/BZpomPOF.js b/_nuxt/CbSZFrki.js similarity index 99% rename from _nuxt/BZpomPOF.js rename to _nuxt/CbSZFrki.js index 49090b2f..603a8a4a 100644 --- a/_nuxt/BZpomPOF.js +++ b/_nuxt/CbSZFrki.js @@ -1 +1 @@ -import{g as F,a8 as ln,aq as en,M as w,a5 as D,ar as on,as as P,at as tn,au as rn,o as an,F as un,k as sn}from"./Bk7_z8zR.js";import{p as H,k as cn}from"./C-v3KzvZ.js";import{f as pn}from"./BneCoJRQ.js";import{u as dn}from"./DNgSKQ__.js";class S{constructor(l,o,t){this.property=l,this.normal=o,t&&(this.space=t)}}S.prototype.property={};S.prototype.normal={};S.prototype.space=null;function V(n,l){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&yn.test(l)){if(l.charAt(4)==="-"){const a=l.slice(5).replace(_,Cn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=l.slice(4);if(!_.test(a)){let i=a.replace(vn,kn);i.charAt(0)!=="-"&&(i="-"+i),l="data"+i}}r=E}return new r(t,l)}function kn(n){return"-"+n.toLowerCase()}function Cn(n){return n.charAt(1).toUpperCase()}const Sn=V([W,N,Y,$,fn],"html"),Hn=V([W,N,Y,$,mn],"svg"),B=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],T="default",Z=/^@|^v-on:/,J=/^:|^v-bind:/,G=/^v-model/,xn=["select","textarea","input"],wn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Pn=F({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(n){var i,s,c,h,f,p,y,z;const l=(c=(s=(i=ln())==null?void 0:i.appContext)==null?void 0:s.app)==null?void 0:c.$nuxt,o=(l==null?void 0:l.$route)||(l==null?void 0:l._route),{mdc:t}=((h=l==null?void 0:l.$config)==null?void 0:h.public)||{},r={...(f=t==null?void 0:t.components)!=null&&f.prose&&n.prose!==!1?wn:{},...((p=t==null?void 0:t.components)==null?void 0:p.map)||{},...en(((z=(y=n.data)==null?void 0:y.mdc)==null?void 0:z.components)||{}),...n.components},a=w(()=>{var I;const nn=(((I=n.body)==null?void 0:I.children)||[]).map(x=>x.tag||x.type).filter(x=>!B.includes(x));return Array.from(new Set(nn)).sort().join(".")});return await zn(n.body,{tags:r}),{tags:r,contentKey:a,route:o}},render(n){var p,y;const{tags:l,tag:o,body:t,data:r,contentKey:a,route:i,unwrap:s}=n;if(!t)return null;const c={...r,tags:l,$route:i},h=o!==!1?U(o||((p=c.component)==null?void 0:p.name)||c.component||"div"):void 0;return h?D(h,{...(y=c.component)==null?void 0:y.props,class:n.class,...this.$attrs,key:a},{default:f}):f==null?void 0:f();function f(){return s?pn(A(t,D,c,c).default(),typeof s=="string"?s.split(" "):["*"]):A(t,D,c,c).default()}}});function On(n,l,o,t={}){if(n.type==="text")return l(P,n.value);if(n.type==="comment")return l(tn,null,n.value);const r=n.tag,a=Q(n,o.tags);if(n.tag==="binding")return Dn(n,l,o,t);const i=U(a);typeof i=="object"&&(i.tag=r);const s=Ln(n,o);return l(i,s,A(n,l,o,{...t,...s}))}function Dn(n,l,o,t={}){var h,f;const r={...t,$document:o,$doc:o},a=/\.|\[(\d+)\]/,s=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((p,y)=>{if(p&&y in p)return typeof p[y]=="function"?p[y]():p[y]},r),c=(f=n.props)==null?void 0:f.defaultValue;return l(P,s??c??"")}function A(n,l,o,t){const a=(n.children||[]).reduce((s,c)=>{if(!Bn(c))return s[T].push(c),s;const h=En(c);return s[h]=s[h]||[],c.type==="element"&&s[h].push(...c.children||[]),s},{[T]:[]});return Object.entries(a).reduce((s,[c,h])=>(h.length&&(s[c]=()=>{const f=h.map(p=>On(p,l,o,t));return Un(f)}),s),{})}function Ln(n,l){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const i=t[a];if(G.test(a)&&!xn.includes(o))return Mn(a,i,r,l);if(a==="v-bind")return Rn(a,i,r,l);if(Z.test(a))return Tn(a,i,r,l);if(J.test(a))return An(a,i,r,l);const{attribute:s}=bn(Sn,a);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(r[s]=i.join(" "),r):(r[s]=i,r)},{})}function Mn(n,l,o,t){const r=p=>+p,a=p=>p.trim(),i=p=>p,s=n.replace(G,"").split(".").filter(p=>p).reduce((p,y)=>(p[y]=!0,p),{}),c="value",h=s.lazy?"change":"input",f=s.number?r:s.trim?a:i;return o[c]=O(l,t),o.on=o.on||{},o.on[h]=p=>t[l]=f(p),o}function Rn(n,l,o,t){const r=O(l,t);return o=Object.assign(o,r),o}function Tn(n,l,o,t){return n=n.replace(Z,""),o.on=o.on||{},o.on[n]=()=>O(l,t),o}function An(n,l,o,t){return n=n.replace(J,""),o[n]=O(l,t),o}const U=n=>{if(!B.includes(n)&&!(n!=null&&n.render)&&!(n!=null&&n.ssrRender)){const l=on(H(n),!1);if(typeof l=="object")return l}return n};function O(n,l){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,l);return typeof o>"u"?rn(n):o}function En(n){let l="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){l=o.split(/[:#]/,2)[1];break}return l||T}function Bn(n){return n.tag==="template"}function Un(n){const l=[];for(const o of n){const t=l[l.length-1];o.type===P&&(t==null?void 0:t.type)===P?t.children=t.children+o.children:l.push(o)}return l}async function zn(n,l){if(!n)return;const o=Array.from(new Set(t(n,l)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=U(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const i=r.tag;if(r.type==="text"||i==="binding"||r.type==="comment")return[];const s=Q(r,a.tags),c=[];r.type!=="root"&&!B.includes(s)&&c.push(s);for(const h of r.children||[])c.push(...t(h,a));return c}}function Q(n,l){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:l[o]||l[H(o)]||l[cn(n.tag)]||o}const Vn=F({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(n){const l=n,o=dn().isEnabled(),t=w(()=>{let i=l.value.body||l.value;return l.excerpt&&l.value.excerpt&&(i=l.value.excerpt),i}),r=w(()=>{const{body:i,excerpt:s,...c}=l.value;return{...c,...l.data}}),a=w(()=>({...l.components,...r.value._components||{}}));return(i,s)=>{const c=Pn;return an(),un(c,{body:t.value,data:r.value,tag:n.tag,components:a.value,"data-content-id":sn(o)?n.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{Vn as _,B as a,bn as f,Sn as h,M as n,Hn as s}; +import{g as F,a8 as ln,aq as en,M as w,a5 as D,ar as on,as as P,at as tn,au as rn,o as an,F as un,k as sn}from"./DRzdypsL.js";import{p as H,k as cn}from"./C-v3KzvZ.js";import{f as pn}from"./BneCoJRQ.js";import{u as dn}from"./nLZ1R_uv.js";class S{constructor(l,o,t){this.property=l,this.normal=o,t&&(this.space=t)}}S.prototype.property={};S.prototype.normal={};S.prototype.space=null;function V(n,l){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&yn.test(l)){if(l.charAt(4)==="-"){const a=l.slice(5).replace(_,Cn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=l.slice(4);if(!_.test(a)){let i=a.replace(vn,kn);i.charAt(0)!=="-"&&(i="-"+i),l="data"+i}}r=E}return new r(t,l)}function kn(n){return"-"+n.toLowerCase()}function Cn(n){return n.charAt(1).toUpperCase()}const Sn=V([W,N,Y,$,fn],"html"),Hn=V([W,N,Y,$,mn],"svg"),B=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],T="default",Z=/^@|^v-on:/,J=/^:|^v-bind:/,G=/^v-model/,xn=["select","textarea","input"],wn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Pn=F({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(n){var i,s,c,h,f,p,y,z;const l=(c=(s=(i=ln())==null?void 0:i.appContext)==null?void 0:s.app)==null?void 0:c.$nuxt,o=(l==null?void 0:l.$route)||(l==null?void 0:l._route),{mdc:t}=((h=l==null?void 0:l.$config)==null?void 0:h.public)||{},r={...(f=t==null?void 0:t.components)!=null&&f.prose&&n.prose!==!1?wn:{},...((p=t==null?void 0:t.components)==null?void 0:p.map)||{},...en(((z=(y=n.data)==null?void 0:y.mdc)==null?void 0:z.components)||{}),...n.components},a=w(()=>{var I;const nn=(((I=n.body)==null?void 0:I.children)||[]).map(x=>x.tag||x.type).filter(x=>!B.includes(x));return Array.from(new Set(nn)).sort().join(".")});return await zn(n.body,{tags:r}),{tags:r,contentKey:a,route:o}},render(n){var p,y;const{tags:l,tag:o,body:t,data:r,contentKey:a,route:i,unwrap:s}=n;if(!t)return null;const c={...r,tags:l,$route:i},h=o!==!1?U(o||((p=c.component)==null?void 0:p.name)||c.component||"div"):void 0;return h?D(h,{...(y=c.component)==null?void 0:y.props,class:n.class,...this.$attrs,key:a},{default:f}):f==null?void 0:f();function f(){return s?pn(A(t,D,c,c).default(),typeof s=="string"?s.split(" "):["*"]):A(t,D,c,c).default()}}});function On(n,l,o,t={}){if(n.type==="text")return l(P,n.value);if(n.type==="comment")return l(tn,null,n.value);const r=n.tag,a=Q(n,o.tags);if(n.tag==="binding")return Dn(n,l,o,t);const i=U(a);typeof i=="object"&&(i.tag=r);const s=Ln(n,o);return l(i,s,A(n,l,o,{...t,...s}))}function Dn(n,l,o,t={}){var h,f;const r={...t,$document:o,$doc:o},a=/\.|\[(\d+)\]/,s=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((p,y)=>{if(p&&y in p)return typeof p[y]=="function"?p[y]():p[y]},r),c=(f=n.props)==null?void 0:f.defaultValue;return l(P,s??c??"")}function A(n,l,o,t){const a=(n.children||[]).reduce((s,c)=>{if(!Bn(c))return s[T].push(c),s;const h=En(c);return s[h]=s[h]||[],c.type==="element"&&s[h].push(...c.children||[]),s},{[T]:[]});return Object.entries(a).reduce((s,[c,h])=>(h.length&&(s[c]=()=>{const f=h.map(p=>On(p,l,o,t));return Un(f)}),s),{})}function Ln(n,l){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const i=t[a];if(G.test(a)&&!xn.includes(o))return Mn(a,i,r,l);if(a==="v-bind")return Rn(a,i,r,l);if(Z.test(a))return Tn(a,i,r,l);if(J.test(a))return An(a,i,r,l);const{attribute:s}=bn(Sn,a);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(r[s]=i.join(" "),r):(r[s]=i,r)},{})}function Mn(n,l,o,t){const r=p=>+p,a=p=>p.trim(),i=p=>p,s=n.replace(G,"").split(".").filter(p=>p).reduce((p,y)=>(p[y]=!0,p),{}),c="value",h=s.lazy?"change":"input",f=s.number?r:s.trim?a:i;return o[c]=O(l,t),o.on=o.on||{},o.on[h]=p=>t[l]=f(p),o}function Rn(n,l,o,t){const r=O(l,t);return o=Object.assign(o,r),o}function Tn(n,l,o,t){return n=n.replace(Z,""),o.on=o.on||{},o.on[n]=()=>O(l,t),o}function An(n,l,o,t){return n=n.replace(J,""),o[n]=O(l,t),o}const U=n=>{if(!B.includes(n)&&!(n!=null&&n.render)&&!(n!=null&&n.ssrRender)){const l=on(H(n),!1);if(typeof l=="object")return l}return n};function O(n,l){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,l);return typeof o>"u"?rn(n):o}function En(n){let l="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){l=o.split(/[:#]/,2)[1];break}return l||T}function Bn(n){return n.tag==="template"}function Un(n){const l=[];for(const o of n){const t=l[l.length-1];o.type===P&&(t==null?void 0:t.type)===P?t.children=t.children+o.children:l.push(o)}return l}async function zn(n,l){if(!n)return;const o=Array.from(new Set(t(n,l)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=U(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const i=r.tag;if(r.type==="text"||i==="binding"||r.type==="comment")return[];const s=Q(r,a.tags),c=[];r.type!=="root"&&!B.includes(s)&&c.push(s);for(const h of r.children||[])c.push(...t(h,a));return c}}function Q(n,l){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:l[o]||l[H(o)]||l[cn(n.tag)]||o}const Vn=F({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(n){const l=n,o=dn().isEnabled(),t=w(()=>{let i=l.value.body||l.value;return l.excerpt&&l.value.excerpt&&(i=l.value.excerpt),i}),r=w(()=>{const{body:i,excerpt:s,...c}=l.value;return{...c,...l.data}}),a=w(()=>({...l.components,...r.value._components||{}}));return(i,s)=>{const c=Pn;return an(),un(c,{body:t.value,data:r.value,tag:n.tag,components:a.value,"data-content-id":sn(o)?n.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{Vn as _,B as a,bn as f,Sn as h,M as n,Hn as s}; diff --git a/_nuxt/7gRTJ--m.js b/_nuxt/CpVWsJji.js similarity index 64% rename from _nuxt/7gRTJ--m.js rename to _nuxt/CpVWsJji.js index d1ce060a..4a816135 100644 --- a/_nuxt/7gRTJ--m.js +++ b/_nuxt/CpVWsJji.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as s}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),t("td",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as t,G as s}from"./DRzdypsL.js";const c={};function n(e,a){return r(),t("td",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/DiPmplMJ.js b/_nuxt/Cq_U2Yt_.js similarity index 66% rename from _nuxt/DiPmplMJ.js rename to _nuxt/Cq_U2Yt_.js index 88ede359..f1733e78 100644 --- a/_nuxt/DiPmplMJ.js +++ b/_nuxt/Cq_U2Yt_.js @@ -1 +1 @@ -import{_ as a}from"./D8_oxPFk.js";import{g as o,o as n,F as s,w as f,G as u}from"./Bk7_z8zR.js";const l=o({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,_)=>{const r=a;return n(),s(r,{href:e.href,target:e.target},{default:f(()=>[u(t.$slots,"default")]),_:3},8,["href","target"])}}});export{l as default}; +import{_ as a}from"./yL9Sm9hV.js";import{g as o,o as n,F as s,w as f,G as u}from"./DRzdypsL.js";const l=o({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,_)=>{const r=a;return n(),s(r,{href:e.href,target:e.target},{default:f(()=>[u(t.$slots,"default")]),_:3},8,["href","target"])}}});export{l as default}; diff --git a/_nuxt/BwZUl92F.js b/_nuxt/CqvrLO8u.js similarity index 95% rename from _nuxt/BwZUl92F.js rename to _nuxt/CqvrLO8u.js index ac8f528d..6b3d9ebd 100644 --- a/_nuxt/BwZUl92F.js +++ b/_nuxt/CqvrLO8u.js @@ -1 +1 @@ -import{u as o}from"./DAvJvj7x.js";import{_ as a,o as s,c as i,a as e,t as r,p as u,e as c}from"./Bk7_z8zR.js";const l=t=>(u("data-v-1e3620c9"),t=t(),c(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=l(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],b=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,b)])]))}},w=a(f,[["__scopeId","data-v-1e3620c9"]]);export{w as default}; +import{u as o}from"./BcFUG_ju.js";import{_ as a,o as s,c as i,a as e,t as r,p as u,e as c}from"./DRzdypsL.js";const l=t=>(u("data-v-1e3620c9"),t=t(),c(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=l(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],b=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,b)])]))}},w=a(f,[["__scopeId","data-v-1e3620c9"]]);export{w as default}; diff --git a/_nuxt/BhBQiKNq.js b/_nuxt/CrCkutar.js similarity index 57% rename from _nuxt/BhBQiKNq.js rename to _nuxt/CrCkutar.js index 88f82a6b..567184b5 100644 --- a/_nuxt/BhBQiKNq.js +++ b/_nuxt/CrCkutar.js @@ -1 +1 @@ -import{_ as a}from"./CYVKd2LE.js";import{g as s,o as n,c as r,b as e,k as _,aI as c,G as m}from"./Bk7_z8zR.js";import"./D8_oxPFk.js";const p={class:"fullwidth"},h=s({__name:"template",setup(l){return(o,d)=>{const t=a;return n(),r("div",p,[e(t),e(_(c)),m(o.$slots,"default")])}}});export{h as default}; +import{_ as a}from"./DrmMPU4W.js";import{g as s,o as n,c as r,b as e,k as _,aI as c,G as m}from"./DRzdypsL.js";import"./yL9Sm9hV.js";const p={class:"fullwidth"},h=s({__name:"template",setup(l){return(o,d)=>{const t=a;return n(),r("div",p,[e(t),e(_(c)),m(o.$slots,"default")])}}});export{h as default}; diff --git a/_nuxt/BWAbWtNn.js b/_nuxt/D-XeeU7p.js similarity index 64% rename from _nuxt/BWAbWtNn.js rename to _nuxt/D-XeeU7p.js index 02cad3a1..07a03c16 100644 --- a/_nuxt/BWAbWtNn.js +++ b/_nuxt/D-XeeU7p.js @@ -1 +1 @@ -import{a0 as a,u as s,h as t,a1 as o}from"./Bk7_z8zR.js";const{isLoggedIn:u}=s(),r=a((c,f)=>{const e=t("hasAccessNft",!1);if(!u.value&&e.value)return o("/")});export{r as default}; +import{a0 as a,u as s,h as t,a1 as o}from"./DRzdypsL.js";const{isLoggedIn:u}=s(),r=a((c,f)=>{const e=t("hasAccessNft",!1);if(!u.value&&e.value)return o("/")});export{r as default}; diff --git a/_nuxt/D1ARI5ig.js b/_nuxt/D1ARI5ig.js deleted file mode 100644 index dd79929e..00000000 --- a/_nuxt/D1ARI5ig.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./BZpomPOF.js";import"./Bk7_z8zR.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./DNgSKQ__.js";export{o as default}; diff --git a/_nuxt/BOi99RIz.js b/_nuxt/D7KKUu8f.js similarity index 77% rename from _nuxt/BOi99RIz.js rename to _nuxt/D7KKUu8f.js index 26672374..8204e9ec 100644 --- a/_nuxt/BOi99RIz.js +++ b/_nuxt/D7KKUu8f.js @@ -1 +1 @@ -import{g as p,x as f,M as u,o as t,c as s,k as i,G as n}from"./Bk7_z8zR.js";const l=["id"],k=["href"],_=p({__name:"ProseH1",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=u(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h1))});return(e,m)=>(t(),s("h1",{id:e.id},[i(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,k)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as u,o as t,c as s,k as i,G as n}from"./DRzdypsL.js";const l=["id"],k=["href"],_=p({__name:"ProseH1",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=u(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h1))});return(e,m)=>(t(),s("h1",{id:e.id},[i(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,k)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/BYCMiOz6.js b/_nuxt/DC3C1jHW.js similarity index 64% rename from _nuxt/BYCMiOz6.js rename to _nuxt/DC3C1jHW.js index 9af45660..54294f65 100644 --- a/_nuxt/BYCMiOz6.js +++ b/_nuxt/DC3C1jHW.js @@ -1 +1 @@ -import{_ as o,o as r,c as s,G as t}from"./Bk7_z8zR.js";const c={};function n(e,l){return r(),s("ul",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as s,G as t}from"./DRzdypsL.js";const c={};function n(e,l){return r(),s("ul",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/CbAMCw4j.js b/_nuxt/DGbaRamz.js similarity index 85% rename from _nuxt/CbAMCw4j.js rename to _nuxt/DGbaRamz.js index 12d056a8..34ba0c3e 100644 --- a/_nuxt/CbAMCw4j.js +++ b/_nuxt/DGbaRamz.js @@ -1 +1 @@ -import d from"./DXM240z2.js";import{g as c,a3 as l,a5 as f}from"./Bk7_z8zR.js";import"./DIqeZryz.js";import"./DNgSKQ__.js";const u=(r,t)=>f("pre",null,JSON.stringify({message:"You should use slots with ",slot:r,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(r){const t=l(),{path:p,query:a}=r,m={...a||{},path:p||(a==null?void 0:a.path)||"/"};return f(d,m,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>u("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):u("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):u("not-found",e==null?void 0:e.data)}})}}),L=h;export{L as default}; +import d from"./DYgeqj2A.js";import{g as c,a3 as l,a5 as f}from"./DRzdypsL.js";import"./vCcY93uT.js";import"./nLZ1R_uv.js";const u=(r,t)=>f("pre",null,JSON.stringify({message:"You should use slots with ",slot:r,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(r){const t=l(),{path:p,query:a}=r,m={...a||{},path:p||(a==null?void 0:a.path)||"/"};return f(d,m,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>u("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):u("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):u("not-found",e==null?void 0:e.data)}})}}),L=h;export{L as default}; diff --git a/_nuxt/Bk7_z8zR.js b/_nuxt/DRzdypsL.js similarity index 99% rename from _nuxt/Bk7_z8zR.js rename to _nuxt/DRzdypsL.js index e6cdc847..dc74937b 100644 --- a/_nuxt/Bk7_z8zR.js +++ b/_nuxt/DRzdypsL.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./CgpvmZr1.js","./CmkKtLv1.js","./ConnectWallet.C9XKiiJJ.css","./CvhRWxfN.js","./access.qZy4TFJK.css","./ULjoJCf3.js","./BC4ZBaMa.js","./BZpomPOF.js","./C-v3KzvZ.js","./BneCoJRQ.js","./DNgSKQ__.js","./JiFQw_g2.js","./index.CngmgJwF.css","./33ex26Pi.js","./task.7UrcU0zq.css","./Db0ZVnqc.js","./D8_oxPFk.js","./VZpoIE_P.js","./index.BETJwANQ.css","./5zMrqJhS.js","./Dna4PVgy.js","./profile.BGzVTTw3.css","./9O8xrwna.js","./DAvJvj7x.js","./DXM240z2.js","./DIqeZryz.js","./CbAMCw4j.js","./CE1bXBtk.js","./D1ARI5ig.js","./BG6wdasp.js","./Cb25f9Ir.js","./BvYdkKW2.js","./CLSFKFYC.js","./ProsePre.CchFRBtv.css","./CadYdy7U.js","./DiPmplMJ.js","./CufKaKGR.js","./CYVKd2LE.js","./TheHeader.D439nP9v.css","./default.BneYNlXN.css","./BhBQiKNq.js","./template.BnqaxewR.css","./JeNKN-o9.js","./error-404.CjGVuf6H.css","./BwZUl92F.js","./error-500.DFBAsgKS.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["./DZvHjpzl.js","./jn6rmPcS.js","./ConnectWallet.C9XKiiJJ.css","./Mhp9soAi.js","./access.qZy4TFJK.css","./imxI89Y8.js","./B_7H3lrK.js","./CbSZFrki.js","./C-v3KzvZ.js","./BneCoJRQ.js","./nLZ1R_uv.js","./BJOVPnNC.js","./index.CngmgJwF.css","./xo8hsDaG.js","./task.7UrcU0zq.css","./BM1cpa3O.js","./yL9Sm9hV.js","./VZpoIE_P.js","./index.BETJwANQ.css","./Dtabo8Ev.js","./IEnkyGq6.js","./profile.BGzVTTw3.css","./tIiR6N12.js","./BcFUG_ju.js","./DYgeqj2A.js","./vCcY93uT.js","./DGbaRamz.js","./_yT1To6n.js","./FhxOfykq.js","./HAH9zurp.js","./xFswHJo3.js","./CECp_Xf5.js","./BA7fD-2p.js","./ProsePre.CchFRBtv.css","./DsZb1hsf.js","./Cq_U2Yt_.js","./DSs6u6dv.js","./DrmMPU4W.js","./TheHeader.D439nP9v.css","./default.BneYNlXN.css","./CrCkutar.js","./template.BnqaxewR.css","./B0-aTjMC.js","./error-404.CjGVuf6H.css","./CqvrLO8u.js","./error-500.DFBAsgKS.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var c8=Object.defineProperty;var H2=t=>{throw TypeError(t)};var u8=(t,e,r)=>e in t?c8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var an=(t,e,r)=>u8(t,typeof e!="symbol"?e+"":e,r),Op=(t,e,r)=>e.has(t)||H2("Cannot "+r);var q=(t,e,r)=>(Op(t,e,"read from private field"),r?r.call(t):e.get(t)),De=(t,e,r)=>e.has(t)?H2("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Oe=(t,e,r,n)=>(Op(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),nt=(t,e,r)=>(Op(t,e,"access private method"),r);var Od=(t,e,r,n)=>({set _(i){Oe(t,e,i,r)},get _(){return q(t,e,n)}});/** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -19,7 +19,7 @@ var c8=Object.defineProperty;var H2=t=>{throw TypeError(t)};var u8=(t,e,r)=>e in * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Vl=typeof document<"u";function uC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Wt=Object.assign;function Qp(t,e){const r={};for(const n in e){const i=e[n];r[n]=Si(i)?i.map(t):t(i)}return r}const nf=()=>{},Si=Array.isArray,x_=/#/g,fC=/&/g,dC=/\//g,hC=/=/g,pC=/\?/g,G_=/\+/g,gC=/%5B/g,bC=/%5D/g,Y_=/%5E/g,mC=/%60/g,M_=/%7B/g,yC=/%7C/g,O_=/%7D/g,vC=/%20/g;function Cm(t){return encodeURI(""+t).replace(yC,"|").replace(gC,"[").replace(bC,"]")}function wC(t){return Cm(t).replace(M_,"{").replace(O_,"}").replace(Y_,"^")}function Zg(t){return Cm(t).replace(G_,"%2B").replace(vC,"+").replace(x_,"%23").replace(fC,"%26").replace(mC,"`").replace(M_,"{").replace(O_,"}").replace(Y_,"^")}function _C(t){return Zg(t).replace(hC,"%3D")}function IC(t){return Cm(t).replace(x_,"%23").replace(pC,"%3F")}function kC(t){return t==null?"":IC(t).replace(dC,"%2F")}function Cf(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const ZC=/\/$/,AC=t=>t.replace(ZC,"");function Kp(t,e,r="/"){let n,i={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(n=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),i=t(o)),s>-1&&(n=n||e.slice(0,s),a=e.slice(s,e.length)),n=SC(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Cf(a)}}function CC(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function ev(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function BC(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&kc(e.matched[n],r.matched[i])&&V_(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function kc(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function V_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!WC(t[r],e[r]))return!1;return!0}function WC(t,e){return Si(t)?tv(t,e):Si(e)?tv(e,t):t===e}function tv(t,e){return Si(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function SC(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,s;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const ki={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bf;(function(t){t.pop="pop",t.push="push"})(Bf||(Bf={}));var of;(function(t){t.back="back",t.forward="forward",t.unknown=""})(of||(of={}));function RC(t){if(!t)if(Vl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),AC(t)}const NC=/^[^#]+#/;function xC(t,e){return t.replace(NC,"#")+e}function GC(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const F0=()=>({left:window.scrollX,top:window.scrollY});function YC(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=GC(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function rv(t,e){return(history.state?history.state.position-e:-1)+t}const Ag=new Map;function MC(t,e){Ag.set(t,e)}function OC(t){const e=Ag.get(t);return Ag.delete(t),e}let VC=()=>location.protocol+"//"+location.host;function E_(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let s=i.includes(t.slice(o))?t.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),ev(l,"")}return ev(r,t)+n+i}function EC(t,e,r,n){let i=[],o=[],a=null;const s=({state:h})=>{const g=E_(t,location),m=r.value,_=e.value;let I=0;if(h){if(r.value=g,e.value=h,a&&a===m){a=null;return}I=_?h.position-_.position:0}else n(g);i.forEach(B=>{B(r.value,m,{delta:I,type:Bf.pop,direction:I?I>0?of.forward:of.back:of.unknown})})};function l(){a=r.value}function c(h){i.push(h);const g=()=>{const m=i.indexOf(h);m>-1&&i.splice(m,1)};return o.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(Wt({},h.state,{scroll:F0()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function nv(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?F0():null}}function jC(t){const{history:e,location:r}=window,n={value:E_(t,r)},i={value:e.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=t.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?t:t.slice(f))+l:VC()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),i.value=c}catch(g){console.error(g),r[u?"replace":"assign"](h)}}function a(l,c){const u=Wt({},e.state,nv(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),n.value=l}function s(l,c){const u=Wt({},i.value,e.state,{forward:l,scroll:F0()});o(u.current,u,!0);const f=Wt({},nv(n.value,l,null),{position:u.position+1},c);o(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:a}}function j_(t){t=RC(t);const e=jC(t),r=EC(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=Wt({location:"",base:t,go:n,createHref:xC.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function zC(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),j_(t)}function XC(t){return typeof t=="string"||t&&typeof t=="object"}function z_(t){return typeof t=="string"||typeof t=="symbol"}const X_=Symbol("");var iv;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(iv||(iv={}));function Zc(t,e){return Wt(new Error,{type:t,[X_]:!0},e)}function _o(t,e){return t instanceof Error&&X_ in t&&(e==null||!!(t.type&e))}const ov="[^/]+?",LC={sensitive:!1,strict:!1,start:!0,end:!0},FC=/[.+*?^${}()[\]/\\]/g;function TC(t,e){const r=Wt({},LC,e),n=[];let i=r.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];r.strict&&!c.length&&(i+="/");for(let f=0;fe.length?e.length===1&&e[0]===80?1:-1:0}function L_(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const DC={type:0,value:""},JC=/[a-zA-Z0-9_]/;function PC(t){if(!t)return[[]];if(t==="/")return[[DC]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${r})/"${c}": ${g}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function f(){c&&(r===0?o.push({type:0,value:c}):r===1||r===2||r===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;s{a(C)}:nf}function a(f){if(z_(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return r}function l(f){const h=eB(f,r);r.splice(h,0,f),f.record.name&&!lv(f)&&n.set(f.record.name,f)}function c(f,h){let g,m={},_,I;if("name"in f&&f.name){if(g=n.get(f.name),!g)throw Zc(1,{location:f});I=g.record.name,m=Wt(sv(h.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&sv(f.params,g.keys.map(C=>C.name))),_=g.stringify(m)}else if(f.path!=null)_=f.path,g=r.find(C=>C.re.test(_)),g&&(m=g.parse(_),I=g.record.name);else{if(g=h.name?n.get(h.name):r.find(C=>C.re.test(h.path)),!g)throw Zc(1,{location:f,currentLocation:h});I=g.record.name,m=Wt({},h.params,f.params),_=g.stringify(m)}const B=[];let W=g;for(;W;)B.unshift(W.record),W=W.parent;return{name:I,path:_,params:m,matched:B,meta:KC(B)}}t.forEach(f=>o(f));function u(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function sv(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function UC(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:QC(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function QC(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function lv(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function KC(t){return t.reduce((e,r)=>Wt(e,r.meta),{})}function cv(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function eB(t,e){let r=0,n=e.length;for(;r!==n;){const o=r+n>>1;L_(t,e[o])<0?n=o:r=o+1}const i=tB(t);return i&&(n=e.lastIndexOf(i,n-1)),n}function tB(t){let e=t;for(;e=e.parent;)if(F_(e)&&L_(t,e)===0)return e}function F_({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function rB(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&Zg(o)):[n&&Zg(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function nB(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Si(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const iB=Symbol(""),fv=Symbol(""),Bm=Symbol(""),Wm=Symbol(""),Cg=Symbol("");function Su(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function ha(t,e,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=h=>{h===!1?l(Zc(4,{from:r,to:e})):h instanceof Error?l(h):XC(h)?l(Zc(2,{from:e,to:h})):(a&&n.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},u=o(()=>t.call(n&&n.instances[i],e,r,c));let f=Promise.resolve(u);t.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function e1(t,e,r,n,i=o=>o()){const o=[];for(const a of t)for(const s in a.components){let l=a.components[s];if(!(e!=="beforeRouteEnter"&&!a.instances[s]))if(oB(l)){const u=(l.__vccOpts||l)[e];u&&o.push(ha(u,r,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const f=uC(u)?u.default:u;a.components[s]=f;const g=(f.__vccOpts||f)[e];return g&&ha(g,r,n,a,s,i)()}))}}return o}function oB(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dv(t){const e=$r(Bm),r=$r(Wm),n=qe(()=>{const l=ze(t.to);return e.resolve(l)}),i=qe(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const h=f.findIndex(kc.bind(null,u));if(h>-1)return h;const g=hv(l[c-2]);return c>1&&hv(u)===g&&f[f.length-1].path!==g?f.findIndex(kc.bind(null,l[c-2])):h}),o=qe(()=>i.value>-1&&cB(r.params,n.value.params)),a=qe(()=>i.value>-1&&i.value===r.matched.length-1&&V_(r.params,n.value.params));function s(l={}){return lB(l)?e[ze(t.replace)?"replace":"push"](ze(t.to)).catch(nf):Promise.resolve()}return{route:n,href:qe(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const aB=Dn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dv,setup(t,{slots:e}){const r=Ln(dv(t)),{options:n}=$r(Bm),i=qe(()=>({[pv(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[pv(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:An("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),sB=aB;function lB(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function cB(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Si(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function hv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const pv=(t,e,r)=>t??e??r,uB=Dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=$r(Cg),i=qe(()=>t.route||n.value),o=$r(fv,0),a=qe(()=>{let c=ze(o);const{matched:u}=i.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),s=qe(()=>i.value.matched[a.value]);Ds(fv,qe(()=>a.value+1)),Ds(iB,s),Ds(Cg,i);const l=bt();return er(()=>[l.value,s.value,t.name],([c,u,f],[h,g,m])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!kc(u,g)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,f=s.value,h=f&&f.components[u];if(!h)return gv(r.default,{Component:h,route:c});const g=f.props[u],m=g?g===!0?c.params:typeof g=="function"?g(c):g:null,I=An(h,Wt({},m,e,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gv(r.default,{Component:I,route:c})||I}}});function gv(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const T_=uB;function fB(t){const e=$C(t.routes,t),r=t.parseQuery||rB,n=t.stringifyQuery||uv,i=t.history,o=Su(),a=Su(),s=Su(),l=Ja(ki);let c=ki;Vl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qp.bind(null,ne=>""+ne),f=Qp.bind(null,kC),h=Qp.bind(null,Cf);function g(ne,le){let T,de;return z_(ne)?(T=e.getRecordMatcher(ne),de=le):de=ne,e.addRoute(de,T)}function m(ne){const le=e.getRecordMatcher(ne);le&&e.removeRoute(le)}function _(){return e.getRoutes().map(ne=>ne.record)}function I(ne){return!!e.getRecordMatcher(ne)}function B(ne,le){if(le=Wt({},le||l.value),typeof ne=="string"){const F=Kp(r,ne,le.path),ee=e.resolve({path:F.path},le),oe=i.createHref(F.fullPath);return Wt(F,ee,{params:h(ee.params),hash:Cf(F.hash),redirectedFrom:void 0,href:oe})}let T;if(ne.path!=null)T=Wt({},ne,{path:Kp(r,ne.path,le.path).path});else{const F=Wt({},ne.params);for(const ee in F)F[ee]==null&&delete F[ee];T=Wt({},ne,{params:f(F)}),le.params=f(le.params)}const de=e.resolve(T,le),Ye=ne.hash||"";de.params=u(h(de.params));const Ne=CC(n,Wt({},ne,{hash:wC(Ye),path:de.path})),E=i.createHref(Ne);return Wt({fullPath:Ne,hash:Ye,query:n===uv?nB(ne.query):ne.query||{}},de,{redirectedFrom:void 0,href:E})}function W(ne){return typeof ne=="string"?Kp(r,ne,l.value.path):Wt({},ne)}function C(ne,le){if(c!==ne)return Zc(8,{from:le,to:ne})}function N(ne){return L(ne)}function V(ne){return N(Wt(W(ne),{replace:!0}))}function z(ne){const le=ne.matched[ne.matched.length-1];if(le&&le.redirect){const{redirect:T}=le;let de=typeof T=="function"?T(ne):T;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=W(de):{path:de},de.params={}),Wt({query:ne.query,hash:ne.hash,params:de.path!=null?{}:ne.params},de)}}function L(ne,le){const T=c=B(ne),de=l.value,Ye=ne.state,Ne=ne.force,E=ne.replace===!0,F=z(T);if(F)return L(Wt(W(F),{state:typeof F=="object"?Wt({},Ye,F.state):Ye,force:Ne,replace:E}),le||T);const ee=T;ee.redirectedFrom=le;let oe;return!Ne&&BC(n,de,T)&&(oe=Zc(16,{to:ee,from:de}),R(de,de,!0,!1)),(oe?Promise.resolve(oe):H(ee,de)).catch(ce=>_o(ce)?_o(ce,2)?ce:y(ce):S(ce,ee,de)).then(ce=>{if(ce){if(_o(ce,2))return L(Wt({replace:E},W(ce.to),{state:typeof ce.to=="object"?Wt({},Ye,ce.to.state):Ye,force:Ne}),le||ee)}else ce=b(ee,de,!0,E,Ye);return x(ee,de,ce),ce})}function P(ne,le){const T=C(ne,le);return T?Promise.reject(T):Promise.resolve()}function j(ne){const le=ve.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ne):ne()}function H(ne,le){let T;const[de,Ye,Ne]=dB(ne,le);T=e1(de.reverse(),"beforeRouteLeave",ne,le);for(const F of de)F.leaveGuards.forEach(ee=>{T.push(ha(ee,ne,le))});const E=P.bind(null,ne,le);return T.push(E),Me(T).then(()=>{T=[];for(const F of o.list())T.push(ha(F,ne,le));return T.push(E),Me(T)}).then(()=>{T=e1(Ye,"beforeRouteUpdate",ne,le);for(const F of Ye)F.updateGuards.forEach(ee=>{T.push(ha(ee,ne,le))});return T.push(E),Me(T)}).then(()=>{T=[];for(const F of Ne)if(F.beforeEnter)if(Si(F.beforeEnter))for(const ee of F.beforeEnter)T.push(ha(ee,ne,le));else T.push(ha(F.beforeEnter,ne,le));return T.push(E),Me(T)}).then(()=>(ne.matched.forEach(F=>F.enterCallbacks={}),T=e1(Ne,"beforeRouteEnter",ne,le,j),T.push(E),Me(T))).then(()=>{T=[];for(const F of a.list())T.push(ha(F,ne,le));return T.push(E),Me(T)}).catch(F=>_o(F,8)?F:Promise.reject(F))}function x(ne,le,T){s.list().forEach(de=>j(()=>de(ne,le,T)))}function b(ne,le,T,de,Ye){const Ne=C(ne,le);if(Ne)return Ne;const E=le===ki,F=Vl?history.state:{};T&&(de||E?i.replace(ne.fullPath,Wt({scroll:E&&F&&F.scroll},Ye)):i.push(ne.fullPath,Ye)),l.value=ne,R(ne,le,T,E),y()}let v;function k(){v||(v=i.listen((ne,le,T)=>{if(!Ge.listening)return;const de=B(ne),Ye=z(de);if(Ye){L(Wt(Ye,{replace:!0}),de).catch(nf);return}c=de;const Ne=l.value;Vl&&MC(rv(Ne.fullPath,T.delta),F0()),H(de,Ne).catch(E=>_o(E,12)?E:_o(E,2)?(L(E.to,de).then(F=>{_o(F,20)&&!T.delta&&T.type===Bf.pop&&i.go(-1,!1)}).catch(nf),Promise.reject()):(T.delta&&i.go(-T.delta,!1),S(E,de,Ne))).then(E=>{E=E||b(de,Ne,!1),E&&(T.delta&&!_o(E,8)?i.go(-T.delta,!1):T.type===Bf.pop&&_o(E,20)&&i.go(-1,!1)),x(de,Ne,E)}).catch(nf)}))}let A=Su(),G=Su(),Y;function S(ne,le,T){y(ne);const de=G.list();return de.length?de.forEach(Ye=>Ye(ne,le,T)):console.error(ne),Promise.reject(ne)}function M(){return Y&&l.value!==ki?Promise.resolve():new Promise((ne,le)=>{A.add([ne,le])})}function y(ne){return Y||(Y=!ne,k(),A.list().forEach(([le,T])=>ne?T(ne):le()),A.reset()),ne}function R(ne,le,T,de){const{scrollBehavior:Ye}=t;if(!Vl||!Ye)return Promise.resolve();const Ne=!T&&OC(rv(ne.fullPath,0))||(de||!T)&&history.state&&history.state.scroll||null;return Sn().then(()=>Ye(ne,le,Ne)).then(E=>E&&YC(E)).catch(E=>S(E,ne,le))}const K=ne=>i.go(ne);let ue;const ve=new Set,Ge={currentRoute:l,listening:!0,addRoute:g,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:I,getRoutes:_,resolve:B,options:t,push:N,replace:V,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:G.add,isReady:M,install(ne){const le=this;ne.component("RouterLink",sB),ne.component("RouterView",T_),ne.config.globalProperties.$router=le,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>ze(l)}),Vl&&!ue&&l.value===ki&&(ue=!0,N(i.location).catch(Ye=>{}));const T={};for(const Ye in ki)Object.defineProperty(T,Ye,{get:()=>l.value[Ye],enumerable:!0});ne.provide(Bm,le),ne.provide(Wm,Zn(T)),ne.provide(Cg,l);const de=ne.unmount;ve.add(ne),ne.unmount=function(){ve.delete(ne),ve.size<1&&(c=ki,v&&v(),v=null,l.value=ki,ue=!1,Y=!1),de()}}};function Me(ne){return ne.reduce((le,T)=>le.then(()=>j(T)),Promise.resolve())}return Ge}function dB(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;akc(c,s))?n.push(s):r.push(s));const l=t.matched[a];l&&(e.matched.find(c=>kc(c,l))||i.push(l))}return[r,n,i]}function hB(t){return $r(Wm)}const pB=(t,e)=>e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=t.params[r.slice(1)])==null?void 0:n.toString())||""}),Bg=(t,e)=>{const r=t.route.matched.find(i=>{var o;return((o=i.components)==null?void 0:o.default)===t.Component.type}),n=e??(r==null?void 0:r.meta.key)??(r&&pB(t.route,r));return typeof n=="function"?n(t.route):n},gB=(t,e)=>({default:()=>t?An(TI,t===!0?{}:t,e):e});function Sm(t){return Array.isArray(t)?t:[t]}const bB="modulepreload",mB=function(t,e){return t[0]==="."?new URL(t,e).href:t},bv={},yB=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.all(r.map(l=>{if(l=mB(l,n),l in bv)return;bv[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!n)for(let g=o.length-1;g>=0;g--){const m=o[g];if(m.href===l&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":bB,c||(h.as="script",h.crossOrigin=""),h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),c)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},Je=(...t)=>yB(...t).catch(e=>{const r=new Event("nuxt.preloadError");throw r.payload=e,window.dispatchEvent(r),e}),vB={layout:"preview"},wB={middleware:"auth",layout:"template"},_B={middleware:"auth"},IB={middleware:"auth"},mv=[{name:"access",path:"/access",meta:vB||{},component:()=>Je(()=>import("./CgpvmZr1.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(t=>t.default||t)},{name:"campaign-id",path:"/campaign/:id()",component:()=>Je(()=>import("./ULjoJCf3.js"),__vite__mapDeps([5,3,6,7,8,9,10,11,12]),import.meta.url).then(t=>t.default||t)},{name:"campaign-id-task",path:"/campaign/:id()/task",meta:wB||{},component:()=>Je(()=>import("./33ex26Pi.js"),__vite__mapDeps([13,14]),import.meta.url).then(t=>t.default||t)},{name:"index",path:"/",component:()=>Je(()=>import("./Db0ZVnqc.js"),__vite__mapDeps([15,3,16,17,18]),import.meta.url).then(t=>t.default||t)},{name:"login",path:"/login",component:()=>Je(()=>import("./5zMrqJhS.js"),__vite__mapDeps([19,1,2]),import.meta.url).then(t=>t.default||t)},{name:"profile",path:"/profile",meta:_B||{},component:()=>Je(()=>import("./Dna4PVgy.js"),__vite__mapDeps([20,17,21]),import.meta.url).then(t=>t.default||t)},{name:"settings",path:"/settings",meta:IB||{},component:()=>Je(()=>import("./BlZyVAoE.js"),[],import.meta.url).then(t=>t.default||t)}],H_=(t,e,r)=>(e=e===!0?{}:e,{default:()=>{var n;return e?An(t,e,r):(n=r.default)==null?void 0:n.call(r)}});function yv(t){const e=(t==null?void 0:t.meta.key)??t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=t.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof e=="function"?e(t):e}function kB(t,e){return t===e||e===ki?!1:yv(t)!==yv(e)?!0:!t.matched.every((n,i)=>{var o,a;return n.components&&n.components.default===((a=(o=e.matched[i])==null?void 0:o.components)==null?void 0:a.default)})}const ZB={scrollBehavior(t,e,r){var c;const n=gr(),i=((c=Mi().options)==null?void 0:c.scrollBehaviorType)??"auto";let o=r||void 0;const a=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!o&&e&&t&&a!==!1&&kB(t,e)&&(o={left:0,top:0}),t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:vv(t.hash),behavior:i}:!1;const s=u=>!!(u.meta.pageTransition??bg),l=s(e)&&s(t)?"page:transition:finish":"page:finish";return new Promise(u=>{n.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),t.hash&&(o={el:t.hash,top:vv(t.hash),behavior:i}),u(o)})})}};function vv(t){try{const e=document.querySelector(t);if(e)return Number.parseFloat(getComputedStyle(e).scrollMarginTop)}catch{}return 0}const AB={hashMode:!1,scrollBehaviorType:"auto"},Gn={...AB,...ZB},CB=async t=>{var l;let e,r;if(!((l=t.meta)!=null&&l.validate))return;const n=gr(),i=Mi();if(([e,r]=Af(()=>Promise.resolve(t.meta.validate(t))),e=await e,r(),e)===!0)return;const a=X0({statusCode:404,statusMessage:`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}}),s=i.beforeResolve(c=>{if(s(),c===t){const u=i.afterEach(async()=>{u(),await n.runWithContext(()=>Xl(a)),window.history.pushState({},"",t.fullPath)});return!1}})},BB=window.setInterval,$d=bt([]),Rm=()=>{const t=n=>{const i=$d.value.indexOf(n);i!==-1&&$d.value.splice(i,1)},e=n=>(new Date().getTime()-n.created.getTime())/n.duration*100;return{calculateNotificationProgress:e,removeNotification:t,notifications:$d,notify:({message:n,type:i,duration:o=5e3,icon:a})=>{const s=Zn({message:n,type:i,duration:o,progress:0,created:new Date,icon:a}),l=BB(()=>{s.progress=e(s)},100);$d.value.push(s),setTimeout(()=>{clearInterval(l),t(s)},o)}}};var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function WB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var xm={exports:{}};const SB={},RB=Object.freeze(Object.defineProperty({__proto__:null,default:SB},Symbol.toStringTag,{value:"Module"})),D_=WB(RB);var t1;xm.exports=function(e){return t1||(t1=new Ra(null)),t1.generate(e)};function Ra(t){this.rand=t}xm.exports.Rand=Ra;Ra.prototype.generate=function(e){return this._rand(e)};Ra.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function MB(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=o&63|128):YB(t,i)?(o=65536+((o&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}ft.htonl=P_;function VB(t,e){for(var r="",n=0;n>>0}return o}ft.join32=EB;function jB(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}ft.split32=jB;function zB(t,e){return t>>>e|t<<32-e}ft.rotr32=zB;function XB(t,e){return t<>>32-e}ft.rotl32=XB;function LB(t,e){return t+e>>>0}ft.sum32=LB;function FB(t,e,r){return t+e+r>>>0}ft.sum32_3=FB;function TB(t,e,r,n){return t+e+r+n>>>0}ft.sum32_4=TB;function HB(t,e,r,n,i){return t+e+r+n+i>>>0}ft.sum32_5=HB;function DB(t,e,r,n){var i=t[e],o=t[e+1],a=n+o>>>0,s=(a>>0,t[e+1]=a}ft.sum64=DB;function JB(t,e,r,n){var i=e+n>>>0,o=(i>>0}ft.sum64_hi=JB;function PB(t,e,r,n){var i=e+n;return i>>>0}ft.sum64_lo=PB;function qB(t,e,r,n,i,o,a,s){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}ft.sum64_4_hi=qB;function $B(t,e,r,n,i,o,a,s){var l=e+n+o+s;return l>>>0}ft.sum64_4_lo=$B;function UB(t,e,r,n,i,o,a,s,l,c){var u=0,f=e;f=f+n>>>0,u+=f>>0,u+=f>>0,u+=f>>0,u+=f>>0}ft.sum64_5_hi=UB;function QB(t,e,r,n,i,o,a,s,l,c){var u=e+n+o+s+c;return u>>>0}ft.sum64_5_lo=QB;function KB(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}ft.rotr64_hi=KB;function eW(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ft.rotr64_lo=eW;function tW(t,e,r){return t>>>r}ft.shr64_hi=tW;function rW(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ft.shr64_lo=rW;var ou={},_v=ft,nW=kl;function H0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ou.BlockHash=H0;H0.prototype.update=function(e,r){if(e=_v.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=_v.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=e&255}else for(i[o++]=e&255,i[o++]=e>>>8&255,i[o++]=e>>>16&255,i[o++]=e>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,a=8;a>>3}mo.g0_256=lW;function cW(t){return eo(t,17)^eo(t,19)^t>>>10}mo.g1_256=cW;var Ac=ft,uW=ou,fW=mo,r1=Ac.rotl32,Ru=Ac.sum32,dW=Ac.sum32_5,hW=fW.ft_1,e6=uW.BlockHash,pW=[1518500249,1859775393,2400959708,3395469782];function so(){if(!(this instanceof so))return new so;e6.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ac.inherits(so,e6);var gW=so;so.blockSize=512;so.outSize=160;so.hmacStrength=80;so.padLength=64;so.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),rS(e.length<=this.blockSize);for(var r=e.length;r0?b:v},o.min=function(b,v){return b.cmp(v)<0?b:v},o.prototype._init=function(b,v,k){if(typeof b=="number")return this._initNumber(b,v,k);if(typeof b=="object")return this._initArray(b,v,k);v==="hex"&&(v=16),n(v===(v|0)&&v>=2&&v<=36),b=b.toString().replace(/\s+/g,"");var A=0;b[0]==="-"&&(A++,this.negative=1),A=0;A-=3)Y=b[A]|b[A-1]<<8|b[A-2]<<16,this.words[G]|=Y<>>26-S&67108863,S+=24,S>=26&&(S-=26,G++);else if(k==="le")for(A=0,G=0;A>>26-S&67108863,S+=24,S>=26&&(S-=26,G++);return this.strip()};function s(x,b){var v=x.charCodeAt(b);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function l(x,b,v){var k=s(x,v);return v-1>=b&&(k|=s(x,v-1)<<4),k}o.prototype._parseHex=function(b,v,k){this.length=Math.ceil((b.length-v)/6),this.words=new Array(this.length);for(var A=0;A=v;A-=2)S=l(b,v,A)<=18?(G-=18,Y+=1,this.words[Y]|=S>>>26):G+=8;else{var M=b.length-v;for(A=M%2===0?v+1:v;A=18?(G-=18,Y+=1,this.words[Y]|=S>>>26):G+=8}this.strip()};function c(x,b,v,k){for(var A=0,G=Math.min(x.length,v),Y=b;Y=49?A+=S-49+10:S>=17?A+=S-17+10:A+=S}return A}o.prototype._parseBase=function(b,v,k){this.words=[0],this.length=1;for(var A=0,G=1;G<=67108863;G*=v)A++;A--,G=G/v|0;for(var Y=b.length-k,S=Y%A,M=Math.min(Y,Y-S)+k,y=0,R=k;R1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(b,v){b=b||10,v=v|0||1;var k;if(b===16||b==="hex"){k="";for(var A=0,G=0,Y=0;Y>>24-A&16777215,G!==0||Y!==this.length-1?k=u[6-M.length]+M+k:k=M+k,A+=2,A>=26&&(A-=26,Y--)}for(G!==0&&(k=G.toString(16)+k);k.length%v!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(b===(b|0)&&b>=2&&b<=36){var y=f[b],R=h[b];k="";var K=this.clone();for(K.negative=0;!K.isZero();){var ue=K.modn(R).toString(b);K=K.idivn(R),K.isZero()?k=ue+k:k=u[y-ue.length]+ue+k}for(this.isZero()&&(k="0"+k);k.length%v!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(b,v){return n(typeof a<"u"),this.toArrayLike(a,b,v)},o.prototype.toArray=function(b,v){return this.toArrayLike(Array,b,v)},o.prototype.toArrayLike=function(b,v,k){var A=this.byteLength(),G=k||Math.max(1,A);n(A<=G,"byte array longer than desired length"),n(G>0,"Requested array length <= 0"),this.strip();var Y=v==="le",S=new b(G),M,y,R=this.clone();if(Y){for(y=0;!R.isZero();y++)M=R.andln(255),R.iushrn(8),S[y]=M;for(;y=4096&&(k+=13,v>>>=13),v>=64&&(k+=7,v>>>=7),v>=8&&(k+=4,v>>>=4),v>=2&&(k+=2,v>>>=2),k+v},o.prototype._zeroBits=function(b){if(b===0)return 26;var v=b,k=0;return v&8191||(k+=13,v>>>=13),v&127||(k+=7,v>>>=7),v&15||(k+=4,v>>>=4),v&3||(k+=2,v>>>=2),v&1||k++,k},o.prototype.bitLength=function(){var b=this.words[this.length-1],v=this._countBits(b);return(this.length-1)*26+v};function g(x){for(var b=new Array(x.bitLength()),v=0;v>>A}return b}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,v=0;vb.length?this.clone().ior(b):b.clone().ior(this)},o.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},o.prototype.iuand=function(b){var v;this.length>b.length?v=b:v=this;for(var k=0;kb.length?this.clone().iand(b):b.clone().iand(this)},o.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},o.prototype.iuxor=function(b){var v,k;this.length>b.length?(v=this,k=b):(v=b,k=this);for(var A=0;Ab.length?this.clone().ixor(b):b.clone().ixor(this)},o.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},o.prototype.inotn=function(b){n(typeof b=="number"&&b>=0);var v=Math.ceil(b/26)|0,k=b%26;this._expand(v),k>0&&v--;for(var A=0;A0&&(this.words[A]=~this.words[A]&67108863>>26-k),this.strip()},o.prototype.notn=function(b){return this.clone().inotn(b)},o.prototype.setn=function(b,v){n(typeof b=="number"&&b>=0);var k=b/26|0,A=b%26;return this._expand(k+1),v?this.words[k]=this.words[k]|1<b.length?(k=this,A=b):(k=b,A=this);for(var G=0,Y=0;Y>>26;for(;G!==0&&Y>>26;if(this.length=k.length,G!==0)this.words[this.length]=G,this.length++;else if(k!==this)for(;Yb.length?this.clone().iadd(b):b.clone().iadd(this)},o.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var v=this.iadd(b);return b.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var k=this.cmp(b);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,G;k>0?(A=this,G=b):(A=b,G=this);for(var Y=0,S=0;S>26,this.words[S]=v&67108863;for(;Y!==0&&S>26,this.words[S]=v&67108863;if(Y===0&&S>>26,K=M&67108863,ue=Math.min(y,b.length-1),ve=Math.max(0,y-x.length+1);ve<=ue;ve++){var Ge=y-ve|0;A=x.words[Ge]|0,G=b.words[ve]|0,Y=A*G+K,R+=Y/67108864|0,K=Y&67108863}v.words[y]=K|0,M=R|0}return M!==0?v.words[y]=M|0:v.length--,v.strip()}var _=function(b,v,k){var A=b.words,G=v.words,Y=k.words,S=0,M,y,R,K=A[0]|0,ue=K&8191,ve=K>>>13,Ge=A[1]|0,Me=Ge&8191,ne=Ge>>>13,le=A[2]|0,T=le&8191,de=le>>>13,Ye=A[3]|0,Ne=Ye&8191,E=Ye>>>13,F=A[4]|0,ee=F&8191,oe=F>>>13,ce=A[5]|0,pe=ce&8191,ge=ce>>>13,_e=A[6]|0,be=_e&8191,se=_e>>>13,Re=A[7]|0,fe=Re&8191,Ie=Re>>>13,w=A[8]|0,Z=w&8191,O=w>>>13,X=A[9]|0,$=X&8191,J=X>>>13,ie=G[0]|0,re=ie&8191,ae=ie>>>13,xe=G[1]|0,Se=xe&8191,ke=xe>>>13,Pe=G[2]|0,Ke=Pe&8191,et=Pe>>>13,Jt=G[3]|0,kt=Jt&8191,Xt=Jt>>>13,Qo=G[4]|0,Lt=Qo&8191,Rt=Qo>>>13,yi=G[5]|0,zt=yi&8191,Pt=yi>>>13,Ko=G[6]|0,qt=Ko&8191,$t=Ko>>>13,ps=G[7]|0,Nt=ps&8191,xt=ps>>>13,gs=G[8]|0,Gt=gs&8191,Bt=gs>>>13,bs=G[9]|0,Ut=bs&8191,Yt=bs>>>13;k.negative=b.negative^v.negative,k.length=19,M=Math.imul(ue,re),y=Math.imul(ue,ae),y=y+Math.imul(ve,re)|0,R=Math.imul(ve,ae);var Ei=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,M=Math.imul(Me,re),y=Math.imul(Me,ae),y=y+Math.imul(ne,re)|0,R=Math.imul(ne,ae),M=M+Math.imul(ue,Se)|0,y=y+Math.imul(ue,ke)|0,y=y+Math.imul(ve,Se)|0,R=R+Math.imul(ve,ke)|0;var Tr=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,M=Math.imul(T,re),y=Math.imul(T,ae),y=y+Math.imul(de,re)|0,R=Math.imul(de,ae),M=M+Math.imul(Me,Se)|0,y=y+Math.imul(Me,ke)|0,y=y+Math.imul(ne,Se)|0,R=R+Math.imul(ne,ke)|0,M=M+Math.imul(ue,Ke)|0,y=y+Math.imul(ue,et)|0,y=y+Math.imul(ve,Ke)|0,R=R+Math.imul(ve,et)|0;var ea=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(ea>>>26)|0,ea&=67108863,M=Math.imul(Ne,re),y=Math.imul(Ne,ae),y=y+Math.imul(E,re)|0,R=Math.imul(E,ae),M=M+Math.imul(T,Se)|0,y=y+Math.imul(T,ke)|0,y=y+Math.imul(de,Se)|0,R=R+Math.imul(de,ke)|0,M=M+Math.imul(Me,Ke)|0,y=y+Math.imul(Me,et)|0,y=y+Math.imul(ne,Ke)|0,R=R+Math.imul(ne,et)|0,M=M+Math.imul(ue,kt)|0,y=y+Math.imul(ue,Xt)|0,y=y+Math.imul(ve,kt)|0,R=R+Math.imul(ve,Xt)|0;var ta=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(ta>>>26)|0,ta&=67108863,M=Math.imul(ee,re),y=Math.imul(ee,ae),y=y+Math.imul(oe,re)|0,R=Math.imul(oe,ae),M=M+Math.imul(Ne,Se)|0,y=y+Math.imul(Ne,ke)|0,y=y+Math.imul(E,Se)|0,R=R+Math.imul(E,ke)|0,M=M+Math.imul(T,Ke)|0,y=y+Math.imul(T,et)|0,y=y+Math.imul(de,Ke)|0,R=R+Math.imul(de,et)|0,M=M+Math.imul(Me,kt)|0,y=y+Math.imul(Me,Xt)|0,y=y+Math.imul(ne,kt)|0,R=R+Math.imul(ne,Xt)|0,M=M+Math.imul(ue,Lt)|0,y=y+Math.imul(ue,Rt)|0,y=y+Math.imul(ve,Lt)|0,R=R+Math.imul(ve,Rt)|0;var wo=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(wo>>>26)|0,wo&=67108863,M=Math.imul(pe,re),y=Math.imul(pe,ae),y=y+Math.imul(ge,re)|0,R=Math.imul(ge,ae),M=M+Math.imul(ee,Se)|0,y=y+Math.imul(ee,ke)|0,y=y+Math.imul(oe,Se)|0,R=R+Math.imul(oe,ke)|0,M=M+Math.imul(Ne,Ke)|0,y=y+Math.imul(Ne,et)|0,y=y+Math.imul(E,Ke)|0,R=R+Math.imul(E,et)|0,M=M+Math.imul(T,kt)|0,y=y+Math.imul(T,Xt)|0,y=y+Math.imul(de,kt)|0,R=R+Math.imul(de,Xt)|0,M=M+Math.imul(Me,Lt)|0,y=y+Math.imul(Me,Rt)|0,y=y+Math.imul(ne,Lt)|0,R=R+Math.imul(ne,Rt)|0,M=M+Math.imul(ue,zt)|0,y=y+Math.imul(ue,Pt)|0,y=y+Math.imul(ve,zt)|0,R=R+Math.imul(ve,Pt)|0;var vi=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(vi>>>26)|0,vi&=67108863,M=Math.imul(be,re),y=Math.imul(be,ae),y=y+Math.imul(se,re)|0,R=Math.imul(se,ae),M=M+Math.imul(pe,Se)|0,y=y+Math.imul(pe,ke)|0,y=y+Math.imul(ge,Se)|0,R=R+Math.imul(ge,ke)|0,M=M+Math.imul(ee,Ke)|0,y=y+Math.imul(ee,et)|0,y=y+Math.imul(oe,Ke)|0,R=R+Math.imul(oe,et)|0,M=M+Math.imul(Ne,kt)|0,y=y+Math.imul(Ne,Xt)|0,y=y+Math.imul(E,kt)|0,R=R+Math.imul(E,Xt)|0,M=M+Math.imul(T,Lt)|0,y=y+Math.imul(T,Rt)|0,y=y+Math.imul(de,Lt)|0,R=R+Math.imul(de,Rt)|0,M=M+Math.imul(Me,zt)|0,y=y+Math.imul(Me,Pt)|0,y=y+Math.imul(ne,zt)|0,R=R+Math.imul(ne,Pt)|0,M=M+Math.imul(ue,qt)|0,y=y+Math.imul(ue,$t)|0,y=y+Math.imul(ve,qt)|0,R=R+Math.imul(ve,$t)|0;var we=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(we>>>26)|0,we&=67108863,M=Math.imul(fe,re),y=Math.imul(fe,ae),y=y+Math.imul(Ie,re)|0,R=Math.imul(Ie,ae),M=M+Math.imul(be,Se)|0,y=y+Math.imul(be,ke)|0,y=y+Math.imul(se,Se)|0,R=R+Math.imul(se,ke)|0,M=M+Math.imul(pe,Ke)|0,y=y+Math.imul(pe,et)|0,y=y+Math.imul(ge,Ke)|0,R=R+Math.imul(ge,et)|0,M=M+Math.imul(ee,kt)|0,y=y+Math.imul(ee,Xt)|0,y=y+Math.imul(oe,kt)|0,R=R+Math.imul(oe,Xt)|0,M=M+Math.imul(Ne,Lt)|0,y=y+Math.imul(Ne,Rt)|0,y=y+Math.imul(E,Lt)|0,R=R+Math.imul(E,Rt)|0,M=M+Math.imul(T,zt)|0,y=y+Math.imul(T,Pt)|0,y=y+Math.imul(de,zt)|0,R=R+Math.imul(de,Pt)|0,M=M+Math.imul(Me,qt)|0,y=y+Math.imul(Me,$t)|0,y=y+Math.imul(ne,qt)|0,R=R+Math.imul(ne,$t)|0,M=M+Math.imul(ue,Nt)|0,y=y+Math.imul(ue,xt)|0,y=y+Math.imul(ve,Nt)|0,R=R+Math.imul(ve,xt)|0;var Zp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,M=Math.imul(Z,re),y=Math.imul(Z,ae),y=y+Math.imul(O,re)|0,R=Math.imul(O,ae),M=M+Math.imul(fe,Se)|0,y=y+Math.imul(fe,ke)|0,y=y+Math.imul(Ie,Se)|0,R=R+Math.imul(Ie,ke)|0,M=M+Math.imul(be,Ke)|0,y=y+Math.imul(be,et)|0,y=y+Math.imul(se,Ke)|0,R=R+Math.imul(se,et)|0,M=M+Math.imul(pe,kt)|0,y=y+Math.imul(pe,Xt)|0,y=y+Math.imul(ge,kt)|0,R=R+Math.imul(ge,Xt)|0,M=M+Math.imul(ee,Lt)|0,y=y+Math.imul(ee,Rt)|0,y=y+Math.imul(oe,Lt)|0,R=R+Math.imul(oe,Rt)|0,M=M+Math.imul(Ne,zt)|0,y=y+Math.imul(Ne,Pt)|0,y=y+Math.imul(E,zt)|0,R=R+Math.imul(E,Pt)|0,M=M+Math.imul(T,qt)|0,y=y+Math.imul(T,$t)|0,y=y+Math.imul(de,qt)|0,R=R+Math.imul(de,$t)|0,M=M+Math.imul(Me,Nt)|0,y=y+Math.imul(Me,xt)|0,y=y+Math.imul(ne,Nt)|0,R=R+Math.imul(ne,xt)|0,M=M+Math.imul(ue,Gt)|0,y=y+Math.imul(ue,Bt)|0,y=y+Math.imul(ve,Gt)|0,R=R+Math.imul(ve,Bt)|0;var Ap=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Ap>>>26)|0,Ap&=67108863,M=Math.imul($,re),y=Math.imul($,ae),y=y+Math.imul(J,re)|0,R=Math.imul(J,ae),M=M+Math.imul(Z,Se)|0,y=y+Math.imul(Z,ke)|0,y=y+Math.imul(O,Se)|0,R=R+Math.imul(O,ke)|0,M=M+Math.imul(fe,Ke)|0,y=y+Math.imul(fe,et)|0,y=y+Math.imul(Ie,Ke)|0,R=R+Math.imul(Ie,et)|0,M=M+Math.imul(be,kt)|0,y=y+Math.imul(be,Xt)|0,y=y+Math.imul(se,kt)|0,R=R+Math.imul(se,Xt)|0,M=M+Math.imul(pe,Lt)|0,y=y+Math.imul(pe,Rt)|0,y=y+Math.imul(ge,Lt)|0,R=R+Math.imul(ge,Rt)|0,M=M+Math.imul(ee,zt)|0,y=y+Math.imul(ee,Pt)|0,y=y+Math.imul(oe,zt)|0,R=R+Math.imul(oe,Pt)|0,M=M+Math.imul(Ne,qt)|0,y=y+Math.imul(Ne,$t)|0,y=y+Math.imul(E,qt)|0,R=R+Math.imul(E,$t)|0,M=M+Math.imul(T,Nt)|0,y=y+Math.imul(T,xt)|0,y=y+Math.imul(de,Nt)|0,R=R+Math.imul(de,xt)|0,M=M+Math.imul(Me,Gt)|0,y=y+Math.imul(Me,Bt)|0,y=y+Math.imul(ne,Gt)|0,R=R+Math.imul(ne,Bt)|0,M=M+Math.imul(ue,Ut)|0,y=y+Math.imul(ue,Yt)|0,y=y+Math.imul(ve,Ut)|0,R=R+Math.imul(ve,Yt)|0;var Cp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Cp>>>26)|0,Cp&=67108863,M=Math.imul($,Se),y=Math.imul($,ke),y=y+Math.imul(J,Se)|0,R=Math.imul(J,ke),M=M+Math.imul(Z,Ke)|0,y=y+Math.imul(Z,et)|0,y=y+Math.imul(O,Ke)|0,R=R+Math.imul(O,et)|0,M=M+Math.imul(fe,kt)|0,y=y+Math.imul(fe,Xt)|0,y=y+Math.imul(Ie,kt)|0,R=R+Math.imul(Ie,Xt)|0,M=M+Math.imul(be,Lt)|0,y=y+Math.imul(be,Rt)|0,y=y+Math.imul(se,Lt)|0,R=R+Math.imul(se,Rt)|0,M=M+Math.imul(pe,zt)|0,y=y+Math.imul(pe,Pt)|0,y=y+Math.imul(ge,zt)|0,R=R+Math.imul(ge,Pt)|0,M=M+Math.imul(ee,qt)|0,y=y+Math.imul(ee,$t)|0,y=y+Math.imul(oe,qt)|0,R=R+Math.imul(oe,$t)|0,M=M+Math.imul(Ne,Nt)|0,y=y+Math.imul(Ne,xt)|0,y=y+Math.imul(E,Nt)|0,R=R+Math.imul(E,xt)|0,M=M+Math.imul(T,Gt)|0,y=y+Math.imul(T,Bt)|0,y=y+Math.imul(de,Gt)|0,R=R+Math.imul(de,Bt)|0,M=M+Math.imul(Me,Ut)|0,y=y+Math.imul(Me,Yt)|0,y=y+Math.imul(ne,Ut)|0,R=R+Math.imul(ne,Yt)|0;var Bp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Bp>>>26)|0,Bp&=67108863,M=Math.imul($,Ke),y=Math.imul($,et),y=y+Math.imul(J,Ke)|0,R=Math.imul(J,et),M=M+Math.imul(Z,kt)|0,y=y+Math.imul(Z,Xt)|0,y=y+Math.imul(O,kt)|0,R=R+Math.imul(O,Xt)|0,M=M+Math.imul(fe,Lt)|0,y=y+Math.imul(fe,Rt)|0,y=y+Math.imul(Ie,Lt)|0,R=R+Math.imul(Ie,Rt)|0,M=M+Math.imul(be,zt)|0,y=y+Math.imul(be,Pt)|0,y=y+Math.imul(se,zt)|0,R=R+Math.imul(se,Pt)|0,M=M+Math.imul(pe,qt)|0,y=y+Math.imul(pe,$t)|0,y=y+Math.imul(ge,qt)|0,R=R+Math.imul(ge,$t)|0,M=M+Math.imul(ee,Nt)|0,y=y+Math.imul(ee,xt)|0,y=y+Math.imul(oe,Nt)|0,R=R+Math.imul(oe,xt)|0,M=M+Math.imul(Ne,Gt)|0,y=y+Math.imul(Ne,Bt)|0,y=y+Math.imul(E,Gt)|0,R=R+Math.imul(E,Bt)|0,M=M+Math.imul(T,Ut)|0,y=y+Math.imul(T,Yt)|0,y=y+Math.imul(de,Ut)|0,R=R+Math.imul(de,Yt)|0;var Wp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Wp>>>26)|0,Wp&=67108863,M=Math.imul($,kt),y=Math.imul($,Xt),y=y+Math.imul(J,kt)|0,R=Math.imul(J,Xt),M=M+Math.imul(Z,Lt)|0,y=y+Math.imul(Z,Rt)|0,y=y+Math.imul(O,Lt)|0,R=R+Math.imul(O,Rt)|0,M=M+Math.imul(fe,zt)|0,y=y+Math.imul(fe,Pt)|0,y=y+Math.imul(Ie,zt)|0,R=R+Math.imul(Ie,Pt)|0,M=M+Math.imul(be,qt)|0,y=y+Math.imul(be,$t)|0,y=y+Math.imul(se,qt)|0,R=R+Math.imul(se,$t)|0,M=M+Math.imul(pe,Nt)|0,y=y+Math.imul(pe,xt)|0,y=y+Math.imul(ge,Nt)|0,R=R+Math.imul(ge,xt)|0,M=M+Math.imul(ee,Gt)|0,y=y+Math.imul(ee,Bt)|0,y=y+Math.imul(oe,Gt)|0,R=R+Math.imul(oe,Bt)|0,M=M+Math.imul(Ne,Ut)|0,y=y+Math.imul(Ne,Yt)|0,y=y+Math.imul(E,Ut)|0,R=R+Math.imul(E,Yt)|0;var Sp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Sp>>>26)|0,Sp&=67108863,M=Math.imul($,Lt),y=Math.imul($,Rt),y=y+Math.imul(J,Lt)|0,R=Math.imul(J,Rt),M=M+Math.imul(Z,zt)|0,y=y+Math.imul(Z,Pt)|0,y=y+Math.imul(O,zt)|0,R=R+Math.imul(O,Pt)|0,M=M+Math.imul(fe,qt)|0,y=y+Math.imul(fe,$t)|0,y=y+Math.imul(Ie,qt)|0,R=R+Math.imul(Ie,$t)|0,M=M+Math.imul(be,Nt)|0,y=y+Math.imul(be,xt)|0,y=y+Math.imul(se,Nt)|0,R=R+Math.imul(se,xt)|0,M=M+Math.imul(pe,Gt)|0,y=y+Math.imul(pe,Bt)|0,y=y+Math.imul(ge,Gt)|0,R=R+Math.imul(ge,Bt)|0,M=M+Math.imul(ee,Ut)|0,y=y+Math.imul(ee,Yt)|0,y=y+Math.imul(oe,Ut)|0,R=R+Math.imul(oe,Yt)|0;var Rp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Rp>>>26)|0,Rp&=67108863,M=Math.imul($,zt),y=Math.imul($,Pt),y=y+Math.imul(J,zt)|0,R=Math.imul(J,Pt),M=M+Math.imul(Z,qt)|0,y=y+Math.imul(Z,$t)|0,y=y+Math.imul(O,qt)|0,R=R+Math.imul(O,$t)|0,M=M+Math.imul(fe,Nt)|0,y=y+Math.imul(fe,xt)|0,y=y+Math.imul(Ie,Nt)|0,R=R+Math.imul(Ie,xt)|0,M=M+Math.imul(be,Gt)|0,y=y+Math.imul(be,Bt)|0,y=y+Math.imul(se,Gt)|0,R=R+Math.imul(se,Bt)|0,M=M+Math.imul(pe,Ut)|0,y=y+Math.imul(pe,Yt)|0,y=y+Math.imul(ge,Ut)|0,R=R+Math.imul(ge,Yt)|0;var Np=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Np>>>26)|0,Np&=67108863,M=Math.imul($,qt),y=Math.imul($,$t),y=y+Math.imul(J,qt)|0,R=Math.imul(J,$t),M=M+Math.imul(Z,Nt)|0,y=y+Math.imul(Z,xt)|0,y=y+Math.imul(O,Nt)|0,R=R+Math.imul(O,xt)|0,M=M+Math.imul(fe,Gt)|0,y=y+Math.imul(fe,Bt)|0,y=y+Math.imul(Ie,Gt)|0,R=R+Math.imul(Ie,Bt)|0,M=M+Math.imul(be,Ut)|0,y=y+Math.imul(be,Yt)|0,y=y+Math.imul(se,Ut)|0,R=R+Math.imul(se,Yt)|0;var xp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(xp>>>26)|0,xp&=67108863,M=Math.imul($,Nt),y=Math.imul($,xt),y=y+Math.imul(J,Nt)|0,R=Math.imul(J,xt),M=M+Math.imul(Z,Gt)|0,y=y+Math.imul(Z,Bt)|0,y=y+Math.imul(O,Gt)|0,R=R+Math.imul(O,Bt)|0,M=M+Math.imul(fe,Ut)|0,y=y+Math.imul(fe,Yt)|0,y=y+Math.imul(Ie,Ut)|0,R=R+Math.imul(Ie,Yt)|0;var Gp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,M=Math.imul($,Gt),y=Math.imul($,Bt),y=y+Math.imul(J,Gt)|0,R=Math.imul(J,Bt),M=M+Math.imul(Z,Ut)|0,y=y+Math.imul(Z,Yt)|0,y=y+Math.imul(O,Ut)|0,R=R+Math.imul(O,Yt)|0;var Yp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,M=Math.imul($,Ut),y=Math.imul($,Yt),y=y+Math.imul(J,Ut)|0,R=Math.imul(J,Yt);var Mp=(S+M|0)+((y&8191)<<13)|0;return S=(R+(y>>>13)|0)+(Mp>>>26)|0,Mp&=67108863,Y[0]=Ei,Y[1]=Tr,Y[2]=ea,Y[3]=ta,Y[4]=wo,Y[5]=vi,Y[6]=we,Y[7]=Zp,Y[8]=Ap,Y[9]=Cp,Y[10]=Bp,Y[11]=Wp,Y[12]=Sp,Y[13]=Rp,Y[14]=Np,Y[15]=xp,Y[16]=Gp,Y[17]=Yp,Y[18]=Mp,S!==0&&(Y[19]=S,k.length++),k};Math.imul||(_=m);function I(x,b,v){v.negative=b.negative^x.negative,v.length=x.length+b.length;for(var k=0,A=0,G=0;G>>26)|0,A+=Y>>>26,Y&=67108863}v.words[G]=S,k=Y,Y=A}return k!==0?v.words[G]=k:v.length--,v.strip()}function B(x,b,v){var k=new W;return k.mulp(x,b,v)}o.prototype.mulTo=function(b,v){var k,A=this.length+b.length;return this.length===10&&b.length===10?k=_(this,b,v):A<63?k=m(this,b,v):A<1024?k=I(this,b,v):k=B(this,b,v),k};function W(x,b){this.x=x,this.y=b}W.prototype.makeRBT=function(b){for(var v=new Array(b),k=o.prototype._countBits(b)-1,A=0;A>=1;return A},W.prototype.permute=function(b,v,k,A,G,Y){for(var S=0;S>>1)G++;return 1<>>13,k[2*Y+1]=G&8191,G=G>>>13;for(Y=2*v;Y>=26,v+=A/67108864|0,v+=G>>>26,this.words[k]=G&67108863}return v!==0&&(this.words[k]=v,this.length++),this},o.prototype.muln=function(b){return this.clone().imuln(b)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(b){var v=g(b);if(v.length===0)return new o(1);for(var k=this,A=0;A=0);var v=b%26,k=(b-v)/26,A=67108863>>>26-v<<26-v,G;if(v!==0){var Y=0;for(G=0;G>>26-v}Y&&(this.words[G]=Y,this.length++)}if(k!==0){for(G=this.length-1;G>=0;G--)this.words[G+k]=this.words[G];for(G=0;G=0);var A;v?A=(v-v%26)/26:A=0;var G=b%26,Y=Math.min((b-G)/26,this.length),S=67108863^67108863>>>G<Y)for(this.length-=Y,y=0;y=0&&(R!==0||y>=A);y--){var K=this.words[y]|0;this.words[y]=R<<26-G|K>>>G,R=K&S}return M&&R!==0&&(M.words[M.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(b,v,k){return n(this.negative===0),this.iushrn(b,v,k)},o.prototype.shln=function(b){return this.clone().ishln(b)},o.prototype.ushln=function(b){return this.clone().iushln(b)},o.prototype.shrn=function(b){return this.clone().ishrn(b)},o.prototype.ushrn=function(b){return this.clone().iushrn(b)},o.prototype.testn=function(b){n(typeof b=="number"&&b>=0);var v=b%26,k=(b-v)/26,A=1<=0);var v=b%26,k=(b-v)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(v!==0&&k++,this.length=Math.min(k,this.length),v!==0){var A=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},o.prototype.isubn=function(b){if(n(typeof b=="number"),n(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(M/67108864|0),this.words[G+k]=Y&67108863}for(;G>26,this.words[G+k]=Y&67108863;if(S===0)return this.strip();for(n(S===-1),S=0,G=0;G>26,this.words[G]=Y&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(b,v){var k=this.length-b.length,A=this.clone(),G=b,Y=G.words[G.length-1]|0,S=this._countBits(Y);k=26-S,k!==0&&(G=G.ushln(k),A.iushln(k),Y=G.words[G.length-1]|0);var M=A.length-G.length,y;if(v!=="mod"){y=new o(null),y.length=M+1,y.words=new Array(y.length);for(var R=0;R=0;ue--){var ve=(A.words[G.length+ue]|0)*67108864+(A.words[G.length+ue-1]|0);for(ve=Math.min(ve/Y|0,67108863),A._ishlnsubmul(G,ve,ue);A.negative!==0;)ve--,A.negative=0,A._ishlnsubmul(G,1,ue),A.isZero()||(A.negative^=1);y&&(y.words[ue]=ve)}return y&&y.strip(),A.strip(),v!=="div"&&k!==0&&A.iushrn(k),{div:y||null,mod:A}},o.prototype.divmod=function(b,v,k){if(n(!b.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var A,G,Y;return this.negative!==0&&b.negative===0?(Y=this.neg().divmod(b,v),v!=="mod"&&(A=Y.div.neg()),v!=="div"&&(G=Y.mod.neg(),k&&G.negative!==0&&G.iadd(b)),{div:A,mod:G}):this.negative===0&&b.negative!==0?(Y=this.divmod(b.neg(),v),v!=="mod"&&(A=Y.div.neg()),{div:A,mod:Y.mod}):this.negative&b.negative?(Y=this.neg().divmod(b.neg(),v),v!=="div"&&(G=Y.mod.neg(),k&&G.negative!==0&&G.isub(b)),{div:Y.div,mod:G}):b.length>this.length||this.cmp(b)<0?{div:new o(0),mod:this}:b.length===1?v==="div"?{div:this.divn(b.words[0]),mod:null}:v==="mod"?{div:null,mod:new o(this.modn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new o(this.modn(b.words[0]))}:this._wordDiv(b,v)},o.prototype.div=function(b){return this.divmod(b,"div",!1).div},o.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},o.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},o.prototype.divRound=function(b){var v=this.divmod(b);if(v.mod.isZero())return v.div;var k=v.div.negative!==0?v.mod.isub(b):v.mod,A=b.ushrn(1),G=b.andln(1),Y=k.cmp(A);return Y<0||G===1&&Y===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},o.prototype.modn=function(b){n(b<=67108863);for(var v=(1<<26)%b,k=0,A=this.length-1;A>=0;A--)k=(v*k+(this.words[A]|0))%b;return k},o.prototype.idivn=function(b){n(b<=67108863);for(var v=0,k=this.length-1;k>=0;k--){var A=(this.words[k]|0)+v*67108864;this.words[k]=A/b|0,v=A%b}return this.strip()},o.prototype.divn=function(b){return this.clone().idivn(b)},o.prototype.egcd=function(b){n(b.negative===0),n(!b.isZero());var v=this,k=b.clone();v.negative!==0?v=v.umod(b):v=v.clone();for(var A=new o(1),G=new o(0),Y=new o(0),S=new o(1),M=0;v.isEven()&&k.isEven();)v.iushrn(1),k.iushrn(1),++M;for(var y=k.clone(),R=v.clone();!v.isZero();){for(var K=0,ue=1;!(v.words[0]&ue)&&K<26;++K,ue<<=1);if(K>0)for(v.iushrn(K);K-- >0;)(A.isOdd()||G.isOdd())&&(A.iadd(y),G.isub(R)),A.iushrn(1),G.iushrn(1);for(var ve=0,Ge=1;!(k.words[0]&Ge)&&ve<26;++ve,Ge<<=1);if(ve>0)for(k.iushrn(ve);ve-- >0;)(Y.isOdd()||S.isOdd())&&(Y.iadd(y),S.isub(R)),Y.iushrn(1),S.iushrn(1);v.cmp(k)>=0?(v.isub(k),A.isub(Y),G.isub(S)):(k.isub(v),Y.isub(A),S.isub(G))}return{a:Y,b:S,gcd:k.iushln(M)}},o.prototype._invmp=function(b){n(b.negative===0),n(!b.isZero());var v=this,k=b.clone();v.negative!==0?v=v.umod(b):v=v.clone();for(var A=new o(1),G=new o(0),Y=k.clone();v.cmpn(1)>0&&k.cmpn(1)>0;){for(var S=0,M=1;!(v.words[0]&M)&&S<26;++S,M<<=1);if(S>0)for(v.iushrn(S);S-- >0;)A.isOdd()&&A.iadd(Y),A.iushrn(1);for(var y=0,R=1;!(k.words[0]&R)&&y<26;++y,R<<=1);if(y>0)for(k.iushrn(y);y-- >0;)G.isOdd()&&G.iadd(Y),G.iushrn(1);v.cmp(k)>=0?(v.isub(k),A.isub(G)):(k.isub(v),G.isub(A))}var K;return v.cmpn(1)===0?K=A:K=G,K.cmpn(0)<0&&K.iadd(b),K},o.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var v=this.clone(),k=b.clone();v.negative=0,k.negative=0;for(var A=0;v.isEven()&&k.isEven();A++)v.iushrn(1),k.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;k.isEven();)k.iushrn(1);var G=v.cmp(k);if(G<0){var Y=v;v=k,k=Y}else if(G===0||k.cmpn(1)===0)break;v.isub(k)}while(!0);return k.iushln(A)},o.prototype.invm=function(b){return this.egcd(b).a.umod(b)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(b){return this.words[0]&b},o.prototype.bincn=function(b){n(typeof b=="number");var v=b%26,k=(b-v)/26,A=1<>>26,S&=67108863,this.words[Y]=S}return G!==0&&(this.words[Y]=G,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(b){var v=b<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var k;if(this.length>1)k=1;else{v&&(b=-b),n(b<=67108863,"Number is too big");var A=this.words[0]|0;k=A===b?0:Ab.length)return 1;if(this.length=0;k--){var A=this.words[k]|0,G=b.words[k]|0;if(A!==G){AG&&(v=1);break}}return v},o.prototype.gtn=function(b){return this.cmpn(b)===1},o.prototype.gt=function(b){return this.cmp(b)===1},o.prototype.gten=function(b){return this.cmpn(b)>=0},o.prototype.gte=function(b){return this.cmp(b)>=0},o.prototype.ltn=function(b){return this.cmpn(b)===-1},o.prototype.lt=function(b){return this.cmp(b)===-1},o.prototype.lten=function(b){return this.cmpn(b)<=0},o.prototype.lte=function(b){return this.cmp(b)<=0},o.prototype.eqn=function(b){return this.cmpn(b)===0},o.prototype.eq=function(b){return this.cmp(b)===0},o.red=function(b){return new j(b)},o.prototype.toRed=function(b){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(b){return this.red=b,this},o.prototype.forceRed=function(b){return n(!this.red,"Already a number in reduction context"),this._forceRed(b)},o.prototype.redAdd=function(b){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},o.prototype.redIAdd=function(b){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},o.prototype.redSub=function(b){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},o.prototype.redISub=function(b){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},o.prototype.redShl=function(b){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},o.prototype.redMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},o.prototype.redIMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(b){return n(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var C={k256:null,p224:null,p192:null,p25519:null};function N(x,b){this.name=x,this.p=new o(b,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var b=new o(null);return b.words=new Array(Math.ceil(this.n/13)),b},N.prototype.ireduce=function(b){var v=b,k;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),k=v.bitLength();while(k>this.n);var A=k0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},N.prototype.split=function(b,v){b.iushrn(this.n,0,v)},N.prototype.imulK=function(b){return b.imul(this.k)};function V(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(V,N),V.prototype.split=function(b,v){for(var k=4194303,A=Math.min(b.length,9),G=0;G>>22,Y=S}Y>>>=22,b.words[G-10]=Y,Y===0&&b.length>10?b.length-=10:b.length-=9},V.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var v=0,k=0;k>>=26,b.words[k]=G,v=A}return v!==0&&(b.words[b.length++]=v),b},o._prime=function(b){if(C[b])return C[b];var v;if(b==="k256")v=new V;else if(b==="p224")v=new z;else if(b==="p192")v=new L;else if(b==="p25519")v=new P;else throw new Error("Unknown prime "+b);return C[b]=v,v};function j(x){if(typeof x=="string"){var b=o._prime(x);this.m=b.p,this.prime=b}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}j.prototype._verify1=function(b){n(b.negative===0,"red works only with positives"),n(b.red,"red works only with red numbers")},j.prototype._verify2=function(b,v){n((b.negative|v.negative)===0,"red works only with positives"),n(b.red&&b.red===v.red,"red works only with red numbers")},j.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):b.umod(this.m)._forceRed(this)},j.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},j.prototype.add=function(b,v){this._verify2(b,v);var k=b.add(v);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},j.prototype.iadd=function(b,v){this._verify2(b,v);var k=b.iadd(v);return k.cmp(this.m)>=0&&k.isub(this.m),k},j.prototype.sub=function(b,v){this._verify2(b,v);var k=b.sub(v);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},j.prototype.isub=function(b,v){this._verify2(b,v);var k=b.isub(v);return k.cmpn(0)<0&&k.iadd(this.m),k},j.prototype.shl=function(b,v){return this._verify1(b),this.imod(b.ushln(v))},j.prototype.imul=function(b,v){return this._verify2(b,v),this.imod(b.imul(v))},j.prototype.mul=function(b,v){return this._verify2(b,v),this.imod(b.mul(v))},j.prototype.isqr=function(b){return this.imul(b,b.clone())},j.prototype.sqr=function(b){return this.mul(b,b)},j.prototype.sqrt=function(b){if(b.isZero())return b.clone();var v=this.m.andln(3);if(n(v%2===1),v===3){var k=this.m.add(new o(1)).iushrn(2);return this.pow(b,k)}for(var A=this.m.subn(1),G=0;!A.isZero()&&A.andln(1)===0;)G++,A.iushrn(1);n(!A.isZero());var Y=new o(1).toRed(this),S=Y.redNeg(),M=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new o(2*y*y).toRed(this);this.pow(y,M).cmp(S)!==0;)y.redIAdd(S);for(var R=this.pow(y,A),K=this.pow(b,A.addn(1).iushrn(1)),ue=this.pow(b,A),ve=G;ue.cmp(Y)!==0;){for(var Ge=ue,Me=0;Ge.cmp(Y)!==0;Me++)Ge=Ge.redSqr();n(Me=0;G--){for(var R=v.words[G],K=y-1;K>=0;K--){var ue=R>>K&1;if(Y!==A[0]&&(Y=this.sqr(Y)),ue===0&&S===0){M=0;continue}S<<=1,S|=ue,M++,!(M!==k&&(G!==0||K!==0))&&(Y=this.mul(Y,A[S]),M=0,S=0)}y=26}return Y},j.prototype.convertTo=function(b){var v=b.umod(this.m);return v===b?v.clone():v},j.prototype.convertFrom=function(b){var v=b.clone();return v.red=null,v},o.mont=function(b){return new H(b)};function H(x){j.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(H,j),H.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},H.prototype.convertFrom=function(b){var v=this.imod(b.mul(this.rinv));return v.red=null,v},H.prototype.imul=function(b,v){if(b.isZero()||v.isZero())return b.words[0]=0,b.length=1,b;var k=b.imul(v),A=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=k.isub(A).iushrn(this.shift),Y=G;return G.cmp(this.m)>=0?Y=G.isub(this.m):G.cmpn(0)<0&&(Y=G.iadd(this.m)),Y._forceRed(this)},H.prototype.mul=function(b,v){if(b.isZero()||v.isZero())return new o(0)._forceRed(this);var k=b.mul(v),A=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=k.isub(A).iushrn(this.shift),Y=G;return G.cmp(this.m)>=0?Y=G.isub(this.m):G.cmpn(0)<0&&(Y=G.iadd(this.m)),Y._forceRed(this)},H.prototype.invm=function(b){var v=this.imod(b._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(t,Ue)})(Ym);var yo=Ym.exports;const or=Nm(yo);var Ng={};const iS="elliptic",oS="6.5.5",aS="EC cryptography",sS="lib/elliptic.js",lS=["lib"],cS={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},uS={type:"git",url:"git@github.com:indutny/elliptic"},fS=["EC","Elliptic","curve","Cryptography"],dS="Fedor Indutny ",hS="MIT",pS={url:"https://github.com/indutny/elliptic/issues"},gS="https://github.com/indutny/elliptic",bS={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},mS={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},yS={name:iS,version:oS,description:aS,main:sS,files:lS,scripts:cS,repository:uS,keywords:fS,author:dS,license:hS,bugs:pS,homepage:gS,devDependencies:bS,dependencies:mS};var Jn={},Mm={};(function(t){var e=t;function r(o,a){if(Array.isArray(o))return o.slice();if(!o)return[];var s=[];if(typeof o!="string"){for(var l=0;l>8,f=c&255;u?s.push(u,f):s.push(f)}return s}e.toArray=r;function n(o){return o.length===1?"0"+o:o}e.zero2=n;function i(o){for(var a="",s=0;s(_>>1)-1?B=(_>>1)-W:B=W,I.isubn(B)):B=0,g[m]=B,I.iushrn(1)}return g}e.getNAF=o;function a(u,f){var h=[[],[]];u=u.clone(),f=f.clone();for(var g=0,m=0,_;u.cmpn(-g)>0||f.cmpn(-m)>0;){var I=u.andln(3)+g&3,B=f.andln(3)+m&3;I===3&&(I=-1),B===3&&(B=-1);var W;I&1?(_=u.andln(7)+g&7,(_===3||_===5)&&B===2?W=-I:W=I):W=0,h[0].push(W);var C;B&1?(_=f.andln(7)+m&7,(_===3||_===5)&&I===2?C=-B:C=B):C=0,h[1].push(C),2*g===W+1&&(g=1-g),2*m===C+1&&(m=1-m),u.iushrn(1),f.iushrn(1)}return h}e.getJSF=a;function s(u,f,h){var g="_"+f;u.prototype[f]=function(){return this[g]!==void 0?this[g]:this[g]=h.call(this)}}e.cachedProperty=s;function l(u){return typeof u=="string"?e.toArray(u,"hex"):u}e.parseBytes=l;function c(u){return new r(u,"hex","le")}e.intFromLE=c})(Jn);var Om={},ws=yo,_d=Jn,e0=_d.getNAF,vS=_d.getJSF,t0=_d.assert;function hs(t,e){this.type=t,this.p=new ws(e.p,16),this.red=e.prime?ws.red(e.prime):ws.mont(this.p),this.zero=new ws(0).toRed(this.red),this.one=new ws(1).toRed(this.red),this.two=new ws(2).toRed(this.red),this.n=e.n&&new ws(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var D0=hs;hs.prototype.point=function(){throw new Error("Not implemented")};hs.prototype.validate=function(){throw new Error("Not implemented")};hs.prototype._fixedNafMul=function(e,r){t0(e.precomputed);var n=e._getDoubles(),i=e0(r,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=o;h>0;h--){for(s=0;s=0;l--){for(var c=0;l>=0&&a[l]===0;l--)c++;if(l>=0&&c++,s=s.dblp(c),l<0)break;var u=a[l];t0(u!==0),e.type==="affine"?u>0?s=s.mixedAdd(o[u-1>>1]):s=s.mixedAdd(o[-u-1>>1].neg()):u>0?s=s.add(o[u-1>>1]):s=s.add(o[-u-1>>1].neg())}return e.type==="affine"?s.toP():s};hs.prototype._wnafMulAdd=function(e,r,n,i,o){var a=this._wnafT1,s=this._wnafT2,l=this._wnafT3,c=0,u,f,h;for(u=0;u=1;u-=2){var m=u-1,_=u;if(a[m]!==1||a[_]!==1){l[m]=e0(n[m],a[m],this._bitLength),l[_]=e0(n[_],a[_],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[_].length,c);continue}var I=[r[m],null,null,r[_]];r[m].y.cmp(r[_].y)===0?(I[1]=r[m].add(r[_]),I[2]=r[m].toJ().mixedAdd(r[_].neg())):r[m].y.cmp(r[_].y.redNeg())===0?(I[1]=r[m].toJ().mixedAdd(r[_]),I[2]=r[m].add(r[_].neg())):(I[1]=r[m].toJ().mixedAdd(r[_]),I[2]=r[m].toJ().mixedAdd(r[_].neg()));var B=[-3,-1,-5,-7,0,7,5,1,3],W=vS(n[m],n[_]);for(c=Math.max(W[0].length,c),l[m]=new Array(c),l[_]=new Array(c),f=0;f=0;u--){for(var L=0;u>=0;){var P=!0;for(f=0;f=0&&L++,V=V.dblp(L),u<0)break;for(f=0;f0?h=s[f][j-1>>1]:j<0&&(h=s[f][-j-1>>1].neg()),h.type==="affine"?V=V.mixedAdd(h):V=V.add(h))}}for(u=0;u=Math.ceil((e.bitLength()+1)/r.step):!1};bi.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o=0&&(g=c,m=u),f.negative&&(f=f.neg(),h=h.neg()),g.negative&&(g=g.neg(),m=m.neg()),[{a:f,b:h},{a:g,b:m}]};mi.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),s=o.mul(n.a),l=a.mul(i.a),c=o.mul(n.b),u=a.mul(i.b),f=e.sub(s).sub(l),h=c.add(u).neg();return{k1:f,k2:h}};mi.prototype.pointFromX=function(e,r){e=new pr(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(e,i)};mi.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};mi.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""};Fr.prototype.isInfinity=function(){return this.inf};Fr.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Fr.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)};Fr.prototype.getX=function(){return this.x.fromRed()};Fr.prototype.getY=function(){return this.y.fromRed()};Fr.prototype.mul=function(e){return e=new pr(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Fr.prototype.mulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};Fr.prototype.jmulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};Fr.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Fr.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Fr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Ur(t,e,r,n){lu.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new pr(0)):(this.x=new pr(e,16),this.y=new pr(r,16),this.z=new pr(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Vm(Ur,lu.BasePoint);mi.prototype.jpoint=function(e,r,n){return new Ur(this,e,r,n)};Ur.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Ur.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ur.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=e.x.redMul(n),a=this.y.redMul(r.redMul(e.z)),s=e.y.redMul(n.redMul(this.z)),l=i.redSub(o),c=a.redSub(s);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),f=u.redMul(l),h=i.redMul(u),g=c.redSqr().redIAdd(f).redISub(h).redISub(h),m=c.redMul(h.redISub(g)).redISub(a.redMul(f)),_=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(g,m,_)};Ur.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),o=this.y,a=e.y.redMul(r).redMul(this.z),s=n.redSub(i),l=o.redSub(a);if(s.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(f).redISub(f),g=l.redMul(f.redISub(h)).redISub(o.redMul(u)),m=this.z.redMul(s);return this.curve.jpoint(h,g,m)};Ur.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};Ur.prototype.inspect=function(){return this.isInfinity()?"":""};Ur.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Ll=yo,f6=T0,J0=D0,kS=Jn;function cu(t){J0.call(this,"mont",t),this.a=new Ll(t.a,16).toRed(this.red),this.b=new Ll(t.b,16).toRed(this.red),this.i4=new Ll(4).toRed(this.red).redInvm(),this.two=new Ll(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}f6(cu,J0);var ZS=cu;cu.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),o=i.redSqrt();return o.redSqr().cmp(i)===0};function jr(t,e,r){J0.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Ll(e,16),this.z=new Ll(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f6(jr,J0.BasePoint);cu.prototype.decodePoint=function(e,r){return this.point(kS.toArray(e,r),1)};cu.prototype.point=function(e,r){return new jr(this,e,r)};cu.prototype.pointFromJSON=function(e){return jr.fromJSON(this,e)};jr.prototype.precompute=function(){};jr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};jr.fromJSON=function(e,r){return new jr(e,r[0],r[1]||e.one)};jr.prototype.inspect=function(){return this.isInfinity()?"":""};jr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};jr.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),o=r.redSub(i),a=r.redMul(i),s=o.redMul(i.redAdd(this.curve.a24.redMul(o)));return this.curve.point(a,s)};jr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=e.x.redAdd(e.z),a=e.x.redSub(e.z),s=a.redMul(n),l=o.redMul(i),c=r.z.redMul(s.redAdd(l).redSqr()),u=r.x.redMul(s.redISub(l).redSqr());return this.curve.point(c,u)};jr.prototype.mul=function(e){for(var r=e.clone(),n=this,i=this.curve.point(null,null),o=this,a=[];r.cmpn(0)!==0;r.iushrn(1))a.push(r.andln(1));for(var s=a.length-1;s>=0;s--)a[s]===0?(n=n.diffAdd(i,o),i=i.dbl()):(i=n.diffAdd(i,o),n=n.dbl());return i};jr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};jr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};jr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var AS=Jn,Wo=yo,d6=T0,P0=D0,CS=AS.assert;function vo(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,P0.call(this,"edwards",t),this.a=new Wo(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Wo(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Wo(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),CS(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}d6(vo,P0);var BS=vo;vo.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};vo.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};vo.prototype.jpoint=function(e,r,n,i){return this.point(e,r,n,i)};vo.prototype.pointFromX=function(e,r){e=new Wo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=i.redMul(o.redInvm()),s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var l=s.fromRed().isOdd();return(r&&!l||!r&&l)&&(s=s.redNeg()),this.point(e,s)};vo.prototype.pointFromY=function(e,r){e=new Wo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(o.redInvm());if(a.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");return s.fromRed().isOdd()!==r&&(s=s.redNeg()),this.point(s,e)};vo.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),i=r.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(o)===0};function Ht(t,e,r,n,i){P0.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Wo(e,16),this.y=new Wo(r,16),this.z=n?new Wo(n,16):this.curve.one,this.t=i&&new Wo(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}d6(Ht,P0.BasePoint);vo.prototype.pointFromJSON=function(e){return Ht.fromJSON(this,e)};vo.prototype.point=function(e,r,n,i){return new Ht(this,e,r,n,i)};Ht.fromJSON=function(e,r){return new Ht(e,r[0],r[1],r[2])};Ht.prototype.inspect=function(){return this.isInfinity()?"":""};Ht.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ht.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),a=i.redAdd(r),s=a.redSub(n),l=i.redSub(r),c=o.redMul(s),u=a.redMul(l),f=o.redMul(l),h=s.redMul(a);return this.curve.point(c,u,h,f)};Ht.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,o,a,s,l,c;if(this.curve.twisted){s=this.curve._mulA(r);var u=s.redAdd(n);this.zOne?(i=e.redSub(r).redSub(n).redMul(u.redSub(this.curve.two)),o=u.redMul(s.redSub(n)),a=u.redSqr().redSub(u).redSub(u)):(l=this.z.redSqr(),c=u.redSub(l).redISub(l),i=e.redSub(r).redISub(n).redMul(c),o=u.redMul(s.redSub(n)),a=u.redMul(c))}else s=r.redAdd(n),l=this.curve._mulC(this.z).redSqr(),c=s.redSub(l).redSub(l),i=this.curve._mulC(e.redISub(s)).redMul(c),o=this.curve._mulC(s).redMul(r.redISub(n)),a=s.redMul(c);return this.curve.point(i,o,a)};Ht.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ht.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(r),s=o.redSub(i),l=o.redAdd(i),c=n.redAdd(r),u=a.redMul(s),f=l.redMul(c),h=a.redMul(c),g=s.redMul(l);return this.curve.point(u,f,g,h)};Ht.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(i).redMul(o),s=n.redSub(a),l=n.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),u=r.redMul(s).redMul(c),f,h;return this.curve.twisted?(f=r.redMul(l).redMul(o.redSub(this.curve._mulA(i))),h=s.redMul(l)):(f=r.redMul(l).redMul(o.redSub(i)),h=this.curve._mulC(s).redMul(l)),this.curve.point(u,f,h)};Ht.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};Ht.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};Ht.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};Ht.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};Ht.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};Ht.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ht.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ht.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ht.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Ht.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Ht.prototype.toP=Ht.prototype.normalize;Ht.prototype.mixedAdd=Ht.prototype.add;(function(t){var e=t;e.base=D0,e.short=IS,e.mont=ZS,e.edwards=BS})(Om);var q0={},o1,Av;function WS(){return Av||(Av=1,o1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),o1}(function(t){var e=t,r=Ki,n=Om,i=Jn,o=i.assert;function a(c){c.type==="short"?this.curve=new n.short(c):c.type==="edwards"?this.curve=new n.edwards(c):this.curve=new n.mont(c),this.g=this.curve.g,this.n=this.curve.n,this.hash=c.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=a;function s(c,u){Object.defineProperty(e,c,{configurable:!0,enumerable:!0,get:function(){var f=new a(u);return Object.defineProperty(e,c,{configurable:!0,enumerable:!0,value:f}),f}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var l;try{l=WS()}catch{l=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",l]})})(q0);var SS=Ki,Js=Mm,h6=kl;function Pa(t){if(!(this instanceof Pa))return new Pa(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Js.toArray(t.entropy,t.entropyEnc||"hex"),r=Js.toArray(t.nonce,t.nonceEnc||"hex"),n=Js.toArray(t.pers,t.persEnc||"hex");h6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var RS=Pa;Pa.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Pa.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Js.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length"};var r0=yo,Em=Jn,YS=Em.assert;function $0(t,e){if(t instanceof $0)return t;this._importDER(t,e)||(YS(t.r&&t.s,"Signature without r or s"),this.r=new r0(t.r,16),this.s=new r0(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var MS=$0;function OS(){this.place=0}function a1(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return i<=127?!1:(e.place=a,i)}function Cv(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}$0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Cv(r),n=Cv(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];s1(i,r.length),i=i.concat(r),i.push(2),s1(i,n.length);var o=i.concat(n),a=[48];return s1(a,o.length),a=a.concat(o),Em.encode(a,e)};var Ps=yo,p6=RS,VS=Jn,l1=q0,ES=Gm,g6=VS.assert,jm=GS,U0=MS;function ui(t){if(!(this instanceof ui))return new ui(t);typeof t=="string"&&(g6(Object.prototype.hasOwnProperty.call(l1,t),"Unknown curve "+t),t=l1[t]),t instanceof l1.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var jS=ui;ui.prototype.keyPair=function(e){return new jm(this,e)};ui.prototype.keyFromPrivate=function(e,r){return jm.fromPrivate(this,e,r)};ui.prototype.keyFromPublic=function(e,r){return jm.fromPublic(this,e,r)};ui.prototype.genKeyPair=function(e){e||(e={});for(var r=new p6({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ES(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Ps(2));;){var o=new Ps(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};ui.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};ui.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Ps(e,16));for(var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),s=e.toArray("be",o),l=new p6({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Ps(1)),u=0;;u++){var f=i.k?i.k(u):new Ps(l.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(c)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var g=h.getX(),m=g.umod(this.n);if(m.cmpn(0)!==0){var _=f.invm(this.n).mul(m.mul(r.getPrivate()).iadd(e));if(_=_.umod(this.n),_.cmpn(0)!==0){var I=(h.getY().isOdd()?1:0)|(g.cmp(m)!==0?2:0);return i.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),I^=1),new U0({r:m,s:_,recoveryParam:I})}}}}}};ui.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Ps(e,16)),n=this.keyFromPublic(n,i),r=new U0(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n),u;return this.curve._maxwellTrick?(u=this.g.jmulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.eqXToP(o)):(u=this.g.mulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.getX().umod(this.n).cmp(o)===0)};ui.prototype.recoverPubKey=function(t,e,r,n){g6((3&r)===r,"The recovery param is more than two bits"),e=new U0(e,n);var i=this.n,o=new Ps(t),a=e.r,s=e.s,l=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),l):a=this.curve.pointFromX(a,l);var u=e.r.invm(i),f=i.sub(o).mul(u).umod(i),h=s.mul(u).umod(i);return this.g.mulAdd(f,a,h)};ui.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new U0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Id=Jn,b6=Id.assert,Bv=Id.parseBytes,uu=Id.cachedProperty;function Er(t,e){this.eddsa=t,this._secret=Bv(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Bv(e.pub)}Er.fromPublic=function(e,r){return r instanceof Er?r:new Er(e,{pub:r})};Er.fromSecret=function(e,r){return r instanceof Er?r:new Er(e,{secret:r})};Er.prototype.secret=function(){return this._secret};uu(Er,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});uu(Er,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});uu(Er,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});uu(Er,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});uu(Er,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});uu(Er,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Er.prototype.sign=function(e){return b6(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Er.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Er.prototype.getSecret=function(e){return b6(this._secret,"KeyPair is public only"),Id.encode(this.secret(),e)};Er.prototype.getPublic=function(e){return Id.encode(this.pubBytes(),e)};var zS=Er,XS=yo,Q0=Jn,LS=Q0.assert,K0=Q0.cachedProperty,FS=Q0.parseBytes;function Zl(t,e){this.eddsa=t,typeof e!="object"&&(e=FS(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),LS(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof XS&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}K0(Zl,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});K0(Zl,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});K0(Zl,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});K0(Zl,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Zl.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Zl.prototype.toHex=function(){return Q0.encode(this.toBytes(),"hex").toUpperCase()};var TS=Zl,HS=Ki,DS=q0,Wc=Jn,JS=Wc.assert,m6=Wc.parseBytes,y6=zS,Wv=TS;function Nn(t){if(JS(t==="ed25519","only tested with ed25519 so far"),!(this instanceof Nn))return new Nn(t);t=DS[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=HS.sha512}var PS=Nn;Nn.prototype.sign=function(e,r){e=m6(e);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),e),o=this.g.mul(i),a=this.encodePoint(o),s=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),l=i.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:a})};Nn.prototype.verify=function(e,r,n){e=m6(e),r=this.makeSignature(r);var i=this.keyFromPublic(n),o=this.hashInt(r.Rencoded(),i.pubBytes(),e),a=this.g.mul(r.S()),s=r.R().add(i.pub().mul(o));return s.eq(a)};Nn.prototype.hashInt=function(){for(var e=this.hash(),r=0;r=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const qS=4,Sv=0,Rv=1,$S=2;function fu(t){let e=t.length;for(;--e>=0;)t[e]=0}const US=0,v6=1,QS=2,KS=3,eR=258,zm=29,kd=256,Wf=kd+1+zm,ec=30,Xm=19,w6=2*Wf+1,xs=15,c1=16,tR=7,Lm=256,_6=16,I6=17,k6=18,Gg=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Rh=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rR=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Z6=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nR=512,Ao=new Array((Wf+2)*2);fu(Ao);const af=new Array(ec*2);fu(af);const Sf=new Array(nR);fu(Sf);const Rf=new Array(eR-KS+1);fu(Rf);const Fm=new Array(zm);fu(Fm);const n0=new Array(ec);fu(n0);function u1(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let A6,C6,B6;function f1(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const W6=t=>t<256?Sf[t]:Sf[256+(t>>>7)],Nf=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},Cn=(t,e,r)=>{t.bi_valid>c1-r?(t.bi_buf|=e<>c1-t.bi_valid,t.bi_valid+=r-c1):(t.bi_buf|=e<{Cn(t,r[e*2],r[e*2+1])},S6=(t,e)=>{let r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1},iR=t=>{t.bi_valid===16?(Nf(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},oR=(t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,l=e.stat_desc.max_length;let c,u,f,h,g,m,_=0;for(h=0;h<=xs;h++)t.bl_count[h]=0;for(r[t.heap[t.heap_max]*2+1]=0,c=t.heap_max+1;cl&&(h=l,_++),r[u*2+1]=h,!(u>n)&&(t.bl_count[h]++,g=0,u>=s&&(g=a[u-s]),m=r[u*2],t.opt_len+=m*(h+g),o&&(t.static_len+=m*(i[u*2+1]+g)));if(_!==0){do{for(h=l-1;t.bl_count[h]===0;)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[l]--,_-=2}while(_>0);for(h=l;h!==0;h--)for(u=t.bl_count[h];u!==0;)f=t.heap[--c],!(f>n)&&(r[f*2+1]!==h&&(t.opt_len+=(h-r[f*2+1])*r[f*2],r[f*2+1]=h),u--)}},R6=(t,e,r)=>{const n=new Array(xs+1);let i=0,o,a;for(o=1;o<=xs;o++)i=i+r[o-1]<<1,n[o]=i;for(a=0;a<=e;a++){let s=t[a*2+1];s!==0&&(t[a*2]=S6(n[s]++,s))}},aR=()=>{let t,e,r,n,i;const o=new Array(xs+1);for(r=0,n=0;n>=7;n{let e;for(e=0;e{t.bi_valid>8?Nf(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Nv=(t,e,r,n)=>{const i=e*2,o=r*2;return t[i]{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i{let n,i,o=0,a,s;if(t.sym_next!==0)do n=t.pending_buf[t.sym_buf+o++]&255,n+=(t.pending_buf[t.sym_buf+o++]&255)<<8,i=t.pending_buf[t.sym_buf+o++],n===0?$i(t,i,e):(a=Rf[i],$i(t,a+kd+1,e),s=Gg[a],s!==0&&(i-=Fm[a],Cn(t,i,s)),n--,a=W6(n),$i(t,a,r),s=Rh[a],s!==0&&(n-=n0[a],Cn(t,n,s)));while(o{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,l=-1,c;for(t.heap_len=0,t.heap_max=w6,a=0;a>1;a>=1;a--)d1(t,r,a);c=o;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],d1(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[c*2]=r[a*2]+r[s*2],t.depth[c]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[a*2+1]=r[s*2+1]=c,t.heap[1]=c++,d1(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],oR(t,e),R6(r,l,t.bl_count)},Gv=(t,e,r)=>{let n,i=-1,o,a=e[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=e[(n+1)*2+1],!(++s{let n,i=-1,o,a=e[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=e[(n+1)*2+1],!(++s{let e;for(Gv(t,t.dyn_ltree,t.l_desc.max_code),Gv(t,t.dyn_dtree,t.d_desc.max_code),Yg(t,t.bl_desc),e=Xm-1;e>=3&&t.bl_tree[Z6[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},lR=(t,e,r,n)=>{let i;for(Cn(t,e-257,5),Cn(t,r-1,5),Cn(t,n-4,4),i=0;i{let e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return Sv;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Rv;for(r=32;r{Mv||(aR(),Mv=!0),t.l_desc=new f1(t.dyn_ltree,A6),t.d_desc=new f1(t.dyn_dtree,C6),t.bl_desc=new f1(t.bl_tree,B6),t.bi_buf=0,t.bi_valid=0,N6(t)},G6=(t,e,r,n)=>{Cn(t,(US<<1)+(n?1:0),3),x6(t),Nf(t,r),Nf(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},fR=t=>{Cn(t,v6<<1,3),$i(t,Lm,Ao),iR(t)},dR=(t,e,r,n)=>{let i,o,a=0;t.level>0?(t.strm.data_type===$S&&(t.strm.data_type=cR(t)),Yg(t,t.l_desc),Yg(t,t.d_desc),a=sR(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&e!==-1?G6(t,e,r,n):t.strategy===qS||o===i?(Cn(t,(v6<<1)+(n?1:0),3),xv(t,Ao,af)):(Cn(t,(QS<<1)+(n?1:0),3),lR(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),xv(t,t.dyn_ltree,t.dyn_dtree)),N6(t),n&&x6(t)},hR=(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(Rf[r]+kd+1)*2]++,t.dyn_dtree[W6(e)*2]++),t.sym_next===t.sym_end);var pR=uR,gR=G6,bR=dR,mR=hR,yR=fR,vR={_tr_init:pR,_tr_stored_block:gR,_tr_flush_block:bR,_tr_tally:mR,_tr_align:yR};const wR=(t,e,r,n)=>{let i=t&65535|0,o=t>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+e[n++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};var xf=wR;const _R=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},IR=new Uint32Array(_R()),kR=(t,e,r,n)=>{const i=IR,o=n+r;t^=-1;for(let a=n;a>>8^i[(t^e[a])&255];return t^-1};var Yr=kR,Qs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Al={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:ZR,_tr_stored_block:Mg,_tr_flush_block:AR,_tr_tally:Xa,_tr_align:CR}=vR,{Z_NO_FLUSH:La,Z_PARTIAL_FLUSH:BR,Z_FULL_FLUSH:WR,Z_FINISH:ei,Z_BLOCK:Ov,Z_OK:Dr,Z_STREAM_END:Vv,Z_STREAM_ERROR:no,Z_DATA_ERROR:SR,Z_BUF_ERROR:h1,Z_DEFAULT_COMPRESSION:RR,Z_FILTERED:NR,Z_HUFFMAN_ONLY:Qd,Z_RLE:xR,Z_FIXED:GR,Z_DEFAULT_STRATEGY:YR,Z_UNKNOWN:MR,Z_DEFLATED:ep}=Al,OR=9,VR=15,ER=8,jR=29,zR=256,Og=zR+1+jR,XR=30,LR=19,FR=2*Og+1,TR=15,ht=3,Na=258,io=Na+ht+1,HR=32,Sc=42,Tm=57,Vg=69,Eg=73,jg=91,zg=103,Gs=113,Xu=666,pn=1,du=2,Ks=3,hu=4,DR=3,Ys=(t,e)=>(t.msg=Qs[e],e),Ev=t=>t*2-(t>4?9:0),ya=t=>{let e=t.length;for(;--e>=0;)t[e]=0},JR=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do r=t.head[--n],t.head[n]=r>=i?r-i:0;while(--e);e=i,n=e;do r=t.prev[--n],t.prev[n]=r>=i?r-i:0;while(--e)};let PR=(t,e,r)=>(e<{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))},Xn=(t,e)=>{AR(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,On(t.strm)},Zt=(t,e)=>{t.pending_buf[t.pending++]=e},xu=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Xg=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),i===0?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),t.state.wrap===1?t.adler=xf(t.adler,e,i,r):t.state.wrap===2&&(t.adler=Yr(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Y6=(t,e)=>{let r=t.max_chain_length,n=t.strstart,i,o,a=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-io?t.strstart-(t.w_size-io):0,c=t.window,u=t.w_mask,f=t.prev,h=t.strstart+Na;let g=c[n+a-1],m=c[n+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do if(i=e,!(c[i+a]!==m||c[i+a-1]!==g||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&na){if(t.match_start=e,a=o,o>=s)break;g=c[n+a-1],m=c[n+a]}}while((e=f[e&u])>l&&--r!==0);return a<=t.lookahead?a:t.lookahead},Rc=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-io)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),JR(t),n+=e),t.strm.avail_in===0)break;if(r=Xg(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=ht)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Fa(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Fa(t,t.ins_h,t.window[i+ht-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,i,o,a=0,s=t.strm.avail_in;do{if(n=65535,o=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(n=i+t.strm.avail_in),n>o&&(n=o),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,On(t.strm),i&&(i>n&&(i=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,n-=i),n&&(Xg(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(a===0);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_watero&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(Xg(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,r=o>t.w_size?t.w_size:o,i=t.strstart-t.block_start,(i>=r||(i||e===ei)&&e!==La&&t.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,a=e===ei&&t.strm.avail_in===0&&n===i?1:0,Mg(t,t.block_start,n,a),t.block_start+=n,On(t.strm)),a?Ks:pn)},p1=(t,e)=>{let r,n;for(;;){if(t.lookahead=ht&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-io&&(t.match_length=Y6(t,r)),t.match_length>=ht)if(n=Xa(t,t.strstart-t.match_start,t.match_length-ht),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ht){t.match_length--;do t.strstart++,t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+1]);else n=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=t.strstart{let r,n,i;for(;;){if(t.lookahead=ht&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=ht-1,r!==0&&t.prev_length4096)&&(t.match_length=ht-1)),t.prev_length>=ht&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-ht,n=Xa(t,t.strstart-1-t.prev_match,t.prev_length-ht),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=ht-1,t.strstart++,n&&(Xn(t,!1),t.strm.avail_out===0))return pn}else if(t.match_available){if(n=Xa(t,0,t.window[t.strstart-1]),n&&Xn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return pn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Xa(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=Na){if(Rc(t),t.lookahead<=Na&&e===La)return pn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=ht&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+Na;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ht?(r=Xa(t,1,t.match_length-ht),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=0,e===ei?(Xn(t,!0),t.strm.avail_out===0?Ks:hu):t.sym_next&&(Xn(t,!1),t.strm.avail_out===0)?pn:du},$R=(t,e)=>{let r;for(;;){if(t.lookahead===0&&(Rc(t),t.lookahead===0)){if(e===La)return pn;break}if(t.match_length=0,r=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=0,e===ei?(Xn(t,!0),t.strm.avail_out===0?Ks:hu):t.sym_next&&(Xn(t,!1),t.strm.avail_out===0)?pn:du};function ji(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Lu=[new ji(0,0,0,0,M6),new ji(4,4,8,4,p1),new ji(4,5,16,8,p1),new ji(4,6,32,32,p1),new ji(4,4,16,16,Nl),new ji(8,16,32,32,Nl),new ji(8,16,128,128,Nl),new ji(8,32,128,256,Nl),new ji(32,128,258,1024,Nl),new ji(32,258,258,4096,Nl)],UR=t=>{t.window_size=2*t.w_size,ya(t.head),t.max_lazy_match=Lu[t.level].max_lazy,t.good_match=Lu[t.level].good_length,t.nice_match=Lu[t.level].nice_length,t.max_chain_length=Lu[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ht-1,t.match_available=0,t.ins_h=0};function QR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ep,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(FR*2),this.dyn_dtree=new Uint16Array((2*XR+1)*2),this.bl_tree=new Uint16Array((2*LR+1)*2),ya(this.dyn_ltree),ya(this.dyn_dtree),ya(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(TR+1),this.heap=new Uint16Array(2*Og+1),ya(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Og+1),ya(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zd=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==Sc&&e.status!==Tm&&e.status!==Vg&&e.status!==Eg&&e.status!==jg&&e.status!==zg&&e.status!==Gs&&e.status!==Xu?1:0},O6=t=>{if(Zd(t))return Ys(t,no);t.total_in=t.total_out=0,t.data_type=MR;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Tm:e.wrap?Sc:Gs,t.adler=e.wrap===2?0:1,e.last_flush=-2,ZR(e),Dr},V6=t=>{const e=O6(t);return e===Dr&&UR(t.state),e},KR=(t,e)=>Zd(t)||t.state.wrap!==2?no:(t.state.gzhead=e,Dr),E6=(t,e,r,n,i,o)=>{if(!t)return no;let a=1;if(e===RR&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>OR||r!==ep||n<8||n>15||e<0||e>9||o<0||o>GR||n===8&&a!==1)return Ys(t,no);n===8&&(n=9);const s=new QR;return t.state=s,s.strm=t,s.status=Sc,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<E6(t,e,ep,VR,ER,YR),tN=(t,e)=>{if(Zd(t)||e>Ov||e<0)return t?Ys(t,no):no;const r=t.state;if(!t.output||t.avail_in!==0&&!t.input||r.status===Xu&&e!==ei)return Ys(t,t.avail_out===0?h1:no);const n=r.last_flush;if(r.last_flush=e,r.pending!==0){if(On(t),t.avail_out===0)return r.last_flush=-1,Dr}else if(t.avail_in===0&&Ev(e)<=Ev(n)&&e!==ei)return Ys(t,h1);if(r.status===Xu&&t.avail_in!==0)return Ys(t,h1);if(r.status===Sc&&r.wrap===0&&(r.status=Gs),r.status===Sc){let i=ep+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=Qd||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=HR),i+=31-i%31,xu(r,i),r.strstart!==0&&(xu(r,t.adler>>>16),xu(r,t.adler&65535)),t.adler=1,r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(r.status===Tm){if(t.adler=0,Zt(r,31),Zt(r,139),Zt(r,8),r.gzhead)Zt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Zt(r,r.gzhead.time&255),Zt(r,r.gzhead.time>>8&255),Zt(r,r.gzhead.time>>16&255),Zt(r,r.gzhead.time>>24&255),Zt(r,r.level===9?2:r.strategy>=Qd||r.level<2?4:0),Zt(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Zt(r,r.gzhead.extra.length&255),Zt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Yr(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Vg;else if(Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,r.level===9?2:r.strategy>=Qd||r.level<2?4:0),Zt(r,DR),r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(r.status===Vg){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=s,On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0,o-=s}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Eg}if(r.status===Eg){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0}r.gzindexi&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=jg}if(r.status===jg){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0}r.gzindexi&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i))}r.status=zg}if(r.status===zg){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(On(t),r.pending!==0))return r.last_flush=-1,Dr;Zt(r,t.adler&255),Zt(r,t.adler>>8&255),t.adler=0}if(r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(t.avail_in!==0||r.lookahead!==0||e!==La&&r.status!==Xu){let i=r.level===0?M6(r,e):r.strategy===Qd?$R(r,e):r.strategy===xR?qR(r,e):Lu[r.level].func(r,e);if((i===Ks||i===hu)&&(r.status=Xu),i===pn||i===Ks)return t.avail_out===0&&(r.last_flush=-1),Dr;if(i===du&&(e===BR?CR(r):e!==Ov&&(Mg(r,0,0,!1),e===WR&&(ya(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),On(t),t.avail_out===0))return r.last_flush=-1,Dr}return e!==ei?Dr:r.wrap<=0?Vv:(r.wrap===2?(Zt(r,t.adler&255),Zt(r,t.adler>>8&255),Zt(r,t.adler>>16&255),Zt(r,t.adler>>24&255),Zt(r,t.total_in&255),Zt(r,t.total_in>>8&255),Zt(r,t.total_in>>16&255),Zt(r,t.total_in>>24&255)):(xu(r,t.adler>>>16),xu(r,t.adler&65535)),On(t),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Dr:Vv)},rN=t=>{if(Zd(t))return no;const e=t.state.status;return t.state=null,e===Gs?Ys(t,SR):Dr},nN=(t,e)=>{let r=e.length;if(Zd(t))return no;const n=t.state,i=n.wrap;if(i===2||i===1&&n.status!==Sc||n.lookahead)return no;if(i===1&&(t.adler=xf(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){i===0&&(ya(n.head),n.strstart=0,n.block_start=0,n.insert=0);let l=new Uint8Array(n.w_size);l.set(e.subarray(r-n.w_size,r),0),e=l,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Rc(n);n.lookahead>=ht;){let l=n.strstart,c=n.lookahead-(ht-1);do n.ins_h=Fa(n,n.ins_h,n.window[l+ht-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++;while(--c);n.strstart=l,n.lookahead=ht-1,Rc(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ht-1,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,Dr};var iN=eN,oN=E6,aN=V6,sN=O6,lN=KR,cN=tN,uN=rN,fN=nN,dN="pako deflate (from Nodeca project)",sf={deflateInit:iN,deflateInit2:oN,deflateReset:aN,deflateResetKeep:sN,deflateSetHeader:lN,deflate:cN,deflateEnd:uN,deflateSetDictionary:fN,deflateInfo:dN};const hN=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var pN=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)hN(r,n)&&(t[n]=r[n])}}return t},gN=t=>{let e=0;for(let n=0,i=t.length;n=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Gf[254]=Gf[254]=1;var bN=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i>>6,e[o++]=128|r&63):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|r&63):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|r&63);return e};const mN=(t,e)=>{if(e<65534&&t.subarray&&j6)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,i;const o=new Array(r*2);for(i=0,n=0;n4){o[i++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return mN(o,i)},vN=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+Gf[t[r]]>e?r:e},Yf={string2buf:bN,buf2string:yN,utf8border:vN};function wN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var z6=wN;const X6=Object.prototype.toString,{Z_NO_FLUSH:_N,Z_SYNC_FLUSH:IN,Z_FULL_FLUSH:kN,Z_FINISH:ZN,Z_OK:i0,Z_STREAM_END:AN,Z_DEFAULT_COMPRESSION:CN,Z_DEFAULT_STRATEGY:BN,Z_DEFLATED:WN}=Al;function Ad(t){this.options=tp.assign({level:CN,method:WN,chunkSize:16384,windowBits:15,memLevel:8,strategy:BN},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z6,this.strm.avail_out=0;let r=sf.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==i0)throw new Error(Qs[r]);if(e.header&&sf.deflateSetHeader(this.strm,e.header),e.dictionary){let n;if(typeof e.dictionary=="string"?n=Yf.string2buf(e.dictionary):X6.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.dictionary,r=sf.deflateSetDictionary(this.strm,n),r!==i0)throw new Error(Qs[r]);this._dict_set=!0}}Ad.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?ZN:_N,typeof t=="string"?r.input=Yf.string2buf(t):X6.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===IN||o===kN)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=sf.deflate(r,o),i===AN)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=sf.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===i0;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Ad.prototype.onData=function(t){this.chunks.push(t)};Ad.prototype.onEnd=function(t){t===i0&&(this.result=tp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Hm(t,e){const r=new Ad(e);if(r.push(t,!0),r.err)throw r.msg||Qs[r.err];return r.result}function SN(t,e){return e=e||{},e.raw=!0,Hm(t,e)}function RN(t,e){return e=e||{},e.gzip=!0,Hm(t,e)}var NN=Ad,xN=Hm,GN=SN,YN=RN,MN=Al,ON={Deflate:NN,deflate:xN,deflateRaw:GN,gzip:YN,constants:MN};const Kd=16209,VN=16191;var EN=function(e,r){let n,i,o,a,s,l,c,u,f,h,g,m,_,I,B,W,C,N,V,z,L,P,j,H;const x=e.state;n=e.next_in,j=e.input,i=n+(e.avail_in-5),o=e.next_out,H=e.output,a=o-(r-e.avail_out),s=o+(e.avail_out-257),l=x.dmax,c=x.wsize,u=x.whave,f=x.wnext,h=x.window,g=x.hold,m=x.bits,_=x.lencode,I=x.distcode,B=(1<>>24,g>>>=N,m-=N,N=C>>>16&255,N===0)H[o++]=C&65535;else if(N&16){V=C&65535,N&=15,N&&(m>>=N,m-=N),m<15&&(g+=j[n++]<>>24,g>>>=N,m-=N,N=C>>>16&255,N&16){if(z=C&65535,N&=15,ml){e.msg="invalid distance too far back",x.mode=Kd;break e}if(g>>>=N,m-=N,N=o-a,z>N){if(N=z-N,N>u&&x.sane){e.msg="invalid distance too far back",x.mode=Kd;break e}if(L=0,P=h,f===0){if(L+=c-N,N2;)H[o++]=P[L++],H[o++]=P[L++],H[o++]=P[L++],V-=3;V&&(H[o++]=P[L++],V>1&&(H[o++]=P[L++]))}else{L=o-z;do H[o++]=H[L++],H[o++]=H[L++],H[o++]=H[L++],V-=3;while(V>2);V&&(H[o++]=H[L++],V>1&&(H[o++]=H[L++]))}}else if(N&64){e.msg="invalid distance code",x.mode=Kd;break e}else{C=I[(C&65535)+(g&(1<>3,n-=V,m-=V<<3,g&=(1<{const l=s.bits;let c=0,u=0,f=0,h=0,g=0,m=0,_=0,I=0,B=0,W=0,C,N,V,z,L,P=null,j;const H=new Uint16Array(xl+1),x=new Uint16Array(xl+1);let b=null,v,k,A;for(c=0;c<=xl;c++)H[c]=0;for(u=0;u=1&&H[h]===0;h--);if(g>h&&(g=h),h===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(t===Xv||h!==1))return-1;for(x[1]=0,c=1;cjv||t===Lv&&B>zv)return 1;for(;;){v=c-_,a[u]+1=j?(k=b[a[u]-j],A=P[a[u]-j]):(k=96,A=0),C=1<>_)+N]=v<<24|k<<16|A|0;while(N!==0);for(C=1<>=1;if(C!==0?(W&=C-1,W+=C):W=0,u++,--H[c]===0){if(c===h)break;c=e[r+a[u]]}if(c>g&&(W&z)!==V){for(_===0&&(_=g),L+=f,m=c-_,I=1<jv||t===Lv&&B>zv)return 1;V=W&z,i[V]=g<<24|m<<16|L-o|0}}return W!==0&&(i[L+W]=c-_<<24|64<<16|0),s.bits=g,0};var lf=FN;const TN=0,L6=1,F6=2,{Z_FINISH:Fv,Z_BLOCK:HN,Z_TREES:eh,Z_OK:el,Z_STREAM_END:DN,Z_NEED_DICT:JN,Z_STREAM_ERROR:fi,Z_DATA_ERROR:T6,Z_MEM_ERROR:H6,Z_BUF_ERROR:PN,Z_DEFLATED:Tv}=Al,rp=16180,Hv=16181,Dv=16182,Jv=16183,Pv=16184,qv=16185,$v=16186,Uv=16187,Qv=16188,Kv=16189,o0=16190,Io=16191,b1=16192,e3=16193,m1=16194,t3=16195,r3=16196,n3=16197,i3=16198,th=16199,rh=16200,o3=16201,a3=16202,s3=16203,l3=16204,c3=16205,y1=16206,u3=16207,f3=16208,rr=16209,D6=16210,J6=16211,qN=852,$N=592,UN=15,QN=UN,d3=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function KN(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Cl=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeJ6?1:0},P6=t=>{if(Cl(t))return fi;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=rp,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(qN),e.distcode=e.distdyn=new Int32Array($N),e.sane=1,e.back=-1,el},q6=t=>{if(Cl(t))return fi;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,P6(t)},$6=(t,e)=>{let r;if(Cl(t))return fi;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?fi:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,q6(t))},U6=(t,e)=>{if(!t)return fi;const r=new KN;t.state=r,r.strm=t,r.window=null,r.mode=rp;const n=$6(t,e);return n!==el&&(t.state=null),n},ex=t=>U6(t,QN);let h3=!0,v1,w1;const tx=t=>{if(h3){v1=new Int32Array(512),w1=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(lf(L6,t.lens,0,288,v1,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;lf(F6,t.lens,0,32,w1,0,t.work,{bits:5}),h3=!1}t.lencode=v1,t.lenbits=9,t.distcode=w1,t.distbits=5},Q6=(t,e,r,n)=>{let i;const o=t.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let r,n,i,o,a,s,l,c,u,f,h,g,m,_,I=0,B,W,C,N,V,z,L,P;const j=new Uint8Array(4);let H,x;const b=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Cl(t)||!t.output||!t.input&&t.avail_in!==0)return fi;r=t.state,r.mode===Io&&(r.mode=b1),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,f=s,h=l,P=el;e:for(;;)switch(r.mode){case rp:if(r.wrap===0){r.mode=b1;break}for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>>8&255,r.check=Yr(r.check,j,2,0),c=0,u=0,r.mode=Hv;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=rr;break}if((c&15)!==Tv){t.msg="unknown compression method",r.mode=rr;break}if(c>>>=4,u-=4,L=(c&15)+8,r.wbits===0&&(r.wbits=L),L>15||L>r.wbits){t.msg="invalid window size",r.mode=rr;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0,r.mode=Dv;case Dv:for(;u<32;){if(s===0)break e;s--,c+=n[o++]<>>8&255,j[2]=c>>>16&255,j[3]=c>>>24&255,r.check=Yr(r.check,j,4,0)),c=0,u=0,r.mode=Jv;case Jv:for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>8),r.flags&512&&r.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0,r.mode=Pv;case Pv:if(r.flags&1024){for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=qv;case qv:if(r.flags&1024&&(g=r.length,g>s&&(g=s),g&&(r.head&&(L=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+g),L)),r.flags&512&&r.wrap&4&&(r.check=Yr(r.check,n,g,o)),s-=g,o+=g,r.length-=g),r.length))break e;r.length=0,r.mode=$v;case $v:if(r.flags&2048){if(s===0)break e;g=0;do L=n[o+g++],r.head&&L&&r.length<65536&&(r.head.name+=String.fromCharCode(L));while(L&&g>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Io;break;case Kv:for(;u<32;){if(s===0)break e;s--,c+=n[o++]<>>=u&7,u-=u&7,r.mode=y1;break}for(;u<3;){if(s===0)break e;s--,c+=n[o++]<>>=1,u-=1,c&3){case 0:r.mode=e3;break;case 1:if(tx(r),r.mode=th,e===eh){c>>>=2,u-=2;break e}break;case 2:r.mode=r3;break;case 3:t.msg="invalid block type",r.mode=rr}c>>>=2,u-=2;break;case e3:for(c>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,c+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=rr;break}if(r.length=c&65535,c=0,u=0,r.mode=m1,e===eh)break e;case m1:r.mode=t3;case t3:if(g=r.length,g){if(g>s&&(g=s),g>l&&(g=l),g===0)break e;i.set(n.subarray(o,o+g),a),s-=g,o+=g,l-=g,a+=g,r.length-=g;break}r.mode=Io;break;case r3:for(;u<14;){if(s===0)break e;s--,c+=n[o++]<>>=5,u-=5,r.ndist=(c&31)+1,c>>>=5,u-=5,r.ncode=(c&15)+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=rr;break}r.have=0,r.mode=n3;case n3:for(;r.have>>=3,u-=3}for(;r.have<19;)r.lens[b[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,H={bits:r.lenbits},P=lf(TN,r.lens,0,19,r.lencode,0,r.work,H),r.lenbits=H.bits,P){t.msg="invalid code lengths set",r.mode=rr;break}r.have=0,r.mode=i3;case i3:for(;r.have>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=B,u-=B,r.lens[r.have++]=C;else{if(C===16){for(x=B+2;u>>=B,u-=B,r.have===0){t.msg="invalid bit length repeat",r.mode=rr;break}L=r.lens[r.have-1],g=3+(c&3),c>>>=2,u-=2}else if(C===17){for(x=B+3;u>>=B,u-=B,L=0,g=3+(c&7),c>>>=3,u-=3}else{for(x=B+7;u>>=B,u-=B,L=0,g=11+(c&127),c>>>=7,u-=7}if(r.have+g>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=rr;break}for(;g--;)r.lens[r.have++]=L}}if(r.mode===rr)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=rr;break}if(r.lenbits=9,H={bits:r.lenbits},P=lf(L6,r.lens,0,r.nlen,r.lencode,0,r.work,H),r.lenbits=H.bits,P){t.msg="invalid literal/lengths set",r.mode=rr;break}if(r.distbits=6,r.distcode=r.distdyn,H={bits:r.distbits},P=lf(F6,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,H),r.distbits=H.bits,P){t.msg="invalid distances set",r.mode=rr;break}if(r.mode=th,e===eh)break e;case th:r.mode=rh;case rh:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,EN(t,h),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,r.mode===Io&&(r.back=-1);break}for(r.back=0;I=r.lencode[c&(1<>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>N)],B=I>>>24,W=I>>>16&255,C=I&65535,!(N+B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=N,u-=N,r.back+=N}if(c>>>=B,u-=B,r.back+=B,r.length=C,W===0){r.mode=c3;break}if(W&32){r.back=-1,r.mode=Io;break}if(W&64){t.msg="invalid literal/length code",r.mode=rr;break}r.extra=W&15,r.mode=o3;case o3:if(r.extra){for(x=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=a3;case a3:for(;I=r.distcode[c&(1<>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>N)],B=I>>>24,W=I>>>16&255,C=I&65535,!(N+B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=N,u-=N,r.back+=N}if(c>>>=B,u-=B,r.back+=B,W&64){t.msg="invalid distance code",r.mode=rr;break}r.offset=C,r.extra=W&15,r.mode=s3;case s3:if(r.extra){for(x=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=rr;break}r.mode=l3;case l3:if(l===0)break e;if(g=h-l,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=rr;break}g>r.wnext?(g-=r.wnext,m=r.wsize-g):m=r.wnext-g,g>r.length&&(g=r.length),_=r.window}else _=i,m=a-r.offset,g=r.length;g>l&&(g=l),l-=g,r.length-=g;do i[a++]=_[m++];while(--g);r.length===0&&(r.mode=rh);break;case c3:if(l===0)break e;i[a++]=r.length,l--,r.mode=rh;break;case y1:if(r.wrap){for(;u<32;){if(s===0)break e;s--,c|=n[o++]<{if(Cl(t))return fi;let e=t.state;return e.window&&(e.window=null),t.state=null,el},ix=(t,e)=>{if(Cl(t))return fi;const r=t.state;return r.wrap&2?(r.head=e,e.done=!1,el):fi},ox=(t,e)=>{const r=e.length;let n,i,o;return Cl(t)||(n=t.state,n.wrap!==0&&n.mode!==o0)?fi:n.mode===o0&&(i=1,i=xf(i,e,r,0),i!==n.check)?T6:(o=Q6(t,e,r,r),o?(n.mode=D6,H6):(n.havedict=1,el))};var ax=q6,sx=$6,lx=P6,cx=ex,ux=U6,fx=rx,dx=nx,hx=ix,px=ox,gx="pako inflate (from Nodeca project)",Co={inflateReset:ax,inflateReset2:sx,inflateResetKeep:lx,inflateInit:cx,inflateInit2:ux,inflate:fx,inflateEnd:dx,inflateGetHeader:hx,inflateSetDictionary:px,inflateInfo:gx};function bx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var mx=bx;const K6=Object.prototype.toString,{Z_NO_FLUSH:yx,Z_FINISH:vx,Z_OK:Mf,Z_STREAM_END:_1,Z_NEED_DICT:I1,Z_STREAM_ERROR:wx,Z_DATA_ERROR:p3,Z_MEM_ERROR:_x}=Al;function Cd(t){this.options=tp.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z6,this.strm.avail_out=0;let r=Co.inflateInit2(this.strm,e.windowBits);if(r!==Mf)throw new Error(Qs[r]);if(this.header=new mx,Co.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Yf.string2buf(e.dictionary):K6.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Co.inflateSetDictionary(this.strm,e.dictionary),r!==Mf)))throw new Error(Qs[r])}Cd.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?vx:yx,K6.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Co.inflate(r,a),o===I1&&i&&(o=Co.inflateSetDictionary(r,i),o===Mf?o=Co.inflate(r,a):o===p3&&(o=I1));r.avail_in>0&&o===_1&&r.state.wrap>0&&t[r.next_in]!==0;)Co.inflateReset(r),o=Co.inflate(r,a);switch(o){case wx:case p3:case I1:case _x:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||o===_1))if(this.options.to==="string"){let l=Yf.utf8border(r.output,r.next_out),c=r.next_out-l,u=Yf.buf2string(r.output,l);r.next_out=c,r.avail_out=n-c,c&&r.output.set(r.output.subarray(l,l+c),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Mf&&s===0)){if(o===_1)return o=Co.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Cd.prototype.onData=function(t){this.chunks.push(t)};Cd.prototype.onEnd=function(t){t===Mf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=tp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Dm(t,e){const r=new Cd(e);if(r.push(t),r.err)throw r.msg||Qs[r.err];return r.result}function Ix(t,e){return e=e||{},e.raw=!0,Dm(t,e)}var kx=Cd,Zx=Dm,Ax=Ix,Cx=Dm,Bx=Al,Wx={Inflate:kx,inflate:Zx,inflateRaw:Ax,ungzip:Cx,constants:Bx};const{Deflate:Sx,deflate:Rx,deflateRaw:Nx,gzip:xx}=ON,{Inflate:Gx,inflate:Yx,inflateRaw:Mx,ungzip:Ox}=Wx;var Vx=Sx,Ex=Rx,jx=Nx,zx=xx,Xx=Gx,Lx=Yx,Fx=Mx,Tx=Ox,Hx=Al,Ta={Deflate:Vx,deflate:Ex,deflateRaw:jx,gzip:zx,Inflate:Xx,inflate:Lx,inflateRaw:Fx,ungzip:Tx,constants:Hx};/** + */const Vl=typeof document<"u";function uC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Wt=Object.assign;function Qp(t,e){const r={};for(const n in e){const i=e[n];r[n]=Si(i)?i.map(t):t(i)}return r}const nf=()=>{},Si=Array.isArray,x_=/#/g,fC=/&/g,dC=/\//g,hC=/=/g,pC=/\?/g,G_=/\+/g,gC=/%5B/g,bC=/%5D/g,Y_=/%5E/g,mC=/%60/g,M_=/%7B/g,yC=/%7C/g,O_=/%7D/g,vC=/%20/g;function Cm(t){return encodeURI(""+t).replace(yC,"|").replace(gC,"[").replace(bC,"]")}function wC(t){return Cm(t).replace(M_,"{").replace(O_,"}").replace(Y_,"^")}function Zg(t){return Cm(t).replace(G_,"%2B").replace(vC,"+").replace(x_,"%23").replace(fC,"%26").replace(mC,"`").replace(M_,"{").replace(O_,"}").replace(Y_,"^")}function _C(t){return Zg(t).replace(hC,"%3D")}function IC(t){return Cm(t).replace(x_,"%23").replace(pC,"%3F")}function kC(t){return t==null?"":IC(t).replace(dC,"%2F")}function Cf(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const ZC=/\/$/,AC=t=>t.replace(ZC,"");function Kp(t,e,r="/"){let n,i={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(n=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),i=t(o)),s>-1&&(n=n||e.slice(0,s),a=e.slice(s,e.length)),n=SC(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Cf(a)}}function CC(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function ev(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function BC(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&kc(e.matched[n],r.matched[i])&&V_(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function kc(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function V_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!WC(t[r],e[r]))return!1;return!0}function WC(t,e){return Si(t)?tv(t,e):Si(e)?tv(e,t):t===e}function tv(t,e){return Si(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function SC(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,s;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const ki={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bf;(function(t){t.pop="pop",t.push="push"})(Bf||(Bf={}));var of;(function(t){t.back="back",t.forward="forward",t.unknown=""})(of||(of={}));function RC(t){if(!t)if(Vl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),AC(t)}const NC=/^[^#]+#/;function xC(t,e){return t.replace(NC,"#")+e}function GC(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const F0=()=>({left:window.scrollX,top:window.scrollY});function YC(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=GC(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function rv(t,e){return(history.state?history.state.position-e:-1)+t}const Ag=new Map;function MC(t,e){Ag.set(t,e)}function OC(t){const e=Ag.get(t);return Ag.delete(t),e}let VC=()=>location.protocol+"//"+location.host;function E_(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let s=i.includes(t.slice(o))?t.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),ev(l,"")}return ev(r,t)+n+i}function EC(t,e,r,n){let i=[],o=[],a=null;const s=({state:h})=>{const g=E_(t,location),m=r.value,_=e.value;let I=0;if(h){if(r.value=g,e.value=h,a&&a===m){a=null;return}I=_?h.position-_.position:0}else n(g);i.forEach(B=>{B(r.value,m,{delta:I,type:Bf.pop,direction:I?I>0?of.forward:of.back:of.unknown})})};function l(){a=r.value}function c(h){i.push(h);const g=()=>{const m=i.indexOf(h);m>-1&&i.splice(m,1)};return o.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(Wt({},h.state,{scroll:F0()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function nv(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?F0():null}}function jC(t){const{history:e,location:r}=window,n={value:E_(t,r)},i={value:e.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=t.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?t:t.slice(f))+l:VC()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),i.value=c}catch(g){console.error(g),r[u?"replace":"assign"](h)}}function a(l,c){const u=Wt({},e.state,nv(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),n.value=l}function s(l,c){const u=Wt({},i.value,e.state,{forward:l,scroll:F0()});o(u.current,u,!0);const f=Wt({},nv(n.value,l,null),{position:u.position+1},c);o(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:a}}function j_(t){t=RC(t);const e=jC(t),r=EC(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=Wt({location:"",base:t,go:n,createHref:xC.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function zC(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),j_(t)}function XC(t){return typeof t=="string"||t&&typeof t=="object"}function z_(t){return typeof t=="string"||typeof t=="symbol"}const X_=Symbol("");var iv;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(iv||(iv={}));function Zc(t,e){return Wt(new Error,{type:t,[X_]:!0},e)}function _o(t,e){return t instanceof Error&&X_ in t&&(e==null||!!(t.type&e))}const ov="[^/]+?",LC={sensitive:!1,strict:!1,start:!0,end:!0},FC=/[.+*?^${}()[\]/\\]/g;function TC(t,e){const r=Wt({},LC,e),n=[];let i=r.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];r.strict&&!c.length&&(i+="/");for(let f=0;fe.length?e.length===1&&e[0]===80?1:-1:0}function L_(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const DC={type:0,value:""},JC=/[a-zA-Z0-9_]/;function PC(t){if(!t)return[[]];if(t==="/")return[[DC]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${r})/"${c}": ${g}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function f(){c&&(r===0?o.push({type:0,value:c}):r===1||r===2||r===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;s{a(C)}:nf}function a(f){if(z_(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return r}function l(f){const h=eB(f,r);r.splice(h,0,f),f.record.name&&!lv(f)&&n.set(f.record.name,f)}function c(f,h){let g,m={},_,I;if("name"in f&&f.name){if(g=n.get(f.name),!g)throw Zc(1,{location:f});I=g.record.name,m=Wt(sv(h.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&sv(f.params,g.keys.map(C=>C.name))),_=g.stringify(m)}else if(f.path!=null)_=f.path,g=r.find(C=>C.re.test(_)),g&&(m=g.parse(_),I=g.record.name);else{if(g=h.name?n.get(h.name):r.find(C=>C.re.test(h.path)),!g)throw Zc(1,{location:f,currentLocation:h});I=g.record.name,m=Wt({},h.params,f.params),_=g.stringify(m)}const B=[];let W=g;for(;W;)B.unshift(W.record),W=W.parent;return{name:I,path:_,params:m,matched:B,meta:KC(B)}}t.forEach(f=>o(f));function u(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function sv(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function UC(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:QC(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function QC(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function lv(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function KC(t){return t.reduce((e,r)=>Wt(e,r.meta),{})}function cv(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function eB(t,e){let r=0,n=e.length;for(;r!==n;){const o=r+n>>1;L_(t,e[o])<0?n=o:r=o+1}const i=tB(t);return i&&(n=e.lastIndexOf(i,n-1)),n}function tB(t){let e=t;for(;e=e.parent;)if(F_(e)&&L_(t,e)===0)return e}function F_({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function rB(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&Zg(o)):[n&&Zg(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function nB(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Si(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const iB=Symbol(""),fv=Symbol(""),Bm=Symbol(""),Wm=Symbol(""),Cg=Symbol("");function Su(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function ha(t,e,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=h=>{h===!1?l(Zc(4,{from:r,to:e})):h instanceof Error?l(h):XC(h)?l(Zc(2,{from:e,to:h})):(a&&n.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},u=o(()=>t.call(n&&n.instances[i],e,r,c));let f=Promise.resolve(u);t.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function e1(t,e,r,n,i=o=>o()){const o=[];for(const a of t)for(const s in a.components){let l=a.components[s];if(!(e!=="beforeRouteEnter"&&!a.instances[s]))if(oB(l)){const u=(l.__vccOpts||l)[e];u&&o.push(ha(u,r,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const f=uC(u)?u.default:u;a.components[s]=f;const g=(f.__vccOpts||f)[e];return g&&ha(g,r,n,a,s,i)()}))}}return o}function oB(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dv(t){const e=$r(Bm),r=$r(Wm),n=qe(()=>{const l=ze(t.to);return e.resolve(l)}),i=qe(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const h=f.findIndex(kc.bind(null,u));if(h>-1)return h;const g=hv(l[c-2]);return c>1&&hv(u)===g&&f[f.length-1].path!==g?f.findIndex(kc.bind(null,l[c-2])):h}),o=qe(()=>i.value>-1&&cB(r.params,n.value.params)),a=qe(()=>i.value>-1&&i.value===r.matched.length-1&&V_(r.params,n.value.params));function s(l={}){return lB(l)?e[ze(t.replace)?"replace":"push"](ze(t.to)).catch(nf):Promise.resolve()}return{route:n,href:qe(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const aB=Dn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dv,setup(t,{slots:e}){const r=Ln(dv(t)),{options:n}=$r(Bm),i=qe(()=>({[pv(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[pv(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:An("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),sB=aB;function lB(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function cB(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Si(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function hv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const pv=(t,e,r)=>t??e??r,uB=Dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=$r(Cg),i=qe(()=>t.route||n.value),o=$r(fv,0),a=qe(()=>{let c=ze(o);const{matched:u}=i.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),s=qe(()=>i.value.matched[a.value]);Ds(fv,qe(()=>a.value+1)),Ds(iB,s),Ds(Cg,i);const l=bt();return er(()=>[l.value,s.value,t.name],([c,u,f],[h,g,m])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!kc(u,g)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,f=s.value,h=f&&f.components[u];if(!h)return gv(r.default,{Component:h,route:c});const g=f.props[u],m=g?g===!0?c.params:typeof g=="function"?g(c):g:null,I=An(h,Wt({},m,e,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gv(r.default,{Component:I,route:c})||I}}});function gv(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const T_=uB;function fB(t){const e=$C(t.routes,t),r=t.parseQuery||rB,n=t.stringifyQuery||uv,i=t.history,o=Su(),a=Su(),s=Su(),l=Ja(ki);let c=ki;Vl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qp.bind(null,ne=>""+ne),f=Qp.bind(null,kC),h=Qp.bind(null,Cf);function g(ne,le){let T,de;return z_(ne)?(T=e.getRecordMatcher(ne),de=le):de=ne,e.addRoute(de,T)}function m(ne){const le=e.getRecordMatcher(ne);le&&e.removeRoute(le)}function _(){return e.getRoutes().map(ne=>ne.record)}function I(ne){return!!e.getRecordMatcher(ne)}function B(ne,le){if(le=Wt({},le||l.value),typeof ne=="string"){const F=Kp(r,ne,le.path),ee=e.resolve({path:F.path},le),oe=i.createHref(F.fullPath);return Wt(F,ee,{params:h(ee.params),hash:Cf(F.hash),redirectedFrom:void 0,href:oe})}let T;if(ne.path!=null)T=Wt({},ne,{path:Kp(r,ne.path,le.path).path});else{const F=Wt({},ne.params);for(const ee in F)F[ee]==null&&delete F[ee];T=Wt({},ne,{params:f(F)}),le.params=f(le.params)}const de=e.resolve(T,le),Ye=ne.hash||"";de.params=u(h(de.params));const Ne=CC(n,Wt({},ne,{hash:wC(Ye),path:de.path})),E=i.createHref(Ne);return Wt({fullPath:Ne,hash:Ye,query:n===uv?nB(ne.query):ne.query||{}},de,{redirectedFrom:void 0,href:E})}function W(ne){return typeof ne=="string"?Kp(r,ne,l.value.path):Wt({},ne)}function C(ne,le){if(c!==ne)return Zc(8,{from:le,to:ne})}function N(ne){return L(ne)}function V(ne){return N(Wt(W(ne),{replace:!0}))}function z(ne){const le=ne.matched[ne.matched.length-1];if(le&&le.redirect){const{redirect:T}=le;let de=typeof T=="function"?T(ne):T;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=W(de):{path:de},de.params={}),Wt({query:ne.query,hash:ne.hash,params:de.path!=null?{}:ne.params},de)}}function L(ne,le){const T=c=B(ne),de=l.value,Ye=ne.state,Ne=ne.force,E=ne.replace===!0,F=z(T);if(F)return L(Wt(W(F),{state:typeof F=="object"?Wt({},Ye,F.state):Ye,force:Ne,replace:E}),le||T);const ee=T;ee.redirectedFrom=le;let oe;return!Ne&&BC(n,de,T)&&(oe=Zc(16,{to:ee,from:de}),R(de,de,!0,!1)),(oe?Promise.resolve(oe):H(ee,de)).catch(ce=>_o(ce)?_o(ce,2)?ce:y(ce):S(ce,ee,de)).then(ce=>{if(ce){if(_o(ce,2))return L(Wt({replace:E},W(ce.to),{state:typeof ce.to=="object"?Wt({},Ye,ce.to.state):Ye,force:Ne}),le||ee)}else ce=b(ee,de,!0,E,Ye);return x(ee,de,ce),ce})}function P(ne,le){const T=C(ne,le);return T?Promise.reject(T):Promise.resolve()}function j(ne){const le=ve.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ne):ne()}function H(ne,le){let T;const[de,Ye,Ne]=dB(ne,le);T=e1(de.reverse(),"beforeRouteLeave",ne,le);for(const F of de)F.leaveGuards.forEach(ee=>{T.push(ha(ee,ne,le))});const E=P.bind(null,ne,le);return T.push(E),Me(T).then(()=>{T=[];for(const F of o.list())T.push(ha(F,ne,le));return T.push(E),Me(T)}).then(()=>{T=e1(Ye,"beforeRouteUpdate",ne,le);for(const F of Ye)F.updateGuards.forEach(ee=>{T.push(ha(ee,ne,le))});return T.push(E),Me(T)}).then(()=>{T=[];for(const F of Ne)if(F.beforeEnter)if(Si(F.beforeEnter))for(const ee of F.beforeEnter)T.push(ha(ee,ne,le));else T.push(ha(F.beforeEnter,ne,le));return T.push(E),Me(T)}).then(()=>(ne.matched.forEach(F=>F.enterCallbacks={}),T=e1(Ne,"beforeRouteEnter",ne,le,j),T.push(E),Me(T))).then(()=>{T=[];for(const F of a.list())T.push(ha(F,ne,le));return T.push(E),Me(T)}).catch(F=>_o(F,8)?F:Promise.reject(F))}function x(ne,le,T){s.list().forEach(de=>j(()=>de(ne,le,T)))}function b(ne,le,T,de,Ye){const Ne=C(ne,le);if(Ne)return Ne;const E=le===ki,F=Vl?history.state:{};T&&(de||E?i.replace(ne.fullPath,Wt({scroll:E&&F&&F.scroll},Ye)):i.push(ne.fullPath,Ye)),l.value=ne,R(ne,le,T,E),y()}let v;function k(){v||(v=i.listen((ne,le,T)=>{if(!Ge.listening)return;const de=B(ne),Ye=z(de);if(Ye){L(Wt(Ye,{replace:!0}),de).catch(nf);return}c=de;const Ne=l.value;Vl&&MC(rv(Ne.fullPath,T.delta),F0()),H(de,Ne).catch(E=>_o(E,12)?E:_o(E,2)?(L(E.to,de).then(F=>{_o(F,20)&&!T.delta&&T.type===Bf.pop&&i.go(-1,!1)}).catch(nf),Promise.reject()):(T.delta&&i.go(-T.delta,!1),S(E,de,Ne))).then(E=>{E=E||b(de,Ne,!1),E&&(T.delta&&!_o(E,8)?i.go(-T.delta,!1):T.type===Bf.pop&&_o(E,20)&&i.go(-1,!1)),x(de,Ne,E)}).catch(nf)}))}let A=Su(),G=Su(),Y;function S(ne,le,T){y(ne);const de=G.list();return de.length?de.forEach(Ye=>Ye(ne,le,T)):console.error(ne),Promise.reject(ne)}function M(){return Y&&l.value!==ki?Promise.resolve():new Promise((ne,le)=>{A.add([ne,le])})}function y(ne){return Y||(Y=!ne,k(),A.list().forEach(([le,T])=>ne?T(ne):le()),A.reset()),ne}function R(ne,le,T,de){const{scrollBehavior:Ye}=t;if(!Vl||!Ye)return Promise.resolve();const Ne=!T&&OC(rv(ne.fullPath,0))||(de||!T)&&history.state&&history.state.scroll||null;return Sn().then(()=>Ye(ne,le,Ne)).then(E=>E&&YC(E)).catch(E=>S(E,ne,le))}const K=ne=>i.go(ne);let ue;const ve=new Set,Ge={currentRoute:l,listening:!0,addRoute:g,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:I,getRoutes:_,resolve:B,options:t,push:N,replace:V,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:G.add,isReady:M,install(ne){const le=this;ne.component("RouterLink",sB),ne.component("RouterView",T_),ne.config.globalProperties.$router=le,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>ze(l)}),Vl&&!ue&&l.value===ki&&(ue=!0,N(i.location).catch(Ye=>{}));const T={};for(const Ye in ki)Object.defineProperty(T,Ye,{get:()=>l.value[Ye],enumerable:!0});ne.provide(Bm,le),ne.provide(Wm,Zn(T)),ne.provide(Cg,l);const de=ne.unmount;ve.add(ne),ne.unmount=function(){ve.delete(ne),ve.size<1&&(c=ki,v&&v(),v=null,l.value=ki,ue=!1,Y=!1),de()}}};function Me(ne){return ne.reduce((le,T)=>le.then(()=>j(T)),Promise.resolve())}return Ge}function dB(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;akc(c,s))?n.push(s):r.push(s));const l=t.matched[a];l&&(e.matched.find(c=>kc(c,l))||i.push(l))}return[r,n,i]}function hB(t){return $r(Wm)}const pB=(t,e)=>e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=t.params[r.slice(1)])==null?void 0:n.toString())||""}),Bg=(t,e)=>{const r=t.route.matched.find(i=>{var o;return((o=i.components)==null?void 0:o.default)===t.Component.type}),n=e??(r==null?void 0:r.meta.key)??(r&&pB(t.route,r));return typeof n=="function"?n(t.route):n},gB=(t,e)=>({default:()=>t?An(TI,t===!0?{}:t,e):e});function Sm(t){return Array.isArray(t)?t:[t]}const bB="modulepreload",mB=function(t,e){return t[0]==="."?new URL(t,e).href:t},bv={},yB=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.all(r.map(l=>{if(l=mB(l,n),l in bv)return;bv[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!n)for(let g=o.length-1;g>=0;g--){const m=o[g];if(m.href===l&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":bB,c||(h.as="script",h.crossOrigin=""),h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),c)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},Je=(...t)=>yB(...t).catch(e=>{const r=new Event("nuxt.preloadError");throw r.payload=e,window.dispatchEvent(r),e}),vB={layout:"preview"},wB={middleware:"auth",layout:"template"},_B={middleware:"auth"},IB={middleware:"auth"},mv=[{name:"access",path:"/access",meta:vB||{},component:()=>Je(()=>import("./DZvHjpzl.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(t=>t.default||t)},{name:"campaign-id",path:"/campaign/:id()",component:()=>Je(()=>import("./imxI89Y8.js"),__vite__mapDeps([5,3,6,7,8,9,10,11,12]),import.meta.url).then(t=>t.default||t)},{name:"campaign-id-task",path:"/campaign/:id()/task",meta:wB||{},component:()=>Je(()=>import("./xo8hsDaG.js"),__vite__mapDeps([13,14]),import.meta.url).then(t=>t.default||t)},{name:"index",path:"/",component:()=>Je(()=>import("./BM1cpa3O.js"),__vite__mapDeps([15,3,16,17,18]),import.meta.url).then(t=>t.default||t)},{name:"login",path:"/login",component:()=>Je(()=>import("./Dtabo8Ev.js"),__vite__mapDeps([19,1,2]),import.meta.url).then(t=>t.default||t)},{name:"profile",path:"/profile",meta:_B||{},component:()=>Je(()=>import("./IEnkyGq6.js"),__vite__mapDeps([20,17,21]),import.meta.url).then(t=>t.default||t)},{name:"settings",path:"/settings",meta:IB||{},component:()=>Je(()=>import("./BVnr0zBR.js"),[],import.meta.url).then(t=>t.default||t)}],H_=(t,e,r)=>(e=e===!0?{}:e,{default:()=>{var n;return e?An(t,e,r):(n=r.default)==null?void 0:n.call(r)}});function yv(t){const e=(t==null?void 0:t.meta.key)??t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=t.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof e=="function"?e(t):e}function kB(t,e){return t===e||e===ki?!1:yv(t)!==yv(e)?!0:!t.matched.every((n,i)=>{var o,a;return n.components&&n.components.default===((a=(o=e.matched[i])==null?void 0:o.components)==null?void 0:a.default)})}const ZB={scrollBehavior(t,e,r){var c;const n=gr(),i=((c=Mi().options)==null?void 0:c.scrollBehaviorType)??"auto";let o=r||void 0;const a=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!o&&e&&t&&a!==!1&&kB(t,e)&&(o={left:0,top:0}),t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:vv(t.hash),behavior:i}:!1;const s=u=>!!(u.meta.pageTransition??bg),l=s(e)&&s(t)?"page:transition:finish":"page:finish";return new Promise(u=>{n.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),t.hash&&(o={el:t.hash,top:vv(t.hash),behavior:i}),u(o)})})}};function vv(t){try{const e=document.querySelector(t);if(e)return Number.parseFloat(getComputedStyle(e).scrollMarginTop)}catch{}return 0}const AB={hashMode:!1,scrollBehaviorType:"auto"},Gn={...AB,...ZB},CB=async t=>{var l;let e,r;if(!((l=t.meta)!=null&&l.validate))return;const n=gr(),i=Mi();if(([e,r]=Af(()=>Promise.resolve(t.meta.validate(t))),e=await e,r(),e)===!0)return;const a=X0({statusCode:404,statusMessage:`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}}),s=i.beforeResolve(c=>{if(s(),c===t){const u=i.afterEach(async()=>{u(),await n.runWithContext(()=>Xl(a)),window.history.pushState({},"",t.fullPath)});return!1}})},BB=window.setInterval,$d=bt([]),Rm=()=>{const t=n=>{const i=$d.value.indexOf(n);i!==-1&&$d.value.splice(i,1)},e=n=>(new Date().getTime()-n.created.getTime())/n.duration*100;return{calculateNotificationProgress:e,removeNotification:t,notifications:$d,notify:({message:n,type:i,duration:o=5e3,icon:a})=>{const s=Zn({message:n,type:i,duration:o,progress:0,created:new Date,icon:a}),l=BB(()=>{s.progress=e(s)},100);$d.value.push(s),setTimeout(()=>{clearInterval(l),t(s)},o)}}};var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function WB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var xm={exports:{}};const SB={},RB=Object.freeze(Object.defineProperty({__proto__:null,default:SB},Symbol.toStringTag,{value:"Module"})),D_=WB(RB);var t1;xm.exports=function(e){return t1||(t1=new Ra(null)),t1.generate(e)};function Ra(t){this.rand=t}xm.exports.Rand=Ra;Ra.prototype.generate=function(e){return this._rand(e)};Ra.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function MB(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=o&63|128):YB(t,i)?(o=65536+((o&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}ft.htonl=P_;function VB(t,e){for(var r="",n=0;n>>0}return o}ft.join32=EB;function jB(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}ft.split32=jB;function zB(t,e){return t>>>e|t<<32-e}ft.rotr32=zB;function XB(t,e){return t<>>32-e}ft.rotl32=XB;function LB(t,e){return t+e>>>0}ft.sum32=LB;function FB(t,e,r){return t+e+r>>>0}ft.sum32_3=FB;function TB(t,e,r,n){return t+e+r+n>>>0}ft.sum32_4=TB;function HB(t,e,r,n,i){return t+e+r+n+i>>>0}ft.sum32_5=HB;function DB(t,e,r,n){var i=t[e],o=t[e+1],a=n+o>>>0,s=(a>>0,t[e+1]=a}ft.sum64=DB;function JB(t,e,r,n){var i=e+n>>>0,o=(i>>0}ft.sum64_hi=JB;function PB(t,e,r,n){var i=e+n;return i>>>0}ft.sum64_lo=PB;function qB(t,e,r,n,i,o,a,s){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}ft.sum64_4_hi=qB;function $B(t,e,r,n,i,o,a,s){var l=e+n+o+s;return l>>>0}ft.sum64_4_lo=$B;function UB(t,e,r,n,i,o,a,s,l,c){var u=0,f=e;f=f+n>>>0,u+=f>>0,u+=f>>0,u+=f>>0,u+=f>>0}ft.sum64_5_hi=UB;function QB(t,e,r,n,i,o,a,s,l,c){var u=e+n+o+s+c;return u>>>0}ft.sum64_5_lo=QB;function KB(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}ft.rotr64_hi=KB;function eW(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ft.rotr64_lo=eW;function tW(t,e,r){return t>>>r}ft.shr64_hi=tW;function rW(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ft.shr64_lo=rW;var ou={},_v=ft,nW=kl;function H0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ou.BlockHash=H0;H0.prototype.update=function(e,r){if(e=_v.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=_v.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=e&255}else for(i[o++]=e&255,i[o++]=e>>>8&255,i[o++]=e>>>16&255,i[o++]=e>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,a=8;a>>3}mo.g0_256=lW;function cW(t){return eo(t,17)^eo(t,19)^t>>>10}mo.g1_256=cW;var Ac=ft,uW=ou,fW=mo,r1=Ac.rotl32,Ru=Ac.sum32,dW=Ac.sum32_5,hW=fW.ft_1,e6=uW.BlockHash,pW=[1518500249,1859775393,2400959708,3395469782];function so(){if(!(this instanceof so))return new so;e6.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ac.inherits(so,e6);var gW=so;so.blockSize=512;so.outSize=160;so.hmacStrength=80;so.padLength=64;so.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),rS(e.length<=this.blockSize);for(var r=e.length;r0?b:v},o.min=function(b,v){return b.cmp(v)<0?b:v},o.prototype._init=function(b,v,k){if(typeof b=="number")return this._initNumber(b,v,k);if(typeof b=="object")return this._initArray(b,v,k);v==="hex"&&(v=16),n(v===(v|0)&&v>=2&&v<=36),b=b.toString().replace(/\s+/g,"");var A=0;b[0]==="-"&&(A++,this.negative=1),A=0;A-=3)Y=b[A]|b[A-1]<<8|b[A-2]<<16,this.words[G]|=Y<>>26-S&67108863,S+=24,S>=26&&(S-=26,G++);else if(k==="le")for(A=0,G=0;A>>26-S&67108863,S+=24,S>=26&&(S-=26,G++);return this.strip()};function s(x,b){var v=x.charCodeAt(b);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function l(x,b,v){var k=s(x,v);return v-1>=b&&(k|=s(x,v-1)<<4),k}o.prototype._parseHex=function(b,v,k){this.length=Math.ceil((b.length-v)/6),this.words=new Array(this.length);for(var A=0;A=v;A-=2)S=l(b,v,A)<=18?(G-=18,Y+=1,this.words[Y]|=S>>>26):G+=8;else{var M=b.length-v;for(A=M%2===0?v+1:v;A=18?(G-=18,Y+=1,this.words[Y]|=S>>>26):G+=8}this.strip()};function c(x,b,v,k){for(var A=0,G=Math.min(x.length,v),Y=b;Y=49?A+=S-49+10:S>=17?A+=S-17+10:A+=S}return A}o.prototype._parseBase=function(b,v,k){this.words=[0],this.length=1;for(var A=0,G=1;G<=67108863;G*=v)A++;A--,G=G/v|0;for(var Y=b.length-k,S=Y%A,M=Math.min(Y,Y-S)+k,y=0,R=k;R1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(b,v){b=b||10,v=v|0||1;var k;if(b===16||b==="hex"){k="";for(var A=0,G=0,Y=0;Y>>24-A&16777215,G!==0||Y!==this.length-1?k=u[6-M.length]+M+k:k=M+k,A+=2,A>=26&&(A-=26,Y--)}for(G!==0&&(k=G.toString(16)+k);k.length%v!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(b===(b|0)&&b>=2&&b<=36){var y=f[b],R=h[b];k="";var K=this.clone();for(K.negative=0;!K.isZero();){var ue=K.modn(R).toString(b);K=K.idivn(R),K.isZero()?k=ue+k:k=u[y-ue.length]+ue+k}for(this.isZero()&&(k="0"+k);k.length%v!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(b,v){return n(typeof a<"u"),this.toArrayLike(a,b,v)},o.prototype.toArray=function(b,v){return this.toArrayLike(Array,b,v)},o.prototype.toArrayLike=function(b,v,k){var A=this.byteLength(),G=k||Math.max(1,A);n(A<=G,"byte array longer than desired length"),n(G>0,"Requested array length <= 0"),this.strip();var Y=v==="le",S=new b(G),M,y,R=this.clone();if(Y){for(y=0;!R.isZero();y++)M=R.andln(255),R.iushrn(8),S[y]=M;for(;y=4096&&(k+=13,v>>>=13),v>=64&&(k+=7,v>>>=7),v>=8&&(k+=4,v>>>=4),v>=2&&(k+=2,v>>>=2),k+v},o.prototype._zeroBits=function(b){if(b===0)return 26;var v=b,k=0;return v&8191||(k+=13,v>>>=13),v&127||(k+=7,v>>>=7),v&15||(k+=4,v>>>=4),v&3||(k+=2,v>>>=2),v&1||k++,k},o.prototype.bitLength=function(){var b=this.words[this.length-1],v=this._countBits(b);return(this.length-1)*26+v};function g(x){for(var b=new Array(x.bitLength()),v=0;v>>A}return b}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,v=0;vb.length?this.clone().ior(b):b.clone().ior(this)},o.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},o.prototype.iuand=function(b){var v;this.length>b.length?v=b:v=this;for(var k=0;kb.length?this.clone().iand(b):b.clone().iand(this)},o.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},o.prototype.iuxor=function(b){var v,k;this.length>b.length?(v=this,k=b):(v=b,k=this);for(var A=0;Ab.length?this.clone().ixor(b):b.clone().ixor(this)},o.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},o.prototype.inotn=function(b){n(typeof b=="number"&&b>=0);var v=Math.ceil(b/26)|0,k=b%26;this._expand(v),k>0&&v--;for(var A=0;A0&&(this.words[A]=~this.words[A]&67108863>>26-k),this.strip()},o.prototype.notn=function(b){return this.clone().inotn(b)},o.prototype.setn=function(b,v){n(typeof b=="number"&&b>=0);var k=b/26|0,A=b%26;return this._expand(k+1),v?this.words[k]=this.words[k]|1<b.length?(k=this,A=b):(k=b,A=this);for(var G=0,Y=0;Y>>26;for(;G!==0&&Y>>26;if(this.length=k.length,G!==0)this.words[this.length]=G,this.length++;else if(k!==this)for(;Yb.length?this.clone().iadd(b):b.clone().iadd(this)},o.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var v=this.iadd(b);return b.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var k=this.cmp(b);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,G;k>0?(A=this,G=b):(A=b,G=this);for(var Y=0,S=0;S>26,this.words[S]=v&67108863;for(;Y!==0&&S>26,this.words[S]=v&67108863;if(Y===0&&S>>26,K=M&67108863,ue=Math.min(y,b.length-1),ve=Math.max(0,y-x.length+1);ve<=ue;ve++){var Ge=y-ve|0;A=x.words[Ge]|0,G=b.words[ve]|0,Y=A*G+K,R+=Y/67108864|0,K=Y&67108863}v.words[y]=K|0,M=R|0}return M!==0?v.words[y]=M|0:v.length--,v.strip()}var _=function(b,v,k){var A=b.words,G=v.words,Y=k.words,S=0,M,y,R,K=A[0]|0,ue=K&8191,ve=K>>>13,Ge=A[1]|0,Me=Ge&8191,ne=Ge>>>13,le=A[2]|0,T=le&8191,de=le>>>13,Ye=A[3]|0,Ne=Ye&8191,E=Ye>>>13,F=A[4]|0,ee=F&8191,oe=F>>>13,ce=A[5]|0,pe=ce&8191,ge=ce>>>13,_e=A[6]|0,be=_e&8191,se=_e>>>13,Re=A[7]|0,fe=Re&8191,Ie=Re>>>13,w=A[8]|0,Z=w&8191,O=w>>>13,X=A[9]|0,$=X&8191,J=X>>>13,ie=G[0]|0,re=ie&8191,ae=ie>>>13,xe=G[1]|0,Se=xe&8191,ke=xe>>>13,Pe=G[2]|0,Ke=Pe&8191,et=Pe>>>13,Jt=G[3]|0,kt=Jt&8191,Xt=Jt>>>13,Qo=G[4]|0,Lt=Qo&8191,Rt=Qo>>>13,yi=G[5]|0,zt=yi&8191,Pt=yi>>>13,Ko=G[6]|0,qt=Ko&8191,$t=Ko>>>13,ps=G[7]|0,Nt=ps&8191,xt=ps>>>13,gs=G[8]|0,Gt=gs&8191,Bt=gs>>>13,bs=G[9]|0,Ut=bs&8191,Yt=bs>>>13;k.negative=b.negative^v.negative,k.length=19,M=Math.imul(ue,re),y=Math.imul(ue,ae),y=y+Math.imul(ve,re)|0,R=Math.imul(ve,ae);var Ei=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,M=Math.imul(Me,re),y=Math.imul(Me,ae),y=y+Math.imul(ne,re)|0,R=Math.imul(ne,ae),M=M+Math.imul(ue,Se)|0,y=y+Math.imul(ue,ke)|0,y=y+Math.imul(ve,Se)|0,R=R+Math.imul(ve,ke)|0;var Tr=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,M=Math.imul(T,re),y=Math.imul(T,ae),y=y+Math.imul(de,re)|0,R=Math.imul(de,ae),M=M+Math.imul(Me,Se)|0,y=y+Math.imul(Me,ke)|0,y=y+Math.imul(ne,Se)|0,R=R+Math.imul(ne,ke)|0,M=M+Math.imul(ue,Ke)|0,y=y+Math.imul(ue,et)|0,y=y+Math.imul(ve,Ke)|0,R=R+Math.imul(ve,et)|0;var ea=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(ea>>>26)|0,ea&=67108863,M=Math.imul(Ne,re),y=Math.imul(Ne,ae),y=y+Math.imul(E,re)|0,R=Math.imul(E,ae),M=M+Math.imul(T,Se)|0,y=y+Math.imul(T,ke)|0,y=y+Math.imul(de,Se)|0,R=R+Math.imul(de,ke)|0,M=M+Math.imul(Me,Ke)|0,y=y+Math.imul(Me,et)|0,y=y+Math.imul(ne,Ke)|0,R=R+Math.imul(ne,et)|0,M=M+Math.imul(ue,kt)|0,y=y+Math.imul(ue,Xt)|0,y=y+Math.imul(ve,kt)|0,R=R+Math.imul(ve,Xt)|0;var ta=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(ta>>>26)|0,ta&=67108863,M=Math.imul(ee,re),y=Math.imul(ee,ae),y=y+Math.imul(oe,re)|0,R=Math.imul(oe,ae),M=M+Math.imul(Ne,Se)|0,y=y+Math.imul(Ne,ke)|0,y=y+Math.imul(E,Se)|0,R=R+Math.imul(E,ke)|0,M=M+Math.imul(T,Ke)|0,y=y+Math.imul(T,et)|0,y=y+Math.imul(de,Ke)|0,R=R+Math.imul(de,et)|0,M=M+Math.imul(Me,kt)|0,y=y+Math.imul(Me,Xt)|0,y=y+Math.imul(ne,kt)|0,R=R+Math.imul(ne,Xt)|0,M=M+Math.imul(ue,Lt)|0,y=y+Math.imul(ue,Rt)|0,y=y+Math.imul(ve,Lt)|0,R=R+Math.imul(ve,Rt)|0;var wo=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(wo>>>26)|0,wo&=67108863,M=Math.imul(pe,re),y=Math.imul(pe,ae),y=y+Math.imul(ge,re)|0,R=Math.imul(ge,ae),M=M+Math.imul(ee,Se)|0,y=y+Math.imul(ee,ke)|0,y=y+Math.imul(oe,Se)|0,R=R+Math.imul(oe,ke)|0,M=M+Math.imul(Ne,Ke)|0,y=y+Math.imul(Ne,et)|0,y=y+Math.imul(E,Ke)|0,R=R+Math.imul(E,et)|0,M=M+Math.imul(T,kt)|0,y=y+Math.imul(T,Xt)|0,y=y+Math.imul(de,kt)|0,R=R+Math.imul(de,Xt)|0,M=M+Math.imul(Me,Lt)|0,y=y+Math.imul(Me,Rt)|0,y=y+Math.imul(ne,Lt)|0,R=R+Math.imul(ne,Rt)|0,M=M+Math.imul(ue,zt)|0,y=y+Math.imul(ue,Pt)|0,y=y+Math.imul(ve,zt)|0,R=R+Math.imul(ve,Pt)|0;var vi=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(vi>>>26)|0,vi&=67108863,M=Math.imul(be,re),y=Math.imul(be,ae),y=y+Math.imul(se,re)|0,R=Math.imul(se,ae),M=M+Math.imul(pe,Se)|0,y=y+Math.imul(pe,ke)|0,y=y+Math.imul(ge,Se)|0,R=R+Math.imul(ge,ke)|0,M=M+Math.imul(ee,Ke)|0,y=y+Math.imul(ee,et)|0,y=y+Math.imul(oe,Ke)|0,R=R+Math.imul(oe,et)|0,M=M+Math.imul(Ne,kt)|0,y=y+Math.imul(Ne,Xt)|0,y=y+Math.imul(E,kt)|0,R=R+Math.imul(E,Xt)|0,M=M+Math.imul(T,Lt)|0,y=y+Math.imul(T,Rt)|0,y=y+Math.imul(de,Lt)|0,R=R+Math.imul(de,Rt)|0,M=M+Math.imul(Me,zt)|0,y=y+Math.imul(Me,Pt)|0,y=y+Math.imul(ne,zt)|0,R=R+Math.imul(ne,Pt)|0,M=M+Math.imul(ue,qt)|0,y=y+Math.imul(ue,$t)|0,y=y+Math.imul(ve,qt)|0,R=R+Math.imul(ve,$t)|0;var we=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(we>>>26)|0,we&=67108863,M=Math.imul(fe,re),y=Math.imul(fe,ae),y=y+Math.imul(Ie,re)|0,R=Math.imul(Ie,ae),M=M+Math.imul(be,Se)|0,y=y+Math.imul(be,ke)|0,y=y+Math.imul(se,Se)|0,R=R+Math.imul(se,ke)|0,M=M+Math.imul(pe,Ke)|0,y=y+Math.imul(pe,et)|0,y=y+Math.imul(ge,Ke)|0,R=R+Math.imul(ge,et)|0,M=M+Math.imul(ee,kt)|0,y=y+Math.imul(ee,Xt)|0,y=y+Math.imul(oe,kt)|0,R=R+Math.imul(oe,Xt)|0,M=M+Math.imul(Ne,Lt)|0,y=y+Math.imul(Ne,Rt)|0,y=y+Math.imul(E,Lt)|0,R=R+Math.imul(E,Rt)|0,M=M+Math.imul(T,zt)|0,y=y+Math.imul(T,Pt)|0,y=y+Math.imul(de,zt)|0,R=R+Math.imul(de,Pt)|0,M=M+Math.imul(Me,qt)|0,y=y+Math.imul(Me,$t)|0,y=y+Math.imul(ne,qt)|0,R=R+Math.imul(ne,$t)|0,M=M+Math.imul(ue,Nt)|0,y=y+Math.imul(ue,xt)|0,y=y+Math.imul(ve,Nt)|0,R=R+Math.imul(ve,xt)|0;var Zp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,M=Math.imul(Z,re),y=Math.imul(Z,ae),y=y+Math.imul(O,re)|0,R=Math.imul(O,ae),M=M+Math.imul(fe,Se)|0,y=y+Math.imul(fe,ke)|0,y=y+Math.imul(Ie,Se)|0,R=R+Math.imul(Ie,ke)|0,M=M+Math.imul(be,Ke)|0,y=y+Math.imul(be,et)|0,y=y+Math.imul(se,Ke)|0,R=R+Math.imul(se,et)|0,M=M+Math.imul(pe,kt)|0,y=y+Math.imul(pe,Xt)|0,y=y+Math.imul(ge,kt)|0,R=R+Math.imul(ge,Xt)|0,M=M+Math.imul(ee,Lt)|0,y=y+Math.imul(ee,Rt)|0,y=y+Math.imul(oe,Lt)|0,R=R+Math.imul(oe,Rt)|0,M=M+Math.imul(Ne,zt)|0,y=y+Math.imul(Ne,Pt)|0,y=y+Math.imul(E,zt)|0,R=R+Math.imul(E,Pt)|0,M=M+Math.imul(T,qt)|0,y=y+Math.imul(T,$t)|0,y=y+Math.imul(de,qt)|0,R=R+Math.imul(de,$t)|0,M=M+Math.imul(Me,Nt)|0,y=y+Math.imul(Me,xt)|0,y=y+Math.imul(ne,Nt)|0,R=R+Math.imul(ne,xt)|0,M=M+Math.imul(ue,Gt)|0,y=y+Math.imul(ue,Bt)|0,y=y+Math.imul(ve,Gt)|0,R=R+Math.imul(ve,Bt)|0;var Ap=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Ap>>>26)|0,Ap&=67108863,M=Math.imul($,re),y=Math.imul($,ae),y=y+Math.imul(J,re)|0,R=Math.imul(J,ae),M=M+Math.imul(Z,Se)|0,y=y+Math.imul(Z,ke)|0,y=y+Math.imul(O,Se)|0,R=R+Math.imul(O,ke)|0,M=M+Math.imul(fe,Ke)|0,y=y+Math.imul(fe,et)|0,y=y+Math.imul(Ie,Ke)|0,R=R+Math.imul(Ie,et)|0,M=M+Math.imul(be,kt)|0,y=y+Math.imul(be,Xt)|0,y=y+Math.imul(se,kt)|0,R=R+Math.imul(se,Xt)|0,M=M+Math.imul(pe,Lt)|0,y=y+Math.imul(pe,Rt)|0,y=y+Math.imul(ge,Lt)|0,R=R+Math.imul(ge,Rt)|0,M=M+Math.imul(ee,zt)|0,y=y+Math.imul(ee,Pt)|0,y=y+Math.imul(oe,zt)|0,R=R+Math.imul(oe,Pt)|0,M=M+Math.imul(Ne,qt)|0,y=y+Math.imul(Ne,$t)|0,y=y+Math.imul(E,qt)|0,R=R+Math.imul(E,$t)|0,M=M+Math.imul(T,Nt)|0,y=y+Math.imul(T,xt)|0,y=y+Math.imul(de,Nt)|0,R=R+Math.imul(de,xt)|0,M=M+Math.imul(Me,Gt)|0,y=y+Math.imul(Me,Bt)|0,y=y+Math.imul(ne,Gt)|0,R=R+Math.imul(ne,Bt)|0,M=M+Math.imul(ue,Ut)|0,y=y+Math.imul(ue,Yt)|0,y=y+Math.imul(ve,Ut)|0,R=R+Math.imul(ve,Yt)|0;var Cp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Cp>>>26)|0,Cp&=67108863,M=Math.imul($,Se),y=Math.imul($,ke),y=y+Math.imul(J,Se)|0,R=Math.imul(J,ke),M=M+Math.imul(Z,Ke)|0,y=y+Math.imul(Z,et)|0,y=y+Math.imul(O,Ke)|0,R=R+Math.imul(O,et)|0,M=M+Math.imul(fe,kt)|0,y=y+Math.imul(fe,Xt)|0,y=y+Math.imul(Ie,kt)|0,R=R+Math.imul(Ie,Xt)|0,M=M+Math.imul(be,Lt)|0,y=y+Math.imul(be,Rt)|0,y=y+Math.imul(se,Lt)|0,R=R+Math.imul(se,Rt)|0,M=M+Math.imul(pe,zt)|0,y=y+Math.imul(pe,Pt)|0,y=y+Math.imul(ge,zt)|0,R=R+Math.imul(ge,Pt)|0,M=M+Math.imul(ee,qt)|0,y=y+Math.imul(ee,$t)|0,y=y+Math.imul(oe,qt)|0,R=R+Math.imul(oe,$t)|0,M=M+Math.imul(Ne,Nt)|0,y=y+Math.imul(Ne,xt)|0,y=y+Math.imul(E,Nt)|0,R=R+Math.imul(E,xt)|0,M=M+Math.imul(T,Gt)|0,y=y+Math.imul(T,Bt)|0,y=y+Math.imul(de,Gt)|0,R=R+Math.imul(de,Bt)|0,M=M+Math.imul(Me,Ut)|0,y=y+Math.imul(Me,Yt)|0,y=y+Math.imul(ne,Ut)|0,R=R+Math.imul(ne,Yt)|0;var Bp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Bp>>>26)|0,Bp&=67108863,M=Math.imul($,Ke),y=Math.imul($,et),y=y+Math.imul(J,Ke)|0,R=Math.imul(J,et),M=M+Math.imul(Z,kt)|0,y=y+Math.imul(Z,Xt)|0,y=y+Math.imul(O,kt)|0,R=R+Math.imul(O,Xt)|0,M=M+Math.imul(fe,Lt)|0,y=y+Math.imul(fe,Rt)|0,y=y+Math.imul(Ie,Lt)|0,R=R+Math.imul(Ie,Rt)|0,M=M+Math.imul(be,zt)|0,y=y+Math.imul(be,Pt)|0,y=y+Math.imul(se,zt)|0,R=R+Math.imul(se,Pt)|0,M=M+Math.imul(pe,qt)|0,y=y+Math.imul(pe,$t)|0,y=y+Math.imul(ge,qt)|0,R=R+Math.imul(ge,$t)|0,M=M+Math.imul(ee,Nt)|0,y=y+Math.imul(ee,xt)|0,y=y+Math.imul(oe,Nt)|0,R=R+Math.imul(oe,xt)|0,M=M+Math.imul(Ne,Gt)|0,y=y+Math.imul(Ne,Bt)|0,y=y+Math.imul(E,Gt)|0,R=R+Math.imul(E,Bt)|0,M=M+Math.imul(T,Ut)|0,y=y+Math.imul(T,Yt)|0,y=y+Math.imul(de,Ut)|0,R=R+Math.imul(de,Yt)|0;var Wp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Wp>>>26)|0,Wp&=67108863,M=Math.imul($,kt),y=Math.imul($,Xt),y=y+Math.imul(J,kt)|0,R=Math.imul(J,Xt),M=M+Math.imul(Z,Lt)|0,y=y+Math.imul(Z,Rt)|0,y=y+Math.imul(O,Lt)|0,R=R+Math.imul(O,Rt)|0,M=M+Math.imul(fe,zt)|0,y=y+Math.imul(fe,Pt)|0,y=y+Math.imul(Ie,zt)|0,R=R+Math.imul(Ie,Pt)|0,M=M+Math.imul(be,qt)|0,y=y+Math.imul(be,$t)|0,y=y+Math.imul(se,qt)|0,R=R+Math.imul(se,$t)|0,M=M+Math.imul(pe,Nt)|0,y=y+Math.imul(pe,xt)|0,y=y+Math.imul(ge,Nt)|0,R=R+Math.imul(ge,xt)|0,M=M+Math.imul(ee,Gt)|0,y=y+Math.imul(ee,Bt)|0,y=y+Math.imul(oe,Gt)|0,R=R+Math.imul(oe,Bt)|0,M=M+Math.imul(Ne,Ut)|0,y=y+Math.imul(Ne,Yt)|0,y=y+Math.imul(E,Ut)|0,R=R+Math.imul(E,Yt)|0;var Sp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Sp>>>26)|0,Sp&=67108863,M=Math.imul($,Lt),y=Math.imul($,Rt),y=y+Math.imul(J,Lt)|0,R=Math.imul(J,Rt),M=M+Math.imul(Z,zt)|0,y=y+Math.imul(Z,Pt)|0,y=y+Math.imul(O,zt)|0,R=R+Math.imul(O,Pt)|0,M=M+Math.imul(fe,qt)|0,y=y+Math.imul(fe,$t)|0,y=y+Math.imul(Ie,qt)|0,R=R+Math.imul(Ie,$t)|0,M=M+Math.imul(be,Nt)|0,y=y+Math.imul(be,xt)|0,y=y+Math.imul(se,Nt)|0,R=R+Math.imul(se,xt)|0,M=M+Math.imul(pe,Gt)|0,y=y+Math.imul(pe,Bt)|0,y=y+Math.imul(ge,Gt)|0,R=R+Math.imul(ge,Bt)|0,M=M+Math.imul(ee,Ut)|0,y=y+Math.imul(ee,Yt)|0,y=y+Math.imul(oe,Ut)|0,R=R+Math.imul(oe,Yt)|0;var Rp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Rp>>>26)|0,Rp&=67108863,M=Math.imul($,zt),y=Math.imul($,Pt),y=y+Math.imul(J,zt)|0,R=Math.imul(J,Pt),M=M+Math.imul(Z,qt)|0,y=y+Math.imul(Z,$t)|0,y=y+Math.imul(O,qt)|0,R=R+Math.imul(O,$t)|0,M=M+Math.imul(fe,Nt)|0,y=y+Math.imul(fe,xt)|0,y=y+Math.imul(Ie,Nt)|0,R=R+Math.imul(Ie,xt)|0,M=M+Math.imul(be,Gt)|0,y=y+Math.imul(be,Bt)|0,y=y+Math.imul(se,Gt)|0,R=R+Math.imul(se,Bt)|0,M=M+Math.imul(pe,Ut)|0,y=y+Math.imul(pe,Yt)|0,y=y+Math.imul(ge,Ut)|0,R=R+Math.imul(ge,Yt)|0;var Np=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Np>>>26)|0,Np&=67108863,M=Math.imul($,qt),y=Math.imul($,$t),y=y+Math.imul(J,qt)|0,R=Math.imul(J,$t),M=M+Math.imul(Z,Nt)|0,y=y+Math.imul(Z,xt)|0,y=y+Math.imul(O,Nt)|0,R=R+Math.imul(O,xt)|0,M=M+Math.imul(fe,Gt)|0,y=y+Math.imul(fe,Bt)|0,y=y+Math.imul(Ie,Gt)|0,R=R+Math.imul(Ie,Bt)|0,M=M+Math.imul(be,Ut)|0,y=y+Math.imul(be,Yt)|0,y=y+Math.imul(se,Ut)|0,R=R+Math.imul(se,Yt)|0;var xp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(xp>>>26)|0,xp&=67108863,M=Math.imul($,Nt),y=Math.imul($,xt),y=y+Math.imul(J,Nt)|0,R=Math.imul(J,xt),M=M+Math.imul(Z,Gt)|0,y=y+Math.imul(Z,Bt)|0,y=y+Math.imul(O,Gt)|0,R=R+Math.imul(O,Bt)|0,M=M+Math.imul(fe,Ut)|0,y=y+Math.imul(fe,Yt)|0,y=y+Math.imul(Ie,Ut)|0,R=R+Math.imul(Ie,Yt)|0;var Gp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,M=Math.imul($,Gt),y=Math.imul($,Bt),y=y+Math.imul(J,Gt)|0,R=Math.imul(J,Bt),M=M+Math.imul(Z,Ut)|0,y=y+Math.imul(Z,Yt)|0,y=y+Math.imul(O,Ut)|0,R=R+Math.imul(O,Yt)|0;var Yp=(S+M|0)+((y&8191)<<13)|0;S=(R+(y>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,M=Math.imul($,Ut),y=Math.imul($,Yt),y=y+Math.imul(J,Ut)|0,R=Math.imul(J,Yt);var Mp=(S+M|0)+((y&8191)<<13)|0;return S=(R+(y>>>13)|0)+(Mp>>>26)|0,Mp&=67108863,Y[0]=Ei,Y[1]=Tr,Y[2]=ea,Y[3]=ta,Y[4]=wo,Y[5]=vi,Y[6]=we,Y[7]=Zp,Y[8]=Ap,Y[9]=Cp,Y[10]=Bp,Y[11]=Wp,Y[12]=Sp,Y[13]=Rp,Y[14]=Np,Y[15]=xp,Y[16]=Gp,Y[17]=Yp,Y[18]=Mp,S!==0&&(Y[19]=S,k.length++),k};Math.imul||(_=m);function I(x,b,v){v.negative=b.negative^x.negative,v.length=x.length+b.length;for(var k=0,A=0,G=0;G>>26)|0,A+=Y>>>26,Y&=67108863}v.words[G]=S,k=Y,Y=A}return k!==0?v.words[G]=k:v.length--,v.strip()}function B(x,b,v){var k=new W;return k.mulp(x,b,v)}o.prototype.mulTo=function(b,v){var k,A=this.length+b.length;return this.length===10&&b.length===10?k=_(this,b,v):A<63?k=m(this,b,v):A<1024?k=I(this,b,v):k=B(this,b,v),k};function W(x,b){this.x=x,this.y=b}W.prototype.makeRBT=function(b){for(var v=new Array(b),k=o.prototype._countBits(b)-1,A=0;A>=1;return A},W.prototype.permute=function(b,v,k,A,G,Y){for(var S=0;S>>1)G++;return 1<>>13,k[2*Y+1]=G&8191,G=G>>>13;for(Y=2*v;Y>=26,v+=A/67108864|0,v+=G>>>26,this.words[k]=G&67108863}return v!==0&&(this.words[k]=v,this.length++),this},o.prototype.muln=function(b){return this.clone().imuln(b)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(b){var v=g(b);if(v.length===0)return new o(1);for(var k=this,A=0;A=0);var v=b%26,k=(b-v)/26,A=67108863>>>26-v<<26-v,G;if(v!==0){var Y=0;for(G=0;G>>26-v}Y&&(this.words[G]=Y,this.length++)}if(k!==0){for(G=this.length-1;G>=0;G--)this.words[G+k]=this.words[G];for(G=0;G=0);var A;v?A=(v-v%26)/26:A=0;var G=b%26,Y=Math.min((b-G)/26,this.length),S=67108863^67108863>>>G<Y)for(this.length-=Y,y=0;y=0&&(R!==0||y>=A);y--){var K=this.words[y]|0;this.words[y]=R<<26-G|K>>>G,R=K&S}return M&&R!==0&&(M.words[M.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(b,v,k){return n(this.negative===0),this.iushrn(b,v,k)},o.prototype.shln=function(b){return this.clone().ishln(b)},o.prototype.ushln=function(b){return this.clone().iushln(b)},o.prototype.shrn=function(b){return this.clone().ishrn(b)},o.prototype.ushrn=function(b){return this.clone().iushrn(b)},o.prototype.testn=function(b){n(typeof b=="number"&&b>=0);var v=b%26,k=(b-v)/26,A=1<=0);var v=b%26,k=(b-v)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(v!==0&&k++,this.length=Math.min(k,this.length),v!==0){var A=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},o.prototype.isubn=function(b){if(n(typeof b=="number"),n(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(M/67108864|0),this.words[G+k]=Y&67108863}for(;G>26,this.words[G+k]=Y&67108863;if(S===0)return this.strip();for(n(S===-1),S=0,G=0;G>26,this.words[G]=Y&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(b,v){var k=this.length-b.length,A=this.clone(),G=b,Y=G.words[G.length-1]|0,S=this._countBits(Y);k=26-S,k!==0&&(G=G.ushln(k),A.iushln(k),Y=G.words[G.length-1]|0);var M=A.length-G.length,y;if(v!=="mod"){y=new o(null),y.length=M+1,y.words=new Array(y.length);for(var R=0;R=0;ue--){var ve=(A.words[G.length+ue]|0)*67108864+(A.words[G.length+ue-1]|0);for(ve=Math.min(ve/Y|0,67108863),A._ishlnsubmul(G,ve,ue);A.negative!==0;)ve--,A.negative=0,A._ishlnsubmul(G,1,ue),A.isZero()||(A.negative^=1);y&&(y.words[ue]=ve)}return y&&y.strip(),A.strip(),v!=="div"&&k!==0&&A.iushrn(k),{div:y||null,mod:A}},o.prototype.divmod=function(b,v,k){if(n(!b.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var A,G,Y;return this.negative!==0&&b.negative===0?(Y=this.neg().divmod(b,v),v!=="mod"&&(A=Y.div.neg()),v!=="div"&&(G=Y.mod.neg(),k&&G.negative!==0&&G.iadd(b)),{div:A,mod:G}):this.negative===0&&b.negative!==0?(Y=this.divmod(b.neg(),v),v!=="mod"&&(A=Y.div.neg()),{div:A,mod:Y.mod}):this.negative&b.negative?(Y=this.neg().divmod(b.neg(),v),v!=="div"&&(G=Y.mod.neg(),k&&G.negative!==0&&G.isub(b)),{div:Y.div,mod:G}):b.length>this.length||this.cmp(b)<0?{div:new o(0),mod:this}:b.length===1?v==="div"?{div:this.divn(b.words[0]),mod:null}:v==="mod"?{div:null,mod:new o(this.modn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new o(this.modn(b.words[0]))}:this._wordDiv(b,v)},o.prototype.div=function(b){return this.divmod(b,"div",!1).div},o.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},o.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},o.prototype.divRound=function(b){var v=this.divmod(b);if(v.mod.isZero())return v.div;var k=v.div.negative!==0?v.mod.isub(b):v.mod,A=b.ushrn(1),G=b.andln(1),Y=k.cmp(A);return Y<0||G===1&&Y===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},o.prototype.modn=function(b){n(b<=67108863);for(var v=(1<<26)%b,k=0,A=this.length-1;A>=0;A--)k=(v*k+(this.words[A]|0))%b;return k},o.prototype.idivn=function(b){n(b<=67108863);for(var v=0,k=this.length-1;k>=0;k--){var A=(this.words[k]|0)+v*67108864;this.words[k]=A/b|0,v=A%b}return this.strip()},o.prototype.divn=function(b){return this.clone().idivn(b)},o.prototype.egcd=function(b){n(b.negative===0),n(!b.isZero());var v=this,k=b.clone();v.negative!==0?v=v.umod(b):v=v.clone();for(var A=new o(1),G=new o(0),Y=new o(0),S=new o(1),M=0;v.isEven()&&k.isEven();)v.iushrn(1),k.iushrn(1),++M;for(var y=k.clone(),R=v.clone();!v.isZero();){for(var K=0,ue=1;!(v.words[0]&ue)&&K<26;++K,ue<<=1);if(K>0)for(v.iushrn(K);K-- >0;)(A.isOdd()||G.isOdd())&&(A.iadd(y),G.isub(R)),A.iushrn(1),G.iushrn(1);for(var ve=0,Ge=1;!(k.words[0]&Ge)&&ve<26;++ve,Ge<<=1);if(ve>0)for(k.iushrn(ve);ve-- >0;)(Y.isOdd()||S.isOdd())&&(Y.iadd(y),S.isub(R)),Y.iushrn(1),S.iushrn(1);v.cmp(k)>=0?(v.isub(k),A.isub(Y),G.isub(S)):(k.isub(v),Y.isub(A),S.isub(G))}return{a:Y,b:S,gcd:k.iushln(M)}},o.prototype._invmp=function(b){n(b.negative===0),n(!b.isZero());var v=this,k=b.clone();v.negative!==0?v=v.umod(b):v=v.clone();for(var A=new o(1),G=new o(0),Y=k.clone();v.cmpn(1)>0&&k.cmpn(1)>0;){for(var S=0,M=1;!(v.words[0]&M)&&S<26;++S,M<<=1);if(S>0)for(v.iushrn(S);S-- >0;)A.isOdd()&&A.iadd(Y),A.iushrn(1);for(var y=0,R=1;!(k.words[0]&R)&&y<26;++y,R<<=1);if(y>0)for(k.iushrn(y);y-- >0;)G.isOdd()&&G.iadd(Y),G.iushrn(1);v.cmp(k)>=0?(v.isub(k),A.isub(G)):(k.isub(v),G.isub(A))}var K;return v.cmpn(1)===0?K=A:K=G,K.cmpn(0)<0&&K.iadd(b),K},o.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var v=this.clone(),k=b.clone();v.negative=0,k.negative=0;for(var A=0;v.isEven()&&k.isEven();A++)v.iushrn(1),k.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;k.isEven();)k.iushrn(1);var G=v.cmp(k);if(G<0){var Y=v;v=k,k=Y}else if(G===0||k.cmpn(1)===0)break;v.isub(k)}while(!0);return k.iushln(A)},o.prototype.invm=function(b){return this.egcd(b).a.umod(b)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(b){return this.words[0]&b},o.prototype.bincn=function(b){n(typeof b=="number");var v=b%26,k=(b-v)/26,A=1<>>26,S&=67108863,this.words[Y]=S}return G!==0&&(this.words[Y]=G,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(b){var v=b<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var k;if(this.length>1)k=1;else{v&&(b=-b),n(b<=67108863,"Number is too big");var A=this.words[0]|0;k=A===b?0:Ab.length)return 1;if(this.length=0;k--){var A=this.words[k]|0,G=b.words[k]|0;if(A!==G){AG&&(v=1);break}}return v},o.prototype.gtn=function(b){return this.cmpn(b)===1},o.prototype.gt=function(b){return this.cmp(b)===1},o.prototype.gten=function(b){return this.cmpn(b)>=0},o.prototype.gte=function(b){return this.cmp(b)>=0},o.prototype.ltn=function(b){return this.cmpn(b)===-1},o.prototype.lt=function(b){return this.cmp(b)===-1},o.prototype.lten=function(b){return this.cmpn(b)<=0},o.prototype.lte=function(b){return this.cmp(b)<=0},o.prototype.eqn=function(b){return this.cmpn(b)===0},o.prototype.eq=function(b){return this.cmp(b)===0},o.red=function(b){return new j(b)},o.prototype.toRed=function(b){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(b){return this.red=b,this},o.prototype.forceRed=function(b){return n(!this.red,"Already a number in reduction context"),this._forceRed(b)},o.prototype.redAdd=function(b){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},o.prototype.redIAdd=function(b){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},o.prototype.redSub=function(b){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},o.prototype.redISub=function(b){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},o.prototype.redShl=function(b){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},o.prototype.redMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},o.prototype.redIMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(b){return n(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var C={k256:null,p224:null,p192:null,p25519:null};function N(x,b){this.name=x,this.p=new o(b,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var b=new o(null);return b.words=new Array(Math.ceil(this.n/13)),b},N.prototype.ireduce=function(b){var v=b,k;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),k=v.bitLength();while(k>this.n);var A=k0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},N.prototype.split=function(b,v){b.iushrn(this.n,0,v)},N.prototype.imulK=function(b){return b.imul(this.k)};function V(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(V,N),V.prototype.split=function(b,v){for(var k=4194303,A=Math.min(b.length,9),G=0;G>>22,Y=S}Y>>>=22,b.words[G-10]=Y,Y===0&&b.length>10?b.length-=10:b.length-=9},V.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var v=0,k=0;k>>=26,b.words[k]=G,v=A}return v!==0&&(b.words[b.length++]=v),b},o._prime=function(b){if(C[b])return C[b];var v;if(b==="k256")v=new V;else if(b==="p224")v=new z;else if(b==="p192")v=new L;else if(b==="p25519")v=new P;else throw new Error("Unknown prime "+b);return C[b]=v,v};function j(x){if(typeof x=="string"){var b=o._prime(x);this.m=b.p,this.prime=b}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}j.prototype._verify1=function(b){n(b.negative===0,"red works only with positives"),n(b.red,"red works only with red numbers")},j.prototype._verify2=function(b,v){n((b.negative|v.negative)===0,"red works only with positives"),n(b.red&&b.red===v.red,"red works only with red numbers")},j.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):b.umod(this.m)._forceRed(this)},j.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},j.prototype.add=function(b,v){this._verify2(b,v);var k=b.add(v);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},j.prototype.iadd=function(b,v){this._verify2(b,v);var k=b.iadd(v);return k.cmp(this.m)>=0&&k.isub(this.m),k},j.prototype.sub=function(b,v){this._verify2(b,v);var k=b.sub(v);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},j.prototype.isub=function(b,v){this._verify2(b,v);var k=b.isub(v);return k.cmpn(0)<0&&k.iadd(this.m),k},j.prototype.shl=function(b,v){return this._verify1(b),this.imod(b.ushln(v))},j.prototype.imul=function(b,v){return this._verify2(b,v),this.imod(b.imul(v))},j.prototype.mul=function(b,v){return this._verify2(b,v),this.imod(b.mul(v))},j.prototype.isqr=function(b){return this.imul(b,b.clone())},j.prototype.sqr=function(b){return this.mul(b,b)},j.prototype.sqrt=function(b){if(b.isZero())return b.clone();var v=this.m.andln(3);if(n(v%2===1),v===3){var k=this.m.add(new o(1)).iushrn(2);return this.pow(b,k)}for(var A=this.m.subn(1),G=0;!A.isZero()&&A.andln(1)===0;)G++,A.iushrn(1);n(!A.isZero());var Y=new o(1).toRed(this),S=Y.redNeg(),M=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new o(2*y*y).toRed(this);this.pow(y,M).cmp(S)!==0;)y.redIAdd(S);for(var R=this.pow(y,A),K=this.pow(b,A.addn(1).iushrn(1)),ue=this.pow(b,A),ve=G;ue.cmp(Y)!==0;){for(var Ge=ue,Me=0;Ge.cmp(Y)!==0;Me++)Ge=Ge.redSqr();n(Me=0;G--){for(var R=v.words[G],K=y-1;K>=0;K--){var ue=R>>K&1;if(Y!==A[0]&&(Y=this.sqr(Y)),ue===0&&S===0){M=0;continue}S<<=1,S|=ue,M++,!(M!==k&&(G!==0||K!==0))&&(Y=this.mul(Y,A[S]),M=0,S=0)}y=26}return Y},j.prototype.convertTo=function(b){var v=b.umod(this.m);return v===b?v.clone():v},j.prototype.convertFrom=function(b){var v=b.clone();return v.red=null,v},o.mont=function(b){return new H(b)};function H(x){j.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(H,j),H.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},H.prototype.convertFrom=function(b){var v=this.imod(b.mul(this.rinv));return v.red=null,v},H.prototype.imul=function(b,v){if(b.isZero()||v.isZero())return b.words[0]=0,b.length=1,b;var k=b.imul(v),A=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=k.isub(A).iushrn(this.shift),Y=G;return G.cmp(this.m)>=0?Y=G.isub(this.m):G.cmpn(0)<0&&(Y=G.iadd(this.m)),Y._forceRed(this)},H.prototype.mul=function(b,v){if(b.isZero()||v.isZero())return new o(0)._forceRed(this);var k=b.mul(v),A=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=k.isub(A).iushrn(this.shift),Y=G;return G.cmp(this.m)>=0?Y=G.isub(this.m):G.cmpn(0)<0&&(Y=G.iadd(this.m)),Y._forceRed(this)},H.prototype.invm=function(b){var v=this.imod(b._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(t,Ue)})(Ym);var yo=Ym.exports;const or=Nm(yo);var Ng={};const iS="elliptic",oS="6.5.5",aS="EC cryptography",sS="lib/elliptic.js",lS=["lib"],cS={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},uS={type:"git",url:"git@github.com:indutny/elliptic"},fS=["EC","Elliptic","curve","Cryptography"],dS="Fedor Indutny ",hS="MIT",pS={url:"https://github.com/indutny/elliptic/issues"},gS="https://github.com/indutny/elliptic",bS={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},mS={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},yS={name:iS,version:oS,description:aS,main:sS,files:lS,scripts:cS,repository:uS,keywords:fS,author:dS,license:hS,bugs:pS,homepage:gS,devDependencies:bS,dependencies:mS};var Jn={},Mm={};(function(t){var e=t;function r(o,a){if(Array.isArray(o))return o.slice();if(!o)return[];var s=[];if(typeof o!="string"){for(var l=0;l>8,f=c&255;u?s.push(u,f):s.push(f)}return s}e.toArray=r;function n(o){return o.length===1?"0"+o:o}e.zero2=n;function i(o){for(var a="",s=0;s(_>>1)-1?B=(_>>1)-W:B=W,I.isubn(B)):B=0,g[m]=B,I.iushrn(1)}return g}e.getNAF=o;function a(u,f){var h=[[],[]];u=u.clone(),f=f.clone();for(var g=0,m=0,_;u.cmpn(-g)>0||f.cmpn(-m)>0;){var I=u.andln(3)+g&3,B=f.andln(3)+m&3;I===3&&(I=-1),B===3&&(B=-1);var W;I&1?(_=u.andln(7)+g&7,(_===3||_===5)&&B===2?W=-I:W=I):W=0,h[0].push(W);var C;B&1?(_=f.andln(7)+m&7,(_===3||_===5)&&I===2?C=-B:C=B):C=0,h[1].push(C),2*g===W+1&&(g=1-g),2*m===C+1&&(m=1-m),u.iushrn(1),f.iushrn(1)}return h}e.getJSF=a;function s(u,f,h){var g="_"+f;u.prototype[f]=function(){return this[g]!==void 0?this[g]:this[g]=h.call(this)}}e.cachedProperty=s;function l(u){return typeof u=="string"?e.toArray(u,"hex"):u}e.parseBytes=l;function c(u){return new r(u,"hex","le")}e.intFromLE=c})(Jn);var Om={},ws=yo,_d=Jn,e0=_d.getNAF,vS=_d.getJSF,t0=_d.assert;function hs(t,e){this.type=t,this.p=new ws(e.p,16),this.red=e.prime?ws.red(e.prime):ws.mont(this.p),this.zero=new ws(0).toRed(this.red),this.one=new ws(1).toRed(this.red),this.two=new ws(2).toRed(this.red),this.n=e.n&&new ws(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var D0=hs;hs.prototype.point=function(){throw new Error("Not implemented")};hs.prototype.validate=function(){throw new Error("Not implemented")};hs.prototype._fixedNafMul=function(e,r){t0(e.precomputed);var n=e._getDoubles(),i=e0(r,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=o;h>0;h--){for(s=0;s=0;l--){for(var c=0;l>=0&&a[l]===0;l--)c++;if(l>=0&&c++,s=s.dblp(c),l<0)break;var u=a[l];t0(u!==0),e.type==="affine"?u>0?s=s.mixedAdd(o[u-1>>1]):s=s.mixedAdd(o[-u-1>>1].neg()):u>0?s=s.add(o[u-1>>1]):s=s.add(o[-u-1>>1].neg())}return e.type==="affine"?s.toP():s};hs.prototype._wnafMulAdd=function(e,r,n,i,o){var a=this._wnafT1,s=this._wnafT2,l=this._wnafT3,c=0,u,f,h;for(u=0;u=1;u-=2){var m=u-1,_=u;if(a[m]!==1||a[_]!==1){l[m]=e0(n[m],a[m],this._bitLength),l[_]=e0(n[_],a[_],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[_].length,c);continue}var I=[r[m],null,null,r[_]];r[m].y.cmp(r[_].y)===0?(I[1]=r[m].add(r[_]),I[2]=r[m].toJ().mixedAdd(r[_].neg())):r[m].y.cmp(r[_].y.redNeg())===0?(I[1]=r[m].toJ().mixedAdd(r[_]),I[2]=r[m].add(r[_].neg())):(I[1]=r[m].toJ().mixedAdd(r[_]),I[2]=r[m].toJ().mixedAdd(r[_].neg()));var B=[-3,-1,-5,-7,0,7,5,1,3],W=vS(n[m],n[_]);for(c=Math.max(W[0].length,c),l[m]=new Array(c),l[_]=new Array(c),f=0;f=0;u--){for(var L=0;u>=0;){var P=!0;for(f=0;f=0&&L++,V=V.dblp(L),u<0)break;for(f=0;f0?h=s[f][j-1>>1]:j<0&&(h=s[f][-j-1>>1].neg()),h.type==="affine"?V=V.mixedAdd(h):V=V.add(h))}}for(u=0;u=Math.ceil((e.bitLength()+1)/r.step):!1};bi.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o=0&&(g=c,m=u),f.negative&&(f=f.neg(),h=h.neg()),g.negative&&(g=g.neg(),m=m.neg()),[{a:f,b:h},{a:g,b:m}]};mi.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),s=o.mul(n.a),l=a.mul(i.a),c=o.mul(n.b),u=a.mul(i.b),f=e.sub(s).sub(l),h=c.add(u).neg();return{k1:f,k2:h}};mi.prototype.pointFromX=function(e,r){e=new pr(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(e,i)};mi.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};mi.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""};Fr.prototype.isInfinity=function(){return this.inf};Fr.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Fr.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)};Fr.prototype.getX=function(){return this.x.fromRed()};Fr.prototype.getY=function(){return this.y.fromRed()};Fr.prototype.mul=function(e){return e=new pr(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Fr.prototype.mulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};Fr.prototype.jmulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};Fr.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Fr.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Fr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Ur(t,e,r,n){lu.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new pr(0)):(this.x=new pr(e,16),this.y=new pr(r,16),this.z=new pr(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Vm(Ur,lu.BasePoint);mi.prototype.jpoint=function(e,r,n){return new Ur(this,e,r,n)};Ur.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Ur.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ur.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=e.x.redMul(n),a=this.y.redMul(r.redMul(e.z)),s=e.y.redMul(n.redMul(this.z)),l=i.redSub(o),c=a.redSub(s);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),f=u.redMul(l),h=i.redMul(u),g=c.redSqr().redIAdd(f).redISub(h).redISub(h),m=c.redMul(h.redISub(g)).redISub(a.redMul(f)),_=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(g,m,_)};Ur.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),o=this.y,a=e.y.redMul(r).redMul(this.z),s=n.redSub(i),l=o.redSub(a);if(s.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(f).redISub(f),g=l.redMul(f.redISub(h)).redISub(o.redMul(u)),m=this.z.redMul(s);return this.curve.jpoint(h,g,m)};Ur.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};Ur.prototype.inspect=function(){return this.isInfinity()?"":""};Ur.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Ll=yo,f6=T0,J0=D0,kS=Jn;function cu(t){J0.call(this,"mont",t),this.a=new Ll(t.a,16).toRed(this.red),this.b=new Ll(t.b,16).toRed(this.red),this.i4=new Ll(4).toRed(this.red).redInvm(),this.two=new Ll(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}f6(cu,J0);var ZS=cu;cu.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),o=i.redSqrt();return o.redSqr().cmp(i)===0};function jr(t,e,r){J0.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Ll(e,16),this.z=new Ll(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f6(jr,J0.BasePoint);cu.prototype.decodePoint=function(e,r){return this.point(kS.toArray(e,r),1)};cu.prototype.point=function(e,r){return new jr(this,e,r)};cu.prototype.pointFromJSON=function(e){return jr.fromJSON(this,e)};jr.prototype.precompute=function(){};jr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};jr.fromJSON=function(e,r){return new jr(e,r[0],r[1]||e.one)};jr.prototype.inspect=function(){return this.isInfinity()?"":""};jr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};jr.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),o=r.redSub(i),a=r.redMul(i),s=o.redMul(i.redAdd(this.curve.a24.redMul(o)));return this.curve.point(a,s)};jr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=e.x.redAdd(e.z),a=e.x.redSub(e.z),s=a.redMul(n),l=o.redMul(i),c=r.z.redMul(s.redAdd(l).redSqr()),u=r.x.redMul(s.redISub(l).redSqr());return this.curve.point(c,u)};jr.prototype.mul=function(e){for(var r=e.clone(),n=this,i=this.curve.point(null,null),o=this,a=[];r.cmpn(0)!==0;r.iushrn(1))a.push(r.andln(1));for(var s=a.length-1;s>=0;s--)a[s]===0?(n=n.diffAdd(i,o),i=i.dbl()):(i=n.diffAdd(i,o),n=n.dbl());return i};jr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};jr.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};jr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};jr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var AS=Jn,Wo=yo,d6=T0,P0=D0,CS=AS.assert;function vo(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,P0.call(this,"edwards",t),this.a=new Wo(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Wo(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Wo(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),CS(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}d6(vo,P0);var BS=vo;vo.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};vo.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};vo.prototype.jpoint=function(e,r,n,i){return this.point(e,r,n,i)};vo.prototype.pointFromX=function(e,r){e=new Wo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=i.redMul(o.redInvm()),s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var l=s.fromRed().isOdd();return(r&&!l||!r&&l)&&(s=s.redNeg()),this.point(e,s)};vo.prototype.pointFromY=function(e,r){e=new Wo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(o.redInvm());if(a.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(s.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");return s.fromRed().isOdd()!==r&&(s=s.redNeg()),this.point(s,e)};vo.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),i=r.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(o)===0};function Ht(t,e,r,n,i){P0.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Wo(e,16),this.y=new Wo(r,16),this.z=n?new Wo(n,16):this.curve.one,this.t=i&&new Wo(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}d6(Ht,P0.BasePoint);vo.prototype.pointFromJSON=function(e){return Ht.fromJSON(this,e)};vo.prototype.point=function(e,r,n,i){return new Ht(this,e,r,n,i)};Ht.fromJSON=function(e,r){return new Ht(e,r[0],r[1],r[2])};Ht.prototype.inspect=function(){return this.isInfinity()?"":""};Ht.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ht.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),a=i.redAdd(r),s=a.redSub(n),l=i.redSub(r),c=o.redMul(s),u=a.redMul(l),f=o.redMul(l),h=s.redMul(a);return this.curve.point(c,u,h,f)};Ht.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,o,a,s,l,c;if(this.curve.twisted){s=this.curve._mulA(r);var u=s.redAdd(n);this.zOne?(i=e.redSub(r).redSub(n).redMul(u.redSub(this.curve.two)),o=u.redMul(s.redSub(n)),a=u.redSqr().redSub(u).redSub(u)):(l=this.z.redSqr(),c=u.redSub(l).redISub(l),i=e.redSub(r).redISub(n).redMul(c),o=u.redMul(s.redSub(n)),a=u.redMul(c))}else s=r.redAdd(n),l=this.curve._mulC(this.z).redSqr(),c=s.redSub(l).redSub(l),i=this.curve._mulC(e.redISub(s)).redMul(c),o=this.curve._mulC(s).redMul(r.redISub(n)),a=s.redMul(c);return this.curve.point(i,o,a)};Ht.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ht.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(r),s=o.redSub(i),l=o.redAdd(i),c=n.redAdd(r),u=a.redMul(s),f=l.redMul(c),h=a.redMul(c),g=s.redMul(l);return this.curve.point(u,f,g,h)};Ht.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(i).redMul(o),s=n.redSub(a),l=n.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),u=r.redMul(s).redMul(c),f,h;return this.curve.twisted?(f=r.redMul(l).redMul(o.redSub(this.curve._mulA(i))),h=s.redMul(l)):(f=r.redMul(l).redMul(o.redSub(i)),h=this.curve._mulC(s).redMul(l)),this.curve.point(u,f,h)};Ht.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};Ht.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};Ht.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};Ht.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};Ht.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};Ht.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ht.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ht.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ht.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Ht.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Ht.prototype.toP=Ht.prototype.normalize;Ht.prototype.mixedAdd=Ht.prototype.add;(function(t){var e=t;e.base=D0,e.short=IS,e.mont=ZS,e.edwards=BS})(Om);var q0={},o1,Av;function WS(){return Av||(Av=1,o1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),o1}(function(t){var e=t,r=Ki,n=Om,i=Jn,o=i.assert;function a(c){c.type==="short"?this.curve=new n.short(c):c.type==="edwards"?this.curve=new n.edwards(c):this.curve=new n.mont(c),this.g=this.curve.g,this.n=this.curve.n,this.hash=c.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=a;function s(c,u){Object.defineProperty(e,c,{configurable:!0,enumerable:!0,get:function(){var f=new a(u);return Object.defineProperty(e,c,{configurable:!0,enumerable:!0,value:f}),f}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var l;try{l=WS()}catch{l=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",l]})})(q0);var SS=Ki,Js=Mm,h6=kl;function Pa(t){if(!(this instanceof Pa))return new Pa(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Js.toArray(t.entropy,t.entropyEnc||"hex"),r=Js.toArray(t.nonce,t.nonceEnc||"hex"),n=Js.toArray(t.pers,t.persEnc||"hex");h6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var RS=Pa;Pa.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Pa.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Js.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length"};var r0=yo,Em=Jn,YS=Em.assert;function $0(t,e){if(t instanceof $0)return t;this._importDER(t,e)||(YS(t.r&&t.s,"Signature without r or s"),this.r=new r0(t.r,16),this.s=new r0(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var MS=$0;function OS(){this.place=0}function a1(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return i<=127?!1:(e.place=a,i)}function Cv(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}$0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Cv(r),n=Cv(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];s1(i,r.length),i=i.concat(r),i.push(2),s1(i,n.length);var o=i.concat(n),a=[48];return s1(a,o.length),a=a.concat(o),Em.encode(a,e)};var Ps=yo,p6=RS,VS=Jn,l1=q0,ES=Gm,g6=VS.assert,jm=GS,U0=MS;function ui(t){if(!(this instanceof ui))return new ui(t);typeof t=="string"&&(g6(Object.prototype.hasOwnProperty.call(l1,t),"Unknown curve "+t),t=l1[t]),t instanceof l1.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var jS=ui;ui.prototype.keyPair=function(e){return new jm(this,e)};ui.prototype.keyFromPrivate=function(e,r){return jm.fromPrivate(this,e,r)};ui.prototype.keyFromPublic=function(e,r){return jm.fromPublic(this,e,r)};ui.prototype.genKeyPair=function(e){e||(e={});for(var r=new p6({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ES(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Ps(2));;){var o=new Ps(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};ui.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};ui.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Ps(e,16));for(var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),s=e.toArray("be",o),l=new p6({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Ps(1)),u=0;;u++){var f=i.k?i.k(u):new Ps(l.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(c)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var g=h.getX(),m=g.umod(this.n);if(m.cmpn(0)!==0){var _=f.invm(this.n).mul(m.mul(r.getPrivate()).iadd(e));if(_=_.umod(this.n),_.cmpn(0)!==0){var I=(h.getY().isOdd()?1:0)|(g.cmp(m)!==0?2:0);return i.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),I^=1),new U0({r:m,s:_,recoveryParam:I})}}}}}};ui.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Ps(e,16)),n=this.keyFromPublic(n,i),r=new U0(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n),u;return this.curve._maxwellTrick?(u=this.g.jmulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.eqXToP(o)):(u=this.g.mulAdd(l,n.getPublic(),c),u.isInfinity()?!1:u.getX().umod(this.n).cmp(o)===0)};ui.prototype.recoverPubKey=function(t,e,r,n){g6((3&r)===r,"The recovery param is more than two bits"),e=new U0(e,n);var i=this.n,o=new Ps(t),a=e.r,s=e.s,l=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),l):a=this.curve.pointFromX(a,l);var u=e.r.invm(i),f=i.sub(o).mul(u).umod(i),h=s.mul(u).umod(i);return this.g.mulAdd(f,a,h)};ui.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new U0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Id=Jn,b6=Id.assert,Bv=Id.parseBytes,uu=Id.cachedProperty;function Er(t,e){this.eddsa=t,this._secret=Bv(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Bv(e.pub)}Er.fromPublic=function(e,r){return r instanceof Er?r:new Er(e,{pub:r})};Er.fromSecret=function(e,r){return r instanceof Er?r:new Er(e,{secret:r})};Er.prototype.secret=function(){return this._secret};uu(Er,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});uu(Er,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});uu(Er,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});uu(Er,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});uu(Er,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});uu(Er,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Er.prototype.sign=function(e){return b6(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Er.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Er.prototype.getSecret=function(e){return b6(this._secret,"KeyPair is public only"),Id.encode(this.secret(),e)};Er.prototype.getPublic=function(e){return Id.encode(this.pubBytes(),e)};var zS=Er,XS=yo,Q0=Jn,LS=Q0.assert,K0=Q0.cachedProperty,FS=Q0.parseBytes;function Zl(t,e){this.eddsa=t,typeof e!="object"&&(e=FS(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),LS(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof XS&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}K0(Zl,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});K0(Zl,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});K0(Zl,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});K0(Zl,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Zl.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Zl.prototype.toHex=function(){return Q0.encode(this.toBytes(),"hex").toUpperCase()};var TS=Zl,HS=Ki,DS=q0,Wc=Jn,JS=Wc.assert,m6=Wc.parseBytes,y6=zS,Wv=TS;function Nn(t){if(JS(t==="ed25519","only tested with ed25519 so far"),!(this instanceof Nn))return new Nn(t);t=DS[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=HS.sha512}var PS=Nn;Nn.prototype.sign=function(e,r){e=m6(e);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),e),o=this.g.mul(i),a=this.encodePoint(o),s=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),l=i.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:a})};Nn.prototype.verify=function(e,r,n){e=m6(e),r=this.makeSignature(r);var i=this.keyFromPublic(n),o=this.hashInt(r.Rencoded(),i.pubBytes(),e),a=this.g.mul(r.S()),s=r.R().add(i.pub().mul(o));return s.eq(a)};Nn.prototype.hashInt=function(){for(var e=this.hash(),r=0;r=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const qS=4,Sv=0,Rv=1,$S=2;function fu(t){let e=t.length;for(;--e>=0;)t[e]=0}const US=0,v6=1,QS=2,KS=3,eR=258,zm=29,kd=256,Wf=kd+1+zm,ec=30,Xm=19,w6=2*Wf+1,xs=15,c1=16,tR=7,Lm=256,_6=16,I6=17,k6=18,Gg=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Rh=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rR=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Z6=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nR=512,Ao=new Array((Wf+2)*2);fu(Ao);const af=new Array(ec*2);fu(af);const Sf=new Array(nR);fu(Sf);const Rf=new Array(eR-KS+1);fu(Rf);const Fm=new Array(zm);fu(Fm);const n0=new Array(ec);fu(n0);function u1(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let A6,C6,B6;function f1(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const W6=t=>t<256?Sf[t]:Sf[256+(t>>>7)],Nf=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},Cn=(t,e,r)=>{t.bi_valid>c1-r?(t.bi_buf|=e<>c1-t.bi_valid,t.bi_valid+=r-c1):(t.bi_buf|=e<{Cn(t,r[e*2],r[e*2+1])},S6=(t,e)=>{let r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1},iR=t=>{t.bi_valid===16?(Nf(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},oR=(t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,l=e.stat_desc.max_length;let c,u,f,h,g,m,_=0;for(h=0;h<=xs;h++)t.bl_count[h]=0;for(r[t.heap[t.heap_max]*2+1]=0,c=t.heap_max+1;cl&&(h=l,_++),r[u*2+1]=h,!(u>n)&&(t.bl_count[h]++,g=0,u>=s&&(g=a[u-s]),m=r[u*2],t.opt_len+=m*(h+g),o&&(t.static_len+=m*(i[u*2+1]+g)));if(_!==0){do{for(h=l-1;t.bl_count[h]===0;)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[l]--,_-=2}while(_>0);for(h=l;h!==0;h--)for(u=t.bl_count[h];u!==0;)f=t.heap[--c],!(f>n)&&(r[f*2+1]!==h&&(t.opt_len+=(h-r[f*2+1])*r[f*2],r[f*2+1]=h),u--)}},R6=(t,e,r)=>{const n=new Array(xs+1);let i=0,o,a;for(o=1;o<=xs;o++)i=i+r[o-1]<<1,n[o]=i;for(a=0;a<=e;a++){let s=t[a*2+1];s!==0&&(t[a*2]=S6(n[s]++,s))}},aR=()=>{let t,e,r,n,i;const o=new Array(xs+1);for(r=0,n=0;n>=7;n{let e;for(e=0;e{t.bi_valid>8?Nf(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Nv=(t,e,r,n)=>{const i=e*2,o=r*2;return t[i]{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i{let n,i,o=0,a,s;if(t.sym_next!==0)do n=t.pending_buf[t.sym_buf+o++]&255,n+=(t.pending_buf[t.sym_buf+o++]&255)<<8,i=t.pending_buf[t.sym_buf+o++],n===0?$i(t,i,e):(a=Rf[i],$i(t,a+kd+1,e),s=Gg[a],s!==0&&(i-=Fm[a],Cn(t,i,s)),n--,a=W6(n),$i(t,a,r),s=Rh[a],s!==0&&(n-=n0[a],Cn(t,n,s)));while(o{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,l=-1,c;for(t.heap_len=0,t.heap_max=w6,a=0;a>1;a>=1;a--)d1(t,r,a);c=o;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],d1(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[c*2]=r[a*2]+r[s*2],t.depth[c]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[a*2+1]=r[s*2+1]=c,t.heap[1]=c++,d1(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],oR(t,e),R6(r,l,t.bl_count)},Gv=(t,e,r)=>{let n,i=-1,o,a=e[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=e[(n+1)*2+1],!(++s{let n,i=-1,o,a=e[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=e[(n+1)*2+1],!(++s{let e;for(Gv(t,t.dyn_ltree,t.l_desc.max_code),Gv(t,t.dyn_dtree,t.d_desc.max_code),Yg(t,t.bl_desc),e=Xm-1;e>=3&&t.bl_tree[Z6[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},lR=(t,e,r,n)=>{let i;for(Cn(t,e-257,5),Cn(t,r-1,5),Cn(t,n-4,4),i=0;i{let e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return Sv;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Rv;for(r=32;r{Mv||(aR(),Mv=!0),t.l_desc=new f1(t.dyn_ltree,A6),t.d_desc=new f1(t.dyn_dtree,C6),t.bl_desc=new f1(t.bl_tree,B6),t.bi_buf=0,t.bi_valid=0,N6(t)},G6=(t,e,r,n)=>{Cn(t,(US<<1)+(n?1:0),3),x6(t),Nf(t,r),Nf(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},fR=t=>{Cn(t,v6<<1,3),$i(t,Lm,Ao),iR(t)},dR=(t,e,r,n)=>{let i,o,a=0;t.level>0?(t.strm.data_type===$S&&(t.strm.data_type=cR(t)),Yg(t,t.l_desc),Yg(t,t.d_desc),a=sR(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&e!==-1?G6(t,e,r,n):t.strategy===qS||o===i?(Cn(t,(v6<<1)+(n?1:0),3),xv(t,Ao,af)):(Cn(t,(QS<<1)+(n?1:0),3),lR(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),xv(t,t.dyn_ltree,t.dyn_dtree)),N6(t),n&&x6(t)},hR=(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(Rf[r]+kd+1)*2]++,t.dyn_dtree[W6(e)*2]++),t.sym_next===t.sym_end);var pR=uR,gR=G6,bR=dR,mR=hR,yR=fR,vR={_tr_init:pR,_tr_stored_block:gR,_tr_flush_block:bR,_tr_tally:mR,_tr_align:yR};const wR=(t,e,r,n)=>{let i=t&65535|0,o=t>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+e[n++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};var xf=wR;const _R=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},IR=new Uint32Array(_R()),kR=(t,e,r,n)=>{const i=IR,o=n+r;t^=-1;for(let a=n;a>>8^i[(t^e[a])&255];return t^-1};var Yr=kR,Qs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Al={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:ZR,_tr_stored_block:Mg,_tr_flush_block:AR,_tr_tally:Xa,_tr_align:CR}=vR,{Z_NO_FLUSH:La,Z_PARTIAL_FLUSH:BR,Z_FULL_FLUSH:WR,Z_FINISH:ei,Z_BLOCK:Ov,Z_OK:Dr,Z_STREAM_END:Vv,Z_STREAM_ERROR:no,Z_DATA_ERROR:SR,Z_BUF_ERROR:h1,Z_DEFAULT_COMPRESSION:RR,Z_FILTERED:NR,Z_HUFFMAN_ONLY:Qd,Z_RLE:xR,Z_FIXED:GR,Z_DEFAULT_STRATEGY:YR,Z_UNKNOWN:MR,Z_DEFLATED:ep}=Al,OR=9,VR=15,ER=8,jR=29,zR=256,Og=zR+1+jR,XR=30,LR=19,FR=2*Og+1,TR=15,ht=3,Na=258,io=Na+ht+1,HR=32,Sc=42,Tm=57,Vg=69,Eg=73,jg=91,zg=103,Gs=113,Xu=666,pn=1,du=2,Ks=3,hu=4,DR=3,Ys=(t,e)=>(t.msg=Qs[e],e),Ev=t=>t*2-(t>4?9:0),ya=t=>{let e=t.length;for(;--e>=0;)t[e]=0},JR=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do r=t.head[--n],t.head[n]=r>=i?r-i:0;while(--e);e=i,n=e;do r=t.prev[--n],t.prev[n]=r>=i?r-i:0;while(--e)};let PR=(t,e,r)=>(e<{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))},Xn=(t,e)=>{AR(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,On(t.strm)},Zt=(t,e)=>{t.pending_buf[t.pending++]=e},xu=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Xg=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),i===0?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),t.state.wrap===1?t.adler=xf(t.adler,e,i,r):t.state.wrap===2&&(t.adler=Yr(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Y6=(t,e)=>{let r=t.max_chain_length,n=t.strstart,i,o,a=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-io?t.strstart-(t.w_size-io):0,c=t.window,u=t.w_mask,f=t.prev,h=t.strstart+Na;let g=c[n+a-1],m=c[n+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do if(i=e,!(c[i+a]!==m||c[i+a-1]!==g||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&na){if(t.match_start=e,a=o,o>=s)break;g=c[n+a-1],m=c[n+a]}}while((e=f[e&u])>l&&--r!==0);return a<=t.lookahead?a:t.lookahead},Rc=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-io)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),JR(t),n+=e),t.strm.avail_in===0)break;if(r=Xg(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=ht)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Fa(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Fa(t,t.ins_h,t.window[i+ht-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,i,o,a=0,s=t.strm.avail_in;do{if(n=65535,o=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(n=i+t.strm.avail_in),n>o&&(n=o),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,On(t.strm),i&&(i>n&&(i=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,n-=i),n&&(Xg(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(a===0);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_watero&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(Xg(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,r=o>t.w_size?t.w_size:o,i=t.strstart-t.block_start,(i>=r||(i||e===ei)&&e!==La&&t.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,a=e===ei&&t.strm.avail_in===0&&n===i?1:0,Mg(t,t.block_start,n,a),t.block_start+=n,On(t.strm)),a?Ks:pn)},p1=(t,e)=>{let r,n;for(;;){if(t.lookahead=ht&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-io&&(t.match_length=Y6(t,r)),t.match_length>=ht)if(n=Xa(t,t.strstart-t.match_start,t.match_length-ht),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ht){t.match_length--;do t.strstart++,t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+1]);else n=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=t.strstart{let r,n,i;for(;;){if(t.lookahead=ht&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=ht-1,r!==0&&t.prev_length4096)&&(t.match_length=ht-1)),t.prev_length>=ht&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-ht,n=Xa(t,t.strstart-1-t.prev_match,t.prev_length-ht),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=Fa(t,t.ins_h,t.window[t.strstart+ht-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=ht-1,t.strstart++,n&&(Xn(t,!1),t.strm.avail_out===0))return pn}else if(t.match_available){if(n=Xa(t,0,t.window[t.strstart-1]),n&&Xn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return pn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Xa(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=Na){if(Rc(t),t.lookahead<=Na&&e===La)return pn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=ht&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+Na;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ht?(r=Xa(t,1,t.match_length-ht),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=0,e===ei?(Xn(t,!0),t.strm.avail_out===0?Ks:hu):t.sym_next&&(Xn(t,!1),t.strm.avail_out===0)?pn:du},$R=(t,e)=>{let r;for(;;){if(t.lookahead===0&&(Rc(t),t.lookahead===0)){if(e===La)return pn;break}if(t.match_length=0,r=Xa(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Xn(t,!1),t.strm.avail_out===0))return pn}return t.insert=0,e===ei?(Xn(t,!0),t.strm.avail_out===0?Ks:hu):t.sym_next&&(Xn(t,!1),t.strm.avail_out===0)?pn:du};function ji(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Lu=[new ji(0,0,0,0,M6),new ji(4,4,8,4,p1),new ji(4,5,16,8,p1),new ji(4,6,32,32,p1),new ji(4,4,16,16,Nl),new ji(8,16,32,32,Nl),new ji(8,16,128,128,Nl),new ji(8,32,128,256,Nl),new ji(32,128,258,1024,Nl),new ji(32,258,258,4096,Nl)],UR=t=>{t.window_size=2*t.w_size,ya(t.head),t.max_lazy_match=Lu[t.level].max_lazy,t.good_match=Lu[t.level].good_length,t.nice_match=Lu[t.level].nice_length,t.max_chain_length=Lu[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ht-1,t.match_available=0,t.ins_h=0};function QR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ep,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(FR*2),this.dyn_dtree=new Uint16Array((2*XR+1)*2),this.bl_tree=new Uint16Array((2*LR+1)*2),ya(this.dyn_ltree),ya(this.dyn_dtree),ya(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(TR+1),this.heap=new Uint16Array(2*Og+1),ya(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Og+1),ya(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zd=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==Sc&&e.status!==Tm&&e.status!==Vg&&e.status!==Eg&&e.status!==jg&&e.status!==zg&&e.status!==Gs&&e.status!==Xu?1:0},O6=t=>{if(Zd(t))return Ys(t,no);t.total_in=t.total_out=0,t.data_type=MR;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Tm:e.wrap?Sc:Gs,t.adler=e.wrap===2?0:1,e.last_flush=-2,ZR(e),Dr},V6=t=>{const e=O6(t);return e===Dr&&UR(t.state),e},KR=(t,e)=>Zd(t)||t.state.wrap!==2?no:(t.state.gzhead=e,Dr),E6=(t,e,r,n,i,o)=>{if(!t)return no;let a=1;if(e===RR&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>OR||r!==ep||n<8||n>15||e<0||e>9||o<0||o>GR||n===8&&a!==1)return Ys(t,no);n===8&&(n=9);const s=new QR;return t.state=s,s.strm=t,s.status=Sc,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<E6(t,e,ep,VR,ER,YR),tN=(t,e)=>{if(Zd(t)||e>Ov||e<0)return t?Ys(t,no):no;const r=t.state;if(!t.output||t.avail_in!==0&&!t.input||r.status===Xu&&e!==ei)return Ys(t,t.avail_out===0?h1:no);const n=r.last_flush;if(r.last_flush=e,r.pending!==0){if(On(t),t.avail_out===0)return r.last_flush=-1,Dr}else if(t.avail_in===0&&Ev(e)<=Ev(n)&&e!==ei)return Ys(t,h1);if(r.status===Xu&&t.avail_in!==0)return Ys(t,h1);if(r.status===Sc&&r.wrap===0&&(r.status=Gs),r.status===Sc){let i=ep+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=Qd||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=HR),i+=31-i%31,xu(r,i),r.strstart!==0&&(xu(r,t.adler>>>16),xu(r,t.adler&65535)),t.adler=1,r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(r.status===Tm){if(t.adler=0,Zt(r,31),Zt(r,139),Zt(r,8),r.gzhead)Zt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Zt(r,r.gzhead.time&255),Zt(r,r.gzhead.time>>8&255),Zt(r,r.gzhead.time>>16&255),Zt(r,r.gzhead.time>>24&255),Zt(r,r.level===9?2:r.strategy>=Qd||r.level<2?4:0),Zt(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Zt(r,r.gzhead.extra.length&255),Zt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Yr(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Vg;else if(Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,0),Zt(r,r.level===9?2:r.strategy>=Qd||r.level<2?4:0),Zt(r,DR),r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(r.status===Vg){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=s,On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0,o-=s}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Eg}if(r.status===Eg){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0}r.gzindexi&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=jg}if(r.status===jg){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i)),On(t),r.pending!==0)return r.last_flush=-1,Dr;i=0}r.gzindexi&&(t.adler=Yr(t.adler,r.pending_buf,r.pending-i,i))}r.status=zg}if(r.status===zg){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(On(t),r.pending!==0))return r.last_flush=-1,Dr;Zt(r,t.adler&255),Zt(r,t.adler>>8&255),t.adler=0}if(r.status=Gs,On(t),r.pending!==0)return r.last_flush=-1,Dr}if(t.avail_in!==0||r.lookahead!==0||e!==La&&r.status!==Xu){let i=r.level===0?M6(r,e):r.strategy===Qd?$R(r,e):r.strategy===xR?qR(r,e):Lu[r.level].func(r,e);if((i===Ks||i===hu)&&(r.status=Xu),i===pn||i===Ks)return t.avail_out===0&&(r.last_flush=-1),Dr;if(i===du&&(e===BR?CR(r):e!==Ov&&(Mg(r,0,0,!1),e===WR&&(ya(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),On(t),t.avail_out===0))return r.last_flush=-1,Dr}return e!==ei?Dr:r.wrap<=0?Vv:(r.wrap===2?(Zt(r,t.adler&255),Zt(r,t.adler>>8&255),Zt(r,t.adler>>16&255),Zt(r,t.adler>>24&255),Zt(r,t.total_in&255),Zt(r,t.total_in>>8&255),Zt(r,t.total_in>>16&255),Zt(r,t.total_in>>24&255)):(xu(r,t.adler>>>16),xu(r,t.adler&65535)),On(t),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Dr:Vv)},rN=t=>{if(Zd(t))return no;const e=t.state.status;return t.state=null,e===Gs?Ys(t,SR):Dr},nN=(t,e)=>{let r=e.length;if(Zd(t))return no;const n=t.state,i=n.wrap;if(i===2||i===1&&n.status!==Sc||n.lookahead)return no;if(i===1&&(t.adler=xf(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){i===0&&(ya(n.head),n.strstart=0,n.block_start=0,n.insert=0);let l=new Uint8Array(n.w_size);l.set(e.subarray(r-n.w_size,r),0),e=l,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Rc(n);n.lookahead>=ht;){let l=n.strstart,c=n.lookahead-(ht-1);do n.ins_h=Fa(n,n.ins_h,n.window[l+ht-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++;while(--c);n.strstart=l,n.lookahead=ht-1,Rc(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ht-1,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,Dr};var iN=eN,oN=E6,aN=V6,sN=O6,lN=KR,cN=tN,uN=rN,fN=nN,dN="pako deflate (from Nodeca project)",sf={deflateInit:iN,deflateInit2:oN,deflateReset:aN,deflateResetKeep:sN,deflateSetHeader:lN,deflate:cN,deflateEnd:uN,deflateSetDictionary:fN,deflateInfo:dN};const hN=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var pN=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)hN(r,n)&&(t[n]=r[n])}}return t},gN=t=>{let e=0;for(let n=0,i=t.length;n=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Gf[254]=Gf[254]=1;var bN=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i>>6,e[o++]=128|r&63):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|r&63):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|r&63);return e};const mN=(t,e)=>{if(e<65534&&t.subarray&&j6)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,i;const o=new Array(r*2);for(i=0,n=0;n4){o[i++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return mN(o,i)},vN=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+Gf[t[r]]>e?r:e},Yf={string2buf:bN,buf2string:yN,utf8border:vN};function wN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var z6=wN;const X6=Object.prototype.toString,{Z_NO_FLUSH:_N,Z_SYNC_FLUSH:IN,Z_FULL_FLUSH:kN,Z_FINISH:ZN,Z_OK:i0,Z_STREAM_END:AN,Z_DEFAULT_COMPRESSION:CN,Z_DEFAULT_STRATEGY:BN,Z_DEFLATED:WN}=Al;function Ad(t){this.options=tp.assign({level:CN,method:WN,chunkSize:16384,windowBits:15,memLevel:8,strategy:BN},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z6,this.strm.avail_out=0;let r=sf.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==i0)throw new Error(Qs[r]);if(e.header&&sf.deflateSetHeader(this.strm,e.header),e.dictionary){let n;if(typeof e.dictionary=="string"?n=Yf.string2buf(e.dictionary):X6.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.dictionary,r=sf.deflateSetDictionary(this.strm,n),r!==i0)throw new Error(Qs[r]);this._dict_set=!0}}Ad.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?ZN:_N,typeof t=="string"?r.input=Yf.string2buf(t):X6.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===IN||o===kN)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=sf.deflate(r,o),i===AN)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=sf.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===i0;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Ad.prototype.onData=function(t){this.chunks.push(t)};Ad.prototype.onEnd=function(t){t===i0&&(this.result=tp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Hm(t,e){const r=new Ad(e);if(r.push(t,!0),r.err)throw r.msg||Qs[r.err];return r.result}function SN(t,e){return e=e||{},e.raw=!0,Hm(t,e)}function RN(t,e){return e=e||{},e.gzip=!0,Hm(t,e)}var NN=Ad,xN=Hm,GN=SN,YN=RN,MN=Al,ON={Deflate:NN,deflate:xN,deflateRaw:GN,gzip:YN,constants:MN};const Kd=16209,VN=16191;var EN=function(e,r){let n,i,o,a,s,l,c,u,f,h,g,m,_,I,B,W,C,N,V,z,L,P,j,H;const x=e.state;n=e.next_in,j=e.input,i=n+(e.avail_in-5),o=e.next_out,H=e.output,a=o-(r-e.avail_out),s=o+(e.avail_out-257),l=x.dmax,c=x.wsize,u=x.whave,f=x.wnext,h=x.window,g=x.hold,m=x.bits,_=x.lencode,I=x.distcode,B=(1<>>24,g>>>=N,m-=N,N=C>>>16&255,N===0)H[o++]=C&65535;else if(N&16){V=C&65535,N&=15,N&&(m>>=N,m-=N),m<15&&(g+=j[n++]<>>24,g>>>=N,m-=N,N=C>>>16&255,N&16){if(z=C&65535,N&=15,ml){e.msg="invalid distance too far back",x.mode=Kd;break e}if(g>>>=N,m-=N,N=o-a,z>N){if(N=z-N,N>u&&x.sane){e.msg="invalid distance too far back",x.mode=Kd;break e}if(L=0,P=h,f===0){if(L+=c-N,N2;)H[o++]=P[L++],H[o++]=P[L++],H[o++]=P[L++],V-=3;V&&(H[o++]=P[L++],V>1&&(H[o++]=P[L++]))}else{L=o-z;do H[o++]=H[L++],H[o++]=H[L++],H[o++]=H[L++],V-=3;while(V>2);V&&(H[o++]=H[L++],V>1&&(H[o++]=H[L++]))}}else if(N&64){e.msg="invalid distance code",x.mode=Kd;break e}else{C=I[(C&65535)+(g&(1<>3,n-=V,m-=V<<3,g&=(1<{const l=s.bits;let c=0,u=0,f=0,h=0,g=0,m=0,_=0,I=0,B=0,W=0,C,N,V,z,L,P=null,j;const H=new Uint16Array(xl+1),x=new Uint16Array(xl+1);let b=null,v,k,A;for(c=0;c<=xl;c++)H[c]=0;for(u=0;u=1&&H[h]===0;h--);if(g>h&&(g=h),h===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(t===Xv||h!==1))return-1;for(x[1]=0,c=1;cjv||t===Lv&&B>zv)return 1;for(;;){v=c-_,a[u]+1=j?(k=b[a[u]-j],A=P[a[u]-j]):(k=96,A=0),C=1<>_)+N]=v<<24|k<<16|A|0;while(N!==0);for(C=1<>=1;if(C!==0?(W&=C-1,W+=C):W=0,u++,--H[c]===0){if(c===h)break;c=e[r+a[u]]}if(c>g&&(W&z)!==V){for(_===0&&(_=g),L+=f,m=c-_,I=1<jv||t===Lv&&B>zv)return 1;V=W&z,i[V]=g<<24|m<<16|L-o|0}}return W!==0&&(i[L+W]=c-_<<24|64<<16|0),s.bits=g,0};var lf=FN;const TN=0,L6=1,F6=2,{Z_FINISH:Fv,Z_BLOCK:HN,Z_TREES:eh,Z_OK:el,Z_STREAM_END:DN,Z_NEED_DICT:JN,Z_STREAM_ERROR:fi,Z_DATA_ERROR:T6,Z_MEM_ERROR:H6,Z_BUF_ERROR:PN,Z_DEFLATED:Tv}=Al,rp=16180,Hv=16181,Dv=16182,Jv=16183,Pv=16184,qv=16185,$v=16186,Uv=16187,Qv=16188,Kv=16189,o0=16190,Io=16191,b1=16192,e3=16193,m1=16194,t3=16195,r3=16196,n3=16197,i3=16198,th=16199,rh=16200,o3=16201,a3=16202,s3=16203,l3=16204,c3=16205,y1=16206,u3=16207,f3=16208,rr=16209,D6=16210,J6=16211,qN=852,$N=592,UN=15,QN=UN,d3=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function KN(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Cl=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeJ6?1:0},P6=t=>{if(Cl(t))return fi;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=rp,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(qN),e.distcode=e.distdyn=new Int32Array($N),e.sane=1,e.back=-1,el},q6=t=>{if(Cl(t))return fi;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,P6(t)},$6=(t,e)=>{let r;if(Cl(t))return fi;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?fi:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,q6(t))},U6=(t,e)=>{if(!t)return fi;const r=new KN;t.state=r,r.strm=t,r.window=null,r.mode=rp;const n=$6(t,e);return n!==el&&(t.state=null),n},ex=t=>U6(t,QN);let h3=!0,v1,w1;const tx=t=>{if(h3){v1=new Int32Array(512),w1=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(lf(L6,t.lens,0,288,v1,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;lf(F6,t.lens,0,32,w1,0,t.work,{bits:5}),h3=!1}t.lencode=v1,t.lenbits=9,t.distcode=w1,t.distbits=5},Q6=(t,e,r,n)=>{let i;const o=t.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let r,n,i,o,a,s,l,c,u,f,h,g,m,_,I=0,B,W,C,N,V,z,L,P;const j=new Uint8Array(4);let H,x;const b=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Cl(t)||!t.output||!t.input&&t.avail_in!==0)return fi;r=t.state,r.mode===Io&&(r.mode=b1),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,f=s,h=l,P=el;e:for(;;)switch(r.mode){case rp:if(r.wrap===0){r.mode=b1;break}for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>>8&255,r.check=Yr(r.check,j,2,0),c=0,u=0,r.mode=Hv;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=rr;break}if((c&15)!==Tv){t.msg="unknown compression method",r.mode=rr;break}if(c>>>=4,u-=4,L=(c&15)+8,r.wbits===0&&(r.wbits=L),L>15||L>r.wbits){t.msg="invalid window size",r.mode=rr;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0,r.mode=Dv;case Dv:for(;u<32;){if(s===0)break e;s--,c+=n[o++]<>>8&255,j[2]=c>>>16&255,j[3]=c>>>24&255,r.check=Yr(r.check,j,4,0)),c=0,u=0,r.mode=Jv;case Jv:for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>8),r.flags&512&&r.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0,r.mode=Pv;case Pv:if(r.flags&1024){for(;u<16;){if(s===0)break e;s--,c+=n[o++]<>>8&255,r.check=Yr(r.check,j,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=qv;case qv:if(r.flags&1024&&(g=r.length,g>s&&(g=s),g&&(r.head&&(L=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+g),L)),r.flags&512&&r.wrap&4&&(r.check=Yr(r.check,n,g,o)),s-=g,o+=g,r.length-=g),r.length))break e;r.length=0,r.mode=$v;case $v:if(r.flags&2048){if(s===0)break e;g=0;do L=n[o+g++],r.head&&L&&r.length<65536&&(r.head.name+=String.fromCharCode(L));while(L&&g>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Io;break;case Kv:for(;u<32;){if(s===0)break e;s--,c+=n[o++]<>>=u&7,u-=u&7,r.mode=y1;break}for(;u<3;){if(s===0)break e;s--,c+=n[o++]<>>=1,u-=1,c&3){case 0:r.mode=e3;break;case 1:if(tx(r),r.mode=th,e===eh){c>>>=2,u-=2;break e}break;case 2:r.mode=r3;break;case 3:t.msg="invalid block type",r.mode=rr}c>>>=2,u-=2;break;case e3:for(c>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,c+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=rr;break}if(r.length=c&65535,c=0,u=0,r.mode=m1,e===eh)break e;case m1:r.mode=t3;case t3:if(g=r.length,g){if(g>s&&(g=s),g>l&&(g=l),g===0)break e;i.set(n.subarray(o,o+g),a),s-=g,o+=g,l-=g,a+=g,r.length-=g;break}r.mode=Io;break;case r3:for(;u<14;){if(s===0)break e;s--,c+=n[o++]<>>=5,u-=5,r.ndist=(c&31)+1,c>>>=5,u-=5,r.ncode=(c&15)+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=rr;break}r.have=0,r.mode=n3;case n3:for(;r.have>>=3,u-=3}for(;r.have<19;)r.lens[b[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,H={bits:r.lenbits},P=lf(TN,r.lens,0,19,r.lencode,0,r.work,H),r.lenbits=H.bits,P){t.msg="invalid code lengths set",r.mode=rr;break}r.have=0,r.mode=i3;case i3:for(;r.have>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=B,u-=B,r.lens[r.have++]=C;else{if(C===16){for(x=B+2;u>>=B,u-=B,r.have===0){t.msg="invalid bit length repeat",r.mode=rr;break}L=r.lens[r.have-1],g=3+(c&3),c>>>=2,u-=2}else if(C===17){for(x=B+3;u>>=B,u-=B,L=0,g=3+(c&7),c>>>=3,u-=3}else{for(x=B+7;u>>=B,u-=B,L=0,g=11+(c&127),c>>>=7,u-=7}if(r.have+g>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=rr;break}for(;g--;)r.lens[r.have++]=L}}if(r.mode===rr)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=rr;break}if(r.lenbits=9,H={bits:r.lenbits},P=lf(L6,r.lens,0,r.nlen,r.lencode,0,r.work,H),r.lenbits=H.bits,P){t.msg="invalid literal/lengths set",r.mode=rr;break}if(r.distbits=6,r.distcode=r.distdyn,H={bits:r.distbits},P=lf(F6,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,H),r.distbits=H.bits,P){t.msg="invalid distances set",r.mode=rr;break}if(r.mode=th,e===eh)break e;case th:r.mode=rh;case rh:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,EN(t,h),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,r.mode===Io&&(r.back=-1);break}for(r.back=0;I=r.lencode[c&(1<>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>N)],B=I>>>24,W=I>>>16&255,C=I&65535,!(N+B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=N,u-=N,r.back+=N}if(c>>>=B,u-=B,r.back+=B,r.length=C,W===0){r.mode=c3;break}if(W&32){r.back=-1,r.mode=Io;break}if(W&64){t.msg="invalid literal/length code",r.mode=rr;break}r.extra=W&15,r.mode=o3;case o3:if(r.extra){for(x=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=a3;case a3:for(;I=r.distcode[c&(1<>>24,W=I>>>16&255,C=I&65535,!(B<=u);){if(s===0)break e;s--,c+=n[o++]<>N)],B=I>>>24,W=I>>>16&255,C=I&65535,!(N+B<=u);){if(s===0)break e;s--,c+=n[o++]<>>=N,u-=N,r.back+=N}if(c>>>=B,u-=B,r.back+=B,W&64){t.msg="invalid distance code",r.mode=rr;break}r.offset=C,r.extra=W&15,r.mode=s3;case s3:if(r.extra){for(x=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=rr;break}r.mode=l3;case l3:if(l===0)break e;if(g=h-l,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=rr;break}g>r.wnext?(g-=r.wnext,m=r.wsize-g):m=r.wnext-g,g>r.length&&(g=r.length),_=r.window}else _=i,m=a-r.offset,g=r.length;g>l&&(g=l),l-=g,r.length-=g;do i[a++]=_[m++];while(--g);r.length===0&&(r.mode=rh);break;case c3:if(l===0)break e;i[a++]=r.length,l--,r.mode=rh;break;case y1:if(r.wrap){for(;u<32;){if(s===0)break e;s--,c|=n[o++]<{if(Cl(t))return fi;let e=t.state;return e.window&&(e.window=null),t.state=null,el},ix=(t,e)=>{if(Cl(t))return fi;const r=t.state;return r.wrap&2?(r.head=e,e.done=!1,el):fi},ox=(t,e)=>{const r=e.length;let n,i,o;return Cl(t)||(n=t.state,n.wrap!==0&&n.mode!==o0)?fi:n.mode===o0&&(i=1,i=xf(i,e,r,0),i!==n.check)?T6:(o=Q6(t,e,r,r),o?(n.mode=D6,H6):(n.havedict=1,el))};var ax=q6,sx=$6,lx=P6,cx=ex,ux=U6,fx=rx,dx=nx,hx=ix,px=ox,gx="pako inflate (from Nodeca project)",Co={inflateReset:ax,inflateReset2:sx,inflateResetKeep:lx,inflateInit:cx,inflateInit2:ux,inflate:fx,inflateEnd:dx,inflateGetHeader:hx,inflateSetDictionary:px,inflateInfo:gx};function bx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var mx=bx;const K6=Object.prototype.toString,{Z_NO_FLUSH:yx,Z_FINISH:vx,Z_OK:Mf,Z_STREAM_END:_1,Z_NEED_DICT:I1,Z_STREAM_ERROR:wx,Z_DATA_ERROR:p3,Z_MEM_ERROR:_x}=Al;function Cd(t){this.options=tp.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z6,this.strm.avail_out=0;let r=Co.inflateInit2(this.strm,e.windowBits);if(r!==Mf)throw new Error(Qs[r]);if(this.header=new mx,Co.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Yf.string2buf(e.dictionary):K6.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Co.inflateSetDictionary(this.strm,e.dictionary),r!==Mf)))throw new Error(Qs[r])}Cd.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?vx:yx,K6.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Co.inflate(r,a),o===I1&&i&&(o=Co.inflateSetDictionary(r,i),o===Mf?o=Co.inflate(r,a):o===p3&&(o=I1));r.avail_in>0&&o===_1&&r.state.wrap>0&&t[r.next_in]!==0;)Co.inflateReset(r),o=Co.inflate(r,a);switch(o){case wx:case p3:case I1:case _x:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||o===_1))if(this.options.to==="string"){let l=Yf.utf8border(r.output,r.next_out),c=r.next_out-l,u=Yf.buf2string(r.output,l);r.next_out=c,r.avail_out=n-c,c&&r.output.set(r.output.subarray(l,l+c),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Mf&&s===0)){if(o===_1)return o=Co.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Cd.prototype.onData=function(t){this.chunks.push(t)};Cd.prototype.onEnd=function(t){t===Mf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=tp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Dm(t,e){const r=new Cd(e);if(r.push(t),r.err)throw r.msg||Qs[r.err];return r.result}function Ix(t,e){return e=e||{},e.raw=!0,Dm(t,e)}var kx=Cd,Zx=Dm,Ax=Ix,Cx=Dm,Bx=Al,Wx={Inflate:kx,inflate:Zx,inflateRaw:Ax,ungzip:Cx,constants:Bx};const{Deflate:Sx,deflate:Rx,deflateRaw:Nx,gzip:xx}=ON,{Inflate:Gx,inflate:Yx,inflateRaw:Mx,ungzip:Ox}=Wx;var Vx=Sx,Ex=Rx,jx=Nx,zx=xx,Xx=Gx,Lx=Yx,Fx=Mx,Tx=Ox,Hx=Al,Ta={Deflate:Vx,deflate:Ex,deflateRaw:jx,gzip:zx,Inflate:Xx,inflate:Lx,inflateRaw:Fx,ungzip:Tx,constants:Hx};/** * @wharfkit/antelope v1.0.8 * https://github.com/wharfkit/antelope * @@ -641,7 +641,7 @@ class="lucide lucide-waves" * IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY MILITARY FACILITY. */let Ho=class extends d{};p([d.field(Q)],Ho.prototype,"payer",void 0);p([d.field(Q)],Ho.prototype,"receiver",void 0);p([d.field(Ve)],Ho.prototype,"days",void 0);p([d.field(je)],Ho.prototype,"net_frac",void 0);p([d.field(je)],Ho.prototype,"cpu_frac",void 0);p([d.field(Be)],Ho.prototype,"max_payment",void 0);Ho=p([d.type("powerup")],Ho);let bl=class extends d{};p([d.field(Q)],bl.prototype,"payer",void 0);p([d.field(Q)],bl.prototype,"receiver",void 0);p([d.field(Ve)],bl.prototype,"bytes",void 0);bl=p([d.type("buyrambytes")],bl);var gX="Checking transaction",bX={title:"Accept Transaction Fee?",body:"Additional resources ({{resource}}) are required for your account to perform this transaction. Would you like to automatically purchase these resources from the network and proceed?",cost:"Cost of {{resource}}"},mX="Resolving transaction",yX={checking:gX,fee:bX,resolving:mX},vX="거래 확인",wX={title:"거래 수수료를 수락하시겠습니까?",body:"계정에서 이 거래를 수행하려면 추가 리소스({{resource}})가 필요합니다. 네트워크에서 이러한 리소스를 자동으로 구매하고 계속 진행하시겠습니까?",cost:"{{resource}}의 비용"},_X="트랜잭션 해결",IX={checking:vX,fee:wX,resolving:_X},kX="正在检查交易",ZX={title:"接受交易费用?",body:"您的帐户需要其他资源 ({{resource}}) 才能执行此交易。是否要自动从网络购买这些资源并继续?",cost:"{{resource}} 的成本"},AX="正在解析交易",CX={checking:kX,fee:ZX,resolving:AX},BX="正在檢查交易",WX={title:"接受交易費用?",body:"您的帳戶需要其他資源 ({{resource}}) 才能執行此交易。是否要自動從網路購買這些資源並繼續?",cost:"{{resource}} 的成本"},SX="正在解析交易",RX={checking:BX,fee:WX,resolving:SX},NX={en:yX,ko:IX,"zh-Hans":CX,"zh-Hant":RX},Ai;(function(t){t[t.BuyRAM=0]="BuyRAM",t[t.PowerUp=1]="PowerUp"})(Ai||(Ai={}));const ih={aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906:{features:[Ai.BuyRAM,Ai.PowerUp],sampleAccount:"teamgreymass",symbol:Be.Symbol.from("4,EOS")},"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d":{features:[Ai.BuyRAM,Ai.PowerUp],sampleAccount:"eosmechanics",symbol:Be.Symbol.from("4,EOS")},"1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4":{features:[Ai.BuyRAM,Ai.PowerUp],sampleAccount:"boost.wax",symbol:Be.Symbol.from("8,WAX")}},oh=1.5;class xX extends p9{constructor(){super(...arguments),this.id="transact-plugin-autocorrect",this.translations=NX,this.sample=null,this.price=null,this.resources=[],this.iterations=0}register(e){if(!e.ui)throw new Error("The TransactPluginAutoCorrect plugin requires a UI to be present.");e.addHook(qs.beforeSign,async(r,n)=>this.run(r,n))}async run(e,r){if(!r.ui)return{request:e};this.price=null,this.resources=[],this.iterations=0;const n=r.ui.getTranslate(this.id),i=r.ui.prompt({title:n("checking",{default:"Checking transaction"}),body:"",elements:[]}).catch(c=>{if(c)throw c;return{request:e}}),o=await r.client.v1.chain.get_account(r.permissionLevel.actor),a=this.correct(e,r,o),s=await Promise.race([i,a]);if(s===e&&!this.price)return{request:e};const l=Array.from(new Set(this.resources)).join("/");return r.ui.prompt({title:n("fee.title",{default:"Accept Transaction Fee?"}),body:n("fee.body",{default:"Additional resources ({{resource}}) are required for your account to perform this transaction. Would you like to automatically purchase these resources from the network and proceed?",resource:l}),elements:[{type:"asset",data:{label:n("fee.cost",{default:"Cost of {{resource}}",resource:l}),value:this.price}},{type:"accept"}]}).then(()=>({request:s})).catch(c=>{if(c)throw c;return{request:e}})}async correct(e,r,n){if(this.iterations++,this.iterations>3)throw new Error("Too many iterations. Please report this bug if you see it.");const i=ih[String(r.chain.id)];if(!i||!r.ui)return e;const o=new Qm({api:r.client,sampleAccount:i.sampleAccount}),a=await r.resolve(e);return r.client.v1.chain.compute_transaction(a.transaction).then(()=>e).catch(s=>{if(s.error)switch(s.error.name){case"tx_net_usage_exceeded":{const[,l]=s.error.details[0].message.match(/transaction net usage is too high: (\d+) > 0/),c=Number(l)*oh;if(i.features.includes(Ai.PowerUp))return this.powerup(r,a,n,o,0,c);break}case"tx_cpu_usage_exceeded":{const[,l]=s.error.details[0].message.match(/billed CPU time \((\d+) us\) is greater than the maximum billable CPU time for the transaction/),c=Number(l)*oh;if(i.features.includes(Ai.PowerUp))return this.powerup(r,a,n,o,c,0);break}case"ram_usage_exceeded":{const[,,l,c]=s.error.details[0].message.match(/account (\w.+) has insufficient ram; needs (\d+) bytes has (\d+) bytes/),u=(Number(l)-Number(c))*oh;if(i.features.includes(Ai.BuyRAM))return this.buyram(r,a,n,o,u);break}}return e})}async buyram(e,r,n,i,o){const a=ih[String(e.chain.id)],s=await i.v1.ram.get_state();this.sample||(this.sample=await i.getSampledUsage());const l=Be.from(s.price_per(o).value,a.symbol);this.price?this.price.units.add(l.units):this.price=l,this.resources.push("RAM");const c=tr.from({account:"eosio",name:"buyrambytes",authorization:[r.signer],data:bl.from({payer:r.signer.actor,receiver:r.signer.actor,bytes:o})}),u=S1(r.request,c);return this.correct(u,e,n)}async powerup(e,r,n,i,o,a){const s=ih[String(e.chain.id)],l=await i.v1.powerup.get_state();this.sample||(this.sample=await i.getSampledUsage()),o<2500&&(o=2500),a<1e4&&(a=1e4);const c=Be.from(Number(l.cpu.price_per(this.sample,o))+Number(l.net.price_per(this.sample,a))*oh,s.symbol);this.price?this.price.units.add(c.units):this.price=c,this.resources.push("CPU","NET");const u=tr.from({account:"eosio",name:"powerup",authorization:[r.signer],data:Ho.from({payer:r.signer.actor,receiver:r.signer.actor,days:1,net_frac:l.net.frac(this.sample,a),cpu_frac:l.cpu.frac(this.sample,o),max_payment:c})});let f=S1(r.request,u);const h=410;if(Number(n.ram_quota)-Number(n.ram_usage)({sessionKit:YX}),OX=async({client:t,account:e})=>{const{atomic:r}=t.network.config,{provider:n}=t,{rows:i}=await n.v1.chain.get_table_rows({code:r.atomicContract,scope:e,table:"assets",limit:100});return i};var G1={},mp={},cs={},ku={};Object.defineProperty(ku,"__esModule",{value:!0});class VX extends Error{}ku.default=VX;var EX=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cs,"__esModule",{value:!0});cs.toAttributeMap=cs.ActionGenerator=void 0;const jX=EX(ku);class zX{constructor(e){this.contract=e}async acceptoffer(e,r){return this._pack(e,"acceptoffer",{offer_id:r})}async addcolauth(e,r,n){return this._pack(e,"addcolauth",{collection_name:r,account_to_add:n})}async addconftoken(e,r,n){return this._pack(e,"addconftoken",{token_contract:r,token_symbol:n})}async addnotifyacc(e,r,n){return this._pack(e,"addnotifyacc",{collection_name:r,account_to_add:n})}async announcedepo(e,r,n){return this._pack(e,"announcedepo",{owner:r,symbol_to_announce:n})}async backasset(e,r,n,i,o){return this._pack(e,"backasset",{payer:r,asset_owner:n,asset_id:i,token_to_back:o})}async burnasset(e,r,n){return this._pack(e,"burnasset",{asset_owner:r,asset_id:n})}async canceloffer(e,r){return this._pack(e,"canceloffer",{offer_id:r})}async createcol(e,r,n,i,o,a,s,l){return this._pack(e,"createcol",{author:r,collection_name:n,allow_notify:i,authorized_accounts:o,notify_accounts:a,market_fee:s,data:l})}async createoffer(e,r,n,i,o,a){return this._pack(e,"createoffer",{sender:r,recipient:n,sender_asset_ids:i,recipient_asset_ids:o,memo:a})}async createtempl(e,r,n,i,o,a,s,l){return this._pack(e,"createtempl",{authorized_creator:r,collection_name:n,schema_name:i,transferable:o,burnable:a,max_supply:s,immutable_data:l})}async createschema(e,r,n,i,o){return this._pack(e,"createschema",{authorized_creator:r,collection_name:n,schema_name:i,schema_format:o})}async declineoffer(e,r){return this._pack(e,"declineoffer",{offer_id:r})}async extendschema(e,r,n,i,o){return this._pack(e,"extendschema",{authorized_editor:r,collection_name:n,schema_name:i,schema_format_extension:o})}async forbidnotify(e,r){return this._pack(e,"forbidnotify",{collection_name:r})}async locktemplate(e,r,n,i){return this._pack(e,"locktemplate",{authorized_editor:r,collection_name:n,template_id:i})}async mintasset(e,r,n,i,o,a,s,l,c){return this._pack(e,"mintasset",{authorized_minter:r,collection_name:n,schema_name:i,template_id:o,new_asset_owner:a,immutable_data:s,mutable_data:l,tokens_to_back:c})}async payofferram(e,r,n){return this._pack(e,"payofferram",{payer:r,offer_id:n})}async remcolauth(e,r,n){return this._pack(e,"remcolauth",{collection_name:r,account_to_remove:n})}async remnotifyacc(e,r,n){return this._pack(e,"remnotifyacc",{collection_name:r,account_to_remove:n})}async setassetdata(e,r,n,i,o){return this._pack(e,"setassetdata",{authorized_editor:r,asset_owner:n,asset_id:i,new_mutable_data:o})}async setcoldata(e,r,n){return this._pack(e,"setcoldata",{collection_name:r,data:n})}async setmarketfee(e,r,n){return this._pack(e,"setmarketfee",{collection_name:r,market_fee:n})}async transfer(e,r,n,i,o){return this._pack(e,"transfer",{from:r,to:n,asset_ids:i,memo:o})}async withdraw(e,r,n){return this._pack(e,"withdraw",{owner:r,token_to_withdraw:n})}_pack(e,r,n){return[{account:this.contract,name:r,authorization:e,data:n}]}}cs.ActionGenerator=zX;function XX(t,e){var r;const n={image:"string",ipfs:"string",bool:"uint8",double:"float64"},i={},o=[];for(const s of e)i[s.name]=s.type;const a=Object.keys(t);for(const s of a){if(typeof i[s]>"u")throw new jX.default("field not defined in schema");const l=i[s];let c=t[s];l==="bool"&&(c=c?1:0),o.push({key:s,value:[(r=n[l])!==null&&r!==void 0?r:l,c]})}return o}cs.toAttributeMap=XX;Object.defineProperty(mp,"__esModule",{value:!0});const Is=cs;class LX extends Is.ActionGenerator{constructor(e,r){super(e),this.api=r,this.config=r.getConfig()}async createcol(e,r,n,i,o,a,s,l){return super.createcol(e,r,n,i,o,a,s,(0,Is.toAttributeMap)(l,(await this.config).collection_format))}async createtempl(e,r,n,i,o,a,s,l){const c=await this.api.getSchema(n,i),u=(0,Is.toAttributeMap)(l,c.format);return super.createtempl(e,r,n,i,o,a,s,u)}async mintasset(e,r,n,i,o,a,s,l,c){const u=await this.api.getSchema(n,i),f=(0,Is.toAttributeMap)(s,u.format),h=(0,Is.toAttributeMap)(l,u.format);return super.mintasset(e,r,n,i,o,a,f,h,c)}async setassetdata(e,r,n,i,o){const a=await this.api.getAsset(i),s=(0,Is.toAttributeMap)(o,a.schema.format);return super.setassetdata(e,r,n,i,s)}async setcoldata(e,r,n){const i=(0,Is.toAttributeMap)(n,(await this.config).collection_format);return super.setcoldata(e,r,i)}}mp.default=LX;var yp={};Object.defineProperty(yp,"__esModule",{value:!0});const ks=cs;class FX extends ks.ActionGenerator{constructor(e){super(e.contract),this.api=e}async createcol(e,r,n,i,o,a,s,l){const c=await this.api.config();return super.createcol(e,r,n,i,o,a,s,(0,ks.toAttributeMap)(l,c.collection_format))}async createtempl(e,r,n,i,o,a,s,l){const c=await this.api.getSchema(n,i),u=(0,ks.toAttributeMap)(l,await c.rawFormat());return super.createtempl(e,r,n,i,o,a,s,u)}async mintasset(e,r,n,i,o,a,s,l,c){const u=await this.api.getTemplate(n,o),f=(0,ks.toAttributeMap)(s,await(await u.schema()).rawFormat()),h=(0,ks.toAttributeMap)(l,await(await u.schema()).rawFormat());return super.mintasset(e,r,n,i,o,a,f,h,c)}async setassetdata(e,r,n,i,o){const s=await(await this.api.getAsset(n,i)).schema(),l=(0,ks.toAttributeMap)(o,await s.rawFormat());return super.setassetdata(e,r,n,i,l)}async setcoldata(e,r,n){const i=(0,ks.toAttributeMap)(n,(await this.api.config()).collection_format);return super.setcoldata(e,r,i)}}yp.default=FX;var g2={},b2={};Object.defineProperty(b2,"__esModule",{value:!0});class TX extends Error{constructor(e,r){super(e),this.message=e,this.status=r,this.isApiError=!0}}b2.default=TX;var c7=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(g2,"__esModule",{value:!0});const HX=c7(mp),Y1=c7(b2);function ah(t,e){var r;const n={};for(const i of e){const o=(r=i.type)!==null&&r!==void 0?r:"data";typeof i.value=="number"?n[o+":number."+i.key]=String(i.value):typeof i.value=="boolean"?n[o+":bool."+i.key]=i.value?"true":"false":n[o+"."+i.key]=i.value}return Object.assign({},t,n)}class DX{constructor(e,r,n){this.endpoint=e,this.namespace=r,n.fetch?this.fetchBuiltin=n.fetch:this.fetchBuiltin=window.fetch,this.action=(async()=>new HX.default((await this.getConfig()).contract,this))()}async getConfig(){return await this.fetchEndpoint("/v1/config",{})}async getAssets(e={},r=1,n=100,i=[]){return await this.fetchEndpoint("/v1/assets",Object.assign({page:r,limit:n},ah(e,i)))}async countAssets(e,r=[]){return await this.countEndpoint("/v1/assets",ah(e,r))}async getAsset(e){return await this.fetchEndpoint("/v1/assets/"+e,{})}async getAssetStats(e){return await this.fetchEndpoint("/v1/assets/"+e+"/stats",{})}async getAssetLogs(e,r=1,n=100,i="desc"){return await this.fetchEndpoint("/v1/assets/"+e+"/logs",{page:r,limit:n,order:i})}async getCollections(e={},r=1,n=100){return await this.fetchEndpoint("/v1/collections",Object.assign({page:r,limit:n},e))}async countCollections(e={}){return await this.countEndpoint("/v1/collections",e)}async getCollection(e){return await this.fetchEndpoint("/v1/collections/"+e,{})}async getCollectionStats(e){return await this.fetchEndpoint("/v1/collections/"+e+"/stats",{})}async getCollectionLogs(e,r=1,n=100,i="desc"){return await this.fetchEndpoint("/v1/collections/"+e+"/logs",{page:r,limit:n,order:i})}async getSchemas(e={},r=1,n=100){return await this.fetchEndpoint("/v1/schemas",Object.assign({page:r,limit:n},e))}async countSchemas(e={}){return await this.countEndpoint("/v1/schemas",e)}async getSchema(e,r){return await this.fetchEndpoint("/v1/schemas/"+e+"/"+r,{})}async getSchemaStats(e,r){return await this.fetchEndpoint("/v1/schemas/"+e+"/"+r+"/stats",{})}async getSchemaLogs(e,r,n=1,i=100,o="desc"){return await this.fetchEndpoint("/v1/schemas/"+e+"/"+r+"/logs",{page:n,limit:i,order:o})}async getTemplates(e={},r=1,n=100,i=[]){return await this.fetchEndpoint("/v1/templates",Object.assign({page:r,limit:n},ah(e,i)))}async countTemplates(e={},r=[]){return await this.countEndpoint("/v1/templates",ah(e,r))}async getTemplate(e,r){return await this.fetchEndpoint("/v1/templates/"+e+"/"+r,{})}async getTemplateStats(e,r){return await this.fetchEndpoint("/v1/templates/"+e+"/"+r+"/stats",{})}async getTemplateLogs(e,r,n=1,i=100,o="desc"){return await this.fetchEndpoint("/v1/templates/"+e+"/"+r+"/logs",{page:n,limit:i,order:o})}async getTransfers(e={},r=1,n=100){return await this.fetchEndpoint("/v1/transfers",Object.assign({page:r,limit:n},e))}async countTransfers(e={}){return await this.countEndpoint("/v1/transfers",e)}async getOffers(e={},r=1,n=100){return await this.fetchEndpoint("/v1/offers",Object.assign({page:r,limit:n},e))}async countOffers(e={}){return await this.countEndpoint("/v1/offers",e)}async getOffer(e){return await this.fetchEndpoint("/v1/offers/"+e,{})}async getAccounts(e={},r=1,n=100){return await this.fetchEndpoint("/v1/accounts",Object.assign({page:r,limit:n},e))}async getBurns(e={},r=1,n=100){return await this.fetchEndpoint("/v1/burns",Object.assign({page:r,limit:n},e))}async countAccounts(e={}){return await this.countEndpoint("/v1/accounts",e)}async getAccount(e,r={}){return await this.fetchEndpoint("/v1/accounts/"+e,r)}async getAccountCollection(e,r){return await this.fetchEndpoint("/v1/accounts/"+e+"/"+r,{})}async getAccountBurns(e,r={}){return await this.fetchEndpoint("/v1/burns/"+e,r)}async fetchEndpoint(e,r){let n,i;const o=this.fetchBuiltin,a=Object.keys(r).map(s=>{let l=r[s];return l===!0&&(l="true"),l===!1&&(l="false"),s+"="+encodeURIComponent(l)}).join("&");try{a.length<1e3?n=await o(this.endpoint+"/"+this.namespace+e+(a.length>0?"?"+a:"")):n=await o(this.endpoint+"/"+this.namespace+e,{headers:{accept:"*.*","content-type":"application/json"},method:"POST",body:JSON.stringify(r)}),i=await n.json()}catch(s){throw new Y1.default(s.message,500)}if(n.status!==200)throw new Y1.default(i.message,n.status);if(!i.success)throw new Y1.default(i.message,n.status);return i.data}async countEndpoint(e,r){const n=await this.fetchEndpoint(e+"/_count",r);return parseInt(n,10)}}g2.default=DX;var sh={},m2={};Object.defineProperty(m2,"__esModule",{value:!0});class JX extends Error{constructor(e){e.error&&e.error.details&&e.error.details.length&&e.error.details[0].message?super(e.error.details[0].message):e.processed&&e.processed.except&&e.processed.except.message?super(e.processed.except.message):super(e.message),this.json=e}}m2.default=JX;var lh={},Do={},vp={},xd={};Object.defineProperty(xd,"__esModule",{value:!0});class PX extends Error{}xd.default=PX;var yt={},u7={exports:{}};(function(t){var e=function(r){var n=1e7,i=7,o=9007199254740992,a=m(o),s="0123456789abcdefghijklmnopqrstuvwxyz",l=typeof BigInt=="function";function c(w,Z,O,X){return typeof w>"u"?c[0]:typeof Z<"u"?+Z==10&&!O?fe(w):ce(w,Z,O,X):fe(w)}function u(w,Z){this.value=w,this.sign=Z,this.isSmall=!1}u.prototype=Object.create(c.prototype);function f(w){this.value=w,this.sign=w<0,this.isSmall=!0}f.prototype=Object.create(c.prototype);function h(w){this.value=w}h.prototype=Object.create(c.prototype);function g(w){return-o0?Math.floor(w):Math.ceil(w)}function C(w,Z){var O=w.length,X=Z.length,$=new Array(O),J=0,ie=n,re,ae;for(ae=0;ae=ie?1:0,$[ae]=re-J*ie;for(;ae0&&$.push(J),$}function N(w,Z){return w.length>=Z.length?C(w,Z):C(Z,w)}function V(w,Z){var O=w.length,X=new Array(O),$=n,J,ie;for(ie=0;ie0;)X[ie++]=Z%$,Z=Math.floor(Z/$);return X}u.prototype.add=function(w){var Z=fe(w);if(this.sign!==Z.sign)return this.subtract(Z.negate());var O=this.value,X=Z.value;return Z.isSmall?new u(V(O,Math.abs(X)),this.sign):new u(N(O,X),this.sign)},u.prototype.plus=u.prototype.add,f.prototype.add=function(w){var Z=fe(w),O=this.value;if(O<0!==Z.sign)return this.subtract(Z.negate());var X=Z.value;if(Z.isSmall){if(g(O+X))return new f(O+X);X=m(Math.abs(X))}return new u(V(X,Math.abs(O)),O<0)},f.prototype.plus=f.prototype.add,h.prototype.add=function(w){return new h(this.value+fe(w).value)},h.prototype.plus=h.prototype.add;function z(w,Z){var O=w.length,X=Z.length,$=new Array(O),J=0,ie=n,re,ae;for(re=0;re=0?X=z(w,Z):(X=z(Z,w),O=!O),X=_(X),typeof X=="number"?(O&&(X=-X),new f(X)):new u(X,O)}function P(w,Z,O){var X=w.length,$=new Array(X),J=-Z,ie=n,re,ae;for(re=0;re=0)},f.prototype.minus=f.prototype.subtract,h.prototype.subtract=function(w){return new h(this.value-fe(w).value)},h.prototype.minus=h.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},f.prototype.negate=function(){var w=this.sign,Z=new f(-this.value);return Z.sign=!w,Z},h.prototype.negate=function(){return new h(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},f.prototype.abs=function(){return new f(Math.abs(this.value))},h.prototype.abs=function(){return new h(this.value>=0?this.value:-this.value)};function j(w,Z){var O=w.length,X=Z.length,$=O+X,J=B($),ie=n,re,ae,xe,Se,ke;for(xe=0;xe0;)X[re++]=J%$,J=Math.floor(J/$);return X}function x(w,Z){for(var O=[];Z-- >0;)O.push(0);return O.concat(w)}function b(w,Z){var O=Math.max(w.length,Z.length);if(O<=30)return j(w,Z);O=Math.ceil(O/2);var X=w.slice(O),$=w.slice(0,O),J=Z.slice(O),ie=Z.slice(0,O),re=b($,ie),ae=b(X,J),xe=b(N($,X),N(ie,J)),Se=N(N(re,x(z(z(xe,re),ae),O)),x(ae,2*O));return I(Se),Se}function v(w,Z){return-.012*w-.012*Z+15e-6*w*Z>0}u.prototype.multiply=function(w){var Z=fe(w),O=this.value,X=Z.value,$=this.sign!==Z.sign,J;if(Z.isSmall){if(X===0)return c[0];if(X===1)return this;if(X===-1)return this.negate();if(J=Math.abs(X),J=0;ke--){for(Se=$-1,ae[ke+X]!==ie&&(Se=Math.floor((ae[ke+X]*$+ae[ke+X-1])/ie)),Pe=0,Ke=0,Jt=xe.length,et=0;etX&&(xe=(xe+1)*ie),re=Math.ceil(xe/Se);do{if(ke=H(Z,re),y(ke,J)<=0)break;re--}while(re);$.push(re),J=z(J,ke)}return $.reverse(),[_($),_(J)]}function S(w,Z){var O=w.length,X=B(O),$=n,J,ie,re,ae;for(re=0,J=O-1;J>=0;--J)ae=re*$+w[J],ie=W(ae/Z),re=ae-ie*Z,X[J]=ie|0;return[X,re|0]}function M(w,Z){var O,X=fe(Z);if(l)return[new h(w.value/X.value),new h(w.value%X.value)];var $=w.value,J=X.value,ie;if(J===0)throw new Error("Cannot divide by zero");if(w.isSmall)return X.isSmall?[new f(W($/J)),new f($%J)]:[c[0],w];if(X.isSmall){if(J===1)return[w,c[0]];if(J==-1)return[w.negate(),c[0]];var re=Math.abs(J);if(reZ.length?1:-1;for(var O=w.length-1;O>=0;O--)if(w[O]!==Z[O])return w[O]>Z[O]?1:-1;return 0}u.prototype.compareAbs=function(w){var Z=fe(w),O=this.value,X=Z.value;return Z.isSmall?1:y(O,X)},f.prototype.compareAbs=function(w){var Z=fe(w),O=Math.abs(this.value),X=Z.value;return Z.isSmall?(X=Math.abs(X),O===X?0:O>X?1:-1):-1},h.prototype.compareAbs=function(w){var Z=this.value,O=fe(w).value;return Z=Z>=0?Z:-Z,O=O>=0?O:-O,Z===O?0:Z>O?1:-1},u.prototype.compare=function(w){if(w===1/0)return-1;if(w===-1/0)return 1;var Z=fe(w),O=this.value,X=Z.value;return this.sign!==Z.sign?Z.sign?1:-1:Z.isSmall?this.sign?-1:1:y(O,X)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,f.prototype.compare=function(w){if(w===1/0)return-1;if(w===-1/0)return 1;var Z=fe(w),O=this.value,X=Z.value;return Z.isSmall?O==X?0:O>X?1:-1:O<0!==Z.sign?O<0?-1:1:O<0?1:-1},f.prototype.compareTo=f.prototype.compare,h.prototype.compare=function(w){if(w===1/0)return-1;if(w===-1/0)return 1;var Z=this.value,O=fe(w).value;return Z===O?0:Z>O?1:-1},h.prototype.compareTo=h.prototype.compare,u.prototype.equals=function(w){return this.compare(w)===0},h.prototype.eq=h.prototype.equals=f.prototype.eq=f.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(w){return this.compare(w)!==0},h.prototype.neq=h.prototype.notEquals=f.prototype.neq=f.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(w){return this.compare(w)>0},h.prototype.gt=h.prototype.greater=f.prototype.gt=f.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(w){return this.compare(w)<0},h.prototype.lt=h.prototype.lesser=f.prototype.lt=f.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(w){return this.compare(w)>=0},h.prototype.geq=h.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(w){return this.compare(w)<=0},h.prototype.leq=h.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return(this.value[0]&1)===0},f.prototype.isEven=function(){return(this.value&1)===0},h.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return(this.value[0]&1)===1},f.prototype.isOdd=function(){return(this.value&1)===1},h.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},f.prototype.isPositive=function(){return this.value>0},h.prototype.isPositive=f.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},f.prototype.isNegative=function(){return this.value<0},h.prototype.isNegative=f.prototype.isNegative,u.prototype.isUnit=function(){return!1},f.prototype.isUnit=function(){return Math.abs(this.value)===1},h.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},f.prototype.isZero=function(){return this.value===0},h.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(w){var Z=fe(w);return Z.isZero()?!1:Z.isUnit()?!0:Z.compareAbs(2)===0?this.isEven():this.mod(Z).isZero()},h.prototype.isDivisibleBy=f.prototype.isDivisibleBy=u.prototype.isDivisibleBy;function R(w){var Z=w.abs();if(Z.isUnit())return!1;if(Z.equals(2)||Z.equals(3)||Z.equals(5))return!0;if(Z.isEven()||Z.isDivisibleBy(3)||Z.isDivisibleBy(5))return!1;if(Z.lesser(49))return!0}function K(w,Z){for(var O=w.prev(),X=O,$=0,J,ie,re;X.isEven();)X=X.divide(2),$++;e:for(ie=0;ie-o?new f(w-1):new u(a,!0)},h.prototype.prev=function(){return new h(this.value-BigInt(1))};for(var ue=[1];2*ue[ue.length-1]<=n;)ue.push(2*ue[ue.length-1]);var ve=ue.length,Ge=ue[ve-1];function Me(w){return Math.abs(w)<=n}u.prototype.shiftLeft=function(w){var Z=fe(w).toJSNumber();if(!Me(Z))throw new Error(String(Z)+" is too large for shifting.");if(Z<0)return this.shiftRight(-Z);var O=this;if(O.isZero())return O;for(;Z>=ve;)O=O.multiply(Ge),Z-=ve-1;return O.multiply(ue[Z])},h.prototype.shiftLeft=f.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(w){var Z,O=fe(w).toJSNumber();if(!Me(O))throw new Error(String(O)+" is too large for shifting.");if(O<0)return this.shiftLeft(-O);for(var X=this;O>=ve;){if(X.isZero()||X.isNegative()&&X.isUnit())return X;Z=M(X,Ge),X=Z[1].isNegative()?Z[0].prev():Z[0],O-=ve-1}return Z=M(X,ue[O]),Z[1].isNegative()?Z[0].prev():Z[0]},h.prototype.shiftRight=f.prototype.shiftRight=u.prototype.shiftRight;function ne(w,Z,O){Z=fe(Z);for(var X=w.isNegative(),$=Z.isNegative(),J=X?w.not():w,ie=$?Z.not():Z,re=0,ae=0,xe=null,Se=null,ke=[];!J.isZero()||!ie.isZero();)xe=M(J,Ge),re=xe[1].toJSNumber(),X&&(re=Ge-1-re),Se=M(ie,Ge),ae=Se[1].toJSNumber(),$&&(ae=Ge-1-ae),J=xe[0],ie=Se[0],ke.push(O(re,ae));for(var Pe=O(X?1:0,$?1:0)!==0?e(-1):e(0),Ke=ke.length-1;Ke>=0;Ke-=1)Pe=Pe.multiply(Ge).add(e(ke[Ke]));return Pe}u.prototype.not=function(){return this.negate().prev()},h.prototype.not=f.prototype.not=u.prototype.not,u.prototype.and=function(w){return ne(this,w,function(Z,O){return Z&O})},h.prototype.and=f.prototype.and=u.prototype.and,u.prototype.or=function(w){return ne(this,w,function(Z,O){return Z|O})},h.prototype.or=f.prototype.or=u.prototype.or,u.prototype.xor=function(w){return ne(this,w,function(Z,O){return Z^O})},h.prototype.xor=f.prototype.xor=u.prototype.xor;var le=1<<30,T=(n&-n)*(n&-n)|le;function de(w){var Z=w.value,O=typeof Z=="number"?Z|le:typeof Z=="bigint"?Z|BigInt(le):Z[0]+Z[1]*n|T;return O&-O}function Ye(w,Z){if(Z.compareTo(w)<=0){var O=Ye(w,Z.square(Z)),X=O.p,$=O.e,J=X.multiply(Z);return J.compareTo(w)<=0?{p:J,e:$*2+1}:{p:X,e:$*2}}return{p:e(1),e:0}}u.prototype.bitLength=function(){var w=this;return w.compareTo(e(0))<0&&(w=w.negate().subtract(e(1))),w.compareTo(e(0))===0?e(0):e(Ye(w,e(2)).e).add(e(1))},h.prototype.bitLength=f.prototype.bitLength=u.prototype.bitLength;function Ne(w,Z){return w=fe(w),Z=fe(Z),w.greater(Z)?w:Z}function E(w,Z){return w=fe(w),Z=fe(Z),w.lesser(Z)?w:Z}function F(w,Z){if(w=fe(w).abs(),Z=fe(Z).abs(),w.equals(Z))return w;if(w.isZero())return Z;if(Z.isZero())return w;for(var O=c[1],X,$;w.isEven()&&Z.isEven();)X=E(de(w),de(Z)),w=w.divide(X),Z=Z.divide(X),O=O.multiply(X);for(;w.isEven();)w=w.divide(de(w));do{for(;Z.isEven();)Z=Z.divide(de(Z));w.greater(Z)&&($=Z,Z=w,w=$),Z=Z.subtract(w)}while(!Z.isZero());return O.isUnit()?w:w.multiply(O)}function ee(w,Z){return w=fe(w).abs(),Z=fe(Z).abs(),w.divide(F(w,Z)).multiply(Z)}function oe(w,Z,O){w=fe(w),Z=fe(Z);var X=O||Math.random,$=E(w,Z),J=Ne(w,Z),ie=J.subtract($).add(1);if(ie.isSmall)return $.add(Math.floor(X()*ie));for(var re=_e(ie,n).value,ae=[],xe=!0,Se=0;Se=ie){if(ae==="1"&&ie===1)continue;throw new Error(ae+" is not a valid digit in base "+Z+".")}}Z=fe(Z);var xe=[],Se=w[0]==="-";for(J=Se?1:0;J"&&J=0;J--)X=X.add(w[J].times($)),$=$.times(Z);return O?X.negate():X}function ge(w,Z){return Z=Z||s,w"}function _e(w,Z){if(Z=e(Z),Z.isZero()){if(w.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(Z.equals(-1)){if(w.isZero())return{value:[0],isNegative:!1};if(w.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-w.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var O=Array.apply(null,Array(w.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return O.unshift([1]),{value:[].concat.apply([],O),isNegative:!1}}var X=!1;if(w.isNegative()&&Z.isPositive()&&(X=!0,w=w.abs()),Z.isUnit())return w.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(w.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:X};for(var $=[],J=w,ie;J.isNegative()||J.compareAbs(Z)>=0;){ie=J.divmod(Z),J=ie.quotient;var re=ie.remainder;re.isNegative()&&(re=Z.minus(re).abs(),J=J.next()),$.push(re.toJSNumber())}return $.push(J.toJSNumber()),{value:$.reverse(),isNegative:X}}function be(w,Z,O){var X=_e(w,Z);return(X.isNegative?"-":"")+X.value.map(function($){return ge($,O)}).join("")}u.prototype.toArray=function(w){return _e(this,w)},f.prototype.toArray=function(w){return _e(this,w)},h.prototype.toArray=function(w){return _e(this,w)},u.prototype.toString=function(w,Z){if(w===r&&(w=10),w!==10||Z)return be(this,w,Z);for(var O=this.value,X=O.length,$=String(O[--X]),J="0000000",ie;--X>=0;)ie=String(O[X]),$+=J.slice(ie.length)+ie;var re=this.sign?"-":"";return re+$},f.prototype.toString=function(w,Z){return w===r&&(w=10),w!=10||Z?be(this,w,Z):String(this.value)},h.prototype.toString=f.prototype.toString,h.prototype.toJSON=u.prototype.toJSON=f.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,f.prototype.valueOf=function(){return this.value},f.prototype.toJSNumber=f.prototype.valueOf,h.prototype.valueOf=h.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function se(w){if(g(+w)){var Z=+w;if(Z===W(Z))return l?new h(BigInt(Z)):new f(Z);throw new Error("Invalid integer: "+w)}var O=w[0]==="-";O&&(w=w.slice(1));var X=w.split(/e/i);if(X.length>2)throw new Error("Invalid integer: "+X.join("e"));if(X.length===2){var $=X[1];if($[0]==="+"&&($=$.slice(1)),$=+$,$!==W($)||!g($))throw new Error("Invalid integer: "+$+" is not a valid exponent.");var J=X[0],ie=J.indexOf(".");if(ie>=0&&($-=J.length-ie-1,J=J.slice(0,ie)+J.slice(ie+1)),$<0)throw new Error("Cannot include negative exponent part for integers");J+=new Array($+1).join("0"),w=J}var re=/^([0-9][0-9]*)$/.test(w);if(!re)throw new Error("Invalid integer: "+w);if(l)return new h(BigInt(O?"-"+w:w));for(var ae=[],xe=w.length,Se=i,ke=xe-Se;xe>0;)ae.push(+w.slice(ke,xe)),ke-=Se,ke<0&&(ke=0),xe-=Se;return I(ae),new u(ae,O)}function Re(w){if(l)return new h(BigInt(w));if(g(w)){if(w!==W(w))throw new Error(w+" is not an integer.");return new f(w)}return se(w.toString())}function fe(w){return typeof w=="number"?Re(w):typeof w=="string"?se(w):typeof w=="bigint"?new h(w):w}for(var Ie=0;Ie<1e3;Ie++)c[Ie]=fe(Ie),Ie>0&&(c[-Ie]=fe(-Ie));return c.one=c[1],c.zero=c[0],c.minusOne=c[-1],c.max=Ne,c.min=E,c.gcd=F,c.lcm=ee,c.isInstance=function(w){return w instanceof u||w instanceof f||w instanceof h},c.randBetween=oe,c.fromArray=function(w,Z,O){return pe(w.map(fe),fe(Z||10),O)},c}();t.hasOwnProperty("exports")&&(t.exports=e)})(u7);var y2=u7.exports,Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});class qX extends Error{}Zu.default=qX;var v2={};Object.defineProperty(v2,"__esModule",{value:!0});class $X{constructor(e){if(this.ALPHABET=e,e.length>=255)throw new TypeError("Alphabet too long");this.BASE_MAP=new Uint8Array(256);for(let r=0;r>>0,s=new Uint8Array(a);for(;i!==o;){let u=e[i],f=0;for(let h=a-1;(u!==0||f>>0,s[h]=u%this.BASE>>>0,u=u/this.BASE>>>0;if(u!==0)throw new Error("Non-zero carry");n=f,i++}let l=a-n;for(;l!==a&&s[l]===0;)l++;let c=this.LEADER.repeat(r);for(;l>>0,a=new Uint8Array(o);for(;e[r];){let u=this.BASE_MAP[e.charCodeAt(r)];if(u===255)return new Uint8Array(0);let f=0;for(let h=o-1;(u!==0||f>>0,a[h]=u%256>>>0,u=u/256>>>0;if(u!==0)throw new Error("Non-zero carry");i=f,r++}if(e[r]===" ")return new Uint8Array(0);let s=o-i;for(;s!==o&&a[s]===0;)s++;const l=new Uint8Array(n+(o-s));l.fill(0,0,n);let c=n;for(;s!==o;)l[c++]=a[s++];return l}}v2.default=$X;var wp=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yt,"__esModule",{value:!0});yt.byte_vector_to_int=yt.int_to_byte_vector=yt.concat_byte_arrays=yt.hex_encode=yt.hex_decode=yt.base58_encode=yt.base58_decode=yt.zigzag_decode=yt.zigzag_encode=yt.integer_unsign=yt.integer_sign=yt.varint_decode=yt.varint_encode=void 0;const bn=wp(y2),UX=wp(Zu),QX=wp(ku),KX=wp(v2);function eL(t){const e=[];let r=(0,bn.default)(t);if(r.lesser(0))throw new QX.default("cant pack negative integer");for(;;){const n=r.and(127);if(r=r.shiftRight(7),r.equals(0)){e.push(n.toJSNumber());break}e.push(n.toJSNumber()+128)}return new Uint8Array(e)}yt.varint_encode=eL;function tL(t){let e=(0,bn.default)(0);for(let r=0;;r++){if(t.position>=t.data.length)throw new UX.default("failed to unpack integer");const n=(0,bn.default)(t.data[t.position]);if(t.position+=1,n.lesser(128)){e=e.plus(n.shiftLeft(7*r));break}e=e.plus(n.and(127).shiftLeft(7*r))}return e}yt.varint_decode=tL;function rL(t,e){const r=(0,bn.default)(t);if(r.greaterOrEquals((0,bn.default)(2).pow(8*e-1)))throw new Error("cannot sign integer: too big");return r.greaterOrEquals(0)?r:r.negate().xor((0,bn.default)(2).pow(8*e).minus(1)).plus(1)}yt.integer_sign=rL;function nL(t,e){const r=(0,bn.default)(t);if(r.greater((0,bn.default)(2).pow(8*e)))throw new Error("cannot unsign integer: too big");return r.greater((0,bn.default)(2).pow(8*e-1))?r.minus(1).xor((0,bn.default)(2).pow(8*e).minus(1)).negate():r}yt.integer_unsign=nL;function iL(t){const e=(0,bn.default)(t);return e.lesser(0)?e.plus(1).multiply(-2).plus(1):e.multiply(2)}yt.zigzag_encode=iL;function oL(t){const e=(0,bn.default)(t);return e.mod(2).equals(0)?e.divmod(2).quotient:e.divmod(2).quotient.multiply(-1).minus(1)}yt.zigzag_decode=oL;const f7=new KX.default("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function aL(t){return f7.decode(t)}yt.base58_decode=aL;function sL(t){return f7.encode(t)}yt.base58_encode=sL;function lL(t){const e=t.match(/.{1,2}/g);return e?new Uint8Array(e.map(r=>parseInt(r,16))):new Uint8Array(0)}yt.hex_decode=lL;function cL(t){return t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}yt.hex_encode=cL;function uL(t){const e=new Uint8Array(t.reduce((n,i)=>n+i.length,0));let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}yt.concat_byte_arrays=uL;function fL(t){const e=[];let r=(0,bn.default)(t);for(;r.notEquals(0);)e.push(r.and(255).toJSNumber()),r=r.shiftRight(8);return new Uint8Array(e)}yt.int_to_byte_vector=fL;function dL(t){let e=(0,bn.default)(0);for(let r=0;r"u"||(r.push((0,ch.varint_encode)(n+this.reserved)),r.push(i.value.serialize(e[i.name])))}return r.push((0,ch.varint_encode)(0)),(0,ch.concat_byte_arrays)(r)}getAttribute(e,r=!0){const n=e-this.reserved;if(n>=this.attributes.length){if(r)throw new pL.default("attribute does not exists");return}return this.attributes[Number(n)]}}vp.default=gL;var Gd={};Object.defineProperty(Gd,"__esModule",{value:!0});Gd.prepare=void 0;class d7{constructor(e,r=0){this.data=e,this.position=r}}Gd.default=d7;function bL(t){return new d7(t,0)}Gd.prepare=bL;var h7=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.deserialize=Do.serialize=void 0;const p7=h7(vp),D5=yt,mL=h7(Gd);function yL(t,e){const r=e.serialize(t);return e instanceof p7.default?r.slice(0,r.length-1):r}Do.serialize=yL;function vL(t,e){e instanceof p7.default&&(t=(0,D5.concat_byte_arrays)([t,(0,D5.varint_encode)(0)]));const r=new mL.default(t,0);return e.deserialize(r)}Do.deserialize=vL;var uh={},Ou={},fh={},J5;function wL(){if(J5)return fh;J5=1;var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(fh,"__esModule",{value:!0});const e=t(xd),r=w7();let n=class{constructor(o){if(typeof r.ParserTypes[o]>"u")throw new e.default(`attribute type '${o}' not defined`);this.parser=r.ParserTypes[o]}deserialize(o){return this.parser.deserialize(o)}serialize(o){return this.parser.serialize(o)}};return fh.default=n,fh}var w2={};Object.defineProperty(w2,"__esModule",{value:!0});const M1=yt;class _L{constructor(e){this.element=e}deserialize(e){const r=(0,M1.varint_decode)(e).toJSNumber(),n=[];for(let i=0;i"u"&&(f=[]),delete c[l];for(const h of f)u.push({name:h.name,value:a(h.type,c)});return new r.default(u)}function a(l,c){if(l.endsWith("[]"))return new i.default(a(l.substring(0,l.length-2),c));if(l.startsWith("object{")&&l.endsWith("}")){const u=parseInt(l.substring(7,l.length-1),10);if(isNaN(u))throw new e.default(`invalid type '${l}'`);return o(u,c)}return new n.default(l)}function s(l){const c={};for(const u of l){const f=typeof u.parent>"u"?0:u.parent;typeof c[f]>"u"&&(c[f]=[]),c[f].push(u)}return o(0,c)}return Ou.ObjectSchema=s,Ou}var q5;function I2(){if(q5)return uh;q5=1,Object.defineProperty(uh,"__esModule",{value:!0});const t=_2(),e=Do;class r{constructor(i,o,a,s=!0){this.api=i,this.name=o,this._data=new Promise(async(l,c)=>{if(a)l(a);else try{l(await i.queue.fetchCollection(o,s))}catch(u){c(u)}})}async author(){return(await this._data).author}async allowNotify(){return(await this._data).allow_notify}async authorizedAccounts(){return(await this._data).authorized_accounts}async notifyAccounts(){return(await this._data).notify_accounts}async marketFee(){return Number((await this._data).market_fee)}async data(){return(0,e.deserialize)((await this._data).serialized_data,(0,t.ObjectSchema)((await this.api.config()).collection_format))}async toObject(){return{collection_name:this.name,author:await this.author(),allowNotify:await this.allowNotify(),authorizedAccounts:await this.authorizedAccounts(),notifyAccounts:await this.notifyAccounts(),marketFee:await this.marketFee(),data:await this.data()}}}return uh.default=r,uh}var dh={},$5;function k2(){if($5)return dh;$5=1;var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(dh,"__esModule",{value:!0});const e=_2(),r=t(I2());class n{constructor(o,a,s,l,c=!0){this.api=o,this.collection=a,this.name=s,this._data=new Promise(async(u,f)=>{if(l)u(l);else try{u(await o.queue.fetchSchema(a,s,c))}catch(h){f(h)}}),this._collection=new Promise(async(u,f)=>{try{u(new r.default(o,a,void 0,c))}catch(h){f(h)}})}async format(){return(0,e.ObjectSchema)((await this._data).format)}async rawFormat(){return(await this._data).format}async toObject(){return{collection_name:this.collection,schema_name:this.name,format:await this.rawFormat()}}}return dh.default=n,dh}var hh={},U5;function g7(){if(U5)return hh;U5=1;var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(hh,"__esModule",{value:!0});const e=Do,r=t(k2());class n{constructor(o,a,s,l,c,u=!0){this.api=o,this.collection=a,this.id=s,this._data=new Promise(async(f,h)=>{if(l)f(l);else try{f(await o.queue.fetchTemplate(a,s,u))}catch(g){h(g)}}),this._schema=new Promise(async(f,h)=>{if(c)f(c);else try{const g=await this._data;f(new r.default(this.api,a,g.schema_name,void 0,u))}catch(g){h(g)}})}async schema(){return await this._schema}async immutableData(){const o=await this._schema;return(0,e.deserialize)((await this._data).immutable_serialized_data,await o.format())}async isTransferable(){return(await this._data).transferable}async isBurnable(){return(await this._data).burnable}async maxSupply(){return(await this._data).max_supply}async circulation(){return(await this._data).issued_supply}async toObject(){return{collection_name:this.collection,template_id:this.id,schema:await(await this.schema()).toObject(),immutableData:await this.immutableData(),transferable:await this.isTransferable(),burnable:await this.isBurnable(),maxSupply:await this.maxSupply(),circulation:await this.circulation()}}}return hh.default=n,hh}var Q5;function b7(){if(Q5)return lh;Q5=1;var t=Ue&&Ue.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(lh,"__esModule",{value:!0});const e=Do,r=t(I2()),n=t(k2()),i=t(g7());class o{constructor(s,l,c,u,f,h,g,m=!0){this.api=s,this.owner=l,this.id=c,this._data=new Promise(async(_,I)=>{if(u)_(u);else try{_(await s.queue.fetchAsset(l,c,m))}catch(B){I(B)}}),this._template=new Promise(async(_,I)=>{if(g)_(g);else try{const B=await this._data;if(Number(B.template_id)<0)return _(null);_(new i.default(s,B.collection_name,B.template_id,void 0,void 0,m))}catch(B){I(B)}}),this._collection=new Promise(async(_,I)=>{if(f)_(f);else try{const B=await this._data;_(new r.default(s,B.collection_name,void 0,m))}catch(B){I(B)}}),this._schema=new Promise(async(_,I)=>{if(h)_(h);else try{const B=await this._data;_(new n.default(s,B.collection_name,B.schema_name,void 0,m))}catch(B){I(B)}})}async template(){return await this._template}async collection(){return await this._collection}async schema(){return await this._schema}async backedTokens(){return(await this._data).backed_tokens}async immutableData(){const s=await this.schema(),l=await this._data;return(0,e.deserialize)(l.immutable_serialized_data,await s.format())}async mutableData(){const s=await this.schema(),l=await this._data;return(0,e.deserialize)(l.mutable_serialized_data,await s.format())}async data(){const s=await this.mutableData(),l=await this.immutableData(),c=await this.template(),u=c?await c.immutableData():{};return Object.assign({},s,l,u)}async toObject(){const s=await this.template(),l=await this.collection(),c=await this.schema();return{asset_id:this.id,collection:await l.toObject(),schema:await c.toObject(),template:s?await s.toObject():null,backedTokens:await this.backedTokens(),immutableData:await this.immutableData(),mutableData:await this.mutableData(),data:await this.data()}}}return lh.default=o,lh}var Z2={},_p={};Object.defineProperty(_p,"__esModule",{value:!0});_p.MemoryCache=void 0;let IL=class{constructor(){this.store={}}get(e){const r=this.store[e];if(typeof r>"u")return null;const[n,i]=r;return new Date>i?(delete this.store[e],null):n}put(e,r,n){const i=new Date(Date.now()+n);this.store[e]=[r,i]}remove(e){delete this.store[e]}};_p.MemoryCache=IL;Object.defineProperty(Z2,"__esModule",{value:!0});const kL=_p;class ZL{constructor(){this.cache=new kL.MemoryCache}getAsset(e,r){return r&&(r.mutable_serialized_data=new Uint8Array(r.mutable_serialized_data),r.immutable_serialized_data=new Uint8Array(r.immutable_serialized_data)),this.access("assets",e,r)}deleteAsset(e){this.delete("assets",e)}getTemplate(e,r,n){return n&&(n.immutable_serialized_data=new Uint8Array(n.immutable_serialized_data)),this.access("templates",e+":"+r,n)}deleteTemplate(e,r){this.delete("templates",e+":"+r)}getSchema(e,r,n){return this.access("schemas",e+":"+r,n)}deleteSchema(e,r){this.delete("schemas",e+":"+r)}getCollection(e,r){return this.access("collections",e,r)}deleteCollection(e){this.delete("collections",e)}getOffer(e,r){return this.access("offers",e,r)}deleteOffer(e){this.delete("offers",e)}access(e,r,n){if(typeof n>"u"){const i=this.cache.get(e+":"+r);return i===null?null:i}return this.cache.put(e+":"+r,n,15*60*1e3),n}delete(e,r){this.cache.remove(e+":"+r)}}Z2.default=ZL;var ph={},K5;function AL(){if(K5)return ph;K5=1;var t=Ue&&Ue.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ph,"__esModule",{value:!0});const e=t(b7());class r{constructor(i,o,a,s,l,c=!0){this.api=i,this.id=o,this._data=new Promise(async(u,f)=>{if(a)u(a);else try{u(await this.api.queue.fetchOffer(o,c))}catch(h){f(h)}}),this._senderAssets=new Promise(async(u,f)=>{if(s)u(s);else try{const h=await this._data,g=await this.api.queue.fetchAccountAssets(h.sender);return u(h.sender_asset_ids.map(m=>{const _=g.find(I=>I.asset_id===m);return _?new e.default(this.api,h.sender,m,_,void 0,void 0,void 0,c):m}))}catch(h){return f(h)}}),this._recipientAssets=new Promise(async(u,f)=>{if(l)u(l);else try{const h=await this._data,g=await this.api.queue.fetchAccountAssets(h.recipient);return u(h.recipient_asset_ids.map(m=>{const _=g.find(I=>I.asset_id===m);return _?new e.default(this.api,h.recipient,m,_,void 0,void 0,void 0,c):m}))}catch(h){return f(h)}})}async sender(){return(await this._data).sender}async recipient(){return(await this._data).recipient}async senderAssets(){return await this._senderAssets}async recipientAssets(){return await this._recipientAssets}async memo(){return(await this._data).memo}async toObject(){return{offer_id:this.id,sender:{account:await this.sender(),assets:await Promise.all((await this.senderAssets()).map(async i=>typeof i=="string"?i:await i.toObject()))},recipient:{account:await this.recipient(),assets:await Promise.all((await this.recipientAssets()).map(async i=>typeof i=="string"?i:await i.toObject()))},memo:await this.memo()}}}return ph.default=r,ph}var A2={};Object.defineProperty(A2,"__esModule",{value:!0});class CL{constructor(e,r=4){this.api=e,this.requestLimit=r,this.elements=[],this.interval=null,this.preloadedCollections={}}async fetchAsset(e,r,n=!0){return await this.fetch_single_row("assets",e,r,i=>n||typeof i<"u"?this.api.cache.getAsset(r,i):null)}async fetchAccountAssets(e){return(await this.fetch_all_rows("assets",e,"asset_id")).map(n=>this.api.cache.getAsset(n.asset_id,n))}async fetchTemplate(e,r,n=!0){return await this.fetch_single_row("templates",e,r,i=>n||typeof i<"u"?this.api.cache.getTemplate(e,r,i):null)}async fetchSchema(e,r,n=!0){return await this.fetch_single_row("schemas",e,r,i=>n||typeof i<"u"?this.api.cache.getSchema(e,r,i):null)}async fetchCollection(e,r=!0){return await this.fetch_single_row("collections",this.api.contract,e,n=>r||typeof n<"u"?this.api.cache.getCollection(e,n):null)}async fetchCollectionSchemas(e){return(await this.fetch_all_rows("schemas",e,"schema_name")).map(n=>this.api.cache.getSchema(e,n.schema_name,n))}async fetchCollectionTemplates(e){return(await this.fetch_all_rows("templates",e,"template_id")).map(n=>this.api.cache.getTemplate(e,String(n.template_id),n))}async preloadCollection(e,r=!0){(!r||!this.preloadedCollections[e]||this.preloadedCollections[e]+15*60*1e3r||typeof n<"u"?this.api.cache.getOffer(e,n):null)}async fetchAccountOffers(e){const r=await Promise.all([this.fetch_all_rows("offers",this.api.contract,"offer_sender",e,e,2,"name"),this.fetch_all_rows("offers",this.api.contract,"offer_recipient",e,e,3,"name")]);return r[0].concat(r[1]).map(i=>this.api.cache.getOffer(i.offer_id,i))}dequeue(){this.interval||(this.interval=setInterval(async()=>{this.elements.length>0?this.elements.shift()():(clearInterval(this.interval),this.interval=null)},Math.ceil(1e3/this.requestLimit)))}async fetch_single_row(e,r,n,i,o=1,a=""){return new Promise((s,l)=>{let c=i();if(c!==null)return s(c);this.elements.push(async()=>{if(c=i(),c!==null)return s(c);try{const u={code:this.api.contract,table:e,scope:r,limit:1,lower_bound:n,upper_bound:n,index_position:o,key_type:a},f=await this.api.getTableRows(u);return f.rows.length===0?l(new Error("Row not found for "+JSON.stringify(u))):s(i(f.rows[0]))}catch(u){return l(u)}}),this.dequeue()})}async fetch_all_rows(e,r,n,i="",o="",a=1,s=""){return new Promise(async(l,c)=>{this.elements.push(async()=>{const u=await this.api.getTableRows({code:this.api.contract,scope:r,table:e,lower_bound:i,upper_bound:o,limit:1e3,index_position:a,key_type:s});u.more&&a===1?(this.elements.unshift(async()=>{try{const f=await this.fetch_all_rows(e,r,n,u.rows[u.rows.length-1][n],o,a,s);f.length>0&&f.shift(),l(u.rows.concat(f))}catch(f){c(f)}}),this.dequeue()):l(u.rows)}),this.dequeue()})}}A2.default=CL;var e4;function BL(){if(e4)return sh;e4=1;var t=Ue&&Ue.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(sh,"__esModule",{value:!0});const e=t(yp),r=t(m2),n=t(b7()),i=t(Z2),o=t(I2()),a=t(AL()),s=t(A2),l=t(k2()),c=t(g7());class u{constructor(h,g,m={rateLimit:4}){this.endpoint=h,this.contract=g,m.fetch?this.fetchBuiltin=m.fetch:this.fetchBuiltin=Ue.fetch,this.queue=new s.default(this,m.rateLimit),this.cache=new i.default,this.action=new e.default(this),this._config=new Promise(async(_,I)=>{try{const B=await this.getTableRows({code:this.contract,scope:this.contract,table:"config"});return B.rows.length!==1?I("invalid config"):_(B.rows[0])}catch(B){I(B)}})}async config(){return await this._config}async getAsset(h,g,m=!0){m||this.cache.deleteAsset(g);const _=await this.queue.fetchAsset(h,g,m);return new n.default(this,h,g,_,void 0,void 0,void 0,m)}async getTemplate(h,g,m=!0){m||this.cache.deleteTemplate(h,g);const _=await this.queue.fetchTemplate(h,g,m);return new c.default(this,h,g,_,void 0,m)}async getCollection(h,g=!0){g||this.cache.deleteCollection(h);const m=await this.queue.fetchCollection(h,g);return new o.default(this,h,m,g)}async getCollectionTemplates(h){return(await this.queue.fetchCollectionTemplates(h)).map(g=>new c.default(this,h,String(g.template_id),g,void 0))}async getCollectionsSchemas(h){return(await this.queue.fetchCollectionSchemas(h)).map(g=>new l.default(this,h,g.schema_name,void 0))}async getSchema(h,g,m=!0){m||this.cache.deleteSchema(h,g);const _=await this.queue.fetchSchema(h,g,m);return new l.default(this,h,g,_,m)}async getOffer(h,g=!0){g||this.cache.deleteOffer(h);const m=await this.queue.fetchOffer(h,g);return new a.default(this,h,m,void 0,void 0,g)}async getAccountOffers(h){return(await this.queue.fetchAccountOffers(h)).map(g=>new a.default(this,g.offer_id,g,void 0,void 0))}async getAccountAssets(h){return(await this.queue.fetchAccountAssets(h)).map(g=>new n.default(this,h,g.asset_id,g,void 0,void 0,void 0))}async getCollectionInventory(h,g){return await this.queue.preloadCollection(h,!0),(await this.queue.fetchAccountAssets(g)).filter(m=>m.collection_name===h).map(m=>new n.default(this,g,m.asset_id,m,void 0,void 0,void 0))}async preloadCollection(h,g=!0){await this.queue.preloadCollection(h,g)}async getTableRows({code:h,scope:g,table:m,table_key:_="",lower_bound:I="",upper_bound:B="",index_position:W=1,key_type:C=""}){return await this.fetchRpc("/v1/chain/get_table_rows",{code:h,scope:g,table:m,table_key:_,lower_bound:I,upper_bound:B,index_position:W,key_type:C,limit:101,reverse:!1,show_payer:!1,json:!0})}async fetchRpc(h,g){let m,_;try{const I=this.fetchBuiltin;m=await I(this.endpoint+h,{body:JSON.stringify(g),method:"POST"}),_=await m.json()}catch(I){throw I.isFetchError=!0,I}if(_.processed&&_.processed.except||!m.ok)throw new r.default(_);return _}}return sh.default=u,sh}var Ip={},C2={},Yd={},m7=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yd,"__esModule",{value:!0});const WL=m7(Zu),SL=m7(ku);class RL{constructor(e){this.size=e}deserialize(e){e.position+=this.size;const r=e.data.slice(e.position-this.size,e.position);if(r.length!==this.size)throw new WL.default("FixedParser: read past end");return r}serialize(e){if(e.length!==this.size)throw new SL.default("input data does not conform fixed size");return e}}Yd.default=RL;var NL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(C2,"__esModule",{value:!0});const xL=NL(Yd);class GL extends xL.default{constructor(){super(1)}deserialize(e){return super.deserialize(e)[0]===1?1:0}serialize(e){return super.serialize(new Uint8Array([e?1:0]))}}C2.default=GL;var kp={},Md={},YL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Md,"__esModule",{value:!0});const ML=YL(Zu),O1=yt;class OL{deserialize(e){const r=(0,O1.varint_decode)(e).toJSNumber();e.position+=r;const n=e.data.slice(e.position-r,e.position);if(n.length!==r)throw new ML.default("VariableParser: read past end");return n}serialize(e){return(0,O1.concat_byte_arrays)([(0,O1.varint_encode)(e.length),e])}}Md.default=OL;var VL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kp,"__esModule",{value:!0});kp.ByteParser=void 0;const EL=VL(Md);class jL extends EL.default{deserialize(e){return super.deserialize(e)}serialize(e){return super.serialize(e)}}kp.ByteParser=jL;var B2={},y7=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(B2,"__esModule",{value:!0});const t4=y7(y2),zL=y7(Yd);class XL extends zL.default{deserialize(e){const r=super.deserialize(e).reverse();let n=(0,t4.default)(0);for(const i of r)n=n.shiftLeft(8),n=n.plus(i);return this.size<=6?n.toJSNumber():n.toString()}serialize(e){let r=(0,t4.default)(e);const n=[];for(let i=0;iy.length?0:(S[0]=y[R++],S[1]=y[R++],S[2]=y[R++],S[3]=y[R],Y[0])},i=function(y,R){return R=R||0,R<0||R+4>y.length?0:(S[3]=y[R++],S[2]=y[R++],S[1]=y[R++],S[0]=y[R],Y[0])},n=function(y,R,K){K=K||0,Y[0]=R,y[K++]=S[0],y[K++]=S[1],y[K++]=S[2],y[K]=S[3]},o=function(y,R,K){K=K||0,Y[0]=R,y[K++]=S[3],y[K++]=S[2],y[K++]=S[1],y[K]=S[0]}}(),typeof Float64Array=="function"&&function(){var Y=new Float64Array(1),S=new Uint8Array(Y.buffer);a=function(y,R){return R=R||0,R<0||R+8>y.length?0:(S[0]=y[R+0],S[1]=y[R+1],S[2]=y[R+2],S[3]=y[R+3],S[4]=y[R+4],S[5]=y[R+5],S[6]=y[R+6],S[7]=y[R+7],Y[0])},l=function(y,R){return R=R||0,R<0||R+8>y.length?0:(S[7]=y[R+0],S[6]=y[R+1],S[5]=y[R+2],S[4]=y[R+3],S[3]=y[R+4],S[2]=y[R+5],S[1]=y[R+6],S[0]=y[R+7],Y[0])},s=function(y,R,K){K=K||0,Y[0]=R,y[K+0]=S[0],y[K+1]=S[1],y[K+2]=S[2],y[K+3]=S[3],y[K+4]=S[4],y[K+5]=S[5],y[K+6]=S[6],y[K+7]=S[7]},c=function(y,R,K){K=K||0,Y[0]=R,y[K+0]=S[7],y[K+1]=S[6],y[K+2]=S[5],y[K+3]=S[4],y[K+4]=S[3],y[K+5]=S[2],y[K+6]=S[1],y[K+7]=S[0]}}();function u(Y,S,M){var y=Y[S++],R=Y[S++],K=Y[S++],ue=Y[S];return M==="bige"?((y*256+R)*256+K)*256+ue:((ue*256+K)*256+R)*256+y}function f(Y,S,M,y){var R=S>>>24&255,K=S>>16&255,ue=S>>8&255,ve=S&255;y==="bige"?(Y[M++]=R,Y[M++]=K,Y[M++]=ue,Y[M]=ve):(Y[M++]=ve,Y[M++]=ue,Y[M++]=K,Y[M]=R)}function h(Y,S,M,y,R){R==="bige"?(f(Y,S,y,R),f(Y,M,y+4,R)):(f(Y,M,y,R),f(Y,S,y+4,R))}for(var g=new Array,m=0;m<1200;m++)g[m]=Math.pow(2,m);for(var _=new Array,m=0;m<1200;m++)_[m]=Math.pow(2,-m);function I(Y){return Y>=0?g[Y]:_[-Y]}var B=1/4294967296,W=1/1048576,C=1*4294967296,N=1*B*W;I(-1023);function V(Y,S,M){var y=u(Y,S,M),R=u(Y,S+4,M),K,ue;M==="bige"?(K=y,ue=R):(K=R,ue=y);var ve=(K&1048575)*C+ue,Ge=(K&2146435072)>>>20,Me=K>>31||1,ne;return Ge===0?ne=ve?ve*I(-1074):0:Ge<2047?ne=ve>=0?(1+ve*N)*I(Ge-1023):0:ne=ve?NaN:1/0,Me*ne}var z=Math.pow(2,-23),L=Math.pow(2,-127);function P(Y,S,M){var y=u(Y,S,M),R=y&8388607,K=(y&2139095040)>>>23,ue=y>>31||1,ve;return K===0?ve=R?R*z*2*L:0:K<255?ve=(1+R*z)*I(K-127):ve=R?NaN:1/0,ue*ve}var j={exp:0,mant:0};function H(Y){var S=0;return Y>=2?(S=b(1,Y),Y*=I(-S),Y>=2&&(Y/=2,S+=1)):Y<1&&(S=b(Y,2),S<=1023?Y*=I(S):(Y*=I(S-100),Y*=I(100)),S=-S),j.exp=S,j.mant=Y,j}var x=Math.pow(2,192);function b(Y,S){for(var M=0;Y*x=8388608&&(R.mant-=8388608,R.exp+=1)):(R.mant=v(R.mant-1,8388608),R.mant>=8388608&&(R.mant-=8388608,R.exp+=1),R.exp>254&&(R.mant=0,R.exp=255)),K=ue|R.exp<<23|R.mant,f(Y,K,M,y)):(S===0?K=1/S<0?2147483648:0:S===1/0?K=ue|2139095040:K=2143289344,f(Y,K,M,y))}var A=Math.pow(2,52);function G(Y,S,M,y){var R,K,ue,ve=0;S<0&&(ve=2147483648,S=-S),S&&S<1/0?(R=H(S),R.exp+=1023,R.exp<=0?(R.mant*=I(51+R.exp),R.exp=0):R.mant=(R.mant-1)*A,K=ve|R.exp<<20|R.mant/4294967296,ue=R.mant>>>0,h(Y,K,ue,M,y)):(S===0?(K=1/S<0?2147483648:0,ue=0):S===1/0?(K=ve+2146435072,ue=0):(K=2146959360,ue=0),h(Y,K,ue,M,y))}(function Y(){var S=t.exports||this;S.readWord=u,S.writeWord=f,S.writeDoubleWord=h,S.readFloat=P,S.writeFloat=k,S.readDouble=V,S.writeDouble=G,S._useFloatArray=function(M){S._usingFloatArray=M,M?(M=="full"&&(S.readFloatLE=e?i:r),S.writeFloatLE=e?o:n,M=="full"&&(S.readFloatBE=e?r:i),S.writeFloatBE=e?n:o,S.readDoubleLE=e?l:a,S.writeDoubleLE=e?c:s,S.readDoubleBE=e?a:l,S.writeDoubleBE=e?s:c):(S._usingFloatArray="",S.readFloatLE=function(R,K){return S.readFloat(R,K||0,"le")},S.writeFloatLE=function(R,K,ue){S.writeFloat(R,K,ue||0,"le")},S.readFloatBE=function(R,K){return S.readFloat(R,K||0,"bige")},S.writeFloatBE=function(R,K,ue){S.writeFloat(R,K,ue||0,"bige")},S.readDoubleLE=function(R,K){return S.readDouble(R,K||0,"le")},S.writeDoubleLE=function(R,K,ue){S.writeDouble(R,K,ue||0,"le")},S.readDoubleBE=function(R,K){return S.readDouble(R,K||0,"bige")},S.writeDoubleBE=function(R,K,ue){S.writeDouble(R,K,ue||0,"bige")})},S._getBigeCpu=function(){return e},S._setBigeCpu=function(M){e=M},S._useFloatArray(!1),S._useFloatArray(r&&a&&"fastest"),Y.prototype=S}).call(Ue)})(v7);var LL=v7.exports,FL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(W2,"__esModule",{value:!0});const TL=FL(Yd),gh=LL;class HL extends TL.default{constructor(e){super(e?8:4),this.isDouble=e}deserialize(e){return this.isDouble?gh.readDoubleLE(super.deserialize(e)):gh.readFloatLE(super.deserialize(e))}serialize(e){let r=[];return this.isDouble?(gh.writeDoubleLE(r,e),super.serialize(new Uint8Array(r))):(gh.writeFloatLE(r,e),super.serialize(new Uint8Array(r)))}}W2.default=HL;var S2={},DL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S2,"__esModule",{value:!0});const r4=yt,JL=DL(Md);class PL extends JL.default{deserialize(e){return(0,r4.base58_encode)(super.deserialize(e))}serialize(e){return super.serialize((0,r4.base58_decode)(e))}}S2.default=PL;var R2={},qL=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R2,"__esModule",{value:!0});const $L=qL(Md);class UL extends $L.default{deserialize(e){return new TextDecoder().decode(super.deserialize(e))}serialize(e){return super.serialize(new TextEncoder().encode(e))}}R2.default=UL;var N2={},x2=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(N2,"__esModule",{value:!0});const V1=x2(y2),QL=x2(Zu),KL=x2(ku),bh=yt;class eF{constructor(e,r){this.size=e,this.unsigned=r}deserialize(e){let r=(0,bh.varint_decode)(e);if(this.unsigned||(r=(0,bh.zigzag_decode)(r)),r.greaterOrEquals((0,V1.default)(2).pow(this.size*8-(this.unsigned?0:1))))throw new QL.default("number '"+r.toString()+"' too large for given type");return this.size<=6?r.toJSNumber():r.toString()}serialize(e){let r=(0,V1.default)(e);if(r.greaterOrEquals((0,V1.default)(2).pow(this.size*8-(this.unsigned?0:1))))throw new KL.default("number '"+r.toString()+"' too large for given type");return this.unsigned||(r=(0,bh.zigzag_encode)(r)),(0,bh.varint_encode)(r)}}N2.default=eF;var Au=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ip,"__esModule",{value:!0});Ip.ParserTypes=void 0;const tF=Au(C2),rF=kp,mh=Au(B2),n4=Au(W2),nF=Au(S2),i4=Au(R2),la=Au(N2);Ip.ParserTypes={int8:new la.default(1,!1),int16:new la.default(2,!1),int32:new la.default(4,!1),int64:new la.default(8,!1),uint8:new la.default(1,!0),uint16:new la.default(2,!0),uint32:new la.default(4,!0),uint64:new la.default(8,!0),fixed8:new mh.default(1),fixed16:new mh.default(2),fixed32:new mh.default(4),fixed64:new mh.default(8),bool:new tF.default,bytes:new rF.ByteParser,string:new i4.default,image:new i4.default,ipfs:new nF.default,float:new n4.default(!1),double:new n4.default(!0)};var o4;function w7(){return o4||(o4=1,function(t){var e=Ue&&Ue.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionGenerator=t.ExplorerActionGenerator=t.RpcActionGenerator=t.ParserTypes=t.serialize=t.deserialize=t.ObjectSchema=t.ExplorerApi=t.RpcApi=void 0;const r=e(mp);t.ExplorerActionGenerator=r.default;const n=cs;Object.defineProperty(t,"ActionGenerator",{enumerable:!0,get:function(){return n.ActionGenerator}});const i=e(yp);t.RpcActionGenerator=i.default;const o=e(g2);t.ExplorerApi=o.default;const a=e(BL());t.RpcApi=a.default;const s=_2();Object.defineProperty(t,"ObjectSchema",{enumerable:!0,get:function(){return s.ObjectSchema}});const l=Do;Object.defineProperty(t,"deserialize",{enumerable:!0,get:function(){return l.deserialize}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return l.serialize}});const c=Ip;Object.defineProperty(t,"ParserTypes",{enumerable:!0,get:function(){return c.ParserTypes}})}(G1)),G1}w7();const Sl=t=>{const{contracts:e}=t.network.config.efx;return e};class iF extends Error{}class oF extends Error{}class aF extends Error{constructor(e,r=0){super(e),this.retry=r}}class a4 extends Error{constructor(e,r=0){super(e),this.retry=r}}var ba;(function(t){t.FormData="formdata",t.ArrayBuffer="arraybuffer",t.Blob="blob",t.Text="text",t.JSON="json"})(ba||(ba={}));const G2=async({client:t,hash:e,ipfsContentForm:r=ba.JSON})=>{try{const{ipfs:n}=t.network.config,{ipfsCacheDurationInMs:i}=t.options,o=t.cache,a=`${e}-${r}`;if(i){const c=`${e}-${r}`,u=await o.get(c);if(u&&Date.now(){try{const{ipfs:r}=t.network.config,n=new Blob([JSON.stringify(e)],{type:"application/json"}),i=new FormData;if(i.append("file",n),n.size>1024*1024*10)throw new Error("File too large, max file size is: 10MB");const o={method:"POST",body:i},a=await t.fetchProvider.fetch(`${r.ipfsEndpoint}/api/v0/add?pin=true`,o);if(!a.ok){const l=await a.text();throw new Error(`Error in IPFS upload: ${l}`)}return(await a.json()).Hash}catch(r){throw console.error("Error in IPFS upload",r),r}},lF=t=>gn.decode(t).hexString,s4=async({client:t,session:e})=>{await t.setSession(e)},_7=async({client:t})=>{const{provider:e,network:r}=t,{tasks:n}=r.config.efx.contracts;try{const i=await e.v1.chain.get_table_rows({code:n,scope:n,table:"settings"}),[o]=i.rows;return o}catch(i){throw console.error(i),new Error("Error retrieving Force settings")}},cF=async({client:t,id:e})=>{const{contracts:r}=t.network.config.efx,n=await t.provider.v1.chain.get_table_rows({table:"campaign",code:r.tasks,scope:r.tasks,lower_bound:fr.from(e),upper_bound:fr.from(e),limit:1}),[i]=n.rows,{field_1:o}=i.content;return i.info=await G2({client:t,hash:o}),i};let I0=class extends zr{};I0=p([zr.type("vaddress",[Eo,Q])],I0);function ld(t,e){if(typeof t!="number"||typeof e!="number")throw new TypeError("Both lowerId and upperId must be numbers");const r=new Uint8Array(8);return r.set(Ve.from(t).byteArray,0),r.set(Ve.from(e).byteArray,4),rt.from(r)}const uF=(t,e)=>{const r=new cp(32);Q.from(e).toABI(r);const n=I0.from(t);r.writeByte(n.variantIdx),n.value.toABI(r);const i=new Uint8Array(32);return i.set(r.getData(),0),tt.from(i)},l4=async({client:t,actor:e})=>{const{provider:r,network:n}=t,{contracts:i}=n.config.efx,o=uF(Q.from(e),i.token);return(await r.v1.chain.get_table_rows({code:i.vaccount,table:"account",scope:i.vaccount,upper_bound:o,lower_bound:o,index_position:"secondary",key_type:"sha256"})).rows},fF=async({client:t,accountId:e})=>{const{provider:r,network:n}=t,{contracts:i}=n.config.efx,a=(await r.v1.chain.get_table_rows({code:i.vaccount,scope:i.vaccount,table:"account",limit:1,key_type:"i64",upper_bound:e,lower_bound:e})).rows[0];if(!a)throw new oF(`Account with id ${e} not found`);return a},Y2=async({client:t,id:e})=>{const{provider:r}=t,{tasks:n}=Sl(t),i=await r.v1.chain.get_table_rows({code:n,table:"batch",scope:n,lower_bound:fr.from(e),upper_bound:fr.from(e),limit:1}),[o]=i.rows;return o},dF=async({client:t,page:e=1,limit:r=20,reverse:n=!1,ipfsFetch:i=!0})=>{const{contracts:o}=t.network.config.efx,a=t.provider,s=[],l=fr.from((e-1)*r),c=await a.v1.chain.get_table_rows({key_type:"i128",code:o.tasks,table:"campaign",scope:o.tasks,lower_bound:l,limit:r,reverse:n});for(const u of c.rows){const f=u;i&&(f.info=await G2({client:t,hash:f.content.field_1})),s.push(f)}return{rows:s,next_key:c.next_key,more:c.more}},hF=async({client:t})=>{const e=[];let r=1,n=!0;for(;n;){const{rows:i,more:o}=await dF({client:t,page:r});e.push(...i),n=o,r++}return e},M2=async({client:t,lowerBound:e,upperBound:r,indexPosition:n="secondary"})=>{const{tasks:i}=Sl(t),o=await t.provider.v1.chain.get_table_rows({scope:i,code:i,table:"reservation",index_position:n,upper_bound:r,lower_bound:e}),{rows:a}=o;return a},I7=async({client:t,campaignId:e})=>{try{const r=ld(e,0),n=ld(e,Number(Ve.max));return await M2({client:t,lowerBound:r,upperBound:n})}catch(r){throw console.error(r),r}},pF=async({client:t,vAccountId:e})=>{try{if(!e)throw new Error("vAccountId is required");return await M2({client:t,lowerBound:rt.from(e),upperBound:rt.from(e),indexPosition:"fourth"})}catch(r){throw console.error(r),r}},Cb=async({client:t,campaignId:e,vAccountId:r})=>{try{const n=ld(e,r),i=await M2({client:t,lowerBound:n,upperBound:n}),[o]=i;return o}catch(n){throw console.error(n),n}},gF=async({client:t,campaignId:e,qualificationAssets:r})=>{if(!t.session)throw new Error("Session is required for this method.");const{authorization:n,actor:i,transact:o}=t.session,{tasks:a}=Sl(t),{vAccount:s}=t.session;if(!s||!s.id)throw new Error("Vaccount is not set.");const l=await Cb({client:t,campaignId:e,vAccountId:s.id});if(l)return l;try{return await o({action:{account:a,name:"reservetask",authorization:n,data:{campaign_id:e,account_id:s.id,quali_assets:r,payer:i,sig:null}}}),await Cb({client:t,campaignId:e,vAccountId:s.id})}catch(c){return console.error("Error while reserving task:",c),null}},k7=async({client:t,accountId:e,campaignId:r})=>{try{const{tasks:n}=Sl(t),{provider:i}=t,o=ld(r||0,e),a=ld(r||Number(Ve.max),e),{rows:s}=await i.v1.chain.get_table_rows({code:n,table:"acctaskidx",lower_bound:o,upper_bound:a});return s}catch(n){throw console.error(n),n}},bF=async({client:t,taskIndex:e,batchId:r})=>{try{const n=await Y2({client:t,id:r}),i=await G2({client:t,hash:n.content.field_1});if(!Array.isArray(i))throw new a4(`Task data retrieved from IPFS is not an array. ${String(i)}`);if(i.length<=e||e<0)throw new a4(`Task data retrieved from IPFS does not have a task at index ${e}. -${JSON.stringify(i)}`);return i[e]}catch(n){throw console.error("Error while fetching task data:",n),n}},mF=(t,e)=>bF({client:t,taskIndex:e.task_idx,batchId:e.batch_id}),yF=async({client:t,reservation:e,data:r})=>{try{if(!t.session)throw new iF("Session is required for this method.");const{authorization:n,transact:i,actor:o}=t.session,{tasks:a}=Sl(t),s=await sF({client:t,data:r}),l=lF(s);return await i({action:{account:a,name:"submittask",authorization:n,data:{campaign_id:Ve.from(e.campaign_id),account_id:Ve.from(e.account_id),task_idx:Ve.from(e.task_idx),data:{first:1,second:l},payer:o,sig:null}}})}catch(n){throw console.error(n),n}},vF=async({client:t,reverse:e=!1})=>{try{const{provider:r}=t,{tasks:n}=Sl(t),i=await r.v1.chain.get_table_rows({code:n,table:"submission",json:!0,reverse:e}),{rows:o}=i;return o}catch(r){throw console.error("Error while fetching tasks:",r),new Error("Failed to fetch tasks")}};var Oa;(function(t){t[t.EosEfx=191]="EosEfx",t[t.EosUsdt=12]="EosUsdt"})(Oa||(Oa={}));const c4=async t=>{try{return(await(fetch??window.fetch)("https://eos.greymass.com/v1/chain/get_table_rows",{method:"POST",body:JSON.stringify({json:!0,code:"swap.defi",scope:"swap.defi",table:"pairs",limit:1,lower_bound:t.valueOf(),upper_bound:t.valueOf()})})).json().then(n=>n.rows[0])}catch(e){throw console.error(e),new Error("Error retrieving EFX Ticker Price from DefiBox")}},wF=async()=>{try{const t=await c4(Oa.EosEfx),e=await c4(Oa.EosUsdt);return Number(t.price1_last)*Number(e.price0_last)}catch{throw new Error("Error retrieving EFX Ticker Price from DefiBox")}},_F=async({client:t,actor:e})=>{const{network:r,provider:n}=t,{contracts:i}=r.config.efx,[o]=await n.v1.chain.get_currency_balance(i.token,e),[a]=await n.v1.chain.get_currency_balance(i.usdt,e),[s]=await n.v1.chain.get_currency_balance(i.eostoken,e);if(!o&&!a&&!s)throw new Error("No efxBalance found");return{efxBalance:o,usdtBalance:a,eosBalance:s}};`${Oa.EosEfx}${Oa.EosUsdt}`,`${Oa.EosUsdt}${Oa.EosEfx}`;const IF=(t,e)=>new Date(`${new Date(t.last_submission_time)}UTC`).getTime()/1e3+e.payout_delay_sec{var e;return Number.parseFloat(((e=t.match(/[0-9.]+/))==null?void 0:e[0])||"0")},NU=(t,e)=>new Date(`${new Date(t.last_submission_time)}UTC`).getTime()/1e3+e.payout_delay_sec-Date.now()/1e3,Z7=async({client:t,vAccountId:e})=>{const{network:r,provider:n}=t,{contracts:i}=r.config.efx,o=await n.v1.chain.get_table_rows({code:i.tasks,scope:i.tasks,table:"payment",index_position:"tertiary",key_type:"i64",lower_bound:fr.from(e),upper_bound:fr.from(e)}),a=await _7({client:t}),s=o.rows.filter(u=>IF(u,a)),l=o.rows.reduce((u,f)=>u+u4(f.pending.quantity)||0,0),c=s.reduce((u,f)=>u+u4(f.pending.quantity)||0,0);return{pendingPayments:o.rows,claimablePayments:s,totalEfxPending:l,totalEfxClaimable:c}};let cd=class extends d{constructor(e,r){super({sym:e,contract:r})}};cd.abiName="extended_symbol";cd.abiFields=[{name:"contract",type:"name"},{name:"sym",type:"symbol"}];cd=p([d.type("extended_symbol")],cd);const kF=async({client:t,session:e,account:r})=>{const n=e??t.session;if(!n)throw new Error("No session provided");const i=r??n.actor,{actor:o}=n,{contracts:a,token:s}=t.network.config.efx,l=[{actor:o,permission:n.permission}],c={account:a.vaccount,name:"open",authorization:l,data:{acc:I0.from(i),symbol:new cd(`${s.precision},${s.symbol}`,a.token),payer:o}};return await n.transact({action:c})},ZF=({payments:t,tasks:e,authorization:r})=>{const n=[];for(const i of t)n.push({account:e,name:"payout",authorization:r,data:{payment_id:i.id}});return n},AF=({from_id:t,to_account:e,quantity:r,account:n,authorization:i})=>({account:n,name:"withdraw",authorization:i,data:{from_id:t,to_account:e,quantity:r,memo:""}}),CF=async({client:t,actor:e})=>{var u;if(!((u=t.session)!=null&&u.vAccount))throw new aF("vAccount is not set.");const{tasks:r,vaccount:n,token:i}=Sl(t),{authorization:o}=t.session,{claimablePayments:a,totalEfxClaimable:s}=await Z7({client:t,vAccountId:t.session.vAccount.id});if(!a.length)throw new Error("No payouts currently claimable.");const l=[];if(a)l.push(...ZF({payments:a,tasks:r,authorization:o}));else throw new Error("No pending payouts found");l.push(AF({account:n,from_id:t.session.vAccount.id,to_account:e,authorization:o,quantity:Gc.from({contract:i,quantity:`${s.toFixed(4)} EFX`}),memo:""}));const{transact:c}=t.session;return await c({actions:l})};function O2(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function BF(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=O2(r);return(i,o)=>n.then(a=>o(a.transaction(e,i).objectStore(e)))}let E1;function A7(){return E1||(E1=BF("keyval-store","keyval")),E1}function WF(t,e=A7()){return e("readonly",r=>O2(r.get(t)))}function SF(t,e,r=A7()){return r("readwrite",n=>(n.put(e,t),O2(n.transaction)))}const j1=new Map;class RF{size(){return j1.size}get(e){return j1.get(e)}set(e,r){j1.set(e,r)}}class NF{async get(e){return await WF(e)}set(e,r){SF(e,r)}}class xF{constructor(e){this.cache=e}get(e){return this.cache.get(e)}set(e,r){this.cache.set(e,r)}}const z1=t=>new xF(t),GF=async({client:t,actor:e,session:r})=>{try{let[n]=await l4({client:t,actor:e});return n||(await kF({client:t,session:r,account:e}),[n]=await l4({client:t,actor:e})),n}catch(n){throw console.log(n),new Error("Failed to get or create vAccount")}};var Ms;(function(t){t.EXECUTED="EXECUTED",t.SOFT_FAIL="soft_fail",t.HARD_FAIL="hard_fail",t.EXPIRED="EXPIRED",t.IRREVERSIBLE="IRREVERSIBLE",t.IN_BLOCK="IN_BLOCK"})(Ms||(Ms={}));function YF(t,e,r=Ms.IRREVERSIBLE,n=3){return new Promise((i,o)=>{let a=0;const s=setInterval(async()=>{try{a++;const l=await e.get_transaction_status(t);(l.state===Ms.SOFT_FAIL||l.state===Ms.HARD_FAIL||l.state===Ms.EXPIRED)&&(clearInterval(s),o(l)),(l==null?void 0:l.state)===r&&(clearInterval(s),i(l))}catch(l){a>n&&(clearInterval(s),o(l))}},3e3)})}class MF{get vAccount(){return this._vAccount}constructor(e,r){this.transact=async n=>{var o;const i=await this.wharfKitSession.transact({...n});return await YF((o=i.response)==null?void 0:o.transaction_id,this.wharfKitSession.client.v1.chain,Ms.IN_BLOCK),i},this.actor=e.actor,this.permission=e.permission,this.permissionLevel=e.permissionLevel,this.wharfKitSession=e,this.authorization=[{actor:this.actor,permission:this.permission}],this._vAccount=r}}const OF={ipfsEndpoint:"https://ipfs.effect.ai"},VF={ipfsEndpoint:"https://atomichub-ipfs.com/ipfs/",assetEndpoint:"https://eos.atomichub.io/explorer/asset/",atomicContract:"atomicassets"},EF={eosRelayerAccount:"effectrelayr",eosRelayerPermission:"active",eosRelayerUrl:"https://vaccount-relayer-service-jungle-96xyn.ondigitalocean.app"},C7=()=>({ipfs:OF,atomic:VF,relayer:EF}),B7={name:"jungle4",url:"https://jungle4.cryptolions.io/",id:"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",config:{efx:{token:{symbol:"EFX",precision:4},contracts:{tasks:"effecttasks2",token:"efxtoken1112",usdt:"tethertether",eostoken:"eosio.token",stake:"efxstake1111",feepool:"efxfeepool11",proposals:"efxproposals",vaccount:"efxaccount11",dao:"theeffectdao"}},...C7()}},W7={name:"eos",url:"https://eos.greymass.com/",id:"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",config:{efx:{token:{symbol:"EFX",precision:4},contracts:{tasks:"tasks.efx",token:"effecttokens",usdt:"tethertether",eostoken:"eosio.token",stake:"efxstakepool",feepool:"feepool.efx",proposals:"daoproposals",vaccount:"vaccount.efx",dao:"theeffectdao"}},...C7()}},jF=[W7,B7],zF={ipfsCacheDurationInMs:6e5};class f4{get session(){return this._session}constructor(e,r){var n;this._session=null,this.setSession=async i=>{try{if(!i)return this._session=null,this._session;const o=await GF({client:this,actor:i.actor,session:i});return this._session=i?new MF(i,o):null,this._session}catch(o){throw console.error(o),new Error("Failed to set session")}},this.options={...zF,...r},this.network=e,this.fetchProvider=new vu(this.network.url,{fetch:(n=this.options.fetchProvider)==null?void 0:n.fetch}),this.provider=new Wl({provider:this.fetchProvider}),this.options.cacheImplementation?this.cache=z1(this.options.cacheImplementation):typeof indexedDB<"u"?this.cache=z1(new NF):this.cache=z1(new RF)}}const XF=async({network:t,session:e,options:r={}})=>{if(!t&&!e)throw new Error("Network or Session configuration is required to create a client.");if(e){const n=jF.find(o=>o.id===e.chain.id.hexString);if(!n)throw new Error("Chain associated with session not found or not supported.");const i=new f4(n,r);return await i.setSession(e),i}if(!t)throw new Error("Network configuration is required to create a client.");return new f4(t,r)},GU=()=>{const{notify:t}=Rm(),{useReserveTask:e}=T7(),{mutateAsync:r}=e(),n=Mi(),i=bt(!1);return{mutate:async a=>{try{i.value=!0;const s=await r(a);(s!=null&&s.id||(s==null?void 0:s.id)===0)&&await n.push(`/campaign/${a}/task/`)}catch(s){console.error(s),t({type:"error",message:"Failed to reserve task"})}finally{i.value=!1}},loading:i}},LF=async(t,e,r)=>{let n=e.total_tasks-e.reservations_done,i=n,o=e.reservations_done-1;const s=(await I7({client:t,campaignId:e.id})).filter(l=>l.batch_id===e.active_batch);if(r&&(n||s.length)){const l=await Y2({client:t,id:e.active_batch});if(!l)return{campaignTasksAvailable:null,batchTaskAvailable:null};const c=await k7({client:t,accountId:r.id,campaignId:e.id});if(c.length>0){const u=c[0].value>=l.start_task_idx;u&&c[0].value>o&&(o=c[0].value),i=l.start_task_idx+l.num_tasks-1-o,u&&(n-=o-(e.reservations_done-1))}}if(s)for(const l of s)(Date.now()>l.reserved_on+props.campaign.max_task_time||l.account_id===(r==null?void 0:r.id))&&l.task_idx<=o&&(i++,n++);return{campaignTasksAvailable:n,batchTaskAvailable:i}};var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ml=typeof window>"u"||"Deno"in globalThis;function Un(){}function FF(t,e){return typeof t=="function"?t(e):t}function Bb(t){return typeof t=="number"&&t>=0&&t!==1/0}function S7(t,e){return Math.max(t+(e||0)-Date.now(),0)}function nc(t,e){return typeof t=="function"?t(e):t}function Ci(t,e){return typeof t=="function"?t(e):t}function d4(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=t;if(a){if(n){if(e.queryHash!==V2(a,e.options))return!1}else if(!ud(e.queryKey,a))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||o&&!o(e))}function h4(t,e){const{exact:r,status:n,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(r){if(yl(e.options.mutationKey)!==yl(o))return!1}else if(!ud(e.options.mutationKey,o))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function V2(t,e){return((e==null?void 0:e.queryKeyHashFn)||yl)(t)}function yl(t){return JSON.stringify(t,(e,r)=>Wb(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ud(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!ud(t[r],e[r])):!1}function R7(t,e){if(t===e)return t;const r=p4(t)&&p4(e);if(r||Wb(t)&&Wb(e)){const n=r?t:Object.keys(t),i=n.length,o=r?e:Object.keys(e),a=o.length,s=r?[]:{};let l=0;for(let c=0;c{setTimeout(e,t)})}function Sb(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?R7(t,e):e}function HF(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function DF(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var N7=Symbol(),x7=(t,e)=>!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===N7?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn,Os,wa,ic,x4,JF=(x4=class extends Cu{constructor(){super();De(this,Os);De(this,wa);De(this,ic);Oe(this,ic,e=>{if(!ml&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,wa)||this.setEventListener(q(this,ic))}onUnsubscribe(){var e;this.hasListeners()||((e=q(this,wa))==null||e.call(this),Oe(this,wa,void 0))}setEventListener(e){var r;Oe(this,ic,e),(r=q(this,wa))==null||r.call(this),Oe(this,wa,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){q(this,Os)!==e&&(Oe(this,Os,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof q(this,Os)=="boolean"?q(this,Os):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Os=new WeakMap,wa=new WeakMap,ic=new WeakMap,x4),E2=new JF,oc,_a,ac,G4,PF=(G4=class extends Cu{constructor(){super();De(this,oc,!0);De(this,_a);De(this,ac);Oe(this,ac,e=>{if(!ml&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,_a)||this.setEventListener(q(this,ac))}onUnsubscribe(){var e;this.hasListeners()||((e=q(this,_a))==null||e.call(this),Oe(this,_a,void 0))}setEventListener(e){var r;Oe(this,ac,e),(r=q(this,_a))==null||r.call(this),Oe(this,_a,e(this.setOnline.bind(this)))}setOnline(e){q(this,oc)!==e&&(Oe(this,oc,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return q(this,oc)}},oc=new WeakMap,_a=new WeakMap,ac=new WeakMap,G4),Z0=new PF;function qF(t){return Math.min(1e3*2**t,3e4)}function G7(t){return(t??"online")==="online"?Z0.isOnline():!0}var Y7=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function X1(t){return t instanceof Y7}function M7(t){let e=!1,r=0,n=!1,i,o,a;const s=new Promise((B,W)=>{o=B,a=W}),l=B=>{var W;n||(m(new Y7(B)),(W=t.abort)==null||W.call(t))},c=()=>{e=!0},u=()=>{e=!1},f=()=>E2.isFocused()&&(t.networkMode==="always"||Z0.isOnline())&&t.canRun(),h=()=>G7(t.networkMode)&&t.canRun(),g=B=>{var W;n||(n=!0,(W=t.onSuccess)==null||W.call(t,B),i==null||i(),o(B))},m=B=>{var W;n||(n=!0,(W=t.onError)==null||W.call(t,B),i==null||i(),a(B))},_=()=>new Promise(B=>{var W;i=C=>{(n||f())&&B(C)},(W=t.onPause)==null||W.call(t)}).then(()=>{var B;i=void 0,n||(B=t.onContinue)==null||B.call(t)}),I=()=>{if(n)return;let B;const W=r===0?t.initialPromise:void 0;try{B=W??t.fn()}catch(C){B=Promise.reject(C)}Promise.resolve(B).then(g).catch(C=>{var P;if(n)return;const N=t.retry??(ml?0:3),V=t.retryDelay??qF,z=typeof V=="function"?V(r,C):V,L=N===!0||typeof N=="number"&&rf()?void 0:_()).then(()=>{e?m(C):I()})})};return{promise:s,cancel:l,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:u,canStart:h,start:()=>(h()?I():_().then(I),s)}}function $F(){let t=[],e=0,r=h=>{h()},n=h=>{h()},i=h=>setTimeout(h,0);const o=h=>{i=h},a=h=>{let g;e++;try{g=h()}finally{e--,e||c()}return g},s=h=>{e?t.push(h):i(()=>{r(h)})},l=h=>(...g)=>{s(()=>{h(...g)})},c=()=>{const h=t;t=[],h.length&&i(()=>{n(()=>{h.forEach(g=>{r(g)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h},setScheduler:o}}var Pr=$F(),Vs,Y4,O7=(Y4=class{constructor(){De(this,Vs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bb(this.gcTime)&&Oe(this,Vs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ml?1/0:5*60*1e3))}clearGcTimeout(){q(this,Vs)&&(clearTimeout(q(this,Vs)),Oe(this,Vs,void 0))}},Vs=new WeakMap,Y4),sc,lc,$n,en,dd,Es,Zi,ko,M4,UF=(M4=class extends O7{constructor(e){super();De(this,Zi);De(this,sc);De(this,lc);De(this,$n);De(this,en);De(this,dd);De(this,Es);Oe(this,Es,!1),Oe(this,dd,e.defaultOptions),this.setOptions(e.options),this.observers=[],Oe(this,$n,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Oe(this,sc,e.state||QF(this.options)),this.state=q(this,sc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=q(this,en))==null?void 0:e.promise}setOptions(e){this.options={...q(this,dd),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,$n).remove(this)}setData(e,r){const n=Sb(this.state.data,e,this.options);return nt(this,Zi,ko).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){nt(this,Zi,ko).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,i;const r=(n=q(this,en))==null?void 0:n.promise;return(i=q(this,en))==null||i.cancel(e),r?r.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,sc))}isActive(){return this.observers.some(e=>Ci(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!S7(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=q(this,en))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=q(this,en))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),q(this,$n).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(q(this,en)&&(q(this,Es)?q(this,en).cancel({revert:!0}):q(this,en).cancelRetry()),this.scheduleGc()),q(this,$n).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,Zi,ko).call(this,{type:"invalidate"})}fetch(e,r){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,en))return q(this,en).continueRetry(),q(this,en).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Oe(this,Es,!0),n.signal)})},o=()=>{const f=x7(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return i(h),Oe(this,Es,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),Oe(this,lc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&nt(this,Zi,ko).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,g,m,_;X1(f)&&f.silent||nt(this,Zi,ko).call(this,{type:"error",error:f}),X1(f)||((g=(h=q(this,$n).config).onError)==null||g.call(h,f,this),(_=(m=q(this,$n).config).onSettled)==null||_.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,en,M7({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,g,m,_;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(g=(h=q(this,$n).config).onSuccess)==null||g.call(h,f,this),(_=(m=q(this,$n).config).onSettled)==null||_.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,h)=>{nt(this,Zi,ko).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{nt(this,Zi,ko).call(this,{type:"pause"})},onContinue:()=>{nt(this,Zi,ko).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),q(this,en).start()}},sc=new WeakMap,lc=new WeakMap,$n=new WeakMap,en=new WeakMap,dd=new WeakMap,Es=new WeakMap,Zi=new WeakSet,ko=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...V7(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return X1(i)&&i.revert&&q(this,lc)?{...q(this,lc),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),q(this,$n).notify({query:this,type:"updated",action:e})})},M4);function V7(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G7(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function QF(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Fi,O4,E7=(O4=class extends Cu{constructor(r={}){super();De(this,Fi);this.config=r,Oe(this,Fi,new Map)}build(r,n,i){const o=n.queryKey,a=n.queryHash??V2(o,n);let s=this.get(a);return s||(s=new UF({cache:this,queryKey:o,queryHash:a,options:r.defaultQueryOptions(n),state:i,defaultOptions:r.getQueryDefaults(o)}),this.add(s)),s}add(r){q(this,Fi).has(r.queryHash)||(q(this,Fi).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const n=q(this,Fi).get(r.queryHash);n&&(r.destroy(),n===r&&q(this,Fi).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Pr.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return q(this,Fi).get(r)}getAll(){return[...q(this,Fi).values()]}find(r){const n={exact:!0,...r};return this.getAll().find(i=>d4(n,i))}findAll(r={}){const n=this.getAll();return Object.keys(r).length>0?n.filter(i=>d4(r,i)):n}notify(r){Pr.batch(()=>{this.listeners.forEach(n=>{n(r)})})}onFocus(){Pr.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Pr.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Fi=new WeakMap,O4),Ti,cn,js,Hi,ca,V4,KF=(V4=class extends O7{constructor(e){super();De(this,Hi);De(this,Ti);De(this,cn);De(this,js);this.mutationId=e.mutationId,Oe(this,cn,e.mutationCache),Oe(this,Ti,[]),this.state=e.state||j7(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){q(this,Ti).includes(e)||(q(this,Ti).push(e),this.clearGcTimeout(),q(this,cn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Oe(this,Ti,q(this,Ti).filter(r=>r!==e)),this.scheduleGc(),q(this,cn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){q(this,Ti).length||(this.state.status==="pending"?this.scheduleGc():q(this,cn).remove(this))}continue(){var e;return((e=q(this,js))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,s,l,c,u,f,h,g,m,_,I,B,W,C,N,V,z,L;Oe(this,js,M7({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,j)=>{nt(this,Hi,ca).call(this,{type:"failed",failureCount:P,error:j})},onPause:()=>{nt(this,Hi,ca).call(this,{type:"pause"})},onContinue:()=>{nt(this,Hi,ca).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,cn).canRun(this)}));const r=this.state.status==="pending",n=!q(this,js).canStart();try{if(!r){nt(this,Hi,ca).call(this,{type:"pending",variables:e,isPaused:n}),await((o=(i=q(this,cn).config).onMutate)==null?void 0:o.call(i,e,this));const j=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,e));j!==this.state.context&&nt(this,Hi,ca).call(this,{type:"pending",context:j,variables:e,isPaused:n})}const P=await q(this,js).start();return await((c=(l=q(this,cn).config).onSuccess)==null?void 0:c.call(l,P,e,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,P,e,this.state.context)),await((g=(h=q(this,cn).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this)),await((_=(m=this.options).onSettled)==null?void 0:_.call(m,P,null,e,this.state.context)),nt(this,Hi,ca).call(this,{type:"success",data:P}),P}catch(P){try{throw await((B=(I=q(this,cn).config).onError)==null?void 0:B.call(I,P,e,this.state.context,this)),await((C=(W=this.options).onError)==null?void 0:C.call(W,P,e,this.state.context)),await((V=(N=q(this,cn).config).onSettled)==null?void 0:V.call(N,void 0,P,this.state.variables,this.state.context,this)),await((L=(z=this.options).onSettled)==null?void 0:L.call(z,void 0,P,e,this.state.context)),P}finally{nt(this,Hi,ca).call(this,{type:"error",error:P})}}finally{q(this,cn).runNext(this)}}},Ti=new WeakMap,cn=new WeakMap,js=new WeakMap,Hi=new WeakSet,ca=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Pr.batch(()=>{q(this,Ti).forEach(n=>{n.onMutationUpdate(e)}),q(this,cn).notify({mutation:this,type:"updated",action:e})})},V4);function j7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,hd,E4,z7=(E4=class extends Cu{constructor(r={}){super();De(this,Vn);De(this,hd);this.config=r,Oe(this,Vn,new Map),Oe(this,hd,Date.now())}build(r,n,i){const o=new KF({mutationCache:this,mutationId:++Od(this,hd)._,options:r.defaultMutationOptions(n),state:i});return this.add(o),o}add(r){const n=yh(r),i=q(this,Vn).get(n)??[];i.push(r),q(this,Vn).set(n,i),this.notify({type:"added",mutation:r})}remove(r){var i;const n=yh(r);if(q(this,Vn).has(n)){const o=(i=q(this,Vn).get(n))==null?void 0:i.filter(a=>a!==r);o&&(o.length===0?q(this,Vn).delete(n):q(this,Vn).set(n,o))}this.notify({type:"removed",mutation:r})}canRun(r){var i;const n=(i=q(this,Vn).get(yh(r)))==null?void 0:i.find(o=>o.state.status==="pending");return!n||n===r}runNext(r){var i;const n=(i=q(this,Vn).get(yh(r)))==null?void 0:i.find(o=>o!==r&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Pr.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...q(this,Vn).values()].flat()}find(r){const n={exact:!0,...r};return this.getAll().find(i=>h4(n,i))}findAll(r={}){return this.getAll().filter(n=>h4(r,n))}notify(r){Pr.batch(()=>{this.listeners.forEach(n=>{n(r)})})}resumePausedMutations(){const r=this.getAll().filter(n=>n.state.isPaused);return Pr.batch(()=>Promise.all(r.map(n=>n.continue().catch(Un))))}},Vn=new WeakMap,hd=new WeakMap,E4);function yh(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function eT(t){return{onFetch:(e,r)=>{const n=async()=>{var m,_,I,B,W;const i=e.options,o=(I=(_=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:_.fetchMore)==null?void 0:I.direction,a=((B=e.state.data)==null?void 0:B.pages)||[],s=((W=e.state.data)==null?void 0:W.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},f=x7(e.options,e.fetchOptions),h=async(C,N,V)=>{if(c)return Promise.reject();if(N==null&&C.pages.length)return Promise.resolve(C);const z={queryKey:e.queryKey,pageParam:N,direction:V?"backward":"forward",meta:e.options.meta};u(z);const L=await f(z),{maxPages:P}=e.options,j=V?DF:HF;return{pages:j(C.pages,L,P),pageParams:j(C.pageParams,N,P)}};let g;if(o&&a.length){const C=o==="backward",N=C?tT:b4,V={pages:a,pageParams:s},z=N(i,V);g=await h(V,z,C)}else{g=await h(l,s[0]??i.initialPageParam);const C=t??a.length;for(let N=1;N{var i,o;return(o=(i=e.options).persister)==null?void 0:o.call(i,n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=n}}}function b4(t,{pages:e,pageParams:r}){const n=e.length-1;return t.getNextPageParam(e[n],e,r[n],r)}function tT(t,{pages:e,pageParams:r}){var n;return(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r)}var hr,Ia,ka,cc,uc,Za,fc,dc,j4,rT=(j4=class{constructor(e={}){De(this,hr);De(this,Ia);De(this,ka);De(this,cc);De(this,uc);De(this,Za);De(this,fc);De(this,dc);Oe(this,hr,e.queryCache||new E7),Oe(this,Ia,e.mutationCache||new z7),Oe(this,ka,e.defaultOptions||{}),Oe(this,cc,new Map),Oe(this,uc,new Map),Oe(this,Za,0)}mount(){Od(this,Za)._++,q(this,Za)===1&&(Oe(this,fc,E2.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,hr).onFocus())})),Oe(this,dc,Z0.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,hr).onOnline())})))}unmount(){var e,r;Od(this,Za)._--,q(this,Za)===0&&((e=q(this,fc))==null||e.call(this),Oe(this,fc,void 0),(r=q(this,dc))==null||r.call(this),Oe(this,dc,void 0))}isFetching(e){return q(this,hr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Ia).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=q(this,hr).get(r.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const r=this.getQueryData(e.queryKey);if(r===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),i=q(this,hr).build(this,n);return e.revalidateIfStale&&i.isStaleByTime(nc(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(r)}}getQueriesData(e){return q(this,hr).findAll(e).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(e,r,n){const i=this.defaultQueryOptions({queryKey:e}),o=q(this,hr).get(i.queryHash),a=o==null?void 0:o.state.data,s=FF(r,a);if(s!==void 0)return q(this,hr).build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,r,n){return Pr.batch(()=>q(this,hr).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=q(this,hr).get(r.queryHash))==null?void 0:n.state}removeQueries(e){const r=q(this,hr);Pr.batch(()=>{r.findAll(e).forEach(n=>{r.remove(n)})})}resetQueries(e,r){const n=q(this,hr),i={type:"active",...e};return Pr.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(i,r)))}cancelQueries(e={},r={}){const n={revert:!0,...r},i=Pr.batch(()=>q(this,hr).findAll(e).map(o=>o.cancel(n)));return Promise.all(i).then(Un).catch(Un)}invalidateQueries(e={},r={}){return Pr.batch(()=>{if(q(this,hr).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,r)})}refetchQueries(e={},r){const n={...r,cancelRefetch:(r==null?void 0:r.cancelRefetch)??!0},i=Pr.batch(()=>q(this,hr).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(Un)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(Un)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const n=q(this,hr).build(this,r);return n.isStaleByTime(nc(r.staleTime,n))?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=eT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}resumePausedMutations(){return Z0.isOnline()?q(this,Ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,hr)}getMutationCache(){return q(this,Ia)}getDefaultOptions(){return q(this,ka)}setDefaultOptions(e){Oe(this,ka,e)}setQueryDefaults(e,r){q(this,cc).set(yl(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...q(this,cc).values()];let n={};return r.forEach(i=>{ud(e,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(e,r){q(this,uc).set(yl(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...q(this,uc).values()];let n={};return r.forEach(i=>{ud(e,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const r={...q(this,ka).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=V2(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===N7&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,ka).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,hr).clear(),q(this,Ia).clear()}},hr=new WeakMap,Ia=new WeakMap,ka=new WeakMap,cc=new WeakMap,uc=new WeakMap,Za=new WeakMap,fc=new WeakMap,dc=new WeakMap,j4),mn,dt,pd,un,zs,hc,Di,gd,pc,gc,Xs,Ls,Aa,bc,Ct,Hu,Rb,Nb,xb,Gb,Yb,Mb,Ob,X7,z4,nT=(z4=class extends Cu{constructor(e,r){super();De(this,Ct);De(this,mn);De(this,dt);De(this,pd);De(this,un);De(this,zs);De(this,hc);De(this,Di);De(this,gd);De(this,pc);De(this,gc);De(this,Xs);De(this,Ls);De(this,Aa);De(this,bc,new Set);this.options=r,Oe(this,mn,e),Oe(this,Di,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,dt).addObserver(this),m4(q(this,dt),this.options)?nt(this,Ct,Hu).call(this):this.updateResult(),nt(this,Ct,Gb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vb(q(this,dt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vb(q(this,dt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nt(this,Ct,Yb).call(this),nt(this,Ct,Mb).call(this),q(this,dt).removeObserver(this)}setOptions(e,r){const n=this.options,i=q(this,dt);if(this.options=q(this,mn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ci(this.options.enabled,q(this,dt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nt(this,Ct,Ob).call(this),q(this,dt).setOptions(this.options),n._defaulted&&!k0(this.options,n)&&q(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,dt),observer:this});const o=this.hasListeners();o&&y4(q(this,dt),i,this.options,n)&&nt(this,Ct,Hu).call(this),this.updateResult(r),o&&(q(this,dt)!==i||Ci(this.options.enabled,q(this,dt))!==Ci(n.enabled,q(this,dt))||nc(this.options.staleTime,q(this,dt))!==nc(n.staleTime,q(this,dt)))&&nt(this,Ct,Rb).call(this);const a=nt(this,Ct,Nb).call(this);o&&(q(this,dt)!==i||Ci(this.options.enabled,q(this,dt))!==Ci(n.enabled,q(this,dt))||a!==q(this,Aa))&&nt(this,Ct,xb).call(this,a)}getOptimisticResult(e){const r=q(this,mn).getQueryCache().build(q(this,mn),e),n=this.createResult(r,e);return oT(this,n)&&(Oe(this,un,n),Oe(this,hc,this.options),Oe(this,zs,q(this,dt).state)),n}getCurrentResult(){return q(this,un)}trackResult(e,r){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),e[i])})}),n}trackProp(e){q(this,bc).add(e)}getCurrentQuery(){return q(this,dt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=q(this,mn).defaultQueryOptions(e),n=q(this,mn).getQueryCache().build(q(this,mn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(e){return nt(this,Ct,Hu).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,un)))}createResult(e,r){var L;const n=q(this,dt),i=this.options,o=q(this,un),a=q(this,zs),s=q(this,hc),c=e!==n?e.state:q(this,pd),{state:u}=e;let f={...u},h=!1,g;if(r._optimisticResults){const P=this.hasListeners(),j=!P&&m4(e,r),H=P&&y4(e,n,r,i);(j||H)&&(f={...f,...V7(u.data,e.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:_,status:I}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(a==null?void 0:a.data)&&r.select===q(this,gd))g=q(this,pc);else try{Oe(this,gd,r.select),g=r.select(f.data),g=Sb(o==null?void 0:o.data,g,r),Oe(this,pc,g),Oe(this,Di,null)}catch(P){Oe(this,Di,P)}else g=f.data;if(r.placeholderData!==void 0&&g===void 0&&I==="pending"){let P;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))P=o.data;else if(P=typeof r.placeholderData=="function"?r.placeholderData((L=q(this,gc))==null?void 0:L.state.data,q(this,gc)):r.placeholderData,r.select&&P!==void 0)try{P=r.select(P),Oe(this,Di,null)}catch(j){Oe(this,Di,j)}P!==void 0&&(I="success",g=Sb(o==null?void 0:o.data,P,r),h=!0)}q(this,Di)&&(m=q(this,Di),g=q(this,pc),_=Date.now(),I="error");const B=f.fetchStatus==="fetching",W=I==="pending",C=I==="error",N=W&&B,V=g!==void 0;return{status:I,fetchStatus:f.fetchStatus,isPending:W,isSuccess:I==="success",isError:C,isInitialLoading:N,isLoading:N,data:g,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:_,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:B,isRefetching:B&&!W,isLoadingError:C&&!V,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&V,isStale:j2(e,r),refetch:this.refetch}}updateResult(e){const r=q(this,un),n=this.createResult(q(this,dt),this.options);if(Oe(this,zs,q(this,dt).state),Oe(this,hc,this.options),q(this,zs).data!==void 0&&Oe(this,gc,q(this,dt)),k0(n,r))return;Oe(this,un,n);const i={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!q(this,bc).size)return!0;const l=new Set(s??q(this,bc));return this.options.throwOnError&&l.add("error"),Object.keys(q(this,un)).some(c=>{const u=c;return q(this,un)[u]!==r[u]&&l.has(u)})};(e==null?void 0:e.listeners)!==!1&&o()&&(i.listeners=!0),nt(this,Ct,X7).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nt(this,Ct,Gb).call(this)}},mn=new WeakMap,dt=new WeakMap,pd=new WeakMap,un=new WeakMap,zs=new WeakMap,hc=new WeakMap,Di=new WeakMap,gd=new WeakMap,pc=new WeakMap,gc=new WeakMap,Xs=new WeakMap,Ls=new WeakMap,Aa=new WeakMap,bc=new WeakMap,Ct=new WeakSet,Hu=function(e){nt(this,Ct,Ob).call(this);let r=q(this,dt).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Un)),r},Rb=function(){nt(this,Ct,Yb).call(this);const e=nc(this.options.staleTime,q(this,dt));if(ml||q(this,un).isStale||!Bb(e))return;const n=S7(q(this,un).dataUpdatedAt,e)+1;Oe(this,Xs,setTimeout(()=>{q(this,un).isStale||this.updateResult()},n))},Nb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,dt)):this.options.refetchInterval)??!1},xb=function(e){nt(this,Ct,Mb).call(this),Oe(this,Aa,e),!(ml||Ci(this.options.enabled,q(this,dt))===!1||!Bb(q(this,Aa))||q(this,Aa)===0)&&Oe(this,Ls,setInterval(()=>{(this.options.refetchIntervalInBackground||E2.isFocused())&&nt(this,Ct,Hu).call(this)},q(this,Aa)))},Gb=function(){nt(this,Ct,Rb).call(this),nt(this,Ct,xb).call(this,nt(this,Ct,Nb).call(this))},Yb=function(){q(this,Xs)&&(clearTimeout(q(this,Xs)),Oe(this,Xs,void 0))},Mb=function(){q(this,Ls)&&(clearInterval(q(this,Ls)),Oe(this,Ls,void 0))},Ob=function(){const e=q(this,mn).getQueryCache().build(q(this,mn),this.options);if(e===q(this,dt))return;const r=q(this,dt);Oe(this,dt,e),Oe(this,pd,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},X7=function(e){Pr.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(q(this,un))}),q(this,mn).getQueryCache().notify({query:q(this,dt),type:"observerResultsUpdated"})})},z4);function iT(t,e){return Ci(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function m4(t,e){return iT(t,e)||t.state.data!==void 0&&Vb(t,e,e.refetchOnMount)}function Vb(t,e,r){if(Ci(e.enabled,t)!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&j2(t,e)}return!1}function y4(t,e,r,n){return(t!==e||Ci(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&j2(t,r)}function j2(t,e){return Ci(e.enabled,t)!==!1&&t.isStaleByTime(nc(e.staleTime,t))}function oT(t,e){return!k0(t.getCurrentResult(),e)}var Ca,Ba,yn,Bo,Yo,Oh,Eb,X4,aT=(X4=class extends Cu{constructor(r,n){super();De(this,Yo);De(this,Ca);De(this,Ba);De(this,yn);De(this,Bo);Oe(this,Ca,r),this.setOptions(n),this.bindMethods(),nt(this,Yo,Oh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=q(this,Ca).defaultMutationOptions(r),k0(this.options,n)||q(this,Ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,yn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&yl(n.mutationKey)!==yl(this.options.mutationKey)?this.reset():((i=q(this,yn))==null?void 0:i.state.status)==="pending"&&q(this,yn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,yn))==null||r.removeObserver(this)}onMutationUpdate(r){nt(this,Yo,Oh).call(this),nt(this,Yo,Eb).call(this,r)}getCurrentResult(){return q(this,Ba)}reset(){var r;(r=q(this,yn))==null||r.removeObserver(this),Oe(this,yn,void 0),nt(this,Yo,Oh).call(this),nt(this,Yo,Eb).call(this)}mutate(r,n){var i;return Oe(this,Bo,n),(i=q(this,yn))==null||i.removeObserver(this),Oe(this,yn,q(this,Ca).getMutationCache().build(q(this,Ca),this.options)),q(this,yn).addObserver(this),q(this,yn).execute(r)}},Ca=new WeakMap,Ba=new WeakMap,yn=new WeakMap,Bo=new WeakMap,Yo=new WeakSet,Oh=function(){var n;const r=((n=q(this,yn))==null?void 0:n.state)??j7();Oe(this,Ba,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Eb=function(r){Pr.batch(()=>{var n,i,o,a,s,l,c,u;if(q(this,Bo)&&this.hasListeners()){const f=q(this,Ba).variables,h=q(this,Ba).context;(r==null?void 0:r.type)==="success"?((i=(n=q(this,Bo)).onSuccess)==null||i.call(n,r.data,f,h),(a=(o=q(this,Bo)).onSettled)==null||a.call(o,r.data,null,f,h)):(r==null?void 0:r.type)==="error"&&((l=(s=q(this,Bo)).onError)==null||l.call(s,r.error,f,h),(u=(c=q(this,Bo)).onSettled)==null||u.call(c,void 0,r.error,f,h))}this.listeners.forEach(f=>{f(q(this,Ba))})})},X4);function sT(t){return t}function lT(t,e,r){var l;if(typeof e!="object"||e===null)return;const n=t.getMutationCache(),i=t.getQueryCache(),o=((l=t.getDefaultOptions().hydrate)==null?void 0:l.deserializeData)??sT,a=e.mutations||[],s=e.queries||[];a.forEach(({state:c,...u})=>{var f,h;n.build(t,{...(f=t.getDefaultOptions().hydrate)==null?void 0:f.mutations,...(h=r==null?void 0:r.defaultOptions)==null?void 0:h.mutations,...u},c)}),s.forEach(({queryKey:c,state:u,queryHash:f,meta:h,promise:g})=>{var I,B;let m=i.get(f);const _=u.data===void 0?u.data:o(u.data);if(m){if(m.state.dataUpdatedAt{t[r]=e[r]})}function zb(t,e){if(e){const r=e(t);if(r===void 0&&kr(t)||r!==void 0)return r}if(Array.isArray(t))return t.map(r=>zb(r,e));if(typeof t=="object"&&uT(t)){const r=Object.entries(t).map(([n,i])=>[n,zb(i,e)]);return Object.fromEntries(r)}return t}function st(t){return zb(t,e=>{if(kr(e))return st(ze(e))})}function uT(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Xb(t,e){return typeof t=="function"?t(...e):!!t}function z2(t=""){if(!fm())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=L7(t),r=$r(e);if(!r)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return r}var fT=class extends E7{find(t){return super.find(st(t))}findAll(t={}){return super.findAll(st(t))}},dT=class extends z7{find(t){return super.find(st(t))}findAll(t={}){return super.findAll(st(t))}},F7=class extends rT{constructor(t={}){const e={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new fT,mutationCache:t.mutationCache||new dT};super(e),this.isRestoring=bt(!1)}isFetching(t={}){return super.isFetching(st(t))}isMutating(t={}){return super.isMutating(st(t))}getQueryData(t){return super.getQueryData(st(t))}ensureQueryData(t){return super.ensureQueryData(st(t))}getQueriesData(t){return super.getQueriesData(st(t))}setQueryData(t,e,r={}){return super.setQueryData(st(t),e,st(r))}setQueriesData(t,e,r={}){return super.setQueriesData(st(t),e,st(r))}getQueryState(t){return super.getQueryState(st(t))}removeQueries(t={}){return super.removeQueries(st(t))}resetQueries(t={},e={}){return super.resetQueries(st(t),st(e))}cancelQueries(t={},e={}){return super.cancelQueries(st(t),st(e))}invalidateQueries(t={},e={}){return new Promise(r=>{setTimeout(async()=>{await super.invalidateQueries(st(t),st(e)),r()},0)})}refetchQueries(t={},e={}){return super.refetchQueries(st(t),st(e))}fetchQuery(t){return super.fetchQuery(st(t))}prefetchQuery(t){return super.prefetchQuery(st(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(st(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(st(t))}setDefaultOptions(t){super.setDefaultOptions(st(t))}setQueryDefaults(t,e){super.setQueryDefaults(st(t),st(e))}getQueryDefaults(t){return super.getQueryDefaults(st(t))}setMutationDefaults(t,e){super.setMutationDefaults(st(t),st(e))}getMutationDefaults(t){return super.getMutationDefaults(st(t))}},hT={install:(t,e={})=>{const r=L7(e.queryClientKey);let n;if("queryClient"in e&&e.queryClient)n=e.queryClient;else{const a="queryClientConfig"in e?e.queryClientConfig:void 0;n=new F7(a)}ml||n.mount();let i=()=>{};if(e.clientPersister){n.isRestoring.value=!0;const[a,s]=e.clientPersister(n);i=a,s.then(()=>{var l;n.isRestoring.value=!1,(l=e.clientPersisterOnSuccess)==null||l.call(e,n)})}const o=()=>{n.unmount(),i()};if(t.onUnmount)t.onUnmount(o);else{const a=t.unmount;t.unmount=function(){o(),a()}}t.provide(r,n)}};function pT(t,e,r){const n=z2(),i=qe(()=>{const h=st(e);typeof h.enabled=="function"&&(h.enabled=h.enabled());const g=n.defaultQueryOptions(h);return g._optimisticResults=n.isRestoring.value?"isRestoring":"optimistic",g}),o=new t(n,i.value),a=Ln(o.getCurrentResult());let s=()=>{};er(n.isRestoring,h=>{h||(s(),s=o.subscribe(g=>{jb(a,g)}))},{immediate:!0});const l=()=>{o.setOptions(i.value),jb(a,o.getCurrentResult())};er(i,l),Ub(()=>{s()});const c=(...h)=>(l(),a.refetch(...h)),u=()=>new Promise((h,g)=>{let m=()=>{};const _=()=>{if(i.value.enabled!==!1){o.setOptions(i.value);const I=o.getOptimisticResult(i.value);I.isStale?(m(),o.fetchOptimistic(i.value).then(h,B=>{Xb(i.value.throwOnError,[B,o.getCurrentQuery()])?g(B):h(o.getCurrentResult())})):(m(),h(I))}};_(),m=er(i,_)});er(()=>a.error,h=>{if(a.isError&&!a.isFetching&&Xb(i.value.throwOnError,[h,o.getCurrentQuery()]))throw h});const f=pw(md(a));for(const h in a)typeof a[h]=="function"&&(f[h]=a[h]);return f.suspense=u,f.refetch=c,f}function sn(t,e){return pT(nT,t)}function L1(t,e){const r=z2(),n=qe(()=>r.defaultMutationOptions(st(t))),i=new aT(r,n.value),o=Ln(i.getCurrentResult()),a=i.subscribe(c=>{jb(o,c)}),s=(c,u)=>{i.mutate(c,u).catch(()=>{})};er(n,()=>{i.setOptions(n.value)}),Ub(()=>{a()});const l=pw(md(o));return er(()=>o.error,c=>{if(c&&Xb(n.value.throwOnError,[c]))throw c}),{...l,mutate:s,mutateAsync:o.mutate,reset:o.reset}}let Lb;const T7=()=>{if(Lb)return Lb;throw new Error("Client not initialized. Please use the `initClient` method to initialize the client.")},gT=async()=>{Lb=await bT()},bT=async()=>{const{notify:t}=Rm(),{sessionKit:e}=MX();e.restore().then(A=>{A&&v(A).catch(console.error)});const n=Go().public.EOS_NETWORK=="eos"?W7:B7,i=Ja(await XF({network:n,options:{ipfsCacheDurationInMs:6e5}})),o=bt(null),a=qe(()=>{var A;return((A=o.value)==null?void 0:A.actor)||null}),s=qe(()=>{var A;return((A=o.value)==null?void 0:A.permission)||null}),l=qe(()=>{var A;return((A=o.value)==null?void 0:A.vAccount)||null}),c=bt(!1),u=qe(()=>!!o.value),f=()=>{const A=z2();return L1({mutationFn:async()=>{if(!a.value||!s.value)throw new Error("User not logged in");return await CF({client:i.value,actor:a.value})},onSuccess(){t({type:"success",message:"Payout successful"}),A.invalidateQueries({queryKey:["balance",a.value]})}})},h=()=>L1({mutationFn:async A=>await gF({client:i.value,campaignId:A})}),g=()=>L1({mutationFn:async({reservation:A,data:G})=>await yF({client:i.value,reservation:A,data:G})}),m=()=>sn({queryKey:["accountAssets",qe(()=>a.value)],enabled:qe(()=>!!a.value),queryFn:async()=>{if(!a.value)throw new Error("User not logged in");return await OX({client:i.value,account:a.value})}}),_=()=>sn({queryKey:["forceSettings"],queryFn:async()=>await _7({client:i.value})}),I=A=>sn({queryKey:["balance",qe(()=>A.value)],enabled:!!A.value,queryFn:async()=>{if(!A.value)throw new Error("Account not found");return await _F({client:i.value,actor:A.value})}}),B=A=>sn({queryKey:["account",A],queryFn:async()=>await fF({client:i.value,accountId:A})}),W=()=>sn({queryKey:["tasks"],queryFn:async()=>await vF({client:i.value,reverse:!0})}),C=()=>sn({queryKey:["pendingPayments",qe(()=>a.value),qe(()=>{var A;return(A=l.value)==null?void 0:A.id})],enabled:qe(()=>{var A;return!!((A=l.value)!=null&&A.id)}),queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await Z7({client:i.value,vAccountId:l.value.id})}}),N=()=>sn({queryKey:["efxPrice"],queryFn:async()=>await wF()}),V=({calculateAvailableTasks:A}={calculateAvailableTasks:!1})=>{const G=Go(),Y=sn({staleTime:G.public.CAMPAIGN_CACHE_DURATION,gcTime:G.public.CAMPAIGN_CACHE_DURATION,queryKey:["campaigns"],queryFn:async()=>{const M=await hF({client:i.value}),R=Go().public.AUTHORIZED_REQUESTERS,K=M.filter(ue=>R.includes(ue.owner[1]));if(A)for(const ue of K){const ve=await LF(i.value,ue,l.value);ue.campaignTasksAvailable=ve.campaignTasksAvailable,ue.batchTaskAvailable=ve.batchTaskAvailable}return K}}),S=qe(()=>A&&Y.data.value&&Y.data.value.reduce((M,y)=>y.campaignTasksAvailable?M+y.campaignTasksAvailable:!1,0));return{...Y,totalTasksAvailable:S}},z=(A,G)=>sn({queryKey:["campaign",A],enabled:G,queryFn:async()=>await cF({client:i.value,id:A})}),L=(A,G)=>sn({queryKey:["batch",A],enabled:G,queryFn:async()=>await Y2({client:i.value,id:A})}),P=A=>sn({queryKey:["acctaskidx",qe(()=>{var G;return(G=l.value)==null?void 0:G.id}),qe(()=>A==null?void 0:A.value)],queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await k7({client:i.value,campaignId:A==null?void 0:A.value,accountId:l.value.id})}}),j=A=>sn({queryKey:["reservation",qe(()=>a.value),qe(()=>{var G;return(G=l.value)==null?void 0:G.id}),qe(()=>A.value)],enabled:qe(()=>!!l.value&&!!A.value||A.value===0),queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await Cb({client:i.value,campaignId:A.value,vAccountId:l.value.id})}}),H=A=>sn({queryKey:["taskData",qe(()=>A.value)],enabled:qe(()=>!!A.value),retry:(G,Y)=>"retry"in Y&&G{try{if(!A.value)throw new Error("Reservation not found");return await mF(i.value,A.value)}catch(G){throw t({type:"error",message:"Failed to fetch task data"}),G}}}),x=()=>{const A=sn({queryKey:["reservations",qe(()=>a.value)],enabled:u,queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await pF({client:i.value,vAccountId:l.value.id})}});return{...A,isReserved:Y=>{var S,M;return(M=(S=A.data)==null?void 0:S.value)!=null&&M.length?A.data.value.some(y=>y.campaign_id===Y):!1}}},b=A=>sn({queryKey:["reservation",qe(()=>A.value)],enabled:qe(()=>!!A.value||A.value===0),queryFn:async()=>await I7({client:i.value,campaignId:A.value})}),v=async A=>{try{c.value=!0;const G=A||(await e.login()).session;await s4({client:i.value,session:G}),o.value=i.value.session}catch(G){console.error(G),t({type:"error",message:"Failed to connect wallet"})}finally{c.value=!1}};return{client:i,isLoggedIn:u,isWalletConnecting:c,userName:a,permission:s,vAccount:l,useAccountAssets:m,useGetAccountById:B,useForceSettings:_,useGetBalance:I,useCampaigns:V,useCampaign:z,useBatch:L,useSubmissions:W,useTaskData:H,useReservation:j,useReservations:x,useReservationsCampaign:b,usePendingPayments:C,useEfxPrice:N,useAccTaskIdx:P,useReserveTask:h,useSubmitTask:g,usePayoutEfx:f,connectWallet:v,disconnectWallet:async()=>{try{await e.logout(),await s4({client:i.value,session:null}),o.value=null}catch(A){console.error(A)}}}};function H7(t){return $b()?(Ub(t),!0):!1}function X2(t){return typeof t=="function"?t():ze(t)}const mT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yT=Object.prototype.toString,vT=t=>yT.call(t)==="[object Object]",D7=()=>{};function wT(t,e){function r(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(o)})}return r}const J7=t=>t();function _T(t=J7){const e=bt(!0);function r(){e.value=!1}function n(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:md(e),pause:r,resume:n,eventFilter:i}}function P7(t){return ds()}function IT(t,e,r={}){const{eventFilter:n=J7,...i}=r;return er(t,wT(n,e),i)}function kT(t,e,r={}){const{eventFilter:n,...i}=r,{eventFilter:o,pause:a,resume:s,isActive:l}=_T(n);return{stop:IT(t,e,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function ZT(t,e=!0,r){P7()?nu(t,r):e?t():Sn(t)}function AT(t,e){P7()&&cm(t,e)}function EU(t,e,r){let n;kr(r)?n={evaluating:r}:n={};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=D7}=n,l=bt(!i),c=a?Ja(e):bt(e);let u=0;return XI(async f=>{if(!l.value)return;u++;const h=u;let g=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const m=await t(_=>{f(()=>{o&&(o.value=!1),g||_()})});h===u&&(c.value=m)}catch(m){s(m)}finally{o&&h===u&&(o.value=!1),g=!0}}),i?qe(()=>(l.value=!0,c.value)):c}function q7(t){var e;const r=X2(t);return(e=r==null?void 0:r.$el)!=null?e:r}const A0=mT?window:void 0;function Li(...t){let e,r,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,i]=t,e=A0):[e,r,n,i]=t,!e)return D7;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,f,h,g)=>(u.addEventListener(f,h,g),()=>u.removeEventListener(f,h,g)),l=er(()=>[q7(e),X2(i)],([u,f])=>{if(a(),!u)return;const h=vT(f)?{...f}:f;o.push(...r.flatMap(g=>n.map(m=>s(u,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return H7(c),c}const vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wh="__vueuse_ssr_handlers__",CT=BT();function BT(){return wh in vh||(vh[wh]=vh[wh]||{}),vh[wh]}function WT(t,e){return CT[t]||e}function ST(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const RT={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},v4="vueuse-storage";function NT(t,e,r,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=A0,eventFilter:h,onError:g=H=>{console.error(H)},initOnMounted:m}=n,_=(u?Ja:bt)(e);if(!r)try{r=WT("getDefaultStorage",()=>{var H;return(H=A0)==null?void 0:H.localStorage})()}catch(H){g(H)}if(!r)return _;const I=X2(e),B=ST(I),W=(i=n.serializer)!=null?i:RT[B],{pause:C,resume:N}=kT(_,()=>z(_.value),{flush:o,deep:a,eventFilter:h});f&&s&&ZT(()=>{Li(f,"storage",P),Li(f,v4,j),m&&P()}),m||P();function V(H,x){f&&f.dispatchEvent(new CustomEvent(v4,{detail:{key:t,oldValue:H,newValue:x,storageArea:r}}))}function z(H){try{const x=r.getItem(t);if(H==null)V(x,null),r.removeItem(t);else{const b=W.write(H);x!==b&&(r.setItem(t,b),V(x,b))}}catch(x){g(x)}}function L(H){const x=H?H.newValue:r.getItem(t);if(x==null)return l&&I!=null&&r.setItem(t,W.write(I)),I;if(!H&&c){const b=W.read(x);return typeof c=="function"?c(b,I):B==="object"&&!Array.isArray(b)?{...I,...b}:b}else return typeof x!="string"?x:W.read(x)}function P(H){if(!(H&&H.storageArea!==r)){if(H&&H.key==null){_.value=I;return}if(!(H&&H.key!==t)){C();try{(H==null?void 0:H.newValue)!==W.write(_.value)&&(_.value=L(H))}catch(x){g(x)}finally{H?Sn(N):N()}}}}function j(H){P(H.detail)}return _}function xT(t,e,r={}){const{window:n=A0}=r;return NT(t,e,n==null?void 0:n.localStorage,r)}const GT=()=>{const{useAccountAssets:t}=T7(),{data:e}=t(),r=Go(),n=xT("hasAccessNft",!1);return er(e,()=>{var i;n.value=(i=e.value)==null?void 0:i.some(o=>o.template_id===r.public.EARLY_ALPHA_ACCESS_TEMPLATE_ID)}),{hasAccessNft:n}},YT=async(t,e)=>{const{hasAccessNft:r}=GT(),n=Go();if(t.path!=="/access"&&!r.value&&n.public.EARLY_ALPHA_ACCESS_TEMPLATE_ID)return dA("/access")},MT=async t=>{let e,r;const n=([e,r]=Af(()=>Am(t.path)),e=await e,r(),e);if(n.redirect)return Il(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect},OT=[CB,YT,MT],hf={auth:()=>Je(()=>import("./BWAbWtNn.js"),[],import.meta.url)};function VT(t,e,r){const{pathname:n,search:i,hash:o}=e,a=t.indexOf("#");if(a>-1){const c=o.includes(t.slice(a))?t.slice(a).length:1;let u=o.slice(c);return u[0]!=="/"&&(u="/"+u),Ey(u,"")}const s=Ey(n,t),l=!r||mZ(s,r,{trailingSlash:!0})?s:r;return l+(l.includes("?")?"":i)+o}const ET=Yi({name:"nuxt:router",enforce:"pre",async setup(t){var I,B;let e,r,n=Go().app.baseURL;Gn.hashMode&&!n.includes("#")&&(n+="#");const i=((I=Gn.history)==null?void 0:I.call(Gn,n))??(Gn.hashMode?zC(n):j_(n)),o=((B=Gn.routes)==null?void 0:B.call(Gn,mv))??mv;let a;const s=fB({...Gn,scrollBehavior:(W,C,N)=>{if(C===ki){a=N;return}if(Gn.scrollBehavior){if(s.options.scrollBehavior=Gn.scrollBehavior,"scrollRestoration"in window.history){const V=s.beforeEach(()=>{V(),window.history.scrollRestoration="manual"})}return Gn.scrollBehavior(W,ki,a||N)}},history:i,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(s);const l=Ja(s.currentRoute.value);s.afterEach((W,C)=>{l.value=C}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=VT(n,window.location,t.payload.path),u=Ja(s.currentRoute.value),f=()=>{u.value=s.currentRoute.value};t.hook("page:finish",f),s.afterEach((W,C)=>{var N,V,z,L;((V=(N=W.matched[0])==null?void 0:N.components)==null?void 0:V.default)===((L=(z=C.matched[0])==null?void 0:z.components)==null?void 0:L.default)&&f()});const h={};for(const W in u.value)Object.defineProperty(h,W,{get:()=>u.value[W]});t._route=Zn(h),t._middleware=t._middleware||{global:[],named:{}};const g=z0();s.afterEach(async(W,C,N)=>{delete t._processingMiddleware,!t.isHydrating&&g.value&&await t.runWithContext(hA),N&&await t.callHook("page:loading:end"),W.matched.length===0&&await t.runWithContext(()=>Xl(vg({statusCode:404,fatal:!1,statusMessage:`Page not found: ${W.fullPath}`,data:{path:W.fullPath}})))});try{[e,r]=Af(()=>s.isReady()),await e,r()}catch(W){[e,r]=Af(()=>t.runWithContext(()=>Xl(W))),await e,r()}const m=c!==s.currentRoute.value.fullPath?s.resolve(c):s.currentRoute.value;f();const _=t.payload.state._layout;return s.beforeEach(async(W,C)=>{var N;await t.callHook("page:loading:start"),W.meta=Ln(W.meta),t.isHydrating&&_&&!mc(W.meta.layout)&&(W.meta.layout=_),t._processingMiddleware=!0;{const V=new Set([...OT,...t._middleware.global]);for(const z of W.matched){const L=z.meta.middleware;if(L)for(const P of Sm(L))V.add(P)}{const z=await t.runWithContext(()=>Am(W.path));if(z.appMiddleware)for(const L in z.appMiddleware)z.appMiddleware[L]?V.add(L):V.delete(L)}for(const z of V){const L=typeof z=="string"?t._middleware.named[z]||await((N=hf[z])==null?void 0:N.call(hf).then(j=>j.default||j)):z;if(!L)throw new Error(`Unknown route middleware: '${z}'.`);const P=await t.runWithContext(()=>L(W,C));if(!t.payload.serverRendered&&t.isHydrating&&(P===!1||P instanceof Error)){const j=P||vg({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>Xl(j)),!1}if(P!==!0&&(P||P===!1))return P}}}),s.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),t.hooks.hookOnce("app:created",async()=>{try{"name"in m&&(m.name=void 0),await s.replace({...m,force:!0}),s.options.scrollBehavior=Gn.scrollBehavior}catch(W){await t.runWithContext(()=>Xl(W))}}),{provide:{router:s}}}}),w4=globalThis.requestIdleCallback||(t=>{const e=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(r)},1)}),jU=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),$7=t=>{const e=gr();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{w4(()=>t())}):w4(()=>t())},jT=Yi({name:"nuxt:payload",setup(t){Mi().beforeResolve(async(e,r)=>{if(e.path===r.path)return;const n=await Qy(e.path);n&&Object.assign(t.static.data,n.data)}),$7(()=>{var e;t.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await Qy(r)}),((e=navigator.connection)==null?void 0:e.effectiveType)!=="slow-2g"&&setTimeout(L0,1e3)})}}),zT=Yi(t=>{let e;async function r(){const n=await L0();e&&clearTimeout(e),e=setTimeout(r,Fy);try{const i=await $fetch(Im("builds/latest.json")+`?${Date.now()}`);i.id!==n.id&&t.hooks.callHook("app:manifest:update",i)}catch{}}$7(()=>{e=setTimeout(r,Fy)})}),XT=at(()=>Je(()=>import("./9O8xrwna.js"),__vite__mapDeps([22,23,6,7,8,9,10,24,25]),import.meta.url).then(t=>t.default||t.default||t)),LT=at(()=>Je(()=>import("./CbAMCw4j.js"),__vite__mapDeps([26,24,25,10]),import.meta.url).then(t=>t.default||t.default||t)),FT=at(()=>Je(()=>import("./CE1bXBtk.js"),__vite__mapDeps([27,25,10,16]),import.meta.url).then(t=>t.default||t.default||t)),TT=at(()=>Je(()=>import("./DXM240z2.js"),__vite__mapDeps([24,25,10]),import.meta.url).then(t=>t.default||t.default||t)),HT=at(()=>Je(()=>import("./BC4ZBaMa.js"),__vite__mapDeps([6,7,8,9,10]),import.meta.url).then(t=>t.default||t.default||t)),DT=at(()=>Je(()=>import("./D1ARI5ig.js"),__vite__mapDeps([28,7,8,9,10]),import.meta.url).then(t=>t.default||t.default||t)),JT=at(()=>Je(()=>import("./BG6wdasp.js"),__vite__mapDeps([29,9]),import.meta.url).then(t=>t.default||t.default||t)),PT=at(()=>Je(()=>import("./BqzSR0QY.js"),[],import.meta.url).then(t=>t.default||t.default||t)),qT=at(()=>Je(()=>import("./BxbXPpYz.js"),[],import.meta.url).then(t=>t.default||t.default||t)),$T=at(()=>Je(()=>import("./Cb25f9Ir.js"),__vite__mapDeps([30,29,9]),import.meta.url).then(t=>t.default||t.default||t)),UT=at(()=>Je(()=>import("./BvYdkKW2.js"),__vite__mapDeps([31,32,33]),import.meta.url).then(t=>t.default||t.default||t)),QT=at(()=>Je(()=>import("./0TDMLFnH.js"),[],import.meta.url).then(t=>t.default||t.default||t)),KT=at(()=>Je(()=>import("./CadYdy7U.js"),__vite__mapDeps([34,32,33]),import.meta.url).then(t=>t.default||t.default||t)),eH=at(()=>Je(()=>import("./DiPmplMJ.js"),__vite__mapDeps([35,16]),import.meta.url).then(t=>t.default||t.default||t)),tH=at(()=>Je(()=>import("./CR8J8Wv6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),rH=at(()=>Je(()=>import("./CTbn5rF3.js"),[],import.meta.url).then(t=>t.default||t.default||t)),nH=at(()=>Je(()=>import("./BOi99RIz.js"),[],import.meta.url).then(t=>t.default||t.default||t)),iH=at(()=>Je(()=>import("./CWKlYbIB.js"),[],import.meta.url).then(t=>t.default||t.default||t)),oH=at(()=>Je(()=>import("./ABQydVn7.js"),[],import.meta.url).then(t=>t.default||t.default||t)),aH=at(()=>Je(()=>import("./JUdSmwzW.js"),[],import.meta.url).then(t=>t.default||t.default||t)),sH=at(()=>Je(()=>import("./CpJISfwI.js"),[],import.meta.url).then(t=>t.default||t.default||t)),lH=at(()=>Je(()=>import("./Cg5AdoJL.js"),[],import.meta.url).then(t=>t.default||t.default||t)),cH=at(()=>Je(()=>import("./D9erlvBj.js"),[],import.meta.url).then(t=>t.default||t.default||t)),uH=at(()=>Je(()=>import("./D50eLN2o.js"),[],import.meta.url).then(t=>t.default||t.default||t)),fH=at(()=>Je(()=>import("./CUZ5-2j8.js"),[],import.meta.url).then(t=>t.default||t.default||t)),dH=at(()=>Je(()=>import("./CKqPg9-t.js"),[],import.meta.url).then(t=>t.default||t.default||t)),hH=at(()=>Je(()=>import("./CwxWHj84.js"),[],import.meta.url).then(t=>t.default||t.default||t)),pH=at(()=>Je(()=>import("./2BrHaVLh.js"),[],import.meta.url).then(t=>t.default||t.default||t)),gH=at(()=>Je(()=>import("./DK8Uo_Hk.js"),[],import.meta.url).then(t=>t.default||t.default||t)),bH=at(()=>Je(()=>import("./Dvbh4inv.js"),[],import.meta.url).then(t=>t.default||t.default||t)),mH=at(()=>Je(()=>import("./DHgh_nFT.js"),[],import.meta.url).then(t=>t.default||t.default||t)),yH=at(()=>Je(()=>import("./7gRTJ--m.js"),[],import.meta.url).then(t=>t.default||t.default||t)),vH=at(()=>Je(()=>import("./Cqz1o8c6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),wH=at(()=>Je(()=>import("./s7zkGM1B.js"),[],import.meta.url).then(t=>t.default||t.default||t)),_H=at(()=>Je(()=>import("./C4gPAXLa.js"),[],import.meta.url).then(t=>t.default||t.default||t)),IH=at(()=>Je(()=>import("./BYCMiOz6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),kH=[["ContentDoc",XT],["ContentList",LT],["ContentNavigation",FT],["ContentQuery",TT],["ContentRenderer",HT],["ContentRendererMarkdown",DT],["MDCSlot",JT],["DocumentDrivenEmpty",PT],["DocumentDrivenNotFound",qT],["Markdown",$T],["ProseCode",UT],["ProseCodeInline",QT],["ProsePre",KT],["ProseA",eH],["ProseBlockquote",tH],["ProseEm",rH],["ProseH1",nH],["ProseH2",iH],["ProseH3",oH],["ProseH4",aH],["ProseH5",sH],["ProseH6",lH],["ProseHr",cH],["ProseImg",uH],["ProseLi",fH],["ProseOl",dH],["ProseP",hH],["ProseScript",pH],["ProseStrong",gH],["ProseTable",bH],["ProseTbody",mH],["ProseTd",yH],["ProseTh",vH],["ProseThead",wH],["ProseTr",_H],["ProseUl",IH]],ZH=Yi({name:"nuxt:global-components",setup(t){for(const[e,r]of kH)t.vueApp.component(e,r),t.vueApp.component("Lazy"+e,r)}}),Va={default:()=>Je(()=>import("./CufKaKGR.js"),__vite__mapDeps([36,16,37,38,39]),import.meta.url).then(t=>t.default||t),empty:()=>Je(()=>import("./BCSHVULZ.js"),[],import.meta.url).then(t=>t.default||t),preview:()=>Je(()=>import("./ChJCoYqL.js"),[],import.meta.url).then(t=>t.default||t),template:()=>Je(()=>import("./BhBQiKNq.js"),__vite__mapDeps([40,37,16,38,41]),import.meta.url).then(t=>t.default||t)},AH=Yi({name:"nuxt:prefetch",setup(t){const e=Mi();t.hooks.hook("app:mounted",()=>{e.beforeEach(async r=>{var i;const n=(i=r==null?void 0:r.meta)==null?void 0:i.layout;n&&typeof Va[n]=="function"&&await Va[n]()})}),t.hooks.hook("link:prefetch",r=>{if(Il(r))return;const n=e.resolve(r);if(!n)return;const i=n.meta.layout;let o=Sm(n.meta.middleware);o=o.filter(a=>typeof a=="string");for(const a of o)typeof hf[a]=="function"&&hf[a]();i&&typeof Va[i]=="function"&&Va[i]()})}});function CH(t={}){const e=t.path||window.location.pathname;let r={};try{r=qh(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(r==null?void 0:r.path)!==e||(r==null?void 0:r.expires){n.clear()}),t.hook("app:chunkError",({error:o})=>{n.add(o)});function i(o){const s="href"in o&&o.href[0]==="#"?r.app.baseURL+o.href:wm(r.app.baseURL,o.fullPath);CH({path:s,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(i)}),e.onError((o,a)=>{n.has(o)&&i(a)})}}),WH=Yi(t=>{gT()});/*! +${JSON.stringify(i)}`);return i[e]}catch(n){throw console.error("Error while fetching task data:",n),n}},mF=(t,e)=>bF({client:t,taskIndex:e.task_idx,batchId:e.batch_id}),yF=async({client:t,reservation:e,data:r})=>{try{if(!t.session)throw new iF("Session is required for this method.");const{authorization:n,transact:i,actor:o}=t.session,{tasks:a}=Sl(t),s=await sF({client:t,data:r}),l=lF(s);return await i({action:{account:a,name:"submittask",authorization:n,data:{campaign_id:Ve.from(e.campaign_id),account_id:Ve.from(e.account_id),task_idx:Ve.from(e.task_idx),data:{first:1,second:l},payer:o,sig:null}}})}catch(n){throw console.error(n),n}},vF=async({client:t,reverse:e=!1})=>{try{const{provider:r}=t,{tasks:n}=Sl(t),i=await r.v1.chain.get_table_rows({code:n,table:"submission",json:!0,reverse:e}),{rows:o}=i;return o}catch(r){throw console.error("Error while fetching tasks:",r),new Error("Failed to fetch tasks")}};var Oa;(function(t){t[t.EosEfx=191]="EosEfx",t[t.EosUsdt=12]="EosUsdt"})(Oa||(Oa={}));const c4=async t=>{try{return(await(fetch??window.fetch)("https://eos.greymass.com/v1/chain/get_table_rows",{method:"POST",body:JSON.stringify({json:!0,code:"swap.defi",scope:"swap.defi",table:"pairs",limit:1,lower_bound:t.valueOf(),upper_bound:t.valueOf()})})).json().then(n=>n.rows[0])}catch(e){throw console.error(e),new Error("Error retrieving EFX Ticker Price from DefiBox")}},wF=async()=>{try{const t=await c4(Oa.EosEfx),e=await c4(Oa.EosUsdt);return Number(t.price1_last)*Number(e.price0_last)}catch{throw new Error("Error retrieving EFX Ticker Price from DefiBox")}},_F=async({client:t,actor:e})=>{const{network:r,provider:n}=t,{contracts:i}=r.config.efx,[o]=await n.v1.chain.get_currency_balance(i.token,e),[a]=await n.v1.chain.get_currency_balance(i.usdt,e),[s]=await n.v1.chain.get_currency_balance(i.eostoken,e);if(!o&&!a&&!s)throw new Error("No efxBalance found");return{efxBalance:o,usdtBalance:a,eosBalance:s}};`${Oa.EosEfx}${Oa.EosUsdt}`,`${Oa.EosUsdt}${Oa.EosEfx}`;const IF=(t,e)=>new Date(`${new Date(t.last_submission_time)}UTC`).getTime()/1e3+e.payout_delay_sec{var e;return Number.parseFloat(((e=t.match(/[0-9.]+/))==null?void 0:e[0])||"0")},NU=(t,e)=>new Date(`${new Date(t.last_submission_time)}UTC`).getTime()/1e3+e.payout_delay_sec-Date.now()/1e3,Z7=async({client:t,vAccountId:e})=>{const{network:r,provider:n}=t,{contracts:i}=r.config.efx,o=await n.v1.chain.get_table_rows({code:i.tasks,scope:i.tasks,table:"payment",index_position:"tertiary",key_type:"i64",lower_bound:fr.from(e),upper_bound:fr.from(e)}),a=await _7({client:t}),s=o.rows.filter(u=>IF(u,a)),l=o.rows.reduce((u,f)=>u+u4(f.pending.quantity)||0,0),c=s.reduce((u,f)=>u+u4(f.pending.quantity)||0,0);return{pendingPayments:o.rows,claimablePayments:s,totalEfxPending:l,totalEfxClaimable:c}};let cd=class extends d{constructor(e,r){super({sym:e,contract:r})}};cd.abiName="extended_symbol";cd.abiFields=[{name:"contract",type:"name"},{name:"sym",type:"symbol"}];cd=p([d.type("extended_symbol")],cd);const kF=async({client:t,session:e,account:r})=>{const n=e??t.session;if(!n)throw new Error("No session provided");const i=r??n.actor,{actor:o}=n,{contracts:a,token:s}=t.network.config.efx,l=[{actor:o,permission:n.permission}],c={account:a.vaccount,name:"open",authorization:l,data:{acc:I0.from(i),symbol:new cd(`${s.precision},${s.symbol}`,a.token),payer:o}};return await n.transact({action:c})},ZF=({payments:t,tasks:e,authorization:r})=>{const n=[];for(const i of t)n.push({account:e,name:"payout",authorization:r,data:{payment_id:i.id}});return n},AF=({from_id:t,to_account:e,quantity:r,account:n,authorization:i})=>({account:n,name:"withdraw",authorization:i,data:{from_id:t,to_account:e,quantity:r,memo:""}}),CF=async({client:t,actor:e})=>{var u;if(!((u=t.session)!=null&&u.vAccount))throw new aF("vAccount is not set.");const{tasks:r,vaccount:n,token:i}=Sl(t),{authorization:o}=t.session,{claimablePayments:a,totalEfxClaimable:s}=await Z7({client:t,vAccountId:t.session.vAccount.id});if(!a.length)throw new Error("No payouts currently claimable.");const l=[];if(a)l.push(...ZF({payments:a,tasks:r,authorization:o}));else throw new Error("No pending payouts found");l.push(AF({account:n,from_id:t.session.vAccount.id,to_account:e,authorization:o,quantity:Gc.from({contract:i,quantity:`${s.toFixed(4)} EFX`}),memo:""}));const{transact:c}=t.session;return await c({actions:l})};function O2(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function BF(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=O2(r);return(i,o)=>n.then(a=>o(a.transaction(e,i).objectStore(e)))}let E1;function A7(){return E1||(E1=BF("keyval-store","keyval")),E1}function WF(t,e=A7()){return e("readonly",r=>O2(r.get(t)))}function SF(t,e,r=A7()){return r("readwrite",n=>(n.put(e,t),O2(n.transaction)))}const j1=new Map;class RF{size(){return j1.size}get(e){return j1.get(e)}set(e,r){j1.set(e,r)}}class NF{async get(e){return await WF(e)}set(e,r){SF(e,r)}}class xF{constructor(e){this.cache=e}get(e){return this.cache.get(e)}set(e,r){this.cache.set(e,r)}}const z1=t=>new xF(t),GF=async({client:t,actor:e,session:r})=>{try{let[n]=await l4({client:t,actor:e});return n||(await kF({client:t,session:r,account:e}),[n]=await l4({client:t,actor:e})),n}catch(n){throw console.log(n),new Error("Failed to get or create vAccount")}};var Ms;(function(t){t.EXECUTED="EXECUTED",t.SOFT_FAIL="soft_fail",t.HARD_FAIL="hard_fail",t.EXPIRED="EXPIRED",t.IRREVERSIBLE="IRREVERSIBLE",t.IN_BLOCK="IN_BLOCK"})(Ms||(Ms={}));function YF(t,e,r=Ms.IRREVERSIBLE,n=3){return new Promise((i,o)=>{let a=0;const s=setInterval(async()=>{try{a++;const l=await e.get_transaction_status(t);(l.state===Ms.SOFT_FAIL||l.state===Ms.HARD_FAIL||l.state===Ms.EXPIRED)&&(clearInterval(s),o(l)),(l==null?void 0:l.state)===r&&(clearInterval(s),i(l))}catch(l){a>n&&(clearInterval(s),o(l))}},3e3)})}class MF{get vAccount(){return this._vAccount}constructor(e,r){this.transact=async n=>{var o;const i=await this.wharfKitSession.transact({...n});return await YF((o=i.response)==null?void 0:o.transaction_id,this.wharfKitSession.client.v1.chain,Ms.IN_BLOCK),i},this.actor=e.actor,this.permission=e.permission,this.permissionLevel=e.permissionLevel,this.wharfKitSession=e,this.authorization=[{actor:this.actor,permission:this.permission}],this._vAccount=r}}const OF={ipfsEndpoint:"https://ipfs.effect.ai"},VF={ipfsEndpoint:"https://atomichub-ipfs.com/ipfs/",assetEndpoint:"https://eos.atomichub.io/explorer/asset/",atomicContract:"atomicassets"},EF={eosRelayerAccount:"effectrelayr",eosRelayerPermission:"active",eosRelayerUrl:"https://vaccount-relayer-service-jungle-96xyn.ondigitalocean.app"},C7=()=>({ipfs:OF,atomic:VF,relayer:EF}),B7={name:"jungle4",url:"https://jungle4.cryptolions.io/",id:"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",config:{efx:{token:{symbol:"EFX",precision:4},contracts:{tasks:"effecttasks2",token:"efxtoken1112",usdt:"tethertether",eostoken:"eosio.token",stake:"efxstake1111",feepool:"efxfeepool11",proposals:"efxproposals",vaccount:"efxaccount11",dao:"theeffectdao"}},...C7()}},W7={name:"eos",url:"https://eos.greymass.com/",id:"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",config:{efx:{token:{symbol:"EFX",precision:4},contracts:{tasks:"tasks.efx",token:"effecttokens",usdt:"tethertether",eostoken:"eosio.token",stake:"efxstakepool",feepool:"feepool.efx",proposals:"daoproposals",vaccount:"vaccount.efx",dao:"theeffectdao"}},...C7()}},jF=[W7,B7],zF={ipfsCacheDurationInMs:6e5};class f4{get session(){return this._session}constructor(e,r){var n;this._session=null,this.setSession=async i=>{try{if(!i)return this._session=null,this._session;const o=await GF({client:this,actor:i.actor,session:i});return this._session=i?new MF(i,o):null,this._session}catch(o){throw console.error(o),new Error("Failed to set session")}},this.options={...zF,...r},this.network=e,this.fetchProvider=new vu(this.network.url,{fetch:(n=this.options.fetchProvider)==null?void 0:n.fetch}),this.provider=new Wl({provider:this.fetchProvider}),this.options.cacheImplementation?this.cache=z1(this.options.cacheImplementation):typeof indexedDB<"u"?this.cache=z1(new NF):this.cache=z1(new RF)}}const XF=async({network:t,session:e,options:r={}})=>{if(!t&&!e)throw new Error("Network or Session configuration is required to create a client.");if(e){const n=jF.find(o=>o.id===e.chain.id.hexString);if(!n)throw new Error("Chain associated with session not found or not supported.");const i=new f4(n,r);return await i.setSession(e),i}if(!t)throw new Error("Network configuration is required to create a client.");return new f4(t,r)},GU=()=>{const{notify:t}=Rm(),{useReserveTask:e}=T7(),{mutateAsync:r}=e(),n=Mi(),i=bt(!1);return{mutate:async a=>{try{i.value=!0;const s=await r(a);(s!=null&&s.id||(s==null?void 0:s.id)===0)&&await n.push(`/campaign/${a}/task/`)}catch(s){console.error(s),t({type:"error",message:"Failed to reserve task"})}finally{i.value=!1}},loading:i}},LF=async(t,e,r)=>{let n=e.total_tasks-e.reservations_done,i=n,o=e.reservations_done-1;const s=(await I7({client:t,campaignId:e.id})).filter(l=>l.batch_id===e.active_batch);if(r&&(n||s.length)){const l=await Y2({client:t,id:e.active_batch});if(!l)return{campaignTasksAvailable:null,batchTaskAvailable:null};const c=await k7({client:t,accountId:r.id,campaignId:e.id});if(c.length>0){const u=c[0].value>=l.start_task_idx;u&&c[0].value>o&&(o=c[0].value),i=l.start_task_idx+l.num_tasks-1-o,u&&(n-=o-(e.reservations_done-1))}}if(s)for(const l of s)(Date.now()>l.reserved_on+props.campaign.max_task_time||l.account_id===(r==null?void 0:r.id))&&l.task_idx<=o&&(i++,n++);return{campaignTasksAvailable:n,batchTaskAvailable:i}};var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ml=typeof window>"u"||"Deno"in globalThis;function Un(){}function FF(t,e){return typeof t=="function"?t(e):t}function Bb(t){return typeof t=="number"&&t>=0&&t!==1/0}function S7(t,e){return Math.max(t+(e||0)-Date.now(),0)}function nc(t,e){return typeof t=="function"?t(e):t}function Ci(t,e){return typeof t=="function"?t(e):t}function d4(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=t;if(a){if(n){if(e.queryHash!==V2(a,e.options))return!1}else if(!ud(e.queryKey,a))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||o&&!o(e))}function h4(t,e){const{exact:r,status:n,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(r){if(yl(e.options.mutationKey)!==yl(o))return!1}else if(!ud(e.options.mutationKey,o))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function V2(t,e){return((e==null?void 0:e.queryKeyHashFn)||yl)(t)}function yl(t){return JSON.stringify(t,(e,r)=>Wb(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ud(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!ud(t[r],e[r])):!1}function R7(t,e){if(t===e)return t;const r=p4(t)&&p4(e);if(r||Wb(t)&&Wb(e)){const n=r?t:Object.keys(t),i=n.length,o=r?e:Object.keys(e),a=o.length,s=r?[]:{};let l=0;for(let c=0;c{setTimeout(e,t)})}function Sb(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?R7(t,e):e}function HF(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function DF(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var N7=Symbol(),x7=(t,e)=>!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===N7?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn,Os,wa,ic,x4,JF=(x4=class extends Cu{constructor(){super();De(this,Os);De(this,wa);De(this,ic);Oe(this,ic,e=>{if(!ml&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,wa)||this.setEventListener(q(this,ic))}onUnsubscribe(){var e;this.hasListeners()||((e=q(this,wa))==null||e.call(this),Oe(this,wa,void 0))}setEventListener(e){var r;Oe(this,ic,e),(r=q(this,wa))==null||r.call(this),Oe(this,wa,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){q(this,Os)!==e&&(Oe(this,Os,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof q(this,Os)=="boolean"?q(this,Os):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Os=new WeakMap,wa=new WeakMap,ic=new WeakMap,x4),E2=new JF,oc,_a,ac,G4,PF=(G4=class extends Cu{constructor(){super();De(this,oc,!0);De(this,_a);De(this,ac);Oe(this,ac,e=>{if(!ml&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,_a)||this.setEventListener(q(this,ac))}onUnsubscribe(){var e;this.hasListeners()||((e=q(this,_a))==null||e.call(this),Oe(this,_a,void 0))}setEventListener(e){var r;Oe(this,ac,e),(r=q(this,_a))==null||r.call(this),Oe(this,_a,e(this.setOnline.bind(this)))}setOnline(e){q(this,oc)!==e&&(Oe(this,oc,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return q(this,oc)}},oc=new WeakMap,_a=new WeakMap,ac=new WeakMap,G4),Z0=new PF;function qF(t){return Math.min(1e3*2**t,3e4)}function G7(t){return(t??"online")==="online"?Z0.isOnline():!0}var Y7=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function X1(t){return t instanceof Y7}function M7(t){let e=!1,r=0,n=!1,i,o,a;const s=new Promise((B,W)=>{o=B,a=W}),l=B=>{var W;n||(m(new Y7(B)),(W=t.abort)==null||W.call(t))},c=()=>{e=!0},u=()=>{e=!1},f=()=>E2.isFocused()&&(t.networkMode==="always"||Z0.isOnline())&&t.canRun(),h=()=>G7(t.networkMode)&&t.canRun(),g=B=>{var W;n||(n=!0,(W=t.onSuccess)==null||W.call(t,B),i==null||i(),o(B))},m=B=>{var W;n||(n=!0,(W=t.onError)==null||W.call(t,B),i==null||i(),a(B))},_=()=>new Promise(B=>{var W;i=C=>{(n||f())&&B(C)},(W=t.onPause)==null||W.call(t)}).then(()=>{var B;i=void 0,n||(B=t.onContinue)==null||B.call(t)}),I=()=>{if(n)return;let B;const W=r===0?t.initialPromise:void 0;try{B=W??t.fn()}catch(C){B=Promise.reject(C)}Promise.resolve(B).then(g).catch(C=>{var P;if(n)return;const N=t.retry??(ml?0:3),V=t.retryDelay??qF,z=typeof V=="function"?V(r,C):V,L=N===!0||typeof N=="number"&&rf()?void 0:_()).then(()=>{e?m(C):I()})})};return{promise:s,cancel:l,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:u,canStart:h,start:()=>(h()?I():_().then(I),s)}}function $F(){let t=[],e=0,r=h=>{h()},n=h=>{h()},i=h=>setTimeout(h,0);const o=h=>{i=h},a=h=>{let g;e++;try{g=h()}finally{e--,e||c()}return g},s=h=>{e?t.push(h):i(()=>{r(h)})},l=h=>(...g)=>{s(()=>{h(...g)})},c=()=>{const h=t;t=[],h.length&&i(()=>{n(()=>{h.forEach(g=>{r(g)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h},setScheduler:o}}var Pr=$F(),Vs,Y4,O7=(Y4=class{constructor(){De(this,Vs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bb(this.gcTime)&&Oe(this,Vs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ml?1/0:5*60*1e3))}clearGcTimeout(){q(this,Vs)&&(clearTimeout(q(this,Vs)),Oe(this,Vs,void 0))}},Vs=new WeakMap,Y4),sc,lc,$n,en,dd,Es,Zi,ko,M4,UF=(M4=class extends O7{constructor(e){super();De(this,Zi);De(this,sc);De(this,lc);De(this,$n);De(this,en);De(this,dd);De(this,Es);Oe(this,Es,!1),Oe(this,dd,e.defaultOptions),this.setOptions(e.options),this.observers=[],Oe(this,$n,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Oe(this,sc,e.state||QF(this.options)),this.state=q(this,sc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=q(this,en))==null?void 0:e.promise}setOptions(e){this.options={...q(this,dd),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,$n).remove(this)}setData(e,r){const n=Sb(this.state.data,e,this.options);return nt(this,Zi,ko).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){nt(this,Zi,ko).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,i;const r=(n=q(this,en))==null?void 0:n.promise;return(i=q(this,en))==null||i.cancel(e),r?r.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,sc))}isActive(){return this.observers.some(e=>Ci(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!S7(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=q(this,en))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=q(this,en))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),q(this,$n).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(q(this,en)&&(q(this,Es)?q(this,en).cancel({revert:!0}):q(this,en).cancelRetry()),this.scheduleGc()),q(this,$n).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,Zi,ko).call(this,{type:"invalidate"})}fetch(e,r){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,en))return q(this,en).continueRetry(),q(this,en).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Oe(this,Es,!0),n.signal)})},o=()=>{const f=x7(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return i(h),Oe(this,Es,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),Oe(this,lc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&nt(this,Zi,ko).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,g,m,_;X1(f)&&f.silent||nt(this,Zi,ko).call(this,{type:"error",error:f}),X1(f)||((g=(h=q(this,$n).config).onError)==null||g.call(h,f,this),(_=(m=q(this,$n).config).onSettled)==null||_.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,en,M7({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,g,m,_;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(g=(h=q(this,$n).config).onSuccess)==null||g.call(h,f,this),(_=(m=q(this,$n).config).onSettled)==null||_.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,h)=>{nt(this,Zi,ko).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{nt(this,Zi,ko).call(this,{type:"pause"})},onContinue:()=>{nt(this,Zi,ko).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),q(this,en).start()}},sc=new WeakMap,lc=new WeakMap,$n=new WeakMap,en=new WeakMap,dd=new WeakMap,Es=new WeakMap,Zi=new WeakSet,ko=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...V7(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return X1(i)&&i.revert&&q(this,lc)?{...q(this,lc),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),q(this,$n).notify({query:this,type:"updated",action:e})})},M4);function V7(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G7(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function QF(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Fi,O4,E7=(O4=class extends Cu{constructor(r={}){super();De(this,Fi);this.config=r,Oe(this,Fi,new Map)}build(r,n,i){const o=n.queryKey,a=n.queryHash??V2(o,n);let s=this.get(a);return s||(s=new UF({cache:this,queryKey:o,queryHash:a,options:r.defaultQueryOptions(n),state:i,defaultOptions:r.getQueryDefaults(o)}),this.add(s)),s}add(r){q(this,Fi).has(r.queryHash)||(q(this,Fi).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const n=q(this,Fi).get(r.queryHash);n&&(r.destroy(),n===r&&q(this,Fi).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Pr.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return q(this,Fi).get(r)}getAll(){return[...q(this,Fi).values()]}find(r){const n={exact:!0,...r};return this.getAll().find(i=>d4(n,i))}findAll(r={}){const n=this.getAll();return Object.keys(r).length>0?n.filter(i=>d4(r,i)):n}notify(r){Pr.batch(()=>{this.listeners.forEach(n=>{n(r)})})}onFocus(){Pr.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Pr.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Fi=new WeakMap,O4),Ti,cn,js,Hi,ca,V4,KF=(V4=class extends O7{constructor(e){super();De(this,Hi);De(this,Ti);De(this,cn);De(this,js);this.mutationId=e.mutationId,Oe(this,cn,e.mutationCache),Oe(this,Ti,[]),this.state=e.state||j7(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){q(this,Ti).includes(e)||(q(this,Ti).push(e),this.clearGcTimeout(),q(this,cn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Oe(this,Ti,q(this,Ti).filter(r=>r!==e)),this.scheduleGc(),q(this,cn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){q(this,Ti).length||(this.state.status==="pending"?this.scheduleGc():q(this,cn).remove(this))}continue(){var e;return((e=q(this,js))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,s,l,c,u,f,h,g,m,_,I,B,W,C,N,V,z,L;Oe(this,js,M7({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,j)=>{nt(this,Hi,ca).call(this,{type:"failed",failureCount:P,error:j})},onPause:()=>{nt(this,Hi,ca).call(this,{type:"pause"})},onContinue:()=>{nt(this,Hi,ca).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,cn).canRun(this)}));const r=this.state.status==="pending",n=!q(this,js).canStart();try{if(!r){nt(this,Hi,ca).call(this,{type:"pending",variables:e,isPaused:n}),await((o=(i=q(this,cn).config).onMutate)==null?void 0:o.call(i,e,this));const j=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,e));j!==this.state.context&&nt(this,Hi,ca).call(this,{type:"pending",context:j,variables:e,isPaused:n})}const P=await q(this,js).start();return await((c=(l=q(this,cn).config).onSuccess)==null?void 0:c.call(l,P,e,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,P,e,this.state.context)),await((g=(h=q(this,cn).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this)),await((_=(m=this.options).onSettled)==null?void 0:_.call(m,P,null,e,this.state.context)),nt(this,Hi,ca).call(this,{type:"success",data:P}),P}catch(P){try{throw await((B=(I=q(this,cn).config).onError)==null?void 0:B.call(I,P,e,this.state.context,this)),await((C=(W=this.options).onError)==null?void 0:C.call(W,P,e,this.state.context)),await((V=(N=q(this,cn).config).onSettled)==null?void 0:V.call(N,void 0,P,this.state.variables,this.state.context,this)),await((L=(z=this.options).onSettled)==null?void 0:L.call(z,void 0,P,e,this.state.context)),P}finally{nt(this,Hi,ca).call(this,{type:"error",error:P})}}finally{q(this,cn).runNext(this)}}},Ti=new WeakMap,cn=new WeakMap,js=new WeakMap,Hi=new WeakSet,ca=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Pr.batch(()=>{q(this,Ti).forEach(n=>{n.onMutationUpdate(e)}),q(this,cn).notify({mutation:this,type:"updated",action:e})})},V4);function j7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,hd,E4,z7=(E4=class extends Cu{constructor(r={}){super();De(this,Vn);De(this,hd);this.config=r,Oe(this,Vn,new Map),Oe(this,hd,Date.now())}build(r,n,i){const o=new KF({mutationCache:this,mutationId:++Od(this,hd)._,options:r.defaultMutationOptions(n),state:i});return this.add(o),o}add(r){const n=yh(r),i=q(this,Vn).get(n)??[];i.push(r),q(this,Vn).set(n,i),this.notify({type:"added",mutation:r})}remove(r){var i;const n=yh(r);if(q(this,Vn).has(n)){const o=(i=q(this,Vn).get(n))==null?void 0:i.filter(a=>a!==r);o&&(o.length===0?q(this,Vn).delete(n):q(this,Vn).set(n,o))}this.notify({type:"removed",mutation:r})}canRun(r){var i;const n=(i=q(this,Vn).get(yh(r)))==null?void 0:i.find(o=>o.state.status==="pending");return!n||n===r}runNext(r){var i;const n=(i=q(this,Vn).get(yh(r)))==null?void 0:i.find(o=>o!==r&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Pr.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...q(this,Vn).values()].flat()}find(r){const n={exact:!0,...r};return this.getAll().find(i=>h4(n,i))}findAll(r={}){return this.getAll().filter(n=>h4(r,n))}notify(r){Pr.batch(()=>{this.listeners.forEach(n=>{n(r)})})}resumePausedMutations(){const r=this.getAll().filter(n=>n.state.isPaused);return Pr.batch(()=>Promise.all(r.map(n=>n.continue().catch(Un))))}},Vn=new WeakMap,hd=new WeakMap,E4);function yh(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function eT(t){return{onFetch:(e,r)=>{const n=async()=>{var m,_,I,B,W;const i=e.options,o=(I=(_=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:_.fetchMore)==null?void 0:I.direction,a=((B=e.state.data)==null?void 0:B.pages)||[],s=((W=e.state.data)==null?void 0:W.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},f=x7(e.options,e.fetchOptions),h=async(C,N,V)=>{if(c)return Promise.reject();if(N==null&&C.pages.length)return Promise.resolve(C);const z={queryKey:e.queryKey,pageParam:N,direction:V?"backward":"forward",meta:e.options.meta};u(z);const L=await f(z),{maxPages:P}=e.options,j=V?DF:HF;return{pages:j(C.pages,L,P),pageParams:j(C.pageParams,N,P)}};let g;if(o&&a.length){const C=o==="backward",N=C?tT:b4,V={pages:a,pageParams:s},z=N(i,V);g=await h(V,z,C)}else{g=await h(l,s[0]??i.initialPageParam);const C=t??a.length;for(let N=1;N{var i,o;return(o=(i=e.options).persister)==null?void 0:o.call(i,n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=n}}}function b4(t,{pages:e,pageParams:r}){const n=e.length-1;return t.getNextPageParam(e[n],e,r[n],r)}function tT(t,{pages:e,pageParams:r}){var n;return(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r)}var hr,Ia,ka,cc,uc,Za,fc,dc,j4,rT=(j4=class{constructor(e={}){De(this,hr);De(this,Ia);De(this,ka);De(this,cc);De(this,uc);De(this,Za);De(this,fc);De(this,dc);Oe(this,hr,e.queryCache||new E7),Oe(this,Ia,e.mutationCache||new z7),Oe(this,ka,e.defaultOptions||{}),Oe(this,cc,new Map),Oe(this,uc,new Map),Oe(this,Za,0)}mount(){Od(this,Za)._++,q(this,Za)===1&&(Oe(this,fc,E2.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,hr).onFocus())})),Oe(this,dc,Z0.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,hr).onOnline())})))}unmount(){var e,r;Od(this,Za)._--,q(this,Za)===0&&((e=q(this,fc))==null||e.call(this),Oe(this,fc,void 0),(r=q(this,dc))==null||r.call(this),Oe(this,dc,void 0))}isFetching(e){return q(this,hr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Ia).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=q(this,hr).get(r.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const r=this.getQueryData(e.queryKey);if(r===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),i=q(this,hr).build(this,n);return e.revalidateIfStale&&i.isStaleByTime(nc(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(r)}}getQueriesData(e){return q(this,hr).findAll(e).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(e,r,n){const i=this.defaultQueryOptions({queryKey:e}),o=q(this,hr).get(i.queryHash),a=o==null?void 0:o.state.data,s=FF(r,a);if(s!==void 0)return q(this,hr).build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,r,n){return Pr.batch(()=>q(this,hr).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=q(this,hr).get(r.queryHash))==null?void 0:n.state}removeQueries(e){const r=q(this,hr);Pr.batch(()=>{r.findAll(e).forEach(n=>{r.remove(n)})})}resetQueries(e,r){const n=q(this,hr),i={type:"active",...e};return Pr.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(i,r)))}cancelQueries(e={},r={}){const n={revert:!0,...r},i=Pr.batch(()=>q(this,hr).findAll(e).map(o=>o.cancel(n)));return Promise.all(i).then(Un).catch(Un)}invalidateQueries(e={},r={}){return Pr.batch(()=>{if(q(this,hr).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,r)})}refetchQueries(e={},r){const n={...r,cancelRefetch:(r==null?void 0:r.cancelRefetch)??!0},i=Pr.batch(()=>q(this,hr).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(Un)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(Un)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const n=q(this,hr).build(this,r);return n.isStaleByTime(nc(r.staleTime,n))?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=eT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}resumePausedMutations(){return Z0.isOnline()?q(this,Ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,hr)}getMutationCache(){return q(this,Ia)}getDefaultOptions(){return q(this,ka)}setDefaultOptions(e){Oe(this,ka,e)}setQueryDefaults(e,r){q(this,cc).set(yl(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...q(this,cc).values()];let n={};return r.forEach(i=>{ud(e,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(e,r){q(this,uc).set(yl(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...q(this,uc).values()];let n={};return r.forEach(i=>{ud(e,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const r={...q(this,ka).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=V2(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===N7&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,ka).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,hr).clear(),q(this,Ia).clear()}},hr=new WeakMap,Ia=new WeakMap,ka=new WeakMap,cc=new WeakMap,uc=new WeakMap,Za=new WeakMap,fc=new WeakMap,dc=new WeakMap,j4),mn,dt,pd,un,zs,hc,Di,gd,pc,gc,Xs,Ls,Aa,bc,Ct,Hu,Rb,Nb,xb,Gb,Yb,Mb,Ob,X7,z4,nT=(z4=class extends Cu{constructor(e,r){super();De(this,Ct);De(this,mn);De(this,dt);De(this,pd);De(this,un);De(this,zs);De(this,hc);De(this,Di);De(this,gd);De(this,pc);De(this,gc);De(this,Xs);De(this,Ls);De(this,Aa);De(this,bc,new Set);this.options=r,Oe(this,mn,e),Oe(this,Di,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,dt).addObserver(this),m4(q(this,dt),this.options)?nt(this,Ct,Hu).call(this):this.updateResult(),nt(this,Ct,Gb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vb(q(this,dt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vb(q(this,dt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nt(this,Ct,Yb).call(this),nt(this,Ct,Mb).call(this),q(this,dt).removeObserver(this)}setOptions(e,r){const n=this.options,i=q(this,dt);if(this.options=q(this,mn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ci(this.options.enabled,q(this,dt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nt(this,Ct,Ob).call(this),q(this,dt).setOptions(this.options),n._defaulted&&!k0(this.options,n)&&q(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,dt),observer:this});const o=this.hasListeners();o&&y4(q(this,dt),i,this.options,n)&&nt(this,Ct,Hu).call(this),this.updateResult(r),o&&(q(this,dt)!==i||Ci(this.options.enabled,q(this,dt))!==Ci(n.enabled,q(this,dt))||nc(this.options.staleTime,q(this,dt))!==nc(n.staleTime,q(this,dt)))&&nt(this,Ct,Rb).call(this);const a=nt(this,Ct,Nb).call(this);o&&(q(this,dt)!==i||Ci(this.options.enabled,q(this,dt))!==Ci(n.enabled,q(this,dt))||a!==q(this,Aa))&&nt(this,Ct,xb).call(this,a)}getOptimisticResult(e){const r=q(this,mn).getQueryCache().build(q(this,mn),e),n=this.createResult(r,e);return oT(this,n)&&(Oe(this,un,n),Oe(this,hc,this.options),Oe(this,zs,q(this,dt).state)),n}getCurrentResult(){return q(this,un)}trackResult(e,r){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),e[i])})}),n}trackProp(e){q(this,bc).add(e)}getCurrentQuery(){return q(this,dt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=q(this,mn).defaultQueryOptions(e),n=q(this,mn).getQueryCache().build(q(this,mn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(e){return nt(this,Ct,Hu).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,un)))}createResult(e,r){var L;const n=q(this,dt),i=this.options,o=q(this,un),a=q(this,zs),s=q(this,hc),c=e!==n?e.state:q(this,pd),{state:u}=e;let f={...u},h=!1,g;if(r._optimisticResults){const P=this.hasListeners(),j=!P&&m4(e,r),H=P&&y4(e,n,r,i);(j||H)&&(f={...f,...V7(u.data,e.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:_,status:I}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(a==null?void 0:a.data)&&r.select===q(this,gd))g=q(this,pc);else try{Oe(this,gd,r.select),g=r.select(f.data),g=Sb(o==null?void 0:o.data,g,r),Oe(this,pc,g),Oe(this,Di,null)}catch(P){Oe(this,Di,P)}else g=f.data;if(r.placeholderData!==void 0&&g===void 0&&I==="pending"){let P;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))P=o.data;else if(P=typeof r.placeholderData=="function"?r.placeholderData((L=q(this,gc))==null?void 0:L.state.data,q(this,gc)):r.placeholderData,r.select&&P!==void 0)try{P=r.select(P),Oe(this,Di,null)}catch(j){Oe(this,Di,j)}P!==void 0&&(I="success",g=Sb(o==null?void 0:o.data,P,r),h=!0)}q(this,Di)&&(m=q(this,Di),g=q(this,pc),_=Date.now(),I="error");const B=f.fetchStatus==="fetching",W=I==="pending",C=I==="error",N=W&&B,V=g!==void 0;return{status:I,fetchStatus:f.fetchStatus,isPending:W,isSuccess:I==="success",isError:C,isInitialLoading:N,isLoading:N,data:g,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:_,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:B,isRefetching:B&&!W,isLoadingError:C&&!V,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&V,isStale:j2(e,r),refetch:this.refetch}}updateResult(e){const r=q(this,un),n=this.createResult(q(this,dt),this.options);if(Oe(this,zs,q(this,dt).state),Oe(this,hc,this.options),q(this,zs).data!==void 0&&Oe(this,gc,q(this,dt)),k0(n,r))return;Oe(this,un,n);const i={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!q(this,bc).size)return!0;const l=new Set(s??q(this,bc));return this.options.throwOnError&&l.add("error"),Object.keys(q(this,un)).some(c=>{const u=c;return q(this,un)[u]!==r[u]&&l.has(u)})};(e==null?void 0:e.listeners)!==!1&&o()&&(i.listeners=!0),nt(this,Ct,X7).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nt(this,Ct,Gb).call(this)}},mn=new WeakMap,dt=new WeakMap,pd=new WeakMap,un=new WeakMap,zs=new WeakMap,hc=new WeakMap,Di=new WeakMap,gd=new WeakMap,pc=new WeakMap,gc=new WeakMap,Xs=new WeakMap,Ls=new WeakMap,Aa=new WeakMap,bc=new WeakMap,Ct=new WeakSet,Hu=function(e){nt(this,Ct,Ob).call(this);let r=q(this,dt).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Un)),r},Rb=function(){nt(this,Ct,Yb).call(this);const e=nc(this.options.staleTime,q(this,dt));if(ml||q(this,un).isStale||!Bb(e))return;const n=S7(q(this,un).dataUpdatedAt,e)+1;Oe(this,Xs,setTimeout(()=>{q(this,un).isStale||this.updateResult()},n))},Nb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,dt)):this.options.refetchInterval)??!1},xb=function(e){nt(this,Ct,Mb).call(this),Oe(this,Aa,e),!(ml||Ci(this.options.enabled,q(this,dt))===!1||!Bb(q(this,Aa))||q(this,Aa)===0)&&Oe(this,Ls,setInterval(()=>{(this.options.refetchIntervalInBackground||E2.isFocused())&&nt(this,Ct,Hu).call(this)},q(this,Aa)))},Gb=function(){nt(this,Ct,Rb).call(this),nt(this,Ct,xb).call(this,nt(this,Ct,Nb).call(this))},Yb=function(){q(this,Xs)&&(clearTimeout(q(this,Xs)),Oe(this,Xs,void 0))},Mb=function(){q(this,Ls)&&(clearInterval(q(this,Ls)),Oe(this,Ls,void 0))},Ob=function(){const e=q(this,mn).getQueryCache().build(q(this,mn),this.options);if(e===q(this,dt))return;const r=q(this,dt);Oe(this,dt,e),Oe(this,pd,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},X7=function(e){Pr.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(q(this,un))}),q(this,mn).getQueryCache().notify({query:q(this,dt),type:"observerResultsUpdated"})})},z4);function iT(t,e){return Ci(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function m4(t,e){return iT(t,e)||t.state.data!==void 0&&Vb(t,e,e.refetchOnMount)}function Vb(t,e,r){if(Ci(e.enabled,t)!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&j2(t,e)}return!1}function y4(t,e,r,n){return(t!==e||Ci(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&j2(t,r)}function j2(t,e){return Ci(e.enabled,t)!==!1&&t.isStaleByTime(nc(e.staleTime,t))}function oT(t,e){return!k0(t.getCurrentResult(),e)}var Ca,Ba,yn,Bo,Yo,Oh,Eb,X4,aT=(X4=class extends Cu{constructor(r,n){super();De(this,Yo);De(this,Ca);De(this,Ba);De(this,yn);De(this,Bo);Oe(this,Ca,r),this.setOptions(n),this.bindMethods(),nt(this,Yo,Oh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=q(this,Ca).defaultMutationOptions(r),k0(this.options,n)||q(this,Ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,yn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&yl(n.mutationKey)!==yl(this.options.mutationKey)?this.reset():((i=q(this,yn))==null?void 0:i.state.status)==="pending"&&q(this,yn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,yn))==null||r.removeObserver(this)}onMutationUpdate(r){nt(this,Yo,Oh).call(this),nt(this,Yo,Eb).call(this,r)}getCurrentResult(){return q(this,Ba)}reset(){var r;(r=q(this,yn))==null||r.removeObserver(this),Oe(this,yn,void 0),nt(this,Yo,Oh).call(this),nt(this,Yo,Eb).call(this)}mutate(r,n){var i;return Oe(this,Bo,n),(i=q(this,yn))==null||i.removeObserver(this),Oe(this,yn,q(this,Ca).getMutationCache().build(q(this,Ca),this.options)),q(this,yn).addObserver(this),q(this,yn).execute(r)}},Ca=new WeakMap,Ba=new WeakMap,yn=new WeakMap,Bo=new WeakMap,Yo=new WeakSet,Oh=function(){var n;const r=((n=q(this,yn))==null?void 0:n.state)??j7();Oe(this,Ba,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Eb=function(r){Pr.batch(()=>{var n,i,o,a,s,l,c,u;if(q(this,Bo)&&this.hasListeners()){const f=q(this,Ba).variables,h=q(this,Ba).context;(r==null?void 0:r.type)==="success"?((i=(n=q(this,Bo)).onSuccess)==null||i.call(n,r.data,f,h),(a=(o=q(this,Bo)).onSettled)==null||a.call(o,r.data,null,f,h)):(r==null?void 0:r.type)==="error"&&((l=(s=q(this,Bo)).onError)==null||l.call(s,r.error,f,h),(u=(c=q(this,Bo)).onSettled)==null||u.call(c,void 0,r.error,f,h))}this.listeners.forEach(f=>{f(q(this,Ba))})})},X4);function sT(t){return t}function lT(t,e,r){var l;if(typeof e!="object"||e===null)return;const n=t.getMutationCache(),i=t.getQueryCache(),o=((l=t.getDefaultOptions().hydrate)==null?void 0:l.deserializeData)??sT,a=e.mutations||[],s=e.queries||[];a.forEach(({state:c,...u})=>{var f,h;n.build(t,{...(f=t.getDefaultOptions().hydrate)==null?void 0:f.mutations,...(h=r==null?void 0:r.defaultOptions)==null?void 0:h.mutations,...u},c)}),s.forEach(({queryKey:c,state:u,queryHash:f,meta:h,promise:g})=>{var I,B;let m=i.get(f);const _=u.data===void 0?u.data:o(u.data);if(m){if(m.state.dataUpdatedAt{t[r]=e[r]})}function zb(t,e){if(e){const r=e(t);if(r===void 0&&kr(t)||r!==void 0)return r}if(Array.isArray(t))return t.map(r=>zb(r,e));if(typeof t=="object"&&uT(t)){const r=Object.entries(t).map(([n,i])=>[n,zb(i,e)]);return Object.fromEntries(r)}return t}function st(t){return zb(t,e=>{if(kr(e))return st(ze(e))})}function uT(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Xb(t,e){return typeof t=="function"?t(...e):!!t}function z2(t=""){if(!fm())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=L7(t),r=$r(e);if(!r)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return r}var fT=class extends E7{find(t){return super.find(st(t))}findAll(t={}){return super.findAll(st(t))}},dT=class extends z7{find(t){return super.find(st(t))}findAll(t={}){return super.findAll(st(t))}},F7=class extends rT{constructor(t={}){const e={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new fT,mutationCache:t.mutationCache||new dT};super(e),this.isRestoring=bt(!1)}isFetching(t={}){return super.isFetching(st(t))}isMutating(t={}){return super.isMutating(st(t))}getQueryData(t){return super.getQueryData(st(t))}ensureQueryData(t){return super.ensureQueryData(st(t))}getQueriesData(t){return super.getQueriesData(st(t))}setQueryData(t,e,r={}){return super.setQueryData(st(t),e,st(r))}setQueriesData(t,e,r={}){return super.setQueriesData(st(t),e,st(r))}getQueryState(t){return super.getQueryState(st(t))}removeQueries(t={}){return super.removeQueries(st(t))}resetQueries(t={},e={}){return super.resetQueries(st(t),st(e))}cancelQueries(t={},e={}){return super.cancelQueries(st(t),st(e))}invalidateQueries(t={},e={}){return new Promise(r=>{setTimeout(async()=>{await super.invalidateQueries(st(t),st(e)),r()},0)})}refetchQueries(t={},e={}){return super.refetchQueries(st(t),st(e))}fetchQuery(t){return super.fetchQuery(st(t))}prefetchQuery(t){return super.prefetchQuery(st(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(st(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(st(t))}setDefaultOptions(t){super.setDefaultOptions(st(t))}setQueryDefaults(t,e){super.setQueryDefaults(st(t),st(e))}getQueryDefaults(t){return super.getQueryDefaults(st(t))}setMutationDefaults(t,e){super.setMutationDefaults(st(t),st(e))}getMutationDefaults(t){return super.getMutationDefaults(st(t))}},hT={install:(t,e={})=>{const r=L7(e.queryClientKey);let n;if("queryClient"in e&&e.queryClient)n=e.queryClient;else{const a="queryClientConfig"in e?e.queryClientConfig:void 0;n=new F7(a)}ml||n.mount();let i=()=>{};if(e.clientPersister){n.isRestoring.value=!0;const[a,s]=e.clientPersister(n);i=a,s.then(()=>{var l;n.isRestoring.value=!1,(l=e.clientPersisterOnSuccess)==null||l.call(e,n)})}const o=()=>{n.unmount(),i()};if(t.onUnmount)t.onUnmount(o);else{const a=t.unmount;t.unmount=function(){o(),a()}}t.provide(r,n)}};function pT(t,e,r){const n=z2(),i=qe(()=>{const h=st(e);typeof h.enabled=="function"&&(h.enabled=h.enabled());const g=n.defaultQueryOptions(h);return g._optimisticResults=n.isRestoring.value?"isRestoring":"optimistic",g}),o=new t(n,i.value),a=Ln(o.getCurrentResult());let s=()=>{};er(n.isRestoring,h=>{h||(s(),s=o.subscribe(g=>{jb(a,g)}))},{immediate:!0});const l=()=>{o.setOptions(i.value),jb(a,o.getCurrentResult())};er(i,l),Ub(()=>{s()});const c=(...h)=>(l(),a.refetch(...h)),u=()=>new Promise((h,g)=>{let m=()=>{};const _=()=>{if(i.value.enabled!==!1){o.setOptions(i.value);const I=o.getOptimisticResult(i.value);I.isStale?(m(),o.fetchOptimistic(i.value).then(h,B=>{Xb(i.value.throwOnError,[B,o.getCurrentQuery()])?g(B):h(o.getCurrentResult())})):(m(),h(I))}};_(),m=er(i,_)});er(()=>a.error,h=>{if(a.isError&&!a.isFetching&&Xb(i.value.throwOnError,[h,o.getCurrentQuery()]))throw h});const f=pw(md(a));for(const h in a)typeof a[h]=="function"&&(f[h]=a[h]);return f.suspense=u,f.refetch=c,f}function sn(t,e){return pT(nT,t)}function L1(t,e){const r=z2(),n=qe(()=>r.defaultMutationOptions(st(t))),i=new aT(r,n.value),o=Ln(i.getCurrentResult()),a=i.subscribe(c=>{jb(o,c)}),s=(c,u)=>{i.mutate(c,u).catch(()=>{})};er(n,()=>{i.setOptions(n.value)}),Ub(()=>{a()});const l=pw(md(o));return er(()=>o.error,c=>{if(c&&Xb(n.value.throwOnError,[c]))throw c}),{...l,mutate:s,mutateAsync:o.mutate,reset:o.reset}}let Lb;const T7=()=>{if(Lb)return Lb;throw new Error("Client not initialized. Please use the `initClient` method to initialize the client.")},gT=async()=>{Lb=await bT()},bT=async()=>{const{notify:t}=Rm(),{sessionKit:e}=MX();e.restore().then(A=>{A&&v(A).catch(console.error)});const n=Go().public.EOS_NETWORK=="eos"?W7:B7,i=Ja(await XF({network:n,options:{ipfsCacheDurationInMs:6e5}})),o=bt(null),a=qe(()=>{var A;return((A=o.value)==null?void 0:A.actor)||null}),s=qe(()=>{var A;return((A=o.value)==null?void 0:A.permission)||null}),l=qe(()=>{var A;return((A=o.value)==null?void 0:A.vAccount)||null}),c=bt(!1),u=qe(()=>!!o.value),f=()=>{const A=z2();return L1({mutationFn:async()=>{if(!a.value||!s.value)throw new Error("User not logged in");return await CF({client:i.value,actor:a.value})},onSuccess(){t({type:"success",message:"Payout successful"}),A.invalidateQueries({queryKey:["balance",a.value]})}})},h=()=>L1({mutationFn:async A=>await gF({client:i.value,campaignId:A})}),g=()=>L1({mutationFn:async({reservation:A,data:G})=>await yF({client:i.value,reservation:A,data:G})}),m=()=>sn({queryKey:["accountAssets",qe(()=>a.value)],enabled:qe(()=>!!a.value),queryFn:async()=>{if(!a.value)throw new Error("User not logged in");return await OX({client:i.value,account:a.value})}}),_=()=>sn({queryKey:["forceSettings"],queryFn:async()=>await _7({client:i.value})}),I=A=>sn({queryKey:["balance",qe(()=>A.value)],enabled:!!A.value,queryFn:async()=>{if(!A.value)throw new Error("Account not found");return await _F({client:i.value,actor:A.value})}}),B=A=>sn({queryKey:["account",A],queryFn:async()=>await fF({client:i.value,accountId:A})}),W=()=>sn({queryKey:["tasks"],queryFn:async()=>await vF({client:i.value,reverse:!0})}),C=()=>sn({queryKey:["pendingPayments",qe(()=>a.value),qe(()=>{var A;return(A=l.value)==null?void 0:A.id})],enabled:qe(()=>{var A;return!!((A=l.value)!=null&&A.id)}),queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await Z7({client:i.value,vAccountId:l.value.id})}}),N=()=>sn({queryKey:["efxPrice"],queryFn:async()=>await wF()}),V=({calculateAvailableTasks:A}={calculateAvailableTasks:!1})=>{const G=Go(),Y=sn({staleTime:G.public.CAMPAIGN_CACHE_DURATION,gcTime:G.public.CAMPAIGN_CACHE_DURATION,queryKey:["campaigns"],queryFn:async()=>{const M=await hF({client:i.value}),R=Go().public.AUTHORIZED_REQUESTERS,K=M.filter(ue=>R.includes(ue.owner[1]));if(A)for(const ue of K){const ve=await LF(i.value,ue,l.value);ue.campaignTasksAvailable=ve.campaignTasksAvailable,ue.batchTaskAvailable=ve.batchTaskAvailable}return K}}),S=qe(()=>A&&Y.data.value&&Y.data.value.reduce((M,y)=>y.campaignTasksAvailable?M+y.campaignTasksAvailable:!1,0));return{...Y,totalTasksAvailable:S}},z=(A,G)=>sn({queryKey:["campaign",A],enabled:G,queryFn:async()=>await cF({client:i.value,id:A})}),L=(A,G)=>sn({queryKey:["batch",A],enabled:G,queryFn:async()=>await Y2({client:i.value,id:A})}),P=A=>sn({queryKey:["acctaskidx",qe(()=>{var G;return(G=l.value)==null?void 0:G.id}),qe(()=>A==null?void 0:A.value)],queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await k7({client:i.value,campaignId:A==null?void 0:A.value,accountId:l.value.id})}}),j=A=>sn({queryKey:["reservation",qe(()=>a.value),qe(()=>{var G;return(G=l.value)==null?void 0:G.id}),qe(()=>A.value)],enabled:qe(()=>!!l.value&&!!A.value||A.value===0),queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await Cb({client:i.value,campaignId:A.value,vAccountId:l.value.id})}}),H=A=>sn({queryKey:["taskData",qe(()=>A.value)],enabled:qe(()=>!!A.value),retry:(G,Y)=>"retry"in Y&&G{try{if(!A.value)throw new Error("Reservation not found");return await mF(i.value,A.value)}catch(G){throw t({type:"error",message:"Failed to fetch task data"}),G}}}),x=()=>{const A=sn({queryKey:["reservations",qe(()=>a.value)],enabled:u,queryFn:async()=>{if(!l.value)throw new Error("Account not found");return await pF({client:i.value,vAccountId:l.value.id})}});return{...A,isReserved:Y=>{var S,M;return(M=(S=A.data)==null?void 0:S.value)!=null&&M.length?A.data.value.some(y=>y.campaign_id===Y):!1}}},b=A=>sn({queryKey:["reservation",qe(()=>A.value)],enabled:qe(()=>!!A.value||A.value===0),queryFn:async()=>await I7({client:i.value,campaignId:A.value})}),v=async A=>{try{c.value=!0;const G=A||(await e.login()).session;await s4({client:i.value,session:G}),o.value=i.value.session}catch(G){console.error(G),t({type:"error",message:"Failed to connect wallet"})}finally{c.value=!1}};return{client:i,isLoggedIn:u,isWalletConnecting:c,userName:a,permission:s,vAccount:l,useAccountAssets:m,useGetAccountById:B,useForceSettings:_,useGetBalance:I,useCampaigns:V,useCampaign:z,useBatch:L,useSubmissions:W,useTaskData:H,useReservation:j,useReservations:x,useReservationsCampaign:b,usePendingPayments:C,useEfxPrice:N,useAccTaskIdx:P,useReserveTask:h,useSubmitTask:g,usePayoutEfx:f,connectWallet:v,disconnectWallet:async()=>{try{await e.logout(),await s4({client:i.value,session:null}),o.value=null}catch(A){console.error(A)}}}};function H7(t){return $b()?(Ub(t),!0):!1}function X2(t){return typeof t=="function"?t():ze(t)}const mT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yT=Object.prototype.toString,vT=t=>yT.call(t)==="[object Object]",D7=()=>{};function wT(t,e){function r(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(o)})}return r}const J7=t=>t();function _T(t=J7){const e=bt(!0);function r(){e.value=!1}function n(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:md(e),pause:r,resume:n,eventFilter:i}}function P7(t){return ds()}function IT(t,e,r={}){const{eventFilter:n=J7,...i}=r;return er(t,wT(n,e),i)}function kT(t,e,r={}){const{eventFilter:n,...i}=r,{eventFilter:o,pause:a,resume:s,isActive:l}=_T(n);return{stop:IT(t,e,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function ZT(t,e=!0,r){P7()?nu(t,r):e?t():Sn(t)}function AT(t,e){P7()&&cm(t,e)}function EU(t,e,r){let n;kr(r)?n={evaluating:r}:n={};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=D7}=n,l=bt(!i),c=a?Ja(e):bt(e);let u=0;return XI(async f=>{if(!l.value)return;u++;const h=u;let g=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const m=await t(_=>{f(()=>{o&&(o.value=!1),g||_()})});h===u&&(c.value=m)}catch(m){s(m)}finally{o&&h===u&&(o.value=!1),g=!0}}),i?qe(()=>(l.value=!0,c.value)):c}function q7(t){var e;const r=X2(t);return(e=r==null?void 0:r.$el)!=null?e:r}const A0=mT?window:void 0;function Li(...t){let e,r,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,i]=t,e=A0):[e,r,n,i]=t,!e)return D7;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,f,h,g)=>(u.addEventListener(f,h,g),()=>u.removeEventListener(f,h,g)),l=er(()=>[q7(e),X2(i)],([u,f])=>{if(a(),!u)return;const h=vT(f)?{...f}:f;o.push(...r.flatMap(g=>n.map(m=>s(u,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return H7(c),c}const vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wh="__vueuse_ssr_handlers__",CT=BT();function BT(){return wh in vh||(vh[wh]=vh[wh]||{}),vh[wh]}function WT(t,e){return CT[t]||e}function ST(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const RT={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},v4="vueuse-storage";function NT(t,e,r,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=A0,eventFilter:h,onError:g=H=>{console.error(H)},initOnMounted:m}=n,_=(u?Ja:bt)(e);if(!r)try{r=WT("getDefaultStorage",()=>{var H;return(H=A0)==null?void 0:H.localStorage})()}catch(H){g(H)}if(!r)return _;const I=X2(e),B=ST(I),W=(i=n.serializer)!=null?i:RT[B],{pause:C,resume:N}=kT(_,()=>z(_.value),{flush:o,deep:a,eventFilter:h});f&&s&&ZT(()=>{Li(f,"storage",P),Li(f,v4,j),m&&P()}),m||P();function V(H,x){f&&f.dispatchEvent(new CustomEvent(v4,{detail:{key:t,oldValue:H,newValue:x,storageArea:r}}))}function z(H){try{const x=r.getItem(t);if(H==null)V(x,null),r.removeItem(t);else{const b=W.write(H);x!==b&&(r.setItem(t,b),V(x,b))}}catch(x){g(x)}}function L(H){const x=H?H.newValue:r.getItem(t);if(x==null)return l&&I!=null&&r.setItem(t,W.write(I)),I;if(!H&&c){const b=W.read(x);return typeof c=="function"?c(b,I):B==="object"&&!Array.isArray(b)?{...I,...b}:b}else return typeof x!="string"?x:W.read(x)}function P(H){if(!(H&&H.storageArea!==r)){if(H&&H.key==null){_.value=I;return}if(!(H&&H.key!==t)){C();try{(H==null?void 0:H.newValue)!==W.write(_.value)&&(_.value=L(H))}catch(x){g(x)}finally{H?Sn(N):N()}}}}function j(H){P(H.detail)}return _}function xT(t,e,r={}){const{window:n=A0}=r;return NT(t,e,n==null?void 0:n.localStorage,r)}const GT=()=>{const{useAccountAssets:t}=T7(),{data:e}=t(),r=Go(),n=xT("hasAccessNft",!1);return er(e,()=>{var i;n.value=(i=e.value)==null?void 0:i.some(o=>o.template_id===r.public.EARLY_ALPHA_ACCESS_TEMPLATE_ID)}),{hasAccessNft:n}},YT=async(t,e)=>{const{hasAccessNft:r}=GT(),n=Go();if(t.path!=="/access"&&!r.value&&n.public.EARLY_ALPHA_ACCESS_TEMPLATE_ID)return dA("/access")},MT=async t=>{let e,r;const n=([e,r]=Af(()=>Am(t.path)),e=await e,r(),e);if(n.redirect)return Il(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect},OT=[CB,YT,MT],hf={auth:()=>Je(()=>import("./D-XeeU7p.js"),[],import.meta.url)};function VT(t,e,r){const{pathname:n,search:i,hash:o}=e,a=t.indexOf("#");if(a>-1){const c=o.includes(t.slice(a))?t.slice(a).length:1;let u=o.slice(c);return u[0]!=="/"&&(u="/"+u),Ey(u,"")}const s=Ey(n,t),l=!r||mZ(s,r,{trailingSlash:!0})?s:r;return l+(l.includes("?")?"":i)+o}const ET=Yi({name:"nuxt:router",enforce:"pre",async setup(t){var I,B;let e,r,n=Go().app.baseURL;Gn.hashMode&&!n.includes("#")&&(n+="#");const i=((I=Gn.history)==null?void 0:I.call(Gn,n))??(Gn.hashMode?zC(n):j_(n)),o=((B=Gn.routes)==null?void 0:B.call(Gn,mv))??mv;let a;const s=fB({...Gn,scrollBehavior:(W,C,N)=>{if(C===ki){a=N;return}if(Gn.scrollBehavior){if(s.options.scrollBehavior=Gn.scrollBehavior,"scrollRestoration"in window.history){const V=s.beforeEach(()=>{V(),window.history.scrollRestoration="manual"})}return Gn.scrollBehavior(W,ki,a||N)}},history:i,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(s);const l=Ja(s.currentRoute.value);s.afterEach((W,C)=>{l.value=C}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=VT(n,window.location,t.payload.path),u=Ja(s.currentRoute.value),f=()=>{u.value=s.currentRoute.value};t.hook("page:finish",f),s.afterEach((W,C)=>{var N,V,z,L;((V=(N=W.matched[0])==null?void 0:N.components)==null?void 0:V.default)===((L=(z=C.matched[0])==null?void 0:z.components)==null?void 0:L.default)&&f()});const h={};for(const W in u.value)Object.defineProperty(h,W,{get:()=>u.value[W]});t._route=Zn(h),t._middleware=t._middleware||{global:[],named:{}};const g=z0();s.afterEach(async(W,C,N)=>{delete t._processingMiddleware,!t.isHydrating&&g.value&&await t.runWithContext(hA),N&&await t.callHook("page:loading:end"),W.matched.length===0&&await t.runWithContext(()=>Xl(vg({statusCode:404,fatal:!1,statusMessage:`Page not found: ${W.fullPath}`,data:{path:W.fullPath}})))});try{[e,r]=Af(()=>s.isReady()),await e,r()}catch(W){[e,r]=Af(()=>t.runWithContext(()=>Xl(W))),await e,r()}const m=c!==s.currentRoute.value.fullPath?s.resolve(c):s.currentRoute.value;f();const _=t.payload.state._layout;return s.beforeEach(async(W,C)=>{var N;await t.callHook("page:loading:start"),W.meta=Ln(W.meta),t.isHydrating&&_&&!mc(W.meta.layout)&&(W.meta.layout=_),t._processingMiddleware=!0;{const V=new Set([...OT,...t._middleware.global]);for(const z of W.matched){const L=z.meta.middleware;if(L)for(const P of Sm(L))V.add(P)}{const z=await t.runWithContext(()=>Am(W.path));if(z.appMiddleware)for(const L in z.appMiddleware)z.appMiddleware[L]?V.add(L):V.delete(L)}for(const z of V){const L=typeof z=="string"?t._middleware.named[z]||await((N=hf[z])==null?void 0:N.call(hf).then(j=>j.default||j)):z;if(!L)throw new Error(`Unknown route middleware: '${z}'.`);const P=await t.runWithContext(()=>L(W,C));if(!t.payload.serverRendered&&t.isHydrating&&(P===!1||P instanceof Error)){const j=P||vg({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>Xl(j)),!1}if(P!==!0&&(P||P===!1))return P}}}),s.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),t.hooks.hookOnce("app:created",async()=>{try{"name"in m&&(m.name=void 0),await s.replace({...m,force:!0}),s.options.scrollBehavior=Gn.scrollBehavior}catch(W){await t.runWithContext(()=>Xl(W))}}),{provide:{router:s}}}}),w4=globalThis.requestIdleCallback||(t=>{const e=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(r)},1)}),jU=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),$7=t=>{const e=gr();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{w4(()=>t())}):w4(()=>t())},jT=Yi({name:"nuxt:payload",setup(t){Mi().beforeResolve(async(e,r)=>{if(e.path===r.path)return;const n=await Qy(e.path);n&&Object.assign(t.static.data,n.data)}),$7(()=>{var e;t.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await Qy(r)}),((e=navigator.connection)==null?void 0:e.effectiveType)!=="slow-2g"&&setTimeout(L0,1e3)})}}),zT=Yi(t=>{let e;async function r(){const n=await L0();e&&clearTimeout(e),e=setTimeout(r,Fy);try{const i=await $fetch(Im("builds/latest.json")+`?${Date.now()}`);i.id!==n.id&&t.hooks.callHook("app:manifest:update",i)}catch{}}$7(()=>{e=setTimeout(r,Fy)})}),XT=at(()=>Je(()=>import("./tIiR6N12.js"),__vite__mapDeps([22,23,6,7,8,9,10,24,25]),import.meta.url).then(t=>t.default||t.default||t)),LT=at(()=>Je(()=>import("./DGbaRamz.js"),__vite__mapDeps([26,24,25,10]),import.meta.url).then(t=>t.default||t.default||t)),FT=at(()=>Je(()=>import("./_yT1To6n.js"),__vite__mapDeps([27,25,10,16]),import.meta.url).then(t=>t.default||t.default||t)),TT=at(()=>Je(()=>import("./DYgeqj2A.js"),__vite__mapDeps([24,25,10]),import.meta.url).then(t=>t.default||t.default||t)),HT=at(()=>Je(()=>import("./B_7H3lrK.js"),__vite__mapDeps([6,7,8,9,10]),import.meta.url).then(t=>t.default||t.default||t)),DT=at(()=>Je(()=>import("./FhxOfykq.js"),__vite__mapDeps([28,7,8,9,10]),import.meta.url).then(t=>t.default||t.default||t)),JT=at(()=>Je(()=>import("./HAH9zurp.js"),__vite__mapDeps([29,9]),import.meta.url).then(t=>t.default||t.default||t)),PT=at(()=>Je(()=>import("./CQR7ibKW.js"),[],import.meta.url).then(t=>t.default||t.default||t)),qT=at(()=>Je(()=>import("./DWe_QcPy.js"),[],import.meta.url).then(t=>t.default||t.default||t)),$T=at(()=>Je(()=>import("./xFswHJo3.js"),__vite__mapDeps([30,29,9]),import.meta.url).then(t=>t.default||t.default||t)),UT=at(()=>Je(()=>import("./CECp_Xf5.js"),__vite__mapDeps([31,32,33]),import.meta.url).then(t=>t.default||t.default||t)),QT=at(()=>Je(()=>import("./BTsQld6Q.js"),[],import.meta.url).then(t=>t.default||t.default||t)),KT=at(()=>Je(()=>import("./DsZb1hsf.js"),__vite__mapDeps([34,32,33]),import.meta.url).then(t=>t.default||t.default||t)),eH=at(()=>Je(()=>import("./Cq_U2Yt_.js"),__vite__mapDeps([35,16]),import.meta.url).then(t=>t.default||t.default||t)),tH=at(()=>Je(()=>import("./C5SSPv0b.js"),[],import.meta.url).then(t=>t.default||t.default||t)),rH=at(()=>Je(()=>import("./N3Zb81fI.js"),[],import.meta.url).then(t=>t.default||t.default||t)),nH=at(()=>Je(()=>import("./D7KKUu8f.js"),[],import.meta.url).then(t=>t.default||t.default||t)),iH=at(()=>Je(()=>import("./C5MozBZ_.js"),[],import.meta.url).then(t=>t.default||t.default||t)),oH=at(()=>Je(()=>import("./qURTcPoC.js"),[],import.meta.url).then(t=>t.default||t.default||t)),aH=at(()=>Je(()=>import("./u30xRvTG.js"),[],import.meta.url).then(t=>t.default||t.default||t)),sH=at(()=>Je(()=>import("./C6ha4_5s.js"),[],import.meta.url).then(t=>t.default||t.default||t)),lH=at(()=>Je(()=>import("./W4soxq2T.js"),[],import.meta.url).then(t=>t.default||t.default||t)),cH=at(()=>Je(()=>import("./IXhQLKK7.js"),[],import.meta.url).then(t=>t.default||t.default||t)),uH=at(()=>Je(()=>import("./DW0yCbNR.js"),[],import.meta.url).then(t=>t.default||t.default||t)),fH=at(()=>Je(()=>import("./DXUHfGYI.js"),[],import.meta.url).then(t=>t.default||t.default||t)),dH=at(()=>Je(()=>import("./jQVLJ7NR.js"),[],import.meta.url).then(t=>t.default||t.default||t)),hH=at(()=>Je(()=>import("./DyhP3oSh.js"),[],import.meta.url).then(t=>t.default||t.default||t)),pH=at(()=>Je(()=>import("./PgmTAEsv.js"),[],import.meta.url).then(t=>t.default||t.default||t)),gH=at(()=>Je(()=>import("./DT1p3C1d.js"),[],import.meta.url).then(t=>t.default||t.default||t)),bH=at(()=>Je(()=>import("./Dy8-xdSN.js"),[],import.meta.url).then(t=>t.default||t.default||t)),mH=at(()=>Je(()=>import("./Dc7Ef35y.js"),[],import.meta.url).then(t=>t.default||t.default||t)),yH=at(()=>Je(()=>import("./CpVWsJji.js"),[],import.meta.url).then(t=>t.default||t.default||t)),vH=at(()=>Je(()=>import("./BbJ2BBF_.js"),[],import.meta.url).then(t=>t.default||t.default||t)),wH=at(()=>Je(()=>import("./CVqqKe1e.js"),[],import.meta.url).then(t=>t.default||t.default||t)),_H=at(()=>Je(()=>import("./czY1a8yr.js"),[],import.meta.url).then(t=>t.default||t.default||t)),IH=at(()=>Je(()=>import("./DC3C1jHW.js"),[],import.meta.url).then(t=>t.default||t.default||t)),kH=[["ContentDoc",XT],["ContentList",LT],["ContentNavigation",FT],["ContentQuery",TT],["ContentRenderer",HT],["ContentRendererMarkdown",DT],["MDCSlot",JT],["DocumentDrivenEmpty",PT],["DocumentDrivenNotFound",qT],["Markdown",$T],["ProseCode",UT],["ProseCodeInline",QT],["ProsePre",KT],["ProseA",eH],["ProseBlockquote",tH],["ProseEm",rH],["ProseH1",nH],["ProseH2",iH],["ProseH3",oH],["ProseH4",aH],["ProseH5",sH],["ProseH6",lH],["ProseHr",cH],["ProseImg",uH],["ProseLi",fH],["ProseOl",dH],["ProseP",hH],["ProseScript",pH],["ProseStrong",gH],["ProseTable",bH],["ProseTbody",mH],["ProseTd",yH],["ProseTh",vH],["ProseThead",wH],["ProseTr",_H],["ProseUl",IH]],ZH=Yi({name:"nuxt:global-components",setup(t){for(const[e,r]of kH)t.vueApp.component(e,r),t.vueApp.component("Lazy"+e,r)}}),Va={default:()=>Je(()=>import("./DSs6u6dv.js"),__vite__mapDeps([36,16,37,38,39]),import.meta.url).then(t=>t.default||t),empty:()=>Je(()=>import("./BT4kKLKx.js"),[],import.meta.url).then(t=>t.default||t),preview:()=>Je(()=>import("./9IrzKzNm.js"),[],import.meta.url).then(t=>t.default||t),template:()=>Je(()=>import("./CrCkutar.js"),__vite__mapDeps([40,37,16,38,41]),import.meta.url).then(t=>t.default||t)},AH=Yi({name:"nuxt:prefetch",setup(t){const e=Mi();t.hooks.hook("app:mounted",()=>{e.beforeEach(async r=>{var i;const n=(i=r==null?void 0:r.meta)==null?void 0:i.layout;n&&typeof Va[n]=="function"&&await Va[n]()})}),t.hooks.hook("link:prefetch",r=>{if(Il(r))return;const n=e.resolve(r);if(!n)return;const i=n.meta.layout;let o=Sm(n.meta.middleware);o=o.filter(a=>typeof a=="string");for(const a of o)typeof hf[a]=="function"&&hf[a]();i&&typeof Va[i]=="function"&&Va[i]()})}});function CH(t={}){const e=t.path||window.location.pathname;let r={};try{r=qh(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(r==null?void 0:r.path)!==e||(r==null?void 0:r.expires){n.clear()}),t.hook("app:chunkError",({error:o})=>{n.add(o)});function i(o){const s="href"in o&&o.href[0]==="#"?r.app.baseURL+o.href:wm(r.app.baseURL,o.fullPath);CH({path:s,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(i)}),e.onError((o,a)=>{n.has(o)&&i(a)})}}),WH=Yi(t=>{gT()});/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var U7=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],C0=U7.join(","),Q7=typeof Element>"u",vl=Q7?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,B0=!Q7&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},W0=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",a=o||r&&e&&t(e.parentNode);return a},SH=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},K7=function(e,r,n){if(W0(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(C0));return r&&vl.call(e,C0)&&i.unshift(e),i=i.filter(n),i},e8=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!W0(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,c=t(l,!0,n);n.flatten?i.push.apply(i,c):i.push({scopeParent:a,candidates:c})}else{var u=vl.call(a,C0);u&&n.filter(a)&&(r||!e.includes(a))&&i.push(a);var f=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),h=!W0(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(f&&h){var g=t(f===!0?a.children:f.children,!0,n);n.flatten?i.push.apply(i,g):i.push({scopeParent:a,candidates:g})}else o.unshift.apply(o,a.children)}}return i},t8=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Rs=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||SH(e))&&!t8(e)?0:e.tabIndex},RH=function(e,r){var n=Rs(e);return n<0&&r&&!t8(e)?0:n},NH=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},r8=function(e){return e.tagName==="INPUT"},xH=function(e){return r8(e)&&e.type==="hidden"},GH=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},YH=function(e,r){for(var n=0;nsummary:first-of-type"),a=o?e.parentElement:e;if(vl.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var l=e.parentElement,c=B0(e);if(l&&!l.shadowRoot&&i(l)===!0)return _4(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=s}if(EH(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return _4(e);return!1},zH=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},LH=function t(e){var r=[],n=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,l=RH(s,a),c=a?t(i.candidates):s;l===0?a?r.push.apply(r,c):r.push(s):n.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:c})}),n.sort(NH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},FH=function(e,r){r=r||{};var n;return r.getShadowRoot?n=e8([e],r.includeContainer,{filter:Fb.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XH}):n=K7(e,r.includeContainer,Fb.bind(null,r)),LH(n)},TH=function(e,r){r=r||{};var n;return r.getShadowRoot?n=e8([e],r.includeContainer,{filter:S0.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=K7(e,r.includeContainer,S0.bind(null,r)),n},Ol=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return vl.call(e,C0)===!1?!1:Fb(r,e)},HH=U7.concat("iframe").join(","),F1=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return vl.call(e,HH)===!1?!1:S0(r,e)};/*! @@ -652,4 +652,4 @@ ${JSON.stringify(i)}`);return i[e]}catch(n){throw console.error("Error while fet app.use(vfm) This will fail in production.`);return t}function S4(t,e=WD){const{component:r,slots:n,...i}=t,o=typeof n>"u"?{}:Object.fromEntries(n8(n).map(([a,s])=>L2(s)?[a,s]:N0(s)?[a,{...s,component:Pu(s.component)}]:[a,Pu(s)]));return{...i,component:Pu(r||e),slots:o}}function zU(t){const e=Ln({id:Symbol("useModal"),modelValue:!!(t!=null&&t.defaultModelValue),resolveOpened:()=>{},resolveClosed:()=>{},attrs:{},...S4(t)});AT(()=>{e!=null&&e.keepAlive||s()}),e.modelValue===!0&&(Ns?Ns==null||Ns.dynamicModals.push(e):Sn(()=>{const l=yf();l==null||l.dynamicModals.push(e)}));async function r(){let l;return Ns?l=Ns:(await Sn(),l=yf()),e.modelValue?Promise.resolve("[Vue Final Modal] modal is already opened."):(s(),e.modelValue=!0,l.dynamicModals.push(e),new Promise(c=>{e.resolveOpened=()=>c("opened")}))}function n(){return e.modelValue?(e.modelValue=!1,new Promise(l=>{e.resolveClosed=()=>l("closed")})):Promise.resolve("[Vue Final Modal] modal is already closed.")}function i(l){const{slots:c,...u}=S4(l,e.component);l.defaultModelValue!==void 0&&(e.defaultModelValue=l.defaultModelValue),(l==null?void 0:l.keepAlive)!==void 0&&(e.keepAlive=l==null?void 0:l.keepAlive),o(e,u),c&&n8(c).forEach(([f,h])=>{const g=e.slots[f];L2(g)?e.slots[f]=h:N0(g)&&N0(h)?o(g,h):e.slots[f]=h})}function o(l,c){c.component&&(l.component=c.component),c.attrs&&a(l.attrs,c.attrs)}function a(l,c){return Object.entries(c).forEach(([u,f])=>{l[u]=f}),l}function s(){const l=yf(),c=l.dynamicModals.indexOf(e);c!==-1&&l.dynamicModals.splice(c,1)}return{options:e,open:r,close:n,patchOptions:i,destroy:s}}function XU(t){return t}function N0(t){return typeof t=="object"&&t!==null?"component"in t:!1}const SD=["innerHTML"],LU=Dn({__name:"ModalsContainer",setup(t){const{modalsContainers:e,dynamicModals:r}=yf(),n=Symbol("ModalsContainer"),i=qe(()=>{var s;return n===((s=e.value)==null?void 0:s[0])});e.value.push(n),iu(()=>{e.value=e.value.filter(s=>s!==n)});function o(s){var l,c,u;(c=(l=r[s])==null?void 0:l.resolveClosed)==null||c.call(l),(u=r[s])!=null&&u.keepAlive||r.splice(s,1)}function a(s){var l,c;(c=(l=r[s])==null?void 0:l.resolveOpened)==null||c.call(l)}return(s,l)=>i.value?(Ot(!0),Kn(Jr,{key:0},eg(ze(r),(c,u)=>(Ot(),hn(Uu(c.component),Sa({key:c.id},{displayDirective:c!=null&&c.keepAlive?"show":void 0,...typeof c.attrs=="object"?c.attrs:{}},{modelValue:c.modelValue,"onUpdate:modelValue":f=>c.modelValue=f,onClosed:()=>o(u),onOpened:()=>a(u)}),yI({_:2},[eg(c.slots,(f,h)=>({name:h,fn:yc(()=>[ze(L2)(f)?(Ot(),Kn("div",{key:0,innerHTML:f},null,8,SD)):ze(N0)(f)?(Ot(),hn(Uu(f.component),qb(Sa({key:1},f.attrs)),null,16)):(Ot(),hn(Uu(f),{key:2}))])}))]),1040,["modelValue","onUpdate:modelValue","onClosed","onOpened"]))),128)):Bs("",!0)}}),RD=Yi(t=>{const e=CD();t.vueApp.use(e)}),ND="$s";function xD(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[r,n]=t;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const i=ND+r,o=gr(),a=$u(o.payload.state,i);if(a.value===void 0&&n){const s=n();if(kr(s))return o.payload.state[i]=s,s;a.value=s}return a}const GD=Yi(t=>{const e=xD("vue-query"),r=new F7({}),n={queryClient:r};t.vueApp.use(hT,n),lT(r,e.value)}),YD=[sC,cC,ET,jT,zT,ZH,AH,BH,WH,RD,GD],MD=Dn({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,r=t.route,n={};for(const i in t.route)Object.defineProperty(n,i,{get:()=>e===t.renderKey?t.route[i]:r[i]});return Ds(wd,Zn(n)),()=>An(t.vnode,{ref:t.vnodeRef})}}),OD=Dn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:r,expose:n}){const i=gr(),o=bt(),a=$r(wd,null);let s;n({pageRef:o});const l=$r(__,null);let c;const u=i.deferHydration();if(i.isHydrating){const f=i.hooks.hookOnce("app:error",u);Mi().beforeEach(f)}return t.pageKey&&er(()=>t.pageKey,(f,h)=>{f!==h&&i.callHook("page:loading:start")}),()=>An(T_,{name:t.name,route:t.route,...e},{default:f=>{const h=ED(a,f.route,f.Component),g=a&&a.matched.length===f.route.matched.length;if(!f.Component){if(c&&!g)return c;u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(h&&a&&(!l||l!=null&&l.isCurrent(a)))return g?c:null;const m=Bg(f,t.pageKey);!i.isHydrating&&!jD(a,f.route,f.Component)&&s===m&&i.callHook("page:loading:end"),s=m;const _=!!(t.transition??f.route.meta.pageTransition??bg),I=_&&VD([t.transition,f.route.meta.pageTransition,bg,{onAfterLeave:()=>{i.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),B=t.keepalive??f.route.meta.keepalive??PZ;return c=H_(Ic,_&&I,gB(B,An(lm,{suspensible:!0,onPending:()=>i.callHook("page:start",f.Component),onResolve:()=>{Sn(()=>i.callHook("page:finish",f.Component).then(()=>i.callHook("page:loading:end")).finally(u))}},{default:()=>{const W=An(MD,{key:m||void 0,vnode:r.default?An(Jr,void 0,r.default(f)):f.Component,route:f.route,renderKey:m||void 0,trackRootNodes:_,vnodeRef:o});return B&&(W.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),W}}))).default(),c}})}});function VD(t){const e=t.map(r=>({...r,onAfterLeave:r.onAfterLeave?Sm(r.onAfterLeave):void 0}));return v_(...e)}function ED(t,e,r){if(!t)return!1;const n=e.matched.findIndex(i=>{var o;return((o=i.components)==null?void 0:o.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:e.matched.slice(0,n).some((i,o)=>{var a,s,l;return((a=i.components)==null?void 0:a.default)!==((l=(s=t.matched[o])==null?void 0:s.components)==null?void 0:l.default)})||r&&Bg({route:e,Component:r})!==Bg({route:t,Component:r})}function jD(t,e,r){return t?e.matched.findIndex(i=>{var o;return((o=i.components)==null?void 0:o.default)===(r==null?void 0:r.type)})(Ot(),Kn("div",{class:_l([{"is-reversed":e.reverse},"progress-bar"])},[Wa("div",{class:"bar",style:tu(`width: ${e.progress}%;`)},null,4)],2))}}),l8=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},XD=l8(zD,[["__scopeId","data-v-2c7b0d70"]]),LD={class:"notification-container"},FD=["onClick"],TD=Dn({__name:"ForceNotifications",setup(t){const{notifications:e,removeNotification:r}=Rm(),n=i=>{r(e.value.find(o=>o.created===i))};return(i,o)=>{const a=XD;return Ot(),Kn("div",LD,[(Ot(!0),Kn(Jr,null,eg(ze(e),(s,l)=>(Ot(),Kn("div",{key:l,class:_l([[s.type,{"has-icon":s.icon}],"notification"]),onClick:c=>n(s.created)},[Wa("span",null,[s.icon?(Ot(),hn(Uu(s.icon),{key:0,class:"icon"})):Bs("",!0),bm(" "+$4(s.message),1)]),Tt(a,{reverse:!0,progress:s.progress},null,8,["progress"])],10,FD))),128))])}}}),HD=Dn({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(t,e){const r=await Va[t.name]().then(n=>n.default||n);return()=>An(r,t.layoutProps,e.slots)}}),DD=Dn({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(t,e){const r=gr(),n=$r(wd),i=n===km()?hB():n,o=qe(()=>{let l=ze(t.name)??i.meta.layout??"default";return l&&!(l in Va)&&t.fallback&&(l=ze(t.fallback)),l}),a=bt();e.expose({layoutRef:a});const s=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",s);Mi().beforeEach(l)}return()=>{const l=o.value&&o.value in Va,c=i.meta.layoutTransition??JZ;return H_(Ic,l&&c,{default:()=>An(lm,{suspensible:!0,onResolve:()=>{Sn(s)}},{default:()=>An(JD,{layoutProps:Sa(e.attrs,{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!t.name,hasTransition:!!c},e.slots)})}).default()}}}),JD=Dn({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const r=t.name;return t.shouldProvide&&Ds(__,{isCurrent:n=>r===(n.meta.layout??"default")}),()=>{var n,i;return!r||typeof r=="string"&&!(r in Va)?(i=(n=e.slots).default)==null?void 0:i.call(n):An(HD,{key:r,layoutProps:t.layoutProps,name:r},e.slots)}}}),PD={};function qD(t,e){const r=OD,n=TD,i=DD;return Ot(),hn(i,null,{default:yc(()=>[Tt(r),Tt(n)]),_:1})}const $D=l8(PD,[["render",qD]]),UD={__name:"nuxt-error-page",props:{error:Object},setup(t){const r=t.error;r.stack&&r.stack.split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const n=Number(r.statusCode||500),i=n===404,o=r.statusMessage??(i?"Page Not Found":"Internal Server Error"),a=r.message||r.toString(),s=void 0,u=i?at(()=>Je(()=>import("./JeNKN-o9.js"),__vite__mapDeps([42,16,23,43]),import.meta.url).then(f=>f.default||f)):at(()=>Je(()=>import("./BwZUl92F.js"),__vite__mapDeps([44,23,45]),import.meta.url).then(f=>f.default||f));return(f,h)=>(Ot(),hn(ze(u),qb(gm({statusCode:ze(n),statusMessage:ze(o),description:ze(a),stack:ze(s)})),null,16))}},QD={key:0},R4={__name:"nuxt-root",setup(t){const e=()=>null,r=gr(),n=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",n);Mi().beforeEach(l)}const i=!1;Ds(wd,km()),r.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=z0(),a=!1;Cw((l,c,u)=>{if(r.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),pA(l)&&(l.fatal||l.unhandled))return r.runWithContext(()=>Xl(l)),!1});const s=!1;return(l,c)=>(Ot(),hn(lm,{onResolve:ze(n)},{default:yc(()=>[ze(a)?(Ot(),Kn("div",QD)):ze(o)?(Ot(),hn(ze(UD),{key:1,error:ze(o)},null,8,["error"])):ze(s)?(Ot(),hn(ze(e),{key:2,context:ze(s)},null,8,["context"])):ze(i)?(Ot(),hn(Uu(ze(i)),{key:3})):(Ot(),hn(ze($D),{key:4}))]),_:1},8,["onResolve"]))}};let N4;{let t;N4=async function(){var a,s;if(t)return t;const n=!!((a=window.__NUXT__)!=null&&a.serverRendered||((s=document.getElementById("__NUXT_DATA__"))==null?void 0:s.dataset.ssr)==="true")?Xk(R4):zk(R4),i=QZ({vueApp:n});async function o(l){await i.callHook("app:error",l),i.payload.error=i.payload.error||X0(l)}n.config.errorHandler=o;try{await tA(i,YD)}catch(l){o(l)}try{await i.hooks.callHook("app:created",n),await i.hooks.callHook("app:beforeMount",n),n.mount($Z),await i.hooks.callHook("app:mounted",n),await Sn()}catch(l){o(l)}return n.config.errorHandler===o&&(n.config.errorHandler=void 0),n},t=N4().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{XU as $,v_ as A,cJ as B,km as C,EU as D,GU as E,hn as F,oy as G,lJ as H,nu as I,zU as J,Dp as K,Sn as L,qe as M,aJ as N,z2 as O,My as P,XD as Q,WD as R,Jr as S,eg as T,oJ as U,wF as V,wI as W,BB as X,cm as Y,NU as Z,l8 as _,Wa as a,dJ as a0,dA as a1,er as a2,iJ as a3,hg as a4,An as a5,hJ as a6,_g as a7,ds as a8,iu as a9,iZ as aA,uJ as aB,s_ as aC,Il as aD,Ue as aE,Uu as aF,Ic as aG,ek as aH,LU as aI,DI as aa,HI as ab,pw as ac,xD as ad,gr as ae,fJ as af,Ja as ag,$u as ah,hI as ai,Ub as aj,X0 as ak,$b as al,gZ as am,Vy as an,wm as ao,vm as ap,It as aq,nJ as ar,vc as as,qr as at,qh as au,eJ as av,tu as aw,$7 as ax,w4 as ay,jU as az,Tt as b,Kn as c,bm as d,rJ as e,d_ as f,Dn as g,xT as h,Mi as i,XI as j,ze as k,Bs as l,jp as m,_l as n,Ot as o,tJ as p,kr as q,bt as r,Rm as s,$4 as t,T7 as u,sJ as v,yc as w,Go as x,Nm as y,Je as z}; +`);const n=Number(r.statusCode||500),i=n===404,o=r.statusMessage??(i?"Page Not Found":"Internal Server Error"),a=r.message||r.toString(),s=void 0,u=i?at(()=>Je(()=>import("./B0-aTjMC.js"),__vite__mapDeps([42,16,23,43]),import.meta.url).then(f=>f.default||f)):at(()=>Je(()=>import("./CqvrLO8u.js"),__vite__mapDeps([44,23,45]),import.meta.url).then(f=>f.default||f));return(f,h)=>(Ot(),hn(ze(u),qb(gm({statusCode:ze(n),statusMessage:ze(o),description:ze(a),stack:ze(s)})),null,16))}},QD={key:0},R4={__name:"nuxt-root",setup(t){const e=()=>null,r=gr(),n=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",n);Mi().beforeEach(l)}const i=!1;Ds(wd,km()),r.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=z0(),a=!1;Cw((l,c,u)=>{if(r.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),pA(l)&&(l.fatal||l.unhandled))return r.runWithContext(()=>Xl(l)),!1});const s=!1;return(l,c)=>(Ot(),hn(lm,{onResolve:ze(n)},{default:yc(()=>[ze(a)?(Ot(),Kn("div",QD)):ze(o)?(Ot(),hn(ze(UD),{key:1,error:ze(o)},null,8,["error"])):ze(s)?(Ot(),hn(ze(e),{key:2,context:ze(s)},null,8,["context"])):ze(i)?(Ot(),hn(Uu(ze(i)),{key:3})):(Ot(),hn(ze($D),{key:4}))]),_:1},8,["onResolve"]))}};let N4;{let t;N4=async function(){var a,s;if(t)return t;const n=!!((a=window.__NUXT__)!=null&&a.serverRendered||((s=document.getElementById("__NUXT_DATA__"))==null?void 0:s.dataset.ssr)==="true")?Xk(R4):zk(R4),i=QZ({vueApp:n});async function o(l){await i.callHook("app:error",l),i.payload.error=i.payload.error||X0(l)}n.config.errorHandler=o;try{await tA(i,YD)}catch(l){o(l)}try{await i.hooks.callHook("app:created",n),await i.hooks.callHook("app:beforeMount",n),n.mount($Z),await i.hooks.callHook("app:mounted",n),await Sn()}catch(l){o(l)}return n.config.errorHandler===o&&(n.config.errorHandler=void 0),n},t=N4().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{XU as $,v_ as A,cJ as B,km as C,EU as D,GU as E,hn as F,oy as G,lJ as H,nu as I,zU as J,Dp as K,Sn as L,qe as M,aJ as N,z2 as O,My as P,XD as Q,WD as R,Jr as S,eg as T,oJ as U,wF as V,wI as W,BB as X,cm as Y,NU as Z,l8 as _,Wa as a,dJ as a0,dA as a1,er as a2,iJ as a3,hg as a4,An as a5,hJ as a6,_g as a7,ds as a8,iu as a9,iZ as aA,uJ as aB,s_ as aC,Il as aD,Ue as aE,Uu as aF,Ic as aG,ek as aH,LU as aI,DI as aa,HI as ab,pw as ac,xD as ad,gr as ae,fJ as af,Ja as ag,$u as ah,hI as ai,Ub as aj,X0 as ak,$b as al,gZ as am,Vy as an,wm as ao,vm as ap,It as aq,nJ as ar,vc as as,qr as at,qh as au,eJ as av,tu as aw,$7 as ax,w4 as ay,jU as az,Tt as b,Kn as c,bm as d,rJ as e,d_ as f,Dn as g,xT as h,Mi as i,XI as j,ze as k,Bs as l,jp as m,_l as n,Ot as o,tJ as p,kr as q,bt as r,Rm as s,$4 as t,T7 as u,sJ as v,yc as w,Go as x,Nm as y,Je as z}; diff --git a/_nuxt/CufKaKGR.js b/_nuxt/DSs6u6dv.js similarity index 91% rename from _nuxt/CufKaKGR.js rename to _nuxt/DSs6u6dv.js index 46cb68e2..048a5055 100644 --- a/_nuxt/CufKaKGR.js +++ b/_nuxt/DSs6u6dv.js @@ -1 +1 @@ -import{_ as m}from"./D8_oxPFk.js";import{f as $,_ as l,o as a,F as d,w as _,p as f,e as h,a as e,c as v,b as s,d as i,g,r as S,k as u,l as p,aG as y,aH as I,G as L}from"./Bk7_z8zR.js";import{_ as B}from"./CYVKd2LE.js";const C=$("/img/effect-logo-black.png"),N={},b=o=>(f("data-v-7ed16589"),o=o(),h(),o),T=b(()=>e("img",{class:"logo",src:C},null,-1)),E=b(()=>e("span",null,"Effect AI",-1));function M(o,t){const n=m;return a(),d(n,{to:"/",class:"logo-container"},{default:_(()=>[T,E]),_:1})}const V=l(N,[["render",M],["__scopeId","data-v-7ed16589"]]),A={},G={class:"sidebar"},H={class:"main-menu"},j=e("h4",null,"Main menu",-1);function z(o,t){const n=V,c=m;return a(),v("aside",G,[s(n),e("nav",H,[j,e("ul",null,[e("li",null,[s(c,{to:"/"},{default:_(()=>[i("My Dashboard")]),_:1})]),e("li",null,[s(c,{to:"/profile"},{default:_(()=>[i("My Profile")]),_:1})])])])])}const D=l(A,[["render",z]]),k=o=>(f("data-v-a3be69d0"),o=o(),h(),o),F={class:"main"},O={class:"popover-container"},P=k(()=>e("div",{class:"modal-backdrop"},null,-1)),R={class:"popover"},U=k(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 512",fill:"white","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"",width:"20"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})],-1)),q=[U],J={class:"layout-container"},K={class:"main-content"},Q=g({__name:"default",setup(o){const t=S(!1),n=()=>{t.value=!0,document.documentElement.style.overflow="hidden"},c=()=>{t.value=!1,document.documentElement.style.overflow="auto"};return(w,W)=>{const r=D,x=B;return a(),v("div",F,[u(t)?(a(),d(I,{key:0,to:"body"},[e("div",O,[P,e("div",R,[s(y,{name:"fade",mode:"out-in",appear:""},{default:_(()=>[u(t)?(a(),d(r,{key:0})):p("",!0)]),_:1}),e("div",null,[e("button",{onClick:c,class:"button"},q)])])])])):p("",!0),e("div",J,[s(r),e("div",K,[s(x,{onOpenSidebar:n}),L(w.$slots,"default",{},void 0,!0)])])])}}}),ee=l(Q,[["__scopeId","data-v-a3be69d0"]]);export{ee as default}; +import{_ as m}from"./yL9Sm9hV.js";import{f as $,_ as l,o as a,F as d,w as _,p as f,e as h,a as e,c as v,b as s,d as i,g,r as S,k as u,l as p,aG as y,aH as I,G as L}from"./DRzdypsL.js";import{_ as B}from"./DrmMPU4W.js";const C=$("/img/effect-logo-black.png"),N={},b=o=>(f("data-v-7ed16589"),o=o(),h(),o),T=b(()=>e("img",{class:"logo",src:C},null,-1)),E=b(()=>e("span",null,"Effect AI",-1));function M(o,t){const n=m;return a(),d(n,{to:"/",class:"logo-container"},{default:_(()=>[T,E]),_:1})}const V=l(N,[["render",M],["__scopeId","data-v-7ed16589"]]),A={},G={class:"sidebar"},H={class:"main-menu"},j=e("h4",null,"Main menu",-1);function z(o,t){const n=V,c=m;return a(),v("aside",G,[s(n),e("nav",H,[j,e("ul",null,[e("li",null,[s(c,{to:"/"},{default:_(()=>[i("My Dashboard")]),_:1})]),e("li",null,[s(c,{to:"/profile"},{default:_(()=>[i("My Profile")]),_:1})])])])])}const D=l(A,[["render",z]]),k=o=>(f("data-v-a3be69d0"),o=o(),h(),o),F={class:"main"},O={class:"popover-container"},P=k(()=>e("div",{class:"modal-backdrop"},null,-1)),R={class:"popover"},U=k(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 512",fill:"white","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"",width:"20"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})],-1)),q=[U],J={class:"layout-container"},K={class:"main-content"},Q=g({__name:"default",setup(o){const t=S(!1),n=()=>{t.value=!0,document.documentElement.style.overflow="hidden"},c=()=>{t.value=!1,document.documentElement.style.overflow="auto"};return(w,W)=>{const r=D,x=B;return a(),v("div",F,[u(t)?(a(),d(I,{key:0,to:"body"},[e("div",O,[P,e("div",R,[s(y,{name:"fade",mode:"out-in",appear:""},{default:_(()=>[u(t)?(a(),d(r,{key:0})):p("",!0)]),_:1}),e("div",null,[e("button",{onClick:c,class:"button"},q)])])])])):p("",!0),e("div",J,[s(r),e("div",K,[s(x,{onOpenSidebar:n}),L(w.$slots,"default",{},void 0,!0)])])])}}}),ee=l(Q,[["__scopeId","data-v-a3be69d0"]]);export{ee as default}; diff --git a/_nuxt/DK8Uo_Hk.js b/_nuxt/DT1p3C1d.js similarity index 65% rename from _nuxt/DK8Uo_Hk.js rename to _nuxt/DT1p3C1d.js index e00fec6e..7f79ae02 100644 --- a/_nuxt/DK8Uo_Hk.js +++ b/_nuxt/DT1p3C1d.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as n}from"./Bk7_z8zR.js";const s={};function c(e,a){return r(),t("strong",null,[n(e.$slots,"default")])}const _=o(s,[["render",c]]);export{_ as default}; +import{_ as o,o as r,c as t,G as n}from"./DRzdypsL.js";const s={};function c(e,a){return r(),t("strong",null,[n(e.$slots,"default")])}const _=o(s,[["render",c]]);export{_ as default}; diff --git a/_nuxt/D50eLN2o.js b/_nuxt/DW0yCbNR.js similarity index 92% rename from _nuxt/D50eLN2o.js rename to _nuxt/DW0yCbNR.js index 50daf0f8..9fb9457b 100644 --- a/_nuxt/D50eLN2o.js +++ b/_nuxt/DW0yCbNR.js @@ -1 +1 @@ -import{ak as u,g as c,x as r,M as l,an as d,a4 as g,ao as h,o as m,F as p,k as n,aF as f}from"./Bk7_z8zR.js";function x(t){throw u({fatal:!0,statusCode:500,statusMessage:`${t} is provided by @nuxt/image. Check your console to install it or run 'npx nuxi@latest module add @nuxt/image'`})}const S={setup:()=>x("")},w=c({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(t){const i=r().public.mdc.useNuxtImage?S:"img",e=t,o=l(()=>{var s;if((s=e.src)!=null&&s.startsWith("/")&&!e.src.startsWith("//")){const a=d(g(r().app.baseURL));if(a!=="/"&&!e.src.startsWith(a))return h(a,e.src)}return e.src});return(s,a)=>(m(),p(f(n(i)),{src:n(o),alt:t.alt,width:t.width,height:t.height},null,8,["src","alt","width","height"]))}});export{w as default}; +import{ak as u,g as c,x as r,M as l,an as d,a4 as g,ao as h,o as m,F as p,k as n,aF as f}from"./DRzdypsL.js";function x(t){throw u({fatal:!0,statusCode:500,statusMessage:`${t} is provided by @nuxt/image. Check your console to install it or run 'npx nuxi@latest module add @nuxt/image'`})}const S={setup:()=>x("")},w=c({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(t){const i=r().public.mdc.useNuxtImage?S:"img",e=t,o=l(()=>{var s;if((s=e.src)!=null&&s.startsWith("/")&&!e.src.startsWith("//")){const a=d(g(r().app.baseURL));if(a!=="/"&&!e.src.startsWith(a))return h(a,e.src)}return e.src});return(s,a)=>(m(),p(f(n(i)),{src:n(o),alt:t.alt,width:t.width,height:t.height},null,8,["src","alt","width","height"]))}});export{w as default}; diff --git a/_nuxt/BxbXPpYz.js b/_nuxt/DWe_QcPy.js similarity index 58% rename from _nuxt/BxbXPpYz.js rename to _nuxt/DWe_QcPy.js index aeb2e0fc..b4b881de 100644 --- a/_nuxt/BxbXPpYz.js +++ b/_nuxt/DWe_QcPy.js @@ -1 +1 @@ -import{g as n,a5 as e}from"./Bk7_z8zR.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; +import{g as n,a5 as e}from"./DRzdypsL.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; diff --git a/_nuxt/CUZ5-2j8.js b/_nuxt/DXUHfGYI.js similarity index 64% rename from _nuxt/CUZ5-2j8.js rename to _nuxt/DXUHfGYI.js index 1d775432..3f3dac05 100644 --- a/_nuxt/CUZ5-2j8.js +++ b/_nuxt/DXUHfGYI.js @@ -1 +1 @@ -import{_ as o,o as r,c as s,G as t}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),s("li",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as s,G as t}from"./DRzdypsL.js";const c={};function n(e,a){return r(),s("li",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/DXM240z2.js b/_nuxt/DYgeqj2A.js similarity index 92% rename from _nuxt/DXM240z2.js rename to _nuxt/DYgeqj2A.js index 4af34e52..a0e36dfb 100644 --- a/_nuxt/DXM240z2.js +++ b/_nuxt/DYgeqj2A.js @@ -1 +1 @@ -import{a as g,q as m}from"./DIqeZryz.js";import{g as C,ac as S,M as b,x as _,a2 as k,a3 as A,a5 as N}from"./Bk7_z8zR.js";import{h as O}from"./DNgSKQ__.js";const Q=C({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:f,limit:l,skip:d,locale:s,find:h}=S(a),y=b(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),p=!_().public.content.experimental.advanceQuery;k(()=>a,()=>n(),{deep:!0});const i=e=>p?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await g(`content-query-${O(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),f.value&&(e=e.sort(f.value)),l.value&&(e=e.limit(l.value)),d.value&&(e=e.skip(d.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?p?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:y,data:v,refresh:n}},render(a){var c;const t=A(),{data:r,refresh:o,isPartial:u,path:f,only:l,without:d,where:s,sort:h,limit:y,skip:p,locale:i,find:v}=a,n={path:f,only:l,without:d,where:s,sort:h,limit:y,skip:p,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>N("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),j=Q;export{j as default}; +import{a as g,q as m}from"./vCcY93uT.js";import{g as C,ac as S,M as b,x as _,a2 as k,a3 as A,a5 as N}from"./DRzdypsL.js";import{h as O}from"./nLZ1R_uv.js";const Q=C({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:f,limit:l,skip:d,locale:s,find:h}=S(a),y=b(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),p=!_().public.content.experimental.advanceQuery;k(()=>a,()=>n(),{deep:!0});const i=e=>p?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await g(`content-query-${O(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),f.value&&(e=e.sort(f.value)),l.value&&(e=e.limit(l.value)),d.value&&(e=e.skip(d.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?p?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:y,data:v,refresh:n}},render(a){var c;const t=A(),{data:r,refresh:o,isPartial:u,path:f,only:l,without:d,where:s,sort:h,limit:y,skip:p,locale:i,find:v}=a,n={path:f,only:l,without:d,where:s,sort:h,limit:y,skip:p,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>N("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),j=Q;export{j as default}; diff --git a/_nuxt/CgpvmZr1.js b/_nuxt/DZvHjpzl.js similarity index 96% rename from _nuxt/CgpvmZr1.js rename to _nuxt/DZvHjpzl.js index 7d8268a5..5828c520 100644 --- a/_nuxt/CgpvmZr1.js +++ b/_nuxt/DZvHjpzl.js @@ -1 +1 @@ -import{_ as V}from"./CmkKtLv1.js";import{_ as I}from"./CvhRWxfN.js";import{f as N,g as x,o as u,c as p,a as e,u as A,r as h,h as B,i as L,j as D,n as R,k as s,b as v,l as w,d as o,t as S,m as W,v as M,q as $,w as z,p as F,e as O,s as P,x as Z,_ as j}from"./Bk7_z8zR.js";const K=N("/img/logo-black.png"),U={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},Q=e("path",{fill:"currentColor",d:"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z"},null,-1),q=[Q],J=x({__name:"MdiCheck",setup(c){return(i,l)=>(u(),p("svg",U,q))}}),n=c=>(F("data-v-dd389dd4"),c=c(),O(),c),G={id:"page-container"},H={id:"keys-container",class:"container flex-center"},X=n(()=>e("img",{src:K,width:"190",alt:"Effect Force Logo"},null,-1)),Y={key:0},ee=n(()=>e("div",null,[e("h2",{class:"title"},"Welcome to Effect V2"),e("p",null,[o(" This is the early access platform of Effect AI: a "),e("span",{class:"text-hightlights"},"100% decentralized"),o(" and "),e("span",{class:"text-hightlights"},"transparent"),o(" AI Training platform. "),e("br")]),e("p",null,[o("To ensure a good experience for everyone, we'll be granting access to V2 in waves using "),e("a",{class:"subtle",href:"https://docs.google.com/forms/d/1T2WR74yDcZM-w3ZMxB95We0Quo438VeTIP9pbii7-1s"},"access keys"),o(".")])],-1)),se={class:""},te=n(()=>e("p",null,"First, lets connect your EOS wallet.",-1)),oe={key:1},ae=n(()=>e("h2",{class:"title"}," Ready to dive into the Effect platform? ",-1)),ne={class:"dropdown"},ce={id:"myDropdown",class:"dropdown-content"},ie=n(()=>e("p",null,"Enter your access code to unlock access to Effect V2. Once you're in, you'll snag a special NFT token, giving you VIP access to all the awesome features waiting for you.",-1)),le=n(()=>e("a",{href:"https://docs.google.com/forms/d/1T2WR74yDcZM-w3ZMxB95We0Quo438VeTIP9pbii7-1s",class:"apply-link"},"how can i get a key?",-1)),re=x({__name:"access",setup(c){const{userName:i,disconnectWallet:l}=A(),{notify:m}=P(),r=h(),_=h(!1),g=B("hasAccessNft",!1),f=h(!1),k=Z(),y=L();D(()=>{g.value&&y.push("/")});const C=()=>{var a;(a=document.getElementById("myDropdown"))==null||a.classList.toggle("show")},T=async()=>{try{f.value=!0;const a=await fetch(`${k.public.BACKEND_URL}/grant-access`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:r.value,username:i.value})}),t=await a.json();if(!a.ok)throw new Error("Access denied",t);t&&(g.value=r.value,m({type:"success",message:"Access granted",icon:J}),setTimeout(()=>{y.push("/")},2e3))}catch{_.value=!0,setTimeout(()=>{_.value=!1},500),m({type:"error",message:"Access denied"})}finally{f.value=!1}};return(a,t)=>{const E=V,b=I;return u(),p("div",G,[e("section",H,[e("div",{class:R({"horizontal-shake":s(_)})},[X,s(i)?w("",!0):(u(),p("div",Y,[ee,e("div",se,[te,v(E,{class:"mt-2"})])])),s(i)?(u(),p("div",oe,[ae,e("p",null,[o(" Welcome "),e("div",ne,[e("a",{href:"#",onClick:C},S(s(i)),1),e("div",ce,[e("a",{onClick:t[0]||(t[0]=(...d)=>s(l)&&s(l)(...d)),href:"#home"},"logout")])]),o(","),e("span",{class:"logout-button",onClick:t[1]||(t[1]=(...d)=>s(l)&&s(l)(...d))})]),ie,W(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=d=>$(r)?r.value=d:null),placeholder:"xxx-xxx-xxx"},null,512),[[M,s(r)]]),v(b,{"is-loading":s(f),class:"button",onClick:T},{default:z(()=>[o(" verify ")]),_:1},8,["is-loading"]),le])):w("",!0)],2)])])}}}),_e=j(re,[["__scopeId","data-v-dd389dd4"]]);export{_e as default}; +import{_ as V}from"./jn6rmPcS.js";import{_ as I}from"./Mhp9soAi.js";import{f as N,g as x,o as u,c as p,a as e,u as A,r as h,h as B,i as L,j as D,n as R,k as s,b as v,l as w,d as o,t as S,m as W,v as M,q as $,w as z,p as F,e as O,s as P,x as Z,_ as j}from"./DRzdypsL.js";const K=N("/img/logo-black.png"),U={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},Q=e("path",{fill:"currentColor",d:"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z"},null,-1),q=[Q],J=x({__name:"MdiCheck",setup(c){return(i,l)=>(u(),p("svg",U,q))}}),n=c=>(F("data-v-dd389dd4"),c=c(),O(),c),G={id:"page-container"},H={id:"keys-container",class:"container flex-center"},X=n(()=>e("img",{src:K,width:"190",alt:"Effect Force Logo"},null,-1)),Y={key:0},ee=n(()=>e("div",null,[e("h2",{class:"title"},"Welcome to Effect V2"),e("p",null,[o(" This is the early access platform of Effect AI: a "),e("span",{class:"text-hightlights"},"100% decentralized"),o(" and "),e("span",{class:"text-hightlights"},"transparent"),o(" AI Training platform. "),e("br")]),e("p",null,[o("To ensure a good experience for everyone, we'll be granting access to V2 in waves using "),e("a",{class:"subtle",href:"https://docs.google.com/forms/d/1T2WR74yDcZM-w3ZMxB95We0Quo438VeTIP9pbii7-1s"},"access keys"),o(".")])],-1)),se={class:""},te=n(()=>e("p",null,"First, lets connect your EOS wallet.",-1)),oe={key:1},ae=n(()=>e("h2",{class:"title"}," Ready to dive into the Effect platform? ",-1)),ne={class:"dropdown"},ce={id:"myDropdown",class:"dropdown-content"},ie=n(()=>e("p",null,"Enter your access code to unlock access to Effect V2. Once you're in, you'll snag a special NFT token, giving you VIP access to all the awesome features waiting for you.",-1)),le=n(()=>e("a",{href:"https://docs.google.com/forms/d/1T2WR74yDcZM-w3ZMxB95We0Quo438VeTIP9pbii7-1s",class:"apply-link"},"how can i get a key?",-1)),re=x({__name:"access",setup(c){const{userName:i,disconnectWallet:l}=A(),{notify:m}=P(),r=h(),_=h(!1),g=B("hasAccessNft",!1),f=h(!1),k=Z(),y=L();D(()=>{g.value&&y.push("/")});const C=()=>{var a;(a=document.getElementById("myDropdown"))==null||a.classList.toggle("show")},T=async()=>{try{f.value=!0;const a=await fetch(`${k.public.BACKEND_URL}/grant-access`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:r.value,username:i.value})}),t=await a.json();if(!a.ok)throw new Error("Access denied",t);t&&(g.value=r.value,m({type:"success",message:"Access granted",icon:J}),setTimeout(()=>{y.push("/")},2e3))}catch{_.value=!0,setTimeout(()=>{_.value=!1},500),m({type:"error",message:"Access denied"})}finally{f.value=!1}};return(a,t)=>{const E=V,b=I;return u(),p("div",G,[e("section",H,[e("div",{class:R({"horizontal-shake":s(_)})},[X,s(i)?w("",!0):(u(),p("div",Y,[ee,e("div",se,[te,v(E,{class:"mt-2"})])])),s(i)?(u(),p("div",oe,[ae,e("p",null,[o(" Welcome "),e("div",ne,[e("a",{href:"#",onClick:C},S(s(i)),1),e("div",ce,[e("a",{onClick:t[0]||(t[0]=(...d)=>s(l)&&s(l)(...d)),href:"#home"},"logout")])]),o(","),e("span",{class:"logout-button",onClick:t[1]||(t[1]=(...d)=>s(l)&&s(l)(...d))})]),ie,W(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=d=>$(r)?r.value=d:null),placeholder:"xxx-xxx-xxx"},null,512),[[M,s(r)]]),v(b,{"is-loading":s(f),class:"button",onClick:T},{default:z(()=>[o(" verify ")]),_:1},8,["is-loading"]),le])):w("",!0)],2)])])}}}),_e=j(re,[["__scopeId","data-v-dd389dd4"]]);export{_e as default}; diff --git a/_nuxt/DHgh_nFT.js b/_nuxt/Dc7Ef35y.js similarity index 65% rename from _nuxt/DHgh_nFT.js rename to _nuxt/Dc7Ef35y.js index 2ecba28f..28843224 100644 --- a/_nuxt/DHgh_nFT.js +++ b/_nuxt/Dc7Ef35y.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as s}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as t,G as s}from"./DRzdypsL.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/CFT4hcsC.js b/_nuxt/DhUbynuL.js similarity index 98% rename from _nuxt/CFT4hcsC.js rename to _nuxt/DhUbynuL.js index e3183e81..3191d8dc 100644 --- a/_nuxt/CFT4hcsC.js +++ b/_nuxt/DhUbynuL.js @@ -1 +1 @@ -import{au as P,ao as z,x as O,ae as q,am as J}from"./Bk7_z8zR.js";import{g as Q,b as M,c as K,o as U,d as V,f as R,h as S,i as E,k as H}from"./DIqeZryz.js";import{a as X}from"./JiFQw_g2.js";import{u as W}from"./DNgSKQ__.js";import"./C-v3KzvZ.js";const G="memory",Y=()=>{const n=new Map;return{name:G,options:{},hasItem(e){return n.has(e)},getItem(e){return n.get(e)??null},getItemRaw(e){return n.get(e)??null},setItem(e,r){n.set(e,r)},setItemRaw(e,r){n.set(e,r)},removeItem(e){n.delete(e)},getKeys(){return Array.from(n.keys())},clear(){n.clear()},dispose(){n.clear()}}};function Z(n){return!n||typeof n.then!="function"?Promise.resolve(n):n}function h(n,...e){try{return Z(n(...e))}catch(r){return Promise.reject(r)}}function b(n){const e=typeof n;return n===null||e!=="object"&&e!=="function"}function k(n){const e=Object.getPrototypeOf(n);return!e||e.isPrototypeOf(Object)}function j(n){if(b(n))return String(n);if(k(n)||Array.isArray(n))return JSON.stringify(n);if(typeof n.toJSON=="function")return j(n.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const x="base64:";function tt(n){if(typeof n=="string")return n;N();const e=Buffer.from(n).toString("base64");return x+e}function et(n){return typeof n!="string"||!n.startsWith(x)?n:(N(),Buffer.from(n.slice(x.length),"base64"))}const rt=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function nt(n,e){if(e=$(e),!e)return n;const r={...n};for(const s of rt)r[s]=(c="",...u)=>n[s](e+c,...u);return r.getKeys=(s="",...c)=>n.getKeys(e+s,...c).then(u=>u.map(l=>l.slice(e.length))),r}function d(n){return n?n.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function it(...n){return d(n.join(":"))}function $(n){return n=d(n),n?n+":":""}const st="memory",at=()=>{const n=new Map;return{name:st,options:{},hasItem(e){return n.has(e)},getItem(e){return n.get(e)??null},getItemRaw(e){return n.get(e)??null},setItem(e,r){n.set(e,r)},setItemRaw(e,r){n.set(e,r)},removeItem(e){n.delete(e)},getKeys(){return Array.from(n.keys())},clear(){n.clear()},dispose(){n.clear()}}};function ot(n={}){const e={mounts:{"":n.driver||at()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const i of e.mountpoints)if(t.startsWith(i))return{base:i,relativeKey:t.slice(i.length),driver:e.mounts[i]};return{base:"",relativeKey:t,driver:e.mounts[""]}},s=(t,i)=>e.mountpoints.filter(a=>a.startsWith(t)||i&&t.startsWith(a)).map(a=>({relativeBase:t.length>a.length?t.slice(a.length):void 0,mountpoint:a,driver:e.mounts[a]})),c=(t,i)=>{if(e.watching){i=d(i);for(const a of e.watchListeners)a(t,i)}},u=async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await B(e.mounts[t],c,t)}},l=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},g=(t,i,a)=>{const o=new Map,m=f=>{let w=o.get(f.base);return w||(w={driver:f.driver,base:f.base,items:[]},o.set(f.base,w)),w};for(const f of t){const w=typeof f=="string",_=d(w?f:f.key),y=w?void 0:f.value,v=w||!f.options?i:{...i,...f.options},I=r(_);m(I).items.push({key:_,value:y,relativeKey:I.relativeKey,options:v})}return Promise.all([...o.values()].map(f=>a(f))).then(f=>f.flat())},p={hasItem(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return h(o.hasItem,a,i)},getItem(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return h(o.getItem,a,i).then(m=>P(m))},getItems(t,i){return g(t,i,a=>a.driver.getItems?h(a.driver.getItems,a.items.map(o=>({key:o.relativeKey,options:o.options})),i).then(o=>o.map(m=>({key:it(a.base,m.key),value:P(m.value)}))):Promise.all(a.items.map(o=>h(a.driver.getItem,o.relativeKey,o.options).then(m=>({key:o.key,value:P(m)})))))},getItemRaw(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return o.getItemRaw?h(o.getItemRaw,a,i):h(o.getItem,a,i).then(m=>et(m))},async setItem(t,i,a={}){if(i===void 0)return p.removeItem(t);t=d(t);const{relativeKey:o,driver:m}=r(t);m.setItem&&(await h(m.setItem,o,j(i),a),m.watch||c("update",t))},async setItems(t,i){await g(t,i,async a=>{if(a.driver.setItems)return h(a.driver.setItems,a.items.map(o=>({key:o.relativeKey,value:j(o.value),options:o.options})),i);a.driver.setItem&&await Promise.all(a.items.map(o=>h(a.driver.setItem,o.relativeKey,j(o.value),o.options)))})},async setItemRaw(t,i,a={}){if(i===void 0)return p.removeItem(t,a);t=d(t);const{relativeKey:o,driver:m}=r(t);if(m.setItemRaw)await h(m.setItemRaw,o,i,a);else if(m.setItem)await h(m.setItem,o,tt(i),a);else return;m.watch||c("update",t)},async removeItem(t,i={}){typeof i=="boolean"&&(i={removeMeta:i}),t=d(t);const{relativeKey:a,driver:o}=r(t);o.removeItem&&(await h(o.removeItem,a,i),(i.removeMeta||i.removeMata)&&await h(o.removeItem,a+"$",i),o.watch||c("remove",t))},async getMeta(t,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),t=d(t);const{relativeKey:a,driver:o}=r(t),m=Object.create(null);if(o.getMeta&&Object.assign(m,await h(o.getMeta,a,i)),!i.nativeOnly){const f=await h(o.getItem,a+"$",i).then(w=>P(w));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(m,f))}return m},setMeta(t,i,a={}){return this.setItem(t+"$",i,a)},removeMeta(t,i={}){return this.removeItem(t+"$",i)},async getKeys(t,i={}){t=$(t);const a=s(t,!0);let o=[];const m=[];for(const f of a){const _=(await h(f.driver.getKeys,f.relativeBase,i)).map(y=>f.mountpoint+d(y)).filter(y=>!o.some(v=>y.startsWith(v)));m.push(..._),o=[f.mountpoint,...o.filter(y=>!y.startsWith(f.mountpoint))]}return t?m.filter(f=>f.startsWith(t)&&!f.endsWith("$")):m.filter(f=>!f.endsWith("$"))},async clear(t,i={}){t=$(t),await Promise.all(s(t,!1).map(async a=>{if(a.driver.clear)return h(a.driver.clear,a.relativeBase,i);if(a.driver.removeItem){const o=await a.driver.getKeys(a.relativeBase||"",i);return Promise.all(o.map(m=>a.driver.removeItem(m,i)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(t=>D(t)))},async watch(t){return await u(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter(i=>i!==t),e.watchListeners.length===0&&await l()}},async unwatch(){e.watchListeners=[],await l()},mount(t,i){if(t=$(t),t&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort((a,o)=>o.length-a.length)),e.mounts[t]=i,e.watching&&Promise.resolve(B(i,c,t)).then(a=>{e.unwatch[t]=a}).catch(console.error),p},async unmount(t,i=!0){t=$(t),!(!t||!e.mounts[t])&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),i&&await D(e.mounts[t]),e.mountpoints=e.mountpoints.filter(a=>a!==t),delete e.mounts[t])},getMount(t=""){t=d(t)+":";const i=r(t);return{driver:i.driver,base:i.base}},getMounts(t="",i={}){return t=d(t),s(t,i.parents).map(o=>({driver:o.driver,base:o.mountpoint}))}};return p}function B(n,e,r){return n.watch?n.watch((s,c)=>e(s,r+c)):()=>{}}async function D(n){typeof n.dispose=="function"&&await h(n.dispose)}function ut(n={}){const e=ct(r,n.operators);function r(s,c){return typeof c!="object"||c instanceof RegExp?e.$eq(s,c):Object.keys(c||{}).every(u=>{const l=c[u];if(u.startsWith("$")&&e[u]){const g=e[u];return typeof g=="function"?g(s,l):!1}return r(Q(s,u),l)})}return r}function ct(n,e={}){return{$match:(r,s)=>n(r,s),$eq:(r,s)=>s instanceof RegExp?s.test(r):r===s,$ne:(r,s)=>s instanceof RegExp?!s.test(r):r!==s,$not:(r,s)=>!n(r,s),$and:(r,s)=>(M(s,"$and requires an array as condition"),s.every(c=>n(r,c))),$or:(r,s)=>(M(s,"$or requires an array as condition"),s.some(c=>n(r,c))),$in:(r,s)=>K(s).some(c=>Array.isArray(r)?n(r,{$contains:c}):n(r,c)),$contains:(r,s)=>(r=Array.isArray(r)?r:String(r),K(s).every(c=>r.includes(c))),$icontains:(r,s)=>{if(typeof s!="string")throw new TypeError("$icontains requires a string, use $contains instead");return r=String(r).toLocaleLowerCase(),K(s).every(c=>r.includes(c.toLocaleLowerCase()))},$containsAny:(r,s)=>(M(s,"$containsAny requires an array as condition"),r=Array.isArray(r)?r:String(r),s.some(c=>r.includes(c))),$exists:(r,s)=>s?typeof r<"u":typeof r>"u",$type:(r,s)=>typeof r===String(s),$regex:(r,s)=>{if(!(s instanceof RegExp)){const c=String(s).match(/\/(.*)\/([dgimsuy]*)$/);s=c!=null&&c[1]?new RegExp(c[1],c[2]||""):new RegExp(s)}return s.test(String(r||""))},$lt:(r,s)=>rr<=s,$gt:(r,s)=>r>s,$gte:(r,s)=>r>=s,...e||{}}}function lt(n){const e=ut(),r=(u,{query:l,before:g,after:p})=>{const t=typeof l=="string"?{_path:l}:l,i=u.findIndex(o=>e(o,t));g=g??1,p=p??1;const a=new Array(g+p).fill(null,0);return i===-1?a:a.map((o,m)=>u[i-g+m+ +(m>=g)]||null)},s=[(u,l)=>{const g=u.result.filter(p=>K(l.where).every(t=>e(p,t)));return{...u,result:g,total:g.length}},(u,l)=>K(l.sort).forEach(g=>V(u.result,g)),function(l,g,p){var t;if(g.surround){let i=r(((t=l.result)==null?void 0:t.length)===1?p:l.result,g.surround);i=R(S(g.without))(i),i=R(E(g.only))(i),l.surround=i}return l}],c=[(u,l)=>{if(l.skip)return{...u,result:u.result.slice(l.skip),skip:l.skip}},(u,l)=>{if(l.limit)return{...u,result:u.result.slice(0,l.limit),limit:l.limit}},function(l,g,p){var t,i,a;if(g.dirConfig){const o=((t=l.result[0])==null?void 0:t._path)||((a=(i=g.where)==null?void 0:i.find(m=>m._path))==null?void 0:a._path);if(typeof o=="string"){const m=p.find(f=>f._path===z(o,"_dir"));m&&(l.dirConfig={_path:m._path,...S(["_"])(m)})}}return l},(u,l)=>({...u,result:R(S(l.without))(u.result)}),(u,l)=>({...u,result:R(E(l.only))(u.result)})];return async u=>{const l=await n(),g=u.params(),p={result:l,limit:0,skip:0,total:l.length},t=s.reduce((a,o)=>o(a,g,l)||a,p);if(g.count)return{result:t.result.length};const i=c.reduce((a,o)=>o(a,g,l)||a,t);return g.first?{...U(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(n){const e=lt(n);return async r=>{var u;r.params().first&&r.withDirConfig();const s=r.params(),c=await e(r);return s.surround?c==null?void 0:c.surround:(c!=null&&c.dirConfig&&(c.result={_path:(u=c.dirConfig)==null?void 0:u._path,...c.result,_dir:c.dirConfig}),c==null?void 0:c.result)}}function ft(n,e){const{navigation:r}=O().public.content;if(r===!1)return[];const s=u=>({...gt(["title",...r.fields])(u),...pt(u==null?void 0:u.navigation)?u.navigation:{}}),c=n.sort((u,l)=>u._path.localeCompare(l._path)).reduce((u,l)=>{var m;const g=l._path.substring(1).split("/"),p=l._id.split(":").slice(1),t=!!((m=p[p.length-1])!=null&&m.match(/([1-9][0-9]*\.)?index.md/g)),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...s(f),...f._draft?{_draft:!0}:{}}),a=i(l);if(t){const f=e[a._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return u;if(l._path!=="/"){const w=i(l);a.children.push(w)}f&&Object.assign(a,s(f))}return g.length===1?(u.push(a),u):(g.slice(0,-1).reduce((f,w,_)=>{const y="/"+g.slice(0,_+1).join("/"),v=e[y];if(typeof(v==null?void 0:v.navigation)<"u"&&!v.navigation)return[];let I=f.find(F=>F._path===y);return I||(I={title:X(w),_path:y,_file:l._file,children:[],...v&&s(v)},f.push(I)),I.children},u).push(a),u)},[]);return T(c)}const mt=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function T(n){var r;n.forEach(s=>{s._file=s._file.split(".").slice(0,-1).join(".")});const e=n.sort((s,c)=>mt.compare(s._file,c._file));for(const s of e)(r=s.children)!=null&&r.length?T(s.children):delete s.children,delete s._file;return n}function gt(n){return e=>(e=e||{},n&&n.length?n.filter(r=>typeof e[r]<"u").reduce((r,s)=>Object.assign(r,{[s]:e[s]}),{}):e)}function pt(n){return Object.prototype.toString.call(n)==="[object Object]"}const ht=n=>J(n,O().public.content.api.baseURL),wt=nt(ot({driver:Y()}),"@content");function dt(n){async function e(){const r=new Set(await n.getKeys("cache:")),s=W().getPreviewToken();if(s){const u=await n.getItem(`${s}$`).then(p=>p||{});if(Array.isArray(u.ignoreSources)){const p=u.ignoreSources.map(t=>`cache:${t.trim()}:`);for(const t of r)p.some(i=>t.startsWith(i))&&r.delete(t)}const l=await n.getKeys(`${s}:`),g=await Promise.all(l.map(p=>n.getItem(p)));for(const p of g)r.delete(`cache:${p._id}`),p.__deleted||r.add(`${s}:${p._id}`)}return await Promise.all(Array.from(r).map(u=>n.getItem(u)))}return{storage:n,fetch:L(e),query:r=>H(L(e),{initialParams:r,legacy:!0})}}let C=null,A=null;async function yt(){return A?await A:C||(A=vt(),C=await A),C}async function vt(){const n=q(),{content:e}=O().public,r=dt(wt),s=await r.storage.getItem("integrity");if(e.integrity!==+(s||0)){const{contents:c,navigation:u}=await $fetch(ht(e.integrity?`cache.${e.integrity}.json`:"cache.json"));await Promise.all(c.map(l=>r.storage.setItem(`cache:${l._id}`,l))),await r.storage.setItem("navigation",u),await r.storage.setItem("integrity",e.integrity)}return await n.callHook("content:storage",r.storage),r}async function Rt(n){const e=await yt();if(!W().getPreviewToken()&&Object.keys(n||{}).length===0)return e.storage.getItem("navigation");const r=await e.query(n).where({_partial:!1,navigation:{$ne:!1}}).find(),c=(await e.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((u,l)=>{var p;((p=l.title)==null?void 0:p.toLowerCase())==="dir"&&(l.title=void 0);const g=l._path.split("/").slice(0,-1).join("/")||"/";return u[g]={...l,...l.body},u},{});return ft(r,c)}export{wt as contentStorage,dt as createDB,Rt as generateNavigation,yt as useContentDatabase}; +import{au as P,ao as z,x as O,ae as q,am as J}from"./DRzdypsL.js";import{g as Q,b as M,c as K,o as U,d as V,f as R,h as S,i as E,k as H}from"./vCcY93uT.js";import{a as X}from"./BJOVPnNC.js";import{u as W}from"./nLZ1R_uv.js";import"./C-v3KzvZ.js";const G="memory",Y=()=>{const n=new Map;return{name:G,options:{},hasItem(e){return n.has(e)},getItem(e){return n.get(e)??null},getItemRaw(e){return n.get(e)??null},setItem(e,r){n.set(e,r)},setItemRaw(e,r){n.set(e,r)},removeItem(e){n.delete(e)},getKeys(){return Array.from(n.keys())},clear(){n.clear()},dispose(){n.clear()}}};function Z(n){return!n||typeof n.then!="function"?Promise.resolve(n):n}function h(n,...e){try{return Z(n(...e))}catch(r){return Promise.reject(r)}}function b(n){const e=typeof n;return n===null||e!=="object"&&e!=="function"}function k(n){const e=Object.getPrototypeOf(n);return!e||e.isPrototypeOf(Object)}function j(n){if(b(n))return String(n);if(k(n)||Array.isArray(n))return JSON.stringify(n);if(typeof n.toJSON=="function")return j(n.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const x="base64:";function tt(n){if(typeof n=="string")return n;N();const e=Buffer.from(n).toString("base64");return x+e}function et(n){return typeof n!="string"||!n.startsWith(x)?n:(N(),Buffer.from(n.slice(x.length),"base64"))}const rt=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function nt(n,e){if(e=$(e),!e)return n;const r={...n};for(const s of rt)r[s]=(c="",...u)=>n[s](e+c,...u);return r.getKeys=(s="",...c)=>n.getKeys(e+s,...c).then(u=>u.map(l=>l.slice(e.length))),r}function d(n){return n?n.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function it(...n){return d(n.join(":"))}function $(n){return n=d(n),n?n+":":""}const st="memory",at=()=>{const n=new Map;return{name:st,options:{},hasItem(e){return n.has(e)},getItem(e){return n.get(e)??null},getItemRaw(e){return n.get(e)??null},setItem(e,r){n.set(e,r)},setItemRaw(e,r){n.set(e,r)},removeItem(e){n.delete(e)},getKeys(){return Array.from(n.keys())},clear(){n.clear()},dispose(){n.clear()}}};function ot(n={}){const e={mounts:{"":n.driver||at()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const i of e.mountpoints)if(t.startsWith(i))return{base:i,relativeKey:t.slice(i.length),driver:e.mounts[i]};return{base:"",relativeKey:t,driver:e.mounts[""]}},s=(t,i)=>e.mountpoints.filter(a=>a.startsWith(t)||i&&t.startsWith(a)).map(a=>({relativeBase:t.length>a.length?t.slice(a.length):void 0,mountpoint:a,driver:e.mounts[a]})),c=(t,i)=>{if(e.watching){i=d(i);for(const a of e.watchListeners)a(t,i)}},u=async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await B(e.mounts[t],c,t)}},l=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},g=(t,i,a)=>{const o=new Map,m=f=>{let w=o.get(f.base);return w||(w={driver:f.driver,base:f.base,items:[]},o.set(f.base,w)),w};for(const f of t){const w=typeof f=="string",_=d(w?f:f.key),y=w?void 0:f.value,v=w||!f.options?i:{...i,...f.options},I=r(_);m(I).items.push({key:_,value:y,relativeKey:I.relativeKey,options:v})}return Promise.all([...o.values()].map(f=>a(f))).then(f=>f.flat())},p={hasItem(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return h(o.hasItem,a,i)},getItem(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return h(o.getItem,a,i).then(m=>P(m))},getItems(t,i){return g(t,i,a=>a.driver.getItems?h(a.driver.getItems,a.items.map(o=>({key:o.relativeKey,options:o.options})),i).then(o=>o.map(m=>({key:it(a.base,m.key),value:P(m.value)}))):Promise.all(a.items.map(o=>h(a.driver.getItem,o.relativeKey,o.options).then(m=>({key:o.key,value:P(m)})))))},getItemRaw(t,i={}){t=d(t);const{relativeKey:a,driver:o}=r(t);return o.getItemRaw?h(o.getItemRaw,a,i):h(o.getItem,a,i).then(m=>et(m))},async setItem(t,i,a={}){if(i===void 0)return p.removeItem(t);t=d(t);const{relativeKey:o,driver:m}=r(t);m.setItem&&(await h(m.setItem,o,j(i),a),m.watch||c("update",t))},async setItems(t,i){await g(t,i,async a=>{if(a.driver.setItems)return h(a.driver.setItems,a.items.map(o=>({key:o.relativeKey,value:j(o.value),options:o.options})),i);a.driver.setItem&&await Promise.all(a.items.map(o=>h(a.driver.setItem,o.relativeKey,j(o.value),o.options)))})},async setItemRaw(t,i,a={}){if(i===void 0)return p.removeItem(t,a);t=d(t);const{relativeKey:o,driver:m}=r(t);if(m.setItemRaw)await h(m.setItemRaw,o,i,a);else if(m.setItem)await h(m.setItem,o,tt(i),a);else return;m.watch||c("update",t)},async removeItem(t,i={}){typeof i=="boolean"&&(i={removeMeta:i}),t=d(t);const{relativeKey:a,driver:o}=r(t);o.removeItem&&(await h(o.removeItem,a,i),(i.removeMeta||i.removeMata)&&await h(o.removeItem,a+"$",i),o.watch||c("remove",t))},async getMeta(t,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),t=d(t);const{relativeKey:a,driver:o}=r(t),m=Object.create(null);if(o.getMeta&&Object.assign(m,await h(o.getMeta,a,i)),!i.nativeOnly){const f=await h(o.getItem,a+"$",i).then(w=>P(w));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(m,f))}return m},setMeta(t,i,a={}){return this.setItem(t+"$",i,a)},removeMeta(t,i={}){return this.removeItem(t+"$",i)},async getKeys(t,i={}){t=$(t);const a=s(t,!0);let o=[];const m=[];for(const f of a){const _=(await h(f.driver.getKeys,f.relativeBase,i)).map(y=>f.mountpoint+d(y)).filter(y=>!o.some(v=>y.startsWith(v)));m.push(..._),o=[f.mountpoint,...o.filter(y=>!y.startsWith(f.mountpoint))]}return t?m.filter(f=>f.startsWith(t)&&!f.endsWith("$")):m.filter(f=>!f.endsWith("$"))},async clear(t,i={}){t=$(t),await Promise.all(s(t,!1).map(async a=>{if(a.driver.clear)return h(a.driver.clear,a.relativeBase,i);if(a.driver.removeItem){const o=await a.driver.getKeys(a.relativeBase||"",i);return Promise.all(o.map(m=>a.driver.removeItem(m,i)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(t=>D(t)))},async watch(t){return await u(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter(i=>i!==t),e.watchListeners.length===0&&await l()}},async unwatch(){e.watchListeners=[],await l()},mount(t,i){if(t=$(t),t&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort((a,o)=>o.length-a.length)),e.mounts[t]=i,e.watching&&Promise.resolve(B(i,c,t)).then(a=>{e.unwatch[t]=a}).catch(console.error),p},async unmount(t,i=!0){t=$(t),!(!t||!e.mounts[t])&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),i&&await D(e.mounts[t]),e.mountpoints=e.mountpoints.filter(a=>a!==t),delete e.mounts[t])},getMount(t=""){t=d(t)+":";const i=r(t);return{driver:i.driver,base:i.base}},getMounts(t="",i={}){return t=d(t),s(t,i.parents).map(o=>({driver:o.driver,base:o.mountpoint}))}};return p}function B(n,e,r){return n.watch?n.watch((s,c)=>e(s,r+c)):()=>{}}async function D(n){typeof n.dispose=="function"&&await h(n.dispose)}function ut(n={}){const e=ct(r,n.operators);function r(s,c){return typeof c!="object"||c instanceof RegExp?e.$eq(s,c):Object.keys(c||{}).every(u=>{const l=c[u];if(u.startsWith("$")&&e[u]){const g=e[u];return typeof g=="function"?g(s,l):!1}return r(Q(s,u),l)})}return r}function ct(n,e={}){return{$match:(r,s)=>n(r,s),$eq:(r,s)=>s instanceof RegExp?s.test(r):r===s,$ne:(r,s)=>s instanceof RegExp?!s.test(r):r!==s,$not:(r,s)=>!n(r,s),$and:(r,s)=>(M(s,"$and requires an array as condition"),s.every(c=>n(r,c))),$or:(r,s)=>(M(s,"$or requires an array as condition"),s.some(c=>n(r,c))),$in:(r,s)=>K(s).some(c=>Array.isArray(r)?n(r,{$contains:c}):n(r,c)),$contains:(r,s)=>(r=Array.isArray(r)?r:String(r),K(s).every(c=>r.includes(c))),$icontains:(r,s)=>{if(typeof s!="string")throw new TypeError("$icontains requires a string, use $contains instead");return r=String(r).toLocaleLowerCase(),K(s).every(c=>r.includes(c.toLocaleLowerCase()))},$containsAny:(r,s)=>(M(s,"$containsAny requires an array as condition"),r=Array.isArray(r)?r:String(r),s.some(c=>r.includes(c))),$exists:(r,s)=>s?typeof r<"u":typeof r>"u",$type:(r,s)=>typeof r===String(s),$regex:(r,s)=>{if(!(s instanceof RegExp)){const c=String(s).match(/\/(.*)\/([dgimsuy]*)$/);s=c!=null&&c[1]?new RegExp(c[1],c[2]||""):new RegExp(s)}return s.test(String(r||""))},$lt:(r,s)=>rr<=s,$gt:(r,s)=>r>s,$gte:(r,s)=>r>=s,...e||{}}}function lt(n){const e=ut(),r=(u,{query:l,before:g,after:p})=>{const t=typeof l=="string"?{_path:l}:l,i=u.findIndex(o=>e(o,t));g=g??1,p=p??1;const a=new Array(g+p).fill(null,0);return i===-1?a:a.map((o,m)=>u[i-g+m+ +(m>=g)]||null)},s=[(u,l)=>{const g=u.result.filter(p=>K(l.where).every(t=>e(p,t)));return{...u,result:g,total:g.length}},(u,l)=>K(l.sort).forEach(g=>V(u.result,g)),function(l,g,p){var t;if(g.surround){let i=r(((t=l.result)==null?void 0:t.length)===1?p:l.result,g.surround);i=R(S(g.without))(i),i=R(E(g.only))(i),l.surround=i}return l}],c=[(u,l)=>{if(l.skip)return{...u,result:u.result.slice(l.skip),skip:l.skip}},(u,l)=>{if(l.limit)return{...u,result:u.result.slice(0,l.limit),limit:l.limit}},function(l,g,p){var t,i,a;if(g.dirConfig){const o=((t=l.result[0])==null?void 0:t._path)||((a=(i=g.where)==null?void 0:i.find(m=>m._path))==null?void 0:a._path);if(typeof o=="string"){const m=p.find(f=>f._path===z(o,"_dir"));m&&(l.dirConfig={_path:m._path,...S(["_"])(m)})}}return l},(u,l)=>({...u,result:R(S(l.without))(u.result)}),(u,l)=>({...u,result:R(E(l.only))(u.result)})];return async u=>{const l=await n(),g=u.params(),p={result:l,limit:0,skip:0,total:l.length},t=s.reduce((a,o)=>o(a,g,l)||a,p);if(g.count)return{result:t.result.length};const i=c.reduce((a,o)=>o(a,g,l)||a,t);return g.first?{...U(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(n){const e=lt(n);return async r=>{var u;r.params().first&&r.withDirConfig();const s=r.params(),c=await e(r);return s.surround?c==null?void 0:c.surround:(c!=null&&c.dirConfig&&(c.result={_path:(u=c.dirConfig)==null?void 0:u._path,...c.result,_dir:c.dirConfig}),c==null?void 0:c.result)}}function ft(n,e){const{navigation:r}=O().public.content;if(r===!1)return[];const s=u=>({...gt(["title",...r.fields])(u),...pt(u==null?void 0:u.navigation)?u.navigation:{}}),c=n.sort((u,l)=>u._path.localeCompare(l._path)).reduce((u,l)=>{var m;const g=l._path.substring(1).split("/"),p=l._id.split(":").slice(1),t=!!((m=p[p.length-1])!=null&&m.match(/([1-9][0-9]*\.)?index.md/g)),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...s(f),...f._draft?{_draft:!0}:{}}),a=i(l);if(t){const f=e[a._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return u;if(l._path!=="/"){const w=i(l);a.children.push(w)}f&&Object.assign(a,s(f))}return g.length===1?(u.push(a),u):(g.slice(0,-1).reduce((f,w,_)=>{const y="/"+g.slice(0,_+1).join("/"),v=e[y];if(typeof(v==null?void 0:v.navigation)<"u"&&!v.navigation)return[];let I=f.find(F=>F._path===y);return I||(I={title:X(w),_path:y,_file:l._file,children:[],...v&&s(v)},f.push(I)),I.children},u).push(a),u)},[]);return T(c)}const mt=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function T(n){var r;n.forEach(s=>{s._file=s._file.split(".").slice(0,-1).join(".")});const e=n.sort((s,c)=>mt.compare(s._file,c._file));for(const s of e)(r=s.children)!=null&&r.length?T(s.children):delete s.children,delete s._file;return n}function gt(n){return e=>(e=e||{},n&&n.length?n.filter(r=>typeof e[r]<"u").reduce((r,s)=>Object.assign(r,{[s]:e[s]}),{}):e)}function pt(n){return Object.prototype.toString.call(n)==="[object Object]"}const ht=n=>J(n,O().public.content.api.baseURL),wt=nt(ot({driver:Y()}),"@content");function dt(n){async function e(){const r=new Set(await n.getKeys("cache:")),s=W().getPreviewToken();if(s){const u=await n.getItem(`${s}$`).then(p=>p||{});if(Array.isArray(u.ignoreSources)){const p=u.ignoreSources.map(t=>`cache:${t.trim()}:`);for(const t of r)p.some(i=>t.startsWith(i))&&r.delete(t)}const l=await n.getKeys(`${s}:`),g=await Promise.all(l.map(p=>n.getItem(p)));for(const p of g)r.delete(`cache:${p._id}`),p.__deleted||r.add(`${s}:${p._id}`)}return await Promise.all(Array.from(r).map(u=>n.getItem(u)))}return{storage:n,fetch:L(e),query:r=>H(L(e),{initialParams:r,legacy:!0})}}let C=null,A=null;async function yt(){return A?await A:C||(A=vt(),C=await A),C}async function vt(){const n=q(),{content:e}=O().public,r=dt(wt),s=await r.storage.getItem("integrity");if(e.integrity!==+(s||0)){const{contents:c,navigation:u}=await $fetch(ht(e.integrity?`cache.${e.integrity}.json`:"cache.json"));await Promise.all(c.map(l=>r.storage.setItem(`cache:${l._id}`,l))),await r.storage.setItem("navigation",u),await r.storage.setItem("integrity",e.integrity)}return await n.callHook("content:storage",r.storage),r}async function Rt(n){const e=await yt();if(!W().getPreviewToken()&&Object.keys(n||{}).length===0)return e.storage.getItem("navigation");const r=await e.query(n).where({_partial:!1,navigation:{$ne:!1}}).find(),c=(await e.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((u,l)=>{var p;((p=l.title)==null?void 0:p.toLowerCase())==="dir"&&(l.title=void 0);const g=l._path.split("/").slice(0,-1).join("/")||"/";return u[g]={...l,...l.body},u},{});return ft(r,c)}export{wt as contentStorage,dt as createDB,Rt as generateNavigation,yt as useContentDatabase}; diff --git a/_nuxt/Dna4PVgy.js b/_nuxt/Dna4PVgy.js deleted file mode 100644 index e36e153e..00000000 --- a/_nuxt/Dna4PVgy.js +++ /dev/null @@ -1 +0,0 @@ -import{g as F,u as N,i as B,M as X,r as V,X as q,Y as A,o as t,c as o,a as e,t as a,k as s,S as D,T as G,l as M,Z as R,d as U}from"./Bk7_z8zR.js";import{a as W}from"./VZpoIE_P.js";const Y={class:"container"},Z=e("div",{class:"text-2xl title my-5"}," Profile ",-1),$={class:"profile-stats"},j=e("label",null,"Name",-1),w={class:"text-lg"},z=e("label",null,"Permission",-1),H={class:"text-lg"},J=e("label",null,"EFX",-1),K={class:"text-lg"},O={class:"payout-container"},Q=e("label",null,"Pending EFX",-1),ee={key:0},se={key:1,class:"text-lg"},te={key:0,class:"claimable"},oe={key:1,class:"pending"},ae={class:"profile-toolbar"},ne=["disabled"],de=F({__name:"profile",setup(le){const{usePendingPayments:_,disconnectWallet:g,permission:v,isLoggedIn:p,userName:d,usePayoutEfx:b,useGetBalance:f,useForceSettings:h}=N(),y=B(),{data:k}=f(d),{data:C,isLoading:P}=h(),{data:i,isLoading:x}=_(),T=X(()=>x.value||P.value),r=V([]),S=c=>c.map(l=>({...l,claimableIn:R(l,C.value)})),E=q(()=>{i.value&&(r.value=S(i.value.pendingPayments))},1e3),{mutateAsync:I}=b();A(()=>{clearInterval(E)});const L=()=>{g(),localStorage.removeItem("access_token"),y.push("/")};return(c,l)=>{var u,m;return t(),o("div",Y,[Z,e("div",$,[e("div",null,[j,e("div",w,a(s(d)),1)]),e("div",null,[z,e("div",H,a(s(v)),1)]),e("div",null,[J,e("div",K,a(s(k)??0),1)])]),e("div",O,[Q,s(T)?(t(),o("div",ee," Loading.. ")):(t(),o("div",se,[(t(!0),o(D,null,G(s(r),n=>(t(),o("div",{key:n.id},[U(a(n.batch_id)+" - "+a(n.pending.quantity)+" ",1),n.claimableIn<0?(t(),o("span",te,"Claimable")):(t(),o("span",oe," Claimable in "+a(("formatSecondsToTime"in c?c.formatSecondsToTime:s(W))(n.claimableIn))+" seconds ",1))]))),128))]))]),e("div",ae,[e("button",{class:"button",disabled:((u=s(i))==null?void 0:u.totalEfxClaimable)===0,onClick:l[0]||(l[0]=n=>s(I)())}," Claim "+a((m=s(i))==null?void 0:m.totalEfxClaimable)+" EFX ",9,ne),s(p)?(t(),o("button",{key:0,class:"button",onClick:L}," Logout ")):M("",!0)])])}}});export{de as default}; diff --git a/_nuxt/CYVKd2LE.js b/_nuxt/DrmMPU4W.js similarity index 89% rename from _nuxt/CYVKd2LE.js rename to _nuxt/DrmMPU4W.js index c91ac530..8cb6c85f 100644 --- a/_nuxt/CYVKd2LE.js +++ b/_nuxt/DrmMPU4W.js @@ -1 +1 @@ -import{_ as k}from"./D8_oxPFk.js";import{g as v,u as f,i as b,o as n,c as a,a as e,k as o,b as w,w as x,d as g,t as r,p as C,e as S,_ as I}from"./Bk7_z8zR.js";const N=s=>(C("data-v-93923053"),s=s(),S(),s),y={class:"container"},B={class:"burger-button"},$=N(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"",width:"20"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1)),V=[$],E={key:0},L={key:1,class:""},M=v({__name:"TheHeader",emits:["openSidebar"],setup(s,{emit:c}){const{connectWallet:d,isLoggedIn:_,userName:p,permission:l}=f(),u=c,m=b();return(T,t)=>{const h=k;return n(),a("nav",null,[e("div",y,[e("div",B,[e("button",{onClick:t[0]||(t[0]=i=>u("openSidebar")),type:"button",class:"button"},V)]),o(_)?(n(),a("div",L,[w(h,{to:"/",class:"",onClick:t[2]||(t[2]=i=>o(m).push("/profile"))},{default:x(()=>[g(r(o(p))+"@"+r(o(l)),1)]),_:1})])):(n(),a("div",E,[e("button",{class:"button",to:"/",onClick:t[1]||(t[1]=i=>o(d)())}," connect ")]))])])}}}),H=I(M,[["__scopeId","data-v-93923053"]]);export{H as _}; +import{_ as k}from"./yL9Sm9hV.js";import{g as v,u as f,i as b,o as n,c as a,a as e,k as o,b as w,w as x,d as g,t as r,p as C,e as S,_ as I}from"./DRzdypsL.js";const N=s=>(C("data-v-93923053"),s=s(),S(),s),y={class:"container"},B={class:"burger-button"},$=N(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"",width:"20"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1)),V=[$],E={key:0},L={key:1,class:""},M=v({__name:"TheHeader",emits:["openSidebar"],setup(s,{emit:c}){const{connectWallet:d,isLoggedIn:_,userName:p,permission:l}=f(),u=c,m=b();return(T,t)=>{const h=k;return n(),a("nav",null,[e("div",y,[e("div",B,[e("button",{onClick:t[0]||(t[0]=i=>u("openSidebar")),type:"button",class:"button"},V)]),o(_)?(n(),a("div",L,[w(h,{to:"/",class:"",onClick:t[2]||(t[2]=i=>o(m).push("/profile"))},{default:x(()=>[g(r(o(p))+"@"+r(o(l)),1)]),_:1})])):(n(),a("div",E,[e("button",{class:"button",to:"/",onClick:t[1]||(t[1]=i=>o(d)())}," connect ")]))])])}}}),H=I(M,[["__scopeId","data-v-93923053"]]);export{H as _}; diff --git a/_nuxt/CadYdy7U.js b/_nuxt/DsZb1hsf.js similarity index 82% rename from _nuxt/CadYdy7U.js rename to _nuxt/DsZb1hsf.js index 5a5632cf..366bce1d 100644 --- a/_nuxt/CadYdy7U.js +++ b/_nuxt/DsZb1hsf.js @@ -1 +1 @@ -import{_ as l}from"./CLSFKFYC.js";import{g as n,o as s,F as i,w as o,a as r,n as g,aw as u,G as f}from"./Bk7_z8zR.js";const h=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(a,m)=>{const t=l;return s(),i(t,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:o(()=>[r("pre",{class:g(a.$props.class),style:u(e.style)},[f(a.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{h as default}; +import{_ as l}from"./BA7fD-2p.js";import{g as n,o as s,F as i,w as o,a as r,n as g,aw as u,G as f}from"./DRzdypsL.js";const h=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(a,m)=>{const t=l;return s(),i(t,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:o(()=>[r("pre",{class:g(a.$props.class),style:u(e.style)},[f(a.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{h as default}; diff --git a/_nuxt/Dtabo8Ev.js b/_nuxt/Dtabo8Ev.js new file mode 100644 index 00000000..0026f7b3 --- /dev/null +++ b/_nuxt/Dtabo8Ev.js @@ -0,0 +1 @@ +import{_ as t}from"./jn6rmPcS.js";import{g as o,u as n,o as c,c as s,b as _}from"./DRzdypsL.js";const a={class:"mt-5"},f=o({__name:"login",setup(r){return n(),(m,p)=>{const e=t;return c(),s("div",a,[_(e)])}}});export{f as default}; diff --git a/_nuxt/Dvbh4inv.js b/_nuxt/Dy8-xdSN.js similarity index 65% rename from _nuxt/Dvbh4inv.js rename to _nuxt/Dy8-xdSN.js index 5150f42b..265b0e31 100644 --- a/_nuxt/Dvbh4inv.js +++ b/_nuxt/Dy8-xdSN.js @@ -1 +1 @@ -import{_ as o,o as r,c as t,G as s}from"./Bk7_z8zR.js";const a={};function c(e,n){return r(),t("table",null,[s(e.$slots,"default")])}const _=o(a,[["render",c]]);export{_ as default}; +import{_ as o,o as r,c as t,G as s}from"./DRzdypsL.js";const a={};function c(e,n){return r(),t("table",null,[s(e.$slots,"default")])}const _=o(a,[["render",c]]);export{_ as default}; diff --git a/_nuxt/CwxWHj84.js b/_nuxt/DyhP3oSh.js similarity index 64% rename from _nuxt/CwxWHj84.js rename to _nuxt/DyhP3oSh.js index 3dfb65f7..cbc71cee 100644 --- a/_nuxt/CwxWHj84.js +++ b/_nuxt/DyhP3oSh.js @@ -1 +1 @@ -import{_ as o,o as r,c as s,G as t}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),s("p",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as s,G as t}from"./DRzdypsL.js";const c={};function n(e,a){return r(),s("p",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/FhxOfykq.js b/_nuxt/FhxOfykq.js new file mode 100644 index 00000000..9b4a746e --- /dev/null +++ b/_nuxt/FhxOfykq.js @@ -0,0 +1 @@ +import{_ as o}from"./CbSZFrki.js";import"./DRzdypsL.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./nLZ1R_uv.js";export{o as default}; diff --git a/_nuxt/BG6wdasp.js b/_nuxt/HAH9zurp.js similarity index 92% rename from _nuxt/BG6wdasp.js rename to _nuxt/HAH9zurp.js index 78b2c679..ce935360 100644 --- a/_nuxt/BG6wdasp.js +++ b/_nuxt/HAH9zurp.js @@ -1 +1 @@ -import{f as i}from"./BneCoJRQ.js";import{g as u,a8 as f,a3 as c,M as d,a5 as r}from"./Bk7_z8zR.js";const p=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=f(),{default:o}=c(),a=d(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:a,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:a,parent:e}){var l;try{let n=t;return typeof t=="string"&&(n=(e==null?void 0:e.slots[t])||((l=e==null?void 0:e.parent)==null?void 0:l.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),n?s?i(n(),a):[n()]:o?o():r("div")}catch{return r("div")}}}),g=u({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(t){return r(p,t)}});export{g as default}; +import{f as i}from"./BneCoJRQ.js";import{g as u,a8 as f,a3 as c,M as d,a5 as r}from"./DRzdypsL.js";const p=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=f(),{default:o}=c(),a=d(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:a,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:a,parent:e}){var l;try{let n=t;return typeof t=="string"&&(n=(e==null?void 0:e.slots[t])||((l=e==null?void 0:e.parent)==null?void 0:l.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),n?s?i(n(),a):[n()]:o?o():r("div")}catch{return r("div")}}}),g=u({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(t){return r(p,t)}});export{g as default}; diff --git a/_nuxt/IEnkyGq6.js b/_nuxt/IEnkyGq6.js new file mode 100644 index 00000000..a0141738 --- /dev/null +++ b/_nuxt/IEnkyGq6.js @@ -0,0 +1 @@ +import{g as B,u as N,i as X,M as V,r as q,X as A,Y as D,o as t,c as a,a as e,t as o,k as s,S as G,T as M,l as R,Z as U,d as W}from"./DRzdypsL.js";import{a as Y}from"./VZpoIE_P.js";const Z={class:"container"},$=e("div",{class:"text-2xl title my-5"}," Profile ",-1),j={class:"profile-stats"},w=e("label",null,"Name",-1),z={class:"text-lg"},H=e("label",null,"Permission",-1),J={class:"text-lg"},K=e("label",null,"EFX",-1),O={class:"text-lg"},Q={class:"payout-container"},ee=e("label",null,"Pending EFX",-1),se={key:0},te={key:1,class:"text-lg"},ae={key:0,class:"claimable"},oe={key:1,class:"pending"},ne={class:"profile-toolbar"},le=["disabled"],re=B({__name:"profile",setup(ie){const{usePendingPayments:g,disconnectWallet:v,permission:f,isLoggedIn:p,userName:d,usePayoutEfx:b,useGetBalance:h,useForceSettings:y}=N(),k=X(),{data:x}=h(d),{data:C,isLoading:P}=y(),{data:i,isLoading:T}=g(),S=V(()=>T.value||P.value),r=q([]),E=c=>c.map(l=>({...l,claimableIn:U(l,C.value)})),I=A(()=>{i.value&&(r.value=E(i.value.pendingPayments))},1e3),{mutateAsync:L}=b();D(()=>{clearInterval(I)});const F=()=>{v(),localStorage.removeItem("access_token"),k.push("/")};return(c,l)=>{var u,m,_;return t(),a("div",Z,[$,e("div",j,[e("div",null,[w,e("div",z,o(s(d)),1)]),e("div",null,[H,e("div",J,o(s(f)),1)]),e("div",null,[K,e("div",O,o(((u=s(x))==null?void 0:u.efxBalance)??0),1)])]),e("div",Q,[ee,s(S)?(t(),a("div",se," Loading.. ")):(t(),a("div",te,[(t(!0),a(G,null,M(s(r),n=>(t(),a("div",{key:n.id},[W(o(n.batch_id)+" - "+o(n.pending.quantity)+" ",1),n.claimableIn<0?(t(),a("span",ae,"Claimable")):(t(),a("span",oe," Claimable in "+o(("formatSecondsToTime"in c?c.formatSecondsToTime:s(Y))(n.claimableIn))+" seconds ",1))]))),128))]))]),e("div",ne,[e("button",{class:"button",disabled:((m=s(i))==null?void 0:m.totalEfxClaimable)===0,onClick:l[0]||(l[0]=n=>s(L)())}," Claim "+o((_=s(i))==null?void 0:_.totalEfxClaimable)+" EFX ",9,le),s(p)?(t(),a("button",{key:0,class:"button",onClick:F}," Logout ")):R("",!0)])])}}});export{re as default}; diff --git a/_nuxt/D9erlvBj.js b/_nuxt/IXhQLKK7.js similarity index 53% rename from _nuxt/D9erlvBj.js rename to _nuxt/IXhQLKK7.js index 98caebc5..632b79b8 100644 --- a/_nuxt/D9erlvBj.js +++ b/_nuxt/IXhQLKK7.js @@ -1 +1 @@ -import{_ as e,o as r,c}from"./Bk7_z8zR.js";const o={};function t(n,s){return r(),c("hr")}const a=e(o,[["render",t]]);export{a as default}; +import{_ as e,o as r,c}from"./DRzdypsL.js";const o={};function t(n,s){return r(),c("hr")}const a=e(o,[["render",t]]);export{a as default}; diff --git a/_nuxt/CvhRWxfN.js b/_nuxt/Mhp9soAi.js similarity index 89% rename from _nuxt/CvhRWxfN.js rename to _nuxt/Mhp9soAi.js index 787bdaa7..48c2ac1c 100644 --- a/_nuxt/CvhRWxfN.js +++ b/_nuxt/Mhp9soAi.js @@ -1 +1 @@ -import{g as u,W as _,M as p,o as l,c as i,G as m,l as f,k as o,n as h,a as e}from"./Bk7_z8zR.js";const k=["disabled"],g={key:0,class:"lds-ring"},C=e("div",null,null,-1),b=e("div",null,null,-1),v=e("div",null,null,-1),B=e("div",null,null,-1),L=[C,b,v,B],A=u({inheritAttrs:!1,__name:"ForceButton",props:{isLoading:{type:Boolean}},setup(a){const d=a,s=_(),r=p(()=>!!s.disabled||d.isLoading);return(n,t)=>(l(),i("button",{disabled:o(r),class:h([{"inline-flex":n.isLoading},o(s).class]),onClick:t[0]||(t[0]=(...c)=>o(s).onClick&&o(s).onClick(...c))},[m(n.$slots,"default"),n.isLoading?(l(),i("div",g,L)):f("",!0)],10,k))}});export{A as _}; +import{g as u,W as _,M as p,o as l,c as i,G as m,l as f,k as o,n as h,a as e}from"./DRzdypsL.js";const k=["disabled"],g={key:0,class:"lds-ring"},C=e("div",null,null,-1),b=e("div",null,null,-1),v=e("div",null,null,-1),B=e("div",null,null,-1),L=[C,b,v,B],A=u({inheritAttrs:!1,__name:"ForceButton",props:{isLoading:{type:Boolean}},setup(a){const d=a,s=_(),r=p(()=>!!s.disabled||d.isLoading);return(n,t)=>(l(),i("button",{disabled:o(r),class:h([{"inline-flex":n.isLoading},o(s).class]),onClick:t[0]||(t[0]=(...c)=>o(s).onClick&&o(s).onClick(...c))},[m(n.$slots,"default"),n.isLoading?(l(),i("div",g,L)):f("",!0)],10,k))}});export{A as _}; diff --git a/_nuxt/CTbn5rF3.js b/_nuxt/N3Zb81fI.js similarity index 64% rename from _nuxt/CTbn5rF3.js rename to _nuxt/N3Zb81fI.js index 43ee65e5..66996564 100644 --- a/_nuxt/CTbn5rF3.js +++ b/_nuxt/N3Zb81fI.js @@ -1 +1 @@ -import{_ as o,o as r,c as s,G as t}from"./Bk7_z8zR.js";const c={};function n(e,a){return r(),s("em",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; +import{_ as o,o as r,c as s,G as t}from"./DRzdypsL.js";const c={};function n(e,a){return r(),s("em",null,[t(e.$slots,"default")])}const _=o(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/2BrHaVLh.js b/_nuxt/PgmTAEsv.js similarity index 72% rename from _nuxt/2BrHaVLh.js rename to _nuxt/PgmTAEsv.js index e3e3a901..27da62b5 100644 --- a/_nuxt/2BrHaVLh.js +++ b/_nuxt/PgmTAEsv.js @@ -1 +1 @@ -import{g as o,k as s,o as n,c as r,d as e,l as a,a as t}from"./Bk7_z8zR.js";const c={key:0},i=t("code",null,"script",-1),d=t("code",null,"ProseScript",-1),f=o({__name:"ProseScript",props:{src:{type:String,default:""}},setup(l){return(_,m)=>s(!1)?(n(),r("div",c,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),d,e(" element to have control over script rendering. ")])):a("",!0)}});export{f as default}; +import{g as o,k as s,o as n,c as r,d as e,l as a,a as t}from"./DRzdypsL.js";const c={key:0},i=t("code",null,"script",-1),d=t("code",null,"ProseScript",-1),f=o({__name:"ProseScript",props:{src:{type:String,default:""}},setup(l){return(_,m)=>s(!1)?(n(),r("div",c,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),d,e(" element to have control over script rendering. ")])):a("",!0)}});export{f as default}; diff --git a/_nuxt/Cg5AdoJL.js b/_nuxt/W4soxq2T.js similarity index 77% rename from _nuxt/Cg5AdoJL.js rename to _nuxt/W4soxq2T.js index de6f968b..241dcffe 100644 --- a/_nuxt/Cg5AdoJL.js +++ b/_nuxt/W4soxq2T.js @@ -1 +1 @@ -import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./Bk7_z8zR.js";const l=["id"],d=["href"],_=p({__name:"ProseH6",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h6))});return(e,k)=>(t(),s("h6",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./DRzdypsL.js";const l=["id"],d=["href"],_=p({__name:"ProseH6",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h6))});return(e,k)=>(t(),s("h6",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/CE1bXBtk.js b/_nuxt/_yT1To6n.js similarity index 74% rename from _nuxt/CE1bXBtk.js rename to _nuxt/_yT1To6n.js index 379de08f..39f4c653 100644 --- a/_nuxt/CE1bXBtk.js +++ b/_nuxt/_yT1To6n.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./CFT4hcsC.js","./Bk7_z8zR.js","./entry.4rgfqAsO.css","./DIqeZryz.js","./DNgSKQ__.js","./JiFQw_g2.js","./C-v3KzvZ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{q as f,w as m,e as v,s as g,j as d,u as l,a as h}from"./DIqeZryz.js";import{x as _,z as y,g as C,ac as w,M as P,ad as $,a3 as N,a5 as r}from"./Bk7_z8zR.js";import{h as c,u as j}from"./DNgSKQ__.js";import{_ as T}from"./D8_oxPFk.js";const x=async e=>{const{content:t}=_().public;typeof(e==null?void 0:e.params)!="function"&&(e=f(e));const a=e.params(),s=t.experimental.stripQueryParameters?m(`/navigation/${`${c(a)}.${t.integrity}`}/${v(a)}.json`):m(`/navigation/${c(a)}.${t.integrity}.json`);if(g())return(await y(()=>import("./CFT4hcsC.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(o=>o.generateNavigation))(a);const n=await $fetch(s,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:d(a),previewToken:j().getPreviewToken()}});if(typeof n=="string"&&n.startsWith(""))throw new Error("Not found");return n},D=C({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(e){const{query:t}=w(e),a=P(()=>{var n;return typeof((n=t.value)==null?void 0:n.params)=="function"?t.value.params():t.value});if(!a.value&&$("dd-navigation").value){const{navigation:n}=l();return{navigation:n}}const{data:s}=await h(`content-navigation-${c(a.value)}`,()=>x(a.value));return{navigation:s}},render(e){const t=N(),{navigation:a}=e,s=o=>r(T,{to:o._path},()=>o.title),n=(o,u)=>r("ul",u?{"data-level":u}:null,o.map(i=>i.children?r("li",null,[s(i),n(i.children,u+1)]):r("li",null,s(i)))),p=o=>n(o,0);return t!=null&&t.default?t.default({navigation:a,...this.$attrs}):p(a)}}),Q=D;export{Q as default}; +const __vite__fileDeps=["./DhUbynuL.js","./DRzdypsL.js","./entry.4rgfqAsO.css","./vCcY93uT.js","./nLZ1R_uv.js","./BJOVPnNC.js","./C-v3KzvZ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{q as f,w as m,e as v,s as g,j as d,u as l,a as h}from"./vCcY93uT.js";import{x as _,z as y,g as C,ac as w,M as P,ad as $,a3 as N,a5 as r}from"./DRzdypsL.js";import{h as c,u as j}from"./nLZ1R_uv.js";import{_ as T}from"./yL9Sm9hV.js";const x=async e=>{const{content:t}=_().public;typeof(e==null?void 0:e.params)!="function"&&(e=f(e));const a=e.params(),s=t.experimental.stripQueryParameters?m(`/navigation/${`${c(a)}.${t.integrity}`}/${v(a)}.json`):m(`/navigation/${c(a)}.${t.integrity}.json`);if(g())return(await y(()=>import("./DhUbynuL.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(o=>o.generateNavigation))(a);const n=await $fetch(s,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:d(a),previewToken:j().getPreviewToken()}});if(typeof n=="string"&&n.startsWith(""))throw new Error("Not found");return n},D=C({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(e){const{query:t}=w(e),a=P(()=>{var n;return typeof((n=t.value)==null?void 0:n.params)=="function"?t.value.params():t.value});if(!a.value&&$("dd-navigation").value){const{navigation:n}=l();return{navigation:n}}const{data:s}=await h(`content-navigation-${c(a.value)}`,()=>x(a.value));return{navigation:s}},render(e){const t=N(),{navigation:a}=e,s=o=>r(T,{to:o._path},()=>o.title),n=(o,u)=>r("ul",u?{"data-level":u}:null,o.map(i=>i.children?r("li",null,[s(i),n(i.children,u+1)]):r("li",null,s(i)))),p=o=>n(o,0);return t!=null&&t.default?t.default({navigation:a,...this.$attrs}):p(a)}}),Q=D;export{Q as default}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index bceabe33..403de242 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"6471a257-7062-4d76-8424-8f77129008b4","timestamp":1720093685941} \ No newline at end of file +{"id":"4b0459f7-d71b-43e6-a75d-15561da3af83","timestamp":1720096560427} \ No newline at end of file diff --git a/_nuxt/builds/meta/4b0459f7-d71b-43e6-a75d-15561da3af83.json b/_nuxt/builds/meta/4b0459f7-d71b-43e6-a75d-15561da3af83.json new file mode 100644 index 00000000..414f7010 --- /dev/null +++ b/_nuxt/builds/meta/4b0459f7-d71b-43e6-a75d-15561da3af83.json @@ -0,0 +1 @@ +{"id":"4b0459f7-d71b-43e6-a75d-15561da3af83","timestamp":1720096560427,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/_nuxt/builds/meta/6471a257-7062-4d76-8424-8f77129008b4.json b/_nuxt/builds/meta/6471a257-7062-4d76-8424-8f77129008b4.json deleted file mode 100644 index 2d131e47..00000000 --- a/_nuxt/builds/meta/6471a257-7062-4d76-8424-8f77129008b4.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"6471a257-7062-4d76-8424-8f77129008b4","timestamp":1720093685941,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/_nuxt/C4gPAXLa.js b/_nuxt/czY1a8yr.js similarity index 63% rename from _nuxt/C4gPAXLa.js rename to _nuxt/czY1a8yr.js index 45e8c996..018f00e9 100644 --- a/_nuxt/C4gPAXLa.js +++ b/_nuxt/czY1a8yr.js @@ -1 +1 @@ -import{_ as r,o,c as t,G as s}from"./Bk7_z8zR.js";const c={};function n(e,a){return o(),t("tr",null,[s(e.$slots,"default")])}const _=r(c,[["render",n]]);export{_ as default}; +import{_ as r,o,c as t,G as s}from"./DRzdypsL.js";const c={};function n(e,a){return o(),t("tr",null,[s(e.$slots,"default")])}const _=r(c,[["render",n]]);export{_ as default}; diff --git a/_nuxt/ULjoJCf3.js b/_nuxt/imxI89Y8.js similarity index 99% rename from _nuxt/ULjoJCf3.js rename to _nuxt/imxI89Y8.js index bacd2104..f95c696d 100644 --- a/_nuxt/ULjoJCf3.js +++ b/_nuxt/imxI89Y8.js @@ -1,4 +1,4 @@ -import{_ as $c}from"./CvhRWxfN.js";import Qc from"./BC4ZBaMa.js";import{y as Hr,z as wn,A as En,B as Xc,g as Kc,u as Jc,r as Va,C as Zc,D as eu,E as tu,o as _t,c as mt,k as ke,a as ie,t as oa,b as Tn,w as au,l as ru,p as nu,e as iu,_ as su}from"./Bk7_z8zR.js";import{k as $t}from"./C-v3KzvZ.js";import{n as An}from"./BneCoJRQ.js";import{f as Ur,n as Cn,s as ta,h as Fa,a as ou}from"./BZpomPOF.js";import{g as cu}from"./JiFQw_g2.js";import"./DNgSKQ__.js";function Dn(e){if(e)throw e}var pa=Object.prototype.hasOwnProperty,ts=Object.prototype.toString,xn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,In=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ts.call(t)==="[object Array]"},Nn=function(t){if(!t||ts.call(t)!=="[object Object]")return!1;var a=pa.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&pa.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!r)return!1;var n;for(n in t);return typeof n>"u"||pa.call(t,n)},Sn=function(t,a){xn&&a.name==="__proto__"?xn(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},Fn=function(t,a){if(a==="__proto__")if(pa.call(t,a)){if(zn)return zn(t,a).value}else return;return t[a]},uu=function e(){var t,a,r,n,s,i,o=arguments[0],u=1,f=arguments.length,p=!1;for(typeof o=="boolean"&&(p=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ui.length;let u;o&&i.push(n);try{u=e.apply(this,i)}catch(f){const p=f;if(o&&a)throw p;return n(p)}o||(u&&u.then&&typeof u.then=="function"?u.then(s,n):u instanceof Error?n(u):s(u))}function n(i,...o){a||(a=!0,t(i,...o))}function s(i){n(null,i)}}function Ut(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?On(e.position):"start"in e||"end"in e?On(e):"line"in e||"column"in e?gr(e):""}function gr(e){return Ln(e&&e.line)+":"+Ln(e&&e.column)}function On(e){return gr(e&&e.start)+"-"+gr(e&&e.end)}function Ln(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(t,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let n="",s={},i=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof t=="string"?n=t:!s.cause&&t&&(i=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=o?o.line:void 0,this.name=Ut(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Te.prototype.file="";Te.prototype.name="";Te.prototype.reason="";Te.prototype.message="";Te.prototype.stack="";Te.prototype.column=void 0;Te.prototype.line=void 0;Te.prototype.ancestors=void 0;Te.prototype.cause=void 0;Te.prototype.fatal=void 0;Te.prototype.place=void 0;Te.prototype.ruleId=void 0;Te.prototype.source=void 0;const Re={basename:hu,dirname:du,extname:pu,join:_u,sep:"/"};function hu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');aa(e);let a=0,r=-1,n=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else r<0&&(s=!0,r=n+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else i<0&&(s=!0,i=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(r=n):(o=-1,r=i));return a===r?r=i:r<0&&(r=e.length),e.slice(a,r)}function du(e){if(aa(e),e.length===0)return".";let t=-1,a=e.length,r;for(;--a;)if(e.codePointAt(a)===47){if(r){t=a;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pu(e){aa(e);let t=e.length,a=-1,r=0,n=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}a<0&&(i=!0,a=t+1),o===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||a<0||s===0||s===1&&n===a-1&&n===r+1?"":e.slice(n,a)}function _u(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function gu(e,t){let a="",r=0,n=-1,s=0,i=-1,o,u;for(;++i<=e.length;){if(i2){if(u=a.lastIndexOf("/"),u!==a.length-1){u<0?(a="",r=0):(a=a.slice(0,u),r=a.length-1-a.lastIndexOf("/")),n=i,s=0;continue}}else if(a.length>0){a="",r=0,n=i,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+e.slice(n+1,i):a=e.slice(n+1,i),r=i-n-1;n=i,s=0}else o===46&&s>-1?s++:s=-1}return a}function aa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yu={cwd:ku};function ku(){return"/"}function yr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bu(e){if(typeof e=="string")e=new URL(e);else if(!yr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wu(e)}function wu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let a=-1;for(;++a0){let[_,...y]=p;const b=r[l][1];mr(b)&&mr(_)&&(_=Wa(!0,b,_)),r[l]=[f,_,...y]}}}}const Du=new jr().freeze();function Xa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ka(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ja(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vn(e){if(!mr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Bn(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ca(e){return xu(e)?e:new Eu(e)}function xu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zu(e){return typeof e=="string"||Iu(e)}function Iu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nu={};function qr(e,t){const a=Nu,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return as(e,r,n)}function as(e,t,a){if(Su(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pn(e.children,t,a)}return Array.isArray(e)?Pn(e,t,a):""}function Pn(e,t,a){const r=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,r.length<1e4)i=Array.from(r),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);s0?(ze(e,e.length,0,t),e):t}const Hn={}.hasOwnProperty;function rs(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Oe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe=at(/[A-Za-z]/),ue=at(/[\dA-Za-z]/),Lu=at(/[#-'*+\--9=?A-Z^-~]/);function ya(e){return e!==null&&(e<32||e===127)}const kr=at(/\d/),Ru=at(/[\dA-Fa-f]/),vu=at(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}const Oa=at(new RegExp("\\p{P}|\\p{S}","u")),lt=at(/\s/);function at(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Ve(e){const t=[];let a=-1,r=0,n=0;for(;++a55295&&s<57344){const o=e.charCodeAt(a+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),n=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,a),encodeURIComponent(i)),r=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(r)}function G(e,t,a,r){const n=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(u){return Q(u)?(e.enter(a),o(u)):t(u)}function o(u){return Q(u)&&s++i))return;const D=t.events.length;let j=D,q,C;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(q){C=t.events[j][1].end;break}q=!0}for(T(r),d=D;dO;){const S=a[M];t.containerState=S[1],S[0].exit.call(t,e)}a.length=O}function N(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function Uu(e,t,a){return G(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ka(e){if(e===null||ee(e)||lt(e))return 1;if(Oa(e))return 2}function La(e,t,a){const r=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),l=Object.assign({},e[a][1].start);jn(h,-u),jn(l,u),i={type:u>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:l},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[a][1].start)},n={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},i.start),e[a][1].start=Object.assign({},o.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=xe(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=xe(f,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",s,t]]),f=xe(f,La(t.parser.constructs.insideSpan.null,e.slice(r+1,a),t)),f=xe(f,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(p=2,f=xe(f,[["enter",e[a][1],t],["exit",e[a][1],t]])):p=0,ze(e,r-1,a-r+3,f),a=r+f.length-p-2;break}}for(a=-1;++a0&&Q(d)?G(e,N,"linePrefix",s+1)(d):N(d)}function N(d){return d===null||V(d)?e.check(qn,b,M)(d):(e.enter("codeFlowValue"),O(d))}function O(d){return d===null||V(d)?(e.exit("codeFlowValue"),N(d)):(e.consume(d),O)}function M(d){return e.exit("codeFenced"),t(d)}function S(d,D,j){let q=0;return C;function C(B){return d.enter("lineEnding"),d.consume(B),d.exit("lineEnding"),I}function I(B){return d.enter("codeFencedFence"),Q(B)?G(d,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===o?(d.enter("codeFencedFenceSequence"),$(B)):j(B)}function $(B){return B===o?(q++,d.consume(B),$):q>=i?(d.exit("codeFencedFenceSequence"),Q(B)?G(d,Z,"whitespace")(B):Z(B)):j(B)}function Z(B){return B===null||V(B)?(d.exit("codeFencedFence"),D(B)):j(B)}}}function Zu(e,t,a){const r=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}const Za={name:"codeIndented",tokenize:tl},el={tokenize:al,partial:!0};function tl(e,t,a){const r=this;return n;function n(f){return e.enter("codeIndented"),G(e,s,"linePrefix",5)(f)}function s(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(f):a(f)}function i(f){return f===null?u(f):V(f)?e.attempt(el,i,u)(f):(e.enter("codeFlowValue"),o(f))}function o(f){return f===null||V(f)?(e.exit("codeFlowValue"),i(f)):(e.consume(f),o)}function u(f){return e.exit("codeIndented"),t(f)}}function al(e,t,a){const r=this;return n;function n(i){return r.parser.lazy[r.now().line]?a(i):V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):G(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):V(i)?n(i):a(i)}}const rl={name:"codeText",tokenize:sl,resolve:nl,previous:il};function nl(e){let t=e.length-4,a=3,r,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=a;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,a,r){const n=a||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&Lt(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Lt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Lt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(i):e.interrupt(r.parser.constructs.flow,a,t)(i)}}function us(e,t,a,r,n,s,i,o,u){const f=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(n),e.enter(s),e.consume(T),e.exit(s),l):T===null||T===32||T===41||ya(T)?a(T):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function l(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(n),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),_(T))}function _(T){return T===62?(e.exit("chunkString"),e.exit(o),l(T)):T===null||T===60||V(T)?a(T):(e.consume(T),T===92?y:_)}function y(T){return T===60||T===62||T===92?(e.consume(T),_):_(T)}function b(T){return!p&&(T===null||T===41||ee(T))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(T)):p999||_===null||_===91||_===93&&!u||_===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?a(_):_===93?(e.exit(s),e.enter(n),e.consume(_),e.exit(n),e.exit(r),t):V(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(_))}function h(_){return _===null||_===91||_===93||V(_)||o++>999?(e.exit("chunkString"),p(_)):(e.consume(_),u||(u=!Q(_)),_===92?l:h)}function l(_){return _===91||_===92||_===93?(e.consume(_),o++,h):h(_)}}function fs(e,t,a,r,n,s){let i;return o;function o(l){return l===34||l===39||l===40?(e.enter(r),e.enter(n),e.consume(l),e.exit(n),i=l===40?41:l,u):a(l)}function u(l){return l===i?(e.enter(n),e.consume(l),e.exit(n),e.exit(r),t):(e.enter(s),f(l))}function f(l){return l===i?(e.exit(s),u(i)):l===null?a(l):V(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),G(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(l))}function p(l){return l===i||l===null||V(l)?(e.exit("chunkString"),f(l)):(e.consume(l),l===92?h:p)}function h(l){return l===i||l===92?(e.consume(l),p):p(l)}}function ve(e,t){let a;return r;function r(n){return V(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,r):Q(n)?G(e,r,a?"linePrefix":"lineSuffix")(n):t(n)}}const pl={name:"definition",tokenize:ml},_l={tokenize:gl,partial:!0};function ml(e,t,a){const r=this;let n;return s;function s(_){return e.enter("definition"),i(_)}function i(_){return ls.call(r,e,o,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function o(_){return n=Oe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),u):a(_)}function u(_){return ee(_)?ve(e,f)(_):f(_)}function f(_){return us(e,p,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function p(_){return e.attempt(_l,h,h)(_)}function h(_){return Q(_)?G(e,l,"whitespace")(_):l(_)}function l(_){return _===null||V(_)?(e.exit("definition"),r.parser.defined.push(n),t(_)):a(_)}}function gl(e,t,a){return r;function r(o){return ee(o)?ve(e,n)(o):a(o)}function n(o){return fs(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Q(o)?G(e,i,"whitespace")(o):i(o)}function i(o){return o===null||V(o)?t(o):a(o)}}const yl={name:"hardBreakEscape",tokenize:kl};function kl(e,t,a){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return V(s)?(e.exit("hardBreakEscape"),t(s)):a(s)}}const bl={name:"headingAtx",tokenize:El,resolve:wl};function wl(e,t){let a=e.length-2,r=3,n,s;return e[r][1].type==="whitespace"&&(r+=2),a-2>r&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&e[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(n={type:"atxHeadingText",start:e[r][1].start,end:e[a][1].end},s={type:"chunkText",start:e[r][1].start,end:e[a][1].end,contentType:"text"},ze(e,r,a-r+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function El(e,t,a){let r=0;return n;function n(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||ee(p)?(e.exit("atxHeadingSequence"),o(p)):a(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||V(p)?(e.exit("atxHeading"),t(p)):Q(p)?G(e,o,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function f(p){return p===null||p===35||ee(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),f)}}const Tl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yn=["pre","script","style","textarea"],Al={name:"htmlFlow",tokenize:zl,resolveTo:xl,concrete:!0},Cl={tokenize:Nl,partial:!0},Dl={tokenize:Il,partial:!0};function xl(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zl(e,t,a){const r=this;let n,s,i,o,u;return f;function f(E){return p(E)}function p(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),l):E===47?(e.consume(E),s=!0,b):E===63?(e.consume(E),n=3,r.interrupt?t:w):fe(E)?(e.consume(E),i=String.fromCharCode(E),z):a(E)}function l(E){return E===45?(e.consume(E),n=2,_):E===91?(e.consume(E),n=5,o=0,y):fe(E)?(e.consume(E),n=4,r.interrupt?t:w):a(E)}function _(E){return E===45?(e.consume(E),r.interrupt?t:w):a(E)}function y(E){const Ie="CDATA[";return E===Ie.charCodeAt(o++)?(e.consume(E),o===Ie.length?r.interrupt?t:P:y):a(E)}function b(E){return fe(E)?(e.consume(E),i=String.fromCharCode(E),z):a(E)}function z(E){if(E===null||E===47||E===62||ee(E)){const Ie=E===47,rt=i.toLowerCase();return!Ie&&!s&&Yn.includes(rt)?(n=1,r.interrupt?t(E):P(E)):Tl.includes(i.toLowerCase())?(n=6,Ie?(e.consume(E),T):r.interrupt?t(E):P(E)):(n=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(E):s?N(E):O(E))}return E===45||ue(E)?(e.consume(E),i+=String.fromCharCode(E),z):a(E)}function T(E){return E===62?(e.consume(E),r.interrupt?t:P):a(E)}function N(E){return Q(E)?(e.consume(E),N):C(E)}function O(E){return E===47?(e.consume(E),C):E===58||E===95||fe(E)?(e.consume(E),M):Q(E)?(e.consume(E),O):C(E)}function M(E){return E===45||E===46||E===58||E===95||ue(E)?(e.consume(E),M):S(E)}function S(E){return E===61?(e.consume(E),d):Q(E)?(e.consume(E),S):O(E)}function d(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(e.consume(E),u=E,D):Q(E)?(e.consume(E),d):j(E)}function D(E){return E===u?(e.consume(E),u=null,q):E===null||V(E)?a(E):(e.consume(E),D)}function j(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ee(E)?S(E):(e.consume(E),j)}function q(E){return E===47||E===62||Q(E)?O(E):a(E)}function C(E){return E===62?(e.consume(E),I):a(E)}function I(E){return E===null||V(E)?P(E):Q(E)?(e.consume(E),I):a(E)}function P(E){return E===45&&n===2?(e.consume(E),Y):E===60&&n===1?(e.consume(E),A):E===62&&n===4?(e.consume(E),ye):E===63&&n===3?(e.consume(E),w):E===93&&n===5?(e.consume(E),ae):V(E)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Cl,De,$)(E)):E===null||V(E)?(e.exit("htmlFlowData"),$(E)):(e.consume(E),P)}function $(E){return e.check(Dl,Z,De)(E)}function Z(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),B}function B(E){return E===null||V(E)?$(E):(e.enter("htmlFlowData"),P(E))}function Y(E){return E===45?(e.consume(E),w):P(E)}function A(E){return E===47?(e.consume(E),i="",X):P(E)}function X(E){if(E===62){const Ie=i.toLowerCase();return Yn.includes(Ie)?(e.consume(E),ye):P(E)}return fe(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),X):P(E)}function ae(E){return E===93?(e.consume(E),w):P(E)}function w(E){return E===62?(e.consume(E),ye):E===45&&n===2?(e.consume(E),w):P(E)}function ye(E){return E===null||V(E)?(e.exit("htmlFlowData"),De(E)):(e.consume(E),ye)}function De(E){return e.exit("htmlFlow"),t(E)}}function Il(e,t,a){const r=this;return n;function n(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):a(i)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}function Nl(e,t,a){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ra,t,a)}}const Sl={name:"htmlText",tokenize:Fl};function Fl(e,t,a){const r=this;let n,s,i;return o;function o(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),f):w===47?(e.consume(w),S):w===63?(e.consume(w),O):fe(w)?(e.consume(w),j):a(w)}function f(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),s=0,y):fe(w)?(e.consume(w),N):a(w)}function p(w){return w===45?(e.consume(w),_):a(w)}function h(w){return w===null?a(w):w===45?(e.consume(w),l):V(w)?(i=h,A(w)):(e.consume(w),h)}function l(w){return w===45?(e.consume(w),_):h(w)}function _(w){return w===62?Y(w):w===45?l(w):h(w)}function y(w){const ye="CDATA[";return w===ye.charCodeAt(s++)?(e.consume(w),s===ye.length?b:y):a(w)}function b(w){return w===null?a(w):w===93?(e.consume(w),z):V(w)?(i=b,A(w)):(e.consume(w),b)}function z(w){return w===93?(e.consume(w),T):b(w)}function T(w){return w===62?Y(w):w===93?(e.consume(w),T):b(w)}function N(w){return w===null||w===62?Y(w):V(w)?(i=N,A(w)):(e.consume(w),N)}function O(w){return w===null?a(w):w===63?(e.consume(w),M):V(w)?(i=O,A(w)):(e.consume(w),O)}function M(w){return w===62?Y(w):O(w)}function S(w){return fe(w)?(e.consume(w),d):a(w)}function d(w){return w===45||ue(w)?(e.consume(w),d):D(w)}function D(w){return V(w)?(i=D,A(w)):Q(w)?(e.consume(w),D):Y(w)}function j(w){return w===45||ue(w)?(e.consume(w),j):w===47||w===62||ee(w)?q(w):a(w)}function q(w){return w===47?(e.consume(w),Y):w===58||w===95||fe(w)?(e.consume(w),C):V(w)?(i=q,A(w)):Q(w)?(e.consume(w),q):Y(w)}function C(w){return w===45||w===46||w===58||w===95||ue(w)?(e.consume(w),C):I(w)}function I(w){return w===61?(e.consume(w),P):V(w)?(i=I,A(w)):Q(w)?(e.consume(w),I):q(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),n=w,$):V(w)?(i=P,A(w)):Q(w)?(e.consume(w),P):(e.consume(w),Z)}function $(w){return w===n?(e.consume(w),n=void 0,B):w===null?a(w):V(w)?(i=$,A(w)):(e.consume(w),$)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||ee(w)?q(w):(e.consume(w),Z)}function B(w){return w===47||w===62||ee(w)?q(w):a(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):a(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return Q(w)?G(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ae(w)}function ae(w){return e.enter("htmlTextData"),i(w)}}const Yr={name:"labelEnd",tokenize:Pl,resolveTo:Bl,resolveAll:vl},Ol={tokenize:Ml},Ll={tokenize:Hl},Rl={tokenize:Ul};function vl(e){let t=-1;for(;++t=3&&(f===null||V(f))?(e.exit("thematicBreak"),t(f)):a(f)}function u(f){return f===n?(e.consume(f),r++,u):(e.exit("thematicBreakSequence"),Q(f)?G(e,o,"whitespace")(f):o(f))}}const we={name:"list",tokenize:Xl,continuation:{tokenize:Kl},exit:Zl},$l={tokenize:ef,partial:!0},Ql={tokenize:Jl,partial:!0};function Xl(e,t,a){const r=this,n=r.events[r.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return o;function o(_){const y=r.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||_===r.containerState.marker:kr(_)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(_a,a,f)(_):f(_);if(!r.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(_)}return a(_)}function u(_){return kr(_)&&++i<10?(e.consume(_),u):(!r.interrupt||i<2)&&(r.containerState.marker?_===r.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),f(_)):a(_)}function f(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||_,e.check(ra,r.interrupt?a:p,e.attempt($l,l,h))}function p(_){return r.containerState.initialBlankLine=!0,s++,l(_)}function h(_){return Q(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),l):a(_)}function l(_){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function Kl(e,t,a){const r=this;return r.containerState._closeFlow=void 0,e.check(ra,n,s);function n(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Q(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ql,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(we,t,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Jl(e,t,a){const r=this;return G(e,n,"listItemIndent",r.containerState.size+1);function n(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):a(s)}}function Zl(e){e.exit(this.containerState.type)}function ef(e,t,a){const r=this;return G(e,n,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const i=r.events[r.events.length-1];return!Q(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):a(s)}}const Vn={name:"setextUnderline",tokenize:af,resolveTo:tf};function tf(e,t){let a=e.length,r,n,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){r=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function af(e,t,a){const r=this;let n;return s;function s(f){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),n=f,i(f)):a(f)}function i(f){return e.enter("setextHeadingLineSequence"),o(f)}function o(f){return f===n?(e.consume(f),o):(e.exit("setextHeadingLineSequence"),Q(f)?G(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||V(f)?(e.exit("setextHeadingLine"),t(f)):a(f)}}const rf={tokenize:nf};function nf(e){const t=this,a=e.attempt(ra,r,e.attempt(this.parser.constructs.flowInitial,n,G(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ul,n)),"linePrefix")));return a;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const sf={resolveAll:ds()},of=hs("string"),cf=hs("text");function hs(e){return{tokenize:t,resolveAll:ds(e==="text"?uf:void 0)};function t(a){const r=this,n=this.parser.constructs[e],s=a.attempt(n,i,o);return i;function i(p){return f(p)?s(p):o(p)}function o(p){if(p===null){a.consume(p);return}return a.enter("data"),a.consume(p),u}function u(p){return f(p)?(a.exit("data"),s(p)):(a.consume(p),u)}function f(p){if(p===null)return!0;const h=n[p];let l=-1;if(h)for(;++l-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}function hf(e,t){let a=-1;const r=[];let n;for(;++a"u"||pa.call(t,n)},Sn=function(t,a){xn&&a.name==="__proto__"?xn(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},Fn=function(t,a){if(a==="__proto__")if(pa.call(t,a)){if(zn)return zn(t,a).value}else return;return t[a]},uu=function e(){var t,a,r,n,s,i,o=arguments[0],u=1,f=arguments.length,p=!1;for(typeof o=="boolean"&&(p=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ui.length;let u;o&&i.push(n);try{u=e.apply(this,i)}catch(f){const p=f;if(o&&a)throw p;return n(p)}o||(u&&u.then&&typeof u.then=="function"?u.then(s,n):u instanceof Error?n(u):s(u))}function n(i,...o){a||(a=!0,t(i,...o))}function s(i){n(null,i)}}function Ut(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?On(e.position):"start"in e||"end"in e?On(e):"line"in e||"column"in e?gr(e):""}function gr(e){return Ln(e&&e.line)+":"+Ln(e&&e.column)}function On(e){return gr(e&&e.start)+"-"+gr(e&&e.end)}function Ln(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(t,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let n="",s={},i=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof t=="string"?n=t:!s.cause&&t&&(i=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=o?o.line:void 0,this.name=Ut(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Te.prototype.file="";Te.prototype.name="";Te.prototype.reason="";Te.prototype.message="";Te.prototype.stack="";Te.prototype.column=void 0;Te.prototype.line=void 0;Te.prototype.ancestors=void 0;Te.prototype.cause=void 0;Te.prototype.fatal=void 0;Te.prototype.place=void 0;Te.prototype.ruleId=void 0;Te.prototype.source=void 0;const Re={basename:hu,dirname:du,extname:pu,join:_u,sep:"/"};function hu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');aa(e);let a=0,r=-1,n=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else r<0&&(s=!0,r=n+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else i<0&&(s=!0,i=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(r=n):(o=-1,r=i));return a===r?r=i:r<0&&(r=e.length),e.slice(a,r)}function du(e){if(aa(e),e.length===0)return".";let t=-1,a=e.length,r;for(;--a;)if(e.codePointAt(a)===47){if(r){t=a;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pu(e){aa(e);let t=e.length,a=-1,r=0,n=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}a<0&&(i=!0,a=t+1),o===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||a<0||s===0||s===1&&n===a-1&&n===r+1?"":e.slice(n,a)}function _u(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function gu(e,t){let a="",r=0,n=-1,s=0,i=-1,o,u;for(;++i<=e.length;){if(i2){if(u=a.lastIndexOf("/"),u!==a.length-1){u<0?(a="",r=0):(a=a.slice(0,u),r=a.length-1-a.lastIndexOf("/")),n=i,s=0;continue}}else if(a.length>0){a="",r=0,n=i,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+e.slice(n+1,i):a=e.slice(n+1,i),r=i-n-1;n=i,s=0}else o===46&&s>-1?s++:s=-1}return a}function aa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yu={cwd:ku};function ku(){return"/"}function yr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bu(e){if(typeof e=="string")e=new URL(e);else if(!yr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wu(e)}function wu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let a=-1;for(;++a0){let[_,...y]=p;const b=r[l][1];mr(b)&&mr(_)&&(_=Wa(!0,b,_)),r[l]=[f,_,...y]}}}}const Du=new jr().freeze();function Xa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ka(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ja(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vn(e){if(!mr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Bn(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ca(e){return xu(e)?e:new Eu(e)}function xu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zu(e){return typeof e=="string"||Iu(e)}function Iu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nu={};function qr(e,t){const a=Nu,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return as(e,r,n)}function as(e,t,a){if(Su(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pn(e.children,t,a)}return Array.isArray(e)?Pn(e,t,a):""}function Pn(e,t,a){const r=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,r.length<1e4)i=Array.from(r),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);s0?(ze(e,e.length,0,t),e):t}const Hn={}.hasOwnProperty;function rs(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Oe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe=at(/[A-Za-z]/),ue=at(/[\dA-Za-z]/),Lu=at(/[#-'*+\--9=?A-Z^-~]/);function ya(e){return e!==null&&(e<32||e===127)}const kr=at(/\d/),Ru=at(/[\dA-Fa-f]/),vu=at(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}const Oa=at(new RegExp("\\p{P}|\\p{S}","u")),lt=at(/\s/);function at(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Ve(e){const t=[];let a=-1,r=0,n=0;for(;++a55295&&s<57344){const o=e.charCodeAt(a+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),n=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,a),encodeURIComponent(i)),r=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(r)}function G(e,t,a,r){const n=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(u){return Q(u)?(e.enter(a),o(u)):t(u)}function o(u){return Q(u)&&s++i))return;const D=t.events.length;let j=D,q,C;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(q){C=t.events[j][1].end;break}q=!0}for(T(r),d=D;dO;){const S=a[M];t.containerState=S[1],S[0].exit.call(t,e)}a.length=O}function N(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function Uu(e,t,a){return G(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ka(e){if(e===null||ee(e)||lt(e))return 1;if(Oa(e))return 2}function La(e,t,a){const r=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),l=Object.assign({},e[a][1].start);jn(h,-u),jn(l,u),i={type:u>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:l},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[a][1].start)},n={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},i.start),e[a][1].start=Object.assign({},o.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=xe(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=xe(f,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",s,t]]),f=xe(f,La(t.parser.constructs.insideSpan.null,e.slice(r+1,a),t)),f=xe(f,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(p=2,f=xe(f,[["enter",e[a][1],t],["exit",e[a][1],t]])):p=0,ze(e,r-1,a-r+3,f),a=r+f.length-p-2;break}}for(a=-1;++a0&&Q(d)?G(e,N,"linePrefix",s+1)(d):N(d)}function N(d){return d===null||V(d)?e.check(qn,b,M)(d):(e.enter("codeFlowValue"),O(d))}function O(d){return d===null||V(d)?(e.exit("codeFlowValue"),N(d)):(e.consume(d),O)}function M(d){return e.exit("codeFenced"),t(d)}function S(d,D,j){let q=0;return C;function C(B){return d.enter("lineEnding"),d.consume(B),d.exit("lineEnding"),I}function I(B){return d.enter("codeFencedFence"),Q(B)?G(d,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===o?(d.enter("codeFencedFenceSequence"),$(B)):j(B)}function $(B){return B===o?(q++,d.consume(B),$):q>=i?(d.exit("codeFencedFenceSequence"),Q(B)?G(d,Z,"whitespace")(B):Z(B)):j(B)}function Z(B){return B===null||V(B)?(d.exit("codeFencedFence"),D(B)):j(B)}}}function Zu(e,t,a){const r=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}const Za={name:"codeIndented",tokenize:tl},el={tokenize:al,partial:!0};function tl(e,t,a){const r=this;return n;function n(f){return e.enter("codeIndented"),G(e,s,"linePrefix",5)(f)}function s(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(f):a(f)}function i(f){return f===null?u(f):V(f)?e.attempt(el,i,u)(f):(e.enter("codeFlowValue"),o(f))}function o(f){return f===null||V(f)?(e.exit("codeFlowValue"),i(f)):(e.consume(f),o)}function u(f){return e.exit("codeIndented"),t(f)}}function al(e,t,a){const r=this;return n;function n(i){return r.parser.lazy[r.now().line]?a(i):V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):G(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):V(i)?n(i):a(i)}}const rl={name:"codeText",tokenize:sl,resolve:nl,previous:il};function nl(e){let t=e.length-4,a=3,r,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=a;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,a,r){const n=a||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&Lt(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Lt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Lt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(i):e.interrupt(r.parser.constructs.flow,a,t)(i)}}function us(e,t,a,r,n,s,i,o,u){const f=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(n),e.enter(s),e.consume(T),e.exit(s),l):T===null||T===32||T===41||ya(T)?a(T):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function l(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(n),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),_(T))}function _(T){return T===62?(e.exit("chunkString"),e.exit(o),l(T)):T===null||T===60||V(T)?a(T):(e.consume(T),T===92?y:_)}function y(T){return T===60||T===62||T===92?(e.consume(T),_):_(T)}function b(T){return!p&&(T===null||T===41||ee(T))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(T)):p999||_===null||_===91||_===93&&!u||_===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?a(_):_===93?(e.exit(s),e.enter(n),e.consume(_),e.exit(n),e.exit(r),t):V(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(_))}function h(_){return _===null||_===91||_===93||V(_)||o++>999?(e.exit("chunkString"),p(_)):(e.consume(_),u||(u=!Q(_)),_===92?l:h)}function l(_){return _===91||_===92||_===93?(e.consume(_),o++,h):h(_)}}function fs(e,t,a,r,n,s){let i;return o;function o(l){return l===34||l===39||l===40?(e.enter(r),e.enter(n),e.consume(l),e.exit(n),i=l===40?41:l,u):a(l)}function u(l){return l===i?(e.enter(n),e.consume(l),e.exit(n),e.exit(r),t):(e.enter(s),f(l))}function f(l){return l===i?(e.exit(s),u(i)):l===null?a(l):V(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),G(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(l))}function p(l){return l===i||l===null||V(l)?(e.exit("chunkString"),f(l)):(e.consume(l),l===92?h:p)}function h(l){return l===i||l===92?(e.consume(l),p):p(l)}}function ve(e,t){let a;return r;function r(n){return V(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,r):Q(n)?G(e,r,a?"linePrefix":"lineSuffix")(n):t(n)}}const pl={name:"definition",tokenize:ml},_l={tokenize:gl,partial:!0};function ml(e,t,a){const r=this;let n;return s;function s(_){return e.enter("definition"),i(_)}function i(_){return ls.call(r,e,o,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function o(_){return n=Oe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),u):a(_)}function u(_){return ee(_)?ve(e,f)(_):f(_)}function f(_){return us(e,p,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function p(_){return e.attempt(_l,h,h)(_)}function h(_){return Q(_)?G(e,l,"whitespace")(_):l(_)}function l(_){return _===null||V(_)?(e.exit("definition"),r.parser.defined.push(n),t(_)):a(_)}}function gl(e,t,a){return r;function r(o){return ee(o)?ve(e,n)(o):a(o)}function n(o){return fs(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Q(o)?G(e,i,"whitespace")(o):i(o)}function i(o){return o===null||V(o)?t(o):a(o)}}const yl={name:"hardBreakEscape",tokenize:kl};function kl(e,t,a){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return V(s)?(e.exit("hardBreakEscape"),t(s)):a(s)}}const bl={name:"headingAtx",tokenize:El,resolve:wl};function wl(e,t){let a=e.length-2,r=3,n,s;return e[r][1].type==="whitespace"&&(r+=2),a-2>r&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&e[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(n={type:"atxHeadingText",start:e[r][1].start,end:e[a][1].end},s={type:"chunkText",start:e[r][1].start,end:e[a][1].end,contentType:"text"},ze(e,r,a-r+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function El(e,t,a){let r=0;return n;function n(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||ee(p)?(e.exit("atxHeadingSequence"),o(p)):a(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||V(p)?(e.exit("atxHeading"),t(p)):Q(p)?G(e,o,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function f(p){return p===null||p===35||ee(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),f)}}const Tl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yn=["pre","script","style","textarea"],Al={name:"htmlFlow",tokenize:zl,resolveTo:xl,concrete:!0},Cl={tokenize:Nl,partial:!0},Dl={tokenize:Il,partial:!0};function xl(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zl(e,t,a){const r=this;let n,s,i,o,u;return f;function f(E){return p(E)}function p(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),l):E===47?(e.consume(E),s=!0,b):E===63?(e.consume(E),n=3,r.interrupt?t:w):fe(E)?(e.consume(E),i=String.fromCharCode(E),z):a(E)}function l(E){return E===45?(e.consume(E),n=2,_):E===91?(e.consume(E),n=5,o=0,y):fe(E)?(e.consume(E),n=4,r.interrupt?t:w):a(E)}function _(E){return E===45?(e.consume(E),r.interrupt?t:w):a(E)}function y(E){const Ie="CDATA[";return E===Ie.charCodeAt(o++)?(e.consume(E),o===Ie.length?r.interrupt?t:P:y):a(E)}function b(E){return fe(E)?(e.consume(E),i=String.fromCharCode(E),z):a(E)}function z(E){if(E===null||E===47||E===62||ee(E)){const Ie=E===47,rt=i.toLowerCase();return!Ie&&!s&&Yn.includes(rt)?(n=1,r.interrupt?t(E):P(E)):Tl.includes(i.toLowerCase())?(n=6,Ie?(e.consume(E),T):r.interrupt?t(E):P(E)):(n=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(E):s?N(E):O(E))}return E===45||ue(E)?(e.consume(E),i+=String.fromCharCode(E),z):a(E)}function T(E){return E===62?(e.consume(E),r.interrupt?t:P):a(E)}function N(E){return Q(E)?(e.consume(E),N):C(E)}function O(E){return E===47?(e.consume(E),C):E===58||E===95||fe(E)?(e.consume(E),M):Q(E)?(e.consume(E),O):C(E)}function M(E){return E===45||E===46||E===58||E===95||ue(E)?(e.consume(E),M):S(E)}function S(E){return E===61?(e.consume(E),d):Q(E)?(e.consume(E),S):O(E)}function d(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(e.consume(E),u=E,D):Q(E)?(e.consume(E),d):j(E)}function D(E){return E===u?(e.consume(E),u=null,q):E===null||V(E)?a(E):(e.consume(E),D)}function j(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ee(E)?S(E):(e.consume(E),j)}function q(E){return E===47||E===62||Q(E)?O(E):a(E)}function C(E){return E===62?(e.consume(E),I):a(E)}function I(E){return E===null||V(E)?P(E):Q(E)?(e.consume(E),I):a(E)}function P(E){return E===45&&n===2?(e.consume(E),Y):E===60&&n===1?(e.consume(E),A):E===62&&n===4?(e.consume(E),ye):E===63&&n===3?(e.consume(E),w):E===93&&n===5?(e.consume(E),ae):V(E)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Cl,De,$)(E)):E===null||V(E)?(e.exit("htmlFlowData"),$(E)):(e.consume(E),P)}function $(E){return e.check(Dl,Z,De)(E)}function Z(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),B}function B(E){return E===null||V(E)?$(E):(e.enter("htmlFlowData"),P(E))}function Y(E){return E===45?(e.consume(E),w):P(E)}function A(E){return E===47?(e.consume(E),i="",X):P(E)}function X(E){if(E===62){const Ie=i.toLowerCase();return Yn.includes(Ie)?(e.consume(E),ye):P(E)}return fe(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),X):P(E)}function ae(E){return E===93?(e.consume(E),w):P(E)}function w(E){return E===62?(e.consume(E),ye):E===45&&n===2?(e.consume(E),w):P(E)}function ye(E){return E===null||V(E)?(e.exit("htmlFlowData"),De(E)):(e.consume(E),ye)}function De(E){return e.exit("htmlFlow"),t(E)}}function Il(e,t,a){const r=this;return n;function n(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):a(i)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}function Nl(e,t,a){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ra,t,a)}}const Sl={name:"htmlText",tokenize:Fl};function Fl(e,t,a){const r=this;let n,s,i;return o;function o(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),f):w===47?(e.consume(w),S):w===63?(e.consume(w),O):fe(w)?(e.consume(w),j):a(w)}function f(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),s=0,y):fe(w)?(e.consume(w),N):a(w)}function p(w){return w===45?(e.consume(w),_):a(w)}function h(w){return w===null?a(w):w===45?(e.consume(w),l):V(w)?(i=h,A(w)):(e.consume(w),h)}function l(w){return w===45?(e.consume(w),_):h(w)}function _(w){return w===62?Y(w):w===45?l(w):h(w)}function y(w){const ye="CDATA[";return w===ye.charCodeAt(s++)?(e.consume(w),s===ye.length?b:y):a(w)}function b(w){return w===null?a(w):w===93?(e.consume(w),z):V(w)?(i=b,A(w)):(e.consume(w),b)}function z(w){return w===93?(e.consume(w),T):b(w)}function T(w){return w===62?Y(w):w===93?(e.consume(w),T):b(w)}function N(w){return w===null||w===62?Y(w):V(w)?(i=N,A(w)):(e.consume(w),N)}function O(w){return w===null?a(w):w===63?(e.consume(w),M):V(w)?(i=O,A(w)):(e.consume(w),O)}function M(w){return w===62?Y(w):O(w)}function S(w){return fe(w)?(e.consume(w),d):a(w)}function d(w){return w===45||ue(w)?(e.consume(w),d):D(w)}function D(w){return V(w)?(i=D,A(w)):Q(w)?(e.consume(w),D):Y(w)}function j(w){return w===45||ue(w)?(e.consume(w),j):w===47||w===62||ee(w)?q(w):a(w)}function q(w){return w===47?(e.consume(w),Y):w===58||w===95||fe(w)?(e.consume(w),C):V(w)?(i=q,A(w)):Q(w)?(e.consume(w),q):Y(w)}function C(w){return w===45||w===46||w===58||w===95||ue(w)?(e.consume(w),C):I(w)}function I(w){return w===61?(e.consume(w),P):V(w)?(i=I,A(w)):Q(w)?(e.consume(w),I):q(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),n=w,$):V(w)?(i=P,A(w)):Q(w)?(e.consume(w),P):(e.consume(w),Z)}function $(w){return w===n?(e.consume(w),n=void 0,B):w===null?a(w):V(w)?(i=$,A(w)):(e.consume(w),$)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||ee(w)?q(w):(e.consume(w),Z)}function B(w){return w===47||w===62||ee(w)?q(w):a(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):a(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return Q(w)?G(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ae(w)}function ae(w){return e.enter("htmlTextData"),i(w)}}const Yr={name:"labelEnd",tokenize:Pl,resolveTo:Bl,resolveAll:vl},Ol={tokenize:Ml},Ll={tokenize:Hl},Rl={tokenize:Ul};function vl(e){let t=-1;for(;++t=3&&(f===null||V(f))?(e.exit("thematicBreak"),t(f)):a(f)}function u(f){return f===n?(e.consume(f),r++,u):(e.exit("thematicBreakSequence"),Q(f)?G(e,o,"whitespace")(f):o(f))}}const we={name:"list",tokenize:Xl,continuation:{tokenize:Kl},exit:Zl},$l={tokenize:ef,partial:!0},Ql={tokenize:Jl,partial:!0};function Xl(e,t,a){const r=this,n=r.events[r.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return o;function o(_){const y=r.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||_===r.containerState.marker:kr(_)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(_a,a,f)(_):f(_);if(!r.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(_)}return a(_)}function u(_){return kr(_)&&++i<10?(e.consume(_),u):(!r.interrupt||i<2)&&(r.containerState.marker?_===r.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),f(_)):a(_)}function f(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||_,e.check(ra,r.interrupt?a:p,e.attempt($l,l,h))}function p(_){return r.containerState.initialBlankLine=!0,s++,l(_)}function h(_){return Q(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),l):a(_)}function l(_){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function Kl(e,t,a){const r=this;return r.containerState._closeFlow=void 0,e.check(ra,n,s);function n(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Q(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ql,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(we,t,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Jl(e,t,a){const r=this;return G(e,n,"listItemIndent",r.containerState.size+1);function n(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):a(s)}}function Zl(e){e.exit(this.containerState.type)}function ef(e,t,a){const r=this;return G(e,n,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const i=r.events[r.events.length-1];return!Q(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):a(s)}}const Vn={name:"setextUnderline",tokenize:af,resolveTo:tf};function tf(e,t){let a=e.length,r,n,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){r=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function af(e,t,a){const r=this;let n;return s;function s(f){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),n=f,i(f)):a(f)}function i(f){return e.enter("setextHeadingLineSequence"),o(f)}function o(f){return f===n?(e.consume(f),o):(e.exit("setextHeadingLineSequence"),Q(f)?G(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||V(f)?(e.exit("setextHeadingLine"),t(f)):a(f)}}const rf={tokenize:nf};function nf(e){const t=this,a=e.attempt(ra,r,e.attempt(this.parser.constructs.flowInitial,n,G(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ul,n)),"linePrefix")));return a;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const sf={resolveAll:ds()},of=hs("string"),cf=hs("text");function hs(e){return{tokenize:t,resolveAll:ds(e==="text"?uf:void 0)};function t(a){const r=this,n=this.parser.constructs[e],s=a.attempt(n,i,o);return i;function i(p){return f(p)?s(p):o(p)}function o(p){if(p===null){a.consume(p);return}return a.enter("data"),a.consume(p),u}function u(p){return f(p)?(a.exit("data"),s(p)):(a.consume(p),u)}function f(p){if(p===null)return!0;const h=n[p];let l=-1;if(h)for(;++l-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}function hf(e,t){let a=-1;const r=[];let n;for(;++a0){const Ne=K.tokenStack[K.tokenStack.length-1];(Ne[1]||Gn).call(K,void 0,Ne[0])}for(U.position={start:Xe(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Xe(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re{const a=x;return o(),s("button",{key:0,class:"button primary",onClick:t[0]||(t[0]=k=>p(e)())},[d(" Connect Wallet "),c("div",v,[i(a)])])}}}),B=n(w,[["__scopeId","data-v-71d743f9"]]);export{B as _}; +import{_ as n,o,c as s,a as c,g as r,u as l,d,b as i,k as p}from"./DRzdypsL.js";const u={},f={width:"14",height:"15",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},m=c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.34098 0.5L12.7385 6.22542L12.7391 6.22474L13.998 7.5601L13.9973 7.56078L14 7.56362L12.7411 8.89898L12.7385 8.89614L7.33895 14.6237L6.08008 13.2884L10.6131 8.47991H0V6.64471H10.616L6.08211 1.83536L7.34098 0.5Z"},null,-1),L=[m];function h(_,e){return o(),s("svg",f,L)}const x=n(u,[["render",h]]),v={class:"circle"},w=r({__name:"ConnectWallet",setup(_){const{connectWallet:e}=l();return(g,t)=>{const a=x;return o(),s("button",{key:0,class:"button primary",onClick:t[0]||(t[0]=k=>p(e)())},[d(" Connect Wallet "),c("div",v,[i(a)])])}}}),B=n(w,[["__scopeId","data-v-71d743f9"]]);export{B as _}; diff --git a/_nuxt/DNgSKQ__.js b/_nuxt/nLZ1R_uv.js similarity index 99% rename from _nuxt/DNgSKQ__.js rename to _nuxt/nLZ1R_uv.js index 1054187d..88362fef 100644 --- a/_nuxt/DNgSKQ__.js +++ b/_nuxt/nLZ1R_uv.js @@ -1,3 +1,3 @@ -import{r as R,al as z,aj as N,a2 as D,av as K,au as q,L as V,C as T}from"./Bk7_z8zR.js";const v=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function J(r,i){if(typeof r!="string")throw new TypeError("argument str must be a string");const n={},t=(i||{}).decode||Y;let o=0;for(;o{i+=t};return{toString(){return i},getContext(){return n},dispatch(t){return r.replacer&&(t=r.replacer(t)),this[t===null?"null":typeof t](t)},object(t){if(t&&typeof t.toJSON=="function")return this.object(t.toJSON());const o=Object.prototype.toString.call(t);let s="";const a=o.length;a<10?s="unknown:["+o+"]":s=o.slice(8,a-1),s=s.toLowerCase();let c=null;if((c=n.get(t))===void 0)n.set(t,n.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(t))return e("buffer:"),e(t.toString("utf8"));if(s!=="object"&&s!=="function"&&s!=="asyncfunction")this[s]?this[s](t):r.ignoreUnknown||this.unkown(t,s);else{let u=Object.keys(t);r.unorderedObjects&&(u=u.sort());let f=[];r.respectType!==!1&&!E(t)&&(f=G),r.excludeKeys&&(u=u.filter(l=>!r.excludeKeys(l)),f=f.filter(l=>!r.excludeKeys(l))),e("object:"+(u.length+f.length)+":");const h=l=>{this.dispatch(l),e(":"),r.excludeValues||this.dispatch(t[l]),e(",")};for(const l of u)h(l);for(const l of f)h(l)}},array(t,o){if(o=o===void 0?r.unorderedArrays!==!1:o,e("array:"+t.length+":"),!o||t.length<=1){for(const c of t)this.dispatch(c);return}const s=new Map,a=t.map(c=>{const u=I(r);u.dispatch(c);for(const[f,h]of u.getContext())s.set(f,h);return u.toString()});return n=s,a.sort(),this.array(a,!1)},date(t){return e("date:"+t.toJSON())},symbol(t){return e("symbol:"+t.toString())},unkown(t,o){if(e(o),!!t&&(e(":"),t&&typeof t.entries=="function"))return this.array(Array.from(t.entries()),!0)},error(t){return e("error:"+t.toString())},boolean(t){return e("bool:"+t)},string(t){e("string:"+t.length+":"),e(t)},function(t){e("fn:"),E(t)?this.dispatch("[native]"):this.dispatch(t.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),r.respectFunctionProperties&&this.object(t)},number(t){return e("number:"+t)},xml(t){return e("xml:"+t.toString())},null(){return e("Null")},undefined(){return e("Undefined")},regexp(t){return e("regex:"+t.toString())},uint8array(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},uint8clampedarray(t){return e("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},int8array(t){return e("int8array:"),this.dispatch(Array.prototype.slice.call(t))},uint16array(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},int16array(t){return e("int16array:"),this.dispatch(Array.prototype.slice.call(t))},uint32array(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},int32array(t){return e("int32array:"),this.dispatch(Array.prototype.slice.call(t))},float32array(t){return e("float32array:"),this.dispatch(Array.prototype.slice.call(t))},float64array(t){return e("float64array:"),this.dispatch(Array.prototype.slice.call(t))},arraybuffer(t){return e("arraybuffer:"),this.dispatch(new Uint8Array(t))},url(t){return e("url:"+t.toString())},map(t){e("map:");const o=[...t];return this.array(o,r.unorderedSets!==!1)},set(t){e("set:");const o=[...t];return this.array(o,r.unorderedSets!==!1)},file(t){return e("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},blob(){if(r.ignoreUnknown)return e("[blob]");throw new Error(`Hashing Blob objects is currently not supported +import{r as R,al as z,aj as N,a2 as D,av as K,au as q,L as V,C as T}from"./DRzdypsL.js";const v=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function J(r,i){if(typeof r!="string")throw new TypeError("argument str must be a string");const n={},t=(i||{}).decode||Y;let o=0;for(;o{i+=t};return{toString(){return i},getContext(){return n},dispatch(t){return r.replacer&&(t=r.replacer(t)),this[t===null?"null":typeof t](t)},object(t){if(t&&typeof t.toJSON=="function")return this.object(t.toJSON());const o=Object.prototype.toString.call(t);let s="";const a=o.length;a<10?s="unknown:["+o+"]":s=o.slice(8,a-1),s=s.toLowerCase();let c=null;if((c=n.get(t))===void 0)n.set(t,n.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(t))return e("buffer:"),e(t.toString("utf8"));if(s!=="object"&&s!=="function"&&s!=="asyncfunction")this[s]?this[s](t):r.ignoreUnknown||this.unkown(t,s);else{let u=Object.keys(t);r.unorderedObjects&&(u=u.sort());let f=[];r.respectType!==!1&&!E(t)&&(f=G),r.excludeKeys&&(u=u.filter(l=>!r.excludeKeys(l)),f=f.filter(l=>!r.excludeKeys(l))),e("object:"+(u.length+f.length)+":");const h=l=>{this.dispatch(l),e(":"),r.excludeValues||this.dispatch(t[l]),e(",")};for(const l of u)h(l);for(const l of f)h(l)}},array(t,o){if(o=o===void 0?r.unorderedArrays!==!1:o,e("array:"+t.length+":"),!o||t.length<=1){for(const c of t)this.dispatch(c);return}const s=new Map,a=t.map(c=>{const u=I(r);u.dispatch(c);for(const[f,h]of u.getContext())s.set(f,h);return u.toString()});return n=s,a.sort(),this.array(a,!1)},date(t){return e("date:"+t.toJSON())},symbol(t){return e("symbol:"+t.toString())},unkown(t,o){if(e(o),!!t&&(e(":"),t&&typeof t.entries=="function"))return this.array(Array.from(t.entries()),!0)},error(t){return e("error:"+t.toString())},boolean(t){return e("bool:"+t)},string(t){e("string:"+t.length+":"),e(t)},function(t){e("fn:"),E(t)?this.dispatch("[native]"):this.dispatch(t.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),r.respectFunctionProperties&&this.object(t)},number(t){return e("number:"+t)},xml(t){return e("xml:"+t.toString())},null(){return e("Null")},undefined(){return e("Undefined")},regexp(t){return e("regex:"+t.toString())},uint8array(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},uint8clampedarray(t){return e("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},int8array(t){return e("int8array:"),this.dispatch(Array.prototype.slice.call(t))},uint16array(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},int16array(t){return e("int16array:"),this.dispatch(Array.prototype.slice.call(t))},uint32array(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},int32array(t){return e("int32array:"),this.dispatch(Array.prototype.slice.call(t))},float32array(t){return e("float32array:"),this.dispatch(Array.prototype.slice.call(t))},float64array(t){return e("float64array:"),this.dispatch(Array.prototype.slice.call(t))},arraybuffer(t){return e("arraybuffer:"),this.dispatch(new Uint8Array(t))},url(t){return e("url:"+t.toString())},map(t){e("map:");const o=[...t];return this.array(o,r.unorderedSets!==!1)},set(t){e("set:");const o=[...t];return this.array(o,r.unorderedSets!==!1)},file(t){return e("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},blob(){if(r.ignoreUnknown)return e("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return e("domwindow")},bigint(t){return e("bigint:"+t.toString())},process(){return e("process")},timer(){return e("timer")},pipe(){return e("pipe")},tcp(){return e("tcp")},udp(){return e("udp")},tty(){return e("tty")},statwatcher(){return e("statwatcher")},securecontext(){return e("securecontext")},connection(){return e("connection")},zlib(){return e("zlib")},context(){return e("context")},nodescript(){return e("nodescript")},httpparser(){return e("httpparser")},dataview(){return e("dataview")},signal(){return e("signal")},fsevent(){return e("fsevent")},tlswrap(){return e("tlswrap")}}}const M="[native code] }",Q=M.length;function E(r){return typeof r!="function"?!1:Function.prototype.toString.call(r).slice(-Q)===M}class y{constructor(i,n){i=this.words=i||[],this.sigBytes=n===void 0?i.length*4:n}toString(i){return(i||Z).stringify(this)}concat(i){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=e<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=i.words[n>>>2];return this.sigBytes+=i.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new y([...this.words])}}const Z={stringify(r){const i=[];for(let n=0;n>>2]>>>24-n%4*8&255;i.push((e>>>4).toString(16),(e&15).toString(16))}return i.join("")}},ee={stringify(r){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let e=0;e>>2]>>>24-e%4*8&255,o=r.words[e+1>>>2]>>>24-(e+1)%4*8&255,s=r.words[e+2>>>2]>>>24-(e+2)%4*8&255,a=t<<16|o<<8|s;for(let c=0;c<4&&e*8+c*6>>6*(3-c)&63))}return n.join("")}},te={parse(r){const i=r.length,n=[];for(let e=0;e>>2]|=(r.charCodeAt(e)&255)<<24-e%4*8;return new y(n,i)}},re={parse(r){return te.parse(unescape(encodeURIComponent(r)))}};class ne{constructor(){this._data=new y,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new y,this._nDataBytes=0}_append(i){typeof i=="string"&&(i=re.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes}_doProcessBlock(i,n){}_process(i){let n,e=this._data.sigBytes/(this.blockSize*4);i?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const t=e*this.blockSize,o=Math.min(t*4,this._data.sigBytes);if(t){for(let s=0;s>>7)^(b<<14|b>>>18)^b>>>3,S=g[l-2],H=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[l]=F+g[l-7]+H+g[l-16]}const d=c&u^~c&f,w=t&o^t&s^o&s,m=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),U=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),x=h+U+d+se[l]+g[l],L=m+w;h=f,f=u,u=c,c=a+x|0,a=s,s=o,o=t,t=x+L|0}e[0]=e[0]+t|0,e[1]=e[1]+o|0,e[2]=e[2]+s|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0,e[5]=e[5]+u|0,e[6]=e[6]+f|0,e[7]=e[7]+h|0}finalize(i){super.finalize(i);const n=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(e+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function ae(r){return new oe().finalize(r).toString(ee)}function de(r,i={}){const n=typeof r=="string"?r:_(r,i);return ae(n).slice(0,10)}function ce(r,i,n={}){return r===i||_(r,n)===_(i,n)}function p(r){if(typeof r!="object")return r;var i,n,e=Object.prototype.toString.call(r);if(e==="[object Object]"){if(r.constructor!==Object&&typeof r.constructor=="function"){n=new r.constructor;for(i in r)r.hasOwnProperty(i)&&n[i]!==r[i]&&(n[i]=p(r[i]))}else{n={};for(i in r)i==="__proto__"?Object.defineProperty(n,i,{value:p(r[i]),configurable:!0,enumerable:!0,writable:!0}):n[i]=p(r[i])}return n}if(e==="[object Array]"){for(i=r.length,n=Array(i);i--;)n[i]=p(r[i]);return n}return e==="[object Set]"?(n=new Set,r.forEach(function(t){n.add(p(t))}),n):e==="[object Map]"?(n=new Map,r.forEach(function(t,o){n.set(p(o),p(t))}),n):e==="[object Date]"?new Date(+r):e==="[object RegExp]"?(n=new RegExp(r.source,r.flags),n.lastIndex=r.lastIndex,n):e==="[object DataView]"?new r.constructor(p(r.buffer)):e==="[object ArrayBuffer]"?r.slice(0):e.slice(-6)==="Array]"?new r.constructor(r):r}const ue={path:"/",watch:!0,decode:r=>q(decodeURIComponent(r)),encode:r=>encodeURIComponent(typeof r=="string"?r:JSON.stringify(r))},k=window.cookieStore;function B(r,i){var c;const n={...ue,...i},e=O(n)||{};let t;n.maxAge!==void 0?t=n.maxAge*1e3:n.expires&&(t=n.expires.getTime()-Date.now());const o=t!==void 0&&t<=0,s=p(o?void 0:e[r]??((c=n.default)==null?void 0:c.call(n))),a=t&&!o?he(s,t,n.watch&&n.watch!=="shallow"):R(s);{let u=null;try{!k&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${r}`))}catch{}const f=()=>{n.readonly||ce(a.value,e[r])||(fe(r,a.value,n),e[r]=p(a.value),u==null||u.postMessage({value:n.encode(a.value)}))},h=d=>{var m;const w=d.refresh?(m=O(n))==null?void 0:m[r]:n.decode(d.value);l=!0,e[r]=a.value=w,V(()=>{l=!1})};let l=!1;z()&&N(()=>{l=!0,f(),u==null||u.close()}),k?k.onchange=d=>{const w=d.changed.find(m=>m.name===r);w&&h({value:w.value})}:u&&(u.onmessage=({data:d})=>h(d)),n.watch?D(a,()=>{l||f()},{deep:n.watch!=="shallow"}):f()}return a}function O(r={}){return J(document.cookie,r)}function le(r,i,n={}){return i==null?C(r,i,{...n,maxAge:-1}):C(r,i,n)}function fe(r,i,n={}){document.cookie=le(r,i,n)}const P=2147483647;function he(r,i,n){let e,t,o=0;const s=n?R(r):{value:r};return z()&&N(()=>{t==null||t(),clearTimeout(e)}),K((a,c)=>{n&&(t=D(s,c));function u(){o=0,clearTimeout(e);const f=i-o,h=f{if(o+=h,o({isEnabled:()=>{const e=T().query;return Object.prototype.hasOwnProperty.call(e,"preview")&&!e.preview?!1:!!(e.preview||B("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>B("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:e=>{B("previewToken").value=e,T().query.preview=e||"",e?sessionStorage.setItem("previewToken",e):sessionStorage.removeItem("previewToken"),window.location.reload()}});export{de as h,ye as u}; diff --git a/_nuxt/ABQydVn7.js b/_nuxt/qURTcPoC.js similarity index 77% rename from _nuxt/ABQydVn7.js rename to _nuxt/qURTcPoC.js index d1c47771..d46fa775 100644 --- a/_nuxt/ABQydVn7.js +++ b/_nuxt/qURTcPoC.js @@ -1 +1 @@ -import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./Bk7_z8zR.js";const l=["id"],d=["href"],_=p({__name:"ProseH3",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h3))});return(e,k)=>(t(),s("h3",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./DRzdypsL.js";const l=["id"],d=["href"],_=p({__name:"ProseH3",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h3))});return(e,k)=>(t(),s("h3",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/9O8xrwna.js b/_nuxt/tIiR6N12.js similarity index 87% rename from _nuxt/9O8xrwna.js rename to _nuxt/tIiR6N12.js index 2c6360e0..16bae1a0 100644 --- a/_nuxt/9O8xrwna.js +++ b/_nuxt/tIiR6N12.js @@ -1 +1 @@ -import{k as a,a2 as w,C as y,L as D,x as g,g as H,a3 as x,a4 as S,a5 as u}from"./Bk7_z8zR.js";import{u as b}from"./DAvJvj7x.js";import k from"./BC4ZBaMa.js";import q from"./DXM240z2.js";import"./BZpomPOF.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./DNgSKQ__.js";import"./DIqeZryz.js";const d=(p,s=y())=>{const e=a(p),f=g();w(()=>a(p),(n=e)=>{if(!s.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),D(()=>b(t))},{immediate:!0})},j=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(p){const{contentHead:s}=g().public.content,e=x(),{tag:f,excerpt:m,path:n,query:t,head:r}=p,c=r===void 0?s:r,l={...t||{},path:n||(t==null?void 0:t.path)||S(y().path),find:"one"},C=(o,i)=>u("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return u(q,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:v})=>{var h;return c&&d(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:v,excerpt:m,...this.$attrs})}:({data:o})=>(c&&d(o),u(k,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):C("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||u("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||u("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),L=j;export{L as default}; +import{k as a,a2 as w,C as y,L as D,x as g,g as H,a3 as x,a4 as S,a5 as u}from"./DRzdypsL.js";import{u as b}from"./BcFUG_ju.js";import k from"./B_7H3lrK.js";import q from"./DYgeqj2A.js";import"./CbSZFrki.js";import"./C-v3KzvZ.js";import"./BneCoJRQ.js";import"./nLZ1R_uv.js";import"./vCcY93uT.js";const d=(p,s=y())=>{const e=a(p),f=g();w(()=>a(p),(n=e)=>{if(!s.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),D(()=>b(t))},{immediate:!0})},j=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(p){const{contentHead:s}=g().public.content,e=x(),{tag:f,excerpt:m,path:n,query:t,head:r}=p,c=r===void 0?s:r,l={...t||{},path:n||(t==null?void 0:t.path)||S(y().path),find:"one"},C=(o,i)=>u("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return u(q,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:v})=>{var h;return c&&d(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:v,excerpt:m,...this.$attrs})}:({data:o})=>(c&&d(o),u(k,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):C("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||u("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||u("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),L=j;export{L as default}; diff --git a/_nuxt/JUdSmwzW.js b/_nuxt/u30xRvTG.js similarity index 77% rename from _nuxt/JUdSmwzW.js rename to _nuxt/u30xRvTG.js index ce29ec22..847599d1 100644 --- a/_nuxt/JUdSmwzW.js +++ b/_nuxt/u30xRvTG.js @@ -1 +1 @@ -import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./Bk7_z8zR.js";const l=["id"],d=["href"],_=p({__name:"ProseH4",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h4))});return(e,k)=>(t(),s("h4",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{g as p,x as f,M as i,o as t,c as s,k as u,G as n}from"./DRzdypsL.js";const l=["id"],d=["href"],_=p({__name:"ProseH4",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h4))});return(e,k)=>(t(),s("h4",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/DIqeZryz.js b/_nuxt/vCcY93uT.js similarity index 95% rename from _nuxt/DIqeZryz.js rename to _nuxt/vCcY93uT.js index e72f8052..37dd445a 100644 --- a/_nuxt/DIqeZryz.js +++ b/_nuxt/vCcY93uT.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./CFT4hcsC.js","./Bk7_z8zR.js","./entry.4rgfqAsO.css","./JiFQw_g2.js","./C-v3KzvZ.js","./DNgSKQ__.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{ae as T,af as m,r as D,ag as j,ah as L,a8 as q,ai as I,Y as F,a2 as M,aj as b,ak as Q,k as V,al as k,am as z,x as w,an as H,ao as K,ap as N,z as U}from"./Bk7_z8zR.js";import{u as S,h as $}from"./DNgSKQ__.js";const A=e=>e==="defer"||e===!1;function ne(...e){var C;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[a,i,n={}]=e;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof i!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=T(),r=i,u=()=>m.value,l=()=>s.isHydrating?s.payload.data[a]:s.static.data[a];n.server=n.server??!0,n.default=n.default??u,n.getCachedData=n.getCachedData??l,n.lazy=n.lazy??!1,n.immediate=n.immediate??!0,n.deep=n.deep??m.deep,n.dedupe=n.dedupe??"cancel";const p=()=>n.getCachedData(a,s)!=null;if(!s._asyncData[a]||!n.immediate){(C=s.payload._errors)[a]??(C[a]=m.errorValue);const f=n.deep?D:j;s._asyncData[a]={data:f(n.getCachedData(a,s)??n.default()),pending:D(!p()),error:L(s.payload._errors,a),status:D("idle"),_default:n.default}}const o={...s._asyncData[a]};delete o._default,o.refresh=o.execute=(f={})=>{if(s._asyncDataPromises[a]){if(A(f.dedupe??n.dedupe))return s._asyncDataPromises[a];s._asyncDataPromises[a].cancelled=!0}if((f._initial||s.isHydrating&&f._initial!==!1)&&p())return Promise.resolve(n.getCachedData(a,s));o.pending.value=!0,o.status.value="pending";const y=new Promise((h,c)=>{try{h(r(s))}catch(_){c(_)}}).then(async h=>{if(y.cancelled)return s._asyncDataPromises[a];let c=h;n.transform&&(c=await n.transform(h)),n.pick&&(c=W(c,n.pick)),s.payload.data[a]=c,o.data.value=c,o.error.value=m.errorValue,o.status.value="success"}).catch(h=>{if(y.cancelled)return s._asyncDataPromises[a];o.error.value=Q(h),o.data.value=V(n.default()),o.status.value="error"}).finally(()=>{y.cancelled||(o.pending.value=!1,delete s._asyncDataPromises[a])});return s._asyncDataPromises[a]=y,s._asyncDataPromises[a]},o.clear=()=>G(s,a);const g=()=>o.refresh({_initial:!0}),x=n.server!==!1&&s.payload.serverRendered;{const f=q();if(f&&!f._nuxtOnBeforeMountCbs){f._nuxtOnBeforeMountCbs=[];const c=f._nuxtOnBeforeMountCbs;I(()=>{c.forEach(_=>{_()}),c.splice(0,c.length)}),F(()=>c.splice(0,c.length))}x&&s.isHydrating&&(o.error.value||p())?(o.pending.value=!1,o.status.value=o.error.value?"error":"success"):f&&(s.payload.serverRendered&&s.isHydrating||n.lazy)&&n.immediate?f._nuxtOnBeforeMountCbs.push(g):n.immediate&&g();const y=k();if(n.watch){const c=M(n.watch,()=>o.refresh());y&&b(c)}const h=s.hook("app:data:refresh",async c=>{(!c||c.includes(a))&&await o.refresh()});y&&b(h)}const P=Promise.resolve(s._asyncDataPromises[a]).then(()=>o);return Object.assign(P,o),P}function G(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=m.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=m.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t].cancelled=!0,e._asyncDataPromises[t]=void 0)}function W(e,t){const a={};for(const i of t)a[i]=e[i];return a}const E=(e,t)=>t.split(".").reduce((a,i)=>a&&a[i],e),v=(e,t)=>Object.keys(e).filter(t).reduce((a,i)=>Object.assign(a,{[i]:e[i]}),{}),se=e=>t=>e&&e.length?v(t,a=>!e.includes(a)):t,ie=e=>t=>Array.isArray(t)?t.map(a=>e(a)):e(t),B=e=>{const t=[],a=[];for(const i of e)["$","_"].includes(i)?t.push(i):a.push(i);return{prefixes:t,properties:a}},oe=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:a,properties:i}=B(e);return v(t,n=>!i.includes(n)&&!a.includes(n[0]))},ce=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:a,properties:i}=B(e);return v(t,n=>i.includes(n)||a.includes(n[0]))},ue=(e,t)=>{const a=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),i=Object.keys(t).filter(n=>!n.startsWith("$"));for(const n of i)e=e.sort((s,r)=>{const u=[E(s,n),E(r,n)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[n]===-1&&u.reverse(),a.compare(u[0],u[1])});return e},le=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},d=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],Y=["sort","where","only","without"];function J(e,t={}){const a={};for(const r of Object.keys(t.initialParams||{}))a[r]=Y.includes(r)?d(t.initialParams[r]):t.initialParams[r];const i=(r,u=l=>l)=>(...l)=>(a[r]=u(...l),s),n=r=>{var u;return t.legacy?r!=null&&r.surround?r.surround:r&&(r!=null&&r.dirConfig&&(r.result={_path:(u=r.dirConfig)==null?void 0:u._path,...r.result,_dir:r.dirConfig}),r!=null&&r._path||Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,"result")?r:r==null?void 0:r.result):r},s={params:()=>({...a,...a.where?{where:[...d(a.where)]}:{},...a.sort?{sort:[...d(a.sort)]}:{}}),only:i("only",d),without:i("without",d),where:i("where",r=>[...d(a.where),...d(r)]),sort:i("sort",r=>[...d(a.sort),...d(r)]),limit:i("limit",r=>parseInt(String(r),10)),skip:i("skip",r=>parseInt(String(r),10)),find:()=>e(s).then(n),findOne:()=>e(i("first")(!0)).then(n),count:()=>e(i("count")(!0)).then(n),locale:r=>s.where({_locale:r}),withSurround:i("surround",(r,u)=>({query:r,...u})),withDirConfig:()=>i("dirConfig")(!0)};return t.legacy&&(s.findSurround=(r,u)=>s.withSurround(r,u).find().then(n)),s}function R(e){return JSON.stringify(e,X)}function X(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const Z=e=>{let t=R(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},O=e=>z(e,w().public.content.api.baseURL),fe=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},ee=()=>{const{experimental:e}=w().public.content;return e.clientDB?!0:S().isEnabled()},te=()=>async e=>{const{content:t}=w().public,a=e.params(),i=t.experimental.stripQueryParameters?O(`/query/${`${$(a)}.${t.integrity}`}/${Z(a)}.json`):O(`/query/${$(a)}.${t.integrity}.json`);if(ee())return(await U(()=>import("./CFT4hcsC.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(r=>r.useContentDatabase())).fetch(e);const n=await $fetch(i,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:R(a),previewToken:S().getPreviewToken()}});if(typeof n=="string"&&n.startsWith(""))throw new Error("Not found");return n};function de(e,...t){const{content:a}=w().public,i=J(te(),{initialParams:typeof e!="string"?e:{},legacy:!0});let n;typeof e=="string"&&(n=H(K(e,...t)));const s=i.params;return i.params=()=>{var u,l,p;const r=s();return n&&(r.where=r.where||[],r.first&&(r.where||[]).length===0?r.where.push({_path:N(n)}):r.where.push({_path:new RegExp(`^${n.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(u=r.sort)!=null&&u.length||(r.sort=[{_stem:1,$numeric:!0}]),a.locales.length&&((p=(l=r.where)==null?void 0:l.find(g=>g._locale))!=null&&p._locale||(r.where=r.where||[],r.where.push({_locale:a.defaultLocale}))),r},i}export{ne as a,le as b,d as c,ue as d,Z as e,ie as f,E as g,oe as h,ce as i,R as j,J as k,se as o,de as q,ee as s,fe as u,O as w}; +const __vite__fileDeps=["./DhUbynuL.js","./DRzdypsL.js","./entry.4rgfqAsO.css","./BJOVPnNC.js","./C-v3KzvZ.js","./nLZ1R_uv.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{ae as T,af as m,r as D,ag as j,ah as L,a8 as q,ai as I,Y as F,a2 as M,aj as b,ak as Q,k as V,al as k,am as z,x as w,an as H,ao as K,ap as N,z as U}from"./DRzdypsL.js";import{u as S,h as $}from"./nLZ1R_uv.js";const A=e=>e==="defer"||e===!1;function ne(...e){var C;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[a,i,n={}]=e;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof i!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=T(),r=i,u=()=>m.value,l=()=>s.isHydrating?s.payload.data[a]:s.static.data[a];n.server=n.server??!0,n.default=n.default??u,n.getCachedData=n.getCachedData??l,n.lazy=n.lazy??!1,n.immediate=n.immediate??!0,n.deep=n.deep??m.deep,n.dedupe=n.dedupe??"cancel";const p=()=>n.getCachedData(a,s)!=null;if(!s._asyncData[a]||!n.immediate){(C=s.payload._errors)[a]??(C[a]=m.errorValue);const f=n.deep?D:j;s._asyncData[a]={data:f(n.getCachedData(a,s)??n.default()),pending:D(!p()),error:L(s.payload._errors,a),status:D("idle"),_default:n.default}}const o={...s._asyncData[a]};delete o._default,o.refresh=o.execute=(f={})=>{if(s._asyncDataPromises[a]){if(A(f.dedupe??n.dedupe))return s._asyncDataPromises[a];s._asyncDataPromises[a].cancelled=!0}if((f._initial||s.isHydrating&&f._initial!==!1)&&p())return Promise.resolve(n.getCachedData(a,s));o.pending.value=!0,o.status.value="pending";const y=new Promise((h,c)=>{try{h(r(s))}catch(_){c(_)}}).then(async h=>{if(y.cancelled)return s._asyncDataPromises[a];let c=h;n.transform&&(c=await n.transform(h)),n.pick&&(c=W(c,n.pick)),s.payload.data[a]=c,o.data.value=c,o.error.value=m.errorValue,o.status.value="success"}).catch(h=>{if(y.cancelled)return s._asyncDataPromises[a];o.error.value=Q(h),o.data.value=V(n.default()),o.status.value="error"}).finally(()=>{y.cancelled||(o.pending.value=!1,delete s._asyncDataPromises[a])});return s._asyncDataPromises[a]=y,s._asyncDataPromises[a]},o.clear=()=>G(s,a);const g=()=>o.refresh({_initial:!0}),x=n.server!==!1&&s.payload.serverRendered;{const f=q();if(f&&!f._nuxtOnBeforeMountCbs){f._nuxtOnBeforeMountCbs=[];const c=f._nuxtOnBeforeMountCbs;I(()=>{c.forEach(_=>{_()}),c.splice(0,c.length)}),F(()=>c.splice(0,c.length))}x&&s.isHydrating&&(o.error.value||p())?(o.pending.value=!1,o.status.value=o.error.value?"error":"success"):f&&(s.payload.serverRendered&&s.isHydrating||n.lazy)&&n.immediate?f._nuxtOnBeforeMountCbs.push(g):n.immediate&&g();const y=k();if(n.watch){const c=M(n.watch,()=>o.refresh());y&&b(c)}const h=s.hook("app:data:refresh",async c=>{(!c||c.includes(a))&&await o.refresh()});y&&b(h)}const P=Promise.resolve(s._asyncDataPromises[a]).then(()=>o);return Object.assign(P,o),P}function G(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=m.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=m.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t].cancelled=!0,e._asyncDataPromises[t]=void 0)}function W(e,t){const a={};for(const i of t)a[i]=e[i];return a}const E=(e,t)=>t.split(".").reduce((a,i)=>a&&a[i],e),v=(e,t)=>Object.keys(e).filter(t).reduce((a,i)=>Object.assign(a,{[i]:e[i]}),{}),se=e=>t=>e&&e.length?v(t,a=>!e.includes(a)):t,ie=e=>t=>Array.isArray(t)?t.map(a=>e(a)):e(t),B=e=>{const t=[],a=[];for(const i of e)["$","_"].includes(i)?t.push(i):a.push(i);return{prefixes:t,properties:a}},oe=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:a,properties:i}=B(e);return v(t,n=>!i.includes(n)&&!a.includes(n[0]))},ce=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:a,properties:i}=B(e);return v(t,n=>i.includes(n)||a.includes(n[0]))},ue=(e,t)=>{const a=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),i=Object.keys(t).filter(n=>!n.startsWith("$"));for(const n of i)e=e.sort((s,r)=>{const u=[E(s,n),E(r,n)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[n]===-1&&u.reverse(),a.compare(u[0],u[1])});return e},le=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},d=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],Y=["sort","where","only","without"];function J(e,t={}){const a={};for(const r of Object.keys(t.initialParams||{}))a[r]=Y.includes(r)?d(t.initialParams[r]):t.initialParams[r];const i=(r,u=l=>l)=>(...l)=>(a[r]=u(...l),s),n=r=>{var u;return t.legacy?r!=null&&r.surround?r.surround:r&&(r!=null&&r.dirConfig&&(r.result={_path:(u=r.dirConfig)==null?void 0:u._path,...r.result,_dir:r.dirConfig}),r!=null&&r._path||Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,"result")?r:r==null?void 0:r.result):r},s={params:()=>({...a,...a.where?{where:[...d(a.where)]}:{},...a.sort?{sort:[...d(a.sort)]}:{}}),only:i("only",d),without:i("without",d),where:i("where",r=>[...d(a.where),...d(r)]),sort:i("sort",r=>[...d(a.sort),...d(r)]),limit:i("limit",r=>parseInt(String(r),10)),skip:i("skip",r=>parseInt(String(r),10)),find:()=>e(s).then(n),findOne:()=>e(i("first")(!0)).then(n),count:()=>e(i("count")(!0)).then(n),locale:r=>s.where({_locale:r}),withSurround:i("surround",(r,u)=>({query:r,...u})),withDirConfig:()=>i("dirConfig")(!0)};return t.legacy&&(s.findSurround=(r,u)=>s.withSurround(r,u).find().then(n)),s}function R(e){return JSON.stringify(e,X)}function X(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const Z=e=>{let t=R(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},O=e=>z(e,w().public.content.api.baseURL),fe=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},ee=()=>{const{experimental:e}=w().public.content;return e.clientDB?!0:S().isEnabled()},te=()=>async e=>{const{content:t}=w().public,a=e.params(),i=t.experimental.stripQueryParameters?O(`/query/${`${$(a)}.${t.integrity}`}/${Z(a)}.json`):O(`/query/${$(a)}.${t.integrity}.json`);if(ee())return(await U(()=>import("./DhUbynuL.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(r=>r.useContentDatabase())).fetch(e);const n=await $fetch(i,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:R(a),previewToken:S().getPreviewToken()}});if(typeof n=="string"&&n.startsWith(""))throw new Error("Not found");return n};function de(e,...t){const{content:a}=w().public,i=J(te(),{initialParams:typeof e!="string"?e:{},legacy:!0});let n;typeof e=="string"&&(n=H(K(e,...t)));const s=i.params;return i.params=()=>{var u,l,p;const r=s();return n&&(r.where=r.where||[],r.first&&(r.where||[]).length===0?r.where.push({_path:N(n)}):r.where.push({_path:new RegExp(`^${n.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(u=r.sort)!=null&&u.length||(r.sort=[{_stem:1,$numeric:!0}]),a.locales.length&&((p=(l=r.where)==null?void 0:l.find(g=>g._locale))!=null&&p._locale||(r.where=r.where||[],r.where.push({_locale:a.defaultLocale}))),r},i}export{ne as a,le as b,d as c,ue as d,Z as e,ie as f,E as g,oe as h,ce as i,R as j,J as k,se as o,de as q,ee as s,fe as u,O as w}; diff --git a/_nuxt/Cb25f9Ir.js b/_nuxt/xFswHJo3.js similarity index 61% rename from _nuxt/Cb25f9Ir.js rename to _nuxt/xFswHJo3.js index 66d4da7a..0f999ef5 100644 --- a/_nuxt/Cb25f9Ir.js +++ b/_nuxt/xFswHJo3.js @@ -1 +1 @@ -import s from"./BG6wdasp.js";import{g as o,a8 as u,a3 as f,M as m}from"./Bk7_z8zR.js";import"./BneCoJRQ.js";const l=o({name:"Markdown",extends:s,setup(t){const{parent:e}=u(),{between:n,default:a}=f(),r=m(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:a,tags:r,between:n,parent:e}}});export{l as default}; +import s from"./HAH9zurp.js";import{g as o,a8 as u,a3 as f,M as m}from"./DRzdypsL.js";import"./BneCoJRQ.js";const l=o({name:"Markdown",extends:s,setup(t){const{parent:e}=u(),{between:n,default:a}=f(),r=m(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:a,tags:r,between:n,parent:e}}});export{l as default}; diff --git a/_nuxt/33ex26Pi.js b/_nuxt/xo8hsDaG.js similarity index 99% rename from _nuxt/33ex26Pi.js rename to _nuxt/xo8hsDaG.js index aad0b937..d38bcebd 100644 --- a/_nuxt/33ex26Pi.js +++ b/_nuxt/xo8hsDaG.js @@ -1,4 +1,4 @@ -import{g as v,o as c,c as m,a as t,r as f,F as W,w as se,t as z,G as ae,k as o,R as oe,m as _,H as M,q as k,v as ne,l as I,p as le,e as ie,_ as re,I as ce,J as ue,b as O,n as de,K as q,x as pe,$ as me,L as B,f as fe,u as ve,i as he,M as V,j as _e,d as ge,N as ye,s as we}from"./Bk7_z8zR.js";const ke=`
- \ No newline at end of file + +
+ \ No newline at end of file